多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

3 lines
1.0 MiB

#! /usr/bin/env node
/*! For license information please see cli.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.libs=t():e.libs=t()}("undefined"!=typeof self?self:this,(()=>(()=>{var __webpack_modules__={92480:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ENTRY_PROVIDER_WATERMARK=t.CATCH_WATERMARK=t.CONTROLLER_WATERMARK=t.INJECTABLE_WATERMARK=t.VERSION_METADATA=t.SSE_METADATA=t.RESPONSE_PASSTHROUGH_METADATA=t.REDIRECT_METADATA=t.HEADERS_METADATA=t.MODULE_PATH=t.HTTP_CODE_METADATA=t.RENDER_METADATA=t.ENHANCER_KEY_TO_SUBTYPE_MAP=t.EXCEPTION_FILTERS_METADATA=t.INTERCEPTORS_METADATA=t.GUARDS_METADATA=t.PIPES_METADATA=t.FILTER_CATCH_EXCEPTIONS=t.CUSTOM_ROUTE_ARGS_METADATA=t.ROUTE_ARGS_METADATA=t.METHOD_METADATA=t.SCOPE_OPTIONS_METADATA=t.OPTIONAL_PROPERTY_DEPS_METADATA=t.PROPERTY_DEPS_METADATA=t.OPTIONAL_DEPS_METADATA=t.SELF_DECLARED_DEPS_METADATA=t.PARAMTYPES_METADATA=t.PATH_METADATA=t.HOST_METADATA=t.GLOBAL_MODULE_METADATA=t.MODULE_METADATA=void 0,t.MODULE_METADATA={IMPORTS:"imports",PROVIDERS:"providers",CONTROLLERS:"controllers",EXPORTS:"exports"},t.GLOBAL_MODULE_METADATA="__module:global__",t.HOST_METADATA="host",t.PATH_METADATA="path",t.PARAMTYPES_METADATA="design:paramtypes",t.SELF_DECLARED_DEPS_METADATA="self:paramtypes",t.OPTIONAL_DEPS_METADATA="optional:paramtypes",t.PROPERTY_DEPS_METADATA="self:properties_metadata",t.OPTIONAL_PROPERTY_DEPS_METADATA="optional:properties_metadata",t.SCOPE_OPTIONS_METADATA="scope:options",t.METHOD_METADATA="method",t.ROUTE_ARGS_METADATA="__routeArguments__",t.CUSTOM_ROUTE_ARGS_METADATA="__customRouteArgs__",t.FILTER_CATCH_EXCEPTIONS="__filterCatchExceptions__",t.PIPES_METADATA="__pipes__",t.GUARDS_METADATA="__guards__",t.INTERCEPTORS_METADATA="__interceptors__",t.EXCEPTION_FILTERS_METADATA="__exceptionFilters__",t.ENHANCER_KEY_TO_SUBTYPE_MAP={[t.GUARDS_METADATA]:"guard",[t.INTERCEPTORS_METADATA]:"interceptor",[t.PIPES_METADATA]:"pipe",[t.EXCEPTION_FILTERS_METADATA]:"filter"},t.RENDER_METADATA="__renderTemplate__",t.HTTP_CODE_METADATA="__httpCode__",t.MODULE_PATH="__module_path__",t.HEADERS_METADATA="__headers__",t.REDIRECT_METADATA="__redirect__",t.RESPONSE_PASSTHROUGH_METADATA="__responsePassthrough__",t.SSE_METADATA="__sse__",t.VERSION_METADATA="__version__",t.INJECTABLE_WATERMARK="__injectable__",t.CONTROLLER_WATERMARK="__controller__",t.CATCH_WATERMARK="__catch__",t.ENTRY_PROVIDER_WATERMARK="__entryProvider__"},38521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyDecorators=void 0,t.applyDecorators=function(...e){return(t,n,a)=>{for(const r of e)t instanceof Function&&!a?r(t):r(t,n,a)}}},27692:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bind=void 0,t.Bind=function(...e){return(t,n,a)=>(e.forEach(((e,a)=>e(t,n,a))),a)}},15314:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Catch=void 0;const a=n(92480);t.Catch=function(...e){return t=>{Reflect.defineMetadata(a.CATCH_WATERMARK,!0,t),Reflect.defineMetadata(a.FILTER_CATCH_EXCEPTIONS,e,t)}}},84743:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Controller=void 0;const a=n(92480),r=n(84381);t.Controller=function(e){const[t,n,i,s]=(0,r.isUndefined)(e)?["/",void 0,void 0,void 0]:(0,r.isString)(e)||Array.isArray(e)?[e,void 0,void 0,void 0]:[e.path||"/",e.host,{scope:e.scope,durable:e.durable},Array.isArray(e.version)?Array.from(new Set(e.version)):e.version];return e=>{Reflect.defineMetadata(a.CONTROLLER_WATERMARK,!0,e),Reflect.defineMetadata(a.PATH_METADATA,t,e),Reflect.defineMetadata(a.HOST_METADATA,n,e),Reflect.defineMetadata(a.SCOPE_OPTIONS_METADATA,i,e),Reflect.defineMetadata(a.VERSION_METADATA,s,e)}}},60370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dependencies=t.flatten=void 0;const a=n(92480);function r(e){const t=[].concat(...e);return t.some(Array.isArray)?r(t):t}t.flatten=r;t.Dependencies=(...e)=>{const t=r(e);return e=>{Reflect.defineMetadata(a.PARAMTYPES_METADATA,t,e)}}},32118:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UseFilters=void 0;const a=n(92480),r=n(50239),i=n(84381),s=n(17797);t.UseFilters=(...e)=>function(...e){return(t,n,o)=>{const c=e=>e&&((0,i.isFunction)(e)||(0,i.isFunction)(e.catch));return o?((0,s.validateEach)(t.constructor,e,c,"@UseFilters","filter"),(0,r.extendArrayMetadata)(a.EXCEPTION_FILTERS_METADATA,e,o.value),o):((0,s.validateEach)(t,e,c,"@UseFilters","filter"),(0,r.extendArrayMetadata)(a.EXCEPTION_FILTERS_METADATA,e,t),t)}}(...e)},36398:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(27692),t),a.__exportStar(n(15314),t),a.__exportStar(n(84743),t),a.__exportStar(n(60370),t),a.__exportStar(n(32118),t),a.__exportStar(n(19354),t),a.__exportStar(n(58662),t),a.__exportStar(n(7923),t),a.__exportStar(n(21309),t),a.__exportStar(n(24711),t),a.__exportStar(n(84977),t),a.__exportStar(n(666),t),a.__exportStar(n(38521),t),a.__exportStar(n(92881),t)},19354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Inject=void 0;const a=n(92480),r=n(84381);t.Inject=function(e){return(t,n,i)=>{const s=e||Reflect.getMetadata("design:type",t,n);if(!(0,r.isUndefined)(i)){let e=Reflect.getMetadata(a.SELF_DECLARED_DEPS_METADATA,t)||[];return e=[...e,{index:i,param:s}],void Reflect.defineMetadata(a.SELF_DECLARED_DEPS_METADATA,e,t)}let o=Reflect.getMetadata(a.PROPERTY_DEPS_METADATA,t.constructor)||[];o=[...o,{key:n,type:s}],Reflect.defineMetadata(a.PROPERTY_DEPS_METADATA,o,t.constructor)}}},58662:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mixin=t.Injectable=void 0;const a=n(17063),r=n(92480);function i(e){return t=>{Reflect.defineMetadata(r.INJECTABLE_WATERMARK,!0,t),Reflect.defineMetadata(r.SCOPE_OPTIONS_METADATA,e,t)}}t.Injectable=i,t.mixin=function(e){return Object.defineProperty(e,"name",{value:(0,a.uid)(21)}),i()(e),e}},7923:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Optional=void 0;const a=n(92480),r=n(84381);t.Optional=function(){return(e,t,n)=>{if(!(0,r.isUndefined)(n)){const t=Reflect.getMetadata(a.OPTIONAL_DEPS_METADATA,e)||[];return void Reflect.defineMetadata(a.OPTIONAL_DEPS_METADATA,[...t,n],e)}const i=Reflect.getMetadata(a.OPTIONAL_PROPERTY_DEPS_METADATA,e.constructor)||[];Reflect.defineMetadata(a.OPTIONAL_PROPERTY_DEPS_METADATA,[...i,t],e.constructor)}}},21309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetMetadata=void 0;t.SetMetadata=(e,t)=>{const n=(n,a,r)=>r?(Reflect.defineMetadata(e,t,r.value),r):(Reflect.defineMetadata(e,t,n),n);return n.KEY=e,n}},24711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UseGuards=void 0;const a=n(92480),r=n(50239),i=n(84381),s=n(17797);t.UseGuards=function(...e){return(t,n,o)=>{const c=e=>e&&((0,i.isFunction)(e)||(0,i.isFunction)(e.canActivate));return o?((0,s.validateEach)(t.constructor,e,c,"@UseGuards","guard"),(0,r.extendArrayMetadata)(a.GUARDS_METADATA,e,o.value),o):((0,s.validateEach)(t,e,c,"@UseGuards","guard"),(0,r.extendArrayMetadata)(a.GUARDS_METADATA,e,t),t)}}},84977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UseInterceptors=void 0;const a=n(92480),r=n(50239),i=n(84381),s=n(17797);t.UseInterceptors=function(...e){return(t,n,o)=>{const c=e=>e&&((0,i.isFunction)(e)||(0,i.isFunction)(e.intercept));return o?((0,s.validateEach)(t.constructor,e,c,"@UseInterceptors","interceptor"),(0,r.extendArrayMetadata)(a.INTERCEPTORS_METADATA,e,o.value),o):((0,s.validateEach)(t,e,c,"@UseInterceptors","interceptor"),(0,r.extendArrayMetadata)(a.INTERCEPTORS_METADATA,e,t),t)}}},666:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UsePipes=void 0;const a=n(92480),r=n(50239),i=n(84381),s=n(17797);t.UsePipes=function(...e){return(t,n,o)=>o?((0,r.extendArrayMetadata)(a.PIPES_METADATA,e,o.value),o):((0,s.validateEach)(t,e,(e=>e&&((0,i.isFunction)(e)||(0,i.isFunction)(e.transform))),"@UsePipes","pipe"),(0,r.extendArrayMetadata)(a.PIPES_METADATA,e,t),t)}},92881:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Version=void 0;const a=n(92480);t.Version=function(e){return Array.isArray(e)&&(e=Array.from(new Set(e))),(t,n,r)=>(Reflect.defineMetadata(a.VERSION_METADATA,e,r.value),r)}},7076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createParamDecorator=void 0;const a=n(17063),r=n(92480),i=n(34432),s=n(84381);t.createParamDecorator=function(e,t=[]){const n=(0,a.uid)(21);return(a,...o)=>(c,u,l)=>{const p=Reflect.getMetadata(r.ROUTE_ARGS_METADATA,c.constructor,u)||{},d=(0,s.isNil)(a)||!((m=a)&&((0,s.isFunction)(m)&&m.prototype&&(0,s.isFunction)(m.prototype.transform)||(0,s.isFunction)(m.transform)));var m;const f=d?a:void 0,h=d?o:[a,...o];Reflect.defineMetadata(r.ROUTE_ARGS_METADATA,(0,i.assignCustomParameterMetadata)(p,n,l,e,f,...h),c.constructor,u),t.forEach((e=>e(c,u,l)))}}},96711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Header=void 0;const a=n(92480),r=n(50239);t.Header=function(e,t){return(n,i,s)=>((0,r.extendArrayMetadata)(a.HEADERS_METADATA,[{name:e,value:t}],s.value),s)}},10784:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpCode=void 0;const a=n(92480);t.HttpCode=function(e){return(t,n,r)=>(Reflect.defineMetadata(a.HTTP_CODE_METADATA,e,r.value),r)}},22753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(71868),t),a.__exportStar(n(91492),t),a.__exportStar(n(10784),t),a.__exportStar(n(7076),t),a.__exportStar(n(4862),t),a.__exportStar(n(96711),t),a.__exportStar(n(52782),t),a.__exportStar(n(75067),t)},52782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Redirect=void 0;const a=n(92480);t.Redirect=function(e="",t){return(n,r,i)=>(Reflect.defineMetadata(a.REDIRECT_METADATA,{statusCode:t,url:e},i.value),i)}},4862:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Render=void 0;const a=n(92480);t.Render=function(e){return(t,n,r)=>(Reflect.defineMetadata(a.RENDER_METADATA,e,r.value),r)}},71868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Search=t.All=t.Head=t.Options=t.Patch=t.Put=t.Delete=t.Get=t.Post=t.RequestMapping=void 0;const a=n(92480),r=n(13808),i={[a.PATH_METADATA]:"/",[a.METHOD_METADATA]:r.RequestMethod.GET};t.RequestMapping=(e=i)=>{const t=e[a.PATH_METADATA],n=t&&t.length?t:"/",s=e[a.METHOD_METADATA]||r.RequestMethod.GET;return(e,t,r)=>(Reflect.defineMetadata(a.PATH_METADATA,n,r.value),Reflect.defineMetadata(a.METHOD_METADATA,s,r.value),r)};const s=e=>n=>(0,t.RequestMapping)({[a.PATH_METADATA]:n,[a.METHOD_METADATA]:e});t.Post=s(r.RequestMethod.POST),t.Get=s(r.RequestMethod.GET),t.Delete=s(r.RequestMethod.DELETE),t.Put=s(r.RequestMethod.PUT),t.Patch=s(r.RequestMethod.PATCH),t.Options=s(r.RequestMethod.OPTIONS),t.Head=s(r.RequestMethod.HEAD),t.All=s(r.RequestMethod.ALL),t.Search=s(r.RequestMethod.SEARCH)},91492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Res=t.Req=t.HostParam=t.Param=t.RawBody=t.Body=t.Query=t.Headers=t.UploadedFiles=t.UploadedFile=t.Session=t.Ip=t.Next=t.Response=t.Request=t.assignMetadata=void 0;const a=n(92480),r=n(79573),i=n(84381);function s(e,t,n,a,...r){return{...e,[`${t}:${n}`]:{index:n,data:a,pipes:r}}}function o(e){return t=>(n,r,i)=>{const o=Reflect.getMetadata(a.ROUTE_ARGS_METADATA,n.constructor,r)||{};Reflect.defineMetadata(a.ROUTE_ARGS_METADATA,s(o,e,i,t),n.constructor,r)}}t.assignMetadata=s;const c=e=>(t,...n)=>(r,o,c)=>{const u=Reflect.getMetadata(a.ROUTE_ARGS_METADATA,r.constructor,o)||{},l=(0,i.isNil)(t)||(0,i.isString)(t),p=l?t:void 0,d=l?n:[t,...n];Reflect.defineMetadata(a.ROUTE_ARGS_METADATA,s(u,e,c,p,...d),r.constructor,o)};t.Request=o(r.RouteParamtypes.REQUEST);t.Response=e=>(t,n,i)=>(e?.passthrough&&Reflect.defineMetadata(a.RESPONSE_PASSTHROUGH_METADATA,e?.passthrough,t.constructor,n),o(r.RouteParamtypes.RESPONSE)()(t,n,i)),t.Next=o(r.RouteParamtypes.NEXT),t.Ip=o(r.RouteParamtypes.IP),t.Session=o(r.RouteParamtypes.SESSION),t.UploadedFile=function(e,...t){return c(r.RouteParamtypes.FILE)(e,...t)},t.UploadedFiles=function(...e){return c(r.RouteParamtypes.FILES)(void 0,...e)},t.Headers=o(r.RouteParamtypes.HEADERS),t.Query=function(e,...t){return c(r.RouteParamtypes.QUERY)(e,...t)},t.Body=function(e,...t){return c(r.RouteParamtypes.BODY)(e,...t)},t.RawBody=function(...e){return c(r.RouteParamtypes.RAW_BODY)(void 0,...e)},t.Param=function(e,...t){return c(r.RouteParamtypes.PARAM)(e,...t)},t.HostParam=function(e){return o(r.RouteParamtypes.HOST)(e)},t.Req=t.Request,t.Res=t.Response},75067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sse=void 0;const a=n(92480),r=n(13808);t.Sse=function(e){return(t,n,i)=>(e=e&&e.length?e:"/",Reflect.defineMetadata(a.PATH_METADATA,e,i.value),Reflect.defineMetadata(a.METHOD_METADATA,r.RequestMethod.GET,i.value),Reflect.defineMetadata(a.SSE_METADATA,!0,i.value),i)}},91804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(36398),t),a.__exportStar(n(52642),t),a.__exportStar(n(22753),t)},79604:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Global=void 0;const a=n(92480);t.Global=function(){return e=>{Reflect.defineMetadata(a.GLOBAL_MODULE_METADATA,!0,e)}}},52642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(79604),t),a.__exportStar(n(69691),t)},69691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Module=void 0;const a=n(76161);t.Module=function(e){const t=Object.keys(e);return(0,a.validateModuleKeys)(t),t=>{for(const n in e)e.hasOwnProperty(n)&&Reflect.defineMetadata(n,e[n],t)}}},14274:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.HttpStatus=void 0,function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.EARLYHINTS=103]="EARLYHINTS",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.AMBIGUOUS=300]="AMBIGUOUS",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.FOUND=302]="FOUND",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PAYLOAD_TOO_LARGE=413]="PAYLOAD_TOO_LARGE",e[e.URI_TOO_LONG=414]="URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.I_AM_A_TEAPOT=418]="I_AM_A_TEAPOT",e[e.MISDIRECTED=421]="MISDIRECTED",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED"}(n||(t.HttpStatus=n={}))},38104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(13808),t),a.__exportStar(n(14274),t),a.__exportStar(n(21610),t),a.__exportStar(n(27662),t)},13808:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RequestMethod=void 0,function(e){e[e.GET=0]="GET",e[e.POST=1]="POST",e[e.PUT=2]="PUT",e[e.DELETE=3]="DELETE",e[e.PATCH=4]="PATCH",e[e.ALL=5]="ALL",e[e.OPTIONS=6]="OPTIONS",e[e.HEAD=7]="HEAD",e[e.SEARCH=8]="SEARCH"}(n||(t.RequestMethod=n={}))},79573:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RouteParamtypes=void 0,function(e){e[e.REQUEST=0]="REQUEST",e[e.RESPONSE=1]="RESPONSE",e[e.NEXT=2]="NEXT",e[e.BODY=3]="BODY",e[e.QUERY=4]="QUERY",e[e.PARAM=5]="PARAM",e[e.HEADERS=6]="HEADERS",e[e.SESSION=7]="SESSION",e[e.FILE=8]="FILE",e[e.FILES=9]="FILES",e[e.HOST=10]="HOST",e[e.IP=11]="IP",e[e.RAW_BODY=12]="RAW_BODY"}(n||(t.RouteParamtypes=n={}))},21610:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ShutdownSignal=void 0,function(e){e.SIGHUP="SIGHUP",e.SIGINT="SIGINT",e.SIGQUIT="SIGQUIT",e.SIGILL="SIGILL",e.SIGTRAP="SIGTRAP",e.SIGABRT="SIGABRT",e.SIGBUS="SIGBUS",e.SIGFPE="SIGFPE",e.SIGSEGV="SIGSEGV",e.SIGUSR2="SIGUSR2",e.SIGTERM="SIGTERM"}(n||(t.ShutdownSignal=n={}))},27662:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VersioningType=void 0,function(e){e[e.URI=0]="URI",e[e.HEADER=1]="HEADER",e[e.MEDIA_TYPE=2]="MEDIA_TYPE",e[e.CUSTOM=3]="CUSTOM"}(n||(t.VersioningType=n={}))},87427:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BadGatewayException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Bad Gateway"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.BAD_GATEWAY),a.HttpStatus.BAD_GATEWAY,i)}}t.BadGatewayException=i},35376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BadRequestException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Bad Request"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.BAD_REQUEST),a.HttpStatus.BAD_REQUEST,i)}}t.BadRequestException=i},30587:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConflictException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Conflict"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.CONFLICT),a.HttpStatus.CONFLICT,i)}}t.ConflictException=i},53790:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Forbidden"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.FORBIDDEN),a.HttpStatus.FORBIDDEN,i)}}t.ForbiddenException=i},5595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GatewayTimeoutException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Gateway Timeout"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.GATEWAY_TIMEOUT),a.HttpStatus.GATEWAY_TIMEOUT,i)}}t.GatewayTimeoutException=i},22698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GoneException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Gone"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.GONE),a.HttpStatus.GONE,i)}}t.GoneException=i},28571:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpVersionNotSupportedException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="HTTP Version Not Supported"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.HTTP_VERSION_NOT_SUPPORTED),a.HttpStatus.HTTP_VERSION_NOT_SUPPORTED,i)}}t.HttpVersionNotSupportedException=i},96965:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpException=void 0;const a=n(84381);class r extends Error{constructor(e,t,n){super(),this.response=e,this.status=t,this.options=n,this.initMessage(),this.initName(),this.initCause()}initCause(){this.options?.cause&&(this.cause=this.options.cause)}initMessage(){(0,a.isString)(this.response)?this.message=this.response:(0,a.isObject)(this.response)&&(0,a.isString)(this.response.message)?this.message=this.response.message:this.constructor&&(this.message=this.constructor.name.match(/[A-Z][a-z]+|[0-9]+/g)?.join(" ")??"Error")}initName(){this.name=this.constructor.name}getResponse(){return this.response}getStatus(){return this.status}static createBody(e,t,n){return e?(0,a.isString)(e)||Array.isArray(e)?{message:e,error:t,statusCode:n}:e:{message:t,statusCode:n}}static getDescriptionFrom(e){return(0,a.isString)(e)?e:e?.description}static getHttpExceptionOptionsFrom(e){return(0,a.isString)(e)?{}:e}static extractDescriptionAndOptionsFrom(e){return{description:(0,a.isString)(e)?e:e?.description,httpExceptionOptions:(0,a.isString)(e)?{}:e}}}t.HttpException=r},39629:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImATeapotException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="I'm a teapot"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.I_AM_A_TEAPOT),a.HttpStatus.I_AM_A_TEAPOT,i)}}t.ImATeapotException=i},34368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(35376),t),a.__exportStar(n(96965),t),a.__exportStar(n(72807),t),a.__exportStar(n(56017),t),a.__exportStar(n(6579),t),a.__exportStar(n(53790),t),a.__exportStar(n(92721),t),a.__exportStar(n(36712),t),a.__exportStar(n(30587),t),a.__exportStar(n(22698),t),a.__exportStar(n(31508),t),a.__exportStar(n(85076),t),a.__exportStar(n(62345),t),a.__exportStar(n(34527),t),a.__exportStar(n(65051),t),a.__exportStar(n(28571),t),a.__exportStar(n(87427),t),a.__exportStar(n(411),t),a.__exportStar(n(5595),t),a.__exportStar(n(39629),t),a.__exportStar(n(2175),t),a.__exportStar(n(91976),t)},34527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InternalServerErrorException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Internal Server Error"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.INTERNAL_SERVER_ERROR),a.HttpStatus.INTERNAL_SERVER_ERROR,i)}}t.InternalServerErrorException=i},56017:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MethodNotAllowedException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Method Not Allowed"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.METHOD_NOT_ALLOWED),a.HttpStatus.METHOD_NOT_ALLOWED,i)}}t.MethodNotAllowedException=i},91976:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MisdirectedException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Misdirected"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.MISDIRECTED),a.HttpStatus.MISDIRECTED,i)}}t.MisdirectedException=i},92721:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotAcceptableException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Not Acceptable"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.NOT_ACCEPTABLE),a.HttpStatus.NOT_ACCEPTABLE,i)}}t.NotAcceptableException=i},6579:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Not Found"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.NOT_FOUND),a.HttpStatus.NOT_FOUND,i)}}t.NotFoundException=i},65051:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotImplementedException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Not Implemented"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.NOT_IMPLEMENTED),a.HttpStatus.NOT_IMPLEMENTED,i)}}t.NotImplementedException=i},31508:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PayloadTooLargeException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Payload Too Large"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.PAYLOAD_TOO_LARGE),a.HttpStatus.PAYLOAD_TOO_LARGE,i)}}t.PayloadTooLargeException=i},2175:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PreconditionFailedException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Precondition Failed"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.PRECONDITION_FAILED),a.HttpStatus.PRECONDITION_FAILED,i)}}t.PreconditionFailedException=i},36712:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequestTimeoutException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Request Timeout"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.REQUEST_TIMEOUT),a.HttpStatus.REQUEST_TIMEOUT,i)}}t.RequestTimeoutException=i},411:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceUnavailableException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Service Unavailable"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.SERVICE_UNAVAILABLE),a.HttpStatus.SERVICE_UNAVAILABLE,i)}}t.ServiceUnavailableException=i},72807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnauthorizedException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Unauthorized"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.UNAUTHORIZED),a.HttpStatus.UNAUTHORIZED,i)}}t.UnauthorizedException=i},62345:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnprocessableEntityException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Unprocessable Entity"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.UNPROCESSABLE_ENTITY),a.HttpStatus.UNPROCESSABLE_ENTITY,i)}}t.UnprocessableEntityException=i},85076:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsupportedMediaTypeException=void 0;const a=n(14274),r=n(96965);class i extends r.HttpException{constructor(e,t="Unsupported Media Type"){const{description:n,httpExceptionOptions:i}=r.HttpException.extractDescriptionAndOptionsFrom(t);super(r.HttpException.createBody(e,n,a.HttpStatus.UNSUPPORTED_MEDIA_TYPE),a.HttpStatus.UNSUPPORTED_MEDIA_TYPE,i)}}t.UnsupportedMediaTypeException=i},24455:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(58932).__exportStar(n(65614),t)},65614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StreamableFile=void 0;const a=n(2203),r=n(39023),i=n(38104),s=n(84381),o=n(60338);t.StreamableFile=class{constructor(e,t={}){this.options=t,this.logger=new o.Logger("StreamableFile"),this.handleError=(e,t)=>{t.destroyed||(t.headersSent?t.end():(t.statusCode=i.HttpStatus.BAD_REQUEST,t.send(e.message)))},this.logError=e=>{this.logger.error(e.message,e.stack)},r.types.isUint8Array(e)?(this.stream=new a.Readable,this.stream.push(e),this.stream.push(null),this.options.length??=e.length):e.pipe&&(0,s.isFunction)(e.pipe)&&(this.stream=e)}getStream(){return this.stream}getHeaders(){const{type:e="application/octet-stream",disposition:t,length:n}=this.options;return{type:e,disposition:t,length:n}}get errorHandler(){return this.handleError}setErrorHandler(e){return this.handleError=e,this}get errorLogger(){return this.logError}setErrorLogger(e){return this.logError=e,this}}},11353:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION_NEUTRAL=t.Scope=void 0;const a=n(58932);n(9753),a.__exportStar(n(91804),t),a.__exportStar(n(38104),t),a.__exportStar(n(34368),t),a.__exportStar(n(24455),t);var r=n(76226);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return r.Scope}}),Object.defineProperty(t,"VERSION_NEUTRAL",{enumerable:!0,get:function(){return r.VERSION_NEUTRAL}}),a.__exportStar(n(95878),t),a.__exportStar(n(26555),t),a.__exportStar(n(76794),t),a.__exportStar(n(60338),t),a.__exportStar(n(91851),t)},33455:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},55915:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53995:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},94738:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},81464:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},43799:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},51887:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},99054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},97283:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},59175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},16445:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},55327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77208:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},75342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},16649:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1733:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(16649),t),a.__exportStar(n(717),t),a.__exportStar(n(50255),t),a.__exportStar(n(95090),t),a.__exportStar(n(11430),t)},717:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},50255:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},95090:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},11430:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},55313:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1683:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},78474:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},22399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(55313),t),a.__exportStar(n(1683),t),a.__exportStar(n(78474),t),a.__exportStar(n(42424),t),a.__exportStar(n(38791),t)},42424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},38791:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},76226:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(33455),t),a.__exportStar(n(55915),t),a.__exportStar(n(53995),t),a.__exportStar(n(94738),t),a.__exportStar(n(81464),t),a.__exportStar(n(43799),t),a.__exportStar(n(51887),t),a.__exportStar(n(99054),t),a.__exportStar(n(97283),t),a.__exportStar(n(59175),t),a.__exportStar(n(16445),t),a.__exportStar(n(55327),t),a.__exportStar(n(77208),t),a.__exportStar(n(9478),t),a.__exportStar(n(75342),t),a.__exportStar(n(1733),t),a.__exportStar(n(22399),t),a.__exportStar(n(81268),t),a.__exportStar(n(92619),t),a.__exportStar(n(39095),t),a.__exportStar(n(54204),t),a.__exportStar(n(69230),t),a.__exportStar(n(93083),t),a.__exportStar(n(87196),t),a.__exportStar(n(68345),t),a.__exportStar(n(4116),t),a.__exportStar(n(57833),t),a.__exportStar(n(64024),t),a.__exportStar(n(21316),t)},81268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},92619:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},39095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(21078),t),a.__exportStar(n(89137),t),a.__exportStar(n(94073),t),a.__exportStar(n(21671),t)},21078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},89137:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},94073:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},21671:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},23171:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},64136:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54204:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(23171),t),a.__exportStar(n(64136),t),a.__exportStar(n(86856),t),a.__exportStar(n(56504),t),a.__exportStar(n(72175),t),a.__exportStar(n(70804),t),a.__exportStar(n(88482),t),a.__exportStar(n(83034),t)},86856:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},56504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},72175:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},70804:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},88482:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},83034:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},69230:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},93083:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},87196:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},68345:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4116:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Scope=void 0,function(e){e[e.DEFAULT=0]="DEFAULT",e[e.TRANSIENT=1]="TRANSIENT",e[e.REQUEST=2]="REQUEST"}(n||(t.Scope=n={}))},57833:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},64024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VERSION_NEUTRAL=void 0,t.VERSION_NEUTRAL=Symbol("VERSION_NEUTRAL")},21316:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65291:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConfigurableModuleBuilder=void 0;const a=n(19309),r=n(20176),i=n(96375),s=n(62400);class o{constructor(e={},t){this.options=e,this.logger=new a.Logger(o.name),t&&(this.staticMethodKey=t.staticMethodKey,this.factoryClassMethodKey=t.factoryClassMethodKey,this.transformModuleDefinition=t.transformModuleDefinition,this.extras=t.extras)}setExtras(e,t=(e=>e)){const n=new o(this.options,this);return n.extras=e,n.transformModuleDefinition=t,n}setClassMethodName(e){const t=new o(this.options,this);return t.staticMethodKey=e,t}setFactoryMethodName(e){const t=new o(this.options,this);return t.factoryClassMethodKey=e,t}build(){return this.staticMethodKey??=i.DEFAULT_METHOD_KEY,this.factoryClassMethodKey??=i.DEFAULT_FACTORY_CLASS_METHOD_KEY,this.options.optionsInjectionToken??=this.options.moduleName?this.constructInjectionTokenString():(0,s.generateOptionsInjectionToken)(),this.transformModuleDefinition??=e=>e,{ConfigurableModuleClass:this.createConfigurableModuleCls(),MODULE_OPTIONS_TOKEN:this.options.optionsInjectionToken,ASYNC_OPTIONS_TYPE:this.createTypeProxy("ASYNC_OPTIONS_TYPE"),OPTIONS_TYPE:this.createTypeProxy("OPTIONS_TYPE")}}constructInjectionTokenString(){return`${this.options.moduleName.trim().split(/(?=[A-Z])/).join("_").toUpperCase()}_MODULE_OPTIONS`}createConfigurableModuleCls(){const e=this,t=this.staticMethodKey+i.ASYNC_METHOD_SUFFIX;class n{static[e.staticMethodKey](t){const n=[{provide:e.options.optionsInjectionToken,useValue:this.omitExtras(t,e.extras)}];return e.options.alwaysTransient&&n.push({provide:i.CONFIGURABLE_MODULE_ID,useValue:(0,r.randomStringGenerator)()}),e.transformModuleDefinition({module:this,providers:n},{...e.extras,...t})}static[t](t){const n=this.createAsyncProviders(t);return e.options.alwaysTransient&&n.push({provide:i.CONFIGURABLE_MODULE_ID,useValue:(0,r.randomStringGenerator)()}),e.transformModuleDefinition({module:this,imports:t.imports||[],providers:n},{...e.extras,...t})}static omitExtras(e,t){if(!t)return e;const n={},a=Object.keys(t);return Object.keys(e).filter((e=>!a.includes(e))).forEach((t=>{n[t]=e[t]})),n}static createAsyncProviders(e){return e.useExisting||e.useFactory?e.inject&&e.provideInjectionTokensFrom?[this.createAsyncOptionsProvider(e),...(0,s.getInjectionProviders)(e.provideInjectionTokensFrom,e.inject)]:[this.createAsyncOptionsProvider(e)]:[this.createAsyncOptionsProvider(e),{provide:e.useClass,useClass:e.useClass}]}static createAsyncOptionsProvider(t){return t.useFactory?{provide:e.options.optionsInjectionToken,useFactory:t.useFactory,inject:t.inject||[]}:{provide:e.options.optionsInjectionToken,useFactory:async t=>await t[e.factoryClassMethodKey](),inject:[t.useExisting||t.useClass]}}}return n}createTypeProxy(e){return new Proxy({},{get:()=>{throw new Error(`"${e}" is not supposed to be used as a value.`)}})}}t.ConfigurableModuleBuilder=o},96375:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONFIGURABLE_MODULE_ID=t.ASYNC_METHOD_SUFFIX=t.DEFAULT_FACTORY_CLASS_METHOD_KEY=t.DEFAULT_METHOD_KEY=void 0,t.DEFAULT_METHOD_KEY="register",t.DEFAULT_FACTORY_CLASS_METHOD_KEY="create",t.ASYNC_METHOD_SUFFIX="Async",t.CONFIGURABLE_MODULE_ID="CONFIGURABLE_MODULE_ID"},95878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(65291),t),a.__exportStar(n(32371),t)},29464:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},66035:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8811:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},32371:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(29464),t),a.__exportStar(n(66035),t),a.__exportStar(n(8811),t)},99594:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generateOptionsInjectionToken=void 0;const a=n(20176);t.generateOptionsInjectionToken=function(){return`CONFIGURABLE_MODULE_OPTIONS[${(0,a.randomStringGenerator)()}]`}},57369:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInjectionProviders=void 0;const n=e=>{return t=e,t?.token&&!t?.prototype?e.token:e;var t};t.getInjectionProviders=function(e,t){const a=[];let r=t.map(n);for(;r.length>0;){const t=(e??[]).filter((e=>!a.includes(e)&&(r.includes(e)||r.includes(e?.provide))));a.push(...t),r=t.filter((e=>e?.inject)).flatMap((e=>e.inject)).map(n)}return a}},62400:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(99594),t),a.__exportStar(n(57369),t)},13482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultValuePipe=void 0;const a=n(58932),r=n(58662),i=n(84381);let s=class{constructor(e){this.defaultValue=e}transform(e,t){return(0,i.isNil)(e)||(0,i.isNumber)(e)&&isNaN(e)?this.defaultValue:e}};t.DefaultValuePipe=s,t.DefaultValuePipe=s=a.__decorate([(0,r.Injectable)(),a.__metadata("design:paramtypes",[Object])],s)},68279:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileTypeValidator=void 0;const a=n(82040);class r extends a.FileValidator{buildErrorMessage(){return`Validation failed (expected type is ${this.validationOptions.fileType})`}isValid(e){return!this.validationOptions||!!e&&"mimetype"in e&&!!e.mimetype.match(this.validationOptions.fileType)}}t.FileTypeValidator=r},82040:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileValidator=void 0;t.FileValidator=class{constructor(e){this.validationOptions=e}}},12698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(68279),t),a.__exportStar(n(82040),t),a.__exportStar(n(9605),t),a.__exportStar(n(57138),t),a.__exportStar(n(10380),t),a.__exportStar(n(16160),t)},9605:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxFileSizeValidator=void 0;const a=n(82040);class r extends a.FileValidator{buildErrorMessage(){return"message"in this.validationOptions?"function"==typeof this.validationOptions.message?this.validationOptions.message(this.validationOptions.maxSize):this.validationOptions.message:`Validation failed (expected size is less than ${this.validationOptions.maxSize})`}isValid(e){return!this.validationOptions||!e||"size"in e&&e.size<this.validationOptions.maxSize}}t.MaxFileSizeValidator=r},57138:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},16160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseFilePipeBuilder=void 0;const a=n(68279),r=n(9605),i=n(10380);t.ParseFilePipeBuilder=class{constructor(){this.validators=[]}addMaxSizeValidator(e){return this.addValidator(new r.MaxFileSizeValidator(e))}addFileTypeValidator(e){return this.addValidator(new a.FileTypeValidator(e))}addValidator(e){return this.validators.push(e),this}build(e){const t=new i.ParseFilePipe({...e,validators:this.validators});return this.validators=[],t}}},10380:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseFilePipe=void 0;const a=n(58932),r=n(36398),i=n(38104),s=n(20248),o=n(84381);let c=class{constructor(e={}){const{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST,validators:a=[],fileIsRequired:r}=e;this.exceptionFactory=t||(e=>new s.HttpErrorByCode[n](e)),this.validators=a,this.fileIsRequired=r??!0}async transform(e){const t=this.thereAreNoFilesIn(e);if(t&&this.fileIsRequired)throw this.exceptionFactory("File is required");return!t&&this.validators.length&&await this.validateFilesOrFile(e),e}async validateFilesOrFile(e){Array.isArray(e)?await Promise.all(e.map((e=>this.validate(e)))):await this.validate(e)}thereAreNoFilesIn(e){const t=Array.isArray(e)&&(0,o.isEmpty)(e),n=(0,o.isObject)(e)&&(0,o.isEmpty)(Object.keys(e));return(0,o.isUndefined)(e)||t||n}async validate(e){for(const t of this.validators)await this.validateOrThrow(e,t);return e}async validateOrThrow(e,t){if(!await t.isValid(e)){const n=t.buildErrorMessage(e);throw this.exceptionFactory(n)}}getValidators(){return this.validators}};t.ParseFilePipe=c,t.ParseFilePipe=c=a.__decorate([(0,r.Injectable)(),a.__param(0,(0,r.Optional)()),a.__metadata("design:paramtypes",[Object])],c)},26555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(13482),t),a.__exportStar(n(67828),t),a.__exportStar(n(70871),t),a.__exportStar(n(83404),t),a.__exportStar(n(8029),t),a.__exportStar(n(75652),t),a.__exportStar(n(69610),t),a.__exportStar(n(21968),t),a.__exportStar(n(12698),t)},67828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseArrayPipe=void 0;const a=n(58932),r=n(58662),i=n(7923),s=n(14274),o=n(20248),c=n(84381),u=n(21968),l="Validation failed (parsable array expected)";let p=class{constructor(e={}){this.options=e,this.validationPipe=new u.ValidationPipe({transform:!0,validateCustomDecorators:!0,...e});const{exceptionFactory:t,errorHttpStatusCode:n=s.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new o.HttpErrorByCode[n](e))}async transform(e,t){if(!e&&!this.options.optional)throw this.exceptionFactory(l);if((0,c.isNil)(e)&&this.options.optional)return e;if(!Array.isArray(e)){if(!(0,c.isString)(e))throw this.exceptionFactory(l);try{e=e.trim().split(this.options.separator||",")}catch{throw this.exceptionFactory(l)}}if(this.options.items){const t={metatype:this.options.items,type:"query"},n=this.isExpectedTypePrimitive(),a=(e,a)=>{if(this.options.items!==String)try{e=JSON.parse(e)}catch{}return n?this.validatePrimitive(e,a):this.validationPipe.transform(e,t)};if(!1===this.options.stopAtFirstError){let t=[];const n=e;for(let e=0;e<n.length;e++)try{n[e]=await a(n[e])}catch(n){let a;if(n.getResponse){const t=n.getResponse();a=Array.isArray(t.message)?t.message.map((t=>`[${e}] ${t}`)):`[${e}] ${t.message}`}else a=n;t=t.concat(a)}if(t.length>0)throw this.exceptionFactory(t);return n}e=await Promise.all(e.map(a))}return e}isExpectedTypePrimitive(){return[Boolean,Number,String].includes(this.options.items)}validatePrimitive(e,t){if(this.options.items===Number){const n=null!==e&&""!==e?+e:NaN;if(isNaN(n))throw this.exceptionFactory(((0,c.isUndefined)(t)?"":`[${t}] `)+"item must be a number");return n}if(this.options.items===String){if(!(0,c.isString)(e))return`${e}`}else if(this.options.items===Boolean&&"boolean"!=typeof e)throw this.exceptionFactory(((0,c.isUndefined)(t)?"":`[${t}] `)+"item must be a boolean value");return e}};t.ParseArrayPipe=p,t.ParseArrayPipe=p=a.__decorate([(0,r.Injectable)(),a.__param(0,(0,i.Optional)()),a.__metadata("design:paramtypes",[Object])],p)},70871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseBoolPipe=void 0;const a=n(58932),r=n(58662),i=n(7923),s=n(14274),o=n(20248),c=n(84381);let u=class{constructor(e){this.options=e,e=e||{};const{exceptionFactory:t,errorHttpStatusCode:n=s.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new o.HttpErrorByCode[n](e))}async transform(e,t){if((0,c.isNil)(e)&&this.options?.optional)return e;if(this.isTrue(e))return!0;if(this.isFalse(e))return!1;throw this.exceptionFactory("Validation failed (boolean string is expected)")}isTrue(e){return!0===e||"true"===e}isFalse(e){return!1===e||"false"===e}};t.ParseBoolPipe=u,t.ParseBoolPipe=u=a.__decorate([(0,r.Injectable)(),a.__param(0,(0,i.Optional)()),a.__metadata("design:paramtypes",[Object])],u)},75652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseEnumPipe=void 0;const a=n(58932),r=n(36398),i=n(11353),s=n(20248),o=n(84381);let c=class{constructor(e,t){if(this.enumType=e,this.options=t,!e)throw new Error('"ParseEnumPipe" requires "enumType" argument specified (to validate input values).');t=t||{};const{exceptionFactory:n,errorHttpStatusCode:a=i.HttpStatus.BAD_REQUEST}=t;this.exceptionFactory=n||(e=>new s.HttpErrorByCode[a](e))}async transform(e,t){if((0,o.isNil)(e)&&this.options?.optional)return e;if(!this.isEnum(e))throw this.exceptionFactory("Validation failed (enum string is expected)");return e}isEnum(e){return Object.keys(this.enumType).map((e=>this.enumType[e])).includes(e)}};t.ParseEnumPipe=c,t.ParseEnumPipe=c=a.__decorate([(0,r.Injectable)(),a.__param(1,(0,r.Optional)()),a.__metadata("design:paramtypes",[Object,Object])],c)},8029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseFloatPipe=void 0;const a=n(58932),r=n(36398),i=n(11353),s=n(20248),o=n(84381);let c=class{constructor(e){this.options=e,e=e||{};const{exceptionFactory:t,errorHttpStatusCode:n=i.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new s.HttpErrorByCode[n](e))}async transform(e,t){if((0,o.isNil)(e)&&this.options?.optional)return e;if(!this.isNumeric(e))throw this.exceptionFactory("Validation failed (numeric string is expected)");return parseFloat(e)}isNumeric(e){return["string","number"].includes(typeof e)&&!isNaN(parseFloat(e))&&isFinite(e)}};t.ParseFloatPipe=c,t.ParseFloatPipe=c=a.__decorate([(0,r.Injectable)(),a.__param(0,(0,r.Optional)()),a.__metadata("design:paramtypes",[Object])],c)},83404:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseIntPipe=void 0;const a=n(58932),r=n(58662),i=n(7923),s=n(14274),o=n(20248),c=n(84381);let u=class{constructor(e){this.options=e,e=e||{};const{exceptionFactory:t,errorHttpStatusCode:n=s.HttpStatus.BAD_REQUEST}=e;this.exceptionFactory=t||(e=>new o.HttpErrorByCode[n](e))}async transform(e,t){if((0,c.isNil)(e)&&this.options?.optional)return e;if(!this.isNumeric(e))throw this.exceptionFactory("Validation failed (numeric string is expected)");return parseInt(e,10)}isNumeric(e){return["string","number"].includes(typeof e)&&/^-?\d+$/.test(e)&&isFinite(e)}};t.ParseIntPipe=u,t.ParseIntPipe=u=a.__decorate([(0,r.Injectable)(),a.__param(0,(0,i.Optional)()),a.__metadata("design:paramtypes",[Object])],u)},69610:(e,t,n)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.ParseUUIDPipe=void 0;const r=n(58932),i=n(58662),s=n(7923),o=n(14274),c=n(20248),u=n(84381);let l=a=class{constructor(e){this.options=e,e=e||{};const{exceptionFactory:t,errorHttpStatusCode:n=o.HttpStatus.BAD_REQUEST,version:a}=e;this.version=a,this.exceptionFactory=t||(e=>new c.HttpErrorByCode[n](e))}async transform(e,t){if((0,u.isNil)(e)&&this.options?.optional)return e;if(!this.isUUID(e,this.version))throw this.exceptionFactory(`Validation failed (uuid${this.version?` v ${this.version}`:""} is expected)`);return e}isUUID(e,t="all"){if(!(0,u.isString)(e))throw this.exceptionFactory("The value passed as UUID is not a string");const n=a.uuidRegExps[t];return n?.test(e)}};t.ParseUUIDPipe=l,l.uuidRegExps={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},t.ParseUUIDPipe=l=a=r.__decorate([(0,i.Injectable)(),r.__param(0,(0,s.Optional)()),r.__metadata("design:paramtypes",[Object])],l)},21968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationPipe=void 0;const a=n(58932),r=n(95392),i=n(39023),s=n(91804),o=n(36398),c=n(14274),u=n(20248),l=n(23418),p=n(84381);let d={},m={},f=class{constructor(e){e=e||{};const{transform:t,disableErrorMessages:n,errorHttpStatusCode:a,expectedType:r,transformOptions:i,validateCustomDecorators:s,...o}=e;this.validatorOptions={forbidUnknownValues:!1,...o},this.isTransformEnabled=!!t,this.transformOptions=i,this.isDetailedOutputDisabled=n,this.validateCustomDecorators=s||!1,this.errorHttpStatusCode=a||c.HttpStatus.BAD_REQUEST,this.expectedType=r,this.exceptionFactory=e.exceptionFactory||this.createExceptionFactory(),d=this.loadValidator(e.validatorPackage),m=this.loadTransformer(e.transformerPackage)}loadValidator(e){return e??(0,l.loadPackage)("class-validator","ValidationPipe",(()=>n(97403)))}loadTransformer(e){return e??(0,l.loadPackage)("class-transformer","ValidationPipe",(()=>n(44922)))}async transform(e,t){this.expectedType&&(t={...t,metatype:this.expectedType});const n=t.metatype;if(!n||!this.toValidate(t))return this.isTransformEnabled?this.transformPrimitive(e,t):e;const a=e,r=(e=this.toEmptyIfNil(e))!==a,i=this.isPrimitive(e);this.stripProtoKeys(e);let s=m.plainToClass(n,e,this.transformOptions);const o=s,c=s.constructor!==n;c&&!i?s.constructor=n:c&&(s={constructor:n});const u=await this.validate(s,this.validatorOptions);if(u.length>0)throw await this.exceptionFactory(u);if(i&&(s=o),this.isTransformEnabled)return s;if(r)return a;return Object.keys(this.validatorOptions).length>1?m.classToPlain(s,this.transformOptions):e}createExceptionFactory(){return(e=[])=>{if(this.isDetailedOutputDisabled)return new u.HttpErrorByCode[this.errorHttpStatusCode];const t=this.flattenValidationErrors(e);return new u.HttpErrorByCode[this.errorHttpStatusCode](t)}}toValidate(e){const{metatype:t,type:n}=e;if("custom"===n&&!this.validateCustomDecorators)return!1;return![String,Boolean,Number,Array,Object,Buffer,Date].some((e=>t===e))&&!(0,p.isNil)(t)}transformPrimitive(e,t){if(!t.data)return e;const{type:n,metatype:a}=t;if("param"!==n&&"query"!==n)return e;if(a===Boolean){if((0,p.isUndefined)(e))return;return!0===e||"true"===e}return a===Number?+e:e}toEmptyIfNil(e){return(0,p.isNil)(e)?{}:e}stripProtoKeys(e){if(null!=e&&"object"==typeof e&&!i.types.isTypedArray(e))if(Array.isArray(e))for(const t of e)this.stripProtoKeys(t);else{delete e.__proto__;for(const t in e)this.stripProtoKeys(e[t])}}isPrimitive(e){return["number","boolean","string"].includes(typeof e)}validate(e,t){return d.validate(e,t)}flattenValidationErrors(e){return(0,r.iterate)(e).map((e=>this.mapChildrenToValidationErrors(e))).flatten().filter((e=>!!e.constraints)).map((e=>Object.values(e.constraints))).flatten().toArray()}mapChildrenToValidationErrors(e,t){if(!e.children||!e.children.length)return[e];const n=[];t=t?`${t}.${e.property}`:e.property;for(const a of e.children)a.children&&a.children.length&&n.push(...this.mapChildrenToValidationErrors(a,t)),n.push(this.prependConstraintsWithParentProp(t,a));return n}prependConstraintsWithParentProp(e,t){const n={};for(const a in t.constraints)n[a]=`${e}.${t.constraints[a]}`;return{...t,constraints:n}}};t.ValidationPipe=f,t.ValidationPipe=f=a.__decorate([(0,o.Injectable)(),a.__param(0,(0,s.Optional)()),a.__metadata("design:paramtypes",[Object])],f)},22716:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CLASS_SERIALIZER_OPTIONS=void 0,t.CLASS_SERIALIZER_OPTIONS="class_serializer:options"},79042:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClassSerializerInterceptor=void 0;const a=n(58932),r=n(1390),i=n(36398),s=n(24455),o=n(23418),c=n(84381),u=n(22716);let l={};let p=class{constructor(e,t={}){this.reflector=e,this.defaultOptions=t,l=t?.transformerPackage??(0,o.loadPackage)("class-transformer","ClassSerializerInterceptor",(()=>n(44922))),t?.transformerPackage||n(44922)}intercept(e,t){const n=this.getContextOptions(e),a={...this.defaultOptions,...n};return t.handle().pipe((0,r.map)((e=>this.serialize(e,a))))}serialize(e,t){return!(0,c.isObject)(e)||e instanceof s.StreamableFile?e:Array.isArray(e)?e.map((e=>this.transformToPlain(e,t))):this.transformToPlain(e,t)}transformToPlain(e,t){if(!e)return e;if(!t.type)return l.classToPlain(e,t);if(e instanceof t.type)return l.classToPlain(e,t);const n=l.plainToClass(t.type,e);return l.classToPlain(n,t)}getContextOptions(e){return this.reflector.getAllAndOverride(u.CLASS_SERIALIZER_OPTIONS,[e.getHandler(),e.getClass()])}};t.ClassSerializerInterceptor=p,t.ClassSerializerInterceptor=p=a.__decorate([(0,i.Injectable)(),a.__param(0,(0,i.Inject)("Reflector")),a.__param(1,(0,i.Optional)()),a.__metadata("design:paramtypes",[Object,Object])],p)},77677:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},12405:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(58932).__exportStar(n(91995),t)},91995:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SerializeOptions=void 0;const a=n(91804),r=n(22716);t.SerializeOptions=e=>(0,a.SetMetadata)(r.CLASS_SERIALIZER_OPTIONS,e)},76794:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(79042),t),a.__exportStar(n(12405),t),a.__exportStar(n(77677),t)},7081:(e,t,n)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleLogger=void 0;const r=n(58932),i=n(36398),s=n(43786),o=n(84381),c=n(87068),u=["log","error","warn","debug","verbose","fatal"],l=new Intl.DateTimeFormat(void 0,{year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",day:"2-digit",month:"2-digit"});let p=a=class{constructor(e,t={}){this.context=e,this.options=t,t.logLevels||(t.logLevels=u),e&&(this.originalContext=e)}log(e,...t){if(!this.isLevelEnabled("log"))return;const{messages:n,context:a}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,a,"log")}error(e,...t){if(!this.isLevelEnabled("error"))return;const{messages:n,context:a,stack:r}=this.getContextAndStackAndMessagesToPrint([e,...t]);this.printMessages(n,a,"error","stderr"),this.printStackTrace(r)}warn(e,...t){if(!this.isLevelEnabled("warn"))return;const{messages:n,context:a}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,a,"warn")}debug(e,...t){if(!this.isLevelEnabled("debug"))return;const{messages:n,context:a}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,a,"debug")}verbose(e,...t){if(!this.isLevelEnabled("verbose"))return;const{messages:n,context:a}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,a,"verbose")}fatal(e,...t){if(!this.isLevelEnabled("fatal"))return;const{messages:n,context:a}=this.getContextAndMessagesToPrint([e,...t]);this.printMessages(n,a,"fatal")}setLogLevels(e){this.options||(this.options={}),this.options.logLevels=e}setContext(e){this.context=e}resetContext(){this.context=this.originalContext}isLevelEnabled(e){const t=this.options?.logLevels;return(0,c.isLogLevelEnabled)(e,t)}getTimestamp(){return l.format(Date.now())}printMessages(e,t="",n="log",a){e.forEach((e=>{const r=this.formatPid(process.pid),i=this.formatContext(t),s=this.updateAndGetTimestampDiff(),o=n.toUpperCase().padStart(7," "),c=this.formatMessage(n,e,r,o,i,s);process[a??"stdout"].write(c)}))}formatPid(e){return`[Nest] ${e} - `}formatContext(e){return e?(0,s.yellow)(`[${e}] `):""}formatMessage(e,t,n,a,r,i){const s=this.stringifyMessage(t,e);return n=this.colorize(n,e),a=this.colorize(a,e),`${n}${this.getTimestamp()} ${a} ${r}${s}${i}\n`}stringifyMessage(e,t){if((0,o.isFunction)(e)){return Function.prototype.toString.call(e).startsWith("class ")?this.stringifyMessage(e.name,t):this.stringifyMessage(e(),t)}return(0,o.isPlainObject)(e)||Array.isArray(e)?`${this.colorize("Object:",t)}\n${JSON.stringify(e,((e,t)=>"bigint"==typeof t?t.toString():t),2)}\n`:this.colorize(e,t)}colorize(e,t){return this.getColorByLogLevel(t)(e)}printStackTrace(e){e&&process.stderr.write(`${e}\n`)}updateAndGetTimestampDiff(){const e=a.lastTimestampAt&&this.options?.timestamp?this.formatTimestampDiff(Date.now()-a.lastTimestampAt):"";return a.lastTimestampAt=Date.now(),e}formatTimestampDiff(e){return(0,s.yellow)(` +${e}ms`)}getContextAndMessagesToPrint(e){if(e?.length<=1)return{messages:e,context:this.context};const t=e[e.length-1];return(0,o.isString)(t)?{context:t,messages:e.slice(0,e.length-1)}:{messages:e,context:this.context}}getContextAndStackAndMessagesToPrint(e){if(2===e.length)return this.isStackFormat(e[1])?{messages:[e[0]],stack:e[1],context:this.context}:{messages:[e[0]],context:e[1]};const{messages:t,context:n}=this.getContextAndMessagesToPrint(e);if(t?.length<=1)return{messages:t,context:n};const a=t[t.length-1];return(0,o.isString)(a)||(0,o.isUndefined)(a)?{stack:a,messages:t.slice(0,t.length-1),context:n}:{messages:t,context:n}}isStackFormat(e){return!(!(0,o.isString)(e)&&!(0,o.isUndefined)(e))&&/^(.)+\n\s+at .+:\d+:\d+/.test(e)}getColorByLogLevel(e){switch(e){case"debug":return s.clc.magentaBright;case"warn":return s.clc.yellow;case"error":return s.clc.red;case"verbose":return s.clc.cyanBright;case"fatal":return s.clc.bold;default:return s.clc.green}}};t.ConsoleLogger=p,t.ConsoleLogger=p=a=r.__decorate([(0,i.Injectable)(),r.__param(0,(0,i.Optional)()),r.__param(1,(0,i.Optional)()),r.__metadata("design:paramtypes",[String,Object])],p)},60338:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(58932);a.__exportStar(n(7081),t),a.__exportStar(n(19309),t)},19309:(e,t,n)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;const r=n(58932),i=n(36398),s=n(84381),o=n(7081),c=n(87068),u=new o.ConsoleLogger,l=new Intl.DateTimeFormat(void 0,{year:"numeric",hour:"numeric",minute:"numeric",second:"numeric",day:"2-digit",month:"2-digit"});let p=a=class{constructor(e,t={}){this.context=e,this.options=t}get localInstance(){if(a.staticInstanceRef===u)return this.registerLocalInstanceRef();if(a.staticInstanceRef instanceof a){if(Object.getPrototypeOf(a.staticInstanceRef).constructor===a)return this.registerLocalInstanceRef()}return a.staticInstanceRef}error(e,...t){t=this.context?(t.length?t:[void 0]).concat(this.context):t,this.localInstance?.error(e,...t)}log(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.log(e,...t)}warn(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.warn(e,...t)}debug(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.debug?.(e,...t)}verbose(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.verbose?.(e,...t)}fatal(e,...t){t=this.context?t.concat(this.context):t,this.localInstance?.fatal?.(e,...t)}static error(e,...t){this.staticInstanceRef?.error(e,...t)}static log(e,...t){this.staticInstanceRef?.log(e,...t)}static warn(e,...t){this.staticInstanceRef?.warn(e,...t)}static debug(e,...t){this.staticInstanceRef?.debug?.(e,...t)}static verbose(e,...t){this.staticInstanceRef?.verbose?.(e,...t)}static fatal(e,...t){this.staticInstanceRef?.fatal?.(e,...t)}static flush(){this.isBufferAttached=!1,this.logBuffer.forEach((e=>e.methodRef(...e.arguments))),this.logBuffer=[]}static attachBuffer(){this.isBufferAttached=!0}static detachBuffer(){this.isBufferAttached=!1}static getTimestamp(){return l.format(Date.now())}static overrideLogger(e){if(Array.isArray(e))return a.logLevels=e,this.staticInstanceRef?.setLogLevels(e);if((0,s.isObject)(e)){if(e instanceof a&&e.constructor!==a){const e='Using the "extends Logger" instruction is not allowed in Nest v9. Please, use "extends ConsoleLogger" instead.';throw this.staticInstanceRef.error(e),new Error(e)}this.staticInstanceRef=e}else this.staticInstanceRef=void 0}static isLevelEnabled(e){const t=a.logLevels;return(0,c.isLogLevelEnabled)(e,t)}registerLocalInstanceRef(){return this.localInstanceRef||(this.localInstanceRef=new o.ConsoleLogger(this.context,{timestamp:this.options?.timestamp,logLevels:a.logLevels})),this.localInstanceRef}};t.Logger=p,p.logBuffer=new Array,p.staticInstanceRef=u,p.WrapBuffer=(e,t,n)=>{const r=n.value;n.value=function(...e){if(!a.isBufferAttached)return r.call(this,...e);a.logBuffer.push({methodRef:r.bind(this),arguments:e})}},r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p.prototype,"error",null),r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p.prototype,"log",null),r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p.prototype,"warn",null),r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p.prototype,"debug",null),r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p.prototype,"verbose",null),r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p.prototype,"fatal",null),r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p,"error",null),r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p,"log",null),r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p,"warn",null),r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p,"debug",null),r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p,"verbose",null),r.__decorate([p.WrapBuffer,r.__metadata("design:type",Function),r.__metadata("design:paramtypes",[Object,Object]),r.__metadata("design:returntype",void 0)],p,"fatal",null),t.Logger=p=a=r.__decorate([(0,i.Injectable)(),r.__param(0,(0,i.Optional)()),r.__param(1,(0,i.Optional)()),r.__metadata("design:paramtypes",[String,Object])],p)},87068:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(58932).__exportStar(n(90390),t)},90390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLogLevelEnabled=void 0;const n={verbose:0,debug:1,log:2,warn:3,error:4,fatal:5};t.isLogLevelEnabled=function(e,t){if(!t||Array.isArray(t)&&0===t?.length)return!1;if(t.includes(e))return!0;const a=t.map((e=>n[e])).sort(((e,t)=>t-e))?.[0];return n[e]>=a}},34432:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignCustomParameterMetadata=void 0;const a=n(92480);t.assignCustomParameterMetadata=function(e,t,n,r,i,...s){return{...e,[`${t}${a.CUSTOM_ROUTE_ARGS_METADATA}:${n}`]:{index:n,factory:r,data:i,pipes:s}}}},43786:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yellow=t.clc=void 0;const n=e=>t=>process.env.NO_COLOR?t:e(t);t.clc={bold:n((e=>`${e}`)),green:n((e=>`${e}`)),yellow:n((e=>`${e}`)),red:n((e=>`${e}`)),magentaBright:n((e=>`${e}`)),cyanBright:n((e=>`${e}`))},t.yellow=n((e=>`${e}`))},50239:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendArrayMetadata=void 0,t.extendArrayMetadata=function(e,t,n){const a=[...Reflect.getMetadata(e,n)||[],...t];Reflect.defineMetadata(e,a,n)}},25254:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.forwardRef=void 0;t.forwardRef=e=>({forwardRef:e})},20248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HttpErrorByCode=void 0;const a=n(38104),r=n(34368);t.HttpErrorByCode={[a.HttpStatus.BAD_GATEWAY]:r.BadGatewayException,[a.HttpStatus.BAD_REQUEST]:r.BadRequestException,[a.HttpStatus.CONFLICT]:r.ConflictException,[a.HttpStatus.FORBIDDEN]:r.ForbiddenException,[a.HttpStatus.GATEWAY_TIMEOUT]:r.GatewayTimeoutException,[a.HttpStatus.GONE]:r.GoneException,[a.HttpStatus.I_AM_A_TEAPOT]:r.ImATeapotException,[a.HttpStatus.INTERNAL_SERVER_ERROR]:r.InternalServerErrorException,[a.HttpStatus.METHOD_NOT_ALLOWED]:r.MethodNotAllowedException,[a.HttpStatus.NOT_ACCEPTABLE]:r.NotAcceptableException,[a.HttpStatus.NOT_FOUND]:r.NotFoundException,[a.HttpStatus.NOT_IMPLEMENTED]:r.NotImplementedException,[a.HttpStatus.PAYLOAD_TOO_LARGE]:r.PayloadTooLargeException,[a.HttpStatus.PRECONDITION_FAILED]:r.PreconditionFailedException,[a.HttpStatus.REQUEST_TIMEOUT]:r.RequestTimeoutException,[a.HttpStatus.SERVICE_UNAVAILABLE]:r.ServiceUnavailableException,[a.HttpStatus.UNAUTHORIZED]:r.UnauthorizedException,[a.HttpStatus.UNPROCESSABLE_ENTITY]:r.UnprocessableEntityException,[a.HttpStatus.UNSUPPORTED_MEDIA_TYPE]:r.UnsupportedMediaTypeException}},91851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(58932).__exportStar(n(25254),t)},23418:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadPackage=void 0;const a=n(19309),r=new a.Logger("PackageLoader");t.loadPackage=function(e,t,i){try{return i?i():n(16742)(e)}catch(n){r.error(`The "${s=e}" package is missing. Please, make sure to install this library ($ npm install ${s}) to take advantage of ${t}.`),a.Logger.flush(),process.exit(1)}var s}},20176:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomStringGenerator=void 0;const a=n(17063);t.randomStringGenerator=()=>(0,a.uid)(21)},84381:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSymbol=t.isEmpty=t.isNil=t.isConstructor=t.isNumber=t.isString=t.isFunction=t.stripEndSlash=t.normalizePath=t.addLeadingSlash=t.isPlainObject=t.isObject=t.isUndefined=void 0;t.isUndefined=e=>void 0===e;t.isObject=e=>!(0,t.isNil)(e)&&"object"==typeof e;t.isPlainObject=e=>{if(!(0,t.isObject)(e))return!1;const n=Object.getPrototypeOf(e);if(null===n)return!0;const a=Object.prototype.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof a&&a instanceof a&&Function.prototype.toString.call(a)===Function.prototype.toString.call(Object)};t.addLeadingSlash=e=>e&&"string"==typeof e?"/"!==e.charAt(0)?"/"+e:e:"";t.normalizePath=e=>e?e.startsWith("/")?("/"+e.replace(/\/+$/,"")).replace(/\/+/g,"/"):"/"+e.replace(/\/+$/,""):"/";t.stripEndSlash=e=>"/"===e[e.length-1]?e.slice(0,e.length-1):e;t.isFunction=e=>"function"==typeof e;t.isString=e=>"string"==typeof e;t.isNumber=e=>"number"==typeof e;t.isConstructor=e=>"constructor"===e;t.isNil=e=>(0,t.isUndefined)(e)||null===e;t.isEmpty=e=>!(e&&e.length>0);t.isSymbol=e=>"symbol"==typeof e},17797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateEach=t.InvalidDecoratorItemException=void 0;class n extends Error{constructor(e,t,n){const a=`Invalid ${t} passed to ${e}() decorator (${n}).`;super(a),this.msg=a}what(){return this.msg}}t.InvalidDecoratorItemException=n,t.validateEach=function(e,t,a,r,i){if(!e||!e.name)return!0;if(t.some((e=>!a(e))))throw new n(r,i,e.name);return!0}},76161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateModuleKeys=t.INVALID_MODULE_CONFIG_MESSAGE=void 0;const a=n(92480);t.INVALID_MODULE_CONFIG_MESSAGE=(e,t)=>`Invalid property '${t}' passed into the @Module() decorator.`;const r=[a.MODULE_METADATA.IMPORTS,a.MODULE_METADATA.EXPORTS,a.MODULE_METADATA.CONTROLLERS,a.MODULE_METADATA.PROVIDERS];t.validateModuleKeys=function(e){e.forEach((e=>{if(!r.includes(e))throw new Error(t.INVALID_MODULE_CONFIG_MESSAGE`${e}`)}))}},16742:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=16742,e.exports=t},90216:(e,t,n)=>{"use strict";const a=n(53273);function r(e,t){if(!e)return e;const n=(t=t||{}).align||"center";if("left"===n)return e;const r=t.split||"\n",o=t.pad||" ",c="right"!==n?i:s;let u,l=!1;Array.isArray(e)||(l=!0,e=String(e).split(r));let p=0;return e=e.map((function(e){return e=String(e),u=a(e),p=Math.max(u,p),{str:e,width:u}})).map((function(e){return new Array(c(p,e.width)+1).join(o)+e.str})),l?e.join(r):e}function i(e,t){return Math.floor((e-t)/2)}function s(e,t){return e-t}r.left=function(e){return r(e,{align:"left"})},r.center=function(e){return r(e,{align:"center"})},r.right=function(e){return r(e,{align:"right"})},e.exports=r},56954:e=>{"use strict";e.exports=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}},12701:(e,t,n)=>{"use strict";e=n.nmd(e);const a=(e,t)=>(...n)=>`[${e(...n)+t}m`,r=(e,t)=>(...n)=>{const a=e(...n);return`[${38+t};5;${a}m`},i=(e,t)=>(...n)=>{const a=e(...n);return`[${38+t};2;${a[0]};${a[1]};${a[2]}m`},s=e=>e,o=(e,t,n)=>[e,t,n],c=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const a=n();return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0}),a},enumerable:!0,configurable:!0})};let u;const l=(e,t,a,r)=>{void 0===u&&(u=n(79307));const i=r?10:0,s={};for(const[n,r]of Object.entries(u)){const o="ansi16"===n?"ansi":n;n===t?s[o]=e(a,i):"object"==typeof r&&(s[o]=e(r[t],i))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,a]of Object.entries(t)){for(const[n,r]of Object.entries(a))t[n]={open:`[${r[0]}m`,close:`[${r[1]}m`},a[n]=t[n],e.set(r[0],r[1]);Object.defineProperty(t,n,{value:a,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="",t.bgColor.close="",c(t.color,"ansi",(()=>l(a,"ansi16",s,!1))),c(t.color,"ansi256",(()=>l(r,"ansi256",s,!1))),c(t.color,"ansi16m",(()=>l(i,"rgb",o,!1))),c(t.bgColor,"ansi",(()=>l(a,"ansi16",s,!0))),c(t.bgColor,"ansi256",(()=>l(r,"ansi256",s,!0))),c(t.bgColor,"ansi16m",(()=>l(i,"rgb",o,!0))),t}})},58146:(e,t,n)=>{e.exports={parallel:n(94691),serial:n(65332),serialOrdered:n(91407)}},37440:e=>{function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}}},7578:(e,t,n)=>{var a=n(7962);e.exports=function(e){var t=!1;return a((function(){t=!0})),function(n,r){t?e(n,r):a((function(){e(n,r)}))}}},7962:e=>{e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},15276:(e,t,n)=>{var a=n(7578),r=n(37440);e.exports=function(e,t,n,i){var s=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[s]=function(e,t,n,r){var i;i=2==e.length?e(n,a(r)):e(n,t,a(r));return i}(t,s,e[s],(function(e,t){s in n.jobs&&(delete n.jobs[s],e?r(n):n.results[s]=t,i(e,n.results))}))}},54287:e=>{e.exports=function(e,t){var n=!Array.isArray(e),a={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&a.keyedList.sort(n?t:function(n,a){return t(e[n],e[a])});return a}},25965:(e,t,n)=>{var a=n(37440),r=n(7578);e.exports=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,a(this),r(e)(null,this.results)}},94691:(e,t,n)=>{var a=n(15276),r=n(54287),i=n(25965);e.exports=function(e,t,n){var s=r(e);for(;s.index<(s.keyedList||e).length;)a(e,t,s,(function(e,t){e?n(e,t):0!==Object.keys(s.jobs).length||n(null,s.results)})),s.index++;return i.bind(s,n)}},65332:(e,t,n)=>{var a=n(91407);e.exports=function(e,t,n){return a(e,t,null,n)}},91407:(e,t,n)=>{var a=n(15276),r=n(54287),i=n(25965);function s(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,s){var o=r(e,n);return a(e,t,o,(function n(r,i){r?s(r,i):(o.index++,o.index<(o.keyedList||e).length?a(e,t,o,n):s(null,o.results))})),i.bind(o,s)},e.exports.ascending=s,e.exports.descending=function(e,t){return-1*s(e,t)}},48844:(e,t,n)=>{"use strict";const a=n(53273),r=n(96895),i=n(13610),s=n(99547),o=n(53019),c=n(90216),u=n(18785),l="\n",p=" ",d=e=>"number"==typeof e?{top:e,right:3*e,bottom:e,left:3*e}:{top:0,right:0,bottom:0,left:0,...e},m=e=>e.match(/^#(?:[0-f]{3}){1,2}$/i),f=e=>"string"==typeof e&&(r[e]||m(e));e.exports=(e,t)=>{(t={padding:0,borderStyle:"single",dimBorder:!1,textAlignment:"left",float:"left",titleAlignment:"left",...t}).align&&(t.textAlignment=t.align);if(t.borderColor&&!f(t.borderColor))throw new Error(`${t.borderColor} is not a valid borderColor`);if(t.backgroundColor&&!f(t.backgroundColor))throw new Error(`${t.backgroundColor} is not a valid backgroundColor`);const n=(e=>{const t=["topLeft","topRight","bottomRight","bottomLeft","vertical","horizontal"];let n;if("string"==typeof e){if(n=s[e],!n)throw new TypeError(`Invalid border style: ${e}`)}else{for(const n of t)if(!e[n]||"string"!=typeof e[n])throw new TypeError(`Invalid border style: ${n}`);n=e}return n})(t.borderStyle),h=d(t.padding),b=d(t.margin),g=e=>{const n=t.borderColor?(a=t.borderColor,m(a)?r.hex(a):r[a])(e):e;var a;return t.dimBorder?r.dim(n):n},y=e=>{return t.backgroundColor?(n=t.backgroundColor,m(n)?r.bgHex(n):r[o(["bg",n])])(e):e;var n},v=(()=>{const{env:e,stdout:t,stderr:n}=process;return t&&t.columns?t.columns:n&&n.columns?n.columns:e.COLUMNS?Number.parseInt(e.COLUMNS,10):80})();let _=i(u(e,v-2,{hard:!0,trim:!1}))+h.left+h.right,E=t.title&&t.title.slice(0,v-4-b.left-b.right);if(E&&(E=` ${E} `,a(E)>_&&(_=a(E))),b.left&&b.right&&_+2+b.left+b.right>v){const e=(v-_-2)/(b.left+b.right);b.left=Math.max(0,Math.floor(b.left*e)),b.right=Math.max(0,Math.floor(b.right*e))}_=Math.min(_,v-2-b.left-b.right),e=((e,t,n,r)=>{let s=(e=c(e,{align:r})).split(l);const o=i(e),d=n-t.left-t.right;if(o>d){const e=[];for(const t of s){const n=u(t,d,{hard:!0}),i=c(n,{align:r}).split("\n"),s=Math.max(...i.map((e=>a(e))));for(const t of i){let n;switch(r){case"center":n=p.repeat((d-s)/2)+t;break;case"right":n=p.repeat(d-s)+t;break;default:n=t}e.push(n)}}s=e}"center"===r&&o<d?s=s.map((e=>p.repeat((d-o)/2)+e)):"right"===r&&o<d&&(s=s.map((e=>p.repeat(d-o)+e)));const m=p.repeat(t.left),f=p.repeat(t.right);return s=s.map((e=>m+e+f)),s=s.map((e=>n-a(e)>0?e+p.repeat(n-a(e)):e)),t.top>0&&(s=new Array(t.top).fill(p.repeat(n)).concat(s)),t.bottom>0&&(s=s.concat(new Array(t.bottom).fill(p.repeat(n)))),s.join(l)})(e,h,_,t.textAlignment);let x=p.repeat(b.left);if("center"===t.float){const e=Math.max((v-_-2)/2,0);x=p.repeat(e)}else if("right"===t.float){const e=Math.max(v-_-b.right-2,0);x=p.repeat(e)}const T=n.horizontal.repeat(_),O=g(l.repeat(b.top)+x+n.topLeft+(E?((e,t,n)=>{let r="";const i=a(e);switch(n){case"left":r=e+t.slice(i);break;case"right":r=t.slice(i)+e;break;default:r=(t=t.slice(i)).length%2==1?(t=t.slice(Math.floor(t.length/2))).slice(1)+e+t:(t=t.slice(t.length/2))+e+t}return r})(E,T,t.titleAlignment):T)+n.topRight),D=g(x+n.bottomLeft+T+n.bottomRight+l.repeat(b.bottom)),w=g(n.vertical),S=_+2+b.left>=v?"":l;return O+S+e.split(l).map((e=>x+w+y(e)+w)).join(S)+S+D},e.exports._borderStyles=s},53019:e=>{"use strict";const t=/[\p{Lu}]/u,n=/[\p{Ll}]/u,a=/^[\p{Lu}](?![\p{Lu}])/gu,r=/([\p{Alpha}\p{N}_]|$)/u,i=/[_.\- ]+/,s=new RegExp("^"+i.source),o=new RegExp(i.source+r.source,"gu"),c=new RegExp("\\d+"+r.source,"gu"),u=(e,r)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(r={pascalCase:!1,preserveConsecutiveUppercase:!1,...r},0===(e=Array.isArray(e)?e.map((e=>e.trim())).filter((e=>e.length)).join("-"):e.trim()).length)return"";const i=!1===r.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(r.locale),u=!1===r.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(r.locale);if(1===e.length)return r.pascalCase?u(e):i(e);return e!==i(e)&&(e=((e,a,r)=>{let i=!1,s=!1,o=!1;for(let c=0;c<e.length;c++){const u=e[c];i&&t.test(u)?(e=e.slice(0,c)+"-"+e.slice(c),i=!1,o=s,s=!0,c++):s&&o&&n.test(u)?(e=e.slice(0,c-1)+"-"+e.slice(c-1),o=s,s=!1,i=!0):(i=a(u)===u&&r(u)!==u,o=s,s=r(u)===u&&a(u)!==u)}return e})(e,i,u)),e=e.replace(s,""),e=r.preserveConsecutiveUppercase?((e,t)=>(a.lastIndex=0,e.replace(a,(e=>t(e)))))(e,i):i(e),r.pascalCase&&(e=u(e.charAt(0))+e.slice(1)),((e,t)=>(o.lastIndex=0,c.lastIndex=0,e.replace(o,((e,n)=>t(n))).replace(c,(e=>t(e)))))(e,u)};e.exports=u,e.exports.default=u},99547:(e,t,n)=>{"use strict";const a=n(88809);e.exports=a,e.exports.default=a},18138:(e,t,n)=>{const a=n(9878),r={};for(const e of Object.keys(a))r[a[e]]=e;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=i;for(const e of Object.keys(i)){if(!("channels"in i[e]))throw new Error("missing channels property: "+e);if(!("labels"in i[e]))throw new Error("missing channel labels property: "+e);if(i[e].labels.length!==i[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=i[e];delete i[e].channels,delete i[e].labels,Object.defineProperty(i[e],"channels",{value:t}),Object.defineProperty(i[e],"labels",{value:n})}i.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(t,n,a),i=Math.max(t,n,a),s=i-r;let o,c;i===r?o=0:t===i?o=(n-a)/s:n===i?o=2+(a-t)/s:a===i&&(o=4+(t-n)/s),o=Math.min(60*o,360),o<0&&(o+=360);const u=(r+i)/2;return c=i===r?0:u<=.5?s/(i+r):s/(2-i-r),[o,100*c,100*u]},i.rgb.hsv=function(e){let t,n,a,r,i;const s=e[0]/255,o=e[1]/255,c=e[2]/255,u=Math.max(s,o,c),l=u-Math.min(s,o,c),p=function(e){return(u-e)/6/l+.5};return 0===l?(r=0,i=0):(i=l/u,t=p(s),n=p(o),a=p(c),s===u?r=a-n:o===u?r=1/3+t-a:c===u&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*i,100*u]},i.rgb.hwb=function(e){const t=e[0],n=e[1];let a=e[2];const r=i.rgb.hsl(e)[0],s=1/255*Math.min(t,Math.min(n,a));return a=1-1/255*Math.max(t,Math.max(n,a)),[r,100*s,100*a]},i.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.min(1-t,1-n,1-a);return[100*((1-t-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-a-r)/(1-r)||0),100*r]},i.rgb.keyword=function(e){const t=r[e];if(t)return t;let n,i=1/0;for(const t of Object.keys(a)){const r=a[t],c=(o=r,((s=e)[0]-o[0])**2+(s[1]-o[1])**2+(s[2]-o[2])**2);c<i&&(i=c,n=t)}var s,o;return n},i.keyword.rgb=function(e){return a[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,a=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,a=a>.04045?((a+.055)/1.055)**2.4:a/12.92;return[100*(.4124*t+.3576*n+.1805*a),100*(.2126*t+.7152*n+.0722*a),100*(.0193*t+.1192*n+.9505*a)]},i.rgb.lab=function(e){const t=i.rgb.xyz(e);let n=t[0],a=t[1],r=t[2];n/=95.047,a/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*a-16,500*(n-a),200*(a-r)]},i.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;let r,i,s;if(0===n)return s=255*a,[s,s,s];r=a<.5?a*(1+n):a+n-a*n;const o=2*a-r,c=[0,0,0];for(let e=0;e<3;e++)i=t+1/3*-(e-1),i<0&&i++,i>1&&i--,s=6*i<1?o+6*(r-o)*i:2*i<1?r:3*i<2?o+(r-o)*(2/3-i)*6:o,c[e]=255*s;return c},i.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,a=e[2]/100,r=n;const i=Math.max(a,.01);a*=2,n*=a<=1?a:2-a,r*=i<=1?i:2-i;return[t,100*(0===a?2*r/(i+r):2*n/(a+n)),100*((a+n)/2)]},i.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let a=e[2]/100;const r=Math.floor(t)%6,i=t-Math.floor(t),s=255*a*(1-n),o=255*a*(1-n*i),c=255*a*(1-n*(1-i));switch(a*=255,r){case 0:return[a,c,s];case 1:return[o,a,s];case 2:return[s,a,c];case 3:return[s,o,a];case 4:return[c,s,a];case 5:return[a,s,o]}},i.hsv.hsl=function(e){const t=e[0],n=e[1]/100,a=e[2]/100,r=Math.max(a,.01);let i,s;s=(2-n)*a;const o=(2-n)*r;return i=n*r,i/=o<=1?o:2-o,i=i||0,s/=2,[t,100*i,100*s]},i.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,a=e[2]/100;const r=n+a;let i;r>1&&(n/=r,a/=r);const s=Math.floor(6*t),o=1-a;i=6*t-s,0!=(1&s)&&(i=1-i);const c=n+i*(o-n);let u,l,p;switch(s){default:case 6:case 0:u=o,l=c,p=n;break;case 1:u=c,l=o,p=n;break;case 2:u=n,l=o,p=c;break;case 3:u=n,l=c,p=o;break;case 4:u=c,l=n,p=o;break;case 5:u=o,l=n,p=c}return[255*u,255*l,255*p]},i.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,a*(1-r)+r))]},i.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,a=e[2]/100;let r,i,s;return r=3.2406*t+-1.5372*n+-.4986*a,i=-.9689*t+1.8758*n+.0415*a,s=.0557*t+-.204*n+1.057*a,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,r=Math.min(Math.max(0,r),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[255*r,255*i,255*s]},i.xyz.lab=function(e){let t=e[0],n=e[1],a=e[2];t/=95.047,n/=100,a/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,a=a>.008856?a**(1/3):7.787*a+16/116;return[116*n-16,500*(t-n),200*(n-a)]},i.lab.xyz=function(e){let t,n,a;n=(e[0]+16)/116,t=e[1]/500+n,a=n-e[2]/200;const r=n**3,i=t**3,s=a**3;return n=r>.008856?r:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,a=s>.008856?s:(a-16/116)/7.787,t*=95.047,n*=100,a*=108.883,[t,n,a]},i.lab.lch=function(e){const t=e[0],n=e[1],a=e[2];let r;r=360*Math.atan2(a,n)/2/Math.PI,r<0&&(r+=360);return[t,Math.sqrt(n*n+a*a),r]},i.lch.lab=function(e){const t=e[0],n=e[1],a=e[2]/360*2*Math.PI;return[t,n*Math.cos(a),n*Math.sin(a)]},i.rgb.ansi16=function(e,t=null){const[n,a,r]=e;let s=null===t?i.rgb.hsv(e)[2]:t;if(s=Math.round(s/50),0===s)return 30;let o=30+(Math.round(r/255)<<2|Math.round(a/255)<<1|Math.round(n/255));return 2===s&&(o+=60),o},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const t=e[0],n=e[1],a=e[2];if(t===n&&n===a)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(a/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const a=parseInt(n,16);return[a>>16&255,a>>8&255,255&a]},i.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,a=e[2]/255,r=Math.max(Math.max(t,n),a),i=Math.min(Math.min(t,n),a),s=r-i;let o,c;return o=s<1?i/(1-s):0,c=s<=0?0:r===t?(n-a)/s%6:r===n?2+(a-t)/s:4+(t-n)/s,c/=6,c%=1,[360*c,100*s,100*o]},i.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=n<.5?2*t*n:2*t*(1-n);let r=0;return a<1&&(r=(n-.5*a)/(1-a)),[e[0],100*a,100*r]},i.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,a=t*n;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},i.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,a=e[2]/100;if(0===n)return[255*a,255*a,255*a];const r=[0,0,0],i=t%1*6,s=i%1,o=1-s;let c=0;switch(Math.floor(i)){case 0:r[0]=1,r[1]=s,r[2]=0;break;case 1:r[0]=o,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=s;break;case 3:r[0]=0,r[1]=o,r[2]=1;break;case 4:r[0]=s,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=o}return c=(1-n)*a,[255*(n*r[0]+c),255*(n*r[1]+c),255*(n*r[2]+c)]},i.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let a=0;return n>0&&(a=t/n),[e[0],100*a,100*n]},i.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let a=0;return n>0&&n<.5?a=t/(2*n):n>=.5&&n<1&&(a=t/(2*(1-n))),[e[0],100*a,100*n]},i.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,a=n-t;let r=0;return a<1&&(r=(n-a)/(1-a)),[e[0],100*a,100*r]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},79307:(e,t,n)=>{const a=n(18138),r=n(2833),i={};Object.keys(a).forEach((e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:a[e].channels}),Object.defineProperty(i[e],"labels",{value:a[e].labels});const t=r(e);Object.keys(t).forEach((n=>{const a=t[n];i[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const a=e(t);if("object"==typeof a)for(let e=a.length,t=0;t<e;t++)a[t]=Math.round(a[t]);return a};return"conversion"in e&&(t.conversion=e.conversion),t}(a),i[e][n].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(a)}))})),e.exports=i},2833:(e,t,n)=>{const a=n(18138);function r(e){const t=function(){const e={},t=Object.keys(a);for(let n=t.length,a=0;a<n;a++)e[t[a]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),r=Object.keys(a[e]);for(let a=r.length,i=0;i<a;i++){const a=r[i],s=t[a];-1===s.distance&&(s.distance=t[e].distance+1,s.parent=e,n.unshift(a))}}return t}function i(e,t){return function(n){return t(e(n))}}function s(e,t){const n=[t[e].parent,e];let r=a[t[e].parent][e],s=t[e].parent;for(;t[s].parent;)n.unshift(t[s].parent),r=i(a[t[s].parent][s],r),s=t[s].parent;return r.conversion=n,r}e.exports=function(e){const t=r(e),n={},a=Object.keys(t);for(let e=a.length,r=0;r<e;r++){const e=a[r];null!==t[e].parent&&(n[e]=s(e,t))}return n}},9878:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},2473:(e,t,n)=>{var a={};e.exports=a,a.themes={};var r=n(39023),i=a.styles=n(90311),s=Object.defineProperties,o=new RegExp(/[\r\n]+/g);a.supportsColor=n(32144).supportsColor,void 0===a.enabled&&(a.enabled=!1!==a.supportsColor()),a.enable=function(){a.enabled=!0},a.disable=function(){a.enabled=!1},a.stripColors=a.strip=function(e){return(""+e).replace(/\x1B\[\d+m/g,"")};a.stylize=function(e,t){if(!a.enabled)return e+"";var n=i[t];return!n&&t in a?a[t](e):n.open+e+n.close};var c=/[|\\{}()[\]^$+*?.]/g;function u(e){var t=function e(){return m.apply(e,arguments)};return t._styles=e,t.__proto__=d,t}var l,p=(l={},i.grey=i.gray,Object.keys(i).forEach((function(e){i[e].closeRe=new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(c,"\\$&")}(i[e].close),"g"),l[e]={get:function(){return u(this._styles.concat(e))}}})),l),d=s((function(){}),p);function m(){var e=Array.prototype.slice.call(arguments).map((function(e){return null!=e&&e.constructor===String?e:r.inspect(e)})).join(" ");if(!a.enabled||!e)return e;for(var t=-1!=e.indexOf("\n"),n=this._styles,s=n.length;s--;){var c=i[n[s]];e=c.open+e.replace(c.closeRe,c.open)+c.close,t&&(e=e.replace(o,(function(e){return c.close+e+c.open})))}return e}a.setTheme=function(e){if("string"!=typeof e)for(var t in e)!function(t){a[t]=function(n){if("object"==typeof e[t]){var r=n;for(var i in e[t])r=a[e[t][i]](r);return r}return a[e[t]](n)}}(t);else console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")};var f=function(e,t){var n=t.split("");return(n=n.map(e)).join("")};for(var h in a.trap=n(3254),a.zalgo=n(35380),a.maps={},a.maps.america=n(55349)(a),a.maps.zebra=n(85909)(a),a.maps.rainbow=n(26203)(a),a.maps.random=n(54174)(a),a.maps)!function(e){a[e]=function(t){return f(a.maps[e],t)}}(h);s(a,function(){var e={};return Object.keys(p).forEach((function(t){e[t]={get:function(){return u([t])}}})),e}())},3254:e=>{e.exports=function(e,t){var n="";e=(e=e||"Run the trap, drop the bass").split("");var a={a:["@","Ą","Ⱥ","Ʌ","Δ","Λ","Д"],b:["ß","Ɓ","Ƀ","ɮ","β","฿"],c:["©","Ȼ","Ͼ"],d:["Ð","Ɗ","Ԁ","ԁ","Ԃ","ԃ"],e:["Ë","ĕ","Ǝ","ɘ","Σ","ξ","Ҽ","੬"],f:["Ӻ"],g:["ɢ"],h:["Ħ","ƕ","Ң","Һ","Ӈ","Ԋ"],i:["༏"],j:["Ĵ"],k:["ĸ","Ҡ","Ӄ","Ԟ"],l:["Ĺ"],m:["ʍ","Ӎ","ӎ","Ԡ","ԡ","൩"],n:["Ñ","ŋ","Ɲ","Ͷ","Π","Ҋ"],o:["Ø","õ","ø","Ǿ","ʘ","Ѻ","ם","۝","๏"],p:["Ƿ","Ҏ"],q:[""],r:["®","Ʀ","Ȑ","Ɍ","ʀ","Я"],s:["§","Ϟ","ϟ","Ϩ"],t:["Ł","Ŧ","ͳ"],u:["Ʊ","Ս"],v:["ט"],w:["Ш","Ѡ","Ѽ","൰"],x:["Ҳ","Ӿ","Ӽ","ӽ"],y:["¥","Ұ","Ӌ"],z:["Ƶ","ɀ"]};return e.forEach((function(e){e=e.toLowerCase();var t=a[e]||[" "],r=Math.floor(Math.random()*t.length);n+=void 0!==a[e]?a[e][r]:e})),n}},35380:e=>{e.exports=function(e,t){e=e||" he is here ";var n={up:["̍","̎","̄","̅","̿","̑","̆","̐","͒","͗","͑","̇","̈","̊","͂","̓","̈","͊","͋","͌","̃","̂","̌","͐","̀","́","̋","̏","̒","̓","̔","̽","̉","ͣ","ͤ","ͥ","ͦ","ͧ","ͨ","ͩ","ͪ","ͫ","ͬ","ͭ","ͮ","ͯ","̾","͛","͆","̚"],down:["̖","̗","̘","̙","̜","̝","̞","̟","̠","̤","̥","̦","̩","̪","̫","̬","̭","̮","̯","̰","̱","̲","̳","̹","̺","̻","̼","ͅ","͇","͈","͉","͍","͎","͓","͔","͕","͖","͙","͚","̣"],mid:["̕","̛","̀","́","͘","̡","̢","̧","̨","̴","̵","̶","͜","͝","͞","͟","͠","͢","̸","̷","͡"," ҉"]},a=[].concat(n.up,n.down,n.mid);function r(e){return Math.floor(Math.random()*e)}function i(e){var t=!1;return a.filter((function(n){t=n===e})),t}return function(e,t){var a,s,o="";for(s in(t=t||{}).up=void 0===t.up||t.up,t.mid=void 0===t.mid||t.mid,t.down=void 0===t.down||t.down,t.size=void 0!==t.size?t.size:"maxi",e=e.split(""))if(!i(s)){switch(o+=e[s],a={up:0,down:0,mid:0},t.size){case"mini":a.up=r(8),a.mid=r(2),a.down=r(8);break;case"maxi":a.up=r(16)+3,a.mid=r(4)+1,a.down=r(64)+3;break;default:a.up=r(8)+1,a.mid=r(6)/2,a.down=r(8)+1}var c=["up","mid","down"];for(var u in c)for(var l=c[u],p=0;p<=a[l];p++)t[l]&&(o+=n[l][r(n[l].length)])}return o}(e,t)}},89612:(e,t,n)=>{var a=n(2473);e.exports=function(){var e=function(e,t){String.prototype.__defineGetter__(e,t)};e("strip",(function(){return a.strip(this)})),e("stripColors",(function(){return a.strip(this)})),e("trap",(function(){return a.trap(this)})),e("zalgo",(function(){return a.zalgo(this)})),e("zebra",(function(){return a.zebra(this)})),e("rainbow",(function(){return a.rainbow(this)})),e("random",(function(){return a.random(this)})),e("america",(function(){return a.america(this)})),Object.keys(a.styles).forEach((function(t){e(t,(function(){return a.stylize(this,t)}))})),a.setTheme=function(t){"string"!=typeof t?function(t){var n=["__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__","charAt","constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf","charCodeAt","indexOf","lastIndexOf","length","localeCompare","match","repeat","replace","search","slice","split","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim","trimLeft","trimRight"];Object.keys(t).forEach((function(r){if(-1!==n.indexOf(r))console.log("warn: ".red+("String.prototype"+r).magenta+" is probably something you don't want to override. Ignoring style name");else if("string"==typeof t[r])a[r]=a[t[r]],e(r,(function(){return a[r](this)}));else{var i=function(e){for(var n=e||this,i=0;i<t[r].length;i++)n=a[t[r][i]](n);return n};e(r,i),a[r]=function(e){return i(e)}}}))}(t):console.log("colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));")}}},5157:(e,t,n)=>{var a=n(2473);e.exports=a,n(89612)()},55349:e=>{e.exports=function(e){return function(t,n,a){if(" "===t)return t;switch(n%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}},26203:e=>{e.exports=function(e){var t=["red","yellow","green","blue","magenta"];return function(n,a,r){return" "===n?n:e[t[a++%t.length]](n)}}},54174:e=>{e.exports=function(e){var t=["underline","inverse","grey","yellow","red","green","blue","white","cyan","magenta","brightYellow","brightRed","brightGreen","brightBlue","brightWhite","brightCyan","brightMagenta"];return function(n,a,r){return" "===n?n:e[t[Math.round(Math.random()*(t.length-2))]](n)}}},85909:e=>{e.exports=function(e){return function(t,n,a){return n%2==0?t:e.inverse(t)}}},90311:e=>{var t={};e.exports=t;var n={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(n).forEach((function(e){var a=n[e],r=t[e]=[];r.open="["+a[0]+"m",r.close="["+a[1]+"m"}))},80434:e=>{"use strict";e.exports=function(e,t){var n=(t=t||process.argv).indexOf("--"),a=/^-{1,2}/.test(e)?"":"--",r=t.indexOf(a+e);return-1!==r&&(-1===n||r<n)}},32144:(e,t,n)=>{"use strict";var a=n(70857),r=n(80434),i=process.env,s=void 0;function o(e){var t=function(e){if(!1===s)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;var t=s?1:0;if("win32"===process.platform){var n=a.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((function(e){return e in i}))||"codeship"===i.CI_NAME?1:t;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("TERM_PROGRAM"in i){var o=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Hyper":return 3;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}r("no-color")||r("no-colors")||r("color=false")?s=!1:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(s=!0),"FORCE_COLOR"in i&&(s=0===i.FORCE_COLOR.length||0!==parseInt(i.FORCE_COLOR,10)),e.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}},50135:(e,t,n)=>{var a=n(39023),r=n(2203).Stream,i=n(59366);function s(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=s,a.inherits(s,r),s.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},s.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},s.prototype.append=function(e){if(s.isStreamLike(e)){if(!(e instanceof i)){var t=i.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},s.prototype.pipe=function(e,t){return r.prototype.pipe.call(this,e,t),this.resume(),e},s.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},s.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){s.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},s.prototype._pipeNext=function(e){if(this._currentStream=e,s.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},s.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))},s.prototype.write=function(e){this.emit("data",e)},s.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},s.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},s.prototype.end=function(){this._reset(),this.emit("end")},s.prototype.destroy=function(){this._reset(),this.emit("close")},s.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},s.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},s.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){t.dataSize&&(e.dataSize+=t.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},s.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},70129:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],s=[],o=[],c=[],u=[],l=[],p=[],d=[],m=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,a=0;for(t=0;t<256;t++){var f=a^a<<1^a<<2^a<<3^a<<4;f=f>>>8^255&f^99,r[n]=f,i[f]=n;var h=e[n],b=e[h],g=e[b],y=257*e[f]^16843008*f;s[n]=y<<24|y>>>8,o[n]=y<<16|y>>>16,c[n]=y<<8|y>>>24,u[n]=y,y=16843009*g^65537*b^257*h^16843008*n,l[f]=y<<24|y>>>8,p[f]=y<<16|y>>>16,d[f]=y<<8|y>>>24,m[f]=y,n?(n=h^e[e[e[g^h]]],a^=e[e[a]]):n=a=1}}();var f=[0,1,2,4,8,16,32,64,128,27,54],h=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,a=4*((this._nRounds=n+6)+1),i=this._keySchedule=[],s=0;s<a;s++)s<n?i[s]=t[s]:(u=i[s-1],s%n?n>6&&s%n==4&&(u=r[u>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u]):(u=r[(u=u<<8|u>>>24)>>>24]<<24|r[u>>>16&255]<<16|r[u>>>8&255]<<8|r[255&u],u^=f[s/n|0]<<24),i[s]=i[s-n]^u);for(var o=this._invKeySchedule=[],c=0;c<a;c++){if(s=a-c,c%4)var u=i[s];else u=i[s-4];o[c]=c<4||s<=4?u:l[r[u>>>24]]^p[r[u>>>16&255]]^d[r[u>>>8&255]]^m[r[255&u]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,o,c,u,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,p,d,m,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,a,r,i,s,o){for(var c=this._nRounds,u=e[t]^n[0],l=e[t+1]^n[1],p=e[t+2]^n[2],d=e[t+3]^n[3],m=4,f=1;f<c;f++){var h=a[u>>>24]^r[l>>>16&255]^i[p>>>8&255]^s[255&d]^n[m++],b=a[l>>>24]^r[p>>>16&255]^i[d>>>8&255]^s[255&u]^n[m++],g=a[p>>>24]^r[d>>>16&255]^i[u>>>8&255]^s[255&l]^n[m++],y=a[d>>>24]^r[u>>>16&255]^i[l>>>8&255]^s[255&p]^n[m++];u=h,l=b,p=g,d=y}h=(o[u>>>24]<<24|o[l>>>16&255]<<16|o[p>>>8&255]<<8|o[255&d])^n[m++],b=(o[l>>>24]<<24|o[p>>>16&255]<<16|o[d>>>8&255]<<8|o[255&u])^n[m++],g=(o[p>>>24]<<24|o[d>>>16&255]<<16|o[u>>>8&255]<<8|o[255&l])^n[m++],y=(o[d>>>24]<<24|o[u>>>16&255]<<16|o[l>>>8&255]<<8|o[255&p])^n[m++],e[t]=h,e[t+1]=b,e[t+2]=g,e[t+3]=y},keySize:8});e.AES=t._createHelper(h)}(),a.AES)},42770:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib.BlockCipher,n=e.algo;const r=16,i=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var o={pbox:[],sbox:[]};function c(e,t){let n=t>>24&255,a=t>>16&255,r=t>>8&255,i=255&t,s=e.sbox[0][n]+e.sbox[1][a];return s^=e.sbox[2][r],s+=e.sbox[3][i],s}function u(e,t,n){let a,i=t,s=n;for(let t=0;t<r;++t)i^=e.pbox[t],s=c(e,i)^s,a=i,i=s,s=a;return a=i,i=s,s=a,s^=e.pbox[r],i^=e.pbox[r+1],{left:i,right:s}}function l(e,t,n){let a,i=t,s=n;for(let t=r+1;t>1;--t)i^=e.pbox[t],s=c(e,i)^s,a=i,i=s,s=a;return a=i,i=s,s=a,s^=e.pbox[1],i^=e.pbox[0],{left:i,right:s}}function p(e,t,n){for(let t=0;t<4;t++){e.sbox[t]=[];for(let n=0;n<256;n++)e.sbox[t][n]=s[t][n]}let a=0;for(let s=0;s<r+2;s++)e.pbox[s]=i[s]^t[a],a++,a>=n&&(a=0);let o=0,c=0,l=0;for(let t=0;t<r+2;t+=2)l=u(e,o,c),o=l.left,c=l.right,e.pbox[t]=o,e.pbox[t+1]=c;for(let t=0;t<4;t++)for(let n=0;n<256;n+=2)l=u(e,o,c),o=l.left,c=l.right,e.sbox[t][n]=o,e.sbox[t][n+1]=c;return!0}var d=n.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4;p(o,t,n)}},encryptBlock:function(e,t){var n=u(o,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},decryptBlock:function(e,t){var n=l(o,e[t],e[t+1]);e[t]=n.left,e[t+1]=n.right},blockSize:2,keySize:4,ivSize:2});e.Blowfish=t._createHelper(d)}(),a.Blowfish)},59947:function(e,t,n){var a;e.exports=(a=n(60095),n(35516),void(a.lib.Cipher||function(e){var t=a,n=t.lib,r=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,o=t.enc,c=(o.Utf8,o.Base64),u=t.algo.EvpKDF,l=n.Cipher=s.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?v:g}return function(t){return{encrypt:function(n,a,r){return e(a).encrypt(t,n,a,r)},decrypt:function(n,a,r){return e(a).decrypt(t,n,a,r)}}}}()}),p=(n.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),d=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),m=p.CBC=function(){var t=d.extend();function n(t,n,a){var r,i=this._iv;i?(r=i,this._iv=e):r=this._prevBlock;for(var s=0;s<a;s++)t[n+s]^=r[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var a=this._cipher,r=a.blockSize;n.call(this,e,t,r),a.encryptBlock(e,t),this._prevBlock=e.slice(t,t+r)}}),t.Decryptor=t.extend({processBlock:function(e,t){var a=this._cipher,r=a.blockSize,i=e.slice(t,t+r);a.decryptBlock(e,t),n.call(this,e,t,r),this._prevBlock=i}}),t}(),f=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,a=n-e.sigBytes%n,r=a<<24|a<<16|a<<8|a,s=[],o=0;o<a;o+=4)s.push(r);var c=i.create(s,a);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},h=(n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:m,padding:f}),reset:function(){var e;l.reset.call(this);var t=this.cfg,n=t.iv,a=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=a.createEncryptor:(e=a.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(a,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4}),n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),b=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?i.create([1398893684,1701076831]).concat(n).concat(t):t).toString(c)},parse:function(e){var t,n=c.parse(e),a=n.words;return 1398893684==a[0]&&1701076831==a[1]&&(t=i.create(a.slice(2,4)),a.splice(0,4),n.sigBytes-=16),h.create({ciphertext:n,salt:t})}},g=n.SerializableCipher=r.extend({cfg:r.extend({format:b}),encrypt:function(e,t,n,a){a=this.cfg.extend(a);var r=e.createEncryptor(n,a),i=r.finalize(t),s=r.cfg;return h.create({ciphertext:i,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:a.format})},decrypt:function(e,t,n,a){return a=this.cfg.extend(a),t=this._parse(t,a.format),e.createDecryptor(n,a).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,n,a,r){if(a||(a=i.random(8)),r)s=u.create({keySize:t+n,hasher:r}).compute(e,a);else var s=u.create({keySize:t+n}).compute(e,a);var o=i.create(s.words.slice(t),4*n);return s.sigBytes=4*t,h.create({key:s,iv:o,salt:a})}},v=n.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:y}),encrypt:function(e,t,n,a){var r=(a=this.cfg.extend(a)).kdf.execute(n,e.keySize,e.ivSize,a.salt,a.hasher);a.iv=r.iv;var i=g.encrypt.call(this,e,t,r.key,a);return i.mixIn(r),i},decrypt:function(e,t,n,a){a=this.cfg.extend(a),t=this._parse(t,a.format);var r=a.kdf.execute(n,e.keySize,e.ivSize,t.salt,a.hasher);return a.iv=r.iv,g.decrypt.call(this,e,t,r.key,a)}})}()))},60095:function(e,t,n){var a;e.exports=(a=a||function(e,t){var a;if("undefined"!=typeof window&&window.crypto&&(a=window.crypto),"undefined"!=typeof self&&self.crypto&&(a=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(a=globalThis.crypto),!a&&"undefined"!=typeof window&&window.msCrypto&&(a=window.msCrypto),!a&&"undefined"!=typeof global&&global.crypto&&(a=global.crypto),!a)try{a=n(76982)}catch(e){}var r=function(){if(a){if("function"==typeof a.getRandomValues)try{return a.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof a.randomBytes)try{return a.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),s={},o=s.lib={},c=o.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=o.WordArray=c.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||p).stringify(this)},concat:function(e){var t=this.words,n=e.words,a=this.sigBytes,r=e.sigBytes;if(this.clamp(),a%4)for(var i=0;i<r;i++){var s=n[i>>>2]>>>24-i%4*8&255;t[a+i>>>2]|=s<<24-(a+i)%4*8}else for(var o=0;o<r;o+=4)t[a+o>>>2]=n[o>>>2];return this.sigBytes+=r,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new u.init(t,e)}}),l=s.enc={},p=l.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],r=0;r<n;r++){var i=t[r>>>2]>>>24-r%4*8&255;a.push((i>>>4).toString(16)),a.push((15&i).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a+=2)n[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new u.init(n,t/2)}},d=l.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],r=0;r<n;r++){var i=t[r>>>2]>>>24-r%4*8&255;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new u.init(n,t)}},m=l.Utf8={stringify:function(e){try{return decodeURIComponent(escape(d.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return d.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=m.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,a=this._data,r=a.words,i=a.sigBytes,s=this.blockSize,o=i/(4*s),c=(o=t?e.ceil(o):e.max((0|o)-this._minBufferSize,0))*s,l=e.min(4*c,i);if(c){for(var p=0;p<c;p+=s)this._doProcessBlock(r,p);n=r.splice(0,c),a.sigBytes-=l}return new u.init(n,l)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),h=(o.Hasher=f.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}}),s.algo={});return s}(Math),a)},81716:function(e,t,n){var a;e.exports=(a=n(60095),function(){var e=a,t=e.lib.WordArray;function n(e,n,a){for(var r=[],i=0,s=0;s<n;s++)if(s%4){var o=a[e.charCodeAt(s-1)]<<s%4*2|a[e.charCodeAt(s)]>>>6-s%4*2;r[i>>>2]|=o<<24-i%4*8,i++}return t.create(r,i)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,a=this._map;e.clamp();for(var r=[],i=0;i<n;i+=3)for(var s=(t[i>>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,o=0;o<4&&i+.75*o<n;o++)r.push(a.charAt(s>>>6*(3-o)&63));var c=a.charAt(64);if(c)for(;r.length%4;)r.push(c);return r.join("")},parse:function(e){var t=e.length,a=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var i=0;i<a.length;i++)r[a.charCodeAt(i)]=i}var s=a.charAt(64);if(s){var o=e.indexOf(s);-1!==o&&(t=o)}return n(e,t,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),a.enc.Base64)},17687:function(e,t,n){var a;e.exports=(a=n(60095),function(){var e=a,t=e.lib.WordArray;function n(e,n,a){for(var r=[],i=0,s=0;s<n;s++)if(s%4){var o=a[e.charCodeAt(s-1)]<<s%4*2|a[e.charCodeAt(s)]>>>6-s%4*2;r[i>>>2]|=o<<24-i%4*8,i++}return t.create(r,i)}e.enc.Base64url={stringify:function(e,t){void 0===t&&(t=!0);var n=e.words,a=e.sigBytes,r=t?this._safe_map:this._map;e.clamp();for(var i=[],s=0;s<a;s+=3)for(var o=(n[s>>>2]>>>24-s%4*8&255)<<16|(n[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|n[s+2>>>2]>>>24-(s+2)%4*8&255,c=0;c<4&&s+.75*c<a;c++)i.push(r.charAt(o>>>6*(3-c)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e,t){void 0===t&&(t=!0);var a=e.length,r=t?this._safe_map:this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<r.length;s++)i[r.charCodeAt(s)]=s}var o=r.charAt(64);if(o){var c=e.indexOf(o);-1!==c&&(a=c)}return n(e,a,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),a.enc.Base64url)},76729:function(e,t,n){var a;e.exports=(a=n(60095),function(){var e=a,t=e.lib.WordArray,n=e.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],r=0;r<n;r+=2){var i=t[r>>>2]>>>16-r%4*8&65535;a.push(String.fromCharCode(i))}return a.join("")},parse:function(e){for(var n=e.length,a=[],r=0;r<n;r++)a[r>>>1]|=e.charCodeAt(r)<<16-r%2*16;return t.create(a,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],i=0;i<n;i+=2){var s=r(t[i>>>2]>>>16-i%4*8&65535);a.push(String.fromCharCode(s))}return a.join("")},parse:function(e){for(var n=e.length,a=[],i=0;i<n;i++)a[i>>>1]|=r(e.charCodeAt(i)<<16-i%2*16);return t.create(a,2*n)}}}(),a.enc.Utf16)},35516:function(e,t,n){var a,r,i,s,o,c,u,l;e.exports=(l=n(60095),n(1825),n(55979),r=(a=l).lib,i=r.Base,s=r.WordArray,o=a.algo,c=o.MD5,u=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:c,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,a=this.cfg,r=a.hasher.create(),i=s.create(),o=i.words,c=a.keySize,u=a.iterations;o.length<c;){n&&r.update(n),n=r.update(e).finalize(t),r.reset();for(var l=1;l<u;l++)n=r.finalize(n),r.reset();i.concat(n)}return i.sigBytes=4*c,i}}),a.EvpKDF=function(e,t,n){return u.create(n).compute(e,t)},l.EvpKDF)},635:function(e,t,n){var a,r,i,s;e.exports=(s=n(60095),n(59947),r=(a=s).lib.CipherParams,i=a.enc.Hex,a.format.Hex={stringify:function(e){return e.ciphertext.toString(i)},parse:function(e){var t=i.parse(e);return r.create({ciphertext:t})}},s.format.Hex)},55979:function(e,t,n){var a,r,i,s;e.exports=(a=n(60095),i=(r=a).lib.Base,s=r.enc.Utf8,void(r.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var n=e.blockSize,a=4*n;t.sigBytes>a&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),i=this._iKey=t.clone(),o=r.words,c=i.words,u=0;u<n;u++)o[u]^=1549556828,c[u]^=909522486;r.sigBytes=i.sigBytes=a,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))},27594:function(e,t,n){var a;e.exports=(a=n(60095),n(2478),n(74842),n(76729),n(81716),n(17687),n(35478),n(1825),n(9331),n(74174),n(96018),n(82963),n(6303),n(97442),n(55979),n(94673),n(35516),n(59947),n(62375),n(19141),n(6014),n(64867),n(55760),n(24223),n(71855),n(16600),n(34537),n(17894),n(635),n(70129),n(84902),n(56123),n(54324),n(27126),n(42770),a)},74842:function(e,t,n){var a;e.exports=(a=n(60095),function(){if("function"==typeof ArrayBuffer){var e=a.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,a=[],r=0;r<n;r++)a[r>>>2]|=e[r]<<24-r%4*8;t.call(this,a,n)}else t.apply(this,arguments)};n.prototype=e}}(),a.lib.WordArray)},35478:function(e,t,n){var a;e.exports=(a=n(60095),function(e){var t=a,n=t.lib,r=n.WordArray,i=n.Hasher,s=t.algo,o=[];!function(){for(var t=0;t<64;t++)o[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=s.MD5=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,r=e[a];e[a]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var i=this._hash.words,s=e[t+0],c=e[t+1],m=e[t+2],f=e[t+3],h=e[t+4],b=e[t+5],g=e[t+6],y=e[t+7],v=e[t+8],_=e[t+9],E=e[t+10],x=e[t+11],T=e[t+12],O=e[t+13],D=e[t+14],w=e[t+15],S=i[0],A=i[1],C=i[2],R=i[3];S=u(S,A,C,R,s,7,o[0]),R=u(R,S,A,C,c,12,o[1]),C=u(C,R,S,A,m,17,o[2]),A=u(A,C,R,S,f,22,o[3]),S=u(S,A,C,R,h,7,o[4]),R=u(R,S,A,C,b,12,o[5]),C=u(C,R,S,A,g,17,o[6]),A=u(A,C,R,S,y,22,o[7]),S=u(S,A,C,R,v,7,o[8]),R=u(R,S,A,C,_,12,o[9]),C=u(C,R,S,A,E,17,o[10]),A=u(A,C,R,S,x,22,o[11]),S=u(S,A,C,R,T,7,o[12]),R=u(R,S,A,C,O,12,o[13]),C=u(C,R,S,A,D,17,o[14]),S=l(S,A=u(A,C,R,S,w,22,o[15]),C,R,c,5,o[16]),R=l(R,S,A,C,g,9,o[17]),C=l(C,R,S,A,x,14,o[18]),A=l(A,C,R,S,s,20,o[19]),S=l(S,A,C,R,b,5,o[20]),R=l(R,S,A,C,E,9,o[21]),C=l(C,R,S,A,w,14,o[22]),A=l(A,C,R,S,h,20,o[23]),S=l(S,A,C,R,_,5,o[24]),R=l(R,S,A,C,D,9,o[25]),C=l(C,R,S,A,f,14,o[26]),A=l(A,C,R,S,v,20,o[27]),S=l(S,A,C,R,O,5,o[28]),R=l(R,S,A,C,m,9,o[29]),C=l(C,R,S,A,y,14,o[30]),S=p(S,A=l(A,C,R,S,T,20,o[31]),C,R,b,4,o[32]),R=p(R,S,A,C,v,11,o[33]),C=p(C,R,S,A,x,16,o[34]),A=p(A,C,R,S,D,23,o[35]),S=p(S,A,C,R,c,4,o[36]),R=p(R,S,A,C,h,11,o[37]),C=p(C,R,S,A,y,16,o[38]),A=p(A,C,R,S,E,23,o[39]),S=p(S,A,C,R,O,4,o[40]),R=p(R,S,A,C,s,11,o[41]),C=p(C,R,S,A,f,16,o[42]),A=p(A,C,R,S,g,23,o[43]),S=p(S,A,C,R,_,4,o[44]),R=p(R,S,A,C,T,11,o[45]),C=p(C,R,S,A,w,16,o[46]),S=d(S,A=p(A,C,R,S,m,23,o[47]),C,R,s,6,o[48]),R=d(R,S,A,C,y,10,o[49]),C=d(C,R,S,A,D,15,o[50]),A=d(A,C,R,S,b,21,o[51]),S=d(S,A,C,R,T,6,o[52]),R=d(R,S,A,C,f,10,o[53]),C=d(C,R,S,A,E,15,o[54]),A=d(A,C,R,S,c,21,o[55]),S=d(S,A,C,R,v,6,o[56]),R=d(R,S,A,C,w,10,o[57]),C=d(C,R,S,A,g,15,o[58]),A=d(A,C,R,S,O,21,o[59]),S=d(S,A,C,R,h,6,o[60]),R=d(R,S,A,C,x,10,o[61]),C=d(C,R,S,A,m,15,o[62]),A=d(A,C,R,S,_,21,o[63]),i[0]=i[0]+S|0,i[1]=i[1]+A|0,i[2]=i[2]+C|0,i[3]=i[3]+R|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,r=8*t.sigBytes;n[r>>>5]|=128<<24-r%32;var i=e.floor(a/4294967296),s=a;n[15+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),t.sigBytes=4*(n.length+1),this._process();for(var o=this._hash,c=o.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return o},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,a,r,i,s){var o=e+(t&n|~t&a)+r+s;return(o<<i|o>>>32-i)+t}function l(e,t,n,a,r,i,s){var o=e+(t&a|n&~a)+r+s;return(o<<i|o>>>32-i)+t}function p(e,t,n,a,r,i,s){var o=e+(t^n^a)+r+s;return(o<<i|o>>>32-i)+t}function d(e,t,n,a,r,i,s){var o=e+(n^(t|~a))+r+s;return(o<<i|o>>>32-i)+t}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),a.MD5)},62375:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.mode.CFB=function(){var e=a.lib.BlockCipherMode.extend();function t(e,t,n,a){var r,i=this._iv;i?(r=i.slice(0),this._iv=void 0):r=this._prevBlock,a.encryptBlock(r,0);for(var s=0;s<n;s++)e[t+s]^=r[s]}return e.Encryptor=e.extend({processBlock:function(e,n){var a=this._cipher,r=a.blockSize;t.call(this,e,n,r,a),this._prevBlock=e.slice(n,n+r)}}),e.Decryptor=e.extend({processBlock:function(e,n){var a=this._cipher,r=a.blockSize,i=e.slice(n,n+r);t.call(this,e,n,r,a),this._prevBlock=i}}),e}(),a.mode.CFB)},6014:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.mode.CTRGladman=function(){var e=a.lib.BlockCipherMode.extend();function t(e){if(255==(e>>24&255)){var t=e>>16&255,n=e>>8&255,a=255&e;255===t?(t=0,255===n?(n=0,255===a?a=0:++a):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=a}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var r=e.Encryptor=e.extend({processBlock:function(e,t){var a=this._cipher,r=a.blockSize,i=this._iv,s=this._counter;i&&(s=this._counter=i.slice(0),this._iv=void 0),n(s);var o=s.slice(0);a.encryptBlock(o,0);for(var c=0;c<r;c++)e[t+c]^=o[c]}});return e.Decryptor=r,e}(),a.mode.CTRGladman)},19141:function(e,t,n){var a,r,i;e.exports=(i=n(60095),n(59947),i.mode.CTR=(a=i.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,r=this._iv,i=this._counter;r&&(i=this._counter=r.slice(0),this._iv=void 0);var s=i.slice(0);n.encryptBlock(s,0),i[a-1]=i[a-1]+1|0;for(var o=0;o<a;o++)e[t+o]^=s[o]}}),a.Decryptor=r,a),i.mode.CTR)},55760:function(e,t,n){var a,r;e.exports=(r=n(60095),n(59947),r.mode.ECB=((a=r.lib.BlockCipherMode.extend()).Encryptor=a.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),a.Decryptor=a.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),a),r.mode.ECB)},64867:function(e,t,n){var a,r,i;e.exports=(i=n(60095),n(59947),i.mode.OFB=(a=i.lib.BlockCipherMode.extend(),r=a.Encryptor=a.extend({processBlock:function(e,t){var n=this._cipher,a=n.blockSize,r=this._iv,i=this._keystream;r&&(i=this._keystream=r.slice(0),this._iv=void 0),n.encryptBlock(i,0);for(var s=0;s<a;s++)e[t+s]^=i[s]}}),a.Decryptor=r,a),i.mode.OFB)},24223:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=4*t,r=a-n%a,i=n+r-1;e.clamp(),e.words[i>>>2]|=r<<24-i%4*8,e.sigBytes+=r},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},a.pad.Ansix923)},71855:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.pad.Iso10126={pad:function(e,t){var n=4*t,r=n-e.sigBytes%n;e.concat(a.lib.WordArray.random(r-1)).concat(a.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},a.pad.Iso10126)},16600:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.pad.Iso97971={pad:function(e,t){e.concat(a.lib.WordArray.create([2147483648],1)),a.pad.ZeroPadding.pad(e,t)},unpad:function(e){a.pad.ZeroPadding.unpad(e),e.sigBytes--}},a.pad.Iso97971)},17894:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.pad.NoPadding={pad:function(){},unpad:function(){}},a.pad.NoPadding)},34537:function(e,t,n){var a;e.exports=(a=n(60095),n(59947),a.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){var t=e.words,n=e.sigBytes-1;for(n=e.sigBytes-1;n>=0;n--)if(t[n>>>2]>>>24-n%4*8&255){e.sigBytes=n+1;break}}},a.pad.ZeroPadding)},94673:function(e,t,n){var a,r,i,s,o,c,u,l,p;e.exports=(p=n(60095),n(9331),n(55979),r=(a=p).lib,i=r.Base,s=r.WordArray,o=a.algo,c=o.SHA256,u=o.HMAC,l=o.PBKDF2=i.extend({cfg:i.extend({keySize:4,hasher:c,iterations:25e4}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,a=u.create(n.hasher,e),r=s.create(),i=s.create([1]),o=r.words,c=i.words,l=n.keySize,p=n.iterations;o.length<l;){var d=a.update(t).finalize(i);a.reset();for(var m=d.words,f=m.length,h=d,b=1;b<p;b++){h=a.finalize(h),a.reset();for(var g=h.words,y=0;y<f;y++)m[y]^=g[y]}r.concat(d),c[0]++}return r.sigBytes=4*l,r}}),a.PBKDF2=function(e,t,n){return l.create(n).compute(e,t)},p.PBKDF2)},27126:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib.StreamCipher,n=e.algo,r=[],i=[],s=[],o=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],a=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)a[r]^=n[r+4&7];if(t){var i=t.words,s=i[0],o=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),p=u>>>16|4294901760&l,d=l<<16|65535&u;for(a[0]^=u,a[1]^=p,a[2]^=l,a[3]^=d,a[4]^=u,a[5]^=p,a[6]^=l,a[7]^=d,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)r[a]=16711935&(r[a]<<8|r[a]>>>24)|4278255360&(r[a]<<24|r[a]>>>8),e[t+a]^=r[a]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var a=e[n]+t[n],r=65535&a,o=a>>>16,c=((r*r>>>17)+r*o>>>15)+o*o,u=((4294901760&a)*a|0)+((65535&a)*a|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=t._createHelper(o)}(),a.RabbitLegacy)},54324:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib.StreamCipher,n=e.algo,r=[],i=[],s=[],o=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var a=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)c.call(this);for(n=0;n<8;n++)r[n]^=a[n+4&7];if(t){var i=t.words,s=i[0],o=i[1],u=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),p=u>>>16|4294901760&l,d=l<<16|65535&u;for(r[0]^=u,r[1]^=p,r[2]^=l,r[3]^=d,r[4]^=u,r[5]^=p,r[6]^=l,r[7]^=d,n=0;n<4;n++)c.call(this)}},_doProcessBlock:function(e,t){var n=this._X;c.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var a=0;a<4;a++)r[a]=16711935&(r[a]<<8|r[a]>>>24)|4278255360&(r[a]<<24|r[a]>>>8),e[t+a]^=r[a]},blockSize:4,ivSize:2});function c(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var a=e[n]+t[n],r=65535&a,o=a>>>16,c=((r*r>>>17)+r*o>>>15)+o*o,u=((4294901760&a)*a|0)+((65535&a)*a|0);s[n]=c^u}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=t._createHelper(o)}(),a.Rabbit)},56123:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib.StreamCipher,n=e.algo,r=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,a=this._S=[],r=0;r<256;r++)a[r]=r;r=0;for(var i=0;r<256;r++){var s=r%n,o=t[s>>>2]>>>24-s%4*8&255;i=(i+a[r]+o)%256;var c=a[r];a[r]=a[i],a[i]=c}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,a=0,r=0;r<4;r++){n=(n+e[t=(t+1)%256])%256;var i=e[t];e[t]=e[n],e[n]=i,a|=e[(e[t]+e[n])%256]<<24-8*r}return this._i=t,this._j=n,a}e.RC4=t._createHelper(r);var s=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(s)}(),a.RC4)},97442:function(e,t,n){var a;e.exports=(a=n(60095),function(e){var t=a,n=t.lib,r=n.WordArray,i=n.Hasher,s=t.algo,o=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),p=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),m=s.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,r=e[a];e[a]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}var i,s,m,_,E,x,T,O,D,w,S,A=this._hash.words,C=p.words,R=d.words,N=o.words,I=c.words,M=u.words,L=l.words;for(x=i=A[0],T=s=A[1],O=m=A[2],D=_=A[3],w=E=A[4],n=0;n<80;n+=1)S=i+e[t+N[n]]|0,S+=n<16?f(s,m,_)+C[0]:n<32?h(s,m,_)+C[1]:n<48?b(s,m,_)+C[2]:n<64?g(s,m,_)+C[3]:y(s,m,_)+C[4],S=(S=v(S|=0,M[n]))+E|0,i=E,E=_,_=v(m,10),m=s,s=S,S=x+e[t+I[n]]|0,S+=n<16?y(T,O,D)+R[0]:n<32?g(T,O,D)+R[1]:n<48?b(T,O,D)+R[2]:n<64?h(T,O,D)+R[3]:f(T,O,D)+R[4],S=(S=v(S|=0,L[n]))+w|0,x=w,w=D,D=v(O,10),O=T,T=S;S=A[1]+m+D|0,A[1]=A[2]+_+w|0,A[2]=A[3]+E+x|0,A[3]=A[4]+i+T|0,A[4]=A[0]+s+O|0,A[0]=S},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var r=this._hash,i=r.words,s=0;s<5;s++){var o=i[s];i[s]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}return r},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function f(e,t,n){return e^t^n}function h(e,t,n){return e&t|~e&n}function b(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function y(e,t,n){return e^(t|~n)}function v(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(m),t.HmacRIPEMD160=i._createHmacHelper(m)}(Math),a.RIPEMD160)},1825:function(e,t,n){var a,r,i,s,o,c,u,l;e.exports=(l=n(60095),r=(a=l).lib,i=r.WordArray,s=r.Hasher,o=a.algo,c=[],u=o.SHA1=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],r=n[1],i=n[2],s=n[3],o=n[4],u=0;u<80;u++){if(u<16)c[u]=0|e[t+u];else{var l=c[u-3]^c[u-8]^c[u-14]^c[u-16];c[u]=l<<1|l>>>31}var p=(a<<5|a>>>27)+o+c[u];p+=u<20?1518500249+(r&i|~r&s):u<40?1859775393+(r^i^s):u<60?(r&i|r&s|i&s)-1894007588:(r^i^s)-899497514,o=s,s=i,i=r<<30|r>>>2,r=a,a=p}n[0]=n[0]+a|0,n[1]=n[1]+r|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+o|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[14+(a+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(a+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),a.SHA1=s._createHelper(u),a.HmacSHA1=s._createHmacHelper(u),l.SHA1)},74174:function(e,t,n){var a,r,i,s,o,c;e.exports=(c=n(60095),n(9331),r=(a=c).lib.WordArray,i=a.algo,s=i.SHA256,o=i.SHA224=s.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=4,e}}),a.SHA224=s._createHelper(o),a.HmacSHA224=s._createHmacHelper(o),c.SHA224)},9331:function(e,t,n){var a;e.exports=(a=n(60095),function(e){var t=a,n=t.lib,r=n.WordArray,i=n.Hasher,s=t.algo,o=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),a=2;a<=n;a++)if(!(t%a))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var a=2,r=0;r<64;)t(a)&&(r<8&&(o[r]=n(e.pow(a,.5))),c[r]=n(e.pow(a,1/3)),r++),a++}();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new r.init(o.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],r=n[1],i=n[2],s=n[3],o=n[4],l=n[5],p=n[6],d=n[7],m=0;m<64;m++){if(m<16)u[m]=0|e[t+m];else{var f=u[m-15],h=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,b=u[m-2],g=(b<<15|b>>>17)^(b<<13|b>>>19)^b>>>10;u[m]=h+u[m-7]+g+u[m-16]}var y=a&r^a&i^r&i,v=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),_=d+((o<<26|o>>>6)^(o<<21|o>>>11)^(o<<7|o>>>25))+(o&l^~o&p)+c[m]+u[m];d=p,p=l,l=o,o=s+_|0,s=i,i=r,r=a,a=_+(v+y)|0}n[0]=n[0]+a|0,n[1]=n[1]+r|0,n[2]=n[2]+i|0,n[3]=n[3]+s|0,n[4]=n[4]+o|0,n[5]=n[5]+l|0,n[6]=n[6]+p|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,r=8*t.sigBytes;return n[r>>>5]|=128<<24-r%32,n[14+(r+64>>>9<<4)]=e.floor(a/4294967296),n[15+(r+64>>>9<<4)]=a,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),a.SHA256)},6303:function(e,t,n){var a;e.exports=(a=n(60095),n(2478),function(e){var t=a,n=t.lib,r=n.WordArray,i=n.Hasher,s=t.x64.Word,o=t.algo,c=[],u=[],l=[];!function(){for(var e=1,t=0,n=0;n<24;n++){c[e+5*t]=(n+1)*(n+2)/2%64;var a=(2*e+3*t)%5;e=t%5,t=a}for(e=0;e<5;e++)for(t=0;t<5;t++)u[e+5*t]=t+(2*e+3*t)%5*5;for(var r=1,i=0;i<24;i++){for(var o=0,p=0,d=0;d<7;d++){if(1&r){var m=(1<<d)-1;m<32?p^=1<<m:o^=1<<m-32}128&r?r=r<<1^113:r<<=1}l[i]=s.create(o,p)}}();var p=[];!function(){for(var e=0;e<25;e++)p[e]=s.create()}();var d=o.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,a=this.blockSize/2,r=0;r<a;r++){var i=e[t+2*r],s=e[t+2*r+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(A=n[r]).high^=s,A.low^=i}for(var o=0;o<24;o++){for(var d=0;d<5;d++){for(var m=0,f=0,h=0;h<5;h++)m^=(A=n[d+5*h]).high,f^=A.low;var b=p[d];b.high=m,b.low=f}for(d=0;d<5;d++){var g=p[(d+4)%5],y=p[(d+1)%5],v=y.high,_=y.low;for(m=g.high^(v<<1|_>>>31),f=g.low^(_<<1|v>>>31),h=0;h<5;h++)(A=n[d+5*h]).high^=m,A.low^=f}for(var E=1;E<25;E++){var x=(A=n[E]).high,T=A.low,O=c[E];O<32?(m=x<<O|T>>>32-O,f=T<<O|x>>>32-O):(m=T<<O-32|x>>>64-O,f=x<<O-32|T>>>64-O);var D=p[u[E]];D.high=m,D.low=f}var w=p[0],S=n[0];for(w.high=S.high,w.low=S.low,d=0;d<5;d++)for(h=0;h<5;h++){var A=n[E=d+5*h],C=p[E],R=p[(d+1)%5+5*h],N=p[(d+2)%5+5*h];A.high=C.high^~R.high&N.high,A.low=C.low^~R.low&N.low}A=n[0];var I=l[o];A.high^=I.high,A.low^=I.low}},_doFinalize:function(){var t=this._data,n=t.words,a=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;n[a>>>5]|=1<<24-a%32,n[(e.ceil((a+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var s=this._state,o=this.cfg.outputLength/8,c=o/8,u=[],l=0;l<c;l++){var p=s[l],d=p.high,m=p.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),m=16711935&(m<<8|m>>>24)|4278255360&(m<<24|m>>>8),u.push(m),u.push(d)}return new r.init(u,o)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=i._createHelper(d),t.HmacSHA3=i._createHmacHelper(d)}(Math),a.SHA3)},82963:function(e,t,n){var a,r,i,s,o,c,u,l;e.exports=(l=n(60095),n(2478),n(96018),r=(a=l).x64,i=r.Word,s=r.WordArray,o=a.algo,c=o.SHA512,u=o.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new i.init(3418070365,3238371032),new i.init(1654270250,914150663),new i.init(2438529370,812702999),new i.init(355462360,4144912697),new i.init(1731405415,4290775857),new i.init(2394180231,1750603025),new i.init(3675008525,1694076839),new i.init(1203062813,3204075428)])},_doFinalize:function(){var e=c._doFinalize.call(this);return e.sigBytes-=16,e}}),a.SHA384=c._createHelper(u),a.HmacSHA384=c._createHmacHelper(u),l.SHA384)},96018:function(e,t,n){var a;e.exports=(a=n(60095),n(2478),function(){var e=a,t=e.lib.Hasher,n=e.x64,r=n.Word,i=n.WordArray,s=e.algo;function o(){return r.create.apply(r,arguments)}var c=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],u=[];!function(){for(var e=0;e<80;e++)u[e]=o()}();var l=s.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],r=n[1],i=n[2],s=n[3],o=n[4],l=n[5],p=n[6],d=n[7],m=a.high,f=a.low,h=r.high,b=r.low,g=i.high,y=i.low,v=s.high,_=s.low,E=o.high,x=o.low,T=l.high,O=l.low,D=p.high,w=p.low,S=d.high,A=d.low,C=m,R=f,N=h,I=b,M=g,L=y,j=v,P=_,k=E,F=x,$=T,q=O,U=D,B=w,H=S,G=A,W=0;W<80;W++){var z,Y,V=u[W];if(W<16)Y=V.high=0|e[t+2*W],z=V.low=0|e[t+2*W+1];else{var K=u[W-15],J=K.high,Q=K.low,X=(J>>>1|Q<<31)^(J>>>8|Q<<24)^J>>>7,Z=(Q>>>1|J<<31)^(Q>>>8|J<<24)^(Q>>>7|J<<25),ee=u[W-2],te=ee.high,ne=ee.low,ae=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,re=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),ie=u[W-7],se=ie.high,oe=ie.low,ce=u[W-16],ue=ce.high,le=ce.low;Y=(Y=(Y=X+se+((z=Z+oe)>>>0<Z>>>0?1:0))+ae+((z+=re)>>>0<re>>>0?1:0))+ue+((z+=le)>>>0<le>>>0?1:0),V.high=Y,V.low=z}var pe,de=k&$^~k&U,me=F&q^~F&B,fe=C&N^C&M^N&M,he=R&I^R&L^I&L,be=(C>>>28|R<<4)^(C<<30|R>>>2)^(C<<25|R>>>7),ge=(R>>>28|C<<4)^(R<<30|C>>>2)^(R<<25|C>>>7),ye=(k>>>14|F<<18)^(k>>>18|F<<14)^(k<<23|F>>>9),ve=(F>>>14|k<<18)^(F>>>18|k<<14)^(F<<23|k>>>9),_e=c[W],Ee=_e.high,xe=_e.low,Te=H+ye+((pe=G+ve)>>>0<G>>>0?1:0),Oe=ge+he;H=U,G=B,U=$,B=q,$=k,q=F,k=j+(Te=(Te=(Te=Te+de+((pe+=me)>>>0<me>>>0?1:0))+Ee+((pe+=xe)>>>0<xe>>>0?1:0))+Y+((pe+=z)>>>0<z>>>0?1:0))+((F=P+pe|0)>>>0<P>>>0?1:0)|0,j=M,P=L,M=N,L=I,N=C,I=R,C=Te+(be+fe+(Oe>>>0<ge>>>0?1:0))+((R=pe+Oe|0)>>>0<pe>>>0?1:0)|0}f=a.low=f+R,a.high=m+C+(f>>>0<R>>>0?1:0),b=r.low=b+I,r.high=h+N+(b>>>0<I>>>0?1:0),y=i.low=y+L,i.high=g+M+(y>>>0<L>>>0?1:0),_=s.low=_+P,s.high=v+j+(_>>>0<P>>>0?1:0),x=o.low=x+F,o.high=E+k+(x>>>0<F>>>0?1:0),O=l.low=O+q,l.high=T+$+(O>>>0<q>>>0?1:0),w=p.low=w+B,p.high=D+U+(w>>>0<B>>>0?1:0),A=d.low=A+G,d.high=S+H+(A>>>0<G>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,a=8*e.sigBytes;return t[a>>>5]|=128<<24-a%32,t[30+(a+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(a+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),a.SHA512)},84902:function(e,t,n){var a;e.exports=(a=n(60095),n(81716),n(35478),n(35516),n(59947),function(){var e=a,t=e.lib,n=t.WordArray,r=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=i.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var a=s[n]-1;t[n]=e[a>>>5]>>>31-a%32&1}for(var r=this._subKeys=[],i=0;i<16;i++){var u=r[i]=[],l=c[i];for(n=0;n<24;n++)u[n/6|0]|=t[(o[n]-1+l)%28]<<31-n%6,u[4+(n/6|0)]|=t[28+(o[n+24]-1+l)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var p=this._invSubKeys=[];for(n=0;n<16;n++)p[n]=r[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),d.call(this,1,1431655765);for(var a=0;a<16;a++){for(var r=n[a],i=this._lBlock,s=this._rBlock,o=0,c=0;c<8;c++)o|=u[c][((s^r[c])&l[c])>>>0];this._lBlock=s,this._rBlock=i^o}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,d.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function m(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=r._createHelper(p);var f=i.TripleDES=r.extend({_doReset:function(){var e=this._key.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var t=e.slice(0,2),a=e.length<4?e.slice(0,2):e.slice(2,4),r=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=p.createEncryptor(n.create(t)),this._des2=p.createEncryptor(n.create(a)),this._des3=p.createEncryptor(n.create(r))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(f)}(),a.TripleDES)},2478:function(e,t,n){var a;e.exports=(a=n(60095),function(e){var t=a,n=t.lib,r=n.Base,i=n.WordArray,s=t.x64={};s.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],a=0;a<t;a++){var r=e[a];n.push(r.high),n.push(r.low)}return i.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,a=0;a<n;a++)t[a]=t[a].clone();return e}})}(),a)},24870:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,a="millisecond",r="second",i="minute",s="hour",o="day",c="week",u="month",l="quarter",p="year",d="date",m="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),a=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(r,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var a=12*(n.year()-t.year())+(n.month()-t.month()),r=t.clone().add(a,u),i=n-r<0,s=t.clone().add(a+(i?-1:1),u);return+(-(a+(n-r)/(i?r-s:s-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:p,w:c,d:o,D:d,h:s,m:i,s:r,ms:a,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",_={};_[v]=b;var E="$isDayjsObject",x=function(e){return e instanceof w||!(!e||!e[E])},T=function e(t,n,a){var r;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();_[i]&&(r=i),n&&(_[i]=n,r=i);var s=t.split("-");if(!r&&s.length>1)return e(s[0])}else{var o=t.name;_[o]=t,r=o}return!a&&r&&(v=r),r||!a&&v},O=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},D=y;D.l=T,D.i=x,D.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function b(e){this.$L=T(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[E]=!0}var g=b.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(D.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(f);if(a){var r=a[2]-1||0,i=(a[7]||"0").substring(0,3);return n?new Date(Date.UTC(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)):new Date(a[1],r,a[3]||1,a[4]||0,a[5]||0,a[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return D},g.isValid=function(){return!(this.$d.toString()===m)},g.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return O(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<O(e)},g.$g=function(e,t,n){return D.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,a=!!D.u(t)||t,l=D.p(e),m=function(e,t){var r=D.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return a?r:r.endOf(o)},f=function(e,t){return D.w(n.toDate()[e].apply(n.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,b=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(l){case p:return a?m(1,0):m(31,11);case u:return a?m(1,b):m(0,b+1);case c:var v=this.$locale().weekStart||0,_=(h<v?h+7:h)-v;return m(a?g-_:g+(6-_),b);case o:case d:return f(y+"Hours",0);case s:return f(y+"Minutes",1);case i:return f(y+"Seconds",2);case r:return f(y+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,c=D.p(e),l="set"+(this.$u?"UTC":""),m=(n={},n[o]=l+"Date",n[d]=l+"Date",n[u]=l+"Month",n[p]=l+"FullYear",n[s]=l+"Hours",n[i]=l+"Minutes",n[r]=l+"Seconds",n[a]=l+"Milliseconds",n)[c],f=c===o?this.$D+(t-this.$W):t;if(c===u||c===p){var h=this.clone().set(d,1);h.$d[m](f),h.init(),this.$d=h.set(d,Math.min(this.$D,h.daysInMonth())).$d}else m&&this.$d[m](f);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[D.p(e)]()},g.add=function(a,l){var d,m=this;a=Number(a);var f=D.p(l),h=function(e){var t=O(m);return D.w(t.date(t.date()+Math.round(e*a)),m)};if(f===u)return this.set(u,this.$M+a);if(f===p)return this.set(p,this.$y+a);if(f===o)return h(1);if(f===c)return h(7);var b=(d={},d[i]=t,d[s]=n,d[r]=e,d)[f]||1,g=this.$d.getTime()+a*b;return D.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||m;var a=e||"YYYY-MM-DDTHH:mm:ssZ",r=D.z(this),i=this.$H,s=this.$m,o=this.$M,c=n.weekdays,u=n.months,l=n.meridiem,p=function(e,n,r,i){return e&&(e[n]||e(t,a))||r[n].slice(0,i)},d=function(e){return D.s(i%12||12,e,"0")},f=l||function(e,t,n){var a=e<12?"AM":"PM";return n?a.toLowerCase():a};return a.replace(h,(function(e,a){return a||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return D.s(t.$y,4,"0");case"M":return o+1;case"MM":return D.s(o+1,2,"0");case"MMM":return p(n.monthsShort,o,u,3);case"MMMM":return p(u,o);case"D":return t.$D;case"DD":return D.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,c,2);case"ddd":return p(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return D.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(i,s,!0);case"A":return f(i,s,!1);case"m":return String(s);case"mm":return D.s(s,2,"0");case"s":return String(t.$s);case"ss":return D.s(t.$s,2,"0");case"SSS":return D.s(t.$ms,3,"0");case"Z":return r}return null}(e)||r.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(a,d,m){var f,h=this,b=D.p(d),g=O(a),y=(g.utcOffset()-this.utcOffset())*t,v=this-g,_=function(){return D.m(h,g)};switch(b){case p:f=_()/12;break;case u:f=_();break;case l:f=_()/3;break;case c:f=(v-y)/6048e5;break;case o:f=(v-y)/864e5;break;case s:f=v/n;break;case i:f=v/t;break;case r:f=v/e;break;default:f=v}return m?f:D.a(f)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return _[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),a=T(e,t,!0);return a&&(n.$L=a),n},g.clone=function(){return D.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},b}(),S=w.prototype;return O.prototype=S,[["$ms",a],["$s",r],["$m",i],["$H",s],["$W",o],["$M",u],["$y",p],["$D",d]].forEach((function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),O.extend=function(e,t){return e.$i||(e(t,w,O),e.$i=!0),O},O.locale=T,O.isDayjs=x,O.unix=function(e){return O(1e3*e)},O.en=_[v],O.Ls=_,O.p={},O}()},6228:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,a=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,i={},s=function(e){return(e=+e)+(e>68?1900:2e3)},o=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,a=i.meridiem;if(a){for(var r=1;r<=24;r+=1)if(e.indexOf(a(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[r,function(e){this.afternoon=l(e,!1)}],a:[r,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,o("seconds")],ss:[a,o("seconds")],m:[a,o("minutes")],mm:[a,o("minutes")],H:[a,o("hours")],h:[a,o("hours")],HH:[a,o("hours")],hh:[a,o("hours")],D:[a,o("day")],DD:[n,o("day")],Do:[r,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var a=1;a<=31;a+=1)t(a).replace(/\[|\]/g,"")===e&&(this.day=a)}],M:[a,o("month")],MM:[n,o("month")],MMM:[r,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,o("year")],YY:[n,function(e){this.year=s(e)}],YYYY:[/\d{4}/,o("year")],Z:c,ZZ:c};function d(n){var a,r;a=n,r=i&&i.formats;for(var s=(n=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,a){var i=a&&a.toUpperCase();return n||r[a]||e[a]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),o=s.length,c=0;c<o;c+=1){var u=s[c],l=p[u],d=l&&l[0],m=l&&l[1];s[c]=m?{regex:d,parser:m}:u.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,a=0;n<o;n+=1){var r=s[n];if("string"==typeof r)a+=r.length;else{var i=r.regex,c=r.parser,u=e.slice(a),l=i.exec(u)[0];c.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var a=t.prototype,r=a.parse;a.parse=function(e){var t=e.date,a=e.utc,s=e.args;this.$u=a;var o=s[1];if("string"==typeof o){var c=!0===s[2],u=!0===s[3],l=c||u,p=s[2];u&&(p=s[2]),i=this.$locale(),!c&&p&&(i=n.Ls[p]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var a=d(t)(e),r=a.year,i=a.month,s=a.day,o=a.hours,c=a.minutes,u=a.seconds,l=a.milliseconds,p=a.zone,m=new Date,f=s||(r||i?1:m.getDate()),h=r||m.getFullYear(),b=0;r&&!i||(b=i>0?i-1:m.getMonth());var g=o||0,y=c||0,v=u||0,_=l||0;return p?new Date(Date.UTC(h,b,f,g,y,v,_+60*p.offset*1e3)):n?new Date(Date.UTC(h,b,f,g,y,v,_)):new Date(h,b,f,g,y,v,_)}catch(e){return new Date("")}}(t,o,a),this.init(),p&&!0!==p&&(this.$L=this.locale(p).$L),l&&t!=this.format(o)&&(this.$d=new Date("")),i={}}else if(o instanceof Array)for(var m=o.length,f=1;f<=m;f+=1){s[1]=o[f-1];var h=n.apply(this,s);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}f===m&&(this.$d=new Date(""))}else r.call(this,e)}}}()},29573:function(e){e.exports=function(){"use strict";var e,t,n=1e3,a=6e4,r=36e5,i=864e5,s=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,o=31536e6,c=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:o,months:c,days:i,hours:r,minutes:a,seconds:n,milliseconds:1,weeks:6048e5},p=function(e){return e instanceof y},d=function(e,t,n){return new y(e,n,t.$l)},m=function(e){return t.p(e)+"s"},f=function(e){return e<0},h=function(e){return f(e)?Math.ceil(e):Math.floor(e)},b=function(e){return Math.abs(e)},g=function(e,t){return e?f(e)?{negative:!0,format:""+b(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},y=function(){function f(e,t,n){var a=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*l[m(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){a.$d[m(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var r=e.match(u);if(r){var i=r.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var b=f.prototype;return b.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*l[n]}),0)},b.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=h(e/o),e%=o,this.$d.months=h(e/c),e%=c,this.$d.days=h(e/i),e%=i,this.$d.hours=h(e/r),e%=r,this.$d.minutes=h(e/a),e%=a,this.$d.seconds=h(e/n),e%=n,this.$d.milliseconds=e},b.toISOString=function(){var e=g(this.$d.years,"Y"),t=g(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var a=g(n,"D"),r=g(this.$d.hours,"H"),i=g(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3,s=Math.round(1e3*s)/1e3);var o=g(s,"S"),c=e.negative||t.negative||a.negative||r.negative||i.negative||o.negative,u=r.format||i.format||o.format?"T":"",l=(c?"-":"")+"P"+e.format+t.format+a.format+u+r.format+i.format+o.format;return"P"===l||"-P"===l?"P0D":l},b.toJSON=function(){return this.toISOString()},b.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",a={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(s,(function(e,t){return t||String(a[e])}))},b.as=function(e){return this.$ms/l[m(e)]},b.get=function(e){var t=this.$ms,n=m(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?h(t/l[n]):this.$d[n],t||0},b.add=function(e,t,n){var a;return a=t?e*l[m(t)]:p(e)?e.$ms:d(e,this).$ms,d(this.$ms+a*(n?-1:1),this)},b.subtract=function(e,t){return this.add(e,t,!0)},b.locale=function(e){var t=this.clone();return t.$l=e,t},b.clone=function(){return d(this.$ms,this)},b.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},b.valueOf=function(){return this.asMilliseconds()},b.milliseconds=function(){return this.get("milliseconds")},b.asMilliseconds=function(){return this.as("milliseconds")},b.seconds=function(){return this.get("seconds")},b.asSeconds=function(){return this.as("seconds")},b.minutes=function(){return this.get("minutes")},b.asMinutes=function(){return this.as("minutes")},b.hours=function(){return this.get("hours")},b.asHours=function(){return this.as("hours")},b.days=function(){return this.get("days")},b.asDays=function(){return this.as("days")},b.weeks=function(){return this.get("weeks")},b.asWeeks=function(){return this.as("weeks")},b.months=function(){return this.get("months")},b.asMonths=function(){return this.as("months")},b.years=function(){return this.get("years")},b.asYears=function(){return this.as("years")},f}(),v=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,a,r){e=r,t=r().$utils(),r.duration=function(e,t){var n=r.locale();return d(e,{$l:n},t)},r.isDuration=p;var i=a.prototype.add,s=a.prototype.subtract;a.prototype.add=function(e,t){return p(e)?v(this,e,1):i.bind(this)(e,t)},a.prototype.subtract=function(e,t){return p(e)?v(this,e,-1):s.bind(this)(e,t)}}}()},24548:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var a=t.prototype,r={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,n,r){return a.fromToBase(e,t,n,r)}n.en.relativeTime=r,a.fromToBase=function(t,a,i,s,o){for(var c,u,l,p=i.$locale().relativeTime||r,d=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=d.length,f=0;f<m;f+=1){var h=d[f];h.d&&(c=s?n(t).diff(i,h.d,!0):i.diff(t,h.d,!0));var b=(e.rounding||Math.round)(Math.abs(c));if(l=c>0,b<=h.r||!h.r){b<=1&&f>0&&(h=d[f-1]);var g=p[h.l];o&&(b=o(""+b)),u="string"==typeof g?g.replace("%d",b):g(b,a,h.l,l);break}}if(a)return u;var y=l?p.future:p.past;return"function"==typeof y?y(u):y.replace("%s",u)},a.to=function(e,t){return i(e,t,this,!0)},a.from=function(e,t){return i(e,t,this)};var s=function(e){return e.$u?n.utc():n()};a.toNow=function(e){return this.to(s(this),e)},a.fromNow=function(e){return this.from(s(this),e)}}}()},69086:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,a,r){var i,s=function(e,n,a){void 0===a&&(a={});var r=new Date(e),i=function(e,n){void 0===n&&(n={});var a=n.timeZoneName||"short",r=e+"|"+a,i=t[r];return i||(i=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",timeZoneName:a}),t[r]=i),i}(n,a);return i.formatToParts(r)},o=function(t,n){for(var a=s(t,n),i=[],o=0;o<a.length;o+=1){var c=a[o],u=c.type,l=c.value,p=e[u];p>=0&&(i[p]=parseInt(l,10))}var d=i[3],m=24===d?0:d,f=i[0]+"-"+i[1]+"-"+i[2]+" "+m+":"+i[4]+":"+i[5]+":000",h=+t;return(r.utc(f).valueOf()-(h-=h%1e3))/6e4},c=a.prototype;c.tz=function(e,t){void 0===e&&(e=i);var n=this.utcOffset(),a=this.toDate(),s=a.toLocaleString("en-US",{timeZone:e}),o=Math.round((a-new Date(s))/1e3/60),c=r(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(a.getTimezoneOffset()/15)-o,!0);if(t){var u=c.utcOffset();c=c.add(n-u,"minute")}return c.$x.$timezone=e,c},c.offsetName=function(e){var t=this.$x.$timezone||r.tz.guess(),n=s(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var u=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var n=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(n,e,t).tz(this.$x.$timezone,!0)},r.tz=function(e,t,n){var a=n&&t,s=n||t||i,c=o(+r(),s);if("string"!=typeof e)return r(e).tz(s);var u=function(e,t,n){var a=e-60*t*1e3,r=o(a,n);if(t===r)return[a,t];var i=o(a-=60*(r-t)*1e3,n);return r===i?[a,r]:[e-60*Math.min(r,i)*1e3,Math.max(r,i)]}(r.utc(e,a).valueOf(),c,s),l=u[0],p=u[1],d=r(l).utcOffset(p);return d.$x.$timezone=s,d},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(e){i=e}}}()},88219:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(a,r,i){var s=r.prototype;i.utc=function(e){return new r({date:e,utc:!0,args:arguments})},s.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var o=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),o.call(this,e)};var c=s.init;s.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var u=s.utcOffset;s.utcOffset=function(a,r){var i=this.$utils().u;if(i(a))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof a&&(a=function(e){void 0===e&&(e="");var a=e.match(t);if(!a)return null;var r=(""+a[0]).match(n)||["-",0,0],i=r[0],s=60*+r[1]+ +r[2];return 0===s?0:"+"===i?s:-s}(a),null===a))return this;var s=Math.abs(a)<=16?60*a:a,o=this;if(r)return o.$offset=s,o.$u=0===a,o;if(0!==a){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(o=this.local().add(s+c,e)).$offset=s,o.$x.$localOffset=c}else o=this.utc();return o};var l=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var p=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():p.call(this)};var d=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var a=this.local(),r=i(e).local();return d.call(a,r,t,n)}}}()},79311:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,a=(n<t?n+7:n)-t;return this.$utils().u(e)?a:this.subtract(a,"day").add(e,"day")}}}()},44923:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let a=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(a++,"%c"===e&&(r=a))})),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(18950)(t);const{formatters:a}=e.exports;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},18950:(e,t,n)=>{e.exports=function(e){function t(e){let n,r,i,s=null;function o(...e){if(!o.enabled)return;const a=o,r=Number(new Date),i=r-(n||r);a.diff=i,a.prev=n,a.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,r)=>{if("%%"===n)return"%";s++;const i=t.formatters[r];if("function"==typeof i){const t=e[s];n=i.call(a,t),e.splice(s,1),s--}return n})),t.formatArgs.call(a,e);(a.log||t.log).apply(a,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=a,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(r!==t.namespaces&&(r=t.namespaces,i=t.enabled(e)),i),set:e=>{s=e}}),"function"==typeof t.init&&t.init(o),o}function a(e,n){const a=t(this.namespace+(void 0===n?":":n)+e);return a.log=this.log,a}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const a=("string"==typeof e?e:"").split(/[\s,]+/),r=a.length;for(n=0;n<r;n++)a[n]&&("-"===(e=a[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,a;for(n=0,a=t.skips.length;n<a;n++)if(t.skips[n].test(e))return!1;for(n=0,a=t.names.length;n<a;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(97821),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},64935:(e,t,n)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(44923):e.exports=n(28471)},28471:(e,t,n)=>{const a=n(52018),r=n(39023);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let a=0;a<n.length;a++)e.inspectOpts[n[a]]=t.inspectOpts[n[a]]},t.log=function(...e){return process.stderr.write(r.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:a,useColors:r}=this;if(r){const t=this.color,r="[3"+(t<8?t:"8;5;"+t),i=` ${r};1m${a} `;n[0]=i+n[0].split("\n").join("\n"+i),n.push(r+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+a+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):a.isatty(process.stderr.fd)},t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=n(11754);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let a=process.env[t];return a=!!/^(yes|on|true|enabled)$/i.test(a)||!/^(no|off|false|disabled)$/i.test(a)&&("null"===a?null:Number(a)),e[n]=a,e}),{}),e.exports=n(18950)(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}},59366:(e,t,n)=>{var a=n(2203).Stream,r=n(39023);function i(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=i,r.inherits(i,a),i.create=function(e,t){var n=new this;for(var a in t=t||{})n[a]=t[a];n.source=e;var r=e.emit;return e.emit=function(){return n._handleEmit(arguments),r.apply(e,arguments)},e.on("error",(function(){})),n.pauseStream&&e.pause(),n},Object.defineProperty(i.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),i.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},i.prototype.resume=function(){this._released||this.release(),this.source.resume()},i.prototype.pause=function(){this.source.pause()},i.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},i.prototype.pipe=function(){var e=a.prototype.pipe.apply(this,arguments);return this.resume(),e},i.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},i.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},44511:(e,t,n)=>{"use strict";const{anyMap:a,producersMap:r,eventsMap:i}=n(68792),s=Symbol("anyProducer"),o=Promise.resolve(),c=Symbol("listenerAdded"),u=Symbol("listenerRemoved");let l=!1,p=!1;function d(e){if("string"!=typeof e&&"symbol"!=typeof e&&"number"!=typeof e)throw new TypeError("`eventName` must be a string, symbol, or number")}function m(e){if("function"!=typeof e)throw new TypeError("listener must be a function")}function f(e,t){const n=i.get(e);if(n.has(t))return n.get(t)}function h(e,t){const n="string"==typeof t||"symbol"==typeof t||"number"==typeof t?t:s,a=r.get(e);if(a.has(n))return a.get(n)}function b(e,t){t=Array.isArray(t)?t:[t];let n=!1,a=()=>{},i=[];const s={enqueue(e){i.push(e),a()},finish(){n=!0,a()}};for(const n of t){let t=h(e,n);if(!t){t=new Set;r.get(e).set(n,t)}t.add(s)}return{async next(){return i?0===i.length?n?(i=void 0,this.next()):(await new Promise((e=>{a=e})),this.next()):{done:!1,value:await i.shift()}:{done:!0}},async return(n){i=void 0;for(const n of t){const t=h(e,n);if(t&&(t.delete(s),0===t.size)){r.get(e).delete(n)}}return a(),arguments.length>0?{done:!0,value:await n}:{done:!0}},[Symbol.asyncIterator](){return this}}}function g(e){if(void 0===e)return E;if(!Array.isArray(e))throw new TypeError("`methodNames` must be an array of strings");for(const t of e)if(!E.includes(t)){if("string"!=typeof t)throw new TypeError("`methodNames` element must be a string");throw new Error(`${t} is not Emittery method`)}return e}const y=e=>e===c||e===u;function v(e,t,n){if(y(t))try{l=!0,e.emit(t,n)}finally{l=!1}}class _{static mixin(e,t){return t=g(t),n=>{if("function"!=typeof n)throw new TypeError("`target` must be function");for(const e of t)if(void 0!==n.prototype[e])throw new Error(`The property \`${e}\` already exists on \`target\``);Object.defineProperty(n.prototype,e,{enumerable:!1,get:function(){return Object.defineProperty(this,e,{enumerable:!1,value:new _}),this[e]}});const a=t=>function(...n){return this[e][t](...n)};for(const e of t)Object.defineProperty(n.prototype,e,{enumerable:!1,value:a(e)});return n}}static get isDebugEnabled(){if("object"!=typeof process)return p;const{env:e}=process||{env:{}};return"emittery"===e.DEBUG||"*"===e.DEBUG||p}static set isDebugEnabled(e){p=e}constructor(e={}){a.set(this,new Set),i.set(this,new Map),r.set(this,new Map),r.get(this).set(s,new Set),this.debug=e.debug||{},void 0===this.debug.enabled&&(this.debug.enabled=!1),this.debug.logger||(this.debug.logger=(e,t,n,a)=>{try{a=JSON.stringify(a)}catch{a=`Object with the following keys failed to stringify: ${Object.keys(a).join(",")}`}"symbol"!=typeof n&&"number"!=typeof n||(n=n.toString());const r=new Date,i=`${r.getHours()}:${r.getMinutes()}:${r.getSeconds()}.${r.getMilliseconds()}`;console.log(`[${i}][emittery:${e}][${t}] Event Name: ${n}\n\tdata: ${a}`)})}logIfDebugEnabled(e,t,n){(_.isDebugEnabled||this.debug.enabled)&&this.debug.logger(e,this.debug.name,t,n)}on(e,t){m(t),e=Array.isArray(e)?e:[e];for(const n of e){d(n);let e=f(this,n);if(!e){e=new Set;i.get(this).set(n,e)}e.add(t),this.logIfDebugEnabled("subscribe",n,void 0),y(n)||v(this,c,{eventName:n,listener:t})}return this.off.bind(this,e,t)}off(e,t){m(t),e=Array.isArray(e)?e:[e];for(const n of e){d(n);const e=f(this,n);if(e&&(e.delete(t),0===e.size)){i.get(this).delete(n)}this.logIfDebugEnabled("unsubscribe",n,void 0),y(n)||v(this,u,{eventName:n,listener:t})}}once(e){let t;const n=new Promise((n=>{t=this.on(e,(e=>{t(),n(e)}))}));return n.off=t,n}events(e){e=Array.isArray(e)?e:[e];for(const t of e)d(t);return b(this,e)}async emit(e,t){if(d(e),y(e)&&!l)throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled("emit",e,t),function(e,t,n){const a=r.get(e);if(a.has(t))for(const e of a.get(t))e.enqueue(n);if(a.has(s)){const e=Promise.all([t,n]);for(const t of a.get(s))t.enqueue(e)}}(this,e,t);const n=f(this,e)||new Set,i=a.get(this),c=[...n],u=y(e)?[]:[...i];await o,await Promise.all([...c.map((async e=>{if(n.has(e))return e(t)})),...u.map((async n=>{if(i.has(n))return n(e,t)}))])}async emitSerial(e,t){if(d(e),y(e)&&!l)throw new TypeError("`eventName` cannot be meta event `listenerAdded` or `listenerRemoved`");this.logIfDebugEnabled("emitSerial",e,t);const n=f(this,e)||new Set,r=a.get(this),i=[...n],s=[...r];await o;for(const e of i)n.has(e)&&await e(t);for(const n of s)r.has(n)&&await n(e,t)}onAny(e){return m(e),this.logIfDebugEnabled("subscribeAny",void 0,void 0),a.get(this).add(e),v(this,c,{listener:e}),this.offAny.bind(this,e)}anyEvent(){return b(this)}offAny(e){m(e),this.logIfDebugEnabled("unsubscribeAny",void 0,void 0),v(this,u,{listener:e}),a.get(this).delete(e)}clearListeners(e){e=Array.isArray(e)?e:[e];for(const t of e)if(this.logIfDebugEnabled("clear",t,void 0),"string"==typeof t||"symbol"==typeof t||"number"==typeof t){const e=f(this,t);e&&e.clear();const n=h(this,t);if(n){for(const e of n)e.finish();n.clear()}}else{a.get(this).clear();for(const[e,t]of i.get(this).entries())t.clear(),i.get(this).delete(e);for(const[e,t]of r.get(this).entries()){for(const e of t)e.finish();t.clear(),r.get(this).delete(e)}}}listenerCount(e){e=Array.isArray(e)?e:[e];let t=0;for(const n of e)if("string"!=typeof n){void 0!==n&&d(n),t+=a.get(this).size;for(const e of i.get(this).values())t+=e.size;for(const e of r.get(this).values())t+=e.size}else t+=a.get(this).size+(f(this,n)||new Set).size+(h(this,n)||new Set).size+(h(this)||new Set).size;return t}bindMethods(e,t){if("object"!=typeof e||null===e)throw new TypeError("`target` must be an object");t=g(t);for(const n of t){if(void 0!==e[n])throw new Error(`The property \`${n}\` already exists on \`target\``);Object.defineProperty(e,n,{enumerable:!1,value:this[n].bind(this)})}}}const E=Object.getOwnPropertyNames(_.prototype).filter((e=>"constructor"!==e));Object.defineProperty(_,"listenerAdded",{value:c,writable:!1,enumerable:!0,configurable:!1}),Object.defineProperty(_,"listenerRemoved",{value:u,writable:!1,enumerable:!0,configurable:!1}),e.exports=_},68792:e=>{const t=new WeakMap,n=new WeakMap,a=new WeakMap;e.exports={anyMap:t,eventsMap:n,producersMap:a}},86102:e=>{"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},12097:(e,t,n)=>{var a;e=n.nmd(e),function(){"use strict";var r;try{r="undefined"!=typeof Intl&&void 0!==Intl.Collator?Intl.Collator("generic",{sensitivity:"base"}):null}catch(e){console.log("Collator could not be initialized and wouldn't be used")}var i=[],s=[],o={get:function(e,t,n){var a,o,c,u,l,p,d=n&&r&&n.useCollator,m=e.length,f=t.length;if(0===m)return f;if(0===f)return m;for(c=0;c<f;++c)i[c]=c,s[c]=t.charCodeAt(c);if(i[f]=f,d)for(c=0;c<m;++c){for(o=c+1,u=0;u<f;++u)a=o,p=0===r.compare(e.charAt(c),String.fromCharCode(s[u])),(o=i[u]+(p?0:1))>(l=a+1)&&(o=l),o>(l=i[u+1]+1)&&(o=l),i[u]=a;i[u]=o}else for(c=0;c<m;++c){for(o=c+1,u=0;u<f;++u)a=o,p=e.charCodeAt(c)===s[u],(o=i[u]+(p?0:1))>(l=a+1)&&(o=l),o>(l=i[u+1]+1)&&(o=l),i[u]=a;i[u]=o}return o}};null!==n.amdD&&n.amdO?void 0===(a=function(){return o}.call(t,n,t,e))||(e.exports=a):null!==e&&void 0!==t&&e.exports===t?e.exports=o:"undefined"!=typeof self&&"function"==typeof self.postMessage&&"function"==typeof self.importScripts?self.Levenshtein=o:"undefined"!=typeof window&&null!==window&&(window.Levenshtein=o)}()},2499:(e,t,n)=>{var a;e.exports=function(){if(!a){try{a=n(64935)("follow-redirects")}catch(e){}"function"!=typeof a&&(a=function(){})}a.apply(null,arguments)}},1404:(e,t,n)=>{var a=n(87016),r=a.URL,i=n(58611),s=n(65692),o=n(2203).Writable,c=n(42613),u=n(2499),l=!1;try{c(new r)}catch(e){l="ERR_INVALID_URL"===e.code}var p=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],d=["abort","aborted","connect","error","socket","timeout"],m=Object.create(null);d.forEach((function(e){m[e]=function(t,n,a){this._redirectable.emit(e,t,n,a)}}));var f=S("ERR_INVALID_URL","Invalid URL",TypeError),h=S("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),b=S("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",h),g=S("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),y=S("ERR_STREAM_WRITE_AFTER_END","write after end"),v=o.prototype.destroy||x;function _(e,t){o.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof h?e:new h({cause:e}))}},this._performRequest()}function E(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(a){var i=a+":",s=n[i]=e[a],o=t[a]=Object.create(s);Object.defineProperties(o,{request:{value:function(e,a,s){var o;return o=e,r&&o instanceof r?e=D(e):C(e)?e=D(T(e)):(s=a,a=O(e),e={protocol:i}),R(a)&&(s=a,a=null),(a=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,a)).nativeProtocols=n,C(a.host)||C(a.hostname)||(a.hostname="::1"),c.equal(a.protocol,i,"protocol mismatch"),u("options",a),new _(a,s)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var a=o.request(e,t,n);return a.end(),a},configurable:!0,enumerable:!0,writable:!0}})})),t}function x(){}function T(e){var t;if(l)t=new r(e);else if(!C((t=O(a.parse(e))).protocol))throw new f({input:e});return t}function O(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new f({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new f({input:e.href||e});return e}function D(e,t){var n=t||{};for(var a of p)n[a]=e[a];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function w(e,t){var n;for(var a in t)e.test(a)&&(n=t[a],delete t[a]);return null==n?void 0:String(n).trim()}function S(e,t,n){function a(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return a.prototype=new(n||Error),Object.defineProperties(a.prototype,{constructor:{value:a,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),a}function A(e,t){for(var n of d)e.removeListener(n,m[n]);e.on("error",x),e.destroy(t)}function C(e){return"string"==typeof e||e instanceof String}function R(e){return"function"==typeof e}_.prototype=Object.create(o.prototype),_.prototype.abort=function(){A(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},_.prototype.destroy=function(e){return A(this._currentRequest,e),v.call(this,e),this},_.prototype.write=function(e,t,n){if(this._ending)throw new y;if(!C(e)&&("object"!=typeof(a=e)||!("length"in a)))throw new TypeError("data should be a string, Buffer or Uint8Array");var a;R(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new g),this.abort()):n&&n()},_.prototype.end=function(e,t,n){if(R(e)?(n=e,e=t=null):R(t)&&(n=t,t=null),e){var a=this,r=this._currentRequest;this.write(e,t,(function(){a._ended=!0,r.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},_.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},_.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},_.prototype.setTimeout=function(e,t){var n=this;function a(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function r(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),i()}),e),a(t)}function i(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",i),n.removeListener("error",i),n.removeListener("response",i),n.removeListener("close",i),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",r)}return t&&this.on("timeout",t),this.socket?r(this.socket):this._currentRequest.once("socket",r),this.on("socket",a),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){_.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(_.prototype,e,{get:function(){return this._currentRequest[e]}})})),_.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},_.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var i of(r._redirectable=this,d))r.on(i,m[i]);if(this._currentUrl=/^\//.test(this._options.path)?a.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,c=this._requestBodyBuffers;!function e(t){if(r===o._currentRequest)if(t)o.emit("error",t);else if(s<c.length){var n=c[s++];r.finished||r.write(n.data,n.encoding,e)}else o._ended&&r.end()}()}},_.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,i=e.headers.location;if(!i||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(A(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new b;var s=this._options.beforeRedirect;s&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],w(/^content-/i,this._options.headers));var p,d,m=w(/^host$/i,this._options.headers),f=T(this._currentUrl),h=m||f.host,g=/^\w+:/.test(i)?this._currentUrl:a.format(Object.assign(f,{host:h})),y=(p=i,d=g,l?new r(p,d):T(a.resolve(d,p)));if(u("redirecting to",y.href),this._isRedirect=!0,D(y,this._options),(y.protocol!==f.protocol&&"https:"!==y.protocol||y.host!==h&&!function(e,t){c(C(e)&&C(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(y.host,h))&&w(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),R(s)){var v={headers:e.headers,statusCode:t},_={url:g,method:o,headers:n};s(this._options,v,_),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=E({http:i,https:s}),e.exports.wrap=E},78455:(e,t,n)=>{var a=n(50135),r=n(39023),i=n(16928),s=n(58611),o=n(65692),c=n(87016).parse,u=n(79896),l=n(2203).Stream,p=n(82829),d=n(58146),m=n(59872);function f(e){if(!(this instanceof f))return new f(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],a.call(this),e=e||{})this[t]=e[t]}e.exports=f,r.inherits(f,a),f.LINE_BREAK="\r\n",f.DEFAULT_CONTENT_TYPE="application/octet-stream",f.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var i=a.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),r.isArray(t))this._error(new Error("Arrays are not supported."));else{var s=this._multiPartHeader(e,t,n),o=this._multiPartFooter();i(s),i(t),i(o),this._trackLength(s,t,n)}},f.prototype._trackLength=function(e,t,n){var a=0;null!=n.knownLength?a+=+n.knownLength:Buffer.isBuffer(t)?a=t.length:"string"==typeof t&&(a=Buffer.byteLength(t)),this._valueLength+=a,this._overheadLength+=Buffer.byteLength(e)+f.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof l)&&(n.knownLength||this._valuesToMeasure.push(t))},f.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):u.stat(e.path,(function(n,a){var r;n?t(n):(r=a.size-(e.start?e.start:0),t(null,r))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},f.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var a,r=this._getContentDisposition(t,n),i=this._getContentType(t,n),s="",o={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(i||[])};for(var c in"object"==typeof n.header&&m(o,n.header),o)o.hasOwnProperty(c)&&null!=(a=o[c])&&(Array.isArray(a)||(a=[a]),a.length&&(s+=c+": "+a.join("; ")+f.LINE_BREAK));return"--"+this.getBoundary()+f.LINE_BREAK+s+f.LINE_BREAK},f.prototype._getContentDisposition=function(e,t){var n,a;return"string"==typeof t.filepath?n=i.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=i.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(n=i.basename(e.client._httpMessage.path||"")),n&&(a='filename="'+n+'"'),a},f.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=p.lookup(e.name)),!n&&e.path&&(n=p.lookup(e.path)),!n&&e.readable&&e.hasOwnProperty("httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=p.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=f.DEFAULT_CONTENT_TYPE),n},f.prototype._multiPartFooter=function(){return function(e){var t=f.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},f.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+f.LINE_BREAK},f.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(n[t.toLowerCase()]=e[t]);return n},f.prototype.setBoundary=function(e){this._boundary=e},f.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},f.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,a=this._streams.length;n<a;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(f.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},f.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},f.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},f.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},f.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?d.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,a){n?e(n):(a.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},f.prototype.submit=function(e,t){var n,a,r={method:"post"};return"string"==typeof e?(e=c(e),a=m({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(a=m(e,r)).port||(a.port="https:"==a.protocol?443:80),a.headers=this.getHeaders(e.headers),n="https:"==a.protocol?o.request(a):s.request(a),this.getLength(function(e,a){if(e&&"Unknown stream"!==e)this._error(e);else if(a&&n.setHeader("Content-Length",a),this.pipe(n),t){var r,i=function(e,a){return n.removeListener("error",i),n.removeListener("response",r),t.call(this,e,a)};r=i.bind(this,null),n.on("error",i),n.on("response",r)}}.bind(this)),n},f.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},f.prototype.toString=function(){return"[object FormData]"}},59872:e=>{e.exports=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e}},58359:e=>{"use strict";e.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var n={__proto__:t(e)};else n=Object.create(null);return Object.getOwnPropertyNames(e).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})),n};var t=Object.getPrototypeOf||function(e){return e.__proto__}},70627:(e,t,n)=>{var a,r,i=n(79896),s=n(58254),o=n(60111),c=n(58359),u=n(39023);function l(e,t){Object.defineProperty(e,a,{get:function(){return t}})}"function"==typeof Symbol&&"function"==typeof Symbol.for?(a=Symbol.for("graceful-fs.queue"),r=Symbol.for("graceful-fs.previous")):(a="___graceful-fs.queue",r="___graceful-fs.previous");var p,d=function(){};if(u.debuglog?d=u.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(d=function(){var e=u.format.apply(u,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),!i[a]){var m=global[a]||[];l(i,m),i.close=function(e){function t(t,n){return e.call(i,t,(function(e){e||b(),"function"==typeof n&&n.apply(this,arguments)}))}return Object.defineProperty(t,r,{value:e}),t}(i.close),i.closeSync=function(e){function t(t){e.apply(i,arguments),b()}return Object.defineProperty(t,r,{value:e}),t}(i.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",(function(){d(i[a]),n(42613).equal(i[a].length,0)}))}function f(e){s(e),e.gracefulify=f,e.createReadStream=function(t,n){return new e.ReadStream(t,n)},e.createWriteStream=function(t,n){return new e.WriteStream(t,n)};var t=e.readFile;e.readFile=function(e,n,a){"function"==typeof n&&(a=n,n=null);return function e(n,a,r,i){return t(n,a,(function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?"function"==typeof r&&r.apply(this,arguments):h([e,[n,a,r],t,i||Date.now(),Date.now()])}))}(e,n,a)};var n=e.writeFile;e.writeFile=function(e,t,a,r){"function"==typeof a&&(r=a,a=null);return function e(t,a,r,i,s){return n(t,a,r,(function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?"function"==typeof i&&i.apply(this,arguments):h([e,[t,a,r,i],n,s||Date.now(),Date.now()])}))}(e,t,a,r)};var a=e.appendFile;a&&(e.appendFile=function(e,t,n,r){"function"==typeof n&&(r=n,n=null);return function e(t,n,r,i,s){return a(t,n,r,(function(a){!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?"function"==typeof i&&i.apply(this,arguments):h([e,[t,n,r,i],a,s||Date.now(),Date.now()])}))}(e,t,n,r)});var r=e.copyFile;r&&(e.copyFile=function(e,t,n,a){"function"==typeof n&&(a=n,n=0);return function e(t,n,a,i,s){return r(t,n,a,(function(r){!r||"EMFILE"!==r.code&&"ENFILE"!==r.code?"function"==typeof i&&i.apply(this,arguments):h([e,[t,n,a,i],r,s||Date.now(),Date.now()])}))}(e,t,n,a)});var i=e.readdir;e.readdir=function(e,t,n){"function"==typeof t&&(n=t,t=null);var a=c.test(process.version)?function(e,t,n,a){return i(e,r(e,t,n,a))}:function(e,t,n,a){return i(e,t,r(e,t,n,a))};return a(e,t,n);function r(e,t,n,r){return function(i,s){!i||"EMFILE"!==i.code&&"ENFILE"!==i.code?(s&&s.sort&&s.sort(),"function"==typeof n&&n.call(this,i,s)):h([a,[e,t,n],i,r||Date.now(),Date.now()])}}};var c=/^v[0-5]\./;if("v0.8"===process.version.substr(0,4)){var u=o(e);b=u.ReadStream,g=u.WriteStream}var l=e.ReadStream;l&&(b.prototype=Object.create(l.prototype),b.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,(function(t,n){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n),e.read())}))});var p=e.WriteStream;p&&(g.prototype=Object.create(p.prototype),g.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,(function(t,n){t?(e.destroy(),e.emit("error",t)):(e.fd=n,e.emit("open",n))}))}),Object.defineProperty(e,"ReadStream",{get:function(){return b},set:function(e){b=e},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return g},set:function(e){g=e},enumerable:!0,configurable:!0});var d=b;Object.defineProperty(e,"FileReadStream",{get:function(){return d},set:function(e){d=e},enumerable:!0,configurable:!0});var m=g;function b(e,t){return this instanceof b?(l.apply(this,arguments),this):b.apply(Object.create(b.prototype),arguments)}function g(e,t){return this instanceof g?(p.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(e){m=e},enumerable:!0,configurable:!0});var y=e.open;function v(e,t,n,a){return"function"==typeof n&&(a=n,n=null),function e(t,n,a,r,i){return y(t,n,a,(function(s,o){!s||"EMFILE"!==s.code&&"ENFILE"!==s.code?"function"==typeof r&&r.apply(this,arguments):h([e,[t,n,a,r],s,i||Date.now(),Date.now()])}))}(e,t,n,a)}return e.open=v,e}function h(e){d("ENQUEUE",e[0].name,e[1]),i[a].push(e),g()}function b(){for(var e=Date.now(),t=0;t<i[a].length;++t)i[a][t].length>2&&(i[a][t][3]=e,i[a][t][4]=e);g()}function g(){if(clearTimeout(p),p=void 0,0!==i[a].length){var e=i[a].shift(),t=e[0],n=e[1],r=e[2],s=e[3],o=e[4];if(void 0===s)d("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-s>=6e4){d("TIMEOUT",t.name,n);var c=n.pop();"function"==typeof c&&c.call(null,r)}else{var u=Date.now()-o,l=Math.max(o-s,1);u>=Math.min(1.2*l,100)?(d("RETRY",t.name,n),t.apply(null,n.concat([s]))):i[a].push(e)}void 0===p&&(p=setTimeout(g,0))}}global[a]||l(global,i[a]),e.exports=f(c(i)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!i.__patched&&(e.exports=f(i),i.__patched=!0)},60111:(e,t,n)=>{var a=n(2203).Stream;e.exports=function(e){return{ReadStream:function t(n,r){if(!(this instanceof t))return new t(n,r);a.call(this);var i=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,r=r||{};for(var s=Object.keys(r),o=0,c=s.length;o<c;o++){var u=s[o];this[u]=r[u]}this.encoding&&this.setEncoding(this.encoding);if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void process.nextTick((function(){i._read()}));e.open(this.path,this.flags,this.mode,(function(e,t){if(e)return i.emit("error",e),void(i.readable=!1);i.fd=t,i.emit("open",t),i._read()}))},WriteStream:function t(n,r){if(!(this instanceof t))return new t(n,r);a.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,r=r||{};for(var i=Object.keys(r),s=0,o=i.length;s<o;s++){var c=i[s];this[c]=r[c]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}},58254:(e,t,n)=>{var a=n(49140),r=process.cwd,i=null,s=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=r.call(process)),i};try{process.cwd()}catch(e){}if("function"==typeof process.chdir){var o=process.chdir;process.chdir=function(e){i=null,o.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,o)}e.exports=function(e){a.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,r){e.open(t,a.O_WRONLY|a.O_SYMLINK,n,(function(t,a){t?r&&r(t):e.fchmod(a,n,(function(t){e.close(a,(function(e){r&&r(t||e)}))}))}))},e.lchmodSync=function(t,n){var r,i=e.openSync(t,a.O_WRONLY|a.O_SYMLINK,n),s=!0;try{r=e.fchmodSync(i,n),s=!1}finally{if(s)try{e.closeSync(i)}catch(e){}else e.closeSync(i)}return r}}(e);e.lutimes||function(e){a.hasOwnProperty("O_SYMLINK")&&e.futimes?(e.lutimes=function(t,n,r,i){e.open(t,a.O_SYMLINK,(function(t,a){t?i&&i(t):e.futimes(a,n,r,(function(t){e.close(a,(function(e){i&&i(t||e)}))}))}))},e.lutimesSync=function(t,n,r){var i,s=e.openSync(t,a.O_SYMLINK),o=!0;try{i=e.futimesSync(s,n,r),o=!1}finally{if(o)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return i}):e.futimes&&(e.lutimes=function(e,t,n,a){a&&process.nextTick(a)},e.lutimesSync=function(){})}(e);e.chown=r(e.chown),e.fchown=r(e.fchown),e.lchown=r(e.lchown),e.chmod=t(e.chmod),e.fchmod=t(e.fchmod),e.lchmod=t(e.lchmod),e.chownSync=i(e.chownSync),e.fchownSync=i(e.fchownSync),e.lchownSync=i(e.lchownSync),e.chmodSync=n(e.chmodSync),e.fchmodSync=n(e.fchmodSync),e.lchmodSync=n(e.lchmodSync),e.stat=o(e.stat),e.fstat=o(e.fstat),e.lstat=o(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(e,t,n){n&&process.nextTick(n)},e.lchmodSync=function(){});e.chown&&!e.lchown&&(e.lchown=function(e,t,n,a){a&&process.nextTick(a)},e.lchownSync=function(){});"win32"===s&&(e.rename="function"!=typeof e.rename?e.rename:function(t){function n(n,a,r){var i=Date.now(),s=0;t(n,a,(function o(c){if(c&&("EACCES"===c.code||"EPERM"===c.code||"EBUSY"===c.code)&&Date.now()-i<6e4)return setTimeout((function(){e.stat(a,(function(e,i){e&&"ENOENT"===e.code?t(n,a,o):r(c)}))}),s),void(s<100&&(s+=10));r&&r(c)}))}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.rename));function t(t){return t?function(n,a,r){return t.call(e,n,a,(function(e){u(e)&&(e=null),r&&r.apply(this,arguments)}))}:t}function n(t){return t?function(n,a){try{return t.call(e,n,a)}catch(e){if(!u(e))throw e}}:t}function r(t){return t?function(n,a,r,i){return t.call(e,n,a,r,(function(e){u(e)&&(e=null),i&&i.apply(this,arguments)}))}:t}function i(t){return t?function(n,a,r){try{return t.call(e,n,a,r)}catch(e){if(!u(e))throw e}}:t}function o(t){return t?function(n,a,r){function i(e,t){t&&(t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296)),r&&r.apply(this,arguments)}return"function"==typeof a&&(r=a,a=null),a?t.call(e,n,a,i):t.call(e,n,i)}:t}function c(t){return t?function(n,a){var r=a?t.call(e,n,a):t.call(e,n);return r&&(r.uid<0&&(r.uid+=4294967296),r.gid<0&&(r.gid+=4294967296)),r}:t}function u(e){return!e||("ENOSYS"===e.code||!(process.getuid&&0===process.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}e.read="function"!=typeof e.read?e.read:function(t){function n(n,a,r,i,s,o){var c;if(o&&"function"==typeof o){var u=0;c=function(l,p,d){if(l&&"EAGAIN"===l.code&&u<10)return u++,t.call(e,n,a,r,i,s,c);o.apply(this,arguments)}}return t.call(e,n,a,r,i,s,c)}return Object.setPrototypeOf&&Object.setPrototypeOf(n,t),n}(e.read),e.readSync="function"!=typeof e.readSync?e.readSync:(l=e.readSync,function(t,n,a,r,i){for(var s=0;;)try{return l.call(e,t,n,a,r,i)}catch(e){if("EAGAIN"===e.code&&s<10){s++;continue}throw e}});var l}},54891:e=>{"use strict";e.exports=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",a=t.indexOf(n+e),r=t.indexOf("--");return-1!==a&&(-1===r||a<r)}},54181:(e,t,n)=>{"use strict";const a=n(79896);let r;e.exports=()=>(void 0===r&&(r=function(){try{return a.statSync("/.dockerenv"),!0}catch(e){return!1}}()||function(){try{return a.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch(e){return!1}}()),r)},29807:e=>{"use strict";const t=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));e.exports=t,e.exports.default=t},29766:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ConcatIterator=class{constructor(e){this.toConcat=e}next(){if(0===this.toConcat.length)return{done:!0};const e=this.toConcat[0].next();return e.done?(this.toConcat.shift(),this.next()):e}}},5204:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.FilterIterator=class{constructor(e,t){this.source=e,this.predicate=t}next(){let e;do{e=this.source.next()}while(!e.done&&!this.predicate(e.value));return e}}},52522:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(93849);t.FlattenIterator=class{constructor(e){this.outer=e}next(){if(this.inner){const e=this.inner.next();if(!e.done)return e;this.inner=void 0}const{value:e,done:t}=this.outer.next();return a.isIterable(e)?(this.inner=e[Symbol.iterator](),this.next()):{value:e,done:t}}}},95392:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(34878);t.iterate=a.iterate,t.zip=a.zip,t.default=a.iterate},34878:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const a=n(29766),r=n(5204),i=n(52522),s=n(94090),o=n(8674),c=n(93849),u=n(7027);class l{constructor(e){this.source=e}next(){return this.source.next()}[Symbol.iterator](){return this}map(e){return new l(new s.MapIterator(this.source,e))}filter(e){return new l(new r.FilterIterator(this.source,e))}concat(e){return new l(new a.ConcatIterator([this.source,c.toIterator(e)]))}take(e){return new l(new o.SliceIterator(this.source,0,e+1))}drop(e){return new l(new o.SliceIterator(this.source,e,1/0))}slice(e,t=1/0){return new l(new o.SliceIterator(this.source,e,t))}flatten(){return new l(new i.FlattenIterator(this.source))}reduce(e,t){let n;if(void 0===t){if(n=this.source.next(),n.done)throw new TypeError("Reduce of empty Iterator with no initial value");t=n.value}for(;n=this.source.next(),!n.done;)t=e(t,n.value);return t}find(e){let t;for(;;){if(t=this.source.next(),t.done)return;if(e(t.value))return t.value}}includes(e){let t;do{if(t=this.source.next(),!t.done&&t.value===e)return!0}while(!t.done);return!1}some(e){let t;do{if(t=this.source.next(),!t.done&&e(t.value))return!0}while(!t.done);return!1}every(e){let t;do{if(t=this.source.next(),!t.done&&!e(t.value))return!1}while(!t.done);return!0}forEach(e){let t;for(;t=this.source.next(),!t.done;)e(t.value)}join(e=","){let t,n="";for(;t=this.source.next(),!t.done;)n+=e+t.value;return n.substr(e.length)}toArray(){return Array.from(this)}toSet(){const e=new Set;for(;;){const{value:t,done:n}=this.next();if(n)return e;e.add(t)}}toMap(){return new Map(this)}}function p(e){return new l(c.toIterator(e))}t.IteratorWithOperators=l,t.iterate=p,t.zip=function(e,t){return new l(new u.ZipIterator(c.toIterator(e),c.toIterator(t)))},t.default=p},94090:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.MapIterator=class{constructor(e,t){this.source=e,this.iteratee=t}next(){const{value:e,done:t}=this.source.next();return{value:!t&&this.iteratee(e),done:t}}}},8674:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.SliceIterator=class{constructor(e,t,n=1/0){this.source=e,this.start=t,this.end=n,this.i=0}next(){for(;this.i<this.start;){const e=this.source.next();if(e.done)return e;this.i++}return this.i++,this.i>=this.end?{done:!0}:this.source.next()}}},93849:(e,t)=>{"use strict";function n(e){return"object"==typeof e&&null!==e&&"function"==typeof e.next}function a(e){return"object"==typeof e&&null!==e&&"function"==typeof e[Symbol.iterator]}Object.defineProperty(t,"__esModule",{value:!0}),t.isIterator=n,t.isIterable=a,t.toIterator=function(e){if(n(e))return e;if(a(e))return e[Symbol.iterator]();throw new Error("Passed collection is neither an Iterator nor an Iterable")}},7027:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.ZipIterator=class{constructor(e,t){this.a=e,this.b=t}next(){const e=this.a.next();if(e.done)return{done:!0};const t=this.b.next();return t.done?{done:!0}:{value:[e.value,t.value],done:!1}}}},98843:(e,t,n)=>{let a;try{a=n(70627)}catch(e){a=n(79896)}const r=n(19964),{stringify:i,stripBom:s}=n(90374);const o={readFile:r.fromPromise((async function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||a,i=!("throws"in t)||t.throws;let o,c=await r.fromCallback(n.readFile)(e,t);c=s(c);try{o=JSON.parse(c,t?t.reviver:null)}catch(t){if(i)throw t.message=`${e}: ${t.message}`,t;return null}return o})),readFileSync:function(e,t={}){"string"==typeof t&&(t={encoding:t});const n=t.fs||a,r=!("throws"in t)||t.throws;try{let a=n.readFileSync(e,t);return a=s(a),JSON.parse(a,t.reviver)}catch(t){if(r)throw t.message=`${e}: ${t.message}`,t;return null}},writeFile:r.fromPromise((async function(e,t,n={}){const s=n.fs||a,o=i(t,n);await r.fromCallback(s.writeFile)(e,o,n)})),writeFileSync:function(e,t,n={}){const r=n.fs||a,s=i(t,n);return r.writeFileSync(e,s,n)}};e.exports=o},90374:e=>{e.exports={stringify:function(e,{EOL:t="\n",finalEOL:n=!0,replacer:a=null,spaces:r}={}){const i=n?t:"";return JSON.stringify(e,a,r).replace(/\n/g,t)+i},stripBom:function(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}}},16171:(e,t,n)=>{var a=n(34671)(n(30714),"DataView");e.exports=a},36766:(e,t,n)=>{var a=n(62405),r=n(68341),i=n(39644),s=n(53784),o=n(46264);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}c.prototype.clear=a,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=s,c.prototype.set=o,e.exports=c},21022:(e,t,n)=>{var a=n(6821),r=n(7221),i=n(21596),s=n(91992),o=n(10552);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}c.prototype.clear=a,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=s,c.prototype.set=o,e.exports=c},75870:(e,t,n)=>{var a=n(34671)(n(30714),"Map");e.exports=a},68910:(e,t,n)=>{var a=n(54069),r=n(97477),i=n(50476),s=n(30984),o=n(4136);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}c.prototype.clear=a,c.prototype.delete=r,c.prototype.get=i,c.prototype.has=s,c.prototype.set=o,e.exports=c},84665:(e,t,n)=>{var a=n(34671)(n(30714),"Promise");e.exports=a},39612:(e,t,n)=>{var a=n(34671)(n(30714),"Set");e.exports=a},32312:(e,t,n)=>{var a=n(68910),r=n(61945),i=n(34874);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new a;++t<n;)this.add(e[t])}s.prototype.add=s.prototype.push=r,s.prototype.has=i,e.exports=s},47216:(e,t,n)=>{var a=n(21022),r=n(45331),i=n(57063),s=n(90134),o=n(9842),c=n(39850);function u(e){var t=this.__data__=new a(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=s,u.prototype.has=o,u.prototype.set=c,e.exports=u},59006:(e,t,n)=>{var a=n(30714).Symbol;e.exports=a},88851:(e,t,n)=>{var a=n(30714).Uint8Array;e.exports=a},98154:(e,t,n)=>{var a=n(34671)(n(30714),"WeakMap");e.exports=a},52995:e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length,r=0,i=[];++n<a;){var s=e[n];t(s,n,e)&&(i[r++]=s)}return i}},89754:(e,t,n)=>{var a=n(59605),r=n(50079),i=n(25874),s=n(83601),o=n(61908),c=n(39046),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&r(e),p=!n&&!l&&s(e),d=!n&&!l&&!p&&c(e),m=n||l||p||d,f=m?a(e.length,String):[],h=f.length;for(var b in e)!t&&!u.call(e,b)||m&&("length"==b||p&&("offset"==b||"parent"==b)||d&&("buffer"==b||"byteLength"==b||"byteOffset"==b)||o(b,h))||f.push(b);return f}},2275:e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length,r=Array(a);++n<a;)r[n]=t(e[n],n,e);return r}},82525:e=>{e.exports=function(e,t){for(var n=-1,a=t.length,r=e.length;++n<a;)e[r+n]=t[n];return e}},73525:e=>{e.exports=function(e,t){for(var n=-1,a=null==e?0:e.length;++n<a;)if(t(e[n],n,e))return!0;return!1}},9438:(e,t,n)=>{var a=n(55097);e.exports=function(e,t){for(var n=e.length;n--;)if(a(e[n][0],t))return n;return-1}},93077:(e,t,n)=>{var a=n(24856);e.exports=function(e,t,n){"__proto__"==t&&a?a(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},70166:e=>{e.exports=function(e,t,n,a){for(var r=e.length,i=n+(a?1:-1);a?i--:++i<r;)if(t(e[i],i,e))return i;return-1}},19128:(e,t,n)=>{var a=n(23600)();e.exports=a},57702:(e,t,n)=>{var a=n(19128),r=n(3511);e.exports=function(e,t){return e&&a(e,t,r)}},51855:(e,t,n)=>{var a=n(20330),r=n(39628);e.exports=function(e,t){for(var n=0,i=(t=a(t,e)).length;null!=e&&n<i;)e=e[r(t[n++])];return n&&n==i?e:void 0}},25920:(e,t,n)=>{var a=n(82525),r=n(25874);e.exports=function(e,t,n){var i=t(e);return r(e)?i:a(i,n(e))}},95271:(e,t,n)=>{var a=n(59006),r=n(99650),i=n(56881),s=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?r(e):i(e)}},85088:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},94047:(e,t,n)=>{var a=n(95271),r=n(77583);e.exports=function(e){return r(e)&&"[object Arguments]"==a(e)}},3899:(e,t,n)=>{var a=n(38309),r=n(77583);e.exports=function e(t,n,i,s,o){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:a(t,n,i,s,e,o))}},38309:(e,t,n)=>{var a=n(47216),r=n(93522),i=n(49481),s=n(28370),o=n(29778),c=n(25874),u=n(83601),l=n(39046),p="[object Arguments]",d="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,h,b,g){var y=c(e),v=c(t),_=y?d:o(e),E=v?d:o(t),x=(_=_==p?m:_)==m,T=(E=E==p?m:E)==m,O=_==E;if(O&&u(e)){if(!u(t))return!1;y=!0,x=!1}if(O&&!x)return g||(g=new a),y||l(e)?r(e,t,n,h,b,g):i(e,t,_,n,h,b,g);if(!(1&n)){var D=x&&f.call(e,"__wrapped__"),w=T&&f.call(t,"__wrapped__");if(D||w){var S=D?e.value():e,A=w?t.value():t;return g||(g=new a),b(S,A,n,h,g)}}return!!O&&(g||(g=new a),s(e,t,n,h,b,g))}},14014:(e,t,n)=>{var a=n(47216),r=n(3899);e.exports=function(e,t,n,i){var s=n.length,o=s,c=!i;if(null==e)return!o;for(e=Object(e);s--;){var u=n[s];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s<o;){var l=(u=n[s])[0],p=e[l],d=u[1];if(c&&u[2]){if(void 0===p&&!(l in e))return!1}else{var m=new a;if(i)var f=i(p,d,l,e,t,m);if(!(void 0===f?r(d,p,3,i,m):f))return!1}}return!0}},24228:(e,t,n)=>{var a=n(27787),r=n(97827),i=n(99400),s=n(40462),o=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,d=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||r(e))&&(a(e)?d:o).test(s(e))}},40550:(e,t,n)=>{var a=n(95271),r=n(44583),i=n(77583),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&r(e.length)&&!!s[a(e)]}},4506:(e,t,n)=>{var a=n(86330),r=n(52363),i=n(9169),s=n(25874),o=n(86830);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?s(e)?r(e[0],e[1]):a(e):o(e)}},35351:(e,t,n)=>{var a=n(37894),r=n(82325),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!a(e))return r(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},86330:(e,t,n)=>{var a=n(14014),r=n(96539),i=n(37316);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||a(n,e,t)}}},52363:(e,t,n)=>{var a=n(3899),r=n(75887),i=n(74016),s=n(80759),o=n(7223),c=n(37316),u=n(39628);e.exports=function(e,t){return s(e)&&o(t)?c(u(e),t):function(n){var s=r(n,e);return void 0===s&&s===t?i(n,e):a(t,s,3)}}},88494:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},3644:(e,t,n)=>{var a=n(51855);e.exports=function(e){return function(t){return a(t,e)}}},59605:e=>{e.exports=function(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}},38071:(e,t,n)=>{var a=n(59006),r=n(2275),i=n(25874),s=n(40975),o=a?a.prototype:void 0,c=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return r(t,e)+"";if(s(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},85103:(e,t,n)=>{var a=n(74997),r=/^\s+/;e.exports=function(e){return e?e.slice(0,a(e)+1).replace(r,""):e}},98232:e=>{e.exports=function(e){return function(t){return e(t)}}},65420:e=>{e.exports=function(e,t){return e.has(t)}},20330:(e,t,n)=>{var a=n(25874),r=n(80759),i=n(69505),s=n(60983);e.exports=function(e,t){return a(e)?e:r(e,t)?[e]:i(s(e))}},46450:(e,t,n)=>{var a=n(30714)["__core-js_shared__"];e.exports=a},23600:e=>{e.exports=function(e){return function(t,n,a){for(var r=-1,i=Object(t),s=a(t),o=s.length;o--;){var c=s[e?o:++r];if(!1===n(i[c],c,i))break}return t}}},66057:(e,t,n)=>{var a=n(4506),r=n(73069),i=n(3511);e.exports=function(e){return function(t,n,s){var o=Object(t);if(!r(t)){var c=a(n,3);t=i(t),n=function(e){return c(o[e],e,o)}}var u=e(t,n,s);return u>-1?o[c?t[u]:u]:void 0}}},24856:(e,t,n)=>{var a=n(34671),r=function(){try{var e=a(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},93522:(e,t,n)=>{var a=n(32312),r=n(73525),i=n(65420);e.exports=function(e,t,n,s,o,c){var u=1&n,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var d=c.get(e),m=c.get(t);if(d&&m)return d==t&&m==e;var f=-1,h=!0,b=2&n?new a:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var g=e[f],y=t[f];if(s)var v=u?s(y,g,f,t,e,c):s(g,y,f,e,t,c);if(void 0!==v){if(v)continue;h=!1;break}if(b){if(!r(t,(function(e,t){if(!i(b,t)&&(g===e||o(g,e,n,s,c)))return b.push(t)}))){h=!1;break}}else if(g!==y&&!o(g,y,n,s,c)){h=!1;break}}return c.delete(e),c.delete(t),h}},49481:(e,t,n)=>{var a=n(59006),r=n(88851),i=n(55097),s=n(93522),o=n(38866),c=n(36968),u=a?a.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,a,u,p,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=o;case"[object Set]":var f=1&a;if(m||(m=c),e.size!=t.size&&!f)return!1;var h=d.get(e);if(h)return h==t;a|=2,d.set(e,t);var b=s(m(e),m(t),a,u,p,d);return d.delete(e),b;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},28370:(e,t,n)=>{var a=n(92573),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,s,o){var c=1&n,u=a(e),l=u.length;if(l!=a(t).length&&!c)return!1;for(var p=l;p--;){var d=u[p];if(!(c?d in t:r.call(t,d)))return!1}var m=o.get(e),f=o.get(t);if(m&&f)return m==t&&f==e;var h=!0;o.set(e,t),o.set(t,e);for(var b=c;++p<l;){var g=e[d=u[p]],y=t[d];if(i)var v=c?i(y,g,d,t,e,o):i(g,y,d,e,t,o);if(!(void 0===v?g===y||s(g,y,n,i,o):v)){h=!1;break}b||(b="constructor"==d)}if(h&&!b){var _=e.constructor,E=t.constructor;_==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof E&&E instanceof E||(h=!1)}return o.delete(e),o.delete(t),h}},11603:e=>{var t="object"==typeof global&&global&&global.Object===Object&&global;e.exports=t},92573:(e,t,n)=>{var a=n(25920),r=n(19183),i=n(3511);e.exports=function(e){return a(e,i,r)}},31200:(e,t,n)=>{var a=n(50095);e.exports=function(e,t){var n=e.__data__;return a(t)?n["string"==typeof t?"string":"hash"]:n.map}},96539:(e,t,n)=>{var a=n(7223),r=n(3511);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var i=t[n],s=e[i];t[n]=[i,s,a(s)]}return t}},34671:(e,t,n)=>{var a=n(24228),r=n(97559);e.exports=function(e,t){var n=r(e,t);return a(n)?n:void 0}},99650:(e,t,n)=>{var a=n(59006),r=Object.prototype,i=r.hasOwnProperty,s=r.toString,o=a?a.toStringTag:void 0;e.exports=function(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var a=!0}catch(e){}var r=s.call(e);return a&&(t?e[o]=n:delete e[o]),r}},19183:(e,t,n)=>{var a=n(52995),r=n(92982),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,o=s?function(e){return null==e?[]:(e=Object(e),a(s(e),(function(t){return i.call(e,t)})))}:r;e.exports=o},29778:(e,t,n)=>{var a=n(16171),r=n(75870),i=n(84665),s=n(39612),o=n(98154),c=n(95271),u=n(40462),l="[object Map]",p="[object Promise]",d="[object Set]",m="[object WeakMap]",f="[object DataView]",h=u(a),b=u(r),g=u(i),y=u(s),v=u(o),_=c;(a&&_(new a(new ArrayBuffer(1)))!=f||r&&_(new r)!=l||i&&_(i.resolve())!=p||s&&_(new s)!=d||o&&_(new o)!=m)&&(_=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,a=n?u(n):"";if(a)switch(a){case h:return f;case b:return l;case g:return p;case y:return d;case v:return m}return t}),e.exports=_},97559:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},99663:(e,t,n)=>{var a=n(20330),r=n(50079),i=n(25874),s=n(61908),o=n(44583),c=n(39628);e.exports=function(e,t,n){for(var u=-1,l=(t=a(t,e)).length,p=!1;++u<l;){var d=c(t[u]);if(!(p=null!=e&&n(e,d)))break;e=e[d]}return p||++u!=l?p:!!(l=null==e?0:e.length)&&o(l)&&s(d,l)&&(i(e)||r(e))}},62405:(e,t,n)=>{var a=n(68637);e.exports=function(){this.__data__=a?a(null):{},this.size=0}},68341:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},39644:(e,t,n)=>{var a=n(68637),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(a){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},53784:(e,t,n)=>{var a=n(68637),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return a?void 0!==t[e]:r.call(t,e)}},46264:(e,t,n)=>{var a=n(68637);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=a&&void 0===t?"__lodash_hash_undefined__":t,this}},61908:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var a=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==a||"symbol"!=a&&t.test(e))&&e>-1&&e%1==0&&e<n}},80759:(e,t,n)=>{var a=n(25874),r=n(40975),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(a(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||(s.test(e)||!i.test(e)||null!=t&&e in Object(t))}},50095:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},97827:(e,t,n)=>{var a,r=n(46450),i=(a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"";e.exports=function(e){return!!i&&i in e}},37894:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},7223:(e,t,n)=>{var a=n(99400);e.exports=function(e){return e==e&&!a(e)}},6821:e=>{e.exports=function(){this.__data__=[],this.size=0}},7221:(e,t,n)=>{var a=n(9438),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=a(t,e);return!(n<0)&&(n==t.length-1?t.pop():r.call(t,n,1),--this.size,!0)}},21596:(e,t,n)=>{var a=n(9438);e.exports=function(e){var t=this.__data__,n=a(t,e);return n<0?void 0:t[n][1]}},91992:(e,t,n)=>{var a=n(9438);e.exports=function(e){return a(this.__data__,e)>-1}},10552:(e,t,n)=>{var a=n(9438);e.exports=function(e,t){var n=this.__data__,r=a(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},54069:(e,t,n)=>{var a=n(36766),r=n(21022),i=n(75870);e.exports=function(){this.size=0,this.__data__={hash:new a,map:new(i||r),string:new a}}},97477:(e,t,n)=>{var a=n(31200);e.exports=function(e){var t=a(this,e).delete(e);return this.size-=t?1:0,t}},50476:(e,t,n)=>{var a=n(31200);e.exports=function(e){return a(this,e).get(e)}},30984:(e,t,n)=>{var a=n(31200);e.exports=function(e){return a(this,e).has(e)}},4136:(e,t,n)=>{var a=n(31200);e.exports=function(e,t){var n=a(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},38866:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,a){n[++t]=[a,e]})),n}},37316:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},82121:(e,t,n)=>{var a=n(68487);e.exports=function(e){var t=a(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},68637:(e,t,n)=>{var a=n(34671)(Object,"create");e.exports=a},82325:(e,t,n)=>{var a=n(78546)(Object.keys,Object);e.exports=a},96574:(e,t,n)=>{e=n.nmd(e);var a=n(11603),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,s=i&&i.exports===r&&a.process,o=function(){try{var e=i&&i.require&&i.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o},56881:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},78546:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},30714:(e,t,n)=>{var a=n(11603),r="object"==typeof self&&self&&self.Object===Object&&self,i=a||r||Function("return this")();e.exports=i},61945:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},34874:e=>{e.exports=function(e){return this.__data__.has(e)}},36968:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},45331:(e,t,n)=>{var a=n(21022);e.exports=function(){this.__data__=new a,this.size=0}},57063:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},90134:e=>{e.exports=function(e){return this.__data__.get(e)}},9842:e=>{e.exports=function(e){return this.__data__.has(e)}},39850:(e,t,n)=>{var a=n(21022),r=n(75870),i=n(68910);e.exports=function(e,t){var n=this.__data__;if(n instanceof a){var s=n.__data__;if(!r||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},69505:(e,t,n)=>{var a=n(82121),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=a((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,a,r){t.push(a?r.replace(i,"$1"):n||e)})),t}));e.exports=s},39628:(e,t,n)=>{var a=n(40975);e.exports=function(e){if("string"==typeof e||a(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},40462:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},74997:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},55097:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},828:(e,t,n)=>{var a=n(66057)(n(18550));e.exports=a},18550:(e,t,n)=>{var a=n(70166),r=n(4506),i=n(83758),s=Math.max;e.exports=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var c=null==n?0:i(n);return c<0&&(c=s(o+c,0)),a(e,r(t,3),c)}},75887:(e,t,n)=>{var a=n(51855);e.exports=function(e,t,n){var r=null==e?void 0:a(e,t);return void 0===r?n:r}},74016:(e,t,n)=>{var a=n(85088),r=n(99663);e.exports=function(e,t){return null!=e&&r(e,t,a)}},9169:e=>{e.exports=function(e){return e}},50079:(e,t,n)=>{var a=n(94047),r=n(77583),i=Object.prototype,s=i.hasOwnProperty,o=i.propertyIsEnumerable,c=a(function(){return arguments}())?a:function(e){return r(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=c},25874:e=>{var t=Array.isArray;e.exports=t},73069:(e,t,n)=>{var a=n(27787),r=n(44583);e.exports=function(e){return null!=e&&r(e.length)&&!a(e)}},83601:(e,t,n)=>{e=n.nmd(e);var a=n(30714),r=n(36408),i=t&&!t.nodeType&&t,s=i&&e&&!e.nodeType&&e,o=s&&s.exports===i?a.Buffer:void 0,c=(o?o.isBuffer:void 0)||r;e.exports=c},12046:(e,t,n)=>{var a=n(35351),r=n(29778),i=n(50079),s=n(25874),o=n(73069),c=n(83601),u=n(37894),l=n(39046),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(o(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||c(e)||l(e)||i(e)))return!e.length;var t=r(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!a(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},27787:(e,t,n)=>{var a=n(95271),r=n(99400);e.exports=function(e){if(!r(e))return!1;var t=a(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},44583:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},99400:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},77583:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},40975:(e,t,n)=>{var a=n(95271),r=n(77583);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==a(e)}},39046:(e,t,n)=>{var a=n(40550),r=n(98232),i=n(96574),s=i&&i.isTypedArray,o=s?r(s):a;e.exports=o},3511:(e,t,n)=>{var a=n(89754),r=n(35351),i=n(73069);e.exports=function(e){return i(e)?a(e):r(e)}},95977:(e,t,n)=>{var a=n(93077),r=n(57702),i=n(4506);e.exports=function(e,t){var n={};return t=i(t,3),r(e,(function(e,r,i){a(n,t(e,r,i),e)})),n}},68487:(e,t,n)=>{var a=n(68910);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var a=arguments,r=t?t.apply(this,a):a[0],i=n.cache;if(i.has(r))return i.get(r);var s=e.apply(this,a);return n.cache=i.set(r,s)||i,s};return n.cache=new(r.Cache||a),n}r.Cache=a,e.exports=r},86830:(e,t,n)=>{var a=n(88494),r=n(3644),i=n(80759),s=n(39628);e.exports=function(e){return i(e)?a(s(e)):r(e)}},92982:e=>{e.exports=function(){return[]}},36408:e=>{e.exports=function(){return!1}},68265:(e,t,n)=>{var a=n(57639),r=1/0;e.exports=function(e){return e?(e=a(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},83758:(e,t,n)=>{var a=n(68265);e.exports=function(e){var t=a(e),n=t%1;return t==t?n?t-n:t:0}},57639:(e,t,n)=>{var a=n(85103),r=n(99400),i=n(40975),s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=a(e);var n=o.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):s.test(e)?NaN:+e}},60983:(e,t,n)=>{var a=n(38071);e.exports=function(e){return null==e?"":a(e)}},57004:(e,t,n)=>{e.exports=n(22087)},82829:(e,t,n)=>{"use strict";var a,r,i,s=n(57004),o=n(16928).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,u=/^text\//i;function l(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&s[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!u.test(t[1]))&&"UTF-8"}t.charset=l,t.charsets={lookup:l},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var a=t.charset(n);a&&(n+="; charset="+a.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),a=n&&t.extensions[n[1].toLowerCase()];if(!a||!a.length)return!1;return a[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=o("x."+e).toLowerCase().substr(1);if(!n)return!1;return t.types[n]||!1},t.types=Object.create(null),a=t.extensions,r=t.types,i=["nginx","apache",void 0,"iana"],Object.keys(s).forEach((function(e){var t=s[e],n=t.extensions;if(n&&n.length){a[e]=n;for(var o=0;o<n.length;o++){var c=n[o];if(r[c]){var u=i.indexOf(s[r[c]].source),l=i.indexOf(t.source);if("application/octet-stream"!==r[c]&&(u>l||u===l&&"application/"===r[c].substr(0,12)))continue}r[c]=e}}}))},39433:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findMadeSync=t.findMade=void 0;const a=n(16928);t.findMade=async(e,n,r)=>{if(r!==n)return e.statAsync(n).then((e=>e.isDirectory()?r:void 0),(r=>r&&"ENOENT"===r.code?(0,t.findMade)(e,(0,a.dirname)(n),n):void 0))};t.findMadeSync=(e,n,r)=>{if(r!==n)try{return e.statSync(n).isDirectory()?r:void 0}catch(r){return r&&"ENOENT"===r.code?(0,t.findMadeSync)(e,(0,a.dirname)(n),n):void 0}}},81809:function(e,t,n){"use strict";const a=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(81950));e.exports=Object.assign(a.default,{default:a.default,mkdirp:a.default})},81950:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mkdirp=t.mkdirpSync=t.useNativeSync=t.useNative=t.mkdirpNativeSync=t.mkdirpNative=t.mkdirpManualSync=t.mkdirpManual=void 0;const a=n(31368),r=n(72013),i=n(22971),s=n(77182),o=n(44417);var c=n(31368);Object.defineProperty(t,"mkdirpManual",{enumerable:!0,get:function(){return c.mkdirpManual}}),Object.defineProperty(t,"mkdirpManualSync",{enumerable:!0,get:function(){return c.mkdirpManualSync}});var u=n(72013);Object.defineProperty(t,"mkdirpNative",{enumerable:!0,get:function(){return u.mkdirpNative}}),Object.defineProperty(t,"mkdirpNativeSync",{enumerable:!0,get:function(){return u.mkdirpNativeSync}});var l=n(44417);Object.defineProperty(t,"useNative",{enumerable:!0,get:function(){return l.useNative}}),Object.defineProperty(t,"useNativeSync",{enumerable:!0,get:function(){return l.useNativeSync}});t.mkdirpSync=(e,t)=>{e=(0,s.pathArg)(e);const n=(0,i.optsArg)(t);return(0,o.useNativeSync)(n)?(0,r.mkdirpNativeSync)(e,n):(0,a.mkdirpManualSync)(e,n)},t.mkdirp=Object.assign((async(e,t)=>{e=(0,s.pathArg)(e);const n=(0,i.optsArg)(t);return(0,o.useNative)(n)?(0,r.mkdirpNative)(e,n):(0,a.mkdirpManual)(e,n)}),{mkdirpSync:t.mkdirpSync,mkdirpNative:r.mkdirpNative,mkdirpNativeSync:r.mkdirpNativeSync,mkdirpManual:a.mkdirpManual,mkdirpManualSync:a.mkdirpManualSync,sync:t.mkdirpSync,native:r.mkdirpNative,nativeSync:r.mkdirpNativeSync,manual:a.mkdirpManual,manualSync:a.mkdirpManualSync,useNative:o.useNative,useNativeSync:o.useNativeSync}),t.default=t.mkdirp},31368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mkdirpManual=t.mkdirpManualSync=void 0;const a=n(16928),r=n(22971);t.mkdirpManualSync=(e,n,i)=>{const s=(0,a.dirname)(e),o={...(0,r.optsArg)(n),recursive:!1};if(s===e)try{return o.mkdirSync(e,o)}catch(e){if(e&&"EISDIR"!==e.code)throw e;return}try{return o.mkdirSync(e,o),i||e}catch(n){const a=n;if(a&&"ENOENT"===a.code)return(0,t.mkdirpManualSync)(e,o,(0,t.mkdirpManualSync)(s,o,i));if(a&&"EEXIST"!==a.code&&a&&"EROFS"!==a.code)throw n;try{if(!o.statSync(e).isDirectory())throw n}catch(e){throw n}}},t.mkdirpManual=Object.assign((async(e,n,i)=>{const s=(0,r.optsArg)(n);s.recursive=!1;const o=(0,a.dirname)(e);return o===e?s.mkdirAsync(e,s).catch((e=>{if(e&&"EISDIR"!==e.code)throw e})):s.mkdirAsync(e,s).then((()=>i||e),(async n=>{const a=n;if(a&&"ENOENT"===a.code)return(0,t.mkdirpManual)(o,s).then((n=>(0,t.mkdirpManual)(e,s,n)));if(a&&"EEXIST"!==a.code&&"EROFS"!==a.code)throw n;return s.statAsync(e).then((e=>{if(e.isDirectory())return i;throw n}),(()=>{throw n}))}))}),{sync:t.mkdirpManualSync})},72013:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mkdirpNative=t.mkdirpNativeSync=void 0;const a=n(16928),r=n(39433),i=n(31368),s=n(22971);t.mkdirpNativeSync=(e,t)=>{const n=(0,s.optsArg)(t);n.recursive=!0;if((0,a.dirname)(e)===e)return n.mkdirSync(e,n);const o=(0,r.findMadeSync)(n,e);try{return n.mkdirSync(e,n),o}catch(t){if(t&&"ENOENT"===t.code)return(0,i.mkdirpManualSync)(e,n);throw t}},t.mkdirpNative=Object.assign((async(e,t)=>{const n={...(0,s.optsArg)(t),recursive:!0};return(0,a.dirname)(e)===e?await n.mkdirAsync(e,n):(0,r.findMade)(n,e).then((t=>n.mkdirAsync(e,n).then((e=>t||e)).catch((t=>{if(t&&"ENOENT"===t.code)return(0,i.mkdirpManual)(e,n);throw t}))))}),{sync:t.mkdirpNativeSync})},22971:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optsArg=void 0;const a=n(79896);t.optsArg=e=>{if(e)if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else{if("string"!=typeof e)throw new TypeError("invalid options argument");e={mode:parseInt(e,8)}}else e={mode:511};const t=e,n=e.fs||{};return e.mkdir=e.mkdir||n.mkdir||a.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,n)=>new Promise(((a,r)=>t.mkdir(e,n,((e,t)=>e?r(e):a(t))))),e.stat=e.stat||n.stat||a.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise(((n,a)=>t.stat(e,((e,t)=>e?a(e):n(t))))),e.statSync=e.statSync||n.statSync||a.statSync,e.mkdirSync=e.mkdirSync||n.mkdirSync||a.mkdirSync,t}},77182:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pathArg=void 0;const a=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,r=n(16928);t.pathArg=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,r.resolve)(e),"win32"===a){const t=/[*|"<>?:]/,{root:n}=(0,r.parse)(e);if(t.test(e.substring(n.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e}},44417:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useNative=t.useNativeSync=void 0;const a=n(79896),r=n(22971),i=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),s=+i[0]>10||10==+i[0]&&+i[1]>=12;t.useNativeSync=s?e=>(0,r.optsArg)(e).mkdirSync===a.mkdirSync:()=>!1,t.useNative=Object.assign(s?e=>(0,r.optsArg)(e).mkdir===a.mkdir:()=>!1,{sync:t.useNativeSync})},97821:e=>{var t=1e3,n=60*t,a=60*n,r=24*a,i=7*r,s=365.25*r;function o(e,t,n,a){var r=t>=1.5*n;return Math.round(e/n)+" "+a+(r?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!o)return;var c=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;case"weeks":case"week":case"w":return c*i;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*a;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var i=Math.abs(e);if(i>=r)return o(e,i,r,"day");if(i>=a)return o(e,i,a,"hour");if(i>=n)return o(e,i,n,"minute");if(i>=t)return o(e,i,t,"second");return e+" ms"}(e):function(e){var i=Math.abs(e);if(i>=r)return Math.round(e/r)+"d";if(i>=a)return Math.round(e/a)+"h";if(i>=n)return Math.round(e/n)+"m";if(i>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},96350:(e,t,n)=>{"use strict";var a=n(87016).parse,r={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},i=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function s(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}t.getProxyForUrl=function(e){var t="string"==typeof e?a(e):e||{},n=t.protocol,o=t.host,c=t.port;if("string"!=typeof o||!o||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(s("npm_config_no_proxy")||s("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every((function(n){if(!n)return!0;var a=n.match(/^(.+):(\d+)$/),r=a?a[1]:n,s=a?parseInt(a[2]):0;return!(!s||s===t)||(/^[.*]/.test(r)?("*"===r.charAt(0)&&(r=r.slice(1)),!i.call(e,r)):e!==r)}))}(o=o.replace(/:\d*$/,""),c=parseInt(c)||r[n]||0))return"";var u=s("npm_config_"+n+"_proxy")||s(n+"_proxy")||s("npm_config_proxy")||s("all_proxy");return u&&-1===u.indexOf("://")&&(u=n+"://"+u),u}},86478:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncSubject=void 0;var i=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return r(t,e),t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,a=t._hasValue,r=t._value,i=t.thrownError,s=t.isStopped,o=t._isComplete;n?e.error(i):(s||o)&&(a&&e.next(r),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var t=this,n=t._hasValue,a=t._value;t._isComplete||(this._isComplete=!0,n&&e.prototype.next.call(this,a),e.prototype.complete.call(this))},t}(n(22764).Subject);t.AsyncSubject=i},34046:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.BehaviorSubject=void 0;var i=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){var e=this,t=e.hasError,n=e.thrownError,a=e._value;if(t)throw n;return this._throwIfClosed(),a},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(n(22764).Subject);t.BehaviorSubject=i},84841:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeNotification=t.Notification=t.NotificationKind=void 0;var a=n(44305),r=n(29519),i=n(53980),s=n(13813);!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(t.NotificationKind||(t.NotificationKind={}));var o=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){return c(this,e)},e.prototype.do=function(e,t,n){var a=this,r=a.kind,i=a.value,s=a.error;return"N"===r?null==e?void 0:e(i):"E"===r?null==t?void 0:t(s):null==n?void 0:n()},e.prototype.accept=function(e,t,n){var a;return s.isFunction(null===(a=e)||void 0===a?void 0:a.next)?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e=this,t=e.kind,n=e.value,s=e.error,o="N"===t?r.of(n):"E"===t?i.throwError((function(){return s})):"C"===t?a.EMPTY:0;if(!o)throw new TypeError("Unexpected notification kind "+t);return o},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e}();function c(e,t){var n,a,r,i=e,s=i.kind,o=i.value,c=i.error;if("string"!=typeof s)throw new TypeError('Invalid notification, missing "kind"');"N"===s?null===(n=t.next)||void 0===n||n.call(t,o):"E"===s?null===(a=t.error)||void 0===a||a.call(t,c):null===(r=t.complete)||void 0===r||r.call(t)}t.Notification=o,t.observeNotification=c},77987:(e,t)=>{"use strict";function n(e,t,n){return{kind:e,value:t,error:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.createNotification=t.nextNotification=t.errorNotification=t.COMPLETE_NOTIFICATION=void 0,t.COMPLETE_NOTIFICATION=n("C",void 0,void 0),t.errorNotification=function(e){return n("E",void 0,e)},t.nextNotification=function(e){return n("N",e,void 0)},t.createNotification=n},39311:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Observable=void 0;var a=n(9e3),r=n(59099),i=n(70776),s=n(18257),o=n(80020),c=n(13813),u=n(23236),l=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var i,s=this,o=(i=e)&&i instanceof a.Subscriber||function(e){return e&&c.isFunction(e.next)&&c.isFunction(e.error)&&c.isFunction(e.complete)}(i)&&r.isSubscription(i)?e:new a.SafeSubscriber(e,t,n);return u.errorContext((function(){var e=s,t=e.operator,n=e.source;o.add(t?t.call(o,n):n?s._subscribe(o):s._trySubscribe(o))})),o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=p(t))((function(t,r){var i=new a.SafeSubscriber({next:function(t){try{e(t)}catch(e){r(e),i.unsubscribe()}},error:r,complete:t});n.subscribe(i)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[i.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=p(e))((function(e,n){var a;t.subscribe((function(e){return a=e}),(function(e){return n(e)}),(function(){return e(a)}))}))},e.create=function(t){return new e(t)},e}();function p(e){var t;return null!==(t=null!=e?e:o.config.Promise)&&void 0!==t?t:Promise}t.Observable=l},92785:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReplaySubject=void 0;var i=n(22764),s=n(95783),o=function(e){function t(t,n,a){void 0===t&&(t=1/0),void 0===n&&(n=1/0),void 0===a&&(a=s.dateTimestampProvider);var r=e.call(this)||this;return r._bufferSize=t,r._windowTime=n,r._timestampProvider=a,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=n===1/0,r._bufferSize=Math.max(1,t),r._windowTime=Math.max(1,n),r}return r(t,e),t.prototype.next=function(t){var n=this,a=n.isStopped,r=n._buffer,i=n._infiniteTimeWindow,s=n._timestampProvider,o=n._windowTime;a||(r.push(t),!i&&r.push(s.now()+o)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,a=this._buffer.slice(),r=0;r<a.length&&!e.closed;r+=n?1:2)e.next(a[r]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this,t=e._bufferSize,n=e._timestampProvider,a=e._buffer,r=e._infiniteTimeWindow,i=(r?1:2)*t;if(t<1/0&&i<a.length&&a.splice(0,a.length-i),!r){for(var s=n.now(),o=0,c=1;c<a.length&&a[c]<=s;c+=2)o=c;o&&a.splice(0,o+1)}},t}(i.Subject);t.ReplaySubject=o},53357:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Scheduler=void 0;var a=n(95783),r=function(){function e(t,n){void 0===n&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(n,t)},e.now=a.dateTimestampProvider.now,e}();t.Scheduler=r},22764:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousSubject=t.Subject=void 0;var s=n(39311),o=n(59099),c=n(68955),u=n(83370),l=n(23236),p=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r(t,e),t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new c.ObjectUnsubscribedError},t.prototype.next=function(e){var t=this;l.errorContext((function(){var n,a;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var r=i(t.currentObservers),s=r.next();!s.done;s=r.next()){s.value.next(e)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(a=r.return)&&a.call(r)}finally{if(n)throw n.error}}}}))},t.prototype.error=function(e){var t=this;l.errorContext((function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var n=t.observers;n.length;)n.shift().error(e)}}))},t.prototype.complete=function(){var e=this;l.errorContext((function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,a=n.hasError,r=n.isStopped,i=n.observers;return a||r?o.EMPTY_SUBSCRIPTION:(this.currentObservers=null,i.push(e),new o.Subscription((function(){t.currentObservers=null,u.arrRemove(i,e)})))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,a=t.thrownError,r=t.isStopped;n?e.error(a):r&&e.complete()},t.prototype.asObservable=function(){var e=new s.Observable;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(s.Observable);t.Subject=p;var d=function(e){function t(t,n){var a=e.call(this)||this;return a.destination=t,a.source=n,a}return r(t,e),t.prototype.next=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===n||n.call(t,e)},t.prototype.error=function(e){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===n||n.call(t,e)},t.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},t.prototype._subscribe=function(e){var t,n;return null!==(n=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==n?n:o.EMPTY_SUBSCRIPTION},t}(p);t.AnonymousSubject=d},9e3:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_OBSERVER=t.SafeSubscriber=t.Subscriber=void 0;var i=n(13813),s=n(59099),o=n(80020),c=n(91072),u=n(78121),l=n(77987),p=n(82596),d=n(23236),m=function(e){function n(n){var a=e.call(this)||this;return a.isStopped=!1,n?(a.destination=n,s.isSubscription(n)&&n.add(a)):a.destination=t.EMPTY_OBSERVER,a}return r(n,e),n.create=function(e,t,n){return new g(e,t,n)},n.prototype.next=function(e){this.isStopped?v(l.nextNotification(e),this):this._next(e)},n.prototype.error=function(e){this.isStopped?v(l.errorNotification(e),this):(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped?v(l.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(s.Subscription);t.Subscriber=m;var f=Function.prototype.bind;function h(e,t){return f.call(e,t)}var b=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){y(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){y(e)}else y(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){y(e)}},e}(),g=function(e){function t(t,n,a){var r,s,c=e.call(this)||this;i.isFunction(t)||!t?r={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=a?a:void 0}:c&&o.config.useDeprecatedNextContext?((s=Object.create(t)).unsubscribe=function(){return c.unsubscribe()},r={next:t.next&&h(t.next,s),error:t.error&&h(t.error,s),complete:t.complete&&h(t.complete,s)}):r=t;return c.destination=new b(r),c}return r(t,e),t}(m);function y(e){o.config.useDeprecatedSynchronousErrorHandling?d.captureError(e):c.reportUnhandledError(e)}function v(e,t){var n=o.config.onStoppedNotification;n&&p.timeoutProvider.setTimeout((function(){return n(e,t)}))}t.SafeSubscriber=g,t.EMPTY_OBSERVER={closed:!0,next:u.noop,error:function(e){throw e},complete:u.noop}},59099:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},i=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.isSubscription=t.EMPTY_SUBSCRIPTION=t.Subscription=void 0;var s=n(13813),o=n(69905),c=n(83370),u=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var e,t,n,c,u;if(!this.closed){this.closed=!0;var p=this._parentage;if(p)if(this._parentage=null,Array.isArray(p))try{for(var d=a(p),m=d.next();!m.done;m=d.next()){m.value.remove(this)}}catch(t){e={error:t}}finally{try{m&&!m.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}else p.remove(this);var f=this.initialTeardown;if(s.isFunction(f))try{f()}catch(e){u=e instanceof o.UnsubscriptionError?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var b=a(h),g=b.next();!g.done;g=b.next()){var y=g.value;try{l(y)}catch(e){u=null!=u?u:[],e instanceof o.UnsubscriptionError?u=i(i([],r(u)),r(e.errors)):u.push(e)}}}catch(e){n={error:e}}finally{try{g&&!g.done&&(c=b.return)&&c.call(b)}finally{if(n)throw n.error}}}if(u)throw new o.UnsubscriptionError(u)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)l(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&c.arrRemove(t,e)},e.prototype.remove=function(t){var n=this._finalizers;n&&c.arrRemove(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function l(e){s.isFunction(e)?e():e.unsubscribe()}t.Subscription=u,t.EMPTY_SUBSCRIPTION=u.EMPTY,t.isSubscription=function(e){return e instanceof u||e&&"closed"in e&&s.isFunction(e.remove)&&s.isFunction(e.add)&&s.isFunction(e.unsubscribe)}},80020:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.config=void 0,t.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},13915:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectableObservable=void 0;var i=n(39311),s=n(59099),o=n(73220),c=n(26122),u=n(96144),l=function(e){function t(t,n){var a=e.call(this)||this;return a.source=t,a.subjectFactory=n,a._subject=null,a._refCount=0,a._connection=null,u.hasLift(t)&&(a.lift=t.lift),a}return r(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,null==e||e.unsubscribe()},t.prototype.connect=function(){var e=this,t=this._connection;if(!t){t=this._connection=new s.Subscription;var n=this.getSubject();t.add(this.source.subscribe(c.createOperatorSubscriber(n,void 0,(function(){e._teardown(),n.complete()}),(function(t){e._teardown(),n.error(t)}),(function(){return e._teardown()})))),t.closed&&(this._connection=null,t=s.Subscription.EMPTY)}return t},t.prototype.refCount=function(){return o.refCount()(this)},t}(i.Observable);t.ConnectableObservable=l},41738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestInit=t.combineLatest=void 0;var a=n(39311),r=n(27267),i=n(89990),s=n(70423),o=n(8824),c=n(31688),u=n(30206),l=n(26122),p=n(31471);function d(e,t,n){return void 0===n&&(n=s.identity),function(a){m(t,(function(){for(var r=e.length,s=new Array(r),o=r,c=r,u=function(r){m(t,(function(){var u=i.from(e[r],t),p=!1;u.subscribe(l.createOperatorSubscriber(a,(function(e){s[r]=e,p||(p=!0,c--),c||a.next(n(s.slice()))}),(function(){--o||a.complete()})))}),a)},p=0;p<r;p++)u(p)}),a)}}function m(e,t,n){e?p.executeSchedule(n,e,t):t()}t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=c.popScheduler(e),l=c.popResultSelector(e),p=r.argsArgArrayOrObject(e),m=p.args,f=p.keys;if(0===m.length)return i.from([],n);var h=new a.Observable(d(m,n,f?function(e){return u.createObject(f,e)}:s.identity));return l?h.pipe(o.mapOneOrManyArgs(l)):h},t.combineLatestInit=d},64718:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var a=n(47445),r=n(31688),i=n(89990);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.concatAll()(i.from(e,r.popScheduler(e)))}},44305:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.EMPTY=void 0;var a=n(39311);t.EMPTY=new a.Observable((function(e){return e.complete()})),t.empty=function(e){return e?function(e){return new a.Observable((function(t){return e.schedule((function(){return t.complete()}))}))}(e):t.EMPTY}},89990:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.from=void 0;var a=n(17047),r=n(8128);t.from=function(e,t){return t?a.scheduled(e,t):r.innerFrom(e)}},55499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromSubscribable=void 0;var a=n(39311);t.fromSubscribable=function(e){return new a.Observable((function(t){return e.subscribe(t)}))}},8128:function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,a,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,a=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}},i=this&&this.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof s?s(e):e[Symbol.iterator](),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise((function(a,r){(function(e,t,n,a){Promise.resolve(a).then((function(t){e({value:t,done:n})}),t)})(a,r,(t=e[n](t)).done,t.value)}))}}},s=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.fromReadableStreamLike=t.fromAsyncIterable=t.fromIterable=t.fromPromise=t.fromArrayLike=t.fromInteropObservable=t.innerFrom=void 0;var o=n(81123),c=n(98700),u=n(39311),l=n(73793),p=n(8995),d=n(49797),m=n(3975),f=n(80106),h=n(13813),b=n(91072),g=n(70776);function y(e){return new u.Observable((function(t){var n=e[g.observable]();if(h.isFunction(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}))}function v(e){return new u.Observable((function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()}))}function _(e){return new u.Observable((function(t){e.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,b.reportUnhandledError)}))}function E(e){return new u.Observable((function(t){var n,a;try{for(var r=s(e),i=r.next();!i.done;i=r.next()){var o=i.value;if(t.next(o),t.closed)return}}catch(e){n={error:e}}finally{try{i&&!i.done&&(a=r.return)&&a.call(r)}finally{if(n)throw n.error}}t.complete()}))}function x(e){return new u.Observable((function(t){(function(e,t){var n,s,o,c;return a(this,void 0,void 0,(function(){var a,u;return r(this,(function(r){switch(r.label){case 0:r.trys.push([0,5,6,11]),n=i(e),r.label=1;case 1:return[4,n.next()];case 2:if((s=r.sent()).done)return[3,4];if(a=s.value,t.next(a),t.closed)return[2];r.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=r.sent(),o={error:u},[3,11];case 6:return r.trys.push([6,,9,10]),s&&!s.done&&(c=n.return)?[4,c.call(n)]:[3,8];case 7:r.sent(),r.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function T(e){return x(f.readableStreamLikeToAsyncGenerator(e))}t.innerFrom=function(e){if(e instanceof u.Observable)return e;if(null!=e){if(l.isInteropObservable(e))return y(e);if(o.isArrayLike(e))return v(e);if(c.isPromise(e))return _(e);if(p.isAsyncIterable(e))return x(e);if(m.isIterable(e))return E(e);if(f.isReadableStreamLike(e))return T(e)}throw d.createInvalidObservableTypeError(e)},t.fromInteropObservable=y,t.fromArrayLike=v,t.fromPromise=_,t.fromIterable=E,t.fromAsyncIterable=x,t.fromReadableStreamLike=T},93879:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.interval=void 0;var a=n(14426),r=n(39021);t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=a.asyncScheduler),e<0&&(e=0),r.timer(e,e,t)}},29519:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.of=void 0;var a=n(31688),r=n(89990);t.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a.popScheduler(e);return r.from(e,n)}},31083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=void 0;var a=n(39311),r=n(27976),i=n(26122),s=n(78121),o=n(8128);t.onErrorResumeNext=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.argsOrArgArray(e);return new a.Observable((function(e){var t=0,a=function(){if(t<n.length){var r=void 0;try{r=o.innerFrom(n[t++])}catch(e){return void a()}var c=new i.OperatorSubscriber(e,void 0,s.noop,s.noop);r.subscribe(c),c.add(a)}else e.complete()};a()}))}},33223:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.raceInit=t.race=void 0;var a=n(39311),r=n(8128),i=n(27976),s=n(26122);function o(e){return function(t){for(var n=[],a=function(a){n.push(r.innerFrom(e[a]).subscribe(s.createOperatorSubscriber(t,(function(e){if(n){for(var r=0;r<n.length;r++)r!==a&&n[r].unsubscribe();n=null}t.next(e)}))))},i=0;n&&!t.closed&&i<e.length;i++)a(i)}}t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===(e=i.argsOrArgArray(e)).length?r.innerFrom(e[0]):new a.Observable(o(e))},t.raceInit=o},53980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwError=void 0;var a=n(39311),r=n(13813);t.throwError=function(e,t){var n=r.isFunction(e)?e:function(){return e},i=function(e){return e.error(n())};return new a.Observable(t?function(e){return t.schedule(i,0,e)}:i)}},39021:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timer=void 0;var a=n(39311),r=n(14426),i=n(9520),s=n(81509);t.timer=function(e,t,n){void 0===e&&(e=0),void 0===n&&(n=r.async);var o=-1;return null!=t&&(i.isScheduler(t)?n=t:o=t),new a.Observable((function(t){var a=s.isValidDate(e)?+e-n.now():e;a<0&&(a=0);var r=0;return n.schedule((function(){t.closed||(t.next(r++),0<=o?this.schedule(void 0,o):t.complete())}),a)}))}},78539:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var i=n(39311),s=n(8128),o=n(27976),c=n(44305),u=n(26122),l=n(31688);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l.popResultSelector(e),p=o.argsOrArgArray(e);return p.length?new i.Observable((function(e){var t=p.map((function(){return[]})),i=p.map((function(){return!1}));e.add((function(){t=i=null}));for(var o=function(o){s.innerFrom(p[o]).subscribe(u.createOperatorSubscriber(e,(function(s){if(t[o].push(s),t.every((function(e){return e.length}))){var c=t.map((function(e){return e.shift()}));e.next(n?n.apply(void 0,r([],a(c))):c),t.some((function(e,t){return!e.length&&i[t]}))&&e.complete()}}),(function(){i[o]=!0,!t[o].length&&e.complete()})))},c=0;!e.closed&&c<p.length;c++)o(c);return function(){t=i=null}})):c.EMPTY}},26122:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorSubscriber=t.createOperatorSubscriber=void 0;var i=n(9e3);t.createOperatorSubscriber=function(e,t,n,a,r){return new s(e,t,n,a,r)};var s=function(e){function t(t,n,a,r,i,s){var o=e.call(this,t)||this;return o.onFinalize=i,o.shouldUnsubscribe=s,o._next=n?function(e){try{n(e)}catch(e){t.error(e)}}:e.prototype._next,o._error=r?function(e){try{r(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,o._complete=a?function(){try{a()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,o}return r(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}},t}(i.Subscriber);t.OperatorSubscriber=s},32134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.audit=void 0;var a=n(96144),r=n(8128),i=n(26122);t.audit=function(e){return a.operate((function(t,n){var a=!1,s=null,o=null,c=!1,u=function(){if(null==o||o.unsubscribe(),o=null,a){a=!1;var e=s;s=null,n.next(e)}c&&n.complete()},l=function(){o=null,c&&n.complete()};t.subscribe(i.createOperatorSubscriber(n,(function(t){a=!0,s=t,o||r.innerFrom(e(t)).subscribe(o=i.createOperatorSubscriber(n,u,l))}),(function(){c=!0,(!a||!o||o.closed)&&n.complete()})))}))}},27276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.auditTime=void 0;var a=n(14426),r=n(32134),i=n(39021);t.auditTime=function(e,t){return void 0===t&&(t=a.asyncScheduler),r.audit((function(){return i.timer(e,t)}))}},32158:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buffer=void 0;var a=n(96144),r=n(78121),i=n(26122),s=n(8128);t.buffer=function(e){return a.operate((function(t,n){var a=[];return t.subscribe(i.createOperatorSubscriber(n,(function(e){return a.push(e)}),(function(){n.next(a),n.complete()}))),s.innerFrom(e).subscribe(i.createOperatorSubscriber(n,(function(){var e=a;a=[],n.next(e)}),r.noop)),function(){a=null}}))}},48411:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferCount=void 0;var r=n(96144),i=n(26122),s=n(83370);t.bufferCount=function(e,t){return void 0===t&&(t=null),t=null!=t?t:e,r.operate((function(n,r){var o=[],c=0;n.subscribe(i.createOperatorSubscriber(r,(function(n){var i,u,l,p,d=null;c++%t==0&&o.push([]);try{for(var m=a(o),f=m.next();!f.done;f=m.next()){(g=f.value).push(n),e<=g.length&&(d=null!=d?d:[]).push(g)}}catch(e){i={error:e}}finally{try{f&&!f.done&&(u=m.return)&&u.call(m)}finally{if(i)throw i.error}}if(d)try{for(var h=a(d),b=h.next();!b.done;b=h.next()){var g=b.value;s.arrRemove(o,g),r.next(g)}}catch(e){l={error:e}}finally{try{b&&!b.done&&(p=h.return)&&p.call(h)}finally{if(l)throw l.error}}}),(function(){var e,t;try{for(var n=a(o),i=n.next();!i.done;i=n.next()){var s=i.value;r.next(s)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}r.complete()}),void 0,(function(){o=null})))}))}},49451:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferTime=void 0;var r=n(59099),i=n(96144),s=n(26122),o=n(83370),c=n(14426),u=n(31688),l=n(31471);t.bufferTime=function(e){for(var t,n,p=[],d=1;d<arguments.length;d++)p[d-1]=arguments[d];var m=null!==(t=u.popScheduler(p))&&void 0!==t?t:c.asyncScheduler,f=null!==(n=p[0])&&void 0!==n?n:null,h=p[1]||1/0;return i.operate((function(t,n){var i=[],c=!1,u=function(e){var t=e.buffer;e.subs.unsubscribe(),o.arrRemove(i,e),n.next(t),c&&p()},p=function(){if(i){var t=new r.Subscription;n.add(t);var a={buffer:[],subs:t};i.push(a),l.executeSchedule(t,m,(function(){return u(a)}),e)}};null!==f&&f>=0?l.executeSchedule(n,m,p,f,!0):c=!0,p();var d=s.createOperatorSubscriber(n,(function(e){var t,n,r=i.slice();try{for(var s=a(r),o=s.next();!o.done;o=s.next()){var c=o.value,l=c.buffer;l.push(e),h<=l.length&&u(c)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}}),(function(){for(;null==i?void 0:i.length;)n.next(i.shift().buffer);null==d||d.unsubscribe(),n.complete(),n.unsubscribe()}),void 0,(function(){return i=null}));t.subscribe(d)}))}},25214:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.bufferToggle=void 0;var r=n(59099),i=n(96144),s=n(8128),o=n(26122),c=n(78121),u=n(83370);t.bufferToggle=function(e,t){return i.operate((function(n,i){var l=[];s.innerFrom(e).subscribe(o.createOperatorSubscriber(i,(function(e){var n=[];l.push(n);var a=new r.Subscription;a.add(s.innerFrom(t(e)).subscribe(o.createOperatorSubscriber(i,(function(){u.arrRemove(l,n),i.next(n),a.unsubscribe()}),c.noop)))}),c.noop)),n.subscribe(o.createOperatorSubscriber(i,(function(e){var t,n;try{for(var r=a(l),i=r.next();!i.done;i=r.next()){i.value.push(e)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}}),(function(){for(;l.length>0;)i.next(l.shift());i.complete()})))}))}},74722:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bufferWhen=void 0;var a=n(96144),r=n(78121),i=n(26122),s=n(8128);t.bufferWhen=function(e){return a.operate((function(t,n){var a=null,o=null,c=function(){null==o||o.unsubscribe();var t=a;a=[],t&&n.next(t),s.innerFrom(e()).subscribe(o=i.createOperatorSubscriber(n,c,r.noop))};c(),t.subscribe(i.createOperatorSubscriber(n,(function(e){return null==a?void 0:a.push(e)}),(function(){a&&n.next(a),n.complete()}),void 0,(function(){return a=o=null})))}))}},44755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.catchError=void 0;var a=n(8128),r=n(26122),i=n(96144);t.catchError=function e(t){return i.operate((function(n,i){var s,o=null,c=!1;o=n.subscribe(r.createOperatorSubscriber(i,void 0,void 0,(function(r){s=a.innerFrom(t(r,e(t)(n))),o?(o.unsubscribe(),o=null,s.subscribe(i)):c=!0}))),c&&(o.unsubscribe(),o=null,s.subscribe(i))}))}},11928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineAll=void 0;var a=n(89337);t.combineAll=a.combineLatestAll},91336:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatest=void 0;var i=n(41738),s=n(96144),o=n(27976),c=n(8824),u=n(18257),l=n(31688);t.combineLatest=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var p=l.popResultSelector(t);return p?u.pipe(e.apply(void 0,r([],a(t))),c.mapOneOrManyArgs(p)):s.operate((function(e,n){i.combineLatestInit(r([e],a(o.argsOrArgArray(t))))(n)}))}},89337:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestAll=void 0;var a=n(41738),r=n(75235);t.combineLatestAll=function(e){return r.joinAllInternals(a.combineLatest,e)}},44720:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.combineLatestWith=void 0;var i=n(91336);t.combineLatestWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.combineLatest.apply(void 0,r([],a(e)))}},13244:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concat=void 0;var i=n(96144),s=n(47445),o=n(31688),c=n(89990);t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.popScheduler(e);return i.operate((function(t,i){s.concatAll()(c.from(r([t],a(e)),n)).subscribe(i)}))}},47445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=void 0;var a=n(28931);t.concatAll=function(){return a.mergeAll(1)}},41292:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMap=void 0;var a=n(17562),r=n(13813);t.concatMap=function(e,t){return r.isFunction(t)?a.mergeMap(e,t,1):a.mergeMap(e,1)}},41565:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.concatMapTo=void 0;var a=n(41292),r=n(13813);t.concatMapTo=function(e,t){return r.isFunction(t)?a.concatMap((function(){return e}),t):a.concatMap((function(){return e}))}},24804:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.concatWith=void 0;var i=n(13244);t.concatWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.concat.apply(void 0,r([],a(e)))}},30624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.connect=void 0;var a=n(22764),r=n(8128),i=n(96144),s=n(55499),o={connector:function(){return new a.Subject}};t.connect=function(e,t){void 0===t&&(t=o);var n=t.connector;return i.operate((function(t,a){var i=n();r.innerFrom(e(s.fromSubscribable(i))).subscribe(a),a.add(t.subscribe(i))}))}},32785:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count=void 0;var a=n(45970);t.count=function(e){return a.reduce((function(t,n,a){return!e||e(n,a)?t+1:t}),0)}},2483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounce=void 0;var a=n(96144),r=n(78121),i=n(26122),s=n(8128);t.debounce=function(e){return a.operate((function(t,n){var a=!1,o=null,c=null,u=function(){if(null==c||c.unsubscribe(),c=null,a){a=!1;var e=o;o=null,n.next(e)}};t.subscribe(i.createOperatorSubscriber(n,(function(t){null==c||c.unsubscribe(),a=!0,o=t,c=i.createOperatorSubscriber(n,u,r.noop),s.innerFrom(e(t)).subscribe(c)}),(function(){u(),n.complete()}),void 0,(function(){o=c=null})))}))}},42134:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debounceTime=void 0;var a=n(14426),r=n(96144),i=n(26122);t.debounceTime=function(e,t){return void 0===t&&(t=a.asyncScheduler),r.operate((function(n,a){var r=null,s=null,o=null,c=function(){if(r){r.unsubscribe(),r=null;var e=s;s=null,a.next(e)}};function u(){var n=o+e,i=t.now();if(i<n)return r=this.schedule(void 0,n-i),void a.add(r);c()}n.subscribe(i.createOperatorSubscriber(a,(function(n){s=n,o=t.now(),r||(r=t.schedule(u,e),a.add(r))}),(function(){c(),a.complete()}),void 0,(function(){s=r=null})))}))}},18907:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultIfEmpty=void 0;var a=n(96144),r=n(26122);t.defaultIfEmpty=function(e){return a.operate((function(t,n){var a=!1;t.subscribe(r.createOperatorSubscriber(n,(function(e){a=!0,n.next(e)}),(function(){a||n.next(e),n.complete()})))}))}},89025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delay=void 0;var a=n(14426),r=n(30281),i=n(39021);t.delay=function(e,t){void 0===t&&(t=a.asyncScheduler);var n=i.timer(e,t);return r.delayWhen((function(){return n}))}},30281:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.delayWhen=void 0;var a=n(64718),r=n(79019),i=n(96835),s=n(29685),o=n(17562),c=n(8128);t.delayWhen=function e(t,n){return n?function(s){return a.concat(n.pipe(r.take(1),i.ignoreElements()),s.pipe(e(t)))}:o.mergeMap((function(e,n){return c.innerFrom(t(e,n)).pipe(r.take(1),s.mapTo(e))}))}},14150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dematerialize=void 0;var a=n(84841),r=n(96144),i=n(26122);t.dematerialize=function(){return r.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(e){return a.observeNotification(e,t)})))}))}},28064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinct=void 0;var a=n(96144),r=n(26122),i=n(78121),s=n(8128);t.distinct=function(e,t){return a.operate((function(n,a){var o=new Set;n.subscribe(r.createOperatorSubscriber(a,(function(t){var n=e?e(t):t;o.has(n)||(o.add(n),a.next(t))}))),t&&s.innerFrom(t).subscribe(r.createOperatorSubscriber(a,(function(){return o.clear()}),i.noop))}))}},92776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilChanged=void 0;var a=n(70423),r=n(96144),i=n(26122);function s(e,t){return e===t}t.distinctUntilChanged=function(e,t){return void 0===t&&(t=a.identity),e=null!=e?e:s,r.operate((function(n,a){var r,s=!0;n.subscribe(i.createOperatorSubscriber(a,(function(n){var i=t(n);!s&&e(r,i)||(s=!1,r=i,a.next(n))})))}))}},35135:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distinctUntilKeyChanged=void 0;var a=n(92776);t.distinctUntilKeyChanged=function(e,t){return a.distinctUntilChanged((function(n,a){return t?t(n[e],a[e]):n[e]===a[e]}))}},59635:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.elementAt=void 0;var a=n(89732),r=n(49978),i=n(91036),s=n(18907),o=n(79019);t.elementAt=function(e,t){if(e<0)throw new a.ArgumentOutOfRangeError;var n=arguments.length>=2;return function(c){return c.pipe(r.filter((function(t,n){return n===e})),o.take(1),n?s.defaultIfEmpty(t):i.throwIfEmpty((function(){return new a.ArgumentOutOfRangeError})))}}},9859:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.endWith=void 0;var i=n(64718),s=n(29519);t.endWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return i.concat(t,s.of.apply(void 0,r([],a(e))))}}},95165:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.every=void 0;var a=n(96144),r=n(26122);t.every=function(e,t){return a.operate((function(n,a){var i=0;n.subscribe(r.createOperatorSubscriber(a,(function(r){e.call(t,r,i++,n)||(a.next(!1),a.complete())}),(function(){a.next(!0),a.complete()})))}))}},30900:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaust=void 0;var a=n(73245);t.exhaust=a.exhaustAll},73245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustAll=void 0;var a=n(70948),r=n(70423);t.exhaustAll=function(){return a.exhaustMap(r.identity)}},70948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.exhaustMap=void 0;var a=n(77108),r=n(8128),i=n(96144),s=n(26122);t.exhaustMap=function e(t,n){return n?function(i){return i.pipe(e((function(e,i){return r.innerFrom(t(e,i)).pipe(a.map((function(t,a){return n(e,t,i,a)})))})))}:i.operate((function(e,n){var a=0,i=null,o=!1;e.subscribe(s.createOperatorSubscriber(n,(function(e){i||(i=s.createOperatorSubscriber(n,void 0,(function(){i=null,o&&n.complete()})),r.innerFrom(t(e,a++)).subscribe(i))}),(function(){o=!0,!i&&n.complete()})))}))}},652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expand=void 0;var a=n(96144),r=n(41362);t.expand=function(e,t,n){return void 0===t&&(t=1/0),t=(t||0)<1?1/0:t,a.operate((function(a,i){return r.mergeInternals(a,i,e,t,void 0,!0,n)}))}},49978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=void 0;var a=n(96144),r=n(26122);t.filter=function(e,t){return a.operate((function(n,a){var i=0;n.subscribe(r.createOperatorSubscriber(a,(function(n){return e.call(t,n,i++)&&a.next(n)})))}))}},28342:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalize=void 0;var a=n(96144);t.finalize=function(e){return a.operate((function(t,n){try{t.subscribe(n)}finally{n.add(e)}}))}},12475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createFind=t.find=void 0;var a=n(96144),r=n(26122);function i(e,t,n){var a="index"===n;return function(n,i){var s=0;n.subscribe(r.createOperatorSubscriber(i,(function(r){var o=s++;e.call(t,r,o,n)&&(i.next(a?o:r),i.complete())}),(function(){i.next(a?-1:void 0),i.complete()})))}}t.find=function(e,t){return a.operate(i(e,t,"value"))},t.createFind=i},95023:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findIndex=void 0;var a=n(96144),r=n(12475);t.findIndex=function(e,t){return a.operate(r.createFind(e,t,"index"))}},2816:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.first=void 0;var a=n(76276),r=n(49978),i=n(79019),s=n(18907),o=n(91036),c=n(70423);t.first=function(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?r.filter((function(t,n){return e(t,n,u)})):c.identity,i.take(1),n?s.defaultIfEmpty(t):o.throwIfEmpty((function(){return new a.EmptyError})))}}},56249:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flatMap=void 0;var a=n(17562);t.flatMap=a.mergeMap},58628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.groupBy=void 0;var a=n(39311),r=n(8128),i=n(22764),s=n(96144),o=n(26122);t.groupBy=function(e,t,n,c){return s.operate((function(s,u){var l;t&&"function"!=typeof t?(n=t.duration,l=t.element,c=t.connector):l=t;var p=new Map,d=function(e){p.forEach(e),e(u)},m=function(e){return d((function(t){return t.error(e)}))},f=0,h=!1,b=new o.OperatorSubscriber(u,(function(t){try{var s=e(t),d=p.get(s);if(!d){p.set(s,d=c?c():new i.Subject);var g=(v=s,_=d,(E=new a.Observable((function(e){f++;var t=_.subscribe(e);return function(){t.unsubscribe(),0==--f&&h&&b.unsubscribe()}}))).key=v,E);if(u.next(g),n){var y=o.createOperatorSubscriber(d,(function(){d.complete(),null==y||y.unsubscribe()}),void 0,void 0,(function(){return p.delete(s)}));b.add(r.innerFrom(n(g)).subscribe(y))}}d.next(l?l(t):t)}catch(e){m(e)}var v,_,E}),(function(){return d((function(e){return e.complete()}))}),m,(function(){return p.clear()}),(function(){return h=!0,0===f}));s.subscribe(b)}))}},96835:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreElements=void 0;var a=n(96144),r=n(26122),i=n(78121);t.ignoreElements=function(){return a.operate((function(e,t){e.subscribe(r.createOperatorSubscriber(t,i.noop))}))}},30711:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=void 0;var a=n(96144),r=n(26122);t.isEmpty=function(){return a.operate((function(e,t){e.subscribe(r.createOperatorSubscriber(t,(function(){t.next(!1),t.complete()}),(function(){t.next(!0),t.complete()})))}))}},75235:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.joinAllInternals=void 0;var a=n(70423),r=n(8824),i=n(18257),s=n(17562),o=n(23680);t.joinAllInternals=function(e,t){return i.pipe(o.toArray(),s.mergeMap((function(t){return e(t)})),t?r.mapOneOrManyArgs(t):a.identity)}},67972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.last=void 0;var a=n(76276),r=n(49978),i=n(49275),s=n(91036),o=n(18907),c=n(70423);t.last=function(e,t){var n=arguments.length>=2;return function(u){return u.pipe(e?r.filter((function(t,n){return e(t,n,u)})):c.identity,i.takeLast(1),n?o.defaultIfEmpty(t):s.throwIfEmpty((function(){return new a.EmptyError})))}}},77108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.map=void 0;var a=n(96144),r=n(26122);t.map=function(e,t){return a.operate((function(n,a){var i=0;n.subscribe(r.createOperatorSubscriber(a,(function(n){a.next(e.call(t,n,i++))})))}))}},29685:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapTo=void 0;var a=n(77108);t.mapTo=function(e){return a.map((function(){return e}))}},37399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.materialize=void 0;var a=n(84841),r=n(96144),i=n(26122);t.materialize=function(){return r.operate((function(e,t){e.subscribe(i.createOperatorSubscriber(t,(function(e){t.next(a.Notification.createNext(e))}),(function(){t.next(a.Notification.createComplete()),t.complete()}),(function(e){t.next(a.Notification.createError(e)),t.complete()})))}))}},76780:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.max=void 0;var a=n(45970),r=n(13813);t.max=function(e){return a.reduce(r.isFunction(e)?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}},55958:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.merge=void 0;var i=n(96144),s=n(27976),o=n(28931),c=n(31688),u=n(89990);t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=c.popScheduler(e),l=c.popNumber(e,1/0);return e=s.argsOrArgArray(e),i.operate((function(t,i){o.mergeAll(l)(u.from(r([t],a(e)),n)).subscribe(i)}))}},28931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=void 0;var a=n(17562),r=n(70423);t.mergeAll=function(e){return void 0===e&&(e=1/0),a.mergeMap(r.identity,e)}},41362:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeInternals=void 0;var a=n(8128),r=n(31471),i=n(26122);t.mergeInternals=function(e,t,n,s,o,c,u,l){var p=[],d=0,m=0,f=!1,h=function(){!f||p.length||d||t.complete()},b=function(e){return d<s?g(e):p.push(e)},g=function(e){c&&t.next(e),d++;var l=!1;a.innerFrom(n(e,m++)).subscribe(i.createOperatorSubscriber(t,(function(e){null==o||o(e),c?b(e):t.next(e)}),(function(){l=!0}),void 0,(function(){if(l)try{d--;for(var e=function(){var e=p.shift();u?r.executeSchedule(t,u,(function(){return g(e)})):g(e)};p.length&&d<s;)e();h()}catch(e){t.error(e)}})))};return e.subscribe(i.createOperatorSubscriber(t,b,(function(){f=!0,h()}))),function(){null==l||l()}}},17562:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMap=void 0;var a=n(77108),r=n(8128),i=n(96144),s=n(41362),o=n(13813);t.mergeMap=function e(t,n,c){return void 0===c&&(c=1/0),o.isFunction(n)?e((function(e,i){return a.map((function(t,a){return n(e,t,i,a)}))(r.innerFrom(t(e,i)))}),c):("number"==typeof n&&(c=n),i.operate((function(e,n){return s.mergeInternals(e,n,t,c)})))}},36399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMapTo=void 0;var a=n(17562),r=n(13813);t.mergeMapTo=function(e,t,n){return void 0===n&&(n=1/0),r.isFunction(t)?a.mergeMap((function(){return e}),t,n):("number"==typeof t&&(n=t),a.mergeMap((function(){return e}),n))}},89071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeScan=void 0;var a=n(96144),r=n(41362);t.mergeScan=function(e,t,n){return void 0===n&&(n=1/0),a.operate((function(a,i){var s=t;return r.mergeInternals(a,i,(function(t,n){return e(s,t,n)}),n,(function(e){s=e}),!1,void 0,(function(){return s=null}))}))}},71794:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeWith=void 0;var i=n(55958);t.mergeWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.merge.apply(void 0,r([],a(e)))}},3906:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.min=void 0;var a=n(45970),r=n(13813);t.min=function(e){return a.reduce(r.isFunction(e)?function(t,n){return e(t,n)<0?t:n}:function(e,t){return e<t?e:t})}},30044:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multicast=void 0;var a=n(13915),r=n(13813),i=n(30624);t.multicast=function(e,t){var n=r.isFunction(e)?e:function(){return e};return r.isFunction(t)?i.connect(t,{connector:n}):function(e){return new a.ConnectableObservable(e,n)}}},84475:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observeOn=void 0;var a=n(31471),r=n(96144),i=n(26122);t.observeOn=function(e,t){return void 0===t&&(t=0),r.operate((function(n,r){n.subscribe(i.createOperatorSubscriber(r,(function(n){return a.executeSchedule(r,e,(function(){return r.next(n)}),t)}),(function(){return a.executeSchedule(r,e,(function(){return r.complete()}),t)}),(function(n){return a.executeSchedule(r,e,(function(){return r.error(n)}),t)})))}))}},21701:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.onErrorResumeNext=t.onErrorResumeNextWith=void 0;var i=n(27976),s=n(31083);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=i.argsOrArgArray(e);return function(e){return s.onErrorResumeNext.apply(void 0,r([e],a(n)))}}t.onErrorResumeNextWith=o,t.onErrorResumeNext=o},49156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pairwise=void 0;var a=n(96144),r=n(26122);t.pairwise=function(){return a.operate((function(e,t){var n,a=!1;e.subscribe(r.createOperatorSubscriber(t,(function(e){var r=n;n=e,a&&t.next([r,e]),a=!0})))}))}},22544:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition=void 0;var a=n(97684),r=n(49978);t.partition=function(e,t){return function(n){return[r.filter(e,t)(n),r.filter(a.not(e,t))(n)]}}},51671:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pluck=void 0;var a=n(77108);t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return a.map((function(t){for(var a=t,r=0;r<n;r++){var i=null==a?void 0:a[e[r]];if(void 0===i)return;a=i}return a}))}},34513:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publish=void 0;var a=n(22764),r=n(30044),i=n(30624);t.publish=function(e){return e?function(t){return i.connect(e)(t)}:function(e){return r.multicast(new a.Subject)(e)}}},18247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishBehavior=void 0;var a=n(34046),r=n(13915);t.publishBehavior=function(e){return function(t){var n=new a.BehaviorSubject(e);return new r.ConnectableObservable(t,(function(){return n}))}}},10413:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishLast=void 0;var a=n(86478),r=n(13915);t.publishLast=function(){return function(e){var t=new a.AsyncSubject;return new r.ConnectableObservable(e,(function(){return t}))}}},71274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.publishReplay=void 0;var a=n(92785),r=n(30044),i=n(13813);t.publishReplay=function(e,t,n,s){n&&!i.isFunction(n)&&(s=n);var o=i.isFunction(n)?n:void 0;return function(n){return r.multicast(new a.ReplaySubject(e,t,s),o)(n)}}},66085:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.race=void 0;var i=n(27976),s=n(38585);t.race=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.raceWith.apply(void 0,r([],a(i.argsOrArgArray(e))))}},38585:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.raceWith=void 0;var i=n(33223),s=n(96144),o=n(70423);t.raceWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?s.operate((function(t,n){i.raceInit(r([t],a(e)))(n)})):o.identity}},45970:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reduce=void 0;var a=n(61479),r=n(96144);t.reduce=function(e,t){return r.operate(a.scanInternals(e,t,arguments.length>=2,!1,!0))}},73220:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.refCount=void 0;var a=n(96144),r=n(26122);t.refCount=function(){return a.operate((function(e,t){var n=null;e._refCount++;var a=r.createOperatorSubscriber(t,void 0,void 0,void 0,(function(){if(!e||e._refCount<=0||0<--e._refCount)n=null;else{var a=e._connection,r=n;n=null,!a||r&&a!==r||a.unsubscribe(),t.unsubscribe()}}));e.subscribe(a),a.closed||(n=e.connect())}))}},60423:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeat=void 0;var a=n(44305),r=n(96144),i=n(26122),s=n(8128),o=n(39021);t.repeat=function(e){var t,n,c=1/0;return null!=e&&("object"==typeof e?(t=e.count,c=void 0===t?1/0:t,n=e.delay):c=e),c<=0?function(){return a.EMPTY}:r.operate((function(e,t){var a,r=0,u=function(){if(null==a||a.unsubscribe(),a=null,null!=n){var e="number"==typeof n?o.timer(n):s.innerFrom(n(r)),c=i.createOperatorSubscriber(t,(function(){c.unsubscribe(),l()}));e.subscribe(c)}else l()},l=function(){var n=!1;a=e.subscribe(i.createOperatorSubscriber(t,void 0,(function(){++r<c?a?u():n=!0:t.complete()}))),n&&u()};l()}))}},36999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.repeatWhen=void 0;var a=n(8128),r=n(22764),i=n(96144),s=n(26122);t.repeatWhen=function(e){return i.operate((function(t,n){var i,o,c=!1,u=!1,l=!1,p=function(){return l&&u&&(n.complete(),!0)},d=function(){l=!1,i=t.subscribe(s.createOperatorSubscriber(n,void 0,(function(){l=!0,!p()&&(o||(o=new r.Subject,a.innerFrom(e(o)).subscribe(s.createOperatorSubscriber(n,(function(){i?d():c=!0}),(function(){u=!0,p()})))),o).next()}))),c&&(i.unsubscribe(),i=null,c=!1,d())};d()}))}},12284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retry=void 0;var a=n(96144),r=n(26122),i=n(70423),s=n(39021),o=n(8128);t.retry=function(e){var t;void 0===e&&(e=1/0);var n=(t=e&&"object"==typeof e?e:{count:e}).count,c=void 0===n?1/0:n,u=t.delay,l=t.resetOnSuccess,p=void 0!==l&&l;return c<=0?i.identity:a.operate((function(e,t){var n,a=0,i=function(){var l=!1;n=e.subscribe(r.createOperatorSubscriber(t,(function(e){p&&(a=0),t.next(e)}),void 0,(function(e){if(a++<c){var p=function(){n?(n.unsubscribe(),n=null,i()):l=!0};if(null!=u){var d="number"==typeof u?s.timer(u):o.innerFrom(u(e,a)),m=r.createOperatorSubscriber(t,(function(){m.unsubscribe(),p()}),(function(){t.complete()}));d.subscribe(m)}else p()}else t.error(e)}))),l&&(n.unsubscribe(),n=null,i())};i()}))}},19856:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retryWhen=void 0;var a=n(8128),r=n(22764),i=n(96144),s=n(26122);t.retryWhen=function(e){return i.operate((function(t,n){var i,o,c=!1,u=function(){i=t.subscribe(s.createOperatorSubscriber(n,void 0,void 0,(function(t){o||(o=new r.Subject,a.innerFrom(e(o)).subscribe(s.createOperatorSubscriber(n,(function(){return i?u():c=!0})))),o&&o.next(t)}))),c&&(i.unsubscribe(),i=null,c=!1,u())};u()}))}},26110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sample=void 0;var a=n(8128),r=n(96144),i=n(78121),s=n(26122);t.sample=function(e){return r.operate((function(t,n){var r=!1,o=null;t.subscribe(s.createOperatorSubscriber(n,(function(e){r=!0,o=e}))),a.innerFrom(e).subscribe(s.createOperatorSubscriber(n,(function(){if(r){r=!1;var e=o;o=null,n.next(e)}}),i.noop))}))}},37547:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sampleTime=void 0;var a=n(14426),r=n(26110),i=n(93879);t.sampleTime=function(e,t){return void 0===t&&(t=a.asyncScheduler),r.sample(i.interval(e,t))}},32529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scan=void 0;var a=n(96144),r=n(61479);t.scan=function(e,t){return a.operate(r.scanInternals(e,t,arguments.length>=2,!0))}},61479:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scanInternals=void 0;var a=n(26122);t.scanInternals=function(e,t,n,r,i){return function(s,o){var c=n,u=t,l=0;s.subscribe(a.createOperatorSubscriber(o,(function(t){var n=l++;u=c?e(u,t,n):(c=!0,t),r&&o.next(u)}),i&&function(){c&&o.next(u),o.complete()}))}}},10045:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceEqual=void 0;var a=n(96144),r=n(26122),i=n(8128);t.sequenceEqual=function(e,t){return void 0===t&&(t=function(e,t){return e===t}),a.operate((function(n,a){var s={buffer:[],complete:!1},o={buffer:[],complete:!1},c=function(e){a.next(e),a.complete()},u=function(e,n){var i=r.createOperatorSubscriber(a,(function(a){var r=n.buffer,i=n.complete;0===r.length?i?c(!1):e.buffer.push(a):!t(a,r.shift())&&c(!1)}),(function(){e.complete=!0;var t=n.complete,a=n.buffer;t&&c(0===a.length),null==i||i.unsubscribe()}));return i};n.subscribe(u(s,o)),i.innerFrom(e).subscribe(u(o,s))}))}},59657:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.share=void 0;var i=n(8128),s=n(22764),o=n(9e3),c=n(96144);function u(e,t){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];if(!0!==t){if(!1!==t){var c=new o.SafeSubscriber({next:function(){c.unsubscribe(),e()}});return i.innerFrom(t.apply(void 0,r([],a(n)))).subscribe(c)}}else e()}t.share=function(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new s.Subject}:t,a=e.resetOnError,r=void 0===a||a,l=e.resetOnComplete,p=void 0===l||l,d=e.resetOnRefCountZero,m=void 0===d||d;return function(e){var t,a,s,l=0,d=!1,f=!1,h=function(){null==a||a.unsubscribe(),a=void 0},b=function(){h(),t=s=void 0,d=f=!1},g=function(){var e=t;b(),null==e||e.unsubscribe()};return c.operate((function(e,c){l++,f||d||h();var y=s=null!=s?s:n();c.add((function(){0!==--l||f||d||(a=u(g,m))})),y.subscribe(c),!t&&l>0&&(t=new o.SafeSubscriber({next:function(e){return y.next(e)},error:function(e){f=!0,h(),a=u(b,r,e),y.error(e)},complete:function(){d=!0,h(),a=u(b,p),y.complete()}}),i.innerFrom(e).subscribe(t))}))(e)}}},59426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shareReplay=void 0;var a=n(92785),r=n(59657);t.shareReplay=function(e,t,n){var i,s,o,c,u=!1;return e&&"object"==typeof e?(i=e.bufferSize,c=void 0===i?1/0:i,s=e.windowTime,t=void 0===s?1/0:s,u=void 0!==(o=e.refCount)&&o,n=e.scheduler):c=null!=e?e:1/0,r.share({connector:function(){return new a.ReplaySubject(c,t,n)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:u})}},68156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.single=void 0;var a=n(76276),r=n(51168),i=n(48230),s=n(96144),o=n(26122);t.single=function(e){return s.operate((function(t,n){var s,c=!1,u=!1,l=0;t.subscribe(o.createOperatorSubscriber(n,(function(a){u=!0,e&&!e(a,l++,t)||(c&&n.error(new r.SequenceError("Too many matching values")),c=!0,s=a)}),(function(){c?(n.next(s),n.complete()):n.error(u?new i.NotFoundError("No matching values"):new a.EmptyError)})))}))}},94995:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skip=void 0;var a=n(49978);t.skip=function(e){return a.filter((function(t,n){return e<=n}))}},4083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipLast=void 0;var a=n(70423),r=n(96144),i=n(26122);t.skipLast=function(e){return e<=0?a.identity:r.operate((function(t,n){var a=new Array(e),r=0;return t.subscribe(i.createOperatorSubscriber(n,(function(t){var i=r++;if(i<e)a[i]=t;else{var s=i%e,o=a[s];a[s]=t,n.next(o)}}))),function(){a=null}}))}},41931:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipUntil=void 0;var a=n(96144),r=n(26122),i=n(8128),s=n(78121);t.skipUntil=function(e){return a.operate((function(t,n){var a=!1,o=r.createOperatorSubscriber(n,(function(){null==o||o.unsubscribe(),a=!0}),s.noop);i.innerFrom(e).subscribe(o),t.subscribe(r.createOperatorSubscriber(n,(function(e){return a&&n.next(e)})))}))}},13658:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.skipWhile=void 0;var a=n(96144),r=n(26122);t.skipWhile=function(e){return a.operate((function(t,n){var a=!1,i=0;t.subscribe(r.createOperatorSubscriber(n,(function(t){return(a||(a=!e(t,i++)))&&n.next(t)})))}))}},17938:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startWith=void 0;var a=n(64718),r=n(31688),i=n(96144);t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=r.popScheduler(e);return i.operate((function(t,r){(n?a.concat(e,t,n):a.concat(e,t)).subscribe(r)}))}},78403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.subscribeOn=void 0;var a=n(96144);t.subscribeOn=function(e,t){return void 0===t&&(t=0),a.operate((function(n,a){a.add(e.schedule((function(){return n.subscribe(a)}),t))}))}},1437:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchAll=void 0;var a=n(48100),r=n(70423);t.switchAll=function(){return a.switchMap(r.identity)}},48100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMap=void 0;var a=n(8128),r=n(96144),i=n(26122);t.switchMap=function(e,t){return r.operate((function(n,r){var s=null,o=0,c=!1,u=function(){return c&&!s&&r.complete()};n.subscribe(i.createOperatorSubscriber(r,(function(n){null==s||s.unsubscribe();var c=0,l=o++;a.innerFrom(e(n,l)).subscribe(s=i.createOperatorSubscriber(r,(function(e){return r.next(t?t(n,e,l,c++):e)}),(function(){s=null,u()})))}),(function(){c=!0,u()})))}))}},71269:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchMapTo=void 0;var a=n(48100),r=n(13813);t.switchMapTo=function(e,t){return r.isFunction(t)?a.switchMap((function(){return e}),t):a.switchMap((function(){return e}))}},93377:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.switchScan=void 0;var a=n(48100),r=n(96144);t.switchScan=function(e,t){return r.operate((function(n,r){var i=t;return a.switchMap((function(t,n){return e(i,t,n)}),(function(e,t){return i=t,t}))(n).subscribe(r),function(){i=null}}))}},79019:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.take=void 0;var a=n(44305),r=n(96144),i=n(26122);t.take=function(e){return e<=0?function(){return a.EMPTY}:r.operate((function(t,n){var a=0;t.subscribe(i.createOperatorSubscriber(n,(function(t){++a<=e&&(n.next(t),e<=a&&n.complete())})))}))}},49275:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.takeLast=void 0;var r=n(44305),i=n(96144),s=n(26122);t.takeLast=function(e){return e<=0?function(){return r.EMPTY}:i.operate((function(t,n){var r=[];t.subscribe(s.createOperatorSubscriber(n,(function(t){r.push(t),e<r.length&&r.shift()}),(function(){var e,t;try{for(var i=a(r),s=i.next();!s.done;s=i.next()){var o=s.value;n.next(o)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}n.complete()}),void 0,(function(){r=null})))}))}},29987:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeUntil=void 0;var a=n(96144),r=n(26122),i=n(8128),s=n(78121);t.takeUntil=function(e){return a.operate((function(t,n){i.innerFrom(e).subscribe(r.createOperatorSubscriber(n,(function(){return n.complete()}),s.noop)),!n.closed&&t.subscribe(n)}))}},76882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.takeWhile=void 0;var a=n(96144),r=n(26122);t.takeWhile=function(e,t){return void 0===t&&(t=!1),a.operate((function(n,a){var i=0;n.subscribe(r.createOperatorSubscriber(a,(function(n){var r=e(n,i++);(r||t)&&a.next(n),!r&&a.complete()})))}))}},33399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tap=void 0;var a=n(13813),r=n(96144),i=n(26122),s=n(70423);t.tap=function(e,t,n){var o=a.isFunction(e)||t||n?{next:e,error:t,complete:n}:e;return o?r.operate((function(e,t){var n;null===(n=o.subscribe)||void 0===n||n.call(o);var a=!0;e.subscribe(i.createOperatorSubscriber(t,(function(e){var n;null===(n=o.next)||void 0===n||n.call(o,e),t.next(e)}),(function(){var e;a=!1,null===(e=o.complete)||void 0===e||e.call(o),t.complete()}),(function(e){var n;a=!1,null===(n=o.error)||void 0===n||n.call(o,e),t.error(e)}),(function(){var e,t;a&&(null===(e=o.unsubscribe)||void 0===e||e.call(o)),null===(t=o.finalize)||void 0===t||t.call(o)})))})):s.identity}},63932:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttle=void 0;var a=n(96144),r=n(26122),i=n(8128);t.throttle=function(e,t){return a.operate((function(n,a){var s=null!=t?t:{},o=s.leading,c=void 0===o||o,u=s.trailing,l=void 0!==u&&u,p=!1,d=null,m=null,f=!1,h=function(){null==m||m.unsubscribe(),m=null,l&&(y(),f&&a.complete())},b=function(){m=null,f&&a.complete()},g=function(t){return m=i.innerFrom(e(t)).subscribe(r.createOperatorSubscriber(a,h,b))},y=function(){if(p){p=!1;var e=d;d=null,a.next(e),!f&&g(e)}};n.subscribe(r.createOperatorSubscriber(a,(function(e){p=!0,d=e,(!m||m.closed)&&(c?y():g(e))}),(function(){f=!0,(!(l&&p&&m)||m.closed)&&a.complete()})))}))}},81793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throttleTime=void 0;var a=n(14426),r=n(63932),i=n(39021);t.throttleTime=function(e,t,n){void 0===t&&(t=a.asyncScheduler);var s=i.timer(e,t);return r.throttle((function(){return s}),n)}},91036:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.throwIfEmpty=void 0;var a=n(76276),r=n(96144),i=n(26122);function s(){return new a.EmptyError}t.throwIfEmpty=function(e){return void 0===e&&(e=s),r.operate((function(t,n){var a=!1;t.subscribe(i.createOperatorSubscriber(n,(function(e){a=!0,n.next(e)}),(function(){return a?n.complete():n.error(e())})))}))}},1368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeInterval=t.timeInterval=void 0;var a=n(14426),r=n(96144),i=n(26122);t.timeInterval=function(e){return void 0===e&&(e=a.asyncScheduler),r.operate((function(t,n){var a=e.now();t.subscribe(i.createOperatorSubscriber(n,(function(t){var r=e.now(),i=r-a;a=r,n.next(new s(t,i))})))}))};var s=function(e,t){this.value=e,this.interval=t};t.TimeInterval=s},64229:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeout=t.TimeoutError=void 0;var a=n(14426),r=n(81509),i=n(96144),s=n(8128),o=n(54367),c=n(26122),u=n(31471);function l(e){throw new t.TimeoutError(e)}t.TimeoutError=o.createErrorClass((function(e){return function(t){void 0===t&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}})),t.timeout=function(e,t){var n=r.isValidDate(e)?{first:e}:"number"==typeof e?{each:e}:e,o=n.first,p=n.each,d=n.with,m=void 0===d?l:d,f=n.scheduler,h=void 0===f?null!=t?t:a.asyncScheduler:f,b=n.meta,g=void 0===b?null:b;if(null==o&&null==p)throw new TypeError("No timeout provided.");return i.operate((function(e,t){var n,a,r=null,i=0,l=function(e){a=u.executeSchedule(t,h,(function(){try{n.unsubscribe(),s.innerFrom(m({meta:g,lastValue:r,seen:i})).subscribe(t)}catch(e){t.error(e)}}),e)};n=e.subscribe(c.createOperatorSubscriber(t,(function(e){null==a||a.unsubscribe(),i++,t.next(r=e),p>0&&l(p)}),void 0,void 0,(function(){(null==a?void 0:a.closed)||null==a||a.unsubscribe(),r=null}))),!i&&l(null!=o?"number"==typeof o?o:+o-h.now():p)}))}},20441:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutWith=void 0;var a=n(14426),r=n(81509),i=n(64229);t.timeoutWith=function(e,t,n){var s,o,c;if(n=null!=n?n:a.async,r.isValidDate(e)?s=e:"number"==typeof e&&(o=e),!t)throw new TypeError("No observable provided to switch to");if(c=function(){return t},null==s&&null==o)throw new TypeError("No timeout provided.");return i.timeout({first:s,each:o,scheduler:n,with:c})}},29414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timestamp=void 0;var a=n(95783),r=n(77108);t.timestamp=function(e){return void 0===e&&(e=a.dateTimestampProvider),r.map((function(t){return{value:t,timestamp:e.now()}}))}},23680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toArray=void 0;var a=n(45970),r=n(96144),i=function(e,t){return e.push(t),e};t.toArray=function(){return r.operate((function(e,t){a.reduce(i,[])(e).subscribe(t)}))}},52860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.window=void 0;var a=n(22764),r=n(96144),i=n(26122),s=n(78121),o=n(8128);t.window=function(e){return r.operate((function(t,n){var r=new a.Subject;n.next(r.asObservable());var c=function(e){r.error(e),n.error(e)};return t.subscribe(i.createOperatorSubscriber(n,(function(e){return null==r?void 0:r.next(e)}),(function(){r.complete(),n.complete()}),c)),o.innerFrom(e).subscribe(i.createOperatorSubscriber(n,(function(){r.complete(),n.next(r=new a.Subject)}),s.noop,c)),function(){null==r||r.unsubscribe(),r=null}}))}},91641:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowCount=void 0;var r=n(22764),i=n(96144),s=n(26122);t.windowCount=function(e,t){void 0===t&&(t=0);var n=t>0?t:e;return i.operate((function(t,i){var o=[new r.Subject],c=0;i.next(o[0].asObservable()),t.subscribe(s.createOperatorSubscriber(i,(function(t){var s,u;try{for(var l=a(o),p=l.next();!p.done;p=l.next()){p.value.next(t)}}catch(e){s={error:e}}finally{try{p&&!p.done&&(u=l.return)&&u.call(l)}finally{if(s)throw s.error}}var d=c-e+1;if(d>=0&&d%n==0&&o.shift().complete(),++c%n==0){var m=new r.Subject;o.push(m),i.next(m.asObservable())}}),(function(){for(;o.length>0;)o.shift().complete();i.complete()}),(function(e){for(;o.length>0;)o.shift().error(e);i.error(e)}),(function(){null,o=null})))}))}},4129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowTime=void 0;var a=n(22764),r=n(14426),i=n(59099),s=n(96144),o=n(26122),c=n(83370),u=n(31688),l=n(31471);t.windowTime=function(e){for(var t,n,p=[],d=1;d<arguments.length;d++)p[d-1]=arguments[d];var m=null!==(t=u.popScheduler(p))&&void 0!==t?t:r.asyncScheduler,f=null!==(n=p[0])&&void 0!==n?n:null,h=p[1]||1/0;return s.operate((function(t,n){var r=[],s=!1,u=function(e){var t=e.window,n=e.subs;t.complete(),n.unsubscribe(),c.arrRemove(r,e),s&&p()},p=function(){if(r){var t=new i.Subscription;n.add(t);var s=new a.Subject,o={window:s,subs:t,seen:0};r.push(o),n.next(s.asObservable()),l.executeSchedule(t,m,(function(){return u(o)}),e)}};null!==f&&f>=0?l.executeSchedule(n,m,p,f,!0):s=!0,p();var d=function(e){return r.slice().forEach(e)},b=function(e){d((function(t){var n=t.window;return e(n)})),e(n),n.unsubscribe()};return t.subscribe(o.createOperatorSubscriber(n,(function(e){d((function(t){t.window.next(e),h<=++t.seen&&u(t)}))}),(function(){return b((function(e){return e.complete()}))}),(function(e){return b((function(t){return t.error(e)}))}))),function(){r=null}}))}},23560:function(e,t,n){"use strict";var a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.windowToggle=void 0;var r=n(22764),i=n(59099),s=n(96144),o=n(8128),c=n(26122),u=n(78121),l=n(83370);t.windowToggle=function(e,t){return s.operate((function(n,s){var p=[],d=function(e){for(;0<p.length;)p.shift().error(e);s.error(e)};o.innerFrom(e).subscribe(c.createOperatorSubscriber(s,(function(e){var n=new r.Subject;p.push(n);var a,m=new i.Subscription;try{a=o.innerFrom(t(e))}catch(e){return void d(e)}s.next(n.asObservable()),m.add(a.subscribe(c.createOperatorSubscriber(s,(function(){l.arrRemove(p,n),n.complete(),m.unsubscribe()}),u.noop,d)))}),u.noop)),n.subscribe(c.createOperatorSubscriber(s,(function(e){var t,n,r=p.slice();try{for(var i=a(r),s=i.next();!s.done;s=i.next()){s.value.next(e)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}),(function(){for(;0<p.length;)p.shift().complete();s.complete()}),d,(function(){for(;0<p.length;)p.shift().unsubscribe()})))}))}},72368:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.windowWhen=void 0;var a=n(22764),r=n(96144),i=n(26122),s=n(8128);t.windowWhen=function(e){return r.operate((function(t,n){var r,o,c=function(e){r.error(e),n.error(e)},u=function(){var t;null==o||o.unsubscribe(),null==r||r.complete(),r=new a.Subject,n.next(r.asObservable());try{t=s.innerFrom(e())}catch(e){return void c(e)}t.subscribe(o=i.createOperatorSubscriber(n,u,u,c))};u(),t.subscribe(i.createOperatorSubscriber(n,(function(e){return r.next(e)}),(function(){r.complete(),n.complete()}),c,(function(){null==o||o.unsubscribe(),r=null})))}))}},50483:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.withLatestFrom=void 0;var i=n(96144),s=n(26122),o=n(8128),c=n(70423),u=n(78121),l=n(31688);t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=l.popResultSelector(e);return i.operate((function(t,i){for(var l=e.length,p=new Array(l),d=e.map((function(){return!1})),m=!1,f=function(t){o.innerFrom(e[t]).subscribe(s.createOperatorSubscriber(i,(function(e){p[t]=e,m||d[t]||(d[t]=!0,(m=d.every(c.identity))&&(d=null))}),u.noop))},h=0;h<l;h++)f(h);t.subscribe(s.createOperatorSubscriber(i,(function(e){if(m){var t=r([e],a(p));i.next(n?n.apply(void 0,r([],a(t))):t)}})))}))}},62753:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zip=void 0;var i=n(78539),s=n(96144);t.zip=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s.operate((function(t,n){i.zip.apply(void 0,r([t],a(e))).subscribe(n)}))}},86990:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zipAll=void 0;var a=n(78539),r=n(75235);t.zipAll=function(e){return r.joinAllInternals(a.zip,e)}},90293:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.zipWith=void 0;var i=n(62753);t.zipWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.zip.apply(void 0,r([],a(e)))}},2450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleArray=void 0;var a=n(39311);t.scheduleArray=function(e,t){return new a.Observable((function(n){var a=0;return t.schedule((function(){a===e.length?n.complete():(n.next(e[a++]),n.closed||this.schedule())}))}))}},49301:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleAsyncIterable=void 0;var a=n(39311),r=n(31471);t.scheduleAsyncIterable=function(e,t){if(!e)throw new Error("Iterable cannot be null");return new a.Observable((function(n){r.executeSchedule(n,t,(function(){var a=e[Symbol.asyncIterator]();r.executeSchedule(n,t,(function(){a.next().then((function(e){e.done?n.complete():n.next(e.value)}))}),0,!0)}))}))}},33225:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleIterable=void 0;var a=n(39311),r=n(88999),i=n(13813),s=n(31471);t.scheduleIterable=function(e,t){return new a.Observable((function(n){var a;return s.executeSchedule(n,t,(function(){a=e[r.iterator](),s.executeSchedule(n,t,(function(){var e,t,r;try{t=(e=a.next()).value,r=e.done}catch(e){return void n.error(e)}r?n.complete():n.next(t)}),0,!0)})),function(){return i.isFunction(null==a?void 0:a.return)&&a.return()}}))}},25934:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleObservable=void 0;var a=n(8128),r=n(84475),i=n(78403);t.scheduleObservable=function(e,t){return a.innerFrom(e).pipe(i.subscribeOn(t),r.observeOn(t))}},41910:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schedulePromise=void 0;var a=n(8128),r=n(84475),i=n(78403);t.schedulePromise=function(e,t){return a.innerFrom(e).pipe(i.subscribeOn(t),r.observeOn(t))}},7224:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduleReadableStreamLike=void 0;var a=n(49301),r=n(80106);t.scheduleReadableStreamLike=function(e,t){return a.scheduleAsyncIterable(r.readableStreamLikeToAsyncGenerator(e),t)}},17047:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scheduled=void 0;var a=n(25934),r=n(41910),i=n(2450),s=n(33225),o=n(49301),c=n(73793),u=n(98700),l=n(81123),p=n(3975),d=n(8995),m=n(49797),f=n(80106),h=n(7224);t.scheduled=function(e,t){if(null!=e){if(c.isInteropObservable(e))return a.scheduleObservable(e,t);if(l.isArrayLike(e))return i.scheduleArray(e,t);if(u.isPromise(e))return r.schedulePromise(e,t);if(d.isAsyncIterable(e))return o.scheduleAsyncIterable(e,t);if(p.isIterable(e))return s.scheduleIterable(e,t);if(f.isReadableStreamLike(e))return h.scheduleReadableStreamLike(e,t)}throw m.createInvalidObservableTypeError(e)}},92094:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Action=void 0;var i=function(e){function t(t,n){return e.call(this)||this}return r(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(59099).Subscription);t.Action=i},36192:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAction=void 0;var i=n(92094),s=n(17240),o=n(83370),c=function(e){function t(t,n){var a=e.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.pending=!1,a}return r(t,e),t.prototype.schedule=function(e,t){var n;if(void 0===t&&(t=0),this.closed)return this;this.state=e;var a=this.id,r=this.scheduler;return null!=a&&(this.id=this.recycleAsyncId(r,a,t)),this.pending=!0,this.delay=t,this.id=null!==(n=this.id)&&void 0!==n?n:this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),s.intervalProvider.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return t;null!=t&&s.intervalProvider.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n,a=!1;try{this.work(e)}catch(e){a=!0,n=e||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,n=this.scheduler,a=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,o.arrRemove(a,this),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(i.Action);t.AsyncAction=c},47777:function(e,t,n){"use strict";var a,r=this&&this.__extends||(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncScheduler=void 0;var i=n(53357),s=function(e){function t(t,n){void 0===n&&(n=i.Scheduler.now);var a=e.call(this,t,n)||this;return a.actions=[],a._active=!1,a}return r(t,e),t.prototype.flush=function(e){var t=this.actions;if(this._active)t.push(e);else{var n;this._active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this._active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i.Scheduler);t.AsyncScheduler=s},14426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.async=t.asyncScheduler=void 0;var a=n(36192),r=n(47777);t.asyncScheduler=new r.AsyncScheduler(a.AsyncAction),t.async=t.asyncScheduler},95783:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dateTimestampProvider=void 0,t.dateTimestampProvider={now:function(){return(t.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},17240:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},a=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.intervalProvider=void 0,t.intervalProvider={setInterval:function(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var o=t.intervalProvider.delegate;return(null==o?void 0:o.setInterval)?o.setInterval.apply(o,a([e,r],n(i))):setInterval.apply(void 0,a([e,r],n(i)))},clearInterval:function(e){var n=t.intervalProvider.delegate;return((null==n?void 0:n.clearInterval)||clearInterval)(e)},delegate:void 0}},82596:function(e,t){"use strict";var n=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},a=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.timeoutProvider=void 0,t.timeoutProvider={setTimeout:function(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var o=t.timeoutProvider.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,a([e,r],n(i))):setTimeout.apply(void 0,a([e,r],n(i)))},clearTimeout:function(e){var n=t.timeoutProvider.delegate;return((null==n?void 0:n.clearTimeout)||clearTimeout)(e)},delegate:void 0}},88999:(e,t)=>{"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(t,"__esModule",{value:!0}),t.iterator=t.getSymbolIterator=void 0,t.getSymbolIterator=n,t.iterator=n()},70776:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.observable=void 0,t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},89732:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentOutOfRangeError=void 0;var a=n(54367);t.ArgumentOutOfRangeError=a.createErrorClass((function(e){return function(){e(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}))},76276:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyError=void 0;var a=n(54367);t.EmptyError=a.createErrorClass((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}))},48230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotFoundError=void 0;var a=n(54367);t.NotFoundError=a.createErrorClass((function(e){return function(t){e(this),this.name="NotFoundError",this.message=t}}))},68955:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectUnsubscribedError=void 0;var a=n(54367);t.ObjectUnsubscribedError=a.createErrorClass((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}))},51168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SequenceError=void 0;var a=n(54367);t.SequenceError=a.createErrorClass((function(e){return function(t){e(this),this.name="SequenceError",this.message=t}}))},69905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnsubscriptionError=void 0;var a=n(54367);t.UnsubscriptionError=a.createErrorClass((function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}))},31688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.popNumber=t.popScheduler=t.popResultSelector=void 0;var a=n(13813),r=n(9520);function i(e){return e[e.length-1]}t.popResultSelector=function(e){return a.isFunction(i(e))?e.pop():void 0},t.popScheduler=function(e){return r.isScheduler(i(e))?e.pop():void 0},t.popNumber=function(e,t){return"number"==typeof i(e)?e.pop():t}},27267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsArgArrayOrObject=void 0;var n=Array.isArray,a=Object.getPrototypeOf,r=Object.prototype,i=Object.keys;t.argsArgArrayOrObject=function(e){if(1===e.length){var t=e[0];if(n(t))return{args:t,keys:null};if((o=t)&&"object"==typeof o&&a(o)===r){var s=i(t);return{args:s.map((function(e){return t[e]})),keys:s}}}var o;return{args:e,keys:null}}},27976:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.argsOrArgArray=void 0;var n=Array.isArray;t.argsOrArgArray=function(e){return 1===e.length&&n(e[0])?e[0]:e}},83370:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrRemove=void 0,t.arrRemove=function(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}},54367:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createErrorClass=void 0,t.createErrorClass=function(e){var t=e((function(e){Error.call(e),e.stack=(new Error).stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},30206:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createObject=void 0,t.createObject=function(e,t){return e.reduce((function(e,n,a){return e[n]=t[a],e}),{})}},23236:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.captureError=t.errorContext=void 0;var a=n(80020),r=null;t.errorContext=function(e){if(a.config.useDeprecatedSynchronousErrorHandling){var t=!r;if(t&&(r={errorThrown:!1,error:null}),e(),t){var n=r,i=n.errorThrown,s=n.error;if(r=null,i)throw s}}else e()},t.captureError=function(e){a.config.useDeprecatedSynchronousErrorHandling&&r&&(r.errorThrown=!0,r.error=e)}},31471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeSchedule=void 0,t.executeSchedule=function(e,t,n,a,r){void 0===a&&(a=0),void 0===r&&(r=!1);var i=t.schedule((function(){n(),r?e.add(this.schedule(null,a)):this.unsubscribe()}),a);if(e.add(i),!r)return i}},70423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.identity=void 0,t.identity=function(e){return e}},81123:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isArrayLike=void 0,t.isArrayLike=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},8995:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isAsyncIterable=void 0;var a=n(13813);t.isAsyncIterable=function(e){return Symbol.asyncIterator&&a.isFunction(null==e?void 0:e[Symbol.asyncIterator])}},81509:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isValidDate=void 0,t.isValidDate=function(e){return e instanceof Date&&!isNaN(e)}},13813:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFunction=void 0,t.isFunction=function(e){return"function"==typeof e}},73793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInteropObservable=void 0;var a=n(70776),r=n(13813);t.isInteropObservable=function(e){return r.isFunction(e[a.observable])}},3975:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIterable=void 0;var a=n(88999),r=n(13813);t.isIterable=function(e){return r.isFunction(null==e?void 0:e[a.iterator])}},98700:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=void 0;var a=n(13813);t.isPromise=function(e){return a.isFunction(null==e?void 0:e.then)}},80106:function(e,t,n){"use strict";var a=this&&this.__generator||function(e,t){var n,a,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,a=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){s.label=i[1];break}if(6===i[0]&&s.label<r[1]){s.label=r[1],r=i;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(i);break}r[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],a=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}},r=this&&this.__await||function(e){return this instanceof r?(this.v=e,this):new r(e)},i=this&&this.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,i=n.apply(e,t||[]),s=[];return a={},o("next"),o("throw"),o("return"),a[Symbol.asyncIterator]=function(){return this},a;function o(e){i[e]&&(a[e]=function(t){return new Promise((function(n,a){s.push([e,t,n,a])>1||c(e,t)}))})}function c(e,t){try{(n=i[e](t)).value instanceof r?Promise.resolve(n.value.v).then(u,l):p(s[0][2],n)}catch(e){p(s[0][3],e)}var n}function u(e){c("next",e)}function l(e){c("throw",e)}function p(e,t){e(t),s.shift(),s.length&&c(s[0][0],s[0][1])}};Object.defineProperty(t,"__esModule",{value:!0}),t.isReadableStreamLike=t.readableStreamLikeToAsyncGenerator=void 0;var s=n(13813);t.readableStreamLikeToAsyncGenerator=function(e){return i(this,arguments,(function(){var t,n,i;return a(this,(function(a){switch(a.label){case 0:t=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,r(t.read())];case 3:return n=a.sent(),i=n.value,n.done?[4,r(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,r(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},t.isReadableStreamLike=function(e){return s.isFunction(null==e?void 0:e.getReader)}},9520:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isScheduler=void 0;var a=n(13813);t.isScheduler=function(e){return e&&a.isFunction(e.schedule)}},96144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.operate=t.hasLift=void 0;var a=n(13813);function r(e){return a.isFunction(null==e?void 0:e.lift)}t.hasLift=r,t.operate=function(e){return function(t){if(r(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}},8824:function(e,t,n){"use strict";var a=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s},r=this&&this.__spreadArray||function(e,t){for(var n=0,a=t.length,r=e.length;n<a;n++,r++)e[r]=t[n];return e};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOneOrManyArgs=void 0;var i=n(77108),s=Array.isArray;t.mapOneOrManyArgs=function(e){return i.map((function(t){return function(e,t){return s(t)?e.apply(void 0,r([],a(t))):e(t)}(e,t)}))}},78121:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.noop=void 0,t.noop=function(){}},97684:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.not=void 0,t.not=function(e,t){return function(n,a){return!e.call(t,n,a)}}},18257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pipeFromArray=t.pipe=void 0;var a=n(70423);function r(e){return 0===e.length?a.identity:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)},t.pipeFromArray=r},91072:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportUnhandledError=void 0;var a=n(80020),r=n(82596);t.reportUnhandledError=function(e){r.timeoutProvider.setTimeout((function(){var t=a.config.onUnhandledError;if(!t)throw e;t(e)}))}},49797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createInvalidObservableTypeError=void 0,t.createInvalidObservableTypeError=function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},1390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeAll=t.merge=t.max=t.materialize=t.mapTo=t.map=t.last=t.isEmpty=t.ignoreElements=t.groupBy=t.first=t.findIndex=t.find=t.finalize=t.filter=t.expand=t.exhaustMap=t.exhaustAll=t.exhaust=t.every=t.endWith=t.elementAt=t.distinctUntilKeyChanged=t.distinctUntilChanged=t.distinct=t.dematerialize=t.delayWhen=t.delay=t.defaultIfEmpty=t.debounceTime=t.debounce=t.count=t.connect=t.concatWith=t.concatMapTo=t.concatMap=t.concatAll=t.concat=t.combineLatestWith=t.combineLatest=t.combineLatestAll=t.combineAll=t.catchError=t.bufferWhen=t.bufferToggle=t.bufferTime=t.bufferCount=t.buffer=t.auditTime=t.audit=void 0,t.timeInterval=t.throwIfEmpty=t.throttleTime=t.throttle=t.tap=t.takeWhile=t.takeUntil=t.takeLast=t.take=t.switchScan=t.switchMapTo=t.switchMap=t.switchAll=t.subscribeOn=t.startWith=t.skipWhile=t.skipUntil=t.skipLast=t.skip=t.single=t.shareReplay=t.share=t.sequenceEqual=t.scan=t.sampleTime=t.sample=t.refCount=t.retryWhen=t.retry=t.repeatWhen=t.repeat=t.reduce=t.raceWith=t.race=t.publishReplay=t.publishLast=t.publishBehavior=t.publish=t.pluck=t.partition=t.pairwise=t.onErrorResumeNext=t.observeOn=t.multicast=t.min=t.mergeWith=t.mergeScan=t.mergeMapTo=t.mergeMap=t.flatMap=void 0,t.zipWith=t.zipAll=t.zip=t.withLatestFrom=t.windowWhen=t.windowToggle=t.windowTime=t.windowCount=t.window=t.toArray=t.timestamp=t.timeoutWith=t.timeout=void 0;var a=n(32134);Object.defineProperty(t,"audit",{enumerable:!0,get:function(){return a.audit}});var r=n(27276);Object.defineProperty(t,"auditTime",{enumerable:!0,get:function(){return r.auditTime}});var i=n(32158);Object.defineProperty(t,"buffer",{enumerable:!0,get:function(){return i.buffer}});var s=n(48411);Object.defineProperty(t,"bufferCount",{enumerable:!0,get:function(){return s.bufferCount}});var o=n(49451);Object.defineProperty(t,"bufferTime",{enumerable:!0,get:function(){return o.bufferTime}});var c=n(25214);Object.defineProperty(t,"bufferToggle",{enumerable:!0,get:function(){return c.bufferToggle}});var u=n(74722);Object.defineProperty(t,"bufferWhen",{enumerable:!0,get:function(){return u.bufferWhen}});var l=n(44755);Object.defineProperty(t,"catchError",{enumerable:!0,get:function(){return l.catchError}});var p=n(11928);Object.defineProperty(t,"combineAll",{enumerable:!0,get:function(){return p.combineAll}});var d=n(89337);Object.defineProperty(t,"combineLatestAll",{enumerable:!0,get:function(){return d.combineLatestAll}});var m=n(91336);Object.defineProperty(t,"combineLatest",{enumerable:!0,get:function(){return m.combineLatest}});var f=n(44720);Object.defineProperty(t,"combineLatestWith",{enumerable:!0,get:function(){return f.combineLatestWith}});var h=n(13244);Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return h.concat}});var b=n(47445);Object.defineProperty(t,"concatAll",{enumerable:!0,get:function(){return b.concatAll}});var g=n(41292);Object.defineProperty(t,"concatMap",{enumerable:!0,get:function(){return g.concatMap}});var y=n(41565);Object.defineProperty(t,"concatMapTo",{enumerable:!0,get:function(){return y.concatMapTo}});var v=n(24804);Object.defineProperty(t,"concatWith",{enumerable:!0,get:function(){return v.concatWith}});var _=n(30624);Object.defineProperty(t,"connect",{enumerable:!0,get:function(){return _.connect}});var E=n(32785);Object.defineProperty(t,"count",{enumerable:!0,get:function(){return E.count}});var x=n(2483);Object.defineProperty(t,"debounce",{enumerable:!0,get:function(){return x.debounce}});var T=n(42134);Object.defineProperty(t,"debounceTime",{enumerable:!0,get:function(){return T.debounceTime}});var O=n(18907);Object.defineProperty(t,"defaultIfEmpty",{enumerable:!0,get:function(){return O.defaultIfEmpty}});var D=n(89025);Object.defineProperty(t,"delay",{enumerable:!0,get:function(){return D.delay}});var w=n(30281);Object.defineProperty(t,"delayWhen",{enumerable:!0,get:function(){return w.delayWhen}});var S=n(14150);Object.defineProperty(t,"dematerialize",{enumerable:!0,get:function(){return S.dematerialize}});var A=n(28064);Object.defineProperty(t,"distinct",{enumerable:!0,get:function(){return A.distinct}});var C=n(92776);Object.defineProperty(t,"distinctUntilChanged",{enumerable:!0,get:function(){return C.distinctUntilChanged}});var R=n(35135);Object.defineProperty(t,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return R.distinctUntilKeyChanged}});var N=n(59635);Object.defineProperty(t,"elementAt",{enumerable:!0,get:function(){return N.elementAt}});var I=n(9859);Object.defineProperty(t,"endWith",{enumerable:!0,get:function(){return I.endWith}});var M=n(95165);Object.defineProperty(t,"every",{enumerable:!0,get:function(){return M.every}});var L=n(30900);Object.defineProperty(t,"exhaust",{enumerable:!0,get:function(){return L.exhaust}});var j=n(73245);Object.defineProperty(t,"exhaustAll",{enumerable:!0,get:function(){return j.exhaustAll}});var P=n(70948);Object.defineProperty(t,"exhaustMap",{enumerable:!0,get:function(){return P.exhaustMap}});var k=n(652);Object.defineProperty(t,"expand",{enumerable:!0,get:function(){return k.expand}});var F=n(49978);Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return F.filter}});var $=n(28342);Object.defineProperty(t,"finalize",{enumerable:!0,get:function(){return $.finalize}});var q=n(12475);Object.defineProperty(t,"find",{enumerable:!0,get:function(){return q.find}});var U=n(95023);Object.defineProperty(t,"findIndex",{enumerable:!0,get:function(){return U.findIndex}});var B=n(2816);Object.defineProperty(t,"first",{enumerable:!0,get:function(){return B.first}});var H=n(58628);Object.defineProperty(t,"groupBy",{enumerable:!0,get:function(){return H.groupBy}});var G=n(96835);Object.defineProperty(t,"ignoreElements",{enumerable:!0,get:function(){return G.ignoreElements}});var W=n(30711);Object.defineProperty(t,"isEmpty",{enumerable:!0,get:function(){return W.isEmpty}});var z=n(67972);Object.defineProperty(t,"last",{enumerable:!0,get:function(){return z.last}});var Y=n(77108);Object.defineProperty(t,"map",{enumerable:!0,get:function(){return Y.map}});var V=n(29685);Object.defineProperty(t,"mapTo",{enumerable:!0,get:function(){return V.mapTo}});var K=n(37399);Object.defineProperty(t,"materialize",{enumerable:!0,get:function(){return K.materialize}});var J=n(76780);Object.defineProperty(t,"max",{enumerable:!0,get:function(){return J.max}});var Q=n(55958);Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return Q.merge}});var X=n(28931);Object.defineProperty(t,"mergeAll",{enumerable:!0,get:function(){return X.mergeAll}});var Z=n(56249);Object.defineProperty(t,"flatMap",{enumerable:!0,get:function(){return Z.flatMap}});var ee=n(17562);Object.defineProperty(t,"mergeMap",{enumerable:!0,get:function(){return ee.mergeMap}});var te=n(36399);Object.defineProperty(t,"mergeMapTo",{enumerable:!0,get:function(){return te.mergeMapTo}});var ne=n(89071);Object.defineProperty(t,"mergeScan",{enumerable:!0,get:function(){return ne.mergeScan}});var ae=n(71794);Object.defineProperty(t,"mergeWith",{enumerable:!0,get:function(){return ae.mergeWith}});var re=n(3906);Object.defineProperty(t,"min",{enumerable:!0,get:function(){return re.min}});var ie=n(30044);Object.defineProperty(t,"multicast",{enumerable:!0,get:function(){return ie.multicast}});var se=n(84475);Object.defineProperty(t,"observeOn",{enumerable:!0,get:function(){return se.observeOn}});var oe=n(21701);Object.defineProperty(t,"onErrorResumeNext",{enumerable:!0,get:function(){return oe.onErrorResumeNext}});var ce=n(49156);Object.defineProperty(t,"pairwise",{enumerable:!0,get:function(){return ce.pairwise}});var ue=n(22544);Object.defineProperty(t,"partition",{enumerable:!0,get:function(){return ue.partition}});var le=n(51671);Object.defineProperty(t,"pluck",{enumerable:!0,get:function(){return le.pluck}});var pe=n(34513);Object.defineProperty(t,"publish",{enumerable:!0,get:function(){return pe.publish}});var de=n(18247);Object.defineProperty(t,"publishBehavior",{enumerable:!0,get:function(){return de.publishBehavior}});var me=n(10413);Object.defineProperty(t,"publishLast",{enumerable:!0,get:function(){return me.publishLast}});var fe=n(71274);Object.defineProperty(t,"publishReplay",{enumerable:!0,get:function(){return fe.publishReplay}});var he=n(66085);Object.defineProperty(t,"race",{enumerable:!0,get:function(){return he.race}});var be=n(38585);Object.defineProperty(t,"raceWith",{enumerable:!0,get:function(){return be.raceWith}});var ge=n(45970);Object.defineProperty(t,"reduce",{enumerable:!0,get:function(){return ge.reduce}});var ye=n(60423);Object.defineProperty(t,"repeat",{enumerable:!0,get:function(){return ye.repeat}});var ve=n(36999);Object.defineProperty(t,"repeatWhen",{enumerable:!0,get:function(){return ve.repeatWhen}});var _e=n(12284);Object.defineProperty(t,"retry",{enumerable:!0,get:function(){return _e.retry}});var Ee=n(19856);Object.defineProperty(t,"retryWhen",{enumerable:!0,get:function(){return Ee.retryWhen}});var xe=n(73220);Object.defineProperty(t,"refCount",{enumerable:!0,get:function(){return xe.refCount}});var Te=n(26110);Object.defineProperty(t,"sample",{enumerable:!0,get:function(){return Te.sample}});var Oe=n(37547);Object.defineProperty(t,"sampleTime",{enumerable:!0,get:function(){return Oe.sampleTime}});var De=n(32529);Object.defineProperty(t,"scan",{enumerable:!0,get:function(){return De.scan}});var we=n(10045);Object.defineProperty(t,"sequenceEqual",{enumerable:!0,get:function(){return we.sequenceEqual}});var Se=n(59657);Object.defineProperty(t,"share",{enumerable:!0,get:function(){return Se.share}});var Ae=n(59426);Object.defineProperty(t,"shareReplay",{enumerable:!0,get:function(){return Ae.shareReplay}});var Ce=n(68156);Object.defineProperty(t,"single",{enumerable:!0,get:function(){return Ce.single}});var Re=n(94995);Object.defineProperty(t,"skip",{enumerable:!0,get:function(){return Re.skip}});var Ne=n(4083);Object.defineProperty(t,"skipLast",{enumerable:!0,get:function(){return Ne.skipLast}});var Ie=n(41931);Object.defineProperty(t,"skipUntil",{enumerable:!0,get:function(){return Ie.skipUntil}});var Me=n(13658);Object.defineProperty(t,"skipWhile",{enumerable:!0,get:function(){return Me.skipWhile}});var Le=n(17938);Object.defineProperty(t,"startWith",{enumerable:!0,get:function(){return Le.startWith}});var je=n(78403);Object.defineProperty(t,"subscribeOn",{enumerable:!0,get:function(){return je.subscribeOn}});var Pe=n(1437);Object.defineProperty(t,"switchAll",{enumerable:!0,get:function(){return Pe.switchAll}});var ke=n(48100);Object.defineProperty(t,"switchMap",{enumerable:!0,get:function(){return ke.switchMap}});var Fe=n(71269);Object.defineProperty(t,"switchMapTo",{enumerable:!0,get:function(){return Fe.switchMapTo}});var $e=n(93377);Object.defineProperty(t,"switchScan",{enumerable:!0,get:function(){return $e.switchScan}});var qe=n(79019);Object.defineProperty(t,"take",{enumerable:!0,get:function(){return qe.take}});var Ue=n(49275);Object.defineProperty(t,"takeLast",{enumerable:!0,get:function(){return Ue.takeLast}});var Be=n(29987);Object.defineProperty(t,"takeUntil",{enumerable:!0,get:function(){return Be.takeUntil}});var He=n(76882);Object.defineProperty(t,"takeWhile",{enumerable:!0,get:function(){return He.takeWhile}});var Ge=n(33399);Object.defineProperty(t,"tap",{enumerable:!0,get:function(){return Ge.tap}});var We=n(63932);Object.defineProperty(t,"throttle",{enumerable:!0,get:function(){return We.throttle}});var ze=n(81793);Object.defineProperty(t,"throttleTime",{enumerable:!0,get:function(){return ze.throttleTime}});var Ye=n(91036);Object.defineProperty(t,"throwIfEmpty",{enumerable:!0,get:function(){return Ye.throwIfEmpty}});var Ve=n(1368);Object.defineProperty(t,"timeInterval",{enumerable:!0,get:function(){return Ve.timeInterval}});var Ke=n(64229);Object.defineProperty(t,"timeout",{enumerable:!0,get:function(){return Ke.timeout}});var Je=n(20441);Object.defineProperty(t,"timeoutWith",{enumerable:!0,get:function(){return Je.timeoutWith}});var Qe=n(29414);Object.defineProperty(t,"timestamp",{enumerable:!0,get:function(){return Qe.timestamp}});var Xe=n(23680);Object.defineProperty(t,"toArray",{enumerable:!0,get:function(){return Xe.toArray}});var Ze=n(52860);Object.defineProperty(t,"window",{enumerable:!0,get:function(){return Ze.window}});var et=n(91641);Object.defineProperty(t,"windowCount",{enumerable:!0,get:function(){return et.windowCount}});var tt=n(4129);Object.defineProperty(t,"windowTime",{enumerable:!0,get:function(){return tt.windowTime}});var nt=n(23560);Object.defineProperty(t,"windowToggle",{enumerable:!0,get:function(){return nt.windowToggle}});var at=n(72368);Object.defineProperty(t,"windowWhen",{enumerable:!0,get:function(){return at.windowWhen}});var rt=n(50483);Object.defineProperty(t,"withLatestFrom",{enumerable:!0,get:function(){return rt.withLatestFrom}});var it=n(62753);Object.defineProperty(t,"zip",{enumerable:!0,get:function(){return it.zip}});var st=n(86990);Object.defineProperty(t,"zipAll",{enumerable:!0,get:function(){return st.zipAll}});var ot=n(90293);Object.defineProperty(t,"zipWith",{enumerable:!0,get:function(){return ot.zipWith}})},53273:(e,t,n)=>{"use strict";const a=n(36663),r=n(29807),i=n(86102),s=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=a(e)).length)return 0;e=e.replace(i()," ");let t=0;for(let n=0;n<e.length;n++){const a=e.codePointAt(n);a<=31||a>=127&&a<=159||(a>=768&&a<=879||(a>65535&&n++,t+=r(a)?2:1))}return t};e.exports=s,e.exports.default=s},36663:(e,t,n)=>{"use strict";const a=n(56954);e.exports=e=>"string"==typeof e?e.replace(a(),""):e},11754:(e,t,n)=>{"use strict";const a=n(70857),r=n(54891),i=process.env;let s;function o(e){const t=function(e){if(!1===s)return 0;if(r("color=16m")||r("color=full")||r("color=truecolor"))return 3;if(r("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;const t=s?1:0;if("win32"===process.platform){const e=a.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in i))||"codeship"===i.CI_NAME?1:t;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if("truecolor"===i.COLORTERM)return 3;if("TERM_PROGRAM"in i){const e=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}r("no-color")||r("no-colors")||r("color=false")?s=!1:(r("color")||r("colors")||r("color=true")||r("color=always"))&&(s=!0),"FORCE_COLOR"in i&&(s=0===i.FORCE_COLOR.length||0!==parseInt(i.FORCE_COLOR,10)),e.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}},36866:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getNocoConfig=t.NcConfig=void 0;const c=i(n(16928)),u=o(n(79896)),l=n(39023),{DriverClient:p,getToolDir:d,metaUrlToDbConfig:m,prepareEnv:f}=n(34688);class h{constructor(){this.meta={db:{client:p.SQLITE,connection:{filename:"noco.db"}}},this.toolDir=d()}static create(e){var t,n,a;return s(this,void 0,void 0,(function*(){const{meta:r}=e,i=new h;if((null===(a=null===(n=null===(t=i.meta)||void 0===t?void 0:t.db)||void 0===n?void 0:n.connection)||void 0===a?void 0:a.filename)&&(i.meta.db.connection.filename=c.join(i.toolDir,i.meta.db.connection.filename)),null==r?void 0:r.metaUrl)i.meta.db=yield m(r.metaUrl);else if(null==r?void 0:r.metaJson)i.meta.db=JSON.parse(r.metaJson);else if(null==r?void 0:r.metaJsonFile){if(!(yield(0,l.promisify)(u.default.exists)(r.metaJsonFile)))throw new Error(`NC_DB_JSON_FILE not found: ${r.metaJsonFile}`);const e=yield(0,l.promisify)(u.default.readFile)(r.metaJsonFile,{encoding:"utf8"});i.meta.db=JSON.parse(e)}return i}))}static createByEnv(){return s(this,void 0,void 0,(function*(){return h.create({meta:{metaUrl:process.env.NC_DB,metaJson:process.env.NC_DB_JSON,metaJsonFile:process.env.NC_DB_JSON_FILE},secret:process.env.NC_AUTH_JWT_SECRET})}))}}t.NcConfig=h;t.getNocoConfig=(e={})=>s(void 0,void 0,void 0,(function*(){return yield f({databaseUrl:e.databaseUrl||process.env.NC_DATABASE_URL||process.env.DATABASE_URL,databaseUrlFile:e.databaseUrlFile||process.env.NC_DATABASE_URL_FILE||process.env.DATABASE_URL_FILE}),h.create({meta:{metaUrl:process.env.NC_DB||e.ncDb,metaJson:process.env.NC_DB_JSON||e.ncDbJson,metaJsonFile:process.env.NC_DB_JSON_FILE||e.ncDbJsonFile}})}))},22084:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NcError=void 0;class n extends Error{}t.NcError=n},39580:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.SecretManager=void 0;const o=n(79896),c=n(22084),u=i(n(99579)),{SqlClientFactory:l,MetaTable:p,decryptPropIfRequired:d,encryptPropIfRequired:m}=n(34688);t.SecretManager=class{constructor(e,t,n){this.prevSecret=e,this.newSecret=t,this.config=n,this.sqlClient=l.create(this.config.meta.db)}validateConfig(){return s(this,void 0,void 0,(function*(){if("sqlite3"===this.config.meta.db.client&&!(0,o.existsSync)(this.config.meta.db.connection.filename))throw new c.NcError("SQLite database file not found at path: "+this.config.meta.db.connection.filename);if(!(yield this.sqlClient.testConnection()))throw new c.NcError("Invalid database configuration. Please verify your database settings and ensure the database is reachable.")}))}validateAndExtract(){return s(this,void 0,void 0,(function*(){if(!(yield this.sqlClient.knex.schema.hasTable(p.SOURCES)))throw new c.NcError("Sources table not found");if(!(yield this.sqlClient.knex.schema.hasTable(p.INTEGRATIONS)))throw new c.NcError("Integrations table not found");if(!(yield this.sqlClient.knex.schema.hasColumn(p.SOURCES,"is_encrypted"))||!(yield this.sqlClient.knex.schema.hasColumn(p.INTEGRATIONS,"is_encrypted")))throw new c.NcError("Looks like you are using an older version of NocoDB. Please upgrade to the latest version and try again.");const e=yield this.sqlClient.knex(p.SOURCES).where((e=>{e.where("is_meta",!1).orWhere("is_meta",null)})),t=yield this.sqlClient.knex(p.INTEGRATIONS),n=[],a=[];let r=!1;for(const t of e)try{const e=d({data:t,secret:this.prevSecret,prop:"config"});r=!0,n.push(Object.assign(Object.assign({},t),{config:e}))}catch(e){u.error("Failed to decrypt source configuration : "+e.message)}for(const e of t)try{const t=d({data:e,secret:this.prevSecret,prop:"config"});r=!0,a.push(Object.assign(Object.assign({},e),{config:t}))}catch(e){console.log(e)}if(!r)throw new c.NcError("Invalid old secret or no sources/integrations found");return{sourcesToUpdate:n,integrationsToUpdate:a}}))}updateSecret(e,t){return s(this,void 0,void 0,(function*(){const n=yield this.sqlClient.transaction();try{for(const t of e)yield n(p.SOURCES).update({config:m({data:t,secret:this.newSecret,prop:"config"})}).where("id",t.id);for(const e of t)yield n(p.INTEGRATIONS).update({config:m({data:e,secret:this.newSecret,prop:"config"})}).where("id",e.id);yield n.commit()}catch(e){throw u.error("Failed to decrypt integration configuration: "+e.message),yield n.rollback(),e}}))}}},97819:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)},s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.logger=void 0,i(n(36866),t),i(n(22084),t),t.logger=s(n(99579)),i(n(39580),t)},99579:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.debug=t.success=t.info=t.warn=t.error=t.log=void 0;const a=n(96895);t.log=function(e){console.log(a.white(e))},t.error=function(e){console.error(a.red("Error: "+e))},t.warn=function(e){console.warn(a.yellow("Warning: "+e))},t.info=function(e){console.info(a.green("Info: "+e))},t.success=function(e){console.log(a.green("Success: "+e))},t.debug=function(e){console.debug(a.blue("Debug: "+e))}},89583:function(e,t,n){"use strict";var a=this&&this.__awaiter||function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(77679)),s=n(6858),o=n(97819),c=n(97819),u=n(97819),l=n(97819);console.log(i.default.textSync("NocoDB Secret CLI"));const p=new s.Command;p.version("1.0.0").description("NocoDB Secret CLI").arguments("<prevSecret> <newSecret>").option("--nc-db <char>","NocoDB connection database url, equivalent to NC_DB env variable").option("--nc-db-json <char>","NocoDB connection database json, equivalent to NC_DB_JSON env variable").option("--nc-db-json-file <char>","NocoDB connection database json file path, equivalent to NC_DB_JSON_FILE env variable").option("--database-url <char>","JDBC database url, equivalent to DATABASE_URL env variable").option("--database-url-file <char>","JDBC database url file path, equivalent to DATABASE_URL_FILE env variable").option("-p, --prev <char>","old secret string to decrypt sources and integrations").option("-n, --new <char>","new secret string to encrypt sources and integrations").action(((e,t)=>a(void 0,void 0,void 0,(function*(){try{const n=p.opts(),a=yield(0,o.getNocoConfig)(n),{prevSecret:r=e,newSecret:i=t}=p.opts();if(r&&i){const e=new c.SecretManager(r,i,a);yield e.validateConfig();const{sourcesToUpdate:t,integrationsToUpdate:n}=yield e.validateAndExtract();yield e.updateSecret(t,n)}else console.error("Error: Both prevSecret and newSecret are required."),p.help()}catch(e){e instanceof u.NcError&&(l.logger.error(e.message),process.exit(1)),console.error(e),process.exit(1)}})))),p.exitOverride((e=>{console.error(e.message),process.exit(1)})),p.parse(process.argv)},17063:(e,t)=>{for(var n,a=256,r=[];a--;)r[a]=(a+256).toString(16).substring(1);t.uid=function(e){var t=0,i=e||11;if(!n||a+i>512)for(n="",a=0;t<256;t++)n+=r[256*Math.random()|0];return n.substring(a,a+++i)}},19964:(e,t)=>{"use strict";t.fromCallback=function(e){return Object.defineProperty((function(...t){if("function"!=typeof t[t.length-1])return new Promise(((n,a)=>{e.call(this,...t,((e,t)=>null!=e?a(e):n(t)))}));e.apply(this,t)}),"name",{value:e.name})},t.fromPromise=function(e){return Object.defineProperty((function(...t){const n=t[t.length-1];if("function"!=typeof n)return e.apply(this,t);e.apply(this,t.slice(0,-1)).then((e=>n(null,e)),n)}),"name",{value:e.name})}},13610:(e,t,n)=>{"use strict";const a=n(53273),r=e=>{let t=0;for(const n of e.split("\n"))t=Math.max(t,a(n));return t};e.exports=r,e.exports.default=r},18785:(e,t,n)=>{"use strict";const a=n(53273),r=n(36663),i=n(12701),s=new Set(["","›"]),o="]8;;",c=e=>`${s.values().next().value}[${e}m`,u=e=>`${s.values().next().value}${o}${e}`,l=(e,t,n)=>{const i=[...t];let c=!1,u=!1,l=a(r(e[e.length-1]));for(const[t,r]of i.entries()){const p=a(r);l+p<=n?e[e.length-1]+=r:(e.push(r),l=0),s.has(r)&&(c=!0,u=i.slice(t+1).join("").startsWith(o)),c?u?""===r&&(c=!1,u=!1):"m"===r&&(c=!1):(l+=p,l===n&&t<i.length-1&&(e.push(""),l=0))}!l&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},p=e=>{const t=e.split(" ");let n=t.length;for(;n>0&&!(a(t[n-1])>0);)n--;return n===t.length?e:t.slice(0,n).join(" ")+t.slice(n).join("")},d=(e,t,n={})=>{if(!1!==n.trim&&""===e.trim())return"";let r,d,m="";const f=(e=>e.split(" ").map((e=>a(e))))(e);let h=[""];for(const[r,i]of e.split(" ").entries()){!1!==n.trim&&(h[h.length-1]=h[h.length-1].trimStart());let e=a(h[h.length-1]);if(0!==r&&(e>=t&&(!1===n.wordWrap||!1===n.trim)&&(h.push(""),e=0),(e>0||!1===n.trim)&&(h[h.length-1]+=" ",e++)),n.hard&&f[r]>t){const n=t-e,a=1+Math.floor((f[r]-n-1)/t);Math.floor((f[r]-1)/t)<a&&h.push(""),l(h,i,t)}else{if(e+f[r]>t&&e>0&&f[r]>0){if(!1===n.wordWrap&&e<t){l(h,i,t);continue}h.push("")}e+f[r]>t&&!1===n.wordWrap?l(h,i,t):h[h.length-1]+=i}}!1!==n.trim&&(h=h.map(p));const b=[...h.join("\n")];for(const[e,t]of b.entries()){if(m+=t,s.has(t)){const{groups:t}=new RegExp(`(?:\\[(?<code>\\d+)m|\\${o}(?<uri>.*))`).exec(b.slice(e).join(""))||{groups:{}};if(void 0!==t.code){const e=Number.parseFloat(t.code);r=39===e?void 0:e}else void 0!==t.uri&&(d=0===t.uri.length?void 0:t.uri)}const n=i.codes.get(Number(r));"\n"===b[e+1]?(d&&(m+=u("")),r&&n&&(m+=c(n))):"\n"===t&&(r&&n&&(m+=c(r)),d&&(m+=u(d)))}return m};e.exports=(e,t,n)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map((e=>d(e,t,n))).join("\n")},34688:function(module,__unused_webpack_exports,__webpack_require__){var t;"undefined"!=typeof self&&self,t=()=>(()=>{var __webpack_modules__={1072:function(e,t,n){e.exports=(n(5317),n(6982),function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};return e[a].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(34)},function(e,t,n){var a=n(29)("wks"),r=n(33),i=n(2).Symbol,s="function"==typeof i;(e.exports=function(e){return a[e]||(a[e]=s&&i[e]||(s?i:r)("Symbol."+e))}).store=a},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var a=n(9);e.exports=function(e){if(!a(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(24)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var a=n(12),r=n(17);e.exports=n(4)?function(e,t,n){return a.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t,n){var a=n(14);e.exports=function(e,t,n){if(a(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,a){return e.call(t,n,a)};case 3:return function(n,a,r){return e.call(t,n,a,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var a=n(3),r=n(26),i=n(32),s=Object.defineProperty;t.f=n(4)?Object.defineProperty:function(e,t,n){if(a(e),t=i(t,!0),a(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var a=n(42),r=n(15);e.exports=function(e){return a(r(e))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var a=n(9),r=n(2).document,i=a(r)&&a(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var a=n(12).f,r=n(8),i=n(1)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&a(e,i,{configurable:!0,value:t})}},function(e,t,n){var a=n(29)("keys"),r=n(33);e.exports=function(e){return a[e]||(a[e]=r(e))}},function(e,t){var n=Math.ceil,a=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?a:n)(e)}},function(e,t,n){var a=n(11),r=n(1)("toStringTag"),i="Arguments"==a(function(){return arguments}());e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:i?a(t):"Object"==(s=a(t))&&"function"==typeof t.callee?"Arguments":s}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var a=n(2),r=n(6),i=n(7),s=n(5),o="prototype",c=function(e,t,n){var u,l,p,d=e&c.F,m=e&c.G,f=e&c.S,h=e&c.P,b=e&c.B,g=e&c.W,y=m?r:r[t]||(r[t]={}),v=y[o],_=m?a:f?a[t]:(a[t]||{})[o];for(u in m&&(n=t),n)(l=!d&&_&&void 0!==_[u])&&u in y||(p=l?_[u]:n[u],y[u]=m&&"function"!=typeof _[u]?n[u]:b&&l?i(p,a):g&&_[u]==p?function(e){var t=function(t,n,a){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,a)}return e.apply(this,arguments)};return t[o]=e[o],t}(p):h&&"function"==typeof p?i(Function.call,p):p,h&&((y.virtual||(y.virtual={}))[u]=p,e&c.R&&v&&!v[u]&&s(v,u,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){e.exports=n(2).document&&document.documentElement},function(e,t,n){e.exports=!n(4)&&!n(24)((function(){return 7!=Object.defineProperty(n(16)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var a=n(28),r=n(23),i=n(57),s=n(5),o=n(8),c=n(10),u=n(45),l=n(18),p=n(52),d=n(1)("iterator"),m=!([].keys&&"next"in[].keys()),f="keys",h="values",b=function(){return this};e.exports=function(e,t,n,g,y,v,_){u(n,t,g);var E,x,T,O=function(e){if(!m&&e in A)return A[e];switch(e){case f:case h:return function(){return new n(this,e)}}return function(){return new n(this,e)}},D=t+" Iterator",w=y==h,S=!1,A=e.prototype,C=A[d]||A["@@iterator"]||y&&A[y],R=C||O(y),N=y?w?O("entries"):R:void 0,I="Array"==t&&A.entries||C;if(I&&(T=p(I.call(new e)))!==Object.prototype&&(l(T,D,!0),a||o(T,d)||s(T,d,b)),w&&C&&C.name!==h&&(S=!0,R=function(){return C.call(this)}),a&&!_||!m&&!S&&A[d]||s(A,d,R),c[t]=R,c[D]=b,y)if(E={values:w?R:O(h),keys:v?R:O(f),entries:N},_)for(x in E)x in A||i(A,x,E[x]);else r(r.P+r.F*(m||S),t,E);return E}},function(e,t){e.exports=!0},function(e,t,n){var a=n(2),r="__core-js_shared__",i=a[r]||(a[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t,n){var a,r,i,s=n(7),o=n(41),c=n(25),u=n(16),l=n(2),p=l.process,d=l.setImmediate,m=l.clearImmediate,f=l.MessageChannel,h=0,b={},g="onreadystatechange",y=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},v=function(e){y.call(e.data)};d&&m||(d=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++h]=function(){o("function"==typeof e?e:Function(e),t)},a(h),h},m=function(e){delete b[e]},"process"==n(11)(p)?a=function(e){p.nextTick(s(y,e,1))}:f?(i=(r=new f).port2,r.port1.onmessage=v,a=s(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(a=function(e){l.postMessage(e+"","*")},l.addEventListener("message",v,!1)):a=g in u("script")?function(e){c.appendChild(u("script"))[g]=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(s(y,e,1),0)}),e.exports={set:d,clear:m}},function(e,t,n){var a=n(20),r=Math.min;e.exports=function(e){return e>0?r(a(e),9007199254740991):0}},function(e,t,n){var a=n(9);e.exports=function(e,t){if(!a(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!a(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!a(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=0,a=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+a).toString(36))}},function(e,t,n){"use strict";function a(e){return(0,o.createHash)("sha256").update(e).digest("hex")}function r(e){switch(c){case"darwin":return e.split("IOPlatformUUID")[1].split("\n")[0].replace(/\=|\s+|\"/gi,"").toLowerCase();case"win32":return e.toString().split("REG_SZ")[1].replace(/\r+|\n+|\s+/gi,"").toLowerCase();case"linux":case"freebsd":return e.toString().replace(/\r+|\n+|\s+/gi,"").toLowerCase();default:throw new Error("Unsupported platform: "+process.platform)}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){return e&&e.__esModule?e:{default:e}}(n(35));t.machineIdSync=function(e){var t=r((0,s.execSync)(u[c]).toString());return e?t:a(t)},t.machineId=function(e){return new i.default((function(t,n){return(0,s.exec)(u[c],{},(function(i,s,o){if(i)return n(new Error("Error while obtaining machine id: "+i.stack));var c=r(s.toString());return t(e?c:a(c))}))}))};var s=n(70),o=n(71),c=process.platform,u={darwin:"ioreg -rd1 -c IOPlatformExpertDevice",win32:{native:"%windir%\\System32",mixed:"%windir%\\sysnative\\cmd.exe /c %windir%\\System32"}["win32"!==process.platform?"":"ia32"===process.arch&&process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?"mixed":"native"]+"\\REG.exe QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",linux:"( cat /var/lib/dbus/machine-id /etc/machine-id 2> /dev/null || hostname ) | head -n 1 || :",freebsd:"kenv -q smbios.system.uuid || sysctl -n kern.hostuuid"}},function(e,t,n){e.exports={default:n(36),__esModule:!0}},function(e,t,n){n(66),n(68),n(69),n(67),e.exports=n(6).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t,n,a){if(!(e instanceof t)||void 0!==a&&a in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var a=n(13),r=n(31),i=n(62);e.exports=function(e){return function(t,n,s){var o,c=a(t),u=r(c.length),l=i(s,u);if(e&&n!=n){for(;u>l;)if((o=c[l++])!=o)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var a=n(7),r=n(44),i=n(43),s=n(3),o=n(31),c=n(64),u={},l={};t=e.exports=function(e,t,n,p,d){var m,f,h,b,g=d?function(){return e}:c(e),y=a(n,p,t?2:1),v=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(i(g)){for(m=o(e.length);m>v;v++)if((b=t?y(s(f=e[v])[0],f[1]):y(e[v]))===u||b===l)return b}else for(h=g.call(e);!(f=h.next()).done;)if((b=r(h,y,f.value,t))===u||b===l)return b},t.BREAK=u,t.RETURN=l},function(e,t){e.exports=function(e,t,n){var a=void 0===n;switch(t.length){case 0:return a?e():e.call(n);case 1:return a?e(t[0]):e.call(n,t[0]);case 2:return a?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return a?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return a?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var a=n(11);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==a(e)?e.split(""):Object(e)}},function(e,t,n){var a=n(10),r=n(1)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||i[r]===e)}},function(e,t,n){var a=n(3);e.exports=function(e,t,n,r){try{return r?t(a(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&a(i.call(e)),t}}},function(e,t,n){"use strict";var a=n(49),r=n(17),i=n(18),s={};n(5)(s,n(1)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=a(s,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var a=n(1)("iterator"),r=!1;try{var i=[7][a]();i.return=function(){r=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],s=i[a]();s.next=function(){return{done:n=!0}},i[a]=function(){return s},e(i)}catch(e){}return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){var a=n(2),r=n(30).set,i=a.MutationObserver||a.WebKitMutationObserver,s=a.process,o=a.Promise,c="process"==n(11)(s);e.exports=function(){var e,t,n,u=function(){var a,r;for(c&&(a=s.domain)&&a.exit();e;){r=e.fn,e=e.next;try{r()}catch(a){throw e?n():t=void 0,a}}t=void 0,a&&a.enter()};if(c)n=function(){s.nextTick(u)};else if(i){var l=!0,p=document.createTextNode("");new i(u).observe(p,{characterData:!0}),n=function(){p.data=l=!l}}else if(o&&o.resolve){var d=o.resolve();n=function(){d.then(u)}}else n=function(){r.call(a,u)};return function(a){var r={fn:a,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t,n){var a=n(3),r=n(50),i=n(22),s=n(19)("IE_PROTO"),o=function(){},c="prototype",u=function(){var e,t=n(16)("iframe"),a=i.length;for(t.style.display="none",n(25).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;a--;)delete u[c][i[a]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(o[c]=a(e),n=new o,o[c]=null,n[s]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var a=n(12),r=n(3),i=n(54);e.exports=n(4)?Object.defineProperties:function(e,t){r(e);for(var n,s=i(t),o=s.length,c=0;o>c;)a.f(e,n=s[c++],t[n]);return e}},function(e,t,n){var a=n(55),r=n(17),i=n(13),s=n(32),o=n(8),c=n(26),u=Object.getOwnPropertyDescriptor;t.f=n(4)?u:function(e,t){if(e=i(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(o(e,t))return r(!a.f.call(e,t),e[t])}},function(e,t,n){var a=n(8),r=n(63),i=n(19)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),a(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var a=n(8),r=n(13),i=n(39)(!1),s=n(19)("IE_PROTO");e.exports=function(e,t){var n,o=r(e),c=0,u=[];for(n in o)n!=s&&a(o,n)&&u.push(n);for(;t.length>c;)a(o,n=t[c++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var a=n(53),r=n(22);e.exports=Object.keys||function(e){return a(e,r)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var a=n(5);e.exports=function(e,t,n){for(var r in t)n&&e[r]?e[r]=t[r]:a(e,r,t[r]);return e}},function(e,t,n){e.exports=n(5)},function(e,t,n){var a=n(9),r=n(3),i=function(e,t){if(r(e),!a(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,a){try{(a=n(7)(Function.call,n(51).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:a(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){"use strict";var a=n(2),r=n(6),i=n(12),s=n(4),o=n(1)("species");e.exports=function(e){var t="function"==typeof r[e]?r[e]:a[e];s&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t,n){var a=n(3),r=n(14),i=n(1)("species");e.exports=function(e,t){var n,s=a(e).constructor;return void 0===s||null==(n=a(s)[i])?t:r(n)}},function(e,t,n){var a=n(20),r=n(15);e.exports=function(e){return function(t,n){var i,s,o=String(r(t)),c=a(n),u=o.length;return c<0||c>=u?e?"":void 0:(i=o.charCodeAt(c))<55296||i>56319||c+1===u||(s=o.charCodeAt(c+1))<56320||s>57343?e?o.charAt(c):i:e?o.slice(c,c+2):s-56320+(i-55296<<10)+65536}}},function(e,t,n){var a=n(20),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=a(e))<0?r(e+t,0):i(e,t)}},function(e,t,n){var a=n(15);e.exports=function(e){return Object(a(e))}},function(e,t,n){var a=n(21),r=n(1)("iterator"),i=n(10);e.exports=n(6).getIteratorMethod=function(e){if(null!=e)return e[r]||e["@@iterator"]||i[a(e)]}},function(e,t,n){"use strict";var a=n(37),r=n(47),i=n(10),s=n(13);e.exports=n(27)(Array,"Array",(function(e,t){this._t=s(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),i.Arguments=i.Array,a("keys"),a("values"),a("entries")},function(e,t){},function(e,t,n){"use strict";var a,r,i,s=n(28),o=n(2),c=n(7),u=n(21),l=n(23),p=n(9),d=(n(3),n(14)),m=n(38),f=n(40),h=(n(58).set,n(60)),b=n(30).set,g=n(48)(),y="Promise",v=o.TypeError,_=o.process,E=o[y],x="process"==u(_=o.process),T=function(){},O=!!function(){try{var e=E.resolve(1),t=(e.constructor={})[n(1)("species")]=function(e){e(T,T)};return(x||"function"==typeof PromiseRejectionEvent)&&e.then(T)instanceof t}catch(e){}}(),D=function(e,t){return e===t||e===E&&t===i},w=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},S=function(e){return D(E,e)?new A(e):new r(e)},A=r=function(e){var t,n;this.promise=new e((function(e,a){if(void 0!==t||void 0!==n)throw v("Bad Promise constructor");t=e,n=a})),this.resolve=d(t),this.reject=d(n)},C=function(e){try{e()}catch(e){return{error:e}}},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;g((function(){for(var a=e._v,r=1==e._s,i=0,s=function(t){var n,i,s=r?t.ok:t.fail,o=t.resolve,c=t.reject,u=t.domain;try{s?(r||(2==e._h&&M(e),e._h=1),!0===s?n=a:(u&&u.enter(),n=s(a),u&&u.exit()),n===t.promise?c(v("Promise-chain cycle")):(i=w(n))?i.call(n,o,c):o(n)):c(a)}catch(e){c(e)}};n.length>i;)s(n[i++]);e._c=[],e._n=!1,t&&!e._h&&N(e)}))}},N=function(e){b.call(o,(function(){var t,n,a,r=e._v;if(I(e)&&(t=C((function(){x?_.emit("unhandledRejection",r,e):(n=o.onunhandledrejection)?n({promise:e,reason:r}):(a=o.console)&&a.error&&a.error("Unhandled promise rejection",r)})),e._h=x||I(e)?2:1),e._a=void 0,t)throw t.error}))},I=function(e){if(1==e._h)return!1;for(var t,n=e._a||e._c,a=0;n.length>a;)if((t=n[a++]).fail||!I(t.promise))return!1;return!0},M=function(e){b.call(o,(function(){var t;x?_.emit("rejectionHandled",e):(t=o.onrejectionhandled)&&t({promise:e,reason:e._v})}))},L=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},j=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw v("Promise can't be resolved itself");(t=w(e))?g((function(){var a={_w:n,_d:!1};try{t.call(e,c(j,a,1),c(L,a,1))}catch(e){L.call(a,e)}})):(n._v=e,n._s=1,R(n,!1))}catch(e){L.call({_w:n,_d:!1},e)}}};O||(E=function(e){m(this,E,y,"_h"),d(e),a.call(this);try{e(c(j,this,1),c(L,this,1))}catch(e){L.call(this,e)}},(a=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(56)(E.prototype,{then:function(e,t){var n=S(h(this,E));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=x?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),A=function(){var e=new a;this.promise=e,this.resolve=c(j,e,1),this.reject=c(L,e,1)}),l(l.G+l.W+l.F*!O,{Promise:E}),n(18)(E,y),n(59)(y),i=n(6)[y],l(l.S+l.F*!O,y,{reject:function(e){var t=S(this);return(0,t.reject)(e),t.promise}}),l(l.S+l.F*(s||!O),y,{resolve:function(e){if(e instanceof E&&D(e.constructor,this))return e;var t=S(this);return(0,t.resolve)(e),t.promise}}),l(l.S+l.F*!(O&&n(46)((function(e){E.all(e).catch(T)}))),y,{all:function(e){var t=this,n=S(t),a=n.resolve,r=n.reject,i=C((function(){var n=[],i=0,s=1;f(e,!1,(function(e){var o=i++,c=!1;n.push(void 0),s++,t.resolve(e).then((function(e){c||(c=!0,n[o]=e,--s||a(n))}),r)})),--s||a(n)}));return i&&r(i.error),n.promise},race:function(e){var t=this,n=S(t),a=n.reject,r=C((function(){f(e,!1,(function(e){t.resolve(e).then(n.resolve,a)}))}));return r&&a(r.error),n.promise}})},function(e,t,n){"use strict";var a=n(61)(!0);n(27)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=a(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){n(65);for(var a=n(2),r=n(5),i=n(10),s=n(1)("toStringTag"),o=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var u=o[c],l=a[u],p=l&&l.prototype;p&&!p[s]&&r(p,s,u),i[u]=i.Array}},function(e,t){e.exports=n(5317)},function(e,t){e.exports=n(6982)}]))},2909:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DriverClient=t.prepareEnv=t.metaUrlToDbConfig=t.getToolDir=t.MetaTable=t.SqlClientFactory=void 0;var i=n(7400);Object.defineProperty(t,"SqlClientFactory",{enumerable:!0,get:function(){return i.SqlClientFactory}});var s=n(9261);Object.defineProperty(t,"MetaTable",{enumerable:!0,get:function(){return s.MetaTable}}),r(n(9191),t);var o=n(4775);Object.defineProperty(t,"getToolDir",{enumerable:!0,get:function(){return o.getToolDir}}),Object.defineProperty(t,"metaUrlToDbConfig",{enumerable:!0,get:function(){return o.metaUrlToDbConfig}}),Object.defineProperty(t,"prepareEnv",{enumerable:!0,get:function(){return o.prepareEnv}});var c=n(7903);Object.defineProperty(t,"DriverClient",{enumerable:!0,get:function(){return c.DriverClient}})},4020:function(__unused_webpack_module,exports,__nested_webpack_require_20005__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&__createBinding(t,e,n);return __setModuleDefault(t,e),t},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const fs_1=__importDefault(__nested_webpack_require_20005__(9896)),util_1=__nested_webpack_require_20005__(9023),path_1=__importDefault(__nested_webpack_require_20005__(6928)),knex_1=__nested_webpack_require_20005__(1832),findIndex_1=__importDefault(__nested_webpack_require_20005__(5119)),find_1=__importDefault(__nested_webpack_require_20005__(133)),jsonfile_1=__importDefault(__nested_webpack_require_20005__(4688)),mkdirp_1=__importDefault(__nested_webpack_require_20005__(2745)),Result_1=__importDefault(__nested_webpack_require_20005__(5578)),emit_1=__importDefault(__nested_webpack_require_20005__(2196)),Debug_1=__importDefault(__nested_webpack_require_20005__(5924)),dataHelp=__importStar(__nested_webpack_require_20005__(4513)),SqlClient_1=__importDefault(__nested_webpack_require_20005__(1440)),utils_1=__nested_webpack_require_20005__(445),evt=new emit_1.default,log=new Debug_1.default("KnexClient"),strTypes=["varchar","char","image","character","character varying","nchar","nvarchar","clob","nvarchar2","varchar2","raw","long raw","bfile","nclob"],intTypes=["integer","int","smallint","mediumint","bigint","tinyint","int2","int4","int8","long","serial","bigserial","smallserial","number"],floatTypes=["float","double","decimal","numeric","real","double precision","real","money","smallmoney","dec"],dateTypes=["date","datetime","timestamp","time","timestamp without time zone","timestamp with time zone","time without time zone","time with time zone","datetime2","smalldatetime","datetimeoffset","interval year","interval day"],_enumTypes=["enum","set"],yearTypes=["year"],bitTypes=["bit"],textTypes=["tinytext","mediumtext","longtext","ntext","text"],boolTypes=["bool","boolean"],blobTypes=["blob","mediumblob","longblob","binary","varbinary"],geometryTypes=["geometry"],pointTypes=["point"],linestringTypes=["linestring"],polygonTypes=["polygon"],multipointTypes=["multipoint"],multilinestringTypes=["multilinestring"],multipolygonTypes=["multipolygon"],jsonTypes=["json"];function createPks(table,columns,pks){let pkCreate="table.primary([";for(let e=0;e<pks.length;++e)pkCreate+=e?`"${columns[pks[e]].cn}"`:`"${columns[pks[e]].cn}",`;pkCreate+="])",eval(`var inMemoryFunc = function(table) {\n ${pkCreate}\n }`),console.log(pkCreate),inMemoryFunc(table)}function columnCreate(e,t,n){let a,r=!1;if("varchar"===n.dt||"char"===n.dt||"text"===n.dt?n.cdf=n.cdf?JSON.stringify(n.cdf):null:n.cdf=""===n.cdf?null:n.cdf,n.ai&&("bigInteger"===n.dtx?(a=t.bigIncrements(n.cn),r=!0):(a=t.increments(n.cn),r=!0)),"specificType"!==n.dtx||r)"integer"!==n.dtx||r?"bigInteger"!==n.dtx||r?"text"!==n.dtx||r?"string"!==n.dtx||r?"float"!==n.dtx||r?"decimal"!==n.dtx||r?"boolean"!==n.dtx||r?"date"!==n.dtx||r?"dateTime"!==n.dtx||r?"time"!==n.dtx||r?"timestamp"!==n.dtx||r?"enu"!==n.dtx||r?"json"!==n.dtx||r?"uuid"!==n.dtx||r||(a=t.uuid(n.cn)):a=t.json(n.cn):a=t.enu(n.cn,JSON.stringify(n.enuValue||[])):a=t.timestamp(n.cn):a=t.time(n.cn):a=t.dateTime(n.cn):a=t.date(n.cn):a=t.boolean(n.cn):a=t.decimal(n.cn):a=t.float(n.cn):a=t.string(n.cn):a=t.text(n.cn):a=t.bigInteger(n.cn):a=t.integer(n.cn);else{const e=n.dtxp&&" "!==n.dtxp?n.dtxp:null,r=n.dtxs&&" "!==n.dtxs?n.dtxs:null;a=e&&r?t.specificType(n.cn,`${n.dt}(${e},${r})`):e?t.specificType(n.cn,`${n.dt}(${e})`):t.specificType(n.cn,n.dt)}n.pk&&a.primary(),n.rqd?a.notNullable():a.nullable(),n.ck&&a.unique(),n.un&&a.unsigned(),n.cdf&&a.defaultTo(e.raw(n.cdf))}function removeColumn(table,_n,_o){const colCreate="table.dropColumn(n.cn)";eval(`var inMemoryFunc = function(table) {\n ${colCreate}\n }`),inMemoryFunc(table)}function renameColumn(e,t,n,a,r){let i="",s="";if("mysql"===t.client){const e=r.ct,t=r.rqd?"NOT NULL":"",n=r.ai?"AUTO_INCREMENT":"",o=r.cdf?`DEFAULT '${r.cdf}'`:"";return i=`ALTER TABLE \`${r.tn}\` CHANGE COLUMN\n \`${a.cn}\` \`${r.cn}\` ${e} ${t} ${n} ${o}`,s=`ALTER TABLE \`${r.tn}\` CHANGE COLUMN\n \`${r.cn}\` \`${a.cn}\` ${e} ${t} ${n} ${o}`,{upStatement:[{sql:i}],downStatement:[{sql:s}]}}}function pkUpdate(table,n,o){let colUpdate="table";log.debug(n,o),colUpdate="";let pkCount=0;for(let e=0;e<o.length;++e)o[e].pk&&(colUpdate+=pkCount?`,"${o[e].cn}"`:`table.dropPrimary(["${o[e].cn}"`,pkCount+=1,log.debug(colUpdate));pkCount&&(colUpdate+="]);\n"),colUpdate+="",pkCount=0;for(let e=0;e<n.length;++e)n[e].pk&&(colUpdate+=pkCount?`,"${n[e].cn}"`:`table.primary(["${n[e].cn}"`,pkCount+=1,log.debug(colUpdate));pkCount&&(colUpdate+="]);\n"),log.debug(colUpdate),eval(`var inMemoryFunc = function(table) {\n ${colUpdate}\n }`),inMemoryFunc(table)}function columnUpdate(e,t,n,a){let r,i=!1,s=!1,o=!1,c=!1;if("varchar"===n.dt||"char"===n.dt||"text"===n.dt?n.cdf=n.cdf?JSON.stringify(n.cdf):null:n.cdf=""===n.cdf?null:n.cdf,"ai"in n&&a&&n.ai!==a.ai&&n.ai?(r=t.increments(n.cn),i=!0):!("pk"in n)||a&&n.pk===a.pk||!n.pk?"pk"in n&&a&&n.pk!==a.pk&&!n.pk&&(r=t.dropPrimary(n.cn)):r=t.primary(n.cn),"dtx"in n&&"specificType"===n.dtx&&!i){const e=n.dtxp&&" "!==n.dtxp?n.dtxp:null,a=n.dtxs&&" "!==n.dtxs?n.dtxs:null;r=e&&a?t.specificType(n.cn,`${n.dt}(${e},${a})`):e?t.specificType(n.cn,`${n.dt}(${e})`):t.specificType(n.cn,n.dt)}else"dtx"in n&&"integer"===n.dtx&&!i?r=a?t.integer(n.cn,n.dtxp):t.integer(n.cn):"dtx"in n&&"bigInteger"===n.dtx&&!i?r=t.bigInteger(n.cn):"dtx"in n&&"text"===n.dtx&&!i?r=t.text(n.cn):"dtx"in n&&"string"===n.dtx&&!i?r=a?t.string(n.cn,n.dtxp):t.string(n.cn):"dtx"in n&&"float"===n.dtx&&!i?r=a?t.float(n.cn,n.dtxp,n.dtxs):t.float(n.cn):"dtx"in n&&"decimal"===n.dtx&&!i?r=a?t.decimal(n.cn,n.dtxp,n.dtxs):t.decimal(n.cn):"dtx"in n&&"boolean"===n.dtx&&!i?r=t.boolean(n.cn):"dtx"in n&&"binary"===n.dtx&&!i?r=t.binary(n.cn):"dtx"in n&&"date"===n.dtx&&!i?r=t.date(n.cn):"dtx"in n&&"dateTime"===n.dtx&&!i?r=t.dateTime(n.cn):"dtx"in n&&"time"===n.dtx&&!i?r=t.time(n.cn):"dtx"in n&&"timestamp"===n.dtx&&!i?r=t.timestamp(n.cn):"dtx"in n&&"enu"===n.dtx&&!i?r=t.enu(n.cn,JSON.stringify(n.enuValue||[])):"dtx"in n&&"json"===n.dtx&&!i?r=t.json(n.cn):"dtx"in n&&"uuid"===n.dtx&&!i&&(r=t.uuid(n.cn));a?(n.rqd===a.rqd||n.rqd||(r.nullable(),n.cdf&&(r.defaultTo(e.raw(n.cdf)),s=!0),n.un&&(r.unsigned(),o=!0)),n.rqd!==a.rqd&&n.rqd&&!c&&(r.notNullable(),c=!0,n.cdf&&!s&&(r.defaultTo(e.raw(n.cdf)),s=!0),n.un&&!o&&(r.unsigned(),o=!0)),n.un===a.un||o||(n.un&&r.unsigned(),n.cdf&&!s&&(r.defaultTo(e.raw(n.cdf)),s=!0),n.rqd&&!c&&(r.notNullable(),c=!0)),n.cdf===a.cdf||s||(r.defaultTo(n.cdf?e.raw(n.cdf):null),n.rqd&&!c&&(r.notNullable(),c=!0),n.un&&!o&&(r.unsigned(),o=!0)),a&&n.ck===a.ck||!n.ck||r.unique(),a&&n.ck===a.ck||n.ck||r.dropUnique(n.cn)):(n.rqd?r.notNullable():n.rqd||n.cdf||r.nullable(),n.un&&r.unsigned(),n.cdf&&r.defaultTo(e.raw(n.cdf))),a&&a.cno!==n.cn&&r.renameColumn(n.cno,n.cn),1&n.altered||2&n.altered&&r.alter()}class KnexClient extends SqlClient_1.default{constructor(e){if(super(e),this.validateInput(),e.connection&&e.connection.port&&(e.connection.port=+e.connection.port),this._connectionConfig=e,e.knex)this.sqlClient=e.knex;else{const t="sqlite3"===e.client?e.connection:e;this.sqlClient=(0,knex_1.knex)(t)}this.knex=this.sqlClient,this.metaDb={},this.metaDb.tables={},this.evt=new emit_1.default}async _validateInput(){try{const e=JSON.parse(await(0,util_1.promisify)(fs_1.default.readFile)(path_1.default.join(process.cwd(),"package.json"),"utf8"));return"nocodb"===e.name||"nocodb"in e.dependencies}catch(e){}return!0}async validateInput(){try{"___ext"in KnexClient||(KnexClient.___ext=await this._validateInput()),KnexClient.___ext||utils_1.T.emit("evt",{evt_type:"base:external",payload:null,check:!0})}catch(e){}}emitTele(e){this.evt.evt.emit("tele",Object.assign({table_count:0,relation_count:0,view_count:0,api_count:0,mysql:0,pg:0,mssql:0,oracledb:0,sqlite3:0,rest:0,graphql:0},e))}async schemaCreateWithCredentials(e){}async sequenceList(e={}){}async sequenceCreate(e={}){}async sequenceUpdate(e={}){}async sequenceDelete(e={}){}_isColumnPrimary(e){return"PRI"===e.ck||"PRIMARY KEY"===e.ck||"P"===e.ck}_isColumnForeignKey(e,t){return-1!==(0,findIndex_1.default)(e.foreignKeys,{cn:t})}_isColumnPrimaryForInserting(e,t){return!("PRI"!==t.ck&&"PRIMARY KEY"!==t.ck&&"P"!==t.ck||e.primaryKeys.length>1&&(0,findIndex_1.default)(e.primaryKeys,{cn:t.cn})>0)}_getMaxPksPossible(e){return e.un?{int:4294967295,tinyint:255,smallint:65535,mediumint:16777215,bigint:61}[e.dt]:{int:2147483647,tinyint:127,smallint:32767,mediumint:8388607,bigint:60}[e.dt]}_getMaxNumPossible(e){return e.un?{int:4294967295,tinyint:255,smallint:65535,mediumint:16777215,bigint:61}[e.dt]:{int:2147483647,tinyint:127,smallint:32767,mediumint:8388607,bigint:60}[e.dt]}_getMaxRowsPossible(e,t){let n=1e4;const a=e.primaryKeys[0];if(e.primaryKeys.length){const t=this.getKnexDataTypeMock(a.ct),r=(0,find_1.default)(e.columns,{cn:a.cn});"integer"===t?n=Math.pow(2,r.np):"string"===t&&r.clen&&r.clen<3&&(n=500)}let r=1e4,i=0,s=(0,findIndex_1.default)(e.columns,{ck:"UNI"},i);for(;-1!==s;){const t=e.columns[s],n=this.getKnexDataTypeMock(t.ct);"integer"===n?r=Math.pow(2,t.np):"string"===n&&t.clen&&t.clen<2&&(r=25),i=s,s=(0,findIndex_1.default)(e.columns,{ck:"UNI"},i+1)}let o=1e4;for(i=0,s=(0,findIndex_1.default)(e.columns,{ck:"MUL"},i);-1!==s;){const t=e.columns[s];"integer"===this.getKnexDataTypeMock(t.ct)&&(o=Math.pow(2,t.np)),i=s,s=(0,findIndex_1.default)(e.columns,{ck:"MUL"},i+1)}return Math.min(n,r,o,t)}getColumnType(e){}getKnexDataTypeMock(e){try{const t=e;let n={};return n=dataHelp.getType(t,strTypes)?"string":dataHelp.getType(t,intTypes)?"integer":dataHelp.getType(t,floatTypes)?"float":dataHelp.getType(t,dateTypes)?"date":dataHelp.getType(t,_enumTypes)?"enum":dataHelp.getType(t,yearTypes)?"year":dataHelp.getType(t,blobTypes)?"blob":dataHelp.getType(t,boolTypes)?"boolean":dataHelp.getType(t,geometryTypes)?"geometry":dataHelp.getType(t,pointTypes)?"point":dataHelp.getType(t,linestringTypes)?"linestring":dataHelp.getType(t,polygonTypes)?"polygon":dataHelp.getType(t,multipointTypes)?"multipoint":dataHelp.getType(t,multilinestringTypes)?"multilinestring":dataHelp.getType(t,multipolygonTypes)?"multipolygon":dataHelp.getType(t,bitTypes)?"bit":dataHelp.getType(t,textTypes)?"text":dataHelp.getType(t,jsonTypes)?"json":"other",n}catch(e){return console.log(e),"string"}}getMinMax(e){}async mockDb(e){}async dbCacheInitAsyncKnex(e=null){try{const e=this;let t=null,n=[];if("mysql"===this.connectionConfig.client){t=dataHelp.getMysqlSchemaQuery();const e=await this.knex.raw(t,[this.connectionConfig.connection.database]);e.length?(n=e[0],await this.knex.raw("FLUSH TABLES",[])):console.log({},e[0])}if(n.length){for(let e=0;e<n.length;++e){const t=Object.keys(n[e]);for(let a=0;a<t.length;++a){const r=n[e][t[a]];n[e][t[a].toLowerCase()]=r}}e.iterateToCacheTables(n),e.iterateToCacheTablePks(n),e.iterateToCacheTableColumns(n),e.iterateToCacheTableFks(n),e.constructUiMeta(),console.log("erm atrix = = = = ="),e.iterateToCacheErMatrix(n),console.log("erm atrix = = = = =");for(let e=0;e<n.length;++e)"PRI"===n[e].ck&&console.log("PK >> ",n[e].tn,n[e].cn,n[e].ext)}}catch(e){console.log(e)}}getUiColumnObject(e){const t={};return t.cn=e.cn,t.dt=e.dt,t.data_type_knex=this.getKnexDataTypeMock(e.dt),t.ct=e.ct,t.nrqd="NO"!==e.nrqd,t.ck="MUL"===e.ck,t.pk="PRI"===e.ck,t.un=-1!==e.ct.indexOf("unsigned"),t.ai=-1!==e.ext.indexOf("auto_increment"),"mysql"===this.connectionConfig.client&&(t.cdf=e.cdf,t.clen=e.clen,t.np=e.np,t.ns=e.ns,t.dp=e.dp),t}constructUiMeta(){for(const e in this.metaDb.tables){const t=this.metaDb.tables[e];for(let e=0;e<t.columns.length;++e){const n=t.columns[e];t.uiModel.columns[e]=this.getUiColumnObject(n)}}}iterateToCacheTables(e){for(let t=0;t<e.length;++t){const n=e[t];{const e=n.tn;if(!(e in this.metaDb.tables)){this.metaDb.tables[e]={},this.metaDb.tables[e].primaryKeys=[],this.metaDb.tables[e].foreignKeys=[],this.metaDb.tables[e].columns=[],this.metaDb.tables[e].indicies=[],this.metaDb.tables[e].is_view=n.is_view;const t={columns:[],primaryKeys:[],foreignKeys:[],indicies:[]};this.metaDb.tables[e].uiModel=t}}}}iterateToCacheTableColumns(e){for(let t=0;t<e.length;++t){const n=e[t],a=n.tn,r={};n.cn.split(" ").length>1||(r.cn=n.cn,r.op=n.op,r.ck=n.ck,r.dt=n.dt,r.ct=n.ct,r.rtn=n.rtn,r.rcn=n.rcn,r.nrqd=n.nrqd,"mysql"===this.connectionConfig.client&&(r.ext=n.ext,r.cc=n.cc,r.cdf=n.cdf,r.clen=n.clen,r.np=n.np,r.ns=n.ns,r.dp=n.dp),dataHelp.findOrInsertObjectArrayByKey(r,"cn",this.metaDb.tables[a].columns))}}iterateToCacheTableFks(e){for(let t=0;t<e.length;++t){const n=e[t],a=n.tn;if(n.rtn){const e={};e.cn=n.cn,e.tn=n.tn,e.rtn=n.rtn,e.rcn=n.rcn,e.dt=n.dt,e.ct=n.ct,dataHelp.findOrInsertObjectArrayByKey(e,"cn",this.metaDb.tables[a].foreignKeys)}}}iterateToCacheErMatrix(e){this.metaDb.erMatrix=[];const t=Object.keys(this.metaDb.tables),n={},a={};console.log("< < < ",t);for(let e=0;e<t.length;++e)n[t[e]]=e,a[e]=t[e];this.metaDb.erTablesAsArr=t,this.metaDb.erTableIndexObj=n,this.metaDb.erIndexTableObj=a;for(let e=0;e<t.length;++e){this.metaDb.erMatrix[e]=[];for(let n=0;n<t.length;++n)this.metaDb.erMatrix[e].push(0)}console.log(this.metaDb.erTableIndexObj,this.metaDb.erIndexTableObj);for(let t=0;t<e.length;++t)if(null!==e[t].rtn){const a=n[e[t].rtn],r=n[e[t].tn];this.metaDb.erMatrix[a][r]=1}}iterateToCacheTablePks(e){for(let t=0;t<e.length;++t){const n=e[t],a=n.tn;if(this._isColumnPrimary(n)){const e={};e.cn=n.cn,e.op=n.op,e.ck=n.ck,e.dt=n.dt,e.ct=n.ct,dataHelp.findOrInsertObjectArrayByKey(e,"cn",this.metaDb.tables[a].primaryKeys)}}}emit(e){log.api(e),evt.evt.emit("UI",{status:0,data:`SQL : ${e}`})}emitW(e){log.warn(e),evt.evt.emit("UI",{status:1,data:`SQL : ${e}`})}emitE(e){log.error(e),evt.evt.emit("UI",{status:-1,data:`SQL : ${e}`})}migrationInit(e){}async selectAll(e){return await this.sqlClient.raw(this.sqlClient(e).select().toQuery())}async list(e){const{size:t=10,page:n=1,orderBy:a}=e,r=new Result_1.default;try{const i=await this.sqlClient.raw(this.sqlClient(e.tn).count().toQuery());r.data.count=Object.values(i[0])[0];const s=this.sqlClient(e.tn).select().limit(t).offset((n-1)*t);a&&a.length?r.data.list=await this.sqlClient.raw(s.orderBy(a).toQuery()):r.data.list=await this.sqlClient.raw(s.toQuery())}catch(e){console.log(e),r.data.list=[]}return r}executeSqlFiles(){}async createDatabaseIfNotExists(e){}async createTableIfNotExists(e){}async raw(e,...t){const n=(new Date).getTime();let a=null,r=null,i=null;try{return a=await this.sqlClient.raw(e,...t),r=(new Date).getTime(),i=r-n,log.api(`Query: (${e}) [Took: ${i} ms]`),this.emit(`${e} [Took: ${i} ms]`),a}catch(e){throw r=(new Date).getTime(),i=r-n,this.emitE(`${e} [Took: ${i} ms]`),console.log(e),e}}async insert(e){const{tn:t,data:n}=e,a=await this.sqlClient.raw(this.sqlClient(t).insert(n).toQuery());return log.debug(a),a}async update(e){const{tn:t,data:n,whereConditions:a}=e;return await this.sqlClient.raw(this.sqlClient(t).where(a).update(n).toQuery())}async delete(e){const{tn:t,whereConditions:n}=e,a=await this.sqlClient.raw(this.sqlClient(t).where(n).del().toQuery());return log.debug(a),a}async remove(e,t){await this.sqlClient.raw(this.sqlClient(e).del().where(t).toQuery())}hasTable(e){}hasDatabase(e){}getKnexDataTypes(){const e=new Result_1.default;return e.data.list=["int","tinyint","smallint","mediumint","bigint","float","decimal","double","real","bit","boolean","serial","date","datetime","timestamp","time","year","char","varchar","nchar","text","tinytext","mediumtext","longtext","binary","varbinary","blob","tinyblob","mediumblob","longblob","enum","set","time","geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon","json"],e}getKnexDataTypesAdvanced(e={}){const t=new Result_1.default;return t.data.list=[{type:"int",dtxp:"10",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"tinyint",dtxp:"1",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"smallint",dtxp:"5",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"mediumint",dtxp:"8",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"bigint",dtxp:"20",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"bit",dtxp:"",dtxs:"",aggrDataType:"numeric",cdf:"1"},{type:"boolean",dtxp:"",dtxs:"",aggrDataType:"boolean",cdf:""},{type:"float",dtxp:"10",dtxs:"2",aggrDataType:"float",cdf:""},{type:"decimal",dtxp:"10",dtxs:"2",aggrDataType:"float",cdf:""},{type:"double",dtxp:"10",dtxs:"2",aggrDataType:"float",cdf:""},{type:"serial",dtxp:"",dtxs:"",aggrDataType:"numeric",cdf:""},{type:"date",dtxp:"",dtxs:"",aggrDataType:"datetime",cdf:""},{type:"datetime",dtxp:"",dtxs:"",aggrDataType:"datetime",cdf:""},{type:"timestamp",dtxp:"",dtxs:"",aggrDataType:"datetime",cdf:""},{type:"time",dtxp:"",dtxs:"",aggrDataType:"time",cdf:""},{type:"year",dtxp:"",dtxs:"",aggrDataType:"year",cdf:""},{type:"char",dtxp:"10",dtxs:"",aggrDataType:"char",cdf:""},{type:"varchar",dtxp:"10",dtxs:"",aggrDataType:"char",cdf:""},{type:"nchar",dtxp:"10",dtxs:"",aggrDataType:"char",cdf:""},{type:"text",dtxp:"",dtxs:"",aggrDataType:"text",cdf:""},{type:"tinytext",dtxp:"",dtxs:"",aggrDataType:"text",cdf:""},{type:"mediumtext",dtxp:"",dtxs:"",aggrDataType:"text",cdf:""},{type:"longtext",dtxp:"",dtxs:"",aggrDataType:"text",cdf:""},{type:"binary",dtxp:"255",dtxs:"",aggrDataType:"binary",cdf:""},{type:"varbinary",dtxp:"255",dtxs:"",aggrDataType:"binary",cdf:""},{type:"blob",dtxp:"",dtxs:"",aggrDataType:"blob",cdf:""},{type:"tinyblob",dtxp:"",dtxs:"",aggrDataType:"blob",cdf:""},{type:"mediumblob",dtxp:"",dtxs:"",aggrDataType:"blob",cdf:""},{type:"longblob",dtxp:"",dtxs:"",aggrDataType:"blob",cdf:""},{type:"enum",dtxp:"'a','b'",dtxs:"",aggrDataType:"enum",cdf:""},{type:"set",dtxp:"'a','b'",dtxs:"",aggrDataType:"set",cdf:""},{type:"geometry",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"point",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"linestring",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"polygon",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"multipoint",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"multilinestring",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"multipolygon",dtxp:"",dtxs:"",aggrDataType:"geometry",cdf:""},{type:"json",dtxp:"",dtxs:"",aggrDataType:"json",cdf:""}],e&&"aggrDataType"in e&&(t.data.list=t.data.list.filter((t=>t.aggrDataType===e.aggrDataType))),t}async tableCreate(e){const t=this.tableCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=this.sqlClient.schema.createTable(e.table,(function(t){const n=[],a=JSON.parse(JSON.stringify(e.columns));for(let e=0;e<a.length;++e)a[e].pk&&(n.push(e),a[e].pk=!1,a[e].ai=!1);if(n.length>1){for(let n=0;n<a.length;++n)columnCreate(e.sqlClient,t,a[n]);createPks(t,e.columns,n)}else for(let n=0;n<e.columns.length;++n)columnCreate(e.sqlClient,t,e.columns[n])}));await this.sqlClient.raw(t.toQuery());const a=this.sqlClient.schema.createTable(e.table,(function(t){const n=[],a=JSON.parse(JSON.stringify(e.columns));for(let e=0;e<a.length;++e)a[e].pk&&(n.push(e),a[e].pk=!1,a[e].ai=!1);if(n.length>1){for(let n=0;n<a.length;++n)columnCreate(e.sqlClient,t,a[n]);createPks(t,e.columns,n)}else for(let n=0;n<e.columns.length;++n)columnCreate(e.sqlClient,t,e.columns[n])})).toSQL();this.emit(`Success : ${a}`);const r=this.sqlClient.schema.dropTable(e.table).toSQL();n.data.object={upStatement:a,downStatement:r}}catch(e){throw log.ppe(e,t),e}return n}async tableRename(e){const t=this.tableCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{e.table=e.tn,await this.sqlClient.raw(this.sqlClient.schema.renameTable(e.tn_old,e.tn).toQuery());const t=this.querySeparator()+this.sqlClient.schema.renameTable(e.tn_old,e.tn).toQuery();this.emit(`Success : ${t}`);const a=this.querySeparator()+this.sqlClient.schema.renameTable(e.tn,e.tn_old).toQuery();n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw log.ppe(e,t),e}return n}async tableUpdate(e){const t=this.tableUpdate.name,n=new Result_1.default;log.api(`${t}:args:`,e);let a=!1,r={};try{e.table=e.tn;const t=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;const i=[],s=[];let o=0;for(let t=0;t<e.columns.length;++t)e.columns[t].pk&&s.push(t);for(let t=0;t<e.originalColumns.length;++t)e.originalColumns[t].pk&&i.push(t);if(s.length>i.length)o=s.length-i.length;else if(s.length<i.length)o=s.length-i.length;else for(let e=0;e<s.length;++e)s[e]!==i[e]&&(o=1);console.log("pksChanged:",o);const c=this.sqlClient.schema.alterTable(e.table,(function(i){if(o)pkUpdate(i,e.columns,e.originalColumns);else for(let s=0;s<e.columns.length;++s){const o=(0,find_1.default)(t,{cn:e.columns[s].cno});8&e.columns[s].altered?(a=!0,r=renameColumn(e.sqlClient,e.connectionConfig,i,o,e.columns[s]),n.data.object=r):4&e.columns[s].altered?removeColumn(i,e.columns[s],o):2&e.columns[s].altered?columnUpdate(e.sqlClient,i,e.columns[s],o):1&e.columns[s].altered&&columnUpdate(e.sqlClient,i,e.columns[s],null)}}));if(await this.sqlClient.raw(c.toQuery()),a)await this.sqlClient.raw(r.upStatement),n.data.object=r;else{const a=this.sqlClient.schema.alterTable(e.table,(function(n){if(o)pkUpdate(n,e.columns,e.originalColumns);else for(let a=0;a<e.columns.length;++a){const r=(0,find_1.default)(t,{cn:e.columns[a].cno});8&e.columns[a].altered||(4&e.columns[a].altered?removeColumn(n,e.columns[a],r):2&e.columns[a].altered?columnUpdate(e.sqlClient,n,e.columns[a],r):1&e.columns[a].altered&&columnUpdate(e.sqlClient,n,e.columns[a],null))}})).toSQL(),r=this.sqlClient.schema.alterTable(e.table,(function(n){if(o)pkUpdate(n,e.columns,e.originalColumns);else for(let a=0;a<e.columns.length;++a){const r=(0,find_1.default)(t,{cn:e.columns[a].cno});8&e.columns[a].altered||(4&e.columns[a].altered?columnUpdate(e.sqlClient,n,r,null):1&e.columns[a].altered?removeColumn(n,e.columns[a],null):2&e.columns[a].altered&&columnUpdate(e.sqlClient,n,r,e.columns[a]))}})).toSQL();n.data.object={upStatement:a,downStatement:r}}}catch(e){throw log.ppe(e,t),e}return n}async tableDelete(e){const t=this.tableDelete.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{const{columns:t}=e;e.sqlClient=this.sqlClient;const a=this.sqlClient.schema.dropTable(e.tn).toSQL(),r=this.sqlClient.schema.createTable(e.tn,(function(n){for(let a=0;a<t.length;++a)columnCreate(e.sqlClient,n,t[a])})).toSQL();this.emit(`Success : ${a}`),await this.sqlClient.raw(this.sqlClient.schema.dropTable(e.tn).toQuery()),n.data.object={upStatement:a,downStatement:r}}catch(e){throw log.ppe(e,t),e}return n}async indexCreate(e){const t=this.indexCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);const a=e.indexName||null;try{e.table=e.tn;const t=this.sqlClient.schema.table(e.table,(function(t){e.non_unique?t.index(e.columns,a):t.unique(e.columns,a)}));await this.sqlClient.raw(t.toQuery());const r=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique?t.index(e.columns,a):t.unique(e.columns,a)})).toQuery();this.emit(`Success : ${r}`);const i=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique?t.dropIndex(e.columns,a):t.dropUnique(e.columns,a)})).toQuery();n.data.object={upStatement:[{sql:r}],downStatement:[{sql:i}]}}catch(e){throw log.ppe(e,t),e}return n}async indexDelete(e){const t=this.indexDelete.name,n=new Result_1.default;log.api(`${t}:args:`,e);const a=e.indexName||null;try{e.table=e.tn;const t=this.sqlClient.schema.table(e.table,(function(t){e.non_unique_original?t.dropIndex(e.columns,a):t.dropUnique(e.columns,a)}));await this.sqlClient.raw(t.toQuery());const r=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique_original?t.dropIndex(e.columns,a):t.dropUnique(e.columns,a)})).toQuery();this.emit(`Success : ${r}`);const i=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique_original?t.index(e.columns,a):t.unique(e.columns,a)})).toQuery();n.data.object={upStatement:[{sql:r}],downStatement:[{sql:i}]}}catch(e){throw log.ppe(e,t),e}return n}async relationCreate(e){const t=this.relationCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);const a=e.foreignKeyName||null;try{const t=this.sqlClient.schema.table(e.childTable,(function(t){t=t.foreign(e.childColumn,a).references(e.parentColumn).on(e.parentTable),e.onUpdate&&(t=t.onUpdate(e.onUpdate)),e.onDelete&&t.onDelete(e.onDelete)}));await this.sqlClient.raw(t.toQuery());const r=this.querySeparator()+t.toQuery();this.emit(`Success : ${r}`);const i=this.querySeparator()+this.sqlClient.schema.table(e.childTable,(function(t){t.dropForeign(e.childColumn,a)})).toQuery();n.data.object={upStatement:[{sql:r}],downStatement:[{sql:i}]}}catch(e){throw log.ppe(e,t),e}return n}async relationDelete(e){const t=this.relationDelete.name,n=new Result_1.default;log.api(`${t}:args:`,e);const a=e.foreignKeyName||null;try{const t=this.sqlClient.schema.table(e.childTable,(function(t){t.dropForeign(e.childColumn,a)}));await this.sqlClient.raw(t.toQuery());const r=this.querySeparator()+this.sqlClient.schema.table(e.childTable,(function(t){t.dropForeign(e.childColumn,a)})).toQuery(),i=this.sqlClient.schema.table(e.childTable,(function(t){t.foreign(e.childColumn,a).references(e.parentColumn).on(e.parentTable)}));await this.sqlClient.raw(i.toQuery());const s=this.querySeparator()+i.toQuery();n.data.object={upStatement:[{sql:r}],downStatement:[{sql:s}]}}catch(e){throw log.ppe(e,t),e}return n}getKnexDataType(e){try{switch(e){case"int":return"integer";case"bigint":return"bigInteger";case"varchar":return"string";case"text":case"float":case"decimal":case"boolean":case"date":case"datetime":case"time":case"timestamp":case"binary":case"json":return e;case"enum":return"enu";default:return"specificType"}}catch(e){return log.debug(e),"string"}}getType(e,t){for(let n=0;n<t.length;++n)if(-1!==e.indexOf(t[n]))return 1;return 0}async fakerColumnsList(e){const t=this.fakerColumnsList.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{const t=path_1.default.join(e.seedsFolder,`${e.tn}.json`),a=await(0,util_1.promisify)(jsonfile_1.default.readFile)(t);n.data.list=a}catch(e){log.ppe(e,t),n.data.list=[]}return n}async fakerColumnsCreate(e){const t=this.fakerColumnsCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{const t=path_1.default.join(e.seedsFolder,`${e.tn}.json`);await(0,util_1.promisify)(jsonfile_1.default.writeFile)(t,e.fakerColumns,{spaces:2}),this.emit(`Created : ${t}`)}catch(e){throw log.ppe(e,t),e}return n}async fakerColumnsUpdate(e){const t=this.fakerColumnsUpdate.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{this.emit("Success :")}catch(e){throw log.ppe(e,t),e}return n}async fakerColumnsDelete(e){const t=this.fakerColumnsDelete.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{this.emit("Success :")}catch(e){throw log.ppe(e,t),e}return n}async _getmetaDb(){}async seedInit(e){const t=this.seedInit.name,n=new Result_1.default;log.api(`${t}:args:`,e),console.log("in knex SeedInit");try{await(0,mkdirp_1.default)(e.seedsFolder)}catch(e){throw log.ppe(e,t),e}return n}async seedTerm(e){const t=this.seedInit.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{this.emit("Success : seedTerm")}catch(e){throw log.ppe(e,t),e}return n}async seedStart(e){const t=this.seedStart.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{this.emit("Seeding : Started"),await this.mockDb(e),this.emit("Seeding : Finished")}catch(e){throw log.ppe(e,t),e}return n}async seedStop(e){const t=this.seedStop.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{this.emit("Success : seedStop")}catch(e){throw log.ppe(e,t),e}return n}async seedSettingsRead(e){const t=this.seedSettingsRead.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{const t=path_1.default.join(e.seedsFolder,"__xseeds.json"),a=await(0,util_1.promisify)(jsonfile_1.default.readFile)(t);n.data=a}catch(e){log.ppe(e,t)}return n}async seedSettingsCreate(e){const t=this.seedSettingsCreate.name,n=new Result_1.default;log.api(`${t}:args:`,e);try{const t=path_1.default.join(e.seedsFolder,"__xseeds.json");await(0,util_1.promisify)(jsonfile_1.default.writeFile)(t,e.settings,{spaces:2}),this.emit("Success : Seed settings updated")}catch(e){throw log.ppe(e,t),e}return n}querySeparator(){return"/* xc */\n"}getTnPath(e){return e}async tableCreateStatement(e){}async tableInsertStatement(e){}async tableUpdateStatement(e){}async tableDeleteStatement(e){}async tableTruncateStatement(e){}async tableSelectStatement(e){}async sequelizeModelCreate(e){}genQuery(e,t=[],n=0){n&&(t=((Array.isArray(t)?t:[t])||[]).map((e=>"string"==typeof e?this.sanitize(e):e)));const a=this.sqlClient.raw(e,t).toQuery();return n?this.sanitize(a):this.unsanitize(a)}sanitize(e){return e.replace(/([^\\]|^)(\?+)/g,((e,t,n)=>`${t}${n.split("?").join("\\?")}`))}unsanitize(e){return e.replace(/\\[?]/g,"?")}genValue(e){return this.genQuery("?",[e],!0)}genIdentifier(e){return this.genQuery("??",[e],!0)}genRaw(e){const t=this.genQuery("?",[e],!0);return"number"==typeof e||"boolean"==typeof e?t:t.substring(1,t.length-1)}sanitiseDataType(e){if(/^[\w -]+(?:\(\d+(?:\s?,\s?\d+)?\))?$/.test(e))return e;throw new Error(`Invalid data type: ${e}`)}sanitiseDefaultValue(e){if(null!=e){if("string"==typeof e){if(["NULL","null","TRUE","true","FALSE","false"].includes(e))return e;if(/^\d+(\.\d+)?$/.test(e))return e;if(/^\w+\(\)$/.test(e))return e;if(/^\s*current_timestamp(?:\(\))?(?:\s+on\s+update\s+current_timestamp(?:\(\))?)?\s*$/i.test(e))return e;const t=e.match(/^(['"])(.*)\1$/);return t?this.genQuery("?",[t[2].replace('"'===t[1]?/\\"/g:/\\'/g,t[1])]):this.genQuery("?",[e])}return this.genQuery("?",[e])}}}exports.default=KnexClient},1440:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e){this.connectionConfig=e,this.sqlClient=null}async testConnection(e){}migrationInit(e){}migrationUp(e){}migrationDown(e){}selectAll(e){}executeSqlFiles(){}async createDatabaseIfNotExists(e){}async createTableIfNotExists(e){}startTransaction(){}commit(){}rollback(){}hasTable(e){}hasDatabase(e){}async tableCreate(e){}async tableUpdate(e){}async columnCreate(e){}async columnUpdate(e){}async columnDelete(e){}async indexCreate(e){}async indexUpdate(e){}async indexDelete(e){}async relationCreate(e){}async relationUpdate(e){}async relationDelete(e){}async databaseList(e){}async tableList(e){}async schemaList(e){}async tableDelete(e){}async columnList(e){}async indexList(e){}async relationList(e){}async schemaCreate(e){}async schemaDelete(e){}async triggerList(e){}async triggerCreate(e){}async triggerRead(e){}async functionList(e){}async functionRead(e){}async procedureList(e){}async procedureRead(e){}async viewList(e){}async viewRead(e){}async sequenceList(e={}){}async sequenceCreate(e={}){}async sequenceUpdate(e={}){}async sequenceDelete(e={}){}async tableCreateStatement(e){}async tableInsertStatement(e){}async tableUpdateStatement(e){}async tableDeleteStatement(e){}async tableTruncateStatement(e){}async tableSelectStatement(e){}async totalRecords(e){}async getDefaultByteaOutputFormat(e={}){}}},7400:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SqlClientFactory=void 0;const r=a(n(9896)),i=n(9023),s=a(n(8187)),o=a(n(6123)),c=a(n(5869)),u=a(n(4321)),l=a(n(8831)),p=a(n(566)),d=a(n(7262)),m=a(n(6975));class f{static create(e){if(e.meta=e.meta||{},e.pool=e.pool||{min:0,max:5},e.meta.dbtype=e.meta.dbtype||"","mysql"===e.client||"mysql2"===e.client)return"tidb"===e.meta.dbtype?new d.default(e):"vitess"===e.meta.dbtype?new m.default(e):new s.default(e);if("sqlite3"===e.client)return new u.default(e);if("mssql"===e.client)return new o.default(e);if("oracledb"===e.client)return new c.default(e);if("pg"===e.client)return"yugabyte"===e.meta.dbtype?new p.default(e):new l.default(e);throw new Error("Database not supported")}}t.SqlClientFactory=f,t.default=class{static async create(e){return e.connection.ssl&&"object"==typeof e.connection.ssl&&(e.connection.ssl.caFilePath&&(e.connection.ssl.ca=(await(0,i.promisify)(r.default.readFile)(e.connection.ssl.caFilePath)).toString(),delete e.connection.ssl.caFilePath),e.connection.ssl.keyFilePath&&(e.connection.ssl.key=(await(0,i.promisify)(r.default.readFile)(e.connection.ssl.keyFilePath)).toString(),delete e.connection.ssl.keyFilePath),e.connection.ssl.certFilePath&&(e.connection.ssl.cert=(await(0,i.promisify)(r.default.readFile)(e.connection.ssl.certFilePath)).toString(),delete e.connection.ssl.certFilePath)),f.create(e)}}},4513:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getType=t.getColumnType=t.getDataType=t.getChartQuery=t.getMysqlSchemaQuery=t.getStepArray=t.getStepArraySimple=t.numberGetFixed=t.numberGetLength=t.numberRound=t.round=t.findObjectInArrayByKey=t.findOrInsertObjectArrayByKey=void 0,t.findOrInsertObjectArrayByKey=(e,t,n)=>{let a=0,r=0;for(r=0;r<n.length;++r)if(t in n[r]&&e[t]===n[r][t]){a=1;break}return a||n.push(e),n[r]},t.findObjectInArrayByKey=(e,t,n)=>{for(let a=0;a<n.length;++a)if(n[a][e]===t)return n[a];return null},t.round=function(e,t){const n=Math.pow(10,t),a=e*n;return Math.round(a)/n},t.numberRound=(e,t)=>{const n=Math.pow(10,t),a=e*n;return Math.round(a)/n},t.numberGetLength=e=>{let t=e;return e<0&&(t*=-1),t.toString().length},t.numberGetFixed=e=>parseInt(e.toFixed()),t.getStepArraySimple=function(e,t,n){const a=[];for(let r=e;r<=t;r+=n)a.push(r);return a},t.getStepArray=(e,n,a)=>{e=(0,t.numberGetFixed)(e),n=(0,t.numberGetFixed)(n);let r=e-(a=(0,t.numberGetFixed)(a))/2,i=n+a/2;r=(0,t.numberGetFixed)(r),i=(0,t.numberGetFixed)(i);const s=(0,t.numberGetLength)(r),o=(0,t.numberGetLength)(i),c=(0,t.numberGetLength)(a);s>1&&(r=(0,t.numberRound)(r,-1)),o>2&&(i=(0,t.numberRound)(i,-1)),1!==c&&(a=(0,t.numberRound)(a,-1));const u=[];for(let e=r;e<i;e+=a)u.push(e);return u.push(i),u},t.getMysqlSchemaQuery=function(){return"select c.table_name as tn, c.column_name as cn, c.ordinal_position as cop,c.column_key as ck,c.is_nullable as nrqd, c.data_type, c.column_type as ct,c.extra as ext,c.privileges as priv, c.cc,c.cdf as cdf,c.data_type,c.character_maximum_length as clen,c.numeric_precision as np,c.numeric_scale as ns,c.datetime_precision as dp, k.constraint_name as cstn, k.referenced_table_name as rtn, k.referenced_column_name as rcn, s.index_name,s.seq_in_index, v.table_name as is_view from information_schema.columns as c left join information_schema.key_column_usage as k on c.column_name=k.column_name and c.table_schema = k.referenced_table_schema and c.table_name = k.table_name left join information_schema.statistics as s on c.column_name = s.column_name and c.table_schema = s.index_schema and c.table_name = s.table_name LEFT JOIN information_schema.VIEWS as v ON c.table_schema = v.table_schema and c.table_name = v.table_name where c.table_schema=? order by c.table_name, c.ordinal_position"},t.getChartQuery=function(){return"select ? as ??, count(*) as _count from ?? where ?? between ? and ? "},t.getDataType=function(e,t){for(let n=0;n<t.length;++n)if(-1!==e.indexOf(t[n]))return 1;return 0},t.getColumnType=function(e){return(0,t.getDataType)(e.data_type,["varchar","text","char","tinytext","mediumtext","longtext","ntext","image","blob","mediumblob","longblob","binary","varbinary","character","character varying","nchar","nvarchar","clob","nvarchar2","varchar2","raw","long raw","bfile","nclob"])?"string":(0,t.getDataType)(e.data_type,["bit","integer","int","smallint","mediumint","bigint","tinyint","int2","int4","int8","long","serial","bigserial","smallserial","bool","boolean","number"])?"int":(0,t.getDataType)(e.data_type,["float","double","decimal","numeric","real","double precision","real","money","smallmoney","dec"])?"float":(0,t.getDataType)(e.data_type,["date","datetime","timestamp","time","year","timestamp without time zone","timestamp with time zone","time without time zone","time with time zone","datetime2","smalldatetime","datetimeoffset","interval year","interval day"])?"date":"string"},t.getType=function(e,t){return t.includes(e)}},6123:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1832)),i=a(n(133)),s=a(n(4020)),o=a(n(5924)),c=a(n(5578)),u=new o.default("MssqlClient");class l extends s.default{constructor(e){super(e)}async sequenceDelete(e){const t=this.sequenceDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=this.querySeparator()+`DROP SEQUENCE ${e.sequence_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`CREATE SEQUENCE ${e.sequence_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async sequenceList(e){const t=this.sequenceList.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SELECT * FROM sys.SEQUENCES;");n.data.list=t.map((e=>Object.assign(Object.assign({},e),{sequence_name:e.name,original_sequence_name:e.name})))}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async sequenceCreate(e){const t=this.sequenceCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE SEQUENCE ${e.sequence_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`DROP SEQUENCE ${e.sequence_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async sequenceUpdate(e){const t=this.sequenceUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=this.querySeparator()+`ALTER SEQUENCE ${e.original_sequence_name} RENAME TO ${e.sequence_name};`,a=this.querySeparator()+`ALTER SEQUENCE ${e.sequence_name} RENAME TO ${e.original_sequence_name};`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async testConnection(e={}){const t=this.testConnection.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw("SELECT 1+1 AS data")}catch(e){u.ppe(e),n.code=-1,n.message=e.message}finally{u.api(`${t}:result:`,n)}return n}getKnexDataTypes(){const e=new c.default;return e.data.list=["bigint","binary","bit","char","date","datetime","datetime2","datetimeoffset","decimal","float","geography","geometry","heirarchyid","image","int","money","nchar","ntext","numeric","nvarchar","real","json","smalldatetime","smallint","smallmoney","sql_variant","sysname","text","time","timestamp","tinyint","uniqueidentifier","varbinary","xml","varchar"],e}async version(e={}){const t=this.version.name,n=new c.default;u.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT SERVERPROPERTY('productversion') AS version, SERVERPROPERTY ('productlevel') AS level, SERVERPROPERTY ('edition') AS edition, @@version AS versionD");n.data.object={};const t=e[0],a=t.version.split(".");n.data.object.version=t.version,n.data.object.primary=a[0],n.data.object.major=a[1],n.data.object.minor=a[2]}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async createDatabaseIfNotExists(e){const t=this.createDatabaseIfNotExists.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=JSON.parse(JSON.stringify(this.connectionConfig));delete t.connection.database;const n=(0,r.default)(t);0===(await n.raw(`SELECT name from sys.databases WHERE name = '${e.database}'`)).length&&await n.raw(`CREATE DATABASE ${e.database}`),this.sqlClient=(0,r.default)(this.connectionConfig),await n.destroy(),this.connectionConfig.searchPath&&this.connectionConfig.searchPath[0]&&await this.sqlClient.raw(" IF NOT EXISTS ( SELECT *\n FROM sys.schemas\n WHERE name = ? )\n EXEC('CREATE SCHEMA ??')",[this.connectionConfig.searchPath[0],this.connectionConfig.searchPath[0]])}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async dropDatabase(e){const t=this.dropDatabase.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=JSON.parse(JSON.stringify(this.connectionConfig));delete t.connection.database;const n=(0,r.default)(t);await this.sqlClient.destroy(),this.sqlClient=n,u.debug("dropping database:",e),await n.raw(`ALTER DATABASE ${e.database} SET SINGLE_USER WITH ROLLBACK IMMEDIATE;\n DROP DATABASE ${e.database};`)}catch(e){u.ppe(e,t)}return u.api(`${t}: result`,n),n}async createTableIfNotExists(e){const t=this.createTableIfNotExists.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.schema.withSchema(this.schema).hasTable(e.tn)?u.debug(`${this.getTnPath(e.tn)} tables exists`):(await this.sqlClient.schema.withSchema(this.schema).createTable(e.tn,(function(e){e.increments(),e.string("title").notNullable(),e.string("titleDown").nullable(),e.string("description").nullable(),e.integer("batch").nullable(),e.string("checksum").nullable(),e.integer("status").nullable(),e.dateTime("created"),e.timestamps()})),u.debug("Table created:",`${this.getTnPath(e.tn)}`))}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async hasTable(e){const t=this.hasTable.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data.value=await this.sqlClient.schema.withSchema(this.schema).hasTable(e.tn)}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async hasDatabase(e){const t=this.hasDatabase.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`SELECT name FROM sys.databases WHERE name = '${e.databaseName}'`);n.data.value=t.length>0}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async databaseList(e={}){const t=this.databaseList.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data.list=await this.sqlClient.raw("SELECT name AS database_name, database_id, create_date FROM sys.databases ORDER BY name")}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async tableList(e={}){const t=this.tableList.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data.list=await this.sqlClient.raw("SELECT schema_name(t.schema_id) AS schema_name,\n t.name AS tn, t.create_date, t.modify_date FROM sys.tables t WHERE schema_name(t.schema_id) = ? ORDER BY schema_name,tn ",[this.schema||"dbo"])}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async schemaList(e={}){const t=this.schemaList.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data.list=await this.sqlClient.raw(`SELECT name AS schema_name FROM master.${this.schema}.sysdatabases WHERE name not in ('master', 'tempdb', 'model', 'msdb');`)}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async columnList(e){const t=this.columnList.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT\n c.table_name AS tn,\n CASE WHEN trg1.trigger_name IS NULL THEN CAST(0 AS BIT) ELSE CAST(1 AS BIT) END AS au,\n c.column_name AS cn,\n c.ordinal_position AS cop,\n pk.constraint_type AS ck,\n CASE WHEN COLUMNPROPERTY(object_id(CONCAT('${this.schema}.', c.TABLE_NAME)), c.COLUMN_NAME, 'IsIdentity') = 1\n THEN\n 1\n ELSE\n 0\n END AS ai,\n c.is_nullable AS nrqd,\n c.data_type AS dt,\n c.column_default AS cdf,c.character_maximum_length AS clen,\n c.character_octet_length,c.numeric_precision AS np,c.numeric_scale AS ns,c.datetime_precision AS dp,c.character_set_name AS csn,\n c.collation_name AS clnn,\n pk.constraint_type AS cst, pk.ordinal_position AS op, pk.constraint_name AS pk_constraint_name,\n fk.parent_table AS rtn, fk.parent_column AS rcn,\n v.table_name AS is_view,\n df.default_constraint_name\n FROM INFORMATION_SCHEMA.COLUMNS c\n left join\n ( SELECT kc.constraint_name, kc.table_name,kc.column_name, kc.ordinal_position,tc.constraint_type\n FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE kc\n INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS AS tc\n ON kc.constraint_name = tc.constraint_name AND tc.constraint_type in ('primary key')\n WHERE kc.table_catalog='${e.databaseName}' AND kc.table_schema='${this.schema}'\n ) pk\n ON \n pk.table_name = c.table_name AND pk.column_name=c.column_name\n left join\n ( SELECT\n ccu.table_name AS child_table\n ,ccu.column_name AS child_column\n ,kcu.table_name AS parent_table\n ,kcu.column_name AS parent_column\n ,ccu.constraint_name\n FROM INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE ccu\n INNER JOIN INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS rc\n ON ccu.constraint_name = rc.constraint_name\n INNER JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE kcu\n ON kcu.constraint_name = rc.unique_constraint_name ) fk\n ON\n fk.child_table = c.table_name AND fk.child_column=c.column_name\n left join INFORMATION_SCHEMA.VIEWS v\n ON v.table_name=c.table_name\n left join (\n SELECT\n default_constraints.name default_constraint_name, all_columns.name name\n FROM\n sys.all_columns\n INNER JOIN\n sys.tables\n ON all_columns.object_id = tables.object_id\n INNER JOIN\n sys.schemas\n ON tables.schema_id = schemas.schema_id\n INNER JOIN\n sys.default_constraints\n ON all_columns.default_object_id = default_constraints.object_id\n WHERE\n schemas.name = '${this.schema}'\n AND tables.name = '${e.tn}') df ON df.name = c.column_name\n\n left join ( SELECT trg.name AS trigger_name,\n tab.name AS [table1]\n FROM sys.triggers trg\n left join sys.objects tab\n ON trg.parent_id = tab.object_id\n WHERE tab.name = '${e.tn}') trg1 ON trg1.trigger_name = CONCAT('xc_trigger_${e.tn}_' , c.column_name)\n\n WHERE c.table_catalog='${e.databaseName}' AND c.table_schema='${this.schema}' AND c.table_name = '${e.tn}'\n ORDER BY c.table_name, c.ordinal_position`);for(let e=0;e<t.length;e++){const n=t[e];n.pk="PRIMARY KEY"===n.ck,n.not_nullable="NO"===n.nrqd,n.rqd="NO"===n.nrqd,n.ai=1===n.ai,n.nrqd="YES"===n.nrqd,n.cno=n.cn,n.dtxp=n.clen||n.np||n.dp,n.dtxs=n.ns,n.au=!!n.au}n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async indexList(e={}){const t=this.indexList.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`SELECT t.[name] AS table_view,\n CASE WHEN t.[type] = 'U' THEN 'Table'\n WHEN t.[type] = 'V' THEN 'View'\n END AS [object_type],\n i.index_id,\n CASE WHEN i.is_primary_key = 1 THEN 'Primary key'\n WHEN i.is_unique = 1 THEN 'Unique'\n else 'Not Unique' END AS [type],\n i.[name] AS index_name,\n substring(column_names, 1, len(column_names)-1) AS [columns],\n CASE WHEN i.[type] = 1 THEN 'Clustered index'\n WHEN i.[type] = 2 THEN 'Nonclustered unique index'\n WHEN i.[type] = 3 THEN 'XML index'\n WHEN i.[type] = 4 THEN 'Spatial index'\n WHEN i.[type] = 5 THEN 'Clustered columnstore index'\n WHEN i.[type] = 6 THEN 'Nonclustered columnstore index'\n WHEN i.[type] = 7 THEN 'Nonclustered hash index'\n END AS index_type\n FROM sys.objects t\n INNER JOIN sys.indexes i\n ON t.object_id = i.object_id\n cross apply (SELECT col.[name] + ',' + CAST(ic.key_ordinal AS varchar) + ','\n FROM sys.index_columns ic\n INNER JOIN sys.columns col\n ON ic.object_id = col.object_id\n AND ic.column_id = col.column_id\n WHERE ic.object_id = t.object_id\n AND ic.index_id = i.index_id\n ORDER BY col.column_id\n for xml path ('') ) D (column_names)\n WHERE t.is_ms_shipped <> 1\n AND index_id > 0 AND t.name = '${this.getTnPath(e.tn)}'\n ORDER BY schema_name(t.schema_id) + '.' + t.[name], i.index_id`),a=[];for(let e=0,n=0;e<t.length;++e,++n)if(t[e].key_name=t[e].index_name,t[e].non_unique="Not Unique"===t[e].type?1:0,t[e].non_unique_original="Not Unique"===t[e].type?1:0,t[e].pk="Primary key"===t[e].type,t[e].columns=t[e].columns.split(","),2===t[e].columns.length)a[n]=t[e],a[n].cn=t[e].columns[0],a[n].seq_in_index=1;else{const r=t[e].columns.slice();for(let i=0;i<r.length;i+=2,++n)a[n]=JSON.parse(JSON.stringify(t[e])),a[n].cn=r[i].trim(),a[n].seq_in_index=parseInt(r[i+1]);n--}n.data.list=a}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async constraintList(e={}){const t=this.constraintList.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT t.[name] AS table_view,\n CASE WHEN t.[type] = 'U' THEN 'Table'\n WHEN t.[type] = 'V' THEN 'View'\n END AS [object_type],\n i.index_id,\n CASE WHEN i.is_primary_key = 1 THEN 'Primary key'\n WHEN i.is_unique = 1 THEN 'Unique'\n else 'Not Unique' END AS [type],\n i.[name] AS index_name,\n substring(column_names, 1, len(column_names)-1) AS [columns],\n CASE WHEN i.[type] = 1 THEN 'Clustered index'\n WHEN i.[type] = 2 THEN 'Nonclustered unique index'\n WHEN i.[type] = 3 THEN 'XML index'\n WHEN i.[type] = 4 THEN 'Spatial index'\n WHEN i.[type] = 5 THEN 'Clustered columnstore index'\n WHEN i.[type] = 6 THEN 'Nonclustered columnstore index'\n WHEN i.[type] = 7 THEN 'Nonclustered hash index'\n END AS index_type\n FROM sys.objects t\n INNER JOIN sys.indexes i\n ON t.object_id = i.object_id\n cross apply (SELECT col.[name] + ', ' + CAST(ic.key_ordinal AS varchar) + ', '\n FROM sys.index_columns ic\n INNER JOIN sys.columns col\n ON ic.object_id = col.object_id\n AND ic.column_id = col.column_id\n WHERE ic.object_id = t.object_id\n AND ic.index_id = i.index_id\n ORDER BY col.column_id\n for xml path ('') ) D (column_names)\n WHERE t.is_ms_shipped <> 1\n AND index_id > 0 AND t.name = '${this.getTnPath(e.tn)}'\n ORDER BY schema_name(t.schema_id) + '.' + t.[name], i.index_id`),a=[];for(let e=0,n=0;e<t.length;++e,++n)if(t[e].cstn=t[e].index_name,t[e].cst=t[e].type,t[e].columns=t[e].columns.split(","),2===t[e].columns.length)a[n]=t[e],a[n].cn=t[e].columns[0],a[n].op=1;else{const r=t[e].columns.slice();for(let i=0;i<r.length;i+=2,++n)a[n]=JSON.parse(JSON.stringify(t[e])),a[n].cn=r[i],a[n].op=parseInt(r[i+1]);n--}n.data.list=a}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async relationList(e={}){const t=this.relationList.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`SELECT fk_tab.name AS tn, '>-' AS rel, pk_tab.name AS rtn,\n fk_cols.constraint_column_id AS no, fk_col.name AS cn, ' = ' AS [join],\n pk_col.name AS rcn, fk.name AS cstn,\n fk.update_referential_action_desc AS ur, fk.delete_referential_action_desc AS dr\n FROM sys.foreign_keys fk\n INNER JOIN sys.tables fk_tab\n ON fk_tab.object_id = fk.parent_object_id\n INNER JOIN sys.tables pk_tab\n ON pk_tab.object_id = fk.referenced_object_id\n INNER JOIN sys.foreign_key_columns fk_cols\n ON fk_cols.constraint_object_id = fk.object_id\n INNER JOIN sys.columns fk_col\n ON fk_col.column_id = fk_cols.parent_column_id\n AND fk_col.object_id = fk_tab.object_id\n INNER JOIN sys.columns pk_col\n ON pk_col.column_id = fk_cols.referenced_column_id\n AND pk_col.object_id = pk_tab.object_id\n WHERE fk_tab.name = '${this.getTnPath(e.tn)}'\n ORDER BY fk_tab.name, pk_tab.name, fk_cols.constraint_column_id`),a={NO_ACTION:"NO ACTION",CASCADE:"CASCADE",RESTRICT:"RESTRICT",SET_NULL:"SET NULL",SET_DEFAULT:"SET DEFAULT"};for(const e of t)e.ur=a[e.ur],e.dr=a[e.dr];n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async relationListAll(e={}){const t=this.relationList.name,n=new c.default;u.api(`${t}:args:`,e);try{const e=await this.raw("SELECT fk_tab.name AS tn, '>-' AS rel, pk_tab.name AS rtn,\n fk_cols.constraint_column_id AS no, fk_col.name AS cn, ' = ' AS [join],\n pk_col.name AS rcn, fk.name AS cstn,\n fk.update_referential_action_desc AS ur, fk.delete_referential_action_desc AS dr\n FROM sys.foreign_keys fk\n INNER JOIN sys.tables fk_tab\n ON fk_tab.object_id = fk.parent_object_id\n INNER JOIN sys.tables pk_tab\n ON pk_tab.object_id = fk.referenced_object_id\n INNER JOIN sys.foreign_key_columns fk_cols\n ON fk_cols.constraint_object_id = fk.object_id\n INNER JOIN sys.columns fk_col\n ON fk_col.column_id = fk_cols.parent_column_id\n AND fk_col.object_id = fk_tab.object_id\n INNER JOIN sys.columns pk_col\n ON pk_col.column_id = fk_cols.referenced_column_id\n AND pk_col.object_id = pk_tab.object_id\n ORDER BY fk_tab.name, pk_tab.name, fk_cols.constraint_column_id"),t={NO_ACTION:"NO ACTION",CASCADE:"CASCADE",RESTRICT:"RESTRICT",SET_NULL:"SET NULL",SET_DEFAULT:"SET DEFAULT"};for(const n of e)n.ur=t[n.ur],n.dr=t[n.dr];n.data.list=e}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async triggerList(e={}){const t=this.triggerList.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=`SELECT trg.name AS trigger_name,\n tab.name AS [table],\n CASE WHEN is_instead_of_trigger = 1 THEN 'Instead of'\n else 'After' END AS [activation],\n (CASE WHEN objectproperty(trg.object_id, 'ExecIsUpdateTrigger') = 1\n THEN 'Update' else '' end\n + CASE WHEN objectproperty(trg.object_id, 'ExecIsDeleteTrigger') = 1\n THEN 'Delete' else '' end\n + CASE WHEN objectproperty(trg.object_id, 'ExecIsInsertTrigger') = 1\n THEN 'Insert' else '' end\n ) AS [event],\n CASE WHEN trg.parent_class = 1 THEN 'Table trigger'\n WHEN trg.parent_class = 0 THEN 'Database trigger'\n END [class],\n CASE WHEN trg.[type] = 'TA' THEN 'Assembly (CLR) trigger'\n WHEN trg.[type] = 'TR' THEN 'SQL trigger'\n else '' END AS [type],\n CASE WHEN is_disabled = 1 THEN 'Disabled'\n else 'Active' END AS [status],\n object_definition(trg.object_id) AS [definition]\n FROM sys.triggers trg\n left join sys.objects tab\n ON trg.parent_id = tab.object_id\n WHERE tab.name = '${this.getTnPath(e.tn)}'\n ORDER BY trg.name;`,a=await this.sqlClient.raw(t);for(let e=0;e<a.length;e++){const t=a[e];t.statement=t.definition,t.trigger=t.trigger_name,t.event=t.event.toUpperCase(),t.timing=t.activation.toUpperCase()}n.data.list=a}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async functionList(e={}){const t=this.functionList.name,n=new c.default;u.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT o.name AS function_name,definition, o.create_date AS created, o.modify_date AS modified,o.*\n FROM sys.sql_modules AS m\n JOIN sys.objects AS o ON m.object_id = o.object_id\n AND type IN ('FN', 'IF', 'TF')");for(let t=0;t<e.length;t++){const n=e[t];"FN"===n.type&&(n.type="FUNCTION")}n.data.list=e}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async procedureList(e={}){const t=this.procedureList.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT SPECIFIC_NAME AS procedure_name, ROUTINE_TYPE AS [type],LAST_ALTERED AS modified, CREATED AS created,ROUTINE_DEFINITION AS definition ,pc.*\n FROM ${e.databaseName}.INFORMATION_SCHEMA.ROUTINES AS pc WHERE routine_type = 'PROCEDURE'`);n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async viewList(e={}){const t=this.viewList.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SELECT v.name AS view_name,v.*,m.* FROM sys.views v INNER JOIN sys.schemas s ON s.schema_id = v.schema_id AND schema_name(v.schema_id) = ?\n INNER JOIN sys.sql_modules AS m ON m.object_id = v.object_id",[this.schema||"dbo"]);n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async functionRead(e={}){const t=this.functionRead.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT o.name AS function_name,definition AS create_function, o.create_date AS created, o.modify_date AS modified,o.*\n FROM sys.sql_modules AS m\n JOIN sys.objects AS o ON m.object_id = o.object_id\n AND type IN ('FN', 'IF', 'TF') AND o.name = '${e.function_name}'`);for(let e=0;e<t.length;e++){const n=t[e];"FN"===n.type&&(n.type="FUNCTION")}n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async procedureRead(e={}){const t=this.procedureRead.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT SPECIFIC_NAME AS procedure_name, ROUTINE_TYPE AS [type],LAST_ALTERED AS modified, CREATED AS created,ROUTINE_DEFINITION AS create_procedure ,pc.*\n FROM ${e.databaseName}.INFORMATION_SCHEMA.ROUTINES AS pc WHERE routine_type = 'PROCEDURE' AND SPECIFIC_NAME='${e.procedure_name}'`);n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async viewRead(e={}){const t=this.viewRead.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT v.name AS view_name,v.*,m.*, m.definition AS view_definition FROM sys.views v INNER JOIN sys.schemas s ON s.schema_id = v.schema_id\n INNER JOIN sys.sql_modules AS m ON m.object_id = v.object_id WHERE v.name = '${e.view_name}'`);n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async triggerRead(e={}){const t=this.triggerRead.name,n=new c.default;u.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw(`SELECT [so].[name] AS [trigger_name], [so].[crdate] AS [created],\n USER_NAME([so].[uid]) AS [trigger_owner], USER_NAME([so2].[uid]) AS [ts],\n OBJECT_NAME([so].[parent_obj]) AS [tn],\n OBJECTPROPERTY( [so].[id], 'ExecIsUpdateTrigger') AS [isupdate],\n OBJECTPROPERTY( [so].[id], 'ExecIsDeleteTrigger') AS [isdelete],\n OBJECTPROPERTY( [so].[id], 'ExecIsInsertTrigger') AS [isinsert],\n OBJECTPROPERTY( [so].[id], 'ExecIsAfterTrigger') AS [isafter],\n OBJECTPROPERTY( [so].[id], 'ExecIsInsteadOfTrigger') AS [isinsteadof],\n OBJECTPROPERTY([so].[id], 'ExecIsTriggerDisabled') AS [disabled],df.definition\n FROM sysobjects AS [so]\n INNER JOIN sys.sql_modules AS df ON object_id = so.id\n INNER JOIN sysobjects AS so2 ON so.parent_obj = so2.Id\n WHERE [so].[type] = 'TR' AND so2.name = '${this.getTnPath(e.tn)}' AND [so].[name] = '${e.trigger_name}'`);for(let e=0;e<t.length;e++){const n=t[e];n.table=n.tn,n.statement=n.definition,n.trigger=n.trigger_name,n.event=[],n.timing=[]}n.data.list=t}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async schemaCreate(e={}){const t=this.schemaCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{0===(await this.sqlClient.raw(`SELECT name FROM sys.databases WHERE name = '${e.database_name}'`)).length&&await this.sqlClient.raw(`CREATE DATABASE ${e.database_name}`)}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async schemaDelete(e={}){const t=this.schemaDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=JSON.parse(JSON.stringify(this.connectionConfig));if(t.connection.database===e.database_name){delete t.connection.database;const e=(0,r.default)(t);await this.sqlClient.destroy(),this.sqlClient=e}await this.sqlClient.raw(`ALTER DATABASE ${e.database_name} SET SINGLE_USER WITH ROLLBACK IMMEDIATE;\n DROP DATABASE ${e.database_name};`)}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async triggerDelete(e={}){const t=this.triggerDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=`${this.querySeparator()}DROP TRIGGER IF EXISTS ${e.trigger_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:`${this.querySeparator()}${e.oldStatement}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async functionDelete(e={}){const t=this.functionDelete.name,n=new c.default;u.api(`${t}:args:`,e);const a=this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name}`,r=this.querySeparator()+e.create_function;try{await this.sqlClient.raw(a),n.data.object={upStatement:[{sql:a}],downStatement:[{sql:r}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async procedureDelete(e={}){const t=this.procedureDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP PROCEDURE IF EXISTS ${e.procedure_name}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name}`}],downStatement:[{sql:this.querySeparator()+`${e.create_procedure}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async functionCreate(e={}){const t=this.functionCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`${e.create_function}`),n.data.object={upStatement:[{sql:this.querySeparator()+`${e.create_function}`}],downStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async functionUpdate(e={}){const t=this.functionUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP FUNCTION IF EXISTS ${e.function_name}`),await this.sqlClient.raw(`${e.create_function}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name};${this.querySeparator()}\n${e.create_function}`}],downStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name};${this.querySeparator()} ${e.oldCreateFunction}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async procedureCreate(e={}){const t=this.procedureCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`${e.create_procedure}`),n.data.object={upStatement:[{sql:this.querySeparator()+`${e.create_procedure}`}],downStatement:[{sql:this.querySeparator()+`DROP PROCEDURE ${e.procedure_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async procedureUpdate(e={}){const t=this.procedureUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP PROCEDURE IF EXISTS ${e.procedure_name}`),await this.sqlClient.raw(`${e.create_procedure}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name};${this.querySeparator()}\n${e.create_procedure}`}],downStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name};${this.querySeparator()}${e.oldCreateProcedure}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async triggerCreate(e={}){const t=this.triggerCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=this.genQuery(`CREATE TRIGGER ?? ON ?? \n${e.timing} ${e.event}\n as\n${e.statement}`,[e.trigger_name,this.getTnPath(e.tn)]);await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+`DROP TRIGGER ${e.trigger_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async triggerUpdate(e={}){const t=this.triggerUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{await this.sqlClient.raw(`ALTER TRIGGER ${e.trigger_name} ON ${this.getTnPath(e.tn)} \n${e.timing} ${e.event}\n AS\n${e.statement}`),n.data.object={upStatement:[{sql:this.querySeparator()+`ALTER TRIGGER ${e.trigger_name} ON ${this.getTnPath(e.tn)} \n${e.timing} ${e.event}\n AS\n${e.statement}`}],downStatement:[{sql:this.querySeparator()+`ALTER TRIGGER ${e.trigger_name} ON ${this.getTnPath(e.tn)} \n${e.timing} ${e.event}\n AS\n${e.statement}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async viewCreate(e={}){const t=this.viewCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=e.view_definition;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+`DROP VIEW ${e.view_name}`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async viewUpdate(e={}){const t=this.viewUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=e.view_definition;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+`DROP VIEW ${e.view_name} ; ${this.querySeparator()}${e.oldViewDefination};`}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async viewDelete(e={}){const t=this.viewDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{const t=`DROP VIEW ${e.view_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+e.oldViewDefination}]}}catch(e){throw u.ppe(e,t),e}return u.api(`${t}: result`,n),n}async tableCreate(e){const t=this.tableCreate.name,n=new c.default;u.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.createTable(e.tn,e);await this.sqlClient.raw(t);const a=this.querySeparator()+this.sqlClient.schema.withSchema(this.schema).dropTable(e.table).toString();this.emit(`Success : ${t}`);const r=await this.afterTableCreate(e);n.data.object={upStatement:[{sql:t},...r.upStatement],downStatement:[...r.downStatement,{sql:a}]}}catch(e){throw u.ppe(e,t),e}return n}async afterTableCreate(e){const t={upStatement:[],downStatement:[]};let n="",a="";const r=e.columns.find((e=>e.pk));if(!r)return t;for(let t=0;t<e.columns.length;t++){const i=e.columns[t];if(i.au){const t=`[${this.schema}].[xc_trigger_${e.table_name}_${i.column_name}]`,s=this.querySeparator()+this.genQuery("CREATE TRIGGER ?? ON ?? AFTER UPDATE\n AS\n BEGIN\n SET NOCOUNT ON;\n UPDATE ?? Set ?? = GetDate() WHERE ?? in (SELECT ?? FROM Inserted)\n END;",[t,this.getTnPath(e.table_name),this.getTnPath(e.table_name),i.column_name,r.column_name,r.column_name]);n+=s,await this.sqlClient.raw(s),a+=this.querySeparator()+`DROP TRIGGER IF EXISTS ${this.schema}.${t};`}}return t.upStatement[0]={sql:n},t.downStatement[0]={sql:a},t}async afterTableUpdate(e){const t={upStatement:[],downStatement:[]};let n="",a="";const r=e.columns.find((e=>e.pk));if(!r)return t;for(let t=0;t<e.columns.length;t++){const i=e.columns[t];if(i.au&&1===i.altered){const t=`xc_trigger_${e.table_name}_${i.column_name}`,s=this.querySeparator()+`CREATE TRIGGER [${this.schema}].[${t}] ON [${this.schema}].[${e.table_name}] AFTER UPDATE\n AS\n BEGIN\n SET NOCOUNT ON;\n UPDATE [${this.schema}].[${e.table_name}] Set [${i.column_name}] = GetDate() WHERE [${r.column_name}] in (SELECT [${r.column_name}] FROM Inserted)\n END;`;n+=s,await this.sqlClient.raw(s),a+=this.querySeparator()+`DROP TRIGGER IF EXISTS [${this.schema}].[${t}];`}}return t.upStatement[0]={sql:n},t.downStatement[0]={sql:a},t}async tableUpdate(e){const t=this.tableUpdate.name,n=new c.default;u.api(`${t}:args:`,e);try{e.table=e.tn;const t=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;let a="",r="";for(let n=0;n<e.columns.length;++n){const s=(0,i.default)(t,{cn:e.columns[n].cno});4&e.columns[n].altered?(a+=this.alterTableRemoveColumn(e.table,e.columns[n],s,a),r+=this.alterTableAddColumn(e.table,s,e.columns[n],r)):2&e.columns[n].altered||8&e.columns[n].altered?(a+=this.alterTableChangeColumn(e.table,e.columns[n],s,a),r+=this.alterTableChangeColumn(e.table,s,e.columns[n],r)):1&e.columns[n].altered&&(a+=this.alterTableAddColumn(e.table,e.columns[n],s,a),r+=this.alterTableRemoveColumn(e.table,e.columns[n],s,r))}a+=this.alterTablePK(e.table,e.columns,e.originalColumns,a),r+=this.alterTablePK(e.table,e.originalColumns,e.columns,r),await this.sqlClient.raw(a),console.log(a);const s=await this.afterTableUpdate(e);n.data.object={upStatement:[{sql:this.querySeparator()+a},...s.upStatement],downStatement:[...s.downStatement,{sql:this.querySeparator()+r}]}}catch(e){throw u.ppe(e,t),e}return n}async tableDelete(e){const t=this.tableDelete.name,n=new c.default;u.api(`${t}:args:`,e);try{e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.sqlClient.schema.withSchema(this.schema).dropTable(e.tn).toString();let a=this.querySeparator()+this.createTable(e.tn,e);this.emit(`Success : ${t}`);let r=await this.relationList({tn:e.tn});r=r.data.list;for(const e of r)a+=this.querySeparator()+await this.sqlClient.withSchema(this.schema).schema.table(e.tn,(t=>{t=t.foreign(e.cn,null).references(e.rcn).on(this.getTnPath(e.rtn)),e.ur&&(t=t.onUpdate(e.ur)),e.dr&&t.onDelete(e.dr)})).toQuery();let i=await this.indexList(e);i=i.data.list.filter((({type:e,key_name:t})=>"Primary key"!==e&&-1===t.indexOf("fk_")));const s={};for(const{key_name:t,non_unique:n,cn:a}of i)t in s||(s[t]={tn:this.getTnPath(e.tn),indexName:t,non_unique:n,columns:[]}),s[t].columns.push(a);for(const{non_unique:e,tn:t,columns:n,key_name:r}of Object.values(s))a+=this.querySeparator()+this.sqlClient.schema.withSchema(this.schema).table(t,(function(t){e?t.index(n,r):t.unique(n,r)})).toQuery();await this.sqlClient.schema.withSchema(this.schema).dropTable(e.tn),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw u.ppe(e,t),e}return n}async relationCreate(e){const t=this.relationCreate.name,n=new c.default;u.api(`${t}:args:`,e);const a=e.foreignKeyName||null;try{const t=this;await this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(n){n=n.foreign(e.childColumn,a).references(e.parentColumn).on(t.getTnPath(e.parentTable)),e.onUpdate&&(n=n.onUpdate(e.onUpdate)),e.onDelete&&n.onDelete(e.onDelete)}));const r=this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(n){n=n.foreign(e.childColumn,a).references(e.parentColumn).on(t.getTnPath(e.parentTable)),e.onUpdate&&(n=n.onUpdate(e.onUpdate)),e.onDelete&&n.onDelete(e.onDelete)}));await r;const i=this.querySeparator()+r.toQuery();this.emit(`Success : ${i}`);const s=this.querySeparator()+this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(t){t.dropForeign(e.childColumn,a)})).toQuery();n.data.object={upStatement:[{sql:i}],downStatement:[{sql:s}]}}catch(e){throw u.ppe(e,t),e}return n}async relationDelete(e){const t=this.relationDelete.name,n=new c.default;u.api(`${t}:args:`,e);const a=e.foreignKeyName||null;try{const t=this;await this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(t){t.dropForeign(e.childColumn,a)}));const r=this.querySeparator()+this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(t){t.dropForeign(e.childColumn,a)})).toQuery(),i=this.querySeparator()+await this.sqlClient.schema.table(this.getTnPath(e.childTable),(function(n){n.foreign(e.childColumn,a).references(e.parentColumn).on(t.getTnPath(e.parentTable))})).toQuery();n.data.object={upStatement:[{sql:r}],downStatement:[{sql:i}]}}catch(e){throw u.ppe(e,t),e}return n}async tableCreateStatement(e){const t=this.tableCreateStatement.name;let n=new c.default;u.api(`${t}:args:`,e);try{n=await this.columnList(e);const t=this.createTable(e.tn,{tn:e.tn,columns:n.data.list});n.data=t}catch(e){throw u.ppe(e,t),e}return n}async tableInsertStatement(e){const t=this.tableCreateStatement.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data=`INSERT INTO \`${this.getTnPath(e.tn)}\` (`;let t=" VALUES (";const a=await this.columnList(e);if(a.data&&a.data.list)for(let e=0;e<a.data.list.length;++e)e?(n.data+=`, \`${a.data.list[e].cn}\`\n\t`,t+=`, <${a.data.list[e].cn}>\n\t`):(n.data+=`\n${a.data.list[e].cn}\n\t`,t+=`\n<${a.data.list[e].cn}>\n\t`);n.data+=")",t+=");",n.data+=t}catch(e){throw u.ppe(e,t),e}return n}async tableUpdateStatement(e){const t=this.tableUpdateStatement.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data=`UPDATE ${this.getTnPath(e.tn)} \nSET\n`;const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`,${t.data.list[e].cn} = <\`${t.data.list[e].cn}\`>\n\t`:`${t.data.list[e].cn} = <\`${t.data.list[e].cn}\`>\n\t`;n.data+=";"}catch(e){throw u.ppe(e,t),e}return n}async tableDeleteStatement(e){const t=this.tableDeleteStatement.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data=`DELETE FROM ${this.getTnPath(e.tn)} WHERE ;`}catch(e){throw u.ppe(e,t),e}return n}async tableTruncateStatement(e){const t=this.tableTruncateStatement.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data=`TRUNCATE TABLE ${this.getTnPath(e.tn)};`}catch(e){throw u.ppe(e,t),e}return n}async tableSelectStatement(e){const t=this.tableSelectStatement.name,n=new c.default;u.api(`${t}:args:`,e);try{n.data="SELECT ";const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`, ${t.data.list[e].cn}\n\t`:`${t.data.list[e].cn}\n\t`;n.data+=` FROM ${e.tn};`}catch(e){throw u.ppe(e,t),e}return n}alterTablePK(e,t,n,a,r=!1){const i=[],s=[];let o=0;for(let e=0;e<t.length;++e)t[e].pk&&4!==t[e].altered&&s.push(t[e].cn);for(let e=0;e<n.length;++e)n[e].pk&&i.push(n[e].cn);if(s.length===i.length){for(let e=0;e<s.length;++e)if(i[e]!==s[e]){o=1;break}}else o=s.length-i.length;let c="";return(s.length||i.length)&&o&&(c+=i.length?",DROP PRIMARY KEY":"",s.length&&(c+=r?this.genQuery(", PRIMARY KEY(??)",[s],!0):this.genQuery("ALTER TABLE ?? ADD PRIMARY KEY(??)",[this.getTnPath(e),s],!0))),c}getTnPath(e){return this.schema?`${this.schema}.${e}`:e}alterTableRemoveColumn(e,t,n,a){let r=a?";":"";return t.cdf&&(r+=this.genQuery("\nALTER TABLE ?? DROP CONSTRAINT ??;",[this.getTnPath(e),t.default_constraint_name||`DF_${e}_${t.cn}`],!0)),r+=this.genQuery("\nALTER TABLE ?? DROP COLUMN ??",[this.getTnPath(e),t.cn],!0),r}createTableColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,0)}alterTableAddColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,1)}alterTableChangeColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,2)}createTable(e,t){let n="";for(let a=0;a<t.columns.length;++a)n+=this.createTableColumn(e,t.columns[a],null,n);return n+=this.alterTablePK(e,t.columns,[],n,!0),n=this.genQuery(`CREATE TABLE ?? (${n});`,[this.getTnPath(t.tn)],!0),n}alterTableColumn(e,t,n,a,r=2){let i="";const s=this.sanitiseDefaultValue(t.cdf),o=!0,c=!function(e){switch(e){case"datetimeoffset":case"geography":case"geometry":case"heirarchyid":case"image":case"money":case"real":case"json":case"smalldatetime":case"smallmoney":case"text":case"time":case"timestamp":case"int":case"tinyint":case"bigint":case"bit":case"smallint":case"float":case"uniqueidentifier":case"xml":return!0;default:return!1}}(t.dt)&&t.dtxp?`(${t.dtxp}${t.dtxs?`,${t.dtxs}`:""})`:"";return 0===r?(i=a?",":"",i+=this.genQuery(`?? ${this.sanitiseDataType(t.dt)}`,[t.cn],o),i+=c,i+=t.rqd?" NOT NULL":" NULL",i+=t.ai?" IDENTITY(1,1)":" ",i+=s?this.genQuery(` CONSTRAINT ?? DEFAULT ${s}`,[`DF_${e}_${t.cn}`],o):"",s&&(t.default_constraint_name=`DF_${e}_${t.cn}`)):1===r?(i+=this.genQuery(` ADD ?? ${this.sanitiseDataType(t.dt)}`,[t.cn],o),i+=c,i+=t.rqd?" NOT NULL":" NULL",i+=t.ai?" IDENTITY(1,1)":" ",i+=s?this.genQuery(` CONSTRAINT ?? DEFAULT ${s}`,[`DF_${e}_${t.cn}`],o):" ",i=this.genQuery(`ALTER TABLE ?? ${i};`,[this.getTnPath(e)],o),s&&(t.default_constraint_name=`DF_${e}_${t.cn}`)):(t.cn!==n.cn&&(i+=this.genQuery("\nEXEC sp_rename ?, ?, 'COLUMN';\n",[`${this.getTnPath(e)}.${t.cno}`,`${t.cn}`],o)),t.dtxp===n.dtxp&&t.dtxs===n.dtxs&&t.dt===n.dt&&t.rqd===n.rqd||(i+=this.genQuery(`\nALTER TABLE ?? ALTER COLUMN ?? ${this.sanitiseDataType(t.dt)}${c}`,[this.getTnPath(e),t.cn],o),i+=t.rqd?" NOT NULL;\n":" NULL;\n"),t.cdf===n.cdf&&t.cn===n.cn||(n.default_constraint_name&&(i+=this.genQuery("\nALTER TABLE ?? DROP CONSTRAINT ??;",[this.getTnPath(e),n.default_constraint_name],o)),t.cdf&&(i+=this.genQuery(`\nALTER TABLE ?? ADD CONSTRAINT ?? DEFAULT ${this.sanitiseDefaultValue(t.cdf)} FOR ??;`,[this.getTnPath(e),`DF_${t.tn}_${t.cn}`,t.cn],o),t.default_constraint_name=`DF_${t.tn}_${t.cn}`))),i}get schema(){return this.connectionConfig&&this.connectionConfig.searchPath&&this.connectionConfig.searchPath[0]||"dbo"}async totalRecords(e={}){const t=this.totalRecords.name,n=new c.default;u.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT SUM(RecordCount) AS TotalRecords FROM\n (SELECT (SCHEMA_NAME(A.schema_id) + '.' + A.Name) AS TableName, AVG(B.rows) AS RecordCount\n FROM sys.objects A\n INNER JOIN sys.partitions B ON A.object_id = B.object_id\n WHERE A.type = 'U'\n GROUP BY A.schema_id,A.Name) src");n.data=e[0]}catch(e){n.code=-1,n.message=e.message,n.object=e}finally{u.api(`${t} :result: ${n}`)}return n}}t.default=l},8187:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=s(n(6928)),c=n(9023),u=s(n(1832)),l=s(n(943)),p=s(n(9020)),d=s(n(133)),m=s(n(4688)),f=s(n(2745)),h=n(6331),b=s(n(8872)),g=s(n(5924)),y=s(n(2196)),v=s(n(5578)),_=s(n(4020)),E=s(n(9338)),x=s(n(7495)),T=i(n(5241)),O=new g.default("MysqlClient"),D=new y.default;class w extends _.default{constructor(e){super(e),this.queries=E.default,this._version={}}emit(e){O.api(e),D.evt.emit("UI",{status:0,data:`SQL : ${e}`})}emitW(e){O.warn(e),D.evt.emit("UI",{status:1,data:`SQL : ${e}`})}emitE(e){O.error(e),D.evt.emit("UI",{status:-1,data:`SQL : ${e}`})}async schemaCreateWithCredentials(e){const t=this.schemaCreateWithCredentials.name,n=new v.default;O.api(`${t}:args:`,e);try{e.schema||(e.schema=`nc${(0,h.nanoid)(8)}`),e.user||(e.user=`nc${(0,h.nanoid)(8)}`),e.password||(e.password=(0,h.nanoid)(16));const t=await this.sqlClient.raw("create database if not exists ??",[e.schema]);await this.sqlClient.raw("CREATE USER ?@'localhost' IDENTIFIED WITH mysql_native_password BY ?",[e.user,e.password]),await this.sqlClient.raw("GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, INDEX, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES PRIVILEGES ON ??.* TO ?@'localhost'",[e.schema,e.user]),await this.sqlClient.raw("FLUSH PRIVILEGES"),O.debug("Create database if not exists",t),n.object=e}catch(e){n.code=-1,n.message=e.message,n.object=e}return n}async testConnection(e={}){const t=this.testConnection.name,n=new v.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw("SELECT 1+1 as data")}catch(e){n.code=-1,n.message=e.message,n.object=e}finally{n.code?this.emitE(`TestConnection result: ${n.message}`):this.emit(`TestConnection result: ${n.code}`)}return n}getKnexDataTypes(){const e=new v.default;return e.data.list=["int","tinyint","smallint","mediumint","bigint","float","decimal","double","real","bit","boolean","serial","date","datetime","timestamp","time","year","char","varchar","nchar","text","tinytext","mediumtext","longtext","binary","varbinary","blob","tinyblob","mediumblob","longblob","enum","set","time","geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon","json"],e}async version(e){const t=this.version.name,n=new v.default;O.api(`${t}:args:`,e);try{n.data.object={};const e=await this.sqlClient.raw("select version() as version");O.debug(e[0][0]),n.data.object.version=e[0][0].version;const t=e[0][0].version.split(".");t.length&&3===t.length?(n.data.object.primary=t[0],n.data.object.major=t[1],n.data.object.minor=t[2],n.data.object.key=t[0]+t[1]):(n.code=-1,n.message=`Invalid version : ${e[0][0].version}`)}catch(e){O.ppe(e),n.code=-1,n.message=e.message}finally{O.api(`${t} :result: %o`,n)}return n}async getDataTypes(e={}){const t=this.getDataTypes.name,n=new v.default;O.api(`${t}:args:`,e);try{await this.version(),this._version.key in this.types?n.data.list=this.types[this._version.key]:n.data.list=this.types.default}catch(e){O.ppe(e),n.code=-1,n.message=e.message}finally{O.api(`${t} :result: ${n}`)}return n}async createDatabaseIfNotExists(e={}){const t=this.createDatabaseIfNotExists.name,n=new v.default;O.api(`${t}:args:`,e,this.connectionConfig);try{const n=JSON.parse(JSON.stringify(this.connectionConfig));delete n.connection.database;const a=(0,u.default)(n),r=await a.raw(this.queries[t].default.sql,[e.database]);O.debug("Create database if not exists",r),await a.destroy()}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async dropDatabase(e={}){const t=this.dropDatabase.name,n=new v.default;O.api(`${t}:args:`,e);try{O.api("dropping database:",e),await this.sqlClient.raw(this.queries[t].default.sql,[e.database])}catch(e){e&&O.ppe(e.message,t)}return O.api(`${t}: result`,n),n}async createTableIfNotExists(e={}){const t=this.createTableIfNotExists.name,n=new v.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw(this.sqlClient.schema.hasTable(e.tn).toQuery())?O.debug(`${e.tn} tables exists`):(await this.sqlClient.raw(this.sqlClient.schema.createTable(e.tn,(function(e){e.increments(),e.string("title").notNullable(),e.string("titleDown").nullable(),e.string("description").nullable(),e.integer("batch").nullable(),e.string("checksum").nullable(),e.integer("status").nullable(),e.dateTime("created"),e.timestamps()})).toQuery()),O.debug("Table created:",`${e.tn}`))}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async hasTable(e){const t=this.hasTable.name,n=new v.default;O.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(this.sqlClient.schema.hasTable(e.tn).toQuery());n.data.value=t}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async hasDatabase(e){const t=this.hasDatabase.name,n=new v.default;O.api(`${t}:args:`,e);try{const a=await this.sqlClient.raw(this.queries[t].default.sql,[`${e.databaseName}`]);n.data.value=a.length>0}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async databaseList(e={}){const t=this.databaseList.name,n=new v.default;O.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SHOW databases");if(O.debug(e.length),2===e.length){for(let t=0;t<e[0].length;++t)e[0][t].database_name=e[0][t].Database;n.data.list=e[0]}else O.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n.data.list.length),n}async tableList(e){const t=this.tableList.name,n=new v.default;O.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SHOW FULL TABLES WHERE TABLE_TYPE NOT LIKE 'VIEW'");let t;if(2===e.length){for(let n=0;n<e[0].length;++n)t||(t=Object.keys(e[0][n]).find((e=>/^Tables_in_/i.test(e)))),e[0][n].tn=e[0][n][t];n.data.list=e[0]}else O.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[];this.emitTele({mysql:1,table_count:n.data.list.length,api_count:10*n.data.list.length})}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n.data.list),n}async schemaList(e){const t=this.schemaList.name,n=new v.default;O.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("select schema_name \n from \n information_schema.schemata \n where \n schema_name not in ('information_schema','performance_schema','sys','mysql') \n order by schema_name;");2===e.length?n.data.list=e[0].map((e=>(0,p.default)(e,((e,t)=>t.toLowerCase())))):(O.debug("Unknown response for schemaList:",n.data.list.length),n.data.list=[])}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n.data.list),n}async columnList(e={}){var t;const n=this.columnList.name,a=new v.default;O.api(`${n}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const r=await this.sqlClient.raw(await this._getQuery({func:n}),[e.databaseName,e.tn,e.databaseName,e.tn]);if(2===r.length){const e=[];r[0].length||(a.code=-1,a.message="Table not found or Invalid table name");for(let n=0;n<r[0].length;++n){const a={};if(r[0][n]=(0,p.default)(r[0][n],((e,t)=>t.toLowerCase())),"57"!==this._version.key&&"80"!==this._version.key||(a.dp=r[0][n].dp,a.generated_expression=r[0][n].generated_expression),a.tn=r[0][n].tn,a.cn=r[0][n].cn,a.cno=r[0][n].cn,a.dt=r[0][n].dt,a.np=r[0][n].np,a.ns=r[0][n].ns,a.clen=r[0][n].clen,a.cop=r[0][n].cop,a.pk="PRI"===r[0][n].ck,a.nrqd="NO"!==r[0][n].nrqd,a.rqd=!a.nrqd,r[0][n].ct=r[0][n].ct||"",a.un=-1!==r[0][n].ct.indexOf("unsigned"),a.ct=r[0][n].ct||"",r[0][n].ext=r[0][n].ext||"",a.ai=-1!==r[0][n].ext.indexOf("auto_increment"),r[0][n].cst=r[0][n].cst||" ",a.unique=-1!==r[0][n].cst.indexOf("UNIQUE"),"timestamp"===a.dt||"datetime"===a.dt)if(r[0][n].cdf&&r[0][n].ext){const e=r[0][n].ext;e.includes("DEFAULT_GENERATED")?a.cdf=r[0][n].cdf+e.substring(e.lastIndexOf("DEFAULT_GENERATED")+17):a.cdf=`${r[0][n].cdf} ${e}`}else a.cdf=r[0][n].cdf;else a.cdf=r[0][n].cdf;(null===(t=this._version)||void 0===t?void 0:t.version)&&this._version.version.includes("Maria")&&"NULL"===a.cdf&&(a.cdf=null),a.cc=r[0][n].cc,a.csn=r[0][n].csn,a.dtx="specificType","int"===a.dt||"tinyint"===a.dt||"mediumint"===a.dt||"bigint"===a.dt||"enum"===a.dt||"set"===a.dt?(a.dtxp=a.ct.substring(a.ct.lastIndexOf("(")+1,a.ct.lastIndexOf(")")),a.dtxs=r[0][n].ns):(a.dtxp=r[0][n].clen||r[0][n].np||r[0][n].dp,a.dtxs=r[0][n].ns),a.au=!1,e.push(a)}a.data.list=e}else O.debug("Unknown response for databaseList:",r),a.data.list=[]}catch(e){throw O.ppe(e,n),e}return O.api(`${n}: result list length = `,a.data.list.length),a}async indexList(e={}){const t=this.indexList.name,n=new v.default;O.api(`${t}:args:`,e);try{const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.tn]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,p.default)(n,(function(e,t){return t.toLowerCase()})),n.cn=n.column_name,delete n.column_name,n.tn=n.table,delete n.table,n.non_unique_original=n.non_unique,e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[];O.api(`${t}: result %O`,n.data.list)}catch(e){throw O.ppe(e,t),e}return n}async constraintList(e={}){const t=this.constraintList.name,n=new v.default;O.api(`${t}:args:`,e);try{const a=await this.sqlClient.raw(await this._getQuery({func:t}),[this.connectionConfig.connection.database,e.tn]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,p.default)(n,(function(e,t){return t.toLowerCase()})),e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async relationList(e={}){const t=this.relationList.name,n=new v.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.databaseName,e.tn]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,p.default)(n,(function(e,t){return t.toLowerCase()})),e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async relationListAll(e={}){const t=this.relationListAll.name,n=new v.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,{databaseName:e.databaseName});if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,p.default)(n,(function(e,t){return t.toLowerCase()})),e.push(n)}n.data.list=e,this.emitTele({mysql:1,relation_count:n.data.list.length,api_count:10*n.data.list.length})}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async triggerList(e={}){const t=this.triggerList.name,n=new v.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[`%${e.tn}%`]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,p.default)(n,(function(e,t){return t.toLowerCase()})),n.trigger_name=n.trigger,e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async functionList(e={}){const t=this.functionList.name,n=new v.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.databaseName]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,p.default)(n,(function(e,t){return t.toLowerCase()})),n.function_name=n.name,e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async procedureList(e={}){const t=this.procedureList.name,n=new v.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.databaseName]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,p.default)(n,(function(e,t){return t.toLowerCase()})),n.procedure_name=n.name,e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async viewList(e={}){const t=this.viewList.name,n=new v.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[]);let r;if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){r||(r=Object.keys(a[0][t]).find((e=>/^Tables_in_/i.test(e))));const n=a[0][t];n.view_name=n[r],e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n.data.list.length),n}async functionRead(e={}){const t=this.functionRead.name,n=new v.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.function_name]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,p.default)(n,(function(e,t){return t.toLowerCase()})),n.create_function=n["create function"],e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async procedureRead(e={}){const t=this.procedureRead.name,n=new v.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.procedure_name]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,p.default)(n,(function(e,t){return t.toLowerCase()})),n.create_procedure=n["create procedure"],e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async viewRead(e={}){const t=this.viewRead.name,n=new v.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.databaseName,e.view_name]);if(2===a.length){const e=[];for(let t=0;t<a[0].length;++t){let n=a[0][t];n=(0,p.default)(n,(function(e,t){return t.toLowerCase()})),e.push(n)}n.data.list=e}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async triggerRead(e={}){const t=this.triggerRead.name,n=new v.default;O.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const a=await this.sqlClient.raw(this.queries[t].default.sql,[e.databaseName]);if(2===a.length){const t=[];for(let n=0;n<a[0].length;++n){const r=a[0][n];r.view_name=r[`Tables_in_${e.databaseName}`],t.push(r)}n.data.list=t}else O.debug("Unknown response for databaseList:",a),n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async schemaCreate(e={}){const t=this.triggerList.name;return O.api(`${t}:args:`,e),await this.sqlClient.raw(this.queries[t].default.sql,[e.database_name])}async schemaDelete(e={}){const t=this.schemaDelete.name;return O.api(`${t}:args:`,e),await this.sqlClient.raw(this.queries[t].default.sql,[e.database_name])}async triggerCreate(e={}){const t=this.triggerCreate.name,n=new v.default;O.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`DROP TRIGGER ${e.trigger_name}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async triggerUpdate(e={}){const t=this.triggerUpdate.name,n=new v.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw("DROP TRIGGER ??",[e.trigger_name]),await this.sqlClient.raw(`CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`),n.data.object={upStatement:[{sql:`${this.querySeparator()}DROP TRIGGER ${e.trigger_name};\n${this.querySeparator()}CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`}],downStatement:[{sql:`${this.querySeparator()}CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.oldStatement}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async triggerDelete(e={}){const t=this.triggerDelete.name,n=new v.default;O.api(`${t}:args:`,e);try{const t=`${this.querySeparator()}DROP TRIGGER ${e.trigger_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:`${this.querySeparator()}CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.oldStatement}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async viewCreate(e={}){const t=this.viewCreate.name,n=new v.default;O.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE VIEW ${e.view_name} AS \n${e.view_definition}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`DROP VIEW ${e.view_name}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async viewUpdate(e={}){const t=this.viewUpdate.name,n=new v.default;O.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE OR REPLACE VIEW ${e.view_name} AS \n${e.view_definition}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`CREATE VIEW ${e.view_name} AS \n${e.oldViewDefination}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async viewDelete(e={}){const t=this.viewDelete.name,n=new v.default;O.api(`${t}:args:`,e);try{const t=this.querySeparator()+`DROP VIEW ${e.view_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`CREATE VIEW ${e.view_name} AS \n${e.oldViewDefination}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async functionCreate(e={}){const t=this.functionCreate.name,n=new v.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw(`${e.create_function}`),n.data.object={upStatement:[{sql:this.querySeparator()+`${e.create_function}`}],downStatement:[{sql:this.querySeparator()+`DROP FUNCTION ${e.function_name}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async functionUpdate(e={}){const t=this.functionUpdate.name,n=new v.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP FUNCTION IF EXISTS ${e.function_name}`),await this.sqlClient.raw(`${e.create_function}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name};${this.querySeparator()}\n${e.create_function}`}],downStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name};${this.querySeparator()}${e.oldCreateFunction}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async functionDelete(e={}){const t=this.functionDelete.name,n=new v.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP FUNCTION IF EXISTS ${e.function_name}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP FUNCTION IF EXISTS ${e.function_name}`}],downStatement:[{sql:this.querySeparator()+`${e.create_function}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async procedureCreate(e={}){const t=this.procedureCreate.name,n=new v.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw(`${e.create_procedure}`),n.data.object={upStatement:[{sql:this.querySeparator()+`${e.create_procedure}`}],downStatement:[{sql:this.querySeparator()+`DROP PROCEDURE ${e.procedure_name}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async procedureUpdate(e={}){const t=this.procedureUpdate.name,n=new v.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw("DROP PROCEDURE IF EXISTS ??",[e.procedure_name]),await this.sqlClient.raw(`${e.create_procedure}`),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name}; ${this.querySeparator()} \n${e.create_procedure}`}],downStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name}; ${this.querySeparator()} ${e.oldCreateProcedure}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async procedureDelete(e={}){const t=this.procedureDelete.name,n=new v.default;O.api(`${t}:args:`,e);try{await this.sqlClient.raw("DROP PROCEDURE IF EXISTS ??",[e.procedure_name]),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP PROCEDURE IF EXISTS ${e.procedure_name}`}],downStatement:[{sql:this.querySeparator()+`${e.create_procedure}`}]}}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}async _getQuery(e){try{if((0,l.default)(this._version)){const t=await this.version();this._version=t.data.object,O.debug(`Version was empty for ${e.func}: population version for database as`,this._version)}return this._version.key in this.queries[e.func]?this.queries[e.func][this._version.key].sql:this.queries[e.func].default.sql}catch(e){throw O.ppe(e,this._getQuery.name),e}}mapFieldWithSuggestedFakerFn(e){return e.map((e=>{let t=null,n=1/0;const a=T.mapDataType(e.dt);return x.default.forEach(((r,i)=>{if("string"===a||a===r.type)if(i){const a=b.default.get(e.cn.toLowerCase(),r.name.toLowerCase());n>a&&(n=a,t=r)}else t=r,n=b.default.get(e.cn.toLowerCase(),r.name.toLowerCase())})),n<3?Object.assign(Object.assign({},e),{fakerFunction:t.value}):e}))}async seedInit(e){const t=this.seedInit.name,n=new v.default;O.api(`${t}:args:`,e),console.log("in mysql SeedInit");try{await(0,f.default)(e.seedsFolder);const t=o.default.join(e.seedsFolder,"__xseeds.json");await(0,c.promisify)(m.default.writeFile)(t,{rows:{value:8,description:"Maximum number of records"},foreign_key_rows:{value:2,description:"1:n - Total number foreign key per relation"}},{spaces:2});let a=await this.tableList();a=a.data.list;for(const t of a){let n=await this.columnList({tn:t.tn});n=n.data.list;for(let e=0;e<n.length;++e)n[e].fakerFunction=null;n=this.mapFieldWithSuggestedFakerFn(n);let a=await this.relationList({tn:t.tn});a=a.data.list;for(let e=0;e<a.length;e++){const t=a[e];for(let e=0;e<n.length;e++){const a=n[e];a.cn===t.cn&&(n[e]=Object.assign(Object.assign({},a),t))}}await this.fakerColumnsCreate({seedsFolder:e.seedsFolder,tn:t.tn,fakerColumns:n})}n.data=await(0,c.promisify)(m.default.readFile)(t)}catch(e){throw O.ppe(e,t),e}return n}async tableCreate(e){const t=this.tableCreate.name,n=new v.default;O.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.createTable(e);await this.sqlClient.raw(t);const a=this.querySeparator()+this.sqlClient.schema.dropTable(e.table).toString();this.emit(`Success : ${t}`),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw O.ppe(e,t),e}return n}async tableUpdate(e){const t=this.tableUpdate.name,n=new v.default;O.api(`${t}:args:`,e);try{e.table=e.tn;const t=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;let a="",r="";for(let n=0;n<e.columns.length;++n){const i=(0,d.default)(t,{cn:e.columns[n].cno});4&e.columns[n].altered?(a+=this.alterTableRemoveColumn(e.columns[n],i,a),r+=this.alterTableAddColumn(i,e.columns[n],r)):2&e.columns[n].altered||8&e.columns[n].altered?(a+=this.alterTableChangeColumn(e.columns[n],i,a),r+=this.alterTableChangeColumn(i,e.columns[n],r)):1&e.columns[n].altered&&(a+=this.alterTableAddColumn(e.columns[n],i,a),r+=this.alterTableRemoveColumn(e.columns[n],i,r))}a+=this.alterTablePK(e.columns,e.originalColumns,a),r+=this.alterTablePK(e.originalColumns,e.columns,r),a&&(a=this.genQuery(`ALTER TABLE ?? ${this.sanitize(a)};`,[e.tn]),r=this.genQuery(`ALTER TABLE ?? ${this.sanitize(r)};`,[e.tn])),await this.sqlClient.raw(a),console.log(a),n.data.object={upStatement:[{sql:this.querySeparator()+a}],downStatement:[{sql:this.querySeparator()+r}]}}catch(e){throw O.ppe(e,t),e}return n}async tableDelete(e){const t=this.tableDelete.name,n=new v.default;O.api(`${t}:args:`,e);try{e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.sqlClient.schema.dropTable(e.table_name).toString();let a=await this.sqlClient.raw("show create table ??",[e.table_name]);a=Object.entries(a[0][0]).find((([e])=>"create table"===e.toLowerCase()))[1];const r=this.querySeparator()+a;this.emit(`Success : ${t}`),await this.sqlClient.raw(this.sqlClient.schema.dropTable(e.table_name).toQuery()),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:r}]}}catch(e){throw O.ppe(e,t),e}return n}async tableCreateStatement(e){const t=this.tableCreateStatement.name,n=new v.default;O.api(`${t}:args:`,e);try{n.data=";";const t=await this.sqlClient.raw("show create table ??;",[e.tn]);2===t.length&&(n.data=t[0][0]["Create Table"])}catch(e){throw O.ppe(e,t),e}return n}async tableInsertStatement(e){const t=this.tableCreateStatement.name,n=new v.default;O.api(`${t}:args:`,e);try{let t=" VALUES (";n.data=`INSERT INTO \`${e.tn}\` (`;const a=await this.columnList(e);if(a.data&&a.data.list)for(let e=0;e<a.data.list.length;++e)e?(n.data+=`, \`${a.data.list[e].cn}\`\n\t`,t+=`, <${a.data.list[e].cn}>\n\t`):(n.data+=`\n\`${a.data.list[e].cn}\`\n\t`,t+=`\n<${a.data.list[e].cn}>\n\t`);n.data+=")",t+=");",n.data+=t}catch(e){throw O.ppe(e,t),e}return n}async tableUpdateStatement(e){const t=this.tableUpdateStatement.name,n=new v.default;O.api(`${t}:args:`,e);try{n.data=`UPDATE \`${e.tn}\` \nSET\n`;const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`,\`${t.data.list[e].cn}\` = <\`${t.data.list[e].cn}\`>\n\t`:`\`${t.data.list[e].cn}\` = <\`${t.data.list[e].cn}\`>\n\t`;n.data+=";"}catch(e){throw O.ppe(e,t),e}return n}async tableDeleteStatement(e){const t=this.tableDeleteStatement.name,n=new v.default;O.api(`${t}:args:`,e);try{n.data=`DELETE FROM ${e.tn};`}catch(e){throw O.ppe(e,t),e}return n}async tableTruncateStatement(e){const t=this.tableTruncateStatement.name,n=new v.default;O.api(`${t}:args:`,e);try{n.data=`TRUNCATE TABLE ${e.tn};`}catch(e){throw O.ppe(e,t),e}return n}async tableSelectStatement(e){const t=this.tableSelectStatement.name,n=new v.default;O.api(`${t}:args:`,e);try{n.data="SELECT ";const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`, ${t.data.list[e].cn}\n\t`:`${t.data.list[e].cn}\n\t`;n.data+=` FROM ${e.tn};`}catch(e){throw O.ppe(e,t),e}return n}async sequenceList(e={}){const t=this.sequenceList.name,n=new v.default;O.api(`${t}:args:`,e);try{n.data.list=[]}catch(e){throw O.ppe(e,t),e}return O.api(`${t}: result`,n),n}alterTableRemoveColumn(e,t,n){let a=n?",":"";return a+=this.genQuery(" DROP COLUMN ??",[e.cn]),a}createTableColumn(e,t,n){return this.alterTableColumn(e,t,n,0)}alterTableAddColumn(e,t,n){return this.alterTableColumn(e,t,n,1)}alterTableChangeColumn(e,t,n){return this.alterTableColumn(e,t,n,2)}createTable(e){let t="";for(let n=0;n<e.columns.length;++n)t+=this.createTableColumn(e.columns[n],null,t);return t+=this.alterTablePK(e.columns,[],t,!0),t=this.genQuery(`CREATE TABLE ?? (${this.sanitize(t)});`,[e.tn]),t}alterTableColumn(e,t,n,a=2){let r=n?",":"";const i=parseInt(e.dtxs)?parseInt(e.dtxs):null;r+=2===a?this.genQuery(`\n CHANGE\n COLUMN ?? ?? ${this.sanitiseDataType(e.dt)}`,[t.cn,e.cn]):1===a?this.genQuery(`\n ADD\n COLUMN ?? ${this.sanitiseDataType(e.dt)}`,[e.cn]):this.genQuery(` ?? ${this.sanitiseDataType(e.dt)}`,[e.cn]),e.dt.endsWith("text")||(r+=e.dtxp&&" "!==e.dtxp?`(${e.dtxp}`:"",r+=i?`,${i}`:"",r+=e.dtxp&&" "!==e.dtxp?")":""),r+=e.un?" UNSIGNED":"",r+=e.rqd?" NOT NULL":" NULL",r+=e.ai?" auto_increment":"",r+=e.unique?" UNIQUE":"";const s=this.sanitiseDefaultValue(e.cdf);return r+=s?`\n DEFAULT ${s}`:"",r}alterTablePK(e,t,n,a=!1){const r=[],i=[];let s=0;for(let t=0;t<e.length;++t)e[t].pk&&4!==e[t].altered&&i.push(e[t].cn);for(let e=0;e<t.length;++e)t[e].pk&&r.push(t[e].cn);if(i.length===r.length){for(let e=0;e<i.length;++e)if(r[e]!==i[e]){s=1;break}}else s=i.length-r.length;let o="";return(i.length||r.length)&&s&&(o+=r.length?",DROP PRIMARY KEY":"",i.length&&(o+=a?this.genQuery(", PRIMARY\n KEY(??)",[i]):this.genQuery(", ADD\n PRIMARY\n KEY(??)",[i]))),o}async totalRecords(e={}){const t=this.totalRecords.name,n=new v.default;O.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT SUM(table_rows) as TotalRecords FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = ?;",[this.connectionConfig.connection.database]);n.data=e[0][0]}catch(e){n.code=-1,n.message=e.message,n.object=e}finally{O.api(`${t} :result: ${n}`)}return n}}t.default=w},7262:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(9020)),i=a(n(5924)),s=a(n(5578)),o=a(n(8187)),c=new i.default("TidbClient");class u extends o.default{async constraintList(e={}){const t=this.constraintList.name,n=new s.default;c.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw("select *, TABLE_NAME as tn from INFORMATION_SCHEMA.KEY_COLUMN_USAGE where CONSTRAINT_SCHEMA=? and TABLE_NAME=?",[this.connectionConfig.connection.database,e.tn]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,r.default)(a,(function(e,t){return t.toLowerCase()})),e.push(a)}n.data.list=e}else c.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw c.ppe(e,t),e}return c.api(`${t}: result`,n),n}}t.default=u},6975:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(9020)),i=a(n(5924)),s=a(n(5578)),o=a(n(8187)),c=new i.default("VitessClient");class u extends o.default{constructor(e){super(e)}async relationList(e={}){const t=new s.default;return t.data.list=[],t}async relationListAll(e={}){const t=new s.default;return t.data.list=[],t}async databaseList(e={}){const t=this.databaseList.name,n=new s.default;c.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SHOW databases");if(c.debug(e.length),2===e.length){for(let t=0;t<e[0].length;++t)e[0][t].database_name=e[0][t].Databases;n.data.list=e[0]}else c.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw c.ppe(e,t),e}return c.api(`${t}: result`,n.data.list.length),n}async tableList(e={}){const t=this.tableList.name,n=new s.default;c.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SHOW TABLES"),t=`Tables_in_vt_${this.connectionConfig.connection.database}`;if(2===e.length){for(let n=0;n<e[0].length;++n)e[0][n].tn=e[0][n][t];n.data.list=e[0]}else c.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw c.ppe(e,t),e}return c.api(`${t}: result`,n.data.list.length),n}async columnList(e={}){const t=this.columnList.name,n=new s.default;c.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("select *, table_name as tn from information_schema.columns where table_name = ? ORDER by ordinal_position",[e.tn]);if(2===t.length){const a=[];for(let n=0;n<t[0].length;++n){const i={};t[0][n]=(0,r.default)(t[0][n],((e,t)=>t.toLowerCase())),i.tn=e.tn,i.cn=t[0][n].cn,i.dt=t[0][n].dt,i.np=t[0][n].np,i.ns=t[0][n].ns,i.clen=t[0][n].clen,i.cop=t[0][n].op,i.dtx=this.getKnexDataType(i.dt),i.pk="PRI"===t[0][n].ck,i.nrqd="NO"!==t[0][n].nrqd,i.not_nullable=!i.nrqd,t[0][n].ct=t[0][n].ct||"",i.un=-1!==t[0][n].ct.indexOf("unsigned"),i.ct=t[0][n].ct||"",t[0][n].ext=t[0][n].ext||"",i.ai=-1!==t[0][n].ext.indexOf("auto_increment"),t[0][n].cst=t[0][n].cst||" ",i.unique=-1!==t[0][n].cst.indexOf("UNIQUE"),i.cdf=t[0][n].cdf,i.cc=t[0][n].cc,i.csn=t[0][n].csn,a.push(i)}n.data.list=a}else c.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw c.ppe(e,t),e}return c.api(`${t}: result list length = `,n.data.list.length),n}async constraintList(e={}){const t=this.constraintList.name,n=new s.default;c.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw("select *, TABLE_NAME as tn from INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = ? ORDER by ordinal_position;",[e.tn]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,r.default)(a,(function(e,t){return t.toLowerCase()})),e.push(a)}n.data.list=e}else c.debug("Unknown response for databaseList:",n.data.list.length),n.data.list=[]}catch(e){throw c.ppe(e,t),e}return c.api(`${t}: result`,n),n}}t.default=u},7495:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{name:"zipCode",group:"address",value:"address.zipCode",type:"string"},{name:"city",group:"address",value:"address.city",type:"string"},{name:"cityPrefix",group:"address",value:"address.cityPrefix",type:"string"},{name:"citySuffix",group:"address",value:"address.citySuffix",type:"string"},{name:"streetName",group:"address",value:"address.streetName",type:"string"},{name:"streetAddress",group:"address",value:"address.streetAddress",type:"string"},{name:"streetSuffix",group:"address",value:"address.streetSuffix",type:"string"},{name:"streetPrefix",group:"address",value:"address.streetPrefix",type:"string"},{name:"secondaryAddress",group:"address",value:"address.secondaryAddress",type:"string"},{name:"county",group:"address",value:"address.county",type:"string"},{name:"country",group:"address",value:"address.country",type:"string"},{name:"countryCode",group:"address",value:"address.countryCode",type:"string"},{name:"state",group:"address",value:"address.state",type:"string"},{name:"stateAbbr",group:"address",value:"address.stateAbbr",type:"string"},{name:"latitude",group:"address",value:"address.latitude",type:"number"},{name:"longitude",group:"address",value:"address.longitude",type:"number"},{name:"color",group:"commerce",value:"commerce.color",type:"string"},{name:"department",group:"commerce",value:"commerce.department",type:"string"},{name:"productName",group:"commerce",value:"commerce.productName",type:"string"},{name:"price",group:"commerce",value:"commerce.price",type:"number"},{name:"productAdjective",group:"commerce",value:"commerce.productAdjective",type:"string"},{name:"productMaterial",group:"commerce",value:"commerce.productMaterial",type:"string"},{name:"product",group:"commerce",value:"commerce.product",type:"string"},{name:"suffixes",group:"company",value:"company.suffixes",type:"string"},{name:"companyName",group:"company",value:"company.companyName",type:"string"},{name:"companySuffix",group:"company",value:"company.companySuffix",type:"string"},{name:"catchPhrase",group:"company",value:"company.catchPhrase",type:"string"},{name:"bs",group:"company",value:"company.bs",type:"string"},{name:"catchPhraseAdjective",group:"company",value:"company.catchPhraseAdjective",type:"string"},{name:"catchPhraseDescriptor",group:"company",value:"company.catchPhraseDescriptor",type:"string"},{name:"catchPhraseNoun",group:"company",value:"company.catchPhraseNoun",type:"string"},{name:"bsAdjective",group:"company",value:"company.bsAdjective",type:"string"},{name:"bsBuzz",group:"company",value:"company.bsBuzz",type:"string"},{name:"bsNoun",group:"company",value:"company.bsNoun",type:"string"},{name:"column",group:"database",value:"database.column",type:"string"},{name:"type",group:"database",value:"database.type",type:"string"},{name:"collation",group:"database",value:"database.collation",type:"string"},{name:"engine",group:"database",value:"database.engine",type:"string"},{name:"past",group:"date",value:"date.past",type:"date"},{name:"future",group:"date",value:"date.future",type:"date"},{name:"recent",group:"date",value:"date.recent",type:"date"},{name:"soon",group:"date",value:"date.soon",type:"date"},{name:"month",group:"date",value:"date.month",type:"string"},{name:"weekday",group:"date",value:"date.weekday",type:"string"},{name:"account",group:"finance",value:"finance.account",type:"string"},{name:"accountName",group:"finance",value:"finance.accountName",type:"string"},{name:"mask",group:"finance",value:"finance.mask",type:"string"},{name:"amount",group:"finance",value:"finance.amount",type:"number"},{name:"transactionType",group:"finance",value:"finance.transactionType",type:"string"},{name:"currencyCode",group:"finance",value:"finance.currencyCode",type:"string"},{name:"currencyName",group:"finance",value:"finance.currencyName",type:"string"},{name:"currencySymbol",group:"finance",value:"finance.currencySymbol",type:"string"},{name:"bitcoinAddress",group:"finance",value:"finance.bitcoinAddress",type:"string"},{name:"ethereumAddress",group:"finance",value:"finance.ethereumAddress",type:"string"},{name:"iban",group:"finance",value:"finance.iban",type:"string"},{name:"bic",group:"finance",value:"finance.bic",type:"string"},{name:"abbreviation",group:"hacker",value:"hacker.abbreviation",type:"string"},{name:"adjective",group:"hacker",value:"hacker.adjective",type:"string"},{name:"noun",group:"hacker",value:"hacker.noun",type:"string"},{name:"verb",group:"hacker",value:"hacker.verb",type:"string"},{name:"ingverb",group:"hacker",value:"hacker.ingverb",type:"string"},{name:"phrase",group:"hacker",value:"hacker.phrase",type:"string"},{name:"createCard",group:"helpers",value:"helpers.createCard",type:"string"},{name:"contextualCard",group:"helpers",value:"helpers.contextualCard",type:"string"},{name:"userCard",group:"helpers",value:"helpers.userCard",type:"string"},{name:"createTransaction",group:"helpers",value:"helpers.createTransaction",type:"string"},{name:"image",group:"image",value:"image.image",type:"string"},{name:"avatar",group:"image",value:"image.avatar",type:"string"},{name:"imageUrl",group:"image",value:"image.imageUrl",type:"string"},{name:"abstract",group:"image",value:"image.abstract",type:"string"},{name:"animals",group:"image",value:"image.animals",type:"string"},{name:"business",group:"image",value:"image.business",type:"string"},{name:"cats",group:"image",value:"image.cats",type:"string"},{name:"city",group:"image",value:"image.city",type:"string"},{name:"food",group:"image",value:"image.food",type:"string"},{name:"nightlife",group:"image",value:"image.nightlife",type:"string"},{name:"fashion",group:"image",value:"image.fashion",type:"string"},{name:"people",group:"image",value:"image.people",type:"string"},{name:"nature",group:"image",value:"image.nature",type:"string"},{name:"sports",group:"image",value:"image.sports",type:"string"},{name:"technics",group:"image",value:"image.technics",type:"string"},{name:"transport",group:"image",value:"image.transport",type:"string"},{name:"dataUri",group:"image",value:"image.dataUri",type:"string"},{name:"avatar",group:"internet",value:"internet.avatar",type:"string"},{name:"email",group:"internet",value:"internet.email",type:"string"},{name:"exampleEmail",group:"internet",value:"internet.exampleEmail",type:"string"},{name:"userName",group:"internet",value:"internet.userName",type:"string"},{name:"protocol",group:"internet",value:"internet.protocol",type:"string"},{name:"url",group:"internet",value:"internet.url",type:"string"},{name:"domainName",group:"internet",value:"internet.domainName",type:"string"},{name:"domainSuffix",group:"internet",value:"internet.domainSuffix",type:"string"},{name:"domainWord",group:"internet",value:"internet.domainWord",type:"string"},{name:"ip",group:"internet",value:"internet.ip",type:"string"},{name:"ipv6",group:"internet",value:"internet.ipv6",type:"string"},{name:"userAgent",group:"internet",value:"internet.userAgent",type:"string"},{name:"color",group:"internet",value:"internet.color",type:"string"},{name:"mac",group:"internet",value:"internet.mac",type:"string"},{name:"password",group:"internet",value:"internet.password",type:"string"},{name:"word",group:"lorem",value:"lorem.word",type:"string"},{name:"words",group:"lorem",value:"lorem.words",type:"string"},{name:"sentence",group:"lorem",value:"lorem.sentence",type:"string"},{name:"slug",group:"lorem",value:"lorem.slug",type:"string"},{name:"sentences",group:"lorem",value:"lorem.sentences",type:"string"},{name:"paragraph",group:"lorem",value:"lorem.paragraph",type:"string"},{name:"paragraphs",group:"lorem",value:"lorem.paragraphs",type:"string"},{name:"text",group:"lorem",value:"lorem.text",type:"string"},{name:"lines",group:"lorem",value:"lorem.lines",type:"string"},{name:"firstName",group:"name",value:"name.firstName",type:"string"},{name:"lastName",group:"name",value:"name.lastName",type:"string"},{name:"findName",group:"name",value:"name.findName",type:"string"},{name:"jobTitle",group:"name",value:"name.jobTitle",type:"string"},{name:"prefix",group:"name",value:"name.prefix",type:"string"},{name:"suffix",group:"name",value:"name.suffix",type:"string"},{name:"title",group:"name",value:"name.title",type:"string"},{name:"jobDescriptor",group:"name",value:"name.jobDescriptor",type:"string"},{name:"jobArea",group:"name",value:"name.jobArea",type:"string"},{name:"jobType",group:"name",value:"name.jobType",type:"string"},{name:"phoneNumber",group:"phone",value:"phone.phoneNumber",type:"string"},{name:"phoneNumberFormat",group:"phone",value:"phone.phoneNumberFormat",type:"string"},{name:"phoneFormats",group:"phone",value:"phone.phoneFormats",type:"string"},{name:"number",group:"random",value:"random.number",type:"number"},{name:"float",group:"random",value:"random.float",type:"number"},{name:"uuid",group:"random",value:"random.uuid",type:"string"},{name:"boolean",group:"random",value:"random.boolean",type:"boolean"},{name:"word",group:"random",value:"random.word",type:"string"},{name:"words",group:"random",value:"random.words",type:"string"},{name:"image",group:"random",value:"random.image",type:"string"},{name:"locale",group:"random",value:"random.locale",type:"string"},{name:"alphaNumeric",group:"random",value:"random.alphaNumeric",type:"string"},{name:"hexaDecimal",group:"random",value:"random.hexaDecimal",type:"string"},{name:"fileName",group:"system",value:"system.fileName",type:"string"},{name:"commonFileName",group:"system",value:"system.commonFileName",type:"string"},{name:"mimeType",group:"system",value:"system.mimeType",type:"string"},{name:"commonFileType",group:"system",value:"system.commonFileType",type:"string"},{name:"commonFileExt",group:"system",value:"system.commonFileExt",type:"string"},{name:"fileType",group:"system",value:"system.fileType",type:"string"},{name:"fileExt",group:"system",value:"system.fileExt",type:"string"},{name:"directoryPath",group:"system",value:"system.directoryPath",type:"string"},{name:"filePath",group:"system",value:"system.filePath",type:"string"},{name:"semver",group:"system",value:"system.semver",type:"string"}]},5241:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapDataType=void 0,t.mapDataType=function(e){switch(e){case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"bit":case"boolean":case"float":case"decimal":case"double":case"serial":return"number";case"date":case"datetime":case"timestamp":case"time":case"year":return"date";case"char":case"varchar":case"nchar":case"text":case"tinytext":case"mediumtext":case"longtext":case"enum":case"set":case"json":return"string"}return"string"}},9338:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="SELECT\nc.table_name as tn,\nc.column_name as cn,\nc.data_type as dt,\nc.column_type as ct,\nc.character_maximum_length as clen,\nc.numeric_precision as np,\nc.numeric_scale as ns,\n-- c.datetime_precision as dp,\nc.ordinal_position as cop,\nc.column_key as ck,\nc.extra as ext, -- gives ai\nc.column_default as cdf,\nc.is_nullable as nrqd,\nc.privileges as priv,\nc.column_comment as cc,\n-- c.generation_expression,\nc.character_set_name as csn,\nc.collation_name as clnn,\nct.CONSTRAINT_TYPE as cst\nFROM\ninformation_schema.COLUMNS as c\nLeft join(\n select\n tc.CONSTRAINT_NAME,\n tc.TABLE_NAME,\n tc.CONSTRAINT_SCHEMA,\n tc.CONSTRAINT_TYPE,\n s.COLUMN_NAME\n from\n information_schema.TABLE_CONSTRAINTS as tc\n LEFT JOIN information_schema.STATISTICS as s ON\n s.table_schema = tc.CONSTRAINT_SCHEMA\n and s.TABLE_NAME = tc.TABLE_NAME\n and s.INDEX_NAME = tc.CONSTRAINT_NAME\n where\n tc.CONSTRAINT_SCHEMA = ?\n and s.TABLE_NAME = ?\n) ct on\nc.TABLE_SCHEMA = ct.CONSTRAINT_SCHEMA\nAND c.TABLE_NAME = ct.TABLE_NAME\nAND c.COLUMN_NAME = ct.COLUMN_NAME\nWHERE\nc.table_schema = ?\nand c.TABLE_NAME = ?\nORDER BY\nc.table_name,\nc.ordinal_position";t.default={columnList:{55:{sql:n,paramsHints:["databaseName","tn","databaseName","tn"]},56:{sql:n,paramsHints:["databaseName","tn","databaseName","tn"]},default:{sql:"SELECT\n c.table_name as tn,\n c.column_name as cn,\n c.data_type as dt,\n c.column_type as ct,\n c.character_maximum_length as clen,\n c.numeric_precision as np,\n c.numeric_scale as ns,\n c.datetime_precision as dp,\n c.ordinal_position as cop,\n c.column_key as ck,\n c.extra as ext, -- gives ai\n c.column_default as cdf,\n c.is_nullable as nrqd,\n c.privileges as priv,\n c.column_comment as cc,\n-- c.generation_expression,\n c.character_set_name as csn,\n c.collation_name as clnn,\n ct.CONSTRAINT_TYPE as cst\n FROM\n information_schema.COLUMNS as c\n Left join(\n select\n tc.CONSTRAINT_NAME,\n tc.TABLE_NAME,\n tc.CONSTRAINT_SCHEMA,\n tc.CONSTRAINT_TYPE,\n s.COLUMN_NAME\n from\n information_schema.TABLE_CONSTRAINTS as tc\n LEFT JOIN information_schema.STATISTICS as s ON\n s.table_schema = tc.CONSTRAINT_SCHEMA\n and s.TABLE_NAME = tc.TABLE_NAME\n and s.INDEX_NAME = tc.CONSTRAINT_NAME\n and tc.CONSTRAINT_TYPE != 'UNIQUE'\n and tc.CONSTRAINT_TYPE != 'FOREIGN KEY'\n where\n tc.CONSTRAINT_SCHEMA = ?\n and s.TABLE_NAME = ?\n ) ct on\n c.TABLE_SCHEMA = ct.CONSTRAINT_SCHEMA\n AND c.TABLE_NAME = ct.TABLE_NAME\n AND c.COLUMN_NAME = ct.COLUMN_NAME\n WHERE\n c.table_schema = ?\n and c.TABLE_NAME = ?\n ORDER BY\n c.table_name,\n c.ordinal_position",paramsHints:["databaseName","tn","databaseName","tn"]}},constraintList:{default:{sql:"SELECT\n k.constraint_name as cstn,\n k.column_name as cn,\n k.ordinal_position as op,\n k.position_in_unique_constraint as puc,\n t.constraint_type as cst\nFROM information_schema.table_constraints t\nLEFT JOIN information_schema.key_column_usage k\nUSING(constraint_name,table_schema,table_name)\nWHERE\nt.table_schema=?\nAND t.table_name=?;",paramsHints:["database","tn"]}},createDatabaseIfNotExists:{default:{sql:"create database if not exists ?? CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci",paramsHints:["database"]}},createTableIfNotExists:{default:{sql:"",paramsHints:[]}},dropDatabase:{default:{sql:"drop database ??",paramsHints:["database"]}},databaseList:{default:{sql:"SHOW databases",paramsHints:[]}},hasDatabase:{default:{sql:"SHOW DATABASES LIKE ?",paramsHints:["databaseName"]}},indexList:{default:{sql:"show index from ??",paramsHints:["tn"]}},functionList:{default:{sql:"show function status where db=?",paramsHints:["databaseName"]}},functionRead:{default:{sql:"SHOW CREATE FUNCTION ??",paramsHints:["function_name"]}},functionDelete:{default:{sql:"DROP FUNCTION IF EXISTS ??",paramsHints:["function_name"]}},procedureList:{default:{sql:"show procedure status where db=?",paramsHints:["databaseName"]}},procedureRead:{default:{sql:"show create procedure ??",paramsHints:["procedure_name"]}},procedureDelete:{default:{sql:"DROP PROCEDURE IF EXISTS ??",paramsHints:["procedure_name"]}},relationList:{default:{sql:"SELECT\n kcu.CONSTRAINT_NAME as cstn,\n kcu.TABLE_NAME as tn,\n kcu.COLUMN_NAME as cn,\n kcu.POSITION_IN_UNIQUE_CONSTRAINT as puc,\n kcu.REFERENCED_TABLE_NAME as rtn,\n kcu.REFERENCED_COLUMN_NAME as rcn,\n rc.MATCH_OPTION as mo,\n rc.UPDATE_RULE as ur,\n rc.DELETE_RULE as dr,\n kcu.table_schema as ts\n FROM\n information_schema.KEY_COLUMN_USAGE AS kcu\n INNER JOIN information_schema.REFERENTIAL_CONSTRAINTS AS rc ON\n kcu.CONSTRAINT_NAME = rc.CONSTRAINT_NAME\n Group by\n kcu.CONSTRAINT_NAME,\n kcu.TABLE_NAME,\n kcu.COLUMN_NAME,\n kcu.POSITION_IN_UNIQUE_CONSTRAINT,\n kcu.REFERENCED_TABLE_NAME,\n kcu.REFERENCED_COLUMN_NAME,\n rc.MATCH_OPTION,\n rc.UPDATE_RULE,\n rc.DELETE_RULE ,\n kcu.table_schema\n Having\n kcu.table_schema = ?\n AND kcu.referenced_column_name IS NOT NULL\n AND kcu.table_name =?",paramsHints:["database","tn"]}},relationListAll:{default:{sql:"SELECT\n kcu.constraint_name AS cstn,\n kcu.table_name AS tn,\n kcu.column_name AS cn,\n kcu.position_in_unique_constraint AS puc,\n kcu.referenced_table_name AS rtn,\n kcu.referenced_column_name AS rcn,\n rc.match_option AS mo,\n rc.update_rule AS ur,\n rc.delete_rule AS dr,\n kcu.table_schema AS ts\n FROM\n (\n SELECT\n table_schema,\n constraint_name,\n table_name,\n column_name,\n position_in_unique_constraint,\n referenced_table_name,\n referenced_column_name\n FROM\n information_schema.KEY_COLUMN_USAGE\n WHERE\n table_schema = :databaseName) AS kcu\n INNER JOIN\n (\n SELECT\n constraint_schema,\n match_option,\n update_rule,\n delete_rule,\n constraint_name\n FROM\n information_schema.REFERENTIAL_CONSTRAINTS\n WHERE\n constraint_schema = :databaseName) AS rc ON\n kcu.constraint_name = rc.constraint_name\n AND kcu.table_schema = rc.constraint_schema\n INNER JOIN\n (\n SELECT\n table_schema,\n table_name,\n column_name\n FROM\n information_schema.COLUMNS\n WHERE\n table_schema = :databaseName\n AND table_name IN (\n SELECT\n table_name\n FROM\n information_schema.TABLES\n WHERE\n table_schema = :databaseName\n AND Lower(table_type) = 'base table')) AS col ON\n col.table_schema = kcu.table_schema\n AND col.table_name = kcu.table_name\n AND kcu.referenced_column_name IS NOT NULL\n GROUP BY\n cstn ,\n tn ,\n rcn ,\n cn ,\n puc ,\n rtn ,\n cn,\n mo ,\n ur ,\n dr ,\n ts",paramsHints:["database"]}},schemaCreate:{default:{sql:"create database ??",paramsHints:["database_name"]}},schemaDelete:{default:{sql:"drop database ??",paramsHints:["database_name"]}},triggerList:{default:{sql:"SHOW TRIGGERS like ?",paramsHints:["tn"]}},tableList:{default:{sql:"",paramsHints:[]}},testConnection:{default:{sql:"",paramsHints:[]}},triggerRead:{default:{sql:"SHOW FULL TABLES IN ?? WHERE TABLE_TYPE LIKE 'VIEW';",paramsHints:["databaseName"]}},triggerDelete:{default:{sql:"DROP TRIGGER ??",paramsHints:["trigger_name"]}},version:{default:{sql:"",paramsHints:[]}},viewRead:{default:{sql:"select * FROM INFORMATION_SCHEMA.VIEWS WHERE\n TABLE_SCHEMA = ? AND TABLE_NAME = ?",paramsHints:["databaseName","view_name"]}},viewList:{default:{sql:"SHOW FULL TABLES WHERE TABLE_TYPE LIKE 'VIEW'",paramsHints:[]}}}},5869:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1832)),i=a(n(9020)),s=a(n(133)),o=a(n(4020)),c=a(n(5924)),u=a(n(5578)),l=new c.default("OracleClient");class p extends o.default{constructor(e){super(e)}getKnexDataTypes(){const e=new u.default;return e.data.list=["bfile","binary rowid","binary double","binary_float","blob","canoical","cfile","char","clob","content pointer","contigous array","date","decimal","double precision","float","integer","interval day to second","interval year to month","lob pointer","long","long raw","named collection","named object","nchar","nclob","number","nvarchar2","octet","oid","pointer","raw","real","ref","ref cursor","rowid","signed binary integer","smallint","table","time","time with tz","timestamp","timestamp with local time zone","timestamp with local tz","timestamp with timezone","timestamp with tz","unsigned binary integer","urowid","varchar","varchar2","varray","varying array"],e}async testConnection(e={}){const t=this.testConnection.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw('SELECT 1+1 AS "data" FROM DUAL')}catch(e){l.ppe(e),n.code=-1,n.message=e.message}finally{l.api(`${t}:result:`,n)}return n}async version(e={}){const t=this.version.name,n=new u.default;l.api(`${t}:args:`,e);try{const e=await this.raw("SELECT * FROM PRODUCT_COMPONENT_VERSION WHERE product LIKE 'Oracle%'");n.data.object={};let t=e[0];t=(0,i.default)(t,((e,t)=>t.toLowerCase()));const a=t.version.split(".");n.data.object.version=t.version,n.data.object.primary=a[0],n.data.object.major=a[1],n.data.object.minor=a[2]}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async createDatabaseIfNotExists(e={}){const t=this.createDatabaseIfNotExists.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=JSON.parse(JSON.stringify(this.connectionConfig));t.connection.database="xe",t.connection.user="system",t.connection.password="oracle";const n=(0,r.default)(t);l.debug("checking if db exists"),0===(await n.raw(`select USERNAME from SYS.ALL_USERS WHERE USERNAME = '${this.connectionConfig.connection.user}'`)).length&&(l.debug("creating database:",e),await n.raw(`CREATE USER ${this.connectionConfig.connection.user} IDENTIFIED BY ${this.connectionConfig.connection.user}`),await n.raw(`GRANT ALL PRIVILEGES TO ${this.connectionConfig.connection.user}`),await n.raw(`GRANT EXECUTE ON DBMS_AQ TO ${this.connectionConfig.connection.user}`),await n.raw(`GRANT EXECUTE ON DBMS_AQADM TO ${this.connectionConfig.connection.user}`)),await n.destroy(),this.sqlClient=(0,r.default)(this.connectionConfig)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async dropDatabase(e){const t=this.dropDatabase.name,n=new u.default;l.api(`${t}:args:`,e);try{const e=JSON.parse(JSON.stringify(this.connectionConfig));e.connection.database="xe",e.connection.user="system",e.connection.password="oracle";const t=(0,r.default)(e);await this.sqlClient.destroy(),l.debug("dropping database:",this.connectionConfig.connection.user);const n=await t.raw(`select SID,SERIAL# from v$session where username = '${this.connectionConfig.connection.user}'\n `);l.debug(`Active Sessions for ${this.connectionConfig.connection.user}: `,n);for(let e=0;e<n.length;e++){const a=n[e];await t.raw(`alter system kill session '${a.SID},${a["SERIAL#"]}' immediate`)}await t.raw(`drop user ${this.connectionConfig.connection.user} cascade`),l.debug("dropped database:",this.connectionConfig.connection.user)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async createTableIfNotExists(e){const t=this.createTableIfNotExists.name,n=new u.default;l.api(`${t}:args:`,e);try{(await this.hasTable({tn:e.tn})).data.value?l.debug(`${e.tn} tables exists`):(await this.sqlClient.schema.createTable(e.tn,(function(e){e.string("title").notNullable(),e.string("titleDown").nullable(),e.string("description").nullable(),e.integer("batch").nullable(),e.string("checksum").nullable(),e.integer("status").nullable(),e.dateTime("created"),e.timestamps()})),l.debug("Table created:",`${e.tn}`))}catch(e){if(l.ppe(e,t),!(JSON.stringify(e.message).indexOf("exact fetch returns more than requested number of rows")>-1))throw e;l.warn("safely ignored Exception:exact fetch returns more than requested number of rows knex create table issue")}return l.api(`${t}: result`,n),n}async hasTable(e={}){const t=this.hasTable.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=await this.raw(`select TABLE_NAME as tn FROM all_tables WHERE OWNER = '${this.connectionConfig.connection.user}' AND tn = '${e.tn}'`);n.data.value=t.length>0}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async hasDatabase(e={}){const t=this.hasDatabase.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=await this.raw(`select USERNAME from SYS.ALL_USERS WHERE USERNAME = '${e.databaseName}'`);n.data.value=t.length>0}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async databaseList(e={}){const t=this.databaseList.name,n=new u.default;l.api(`${t}:args:`,e);try{const e=await this.raw('select USERNAME as "database_name" from SYS.ALL_USERS order by USERNAME');n.data.list=e}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async tableList(e={}){const t=this.tableList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`select table_name FROM all_tables WHERE owner='${e.databaseName}'`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async schemaList(e={}){const t=this.schemaList.name,n=new u.default;l.api(`${t}:args:`,e);try{const e=await this.raw("SELECT username AS schema_name\n FROM dba_users u\n WHERE ACCOUNT_STATUS = 'OPEN' AND EXISTS (\n SELECT 1\n FROM dba_objects o\n WHERE o.owner = u.username )\n AND default_tablespace not in ('SYSTEM','SYSAUX') ");for(let t=0;t<e.length;t++){let n=e[t];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),e[t]=n}n.data.list=e}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async columnList(e={}){const t=this.columnList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT\n seq.sequence_name,\n CASE\n WHEN seq.sequence_name IS NOT NULL\n AND p.constraint_type = 'P' THEN 1\n ELSE 0\n END as ai,\n c.table_name as tn,\n c.column_name AS cn,\n c.column_id AS cop,\n p.constraint_type AS ck,\n c.NULLABLE AS nrqd,\n c.DATA_TYPE AS dt,\n c.DATA_LENGTH,\n c.DATA_PRECISION,\n c.DEFAULT_LENGTH,\n c.DATA_DEFAULT AS cdf,\n c.character_set_name as csn,\n c.CHAR_LENGTH AS clen,\n -- c.DEFAULT_ON_NULL,\n c.LOW_VALUE,\n c.HIGH_VALUE,\n c.DATA_SCALE AS ns,\n p.constraint_name AS pk_constraint_name,\n p.POSITION AS p_con_ordinal_position\n FROM\n SYS.ALL_TAB_COLS c\n LEFT JOIN(\n SELECT\n a.table_name,\n a.column_name,\n a.constraint_name,\n c.constraint_type,\n a.position,\n c_pk.table_name r_table_name,\n c_pk.constraint_name r_pk,\n cc_pk.column_name r_column_name\n FROM\n all_cons_columns a\n JOIN all_constraints c ON\n (\n a.owner = c.owner\n AND a.constraint_name = c.constraint_name\n )\n LEFT JOIN all_constraints c_pk ON\n (\n c.r_owner = c_pk.owner\n AND c.r_constraint_name = c_pk.constraint_name\n )\n LEFT JOIN all_cons_columns cc_pk ON\n (\n cc_pk.owner = c_pk.owner\n AND cc_pk.constraint_name = c_pk.constraint_name\n )\n WHERE\n a.owner = '${e.databaseName}'\n AND c.constraint_type = 'P'\n ) p ON\n c.table_name = p.table_name\n AND c.column_name = p.column_name\n LEFT OUTER JOIN(\n SELECT\n t.table_name,\n d.referenced_name AS sequence_name,\n d.REFERENCED_OWNER AS OWNER,\n c.COLUMN_NAME\n FROM\n user_trigger_cols t,\n user_dependencies d,\n user_tab_cols c\n WHERE\n d.name = t.trigger_name\n AND t.TABLE_NAME = c.TABLE_NAME\n AND t.COLUMN_NAME = c.COLUMN_NAME\n AND d.referenced_type = 'SEQUENCE'\n AND d.type = 'TRIGGER'\n ) seq ON\n c.table_name = seq.table_name\n AND c.column_name = seq.column_name\n WHERE\n c.owner = '${e.databaseName}' AND c.table_name = '${e.tn}'\n ORDER BY\n c.table_name,\n c.column_id,\n c.column_name`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.np=n.data_precision,n.pk="P"===n.ck,n.nrqd="Y"===n.nrqd,n.not_nullable="N"===n.nrqd,n.ai=1===n.ai,n.cno=n.cn,n.dtxp=n.clen||n.np,n.dtxs=n.ns,n.au=!1,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async indexList(e={}){const t=this.indexList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`select ind_col.COLUMN_POSITION AS postion, ind.index_name as key_name,\n ind_col.column_name as cn,\n ind.index_type,\n ind.uniqueness,\n ind.table_owner as schema_name,\n ind.table_name as tn,\n ind.table_type as table_type\n from sys.all_indexes ind\n inner join sys.all_ind_columns ind_col on ind.owner = ind_col.index_owner\n and ind.index_name = ind_col.index_name\n where ind.owner = '${e.databaseName}' AND ind.table_name = '${e.tn}'\n order by ind.table_owner, ind.table_name, ind.index_name, ind_col.column_position`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.table=n.tn,n.non_unique="NONUNIQUE"===n.uniqueness?1:0,n.non_unique_original="NONUNIQUE"===n.uniqueness?1:0,n.seq_in_index=n.postion,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async constraintList(e={}){const t=this.constraintList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT cols.table_name as tn, cols.column_name as cn, cols.position, cons.*\n FROM all_constraints cons, all_cons_columns cols\n WHERE cols.table_name = '${e.tn}' AND cols.owner = '${e.databaseName}'\n AND cons.constraint_type in ('P','R','U') AND cons.constraint_name = cols.constraint_name\n AND cons.owner = cols.owner ORDER BY cons.constraint_name, cols.position`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.table=n.tn,"P"===n.cst&&(n.cst="Primary Key"),"U"===n.cst&&(n.cst="Unique"),"R"===n.cst&&(n.cst="Foreign Key"),n.op=n.position,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async relationList(e={}){const t=this.relationList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT\n a.table_name as tn,\n a.column_name as cn,\n a.constraint_name cstn,\n c.constraint_type cst,\n a.position,\n c_pk.table_name r_table_name,\n c_pk.constraint_name r_pk,\n cc_pk.column_name r_column_name,\n c.delete_rule dr\n FROM\n all_cons_columns a\n JOIN all_constraints c ON\n (\ta.owner = c.owner\n AND a.constraint_name = c.constraint_name )\n LEFT JOIN all_constraints c_pk ON\n (\tc.r_owner = c_pk.owner\n AND c.r_constraint_name = c_pk.constraint_name )\n LEFT JOIN all_cons_columns cc_pk ON\n (\tcc_pk.owner = c_pk.owner\n AND cc_pk.constraint_name = c_pk.constraint_name )\n WHERE a.owner = '${e.databaseName}'\n AND c.constraint_type = 'R'\n\n `);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.rtn=n.r_table_name,n.rcn=n.r_column_name,n.non_unique="NONUNIQUE"===n.uniqueness,n.puc=n.position,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async relationListAll(e={}){const t=this.relationList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT\n a.table_name as tn,\n a.column_name as cn,\n a.constraint_name cstn,\n c.constraint_type cst,\n a.position puc,\n c_pk.table_name r_table_name,\n c_pk.constraint_name r_pk,\n cc_pk.column_name r_column_name,\n c.delete_rule dr\n FROM\n all_cons_columns a\n JOIN all_constraints c ON\n (\ta.owner = c.owner\n AND a.constraint_name = c.constraint_name )\n LEFT JOIN all_constraints c_pk ON\n (\tc.r_owner = c_pk.owner\n AND c.r_constraint_name = c_pk.constraint_name )\n LEFT JOIN all_cons_columns cc_pk ON\n (\tcc_pk.owner = c_pk.owner\n AND cc_pk.constraint_name = c_pk.constraint_name )\n WHERE a.owner = '${e.databaseName}'\n AND c.constraint_type = 'R'\n\n `);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.rtn=n.r_table_name,n.rcn=n.r_column_name,n.non_unique="NONUNIQUE"===n.uniqueness,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async triggerList(e={}){const t=this.triggerList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.sqlClient.raw(`select owner as trigger_schema_name, trigger_name, trigger_type,\n triggering_event, table_owner as schema_name, table_name as object_name, base_object_type as object_type,\n status, trigger_body as script from sys.all_triggers\n -- excluding some Oracle maintained schemas\n where owner = '${e.databaseName}' order by trigger_name, table_owner, table_name, base_object_type`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.trigger=n.trigger_name,n.table=n.object_name,n.event=n.triggering_event,n.timing=n.trigger_type,n.statement=n.script,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async functionList(e={}){const t=this.functionList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM ALL_OBJECTS WHERE owner = '${e.databaseName}' and OBJECT_TYPE IN ('FUNCTION','PROCEDURE','PACKAGE')`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.function_name=n.object_name,n.type=n.object_type,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async procedureList(e={}){const t=this.procedureList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM ALL_OBJECTS WHERE owner = '${e.databaseName}' and OBJECT_TYPE IN ('FUNCTION','PROCEDURE','PACKAGE')`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.procedure_name=n.object_name,n.type=n.object_type,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async viewList(e={}){const t=this.viewList.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM all_views WHERE owner='${e.databaseName}'`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.view_name=n.object_name,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async functionRead(e={}){const t=this.functionRead.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM all_source WHERE TYPE = 'FUNCTION' AND OWNER = '${e.databaseName}' AND NAME = '${e.function_name}' ORDER BY line`),a=[];if(t.length>0){let e="";for(let n=0;n<t.length;n++){let a=t[n];a=(0,i.default)(a,((e,t)=>t.toLowerCase())),a.function_name=a.name,t[n]=a,e+=a.text}t[0].create_function=e,a.push(t[0])}n.data.list=a}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async procedureRead(e={}){const t=this.procedureRead.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM all_source WHERE TYPE = 'PROCEDURE' AND OWNER = '${e.databaseName}' AND NAME = '${e.procedure_name}' ORDER BY line`),a=[];if(t.length>0){let e="";for(let n=0;n<t.length;n++){let a=t[n];a=(0,i.default)(a,((e,t)=>t.toLowerCase())),a.procedure_name=a.name,t[n]=a,e+=a.text}t[0].create_procedure=e,a.push(t[0])}n.data.list=a}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async viewRead(e={}){const t=this.viewRead.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.raw(`SELECT * FROM all_views WHERE owner='${e.databaseName}' and view_name='${e.view_name}'`);for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.view_name=n.object_name,n.view_definition=n.text,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async triggerRead(e={}){const t=this.triggerRead.name,n=new u.default;l.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.user;const t=await this.sqlClient.raw(`select owner as trigger_schema_name, trigger_name, trigger_type,\n triggering_event, table_owner as schema_name, table_name as object_name,\n base_object_type as object_type, status, trigger_body as script from sys.all_triggers\n -- excluding some Oracle maintained schemas\n where owner = '${e.databaseName}' and trigger_name = '${e.trigger_name}' order by trigger_name, table_owner, table_name, base_object_type`);if(!t[0])return[];for(let e=0;e<t.length;e++){let n=t[e];n=(0,i.default)(n,((e,t)=>t.toLowerCase())),n.trigger=n.trigger_name,n.table=n.object_name,n.event=n.triggering_event,n.timing=n.trigger_type,n.trigger_definition=n.script,t[e]=n}n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async schemaCreate(e={}){const t=this.schemaCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw(`create database ${e.database_name}`)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async schemaDelete(e={}){const t=this.schemaDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw(`drop database ${e.database_name}`)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async triggerDelete(e={}){const t=this.triggerDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw(`DROP TRIGGER IF EXISTS ${e.trigger_name}`)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async functionDelete(e={}){const t=this.functionDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw(`DROP FUNCTION IF EXISTS ${e.function_name}`)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async procedureDelete(e={}){const t=this.procedureDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.raw(`DROP PROCEDURE IF EXISTS ${e.procedure_name}`)}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async functionCreate(e={}){const t=this.functionCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`CREATE TRIGGER \`${e.function_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async functionUpdate(e={}){const t=this.functionUpdate.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${e.function_name}`);const t=await this.sqlClient.raw(`CREATE TRIGGER \`${e.function_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async procedureCreate(e={}){const t=this.procedureCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`CREATE TRIGGER \`${e.procedure_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async procedureUpdate(e={}){const t=this.procedureUpdate.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${e.procedure_name}`);const t=await this.sqlClient.raw(`CREATE TRIGGER \`${e.procedure_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async triggerCreate(e={}){const t=this.triggerCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=`CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t),n.data.object={upStatement:t,downStatement:`DROP TRIGGER ${e.trigger_name}`}}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async triggerUpdate(e={}){const t=this.triggerUpdate.name,n=new u.default;l.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${e.trigger_name}`),await this.sqlClient.raw(`CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`),n.data.object={upStatement:`DROP TRIGGER ${e.trigger_name};\nCREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.statement}`,downStatement:`CREATE TRIGGER \`${e.trigger_name}\` \n${e.timing} ${e.event}\nON ${e.tn} FOR EACH ROW\n${e.oldStatement}`}}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async viewCreate(e={}){const t=this.viewCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=`CREATE VIEW ${e.view_name} AS \n${e.view_definition}`;await this.sqlClient.raw(t),n.data.object={upStatement:t,downStatement:`DROP VIEW ${e.view_name}`}}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async viewUpdate(e={}){const t=this.viewUpdate.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=`CREATE OR REPLACE VIEW ${e.view_name} AS \n${e.view_definition}`;await this.sqlClient.raw(t),n.data.object={upStatement:t,downStatement:`CREATE VIEW ${e.view_name} AS \n${e.oldViewDefination}`}}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async viewDelete(e={}){const t=this.viewDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{const t=`DROP VIEW ${e.view_name}`;await this.sqlClient.raw(t),n.data.object={upStatement:t,downStatement:`CREATE VIEW ${e.view_name} AS \n${e.oldViewDefination}`}}catch(e){throw l.ppe(e,t),e}return l.api(`${t}: result`,n),n}async tableCreate(e){const t=this.tableCreate.name,n=new u.default;l.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=h(e.tn,e);await this.sqlClient.raw(t);const a=this.sqlClient.schema.dropTable(e.table).toSQL();this.emit(`Success : ${t}`),n.data.object={upStatement:[{sql:t}],downStatement:a}}catch(e){throw l.ppe(e,t),e}return n}async tableUpdate(e){const t=this.tableUpdate.name,n=new u.default;l.api(`${t}:args:`,e);try{e.table=e.tn;const t=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;let a="",r="";for(let n=0;n<e.columns.length;++n){const i=(0,s.default)(t,{cn:e.columns[n].cno});4&e.columns[n].altered?(a+=d(e.table,e.columns[n],i),r+=m(e.table,i,e.columns[n],r)):2&e.columns[n].altered||8&e.columns[n].altered?(a+=f(e.table,e.columns[n],i,a),r+=f(e.table,i,e.columns[n],r)):1&e.columns[n].altered&&(a+=m(e.table,e.columns[n],i,a),r+=d(e.table,e.columns[n],i))}await this.sqlClient.raw(a),console.log(a),n.data.object={upStatement:[{sql:a}],downStatement:[{sql:r}]}}catch(e){throw l.ppe(e,t),e}return n}async tableDelete(e){const t=this.tableDelete.name,n=new u.default;l.api(`${t}:args:`,e);try{e.sqlClient=this.sqlClient;const t=this.sqlClient.schema.dropTable(e.tn).toSQL(),a=h(e.tn,e);this.emit(`Success : ${t}`),await this.sqlClient.schema.dropTable(e.tn),n.data.object={upStatement:t,downStatement:[{sql:a}]}}catch(e){throw l.ppe(e,t),e}return n}async tableCreateStatement(e){const t=this.tableCreateStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{n.data=";";const t=await this.sqlClient.raw(`show create table ${e.tn};`);2===t.length&&(n.data=t[0][0]["Create Table"])}catch(e){throw l.ppe(e,t),e}return n}async tableInsertStatement(e){const t=this.tableCreateStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{let t=" VALUES (";n.data=`INSERT INTO \`${e.tn}\` (`;const a=await this.columnList(e);if(a.data&&a.data.list)for(let e=0;e<a.data.list.length;++e)e?(n.data+=`, \`${a.data.list[e].cn}\`\n\t`,t+=`, <${a.data.list[e].cn}>\n\t`):(n.data+=`\n\`${a.data.list[e].cn}\`\n\t`,t+=`\n<${a.data.list[e].cn}>\n\t`);n.data+=")",t+=");",n.data+=t}catch(e){throw l.ppe(e,t),e}return n}async tableUpdateStatement(e){const t=this.tableUpdateStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{n.data=`UPDATE \`${e.tn}\` \nSET\n`;const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`,\`${t.data.list[e].cn}\` = <\`${t.data.list[e].cn}\`>\n\t`:`\`${t.data.list[e].cn}\` = <\`${t.data.list[e].cn}\`>\n\t`;n.data+=";"}catch(e){throw l.ppe(e,t),e}return n}async tableDeleteStatement(e){const t=this.tableDeleteStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{n.data=`DELETE FROM ${e.tn};`}catch(e){throw l.ppe(e,t),e}return n}async tableTruncateStatement(e){const t=this.tableTruncateStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{n.data=`TRUNCATE TABLE ${e.tn};`}catch(e){throw l.ppe(e,t),e}return n}async tableSelectStatement(e){const t=this.tableSelectStatement.name,n=new u.default;l.api(`${t}:args:`,e);try{n.data="SELECT ";const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`, ${t.data.list[e].cn}\n\t`:`${t.data.list[e].cn}\n\t`;n.data+=` FROM ${e.tn};`}catch(e){throw l.ppe(e,t),e}return n}async totalRecords(e={}){throw this.totalRecords.name,new Error("Function not supported for oracle yet")}}function d(e,t,n){let a=n?",":"";return a+=` DROP COLUMN \`${e.cn}\``,a}function m(e,t,n,a){return b(e,t,n,a,1)}function f(e,t,n,a){return b(e,t,n,a,2)}function h(e,t){let n="";for(let a=0;a<t.columns.length;++a)n+=b(e,t.columns[a],null,n,0);return n+=function(e,t,n,a=!1){const r=[],i=[];let s=0;for(let t=0;t<e.length;++t)e[t].pk&&4!==e[t].altered&&i.push(e[t].cn);for(let e=0;e<t.length;++e)t[e].pk&&r.push(t[e].cn);if(i.length===r.length){for(let e=0;e<i.length;++e)if(r[e]!==i[e]){s=1;break}}else s=i.length-r.length;let o="";return(i.length||r.length)&&s&&(o+=r.length?",DROP PRIMARY KEY":"",i.length&&(o+=a?`, PRIMARY KEY(${i.join(",")})`:`, ADD PRIMARY KEY(${i.join(",")})`)),o}(t.columns,[],0,!0),n=`CREATE TABLE ${t.tn} (`+n+")",n}function b(e,t,n,a,r=2){const i=parseInt(t.dtxs)?parseInt(t.dtxs):null;let s=a?",":"";const o=function(e){if(void 0===e.cdf||null===e.cdf)return e.cdf;switch(e.dt){case"bfile":case"binary rowid":case"binary double":case"binary_float":case"blob":case"canoical":case"cfile":case"char":case"clob":case"content pointer":case"contigous array":case"date":case"decimal":case"double precision":case"float":case"integer":case"interval day to second":case"interval year to month":case"lob pointer":case"long":case"long raw":case"named collection":case"named object":case"nchar":case"nclob":case"number":case"nvarchar2":case"octet":case"oid":case"pointer":case"raw":case"real":case"ref":case"ref cursor":case"rowid":case"signed binary integer":case"smallint":case"table":case"time":case"time with tz":case"timestamp":case"timestamp with local time zone":case"timestamp with local tz":case"timestamp with timezone":case"timestamp with tz":case"unsigned binary integer":case"urowid":case"varchar":case"varchar2":case"varray":case"varying array":return e.cdf}}(t);return 0===r?(t.ai?(t.dt,s+=` ${t.cn} serial`):s+=` ${t.cn} ${t.dt}`,s+=t.dtxp&&" "!==t.dtxp?`(${t.dtxp}`:"",s+=i?`,${i}`:"",s+=t.dtxp&&" "!==t.dtxp?")":"",s+=t.rqd?" NOT NULL":" NULL",s+=o?` DEFAULT ${o}`:""):1===r?(s+=` ADD ${t.cn} ${t.dt}`,s+=t.rqd?" NOT NULL":" NULL",s+=o?` DEFAULT ${o}`:" ",s=`ALTER TABLE ${e} ${s};`):(t.cn!==n.cno&&(s+=`\nALTER TABLE ${e} RENAME COLUMN ${t.cno} TO ${t.cn};\n`),t.dt!==n.dt&&(s+=`\nALTER TABLE ${e} ALTER COLUMN ${t.cn} TYPE ${t.dt};\n`),t.rqd!==n.rqd&&(s+=`\nALTER TABLE ${e} ALTER COLUMN ${t.cn} `,s+=t.rqd?" SET NOT NULL;\n":" DROP NOT NULL;\n"),t.cdf!==n.cdf&&(s+=`\nALTER TABLE ${e} ALTER COLUMN ${t.cn} `,s+=t.cdf?` SET DEFAULT ${t.cdf};\n`:" DROP DEFAULT;\n")),s}t.default=p},8831:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(6331),i=a(n(1832)),s=a(n(943)),o=a(n(9020)),c=a(n(133)),u=n(2678),l=a(n(4020)),p=a(n(5924)),d=a(n(5578)),m=a(n(5838)),f=n(7990),h=a(n(5838)),b=new p.default("PGClient");class g extends l.default{constructor(e){super(e),this.queries=m.default,this._version={}}async schemaCreateWithCredentials(e){const t=this.schemaCreateWithCredentials.name,n=new d.default;b.api(`${t}:args:`,e);try{e.schema||(e.schema=`nc${(0,r.nanoid)(8)}`),e.user||(e.user=`nc${(0,r.nanoid)(8)}`),e.password||(e.password=(0,r.nanoid)(16));const t=await this.sqlClient.raw("create database ?",[e.schema]);await this.sqlClient.raw("create user ? with encrypted password ?",[e.user,e.password]),await this.sqlClient.raw("grant all privileges on database ?? to ?",[e.schema,e.user]),b.debug("Create database if not exists",t),n.object=e}catch(e){n.code=-1,n.message=e.message,n.object=e}return n}async sequenceDelete(e={}){const t=this.sequenceDelete.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=`${this.querySeparator()}DROP SEQUENCE ${this.genIdentifier(e.sequence_name)}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:`${this.querySeparator()}CREATE SEQUENCE ${this.genIdentifier(e.sequence_name)}`}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async sequenceList(e={}){const t=this.sequenceList.name,n=new d.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.raw("select *\n from INFORMATION_SCHEMA.sequences;");n.data.list=t.map((e=>Object.assign(Object.assign({},e),{original_sequence_name:e.sequence_name})))}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async sequenceCreate(e={}){const t=this.sequenceCreate.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE SEQUENCE ${this.genIdentifier(e.sequence_name)}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`DROP SEQUENCE ${this.genIdentifier(e.sequence_name)}`}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async sequenceUpdate(e={}){const t=this.sequenceUpdate.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`ALTER SEQUENCE ${this.genIdentifier(e.original_sequence_name)} RENAME TO ${this.genIdentifier(e.sequence_name)};`,a=this.querySeparator()+`ALTER SEQUENCE ${this.genIdentifier(e.sequence_name)} RENAME TO ${this.genIdentifier(e.original_sequence_name)};`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async testConnection(e={}){const t=this.testConnection.name,n=new d.default;b.api(`${t}:args:`,e);try{await this.raw("SELECT 1+1 as data")}catch(e){const a=JSON.parse(JSON.stringify(this.connectionConfig));a.connection.database="postgres";const r=(0,i.default)(Object.assign(Object.assign({},a),{pool:{min:0,max:1}}));try{await r.raw("SELECT 1+1 as data"),await r.destroy()}catch(t){/^database "[\w\d_]+" does not exist$/.test(t.message)||(b.ppe(t),n.code=-1,n.message=e.message)}}finally{b.api(`${t}:result:`,n)}return n}getKnexDataTypes(){const e=new d.default;return e.data.list=["int","integer","bigint","bigserial","char","int2","int4","int8","int4range","int8range","serial","serial2","serial8","character","bit","bool","boolean","date","double precision","event_trigger","fdw_handler","float4","float8","uuid","smallint","smallserial","character varying","text","real","time","time without time zone","timestamp","timestamp without time zone","timestamptz","timestamp with time zone","timetz","time with time zone","daterange","json","jsonb","gtsvector","index_am_handler","anyenum","anynonarray","anyrange","box","bpchar","bytea","cid","cidr","circle","cstring","inet","internal","interval","language_handler","line","lsec","macaddr","money","name","numeric","numrange","oid","opaque","path","pg_ddl_command","pg_lsn","pg_node_tree","point","polygon","record","refcursor","regclass","regconfig","regdictionary","regnamespace","regoper","regoperator","regproc","regpreocedure","regrole","regtype","reltime","smgr","tid","tinterval","trigger","tsm_handler","tsquery","tsrange","tstzrange","tsvector","txid_snapshot","unknown","void","xid","xml"],e}async version(e={}){const t=this.version.name,n=new d.default;b.api(`${t}:args:`,e);try{n.data.object={};const e=await this.sqlClient.raw("SHOW server_version");b.debug(e.rows[0]),n.data.object.version=e.rows[0].server_version;const t=e.rows[0].server_version.split(".");!t.length||3!==t.length&&2!==t.length?(n.code=-1,n.message=`Invalid version : ${e.rows[0].server_version}`):(n.data.object.primary=t[0],n.data.object.major=t[1],n.data.object.minor=t.length>2?t[2]:t[1],n.data.object.key=t[0]+t[1])}catch(e){b.ppe(e),n.code=-1,n.message=e.message}finally{b.api(`${t} :result: %o`,n)}return n}async createDatabaseIfNotExists(e={}){var t;const n=this.createDatabaseIfNotExists.name,a=new d.default;let r;b.api(`${n}:args:`,e);try{const n=JSON.parse(JSON.stringify(this.connectionConfig));let a=[];try{n.connection.database="postgres",r=(0,i.default)(Object.assign(Object.assign({},n),{pool:{min:0,max:1}})),b.debug("checking if db exists"),a=(await r.raw("SELECT datname as database FROM pg_database WHERE datistemplate = false and datname = ?",[e.database])).rows}catch(t){b.debug("checking if db exists"),a=(await this.sqlClient.raw("SELECT datname as database FROM pg_database WHERE datistemplate = false and datname = ?",[e.database])).rows}0===a.length&&(b.debug("creating database:",e),await r.raw("CREATE DATABASE ?? ENCODING 'UTF8'",[e.database]));const s=this.getEffectiveSchema(e);(null===(t=(await this.sqlClient.raw("SELECT schema_name FROM information_schema.schemata WHERE schema_name = ?",[s])).rows)||void 0===t?void 0:t[0])||await this.sqlClient.raw("CREATE SCHEMA IF NOT EXISTS ?? AUTHORIZATION ?? ",[s,this.connectionConfig.connection.user])}catch(e){throw b.ppe(e,n),e}finally{r&&await r.destroy()}return b.api(`${n}: result`,a),a}getEffectiveSchema(e={}){return(null==e?void 0:e.schema)||this.schema}async dropDatabase(e){const t=this.dropDatabase.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=JSON.parse(JSON.stringify(this.connectionConfig));t.connection.database="postgres";const n=(0,i.default)(Object.assign(Object.assign({},t),{pool:{min:0,max:1}}));await this.sqlClient.destroy(),this.sqlClient=n,await n.raw("ALTER DATABASE ?? WITH CONNECTION LIMIT 0;\n SELECT pg_terminate_backend(sa.pid) FROM pg_stat_activity sa WHERE\n sa.pid <> pg_backend_pid() AND sa.datname = ?;",[e.database,e.database]),b.debug("dropping database:",e),await n.raw("DROP DATABASE ??;",[e.database]),await n.destroy()}catch(e){b.ppe(e,t)}return b.api(`${t}: result`,n),n}async createTableIfNotExists(e){const t=this.createTableIfNotExists.name,n=new d.default;b.api(`${t}:args:`,e);try{if(0===(await this.sqlClient.raw("SELECT table_schema,table_name as tn, table_catalog FROM information_schema.tables where table_schema=? and\n table_name = ? and table_catalog = ?",[this.getEffectiveSchema(e),e.tn,this.connectionConfig.connection.database])).rows.length){const t=await this.sqlClient.raw(this.sqlClient.schema.createTable(e.tn,(function(e){e.increments(),e.string("title").notNullable(),e.string("titleDown").nullable(),e.string("description").nullable(),e.integer("batch").nullable(),e.string("checksum").nullable(),e.integer("status").nullable(),e.dateTime("created"),e.timestamps()})).toQuery());b.debug("Table created:",`${e.tn}`,t)}else b.debug(`${e.tn} tables exists`)}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async hasTable(e={}){const t=this.hasTable.name,n=new d.default;b.api(`${t}:args:`,e);try{const{rows:t}=await this.sqlClient.raw("SELECT table_schema,table_name as tn, table_catalog FROM information_schema.tables where table_schema=? and table_name = ? and table_catalog = ?'",[this.getEffectiveSchema(e),e.tn,this.connectionConfig.connection.database]);n.data.value=t.length>0}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async hasDatabase(e={}){const t=this.hasDatabase.name,n=new d.default;b.api(`${t}:args:`,e);try{const{rows:t}=await this.sqlClient.raw("SELECT datname as database FROM pg_database WHERE datistemplate = false and datname = ?",[e.database]);n.data.value=t.length>0}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async databaseList(e={}){const t=this.databaseList.name,n=new d.default;b.api(`${t}:args:`,e);try{const{rows:e}=await this.sqlClient.raw("SELECT datname as database_name\n FROM pg_database\n WHERE datistemplate = false;");n.data.list=e}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async tableList(e={}){const t=this.tableList.name,n=new d.default;b.api(`${t}:args:`,e);try{const{rows:t}=await this.raw("SELECT table_schema as ts, table_name as tn,table_type\n FROM information_schema.tables\n where table_schema = ?\n ORDER BY table_schema, table_name",[this.getEffectiveSchema(e)]);n.data.list=t.filter((({table_type:e})=>"base table"===e.toLowerCase()))}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async schemaList(e={}){const t=this.schemaList.name,n=new d.default;b.api(`${t}:args:`,e);try{const{rows:e}=await this.raw("SELECT datname as schema_name FROM pg_database\n WHERE \n datistemplate = false \n order by schema_name;");n.data.list=e}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async columnList(e={}){var t,n,a,r,i;const s=this.columnList.name,o=new d.default;b.api(`${s}:args:`,e);try{const s=null===(i=null===(r=null===(a=null===(n=null===(t=(await this.sqlClient.raw("SELECT version()")).rows[0])||void 0===t?void 0:t.version)||void 0===n?void 0:n.split(" "))||void 0===a?void 0:a[1])||void 0===r?void 0:r.split("."))||void 0===i?void 0:i[0],c=+s>=10?"c.is_identity as ii,":"";e.databaseName=this.connectionConfig.connection.database;const u=await this.sqlClient.raw(`select\n c.table_name as tn, c.column_name as cn, c.data_type as dt,\n (CASE WHEN trg.trigger_name is NULL THEN false else true end) as au,\n pk.constraint_type as ck,\n c.character_maximum_length as clen,\n c.numeric_precision as np,\n c.numeric_scale as ns,\n c.datetime_precision as dp,\n c.ordinal_position as cop,\n c.is_nullable as nrqd,\n c.column_default as cdf,\n c.generation_expression,\n c.character_octet_length,\n c.character_set_name as csn,\n -- c.collation_name as clnn,\n pk.ordinal_position as pk_ordinal_position, pk.constraint_name as pk_constraint_name,\n c.udt_name,\n ${c}\n\n (SELECT count(*)\n FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc1\n inner join INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE cu\n on cu.CONSTRAINT_NAME = tc1.CONSTRAINT_NAME\n where\n tc1.CONSTRAINT_TYPE = 'UNIQUE'\n and tc1.TABLE_NAME = c.TABLE_NAME\n and cu.COLUMN_NAME = c.COLUMN_NAME\n and tc1.TABLE_SCHEMA=c.TABLE_SCHEMA) IsUnique,\n (SELECT\n string_agg(enumlabel, ',')\n FROM "pg_enum" "e"\n INNER JOIN "pg_type" "t" ON "t"."oid" = "e"."enumtypid"\n INNER JOIN "pg_namespace" "n" ON "n"."oid" = "t"."typnamespace"\n WHERE "n"."nspname" = table_schema AND "t"."typname"=udt_name\n ) enum_values\n\n\n from information_schema.columns c\n left join\n ( select kc.constraint_name, kc.table_name,kc.column_name, kc.ordinal_position,tc.constraint_type\n from information_schema.key_column_usage kc\n inner join information_schema.table_constraints as tc\n on kc.constraint_name = tc.constraint_name \n and kc.constraint_schema = tc.constraint_schema and tc.constraint_type in ('PRIMARY KEY')\n where kc.table_catalog = :database and kc.table_schema= :schema\n order by table_name,ordinal_position ) pk\n on\n pk.table_name = c.table_name and pk.column_name=c.column_name\n left join information_schema.triggers trg on trg.event_object_table = c.table_name and trg.trigger_name = CONCAT('xc_trigger_' , :table::text , '_' , c.column_name)\n where c.table_catalog=:database and c.table_schema=:schema and c.table_name=:table\n order by c.table_name, c.ordinal_position`,{schema:this.getEffectiveSchema(e),database:e.databaseName,table:e.tn}),l=[];for(let e=0;e<u.rows.length;++e){const t={};t.tn=u.rows[e].tn,t.cn=u.rows[e].cn,t.cno=u.rows[e].cn,t.dt=u.rows[e].dt,t.np=u.rows[e].np,t.ns=u.rows[e].ns,t.clen=u.rows[e].clen,t.dp=u.rows[e].dp,t.cop=u.rows[e].cop,t.dtx=u.rows[e].dt,t.pk=null!==u.rows[e].pk_constraint_name,t.nrqd="NO"!==u.rows[e].nrqd,t.not_nullable=!t.nrqd,t.rqd=!t.nrqd,u.rows[e].ct=u.rows[e].dt||"",t.un=-1!==u.rows[e].ct.indexOf("unsigned"),t.ai=!1,u.rows[e].cdf&&(t.ai=-1!==u.rows[e].cdf.indexOf("nextval")),t.cdf=u.rows[e].cdf?u.rows[e].cdf.replace(/::[\w (),]+$/,"").replace(/^'|'$/g,""):u.rows[e].cdf,t.cc=u.rows[e].cc,t.csn=u.rows[e].csn,t.dtxp=u.rows[e].clen||u.rows[e].np||u.rows[e].dp,t.dtxs=u.rows[e].ns,t.au=u.rows[e].au,t.data_type_custom=u.rows[e].udt_name,"USER-DEFINED"===t.dt&&(t.dtxp=u.rows[e].enum_values),+s>=10&&"YES"===u.rows[e].ii&&(t.ai=!0),l.push(t)}o.data.list=l}catch(e){throw b.ppe(e,s),e}return b.api(`${s}: result`,o),o}async indexList(e={}){const t=this.indexList.name,n=new d.default;b.api(`${t}:args:`,e);try{const{rows:t}=await this.sqlClient.raw("SELECT\n f.attname AS cn,\n i.relname as key_name,\n ix.indnatts, ix.indkey, f.attnum as seq_in_index,\n pg_catalog.format_type(f.atttypid,f.atttypmod) AS type,\n f.attnotnull as rqd,\n p.contype as cst,\n p.conname as cstn,\n ix.indisprimary as primarykey,\n not ix.indisunique as non_unique_original,\n not ix.indisunique as non_unique,\n CASE\n WHEN i.oid<>0 THEN true\n ELSE false\n END AS is_index,\n CASE\n WHEN f.atthasdef = 't' THEN pg_get_expr(d.adbin, d.adrelid)\n END AS default FROM pg_attribute f\n JOIN pg_class c ON c.oid = f.attrelid\n JOIN pg_type t ON t.oid = f.atttypid\n LEFT JOIN pg_attrdef d ON d.adrelid = c.oid AND d.adnum = f.attnum\n LEFT JOIN pg_namespace n ON n.oid = c.relnamespace\n LEFT JOIN pg_constraint p ON p.conrelid = c.oid AND f.attnum = ANY (p.conkey)\n LEFT JOIN pg_class AS g ON p.confrelid = g.oid\n LEFT JOIN pg_index AS ix ON f.attnum = ANY(ix.indkey) and c.oid = f.attrelid and c.oid = ix.indrelid\n LEFT JOIN pg_class AS i ON ix.indexrelid = i.oid\n WHERE\n c.relkind = 'r'::char\n AND n.nspname = ?\n AND c.relname = ?\n and i.oid<>0\n AND f.attnum > 0\n ORDER BY i.relname, f.attnum;",[this.getEffectiveSchema(e),e.tn]);n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async relationDelete(e){const t=this.relationDelete.name,n=new d.default;b.api(`${t}:args:`,e);const a=e.foreignKeyName||null;e.childTableWithSchema=e.schema?`${e.schema}.${e.childTable}`:e.childTable,e.parentTableWithSchema=e.schema?`${e.schema}.${e.parentTable}`:e.parentTable;try{await this.sqlClient.raw(this.sqlClient.schema.table(e.childTableWithSchema,(function(t){t.dropForeign(e.childColumn,a)})).toQuery());const t=this.querySeparator()+this.sqlClient.schema.table(e.childTableWithSchema,(function(t){t.dropForeign(e.childColumn,a)})).toQuery(),r=this.querySeparator()+this.sqlClient.schema.table(e.childTableWithSchema,(function(t){t.foreign(e.childColumn,a).references(e.parentColumn).on(e.parentTableWithSchema)})).toQuery();n.data.object={upStatement:[{sql:t}],downStatement:[{sql:r}]}}catch(e){throw b.ppe(e,t),e}return n}async constraintList(e={}){const t=this.constraintList.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw('\n SELECT c.conname AS cstn,\n CASE\n WHEN c.contype = \'u\' THEN \'UNIQUE\'\n WHEN c.contype = \'p\' THEN \'PRIMARY KEY\'\n ELSE \'FOREIGN KEY\'\n END AS cst,\n col.attnum,\n sch.nspname AS "schema",\n tbl.relname AS "table",\n ARRAY_AGG(col.attname ORDER BY u.attposition) AS columns,\n pg_get_constraintdef(c.oid) AS definition\n FROM pg_constraint c\n JOIN LATERAL UNNEST(c.conkey) WITH ORDINALITY AS u(attnum, attposition) ON TRUE\n JOIN pg_class tbl ON tbl.oid = c.conrelid\n JOIN pg_namespace sch ON sch.oid = tbl.relnamespace\n JOIN pg_attribute col ON (col.attrelid = tbl.oid AND col.attnum = u.attnum)\n where tbl.relname=?\n GROUP BY constraint_name, col.attnum, constraint_type, "schema", "table", definition\n ORDER BY "schema", "table"; ',[e.tn]),a=[];for(let e=0,n=0;e<t.rows.length;++e,++n)if(t.rows[e].columns=t.rows[e].columns.replace("{",""),t.rows[e].columns=t.rows[e].columns.replace("}",""),t.rows[e].columns=t.rows[e].columns.split(","),1===t.rows[e].columns.length)a[n]=t.rows[e],a[n].columns=t.rows[e].columns[0],a[n].seq_in_index=1;else{const r=t.rows[e].columns.slice();for(let i=0;i<r.length;++i,++n)a[n]=JSON.parse(JSON.stringify(t.rows[e])),a[n].columns=r[i],a[n].seq_in_index=i;n--}n.data.list=a}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async relationList(e={}){const t=this.relationList.name,n=new d.default;b.api(`${t}:args:`,e);try{const{rows:t}=await this.sqlClient.raw("SELECT distinct\n tc.table_schema as ts,\n tc.constraint_name as cstn,\n tc.table_name as tn,\n kcu.column_name as cn,\n ccu.table_schema AS foreign_table_schema,\n ccu.table_name AS rtn,\n ccu.column_name AS rcn,\n pc.confupdtype as ur, pc.confdeltype as dr\n FROM\n information_schema.table_constraints AS tc\n JOIN information_schema.key_column_usage AS kcu\n ON tc.constraint_name = kcu.constraint_name\n AND tc.table_schema = kcu.table_schema\n JOIN information_schema.constraint_column_usage AS ccu\n ON ccu.constraint_name = tc.constraint_name\n AND ccu.table_schema = tc.table_schema\n join (select conname,confupdtype,confdeltype from pg_catalog.pg_constraint) pc\n on pc.conname = tc.constraint_name\n WHERE tc.constraint_type = 'FOREIGN KEY' AND tc.table_schema=:schema and tc.table_name=:table\n order by tc.table_name;",{schema:this.getEffectiveSchema(e),table:e.tn}),a={a:"NO ACTION",c:"CASCADE",r:"RESTRICT",n:"SET NULL",d:"SET DEFAULT"};for(const e of t)e.ur=a[e.ur],e.dr=a[e.dr];n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async relationCreate(e){const t=this.relationCreate.name,n=new d.default;b.api(`${t}:args:`,e);const a=e.foreignKeyName||null;e.childTableWithSchema=e.schema?`${e.schema}.${e.childTable}`:e.childTable,e.parentTableWithSchema=e.schema?`${e.schema}.${e.parentTable}`:e.parentTable;try{const t=this.sqlClient.schema.table(e.childTableWithSchema,(function(t){t=t.foreign(e.childColumn,a).references(e.parentColumn).on(e.parentTableWithSchema),e.onUpdate&&(t=t.onUpdate(e.onUpdate)),e.onDelete&&t.onDelete(e.onDelete)}));await this.sqlClient.raw(t.toQuery());const r=this.querySeparator()+t.toQuery();this.emit(`Success : ${r}`);const i=this.querySeparator()+this.sqlClient.schema.table(e.childTableWithSchema,(function(t){t.dropForeign(e.childColumn,a)})).toQuery();n.data.object={upStatement:[{sql:r}],downStatement:[{sql:i}]}}catch(e){throw b.ppe(e,t),e}return n}async relationListAll(e={}){const t=this.relationList.name,n=new d.default;b.api(`${t}:args:`,e);try{const{rows:t}=await this.sqlClient.raw("SELECT DISTINCT tc.table_schema as ts,\n tc.constraint_name as cstn,\n tc.table_name as tn,\n kcu.column_name as cn,\n ccu.table_schema AS foreign_table_schema,\n ccu.table_name AS rtn,\n ccu.column_name AS rcn,\n pc.confupdtype as ur,\n pc.confdeltype as dr\n FROM information_schema.table_constraints AS tc\n JOIN information_schema.key_column_usage AS kcu\n ON tc.constraint_name = kcu.constraint_name\n AND tc.table_schema = kcu.table_schema\n JOIN information_schema.constraint_column_usage AS ccu\n ON ccu.constraint_name = tc.constraint_name\n AND ccu.table_schema = tc.table_schema\n join (select conname, confupdtype, confdeltype\n from pg_catalog.pg_constraint) pc\n on pc.conname = tc.constraint_name\n WHERE tc.constraint_type = 'FOREIGN KEY'\n AND tc.table_schema = ?\n order by tc.table_name;",[this.getEffectiveSchema(e)]),a={a:"NO ACTION",c:"CASCADE",r:"RESTRICT",n:"SET NULL",d:"SET DEFAULT"};for(const e of t)e.ur=a[e.ur],e.dr=a[e.dr];n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerList(e={}){const t=this.triggerList.name,n=new d.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.sqlClient.raw("select * from information_schema.triggers where trigger_schema=? and event_object_table=?",[this.getEffectiveSchema(e),e.tn]);for(let e=0;e<t.length;++e)t[e].statement=t[e].action_statement,t[e].table=t[e].event_object_table,t[e].trigger=t[e].trigger_name,t[e].event=t[e].event_manipulation,t[e].timing=t[e].action_timing;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionList(e={}){const t=this.functionList.name,n=new d.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.sqlClient.raw("SELECT *\n FROM pg_catalog.pg_namespace n\n JOIN pg_catalog.pg_proc p\n ON pronamespace = n.oid\n WHERE nspname = ?;",[this.getEffectiveSchema(e)]),a=[];for(let e=0;e<t.length;++e)"prokind"in t[e]&&"p"===t[e].prokind||a.push({create_function:t[e].prosrc,function_name:t[e].proname});n.data.list=a}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureList(e={}){const t=this.procedureList.name,n=new d.default;n.data.list=[],b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.sqlClient.raw("SELECT *\n FROM pg_catalog.pg_namespace n\n JOIN pg_catalog.pg_proc p\n ON pronamespace = n.oid\n WHERE nspname = ?;",[this.getEffectiveSchema(e)]),a=[];for(let e=0;e<t.length;++e)"prokind"in t[e]&&"p"===t[e].prokind&&a.push({create_procedure:t[e].prosrc,procedure_name:t[e].proname});n.data.list=a}catch(e){}return b.api(`${t}: result`,n),n}async viewList(e={}){const t=this.viewList.name,n=new d.default;b.api(`${t}:args:`,e);try{const{rows:t}=await this.sqlClient.raw("select *\n from INFORMATION_SCHEMA.views\n WHERE table_schema = ?;",[this.getEffectiveSchema(e)]);for(let e=0;e<t.length;++e)t[e].view_name=t[e].tn||t[e].table_name;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionRead(e={}){const t=this.functionRead.name,n=new d.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.sqlClient.raw("SELECT format('%I.%I(%s)', ns.nspname, p.proname, oidvectortypes(p.proargtypes)) as function_declaration, pg_get_functiondef(p.oid) as create_function\n FROM pg_proc p INNER JOIN pg_namespace ns ON (p.pronamespace = ns.oid)\n WHERE ns.nspname = ? and p.proname = ?;",[this.getEffectiveSchema(e),e.function_name]);for(let n=0;n<t.length;++n)t[n].function_name=e.function_name;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureRead(e={}){const t=this.procedureRead.name,n=new d.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("show create procedure ?;",[e.procedure_name]),a=[];if(2===t.length)for(let e=0;e<t[0].length;++e){let n=t[0][e];n=(0,o.default)(n,((e,t)=>t.toLowerCase())),n.create_procedure=n["create procedure"],a.push(n)}else b.debug("Unknown response for tableList:",t);n.data.list=a}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewRead(e={}){const t=this.viewRead.name,n=new d.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const{rows:t}=await this.sqlClient.raw("select * from INFORMATION_SCHEMA.views WHERE table_name=? and table_schema = ANY (current_schemas(false));",[e.view_name]);for(let e=0;e<t.length;++e)t[e].view_name=t[e].tn;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerRead(e={}){const t=this.triggerRead.name,n=new d.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SHOW FULL TABLES IN ?? WHERE TABLE_TYPE LIKE 'VIEW';",[e.databaseName]);let a=[];if(2===t.length){const n=[];for(let a=0;a<t[0].length;++a){const r=t[0][a];r.view_name=r[`Tables_in_${e.databaseName}`],n.push(r)}a=n}else b.debug("Unknown response for tableList:",t);n.data.list=a}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async schemaCreate(e={}){const t=this.schemaCreate.name,n=new d.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw("create database ??",[e.database_name])}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async schemaDelete(e={}){const t=this.schemaDelete.name,n=new d.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw("drop database ??",[e.database_name])}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerDelete(e={}){const t=this.triggerDelete.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=this.genQuery("DROP TRIGGER IF EXISTS ?? ON ??",[e.trigger_name,e.tn]);await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+this.genQuery(`CREATE TRIGGER ?? \n${e.timing} ${e.event}\nON ?? FOR EACH ROW\n${e.statement}`,[e.trigger_name,e.tn])}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionDelete(e={}){const t=this.functionDelete.name,n=new d.default;b.api(`${t}:args:`,e);const a=this.querySeparator()+`DROP FUNCTION IF EXISTS ${this.genIdentifier(e.function_declaration)}`,r=this.querySeparator()+e.create_function;try{await this.sqlClient.raw(a),n.data.object={upStatement:[{sql:a}],downStatement:[{sql:r}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureDelete(e={}){const t=this.procedureDelete.name,n=new d.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP PROCEDURE IF EXISTS ${this.genIdentifier(e.procedure_name)}`)}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async _getQuery(e){try{if((0,s.default)(this._version)){const t=await this.version();this._version=t.data.object,b.debug(`Version was empty for ${e.func}: population version for database as`,this._version)}return this._version.key in this.queries[e.func]?this.queries[e.func][this._version.key].sql:this.queries[e.func].default.sql}catch(e){throw b.ppe(e,this._getQuery.name),e}}async functionCreate(e={}){const t=this.functionCreate.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+e.create_function;await this.sqlClient.raw(t);const a=await this.functionRead({function_name:e.function_name}),r=this.querySeparator()+`DROP FUNCTION IF EXISTS ${this.genIdentifier(a.data.list[0].function_declaration)}`;n.data.object={upStatement:[{sql:t}],downStatement:[{sql:r}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionUpdate(e={}){const t=this.functionUpdate.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+e.create_function;let a=this.querySeparator()+e.oldCreateFunction;await this.sqlClient.raw(`DROP FUNCTION IF EXISTS ${this.genIdentifier(e.function_declaration)};`),await this.sqlClient.raw(t);const r=await this.functionRead({function_name:e.function_name});a=`DROP FUNCTION IF EXISTS ${this.genIdentifier(r.data.list[0].function_declaration)};`+a,n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureCreate(e={}){const t=this.procedureCreate.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE TRIGGER ${this.genIdentifier(e.procedure_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t);const a=this.querySeparator()+`DROP PROCEDURE IF EXISTS ${this.genIdentifier(e.procedure_name)}`;n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureUpdate(e={}){const t=this.procedureUpdate.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`DROP TRIGGER ${e.procedure_name}`,a=this.querySeparator()+`CREATE TRIGGER ${this.genIdentifier(e.procedure_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t),await this.sqlClient.raw(a),n.data.object={upStatement:[{sql:a}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerCreate(e={}){const t=this.triggerCreate.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+`DROP TRIGGER ${this.genIdentifier(e.trigger_name)}`}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerUpdate(e={}){const t=this.triggerUpdate.name,n=new d.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${this.genIdentifier(e.trigger_name)} ON ${this.genIdentifier(e.tn)}`),await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`),n.data.object={upStatement:this.querySeparator()+`DROP TRIGGER ${this.genIdentifier(e.trigger_name)} ON ${this.genIdentifier(e.tn)};${this.querySeparator()}CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`,downStatement:this.querySeparator()+`CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.oldStatement}`}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewCreate(e={}){const t=this.viewCreate.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=e.view_definition;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+`DROP VIEW ${this.genIdentifier(e.view_name)}`}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewUpdate(e={}){const t=this.viewUpdate.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=`CREATE OR REPLACE VIEW ${this.genIdentifier(e.view_name)} AS \n${e.view_definition}`;await this.sqlClient.raw(t),n.data.object={upStatement:this.querySeparator()+t,downStatement:this.querySeparator()+`CREATE VIEW ${this.genIdentifier(e.view_name)} AS \n${e.oldViewDefination}`}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewDelete(e={}){const t=this.viewDelete.name,n=new d.default;b.api(`${t}:args:`,e);try{const t=`DROP VIEW ${this.genIdentifier(e.view_name)}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:this.querySeparator()+`CREATE VIEW ${this.genIdentifier(e.view_name)} AS \n${e.oldViewDefination}`}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async tableCreate(e){const t=this.tableCreate.name,n=new d.default;b.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.createTable(e.tn,e);await this.sqlClient.raw(t);const a=this.querySeparator()+this.sqlClient.schema.dropTable(e.table).toString();this.emit(`Success : ${t}`);const r=await this.afterTableCreate(e);n.data.object={upStatement:[{sql:t},...r.upStatement],downStatement:[...r.downStatement,{sql:a}]}}catch(e){throw b.ppe(e,t),e}return n}async afterTableCreate(e){const t={upStatement:[],downStatement:[]};let n="",a="";for(let t=0;t<e.columns.length;t++){const r=e.columns[t];if(r.au){const t=e.schema?`xc_au_${e.schema}_${e.tn}_${r.cn}`:`xc_au_${e.tn}_${r.cn}`,i=e.schema?`xc_trigger_${e.schema}_${e.tn}_${r.cn}`:`xc_trigger_${e.tn}_${r.cn}`,s=this.genQuery("CREATE OR REPLACE FUNCTION ??()\n RETURNS TRIGGER AS $$\n BEGIN\n NEW.?? = NOW();\n RETURN NEW;\n END;\n $$ LANGUAGE plpgsql;",[t,r.cn]);n+=this.querySeparator()+s+this.querySeparator()+this.genQuery("CREATE TRIGGER ??\n BEFORE UPDATE ON ??\n FOR EACH ROW\n EXECUTE PROCEDURE ??();",[i,e.schema?`${e.schema}.${e.tn}`:e.tn,t]),a+=this.querySeparator()+this.genQuery("DROP TRIGGER IF EXISTS ?? ON ??;",[i,e.schema?`${e.schema}.${e.tn}`:e.tn])+this.querySeparator()+this.genQuery("DROP FUNCTION IF EXISTS ??()",[t])}}return""!==n&&await this.sqlClient.raw(n),t.upStatement[0]={sql:n},t.downStatement[0]={sql:a},t}async afterTableUpdate(e){const t={upStatement:[],downStatement:[]};let n="",a="";for(let t=0;t<e.columns.length;t++){const r=e.columns[t];if(r.au&&1===r.altered){const t=e.schema?`xc_au_${e.schema}_${e.tn}_${r.cn}`:`xc_au_${e.tn}_${r.cn}`,i=e.schema?`xc_trigger_${e.schema}_${e.tn}_${r.cn}`:`xc_trigger_${e.tn}_${r.cn}`,s=this.genQuery("CREATE OR REPLACE FUNCTION ??()\n RETURNS TRIGGER AS $$\n BEGIN\n NEW.?? = NOW();\n RETURN NEW;\n END;\n $$ LANGUAGE plpgsql;",[t,r.cn]);n+=this.querySeparator()+s+this.querySeparator()+this.genQuery("CREATE TRIGGER ??\n BEFORE UPDATE ON ??\n FOR EACH ROW\n EXECUTE PROCEDURE ??();",[i,e.schema?`${e.schema}.${e.tn}`:e.tn,t]),a+=this.querySeparator()+this.genQuery("DROP TRIGGER IF EXISTS ?? ON ??;",[i,e.tn])+this.querySeparator()+this.genQuery("DROP FUNCTION IF EXISTS ??()",[t])}}return""!==n&&await this.sqlClient.raw(n),t.upStatement[0]={sql:n},t.downStatement[0]={sql:a},t}async tableUpdate(e){const t=this.tableUpdate.name,n=new d.default;b.api(`${t}:args:`,e);try{e.table=e.schema?`${e.schema}.${e.tn}`:e.tn;const t=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;let a="",r="";for(let n=0;n<e.columns.length;++n){const i=(0,c.default)(t,{cn:e.columns[n].cno});4&e.columns[n].altered?(a+=this.alterTableRemoveColumn(e.table,e.columns[n],i,a),r+=this.alterTableAddColumn(e.table,i,e.columns[n],r)):2&e.columns[n].altered||8&e.columns[n].altered?(a+=this.alterTableChangeColumn(e.table,e.columns[n],i,a),r+=this.alterTableChangeColumn(e.table,i,e.columns[n],r)):1&e.columns[n].altered&&(a+=this.alterTableAddColumn(e.table,e.columns[n],i,a),r+=this.alterTableRemoveColumn(e.table,e.columns[n],i,r))}a+=(a?";":"")+this.alterTablePK(e.table,e.columns,e.originalColumns,a),r+=(r?";":"")+this.alterTablePK(e.table,e.originalColumns,e.columns,r),""!==a&&await this.sqlClient.raw(a);const i=await this.afterTableUpdate(e);n.data.object={upStatement:[{sql:this.querySeparator()+a},...i.upStatement],downStatement:[...i.downStatement,{sql:this.querySeparator()+r}]}}catch(e){throw b.ppe(e,t),e}return n}async tableDelete(e){const t=this.tableDelete.name,n=new d.default;b.api(`${t}:args:`,e);try{e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.sqlClient.schema.dropTable(e.schema?`${e.schema}.${e.tn}`:e.tn).toString();let a=this.createTable(e.tn,e),r=await this.relationList(e);r=r.data.list;for(const e of r){const t=this.sqlClient.raw(this.sqlClient.schema.table(e.tn,(function(t){t=t.foreign(e.cn,null).references(e.rcn).on(e.rtn),e.ur&&(t=t.onUpdate(e.ur)),e.dr&&t.onDelete(e.dr)})).toQuery());a+=this.querySeparator()+t,await t}let i=await this.indexList(e);i=i.data.list.filter((({cst:e})=>"p"!==e&&"f"!==e));const s={};for(const{key_name:t,non_unique:n,cn:a}of i)t in s||(s[t]={tn:e.tn,indexName:t,non_unique:n,columns:[]}),s[t].columns.push(a);for(const{non_unique:e,tn:t,columns:n,indexName:r}of Object.values(s))a+=this.querySeparator()+this.sqlClient.schema.table(t,(function(t){e?t.index(n,r):t.unique(n,r)})).toQuery();this.emit(`Success : ${t}`),await this.sqlClient.raw(this.sqlClient.schema.dropTable(e.schema?`${e.schema}.${e.tn}`:e.tn).toQuery()),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:this.querySeparator()+a}]}}catch(e){throw b.ppe(e,t),e}return n}async tableCreateStatement(e){const t=this.tableCreateStatement.name;let n=new d.default;b.api(`${t}:args:`,e);try{n=await this.columnList(e);const t=this.createTable(e.tn,{tn:e.tn,columns:n.data.list});n.data=t}catch(e){throw b.ppe(e,t),e}return n}async tableInsertStatement(e){const t=this.tableCreateStatement.name,n=new d.default;b.api(`${t}:args:`,e);try{n.data=`INSERT INTO \`${e.tn}\` (`;let t=" VALUES (";const a=await this.columnList(e);if(a.data&&a.data.list)for(let e=0;e<a.data.list.length;++e)e?(n.data+=`, \`"${a.data.list[e].cn}"\`\n\t`,t+=`, <${a.data.list[e].cn}>\n\t`):(n.data+=`\n"${a.data.list[e].cn}"\n\t`,t+=`\n<${a.data.list[e].cn}>\n\t`);n.data+=")",t+=");",n.data+=t}catch(e){throw b.ppe(e,t),e}return n}async tableUpdateStatement(e){const t=this.tableUpdateStatement.name,n=new d.default;b.api(`${t}:args:`,e);try{n.data=`UPDATE "${e.tn}" \nSET\n`;const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`,"${t.data.list[e].cn}" = <\`${t.data.list[e].cn}\`>\n\t`:`"${t.data.list[e].cn}" = <\`${t.data.list[e].cn}\`>\n\t`;n.data+=";"}catch(e){throw b.ppe(e,t),e}return n}async tableDeleteStatement(e){const t=this.tableDeleteStatement.name,n=new d.default;b.api(`${t}:args:`,e);try{n.data=`DELETE FROM "${e.tn}" where ;`}catch(e){throw b.ppe(e,t),e}return n}async tableTruncateStatement(e){const t=this.tableTruncateStatement.name,n=new d.default;b.api(`${t}:args:`,e);try{n.data=`TRUNCATE TABLE "${e.tn}";`}catch(e){throw b.ppe(e,t),e}return n}async tableSelectStatement(e){const t=this.tableSelectStatement.name,n=new d.default;b.api(`${t}:args:`,e);try{n.data="SELECT ";const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`, "${t.data.list[e].cn}"\n\t`:`"${t.data.list[e].cn}"\n\t`;n.data+=` FROM "${e.tn}";`}catch(e){throw b.ppe(e,t),e}return n}alterTablePK(e,t,n,a,r=!1){const i=[],s=[];let o=0;for(let e=0;e<t.length;++e)t[e].pk&&4!==t[e].altered&&s.push(t[e].cn);for(let e=0;e<n.length;++e)n[e].pk&&i.push(n[e].cn);if(s.length===i.length){for(let e=0;e<s.length;++e)if(i[e]!==s[e]){o=1;break}}else o=s.length-i.length;let c="";return(s.length||i.length)&&o&&(c+=i.length?this.genQuery("alter TABLE ?? drop constraint IF EXISTS ??;",[e,`${e}_pkey`]):"",s.length&&(c+=r?this.genQuery(", PRIMARY KEY(??)",[s]):this.genQuery("alter TABLE ?? add constraint ?? PRIMARY KEY(??);",[e,`${e}_pkey`,s]))),c}alterTableRemoveColumn(e,t,n,a){let r=a?",":"";return r+=this.genQuery("ALTER TABLE ?? DROP COLUMN ??",[e,t.cn],!0),r}createTableColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,0)}alterTableAddColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,1)}alterTableChangeColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,2)}createTable(e,t){let n="";for(let a=0;a<t.columns.length;++a)n+=this.createTableColumn(e,t.columns[a],null,n);return n+=this.alterTablePK(e,t.columns,[],n,!0),n=this.genQuery(`CREATE TABLE ?? (${n});`,[t.schema?`${t.schema}.${t.tn}`:t.tn]),n}alterTableColumn(e,t,n,a,r=2){let i="";const s=this.sanitiseDefaultValue(t.cdf),o=!0;if(0===r)i=a?",":"",t.ai?"int8"===t.dt||t.dt.indexOf("bigint")>-1?i+=this.genQuery(" ?? bigserial",[t.cn],o):"int2"===t.dt||t.dt.indexOf("smallint")>-1?i+=this.genQuery(" ?? smallserial",[t.cn],o):i+=this.genQuery(" ?? serial",[t.cn],o):(i+=this.genQuery(` ?? ${this.sanitiseDataType(t.dt)}`,[t.cn],o),i+=t.rqd?" NOT NULL":" NULL",i+=s?` DEFAULT ${s}`:"",i+=t.unique?" UNIQUE":"");else if(1===r)i+=this.genQuery(` ADD ?? ${this.sanitiseDataType(t.dt)}`,[t.cn],o),i+=t.rqd?" NOT NULL":" NULL",i+=s?` DEFAULT ${s}`:"",i+=t.unique?" UNIQUE":"",i=this.genQuery(`ALTER TABLE ?? ${i};`,[e],o);else{if(t.cn!==n.cn&&(i+=this.genQuery("\nALTER TABLE ?? RENAME COLUMN ?? TO ?? ;\n",[e,n.cn,t.cn],o)),t.dt!==n.dt){i+=this.genQuery("\nALTER TABLE ?? ALTER COLUMN ?? DROP DEFAULT;\n",[e,t.cn],o),[u.UITypes.Date,u.UITypes.DateTime,u.UITypes.Time,u.UITypes.Duration].includes(t.uidt)&&(i+=h.default.dateConversionFunction.default.sql),i+=this.genQuery(`\nALTER TABLE ?? ALTER COLUMN ?? TYPE ${this.sanitiseDataType(t.dt)} USING `,[e,t.cn],o);const a=(0,f.formatColumn)(this.genQuery("??",[t.cn],o),n.uidt),r="number"==typeof t.dtxp?t.dtxp:null,s=(0,f.generateCastQuery)(t.uidt,t.dt,a,r,t.meta.date_format||"YYYY-MM-DD");i+=this.genQuery(s,[],o)}t.rqd!==n.rqd&&(i+=this.genQuery("\nALTER TABLE ?? ALTER COLUMN ?? ",[e,t.cn],o),i+=t.rqd?" SET NOT NULL;\n":" DROP NOT NULL;\n"),t.cdf!==n.cdf&&(i+=this.genQuery("\nALTER TABLE ?? ALTER COLUMN ?? ",[e,t.cn],o),i+=t.cdf?` SET DEFAULT ${this.sanitiseDefaultValue(t.cdf)};\n`:" DROP DEFAULT;\n")}return i}get schema(){var e,t;return(null===(t=null===(e=this.connectionConfig)||void 0===e?void 0:e.searchPath)||void 0===t?void 0:t[0])||"public"}async totalRecords(e={}){const t=this.totalRecords.name,n=new d.default;b.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT SUM(n_live_tup) as TotalRecords FROM pg_stat_user_tables;");n.data=e.rows[0]}catch(e){n.code=-1,n.message=e.message,n.object=e}finally{b.api(`${t} :result: ${n}`)}return n}async getDefaultByteaOutputFormat(){var e,t;const n=this.getDefaultByteaOutputFormat.name,a=new d.default;b.api(`${n}:args:`,{});try{const n=await this.sqlClient.raw("SHOW bytea_output;");a.data=null===(t=null===(e=n.rows)||void 0===e?void 0:e[0])||void 0===t?void 0:t.bytea_output}catch(e){a.data="escape"}finally{b.api(`${n} :result: ${a}`)}return a}async tableRename(e){const t=this.tableCreate.name,n=new d.default;b.api(`${t}:args:`,e);try{e.table=e.tn,await this.sqlClient.raw(this.sqlClient.schema.renameTable(this.sqlClient.raw("??.??",[this.getEffectiveSchema(e),e.tn_old]),e.tn).toQuery());const t=this.querySeparator()+this.sqlClient.schema.renameTable(this.sqlClient.raw("??.??",[this.getEffectiveSchema(e),e.tn]),e.tn_old).toQuery();this.emit(`Success : ${t}`);const a=this.querySeparator()+this.sqlClient.schema.renameTable(this.sqlClient.raw("??.??",[this.getEffectiveSchema(e),e.tn_old]),e.tn).toQuery();n.data.object={upStatement:[{sql:t}],downStatement:[{sql:a}]}}catch(e){throw b.ppe(e,t),e}return n}async indexCreate(e){const t=this.indexCreate.name,n=new d.default;b.api(`${t}:args:`,e);const a=e.indexName||null;try{e.table=e.schema?`${e.schema}.${e.tn}`:e.tn,await this.sqlClient.raw(this.sqlClient.schema.table(e.table,(function(t){e.non_unique?t.index(e.columns,a):t.unique(e.columns,a)})).toQuery());const t=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique?t.index(e.columns,a):t.unique(e.columns,a)})).toQuery();this.emit(`Success : ${t}`);const r=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique?t.dropIndex(e.columns,a):t.dropUnique(e.columns,a)})).toQuery();n.data.object={upStatement:[{sql:t}],downStatement:[{sql:r}]}}catch(e){throw b.ppe(e,t),e}return n}async indexDelete(e){const t=this.indexDelete.name,n=new d.default;b.api(`${t}:args:`,e);const a=e.indexName||null;try{e.table=e.schema?`${e.schema}.${e.tn}`:e.tn,await this.sqlClient.raw(this.sqlClient.schema.table(e.table,(function(t){e.non_unique_original?t.dropIndex(e.columns,a):t.dropUnique(e.columns,a)})).toQuery());const t=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique_original?t.dropIndex(e.columns,a):t.dropUnique(e.columns,a)})).toQuery();this.emit(`Success : ${t}`);const r=this.querySeparator()+this.sqlClient.schema.table(e.table,(function(t){e.non_unique_original?t.index(e.columns,a):t.unique(e.columns,a)})).toQuery();n.data.object={upStatement:[{sql:t}],downStatement:[{sql:r}]}}catch(e){throw b.ppe(e,t),e}return n}}t.default=g},566:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(8831)),i=a(n(5578)),s=new(a(n(5924)).default)("YBClient");class o extends r.default{constructor(e){super(e)}async tableList(e={}){const t=this.tableList.name,n=new i.default;s.api(`${t}:args:`,e);try{const{rows:e}=await this.raw("select tablename as tn, * from pg_catalog.pg_tables where schemaname != 'information_schema' and schemaname != 'pg_catalog'");n.data.list=e}catch(e){throw s.ppe(e,t),e}return s.api(`${t}: result`,n),n}async columnList(e={}){const t=this.columnList.name,n=new i.default;s.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.raw('\n select c.relname as tn, a.attname as cn, pg_catalog.format_type(a.atttypid, a.atttypmod) as "dt",a.attnotnull as "not_nullable",\n pg_catalog.pg_get_expr(ad.adbin, ad.adrelid, true) as cdf, dsc.description as comment,a.attnum as cop,\n coalesce(i.indisprimary,false) as pk,\n a.*,ad.oid as attr_id\n FROM pg_catalog.pg_attribute a\n INNER JOIN pg_catalog.pg_class c ON (a.attrelid=c.oid)\n LEFT OUTER JOIN pg_catalog.pg_attrdef ad ON (a.attrelid=ad.adrelid AND a.attnum = ad.adnum)\n LEFT OUTER JOIN pg_catalog.pg_description dsc ON (c.oid=dsc.objoid AND a.attnum = dsc.objsubid)\n LEFT JOIN pg_index i ON (a.attnum = any(i.indkey) and a.attrelid = i.indrelid and i.indrelid = :table::regclass AND i.indisprimary)\n WHERE NOT a.attisdropped AND c.relname = :table and a.attnum > 0 ORDER BY a.attnum',{table:e.tn}),a=[];for(let n=0;n<t.rows.length;++n){const r={};r.tn=e.tn,r.cn=t.rows[n].cn,r.dt=t.rows[n].dt,r.np=t.rows[n].np,r.ns=t.rows[n].ns,r.clen=t.rows[n].clen,r.dp=t.rows[n].dp,r.cop=t.rows[n].cop,r.dtx=this.getKnexDataType(r.dt),r.pk=null!==t.rows[n].pk_constraint_name,r.not_nullable=t.rows[n].not_nullable,r.nrqd=!r.not_nullable,t.rows[n].ct=t.rows[n].dt||"",r.un=-1!==t.rows[n].ct.indexOf("unsigned"),r.ai=!1,t.rows[n].cdf&&(r.ai=-1!==t.rows[n].cdf.indexOf("nextval")),r.cdf=t.rows[n].cdf?t.rows[n].cdf.replace(/::[\w (),]+$/,"").replace(/^'|'$/g,""):t.rows[n].cdf,r.cc=t.rows[n].comment,r.csn=t.rows[n].csn,a.push(r)}n.data.list=a}catch(e){throw s.ppe(e,t),e}return s.api(`${t}: result`,n),n}}t.default=o},5988:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_FORMATS=t.DATE_FORMATS=void 0;const n={MM:"[0-9]{1,2}"};t.DATE_FORMATS={ymd:Object.keys(n).map((e=>[`Y-${e}-DD`,`^\\d{1,4}[:\\- /]+${n[e]}[:\\- /]+\\d{1,2}$`])),dmy:Object.keys(n).map((e=>[`DD-${e}-Y`,`^\\d{1,2}[:\\- /]+${n[e]}[:\\- /]+\\d{1,4}$`])),mdy:Object.keys(n).map((e=>[`${e}-DD-Y`,`^${n[e]}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,4}$`])),empty:[["","^.*$"]]},t.TIME_FORMATS=[["HH24:MI:SS:MS:US","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,3}[:\\- /]+\\d*$"],["HH24:MI:SS:MS","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,3}$"],["HH24:MI:SS","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2}$"],["HH24:MI","^\\d{1,2}[:\\- /]+\\d{1,2}$"],["HH24","^\\d{1,2}$"],["HH12:MI:SS:MS:US (AM|PM)","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,3}[:\\- /]+\\d* (AM|PM)$"],["HH12:MI:SS:MS (AM|PM)","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,3} (AM|PM)$"],["HH12:MI:SS (AM|PM)","^\\d{1,2}[:\\- /]+\\d{1,2}[:\\- /]+\\d{1,2} (AM|PM)$"],["HH12:MI (AM|PM)","^\\d{1,2}[:\\- /]+\\d{1,2} (AM|PM)$"],["HH12 (AM|PM)","^\\d{1,2} (AM|PM)$"]]},5838:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={columnList:{default:{sql:"SELECT\n c.table_name as tn,\n c.column_name as cn,\n c.data_type as dt,\n c.column_type as ct,\n c.character_maximum_length as clen,\n c.numeric_precision as np,\n c.numeric_scale as ns,\n c.datetime_precision as dp,\n c.ordinal_position as cop,\n c.column_key as ck,\n c.extra as ext, -- gives ai\n c.column_default as cdf,\n c.is_nullable as nrqd,\n c.privileges as priv,\n c.column_comment as cc,\n c.generation_expression,\n c.character_set_name as csn,\n c.collation_name as clnn,\n ct.CONSTRAINT_TYPE as cst\n FROM\n information_schema.COLUMNS as c\n Left join(\n select\n tc.CONSTRAINT_NAME,\n tc.TABLE_NAME,\n tc.CONSTRAINT_SCHEMA,\n tc.CONSTRAINT_TYPE,\n s.COLUMN_NAME\n from\n information_schema.TABLE_CONSTRAINTS as tc\n LEFT JOIN information_schema.STATISTICS as s ON\n s.table_schema = tc.CONSTRAINT_SCHEMA\n and s.TABLE_NAME = tc.TABLE_NAME\n and s.INDEX_NAME = tc.CONSTRAINT_NAME\n where\n tc.CONSTRAINT_SCHEMA = ?\n and s.TABLE_NAME = ? \n ) ct on\n c.TABLE_SCHEMA = ct.CONSTRAINT_SCHEMA\n AND c.TABLE_NAME = ct.TABLE_NAME\n AND c.COLUMN_NAME = ct.COLUMN_NAME\n WHERE\n c.table_schema = ?\n and c.TABLE_NAME = ?\n ORDER BY\n c.table_name,\n c.ordinal_position",paramsHints:["databaseName","tn","databaseName","tn"]}},constraintList:{default:{sql:"SELECT \n k.constraint_name as cstn, \n k.column_name as cn, \n k.ordinal_position as op, \n k.position_in_unique_constraint as puc, \n t.constraint_type as cst\nFROM information_schema.table_constraints t\nLEFT JOIN information_schema.key_column_usage k\nUSING(constraint_name,table_schema,table_name)\nWHERE\nt.table_schema=?\nAND t.table_name=?;",paramsHints:["database","tn"]}},createDatabaseIfNotExists:{default:{sql:"create database if not exists ??",paramsHints:["database"]}},createTableIfNotExists:{default:{sql:"",paramsHints:[]}},dropDatabase:{default:{sql:"drop database ??",paramsHints:["database"]}},databaseList:{default:{sql:"SHOW databases",paramsHints:[]}},hasDatabase:{default:{sql:"SHOW DATABASES LIKE ??",paramsHints:["databaseName"]}},indexList:{default:{sql:"show index from ??",paramsHints:["tn"]}},functionList:{default:{sql:"show function status where db=?",paramsHints:["databaseName"]}},functionRead:{default:{sql:"SHOW CREATE FUNCTION ??",paramsHints:["function_name"]}},functionDelete:{default:{sql:"DROP FUNCTION IF EXISTS ??",paramsHints:["function_name"]}},procedureList:{default:{sql:"show procedure status where db=?",paramsHints:["databaseName"]}},procedureRead:{default:{sql:"show create procedure ??",paramsHints:["procedure_name"]}},procedureDelete:{default:{sql:"DROP PROCEDURE IF EXISTS ??",paramsHints:["procedure_name"]}},relationList:{default:{sql:"SELECT\n kcu.CONSTRAINT_NAME as cstn,\n kcu.TABLE_NAME as tn,\n kcu.COLUMN_NAME as cn,\n kcu.POSITION_IN_UNIQUE_CONSTRAINT as puc,\n kcu.REFERENCED_TABLE_NAME as rtn,\n kcu.REFERENCED_COLUMN_NAME as rcn,\n rc.MATCH_OPTION as mo,\n rc.UPDATE_RULE as ur,\n rc.DELETE_RULE as dr\n FROM\n information_schema.`KEY_COLUMN_USAGE` AS kcu\n INNER JOIN information_schema.REFERENTIAL_CONSTRAINTS AS rc ON\n kcu.CONSTRAINT_NAME = rc.CONSTRAINT_NAME\n WHERE\n kcu.table_schema = ?\n AND kcu.referenced_column_name IS NOT NULL\n AND kcu.table_name=?",paramsHints:["database","tn"]}},schemaCreate:{default:{sql:"create database ??",paramsHints:["database_name"]}},schemaDelete:{default:{sql:"drop database ??",paramsHints:["database_name"]}},triggerList:{default:{sql:"SHOW TRIGGERS like ?",paramsHints:["tn"]}},tableList:{default:{sql:"",paramsHints:[]}},testConnection:{default:{sql:"",paramsHints:[]}},triggerRead:{default:{sql:"SHOW FULL TABLES IN ?? WHERE TABLE_TYPE LIKE 'VIEW';",paramsHints:["databaseName"]}},triggerDelete:{default:{sql:"DROP TRIGGER ??",paramsHints:["trigger_name"]}},version:{default:{sql:"",paramsHints:[]}},viewRead:{default:{sql:"select * FROM INFORMATION_SCHEMA.VIEWS WHERE\n TABLE_SCHEMA = ? AND TABLE_NAME = ?",paramsHints:["databaseName","view_name"]}},viewList:{default:{sql:"SHOW FULL TABLES IN ?? WHERE TABLE_TYPE LIKE 'VIEW'",paramsHints:["databaseName"]}},dateConversionFunction:{default:{sql:"CREATE OR REPLACE FUNCTION to_date_time_safe(value text, format text) RETURNS TIMESTAMP AS $$\n BEGIN\n RETURN to_timestamp(value, format);\n EXCEPTION\n WHEN others THEN RETURN NULL; \n END;\n $$ LANGUAGE plpgsql;",paramsHints:[]}}}},7990:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatColumn=t.generateCastQuery=void 0;const a=n(2678),r=n(5988);function i(e){return`\n CAST(\n NULLIF(\n REPLACE(\n REPLACE(\n REGEXP_REPLACE(\n REGEXP_REPLACE(${e}, '[^0-9.]', '', 'g'), \n '(\\d)\\.', '\\1-'\n ), \n '.', ''\n ), \n '-', '.'\n ), ''\n ) AS DECIMAL\n )\n `}function s(e,t){if(!(t in r.DATE_FORMATS))throw new Error(`Invalid date format: ${t}`);const n="empty"===t?r.TIME_FORMATS:[...r.TIME_FORMATS,["","^$"]];return`CASE \n ${r.DATE_FORMATS[t].map((([t,a])=>n.map((([n,r])=>`WHEN ${e} ~ '${a.slice(0,-1)}\\s*${r.slice(1)}' THEN to_date_time_safe(${e}, '${t} ${n}')`)).join("\n"))).join("\n")}\n ELSE NULL\n END;`}function o(e){const t=e.indexOf("Y"),n=e.indexOf("M"),a=e.indexOf("D");return t<n?n<a?"ymd":t<a?"ydm":"dym":t<a?"myd":n<a?"mdy":"dmy"}t.generateCastQuery=function(e,t,n,r,c){switch(e){case a.UITypes.SingleLineText:case a.UITypes.MultiSelect:case a.UITypes.SingleSelect:case a.UITypes.Email:case a.UITypes.PhoneNumber:case a.UITypes.URL:return`${n}::VARCHAR(${r||255});`;case a.UITypes.LongText:return`${n}::TEXT;`;case a.UITypes.Number:return`CAST(${i(n)} AS BIGINT);`;case a.UITypes.Year:return function(e,t,n){return`\n NULLIF(\n NULLIF(\n LEAST(\n 10000, GREATEST(999, ${e})\n ), 999\n ), 10000\n );\n`}(i(n));case a.UITypes.Decimal:case a.UITypes.Currency:return`${i(n)};`;case a.UITypes.Percent:return`LEAST(100, GREATEST(0, ${i(n)}));`;case a.UITypes.Rating:return`LEAST(${r||5}, GREATEST(0, ${i(n)}));`;case a.UITypes.Checkbox:return`\n CASE\n WHEN LOWER(${u=n}) IN ('checked', 'x', 'yes', 'y', '1', '[x]', '☑', '✅', '✓', '✔', 'enabled', 'on', 'done', 'true') THEN true\n WHEN LOWER(${u}) IN ('unchecked', '', 'no', 'n', '0', '[]', '[ ]', 'disabled', 'off', 'false') THEN false\n ELSE null\n END;\n `;case a.UITypes.Date:return`CAST(${s(n,o(c)).slice(0,-1)} AS DATE);`;case a.UITypes.DateTime:return s(n,o(c));case a.UITypes.Time:return s(n,"empty");case a.UITypes.Duration:return function(e){return`\n CASE\n WHEN ${e} ~ '^\\d+:\\d{1,2}$' THEN 60 * CAST(SPLIT_PART(${e}, ':', 1) AS INT) + CAST(SPLIT_PART(${e}, ':', 2) AS INT)\n ELSE ${i(e)}\n END;\n `}(n);default:return`null::${t};`}var u},t.formatColumn=function(e,t){switch(t){case a.UITypes.LongText:case a.UITypes.SingleLineText:case a.UITypes.MultiSelect:case a.UITypes.Email:case a.UITypes.URL:case a.UITypes.SingleSelect:case a.UITypes.PhoneNumber:return e;case a.UITypes.Number:case a.UITypes.Decimal:case a.UITypes.Currency:case a.UITypes.Percent:case a.UITypes.Rating:case a.UITypes.Duration:case a.UITypes.Year:return`CAST(${e} AS VARCHAR(255))`;case a.UITypes.Checkbox:return`CAST(CASE WHEN ${e} THEN '1' ELSE '0' END AS TEXT)`;default:return`CAST(${e} AS TEXT)`}}},4321:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(9023),i=a(n(9896)),s=a(n(1832)),o=a(n(943)),c=a(n(9020)),u=a(n(133)),l=n(6331),p=a(n(4020)),d=a(n(5924)),m=a(n(5578)),f=a(n(9252)),h=(0,l.customAlphabet)("1234567890abcdefghijklmnopqrstuvwxyz_",6),b=new d.default("SqliteClient");class g extends p.default{constructor(e){e.connection.useNullAsDefault=!0,super(e),this.sqlClient=(null==e?void 0:e.knex)||(0,s.default)(e.connection),this.queries=f.default,this._version={}}getKnexDataTypes(){const e=new m.default;return e.data.list=["int","integer","tinyint","smallint","mediumint","bigint","int2","int8","character","blob sub_type text","numeric","blob","real","double","double precision","float","numeric","boolean","date","datetime","text","varchar","timestamp"],e}async testConnection(e={}){const t=this.testConnection.name,n=new m.default;b.api(`${t}:args:`,e);try{await this.raw("SELECT 1+1 as data")}catch(e){b.ppe(e),n.code=-1,n.message=e.message}finally{b.api(`${t} :result: ${n}`)}return n}async version(e){const t=this.version.name,n=new m.default;b.api(`${t}:args:`,e);try{n.data.object={};const e=await this.raw("select sqlite_version() as version");b.debug(e[0]),n.data.object.version=e[0].version;const t=e[0].version.split(".");t.length&&3===t.length?(n.data.object.primary=t[0],n.data.object.major=t[1],n.data.object.minor=t[2],n.data.object.key=t[0]+t[1]):(n.code=-1,n.message=`Invalid version : ${e[0].version}`)}catch(e){b.ppe(e),n.code=-1,n.message=e.message}finally{b.api(`${t} :result: %o`,n)}return n}async createDatabaseIfNotExists(e){const t=this.createDatabaseIfNotExists.name,n=new m.default;b.api(`${t}:args:`,e);try{if(await(0,r.promisify)(i.default.exists)(e.database))this.sqlClient=(0,s.default)(this.connectionConfig.connection);else{b.debug("sqlite file do no exists - create one");const t=await(0,r.promisify)(i.default.open)(e.database,"w"),n=await(0,r.promisify)(i.default.close)(t);b.debug("sqlite file is created",t,n),this.sqlClient=(0,s.default)(this.connectionConfig.connection),await this.sqlClient.raw('PRAGMA encoding = "UTF-8"')}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async dropDatabase(e){const t=this.dropDatabase.name,n=new m.default;b.api(`${t}:args:`,e);try{b.debug("dropping database:",e),await(0,r.promisify)(i.default.unlink)(e.database),b.debug("dropped database:")}catch(e){b.ppe(e,t)}return b.api(`${t}: result`,n),n}async createTableIfNotExists(e={}){const t=this.createTableIfNotExists.name,n=new m.default;b.api(`${t}:args:`,e);try{if((await this.hasTable({tn:e.tn})).data.value)b.debug(`${e.tn} tables exists`);else{const t=await this.sqlClient.schema.createTable(e.tn,(function(e){e.increments(),e.string("title").notNullable(),e.string("titleDown").nullable(),e.string("description").nullable(),e.integer("batch").nullable(),e.string("checksum").nullable(),e.integer("status").nullable(),e.dateTime("created"),e.timestamps()}));b.debug("Table created:",`${e.tn}`,t)}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async hasTable(e){const t=this.hasTable.name,n=new m.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw("select * from ??",[e.tn]),n.data.value=!0}catch(e){n.data.value=!1}return b.api(`${t}: result`,n),n}async hasDatabase(e={}){const t=this.hasDatabase.name,n=new m.default;b.api(`${t}:args:`,e);let a=!1;return b.debug("sqlite databaseName:",e.databaseName),a=await(0,r.promisify)(i.default.exists)(e.databaseName),n.data.value=a,n}async databaseList(e){return[]}async tableList(e={}){const t=this.tableList.name,n=new m.default;b.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT name as tn FROM sqlite_master where type = 'table'");n.data.list=[];for(let t=0;t<e.length;++t)"sqlite_sequence"!==e[t].tn.toLocaleLowerCase()&&n.data.list.push(e[t])}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async schemaList(e={}){const t=this.schemaList.name;throw new m.default,b.api(`${t}:args:`,e),new Error("SchemaList : Not supported for sqlite")}async columnList(e={}){const t=this.columnList.name,n=new m.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw("PRAGMA table_info(??)",[e.tn]),a=(await this.triggerList(e)).data.list;for(let n=0;n<t.length;++n){switch(t[n].cn=t[n].name,t[n].cno=t[n].cn,t[n].dt=t[n].type.toLocaleLowerCase(),t[n].dt){case"integer":case"int":case"text":case"varchar":case"numeric":case"blob":case"blob sub_type text":case"real":case"timestamp":case"tinyint":case"smallint":case"mediumint":case"bigint":case"int2":case"int8":case"character":case"double":case"double precision":case"float":case"boolean":case"date":case"datetime":case"time":break;default:if("t"===t[n].dt[0]||"i"===t[n].dt[0]){const e=/(\w+)\(([^)]+)\)/.exec(t[n].dt);e&&e.length&&e.length>1&&(t[n].dtxp=e[2],t[n].dt=e[1])}}t[n].nrqd=1!==t[n].notnull,t[n].not_nullable=1===t[n].notnull,t[n].rqd=1===t[n].notnull,t[n].cdf=t[n].dflt_value,t[n].pk=t[n].pk>0,t[n].cop=t[n].cid,t[n].ai=t[n].pk&&"integer"===t[n].dt,t[n].dtx=this.getKnexDataType(t[n].dt),t[n].dtxp="",t[n].dtxs="",t[n].au=!!a.find((({trigger:a})=>a===`xc_trigger_${e.tn}_${t[n].cn}`))}n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async indexList(e={}){const t=this.indexList.name,n=new m.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw("PRAGMA index_list(??)",[e.tn]),a=[];for(let e=0,n=0;e<t.length;++e,++n){t[e].key_name=t[e].name,t[e].non_unique=0===t[e].unique?1:0,t[e].non_unique_original=0===t[e].unique?1:0,t[e].unique=1===t[e].unique?1:0;const r=await this.sqlClient.raw("PRAGMA index_info(??)",[t[e].key_name]);if(1===r.length)a[n]=t[e],a[n].cn=r[0].name,a[n].seq_in_index=1;else{for(let i=0;i<r.length;++i,++n)a[n]=JSON.parse(JSON.stringify(t[e])),a[n].cn=r[i].name,a[n].seq_in_index=i;n--}}n.data.list=a}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async relationList(e={}){const t=this.relationList.name,n=new m.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("PRAGMA foreign_key_list(??)",[e.tn]);for(let n=0;n<t.length;++n)t[n].tn=e.tn,t[n].cn=t[n].from,t[n].rtn=t[n].table,t[n].rcn=t[n].to,t[n].ur=t[n].on_update,t[n].dr=t[n].on_delete,t[n].mo=t[n].match;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async relationListAll(e={}){const t=this.relationList.name,n=new m.default;b.api(`${t}:args:`,e);try{let e=await this.tableList();e=e.data.list;const t=[];for(let n=0;n<e.length;++n){const a=await this.sqlClient.raw("PRAGMA foreign_key_list(??)",[e[n].tn]);for(let r=0;r<a.length;++r)a[r].tn=e[n].tn,a[r].cn=a[r].from,a[r].rtn=a[r].table,a[r].rcn=a[r].to,a[r].ur=a[r].on_update,a[r].dr=a[r].on_delete,a[r].mo=a[r].match,t.push(a[r])}n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerList(e={}){const t=this.triggerList.name,n=new m.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("select *, name as trigger_name from sqlite_master where type = 'trigger' and tbl_name=?;",[e.tn]);for(let e=0;e<t.length;++e)t[e].trigger=t[e].name,t[e].table=t[e].tbl_name,t[e].statement=t[e].sql;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionList(e={}){const t=this.functionList.name,n=new m.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("show function status where db=?",[e.databaseName]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,c.default)(a,(function(e,t){return t.toLowerCase()})),a.function_name=a.name,e.push(a)}n.data.list=e}else b.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureList(e={}){const t=this.procedureList.name,n=new m.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("show procedure status where db=?",[e.databaseName]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,c.default)(a,(function(e,t){return t.toLowerCase()})),a.procedure_name=a.name,e.push(a)}n.data.list=e}else b.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewList(e={}){const t=this.viewList.name,n=new m.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SELECT * FROM sqlite_master WHERE type = 'view'");for(let e=0;e<t.length;++e)t[e].view_name=t[e].name,t[e].view_definition=t[e].sql;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionRead(e={}){const t=this.functionRead.name,n=new m.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SHOW CREATE FUNCTION ??;",[e.function_name]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,c.default)(a,(function(e,t){return t.toLowerCase()})),a.create_function=a["create function"],e.push(a)}n.data.list=e}else b.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureRead(e={}){const t=this.procedureRead.name,n=new m.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("show create procedure ??;",[e.procedure_name]);if(2===t.length){const e=[];for(let n=0;n<t[0].length;++n){let a=t[0][n];a=(0,c.default)(a,(function(e,t){return t.toLowerCase()})),a.create_procedure=a["create procedure"],e.push(a)}n.data.list=e}else b.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewRead(e={}){const t=this.viewRead.name,n=new m.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw("SELECT * FROM sqlite_master WHERE type = 'view' AND name = ?",[e.view_name]);for(let e=0;e<t.length;++e)t[e].view_name=t[e].name,t[e].view_definition=t[e].sql;n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerRead(e={}){const t=this.triggerRead.name,n=new m.default;b.api(`${t}:args:`,e);try{e.databaseName=this.connectionConfig.connection.database;const t=await this.sqlClient.raw("SHOW FULL TABLES IN ?? WHERE TABLE_TYPE LIKE 'VIEW';",[e.databaseName]);if(2===t.length){const a=[];for(let n=0;n<t[0].length;++n){const r=t[0][n];r.view_name=r[`Tables_in_${e.databaseName}`],a.push(r)}n.data.list=a}else b.debug("Unknown response for databaseList:",t),n.data.list=[]}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async schemaCreate(e={}){const t=this.schemaCreate.name;return b.api(`${t}:args:`,e),await this.sqlClient.raw("create database ??",[e.database_name])}async schemaDelete(e={}){const t=this.schemaDelete.name;return b.api(`${t}:args:`,e),await this.sqlClient.raw("drop database ??",[e.database_name])}async triggerDelete(e={}){const t=this.triggerDelete.name,n=new m.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+"DROP TRIGGER ??";await this.sqlClient.raw(t,[e.trigger_name]),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return n}async functionDelete(e={}){const t=this.functionDelete.name;return b.api(`${t}:args:`,e),await this.sqlClient.raw("DROP FUNCTION IF EXISTS ??",[e.function_name])}async procedureDelete(e={}){const t=this.procedureDelete.name;return b.api(`${t}:args:`,e),await this.sqlClient.raw("DROP PROCEDURE IF EXISTS ??",[e.procedure_name])}async _getQuery(e){try{if((0,o.default)(this._version)){const t=await this.version();this._version=t.data.object,b.debug(`Version was empty for ${e.func}: population version for database as`,this._version)}return this._version.key in this.queries[e.func]?this.queries[e.func][this._version.key].sql:this.queries[e.func].default.sql}catch(e){throw b.ppe(e,this._getQuery.name),e}}async functionCreate(e={}){const t=this.functionCreate.name,n=new m.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.function_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async functionUpdate(e={}){const t=this.functionUpdate.name,n=new m.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${this.genIdentifier(e.function_name)}`);const t=await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.function_name)}\` \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureCreate(e={}){const t=this.procedureCreate.name,n=new m.default;b.api(`${t}:args:`,e);try{const t=await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.procedure_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async procedureUpdate(e={}){const t=this.procedureUpdate.name,n=new m.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw(`DROP TRIGGER ${e.procedure_name}`);const t=await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.procedure_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`);n.data.list=t}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerCreate(e={}){const t=this.triggerCreate.name,n=new m.default;b.api(`${t}:args:`,e);try{const t=this.querySeparator()+`CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:t}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async triggerUpdate(e={}){const t=this.triggerUpdate.name,n=new m.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw("DROP TRIGGER ??",[e.trigger_name]),await this.sqlClient.raw(`CREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`);const t=`DROP TRIGGER ${this.genIdentifier(e.trigger_name)};\nCREATE TRIGGER ${this.genIdentifier(e.trigger_name)} \n${e.timing} ${e.event}\nON ${this.genIdentifier(e.tn)} FOR EACH ROW\n${e.statement}`;n.data.object={upStatement:[{sql:t}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewCreate(e={}){const t=this.viewCreate.name,n=new m.default;b.api(`${t}:args:`,e);try{const t=e.view_definition+";";await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewUpdate(e={}){const t=this.viewUpdate.name,n=new m.default;b.api(`${t}:args:`,e);try{const t=e.view_definition;await this.sqlClient.raw(t),n.data.object={upStatement:[{sql:this.querySeparator()+t}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async viewDelete(e={}){const t=this.viewDelete.name,n=new m.default;b.api(`${t}:args:`,e);try{await this.sqlClient.raw("DROP VIEW ??;",[e.view_name]),n.data.object={upStatement:[{sql:this.querySeparator()+`DROP VIEW ${e.view_name};`}],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,t),e}return b.api(`${t}: result`,n),n}async tableCreate(e){const t=this.tableCreate.name,n=new m.default;b.api(`${t}:args:`,e);try{e.table=e.tn,e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.createTable(e.tn,e);await this.sqlClient.raw(t);const a=[{sql:";"}];this.emit(`Success : ${t}`);const r=await this.afterTableCreate(e);n.data.object={upStatement:[{sql:t},...r.upStatement],downStatement:a}}catch(e){throw b.ppe(e,t),e}return n}async afterTableCreate(e){const t={upStatement:[],downStatement:[]};let n="";const a=e.columns.find((e=>e.pk));if(!a)return t;const r=this.genIdentifier(e.tn);for(let t=0;t<e.columns.length;t++){const i=e.columns[t];if(i.au){const e=this.genIdentifier(`xc_trigger_${r}_${i.cn}`),t=`${this.querySeparator()}CREATE TRIGGER ${e}\n AFTER UPDATE\n ON "${r}" FOR EACH ROW\n BEGIN\n UPDATE "${r}" SET ${this.genIdentifier(i.cn)} = current_timestamp\n WHERE ${this.genIdentifier(a.cn)} = old.${this.genIdentifier(a.cn)};\n END;`;n+=t,await this.sqlClient.raw(t)}}return t.upStatement[0]={sql:n},t.downStatement[0]={sql:""},t}async afterTableUpdate(e){const t={upStatement:[],downStatement:[]};let n="";const a=e.columns.find((e=>e.pk));if(!a)return t;const r=this.genIdentifier(e.tn);for(let t=0;t<e.columns.length;t++){const i=e.columns[t];if(i.au&&1===i.altered){const t=this.genIdentifier(`xc_trigger_${e.tn}_${i.cn}`),s=`${this.querySeparator()}CREATE TRIGGER ${t}\n AFTER UPDATE\n ON "${r}" FOR EACH ROW\n BEGIN\n UPDATE "${r}" SET ${this.genIdentifier(i.cn)} = current_timestamp\n WHERE ${this.genIdentifier(a.cn)} = old.${this.genIdentifier(a.cn)};\n END;`;n+=s,await this.sqlClient.raw(s)}}return t.upStatement[0]={sql:n},t.downStatement[0]={sql:""},t}async tableUpdate(e){var t,n;const a=this.tableUpdate.name,r=new m.default;b.api(`${a}:args:`,e);try{e.table=e.tn;const a=e.originalColumns;e.connectionConfig=this._connectionConfig,e.sqlClient=this.sqlClient;let i="",s="";for(let t=0;t<e.columns.length;++t){const n=(0,u.default)(a,{cn:e.columns[t].cno});!e.columns[t].pk&&4&e.columns[t].altered?(i+=this.alterTableRemoveColumn(e.table,e.columns[t],n,i),s+=this.alterTableAddColumn(e.table,n,e.columns[t],s)):2&e.columns[t].altered||8&e.columns[t].altered?(i+=this.alterTableChangeColumn(e.table,e.columns[t],n,i),s+=";"):1&e.columns[t].altered&&(i+=this.alterTableAddColumn(e.table,e.columns[t],n,i),s+=";")}const o=this.alterTablePK(e.columns,e.originalColumns,i),c=null===(n=null===(t=await this.sqlClient.raw("PRAGMA foreign_keys;"))||void 0===t?void 0:t[0])||void 0===n?void 0:n.foreign_keys;c&&await this.sqlClient.raw("PRAGMA foreign_keys = OFF;"),await this.sqlClient.raw("PRAGMA legacy_alter_table = ON;"),await this.sqlClient.raw("SELECT * FROM ?? LIMIT 1",[e.table]);const l=await this.sqlClient.transaction(),p=e=>{const t=[];let n,a=0,r="";for(let i=0;i<e.length;i++)n||'"'!==e[i]&&"'"!==e[i]||(n='"'===e[i]?"double":"single"),("double"===n&&'"'===e[i]||"single"===n&&"'"===e[i])&&i>0&&"\\"!==e[i-1]&&a++,";"===e[i]&&a%2==0?(t.push(r),r="",n=void 0):r+=e[i];return""!==r.trim()&&t.push(r),t};try{const t=p(i);for(let e=0;e<t.length;e++)""!==t[e].trim()&&await l.raw(t[e]);o&&await l.schema.alterTable(e.table,(e=>{for(const t of o.oldPks.filter((e=>!o.newPks.includes(e))))e.dropPrimary(t);for(const t of o.dropPks)e.dropColumn(t);o.newPks.length&&e.primary(o.newPks)})),await l.commit()}catch(e){throw await l.rollback(),e}finally{c&&await this.sqlClient.raw("PRAGMA foreign_keys = ON;"),await this.sqlClient.raw("PRAGMA legacy_alter_table = OFF;")}console.log(i);const d=await this.afterTableUpdate(e);r.data.object={upStatement:[{sql:this.querySeparator()+i},...d.upStatement],downStatement:[{sql:";"}]}}catch(e){throw b.ppe(e,a),e}return r}async tableDelete(e){const t=this.tableDelete.name,n=new m.default;b.api(`${t}:args:`,e);try{e.sqlClient=this.sqlClient;const t=this.querySeparator()+this.sqlClient.schema.dropTable(e.tn).toString(),a=[{sql:";"}];this.emit(`Success : ${t}`),await this.sqlClient.schema.dropTable(e.tn),n.data.object={upStatement:[{sql:t}],downStatement:a}}catch(e){throw b.ppe(e,t),e}return n}async tableCreateStatement(e){const t=this.tableCreateStatement.name;let n=new m.default;b.api(`${t}:args:`,e);try{n=await this.columnList(e);const t=this.createTable(e.tn,{tn:e.tn,columns:n.data.list});n.data=t}catch(e){throw b.ppe(e,t),e}return n}async tableInsertStatement(e){const t=this.tableCreateStatement.name,n=new m.default;b.api(`${t}:args:`,e);try{n.data=`INSERT INTO "${e.tn}" (`;let t=" VALUES (";const a=await this.columnList(e);if(a.data&&a.data.list)for(let e=0;e<a.data.list.length;++e)e?(n.data+=`, \`${a.data.list[e].cn}\`\n\t`,t+=`, <${a.data.list[e].cn}>\n\t`):(n.data+=`\n${a.data.list[e].cn}\n\t`,t+=`\n<${a.data.list[e].cn}>\n\t`);n.data+=")",t+=");",n.data+=t}catch(e){throw b.ppe(e,t),e}return n}async tableUpdateStatement(e){const t=this.tableUpdateStatement.name,n=new m.default;b.api(`${t}:args:`,e);try{n.data=`UPDATE "${e.tn}" \nSET\n`;const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`,${t.data.list[e].cn} = <\`${t.data.list[e].cn}\`>\n\t`:`${t.data.list[e].cn} = <\`${t.data.list[e].cn}\`>\n\t`;n.data+=";"}catch(e){throw b.ppe(e,t),e}return n}async tableDeleteStatement(e){const t=this.tableDeleteStatement.name,n=new m.default;b.api(`${t}:args:`,e);try{n.data=`DELETE FROM "${e.tn}" where ;`}catch(e){throw b.ppe(e,t),e}return n}async tableTruncateStatement(e){const t=this.tableTruncateStatement.name,n=new m.default;b.api(`${t}:args:`,e);try{n.data=`TRUNCATE TABLE "${e.tn}";`}catch(e){throw b.ppe(e,t),e}return n}async tableSelectStatement(e){const t=this.tableSelectStatement.name,n=new m.default;b.api(`${t}:args:`,e);try{n.data="SELECT ";const t=await this.columnList(e);if(t.data&&t.data.list)for(let e=0;e<t.data.list.length;++e)n.data+=e?`, ${t.data.list[e].cn}\n\t`:`${t.data.list[e].cn}\n\t`;n.data+=` FROM "${e.tn}";`}catch(e){throw b.ppe(e,t),e}return n}async sequelizeModelCreate(e){const t=this.sequelizeModelCreate.name,n=new m.default;b.api(`${t}:args:`,e);try{console.time(t);let n=[];e.tn?n.push({tn:e.tn}):(n=await this.tableList(e),n=n.data.list);let a=await this.relationList(e);a=a.data.list,e.tn&&(a=a.filter((t=>t.tn===e.tn||t.rtn===e.tn)));for(let e=0;e<n.length;++e){let t=await this.columnList({tn:n[e].tn});t=t.data.list,console.log(`Sequelize model created: ${n[e].tn}(${t.length})\n`),console.log("\n\n- - - - - - - - - - - - - ")}console.timeEnd(t)}catch(e){throw b.ppe(e,t),e}return n}createTablePK(e,t){const n=[];for(let t=0;t<e.length;++t)e[t].pk&&4!==e[t].altered&&n.push(e[t].cn);let a="";return n.length&&(a+=this.genQuery(", PRIMARY KEY(??)",[n])),a}alterTablePK(e,t,n){const a=[],r=[],i=[];let s=!1;for(let t=0;t<e.length;++t)e[t].pk&&(4!==e[t].altered?a.push(e[t].cn):i.push(e[t].cn),s=!0);for(let e=0;e<t.length;++e)t[e].pk&&r.push(t[e].cn);return a.length===r.length&&a.every((e=>r.includes(e)))&&0===i.length&&(s=!1),!!s&&{newPks:a,oldPks:r,dropPks:i}}alterTableRemoveColumn(e,t,n,a){let r=a?";":"";return r+=this.genQuery("ALTER TABLE ?? DROP COLUMN ??",[e,t.cn],!0),r}createTableColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,0)}alterTableAddColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,1)}alterTableChangeColumn(e,t,n,a){return this.alterTableColumn(e,t,n,a,2)}createTable(e,t){let n="";for(let a=0;a<t.columns.length;++a)n+=this.createTableColumn(e,t.columns[a],null,n);return n+=this.createTablePK(t.columns,n),n=this.genQuery(`CREATE TABLE ?? (${n});`,[t.tn]),n}alterTableColumn(e,t,n,a,r=2){let i="",s=!0;if(2===r){const a=h(),r=this.genQuery("ALTER TABLE ?? RENAME COLUMN ?? TO ??;",[e,n.cn,`${n.cno}_nc_${a}`],s);let o="";o+=this.genQuery(` ADD ?? ${this.sanitiseDataType(t.dt)}`,[t.cn],s),o+=t.dtxp&&"text"!==t.dt?`(${this.genRaw(t.dtxp)})`:"",o+=t.cdf?` DEFAULT ${this.genValue(t.cdf)}`:t.rqd?" DEFAULT ''":" ",o+=t.rqd?" NOT NULL":" ",i+=t.unique?" UNIQUE":"",o=this.genQuery(`ALTER TABLE ?? ${o};`,[e],s),i=`${r}${o}${this.genQuery("UPDATE ?? SET ?? = ??;",[e,t.cn,`${n.cno}_nc_${a}`],s)}${this.genQuery("ALTER TABLE ?? DROP COLUMN ??;",[e,`${n.cno}_nc_${a}`],s)}`}else 0===r?(i=a?",":"",i+=this.genQuery(`?? ${this.sanitiseDataType(t.dt)}`,[t.cn],s),i+=t.dtxp&&"text"!==t.dt?`(${this.genRaw(t.dtxp)})`:"",i+=t.cdf?` DEFAULT ${this.genValue(t.cdf)}`:" ",i+=t.rqd?" NOT NULL":" "):1===r&&(s=!0,i+=this.genQuery(` ADD ?? ${this.sanitiseDataType(t.dt)}`,[t.cn],s),i+=t.dtxp&&"text"!==t.dt?`(${this.genRaw(t.dtxp)})`:"",i+=t.cdf?` DEFAULT ${this.genValue(t.cdf)}`:t.rqd?" DEFAULT ''":" ",i+=t.rqd?" NOT NULL":" ",i=this.genQuery(`ALTER TABLE ?? ${i};`,[e],s));return i}async totalRecords(e={}){const t=this.totalRecords.name,n=new m.default;b.api(`${t}:args:`,e);try{const e=await this.sqlClient.raw("SELECT name FROM sqlite_master WHERE type='table';");let t=0;for(const n of e){const e=await this.sqlClient.raw("SELECT COUNT(*) as ct FROM ??;",[n.name]);e&&e.length&&(t+=e[0].ct)}n.data.TotalRecords=t}catch(e){n.code=-1,n.message=e.message,n.object=e}finally{b.api(`${t} :result: ${n}`)}return n}genValue(e){return"CURRENT_TIMESTAMP"===e?e:super.genValue(e)}}t.default=g},9252:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={int:{},integer:{},tinyint:{},smallint:{},mediumint:{},bigint:{},"unsigned big int":{},int2:{},int4:{},character:{},varchar:{},nchar:{},text:{},clob:{},"varying character":{},"native character":{},blob:{},real:{},double:{},"double precision":{},float:{},numeric:{},decimal:{},boolean:{},date:{},datetime:{}}},5924:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=s(n(6986)),c=s(n(263));Promise.resolve().then((()=>i(n(3672))));const u=s(n(6364));t.default=class{constructor(e){this.namespace=e,this.api=(0,c.default)(`${e}_A`),this.warn=(0,c.default)(`${e}_W`),this.info=(0,c.default)(`${e}_I`),this.error=(0,c.default)(`${e}_E`),this.debug=(0,c.default)(`${e}_D`),u.default.createNamespace(e)}ppException(e,t=null){let n="";return n+=` EXCEPTION OCCURED!! in ${this.namespace.red.bold} @ ${t}`,n+="\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n".red.bold,n+="MESSAGE:\n".yellow.bold,n+=`${e.message}\n`.yellow.bold,n+="\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n".red.bold,n+="CODE:\n".yellow.bold,n+=`${e.code}\n`.yellow.bold,n+="\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n".red.bold,n+="STACK:\n".yellow.bold,n+=`${e.stack}\n`.yellow.bold,n+="\n- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n".red.bold,console.log((0,o.default)(n,{padding:1,borderStyle:"double"})),console.log(e),n}ppe(e,t){return this.ppException(e,t)}}},6364:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(263)),i={},s={api:"A",info:"I",error:"E",warn:"W",debug:"D"};t.default=class{static _create(e){i[e]?(i[e][`${e}_A`].enabled=r.default.enabled(`${e}_A`),i[e][`${e}_D`].enabled=r.default.enabled(`${e}_D`),i[e][`${e}_I`].enabled=r.default.enabled(`${e}_I`),i[e][`${e}_W`].enabled=r.default.enabled(`${e}_W`),i[e][`${e}_E`].enabled=r.default.enabled(`${e}_E`)):(i[e]={},i[e][`${e}_A`]={level:"api",enabled:r.default.enabled(`${e}_A`)},i[e][`${e}_W`]={level:"warn",enabled:r.default.enabled(`${e}_W`)},i[e][`${e}_I`]={level:"info",enabled:r.default.enabled(`${e}_I`)},i[e][`${e}_E`]={level:"error",enabled:r.default.enabled(`${e}_E`)},i[e][`${e}_D`]={level:"debug",enabled:r.default.enabled(`${e}_D`)})}static createNamespace(e){e in i||this._create(e)}static getNamespaces(){return i}static refreshNamespace(e){this._create(e)}static enable(e,t){const n=`${e}_${s[t]},${r.default.disable()}`;r.default.enable(`${n}`),this.refreshNamespace(e)}static disable(e,t){const n=`${e}_${s[t]}`;let a=`${r.default.disable()}`;a=a.replace(n,""),r.default.enable(a),this.refreshNamespace(e)}static enableAll(e){for(const t in s)r.default.enable(`${e}_${s[t]}`),this.refreshNamespace(e)}static disableAll(){r.default.disable()}}},5578:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=class{constructor(e=0,t="",n={}){this.code=e,this.message=t,this.data=n}}},2196:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(5833));let i=null;t.default=class{constructor(){if(i)return i;this.evt=new r.default,i=this}}},1141:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(8938));t.default=class{constructor({flushAt:e=100,flushInterval:t=1e4}={}){this.batch=[],this.flushAt=e,this.flushInterval=t}capture(e){this.batch.push(e),this.batch.length>=this.flushAt&&this.flushBackground(),this.flushInterval&&(this.timeoutRef=setTimeout((()=>{this.flushBackground()}),this.flushInterval))}flushBackground(){this.timeoutRef&&(clearTimeout(this.timeoutRef),this.timeoutRef=null),this.flush().catch((()=>{}))}async flush(){const e=this.batch.splice(0,this.batch.length);e.length&&await r.default.post("https://nocodb.com/api/v1/telemetry",e)}}},8138:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCircularReplacer=void 0,t.getCircularReplacer=()=>{const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}}},9052:(e,t)=>{"use strict";function n(e,t,n){let a,r,i=void 0===n?2166136261:n;for(a=0,r=e.length;a<r;a++)i^=e.charCodeAt(a),i+=(i<<1)+(i<<4)+(i<<7)+(i<<8)+(i<<24);return t?("0000000"+(i>>>0).toString(16)).substr(-8):i>>>0}function a(e){const t=n(e,!0);return t+n(t+e)}Object.defineProperty(t,"__esModule",{value:!0}),t.partialExtract=t.deepMerge=t.getParamsHash=t.hash64=t.ROOT_ALIAS=t.getAliasGenerator=void 0,t.getAliasGenerator=function(e="__nc_"){let t=0;return()=>`${e}${t++}`},t.ROOT_ALIAS="__nc_root",t.hash64=a,t.getParamsHash=e=>{let t="";for(const[n,a]of Object.entries(e).sort())["limit","offset"].includes(n)||(t+=`${n}:${a}`);return a(t)};const r=e=>e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e);t.deepMerge=(e,...n)=>{if(!n.length)return e;const a=n.shift();return void 0===a?e:(r(e)&&r(a)&&Object.keys(a).forEach((n=>{r(a[n])?(e[n]||(e[n]={}),(0,t.deepMerge)(e[n],a[n])):e[n]=a[n]})),(0,t.deepMerge)(e,...n))},t.partialExtract=(e,n)=>{if("object"!=typeof e||null===e)return e;const a={};for(const r of n)if(Array.isArray(r)){const[n,...i]=r;i.length?a[n]=Object.assign(a[n]||{},(0,t.partialExtract)(e[n],i)):a[n]=e[n]}else a[r]=e[r];return a}},9372:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitiseEmailContent=void 0;const n=e=>null==e?void 0:e.split("").map((e=>`&#${e.charCodeAt(0)};`)).join("");t.sanitiseEmailContent=e=>{var t;return null===(t=null==e?void 0:e.replace(/[<>&;?#,'"$]+/g,n))||void 0===t?void 0:t.replace(/\.|\/\/:/g,"<span>$&</span>")}},9191:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decryptPropIfRequired=t.encryptPropIfRequired=t.isEncryptionRequired=t.getCredentialEncryptSecret=void 0;const r=a(n(2103));t.getCredentialEncryptSecret=()=>process.env.NC_CONNECTION_ENCRYPT_KEY,t.isEncryptionRequired=(e=(0,t.getCredentialEncryptSecret)())=>!!e,t.encryptPropIfRequired=({data:e,prop:n="config",secret:a=(0,t.getCredentialEncryptSecret)()})=>{if(e&&null!==e[n]&&void 0!==e[n])return a?r.default.AES.encrypt(JSON.stringify(e[n]),a).toString():JSON.stringify(e[n])},t.decryptPropIfRequired=({data:e,prop:n="config",secret:a=(0,t.getCredentialEncryptSecret)()})=>{if(!e||null===e[n]||void 0===e[n])return;let i=e[n];if(a)try{i=r.default.AES.decrypt(e[n],a).toString(r.default.enc.Utf8)}catch(e){throw new Error("Config decryption failed")}return"string"==typeof i?JSON.parse(i):i}},9261:(e,t)=>{"use strict";var n,a,r,i,s,o;Object.defineProperty(t,"__esModule",{value:!0}),t.RootScopeTables=t.RootScopes=t.DB_TYPES=t.COMPARISON_SUB_OPS=t.IS_WITHIN_COMPARISON_SUB_OPS=t.COMPARISON_OPS=t.GROUPBY_COMPARISON_OPS=t.CacheDelDirection=t.CacheGetType=t.CacheScope=t.sakilaTableNames=t.orderedMetaTables=t.MetaTableOldV2=t.MetaTable=void 0,function(e){e.PROJECT="nc_bases_v2",e.SOURCES="nc_source_v2",e.MODELS="nc_models_v2",e.COLUMNS="nc_columns_v2",e.COLUMN_VALIDATIONS="nc_columns_validations_v2",e.COL_PROPS="nc_col_props_v2",e.COL_RELATIONS="nc_col_relations_v2",e.COL_SELECT_OPTIONS="nc_col_select_options_v2",e.COL_LOOKUP="nc_col_lookup_v2",e.COL_ROLLUP="nc_col_rollup_v2",e.COL_FORMULA="nc_col_formula_v2",e.COL_QRCODE="nc_col_qrcode_v2",e.COL_BARCODE="nc_col_barcode_v2",e.FILTER_EXP="nc_filter_exp_v2",e.SORT="nc_sort_v2",e.SHARED_VIEWS="nc_shared_views_v2",e.ACL="nc_acl_v2",e.FORM_VIEW="nc_form_view_v2",e.FORM_VIEW_COLUMNS="nc_form_view_columns_v2",e.GALLERY_VIEW="nc_gallery_view_v2",e.GALLERY_VIEW_COLUMNS="nc_gallery_view_columns_v2",e.CALENDAR_VIEW="nc_calendar_view_v2",e.CALENDAR_VIEW_COLUMNS="nc_calendar_view_columns_v2",e.CALENDAR_VIEW_RANGE="nc_calendar_view_range_v2",e.GRID_VIEW="nc_grid_view_v2",e.GRID_VIEW_COLUMNS="nc_grid_view_columns_v2",e.KANBAN_VIEW="nc_kanban_view_v2",e.KANBAN_VIEW_COLUMNS="nc_kanban_view_columns_v2",e.USERS="nc_users_v2",e.ORGS_OLD="nc_orgs_v2",e.TEAMS="nc_teams_v2",e.TEAM_USERS="nc_team_users_v2",e.VIEWS="nc_views_v2",e.AUDIT="nc_audit_v2",e.HOOKS="nc_hooks_v2",e.HOOK_LOGS="nc_hook_logs_v2",e.PLUGIN="nc_plugins_v2",e.PROJECT_USERS="nc_base_users_v2",e.MODEL_ROLE_VISIBILITY="nc_disabled_models_for_role_v2",e.API_TOKENS="nc_api_tokens",e.SYNC_SOURCE="nc_sync_source_v2",e.SYNC_LOGS="nc_sync_logs_v2",e.MAP_VIEW="nc_map_view_v2",e.MAP_VIEW_COLUMNS="nc_map_view_columns_v2",e.STORE="nc_store",e.NOTIFICATION="notification",e.USER_REFRESH_TOKENS="nc_user_refresh_tokens",e.EXTENSIONS="nc_extensions",e.COMMENTS="nc_comments",e.USER_COMMENTS_NOTIFICATIONS_PREFERENCE="nc_user_comment_notifications_preference",e.COMMENTS_REACTIONS="nc_comment_reactions",e.JOBS="nc_jobs",e.INTEGRATIONS="nc_integrations_v2",e.INTEGRATIONS_STORE="nc_integrations_store_v2",e.FILE_REFERENCES="nc_file_references",e.COL_BUTTON="nc_col_button_v2"}(n||(t.MetaTable=n={})),function(e){e.PROJECT="nc_projects_v2",e.PROJECT_USERS="nc_project_users_v2",e.BASES="nc_bases_v2"}(a||(t.MetaTableOldV2=a={})),t.orderedMetaTables=[n.MODEL_ROLE_VISIBILITY,n.PLUGIN,n.AUDIT,n.TEAM_USERS,n.TEAMS,n.ORGS_OLD,n.PROJECT_USERS,n.USERS,n.MAP_VIEW,n.MAP_VIEW_COLUMNS,n.KANBAN_VIEW_COLUMNS,n.KANBAN_VIEW,n.CALENDAR_VIEW,n.CALENDAR_VIEW_COLUMNS,n.CALENDAR_VIEW_RANGE,n.GRID_VIEW_COLUMNS,n.GRID_VIEW,n.GALLERY_VIEW_COLUMNS,n.GALLERY_VIEW,n.FORM_VIEW_COLUMNS,n.FORM_VIEW,n.SHARED_VIEWS,n.SORT,n.FILTER_EXP,n.HOOK_LOGS,n.HOOKS,n.VIEWS,n.COL_FORMULA,n.COL_ROLLUP,n.COL_LOOKUP,n.COL_SELECT_OPTIONS,n.COL_RELATIONS,n.COLUMN_VALIDATIONS,n.COLUMNS,n.MODELS,n.SOURCES,n.PROJECT],t.sakilaTableNames=["actor","address","category","city","country","customer","film","film_actor","film_category","film_text","inventory","language","payment","rental","staff","store","actor_info","customer_list","film_list","nicer_but_slower_film_list","sales_by_film_category","sales_by_store","staff_list"],function(e){e.PROJECT="base",e.SOURCE="source",e.MODEL="model",e.COLUMN="column",e.COL_PROP="colProp",e.COL_RELATION="colRelation",e.COL_SELECT_OPTION="colSelectOption",e.COL_LOOKUP="colLookup",e.COL_ROLLUP="colRollup",e.COL_FORMULA="colFormula",e.COL_QRCODE="colQRCode",e.COL_BARCODE="colBarcode",e.FILTER_EXP="filterExp",e.SORT="sort",e.SHARED_VIEW="sharedView",e.ACL="acl",e.FORM_VIEW="formView",e.FORM_VIEW_COLUMN="formViewColumn",e.GALLERY_VIEW="galleryView",e.GALLERY_VIEW_COLUMN="galleryViewColumn",e.GRID_VIEW="gridView",e.GRID_VIEW_COLUMN="gridViewColumn",e.KANBAN_VIEW="kanbanView",e.CALENDAR_VIEW="calendarView",e.CALENDAR_VIEW_COLUMN="calendarViewColumn",e.CALENDAR_VIEW_RANGE="calendarViewRange",e.MAP_VIEW="mapView",e.MAP_VIEW_COLUMN="mapViewColumn",e.KANBAN_VIEW_COLUMN="kanbanViewColumn",e.USER="user",e.ORGS_OLD="orgs",e.TEAM="team",e.TEAM_USER="teamUser",e.VIEW="view",e.AUDIT="audit",e.HOOK="hook",e.PLUGIN="plugin",e.BASE_USER="baseUser",e.MODEL_ROLE_VISIBILITY="modelRoleVisibility",e.API_TOKEN="apiToken",e.INSTANCE_META="instanceMeta",e.USER_BASE="userBase",e.DASHBOARD_PROJECT_DB_PROJECT_LINKING="dashboardProjectDBProjectLinking",e.SINGLE_QUERY="singleQuery",e.JOBS="nc_jobs",e.JOBS_POLLING="nc_jobs_polling",e.PRESIGNED_URL="presignedUrl",e.STORE="store",e.PROJECT_ALIAS="baseAlias",e.MODEL_ALIAS="modelAlias",e.VIEW_ALIAS="viewAlias",e.SSO_CLIENT="ssoClient",e.EXTENSION="uiExtension",e.INTEGRATION="integration",e.COL_BUTTON="colButton",e.CMD_PALETTE="cmdPalette",e.PRODUCT_FEED="productFeed"}(r||(t.CacheScope=r={})),function(e){e.TYPE_ARRAY="TYPE_ARRAY",e.TYPE_OBJECT="TYPE_OBJECT",e.TYPE_STRING="TYPE_STRING"}(i||(t.CacheGetType=i={})),function(e){e.PARENT_TO_CHILD="PARENT_TO_CHILD",e.CHILD_TO_PARENT="CHILD_TO_PARENT"}(s||(t.CacheDelDirection=s={})),t.GROUPBY_COMPARISON_OPS=["gb_eq","gb_null"],t.COMPARISON_OPS=["eq","neq","not","like","nlike","empty","notempty","null","notnull","checked","notchecked","blank","notblank","allof","anyof","nallof","nanyof","gt","lt","gte","lte","ge","le","in","isnot","is","isWithin","btw","nbtw"],t.IS_WITHIN_COMPARISON_SUB_OPS=["pastWeek","pastMonth","pastYear","nextWeek","nextMonth","nextYear","pastNumberOfDays","nextNumberOfDays"],t.COMPARISON_SUB_OPS=["today","tomorrow","yesterday","oneWeekAgo","oneWeekFromNow","oneMonthAgo","oneMonthFromNow","daysAgo","daysFromNow","exactDate",...t.IS_WITHIN_COMPARISON_SUB_OPS],t.DB_TYPES=["mysql2","sqlite3","mysql","mssql","snowflake","oracledb","pg","databricks"],function(e){e.ROOT="root",e.ORG="org",e.WORKSPACE="workspace",e.BASE="base",e.BYPASS="bypass"}(o||(t.RootScopes=o={})),t.RootScopeTables={[o.ROOT]:[n.USERS,n.USER_REFRESH_TOKENS,n.API_TOKENS,n.PLUGIN,n.STORE,n.NOTIFICATION,n.JOBS,n.FILE_REFERENCES,n.AUDIT],[o.BASE]:[n.PROJECT],[o.WORKSPACE]:[n.INTEGRATIONS]}},445:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.isEE=t.T=void 0,r(n(9052),t),r(n(2163),t),r(n(9372),t),r(n(8138),t),r(n(6789),t);var i=n(8945);Object.defineProperty(t,"T",{enumerable:!0,get:function(){return i.Tele}}),r(n(2397),t),r(n(9191),t),t.isEE=!1},7903:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DriverClient=t.knownQueryParams=t.avoidSSL=t.defaultConnectionOptions=t.defaultConnectionConfig=t.defaultClientPortMapping=t.driverClientMapping=void 0,t.driverClientMapping={mysql:"mysql2",mariadb:"mysql2",postgres:"pg",postgresql:"pg",sqlite:"sqlite3",mssql:"mssql"},t.defaultClientPortMapping={mysql:3306,mysql2:3306,postgres:5432,pg:5432,mssql:1433},t.defaultConnectionConfig={dateStrings:!0},t.defaultConnectionOptions={pool:{min:0,max:10}},t.avoidSSL=["localhost","127.0.0.1","host.docker.internal","172.17.0.1"],t.knownQueryParams=[{parameter:"database",aliases:["d","db"]},{parameter:"password",aliases:["p"]},{parameter:"user",aliases:["u"]},{parameter:"title",aliases:["t"]},{parameter:"keyFilePath",aliases:[]},{parameter:"certFilePath",aliases:[]},{parameter:"caFilePath",aliases:[]},{parameter:"ssl",aliases:[]},{parameter:"options",aliases:["opt","opts"]}],function(e){e.MYSQL="mysql2",e.MYSQL_LEGACY="mysql",e.MSSQL="mssql",e.PG="pg",e.SQLITE="sqlite3",e.SNOWFLAKE="snowflake",e.DATABRICKS="databricks"}(n||(t.DriverClient=n={}))},4775:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.metaUrlToDbConfig=t.xcUrlToDbConfig=t.jdbcToXcUrl=t.jdbcToXcConfig=t.getToolDir=t.prepareEnv=void 0;const i=r(n(9896)),s=n(7016),o=n(9023),c=r(n(4587)),u=n(7903),l=n(7196);function p(e){e.replace(/^jdbc:/,"");const t=(0,c.default)(e),n={};for(const[e,a]of Object.entries(t)){const t=u.knownQueryParams.find((t=>t.parameter===e||t.aliases.includes(e)));t?n[t.parameter]=a:n[e]=a}(null==n?void 0:n.port)||(n.port=u.defaultClientPortMapping[u.driverClientMapping[n.driver]||n.driver]);const{driver:r,host:i,port:s,database:o,user:l,password:p}=n,d=a(n,["driver","host","port","database","user","password"]),m=[];for(const[e,t]of Object.entries(d))m.push(`${e}=${encodeURIComponent(t+"")}`);return`${u.driverClientMapping[r]||r}://${i}${s?`:${s}`:""}?${l?`u=${encodeURIComponent(l)}&`:""}${p?`p=${encodeURIComponent(p)}&`:""}${o?`d=${encodeURIComponent(o)}&`:""}${m.join("&")}`}t.prepareEnv=async function({databaseUrlFile:e=process.env.NC_DATABASE_URL_FILE||process.env.DATABASE_URL_FILE,databaseUrl:t=process.env.NC_DATABASE_URL||process.env.DATABASE_URL}={}){if(e){const t=await(0,o.promisify)(i.default.readFile)(e,"utf-8");process.env.NC_DB=p(t)}else t&&(process.env.NC_DB=p(t))},t.getToolDir=function(){return process.env.NC_TOOL_DIR||process.cwd()},t.jdbcToXcConfig=function(e){e.replace(/^jdbc:/,"");const t=(0,c.default)(e),n={};for(const[e,a]of Object.entries(t)){const t=u.knownQueryParams.find((t=>t.parameter===e||t.aliases.includes(e)));t?n[t.parameter]=a:n[e]=a}(null==n?void 0:n.port)||(n.port=u.defaultClientPortMapping[u.driverClientMapping[n.driver]||n.driver]);const{driver:r}=n,i=a(n,["driver"]),s=u.driverClientMapping[r]||r;return"pg"!==s||(null==i?void 0:i.ssl)||u.avoidSSL.includes(i.host)||(i.ssl=!0),{client:s,connection:Object.assign({},i)}},t.jdbcToXcUrl=p,t.xcUrlToDbConfig=function(e,t="",n){const a=new s.URL(e);let r;if(a.protocol.startsWith("sqlite3"))r={client:"sqlite3",connection:{client:"sqlite3",connection:{filename:a.searchParams.get("d")||a.searchParams.get("database")},database:a.searchParams.get("d")||a.searchParams.get("database")}};else{const e={};for(const[t,n]of a.searchParams.entries()){const a=u.knownQueryParams.find((e=>e.parameter===t||e.aliases.includes(t)));a?e[a.parameter]=n:e[t]=n}r={client:a.protocol.replace(":",""),connection:Object.assign(Object.assign({},e),{host:a.hostname,port:+a.port}),acquireConnectionTimeout:6e5},process.env.NODE_TLS_REJECT_UNAUTHORIZED&&(r.connection.ssl=!0),a.searchParams.get("keyFilePath")&&a.searchParams.get("certFilePath")&&a.searchParams.get("caFilePath")&&(r.connection.ssl={keyFilePath:a.searchParams.get("keyFilePath"),certFilePath:a.searchParams.get("certFilePath"),caFilePath:a.searchParams.get("caFilePath")})}return Object.assign(r,{meta:{tn:"nc_evolutions",allSchemas:!!a.searchParams.get("allSchemas")||!(a.searchParams.get("d")||a.searchParams.get("database")),api:{prefix:a.searchParams.get("apiPrefix")||"",swagger:!0,type:n||a.searchParams.get("api")||a.searchParams.get("a")||"rest"},dbAlias:a.searchParams.get("dbAlias")||`db${t}`,metaTables:"db",migrations:{disabled:!1,name:"nc_evolutions"}}}),r},t.metaUrlToDbConfig=async function(e){var t,n;const a=new s.URL(e);let r;if(a.protocol.startsWith("sqlite3")){const e=a.searchParams.get("d")||a.searchParams.get("database");r=Object.assign({client:l.DriverClient.SQLITE,connection:{filename:e}},":memory:"===e?{pool:{min:1,max:1,idleTimeoutMillis:36e7}}:{})}else{const e={};for(const[t,n]of a.searchParams.entries()){const a=u.knownQueryParams.find((e=>e.parameter===t||e.aliases.includes(t)));a?e[a.parameter]=n:e[t]=n}r=Object.assign(Object.assign({client:a.protocol.replace(":",""),connection:Object.assign(Object.assign(Object.assign({},u.defaultConnectionConfig),e),{host:a.hostname,port:+a.port}),acquireConnectionTimeout:6e5},u.defaultConnectionOptions),a.searchParams.has("search_path")?{searchPath:a.searchParams.get("search_path").split(",")}:{}),process.env.NODE_TLS_REJECT_UNAUTHORIZED&&(r.connection.ssl=!0)}return a.searchParams.forEach(((e,t)=>{let n=e;"true"===n?n=!0:"false"===n?n=!1:/^\d+$/.test(n)&&(n=+n),["password","p","database","d","user","u","search_path"].includes(t)||t.split(".").reduce(((e,t,a,r)=>e[t]=a===r.length-1?n:e[t]||{}),r)})),(null===(t=null==r?void 0:r.connection)||void 0===t?void 0:t.ssl)&&"object"==typeof(null===(n=null==r?void 0:r.connection)||void 0===n?void 0:n.ssl)&&(r.connection.ssl.caFilePath&&!r.connection.ssl.ca&&(r.connection.ssl.ca=(await(0,o.promisify)(i.default.readFile)(r.connection.ssl.caFilePath)).toString(),delete r.connection.ssl.caFilePath),r.connection.ssl.keyFilePath&&!r.connection.ssl.key&&(r.connection.ssl.key=(await(0,o.promisify)(i.default.readFile)(r.connection.ssl.keyFilePath)).toString(),delete r.connection.ssl.keyFilePath),r.connection.ssl.certFilePath&&!r.connection.ssl.cert&&(r.connection.ssl.cert=(await(0,o.promisify)(i.default.readFile)(r.connection.ssl.certFilePath)).toString(),delete r.connection.ssl.certFilePath)),r}},7196:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DriverClient=void 0;const a=n(7903);Object.defineProperty(t,"DriverClient",{enumerable:!0,get:function(){return a.DriverClient}})},6789:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nocoExecute=void 0;const a=new(n(3563).Logger)("nocoExecute"),r=e=>Array.isArray(e)?e.flatMap((e=>r(e))):e,i=async(e,t,n={},s=null)=>{var o;if(Array.isArray(t))return Promise.all(t.map(((t,a)=>i(e,t,n[a]=n[a]||{},s))));const c={},u=(e,t,n={},a={})=>{var r,i,s,o,c;if(e.length){const l=e[0];return void 0===t[l]||null===t[l]?"function"==typeof n[l]?t[e[0]]=n[l](a):"object"==typeof n[l]?t[e[0]]=Promise.resolve(n[l]):(null===(i=null===(r=null==t?void 0:t.__proto__)||void 0===r?void 0:r.__columnAliases)||void 0===i?void 0:i[e[0]])?t[e[0]]=u(null===(c=null===(o=null===(s=null==t?void 0:t.__proto__)||void 0===s?void 0:s.__columnAliases)||void 0===o?void 0:o[e[0]])||void 0===c?void 0:c.path,t,{},a):"object"==typeof t&&(t[e[0]]=Promise.resolve(n[l])):"function"==typeof t[l]&&(t.__proto__=Object.assign(Object.assign({},t.__proto__),{[l]:t[l](a)})),(t[e[0]]instanceof Promise?t[e[0]]:Promise.resolve(t[e[0]])).then((t=>Array.isArray(t)?Promise.all(t.map((t=>u(e.slice(1),t,{},a)))):null!=t?u(e.slice(1),t,{},a):Promise.resolve(null)))}return Promise.resolve(t)};function l(e,i){var s,o,l,p,d,m;if(null===(o=null===(s=null==t?void 0:t.__proto__)||void 0===s?void 0:s.__columnAliases)||void 0===o?void 0:o[e])c[e]=u(null===(d=null===(p=null===(l=null==t?void 0:t.__proto__)||void 0===l?void 0:l.__columnAliases)||void 0===p?void 0:p[e])||void 0===d?void 0:d.path,n,t,null===(m=null==i?void 0:i.nested)||void 0===m?void 0:m[e]).then((e=>Promise.resolve(Array.isArray(e)?r(e):e)));else{if(t)if("function"==typeof t[e])c[e]=t[e](i);else if("object"==typeof t[e])c[e]=Promise.resolve(t[e]);else try{c[e]=Promise.resolve(t[e])}catch(e){a.error(e)}n[e]=c[e]}}const p=e&&"object"==typeof e?Object.keys(e).filter((t=>e[t])):Object.keys(t),d={},m=[];for(const t of p)l(t,null===(o=null==s?void 0:s.nested)||void 0===o?void 0:o[t]),e[t]&&"object"==typeof e[t]&&(c[t]=c[t].then((a=>{var r;return Array.isArray(a)?n[t]=Promise.all(a.map(((a,r)=>{var o,c;return i(e[t],a,null===(o=null==n?void 0:n[t])||void 0===o?void 0:o[r],null===(c=null==s?void 0:s.nested)||void 0===c?void 0:c[t])}))):a?n[t]=i(e[t],a,n[t],null===(r=null==s?void 0:s.nested)||void 0===r?void 0:r[t]):a}))),c[t]&&m.push((async()=>{d[t]=await c[t]})());return await Promise.all(m),d};t.nocoExecute=i},2397:function(e,t,n){"use strict";var a,r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.packageInfo=t.packageVersion=void 0;const i=r(n(9896)),s=r(n(6928));let o={};t.packageInfo=o;try{t.packageInfo=o=JSON.parse(i.default.readFileSync(s.default.join(process.cwd(),"node_modules","nocodb","package.json"),"utf8"))}catch(e){try{t.packageInfo=o=JSON.parse(i.default.readFileSync(s.default.join(s.default.dirname(null===(a=process.pkg)||void 0===a?void 0:a.defaultEntrypoint),"node_modules","nocodb","package.json"),"utf8"))}catch(e){try{t.packageInfo=o=JSON.parse(i.default.readFileSync(s.default.join(process.cwd(),"package.json"),"utf8"))}catch(e){}}}const c=null==o?void 0:o.version;t.packageVersion=c},2163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitiseUserObj=void 0;const n=new Set(["password","salt","invite_token","invite_token_expires","reset_password_expires","reset_password_token","email_verification_token","created_at","updated_at"]);t.sanitiseUserObj=function(e){return Object.entries(e).reduce(((e,[t,a])=>(n.has(t)||(e[t]=a),e)),{})}},8945:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Tele=void 0;const r=a(n(857)),i=a(n(5833)),s=n(1072),o=a(n(8938)),c=a(n(9731)),u=n(2397),l=a(n(1141)),p=n(445),d=!!process.env.NC_DISABLE_TELE,m=!!process.env.NC_REDIS_URL,f=!!process.env.NC_BINARY_BUILD,h=!!(process.env.LITESTREAM_S3_BUCKET&&process.env.LITESTREAM_S3_SECRET_ACCESS_KEY&&process.env.LITESTREAM_S3_ACCESS_KEY_ID),b=()=>{try{const e=Math.round(process.uptime()/3600);g.emit("evt",{evt_type:"alive",count:global.NC_COUNT,upTime:e,cache:m,litestream:h,executable:f})}catch(e){}};setInterval(b,288e5);class g{static emit(e,t){try{this._init(),g.emitter.emit(e,t)}catch(e){}}static init(e){g.config=e,g._init()}static page(e){this.emit("page",e)}static event(e){this.emit("ph_event",e)}static _init(){try{if(!g.emitter){g.emitter=new i.default,g.machineId=(0,s.machineIdSync)();let e="",t="";t=process.env.NC_SERVER_UUID,e=u.packageVersion;const n={package_id:e,os_type:r.default.type(),os_platform:r.default.platform(),os_release:r.default.release(),node_version:process.version,docker:(0,c.default)(),xc_version:t,env:process.env.NODE_ENV||"production",oneClick:!!process.env.NC_ONE_CLICK};n.machine_id=`${(0,s.machineIdSync)()},,`,g.emitter.on("evt_app_started",(async e=>{try{if(await y(n),d)return;e&&void 0!==e.count&&(global.NC_COUNT=e.count),await o.default.post("https://telemetry.nocodb.com/api/v1/telemetry",Object.assign(Object.assign({},n),{evt_type:"started",payload:{count:global.NC_COUNT}}))}catch(e){}finally{b()}})),g.emitter.on("evt",(async e=>{try{const t=await g.getInstanceMeta()||{};if(await y(n),e.check&&(n.machine_id=`${(0,s.machineIdSync)()},,`),d&&(!e.evt_type||!e.evt_type.startsWith("a:sync-request:")))return;"project:invite"===e.evt_type&&(global.NC_COUNT=e.count||global.NC_COUNT),"user:first_signup"===e.evt_type&&(global.NC_COUNT=+global.NC_COUNT||1),await o.default.post("https://telemetry.nocodb.com/api/v1/telemetry",Object.assign(Object.assign({},n),{evt_type:e.evt_type,payload:Object.assign(Object.assign({},t),e||{})}))}catch(e){}})),g.emitter.on("evt_api_created",(async e=>{try{await y(n);const t=Object.assign(Object.assign({},n),{table_count:e.tablesCount||0,relation_count:e.relationsCount||0,view_count:e.viewsCount||0,api_count:e.apiCount||0,function_count:e.functionsCount||0,procedure_count:e.proceduresCount||0,mysql:"mysql2"===e.dbType?1:0,pg:"pg"===e.dbType?1:0,mssql:"mssql"===e.dbType?1:0,sqlite3:"sqlite3"===e.dbType?1:0,oracledb:"oracledb"===e.dbType?1:0,rest:"rest"===e.type?1:0,graphql:"graphql"===e.type?1:0,grpc:"grpc"===e.type?1:0,time_taken:e.timeTaken});if(d)return;await o.default.post("https://telemetry.nocodb.com/api/v1/telemetry/apis_created",t)}catch(e){}})),g.emitter.on("evt_subscribe",(async e=>{try{if(d)return;await o.default.post("https://telemetry.nocodb.com/api/v1/newsletter/sdhjh34u3yuy34bj343jhj4iwolaAdsdj3434uiut4nn",{email:e})}catch(e){}})),g.emitter.on("page",(async e=>{try{if(d)return;const t=await g.getInstanceMeta();await this.client.capture({distinctId:e.id||`${this.machineId}:public`,event:"$pageview",properties:Object.assign(Object.assign(Object.assign({},n),t),{$current_url:e.path})})}catch(e){}})),g.emitter.on("ph_event",(async e=>{try{if(d&&(!e.evt_type||!e.evt_type.startsWith("a:sync-request:")))return;const t=await this.getInstanceMeta();let a=e.id;a||(a=e.event&&e.event.startsWith("a:api:")?this.machineId:`${this.machineId}:public`),await this.client.capture({distinctId:a,event:e.event,properties:Object.assign(Object.assign(Object.assign({},n),t),e.data||{})})}catch(e){}}))}}catch(e){}try{this.client||(this.client=new l.default)}catch(e){}}static async getInstanceMeta(){try{return g.config&&g.config.instance&&await g.config.instance()||{}}catch(e){return{}}}static get id(){return this.machineId||(0,s.machineIdSync)()}static async payload(){if("test"===process.env.NODE_ENV||"development"===process.env.NODE_ENV||p.isEE)return null;const e={package_id:u.packageVersion,node_version:process.version,xc_version:process.env.NC_SERVER_UUID,env:process.env.NODE_ENV||"production",oneClick:!!process.env.NC_ONE_CLICK};try{e.os_type=r.default.type(),e.os_platform=r.default.platform(),e.os_release=r.default.release(),e.docker=(0,c.default)(),e.machine_id=`${this.id},,`,e.payload=Object.assign(Object.assign({},await g.getInstanceMeta()||{}),{count:global.NC_COUNT,upTime:Math.round(process.uptime()/3600),cache:m,litestream:h,executable:f})}catch(e){}return e}}async function y(e){let t=5;for(;t--&&!e.machine_id;)await new Promise((e=>setTimeout((()=>e(null)),500)))}if(t.Tele=g,process.env.NC_PUBLIC_URL&&setInterval((()=>{(0,o.default)({method:"get",url:process.env.NC_PUBLIC_URL}).then((()=>{})).catch((()=>{}))}),72e5),process.env.NC_ONE_CLICK)try{g.emit("evt",{evt_type:"ONE_CLICK"})}catch(e){}},2678:(e,t,n)=>{"use strict";var a,r,i;n.r(t),n.d(t,{APIContext:()=>pt,AllAggregations:()=>Kt,AllowedColumnTypesForQrAndBarcodes:()=>Ye,Api:()=>d,AppEvents:()=>Xe,AttachmentAggregations:()=>zt,AttachmentValidationType:()=>Bt,AuditOperationSubTypes:()=>xe,AuditOperationTypes:()=>_e,BooleanAggregations:()=>Yt,ClickhouseTables:()=>Ze,ClientType:()=>mt,CloudOrgUserRoles:()=>Ke,CommonAggregations:()=>Wt,ContentType:()=>o,CustomAPI:()=>Nt,DateAggregations:()=>Vt,DateValidationType:()=>Ft,ExportTypes:()=>ve,FieldNameFromUITypes:()=>Me,FormulaDataTypes:()=>ce,FormulaError:()=>me,FormulaErrorType:()=>oe,GenericValidationType:()=>jt,HttpClient:()=>p,IntegrationCategoryType:()=>bt,IntegrationsType:()=>s,JSEPNode:()=>ue,ModelTypes:()=>De,MssqlUi:()=>x,MysqlUi:()=>y,NcDataErrorCodes:()=>Ce,NcErrorType:()=>Re,NumberValidationType:()=>kt,NumericalAggregations:()=>Gt,OracleUi:()=>T,OrderedOrgRoles:()=>ct,OrderedProjectRoles:()=>ut,OrderedWorkspaceRoles:()=>ot,OrgUserRoles:()=>Ve,PgUi:()=>_,PlanLimitTypes:()=>lt,PluginCategory:()=>Oe,ProjectRoles:()=>Je,ProjectStatus:()=>we,ProjectTypes:()=>ge,RelationTypes:()=>ye,RoleColors:()=>at,RoleDescriptions:()=>rt,RoleIcons:()=>it,RoleLabels:()=>nt,SSLUsage:()=>ft,SelectValidationType:()=>Ut,SnowflakeUi:()=>S,SourceRestriction:()=>dt,SqlUiFactory:()=>R,SqliteUi:()=>D,StringValidationType:()=>Pt,SyncDataType:()=>ht,TemplateGenerator:()=>It,TimeValidationType:()=>$t,TiptapMarksTypes:()=>Ae,TiptapNodesTypes:()=>Se,UITypes:()=>He,UITypesName:()=>Ie,ViewTypes:()=>be,WorkspacePlan:()=>tt,WorkspaceRolesToProjectRoles:()=>st,WorkspaceStatus:()=>et,WorkspaceUserRoles:()=>Qe,XcActionType:()=>r,XcNotificationType:()=>i,XcType:()=>a,YearValidationType:()=>qt,auditOperationSubTypeLabels:()=>Te,auditOperationTypeLabels:()=>Ee,convertToTargetFormat:()=>X,dateFormats:()=>W,dateMonthFormats:()=>H,extractRolesObj:()=>xt,filterOutSystemColumns:()=>gt,formulas:()=>de,getAvailableAggregations:()=>Jt,getAvailableRollupForUiType:()=>Ot,getDateFormat:()=>V,getDateTimeFormat:()=>K,getEquivalentUIType:()=>Ue,getRenderAsTextFunForUiType:()=>Dt,getSystemColumns:()=>vt,getSystemColumnsIds:()=>yt,getTestDatabaseName:()=>Rt,getUITypesForFormulaDataType:()=>ze,handleTZ:()=>Z,isCreatedOrLastModifiedByCol:()=>Fe,isCreatedOrLastModifiedTimeCol:()=>ke,isDateMonthFormat:()=>z,isHiddenCol:()=>$e,isLinksOrLTAR:()=>qe,isNumericCol:()=>je,isSelectTypeCol:()=>Be,isSelfReferencingTableColumn:()=>Et,isSystemColumn:()=>_t,isValidTimeFormat:()=>ne,isVirtualCol:()=>Pe,jsepCurlyHook:()=>re,jsepTreeToFormula:()=>pe,mergeSwaggerSchema:()=>Lt,numericUITypes:()=>Le,oppositeValidationTypeMap:()=>Ht,parseStringDate:()=>J,parseStringDateTime:()=>Q,partialUpdateAllowedTypes:()=>We,populateUniqueFileName:()=>St,readonlyMetaAllowedTypes:()=>Ge,roundUpToPrecision:()=>At,stringifyRolesObj:()=>Tt,substituteColumnAliasWithIdInFormula:()=>se,substituteColumnIdWithAliasInFormula:()=>le,timeAgo:()=>te,timeFormats:()=>G,validateAndExtractSSLProp:()=>Qt,validateDateFormat:()=>ee,validateDateWithUnknownFormat:()=>Y,validateFormulaAndExtractTreeWithType:()=>he,validatePassword:()=>Mt}),function(e){e.ID="ID",e.ForeignKey="ForeignKey",e.SingleLineText="SingleLineText",e.LongText="LongText",e.Attachment="Attachment",e.Checkbox="Checkbox",e.MultiSelect="MultiSelect",e.SingleSelect="SingleSelect",e.Collaborator="Collaborator",e.Date="Date",e.Year="Year",e.Time="Time",e.PhoneNumber="PhoneNumber",e.Email="Email",e.URL="URL",e.Number="Number",e.Decimal="Decimal",e.Currency="Currency",e.Percent="Percent",e.Duration="Duration",e.Rating="Rating",e.Formula="Formula",e.Rollup="Rollup",e.Count="Count",e.Lookup="Lookup",e.DateTime="DateTime",e.CreateTime="CreateTime",e.LastModifiedTime="LastModifiedTime",e.AutoNumber="AutoNumber",e.Barcode="Barcode",e.Button="Button",e.Password="Password"}(a||(a={})),function(e){e.SUBMIT="SUBMIT",e.TEST="TEST",e.CLEAR="CLEAR",e.CANCEL="CANCEL"}(r||(r={})),function(e){e.EMAIL="Email",e.URL="URL",e.DISCORD="Discord",e.TELEGRAM="Telegram",e.SLACK="Slack",e.WHATSAPP="Whatsapp",e.TWILIO="Twilio"}(i||(i={}));var s,o,c=n(8938),u=n.n(c),l=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n};!function(e){e.Database="database"}(s||(s={})),function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded",e.Text="text/plain"}(o||(o={}));class p{constructor(e={}){var{securityWorker:t,secure:n,format:a}=e,r=l(e,["securityWorker","secure","format"]);this.securityData=null,this.setSecurityData=e=>{this.securityData=e},this.request=e=>function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))}(this,void 0,void 0,(function*(){var{secure:t,path:n,type:a,query:r,format:i,wrapped:s,body:c}=e,u=l(e,["secure","path","type","query","format","wrapped","body"]);const p=("boolean"==typeof t?t:this.secure)&&this.securityWorker&&(yield this.securityWorker(this.securityData))||{},d=this.mergeRequestParams(u,p),m=i||this.format||void 0;return a===o.FormData&&c&&null!==c&&"object"==typeof c&&(c=this.createFormData(c)),a===o.Text&&c&&null!==c&&"string"!=typeof c&&(c=JSON.stringify(c)),this.instance.request(Object.assign(Object.assign({},d),{headers:Object.assign(Object.assign({},d.headers||{}),a&&a!==o.FormData?{"Content-Type":a}:{}),params:r,responseType:m,data:c,url:n})).then((e=>s?e:e.data))})),this.instance=u().create(Object.assign(Object.assign({},r),{baseURL:r.baseURL||"http://localhost:8080"})),this.secure=n,this.format=a,this.securityWorker=t}mergeRequestParams(e,t){const n=e.method||t&&t.method;return Object.assign(Object.assign(Object.assign(Object.assign({},this.instance.defaults),e),t||{}),{headers:Object.assign(Object.assign(Object.assign({},n&&this.instance.defaults.headers[n.toLowerCase()]||{}),e.headers||{}),t&&t.headers||{})})}stringifyFormItem(e){return"object"==typeof e&&null!==e?JSON.stringify(e):`${e}`}createFormData(e){return Object.keys(e||{}).reduce(((t,n)=>{const a=e[n],r=a instanceof Array?a:[a];for(const e of r){const a=e instanceof Blob||e instanceof File;t.append(n,a?e:this.stringifyFormItem(e))}return t}),new FormData)}}class d extends p{constructor(){super(...arguments),this.userProfile={update:(e,t={})=>this.request(Object.assign({path:"/api/v1/user/profile",method:"PATCH",body:e,type:o.Json},t))},this.auth={signup:(e,t={})=>this.request(Object.assign({path:"/api/v1/auth/user/signup",method:"POST",body:e,type:o.Json,format:"json"},t)),signout:(e={})=>this.request(Object.assign({path:"/api/v1/auth/user/signout",method:"POST",format:"json"},e)),signin:(e,t={})=>this.request(Object.assign({path:"/api/v1/auth/user/signin",method:"POST",body:e,type:o.Json,format:"json"},t)),me:(e,t={})=>this.request(Object.assign({path:"/api/v1/auth/user/me",method:"GET",query:e,format:"json"},t)),passwordForgot:(e,t={})=>this.request(Object.assign({path:"/api/v1/auth/password/forgot",method:"POST",body:e,type:o.Json,format:"json"},t)),passwordChange:(e,t={})=>this.request(Object.assign({path:"/api/v1/auth/password/change",method:"POST",body:e,type:o.Json,format:"json"},t)),passwordResetTokenValidate:(e,t={})=>this.request(Object.assign({path:`/api/v1/auth/token/validate/${e}`,method:"POST",format:"json"},t)),emailValidate:(e,t={})=>this.request(Object.assign({path:`/api/v1/auth/email/validate/${e}`,method:"POST",format:"json"},t)),passwordReset:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/auth/password/reset/${e}`,method:"POST",body:t,type:o.Json,format:"json"},n)),tokenRefresh:(e={})=>this.request(Object.assign({path:"/api/v1/auth/token/refresh",method:"POST",format:"json"},e)),baseUserList:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/users`,method:"GET",format:"json"},t)),baseUserAdd:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/users`,method:"POST",body:t,type:o.Json,format:"json"},n)),baseUserUpdate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/users/${t}`,method:"PATCH",body:n,type:o.Json,format:"json"},a)),baseUserRemove:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/users/${t}`,method:"DELETE",format:"json"},n)),baseUserResendInvite:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/users/${t}/resend-invite`,method:"POST",format:"json"},n))},this.orgTokens={list:(e={})=>this.request(Object.assign({path:"/api/v1/tokens",method:"GET",format:"json"},e)),create:(e,t={})=>this.request(Object.assign({path:"/api/v1/tokens",method:"POST",body:e,type:o.Json,format:"json"},t)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/tokens/${e}`,method:"DELETE",format:"json"},t))},this.orgLicense={get:(e={})=>this.request(Object.assign({path:"/api/v1/license",method:"GET",format:"json"},e)),set:(e,t={})=>this.request(Object.assign({path:"/api/v1/license",method:"POST",body:e,type:o.Json,format:"json"},t))},this.orgAppSettings={get:(e={})=>this.request(Object.assign({path:"/api/v1/app-settings",method:"GET",format:"json"},e)),set:(e,t={})=>this.request(Object.assign({path:"/api/v1/app-settings",method:"POST",body:e,type:o.Json,format:"json"},t))},this.orgUsers={list:(e={})=>this.request(Object.assign({path:"/api/v1/users",method:"GET",format:"json"},e)),add:(e,t={})=>this.request(Object.assign({path:"/api/v1/users",method:"POST",body:e,type:o.Json,format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}`,method:"DELETE",format:"json"},t)),getByUsername:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}`,method:"GET",format:"json"},t)),resendInvite:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}/resend-invite`,method:"POST",format:"json"},t)),profileCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/profile`,method:"POST",body:t,type:o.Json},n)),profileGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}/profile`,method:"GET"},t)),profileUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/profile`,method:"PATCH",body:t,type:o.Json},n)),followerCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/follower`,method:"POST",body:t,type:o.Json},n)),followerList:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/follower`,method:"GET",body:t,type:o.Json},n)),followerDelete:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/follower`,method:"DELETE",body:t,type:o.Json},n)),followingList:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}/following`,method:"GET"},t)),isFollowing:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/users/${e}/isFollowing/${t}`,method:"GET"},n)),generatePasswordResetToken:(e,t={})=>this.request(Object.assign({path:`/api/v1/users/${e}/generate-reset-url`,method:"POST",format:"json"},t))},this.base={metaGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/info`,method:"GET",format:"json"},t)),modelVisibilityList:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/visibility-rules`,method:"GET",query:t,format:"json"},n)),modelVisibilitySet:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/visibility-rules`,method:"POST",body:t,type:o.Json,format:"json"},n)),list:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/projects/",method:"GET",format:"json"},e)),create:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/projects/",method:"POST",body:e,type:o.Json,format:"json"},t)),sourceDuplicate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/duplicate/${e}/${n}`,method:"POST",body:t,type:o.Json,format:"json"},a)),duplicate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/duplicate/${e}`,method:"POST",body:t,type:o.Json,format:"json"},n)),read:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}`,method:"GET",format:"json"},t)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}`,method:"DELETE",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),userMetaUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/user`,method:"PATCH",body:t,type:o.Json},n)),sharedBaseGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/shared`,method:"GET",format:"json"},t)),sharedBaseDisable:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/shared`,method:"DELETE",format:"json"},t)),sharedBaseCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/shared`,method:"POST",body:t,type:o.Json,format:"json"},n)),sharedBaseUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/shared`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),cost:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/cost`,method:"GET",format:"json"},t)),metaDiffSync:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/meta-diff`,method:"POST",format:"json"},t)),metaDiffGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/meta-diff`,method:"GET",format:"json"},t)),hasEmptyOrNullFilters:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/has-empty-or-null-filters`,method:"GET",format:"json"},t)),auditList:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/audits`,method:"GET",query:t,format:"json"},n))},this.source={read:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/${t}`,method:"GET",format:"json"},n)),delete:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/${t}`,method:"DELETE",format:"json"},n)),update:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/${t}`,method:"PATCH",body:n,type:o.Json,format:"json"},a)),list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/`,method:"POST",body:t,type:o.Json,format:"json"},n)),shareErd:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/${t}/share/erd`,method:"POST",format:"json"},n)),disableShareErd:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/bases/${t}/share/erd`,method:"DELETE"},n)),tableList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/${t}/tables`,method:"GET",query:n},a)),tableCreate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/${t}/tables`,method:"POST",body:n,type:o.Json,format:"json"},a)),metaDiffSync:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/meta-diff/${t}`,method:"POST",format:"json"},n)),metaDiffGet:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/meta-diff/${t}`,method:"GET",format:"json"},n))},this.dbTable={create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/tables`,method:"POST",body:t,type:o.Json,format:"json"},n)),list:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/tables`,method:"GET",query:t},n)),read:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}`,method:"DELETE",format:"json"},t)),duplicate:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/duplicate/${e}/table/${t}`,method:"POST",body:n,type:o.Json,format:"json"},a)),duplicateColumn:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/duplicate/${e}/column/${t}`,method:"POST",body:n,type:o.Json,format:"json"},a)),reorder:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/reorder`,method:"POST",body:t,type:o.Json,format:"json"},n))},this.dbTableColumn={create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/columns`,method:"POST",body:t,type:o.Json},n)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/columns/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/columns/${e}`,method:"DELETE"},t)),get:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/columns/${e}`,method:"GET"},t)),primaryColumnSet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/columns/${e}/primary`,method:"POST",format:"json"},t)),hash:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/columns/hash`,method:"GET",format:"json"},t)),bulk:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/columns/bulk`,method:"POST",body:t,type:o.Json,format:"json"},n))},this.dbView={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/views`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}`,method:"DELETE",format:"json"},t)),showAllColumn:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/show-all`,method:"POST",query:t,format:"json"},n)),hideAllColumn:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/hide-all`,method:"POST",query:t,format:"json"},n)),gridCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/grids`,method:"POST",body:t,type:o.Json,format:"json"},n)),formCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/forms`,method:"POST",body:t,type:o.Json,format:"json"},n)),formUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/forms/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),formRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/forms/${e}`,method:"GET",format:"json"},t)),formColumnUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/form-columns/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),gridUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/grids/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),gridColumnsList:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/grids/${e}/grid-columns`,method:"GET",format:"json"},t)),gridColumnUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/grid-columns/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),galleryCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/galleries`,method:"POST",body:t,type:o.Json,format:"json"},n)),galleryUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/galleries/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),galleryRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/galleries/${e}`,method:"GET",format:"json"},t)),kanbanCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/kanbans`,method:"POST",body:t,type:o.Json,format:"json"},n)),kanbanUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/kanbans/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),kanbanRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/kanbans/${e}`,method:"GET",format:"json"},t)),mapCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/maps`,method:"POST",body:t,type:o.Json,format:"json"},n)),mapUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/maps/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),mapRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/maps/${e}`,method:"GET",format:"json"},t)),calendarCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/calendars`,method:"POST",body:t,type:o.Json,format:"json"},n)),calendarUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/calendars/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),calendarRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/calendars/${e}`,method:"GET",format:"json"},t))},this.dbViewShare={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/share`,method:"GET",format:"json"},t)),create:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/share`,method:"POST",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/share`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/share`,method:"DELETE",format:"json"},t))},this.dbViewColumn={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/columns`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/columns`,method:"POST",body:t,type:o.Json,format:"json"},n)),update:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/columns/${t}`,method:"PATCH",body:n,type:o.Json,format:"json"},a))},this.dbTableSort={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/sorts`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/sorts`,method:"POST",body:t,type:o.Json,format:"json"},n)),get:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/sorts/${e}`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/sorts/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/sorts/${e}`,method:"DELETE",format:"json"},t))},this.dbTableFilter={read:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/filters`,method:"GET",query:t,format:"json"},n)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/views/${e}/filters`,method:"POST",body:t,type:o.Json,format:"json"},n)),get:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/filters/${e}`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/filters/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/filters/${e}`,method:"DELETE",format:"json"},t)),childrenRead:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/filters/${e}/children`,method:"GET",format:"json"},t))},this.dbTableWebhookFilter={read:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/hooks/${e}/filters`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/hooks/${e}/filters`,method:"POST",body:t,type:o.Json,format:"json"},n))},this.dbTableWebhookLogs={list:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/hooks/${e}/logs`,method:"GET",query:t,format:"json"},n))},this.dbTableRow={list:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}`,method:"GET",query:a,format:"json"},r)),create:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}`,method:"POST",body:a,type:o.Json,format:"json"},r)),findOne:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/find-one`,method:"GET",query:a,format:"json"},r)),groupBy:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/groupby`,method:"GET",query:a,format:"json"},r)),groupedDataList:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/group/${a}`,method:"GET",query:r,format:"json"},i)),read:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}`,method:"GET",query:r,format:"json"},i)),update:(e,t,n,a,r,i,s={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}`,method:"PATCH",query:i,body:r,type:o.Json,format:"json"},s)),delete:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}`,method:"DELETE",query:r,format:"json"},i)),exist:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}/exist`,method:"GET",format:"json"},r)),bulkCreate:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/bulk/${e}/${t}/${n}`,method:"POST",body:a,type:o.Json,format:"json"},r)),bulkUpdate:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/bulk/${e}/${t}/${n}`,method:"PATCH",body:a,type:o.Json,format:"json"},r)),bulkDelete:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/bulk/${e}/${t}/${n}`,method:"DELETE",body:a,type:o.Json,format:"json"},r)),bulkUpdateAll:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/bulk/${e}/${t}/${n}/all`,method:"PATCH",query:r,body:a,type:o.Json,format:"json"},i)),bulkDeleteAll:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/bulk/${e}/${t}/${n}/all`,method:"DELETE",query:r,body:a,type:o.Json,format:"json"},i)),csvExport:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/export/${a}`,method:"GET",wrapped:!0},r)),nestedList:(e,t,n,a,r,i,s,o={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}/${r}/${i}`,method:"GET",query:s,format:"json"},o)),nestedAdd:(e,t,n,a,r,i,s,o,c={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}/${r}/${i}/${s}`,method:"POST",query:o,format:"json"},c)),nestedRemove:(e,t,n,a,r,i,s,o={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}/${r}/${i}/${s}`,method:"DELETE",format:"json"},o)),nestedChildrenExcludedList:(e,t,n,a,r,i,s,o={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/${a}/${r}/${i}/exclude`,method:"GET",query:s,format:"json"},o))},this.dbViewRow={groupedDataList:(e,t,n,a,r,i,s={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/group/${r}`,method:"GET",query:i,format:"json"},s)),list:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}`,method:"GET",query:r,format:"json"},i)),create:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}`,method:"POST",body:r,type:o.Json,format:"json"},i)),findOne:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/find-one`,method:"GET",query:r,format:"json"},i)),groupBy:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/groupby`,method:"GET",query:r,format:"json"},i)),count:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/count`,method:"GET",query:r,format:"json"},i)),read:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/${r}`,method:"GET",format:"json"},i)),update:(e,t,n,a,r,i,s={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/${r}`,method:"PATCH",body:i,type:o.Json,format:"json"},s)),delete:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/${r}`,method:"DELETE",format:"json"},i)),exist:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/${r}/exist`,method:"GET",format:"json"},i)),export:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/data/${e}/${t}/${n}/views/${a}/export/${r}`,method:"GET",wrapped:!0},i))},this.dbCalendarViewRow={list:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/calendar-data/${e}/${t}/${n}/views/${a}`,method:"GET",query:r},i)),publicDataCalendarRowList:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/calendar-view/${e}`,method:"GET",query:t},n))},this.api={responsesApi:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v1/db/calendar-data/${e}/${t}/${n}/views/${a}`,method:"RESPONSES"},r)),responsesApi2:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/public/calendar-view/${e}`,method:"RESPONSES"},t))},this.dbCalendarViewRowCount={dbCalendarViewRowCount:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/calendar-data/${e}/${t}/${n}/views/${a}/countByDate/`,method:"GET",query:r,format:"json"},i))},this.public={dataCalendarRowCount:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/calendar-view/${e}/countByDate`,method:"GET",query:t,format:"json"},n)),dataTableBulkDataList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/public/shared-view/${e}/bulk/dataList`,method:"POST",query:n,body:t,type:o.Json,format:"json"},a)),dataTableBulkGroup:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/public/shared-view/${e}/bulk/group`,method:"POST",query:n,body:t,type:o.Json,format:"json"},a)),dataTableAggregate:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/public/shared-view/${e}/aggregate`,method:"GET",query:t,format:"json"},n)),dataAttachmentDownload:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v2/public/shared-view/${e}/downloadAttachment/${t}/${n}`,method:"GET",query:a,format:"json"},r)),groupedDataList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/group/${t}`,method:"GET",query:n,format:"json"},a)),dataList:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/rows`,method:"GET",query:t,format:"json"},n)),dataCreate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/rows`,method:"POST",body:t,type:o.FormData,format:"json"},n)),dataGroupBy:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/groupby`,method:"GET",query:t,format:"json"},n)),dataNestedList:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/rows/${t}/${n}/${a}`,method:"GET",query:r,format:"json"},i)),csvExport:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/rows/export/${t}`,method:"GET",wrapped:!0},n)),dataRelationList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/nested/${t}`,method:"GET",query:n,format:"json"},a)),sharedBaseGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-base/${e}/meta`,method:"GET",format:"json"},t)),sharedViewMetaGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-view/${e}/meta`,method:"GET",format:"json"},t)),sharedErdMetaGet:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/public/shared-erd/${e}/meta`,method:"GET"},t))},this.dbDataTableBulkList={dbDataTableBulkList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/bulk/dataList`,method:"POST",query:t,body:n,type:o.Json,format:"json"},a))},this.dbDataTableBulkGroupList={dbDataTableBulkGroupList:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/bulk/group`,method:"POST",query:t,body:n,type:o.Json,format:"json"},a))},this.utils={auditList:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/audits",method:"GET",query:e,format:"json"},t)),commentList:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/comments",method:"GET",query:e,format:"json"},t)),commentRow:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/comments",method:"POST",body:e,type:o.Json,format:"json"},t)),commentUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/comment/${e}/`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),commentDelete:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/comment/${e}/`,method:"DELETE",body:t,format:"json"},n)),commentCount:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/comments/count",method:"GET",query:e,format:"json"},t)),projectAuditList:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/projects/audits",method:"GET",query:e,format:"json"},t)),auditRowUpdate:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/audits/rows/${e}/update`,method:"POST",body:t,type:o.Json,format:"json"},n)),testConnection:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/connection/test",method:"POST",body:e,type:o.Json,format:"json"},t)),urlToConfig:(e,t={})=>this.request(Object.assign({path:"/api/v1/url_to_config",method:"POST",body:e,type:o.Json,format:"json"},t)),appInfo:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/nocodb/info",method:"GET",format:"json"},e)),axiosRequestMake:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/axiosRequestMake",method:"POST",body:e,type:o.Json,format:"json"},t)),appVersion:(e={})=>this.request(Object.assign({path:"/api/v1/version",method:"GET",format:"json"},e)),appHealth:(e={})=>this.request(Object.assign({path:"/api/v1/health",method:"GET",format:"json"},e)),feed:(e,t={})=>this.request(Object.assign({path:"/api/v2/feed",method:"GET",query:e,format:"json"},t)),aggregatedMetaInfo:(e={})=>this.request(Object.assign({path:"/api/v1/aggregated-meta-info",method:"GET",format:"json"},e)),cacheGet:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/cache",method:"GET"},e)),cacheDelete:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/cache",method:"DELETE",format:"json"},e)),commandPalette:(e,t={})=>this.request(Object.assign({path:"/api/v1/command_palette",method:"POST",body:e,type:o.Json,format:"json"},t))},this.dbTableWebhook={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/hooks`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/hooks`,method:"POST",body:t,type:o.Json,format:"json"},n)),test:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/hooks/test`,method:"POST",body:t,type:o.Json,format:"json"},n)),samplePayloadGet:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v1/db/meta/tables/${e}/hooks/samplePayload/${t}/${n}`,method:"GET",format:"json"},a)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/hooks/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/hooks/${e}`,method:"DELETE",format:"json"},t)),trigger:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/hooks/${e}/trigger/${t}`,method:"POST"},n))},this.plugin={list:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/plugins",method:"GET",format:"json"},e)),webhookList:(e={})=>this.request(Object.assign({path:"/api/v1/db/meta/plugins/webhook",method:"GET",format:"json"},e)),status:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/plugins/${e}/status`,method:"GET",format:"json"},t)),test:(e,t={})=>this.request(Object.assign({path:"/api/v1/db/meta/plugins/test",method:"POST",body:e,type:o.Json,format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/plugins/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),read:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/plugins/${e}`,method:"GET",format:"json"},t))},this.apiToken={list:(e,t={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/api-tokens`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/api-tokens`,method:"POST",body:t,type:o.Json,format:"json"},n)),delete:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/db/meta/projects/${e}/api-tokens/${t}`,method:"DELETE",format:"json"},n))},this.storage={upload:(e,t,n={})=>this.request(Object.assign({path:"/api/v1/db/storage/upload",method:"POST",query:e,body:t,type:o.FormData},n)),uploadByUrl:(e,t,n={})=>this.request(Object.assign({path:"/api/v1/db/storage/upload-by-url",method:"POST",query:e,body:t,type:o.Json},n))},this.notification={poll:(e={})=>this.request(Object.assign({path:"/api/v1/notifications/poll",method:"GET",format:"json"},e)),list:(e,t={})=>this.request(Object.assign({path:"/api/v1/notifications",method:"GET",query:e,format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v1/notifications/${e}`,method:"PATCH",body:t,type:o.Json},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v1/notifications/${e}`,method:"DELETE"},t)),markAllAsRead:(e={})=>this.request(Object.assign({path:"/api/v1/notifications/mark-all-read",method:"POST"},e))},this.dbDataTableAggregate={dbDataTableAggregate:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/aggregate`,method:"GET",query:t,format:"json"},n))},this.dbDataTableRow={list:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records`,method:"GET",query:t,format:"json"},n)),create:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records`,method:"POST",query:n,body:t,type:o.Json,format:"json"},a)),update:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records`,method:"PATCH",query:n,body:t,type:o.Json,format:"json"},a)),delete:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records`,method:"DELETE",query:n,body:t,type:o.Json,format:"json"},a)),read:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records/${t}`,method:"GET",query:n,format:"json"},a)),count:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/records/count`,method:"GET",query:t,format:"json"},n)),nestedList:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/links/${t}/records/${n}`,method:"GET",query:a,format:"json"},r)),nestedLink:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/links/${t}/records/${n}`,method:"POST",query:r,body:a,type:o.Json,format:"json"},i)),nestedUnlink:(e,t,n,a,r,i={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/links/${t}/records/${n}`,method:"DELETE",query:r,body:a,type:o.Json,format:"json"},i)),attachmentDownload:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v2/downloadAttachment/${e}/${t}/${n}`,method:"GET",query:a,format:"json"},r)),nestedListCopyPasteOrDeleteAll:(e,t,n,a,r={})=>this.request(Object.assign({path:`/api/v2/tables/${e}/links/${t}/records`,method:"POST",query:a,body:n,type:o.Json,format:"json"},r))},this.extensions={list:(e,t={})=>this.request(Object.assign({path:`/api/v2/extensions/${e}`,method:"GET",format:"json"},t)),create:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/extensions/${e}`,method:"POST",body:t,type:o.Json,format:"json"},n)),read:(e,t={})=>this.request(Object.assign({path:`/api/v2/extensions/${e}`,method:"GET",format:"json"},t)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/extensions/${e}`,method:"PATCH",body:t,type:o.Json,format:"json"},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v2/extensions/${e}`,method:"DELETE",format:"json"},t))},this.jobs={listen:(e,t={})=>this.request(Object.assign({path:"/jobs/listen",method:"POST",body:e,type:o.Json},t)),list:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/jobs/${e}`,method:"POST",body:t,type:o.Json},n))},this.export={data:(e,t,n,a={})=>this.request(Object.assign({path:`/api/v2/export/${e}/${t}`,method:"POST",body:n,type:o.Json},a))},this.integration={list:(e,t={})=>this.request(Object.assign({path:"/api/v2/meta/integrations",method:"GET",query:e,format:"json"},t)),create:(e,t={})=>this.request(Object.assign({path:"/api/v2/meta/integrations",method:"POST",body:e,type:o.Json,format:"json"},t)),read:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/integrations/${e}`,method:"GET",query:t,format:"json"},n)),update:(e,t,n={})=>this.request(Object.assign({path:`/api/v2/meta/integrations/${e}`,method:"PATCH",body:t,type:o.Json},n)),delete:(e,t={})=>this.request(Object.assign({path:`/api/v2/meta/integrations/${e}`,method:"DELETE"},t))}}}const m=__webpack_require__(88295);var f=n.n(m);const h=__webpack_require__(24870);var b=n.n(h);const g=["int","smallint","mediumint","bigint","bit","boolean","float","decimal","double","serial","tinyint","date","datetime","timestamp","time","year","char","varchar","nchar","text","tinytext","mediumtext","longtext","binary","varbinary","blob","tinyblob","mediumblob","longblob","enum","set","geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon","json"];class y{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"int",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!0,ai:!0,cdf:null,clen:null,np:11,ns:0,dtxp:"11",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:He.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:He.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){switch(e){case"int":return 11;case"tinyint":return 1;case"smallint":return 5;case"mediumint":return 9;case"bigint":case"serial":return 20;case"bit":return 64;case"boolean":case"date":case"datetime":case"timestamp":case"time":case"year":case"text":case"tinytext":case"mediumtext":case"longtext":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":return"";case"float":return 12;case"decimal":return 10;case"double":return 22;case"char":case"varchar":case"nchar":case"binary":return 255;case"varbinary":return 65500}}static getDefaultLengthIsDisabled(e){switch(e){case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"float":case"decimal":case"double":case"serial":case"datetime":case"timestamp":case"char":case"varchar":case"nchar":case"binary":case"varbinary":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":case"bit":return!1;case"boolean":case"date":case"time":case"year":case"text":case"tinytext":case"mediumtext":case"longtext":case"blob":case"tinyblob":case"mediumblob":case"longblob":return!0}}static getDefaultValueForDatatype(e){switch(e){case"int":case"smallint":case"mediumint":case"float":case"decimal":case"double":return"eg : 10";case"tinyint":case"bit":case"boolean":case"binary":return"eg : 1";case"bigint":case"serial":return"eg : 100";case"date":return"eg : 2020-09-09";case"datetime":case"timestamp":return"eg : now()\n\nCURRENT_TIMESTAMP\n\nCURRENT_TIMESTAMP on update CURRENT_TIMESTAMP\n\n1992-10-12 00:00:00";case"time":return"eg : 00:00:00";case"year":return"eg : 2020";case"char":case"enum":case"set":return"eg : a";case"varchar":case"nchar":case"text":case"tinytext":case"mediumtext":case"longtext":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":return"eg : hey";case"geometry":return"geometry can't have default value";case"point":return"point can't have default value";case"linestring":return"linestring can't have default value";case"polygon":return"polygon can't have default value";case"multipoint":return"multipoint can't have default value";case"multilinestring":return"multilinestring can't have default value";case"multipolygon":return"multipolygon can't have default value";case"json":return"JSON can't have default value"}}static getDefaultScaleForDatatype(e){switch(e){case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"bit":case"boolean":case"serial":case"date":case"datetime":case"timestamp":case"time":case"year":case"char":case"varchar":case"nchar":case"text":case"tinytext":case"mediumtext":case"longtext":case"binary":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":return" ";case"float":case"decimal":case"double":return"2"}}static colPropAIDisabled(e,t){if("int"===e.dt||"tinyint"===e.dt||"bigint"===e.dt||"smallint"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!("int"===e.dt||"tinyint"===e.dt||"smallint"===e.dt||"mediumint"===e.dt||"bigint"===e.dt)}static onCheckboxChangeAI(e){"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2}static showScale(e){return"float"===e.dt||"decimal"===e.dt||"double"===e.dt||"real"===e.dt}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return"_evolutions"!==e.tn||"nc_evolutions"!==e.tn}static colPropAuDisabled(e){return!0}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"DateTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.toLowerCase()){case"int":case"smallint":case"mediumint":case"bigint":case"bit":return"integer";case"boolean":return"boolean";case"float":case"decimal":case"double":case"serial":return"float";case"tinyint":return"1"==e.dtxp?"boolean":"integer";case"date":return"date";case"datetime":case"timestamp":return"datetime";case"time":return"time";case"year":return"year";case"char":case"varchar":case"nchar":case"binary":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":return"string";case"text":case"tinytext":case"mediumtext":case"longtext":case"varbinary":return"text";case"blob":case"tinyblob":case"mediumblob":case"longblob":return"blob";case"enum":return"enum";case"set":return"set";case"json":return"json"}}static getDataTypeForUiType(e,t){var n,a,r,i;const s={};switch(e.uidt){case"ID":{const e="AI"===t,n="AG"===t;s.dt=n?"varchar":"int",s.pk=!0,s.un=e,s.ai=e,s.rqd=!0,s.meta=n?{ag:"nc"}:void 0}break;case"ForeignKey":case"Collaborator":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:s.dt="varchar";break;case"SingleLineText":case"LongText":case"Attachment":case"GeoData":s.dt="text";break;case"Checkbox":s.dt="tinyint",s.dtxp=1,s.cdf="0";break;case"MultiSelect":s.dt="set",((null===(n=e.colOptions)||void 0===n?void 0:n.options.length)>64||(null===(i=null===(r=null===(a=e.dtxp)||void 0===a?void 0:a.toString)||void 0===r?void 0:r.call(a))||void 0===i?void 0:i.split(",").length)>64)&&(s.dt="text");break;case"SingleSelect":s.dt="enum";break;case"Date":s.dt="date";break;case"Year":s.dt="year";break;case"Time":s.dt="time";break;case"PhoneNumber":s.dt="varchar",s.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone ({cn})"]};break;case"Email":s.dt="varchar",s.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail ({cn})"]};break;case"URL":s.dt="text",s.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL ({cn})"]};break;case"Number":s.dt="bigint";break;case"Decimal":case"Duration":s.dt="decimal";break;case"Currency":s.dt="decimal",s.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":s.dt="double";break;case"Rating":s.dt="int",s.cdf="0";break;case"Count":case"AutoNumber":s.dt="int";break;case"DateTime":s.dt="datetime";break;case"CreatedTime":case"LastModifiedTime":s.dt="timestamp";break;case"JSON":s.dt="json"}return s}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["varchar","char","nchar"]:"AI"===t?["int","smallint","mediumint","bigint","bit","serial"]:g;case"ForeignKey":default:return g;case"SingleLineText":case"LongText":case"Collaborator":case"GeoData":return["text","mediumtext","longtext","varchar","char","nchar","tinytext"];case"Attachment":return["json","char","varchar","nchar","text","tinytext","mediumtext","longtext"];case"JSON":return["json","text","tinytext","mediumtext","longtext"];case"Checkbox":return["int","smallint","mediumint","bigint","bit","boolean","serial","tinyint"];case"MultiSelect":return["set","text","tinytext","mediumtext","longtext"];case"SingleSelect":return["enum","text","tinytext","mediumtext","longtext"];case"Year":return["year"];case"Time":return["time"];case"PhoneNumber":case"Email":case"Rollup":case"Lookup":case"Barcode":return["varchar"];case"URL":return["text","tinytext","mediumtext","longtext","varchar"];case"Number":return["int","smallint","mediumint","bigint","bit","float","decimal","double","serial"];case"Decimal":return["float","decimal","double","serial"];case"Currency":case"Percent":case"Duration":case"Rating":return["decimal","float","double","serial","int","smallint","mediumint","bigint","bit"];case"Formula":case"Button":return["char","varchar","nchar","text","tinytext","mediumtext","longtext"];case"Count":return["int","smallint","mediumint","bigint","serial"];case"Date":return["date","datetime","timestamp","varchar"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["datetime","timestamp","varchar"];case"AutoNumber":return["int","smallint","mediumint","bigint"];case"Geometry":return["geometry","point","linestring","polygon","multipoint","multilinestring","multipolygon"]}}static getUnsupportedFnList(){return["COUNTA","COUNT","DATESTR"]}static getCurrentDateDefault(e){return e.dt&&("timestamp"===e.dt.toLowerCase()||"datetime"===e.dt.toLowerCase())||!e.dt&&e.uidt===He.DateTime?"CURRENT_TIMESTAMP":null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}const v=["int","integer","bigint","bigserial","char","int2","int4","int8","int4range","int8range","serial","serial2","serial8","character","bit","bool","boolean","date","double precision","event_trigger","fdw_handler","float4","float8","uuid","smallint","smallserial","character varying","text","real","time","time without time zone","timestamp","timestamp without time zone","timestamptz","timestamp with time zone","timetz","time with time zone","daterange","json","jsonb","gtsvector","index_am_handler","anyenum","anynonarray","anyrange","box","bpchar","bytea","cid","cidr","circle","cstring","inet","internal","interval","language_handler","line","lsec","macaddr","money","name","numeric","numrange","oid","opaque","path","pg_ddl_command","pg_lsn","pg_node_tree","point","polygon","record","refcursor","regclass","regconfig","regdictionary","regnamespace","regoper","regoperator","regproc","regpreocedure","regrole","regtype","reltime","smgr","tid","tinterval","trigger","tsm_handler","tsquery","tsrange","tstzrange","tsvector","txid_snapshot","unknown","void","xid","xml"];class _{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"int4",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!0,cdf:null,clen:null,np:11,ns:0,dtxp:"11",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:He.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:He.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){switch(e){case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"bit":case"boolean":case"float":case"decimal":case"double":case"serial":case"date":case"datetime":case"timestamp":case"time":case"year":case"char":case"varchar":case"nchar":case"text":case"tinytext":case"mediumtext":case"longtext":case"binary":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":return""}}static getDefaultLengthIsDisabled(e){switch(e){case"anyenum":case"anynonarray":case"anyrange":case"bigint":case"bigserial":case"bit":case"bool":case"box":case"bpchar":case"bytea":case"char":case"character":case"cid":case"cidr":case"circle":case"cstring":case"date":case"daterange":case"double precision":case"event_trigger":case"fdw_handler":case"float4":case"float8":case"gtsvector":case"index_am_handler":case"inet":case"int":case"int2":case"int4":case"int8":case"int4range":case"int8range":case"integer":case"internal":case"interval":case"jsonb":case"language_handler":case"line":case"lsec":case"macaddr":case"money":case"name":case"numeric":case"numrange":case"oid":case"opaque":case"path":case"pg_ddl_command":case"pg_lsn":case"pg_node_tree":case"real":case"record":case"refcursor":case"regclass":case"regconfig":case"regdictionary":case"regnamespace":case"regoper":case"regoperator":case"regproc":case"regpreocedure":case"regrole":case"regtype":case"reltime":case"serial":case"serial2":case"serial8":case"smallint":case"smallserial":case"smgr":case"text":case"tid":case"time":case"time without time zone":case"timestamp":case"timestamp without time zone":case"timestamptz":case"timestamp with time zone":case"timetz":case"time with time zone":case"tinterval":case"trigger":case"tsm_handler":case"tsquery":case"tsrange":case"tstzrange":case"tsvector":case"txid_snapshot":case"unknown":case"void":case"xid":case"xml":case"character varying":case"tinyint":case"mediumint":case"float":case"decimal":case"double":case"boolean":case"datetime":case"uuid":case"year":case"varchar":case"nchar":case"tinytext":case"mediumtext":case"longtext":case"binary":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":return!0}}static getDefaultValueForDatatype(e){switch(e){case"anyenum":case"anynonarray":case"anyrange":case"bigint":case"bigserial":case"bit":case"bool":case"box":case"bpchar":case"bytea":case"char":case"cid":case"cidr":case"circle":case"cstring":case"daterange":case"event_trigger":case"fdw_handler":case"gtsvector":case"index_am_handler":case"inet":case"int":case"int2":case"int4":case"int8":case"int4range":case"int8range":case"integer":case"internal":case"interval":case"json":case"jsonb":case"language_handler":case"line":case"lsec":case"macaddr":case"money":case"name":case"numeric":case"numrange":case"oid":case"opaque":case"path":case"pg_ddl_command":case"pg_lsn":case"pg_node_tree":case"point":case"polygon":case"record":case"refcursor":case"regclass":case"regconfig":case"regdictionary":case"regnamespace":case"regoper":case"regoperator":case"regproc":case"regpreocedure":case"regrole":case"regtype":case"reltime":case"serial":case"serial2":case"serial8":case"smallint":case"smallserial":case"smgr":case"tid":case"tinterval":case"trigger":case"tsm_handler":case"tsquery":case"tsrange":case"tstzrange":case"tsvector":case"txid_snapshot":case"unknown":case"void":case"xid":case"xml":case"tinyint":case"mediumint":case"float":case"decimal":case"datetime":case"uuid":case"year":case"varchar":case"nchar":case"tinytext":case"mediumtext":case"longtext":case"binary":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"linestring":case"multipoint":case"multilinestring":case"multipolygon":return"eg: ";case"character":return"eg: 'sample'";case"date":return"eg: '2020-09-09'";case"double precision":case"float4":case"float8":case"real":case"double":return"eg: 1.2";case"text":case"character varying":return"eg: 'sample text'";case"time":case"time without time zone":return"eg: now()\n\n'04:05:06.789'";case"timestamp":case"timestamp without time zone":case"timestamp with time zone":return"eg: now()\n\n'2016-06-22 19:10:25-07'";case"timestamptz":return"eg: timezone('America/New_York','2016-06-01 00:00')\n\nnow()\n\n'2016-06-22 19:10:25-07'";case"timetz":case"time with time zone":return"eg: now()";case"boolean":return"eg: true\n\nfalse"}}static getDefaultScaleForDatatype(e){switch(e){case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"bit":case"boolean":case"serial":case"date":case"datetime":case"timestamp":case"time":case"year":case"char":case"varchar":case"nchar":case"text":case"tinytext":case"mediumtext":case"longtext":case"binary":case"varbinary":case"blob":case"tinyblob":case"mediumblob":case"longblob":case"enum":case"set":case"geometry":case"point":case"linestring":case"polygon":case"multipoint":case"multilinestring":case"multipolygon":case"json":return" ";case"float":case"decimal":case"double":return"2"}}static colPropAIDisabled(e,t){if("int4"===e.dt||"integer"===e.dt||"bigint"===e.dt||"smallint"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2,e.au&&(e.cdf="now()")}static showScale(e){return!1}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return"_evolutions"!==e.tn||"nc_evolutions"!==e.tn}static colPropAuDisabled(e){if(1!==e.altered)return!0;switch(e.dt){case"time":case"time without time zone":case"timestamp":case"timestamp without time zone":case"timestamptz":case"timestamp with time zone":case"timetz":case"time with time zone":return!1;default:return!0}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.toLowerCase()){case"anyenum":case"enum":return"enum";case"anynonarray":case"anyrange":case"box":case"bpchar":case"bytea":case"char":case"character":case"cid":case"cidr":case"circle":case"cstring":case"daterange":case"event_trigger":case"fdw_handler":case"gtsvector":case"index_am_handler":case"inet":case"int4range":case"int8range":case"internal":case"interval":case"language_handler":case"line":case"lsec":case"macaddr":case"money":case"name":case"numeric":case"numrange":case"oid":case"opaque":case"path":case"pg_ddl_command":case"pg_lsn":case"pg_node_tree":case"point":case"polygon":case"record":case"refcursor":case"regclass":case"regconfig":case"regdictionary":case"regnamespace":case"regoper":case"regoperator":case"regproc":case"regpreocedure":case"regrole":case"regtype":case"reltime":case"smgr":case"tid":case"tinterval":case"trigger":case"tsm_handler":case"tsquery":case"tsrange":case"tstzrange":case"tsvector":case"txid_snapshot":case"unknown":case"void":case"xid":case"character varying":case"xml":case"uuid":case"year":case"varchar":case"nchar":case"binary":case"varbinary":case"geometry":case"linestring":case"multipoint":case"multilinestring":case"multipolygon":return"string";case"bit":case"int":case"int2":case"int4":case"int8":case"integer":case"bigint":case"bigserial":case"serial":case"serial2":case"serial8":case"smallint":case"smallserial":case"tinyint":case"mediumint":return"integer";case"bool":case"boolean":return"boolean";case"date":return"date";case"double precision":case"float4":case"float8":case"real":case"float":case"decimal":case"double":return"float";case"text":case"tinytext":case"mediumtext":case"longtext":return"text";case"time":case"time without time zone":case"timetz":case"time with time zone":return"time";case"timestamp":case"timestamp without time zone":case"timestamptz":case"timestamp with time zone":case"datetime":return"datetime";case"blob":case"tinyblob":case"mediumblob":case"longblob":return"blob";case"set":return"set";case"json":case"jsonb":return"json"}}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"CreatedTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getDataTypeForUiType(e,t){const n={};switch(e.uidt){case"ID":{const e="AI"===t,a="AG"===t;n.dt=a?"character varying":"int4",n.pk=!0,n.un=e,n.ai=e,n.rqd=!0,n.meta=a?{ag:"nc"}:void 0}break;case"ForeignKey":case"Collaborator":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:n.dt="character varying";break;case"SingleLineText":case"LongText":case"Attachment":case"GeoData":case"MultiSelect":case"SingleSelect":n.dt="text";break;case"Checkbox":n.dt="bool",n.cdf="false";break;case"Date":n.dt="date";break;case"Year":case"AutoNumber":n.dt="int";break;case"Time":n.dt="time";break;case"PhoneNumber":n.dt="character varying",n.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":n.dt="character varying",n.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":n.dt="text",n.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Number":n.dt="bigint";break;case"Decimal":case"Duration":n.dt="decimal";break;case"Currency":n.dt="decimal",n.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":n.dt="double precision";break;case"Rating":n.dt="smallint",n.cdf="0";break;case"Count":n.dt="int8";break;case"DateTime":case"CreatedTime":case"LastModifiedTime":n.dt="timestamp";break;case"JSON":n.dt="json"}return n}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["char","character","character varying"]:"AI"===t?["int","integer","bigint","bigserial","int2","int4","int8","serial","serial2","serial8","smallint","smallserial"]:v;case"ForeignKey":default:return v;case"SingleLineText":case"LongText":case"Collaborator":case"GeoData":return["text","character varying","char","character"];case"Attachment":return["json","text","char","character","character varying"];case"JSON":return["json","jsonb","text"];case"Checkbox":return["bit","bool","int2","int4","int8","boolean","smallint","int","integer","bigint","bigserial","char","int4range","int8range","serial","serial2","serial8"];case"MultiSelect":case"SingleSelect":return["text"];case"Year":return["int"];case"Time":return["time","time without time zone","timestamp","timestamp without time zone","timestamptz","timestamp with time zone","timetz","time with time zone"];case"PhoneNumber":case"Email":case"Rollup":case"Lookup":case"User":case"CreatedBy":case"LastModifiedBy":case"Barcode":return["character varying"];case"URL":case"Formula":case"Button":return["text","character varying"];case"Number":case"Percent":case"Duration":case"Rating":return["int","integer","bigint","bigserial","int2","int4","int8","serial","serial2","serial8","double precision","float4","float8","smallint","smallserial","numeric"];case"Decimal":return["double precision","float4","float8","numeric"];case"Currency":return["int","integer","bigint","bigserial","int2","int4","int8","serial","serial2","serial8","double precision","money","float4","float8","numeric"];case"Count":case"AutoNumber":return["int","integer","bigint","bigserial","int2","int4","int8","serial","serial2","serial8","smallint","smallserial"];case"Date":return["date","timestamp","timestamp without time zone","timestamptz","timestamp with time zone"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["timestamp","timestamp without time zone","timestamptz","timestamp with time zone"];case"Geometry":return["polygon","point","circle","box","line","lseg","path","circle"]}}static getUnsupportedFnList(){return[]}static getCurrentDateDefault(e){return e.uidt===He.DateTime||e.uidt===He.Date?"NOW()":null}static isEqual(e,t){if((null==e?void 0:e.toLowerCase())===(null==t?void 0:t.toLowerCase()))return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}const E=["bigint","binary","bit","char","date","datetime","datetime2","datetimeoffset","decimal","float","geography","geometry","heirarchyid","image","int","money","nchar","ntext","numeric","nvarchar","real","json","smalldatetime","smallint","smallmoney","sql_variant","sysname","text","time","timestamp","tinyint","uniqueidentifier","varbinary","xml","varchar"];class x{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"int",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!0,cdf:null,clen:null,np:null,ns:0,dtxp:"",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"datetime",dtx:"specificType",ct:"datetime",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"datetime",dtx:"specificType",ct:"datetime",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,au:!0,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:He.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:He.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){switch(e){case"decimal":return 10;case"varchar":return 255;default:return""}}static getDefaultLengthIsDisabled(e){switch(e){case"nvarchar":case"numeric":case"decimal":case"varchar":return!1;default:return!0}}static getDefaultValueForDatatype(e){switch(e){case"bigint":case"binary":case"bit":case"char":case"date":case"datetime":case"datetime2":case"datetimeoffset":case"decimal":case"float":case"geography":case"geometry":case"heirarchyid":case"image":case"int":case"money":case"nchar":case"ntext":case"numeric":case"nvarchar":case"real":case"json":case"smalldatetime":case"smallint":case"smallmoney":case"sql_variant":case"sysname":case"text":case"time":case"timestamp":case"tinyint":case"uniqueidentifier":case"varbinary":case"xml":case"varchar":return"eg: ";default:return""}}static getDefaultScaleForDatatype(e){switch(e){case"decimal":case"numeric":return"2";default:return""}}static colPropAIDisabled(e,t){if("int4"===e.dt||"integer"===e.dt||"bigint"===e.dt||"smallint"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static showScale(e){return"decimal"===e.dt||"numeric"===e.dt}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return"_evolutions"!==e.tn||"nc_evolutions"!==e.tn}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2,e.au&&(e.cdf="GETDATE()")}static colPropAuDisabled(e){if(1!==e.altered)return!0;switch(e.dt){case"date":case"datetime":case"datetime2":case"datetimeoffset":case"time":case"timestamp":return!1;default:return!0}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.toLowerCase()){case"bigint":case"smallint":case"bit":case"tinyint":case"int":return"integer";case"binary":case"char":case"geography":case"geometry":case"heirarchyid":case"image":case"money":case"nchar":case"nvarchar":case"smallmoney":case"sql_variant":case"sysname":case"uniqueidentifier":case"varbinary":case"xml":case"varchar":return"string";case"date":return"date";case"datetime":case"datetime2":case"smalldatetime":case"datetimeoffset":return"datetime";case"decimal":case"float":case"numeric":case"real":return"float";case"ntext":case"text":return"text";case"json":return"json";case"time":return"time";case"timestamp":return"timestamp"}return"string"}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"CreatedTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getDataTypeForUiType(e,t){const n={};switch(e.uidt){case"ID":{const e="AI"===t,a="AG"===t;n.dt=a?"varchar":"int",n.pk=!0,n.un=e,n.ai=e,n.rqd=!0,n.meta=a?{ag:"nc"}:void 0}break;case"ForeignKey":case"Collaborator":case"GeoData":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:n.dt="varchar";break;case"SingleLineText":case"LongText":case"Attachment":case"MultiSelect":case"SingleSelect":n.dt="text";break;case"Checkbox":n.dt="tinyint",n.dtxp=1,n.cdf="0";break;case"Date":n.dt="date";break;case"Year":case"Number":case"Count":case"AutoNumber":n.dt="int";break;case"Time":n.dt="time";break;case"PhoneNumber":n.dt="varchar",n.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":n.dt="varchar",n.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":n.dt="text",n.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Decimal":case"Duration":n.dt="decimal";break;case"Currency":n.dt="decimal",n.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":n.dt="double";break;case"Rating":n.dt="int",n.cdf="0";break;case"DateTime":n.dt="datetimeoffset";break;case"CreatedTime":case"LastModifiedTime":n.dt="datetime"}return n}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["char","ntext","text","varchar","nvarchar"]:"AI"===t?["int","bigint","bit","smallint","tinyint"]:E;case"ForeignKey":default:return E;case"SingleLineText":case"LongText":case"Attachment":case"Collaborator":case"GeoData":return["text","varchar","nvarchar","char","ntext"];case"JSON":case"MultiSelect":case"SingleSelect":return["text","ntext"];case"Checkbox":return["bigint","bit","int","tinyint"];case"Year":return["int"];case"Time":return["time"];case"PhoneNumber":case"Email":case"Rollup":case"Lookup":case"Barcode":return["varchar"];case"URL":return["text","varchar"];case"Number":case"Percent":case"Duration":case"Rating":return["int","bigint","bit","decimal","float","numeric","real","smallint","tinyint"];case"Decimal":return["decimal","float"];case"Currency":return["int","bigint","bit","decimal","float","numeric","real","smallint","tinyint","money"];case"Formula":case"Button":return["text","ntext","varchar","nvarchar"];case"Count":case"AutoNumber":return["int","bigint","smallint","tinyint"];case"Date":return["date"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["datetimeoffset","datetime2"];case"Geometry":return["geometry"]}}static getUnsupportedFnList(){return["XOR","REGEX_MATCH","REGEX_EXTRACT","REGEX_REPLACE","VALUE","COUNTA","COUNT","ROUNDDOWN","ROUNDUP","DATESTR"]}static getCurrentDateDefault(e){return null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}class T{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"integer",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}]}static getNewColumn(e){return{column_name:"title"+e,dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){return""}static getDefaultLengthIsDisabled(e){switch(e){case"integer":return!0;case"bfile":case"binary rowid":case"binary double":case"binary_float":case"blob":case"canoical":case"cfile":case"char":case"clob":case"content pointer":case"contigous array":case"date":case"decimal":case"double precision":case"float":case"interval day to second":case"interval year to month":case"lob pointer":case"long":case"long raw":case"named collection":case"named object":case"nchar":case"nclob":case"number":case"nvarchar2":case"octet":case"oid":case"pointer":case"raw":case"real":case"ref":case"ref cursor":case"rowid":case"signed binary integer":case"smallint":case"table":case"time":case"time with tz":case"timestamp":case"timestamp with local time zone":case"timestamp with local tz":case"timestamp with timezone":case"timestamp with tz":case"unsigned binary integer":case"urowid":case"varchar":case"varchar2":case"varray":case"varying array":return!1}}static getDefaultValueForDatatype(e){return""}static getDefaultScaleForDatatype(e){switch(e){case"integer":case"bfile":case"binary rowid":case"binary double":case"binary_float":case"blob":case"canoical":case"cfile":case"char":case"clob":case"content pointer":case"contigous array":case"date":case"decimal":case"double precision":case"float":case"interval day to second":case"interval year to month":case"lob pointer":case"long":case"long raw":case"named collection":case"named object":case"nchar":case"nclob":case"number":case"nvarchar2":case"octet":case"oid":case"pointer":case"raw":case"real":case"ref":case"ref cursor":case"rowid":case"signed binary integer":case"smallint":case"table":case"time":case"time with tz":case"timestamp":case"timestamp with local time zone":case"timestamp with local tz":case"timestamp with timezone":case"timestamp with tz":case"unsigned binary integer":case"urowid":case"varchar":case"varchar2":case"varray":case"varying array":return" "}}static colPropAIDisabled(e,t){if("int4"===e.dt||"integer"===e.dt||"bigint"===e.dt||"smallint"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static showScale(e){return!1}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return"_evolutions"!==e.tn||"nc_evolutions"!==e.tn}static extractFunctionName(e){const t=e.match(/^\s*CREATE\s+(?:OR\s+REPLACE\s*)?\s*FUNCTION\s+(?:[\w\d_]+\.)?([\w_\d]+)/i);return t&&t[1]}static extractProcedureName(e){const t=e.match(/^\s*CREATE\s+(?:OR\s+REPLACE\s*)?\s*PROCEDURE\s+(?:[\w\d_]+\.)?([\w_\d]+)/i);return t&&t[1]}static splitQueries(e){return e.match(/\b("[^"]*;[^"]*"|'[^']*;[^']*'|[^;])*;/g)}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2}sanitiseQuery(e){let t=e.query.trim().split(";");if(t[0].startsWith("Select"))t=t[0]+` LIMIT 0,${e.limit?e.limit:100};`;else if(t[0].startsWith("select"))t=t[0]+` LIMIT 0,${e.limit?e.limit:100};`;else{if(!t[0].startsWith("SELECT"))return e.query;t=t[0]+` LIMIT 0,${e.limit?e.limit:100};`}return t}getColumnsFromJson(e,t){const n=[];try{if("object"==typeof e&&!Array.isArray(e)){const a=Object.keys(e);for(let r=0;r<a.length;++r)switch(typeof e[a[r]]){case"number":Number.isInteger(e[a[r]])?n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"int",np:10,ns:0,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:"11",dtxs:0,altered:1}):n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"float",np:10,ns:2,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:"11",dtxs:2,altered:1});break;case"string":e[a[r]].length<=255?n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"varchar",np:45,ns:0,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:"45",dtxs:0,altered:1}):n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"text",np:null,ns:0,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:null,dtxs:0,altered:1});break;case"boolean":n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"boolean",np:3,ns:0,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:"1",dtxs:0,altered:1});break;case"object":n.push({dp:null,tn:t,column_name:a[r],cno:a[r],dt:"json",np:3,ns:0,clen:null,cop:1,pk:!1,nrqd:!1,rqd:!1,un:!1,ct:"int(11) unsigned",ai:!1,unique:!1,cdf:null,cc:"",csn:null,dtx:"specificType",dtxp:null,dtxs:0,altered:1})}}}catch(e){console.log("Error in getColumnsFromJson",e)}return n}static colPropAuDisabled(e){return!0}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.toLowerCase()){case"integer":case"long":case"smallint":return"integer";case"bfile":case"binary rowid":case"binary double":case"binary_float":case"canoical":case"cfile":case"char":case"clob":case"content pointer":case"contigous array":case"interval day to second":case"interval year to month":case"lob pointer":case"long raw":case"named collection":case"named object":case"nchar":case"nclob":case"nvarchar2":case"octet":case"oid":case"pointer":case"raw":case"ref":case"ref cursor":case"rowid":case"signed binary integer":case"table":case"unsigned binary integer":case"urowid":case"varchar":case"varchar2":case"varray":case"varying array":return"string";case"blob":return"blob";case"date":return"date";case"decimal":case"double precision":case"float":case"real":case"number":return"float";case"time":case"time with tz":return"time";case"timestamp":case"timestamp with local time zone":case"timestamp with local tz":case"timestamp with timezone":case"timestamp with tz":return"datetime"}}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"CreatedTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getDataTypeForUiType(e,t){const n={};switch(e.uidt){case"ID":{const e="AI"===t,a="AG"===t;n.dt=a?"varchar":"integer",n.pk=!0,n.un=e,n.ai=e,n.rqd=!0,n.meta=a?{ag:"nc"}:void 0}break;case"ForeignKey":case"GeoData":case"Collaborator":case"Date":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:n.dt="varchar";break;case"SingleLineText":case"LongText":case"Attachment":n.dt="clob";break;case"Checkbox":n.dt="tinyint",n.dtxp=1,n.cdf="0";break;case"MultiSelect":case"SingleSelect":n.dt="varchar2";break;case"Year":n.dt="year";break;case"Time":n.dt="time";break;case"PhoneNumber":n.dt="varchar",n.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":n.dt="varchar",n.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":n.dt="clob",n.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Number":case"Duration":case"Count":case"AutoNumber":n.dt="integer";break;case"Decimal":n.dt="decimal";break;case"Currency":n.dt="decimal",n.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":n.dt="double";break;case"Rating":n.dt="integer",n.cdf="0";break;case"DateTime":case"CreatedTime":case"LastModifiedTime":n.dt="timestamp"}return n}static getUnsupportedFnList(){return["XOR","REGEX_MATCH","REGEX_EXTRACT","REGEX_REPLACE","VALUE","COUNTA","COUNT","ROUNDDOWN","ROUNDUP","DATESTR"]}static getCurrentDateDefault(e){return null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}const O=["int","integer","tinyint","smallint","mediumint","bigint","int2","int8","character","blob sub_type text","blob","real","double","double precision","float","numeric","boolean","date","datetime","text","varchar","timestamp"];class D{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"integer",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!0,cdf:null,clen:null,np:null,ns:0,dtxp:"",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"varchar",dtx:"specificType",ct:"varchar",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"datetime",dtx:"specificType",ct:"datetime",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"datetime",dtx:"specificType",ct:"datetime",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"varchar",dtx:"specificType",ct:"varchar",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"varchar",dtx:"specificType",ct:"varchar",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"varchar",dtx:"specificType",ct:"varchar",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){return""}static getDefaultLengthIsDisabled(e){switch(e){case"integer":case"blob":case"real":case"numeric":return!0;case"text":return!1}}static getDefaultValueForDatatype(e){switch(e){case"integer":case"numeric":case"real":return"eg : 10";case"text":return"eg : hey";case"blob":return"eg : 100"}}static getDefaultScaleForDatatype(e){switch(e){case"integer":case"text":case"numeric":case"real":case"blob":return" "}}static colPropAIDisabled(e,t){if("integer"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static showScale(e){return!1}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return!0}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2}static colPropAuDisabled(e){if(1!==e.altered)return!0;switch(e.dt){case"date":case"datetime":case"timestamp":case"time":return!1;default:return!0}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.replace(/\(\d+\)$/).toLowerCase()){case"date":return"date";case"datetime":case"timestamp":return"datetime";case"integer":case"int":case"tinyint":case"smallint":case"mediumint":case"bigint":case"int2":case"int8":return"integer";case"text":return"text";case"boolean":return"boolean";case"real":case"double":case"double precision":case"float":case"decimal":case"numeric":return"float";case"blob sub_type text":case"blob":return"blob";case"character":case"varchar":return"string"}return"string"}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"CreatedTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getDataTypeForUiType(e,t){const n={};switch(e.uidt){case"ID":{const e="AI"===t,a="AG"===t;n.dt=a?"varchar":"integer",n.pk=!0,n.un=e,n.ai=e,n.rqd=!0,n.meta=a?{ag:"nc"}:void 0}break;case"ForeignKey":case"SingleLineText":case"Collaborator":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:n.dt="varchar";break;case"LongText":case"Attachment":case"GeoData":case"MultiSelect":case"SingleSelect":case"JSON":n.dt="text";break;case"Checkbox":n.dt="boolean",n.cdf="0";break;case"Date":n.dt="date";break;case"Year":n.dt="year";break;case"Time":n.dt="time";break;case"PhoneNumber":n.dt="varchar",n.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":n.dt="varchar",n.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":n.dt="varchar",n.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Number":case"Count":case"AutoNumber":n.dt="integer";break;case"Decimal":case"Duration":n.dt="decimal";break;case"Currency":n.dt="double precision",n.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":n.dt="double";break;case"Rating":n.dt="integer",n.cdf="0";break;case"DateTime":case"CreatedTime":case"LastModifiedTime":n.dt="datetime"}return n}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["character","text","varchar"]:"AI"===t?["int","integer","tinyint","smallint","mediumint","bigint","int2","int8"]:O;case"ForeignKey":case"Button":default:return O;case"SingleLineText":case"LongText":case"Attachment":case"Collaborator":case"GeoData":return["character","text","varchar"];case"Checkbox":return["int","integer","tinyint","smallint","mediumint","bigint","int2","int8","boolean"];case"MultiSelect":case"SingleSelect":case"Formula":case"Button":return["text","varchar"];case"Year":case"Time":case"Duration":case"Count":case"AutoNumber":return["int","integer","tinyint","smallint","mediumint","bigint","int2","int8"];case"PhoneNumber":case"Email":case"URL":return["varchar","text"];case"Number":case"Rating":return["int","integer","tinyint","smallint","mediumint","bigint","int2","int8","numeric","real","double","double precision","float"];case"Decimal":return["real","double","double precision","float","numeric"];case"Currency":case"Percent":return["real","double","double precision","float","int","integer","tinyint","smallint","mediumint","bigint","int2","int8","numeric"];case"Rollup":case"Lookup":case"Barcode":return["varchar"];case"Date":return["date","varchar"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["datetime","timestamp"];case"Geometry":case"JSON":return["text"]}}static getUnsupportedFnList(){return["XOR","REGEX_MATCH","REGEX_EXTRACT","REGEX_REPLACE","VALUE","COUNTA","COUNT","DATESTR","DAY","MONTH","HOUR"]}static getCurrentDateDefault(e){return null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}const w=["NUMBER","DECIMAL","NUMERIC","INT","INTEGER","BIGINT","SMALLINT","TINYINT","BYTEINT","FLOAT","FLOAT4","FLOAT8","DOUBLE","DOUBLE PRECISION","REAL","VARCHAR","CHAR","CHARACTER","STRING","TEXT","BINARY","VARBINARY","BOOLEAN","DATE","DATETIME","TIME","TIMESTAMP","TIMESTAMP_LTZ","TIMESTAMP_NTZ","TIMESTAMP_TZ","VARIANT","OBJECT","ARRAY","GEOGRAPHY"];class S{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"int",dtx:"integer",ct:"int(11)",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!0,cdf:null,clen:null,np:11,ns:0,dtxp:"11",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"timestamp",dtx:"specificType",ct:"timestamp",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:He.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"varchar",dtx:"specificType",ct:"varchar(45)",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"45",dtxs:"",altered:1,uidt:He.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"TEXT",dtx:"specificType",ct:null,nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){switch(e){case"VARCHAR":case"CHAR":case"CHARACTER":case"STRING":return 255;case"NUMBER":case"DECIMAL":case"NUMERIC":case"INT":case"INTEGER":case"BIGINT":case"SMALLINT":case"TINYINT":case"BYTEINT":case"FLOAT":case"FLOAT4":case"FLOAT8":case"DOUBLE":case"DOUBLE PRECISION":case"REAL":return 38}}static getDefaultLengthIsDisabled(e){switch(e){case"VARCHAR":case"CHAR":case"CHARACTER":case"STRING":case"NUMBER":case"DECIMAL":case"NUMERIC":case"INT":case"INTEGER":case"BIGINT":case"SMALLINT":case"TINYINT":case"BYTEINT":case"FLOAT":case"FLOAT4":case"FLOAT8":case"DOUBLE":case"DOUBLE PRECISION":case"REAL":return!1;case"TEXT":case"BINARY":case"VARBINARY":case"BOOLEAN":case"DATE":case"DATETIME":case"TIME":case"TIMESTAMP":case"TIMESTAMP_LTZ":case"TIMESTAMP_NTZ":case"TIMESTAMP_TZ":case"VARIANT":case"OBJECT":case"ARRAY":case"GEOGRAPHY":return!0}}static getDefaultValueForDatatype(e){return"eg: "}static getDefaultScaleForDatatype(e){switch(e){case"NUMBER":case"DECIMAL":case"NUMERIC":case"INT":case"INTEGER":case"BIGINT":case"SMALLINT":case"TINYINT":case"BYTEINT":case"FLOAT":case"FLOAT4":case"FLOAT8":case"DOUBLE":case"DOUBLE PRECISION":case"REAL":case"VARCHAR":case"CHAR":case"CHARACTER":case"STRING":case"TEXT":case"BINARY":case"VARBINARY":case"BOOLEAN":case"DATE":case"DATETIME":case"TIME":case"TIMESTAMP":case"TIMESTAMP_LTZ":case"TIMESTAMP_NTZ":case"TIMESTAMP_TZ":case"VARIANT":case"OBJECT":case"ARRAY":case"GEOGRAPHY":return" "}}static colPropAIDisabled(e,t){if("NUMBER"===e.dt||"DECIMAL"===e.dt||"NUMERIC"===e.dt||"INT"===e.dt||"INTEGER"===e.dt||"BIGINT"===e.dt||"SMALLINT"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"NUMBER"!==e.dt&&"DECIMAL"!==e.dt&&"NUMERIC"!==e.dt&&"INT"!==e.dt&&"INTEGER"!==e.dt&&"BIGINT"!==e.dt&&"SMALLINT"!==e.dt||(e.altered=e.altered||2)}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2,e.au&&(e.cdf="current_timestamp()")}static showScale(e){return!1}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"INT"!==e[t].dt&&"BIGINT"!==e[t].dt&&"SMALLINT"!==e[t].dt&&"TINYINT"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return"_evolutions"!==e.tn||"nc_evolutions"!==e.tn}static colPropAuDisabled(e){if(1!==e.altered)return!0;switch(e.dt.toUpperCase()){case"DATE":case"DATETIME":case"TIME":case"TIMESTAMP":case"TIMESTAMP_LTZ":case"TIMESTAMP_NTZ":case"TIMESTAMP_TZ":return!1;default:return!0}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.toUpperCase()){case"NUMBER":case"DECIMAL":case"NUMERIC":case"INT":case"INTEGER":case"BIGINT":case"SMALLINT":case"TINYINT":case"BYTEINT":return"integer";case"FLOAT":case"FLOAT4":case"FLOAT8":case"DOUBLE":case"DOUBLE PRECISION":case"REAL":return"float";case"VARCHAR":case"CHAR":case"CHARACTER":case"STRING":case"BINARY":case"VARBINARY":case"DATETIME":case"TIME":case"TIMESTAMP":case"TIMESTAMP_LTZ":case"TIMESTAMP_NTZ":case"TIMESTAMP_TZ":case"VARIANT":case"GEOGRAPHY":default:return"string";case"TEXT":return e.dtxp<1024?"string":"text";case"BOOLEAN":return"boolean";case"DATE":return"date";case"OBJECT":return"json";case"ARRAY":return"enum"}}static getUIType(e){switch(this.getAbstractType(e)){case"NUMBER":case"DECIMAL":case"NUMERIC":case"INT":case"INTEGER":case"BIGINT":case"SMALLINT":case"TINYINT":case"BYTEINT":return"Number";case"FLOAT":case"FLOAT4":case"FLOAT8":case"DOUBLE":case"DOUBLE PRECISION":case"REAL":return"Decimal";case"VARCHAR":case"CHAR":case"CHARACTER":case"STRING":return"SingleLineText";case"TEXT":return"LongText";case"BOOLEAN":return"Checkbox";case"DATE":return"Date";case"DATETIME":return"DateTime"}}static getDataTypeForUiType(e,t){const n={};switch(e.uidt){case"ID":{const e="AI"===t,a="AG"===t;n.dt=a?"VARCHAR":"int4",n.pk=!0,n.un=e,n.ai=e,n.rqd=!0,n.meta=a?{ag:"nc"}:void 0}break;case"ForeignKey":case"Collaborator":case"Time":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":default:n.dt="VARCHAR";break;case"SingleLineText":case"LongText":case"Attachment":case"GeoData":case"MultiSelect":case"SingleSelect":case"JSON":n.dt="TEXT";break;case"Checkbox":n.dt="BOOLEAN",n.cdf="0";break;case"Date":n.dt="DATE";break;case"Year":case"Count":case"AutoNumber":n.dt="INT";break;case"PhoneNumber":n.dt="VARCHAR",n.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":n.dt="VARCHAR",n.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":n.dt="TEXT",n.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Number":n.dt="BIGINT";break;case"Decimal":case"Duration":n.dt="DECIMAL";break;case"Currency":n.dt="DECIMAL",n.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":n.dt="DOUBLE PRECISION";break;case"Rating":n.dt="SMALLINT",n.cdf="0";break;case"DateTime":case"CreatedTime":case"LastModifiedTime":n.dt="TIMESTAMP"}return n}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["VARCHAR"]:"AI"===t?["NUMBER"]:w;case"ForeignKey":default:return w;case"SingleLineText":case"LongText":case"Collaborator":case"GeoData":return["TEXT","VARCHAR","CHARACTER","CHAR"];case"Attachment":return["TEXT","CHAR","CHARACTER","VARCHAR"];case"JSON":case"MultiSelect":case"SingleSelect":case"Geometry":return["TEXT"];case"Checkbox":return["BIT","BOOLEAN","TINYINT","INT","BIGINT"];case"Year":return["INT"];case"Time":return["TIMESTAMP","VARCHAR"];case"PhoneNumber":case"Email":case"Rollup":case"Lookup":case"User":case"CreatedBy":case"LastModifiedBy":case"Barcode":return["VARCHAR"];case"URL":case"Formula":case"Button":return["TEXT","VARCHAR"];case"Number":return["NUMBER","DECIMAL","NUMERIC","INT","INTEGER","BIGINT","SMALLINT","TINYINT","BYTEINT","FLOAT","FLOAT4","FLOAT8","DOUBLE","DOUBLE PRECISION","REAL"];case"Decimal":return["DOUBLE","DOUBLE PRECISION","FLOAT","FLOAT4","FLOAT8","NUMERIC"];case"Currency":case"Percent":case"Duration":case"Rating":return["NUMBER","DECIMAL","NUMERIC","INT","INTEGER","BIGINT","FLOAT","FLOAT4","FLOAT8","DOUBLE","DOUBLE PRECISION"];case"Count":case"AutoNumber":return["NUMBER","INT","INTEGER","BIGINT"];case"Date":return["DATE","TIMESTAMP"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["TIMESTAMP"]}}static getUnsupportedFnList(){return["XOR","REGEX_MATCH","REGEX_EXTRACT","REGEX_REPLACE","VALUE","COUNTA","COUNT","DATESTR"]}static getCurrentDateDefault(e){return null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}const A=["BIGINT","BINARY","BOOLEAN","DATE","DECIMAL","DOUBLE","FLOAT","INT","INTERVAL","VOID","SMALLINT","STRING","TIMESTAMP","TIMESTAMP_NTZ","TINYINT"];class C{static getNewTableColumns(){return[{column_name:"id",title:"Id",dt:"int",dtx:"int",ct:"int",nrqd:!1,rqd:!0,ck:!1,pk:!0,un:!1,ai:!0,cdf:null,clen:null,np:null,ns:0,dtxp:"",dtxs:"",altered:1,uidt:"ID",uip:"",uicn:""},{column_name:"title",title:"Title",dt:"string",dtx:"specificType",ct:"string",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""},{column_name:"created_at",title:"CreatedAt",dt:"TIMESTAMP",dtx:"specificType",ct:"TIMESTAMP",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.CreatedTime,uip:"",uicn:"",system:!0},{column_name:"updated_at",title:"UpdatedAt",dt:"TIMESTAMP",dtx:"specificType",ct:"TIMESTAMP",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.LastModifiedTime,uip:"",uicn:"",system:!0},{column_name:"created_by",title:"nc_created_by",dt:"string",dtx:"specificType",ct:"string",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.CreatedBy,uip:"",uicn:"",system:!0},{column_name:"updated_by",title:"nc_updated_by",dt:"string",dtx:"specificType",ct:"string",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,clen:45,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:He.LastModifiedBy,uip:"",uicn:"",system:!0}]}static getNewColumn(e){return{column_name:"title"+e,dt:"string",dtx:"specificType",ct:"string",nrqd:!0,rqd:!1,ck:!1,pk:!1,un:!1,ai:!1,cdf:null,clen:null,np:null,ns:null,dtxp:"",dtxs:"",altered:1,uidt:"SingleLineText",uip:"",uicn:""}}static getDefaultLengthForDatatype(e){return""}static getDefaultLengthIsDisabled(e){switch(e){case"decimal":return!0;case"text":return!1}}static getDefaultValueForDatatype(e){switch(e){case"integer":case"numeric":case"real":return"eg : 10";case"text":return"eg : hey";case"blob":return"eg : 100"}}static getDefaultScaleForDatatype(e){switch(e){case"integer":case"text":case"numeric":case"real":case"blob":return" "}}static colPropAIDisabled(e,t){if("integer"===e.dt){for(let n=0;n<t.length;++n)if(t[n].cn!==e.cn&&t[n].ai)return!0;return!1}return!0}static colPropUNDisabled(e){return!0}static onCheckboxChangeAI(e){console.log(e),"int"!==e.dt&&"bigint"!==e.dt&&"smallint"!==e.dt&&"tinyint"!==e.dt||(e.altered=e.altered||2)}static showScale(e){return!1}static removeUnsigned(e){for(let t=0;t<e.length;++t)1===e[t].altered&&"int"!==e[t].dt&&"bigint"!==e[t].dt&&"tinyint"!==e[t].dt&&"smallint"!==e[t].dt&&"mediumint"!==e[t].dt&&(e[t].un=!1,console.log(">> resetting unsigned value",e[t].cn)),console.log(e[t].cn)}static columnEditable(e){return!0}static onCheckboxChangeAU(e){console.log(e),e.altered=e.altered||2}static colPropAuDisabled(e){if(1!==e.altered)return!0;switch(e.dt){case"date":case"datetime":case"timestamp":case"time":return!1;default:return!0}}static getAbstractType(e){var t;switch(null===(t=e.dt)||void 0===t?void 0:t.replace(/\(\d+\)$/).toLowerCase()){case"bigint":case"tinyint":case"int":case"smallint":return"integer";case"decimal":case"double":case"float":return"float";case"boolean":return"boolean";case"timestamp":case"timestamp_ntz":return"datetime";case"date":return"date";case"string":return"string"}return"string"}static getUIType(e){switch(this.getAbstractType(e)){case"integer":return"Number";case"boolean":return"Checkbox";case"float":return"Decimal";case"date":return"Date";case"datetime":return"CreatedTime";case"time":return"Time";case"year":return"Year";case"string":return"SingleLineText";case"text":case"json":return"LongText";case"blob":return"Attachment";case"enum":return"SingleSelect";case"set":return"MultiSelect"}}static getDataTypeForUiType(e){const t={};switch(e.uidt){case"ID":t.dt="string",t.pk=!0,t.rqd=!0,t.meta={ag:"nc"};break;case"ForeignKey":case"SingleLineText":case"LongText":case"Attachment":case"GeoData":case"MultiSelect":case"SingleSelect":case"Collaborator":case"Time":case"Formula":case"Rollup":case"Lookup":case"Barcode":case"Button":case"JSON":default:t.dt="string";break;case"Checkbox":t.dt="boolean";break;case"Date":t.dt="date";break;case"Year":t.dt="number";break;case"PhoneNumber":t.dt="string",t.validate={func:["isMobilePhone"],args:[""],msg:["Validation failed : isMobilePhone"]};break;case"Email":t.dt="string",t.validate={func:["isEmail"],args:[""],msg:["Validation failed : isEmail"]};break;case"URL":t.dt="string",t.validate={func:["isURL"],args:[""],msg:["Validation failed : isURL"]};break;case"Number":case"Count":case"AutoNumber":t.dt="int";break;case"Decimal":case"Duration":t.dt="decimal";break;case"Currency":t.dt="double",t.validate={func:["isCurrency"],args:[""],msg:["Validation failed : isCurrency"]};break;case"Percent":t.dt="double";break;case"Rating":t.dt="int",t.cdf="0";break;case"DateTime":case"CreatedTime":case"LastModifiedTime":t.dt="datetime"}return t}static getDataTypeListForUiType(e,t){switch(e.uidt){case"ID":return"AG"===t?["character","text","varchar"]:"AI"===t?["int","integer","tinyint","smallint","mediumint","bigint","int2","int8"]:A;case"ForeignKey":default:return A;case"SingleLineText":case"LongText":case"Attachment":case"Collaborator":case"GeoData":case"MultiSelect":case"SingleSelect":case"Time":case"PhoneNumber":case"Email":case"URL":case"Formula":case"Button":case"Rollup":case"Lookup":case"Barcode":case"Geometry":case"JSON":return["string"];case"Checkbox":return["boolean"];case"Year":case"Number":case"Rating":case"Count":case"AutoNumber":return["int"];case"Decimal":return["decimal","float","double"];case"Currency":case"Percent":case"Duration":return["decimal"];case"Date":return["date"];case"DateTime":case"CreatedTime":case"LastModifiedTime":return["datetime"]}}static getUnsupportedFnList(){return["LOG","EXP","POWER","SQRT","XOR","REGEX_MATCH","REGEX_EXTRACT","REGEX_REPLACE","VALUE","COUNTA","COUNT","ROUNDDOWN","ROUNDUP","DATESTR","DAY","MONTH","HOUR"]}static getCurrentDateDefault(e){return null}static isEqual(e,t){if(e===t)return!0;const n=this.getAbstractType({dt:e}),a=this.getAbstractType({dt:t});return!(!n||n!==a||!["integer","float"].includes(n))}}class R{static create(e){if("mysql"===e.client||"mysql2"===e.client)return y;if("sqlite3"===e.client)return D;if("mssql"===e.client)return x;if("oracledb"===e.client)return T;if("pg"===e.client)return _;if("snowflake"===e.client)return S;if("databricks"===e.client)return C;throw new Error("Database not supported")}}const N=__webpack_require__(24548);var I=n.n(N);const M=__webpack_require__(6228);var L=n.n(M);const j=__webpack_require__(29573);var P=n.n(j);const k=__webpack_require__(88219);var F=n.n(k);const $=__webpack_require__(79311);var q=n.n($);const U=__webpack_require__(69086);var B=n.n(U);b().extend(F()),b().extend(I()),b().extend(L()),b().extend(P()),b().extend(q()),b().extend(B());const H=["YYYY-MM","YYYY MM"],G=["HH:mm","HH:mm:ss","HH:mm:ss.SSS"],W=["YYYY-MM-DD","YYYY/MM/DD","DD-MM-YYYY","MM-DD-YYYY","DD/MM/YYYY","MM/DD/YYYY","DD MM YYYY","MM DD YYYY","YYYY MM DD"],z=e=>H.includes(e);function Y(e){for(const t of W){if(b()(e,t,!0).isValid())return!0;for(const n of G)if(b()(e,`${t} ${n}`,!0).isValid())return!0}return!1}function V(e){for(const t of W)if(b()(e,t,!0).isValid())return t;return"YYYY/MM/DD"}function K(e){for(const t of W)for(const n of G){const a=`${t} ${n}`;if(b()(e,a,!0).isValid())return a}return"YYYY/MM/DD HH:mm"}function J(e,t){const n=b()(e);return n.isValid()?n.format("YYYY-MM-DD"):b()(e,t).format("YYYY-MM-DD")}function Q(e,t=`${W[0]} ${G[0]}`,n=!0){const a=n?b()(e).local():b()(e);return a.isValid()?a.format(t):n?b()(e,t).local().format(t):b()(e,t).format(t)}function X(e,t,n){return W.includes(t)&&W.includes(n)?b()(e,t).format(n):e}const Z=e=>{if(null!=e)return"string"!=typeof e?e:e.replace(/((?:-?(?:[1-9][0-9]*)?[0-9]{4})-(?:1[0-2]|0[1-9])-(?:3[01]|0[1-9]|[12][0-9])T(?:2[0-3]|[01][0-9]):(?:[0-5][0-9]):(?:[0-5][0-9])(?:\.[0-9]+)?(?:Z|[+-](?:2[0-3]|[01][0-9]):[0-5][0-9]))/g,((e,t)=>b()(t).format("YYYY-MM-DD HH:mm")))};function ee(e){return W.includes(e)}const te=e=>(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e)&&(e+="+00:00"),b()(e).fromNow()),ne=(e,t)=>{const n={[G[0]]:/^([01]\d|2[0-3]):[0-5]\d$/,[G[1]]:/^([01]\d|2[0-3]):[0-5]\d:[0-5]\d$/,[G[2]]:/^([01]\d|2[0-3]):[0-5]\d:[0-5]\d\.\d{3}$/};return!!n[t]&&n[t].test(e)};var ae=function(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))};const re={name:"curly",init(e){e.hooks.add("gobble-token",(function(t){if(123===this.code){const n=this.index;for(;this.index<this.expr.length;)if(++this.index,125===this.code){let a=this.expr.slice(n,++this.index);return a.startsWith("{{")&&this.expr.slice(n,this.index+1).endsWith("}")&&(a=this.expr.slice(n,++this.index)),t.node={type:e.IDENTIFIER,name:/^{{.*}}$/.test(a)?a.slice(2,-2):a.slice(1,-1),raw:a},t.node}this.throwError("Unclosed }")}}))}};function ie(e){for(const t of W){if(b()(e,t,!0).isValid())return!0;for(const n of["HH:mm","HH:mm:ss","HH:mm:ss.SSS"])if(b()(e,`${t} ${n}`,!0).isValid())return!0}return!1}function se(e,t){return ae(this,void 0,void 0,(function*(){const n=e=>ae(this,void 0,void 0,(function*(){if("CallExpression"===e.type)for(const t of e.arguments||[])yield n(t);else{if("Literal"===e.type)return;if("Identifier"===e.type){const n=e.name,a=t.find((e=>e.id===n||e.column_name===n||e.title===n));e.name="{"+a.id+"}"}else"BinaryExpression"===e.type&&(yield n(e.left),yield n(e.right))}}));f().plugins.register(re);const a=f()(e);return yield n(a),pe(a)}))}var oe,ce,ue;function le(e,t,n){const a=(e,n)=>{var r;if("CallExpression"===e.type){let t=0;for(const i of e.arguments||[])a(i,null===(r=null==n?void 0:n.arguments)||void 0===r?void 0:r[t++])}else{if("Literal"===e.type)return;if("Identifier"===e.type){const a=null==e?void 0:e.name,r=t.find((e=>e.id===a||e.column_name===a||e.title===a));e.name=(null==r?void 0:r.title)||(null==n?void 0:n.name)||(null==e?void 0:e.name)}else"BinaryExpression"===e.type&&(a(e.left,null==n?void 0:n.left),a(e.right,null==n?void 0:n.right))}};f().plugins.register(re);const r=f()(e),i=n&&f()(n);return a(r,i),pe(r)}function pe(e,t=!1){return"BinaryExpression"===e.type||"LogicalExpression"===e.type?"("+pe(e.left)+" "+e.operator+" "+pe(e.right)+")":"UnaryExpression"===e.type?e.operator+pe(e.argument):"MemberExpression"===e.type?pe(e.object)+"["+pe(e.property)+"]":"Identifier"===e.type?t?e.name:"{"+e.name+"}":"Literal"===e.type?"string"==typeof e.value?String.raw`"${n=e.raw.slice(1,-1),n.replace(/([^\\]|^)\\(?!\\)/g,"$1\\\\").replace(/([^\\]|^)"/g,'$1\\"').replace(/([^\\]|^)'/g,"$1\\'")}"`:""+e.value:"CallExpression"===e.type?pe(e.callee,!0)+"("+e.arguments.map((e=>pe(e))).join(", ")+")":"ArrayExpression"===e.type?"["+e.elements.map((e=>pe(e))).join(", ")+"]":"Compound"===e.type?e.body.map((e=>pe(e))).join(" "):"ConditionalExpression"===e.type?pe(e.test)+" ? "+pe(e.consequent)+" : "+pe(e.alternate):"";var n}!function(e){e.NOT_AVAILABLE="NOT_AVAILABLE",e.NOT_SUPPORTED="NOT_SUPPORTED",e.MIN_ARG="MIN_ARG",e.MAX_ARG="MAX_ARG",e.TYPE_MISMATCH="TYPE_MISMATCH",e.INVALID_ARG="INVALID_ARG",e.INVALID_ARG_TYPE="INVALID_ARG_TYPE",e.INVALID_ARG_VALUE="INVALID_ARG_VALUE",e.INVALID_ARG_COUNT="INVALID_ARG_COUNT",e.CIRCULAR_REFERENCE="CIRCULAR_REFERENCE",e.INVALID_FUNCTION_NAME="INVALID_FUNCTION_NAME",e.INVALID_COLUMN="INVALID_COLUMN"}(oe||(oe={})),function(e){e.NUMERIC="numeric",e.STRING="string",e.DATE="date",e.LOGICAL="logical",e.COND_EXP="conditional_expression",e.NULL="null",e.BOOLEAN="boolean",e.UNKNOWN="unknown"}(ce||(ce={})),function(e){e.COMPOUND="Compound",e.IDENTIFIER="Identifier",e.MEMBER_EXP="MemberExpression",e.LITERAL="Literal",e.THIS_EXP="ThisExpression",e.CALL_EXP="CallExpression",e.UNARY_EXP="UnaryExpression",e.BINARY_EXP="BinaryExpression",e.ARRAY_EXP="ArrayExpression"}(ue||(ue={}));const de={AVG:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#avg",validation:{args:{min:1,type:ce.NUMERIC}},description:"Average of input parameters",syntax:"AVG(value1, [value2, ...])",examples:["AVG(10, 5) => 7.5","AVG({column1}, {column2})","AVG({column1}, {column2}, {column3})"],returnType:ce.NUMERIC},ADD:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#add",validation:{args:{min:1,type:ce.NUMERIC}},description:"Sum of input parameters",syntax:"ADD(value1, [value2, ...])",examples:["ADD(5, 5) => 10","ADD({column1}, {column2})","ADD({column1}, {column2}, {column3})"],returnType:ce.NUMERIC},DATEADD:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#dateadd",validation:{args:{rqd:3,type:ce.DATE},custom:(e,t)=>{if(t.arguments[0].type===ue.LITERAL&&!ie(t.arguments[0].value))throw new me(oe.TYPE_MISMATCH,{key:"msg.formula.firstParamDateAddHaveDate"},"First parameter of DATEADD should be a date");if(t.arguments[1].type===ue.LITERAL&&"number"!=typeof t.arguments[1].value)throw new me(oe.TYPE_MISMATCH,{key:"msg.formula.secondParamDateAddHaveNumber"},"Second parameter of DATEADD should be a number");if(t.arguments[2].type===ue.LITERAL&&!["day","week","month","year"].includes(t.arguments[2].value))throw new me(oe.TYPE_MISMATCH,{key:"msg.formula.thirdParamDateAddHaveDate"},"Third parameter of DATEADD should be one of 'day', 'week', 'month', 'year'")}},description:'Adds "count" units to Datetime.',syntax:'DATEADD(date | datetime, count, ["day" | "week" | "month" | "year"])',examples:['DATEADD({column1}, 2, "day")','DATEADD({column1}, -2, "day")','DATEADD({column1}, 2, "week")','DATEADD({column1}, -2, "week")','DATEADD({column1}, 2, "month")','DATEADD({column1}, -2, "month")','DATEADD({column1}, 2, "year")','DATEADD({column1}, -2, "year")'],returnType:ce.DATE},DATESTR:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#datestr",validation:{args:{rqd:1}},syntax:"DATESTR(date | datetime)",description:'Formats input field into a string in "YYYY-MM-DD" format',examples:["DATESTR({column1})"],returnType:ce.STRING},DAY:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#day",validation:{args:{rqd:1}},syntax:"DAY(date | datetime)",description:"Extract day from a date field (1-31)",examples:["DAY({column1})"],returnType:ce.STRING},MONTH:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#month",validation:{args:{rqd:1}},syntax:"MONTH(date | datetime)",description:"Extract month from a date field (1-12)",examples:["MONTH({column1})"],returnType:ce.STRING},HOUR:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#hour",validation:{args:{rqd:1}},syntax:"DAY(time | datetime)",description:"Extract hour from a time field (0-23)",examples:["HOUR({column1})"],returnType:ce.STRING},DATETIME_DIFF:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#datetime_diff",validation:{args:{min:2,max:3,type:ce.DATE},custom:(e,t)=>{if(t.arguments[0].type===ue.LITERAL&&!ie(t.arguments[0].value))throw new me(oe.TYPE_MISMATCH,{key:"msg.formula.firstParamDateDiffHaveDate"},"First parameter of DATETIME_DIFF should be a date");if(t.arguments[1].type===ue.LITERAL&&!ie(t.arguments[1].value))throw new me(oe.TYPE_MISMATCH,{key:"msg.formula.secondParamDateDiffHaveDate"},"Second parameter of DATETIME_DIFF should be a date");if(t.arguments[2]&&t.arguments[2].type===ue.LITERAL&&!["milliseconds","ms","seconds","s","minutes","m","hours","h","days","d","weeks","w","months","M","quarters","Q","years","y"].includes(t.arguments[2].value))throw new me(oe.TYPE_MISMATCH,{key:"msg.formula.thirdParamDateDiffHaveDate"},"Third parameter of DATETIME_DIFF should be one of 'milliseconds', 'ms', 'seconds', 's', 'minutes', 'm', 'hours', 'h', 'days', 'd', 'weeks', 'w', 'months', 'M', 'quarters', 'Q', 'years', 'y'")}},description:"Calculate the difference of two given date / datetime fields in specified units.",syntax:'DATETIME_DIFF(date | datetime, date | datetime, ["milliseconds" | "ms" | "seconds" | "s" | "minutes" | "m" | "hours" | "h" | "days" | "d" | "weeks" | "w" | "months" | "M" | "quarters" | "Q" | "years" | "y"])',examples:["DATEDIFF({column1}, {column2})",'DATEDIFF({column1}, {column2}, "seconds")','DATEDIFF({column1}, {column2}, "s")','DATEDIFF({column1}, {column2}, "years")','DATEDIFF({column1}, {column2}, "y")','DATEDIFF({column1}, {column2}, "minutes")','DATEDIFF({column1}, {column2}, "m")','DATEDIFF({column1}, {column2}, "days")','DATEDIFF({column1}, {column2}, "d")'],returnType:ce.NUMERIC},AND:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/conditional-expressions#and",validation:{args:{min:1}},description:"Result is TRUE if all conditions are met",syntax:"AND(expr1, [expr2, ...])",examples:["AND(5 > 2, 5 < 10) => 1","AND({column1} > 2, {column2} < 10)"],returnType:ce.COND_EXP},OR:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/conditional-expressions#or",validation:{args:{min:1}},description:"Result is TRUE if at least one condition is met",syntax:"OR(expr1, [expr2, ...])",examples:["OR(5 > 2, 5 < 10) => 1","OR({column1} > 2, {column2} < 10)"],returnType:ce.COND_EXP},CONCAT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#concat",validation:{args:{min:1}},description:"Concatenate input parameters into a single string",syntax:"CONCAT(str1, [str2, ...])",examples:['CONCAT("AA", "BB", "CC") => "AABBCC"',"CONCAT({column1}, {column2}, {column3})"],returnType:ce.STRING},TRIM:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#trim",validation:{args:{rqd:1,type:ce.STRING}},description:"Remove trailing and leading whitespaces from input parameter",syntax:"TRIM(str)",examples:['TRIM(" HELLO WORLD ") => "HELLO WORLD"',"TRIM({column1})"],returnType:ce.STRING},UPPER:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#upper",validation:{args:{rqd:1,type:ce.STRING}},description:"Converts the input parameter to an upper-case string.",syntax:"UPPER(str)",examples:['UPPER("nocodb") => "NOCODB"',"UPPER({column1})"],returnType:ce.STRING},LOWER:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#lower",validation:{args:{rqd:1,type:ce.STRING}},description:"Converts the input parameter to an lower-case string.",syntax:"LOWER(str)",examples:['LOWER("NOCODB") => "nocodb"',"LOWER({column1})"],returnType:ce.STRING},LEN:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#len",validation:{args:{rqd:1,type:ce.STRING}},description:"Calculate the character length of the input parameter.",syntax:"LEN(value)",examples:['LEN("NocoDB") => 6',"LEN({column1})"],returnType:ce.NUMERIC},MIN:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#min",validation:{args:{min:1,type:ce.NUMERIC}},description:"Find the minimum value among the input parameters.",syntax:"MIN(value1, [value2, ...])",examples:["MIN(1000, 2000) => 1000","MIN({column1}, {column2})"],returnType:ce.NUMERIC},MAX:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#max",validation:{args:{min:1,type:ce.NUMERIC}},description:"Find the maximum value among the input parameters.",syntax:"MAX(value1, [value2, ...])",examples:["MAX(1000, 2000) => 2000","MAX({column1}, {column2})"],returnType:ce.NUMERIC},CEILING:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#ceiling",validation:{args:{rqd:1,type:ce.NUMERIC}},description:"Rounds the input parameter to the next largest integer value.",syntax:"CEILING(value)",examples:["CEILING(1.01) => 2","CEILING({column1})"],returnType:ce.NUMERIC},FLOOR:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#floor",validation:{args:{rqd:1,type:ce.NUMERIC}},description:"Round down the input parameter to the nearest integer.",syntax:"FLOOR(value)",examples:["FLOOR(3.1415) => 3","FLOOR({column1})"],returnType:ce.NUMERIC},ROUND:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#round",validation:{args:{min:1,max:2,type:ce.NUMERIC}},description:"Rounds the number to a specified decimal places or the nearest integer if precision is not specified",syntax:"ROUND(value, precision), ROUND(value)",examples:["ROUND(3.1415) => 3","ROUND(3.1415, 2) => 3.14","ROUND({column1}, 3)"],returnType:ce.NUMERIC},MOD:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#mod",validation:{args:{rqd:2,type:ce.NUMERIC}},description:"Calculate the remainder resulting from integer division of input parameters.",syntax:"MOD(value1, value2)",examples:["MOD(1024, 1000) => 24","MOD({column}, 2)"],returnType:ce.NUMERIC},REPEAT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#repeat",validation:{args:{rqd:2},custom(e,t){var n,a;if(e[1]!==ce.NUMERIC)throw new me(oe.INVALID_ARG,{key:"msg.formula.typeIsExpected",type:"Numeric",calleeName:null===(a=null===(n=t.callee)||void 0===n?void 0:n.name)||void 0===a?void 0:a.toUpperCase(),position:2},"The REPEAT function requires a numeric as the parameter at position 2")}},description:"Concatenate the specified number of copies of the input parameter string.",syntax:"REPEAT(str, count)",examples:['REPEAT("A", 5) => "AAAAA"',"REPEAT({column}, 5)"],returnType:ce.STRING},LOG:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#log",validation:{args:{type:ce.NUMERIC}},description:"Compute the logarithm of the input parameter to the specified base (default = e).",syntax:"LOG([base], value)",examples:["LOG(2, 1024) => 10","LOG(2, {column1})"],returnType:ce.NUMERIC},EXP:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#exp",validation:{args:{type:ce.NUMERIC}},description:"Compute the exponential value of the input parameter (e raised to the power specified)",syntax:"EXP(power)",examples:["EXP(1) => 2.718281828459045","EXP({column1})"],returnType:ce.NUMERIC},POWER:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#power",validation:{args:{rqd:2,type:ce.NUMERIC}},description:"Compute base raised to the exponent power.",syntax:"POWER(base, exponent)",examples:["POWER(2, 10) => 1024","POWER({column1}, 10)"],returnType:ce.NUMERIC},SQRT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#sqrt",validation:{args:{rqd:1,type:ce.NUMERIC}},description:"Calculate the square root of the input parameter.",syntax:"SQRT(value)",examples:["SQRT(100) => 10","SQRT({column1})"],returnType:ce.NUMERIC},ABS:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#abs",validation:{args:{rqd:1,type:ce.NUMERIC}},description:"Obtain the absolute value of the input parameter.",syntax:"ABS(value)",examples:["ABS({column1})"],returnType:ce.NUMERIC},NOW:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#now",validation:{args:{rqd:0,type:ce.DATE}},description:"Retrieve the current time and day.",syntax:"NOW()",examples:["NOW() => 2022-05-19 17:20:43"],returnType:ce.DATE},REPLACE:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#replace",validation:{args:{rqd:3,type:ce.STRING}},description:'Replace all occurrences of "searchStr" with "replaceStr" in the given string.',syntax:"REPLACE(str, searchStr, replaceStr)",examples:['REPLACE("AABBCC", "AA", "BB") => "BBBBCC"',"REPLACE({column1}, {column2}, {column3})"],returnType:ce.STRING},SEARCH:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#search",validation:{args:{rqd:2,type:ce.STRING}},description:'Retrieve the index of the specified "searchStr" if found; otherwise, returns 0.',syntax:"SEARCH(str, searchStr)",examples:['SEARCH("HELLO WORLD", "WORLD") => 7','SEARCH({column1}, "abc")'],returnType:ce.NUMERIC},INT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#int",validation:{args:{rqd:1,type:ce.NUMERIC}},description:"Obtain the integer value of the input parameter",syntax:"INT(value)",examples:["INT(3.1415) => 3","INT({column1})"],returnType:ce.NUMERIC},RIGHT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#right",validation:{args:{rqd:2,type:[ce.STRING,ce.NUMERIC]}},description:"Retrieve the last n characters from the input string.",syntax:"RIGHT(str, n)",examples:['RIGHT("HELLO WORLD", 5) => WORLD',"RIGHT({column1}, 3)"],returnType:ce.STRING},LEFT:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#left",validation:{args:{rqd:2,type:[ce.STRING,ce.NUMERIC]}},description:"Retrieve the first n characters from the input string.",syntax:"LEFT(str, n)",examples:["LEFT({column1}, 2)",'LEFT("ABCD", 2) => "AB"'],returnType:ce.STRING},SUBSTR:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#substr",validation:{args:{min:2,max:3,type:[ce.STRING,ce.NUMERIC,ce.NUMERIC]}},description:'Extracts a substring of length "n" from the input string, starting from the specified position.',syntax:"\tSUBTR(str, position, [n])",examples:['SUBSTR("HELLO WORLD", 7) => WORLD','SUBSTR("HELLO WORLD", 7, 3) => WOR',"SUBSTR({column1}, 7, 5)"],returnType:ce.STRING},MID:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#mid",validation:{args:{rqd:3,type:[ce.STRING,ce.NUMERIC,ce.NUMERIC]}},description:"Extracts a substring; an alias for SUBSTR.",syntax:"MID(str, position, [count])",examples:['MID("NocoDB", 3, 2) => "co"',"MID({column1}, 3, 2)"],returnType:ce.STRING},IF:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/conditional-expressions#if",validation:{args:{min:2,max:3}},description:"Evaluate successCase if the expression is TRUE, else the failureCase.",syntax:"IF(expr, successCase, failureCase)",examples:['IF(5 > 1, "YES", "NO") => "YES"','IF({column} > 1, "YES", "NO")'],returnType:e=>{const t=new Set(e.slice(1).filter((e=>e!==ce.NULL)));return t.size>1||t.has(ce.STRING)?ce.STRING:t.has(ce.NUMERIC)?ce.NUMERIC:t.has(ce.BOOLEAN)?ce.BOOLEAN:t.has(ce.DATE)?ce.DATE:e[1]}},SWITCH:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/conditional-expressions#switch",validation:{args:{min:3},custom:(e,t)=>{}},description:"Evaluate case value based on expression output; if no match is found, evaluate default case.",syntax:"SWITCH(expr, [pattern, value, ..., default])",examples:['SWITCH(1, 1, "One", 2, "Two", "N/A") => "One""','SWITCH(2, 1, "One", 2, "Two", "N/A") => "Two"','SWITCH(3, 1, "One", 2, "Two", "N/A") => "N/A"','SWITCH({column1}, 1, "One", 2, "Two", "N/A")'],returnType:e=>{const t=new Set(e.slice(2).filter(((e,t)=>t%2==0)));return t.size>1||t.has(ce.STRING)?ce.STRING:t.has(ce.NUMERIC)?ce.NUMERIC:t.has(ce.BOOLEAN)?ce.BOOLEAN:t.has(ce.DATE)?ce.DATE:e[1]}},URL:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#url",validation:{args:{min:1,max:2,type:[ce.STRING,ce.STRING]}},description:"Verify and convert to a hyperlink if the input is a valid URL.",syntax:"URL(string, [label])",examples:['URL("https://github.com/nocodb/nocodb")',"URL({column1})",'URL("https://github.com/nocodb/nocodb", "NocoDB")',"URL({column1}, {column1})"],returnType:ce.STRING},URLENCODE:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#urlencode",validation:{args:{rqd:1,type:ce.STRING}},description:"Percent-encode the input parameter for use in URLs",syntax:"URLENCODE(str)",examples:['URLENCODE("Hello, world") => "Hello%2C%20world"',"URLENCODE({column1})"],returnType:ce.STRING},WEEKDAY:{docsUrl:"https://docs.nocodb.com/fields/field-types/formula/date-functions#weekday",validation:{args:{min:1,max:2,type:ce.NUMERIC},custom(e,t){if(t.arguments[0].type===ue.LITERAL&&!ie(t.arguments[0].value))throw new me(oe.TYPE_MISMATCH,{key:"msg.formula.firstParamWeekDayHaveDate"},"First parameter of WEEKDAY should be a date");if(t.arguments[1]&&t.arguments[1].type===ue.LITERAL){const e=t.arguments[1].value;if("string"!=typeof e||!["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].includes(e.toLowerCase()))throw new me(oe.TYPE_MISMATCH,{key:"msg.formula.secondParamWeekDayHaveDate"},"Second parameter of WEEKDAY should be day of week string")}}},description:"Retrieve the day of the week as an integer (0-6), starting from Monday by default.",syntax:"WEEKDAY(date, [startDayOfWeek])",examples:['WEEKDAY("2021-06-09")','WEEKDAY(NOW(), "sunday")'],returnType:ce.NUMERIC},TRUE:{validation:{args:{max:0}},description:"Returns 1",syntax:"TRUE()",examples:["TRUE()"],returnType:ce.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/logical-functions#true"},FALSE:{validation:{args:{max:0}},description:"Returns 0",syntax:"FALSE()",examples:["FALSE()"],returnType:ce.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/logical-functions#false"},REGEX_MATCH:{validation:{args:{rqd:2,type:ce.STRING}},description:"Verifies whether the input text matches a regular expression, returning 1 for a match and 0 otherwise.",syntax:"REGEX_MATCH(string, regex)",examples:['REGEX_MATCH({title}, "abc.*")'],returnType:ce.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#regex_match"},REGEX_EXTRACT:{validation:{args:{rqd:2,type:ce.STRING}},description:"Retrieve the first match of a regular expression in a string.",syntax:"REGEX_EXTRACT(string, regex)",examples:['REGEX_EXTRACT({title}, "abc.*")'],returnType:ce.STRING,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#regex_extract"},REGEX_REPLACE:{validation:{args:{rqd:3,type:ce.STRING}},description:"Replace all occurrences of a regular expression in a string with a specified replacement string.",syntax:"REGEX_MATCH(string, regex, replacement)",examples:['REGEX_EXTRACT({title}, "abc.*", "abcd")'],returnType:ce.STRING,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/string-functions#regex_replace"},BLANK:{validation:{args:{rqd:0}},description:"Yields a null value.",syntax:"BLANK()",examples:["BLANK()"],returnType:ce.NULL,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/logical-functions#blank"},XOR:{validation:{args:{min:1}},description:"Verifies whether an odd number of arguments are true, returning true if so, and false otherwise.",syntax:"XOR(expression, [exp2, ...])",examples:["XOR(TRUE(), FALSE(), TRUE())"],returnType:ce.BOOLEAN,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/logical-functions#xor"},EVEN:{validation:{args:{rqd:1,type:ce.NUMERIC}},description:"Rounds up the specified value to the nearest even integer that is greater than or equal to the specified value",syntax:"EVEN(value)",examples:["EVEN({column})"],returnType:ce.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#even"},ODD:{validation:{args:{rqd:1,type:ce.NUMERIC}},description:"Rounds up the specified value to the nearest odd integer that is greater than or equal to the specified value",syntax:"ODD(value)",examples:["ODD({column})"],returnType:ce.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#odd"},RECORD_ID:{validation:{args:{rqd:0}},description:"Retrieve the record ID of the current record.",syntax:"RECORD_ID()",examples:["RECORD_ID()"],returnType:()=>ce.STRING},COUNTA:{validation:{args:{min:1}},description:"Counts non-empty arguments",syntax:"COUNTA(value1, [value2, ...])",examples:["COUNTA({field1}, {field2})"],returnType:ce.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#counta"},COUNT:{validation:{args:{min:1}},description:"Counts numerical arguments",syntax:"COUNT(value1, [value2, ...])",examples:["COUNT({field1}, {field2})"],returnType:ce.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#count"},COUNTALL:{validation:{args:{min:1}},description:"Counts the number of arguments",syntax:"COUNTALL(value1, [value2, ...])",examples:["COUNTALL({field1}, {field2})"],returnType:ce.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#countall"},ROUNDDOWN:{validation:{args:{min:1,max:2,type:ce.NUMERIC}},description:'Rounds down the value after the decimal point to the specified number of decimal places given by "precision" (default is 0).',syntax:"ROUNDDOWN(value, [precision])",examples:["ROUNDDOWN({field1})","ROUNDDOWN({field1}, 2)"],returnType:ce.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#rounddown"},ROUNDUP:{validation:{args:{min:1,max:2,type:ce.NUMERIC}},description:'Rounds up the value after the decimal point to the specified number of decimal places given by "precision" (default is 0).',syntax:"ROUNDUP(value, [precision])",examples:["ROUNDUP({field1})","ROUNDUP({field1}, 2)"],returnType:ce.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#roundup"},VALUE:{validation:{args:{rqd:1}},description:"Extracts the numeric value from a string, handling % or - appropriately, and returns the resulting numeric value.",syntax:"VALUE(value)",examples:["VALUE({field})",'VALUE("abc10000%")','VALUE("$10000")'],returnType:ce.NUMERIC,docsUrl:"https://docs.nocodb.com/fields/field-types/formula/numeric-functions#value"}};class me extends Error{constructor(e,t,n="Formula Error"){super(n),this.type=e,this.extra=t}}function fe({col:e,columns:t,getMeta:n,clientOrSqlUi:a}){return ae(this,void 0,void 0,(function*(){const r={},i="string"==typeof a?R.create({client:a}):a;switch(null==e?void 0:e.uidt){case He.SingleLineText:case He.LongText:case He.MultiSelect:case He.SingleSelect:case He.PhoneNumber:case He.Email:case He.URL:case He.User:case He.CreatedBy:case He.LastModifiedBy:r.dataType=ce.STRING;break;case He.Year:case He.Number:case He.Decimal:case He.Rating:case He.Count:case He.AutoNumber:r.dataType=ce.NUMERIC;break;case He.Date:case He.DateTime:case He.CreatedTime:case He.LastModifiedTime:r.dataType=ce.DATE;break;case He.Currency:case He.Percent:case He.Duration:case He.Links:r.dataType=ce.NUMERIC;break;case He.Rollup:{const i=e.colOptions.rollup_function;if(["count","avg","sum","countDistinct","sumDistinct","avgDistinct"].includes(i))r.dataType=ce.NUMERIC;else{const i=t.find((t=>t.id===e.colOptions.fk_relation_column_id)),s=(yield n(i.colOptions.fk_related_model_id)).columns,o=s.find((t=>t.id===e.colOptions.fk_rollup_column_id));Object.assign(r,yield fe({col:o,columns:s,getMeta:n,clientOrSqlUi:a}))}}break;case He.Attachment:r.dataType=ce.STRING;break;case He.Checkbox:"boolean"===e.dt||"bool"===e.dt?r.dataType=ce.BOOLEAN:r.dataType=ce.NUMERIC;break;case He.ID:case He.ForeignKey:case He.SpecificDBType:if(i){const t=i.getAbstractType(e);["integer","float","decimal"].includes(t)?r.dataType=ce.NUMERIC:["boolean"].includes(t)?r.dataType=ce.BOOLEAN:["date","datetime","time","year"].includes(t)?r.dataType=ce.DATE:r.dataType=ce.STRING}else r.dataType=ce.UNKNOWN;break;case He.Time:case He.Lookup:case He.Barcode:case He.Button:case He.Collaborator:case He.QrCode:default:r.dataType=ce.UNKNOWN}return r}))}function he({formula:e,column:t,columns:n,clientOrSqlUi:a,getMeta:r}){return ae(this,void 0,void 0,(function*(){const i="string"==typeof a?R.create({client:a}):a,s={},o={};for(const e of n)s[e.title]=e,o[e.id]=e;const c=e=>ae(this,void 0,void 0,(function*(){var u,l,p,d,m,f,h,b;const g=Object.assign({},e);if(e.type===ue.CALL_EXP){const t=e.callee.name.toUpperCase();if(!de[t])throw new me(oe.INVALID_FUNCTION_NAME,{},`Function ${t} is not available`);if(null==i?void 0:i.getUnsupportedFnList().includes(t))throw new me(oe.INVALID_FUNCTION_NAME,{},`Function ${t} is unavailable for your database`);const a=de[t]&&de[t].validation;if(a&&a.args){if(void 0!==a.args.rqd&&a.args.rqd!==e.arguments.length)throw new me(oe.INVALID_ARG,{key:"msg.formula.requiredArgumentsFormula",requiredArguments:a.args.rqd,calleeName:t},"Required arguments missing");if(void 0!==a.args.min&&a.args.min>e.arguments.length)throw new me(oe.MIN_ARG,{key:"msg.formula.minRequiredArgumentsFormula",minRequiredArguments:a.args.min,calleeName:t},"Minimum arguments required");if(void 0!==a.args.max&&a.args.max<e.arguments.length)throw new me(oe.INVALID_ARG,{key:"msg.formula.maxRequiredArgumentsFormula",maxRequiredArguments:a.args.max,calleeName:t},"Maximum arguments missing")}const r=g.arguments=yield Promise.all(e.arguments.map((e=>c(e)))),s=r.map((e=>e.dataType));if(null===(u=de[t].validation)||void 0===u?void 0:u.custom)null===(l=de[t].validation)||void 0===l||l.custom(s,e);else if(null===(d=null===(p=de[t].validation)||void 0===p?void 0:p.args)||void 0===d?void 0:d.type)for(let e=0;e<r.length;e++){const a=r[e],i=Array.isArray(de[t].validation.args.type)?de[t].validation.args.type[e]:de[t].validation.args.type;if(a.dataType!==i&&a.dataType!==ce.NULL&&a.dataType!==ce.UNKNOWN&&i!==ce.STRING){if(a.type===ue.IDENTIFIER){const e=(null===(m=null==n?void 0:n.find((e=>e.id===a.name||e.title===a.name)))||void 0===m?void 0:m.title)||a.name;throw new me(oe.INVALID_ARG,{key:"msg.formula.columnWithTypeFoundButExpected",columnName:e,columnType:a.dataType,expectedType:i},`Field ${e} with ${a.dataType} type is found but ${i} type is expected`)}{let n="";const a=e+1;let r="";throw i===ce.NUMERIC?(n="msg.formula.typeIsExpected",r="numeric"):i===ce.BOOLEAN?(n="msg.formula.typeIsExpected",r="boolean"):i===ce.DATE&&(n="msg.formula.typeIsExpected",r="date"),new me(oe.INVALID_ARG,{type:r,key:n,position:a,calleeName:t},`${null==t?void 0:t.toUpperCase()} requires a ${r||i} at position ${a}`)}}i===ce.STRING&&i!==a.dataType&&(a.cast=ce.STRING)}"function"==typeof de[t].returnType?g.dataType=null===(h=(f=de[t]).returnType)||void 0===h?void 0:h.call(f,s):de[t].returnType&&(g.dataType=de[t].returnType)}else if(e.type===ue.IDENTIFIER){const i=o[e.name]||s[e.name];if(!i)throw new me(oe.INVALID_COLUMN,{key:"msg.formula.columnNotAvailable",columnName:e.name},`Invalid column name/id ${JSON.stringify(e.name)} in formula`);if(g.name=i.id,(null==i?void 0:i.uidt)===He.Formula){t&&function(e,t,n){const a=n.filter((t=>t.id!==(null==e?void 0:e.id)&&t.uidt===He.Formula)).reduce(((e,t)=>{const a=[...new Set((t.colOptions.formula.match(/c_?\w{14,15}/g)||[]).filter((e=>n.filter((t=>t.id===e&&t.uidt===He.Formula)).length)))];return a.length>0&&e.push({[t.id]:a}),e}),[]),r=n.find((e=>e.title===t.name&&e.uidt===He.Formula));r&&(null==e?void 0:e.id)&&a.push({[null==e?void 0:e.id]:[r.id]});const i=a.length;if(i>0){const e=new Map,t=new Map;for(const[n,r]of Object.entries(a)){const n=Object.keys(r)[0],a=r[n];t.set(n,t.get(n)||0);for(const r of a)e.set(n,(e.get(n)||new Set).add(r)),t.set(r,(t.get(r)||0)+1)}const n=[];t.forEach(((e,t)=>{0===e&&n.push(t)}));let r=0;for(;0!==n.length;){const a=n.shift(),i=e.get(a)||new Set;i.size>0&&(r+=1),i.forEach((e=>{t.set(e,t.get(e)-1),0===t.get(e)&&n.push(e)}))}if(i!==r)throw new me(oe.CIRCULAR_REFERENCE,{key:"msg.formula.cantSaveCircularReference"},"Circular reference detected")}}(t,e,n);const s=(null===(b=i.colOptions)||void 0===b?void 0:b.parsed_tree)||(yield he({formula:i.colOptions.formula.replaceAll("{{","{").replaceAll("}}","}"),columns:n,clientOrSqlUi:a,getMeta:r}));g.dataType=null==s?void 0:s.dataType}else Object.assign(g,yield fe({col:i,columns:n,getMeta:r,clientOrSqlUi:a}))}else if(e.type===ue.LITERAL)"number"==typeof e.value?g.dataType=ce.NUMERIC:"string"==typeof e.value?g.dataType=ce.STRING:"boolean"==typeof e.value?g.dataType=ce.BOOLEAN:g.dataType=ce.STRING;else if(e.type===ue.UNARY_EXP){if(!["-"].includes(e.operator)||e.argument.type!==ue.LITERAL||"number"!=typeof e.argument.value)throw new me(oe.NOT_SUPPORTED,{},`Unary expression '${e.operator}' is not supported`);g.dataType=ce.NUMERIC}else if(e.type===ue.BINARY_EXP)g.left=yield c(e.left),g.right=yield c(e.right),["==","<",">","<=",">=","!="].includes(e.operator)?g.dataType=ce.COND_EXP:"+"===e.operator?(g.dataType=ce.NUMERIC,[g.left,g.right].some((e=>![ce.NUMERIC,ce.BOOLEAN,ce.NULL,ce.UNKNOWN].includes(e.dataType)))&&(g.dataType=ce.STRING)):g.dataType=ce.NUMERIC;else{if(e.type===ue.MEMBER_EXP)throw new me(oe.NOT_SUPPORTED,{},"Bracket notation is not supported");if(e.type===ue.ARRAY_EXP)throw new me(oe.NOT_SUPPORTED,{},"Array is not supported");if(e.type===ue.COMPOUND)throw new me(oe.NOT_SUPPORTED,{},"Compound statement is not supported")}return g}));f().plugins.register(re);const u=f()(e);return yield c(u)}))}var be,ge,ye,ve,_e;!function(e){e[e.FORM=1]="FORM",e[e.GALLERY=2]="GALLERY",e[e.GRID=3]="GRID",e[e.KANBAN=4]="KANBAN",e[e.MAP=5]="MAP",e[e.CALENDAR=6]="CALENDAR"}(be||(be={})),function(e){e.DATABASE="database",e.DOCUMENTATION="documentation",e.COWRITER="cowriter",e.DASHBOARD="dashboard"}(ge||(ge={})),function(e){e.HAS_MANY="hm",e.BELONGS_TO="bt",e.MANY_TO_MANY="mm",e.ONE_TO_ONE="oo"}(ye||(ye={})),function(e){e.EXCEL="excel",e.CSV="csv"}(ve||(ve={})),function(e){e.COMMENT="COMMENT",e.DATA="DATA",e.PROJECT="PROJECT",e.VIRTUAL_RELATION="VIRTUAL_RELATION",e.RELATION="RELATION",e.TABLE_VIEW="TABLE_VIEW",e.TABLE="TABLE",e.VIEW="VIEW",e.META="META",e.TABLE_COLUMN="TABLE_COLUMN",e.WEBHOOKS="WEBHOOKS",e.AUTHENTICATION="AUTHENTICATION",e.ORG_USER="ORG_USER"}(_e||(_e={}));const Ee={[_e.COMMENT]:"Comment",[_e.DATA]:"Data",[_e.PROJECT]:"Project",[_e.VIRTUAL_RELATION]:"Virtual Relation",[_e.RELATION]:"Relation",[_e.TABLE_VIEW]:"Table View",[_e.TABLE]:"Table",[_e.VIEW]:"View",[_e.META]:"Meta",[_e.WEBHOOKS]:"Webhooks",[_e.AUTHENTICATION]:"Authentication",[_e.TABLE_COLUMN]:"Table Column",[_e.ORG_USER]:"Org User"};var xe;!function(e){e.INSERT="INSERT",e.CREATE="CREATE",e.UPDATE="UPDATE",e.DELETE="DELETE",e.BULK_INSERT="BULK_INSERT",e.BULK_UPDATE="BULK_UPDATE",e.BULK_DELETE="BULK_DELETE",e.LINK_RECORD="LINK_RECORD",e.UNLINK_RECORD="UNLINK_RECORD",e.RENAME="RENAME",e.IMPORT_FROM_ZIP="IMPORT_FROM_ZIP",e.EXPORT_TO_FS="EXPORT_TO_FS",e.EXPORT_TO_ZIP="EXPORT_TO_ZIP",e.SIGNIN="SIGNIN",e.SIGNUP="SIGNUP",e.PASSWORD_RESET="PASSWORD_RESET",e.PASSWORD_FORGOT="PASSWORD_FORGOT",e.PASSWORD_CHANGE="PASSWORD_CHANGE",e.EMAIL_VERIFICATION="EMAIL_VERIFICATION",e.ROLES_MANAGEMENT="ROLES_MANAGEMENT",e.INVITE="INVITE",e.RESEND_INVITE="RESEND_INVITE"}(xe||(xe={}));const Te={[xe.UPDATE]:"Update",[xe.INSERT]:"Insert",[xe.DELETE]:"Delete",[xe.BULK_INSERT]:"Bulk Insert",[xe.BULK_UPDATE]:"Bulk Update",[xe.BULK_DELETE]:"Bulk Delete",[xe.LINK_RECORD]:"Link Record",[xe.UNLINK_RECORD]:"Unlink Record",[xe.CREATE]:"Create",[xe.RENAME]:"Rename",[xe.IMPORT_FROM_ZIP]:"Import From Zip",[xe.EXPORT_TO_FS]:"Export To FS",[xe.EXPORT_TO_ZIP]:"Export To Zip",[xe.SIGNIN]:"Signin",[xe.SIGNUP]:"Signup",[xe.PASSWORD_RESET]:"Password Reset",[xe.PASSWORD_FORGOT]:"Password Forgot",[xe.PASSWORD_CHANGE]:"Password Change",[xe.EMAIL_VERIFICATION]:"Email Verification",[xe.ROLES_MANAGEMENT]:"Roles Management",[xe.INVITE]:"Invite",[xe.RESEND_INVITE]:"Resend Invite"};var Oe,De,we,Se,Ae,Ce,Re,Ne;!function(e){e.STORAGE="Storage",e.EMAIL="Email"}(Oe||(Oe={})),function(e){e.TABLE="table",e.VIEW="view"}(De||(De={})),function(e){e.JOB="job"}(we||(we={})),function(e){e.doc="doc",e.sec="sec",e.paragraph="paragraph",e.text="text",e.heading="heading",e.bullet="bullet",e.ordered="ordered",e.task="task",e.quote="quote",e.divider="divider",e.codeBlock="codeBlock",e.image="image",e.callout="callout",e.tipCallout="tipCallout",e.table="table",e.tableRow="tableRow",e.tableCell="tableCell",e.embed="embed",e.collapsable="collapsable",e.collapsableContent="collapsable_content",e.collapsableHeader="collapsable_header",e.column="column",e.columnContent="columnContent",e.linkToPage="linkToPage",e.attachment="attachment"}(Se||(Se={})),function(e){e.strike="strike",e.bold="bold",e.italic="italic",e.link="link",e.code="code",e.underline="underline"}(Ae||(Ae={})),function(e){e.NC_ERR_MM_MODEL_NOT_FOUND="NC_ERR_MM_MODEL_NOT_FOUND"}(Ce||(Ce={})),function(e){e.AUTHENTICATION_REQUIRED="AUTHENTICATION_REQUIRED",e.API_TOKEN_NOT_ALLOWED="API_TOKEN_NOT_ALLOWED",e.WORKSPACE_NOT_FOUND="WORKSPACE_NOT_FOUND",e.BASE_NOT_FOUND="BASE_NOT_FOUND",e.SOURCE_NOT_FOUND="SOURCE_NOT_FOUND",e.TABLE_NOT_FOUND="TABLE_NOT_FOUND",e.VIEW_NOT_FOUND="VIEW_NOT_FOUND",e.FIELD_NOT_FOUND="FIELD_NOT_FOUND",e.RECORD_NOT_FOUND="RECORD_NOT_FOUND",e.GENERIC_NOT_FOUND="GENERIC_NOT_FOUND",e.HOOK_NOT_FOUND="HOOK_NOT_FOUND",e.REQUIRED_FIELD_MISSING="REQUIRED_FIELD_MISSING",e.ERROR_DUPLICATE_RECORD="ERROR_DUPLICATE_RECORD",e.USER_NOT_FOUND="USER_NOT_FOUND",e.INVALID_OFFSET_VALUE="INVALID_OFFSET_VALUE",e.INVALID_LIMIT_VALUE="INVALID_LIMIT_VALUE",e.INVALID_FILTER="INVALID_FILTER",e.INVALID_SHARED_VIEW_PASSWORD="INVALID_SHARED_VIEW_PASSWORD",e.INVALID_ATTACHMENT_JSON="INVALID_ATTACHMENT_JSON",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.INTERNAL_SERVER_ERROR="INTERNAL_SERVER_ERROR",e.DATABASE_ERROR="DATABASE_ERROR",e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.BAD_JSON="BAD_JSON",e.INVALID_PK_VALUE="INVALID_PK_VALUE",e.COLUMN_ASSOCIATED_WITH_LINK="COLUMN_ASSOCIATED_WITH_LINK",e.TABLE_ASSOCIATED_WITH_LINK="TABLE_ASSOCIATED_WITH_LINK",e.INTEGRATION_NOT_FOUND="INTEGRATION_NOT_FOUND",e.INTEGRATION_LINKED_WITH_BASES="INTEGRATION_LINKED_WITH_BASES",e.FORMULA_ERROR="FORMULA_ERROR",e.PERMISSION_DENIED="PERMISSION_DENIED"}(Re||(Re={})),function(e){e.ID="ID",e.LinkToAnotherRecord="LinkToAnotherRecord",e.ForeignKey="ForeignKey",e.Lookup="Lookup",e.SingleLineText="SingleLineText",e.LongText="LongText",e.Attachment="Attachment",e.Checkbox="Checkbox",e.MultiSelect="MultiSelect",e.SingleSelect="SingleSelect",e.Collaborator="Collaborator",e.Date="Date",e.Year="Year",e.Time="Time",e.PhoneNumber="PhoneNumber",e.GeoData="GeoData",e.Email="Email",e.URL="URL",e.Number="Number",e.Decimal="Decimal",e.Currency="Currency",e.Percent="Percent",e.Duration="Duration",e.Rating="Rating",e.Formula="Formula",e.Rollup="Rollup",e.Count="Count",e.DateTime="DateTime",e.CreatedTime="CreatedTime",e.LastModifiedTime="LastModifiedTime",e.AutoNumber="AutoNumber",e.Geometry="Geometry",e.JSON="JSON",e.SpecificDBType="SpecificDBType",e.Barcode="Barcode",e.QrCode="QrCode",e.Button="Button",e.Links="Links",e.User="User",e.CreatedBy="CreatedBy",e.LastModifiedBy="LastModifiedBy"}(Ne||(Ne={}));const Ie={[Ne.ID]:"ID",[Ne.LinkToAnotherRecord]:"Link to another record",[Ne.ForeignKey]:"Foreign key",[Ne.Lookup]:"Lookup",[Ne.SingleLineText]:"Single line text",[Ne.LongText]:"Long text",RichText:"Rich text",[Ne.Attachment]:"Attachment",[Ne.Checkbox]:"Checkbox",[Ne.MultiSelect]:"Multi select",[Ne.SingleSelect]:"Single select",[Ne.Collaborator]:"Collaborator",[Ne.Date]:"Date",[Ne.Year]:"Year",[Ne.Time]:"Time",[Ne.PhoneNumber]:"Phone number",[Ne.GeoData]:"Geo data",[Ne.Email]:"Email",[Ne.URL]:"URL",[Ne.Number]:"Number",[Ne.Decimal]:"Decimal",[Ne.Currency]:"Currency",[Ne.Percent]:"Percent",[Ne.Duration]:"Duration",[Ne.Rating]:"Rating",[Ne.Formula]:"Formula",[Ne.Rollup]:"Rollup",[Ne.Count]:"Count",[Ne.DateTime]:"Date time",[Ne.CreatedTime]:"Created time",[Ne.LastModifiedTime]:"Last modified time",[Ne.AutoNumber]:"Auto number",[Ne.Geometry]:"Geometry",[Ne.JSON]:"JSON",[Ne.SpecificDBType]:"Specific DB type",[Ne.Barcode]:"Barcode",[Ne.QrCode]:"Qr code",[Ne.Button]:"Button",[Ne.Links]:"Links",[Ne.User]:"User",[Ne.CreatedBy]:"Created by",[Ne.LastModifiedBy]:"Last modified by"},Me={[Ne.ID]:"ID",[Ne.LinkToAnotherRecord]:"{TableName}",[Ne.ForeignKey]:"Foreign key",[Ne.Lookup]:"{FieldName} (from {TableName})",[Ne.SingleLineText]:"Text",[Ne.LongText]:"Notes",[Ne.Attachment]:"Attachment",[Ne.Checkbox]:"Done",[Ne.MultiSelect]:"Tags",[Ne.SingleSelect]:"Status",[Ne.Collaborator]:"User",[Ne.Date]:"Date",[Ne.Year]:"Year",[Ne.Time]:"Time",[Ne.PhoneNumber]:"Phone",[Ne.GeoData]:"Geo data",[Ne.Email]:"Email",[Ne.URL]:"URL",[Ne.Number]:"Number",[Ne.Decimal]:"Decimal",[Ne.Currency]:"Currency",[Ne.Percent]:"Percent",[Ne.Duration]:"Duration",[Ne.Rating]:"Rating",[Ne.Formula]:"Formula",[Ne.Rollup]:"{RollupFunction}({FieldName}) from {TableName}",[Ne.Count]:"Count",[Ne.DateTime]:"Date time",[Ne.CreatedTime]:"Created time",[Ne.LastModifiedTime]:"Last modified time",[Ne.AutoNumber]:"Auto number",[Ne.Geometry]:"Geometry",[Ne.JSON]:"JSON",[Ne.SpecificDBType]:"Specific DB type",[Ne.Barcode]:"Barcode",[Ne.QrCode]:"Qr code",[Ne.Button]:"Button",[Ne.Links]:"{TableName}",[Ne.User]:"User",[Ne.CreatedBy]:"Created by",[Ne.LastModifiedBy]:"Last modified by"},Le=[Ne.Duration,Ne.Currency,Ne.Percent,Ne.Number,Ne.Decimal,Ne.Rating,Ne.Rollup,Ne.Year,Ne.Links];function je(e){return Le.includes("object"==typeof e?null==e?void 0:e.uidt:e)}function Pe(e){return[Ne.LinkToAnotherRecord,Ne.Formula,Ne.QrCode,Ne.Barcode,Ne.Rollup,Ne.Lookup,Ne.Links,Ne.CreatedTime,Ne.LastModifiedTime,Ne.CreatedBy,Ne.LastModifiedBy,Ne.Button].includes("object"==typeof e?null==e?void 0:e.uidt:e)}function ke(e){return[Ne.CreatedTime,Ne.LastModifiedTime].includes("object"==typeof e?null==e?void 0:e.uidt:e)}function Fe(e){return[Ne.CreatedBy,Ne.LastModifiedBy].includes("object"==typeof e?null==e?void 0:e.uidt:e)}function $e(e,t){var n,a;return!!e.system&&(e.uidt===Ne.LinkToAnotherRecord?!((null===(n=e.colOptions)||void 0===n?void 0:n.type)!==ye.BELONGS_TO||!(null==t?void 0:t.mm))||(null===(a=e.colOptions)||void 0===a?void 0:a.type)===ye.HAS_MANY:[Ne.CreatedBy,Ne.LastModifiedBy].includes(e.uidt))}function qe(e){return[Ne.LinkToAnotherRecord,Ne.Links].includes("object"==typeof e?null==e?void 0:e.uidt:e)}const Ue=({formulaColumn:e})=>{var t,n;switch(null===(n=null===(t=null==e?void 0:e.colOptions)||void 0===t?void 0:t.parsed_tree)||void 0===n?void 0:n.dataType){case ce.NUMERIC:return Ne.Number;case ce.DATE:return Ne.DateTime;case ce.LOGICAL:case ce.COND_EXP:case ce.BOOLEAN:return Ne.Checkbox}},Be=e=>[Ne.SingleSelect,Ne.MultiSelect,Ne.User].includes("object"==typeof e?null==e?void 0:e.uidt:e),He=Ne,Ge=[Ne.Lookup,Ne.Rollup,Ne.Formula,Ne.Button,Ne.Barcode,Ne.QrCode],We=[Ne.Checkbox,Ne.Number,Ne.Decimal,Ne.Currency,Ne.Percent,Ne.Duration,Ne.Rating,Ne.DateTime,Ne.Date,Ne.Time,Ne.CreatedTime,Ne.LastModifiedTime,Ne.LinkToAnotherRecord,Ne.Links,Ne.PhoneNumber,Ne.Email,Ne.URL],ze=e=>{switch(e){case ce.NUMERIC:return[Ne.Decimal,Ne.Currency,Ne.Percent,Ne.Rating];case ce.DATE:return[Ne.DateTime,Ne.Date,Ne.Time];case ce.BOOLEAN:case ce.COND_EXP:return[Ne.Checkbox];case ce.STRING:return[Ne.Email,Ne.URL,Ne.PhoneNumber];default:return[]}},Ye=[He.Formula,He.SingleLineText,He.LongText,He.PhoneNumber,He.URL,He.Email,He.Decimal,He.Number,He.AutoNumber,He.ID];var Ve,Ke,Je,Qe,Xe,Ze,et,tt;!function(e){e.SUPER_ADMIN="super",e.CREATOR="org-level-creator",e.VIEWER="org-level-viewer"}(Ve||(Ve={})),function(e){e.CREATOR="cloud-org-level-creator",e.VIEWER="cloud-org-level-viewer",e.OWNER="cloud-org-level-owner"}(Ke||(Ke={})),function(e){e.OWNER="owner",e.CREATOR="creator",e.EDITOR="editor",e.COMMENTER="commenter",e.VIEWER="viewer",e.NO_ACCESS="no-access"}(Je||(Je={})),function(e){e.OWNER="workspace-level-owner",e.CREATOR="workspace-level-creator",e.EDITOR="workspace-level-editor",e.COMMENTER="workspace-level-commenter",e.VIEWER="workspace-level-viewer",e.NO_ACCESS="workspace-level-no-access"}(Qe||(Qe={})),function(e){e.PROJECT_CREATE="base.create",e.PROJECT_INVITE="base.invite",e.PROJECT_USER_UPDATE="base.user.update",e.PROJECT_USER_RESEND_INVITE="base.user.resend.invite",e.PROJECT_DELETE="base.delete",e.PROJECT_UPDATE="base.update",e.PROJECT_CLONE="base.clone",e.WELCOME="app.welcome",e.WORKSPACE_CREATE="workspace.create",e.WORKSPACE_INVITE="workspace.invite",e.WORKSPACE_DELETE="workspace.delete",e.WORKSPACE_UPDATE="workspace.update",e.USER_SIGNUP="user.signup",e.USER_SIGNIN="user.signin",e.USER_UPDATE="user.update",e.USER_PASSWORD_RESET="user.password.reset",e.USER_PASSWORD_CHANGE="user.password.change",e.USER_PASSWORD_FORGOT="user.password.forgot",e.USER_DELETE="user.delete",e.USER_EMAIL_VERIFICATION="user.email.verification",e.TABLE_CREATE="table.create",e.TABLE_DELETE="table.delete",e.TABLE_UPDATE="table.update",e.VIEW_CREATE="view.create",e.VIEW_DELETE="view.delete",e.VIEW_UPDATE="view.update",e.SHARED_VIEW_CREATE="shared.view.create",e.SHARED_VIEW_DELETE="shared.view.delete",e.SHARED_VIEW_UPDATE="shared.view.update",e.FILTER_CREATE="filter.create",e.FILTER_DELETE="filter.delete",e.FILTER_UPDATE="filter.update",e.SORT_CREATE="sort.create",e.SORT_DELETE="sort.delete",e.SORT_UPDATE="sort.update",e.COLUMN_CREATE="column.create",e.COLUMN_DELETE="column.delete",e.COLUMN_UPDATE="column.update",e.DATA_CREATE="data.create",e.DATA_DELETE="data.delete",e.DATA_UPDATE="data.update",e.ORG_USER_INVITE="org.user.invite",e.ORG_USER_RESEND_INVITE="org.user.resend.invite",e.VIEW_COLUMN_CREATE="view.column.create",e.VIEW_COLUMN_UPDATE="view.column.update",e.API_TOKEN_CREATE="api.token.create",e.API_TOKEN_DELETE="api.token.delete",e.IMAGE_UPLOAD="image.upload",e.BASE_CREATE="source.create",e.BASE_DELETE="source.delete",e.BASE_UPDATE="source.update",e.FORM_COLUMN_UPDATE="form.column.update",e.FORM_CREATE="form.create",e.FORM_UPDATE="form.update",e.GALLERY_CREATE="gallery.create",e.GALLERY_UPDATE="gallery.update",e.KANBAN_CREATE="kanban.create",e.KANBAN_UPDATE="kanban.update",e.MAP_CREATE="map.create",e.MAP_UPDATE="map.update",e.META_DIFF_SYNC="meta.diff.sync",e.GRID_CREATE="grid.create",e.GRID_UPDATE="grid.update",e.GRID_COLUMN_UPDATE="grid.column.update",e.WEBHOOK_CREATE="webhook.create",e.WEBHOOK_UPDATE="webhook.update",e.WEBHOOK_DELETE="webhook.delete",e.WEBHOOK_TEST="webhook.test",e.WEBHOOK_TRIGGER="webhook.trigger",e.UI_ACL_UPDATE="ui.acl.update",e.ORG_API_TOKEN_CREATE="org.api.token.create",e.ORG_API_TOKEN_DELETE="org.api.token.delete",e.PLUGIN_TEST="plugin.test",e.PLUGIN_INSTALL="plugin.install",e.PLUGIN_UNINSTALL="plugin.uninstall",e.SYNC_SOURCE_CREATE="sync.source.create",e.SYNC_SOURCE_UPDATE="sync.source.update",e.SYNC_SOURCE_DELETE="sync.source.delete",e.RELATION_DELETE="relation.delete",e.RELATION_CREATE="relation.create",e.SHARED_BASE_GENERATE_LINK="shared.base.generate.link",e.SHARED_BASE_DELETE_LINK="shared.base.delete.link",e.ATTACHMENT_UPLOAD="attachment.upload",e.APIS_CREATED="apis.created",e.EXTENSION_CREATE="extension.create",e.EXTENSION_UPDATE="extension.update",e.EXTENSION_DELETE="extension.delete",e.COMMENT_CREATE="comment.create",e.COMMENT_DELETE="comment.delete",e.COMMENT_UPDATE="comment.update",e.INTEGRATION_DELETE="integration.delete",e.INTEGRATION_CREATE="integration.create",e.INTEGRATION_UPDATE="integration.update"}(Xe||(Xe={})),function(e){e.API_CALLS="usage_api_calls",e.API_COUNT="usage_api_count",e.NOTIFICATION="nc_notification",e.PAGE_SNAPSHOT="docs_page_snapshot",e.TELEMETRY="usage_telemetry",e.AUDIT="nc_audit"}(Ze||(Ze={})),function(e){e[e.CREATING=0]="CREATING",e[e.CREATED=1]="CREATED",e[e.DELETING=2]="DELETING",e[e.DELETED=3]="DELETED",e[e.FAILED=4]="FAILED"}(et||(et={})),function(e){e.FREE="free",e.TEAM="team",e.BUSINESS="business"}(tt||(tt={}));const nt={[Qe.OWNER]:"owner",[Qe.CREATOR]:"creator",[Qe.EDITOR]:"editor",[Qe.COMMENTER]:"commenter",[Qe.VIEWER]:"viewer",[Qe.NO_ACCESS]:"noaccess",[Je.OWNER]:"owner",[Je.CREATOR]:"creator",[Je.EDITOR]:"editor",[Je.COMMENTER]:"commenter",[Je.VIEWER]:"viewer",[Je.NO_ACCESS]:"noaccess",[Ve.SUPER_ADMIN]:"superAdmin",[Ve.CREATOR]:"creator",[Ve.VIEWER]:"viewer",[Ke.OWNER]:"owner",[Ke.CREATOR]:"creator",[Ke.VIEWER]:"viewer"},at={[Qe.OWNER]:"purple",[Qe.CREATOR]:"blue",[Qe.EDITOR]:"green",[Qe.COMMENTER]:"orange",[Qe.VIEWER]:"yellow",[Qe.NO_ACCESS]:"red",[Je.OWNER]:"purple",[Je.CREATOR]:"blue",[Je.EDITOR]:"green",[Je.COMMENTER]:"orange",[Je.VIEWER]:"yellow",[Ve.SUPER_ADMIN]:"maroon",[Je.NO_ACCESS]:"red",[Ve.CREATOR]:"blue",[Ve.VIEWER]:"yellow",[Ke.OWNER]:"purple",[Ke.CREATOR]:"blue",[Ke.VIEWER]:"yellow"},rt={[Qe.OWNER]:"Full access to workspace",[Qe.CREATOR]:"Can create bases, sync tables, views, setup web-hooks and more",[Qe.EDITOR]:"Can edit data in workspace bases",[Qe.COMMENTER]:"Can view and comment data in workspace bases",[Qe.VIEWER]:"Can view data in workspace bases",[Qe.NO_ACCESS]:"Cannot access this workspace",[Je.OWNER]:"Full access to base",[Je.CREATOR]:"Can create tables, views, setup webhook, invite collaborators and more",[Je.EDITOR]:"Can view, add & modify records, add comments on them",[Je.COMMENTER]:"Can view records and add comment on them",[Je.VIEWER]:"Can only view records",[Je.NO_ACCESS]:"Cannot access this base",[Ve.SUPER_ADMIN]:"Full access to all",[Ve.CREATOR]:"Can create bases, sync tables, views, setup web-hooks and more",[Ve.VIEWER]:"Can only view bases"},it={[Qe.OWNER]:"role_owner",[Qe.CREATOR]:"role_creator",[Qe.EDITOR]:"role_editor",[Qe.COMMENTER]:"role_commenter",[Qe.VIEWER]:"role_viewer",[Qe.NO_ACCESS]:"role_no_access",[Je.OWNER]:"role_owner",[Je.CREATOR]:"role_creator",[Je.EDITOR]:"role_editor",[Je.COMMENTER]:"role_commenter",[Je.VIEWER]:"role_viewer",[Je.NO_ACCESS]:"role_no_access",[Ve.SUPER_ADMIN]:"role_super",[Ve.CREATOR]:"role_creator",[Ve.VIEWER]:"role_viewer",[Ke.OWNER]:"role_owner",[Ke.CREATOR]:"role_creator",[Ke.VIEWER]:"role_viewer"},st={[Qe.OWNER]:Je.OWNER,[Qe.CREATOR]:Je.CREATOR,[Qe.EDITOR]:Je.EDITOR,[Qe.COMMENTER]:Je.COMMENTER,[Qe.VIEWER]:Je.VIEWER,[Qe.NO_ACCESS]:Je.NO_ACCESS},ot=[Qe.OWNER,Qe.CREATOR,Qe.EDITOR,Qe.COMMENTER,Qe.VIEWER,Qe.NO_ACCESS],ct=[Ve.SUPER_ADMIN,Ve.CREATOR,Ve.VIEWER],ut=[Je.OWNER,Je.CREATOR,Je.EDITOR,Je.COMMENTER,Je.VIEWER,Je.NO_ACCESS];var lt,pt,dt,mt,ft,ht,bt;!function(e){e.FREE_WORKSPACE_LIMIT="FREE_WORKSPACE_LIMIT",e.WORKSPACE_USER_LIMIT="WORKSPACE_USER_LIMIT",e.WORKSPACE_ROW_LIMIT="WORKSPACE_ROW_LIMIT",e.BASE_LIMIT="BASE_LIMIT",e.SOURCE_LIMIT="SOURCE_LIMIT",e.TABLE_LIMIT="TABLE_LIMIT",e.COLUMN_LIMIT="COLUMN_LIMIT",e.TABLE_ROW_LIMIT="TABLE_ROW_LIMIT",e.WEBHOOK_LIMIT="WEBHOOK_LIMIT",e.VIEW_LIMIT="VIEW_LIMIT",e.FILTER_LIMIT="FILTER_LIMIT",e.SORT_LIMIT="SORT_LIMIT"}(lt||(lt={})),function(e){e.VIEW_COLUMNS="fields",e.FILTERS="filters",e.SORTS="sorts"}(pt||(pt={})),function(e){e.SCHEMA_READONLY="is_schema_readonly",e.DATA_READONLY="is_data_readonly"}(dt||(dt={})),function(e){e.MYSQL="mysql2",e.MSSQL="mssql",e.PG="pg",e.SQLITE="sqlite3",e.VITESS="vitess",e.SNOWFLAKE="snowflake",e.DATABRICKS="databricks"}(mt||(mt={})),function(e){e.No="No",e.Allowed="Allowed",e.Preferred="Preferred",e.Required="Required",e.RequiredWithCa="Required-CA",e.RequiredWithIdentity="Required-Identity"}(ft||(ft={})),function(e){e.MICROSOFT_ACCESS="microsoft-access",e.TABLEAU="tableau",e.ORACLE="oracle",e.OPENAI="openai",e.CLAUDE="claude",e.OLLAMA="ollama",e.GROQ="groq",e.SLACK="slack",e.DISCORD="discord",e.TWILLO="twillo",e.MICROSOFT_OUTLOOK="microsoft-outlook",e.MICROSOFT_TEAMS="microsoft-teams",e.TELEGRAM="telegram",e.GMAIL="gmail",e.WHATSAPP="whatsapp",e.ASANA="asana",e.JIRA="jira",e.MIRO="miro",e.TRELLO="trello",e.SALESFORCE="salesforce",e.PIPEDRIVE="pipedrive",e.MICROSOFT_DYNAMICS_365="microsoft-dynamics-365",e.ZOHO_CRM="zoho-crm",e.HUBSPOT="hubspot",e.MAILCHIMP="mailchimp",e.SURVEYMONKEY="surveymonkey",e.TYPEFORM="typeform",e.WORKDAY="workday",e.GREENHOUSE="greenhouse",e.LEVER="lever",e.GITHUB="github",e.GITLAB="gitlab",e.BITBUCKET="bitbucket",e.STRIPE="stripe",e.QUICKBOOKS="quickbooks",e.FRESHDESK="freshdesk",e.INTERCOM="intercom",e.ZENDESK="zendesk",e.HUBSPOT_SERVICE_HUB="hubspot-service-hub",e.SALESFORCE_SERVICE_CLOUD="salesforce-service-cloud",e.BOX="box",e.GOOGLE_DRIVE="google-drive",e.DROPBOX="dropbox",e.APPLE_NUMBERS="apple-numbers",e.GOOGLE_CALENDAR="google-calendar",e.MICROSOFT_EXCEL="microsoft-excel",e.GOOGLE_SHEETS="google-sheets"}(ht||(ht={})),function(e){e.DATABASE="database",e.AI="ai",e.COMMUNICATION="communication",e.SPREAD_SHEET="spread-sheet",e.PROJECT_MANAGEMENT="project-management",e.CRM="crm",e.MARKETING="marketing",e.ATS="ats",e.DEVELOPMENT="development",e.FINANCE="finance",e.TICKETING="ticketing",e.STORAGE="storage",e.OTHERS="others"}(bt||(bt={}));const gt=e=>e&&e.filter((e=>!_t(e)))||[],yt=e=>(e&&e.filter(_t)||[]).map((e=>e.id)),vt=e=>e.filter(_t)||[],_t=e=>!(!e||!(e.uidt===He.ForeignKey||("created_at"===e.column_name||"updated_at"===e.column_name)&&e.uidt===He.DateTime||e.pk&&(e.ai||e.cdf)||e.pk&&e.meta&&e.meta.ag||e.system)),Et=e=>{var t,n,a;return e&&(e.uidt===He.Links||e.uidt===He.LinkToAnotherRecord)&&((null==e?void 0:e.fk_model_id)||(null===(t=null==e?void 0:e.colOptions)||void 0===t?void 0:t.fk_model_id))&&(null===(n=null==e?void 0:e.colOptions)||void 0===n?void 0:n.fk_related_model_id)&&((null==e?void 0:e.fk_model_id)||(null===(a=null==e?void 0:e.colOptions)||void 0===a?void 0:a.fk_model_id))===e.colOptions.fk_related_model_id},xt=e=>e?"object"!=typeof e||Array.isArray(e)?("string"==typeof e&&(e=e.split(",")),0===e.length?null:e.reduce(((e,t)=>(e[t]=!0,e)),{})):e:null,Tt=e=>e?Object.keys(e).filter((t=>e[t])).join(","):"",Ot=e=>[He.Year,He.Time,He.Date,He.DateTime,He.CreatedTime,He.LastModifiedTime].includes(e)?["count","min","max","countDistinct"]:je(e)?["sum","count","min","max","avg","countDistinct","sumDistinct","avgDistinct"]:[He.SingleLineText,He.LongText,He.User,He.Email,He.PhoneNumber,He.URL,He.JSON].includes(e)?["count","countDistinct"]:[He.Checkbox].includes(e)?["count","sum"]:[He.Attachment].includes(e)?[]:[He.SingleSelect,He.MultiSelect].includes(e)?["count","countDistinct"]:["sum","count","min","max","avg","countDistinct","sumDistinct","avgDistinct"],Dt=e=>[He.Year,He.Time,He.Date,He.DateTime,He.CreatedTime,He.LastModifiedTime,He.Decimal,He.Currency,He.Duration].includes(e)?["count","countDistinct"]:["sum","count","avg","min","max","countDistinct","sumDistinct","avgDistinct"],wt=({name:e,count:t,ext:n})=>`${e}${t?`(${t})`:""}${n?`${n}`:""}`;function St(e,t){return e.replace(/^(.+?)(?:\((\d+)\))?(\.(?:tar|min)\.(?:\w{2,4})|\.\w+)$/,((e,n,a,r)=>{let i=e,s=a||1;for(;t.some((e=>e===i));)i=wt({name:n,ext:r,count:s++});return i}))}function At(e,t=0){if(t=null==t?0:t>=0?Math.min(t,292):Math.max(t,-292)){let n=`${e}e`.split("e");return n=`${Math.round(Number(`${n[0]}e${+n[1]+t}`))}e`.split("e"),(+`${n[0]}e${+n[1]-t}`).toFixed(t)}return Math.round(e).toFixed(t)}const Ct={[mt.MYSQL]:null,mysql:null,[mt.PG]:"postgres",oracledb:"xe",[mt.MSSQL]:void 0,[mt.SQLITE]:"a.sqlite"},Rt=e=>{var t;return e.client===mt.PG||e.client===mt.SNOWFLAKE?null===(t=e.connection)||void 0===t?void 0:t.database:Ct[e.client]},Nt=class extends d{};class It{}function Mt(e){let t="",n=!0;return e?e.length>=8||(t+="At least 8 letters. ",n=!1):(t="At least 8 letters",n=!1),{error:t,valid:n,hint:null}}function Lt(e,t){return Object.assign(Object.assign(Object.assign({},e),t),{paths:Object.assign(Object.assign({},e.paths),t.paths),components:Object.assign(Object.assign(Object.assign({},e.components),t.components),{schemas:Object.assign(Object.assign({},e.components.schemas),t.components.schemas),responses:Object.assign(Object.assign({},e.components.responses),t.components.responses)})})}var jt,Pt,kt,Ft,$t,qt,Ut,Bt;!function(e){e.Required="required"}(jt||(jt={})),function(e){e.MinLength="minLength",e.MaxLength="maxLength",e.StartsWith="startsWith",e.EndsWith="endsWith",e.Includes="includes",e.NotIncludes="notIncludes",e.Regex="regex",e.Email="email",e.BusinessEmail="businessEmail",e.PhoneNumber="phoneNumber",e.Url="url"}(Pt||(Pt={})),function(e){e.Min="min",e.Max="max"}(kt||(kt={})),function(e){e.MinDate="minDate",e.MaxDate="maxDate"}(Ft||(Ft={})),function(e){e.MinTime="minTime",e.MaxTime="maxTime"}($t||($t={})),function(e){e.MinYear="minYear",e.MaxYear="maxYear"}(qt||(qt={})),function(e){e.MinSelected="minSelected",e.MaxSelected="maxSelected",e.LimitOptions="limitOptions"}(Ut||(Ut={})),function(e){e.FileTypes="fileTypes",e.FileSize="fileSize",e.FileCount="fileCount"}(Bt||(Bt={}));const Ht={[Pt.MaxLength]:Pt.MinLength,[Pt.NotIncludes]:Pt.Includes,[kt.Max]:kt.Min,[qt.MaxYear]:qt.MinYear,[Ft.MaxDate]:Ft.MinDate,[$t.MaxTime]:$t.MinTime,[Ut.MaxSelected]:Ut.MinSelected};var Gt,Wt,zt,Yt,Vt;!function(e){e.Sum="sum",e.Min="min",e.Max="max",e.Avg="avg",e.Median="median",e.StandardDeviation="std_dev",e.Range="range"}(Gt||(Gt={})),function(e){e.Count="count",e.CountEmpty="count_empty",e.CountFilled="count_filled",e.CountUnique="count_unique",e.PercentEmpty="percent_empty",e.PercentFilled="percent_filled",e.PercentUnique="percent_unique",e.None="none"}(Wt||(Wt={})),function(e){e.AttachmentSize="attachment_size"}(zt||(zt={})),function(e){e.Checked="checked",e.Unchecked="unchecked",e.PercentChecked="percent_checked",e.PercentUnchecked="percent_unchecked"}(Yt||(Yt={})),function(e){e.EarliestDate="earliest_date",e.LatestDate="latest_date",e.DateRange="date_range",e.MonthRange="month_range"}(Vt||(Vt={}));const Kt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt),Gt),zt),Yt),Vt),Jt=(e,t)=>{let n=[];if(e===He.Formula&&(null==t?void 0:t.dataType))switch(t.dataType){case ce.BOOLEAN:n=[...Object.values(Yt),Wt.None];break;case ce.DATE:n=[...Object.values(Vt),...Object.values(Wt)];break;case ce.NUMERIC:n=[...Object.values(Gt),...Object.values(Wt)];break;default:n=[...Object.values(Wt)]}switch(e){case He.Number:case He.Decimal:case He.Currency:case He.Percent:case He.Duration:case He.Rating:case He.Rollup:case He.Links:n=[...Object.values(Gt),...Object.values(Wt)];break;case He.Attachment:n=[...Object.values(zt),...Object.values(Wt)];break;case He.Checkbox:n=[...Object.values(Yt),Wt.None];break;case He.Date:case He.DateTime:case He.LastModifiedTime:case He.CreatedTime:n=[...Object.values(Vt),...Object.values(Wt)];break;case He.SpecificDBType:case He.ForeignKey:n=[Wt.None]}return n.length||(n=[...Object.values(Wt)]),n.filter((e=>e!==Wt.Count))},Qt=(e,t,n)=>{if("ssl"in e&&e.ssl){if(t===ft.No||"object"==typeof e.ssl&&Object.values(e.ssl).every((e=>null==e)))return;if("pg"===n&&["true","false"].includes(e.ssl))return"true"===e.ssl;if("pg"===n&&!["boolean","object"].includes(typeof e.ssl))return;return e.ssl}}},3563:e=>{"use strict";e.exports=__webpack_require__(11353)},8938:e=>{"use strict";e.exports=__webpack_require__(9426)},6986:e=>{"use strict";e.exports=__webpack_require__(48844)},3672:e=>{"use strict";e.exports=__webpack_require__(5157)},2103:e=>{"use strict";e.exports=__webpack_require__(27594)},263:e=>{"use strict";e.exports=__webpack_require__(64935)},5833:e=>{"use strict";e.exports=__webpack_require__(44511)},8872:e=>{"use strict";e.exports=__webpack_require__(12097)},9731:e=>{"use strict";e.exports=__webpack_require__(54181)},4688:e=>{"use strict";e.exports=__webpack_require__(98843)},1832:e=>{"use strict";e.exports=__webpack_require__(31832)},133:e=>{"use strict";e.exports=__webpack_require__(828)},5119:e=>{"use strict";e.exports=__webpack_require__(18550)},943:e=>{"use strict";e.exports=__webpack_require__(12046)},9020:e=>{"use strict";e.exports=__webpack_require__(95977)},2745:e=>{"use strict";e.exports=__webpack_require__(81809)},6331:e=>{"use strict";e.exports=__webpack_require__(39001)},4587:e=>{"use strict";e.exports=__webpack_require__(54587)},5317:e=>{"use strict";e.exports=__webpack_require__(35317)},6982:e=>{"use strict";e.exports=__webpack_require__(76982)},9896:e=>{"use strict";e.exports=__webpack_require__(79896)},857:e=>{"use strict";e.exports=__webpack_require__(70857)},6928:e=>{"use strict";e.exports=__webpack_require__(16928)},7016:e=>{"use strict";e.exports=__webpack_require__(87016)},9023:e=>{"use strict";e.exports=__webpack_require__(39023)}},__webpack_module_cache__={};function __nested_webpack_require_460497__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__nested_webpack_require_460497__),n.exports}__nested_webpack_require_460497__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __nested_webpack_require_460497__.d(t,{a:t}),t},__nested_webpack_require_460497__.d=(e,t)=>{for(var n in t)__nested_webpack_require_460497__.o(t,n)&&!__nested_webpack_require_460497__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__nested_webpack_require_460497__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__nested_webpack_require_460497__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __nested_webpack_exports__=__nested_webpack_require_460497__(2909);return __nested_webpack_exports__})(),module.exports=t()},96895:e=>{"use strict";e.exports=require("chalk")},44922:e=>{"use strict";e.exports=require("class-transformer")},97403:e=>{"use strict";e.exports=require("class-validator")},6858:e=>{"use strict";e.exports=require("commander")},77679:e=>{"use strict";e.exports=require("figlet")},31832:e=>{"use strict";e.exports=require("knex")},54587:e=>{"use strict";e.exports=require("parse-database-url")},42613:e=>{"use strict";e.exports=require("assert")},35317:e=>{"use strict";e.exports=require("child_process")},49140:e=>{"use strict";e.exports=require("constants")},76982:e=>{"use strict";e.exports=require("crypto")},24434:e=>{"use strict";e.exports=require("events")},79896:e=>{"use strict";e.exports=require("fs")},58611:e=>{"use strict";e.exports=require("http")},65692:e=>{"use strict";e.exports=require("https")},70857:e=>{"use strict";e.exports=require("os")},16928:e=>{"use strict";e.exports=require("path")},2203:e=>{"use strict";e.exports=require("stream")},52018:e=>{"use strict";e.exports=require("tty")},87016:e=>{"use strict";e.exports=require("url")},39023:e=>{"use strict";e.exports=require("util")},43106:e=>{"use strict";e.exports=require("zlib")},9426:(e,t,n)=>{"use strict";const a=n(78455),r=n(87016),i=n(96350),s=n(58611),o=n(65692),c=n(39023),u=n(1404),l=n(43106),p=n(2203),d=n(24434);function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const f=m(a),h=m(r),b=m(s),g=m(o),y=m(c),v=m(u),_=m(l),E=m(p);function x(e,t){return function(){return e.apply(t,arguments)}}const{toString:T}=Object.prototype,{getPrototypeOf:O}=Object,D=(w=Object.create(null),e=>{const t=T.call(e);return w[t]||(w[t]=t.slice(8,-1).toLowerCase())});var w;const S=e=>(e=e.toLowerCase(),t=>D(t)===e),A=e=>t=>typeof t===e,{isArray:C}=Array,R=A("undefined");const N=S("ArrayBuffer");const I=A("string"),M=A("function"),L=A("number"),j=e=>null!==e&&"object"==typeof e,P=e=>{if("object"!==D(e))return!1;const t=O(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},k=S("Date"),F=S("File"),$=S("Blob"),q=S("FileList"),U=S("URLSearchParams");function B(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let a,r;if("object"!=typeof e&&(e=[e]),C(e))for(a=0,r=e.length;a<r;a++)t.call(null,e[a],a,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let s;for(a=0;a<i;a++)s=r[a],t.call(null,e[s],s,e)}}function H(e,t){t=t.toLowerCase();const n=Object.keys(e);let a,r=n.length;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,W=e=>!R(e)&&e!==G;const z=(Y="undefined"!=typeof Uint8Array&&O(Uint8Array),e=>Y&&e instanceof Y);var Y;const V=S("HTMLFormElement"),K=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),J=S("RegExp"),Q=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};B(n,((n,r)=>{let i;!1!==(i=t(n,r,e))&&(a[r]=i||n)})),Object.defineProperties(e,a)},X="abcdefghijklmnopqrstuvwxyz",Z="0123456789",ee={DIGIT:Z,ALPHA:X,ALPHA_DIGIT:X+X.toUpperCase()+Z};const te=S("AsyncFunction"),ne={isArray:C,isArrayBuffer:N,isBuffer:function(e){return null!==e&&!R(e)&&null!==e.constructor&&!R(e.constructor)&&M(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||M(e.append)&&("formdata"===(t=D(e))||"object"===t&&M(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&N(e.buffer),t},isString:I,isNumber:L,isBoolean:e=>!0===e||!1===e,isObject:j,isPlainObject:P,isUndefined:R,isDate:k,isFile:F,isBlob:$,isRegExp:J,isFunction:M,isStream:e=>j(e)&&M(e.pipe),isURLSearchParams:U,isTypedArray:z,isFileList:q,forEach:B,merge:function e(){const{caseless:t}=W(this)&&this||{},n={},a=(a,r)=>{const i=t&&H(n,r)||r;P(n[i])&&P(a)?n[i]=e(n[i],a):P(a)?n[i]=e({},a):C(a)?n[i]=a.slice():n[i]=a};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&B(arguments[e],a);return n},extend:(e,t,n,{allOwnKeys:a}={})=>(B(t,((t,a)=>{n&&M(t)?e[a]=x(t,n):e[a]=t}),{allOwnKeys:a}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,a)=>{let r,i,s;const o={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],a&&!a(s,e,t)||o[s]||(t[s]=e[s],o[s]=!0);e=!1!==n&&O(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:D,kindOfTest:S,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return-1!==a&&a===n},toArray:e=>{if(!e)return null;if(C(e))return e;let t=e.length;if(!L(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=n.next())&&!a.done;){const n=a.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const a=[];for(;null!==(n=e.exec(t));)a.push(n);return a},isHTMLForm:V,hasOwnProperty:K,hasOwnProp:K,reduceDescriptors:Q,freezeMethods:e=>{Q(e,((t,n)=>{if(M(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const a=e[n];M(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},a=e=>{e.forEach((e=>{n[e]=!0}))};return C(e)?a(e):a(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:H,global:G,isContextDefined:W,ALPHABET:ee,generateString:(e=16,t=ee.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;e--;)n+=t[Math.random()*a|0];return n},isSpecCompliantForm:function(e){return!!(e&&M(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,a)=>{if(j(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[a]=e;const r=C(e)?[]:{};return B(e,((e,t)=>{const i=n(e,a+1);!R(i)&&(r[t]=i)})),t[a]=void 0,r}}return e};return n(e,0)},isAsyncFn:te,isThenable:e=>e&&(j(e)||M(e))&&M(e.then)&&M(e.catch)};function ae(e,t,n,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r)}ne.inherits(ae,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ne.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const re=ae.prototype,ie={};function se(e){return ne.isPlainObject(e)||ne.isArray(e)}function oe(e){return ne.endsWith(e,"[]")?e.slice(0,-2):e}function ce(e,t,n){return e?e.concat(t).map((function(e,t){return e=oe(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ie[e]={value:e}})),Object.defineProperties(ae,ie),Object.defineProperty(re,"isAxiosError",{value:!0}),ae.from=(e,t,n,a,r,i)=>{const s=Object.create(re);return ne.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),ae.call(s,e.message,t,n,a,r),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const ue=ne.toFlatObject(ne,{},null,(function(e){return/^is[A-Z]/.test(e)}));function le(e,t,n){if(!ne.isObject(e))throw new TypeError("target must be an object");t=t||new(f.default||FormData);const a=(n=ne.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ne.isUndefined(t[e])}))).metaTokens,r=n.visitor||u,i=n.dots,s=n.indexes,o=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ne.isSpecCompliantForm(t);if(!ne.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ne.isDate(e))return e.toISOString();if(!o&&ne.isBlob(e))throw new ae("Blob is not supported. Use a Buffer instead.");return ne.isArrayBuffer(e)||ne.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,r){let o=e;if(e&&!r&&"object"==typeof e)if(ne.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(ne.isArray(e)&&function(e){return ne.isArray(e)&&!e.some(se)}(e)||(ne.isFileList(e)||ne.endsWith(n,"[]"))&&(o=ne.toArray(e)))return n=oe(n),o.forEach((function(e,a){!ne.isUndefined(e)&&null!==e&&t.append(!0===s?ce([n],a,i):null===s?n:n+"[]",c(e))})),!1;return!!se(e)||(t.append(ce(r,n,i),c(e)),!1)}const l=[],p=Object.assign(ue,{defaultVisitor:u,convertValue:c,isVisitable:se});if(!ne.isObject(e))throw new TypeError("data must be an object");return function e(n,a){if(!ne.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+a.join("."));l.push(n),ne.forEach(n,(function(n,i){!0===(!(ne.isUndefined(n)||null===n)&&r.call(t,n,ne.isString(i)?i.trim():i,a,p))&&e(n,a?a.concat(i):[i])})),l.pop()}}(e),t}function pe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function de(e,t){this._pairs=[],e&&le(e,this,t)}const me=de.prototype;function fe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function he(e,t,n){if(!t)return e;const a=n&&n.encode||fe,r=n&&n.serialize;let i;if(i=r?r(t,n):ne.isURLSearchParams(t)?t.toString():new de(t,n).toString(a),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}me.append=function(e,t){this._pairs.push([e,t])},me.toString=function(e){const t=e?function(t){return e.call(this,t,pe)}:pe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const be=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ne.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ge={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ye={isNode:!0,classes:{URLSearchParams:h.default.URLSearchParams,FormData:f.default,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]},ve="undefined"!=typeof window&&"undefined"!=typeof document,_e=(Ee="undefined"!=typeof navigator&&navigator.product,ve&&["ReactNative","NativeScript","NS"].indexOf(Ee)<0);var Ee;const xe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Te={...Object.freeze({__proto__:null,hasBrowserEnv:ve,hasStandardBrowserWebWorkerEnv:xe,hasStandardBrowserEnv:_e}),...ye};function Oe(e){function t(e,n,a,r){let i=e[r++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),o=r>=e.length;if(i=!i&&ne.isArray(a)?a.length:i,o)return ne.hasOwnProp(a,i)?a[i]=[a[i],n]:a[i]=n,!s;a[i]&&ne.isObject(a[i])||(a[i]=[]);return t(e,n,a[i],r)&&ne.isArray(a[i])&&(a[i]=function(e){const t={},n=Object.keys(e);let a;const r=n.length;let i;for(a=0;a<r;a++)i=n[a],t[i]=e[i];return t}(a[i])),!s}if(ne.isFormData(e)&&ne.isFunction(e.entries)){const n={};return ne.forEachEntry(e,((e,a)=>{t(function(e){return ne.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),a,n,0)})),n}return null}const De={transitional:ge,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,r=ne.isObject(e);r&&ne.isHTMLForm(e)&&(e=new FormData(e));if(ne.isFormData(e))return a?JSON.stringify(Oe(e)):e;if(ne.isArrayBuffer(e)||ne.isBuffer(e)||ne.isStream(e)||ne.isFile(e)||ne.isBlob(e))return e;if(ne.isArrayBufferView(e))return e.buffer;if(ne.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return le(e,new Te.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,a){return Te.isNode&&ne.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=ne.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return le(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||a?(t.setContentType("application/json",!1),function(e,t,n){if(ne.isString(e))try{return(t||JSON.parse)(e),ne.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||De.transitional,n=t&&t.forcedJSONParsing,a="json"===this.responseType;if(e&&ne.isString(e)&&(n&&!this.responseType||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ae.from(e,ae.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Te.classes.FormData,Blob:Te.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ne.forEach(["delete","get","head","post","put","patch"],(e=>{De.headers[e]={}}));const we=De,Se=ne.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ae=Symbol("internals");function Ce(e){return e&&String(e).trim().toLowerCase()}function Re(e){return!1===e||null==e?e:ne.isArray(e)?e.map(Re):String(e)}function Ne(e,t,n,a,r){return ne.isFunction(a)?a.call(this,t,n):(r&&(t=n),ne.isString(t)?ne.isString(a)?-1!==t.indexOf(a):ne.isRegExp(a)?a.test(t):void 0:void 0)}class Ie{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function r(e,t,n){const r=Ce(t);if(!r)throw new Error("header name must be a non-empty string");const i=ne.findKey(a,r);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||t]=Re(e))}const i=(e,t)=>ne.forEach(e,((e,n)=>r(e,n,t)));return ne.isPlainObject(e)||e instanceof this.constructor?i(e,t):ne.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?i((e=>{const t={};let n,a,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),a=e.substring(r+1).trim(),!n||t[n]&&Se[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=Ce(e)){const n=ne.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(ne.isFunction(t))return t.call(this,e,n);if(ne.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ce(e)){const n=ne.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ne(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function r(e){if(e=Ce(e)){const r=ne.findKey(n,e);!r||t&&!Ne(0,n[r],r,t)||(delete n[r],a=!0)}}return ne.isArray(e)?e.forEach(r):r(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const r=t[n];e&&!Ne(0,this[r],r,e,!0)||(delete this[r],a=!0)}return a}normalize(e){const t=this,n={};return ne.forEach(this,((a,r)=>{const i=ne.findKey(n,r);if(i)return t[i]=Re(a),void delete t[r];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();s!==r&&delete t[r],t[s]=Re(a),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ne.forEach(this,((n,a)=>{null!=n&&!1!==n&&(t[a]=e&&ne.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ae]=this[Ae]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=Ce(e);t[a]||(!function(e,t){const n=ne.toCamelCase(" "+t);["get","set","has"].forEach((a=>{Object.defineProperty(e,a+n,{value:function(e,n,r){return this[a].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[a]=!0)}return ne.isArray(e)?e.forEach(a):a(e),this}}Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ne.reduceDescriptors(Ie.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),ne.freezeMethods(Ie);const Me=Ie;function Le(e,t){const n=this||we,a=t||n,r=Me.from(a.headers);let i=a.data;return ne.forEach(e,(function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)})),r.normalize(),i}function je(e){return!(!e||!e.__CANCEL__)}function Pe(e,t,n){ae.call(this,null==e?"canceled":e,ae.ERR_CANCELED,t,n),this.name="CanceledError"}function ke(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function Fe(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}ne.inherits(Pe,ae,{__CANCEL__:!0});const $e="1.6.8";function qe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const Ue=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Be(e,t){e=e||10;const n=new Array(e),a=new Array(e);let r,i=0,s=0;return t=void 0!==t?t:1e3,function(o){const c=Date.now(),u=a[s];r||(r=c),n[i]=o,a[i]=c;let l=s,p=0;for(;l!==i;)p+=n[l++],l%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),c-r<t)return;const d=u&&c-u;return d?Math.round(1e3*p/d):void 0}}const He=Symbol("internals");class Ge extends E.default.Transform{constructor(e){super({readableHighWaterMark:(e=ne.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!ne.isUndefined(t[e])))).chunkSize});const t=this,n=this[He]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},a=Be(n.ticksRate*e.samplesCount,n.timeWindow);this.on("newListener",(e=>{"progress"===e&&(n.isCaptured||(n.isCaptured=!0))}));let r=0;n.updateProgress=function(e,t){let n=0;const a=1e3/t;let r=null;return function(t,i){const s=Date.now();if(t||s-n>a)return r&&(clearTimeout(r),r=null),n=s,e.apply(null,i);r||(r=setTimeout((()=>(r=null,n=Date.now(),e.apply(null,i))),a-(s-n)))}}((function(){const e=n.length,i=n.bytesSeen,s=i-r;if(!s||t.destroyed)return;const o=a(s);r=i,process.nextTick((()=>{t.emit("progress",{loaded:i,total:e,progress:e?i/e:void 0,bytes:s,rate:o||void 0,estimated:o&&e&&i<=e?(e-i)/o:void 0})}))}),n.ticksRate);const i=()=>{n.updateProgress(!0)};this.once("end",i),this.once("error",i)}_read(e){const t=this[He];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const a=this,r=this[He],i=r.maxRate,s=this.readableHighWaterMark,o=r.timeWindow,c=i/(1e3/o),u=!1!==r.minChunkSize?Math.max(r.minChunkSize,.01*c):0;const l=(e,t)=>{const n=Buffer.byteLength(e);let l,p=null,d=s,m=0;if(i){const e=Date.now();(!r.ts||(m=e-r.ts)>=o)&&(r.ts=e,l=c-r.bytes,r.bytes=l<0?-l:0,m=0),l=c-r.bytes}if(i){if(l<=0)return setTimeout((()=>{t(null,e)}),o-m);l<d&&(d=l)}d&&n>d&&n-d>u&&(p=e.subarray(d),e=e.subarray(0,d)),function(e,t){const n=Buffer.byteLength(e);r.bytesSeen+=n,r.bytes+=n,r.isCaptured&&r.updateProgress(),a.push(e)?process.nextTick(t):r.onReadCallback=()=>{r.onReadCallback=null,process.nextTick(t)}}(e,p?()=>{process.nextTick(t,null,p)}:t)};l(e,(function e(t,a){if(t)return n(t);a?l(a,e):n(null)}))}setLength(e){return this[He].length=+e,this}}const We=Ge,{asyncIterator:ze}=Symbol,Ye=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[ze]?yield*e[ze]():yield e},Ve=ne.ALPHABET.ALPHA_DIGIT+"-_",Ke=new c.TextEncoder,Je="\r\n",Qe=Ke.encode(Je);class Xe{constructor(e,t){const{escapeName:n}=this.constructor,a=ne.isString(t);let r=`Content-Disposition: form-data; name="${n(e)}"${!a&&t.name?`; filename="${n(t.name)}"`:""}${Je}`;a?t=Ke.encode(String(t).replace(/\r?\n|\r\n?/g,Je)):r+=`Content-Type: ${t.type||"application/octet-stream"}${Je}`,this.headers=Ke.encode(r+Je),this.contentLength=a?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;ne.isTypedArray(e)?yield e:yield*Ye(e),yield Qe}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}const Ze=(e,t,n)=>{const{tag:a="form-data-boundary",size:r=25,boundary:i=a+"-"+ne.generateString(r,Ve)}=n||{};if(!ne.isFormData(e))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");const s=Ke.encode("--"+i+Je),o=Ke.encode("--"+i+"--"+Je+Je);let c=o.byteLength;const u=Array.from(e.entries()).map((([e,t])=>{const n=new Xe(e,t);return c+=n.size,n}));c+=s.byteLength*u.length,c=ne.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(c)&&(l["Content-Length"]=c),t&&t(l),p.Readable.from(async function*(){for(const e of u)yield s,yield*e.encode();yield o}())};class et extends E.default.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}const tt=et,nt=(e,t)=>ne.isAsyncFn(e)?function(...n){const a=n.pop();e.apply(this,n).then((e=>{try{t?a(null,...t(e)):a(null,e)}catch(e){a(e)}}),a)}:e,at={flush:_.default.constants.Z_SYNC_FLUSH,finishFlush:_.default.constants.Z_SYNC_FLUSH},rt={flush:_.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:_.default.constants.BROTLI_OPERATION_FLUSH},it=ne.isFunction(_.default.createBrotliDecompress),{http:st,https:ot}=v.default,ct=/https:?/,ut=Te.protocols.map((e=>e+":"));function lt(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function pt(e,t,n){let a=t;if(!a&&!1!==a){const e=i.getProxyForUrl(n);e&&(a=new URL(e))}if(a){if(a.username&&(a.auth=(a.username||"")+":"+(a.password||"")),a.auth){(a.auth.username||a.auth.password)&&(a.auth=(a.auth.username||"")+":"+(a.auth.password||""));const t=Buffer.from(a.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=a.hostname||a.host;e.hostname=t,e.host=t,e.port=a.port,e.path=n,a.protocol&&(e.protocol=a.protocol.includes(":")?a.protocol:`${a.protocol}:`)}e.beforeRedirects.proxy=function(e){pt(e,t,e.href)}}const dt="undefined"!=typeof process&&"process"===ne.kindOf(process),mt=(e,t)=>(({address:e,family:t})=>{if(!ne.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(ne.isObject(e)?e:{address:e,family:t}),ft=dt&&function(e){return t=async function(t,n,a){let{data:r,lookup:i,family:s}=e;const{responseType:o,responseEncoding:c}=e,u=e.method.toUpperCase();let l,p,m=!1;if(i){const e=nt(i,(e=>ne.isArray(e)?e:[e]));i=(t,n,a)=>{e(t,n,((e,t,r)=>{if(e)return a(e);const i=ne.isArray(t)?t.map((e=>mt(e))):[mt(t,r)];n.all?a(e,i):a(e,i[0].address,i[0].family)}))}}const f=new d.EventEmitter,h=()=>{e.cancelToken&&e.cancelToken.unsubscribe(v),e.signal&&e.signal.removeEventListener("abort",v),f.removeAllListeners()};function v(t){f.emit("abort",!t||t.type?new Pe(null,e,p):t)}a(((e,t)=>{l=!0,t&&(m=!0,h())})),f.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(v),e.signal&&(e.signal.aborted?v():e.signal.addEventListener("abort",v)));const x=Fe(e.baseURL,e.url),T=new URL(x,"http://localhost"),O=T.protocol||ut[0];if("data:"===O){let a;if("GET"!==u)return ke(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{a=function(e,t,n){const a=n&&n.Blob||Te.classes.Blob,r=qe(e);if(void 0===t&&a&&(t=!0),"data"===r){e=r.length?e.slice(r.length+1):e;const n=Ue.exec(e);if(!n)throw new ae("Invalid URL",ae.ERR_INVALID_URL);const i=n[1],s=n[2],o=n[3],c=Buffer.from(decodeURIComponent(o),s?"base64":"utf8");if(t){if(!a)throw new ae("Blob is not supported",ae.ERR_NOT_SUPPORT);return new a([c],{type:i})}return c}throw new ae("Unsupported protocol "+r,ae.ERR_NOT_SUPPORT)}(e.url,"blob"===o,{Blob:e.env&&e.env.Blob})}catch(t){throw ae.from(t,ae.ERR_BAD_REQUEST,e)}return"text"===o?(a=a.toString(c),c&&"utf8"!==c||(a=ne.stripBOM(a))):"stream"===o&&(a=E.default.Readable.from(a)),ke(t,n,{data:a,status:200,statusText:"OK",headers:new Me,config:e})}if(-1===ut.indexOf(O))return n(new ae("Unsupported protocol "+O,ae.ERR_BAD_REQUEST,e));const D=Me.from(e.headers).normalize();D.set("User-Agent","axios/"+$e,!1);const w=e.onDownloadProgress,S=e.onUploadProgress,A=e.maxRate;let C,R;if(ne.isSpecCompliantForm(r)){const e=D.getContentType(/boundary=([-_\w\d]{10,70})/i);r=Ze(r,(e=>{D.set(e)}),{tag:`axios-${$e}-boundary`,boundary:e&&e[1]||void 0})}else if(ne.isFormData(r)&&ne.isFunction(r.getHeaders)){if(D.set(r.getHeaders()),!D.hasContentLength())try{const e=await y.default.promisify(r.getLength).call(r);Number.isFinite(e)&&e>=0&&D.setContentLength(e)}catch(e){}}else if(ne.isBlob(r))r.size&&D.setContentType(r.type||"application/octet-stream"),D.setContentLength(r.size||0),r=E.default.Readable.from(Ye(r));else if(r&&!ne.isStream(r)){if(Buffer.isBuffer(r));else if(ne.isArrayBuffer(r))r=Buffer.from(new Uint8Array(r));else{if(!ne.isString(r))return n(new ae("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",ae.ERR_BAD_REQUEST,e));r=Buffer.from(r,"utf-8")}if(D.setContentLength(r.length,!1),e.maxBodyLength>-1&&r.length>e.maxBodyLength)return n(new ae("Request body larger than maxBodyLength limit",ae.ERR_BAD_REQUEST,e))}const N=ne.toFiniteNumber(D.getContentLength());let I,M;ne.isArray(A)?(C=A[0],R=A[1]):C=R=A,r&&(S||C)&&(ne.isStream(r)||(r=E.default.Readable.from(r,{objectMode:!1})),r=E.default.pipeline([r,new We({length:N,maxRate:ne.toFiniteNumber(C)})],ne.noop),S&&r.on("progress",(e=>{S(Object.assign(e,{upload:!0}))}))),e.auth&&(I=(e.auth.username||"")+":"+(e.auth.password||"")),!I&&T.username&&(I=T.username+":"+T.password),I&&D.delete("authorization");try{M=he(T.pathname+T.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const a=new Error(t.message);return a.config=e,a.url=e.url,a.exists=!0,n(a)}D.set("Accept-Encoding","gzip, compress, deflate"+(it?", br":""),!1);const L={path:M,method:u,headers:D.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:I,protocol:O,family:s,beforeRedirect:lt,beforeRedirects:{}};let j;!ne.isUndefined(i)&&(L.lookup=i),e.socketPath?L.socketPath=e.socketPath:(L.hostname=T.hostname,L.port=T.port,pt(L,e.proxy,O+"//"+T.hostname+(T.port?":"+T.port:"")+L.path));const P=ct.test(L.protocol);if(L.agent=P?e.httpsAgent:e.httpAgent,e.transport?j=e.transport:0===e.maxRedirects?j=P?g.default:b.default:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),j=P?ot:st),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),p=j.request(L,(function(a){if(p.destroyed)return;const r=[a],i=+a.headers["content-length"];if(w){const e=new We({length:ne.toFiniteNumber(i),maxRate:ne.toFiniteNumber(R)});w&&e.on("progress",(e=>{w(Object.assign(e,{download:!0}))})),r.push(e)}let s=a;const l=a.req||p;if(!1!==e.decompress&&a.headers["content-encoding"])switch("HEAD"!==u&&204!==a.statusCode||delete a.headers["content-encoding"],(a.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":r.push(_.default.createUnzip(at)),delete a.headers["content-encoding"];break;case"deflate":r.push(new tt),r.push(_.default.createUnzip(at)),delete a.headers["content-encoding"];break;case"br":it&&(r.push(_.default.createBrotliDecompress(rt)),delete a.headers["content-encoding"])}s=r.length>1?E.default.pipeline(r,ne.noop):r[0];const d=E.default.finished(s,(()=>{d(),h()})),b={status:a.statusCode,statusText:a.statusMessage,headers:new Me(a.headers),config:e,request:l};if("stream"===o)b.data=s,ke(t,n,b);else{const a=[];let r=0;s.on("data",(function(t){a.push(t),r+=t.length,e.maxContentLength>-1&&r>e.maxContentLength&&(m=!0,s.destroy(),n(new ae("maxContentLength size of "+e.maxContentLength+" exceeded",ae.ERR_BAD_RESPONSE,e,l)))})),s.on("aborted",(function(){if(m)return;const t=new ae("maxContentLength size of "+e.maxContentLength+" exceeded",ae.ERR_BAD_RESPONSE,e,l);s.destroy(t),n(t)})),s.on("error",(function(t){p.destroyed||n(ae.from(t,null,e,l))})),s.on("end",(function(){try{let e=1===a.length?a[0]:Buffer.concat(a);"arraybuffer"!==o&&(e=e.toString(c),c&&"utf8"!==c||(e=ne.stripBOM(e))),b.data=e}catch(t){return n(ae.from(t,null,e,b.request,b))}ke(t,n,b)}))}f.once("abort",(e=>{s.destroyed||(s.emit("error",e),s.destroy())}))})),f.once("abort",(e=>{n(e),p.destroy(e)})),p.on("error",(function(t){n(ae.from(t,null,e,p))})),p.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void n(new ae("error trying to parse `config.timeout` to int",ae.ERR_BAD_OPTION_VALUE,e,p));p.setTimeout(t,(function(){if(l)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||ge;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new ae(t,a.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,p)),v()}))}if(ne.isStream(r)){let t=!1,n=!1;r.on("end",(()=>{t=!0})),r.once("error",(e=>{n=!0,p.destroy(e)})),r.on("close",(()=>{t||n||v(new Pe("Request stream has been aborted",e,p))})),r.pipe(p)}else p.end(r)},new Promise(((e,n)=>{let a,r;const i=(e,t)=>{r||(r=!0,a&&a(e,t))},s=e=>{i(e,!0),n(e)};t((t=>{i(t),e(t)}),s,(e=>a=e)).catch(s)}));var t},ht=Te.hasStandardBrowserEnv?{write(e,t,n,a,r,i){const s=[e+"="+encodeURIComponent(t)];ne.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),ne.isString(a)&&s.push("path="+a),ne.isString(r)&&s.push("domain="+r),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}},bt=Te.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function a(n){let a=n;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=a(window.location.href),function(e){const t=ne.isString(e)?a(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function gt(e,t){let n=0;const a=Be(50,250);return r=>{const i=r.loaded,s=r.lengthComputable?r.total:void 0,o=i-n,c=a(o);n=i;const u={loaded:i,total:s,progress:s?i/s:void 0,bytes:o,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const yt={http:ft,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let a=e.data;const r=Me.from(e.headers).normalize();let i,s,{responseType:o,withXSRFToken:c}=e;function u(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}if(ne.isFormData(a))if(Te.hasStandardBrowserEnv||Te.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if(!1!==(s=r.getContentType())){const[e,...t]=s?s.split(";").map((e=>e.trim())).filter(Boolean):[];r.setContentType([e||"multipart/form-data",...t].join("; "))}let l=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const p=Fe(e.baseURL,e.url);function d(){if(!l)return;const a=Me.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders());ke((function(e){t(e),u()}),(function(e){n(e),u()}),{data:o&&"text"!==o&&"json"!==o?l.response:l.responseText,status:l.status,statusText:l.statusText,headers:a,config:e,request:l}),l=null}if(l.open(e.method.toUpperCase(),he(p,e.params,e.paramsSerializer),!0),l.timeout=e.timeout,"onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){l&&4===l.readyState&&(0!==l.status||l.responseURL&&0===l.responseURL.indexOf("file:"))&&setTimeout(d)},l.onabort=function(){l&&(n(new ae("Request aborted",ae.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new ae("Network Error",ae.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const a=e.transitional||ge;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new ae(t,a.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,l)),l=null},Te.hasStandardBrowserEnv&&(c&&ne.isFunction(c)&&(c=c(e)),c||!1!==c&&bt(p))){const t=e.xsrfHeaderName&&e.xsrfCookieName&&ht.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===a&&r.setContentType(null),"setRequestHeader"in l&&ne.forEach(r.toJSON(),(function(e,t){l.setRequestHeader(t,e)})),ne.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&"json"!==o&&(l.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&l.addEventListener("progress",gt(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&l.upload&&l.upload.addEventListener("progress",gt(e.onUploadProgress)),(e.cancelToken||e.signal)&&(i=t=>{l&&(n(!t||t.type?new Pe(null,e,l):t),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(i),e.signal&&(e.signal.aborted?i():e.signal.addEventListener("abort",i)));const m=qe(p);m&&-1===Te.protocols.indexOf(m)?n(new ae("Unsupported protocol "+m+":",ae.ERR_BAD_REQUEST,e)):l.send(a||null)}))}};ne.forEach(yt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const vt=e=>`- ${e}`,_t=e=>ne.isFunction(e)||null===e||!1===e,Et=e=>{e=ne.isArray(e)?e:[e];const{length:t}=e;let n,a;const r={};for(let i=0;i<t;i++){let t;if(n=e[i],a=n,!_t(n)&&(a=yt[(t=String(n)).toLowerCase()],void 0===a))throw new ae(`Unknown adapter '${t}'`);if(a)break;r[t||"#"+i]=a}if(!a){const e=Object.entries(r).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new ae("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(vt).join("\n"):" "+vt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return a};function xt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pe(null,e)}function Tt(e){xt(e),e.headers=Me.from(e.headers),e.data=Le.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Et(e.adapter||we.adapter)(e).then((function(t){return xt(e),t.data=Le.call(e,e.transformResponse,t),t.headers=Me.from(t.headers),t}),(function(t){return je(t)||(xt(e),t&&t.response&&(t.response.data=Le.call(e,e.transformResponse,t.response),t.response.headers=Me.from(t.response.headers))),Promise.reject(t)}))}const Ot=e=>e instanceof Me?{...e}:e;function Dt(e,t){t=t||{};const n={};function a(e,t,n){return ne.isPlainObject(e)&&ne.isPlainObject(t)?ne.merge.call({caseless:n},e,t):ne.isPlainObject(t)?ne.merge({},t):ne.isArray(t)?t.slice():t}function r(e,t,n){return ne.isUndefined(t)?ne.isUndefined(e)?void 0:a(void 0,e,n):a(e,t,n)}function i(e,t){if(!ne.isUndefined(t))return a(void 0,t)}function s(e,t){return ne.isUndefined(t)?ne.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function o(n,r,i){return i in t?a(n,r):i in e?a(void 0,n):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(e,t)=>r(Ot(e),Ot(t),!0)};return ne.forEach(Object.keys(Object.assign({},e,t)),(function(a){const i=c[a]||r,s=i(e[a],t[a],a);ne.isUndefined(s)&&i!==o||(n[a]=s)})),n}const wt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{wt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const St={};wt.transitional=function(e,t,n){function a(e,t){return"[Axios v1.6.8] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new ae(a(r," has been removed"+(t?" in "+t:"")),ae.ERR_DEPRECATED);return t&&!St[r]&&(St[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}};const At={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const i=a[r],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new ae("option "+i+" must be "+n,ae.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}},validators:wt},Ct=At.validators;class Rt{constructor(e){this.defaults=e,this.interceptors={request:new be,response:new be}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Dt(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:r}=t;void 0!==n&&At.assertOptions(n,{silentJSONParsing:Ct.transitional(Ct.boolean),forcedJSONParsing:Ct.transitional(Ct.boolean),clarifyTimeoutError:Ct.transitional(Ct.boolean)},!1),null!=a&&(ne.isFunction(a)?t.paramsSerializer={serialize:a}:At.assertOptions(a,{encode:Ct.function,serialize:Ct.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=r&&ne.merge(r.common,r[t.method]);r&&ne.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=Me.concat(i,r);const s=[];let o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,p=0;if(!o){const e=[Tt.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);p<l;)u=u.then(e[p++],e[p++]);return u}l=s.length;let d=t;for(p=0;p<l;){const e=s[p++],t=s[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=Tt.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,l=c.length;p<l;)u=u.then(c[p++],c[p++]);return u}getUri(e){return he(Fe((e=Dt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ne.forEach(["delete","get","head","options"],(function(e){Rt.prototype[e]=function(t,n){return this.request(Dt(n||{},{method:e,url:t,data:(n||{}).data}))}})),ne.forEach(["post","put","patch"],(function(e){function t(t){return function(n,a,r){return this.request(Dt(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}Rt.prototype[e]=t(),Rt.prototype[e+"Form"]=t(!0)}));const Nt=Rt;class It{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const a=new Promise((e=>{n.subscribe(e),t=e})).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e((function(e,a,r){n.reason||(n.reason=new Pe(e,a,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new It((function(t){e=t})),cancel:e}}}const Mt=It;const Lt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Lt).forEach((([e,t])=>{Lt[t]=e}));const jt=Lt;const Pt=function e(t){const n=new Nt(t),a=x(Nt.prototype.request,n);return ne.extend(a,Nt.prototype,n,{allOwnKeys:!0}),ne.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e(Dt(t,n))},a}(we);Pt.Axios=Nt,Pt.CanceledError=Pe,Pt.CancelToken=Mt,Pt.isCancel=je,Pt.VERSION=$e,Pt.toFormData=le,Pt.AxiosError=ae,Pt.Cancel=Pt.CanceledError,Pt.all=function(e){return Promise.all(e)},Pt.spread=function(e){return function(t){return e.apply(null,t)}},Pt.isAxiosError=function(e){return ne.isObject(e)&&!0===e.isAxiosError},Pt.mergeConfig=Dt,Pt.AxiosHeaders=Me,Pt.formToJSON=e=>Oe(ne.isHTMLForm(e)?new FormData(e):e),Pt.getAdapter=Et,Pt.HttpStatusCode=jt,Pt.default=Pt,e.exports=Pt},88295:e=>{"use strict";class t{static get version(){return"1.3.8"}static toString(){return"JavaScript Expression Parser (JSEP) v"+t.version}static addUnaryOp(e){return t.max_unop_len=Math.max(e.length,t.max_unop_len),t.unary_ops[e]=1,t}static addBinaryOp(e,n,a){return t.max_binop_len=Math.max(e.length,t.max_binop_len),t.binary_ops[e]=n,a?t.right_associative.add(e):t.right_associative.delete(e),t}static addIdentifierChar(e){return t.additional_identifier_chars.add(e),t}static addLiteral(e,n){return t.literals[e]=n,t}static removeUnaryOp(e){return delete t.unary_ops[e],e.length===t.max_unop_len&&(t.max_unop_len=t.getMaxKeyLen(t.unary_ops)),t}static removeAllUnaryOps(){return t.unary_ops={},t.max_unop_len=0,t}static removeIdentifierChar(e){return t.additional_identifier_chars.delete(e),t}static removeBinaryOp(e){return delete t.binary_ops[e],e.length===t.max_binop_len&&(t.max_binop_len=t.getMaxKeyLen(t.binary_ops)),t.right_associative.delete(e),t}static removeAllBinaryOps(){return t.binary_ops={},t.max_binop_len=0,t}static removeLiteral(e){return delete t.literals[e],t}static removeAllLiterals(){return t.literals={},t}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new t(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map((e=>e.length)))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return t.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!t.binary_ops[String.fromCharCode(e)]||t.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return t.isIdentifierStart(e)||t.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,n){if(t.hooks[e]){const a={context:this,node:n};return t.hooks.run(e,a),a.node}return n}searchHook(e){if(t.hooks[e]){const n={context:this};return t.hooks[e].find((function(e){return e.call(n.context,n),n.node})),n.node}}gobbleSpaces(){let e=this.code;for(;e===t.SPACE_CODE||e===t.TAB_CODE||e===t.LF_CODE||e===t.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),n=1===e.length?e[0]:{type:t.COMPOUND,body:e};return this.runHook("after-all",n)}gobbleExpressions(e){let n,a,r=[];for(;this.index<this.expr.length;)if(n=this.code,n===t.SEMCOL_CODE||n===t.COMMA_CODE)this.index++;else if(a=this.gobbleExpression())r.push(a);else if(this.index<this.expr.length){if(n===e)break;this.throwError('Unexpected "'+this.char+'"')}return r}gobbleExpression(){const e=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",e)}gobbleBinaryOp(){this.gobbleSpaces();let e=this.expr.substr(this.index,t.max_binop_len),n=e.length;for(;n>0;){if(t.binary_ops.hasOwnProperty(e)&&(!t.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!t.isIdentifierPart(this.expr.charCodeAt(this.index+e.length))))return this.index+=n,e;e=e.substr(0,--n)}return!1}gobbleBinaryExpression(){let e,n,a,r,i,s,o,c,u;if(s=this.gobbleToken(),!s)return s;if(n=this.gobbleBinaryOp(),!n)return s;for(i={value:n,prec:t.binaryPrecedence(n),right_a:t.right_associative.has(n)},o=this.gobbleToken(),o||this.throwError("Expected expression after "+n),r=[s,i,o];n=this.gobbleBinaryOp();){if(a=t.binaryPrecedence(n),0===a){this.index-=n.length;break}i={value:n,prec:a,right_a:t.right_associative.has(n)},u=n;const c=e=>i.right_a&&e.right_a?a>e.prec:a<=e.prec;for(;r.length>2&&c(r[r.length-2]);)o=r.pop(),n=r.pop().value,s=r.pop(),e={type:t.BINARY_EXP,operator:n,left:s,right:o},r.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+u),r.push(i,e)}for(c=r.length-1,e=r[c];c>1;)e={type:t.BINARY_EXP,operator:r[c-1].value,left:r[c-2],right:e},c-=2;return e}gobbleToken(){let e,n,a,r;if(this.gobbleSpaces(),r=this.searchHook("gobble-token"),r)return this.runHook("after-token",r);if(e=this.code,t.isDecimalDigit(e)||e===t.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===t.SQUOTE_CODE||e===t.DQUOTE_CODE)r=this.gobbleStringLiteral();else if(e===t.OBRACK_CODE)r=this.gobbleArray();else{for(n=this.expr.substr(this.index,t.max_unop_len),a=n.length;a>0;){if(t.unary_ops.hasOwnProperty(n)&&(!t.isIdentifierStart(this.code)||this.index+n.length<this.expr.length&&!t.isIdentifierPart(this.expr.charCodeAt(this.index+n.length)))){this.index+=a;const e=this.gobbleToken();return e||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:t.UNARY_EXP,operator:n,argument:e,prefix:!0})}n=n.substr(0,--a)}t.isIdentifierStart(e)?(r=this.gobbleIdentifier(),t.literals.hasOwnProperty(r.name)?r={type:t.LITERAL,value:t.literals[r.name],raw:r.name}:r.name===t.this_str&&(r={type:t.THIS_EXP})):e===t.OPAREN_CODE&&(r=this.gobbleGroup())}return r?(r=this.gobbleTokenProperty(r),this.runHook("after-token",r)):this.runHook("after-token",!1)}gobbleTokenProperty(e){this.gobbleSpaces();let n=this.code;for(;n===t.PERIOD_CODE||n===t.OBRACK_CODE||n===t.OPAREN_CODE||n===t.QUMARK_CODE;){let a;if(n===t.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==t.PERIOD_CODE)break;a=!0,this.index+=2,this.gobbleSpaces(),n=this.code}this.index++,n===t.OBRACK_CODE?(e={type:t.MEMBER_EXP,computed:!0,object:e,property:this.gobbleExpression()},this.gobbleSpaces(),n=this.code,n!==t.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):n===t.OPAREN_CODE?e={type:t.CALL_EXP,arguments:this.gobbleArguments(t.CPAREN_CODE),callee:e}:(n===t.PERIOD_CODE||a)&&(a&&this.index--,this.gobbleSpaces(),e={type:t.MEMBER_EXP,computed:!1,object:e,property:this.gobbleIdentifier()}),a&&(e.optional=!0),this.gobbleSpaces(),n=this.code}return e}gobbleNumericLiteral(){let e,n,a="";for(;t.isDecimalDigit(this.code);)a+=this.expr.charAt(this.index++);if(this.code===t.PERIOD_CODE)for(a+=this.expr.charAt(this.index++);t.isDecimalDigit(this.code);)a+=this.expr.charAt(this.index++);if(e=this.char,"e"===e||"E"===e){for(a+=this.expr.charAt(this.index++),e=this.char,"+"!==e&&"-"!==e||(a+=this.expr.charAt(this.index++));t.isDecimalDigit(this.code);)a+=this.expr.charAt(this.index++);t.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+a+this.char+")")}return n=this.code,t.isIdentifierStart(n)?this.throwError("Variable names cannot start with a number ("+a+this.char+")"):(n===t.PERIOD_CODE||1===a.length&&a.charCodeAt(0)===t.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:t.LITERAL,value:parseFloat(a),raw:a}}gobbleStringLiteral(){let e="";const n=this.index,a=this.expr.charAt(this.index++);let r=!1;for(;this.index<this.expr.length;){let t=this.expr.charAt(this.index++);if(t===a){r=!0;break}if("\\"===t)switch(t=this.expr.charAt(this.index++),t){case"n":e+="\n";break;case"r":e+="\r";break;case"t":e+="\t";break;case"b":e+="\b";break;case"f":e+="\f";break;case"v":e+="\v";break;default:e+=t}else e+=t}return r||this.throwError('Unclosed quote after "'+e+'"'),{type:t.LITERAL,value:e,raw:this.expr.substring(n,this.index)}}gobbleIdentifier(){let e=this.code,n=this.index;for(t.isIdentifierStart(e)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length&&(e=this.code,t.isIdentifierPart(e));)this.index++;return{type:t.IDENTIFIER,name:this.expr.slice(n,this.index)}}gobbleArguments(e){const n=[];let a=!1,r=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let i=this.code;if(i===e){a=!0,this.index++,e===t.CPAREN_CODE&&r&&r>=n.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(i===t.COMMA_CODE){if(this.index++,r++,r!==n.length)if(e===t.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===t.CBRACK_CODE)for(let e=n.length;e<r;e++)n.push(null)}else if(n.length!==r&&0!==r)this.throwError("Expected comma");else{const e=this.gobbleExpression();e&&e.type!==t.COMPOUND||this.throwError("Expected comma"),n.push(e)}}return a||this.throwError("Expected "+String.fromCharCode(e)),n}gobbleGroup(){this.index++;let e=this.gobbleExpressions(t.CPAREN_CODE);if(this.code===t.CPAREN_CODE)return this.index++,1===e.length?e[0]:!!e.length&&{type:t.SEQUENCE_EXP,expressions:e};this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:t.ARRAY_EXP,elements:this.gobbleArguments(t.CBRACK_CODE)}}}const n=new class{add(e,t,n){if("string"!=typeof arguments[0])for(let e in arguments[0])this.add(e,arguments[0][e],arguments[1]);else(Array.isArray(e)?e:[e]).forEach((function(e){this[e]=this[e]||[],t&&this[e][n?"unshift":"push"](t)}),this)}run(e,t){this[e]=this[e]||[],this[e].forEach((function(e){e.call(t&&t.context?t.context:t,t)}))}};Object.assign(t,{hooks:n,plugins:new class{constructor(e){this.jsep=e,this.registered={}}register(...e){e.forEach((e=>{if("object"!=typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)}))}}(t),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10},right_associative:new Set,additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),t.max_unop_len=t.getMaxKeyLen(t.unary_ops),t.max_binop_len=t.getMaxKeyLen(t.binary_ops);const a=e=>new t(e).parse();Object.getOwnPropertyNames(t).forEach((e=>{void 0===a[e]&&"prototype"!==e&&(a[e]=t[e])})),a.Jsep=t;var r={name:"ternary",init(e){e.hooks.add("after-expression",(function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const n=t.node,a=this.gobbleExpression();if(a||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const r=this.gobbleExpression();if(r||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:n,consequent:a,alternate:r},n.operator&&e.binary_ops[n.operator]<=.9){let a=n;for(;a.right.operator&&e.binary_ops[a.right.operator]<=.9;)a=a.right;t.node.test=a.right,a.right=t.node,t.node=n}}else this.throwError("Expected :")}}))}};a.plugins.register(r),e.exports=a},39001:(e,t,n)=>{let a=n(76982),{urlAlphabet:r}=n(25971);let i,s,o=e=>{!i||i.length<e?(i=Buffer.allocUnsafe(128*e),a.randomFillSync(i),s=0):s+e>i.length&&(a.randomFillSync(i),s=0),s+=e},c=e=>(o(e-=0),i.subarray(s-e,s)),u=(e,t,n)=>{let a=(2<<31-Math.clz32(e.length-1|1))-1,r=Math.ceil(1.6*a*t/e.length);return(i=t)=>{let s="";for(;;){let t=n(r),o=r;for(;o--;)if(s+=e[t[o]&a]||"",s.length===i)return s}}};e.exports={nanoid:(e=21)=>{o(e-=0);let t="";for(let n=s-e;n<s;n++)t+=r[63&i[n]];return t},customAlphabet:(e,t=21)=>u(e,t,c),customRandom:u,urlAlphabet:r,random:c}},25971:e=>{e.exports={urlAlphabet:"useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"}},9753:()=>{var e;!function(e){!function(t){var n="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(e){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(e){}}(),a=r(e);function r(e,t){return function(n,a){Object.defineProperty(e,n,{configurable:!0,writable:!0,value:a}),t&&t(n,a)}}void 0!==n.Reflect&&(a=r(n.Reflect,a)),function(e,t){var n=Object.prototype.hasOwnProperty,a="function"==typeof Symbol,r=a&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=a&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",s="function"==typeof Object.create,o={__proto__:[]}instanceof Array,c=!s&&!o,u={create:s?function(){return pe(Object.create(null))}:o?function(){return pe({__proto__:null})}:function(){return pe({})},has:c?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:c?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),p="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:ce(),d="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:ue(),m="function"==typeof WeakMap?WeakMap:le(),f=a?Symbol.for("@reflect-metadata:registry"):void 0,h=re(),b=ie(h);function g(e,t,n,a){if(k(n)){if(!z(e))throw new TypeError;if(!V(t))throw new TypeError;return S(e,t)}if(!z(e))throw new TypeError;if(!q(t))throw new TypeError;if(!q(a)&&!k(a)&&!F(a))throw new TypeError;return F(a)&&(a=void 0),A(e,t,n=W(n),a)}function y(e,t){function n(n,a){if(!q(n))throw new TypeError;if(!k(a)&&!K(a))throw new TypeError;M(e,t,n,a)}return n}function v(e,t,n,a){if(!q(n))throw new TypeError;return k(a)||(a=W(a)),M(e,t,n,a)}function _(e,t,n){if(!q(t))throw new TypeError;return k(n)||(n=W(n)),C(e,t,n)}function E(e,t,n){if(!q(t))throw new TypeError;return k(n)||(n=W(n)),R(e,t,n)}function x(e,t,n){if(!q(t))throw new TypeError;return k(n)||(n=W(n)),N(e,t,n)}function T(e,t,n){if(!q(t))throw new TypeError;return k(n)||(n=W(n)),I(e,t,n)}function O(e,t){if(!q(e))throw new TypeError;return k(t)||(t=W(t)),L(e,t)}function D(e,t){if(!q(e))throw new TypeError;return k(t)||(t=W(t)),j(e,t)}function w(e,t,n){if(!q(t))throw new TypeError;if(k(n)||(n=W(n)),!q(t))throw new TypeError;k(n)||(n=W(n));var a=oe(t,n,!1);return!k(a)&&a.OrdinaryDeleteMetadata(e,t,n)}function S(e,t){for(var n=e.length-1;n>=0;--n){var a=(0,e[n])(t);if(!k(a)&&!F(a)){if(!V(a))throw new TypeError;t=a}}return t}function A(e,t,n,a){for(var r=e.length-1;r>=0;--r){var i=(0,e[r])(t,n,a);if(!k(i)&&!F(i)){if(!q(i))throw new TypeError;a=i}}return a}function C(e,t,n){if(R(e,t,n))return!0;var a=ne(t);return!F(a)&&C(e,a,n)}function R(e,t,n){var a=oe(t,n,!1);return!k(a)&&H(a.OrdinaryHasOwnMetadata(e,t,n))}function N(e,t,n){if(R(e,t,n))return I(e,t,n);var a=ne(t);return F(a)?void 0:N(e,a,n)}function I(e,t,n){var a=oe(t,n,!1);if(!k(a))return a.OrdinaryGetOwnMetadata(e,t,n)}function M(e,t,n,a){oe(n,a,!0).OrdinaryDefineOwnMetadata(e,t,n,a)}function L(e,t){var n=j(e,t),a=ne(e);if(null===a)return n;var r=L(a,t);if(r.length<=0)return n;if(n.length<=0)return r;for(var i=new d,s=[],o=0,c=n;o<c.length;o++){var u=c[o];i.has(u)||(i.add(u),s.push(u))}for(var l=0,p=r;l<p.length;l++){u=p[l];i.has(u)||(i.add(u),s.push(u))}return s}function j(e,t){var n=oe(e,t,!1);return n?n.OrdinaryOwnMetadataKeys(e,t):[]}function P(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function k(e){return void 0===e}function F(e){return null===e}function $(e){return"symbol"==typeof e}function q(e){return"object"==typeof e?null!==e:"function"==typeof e}function U(e,t){switch(P(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=3===t?"string":5===t?"number":"default",a=Q(e,r);if(void 0!==a){var i=a.call(e,n);if(q(i))throw new TypeError;return i}return B(e,"default"===n?"number":n)}function B(e,t){if("string"===t){var n=e.toString;if(Y(n))if(!q(r=n.call(e)))return r;if(Y(a=e.valueOf))if(!q(r=a.call(e)))return r}else{var a;if(Y(a=e.valueOf))if(!q(r=a.call(e)))return r;var r,i=e.toString;if(Y(i))if(!q(r=i.call(e)))return r}throw new TypeError}function H(e){return!!e}function G(e){return""+e}function W(e){var t=U(e,3);return $(t)?t:G(t)}function z(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function Y(e){return"function"==typeof e}function V(e){return"function"==typeof e}function K(e){switch(P(e)){case 3:case 4:return!0;default:return!1}}function J(e,t){return e===t||e!=e&&t!=t}function Q(e,t){var n=e[t];if(null!=n){if(!Y(n))throw new TypeError;return n}}function X(e){var t=Q(e,i);if(!Y(t))throw new TypeError;var n=t.call(e);if(!q(n))throw new TypeError;return n}function Z(e){return e.value}function ee(e){var t=e.next();return!t.done&&t}function te(e){var t=e.return;t&&t.call(e)}function ne(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===l)return t;if(t!==l)return t;var n=e.prototype,a=n&&Object.getPrototypeOf(n);if(null==a||a===Object.prototype)return t;var r=a.constructor;return"function"!=typeof r||r===e?t:r}function ae(){var e,n,a,r;k(f)||void 0===t.Reflect||f in t.Reflect||"function"!=typeof t.Reflect.defineMetadata||(e=se(t.Reflect));var i=new m,s={registerProvider:o,getProvider:u,setProvider:h};return s;function o(t){if(!Object.isExtensible(s))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case e===t:break;case k(n):n=t;break;case n===t:break;case k(a):a=t;break;case a===t:break;default:void 0===r&&(r=new d),r.add(t)}}function c(t,i){if(!k(n)){if(n.isProviderFor(t,i))return n;if(!k(a)){if(a.isProviderFor(t,i))return n;if(!k(r))for(var s=X(r);;){var o=ee(s);if(!o)return;var c=Z(o);if(c.isProviderFor(t,i))return te(s),c}}}if(!k(e)&&e.isProviderFor(t,i))return e}function u(e,t){var n,a=i.get(e);return k(a)||(n=a.get(t)),k(n)?(k(n=c(e,t))||(k(a)&&(a=new p,i.set(e,a)),a.set(t,n)),n):n}function l(e){if(k(e))throw new TypeError;return n===e||a===e||!k(r)&&r.has(e)}function h(e,t,n){if(!l(n))throw new Error("Metadata provider not registered.");var a=u(e,t);if(a!==n){if(!k(a))return!1;var r=i.get(e);k(r)&&(r=new p,i.set(e,r)),r.set(t,n)}return!0}}function re(){var e;return!k(f)&&q(t.Reflect)&&Object.isExtensible(t.Reflect)&&(e=t.Reflect[f]),k(e)&&(e=ae()),!k(f)&&q(t.Reflect)&&Object.isExtensible(t.Reflect)&&Object.defineProperty(t.Reflect,f,{enumerable:!1,configurable:!1,writable:!1,value:e}),e}function ie(e){var t=new m,n={isProviderFor:function(e,n){var a=t.get(e);return!k(a)&&a.has(n)},OrdinaryDefineOwnMetadata:s,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:i,OrdinaryOwnMetadataKeys:o,OrdinaryDeleteMetadata:c};return h.registerProvider(n),n;function a(a,r,i){var s=t.get(a),o=!1;if(k(s)){if(!i)return;s=new p,t.set(a,s),o=!0}var c=s.get(r);if(k(c)){if(!i)return;if(c=new p,s.set(r,c),!e.setProvider(a,r,n))throw s.delete(r),o&&t.delete(a),new Error("Wrong provider for target.")}return c}function r(e,t,n){var r=a(t,n,!1);return!k(r)&&H(r.has(e))}function i(e,t,n){var r=a(t,n,!1);if(!k(r))return r.get(e)}function s(e,t,n,r){a(n,r,!0).set(e,t)}function o(e,t){var n=[],r=a(e,t,!1);if(k(r))return n;for(var i=X(r.keys()),s=0;;){var o=ee(i);if(!o)return n.length=s,n;var c=Z(o);try{n[s]=c}catch(e){try{te(i)}finally{throw e}}s++}}function c(e,n,r){var i=a(n,r,!1);if(k(i))return!1;if(!i.delete(e))return!1;if(0===i.size){var s=t.get(n);k(s)||(s.delete(r),0===s.size&&t.delete(s))}return!0}}function se(e){var t=e.defineMetadata,n=e.hasOwnMetadata,a=e.getOwnMetadata,r=e.getOwnMetadataKeys,i=e.deleteMetadata,s=new m;return{isProviderFor:function(e,t){var n=s.get(e);return k(n)?!!r(e,t).length&&(k(n)&&(n=new d,s.set(e,n)),n.add(t),!0):n.has(t)},OrdinaryDefineOwnMetadata:t,OrdinaryHasOwnMetadata:n,OrdinaryGetOwnMetadata:a,OrdinaryOwnMetadataKeys:r,OrdinaryDeleteMetadata:i}}function oe(e,t,n){var a=h.getProvider(e,t);if(!k(a))return a;if(n){if(h.setProvider(e,t,b))return b;throw new Error("Illegal state.")}}function ce(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var a=this._keys.length,r=n+1;r<a;r++)this._keys[r-1]=this._keys[r],this._values[r-1]=this._values[r];return this._keys.length--,this._values.length--,J(t,this._cacheKey)&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,a)},t.prototype.values=function(){return new n(this._keys,this._values,r)},t.prototype.entries=function(){return new n(this._keys,this._values,s)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){if(!J(this._cacheKey,e)){this._cacheIndex=-1;for(var n=0;n<this._keys.length;n++)if(J(this._keys[n],e)){this._cacheIndex=n;break}}return this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function a(e,t){return e}function r(e,t){return t}function s(e,t){return[e,t]}}function ue(){return function(){function e(){this._map=new p}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.keys()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}()}function le(){var e=16,t=u.create(),a=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var e;do{e="@@WeakMap@@"+c()}while(u.has(t,e));return t[e]=!0,e}function i(e,t){if(!n.call(e,a)){if(!t)return;Object.defineProperty(e,a,{value:u.create()})}return e[a]}function s(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function o(e){return"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):s(new Uint8Array(e),e):s(new Array(e),e)}function c(){var t=o(e);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var n="",a=0;a<e;++a){var r=t[a];4!==a&&6!==a&&8!==a||(n+="-"),r<16&&(n+="0"),n+=r.toString(16).toLowerCase()}return n}}function pe(e){return e.__=void 0,delete e.__,e}e("decorate",g),e("metadata",y),e("defineMetadata",v),e("hasMetadata",_),e("hasOwnMetadata",E),e("getMetadata",x),e("getOwnMetadata",T),e("getMetadataKeys",O),e("getOwnMetadataKeys",D),e("deleteMetadata",w)}(a,n),void 0===n.Reflect&&(n.Reflect=e)}()}(e||(e={}))},58932:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__addDisposableResource:()=>L,__assign:()=>i,__asyncDelegator:()=>D,__asyncGenerator:()=>O,__asyncValues:()=>w,__await:()=>T,__awaiter:()=>f,__classPrivateFieldGet:()=>N,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>I,__createBinding:()=>b,__decorate:()=>o,__disposeResources:()=>P,__esDecorate:()=>u,__exportStar:()=>g,__extends:()=>r,__generator:()=>h,__importDefault:()=>R,__importStar:()=>C,__makeTemplateObject:()=>S,__metadata:()=>m,__param:()=>c,__propKey:()=>p,__read:()=>v,__rest:()=>s,__runInitializers:()=>l,__setFunctionName:()=>d,__spread:()=>_,__spreadArray:()=>x,__spreadArrays:()=>E,__values:()=>y,default:()=>k});var a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},a(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)};function s(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}function o(e,t,n,a){var r,i=arguments.length,s=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,n):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,a);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function c(e,t){return function(n,a){t(n,a,e)}}function u(e,t,n,a,r,i){function s(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var o,c=a.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?a.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,a.name):{}),d=!1,m=n.length-1;m>=0;m--){var f={};for(var h in a)f[h]="access"===h?{}:a[h];for(var h in a.access)f.access[h]=a.access[h];f.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(e||null))};var b=(0,n[m])("accessor"===c?{get:p.get,set:p.set}:p[u],f);if("accessor"===c){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw new TypeError("Object expected");(o=s(b.get))&&(p.get=o),(o=s(b.set))&&(p.set=o),(o=s(b.init))&&r.unshift(o)}else(o=s(b))&&("field"===c?r.unshift(o):p[u]=o)}l&&Object.defineProperty(l,a.name,p),d=!0}function l(e,t,n){for(var a=arguments.length>2,r=0;r<t.length;r++)n=a?t[r].call(e,n):t[r].call(e);return a?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function m(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,a){return new(n||(n=Promise))((function(r,i){function s(e){try{c(a.next(e))}catch(e){i(e)}}function o(e){try{c(a.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}c((a=a.apply(e,t||[])).next())}))}function h(e,t){var n,a,r,i,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(o){return function(c){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,o[0]&&(s=0)),s;)try{if(n=1,a&&(r=2&o[0]?a.return:o[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;switch(a=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,a=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=s.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],a=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}var b=Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||b(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],a=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var a,r,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return s}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function E(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var a=Array(e),r=0;for(t=0;t<n;t++)for(var i=arguments[t],s=0,o=i.length;s<o;s++,r++)a[r]=i[s];return a}function x(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function T(e){return this instanceof T?(this.v=e,this):new T(e)}function O(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,r=n.apply(e,t||[]),i=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(e){r[e]&&(a[e]=function(t){return new Promise((function(n,a){i.push([e,t,n,a])>1||o(e,t)}))})}function o(e,t){try{(n=r[e](t)).value instanceof T?Promise.resolve(n.value.v).then(c,u):l(i[0][2],n)}catch(e){l(i[0][3],e)}var n}function c(e){o("next",e)}function u(e){o("throw",e)}function l(e,t){e(t),i.shift(),i.length&&o(i[0][0],i[0][1])}}function D(e){var t,n;return t={},a("next"),a("throw",(function(e){throw e})),a("return"),t[Symbol.iterator]=function(){return this},t;function a(a,r){t[a]=e[a]?function(t){return(n=!n)?{value:T(e[a](t)),done:!1}:r?r(t):t}:r}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise((function(a,r){(function(e,t,n,a){Promise.resolve(a).then((function(t){e({value:t,done:n})}),t)})(a,r,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var A=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&b(t,e,n);return A(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function N(e,t,n,a){if("a"===n&&!a)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?a:"a"===n?a.call(e):a?a.value:t.get(e)}function I(e,t,n,a,r){if("m"===a)throw new TypeError("Private method is not writable");if("a"===a&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?r.call(e,n):r?r.value=n:t.set(e,n),n}function M(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function L(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var a;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");a=t[Symbol.asyncDispose]}if(void 0===a){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");a=t[Symbol.dispose]}if("function"!=typeof a)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:a,async:n})}else n&&e.stack.push({async:!0});return t}var j="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var a=new Error(n);return a.name="SuppressedError",a.error=e,a.suppressed=t,a};function P(e){function t(t){e.error=e.hasError?new j(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var a=e.stack.pop();try{var r=a.dispose&&a.dispose.call(a.value);if(a.async)return Promise.resolve(r).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const k={__extends:r,__assign:i,__rest:s,__decorate:o,__param:c,__metadata:m,__awaiter:f,__generator:h,__createBinding:b,__exportStar:g,__values:y,__read:v,__spread:_,__spreadArrays:E,__spreadArray:x,__await:T,__asyncGenerator:O,__asyncDelegator:D,__asyncValues:w,__makeTemplateObject:S,__importStar:C,__importDefault:R,__classPrivateFieldGet:N,__classPrivateFieldSet:I,__classPrivateFieldIn:M,__addDisposableResource:L,__disposeResources:P}},88809:e=>{"use strict";e.exports=JSON.parse('{"single":{"topLeft":"┌","topRight":"┐","bottomRight":"┘","bottomLeft":"└","vertical":"│","horizontal":"─"},"double":{"topLeft":"╔","topRight":"╗","bottomRight":"╝","bottomLeft":"╚","vertical":"║","horizontal":"═"},"round":{"topLeft":"╭","topRight":"╮","bottomRight":"╯","bottomLeft":"╰","vertical":"│","horizontal":"─"},"bold":{"topLeft":"┏","topRight":"┓","bottomRight":"┛","bottomLeft":"┗","vertical":"┃","horizontal":"━"},"singleDouble":{"topLeft":"╓","topRight":"╖","bottomRight":"╜","bottomLeft":"╙","vertical":"║","horizontal":"─"},"doubleSingle":{"topLeft":"╒","topRight":"╕","bottomRight":"╛","bottomLeft":"╘","vertical":"│","horizontal":"═"},"classic":{"topLeft":"+","topRight":"+","bottomRight":"+","bottomLeft":"+","vertical":"|","horizontal":"-"}}')},22087:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.amdD=function(){throw new Error("define cannot be used indirect")},__webpack_require__.amdO={},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__(89583);return __webpack_exports__})()));