@dooboostore/simple-boot-http-server 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/SimpleBootHttpServer.js +930 -2
- package/dist/cjs/SimpleBootHttpServer.js.map +7 -0
- package/dist/cjs/codes/HttpHeaders.js +71 -1
- package/dist/cjs/codes/HttpHeaders.js.map +7 -0
- package/dist/cjs/codes/HttpMethod.js +41 -1
- package/dist/cjs/codes/HttpMethod.js.map +7 -0
- package/dist/cjs/codes/HttpStatus.js +49 -1
- package/dist/cjs/codes/HttpStatus.js.map +7 -0
- package/dist/cjs/codes/Mimes.js +57 -1
- package/dist/cjs/codes/Mimes.js.map +7 -0
- package/dist/cjs/codes/index.js +145 -1
- package/dist/cjs/codes/index.js.map +7 -0
- package/dist/cjs/decorators/MethodMapping.js +265 -2
- package/dist/cjs/decorators/MethodMapping.js.map +7 -0
- package/dist/cjs/decorators/index.js +267 -2
- package/dist/cjs/decorators/index.js.map +7 -0
- package/dist/cjs/endpoints/CrossDomainHeaderEndPoint.js +55 -1
- package/dist/cjs/endpoints/CrossDomainHeaderEndPoint.js.map +7 -0
- package/dist/cjs/endpoints/EndPoint.js +18 -1
- package/dist/cjs/endpoints/EndPoint.js.map +7 -0
- package/dist/cjs/endpoints/HeaderEndPoint.js +41 -1
- package/dist/cjs/endpoints/HeaderEndPoint.js.map +7 -0
- package/dist/cjs/endpoints/index.js +73 -1
- package/dist/cjs/endpoints/index.js.map +7 -0
- package/dist/cjs/errors/BadRequestError.js +45 -1
- package/dist/cjs/errors/BadRequestError.js.map +7 -0
- package/dist/cjs/errors/ForbiddenError.js +45 -1
- package/dist/cjs/errors/ForbiddenError.js.map +7 -0
- package/dist/cjs/errors/HttpError.js +36 -1
- package/dist/cjs/errors/HttpError.js.map +7 -0
- package/dist/cjs/errors/InternalServerError.js +45 -1
- package/dist/cjs/errors/InternalServerError.js.map +7 -0
- package/dist/cjs/errors/NotFoundError.js +45 -1
- package/dist/cjs/errors/NotFoundError.js.map +7 -0
- package/dist/cjs/errors/UnauthorizedError.js +45 -1
- package/dist/cjs/errors/UnauthorizedError.js.map +7 -0
- package/dist/cjs/errors/index.js +83 -1
- package/dist/cjs/errors/index.js.map +7 -0
- package/dist/cjs/filters/CacheFilter.js +153 -1
- package/dist/cjs/filters/CacheFilter.js.map +7 -0
- package/dist/cjs/filters/Filter.js +18 -1
- package/dist/cjs/filters/Filter.js.map +7 -0
- package/dist/cjs/filters/HttpStatusFilter.js +44 -1
- package/dist/cjs/filters/HttpStatusFilter.js.map +7 -0
- package/dist/cjs/filters/OpenApi3Filter.js +83 -2
- package/dist/cjs/filters/OpenApi3Filter.js.map +7 -0
- package/dist/cjs/filters/ResourceFilter.js +91 -2
- package/dist/cjs/filters/ResourceFilter.js.map +7 -0
- package/dist/cjs/filters/ThrowFilter.js +47 -1
- package/dist/cjs/filters/ThrowFilter.js.map +7 -0
- package/dist/cjs/filters/index.js +318 -2
- package/dist/cjs/filters/index.js.map +7 -0
- package/dist/cjs/index.js +1756 -2
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/inject/InjectSituationType.js +33 -1
- package/dist/cjs/inject/InjectSituationType.js.map +7 -0
- package/dist/cjs/inject/index.js +35 -1
- package/dist/cjs/inject/index.js.map +7 -0
- package/dist/cjs/lifecycle/OnInit.js +18 -1
- package/dist/cjs/lifecycle/OnInit.js.map +7 -0
- package/dist/cjs/lifecycle/index.js +18 -1
- package/dist/cjs/lifecycle/index.js.map +7 -0
- package/dist/cjs/models/RequestResponse.js +500 -1
- package/dist/cjs/models/RequestResponse.js.map +7 -0
- package/dist/cjs/models/datas/HeaderData.js +35 -1
- package/dist/cjs/models/datas/HeaderData.js.map +7 -0
- package/dist/cjs/models/datas/MultipartData.js +18 -1
- package/dist/cjs/models/datas/MultipartData.js.map +7 -0
- package/dist/cjs/models/datas/ReqHeader.js +31 -1
- package/dist/cjs/models/datas/ReqHeader.js.map +7 -0
- package/dist/cjs/models/datas/Resource.js +550 -2
- package/dist/cjs/models/datas/Resource.js.map +7 -0
- package/dist/cjs/models/datas/body/ReqFormUrlBody.js +31 -1
- package/dist/cjs/models/datas/body/ReqFormUrlBody.js.map +7 -0
- package/dist/cjs/models/datas/body/ReqJsonBody.js +31 -1
- package/dist/cjs/models/datas/body/ReqJsonBody.js.map +7 -0
- package/dist/cjs/models/datas/body/ReqMultipartFormBody.js +34 -1
- package/dist/cjs/models/datas/body/ReqMultipartFormBody.js.map +7 -0
- package/dist/cjs/models/index.js +593 -2
- package/dist/cjs/models/index.js.map +7 -0
- package/dist/cjs/models/method/patch/PatchJson.js +49 -2
- package/dist/cjs/models/method/patch/PatchJson.js.map +7 -0
- package/dist/cjs/option/HttpServerOption.js +67 -1
- package/dist/cjs/option/HttpServerOption.js.map +7 -0
- package/dist/cjs/option/index.js +69 -1
- package/dist/cjs/option/index.js.map +7 -0
- package/dist/cjs/resolvers/Resolver.js +18 -1
- package/dist/cjs/resolvers/Resolver.js.map +7 -0
- package/dist/cjs/resolvers/{ResourceResorver.d.ts → ResourceResolver.d.ts} +2 -2
- package/dist/cjs/resolvers/{ResourceResorver.d.ts.map → ResourceResolver.d.ts.map} +1 -1
- package/dist/cjs/resolvers/ResourceResolver.js +571 -0
- package/dist/cjs/resolvers/ResourceResolver.js.map +7 -0
- package/dist/cjs/resolvers/index.d.ts +1 -1
- package/dist/cjs/resolvers/index.js +571 -2
- package/dist/cjs/resolvers/index.js.map +7 -0
- package/dist/cjs/session/SessionManager.js +577 -1
- package/dist/cjs/session/SessionManager.js.map +7 -0
- package/dist/cjs/session/index.js +579 -1
- package/dist/cjs/session/index.js.map +7 -0
- package/dist/esm/SimpleBootHttpServer.js +906 -2
- package/dist/esm/SimpleBootHttpServer.js.map +7 -0
- package/dist/esm/codes/HttpHeaders.js +47 -1
- package/dist/esm/codes/HttpHeaders.js.map +7 -0
- package/dist/esm/codes/HttpMethod.js +17 -1
- package/dist/esm/codes/HttpMethod.js.map +7 -0
- package/dist/esm/codes/HttpStatus.js +25 -1
- package/dist/esm/codes/HttpStatus.js.map +7 -0
- package/dist/esm/codes/Mimes.js +33 -1
- package/dist/esm/codes/Mimes.js.map +7 -0
- package/dist/esm/codes/index.js +116 -1
- package/dist/esm/codes/index.js.map +7 -0
- package/dist/esm/decorators/MethodMapping.js +211 -2
- package/dist/esm/decorators/MethodMapping.js.map +7 -0
- package/dist/esm/decorators/index.js +211 -2
- package/dist/esm/decorators/index.js.map +7 -0
- package/dist/esm/endpoints/CrossDomainHeaderEndPoint.js +31 -1
- package/dist/esm/endpoints/CrossDomainHeaderEndPoint.js.map +7 -0
- package/dist/esm/endpoints/EndPoint.js +1 -0
- package/dist/esm/endpoints/EndPoint.js.map +7 -0
- package/dist/esm/endpoints/HeaderEndPoint.js +17 -1
- package/dist/esm/endpoints/HeaderEndPoint.js.map +7 -0
- package/dist/esm/endpoints/index.js +46 -1
- package/dist/esm/endpoints/index.js.map +7 -0
- package/dist/esm/errors/BadRequestError.js +19 -1
- package/dist/esm/errors/BadRequestError.js.map +7 -0
- package/dist/esm/errors/ForbiddenError.js +19 -1
- package/dist/esm/errors/ForbiddenError.js.map +7 -0
- package/dist/esm/errors/HttpError.js +12 -1
- package/dist/esm/errors/HttpError.js.map +7 -0
- package/dist/esm/errors/InternalServerError.js +19 -1
- package/dist/esm/errors/InternalServerError.js.map +7 -0
- package/dist/esm/errors/NotFoundError.js +19 -1
- package/dist/esm/errors/NotFoundError.js.map +7 -0
- package/dist/esm/errors/UnauthorizedError.js +19 -1
- package/dist/esm/errors/UnauthorizedError.js.map +7 -0
- package/dist/esm/errors/index.js +52 -1
- package/dist/esm/errors/index.js.map +7 -0
- package/dist/esm/filters/CacheFilter.js +129 -1
- package/dist/esm/filters/CacheFilter.js.map +7 -0
- package/dist/esm/filters/Filter.js +1 -0
- package/dist/esm/filters/Filter.js.map +7 -0
- package/dist/esm/filters/HttpStatusFilter.js +20 -1
- package/dist/esm/filters/HttpStatusFilter.js.map +7 -0
- package/dist/esm/filters/OpenApi3Filter.js +57 -2
- package/dist/esm/filters/OpenApi3Filter.js.map +7 -0
- package/dist/esm/filters/ResourceFilter.js +57 -2
- package/dist/esm/filters/ResourceFilter.js.map +7 -0
- package/dist/esm/filters/ThrowFilter.js +23 -1
- package/dist/esm/filters/ThrowFilter.js.map +7 -0
- package/dist/esm/filters/index.js +278 -2
- package/dist/esm/filters/index.js.map +7 -0
- package/dist/esm/index.js +1662 -2
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/inject/InjectSituationType.js +9 -1
- package/dist/esm/inject/InjectSituationType.js.map +7 -0
- package/dist/esm/inject/index.js +9 -1
- package/dist/esm/inject/index.js.map +7 -0
- package/dist/esm/lifecycle/OnInit.js +1 -0
- package/dist/esm/lifecycle/OnInit.js.map +7 -0
- package/dist/esm/lifecycle/index.js +1 -0
- package/dist/esm/lifecycle/index.js.map +7 -0
- package/dist/esm/models/RequestResponse.js +475 -1
- package/dist/esm/models/RequestResponse.js.map +7 -0
- package/dist/esm/models/datas/HeaderData.js +11 -1
- package/dist/esm/models/datas/HeaderData.js.map +7 -0
- package/dist/esm/models/datas/MultipartData.js +1 -0
- package/dist/esm/models/datas/MultipartData.js.map +7 -0
- package/dist/esm/models/datas/ReqHeader.js +7 -1
- package/dist/esm/models/datas/ReqHeader.js.map +7 -0
- package/dist/esm/models/datas/Resource.js +516 -2
- package/dist/esm/models/datas/Resource.js.map +7 -0
- package/dist/esm/models/datas/body/ReqFormUrlBody.js +7 -1
- package/dist/esm/models/datas/body/ReqFormUrlBody.js.map +7 -0
- package/dist/esm/models/datas/body/ReqJsonBody.js +7 -1
- package/dist/esm/models/datas/body/ReqJsonBody.js.map +7 -0
- package/dist/esm/models/datas/body/ReqMultipartFormBody.js +10 -1
- package/dist/esm/models/datas/body/ReqMultipartFormBody.js.map +7 -0
- package/dist/esm/models/index.js +549 -2
- package/dist/esm/models/index.js.map +7 -0
- package/dist/esm/models/method/patch/PatchJson.js +15 -2
- package/dist/esm/models/method/patch/PatchJson.js.map +7 -0
- package/dist/esm/option/HttpServerOption.d.ts +1 -1
- package/dist/esm/option/HttpServerOption.js +43 -1
- package/dist/esm/option/HttpServerOption.js.map +7 -0
- package/dist/esm/option/index.js +43 -1
- package/dist/esm/option/index.js.map +7 -0
- package/dist/esm/resolvers/Resolver.js +1 -0
- package/dist/esm/resolvers/Resolver.js.map +7 -0
- package/dist/esm/resolvers/{ResourceResorver.d.ts → ResourceResolver.d.ts} +2 -2
- package/dist/esm/resolvers/{ResourceResorver.d.ts.map → ResourceResolver.d.ts.map} +1 -1
- package/dist/esm/resolvers/ResourceResolver.js +538 -0
- package/dist/esm/resolvers/ResourceResolver.js.map +7 -0
- package/dist/esm/resolvers/index.d.ts +1 -1
- package/dist/esm/resolvers/index.js +538 -2
- package/dist/esm/resolvers/index.js.map +7 -0
- package/dist/esm/session/SessionManager.js +553 -1
- package/dist/esm/session/SessionManager.js.map +7 -0
- package/dist/esm/session/index.js +553 -1
- package/dist/esm/session/index.js.map +7 -0
- package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js +1662 -2
- package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js.map +7 -0
- package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js +1699 -2
- package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js.map +7 -0
- package/package.json +24 -21
- package/dist/cjs/SimpleBootHttpServer.js.LICENSE.txt +0 -20
- package/dist/cjs/decorators/MethodMapping.js.LICENSE.txt +0 -16
- package/dist/cjs/decorators/index.js.LICENSE.txt +0 -16
- package/dist/cjs/filters/OpenApi3Filter.js.LICENSE.txt +0 -16
- package/dist/cjs/filters/ResourceFilter.js.LICENSE.txt +0 -13
- package/dist/cjs/filters/index.js.LICENSE.txt +0 -30
- package/dist/cjs/index.js.LICENSE.txt +0 -46
- package/dist/cjs/models/datas/Resource.js.LICENSE.txt +0 -13
- package/dist/cjs/models/index.js.LICENSE.txt +0 -25
- package/dist/cjs/models/method/patch/PatchJson.js.LICENSE.txt +0 -11
- package/dist/cjs/resolvers/ResourceResorver.js +0 -2
- package/dist/cjs/resolvers/ResourceResorver.js.LICENSE.txt +0 -13
- package/dist/cjs/resolvers/index.js.LICENSE.txt +0 -13
- package/dist/esm/SimpleBootHttpServer.js.LICENSE.txt +0 -20
- package/dist/esm/decorators/MethodMapping.js.LICENSE.txt +0 -16
- package/dist/esm/decorators/index.js.LICENSE.txt +0 -16
- package/dist/esm/filters/OpenApi3Filter.js.LICENSE.txt +0 -16
- package/dist/esm/filters/ResourceFilter.js.LICENSE.txt +0 -13
- package/dist/esm/filters/index.js.LICENSE.txt +0 -30
- package/dist/esm/index.js.LICENSE.txt +0 -46
- package/dist/esm/models/datas/Resource.js.LICENSE.txt +0 -13
- package/dist/esm/models/index.js.LICENSE.txt +0 -25
- package/dist/esm/models/method/patch/PatchJson.js.LICENSE.txt +0 -11
- package/dist/esm/resolvers/ResourceResorver.js +0 -2
- package/dist/esm/resolvers/ResourceResorver.js.LICENSE.txt +0 -13
- package/dist/esm/resolvers/index.js.LICENSE.txt +0 -13
- package/dist/esm-bundle/dooboostore-simple-boot-http-server.esm.js.LICENSE.txt +0 -54
- package/dist/umd-bundle/SimpleBootHttpServer.d.ts +0 -14
- package/dist/umd-bundle/SimpleBootHttpServer.d.ts.map +0 -1
- package/dist/umd-bundle/codes/HttpHeaders.d.ts +0 -42
- package/dist/umd-bundle/codes/HttpHeaders.d.ts.map +0 -1
- package/dist/umd-bundle/codes/HttpMethod.d.ts +0 -12
- package/dist/umd-bundle/codes/HttpMethod.d.ts.map +0 -1
- package/dist/umd-bundle/codes/HttpStatus.d.ts +0 -45
- package/dist/umd-bundle/codes/HttpStatus.d.ts.map +0 -1
- package/dist/umd-bundle/codes/Mimes.d.ts +0 -28
- package/dist/umd-bundle/codes/Mimes.d.ts.map +0 -1
- package/dist/umd-bundle/codes/index.d.ts +0 -5
- package/dist/umd-bundle/codes/index.d.ts.map +0 -1
- package/dist/umd-bundle/decorators/MethodMapping.d.ts +0 -74
- package/dist/umd-bundle/decorators/MethodMapping.d.ts.map +0 -1
- package/dist/umd-bundle/decorators/index.d.ts +0 -2
- package/dist/umd-bundle/decorators/index.d.ts.map +0 -1
- package/dist/umd-bundle/dooboostore-simple-boot-http-server.umd.js.LICENSE.txt +0 -54
- package/dist/umd-bundle/endpoints/CrossDomainHeaderEndPoint.d.ts +0 -16
- package/dist/umd-bundle/endpoints/CrossDomainHeaderEndPoint.d.ts.map +0 -1
- package/dist/umd-bundle/endpoints/EndPoint.d.ts +0 -7
- package/dist/umd-bundle/endpoints/EndPoint.d.ts.map +0 -1
- package/dist/umd-bundle/endpoints/HeaderEndPoint.d.ts +0 -12
- package/dist/umd-bundle/endpoints/HeaderEndPoint.d.ts.map +0 -1
- package/dist/umd-bundle/endpoints/index.d.ts +0 -4
- package/dist/umd-bundle/endpoints/index.d.ts.map +0 -1
- package/dist/umd-bundle/errors/BadRequestError.d.ts +0 -8
- package/dist/umd-bundle/errors/BadRequestError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/ForbiddenError.d.ts +0 -8
- package/dist/umd-bundle/errors/ForbiddenError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/HttpError.d.ts +0 -12
- package/dist/umd-bundle/errors/HttpError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/InternalServerError.d.ts +0 -8
- package/dist/umd-bundle/errors/InternalServerError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/NotFoundError.d.ts +0 -8
- package/dist/umd-bundle/errors/NotFoundError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/UnauthorizedError.d.ts +0 -8
- package/dist/umd-bundle/errors/UnauthorizedError.d.ts.map +0 -1
- package/dist/umd-bundle/errors/index.d.ts +0 -7
- package/dist/umd-bundle/errors/index.d.ts.map +0 -1
- package/dist/umd-bundle/filters/CacheFilter.d.ts +0 -45
- package/dist/umd-bundle/filters/CacheFilter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/Filter.d.ts +0 -17
- package/dist/umd-bundle/filters/Filter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/HttpStatusFilter.d.ts +0 -20
- package/dist/umd-bundle/filters/HttpStatusFilter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/OpenApi3Filter.d.ts +0 -142
- package/dist/umd-bundle/filters/OpenApi3Filter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/ResourceFilter.d.ts +0 -24
- package/dist/umd-bundle/filters/ResourceFilter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/ThrowFilter.d.ts +0 -19
- package/dist/umd-bundle/filters/ThrowFilter.d.ts.map +0 -1
- package/dist/umd-bundle/filters/index.d.ts +0 -7
- package/dist/umd-bundle/filters/index.d.ts.map +0 -1
- package/dist/umd-bundle/index.d.ts +0 -13
- package/dist/umd-bundle/index.d.ts.map +0 -1
- package/dist/umd-bundle/inject/InjectSituationType.d.ts +0 -4
- package/dist/umd-bundle/inject/InjectSituationType.d.ts.map +0 -1
- package/dist/umd-bundle/inject/index.d.ts +0 -2
- package/dist/umd-bundle/inject/index.d.ts.map +0 -1
- package/dist/umd-bundle/lifecycle/OnInit.d.ts +0 -5
- package/dist/umd-bundle/lifecycle/OnInit.d.ts.map +0 -1
- package/dist/umd-bundle/lifecycle/index.d.ts +0 -2
- package/dist/umd-bundle/lifecycle/index.d.ts.map +0 -1
- package/dist/umd-bundle/models/RequestResponse.d.ts +0 -100
- package/dist/umd-bundle/models/RequestResponse.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/HeaderData.d.ts +0 -10
- package/dist/umd-bundle/models/datas/HeaderData.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/MultipartData.d.ts +0 -12
- package/dist/umd-bundle/models/datas/MultipartData.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/ReqHeader.d.ts +0 -68
- package/dist/umd-bundle/models/datas/ReqHeader.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/Resource.d.ts +0 -11
- package/dist/umd-bundle/models/datas/Resource.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/body/ReqFormUrlBody.d.ts +0 -4
- package/dist/umd-bundle/models/datas/body/ReqFormUrlBody.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/body/ReqJsonBody.d.ts +0 -4
- package/dist/umd-bundle/models/datas/body/ReqJsonBody.d.ts.map +0 -1
- package/dist/umd-bundle/models/datas/body/ReqMultipartFormBody.d.ts +0 -6
- package/dist/umd-bundle/models/datas/body/ReqMultipartFormBody.d.ts.map +0 -1
- package/dist/umd-bundle/models/index.d.ts +0 -10
- package/dist/umd-bundle/models/index.d.ts.map +0 -1
- package/dist/umd-bundle/models/method/patch/PatchJson.d.ts +0 -8
- package/dist/umd-bundle/models/method/patch/PatchJson.d.ts.map +0 -1
- package/dist/umd-bundle/option/HttpServerOption.d.ts +0 -83
- package/dist/umd-bundle/option/HttpServerOption.d.ts.map +0 -1
- package/dist/umd-bundle/option/index.d.ts +0 -2
- package/dist/umd-bundle/option/index.d.ts.map +0 -1
- package/dist/umd-bundle/resolvers/Resolver.d.ts +0 -5
- package/dist/umd-bundle/resolvers/Resolver.d.ts.map +0 -1
- package/dist/umd-bundle/resolvers/ResourceResorver.d.ts +0 -6
- package/dist/umd-bundle/resolvers/ResourceResorver.d.ts.map +0 -1
- package/dist/umd-bundle/resolvers/index.d.ts +0 -3
- package/dist/umd-bundle/resolvers/index.d.ts.map +0 -1
- package/dist/umd-bundle/session/SessionManager.d.ts +0 -57
- package/dist/umd-bundle/session/SessionManager.d.ts.map +0 -1
- package/dist/umd-bundle/session/index.d.ts +0 -2
- package/dist/umd-bundle/session/index.d.ts.map +0 -1
|
@@ -1,2 +1,930 @@
|
|
|
1
|
-
|
|
2
|
-
(()=>{var t={229:(t,e,r)=>{"use strict";var n;r.d(e,{HttpStatus:()=>n}),function(t){t[t.Ok=200]="Ok",t[t.MovedPermanently=301]="MovedPermanently",t[t.Found=302]="Found",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout",t[t.HttpVersionNotSupported=505]="HttpVersionNotSupported"}(n||(n={}))},426:(t,e,r)=>{"use strict";r.d(e,{T:()=>a});var n,i={d:(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},o={};i.d(o,{T:()=>n}),function(t){t.toString=function(t,e){return null==t?"":"string"==typeof t?t:t.toString(e?.encoding??"utf-8",e?.start,e?.end)},t.toBuffer=(t,e)=>"base64"===e?.encoding?(t=t.split(";base64,").pop()||"",Buffer.from(t,"base64")):Buffer.from(t)}(n||(n={}));const a=o.T},758:(t,e,r)=>{"use strict";r.d(e,{HttpError:()=>n});class n{constructor({status:t,message:e="HttpError"}){this.name="Error",this.message=e,this.status=t}}},889:(t,e,r)=>{"use strict";r.d(e,{n:()=>c});var n={9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{n:()=>s});var s,u=o(9284);!function(t){t.uniqueInts=(e,r,n)=>{const i=[];if(n>r-e)throw new Error("Count is greater than the range of unique integers");for(;i.length<n;){const n=t.int(e,r);i.includes(n)||i.push(n)}return i},t.chance=t=>{if(t<0||t>1)throw new Error("Percentage must be between 0 and 1");return Math.random()<t},t.int=(e,r)=>Math.floor(t.float(e,r)),t.float=(t,e)=>u.U.isNullOrUndefined(t)?Math.random():!u.U.isNullOrUndefined(t)&&u.U.isNullOrUndefined(e)?Math.random()*(t||0):Math.random()*((e||0)-(t||0))+(t||0),t.uuid=(t="xxxx-xxxx-xxxx-xxxx")=>t.replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}),t.uuid4=()=>{let t,e="";for(t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e},t.hex=()=>{const t="0123456789ABCDEF".split("");let e="";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},t.rgb=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},t.rgba=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<8;r++)e+=t[Math.floor(16*Math.random())];return e},t.alphabet=t=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let r="";for(let n=0;n<t;n++)r+=e[Math.floor(Math.random()*e.length)];return r}}(s||(s={}));const c=a.n},1022:(t,e,r)=>{"use strict";r.d(e,{ReqJsonBody:()=>n});class n{}},1262:(t,e,r)=>{"use strict";r.d(e,{SessionManager:()=>o});var n=r(889),i=r(3500);class o{constructor(t){this.option=t,this.sessions=new Map,this.sessionOption=t.sessionOption,setInterval(async()=>{const t=await this.getSessionUUIDs();for(const e of t){const t=await this.getSessionDataSet(e);t&&this.isExpired(t.access)&&await this.deleteSession(e)}},this.sessionOption.expiredTime)}async getSessionUUIDs(){return this.sessionOption.provider?.uuids?this.sessionOption.provider.uuids():Array.from(this.sessions.keys())}async deleteSession(t){this.sessionOption.provider?.delete?this.sessionOption.provider.delete(t):this.sessions.delete(t)}async getSessionDataSet(t){return this.sessionOption.provider?.get?this.sessionOption.provider.get(t):this.sessions.get(t)}async setSessionDataSet(t,e){this.sessionOption.provider?.set?this.sessionOption.provider.set(t,e):this.sessions.set(t,e)}isExpired(t,e=Date.now()){return e-t>=this.option.sessionOption.expiredTime}makeUUID(){return n.n.uuid("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")}async session(t){let e;e=t instanceof i.RequestResponse?t.reqCookieGet(this.sessionOption.key)??this.makeUUID():"string"==typeof t?t:this.makeUUID();let r=await this.getSessionDataSet(e);const n=Date.now();return r?(this.isExpired(r.access,n)&&delete r.data,r.access=n):r={access:n},await this.setSessionDataSet(e,r),{uuid:e,dataSet:r}}}},1946:(t,e,r)=>{"use strict";var n;r.d(e,{Mimes:()=>n}),function(t){t.ApplicationJson="application/json",t.ApplicationOctetStream="application/octet-stream",t.ApplicationXml="application/xml",t.ApplicationJsonPatch="application/json-patch+json",t.ApplicationXWwwFormUrlencoded="application/x-www-form-urlencoded",t.TextPlain="text/plain",t.TextHtml="text/html",t.All="*/*",t.TextCss="text/css",t.TextJavascript="text/javascript",t.TextXml="text/xml",t.TextXslt="text/xslt",t.TextXmlDtd="text/xml-dtd",t.TextPlainUtf8="text/plain; charset=utf-8",t.ImagePng="image/png",t.ImageGif="image/gif",t.ImageJpeg="image/jpeg",t.ImageSvg="image/svg+xml",t.ImageBmp="image/bmp",t.ImageTiff="image/tiff",t.ImagePdf="application/pdf",t.ImageXBmp="image/x-bmp",t.ImageXpixmap="image/x-xpixmap",t.ImageXxbm="image/x-xbm",t.MultipartFormData="multipart/form-data"}(n||(n={}))},2188:(t,e,r)=>{"use strict";r.d(e,{ReqMultipartFormBody:()=>n});class n{constructor(t=[]){this.field=t}}},3055:(t,e,r)=>{"use strict";r.d(e,{i:()=>d});const n=require("node:module"),i=(0,n.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:os"),o=(0,n.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:fs"),a=(0,n.createRequire)("file:///Users/hyunhakim/workspace/dooboostore/source/dooboostore-develop/dooboostore-develop.github.io/source/packages/@dooboostore/core-node/dist/esm/file/FileUtils.js")("node:path");var s={9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},u={};function c(t){var e=u[t];if(void 0!==e)return e.exports;var r=u[t]={exports:{}};return s[t](r,r.exports,c),r.exports}c.d=(t,e)=>{for(var r in e)c.o(e,r)&&!c.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},c.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var f={};c.d(f,{n:()=>h});var h,l,y=c(9284);(l=h||(h={})).uniqueInts=(t,e,r)=>{const n=[];if(r>e-t)throw new Error("Count is greater than the range of unique integers");for(;n.length<r;){const r=l.int(t,e);n.includes(r)||n.push(r)}return n},l.chance=t=>{if(t<0||t>1)throw new Error("Percentage must be between 0 and 1");return Math.random()<t},l.int=(t,e)=>Math.floor(l.float(t,e)),l.float=(t,e)=>y.U.isNullOrUndefined(t)?Math.random():!y.U.isNullOrUndefined(t)&&y.U.isNullOrUndefined(e)?Math.random()*(t||0):Math.random()*((e||0)-(t||0))+(t||0),l.uuid=(t="xxxx-xxxx-xxxx-xxxx")=>t.replace(/[xy]/g,function(t){const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}),l.uuid4=()=>{let t,e="";for(t=0;t<32;t+=1)switch(t){case 8:case 20:e+="-",e+=(16*Math.random()|0).toString(16);break;case 12:e+="-",e+="4";break;case 16:e+="-",e+=(4*Math.random()|8).toString(16);break;default:e+=(16*Math.random()|0).toString(16)}return e},l.hex=()=>{const t="0123456789ABCDEF".split("");let e="";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},l.rgb=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<6;r++)e+=t[Math.floor(16*Math.random())];return e},l.rgba=()=>{const t="0123456789ABCDEF".split("");let e="#";for(let r=0;r<8;r++)e+=t[Math.floor(16*Math.random())];return e},l.alphabet=t=>{const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");let r="";for(let n=0;n<t;n++)r+=e[Math.floor(Math.random()*e.length)];return r};const p=f.n;var d;!function(t){class e{constructor(t){this._data=t,this.updateStats()}get originalName(){return this._data.originalName}get directory(){return this._data.path.substring(0,this._data.path.lastIndexOf("/"))}get fileName(){return this._data.path.substring(this._data.path.lastIndexOf("/")+1)}get path(){return this._data.path}get extension(){const t=this._data.path.substring(this._data.path.lastIndexOf(".")+1);return t.length>0?t:void 0}async updateStats(){const t=await o.promises.stat(this._data.path);this.size=t.size}async delete(){await o.promises.unlink(this._data.path),this._data.path="",this.size=void 0}async copy(t){await o.promises.copyFile(this._data.path,t),this._data.path=t,this.size=(await o.promises.stat(t)).size}async move(t){const e=t.substring(0,t.lastIndexOf("/"));await o.promises.mkdir(e,{recursive:!0}),await o.promises.rename(this._data.path,t),this._data.path=t,this.size=(await o.promises.stat(t)).size}async rename(t){const e=`${this.directory}/${t}`;await o.promises.rename(this._data.path,e),this.size=(await o.promises.stat(e)).size,this._data.path=e}}t.File=e,t.writeFile=async(t,r)=>(r.path??(r.path=`${i.tmpdir()}/${p.uuid4()}_${Date.now()}`),await o.promises.mkdir(r.path.substring(0,r.path.lastIndexOf("/")),{recursive:!0}),await o.promises.writeFile(r.path,t),new e({path:r.path,originalName:r.originalName})),t.path=t=>Array.isArray(t)?a.join(...t):t,t.existsSync=(e,r)=>{const n=t.path(e);return o.existsSync(n)?(r?.existes?.(n),!0):(r?.noExistes?.(n),!1)},t.mkdirSync=(e,r)=>{t.existsSync(e,{noExistes:t=>{o.mkdirSync(t,r)}})},t.mkdir=async(e,r)=>new Promise((n,i)=>{t.existsSync(e,{noExistes:t=>{o.mkdirSync(t,r),n(t)},existes:t=>{n(t)}})}),t.readSync=(e,r)=>{const n=t.path(e);return r?.option?o.readFileSync(n,r.option):o.readFileSync(n)},t.read=async(e,r)=>{const n=t.path(e);return o.readFile(n,r.option)},t.write=(e,r)=>{const n=t.path(r.path);return r.options?o.writeFileSync(n,e,r.options):o.writeFileSync(n,e),n},t.writeAppend=(e,r)=>{const n=t.path(r.path);return r.options?o.appendFileSync(n,e,r.options):o.appendFileSync(n,e),n},t.deleteSync=(e,r)=>{const n=t.path(e);t.existsSync(n)&&(r?.options?o.rmSync(n,r?.options):o.rmSync(n))},t.deleteDirSync=(e,r)=>{const n=t.path(e);t.existsSync(n)&&(r?.options?o.rmdirSync(n,r?.options):o.rmdirSync(n))},t.deleteFileSync=e=>{const r=t.path(e);t.existsSync(r)&&o.unlinkSync(r)},t.copySync=(e,r,n)=>{const i=t.path(e),a=t.path(r);o.cpSync(i,a,n)}}(d||(d={}))},3106:t=>{"use strict";t.exports=require("zlib")},3500:(t,e,r)=>{"use strict";r.d(e,{RequestResponse:()=>A});var n=r(7953),i={532:(t,e,r)=>{r.d(e,{r:()=>c});var n={3056:(t,e,r)=>{r.d(e,{$:()=>n});var n,i=r(9284);!function(t){t.deleteEnter=t=>t.replace(/\r?\n/g,""),t.pickEmoji=t=>t.match(/[\p{Emoji}]/gu)??[],t.regexExec=(t,e)=>{let r=t.exec(e);const n=[];for(;r;)n.push(r),r=t.exec(r.input);return n},t.regexExecArrayReplace=(e,r,n)=>((Array.isArray(r)?r:t.regexExec(r,e)).reverse().forEach(t=>{const r="string"==typeof n?n:n(t);e=e.substr(0,t.index)+e.substr(t.index).replace(t[0],r)}),e),t.escapeSpecialCharacterRegExp=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.trim=t=>t.trim(),t.rsubString=(t,e)=>t.substring(t.length-e,t.length),t.lsubString=(t,e)=>t.substring(0,e),t.lpad=(e,r,n)=>{for(;r>n.length;)n=e+n;return t.rsubString(n,r)},t.rpad=(e,r,n)=>{for(;r>n.length;)n+=e;return t.lsubString(n,r)},t.lappend=(t,e)=>{let r="",n=0;for(;n++<t;)r+=e;return r},t.unescape=t=>{if(!t)return"";const e={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿","#x27":"'"};return t.replace(/&((?:(?:[a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});?)+);/gi,(t,r)=>r.toLowerCase().split(";").map(r=>r in e?e[r]:t).join(""))},t.executeExpression=(t,e)=>t.replace(/\${([^{}]*)}/g,(t,r)=>String(e[r]??t)),t.ellipsis=(t,e)=>t.length>e?`${t.slice(0,e)}...`:t,t.appendPostposition=(t,{vowel:e,consonant:r})=>`${t}${i.U.lastConsonantLetter(t)?r:e}`}(n||(n={}))},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{r:()=>s});var s,u=o(3056);!function(t){let e,r;t.bindExpression=(t,e)=>(t??"").replace(/\$\{([\s\S.]*?)\}/g,(t,r)=>{const[n,i]=r.split(":"),o=e[n];return o?"function"==typeof o?o(e[i]):o:""}),function(t){t.isExpression=t=>/[$#]\{([\s\S.]*?)\}[$#]/g.test(t??""),t.expressionGroups=t=>u.$.regexExec(/[$#]\{([\s\S.]*?)\}[$#]/g,t??"")}(e=t.Group||(t.Group={})),function(t){t.pathNameData=(t,e)=>{const r=t.split("/"),n=e.split("/");if(r.length!==n.length)return;const i={};for(let t=0;t<n.length;t++){const e=n[t],o=r[t],a=/^\{(.+)\}$/g.exec(e);if(!a){if(e!==o)return;continue}const[s,u]=a[1].split(":");if(u&&!new RegExp(u).test(o))return;i[s]=o}return i}}(r=t.Path||(t.Path={}))}(s||(s={}));const c=a.r}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return i[t](r,r.exports,a),r.exports}a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var s={};a.d(s,{J:()=>f,M:()=>u});var u,c=a(532);!function(t){t.DATA_PARAMETERS="DATA_PARAMETERS",t.INLINE_DATA_PARAMETERS="INLINE_DATA_PARAMETERS"}(u||(u={}));class f{constructor(t,e,r){if(this.uri=t,this.data=e,this.event=r,this.sessionData=new Map,"string"==typeof t){const e=t.match(/^Symbol\.for\((.+)\):\/(.*)$/);if(e){const t=Symbol.for(e[1]);this.uri={symbol:t,uri:e[2]}}}}get symbols(){if("object"==typeof this.uri)return Array.isArray(this.uri.symbol)?this.uri.symbol:[this.uri.symbol]}get scheme(){if("string"==typeof this.uri){const t=this.uri.split("://");return t.length>1?t[0]:void 0}}get paths(){return this.pathname.split("/")??[]}get fullPath(){const t=("string"==typeof this.uri?this.uri:this.uri.uri).split("://");return t[t.length>=2?1:0]??""}get pathname(){return this.fullPath.split("?")[0]}get query(){return this.fullPath.split("?")[1]??""}get queryParams(){const t={};return this.query.split("&")?.forEach(e=>{const r=e.split("=");t[r[0]]=r[1]}),t}get queryParamsAfterDecodeURI(){const t=this.queryParams;for(const e in t)t.hasOwnProperty(e)&&(t[e]=decodeURIComponent(t[e]));return t}getPathnameData(t){return c.r.Path.pathNameData(this.pathname,t)}get isSymbolScheme(){return void 0!==this.symbols}}const h=s.J;var l=r(7016);const y=require("buffer");var p=r(6377),d=r(1022),g=r(9434),v=r(5884),w=r(3055),b={2676:(t,e,r)=>{r.d(e,{B:()=>n});var n,i=r(7855),o=r(9284);!function(t){let e,r;t.constructorName=t=>t&&t.constructor&&t.constructor.name?t.constructor.name:t&&t.name?t.name:void 0,t.deepCopy=t=>t instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(t.entries())))):t instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(t.values())))):o.U.isNullOrUndefined(t)?t:JSON.parse(JSON.stringify(t)),t.allProtoTypeName=(e,r)=>{let n=[];if(e){const i=Object.getPrototypeOf(e);i&&(n=Object.keys(i)||[]).length>0&&(n=n.concat(t.allProtoTypeName(i,r)))}let i=n.filter(t=>"constructor"!==t);if(r&&e){const t=Object.getPrototypeOf(e);i=i.filter(e=>r(e,t?.[e]))}return i},t.uniqueKeys=t=>Array.from(new Set((Array.isArray(t)?t:[t]).flatMap(t=>Object.keys(t)))),t.ownPropertyNames=t=>{const e=[];if(t)if(t.prototype)e.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));else{const r=Object.getPrototypeOf(t);e.push(...Object.getOwnPropertyNames(r))}return e.filter(t=>"constructor"!==t)},t.protoTypeName=t=>{let e=[];if(t){const r=Object.getPrototypeOf(t);e=Object.keys(r)||[]}return e.filter(t=>"constructor"!==t)},t.protoTypes=t=>{const e=[];if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.push(r[t])})}return e},t.seal=t=>Object.seal(t),t.isPrototypeOfTarget=(t,e)=>!(!t||!e)&&Object.prototype.isPrototypeOf.call(t.prototype,e),t.prototypeOfDepth=(t,e)=>{let r=t;const n=[];if(e)do{if(r=Object.getPrototypeOf(r),r?.constructor===e)break;n.push(r)}while(r);return n},t.allProtoType=t=>{const e=(t,r=[])=>(t.prototype&&(r.push(t),e(Object.getPrototypeOf(t),r)),r);return e(t)},t.prototypeOf=t=>Object.getPrototypeOf(t),t.prototypeKeyMap=t=>{const e=new Map;if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.set(r[t],t)})}return e},t.prototypeName=(e,r)=>t.prototypeKeyMap(e).get(r),t.pickRandomKey=t=>{const e=Object.keys(t);return e[Math.floor(Math.random()*e.length)]},t.pickRandomValue=t=>{const e=Object.keys(t);return t[e[Math.floor(Math.random()*e.length)]]},t.pickRandomKeyValue=t=>{const e=Object.keys(t),r=e[Math.floor(Math.random()*e.length)];return{key:r,value:t[r]}},t.keyValues=t=>Object.keys(t).map(e=>({key:e,value:t[e]})),t.entries=t=>Object.entries(t),t.values=t=>Object.values(t),t.keys=t=>Object.keys(t),t.keyLength=e=>t.keys(e).length,t.toDeleteUndefinedAndNull=(t,e)=>{const r=t=>Array.isArray(t)?t.filter(t=>null!=t).map(r):t&&"object"==typeof t?e?.deep?Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e).map(([t,e])=>[t,r(e)])):Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e)):t;return r(t)},function(t){t.isFunctionScript=t=>t.trim().startsWith("function"),t.isArrowFunctionScript=t=>/^\s*\([^)]*\)\s*=>/.test(t),t.toOptionalChainPath=e=>{if(!e)return"";if(e.trim().startsWith("{")&&e.trim().endsWith("}"))return e;if(t.isFunctionScript(e)||t.isArrowFunctionScript(e))return e;if(e.includes(" ? ")&&e.includes(" : ")){const t=e.split(/(\s+\?\s+|\s+:\s+)/).map((t,e)=>{if(0===e){const e=t.match(/[^?.[\]]+|\[[^\]]*\]/g);if(e&&e.length>1)return e.join("?.")}return t});return t.join("")}if(e.includes("(")){const r=[];let n=e,i=0;const o=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let a;for(;null!==(a=o.exec(e));){const e=a[0],o=a[1],s=a[2],u=`__FUNC_CALL_${i}__`,c=`${o}?.(${s?t.toOptionalChainPath(s):""})`;r.push({original:e,processed:c,placeholder:u}),n=n.replace(e,u),i++}const s=n.match(/[^?.[\]]+|\[[^\]]*\]/g);let u="";u=s&&s.length>1?s.join("?."):n;for(const t of r)u=u.replace(t.placeholder,t.processed);return u}const r=e.match(/[^?.[\]]+|\[[^\]]*\]/g);return r?r.join("?."):e},t.removeOptionalChainOperator=t=>t?t.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const e=t=>{const e=[],r=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let n,i=0;const o=t.match(r);if(o&&(o?.index??0)>0)e.push(t.substring(0,o.index)),i=o.index;else if(!o&&t.length>0)return e.push(t),e;for(;null!==(n=r.exec(t));){if(n.index>i){const r=t.substring(i,n.index);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}n[1]?e.push(n[1]):n[2]?e.push(parseInt(n[2],10)):n[4]&&e.push(n[4]),i=r.lastIndex}if(i<t.length){const r=t.substring(i);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}return e};t.to=e=>{const r={};return Object.entries(e).forEach(([e,n])=>{t.set(r,e,n)}),r},t.set=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(t===i.length-1)o[e]=n;else{const r=i[t+1];if("number"==typeof r){if(Array.isArray(o[e])||(o[e]=[]),Array.isArray(o[e]))for(;o[e].length<=r;)o[e].push({})}else"object"==typeof o[e]&&null!==o[e]||(o[e]={});o=o[e]}}},t.get=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(null==o)return n;if("object"!=typeof o||null===o||!(e in o))return n;o=o[e]}return o},t.deletePath=(t,r)=>{const n=e(r);if(0===n.length)return!1;let i=t;for(let t=0;t<n.length-1;t++){const e=n[t];if(null==i)return!1;if("object"!=typeof i||null===i||!(e in i))return!1;i=i[e]}const o=n[n.length-1];return null!==i&&"object"==typeof i&&o in i&&(Array.isArray(i)&&"number"==typeof o?i.splice(o,1):delete i[o],!0)},t.availablePath=(t,e)=>{const r=[],n=t=>"number"==typeof t?"["+t+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?t:"['"+t+"']",i=(t,o,a)=>{null!==t&&"object"==typeof t&&(a.has(t)||(a.add(t),Array.isArray(t)?t.forEach((t,s)=>{const u=n(s),c=o?`${o}${u}`:u;e&&!e(c,t)||r.push(c),i(t,c,a)}):Object.keys(t).forEach(s=>{const u=n(s);let c;c=u.startsWith("[")?o?`${o}${u}`:u:o?`${o}.${u}`:u,e&&!e(c,t[s])||r.push(c),i(t[s],c,a)})))};return i(t,"",new Set),r},t.detectPathFromScript=(t,e)=>{const r=new Set;class n{constructor(t){this.prefix=t,this.usingVars=r}set(t,e,r,n){return!0}get(t,e,r){if("symbol"==typeof e)return this.createSafeProxy(this.prefix);let n;const i=String(e);return n=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,n&&this.usingVars.add(n),this.createSafeProxy(n)}apply(t,e,r){return this.createSafeProxy(this.prefix)}createSafeProxy(t){const e=new n(t);return new Proxy(()=>{},{get:(r,n,i)=>n===Symbol.toPrimitive?()=>"":"valueOf"===n?()=>e.createSafeProxy(t):"toString"===n?()=>"":e.get(r,n,i),set:e.set.bind(e),apply:e.apply.bind(e)})}}const i={window:new Proxy(()=>{},new n("window")),document:new Proxy(()=>{},new n("document")),console:new Proxy(()=>{},new n("console"))},o=new Proxy(()=>{},new n("this"));try{new Function("window","document","console",`"use strict"; ${t}; `).call(o,i.window,i.document,i.console)}catch(t){console.error("detectPathFromScript error:",t)}if(e?.excludeThis){const t=new Set;return r.forEach(e=>{"this"!==e&&(e.startsWith("this.")?t.add(e.substring(5)):t.add(e))}),t}return r}}(e=t.Path||(t.Path={})),t.toDeleteKey=(e,r)=>{const n={...e};return t.deleteKey(n,r),n},t.deleteKey=(t,e)=>{e.filter(t=>(0,i.O)(t)).forEach(e=>{delete t[e]})},function(t){t.evalReturn=(e,r={})=>{let n="",i="";return"object"==typeof e?(n=e.bodyScript,i=e.returnScript):i=e,t.eval(`${n}; return ${i} `,r)},t.eval=(t,e={})=>{try{return Function(`"use strict"; ${t} `).bind(e)()}catch(e){return console.error("eval error",e),void console.error(t)}}}(r=t.Script||(t.Script={}))}(n||(n={}))},3205:(t,e,r)=>{r.d(e,{O:()=>o});var n=r(7553),i=r(9244);class o extends n.M{constructor(t){super(),this.volume=0,this.mass=0,this.e=0,this.rotate=0,this.width=0,this.height=0,this.transform=[1,0,0,1,0,0],this.color={r:0,g:0,b:0,a:255},this.updateObjWithDefaults(t)}copyObj(){return new o({x:this.x,y:this.y,z:this.z,volume:this.volume,mass:this.mass,e:this.e,rotate:this.rotate,width:this.width,height:this.height,transform:[...this.transform],color:{...this.color},data:{...this.data}})}updateObjWithDefaults(t){if(t){this.x=t.x??this.x,this.y=t.y??this.y,this.z=t.z??this.z,this.volume=t.volume??this.volume,this.mass=t.mass??this.mass,this.e=t.e??this.e,this.rotate=t.rotate??this.rotate,this.width=t.width??this.width,this.height=t.height??this.height,this.transform=[...t.transform??this.transform],this.color={...t.color??this.color};const e=t.data??this.data;this.data=e?{...e}:void 0}}setObj(t){if(t){this.x=t.x??0,this.y=t.y??0,this.z=t.z??0,this.volume=t.volume??0,this.mass=t.mass??0,this.e=t.e??0,this.rotate=t.rotate??0,this.width=t.width??0,this.height=t.height??0,this.transform=[...t.transform??[1,0,0,1,0,0]],this.color={...t.color??{r:0,g:0,b:0,a:255}};const e=t.data;this.data=e?{...e}:void 0}}toRect(){return new i.r(this.x,this.y,this.width,this.height)}}},3599:(t,e,r)=>{r.d(e,{z:()=>n});var n,i=r(8741),o=r(7553),a=r(3205),s=r(4068);!function(t){t.getMinByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let n=1;n<t.length;n++)r=Math.min(r,t[n][e])}return r},t.hypot=(...t)=>Math.hypot(...t),t.pythagorean=(t,e)=>Math.sqrt(t*t+e*e),t.getMaxByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let n=1;n<t.length;n++)r=Math.max(r,t[n][e])}return r},t.sum=t=>t.reduce((t,e)=>t+e,0),t.avg=e=>e.length>0?t.sum(e)/e.length:0,t.minMax=(t,e)=>Math.min(Math.max(t,e.min),e.max),t.max=t=>t.length>0?Math.max(...t):void 0,t.min=t=>t.length>0?Math.min(...t):void 0,t.getSumByObjectArray=(t,e)=>{let r=0;if(e&&t&&t.length>0)for(let n=0;n<t.length;n++)r+=t[n][e];return r},t.radians=(t,{type:e="degreeAngle"})=>"ratio"===e?2*t*Math.PI:"percent"===e?t/100*2*Math.PI:t/180*Math.PI,t.degrees=(t,{type:e="degreeAngle"})=>"ratio"===e?360*t:"percent"===e?t/100*360:180*t/Math.PI,t.ratio=(t,e,r=1)=>r*(e/t),t.getBetweenLength=(t,e)=>e-t,t.getPercentByTotal=(t,e)=>e/t*100,t.getRatioByTotal=(t,e)=>e/t,t.getValueByTotalInPercent=(t,e)=>t*e/100,t.getValueByTotalInRatio=(t,e)=>t*e,t.getValuePercentUp=(t,e)=>t*(1+e/100),t.getValueRatioUp=(t,e)=>t*(1+e),t.getValuePercentDown=(t,e)=>t*(1-e/100),t.getValueRatioDown=(t,e)=>t*(1-e),t.beziers=(e,r)=>{const n=new Array(r).fill(void 0);for(let i=0;i<n.length;i++)n[i]=t.bezier(e,r,i);return n},t.bezier=(e,r,n)=>{if(e&&e.length>0){const a=e.map(t=>new o.M(t.x,t.y,t.z)),s=[];return a.reduce((t,e)=>{const i=t.toSub(e).div(r).mult(n+1);return s.push(t.toSub(i)),e}),s.length<=1?s[0]:t.bezier(s.map(t=>new i.M(t)),r,n)}return new o.M},t.cubicBezier=function(e,r,n){if(e.start instanceof a.O&&e.end instanceof a.O){const i=t.cubicBezier({start:e.start.x,end:e.end.x},r,n),o=t.cubicBezier({start:e.start.y,end:e.end.y},r,n),s=t.cubicBezier({start:e.start.z,end:e.end.z},r,n),u=t.cubicBezier({start:e.start.volume,end:e.end.volume},r,n),c=t.cubicBezier({start:e.start.mass,end:e.end.mass},r,n),f=t.cubicBezier({start:e.start.e,end:e.end.e},r,n),h=t.cubicBezier({start:e.start.rotate,end:e.end.rotate},r,n),l=t.cubicBezier({start:e.start.width,end:e.end.width},r,n),y=t.cubicBezier({start:e.start.height,end:e.end.height},r,n),p=t.cubicBezier({start:e.start.transform[0],end:e.end.transform[0]},r,n),d=t.cubicBezier({start:e.start.transform[1],end:e.end.transform[1]},r,n),g=t.cubicBezier({start:e.start.transform[2],end:e.end.transform[2]},r,n),v=t.cubicBezier({start:e.start.transform[3],end:e.end.transform[3]},r,n),w=t.cubicBezier({start:e.start.transform[4],end:e.end.transform[4]},r,n),b=t.cubicBezier({start:e.start.transform[5],end:e.end.transform[5]},r,n),m=t.cubicBezier({start:e.start.color.r??0,end:e.end.color.r??0},r,n),O=t.cubicBezier({start:e.start.color.g??0,end:e.end.color.g??0},r,n),_=t.cubicBezier({start:e.start.color.b??0,end:e.end.color.b??0},r,n),M=t.cubicBezier({start:e.start.color.a??255,end:e.end.color.a??255},r,n);return i.map((t,e)=>{const r=new a.O({x:t,y:o[e],z:s[e]});return r.volume=u[e],r.mass=c[e],r.e=f[e],r.rotate=h[e],r.width=l[e],r.height=y[e],r.transform=[p[e],d[e],g[e],v[e],w[e],b[e]],r.color={r:m[e],g:O[e],b:_[e],a:M[e]},r})}if(e.start instanceof i.M&&e.end instanceof i.M){const o=t.cubicBezier({start:e.start.x,end:e.end.x},r,n),a=t.cubicBezier({start:e.start.y,end:e.end.y},r,n),s=t.cubicBezier({start:e.start.z,end:e.end.z},r,n);return o.map((t,e)=>new i.M(t,a[e],s[e]))}const{start:o,end:s}=e,{frame:u}=r;let{p1x:c,p1y:f,p2x:h,p2y:l}=Array.isArray(n)?{p1x:n[0],p1y:n[1],p2x:n[2],p2y:n[3]}:n;c="random"===c?Math.random():c,f="random"===f?Math.random():f,h="random"===h?Math.random():h,l="random"===l?Math.random():l;const y=[],p=s-o,d=t=>{const e=Number(t*t),r=Number(e*t),n=Number(1-t),i=Number(n*n);return 0*Number(i*n)+3*i*t*Number(f)+3*n*e*Number(l)+1*r},g=u+1;for(let t=1;t<g;t++){const e=o+p*d(t/g);y.push(e)}return y},t.diff=(t,e)=>Math.abs(t-e),t.distSqToLineSegment=(t,e,r)=>{const n=(e.x-r.x)**2+(e.y-r.y)**2;if(0===n)return(t.x-e.x)**2+(t.y-e.y)**2;let i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;i=Math.max(0,Math.min(1,i));const o=e.x+i*(r.x-e.x),a=e.y+i*(r.y-e.y);return(t.x-o)**2+(t.y-a)**2},t.rotatePoint=(t,e,r)=>{const n=t.x-e.x,i=t.y-e.y,o=n*Math.cos(r)-i*Math.sin(r),a=n*Math.sin(r)+i*Math.cos(r);return new s.P(o+e.x,a+e.y)}}(n||(n={}))},4068:(t,e,r)=>{r.d(e,{P:()=>n});class n{constructor(t,e){"object"==typeof t?(this.x=t.x??0,this.y=t.y??0):(this.x=t??0,this.y=e??0)}copy(){return new n(this.x,this.y)}}},5275:(t,e,r)=>{r.d(e,{s:()=>n});const n=t=>!!t&&"number"==typeof t.width&&"number"==typeof t.height},7553:(t,e,r)=>{r.d(e,{M:()=>o});var n=r(8741),i=r(4068);class o{constructor(t,e,r){t instanceof n.M?(this.x=t.x,this.y=t.y,this.z=t.z):"object"==typeof t?(this.x=t.x??0,this.y=t.y??0,this.z=t.z??0):(this.x=t??0,this.y=e??0,this.z=r??0)}set(t,e=0,r=0){return t instanceof o||t instanceof n.M?this.set(t.x||0,t.y||0,t.z||0):(this.x=t,this.y=e,this.z=r),this}get(){return new o(this.x,this.y,this.z)}mag(){const t=this.x,e=this.y,r=this.z;return Math.sqrt(t*t+e*e+r*r)}add(t,e=0,r=0){t instanceof o||t instanceof n.M?(this.x+=t.x,this.y+=t.y,this.z+=t.z):(this.x+=t,this.y+=e,this.z+=r)}toAdd(t,e){return new o(t.x+e.x,t.y+e.y,t.x+e.y)}sub(t,e=0,r=0){t instanceof o||t instanceof n.M?(this.x-=t.x,this.y-=t.y,this.z-=t.z):(this.x-=t,this.y-=e,this.z-=r)}toSub(t){const e=this;return new o(e.x-t.x,e.y-t.y,e.z-t.z)}mult(t){return t instanceof o||t instanceof n.M?(this.x*=t.x,this.y*=t.y,this.z*=t.z):(this.x*=t,this.y*=t,this.z*=t),this}toMult(t){const e=this;return new o(e.x*=t.x,e.y*=t.y,e.z*=t.z)}div(t){return t instanceof o||t instanceof n.M?(this.x/=t.x,this.y/=t.y,this.z/=t.z):(this.x/=t,this.y/=t,this.z/=t),this}toDiv(t){const e=this.get();return e.x/=t,e.y/=t,e.z/=t,e}dist(t){const e=this.x-t.x,r=this.y-t.y,n=this.z-t.z;return Math.sqrt(e*e+r*r+n*n)}toDist(t){const e=this,r=e.x-t.x,n=e.y-t.y,i=e.z-t.z;return Math.sqrt(r*r+n*n+i*i)}dot(t,e,r){return t instanceof o||t instanceof n.M?this.x*t.x+this.y*t.y+this.z*t.z:this.x*t+this.y*e+this.z*r}cross(t){const e=this.x,r=this.y,n=this.z;return new o(r*t.z-t.y*n,n*t.x-t.z*e,e*t.y-t.x*r)}normalize(){const t=this.mag();t>0&&this.div(t)}limit(t){this.mag()>t&&(this.normalize(),this.mult(t))}heading2D(){return-Math.atan2(-this.y,this.x)}random2D(){return this.fromAngle(Math.random()*(2*Math.PI))}fromAngle(t,e=1){return new o(e*Math.cos(t),e*Math.sin(t),0)}fromAngles(t,e,r=1){const n=Math.cos(e),i=Math.sin(e),a=Math.cos(t),s=Math.sin(t);return new o(r*s*i,-r*a,r*s*n)}array(){return[this.x,this.y,this.z]}toPoint3D(){return new n.M(this.x,this.y,this.z)}toPoint2D(){return new i.P(this.x,this.y)}copy(){return new o(this.x,this.y,this.z)}toString(){return"["+this.x+", "+this.y+", "+this.z+"]"}}},7855:(t,e,r)=>{r.d(e,{O:()=>n});const n=t=>null!=t},8741:(t,e,r)=>{r.d(e,{M:()=>o});var n=r(7553),i=r(4068);class o extends i.P{constructor(t,e,r){t instanceof n.M?(super(t.x,t.y),this.z=t.z):"object"==typeof t?(super({x:t.x??0,y:t.y??0}),this.z=t.z??0):(super(t,e),this.z=r??0)}copy(){return new o(this.x,this.y,this.z)}}},9244:(t,e,r)=>{r.d(e,{r:()=>a});var n=r(4068),i=r(3599),o=r(5275);class a{constructor(t,e,r=0,i=0){(0,o.s)(t)?(this._start=new n.P(0,0),this._width=t.width,this._height=t.height):"object"==typeof t&&"object"==typeof e?(this._start=t instanceof n.P?t:new n.P(t.x,t.y),this.end=e instanceof n.P?e:new n.P(e.x,e.y)):"object"==typeof t&&"number"==typeof e?(this._start=t instanceof n.P?t:new n.P(t.x,t.y),this._width=e,this._height=r):"number"==typeof t&&"number"==typeof e&&(this._start=new n.P(t,e),this._width=r,this._height=i)}valueLinkControl(t){let e,r=!1;var n;return"object"==typeof(n=t)&&"value"in n&&"noLink"in n?(e=t.value,r=t.noLink):e=t,{value:e,noLink:r}}get width(){return this._width}get height(){return this._height}get start(){return this._start.copy()}set width(t){this.setWidth(t)}setWidth(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this._width,e);this._width=e,this.applyWidthPercentLinks({value:n,noLink:r})}set height(t){this.setHeight(t)}setHeight(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this._height,e);this._height=e,this.applyHeightPercentLinks({value:n,noLink:r})}set start(t){let{value:e,noLink:r}=this.valueLinkControl(t);const o=new n.P({x:i.z.getPercentByTotal(this._start.x,e.x),y:i.z.getPercentByTotal(this._start.y,e.y)});this._start=e,this.applyStartPercentLinks({value:o,noLink:r})}setWidthFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this.start.x,e);this._start.x=this.end.x-e,this.applyStartXPercentLinks({value:n,noLink:r})}set widthFromEnd(t){this.setWidthFromEnd(t)}setHeightFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.end.y-e,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks({value:o,noLink:r})}set heightFromEnd(t){this.setHeightFromEnd(t)}setWidthFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.x-e/2,o=i.z.getPercentByTotal(this.start.x,n);this._start.x=n,this.applyStartXPercentLinks(o)}set widthFromCenter(t){this.setWidthFromCenter(t)}setHeightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.y-e/2,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks(o)}set heightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.y-e/2,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks(o)}set x(t){this.setX(t)}setX(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=e-this._start.x,o=i.z.getPercentByTotal(this.width,n);this._start.x=e,this.applyStartXPercentLinks({value:o,noLink:r})}set y(t){this.setY(t)}setY(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=e-this._start.y,o=i.z.getPercentByTotal(this.height,n);this._start.y=e,this.applyStartYPercentLinks({value:o,noLink:r})}applyWidthPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setWidthByWidthPercent({value:e,noLink:this})})}applyHeightPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setHeightByHeightPercent({value:e,noLink:this})})}applyStartPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.applyStartXPercentLinks({value:e.x,noLink:r}),this.applyStartYPercentLinks({value:e.y,noLink:r})}applyStartXPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addXByWidthPercent({value:e,noLink:this})})}applyStartYPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addYByHeightPercent({value:e,noLink:this})})}hasLink(t){return this.linkRects?.has(t)}isLinked(){return!!this.linkRects?.size}addLink(...t){this.linkRects??(this.linkRects=new Set),t.filter(t=>!this.linkRects?.has(t)).forEach(t=>{this.linkRects?.add(t),t.addLink(this)})}setLinks(t){this.unLinkAll(),this.addLink(...t)}unLinkAll(){this.linkRects&&(Array.from(this.linkRects.values()).forEach(t=>{this.unLink(t)}),this.linkRects.clear())}unLink(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.linkRects&&this.linkRects.delete(e),r||e.unLink({value:this,noLink:this})}addWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:this.width+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:this.height+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addWidthRatio(t){this.width=this.width+i.z.getValueByTotalInRatio(this.width,t)}addHeightRatio(t){this.height=this.height+i.z.getValueByTotalInRatio(this.height,t)}addXPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addYPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addXRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set endX(t){const e=t-this.x;this.width=e}set endXPercent(t){this.endX=i.z.getValueByTotalInPercent(this.width,t)}set endYPercent(t){this.endY=i.z.getValueByTotalInPercent(this.height,t)}set endY(t){this.height=t-this.y}set end(t){this.width=t.x-this.x,this.height=t.y-this.y}get x(){return this.start.x}get y(){return this.start.y}get endX(){return this.end.x}get endY(){return this.end.y}to(t){const e=this.copy();return e.start=t,e}toRotate(t,{rotatePoint:e=this.center,type:r="degreeAngle"}){const o=i.z.radians(t,{type:r}),a=e instanceof n.P?e:new n.P(e.x,e.y);return[this.leftTop,this.rightTop,this.rightBottom,this.leftBottom].map(t=>i.z.rotatePoint(t,a,o))}get center(){return new n.P(this.start.x+this.width/2,this.start.y+this.height/2)}get end(){return new n.P(this.start.x+this.width,this.start.y+this.height)}get leftTop(){return this.start.copy()}get leftBottom(){return new n.P(this.start.x,this.end.y)}get rightTop(){return new n.P(this.end.x,this.start.y)}get rightBottom(){return this.end}copy(){return new a(this.x,this.y,this.width,this.height)}getWidthPercent(t){return i.z.getPercentByTotal(this.width,t)}getWidthRatio(t){return i.z.getRatioByTotal(this.width,t)}getWidthByPercent(t){return i.z.getValueByTotalInPercent(this.width,t)}getWidthByRatio(t){return i.z.getValueByTotalInRatio(this.width,t)}getHeightPercent(t){return i.z.getPercentByTotal(this.height,t)}getHeightRatio(t){return i.z.getRatioByTotal(this.height,t)}getHeightByPercent(t){return i.z.getValueByTotalInPercent(this.height,t)}getHeightByRatio(t){return i.z.getValueByTotalInRatio(this.height,t)}getXPercent(t){return i.z.getPercentByTotal(this.width,t-this.x)}getXRatio(t){return i.z.getRatioByTotal(this.width,t-this.x)}getXByPercent(t){return this.x+i.z.getValueByTotalInPercent(this.width,t)}getXByRatio(t){return this.x+i.z.getValueByTotalInRatio(this.width,t)}getYPercent(t){return i.z.getPercentByTotal(this.height,t-this.y)}getYRatio(t){return i.z.getRatioByTotal(this.height,t-this.y)}getYByPercent(t){return this.y+i.z.getValueByTotalInPercent(this.height,t)}getYByRatio(t){return this.y+i.z.getValueByTotalInRatio(this.height,t)}getPercent(t){return new n.P(this.getXPercent(t.x),this.getYPercent(t.y))}toScaleByWidth(t){const e=this.height/this.width;return new a(this.x,this.y,t,t*e)}toScaleByHeight(t){const e=this.width/this.height;return new a(this.x,this.y,t*e,t)}toRatio(t){return new a(this.getXRatio(t.x),this.getYRatio(t.y),this.getWidthRatio(t instanceof a?t.width:t.w),this.getHeightRatio(t instanceof a?t.height:t.h))}getRatio(t){return new n.P(this.getXRatio(t.x),this.getYRatio(t.y))}getByPercent(t){return new n.P(this.getXByPercent(t.x),this.getYByPercent(t.y))}getByRatio(t){return new n.P(this.getXByRatio(t.x),this.getYByRatio(t.y))}getDiffX(t){return t-this.x}getDiffY(t){return t-this.y}getDiffLeft(t){this.getDiffX(t)}getDiffTop(t){this.getDiffY(t)}getDiffRight(t){return t-this.end.x}getDiffBottom(t){return t-this.end.y}getDiffWidth(t){return t-this.width}getDiffHeight(t){return t-this.height}toDiff(t){return new a(t.x-this.x,t.y-this.y,t.width-this.width,t.height-this.height)}setXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:i.z.getValueByTotalInPercent(this.width,e),noLink:r})}set xByWidthPercent(t){this.setXByWidthPercent(t)}setXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:i.z.getValueByTotalInRatio(this.width,e),noLink:r})}set xByWidthRatio(t){this.setXByWidthRatio(t)}setYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:i.z.getValueByTotalInPercent(this.height,e),noLink:r})}set yByHeightPercent(t){this.setYByHeightPercent(t)}setYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set yByHeightRatio(t){this.setYByHeightRatio(t)}addXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,e),noLink:r})}setWidthByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:i.z.getValueByTotalInPercent(this.width,e),noLink:r})}set widthByWidthPercent(t){this.setWidthByWidthPercent(t)}setWidthByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:i.z.getValueByTotalInRatio(this.width,e),noLink:r})}set widthByWidthRatio(t){this.setWidthByWidthRatio(t)}setHeightByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:i.z.getValueByTotalInPercent(this.height,e),noLink:r})}set heightByHeightPercent(t){this.setHeightByHeightPercent(t)}setHeightByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set heightByHeightRatio(t){this.setHeightByHeightRatio(t)}copyByPercent(t,e){return new a(this.x,this.y,i.z.getValueByTotalInPercent(this.width,t),i.z.getValueByTotalInPercent(this.height,e??t))}copyByRatio(t,e){return new a(this.x,this.y,i.z.getValueByTotalInRatio(this.width,t),i.z.getValueByTotalInRatio(this.height,e??t))}isIn(t){return t instanceof a?this.isIn(t.start)&&this.isIn(t.end):t.x>=this.start.x&&t.x<=this.end.x&&t.y>=this.start.y&&t.y<=this.end.y}isOut(t){return t instanceof a?!this.isOverlap(t):!this.isIn(t)}isOverlap(t){return t instanceof a?!(this.endX<t.x||this.x>t.endX||this.endY<t.y||this.y>t.endY):this.isIn(t)}toString(){return`x:${this.x}, y:${this.y}, width: ${this.width}, height: ${this.height}`}}},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},m={};function O(t){var e=m[t];if(void 0!==e)return e.exports;var r=m[t]={exports:{}};return b[t](r,r.exports,O),r.exports}O.d=(t,e)=>{for(var r in e)O.o(e,r)&&!O.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},O.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var _={};O.d(_,{T:()=>M});var M,x=O(9284),S=O(4068),k=O(8741),P=O(9244),j=O(2676);!function(t){t.objToGetURL=t=>Object.keys(t).reduce((e,r,n)=>`${e}${0!==n?"&":""}${r}=${t[r]}`,""),t.mapToJson=t=>JSON.stringify(Array.from(t.entries()).reduce((t,[e,r])=>(t[e]=r,t),{})),t.jsonToMap=t=>new Map(JSON.parse(t)),t.decodeURIString=t=>decodeURIComponent(t),t.objToStrMap=t=>{const e=new Map;for(const r of Object.keys(t))e.set(r,t[r]);return e},t.jsonToStrMap=e=>t.objToStrMap(JSON.parse(e)),t.strToObject=t=>JSON.parse(t),t.objToJson=t=>JSON.stringify(t),t.objToMap=t=>{const e=new Map;return Object.keys(t).forEach(r=>{e.set(r,t[r])}),e},t.mapToObj=t=>{const e={};return t.forEach((t,r)=>{e[r]=t}),e},t.snakeToCamelCase=t=>t.replace(/_([a-z])/g,(t,e)=>e.toUpperCase()),t.camelToSnakeCase=t=>t.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),t.toFormData=function(t){const e=new FormData;for(const r in t)e.append(r,t[r]);return e},t.toObject=function(e,r){if(e instanceof URLSearchParams){const t={};return e.forEach((e,n)=>{r?.firstValue&&void 0===t[n]?t[n]=e:r?.firstValue||(t[n]?Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]:t[n]=e)}),t}if(e instanceof FormData){const t=t=>{const e={};for(const r of t.keys()){const n=t.getAll(r);e[r]=n.length>1?n:n[0]}return e};return t(e)}if(e&&"function"==typeof e[Symbol.iterator])return Object.fromEntries(e);if(Array.isArray(e))return Object.fromEntries(e);if(x.U.isMap(e)){const r=e;e=t.mapToObj(r)}if(x.U.isArray(e)){const r=e;for(let e=0;e<r.length;e++)r[e]=t.toObject(r[e])}if(x.U.isObject(e))for(const r in e)e[r]=t.toObject(e[r]);return e},t.toArray=t=>t instanceof Set?Array.from(t.values()):Array.isArray(t)?t:t?[t]:[],t.flatArray=(...t)=>t.flatMap(t=>t instanceof Object&&Symbol.iterator in t?Array.from(t):[t]),t.iteratorToArray=t=>Array.from(t),t.toJson=e=>{const r=t.toObject(e);return JSON.stringify(r)},t.concatenateToAttribute=e=>t.concatenateToString(e,"="," ","'"),t.concatenateToParameter=e=>t.concatenateToString(e,"=","&",""),t.concatenateToString=(t,e="=",r=" ",n="")=>{const i=[];for(const r in t){const o=t[r];o&&i.push(r.toString()+e+n+o+n)}return i.join(r)},t.specialCharsToEscape=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.decodeHTMLEscape=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(///g,"/"),t.copyObject=(t,e={})=>({...t,...e}),t.copyArrayWithAddition=(t,e)=>[...t,...e||[]],t.hexToInt=t=>(t.startsWith("#")&&(t=t.slice(1)),3===t.length&&(t=t.split("").map(t=>t+t).join("")),parseInt(t,16)),t.toHex=t=>(t<0&&(t=4294967295+t+1),(t=Number(t.toFixed(0))).toString(16).padStart(2,"0").toUpperCase()),t.toHexColor=e=>`#${t.toHex(e.r??0)}${t.toHex(e.g??0)}${t.toHex(e.b??0)}${t.toHex(e.a??255)}`,t.avgColor=t=>{const e=t.reduce((t,e)=>(t.r+=e.r??0,t.g+=e.g??0,t.b+=e.b??0,t.a+=e.a??0,t),{r:0,g:0,b:0,a:0});return{r:Math.floor(e.r/t.length),g:Math.floor(e.g/t.length),b:Math.floor(e.b/t.length),a:Math.floor(e.a/t.length)}},t.toRGBA=t=>{t??(t="#000000FF");const e=t.replace("#","");return{r:parseInt(e.slice(0,2)||"0",16),g:parseInt(e.slice(2,4)||"0",16),b:parseInt(e.slice(4,6)||"0",16),a:e.length>6?parseInt(e.slice(6,8)||"0",16):255}},t.minMaxCenterAvg=t=>{const e={},r=j.B.uniqueKeys(t);for(const n of r){const r=t.map(t=>t[n]),i=Math.min(...r),o=Math.max(...r),a=(i+o)/2,s=r.reduce((t,e)=>t+e,0)/r.length;e[n]={min:i,max:o,center:a,avg:s,diff:o-i}}return e},t.minMaxCenterRectAvg2D=t=>{const e=new S.P(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),r=new S.P(Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);let n=new S.P(0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),n.x+=t.x,n.y+=t.y});const i=new S.P((e.x+r.x)/2,(e.y+r.y)/2),o=new S.P(n.x/t.length,n.y/t.length),a=new P.r(e.x,e.y,r.x-e.x,r.y-e.y);return{min:e,max:r,center:i,avg:o,minMaxRect:a}},t.minMaxCenterAvg3D=t=>{const e=new k.M(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),r=new k.M(Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE);let n=new k.M(0,0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),e.z=Math.max(e.z,t.z),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),r.z=Math.max(r.z,t.y),n.x+=t.x,n.y+=t.y,n.z+=t.z});const i=new k.M((e.x+r.x)/2,(e.y+r.y)/2,(e.z+r.z)/2),o=new k.M(n.x/t.length,n.y/t.length,n.z/t.length);return{min:e,max:r,center:i,avg:o}},t.roundRectRadiiToFullRadii=t=>t?1===t.length?[t[0]??0,t[0]??0,t[0]??0,t[0]??0]:2===t.length?[t[0]??0,t[1]??0,t[0]??0,t[1]??0]:3===t.length?[t[0]??0,t[1]??0,t[2]??0,t[1]??0]:t:[0,0,0,0],t.toArrayDirectionChange=t=>{if(!t||0===t.length||!t[0]||0===t[0].length)return[];const e=[],r=t[0].length,n=t.length;for(let i=0;i<r;i++){const r=[];for(let e=0;e<n;e++)r.push(t[e][i]);e.push(r)}return e},t.groupByMap=(t,e)=>t.reduce((t,r)=>{const n=e(r),i=t.get(n)||[];return i.push(r),t.set(n,i),t},new Map),t.groupByObject=(e,r)=>{const n=t.groupByMap(e,r);return Object.fromEntries(n)},t.toURLSearchParams=t=>{const e=new URLSearchParams;if("string"==typeof t)new URLSearchParams(t).forEach((t,r)=>{e.append(r,t)});else if("object"==typeof t){const r=t instanceof URLSearchParams?t.entries():Array.isArray(t)?t:Object.entries(t);for(const[t,n]of Array.from(r))Array.isArray(n)?n.forEach(r=>e.append(t,r)):e.append(t,n)}return e},t.stringJsonToKeyPairs=t=>Array.from(t.matchAll(/(\w+):\s*([^,}]+)/g)).map(t=>({key:t[1],value:t[2]}))}(M||(M={}));const R=_.T;var T=r(426);class A{constructor(t,e,r){t instanceof A?(this.req=t.req,this.res=t.res,this.config=r):(this.req=t,this.res=e,this.config=r)}get reqSocket(){return this.req.socket}get reqCookieMap(){let t=this.reqHeader(n.HttpHeaders.Cookie)??"";Array.isArray(t)&&(t=t.join(";"));const e=new Map;return t.split(";").map(t=>t.trim().split("=")).forEach(t=>{e.set(t[0],t[1])}),e}reqCookieGet(t){return this.reqCookieMap.get(t)}get reqRemoteAddress(){const t=this.req.headers["x-forwarded-for"];let e=this.req.socket.remoteAddress;return Array.isArray(t)?e=t.join(",").split(",").shift():"string"==typeof t&&(e=t.split(",").shift()),e}get reqUrlObject(){return new l.URL(this.reqUrl,`${this.reqSocket?"https://":"http"}${this.reqHost??"localhost"}`)}get reqUrlPathName(){return this.reqUrlObj().pathname??""}get reqUrl(){return this.req.url??""}reqUrlObj(t){return new l.URL(`${t?.scheme??"http"}://${t?.host?t?.host:this.reqHeaderFirst(n.HttpHeaders.Host)??"localhost"}${this.req.url??""}`)}get reqUrlSearchParamTuples(){return Array.from(this.reqUrlObj().searchParams)}get reqUrlSearchParams(){return this.reqUrlObj().searchParams}get reqUrlSearchParamsObj(){const t=this.reqUrlObj().searchParams;return R.toObject(t)}get reqPathSearchParamUrl(){const t=this.reqUrlObj();return t.pathname+(t.searchParams.toString()?"?"+t.searchParams.toString():"")}get reqReadable(){return this.req.readable}get reqIntent(){return new h(this.reqPathSearchParamUrl)}reqHasContentTypeHeader(t){return(this.reqHeaderFirst(n.HttpHeaders.ContentType)??"").toLowerCase().indexOf(t.toLocaleLowerCase())>-1}reqHasAcceptHeader(t){return(this.reqHeaderFirst(n.HttpHeaders.Accept)??"").toLowerCase().indexOf(t.toLocaleLowerCase())>-1}reqBodyData(){return new Promise((t,e)=>{if(this.reqReadable){const r=[];this.req.on("data",t=>r.push(t)),this.req.on("error",t=>e(t)),this.req.on("end",()=>{this.reqBodyChunk=y.Buffer.concat(r),t(this.reqBodyChunk)})}else t(this.reqBodyChunk??y.Buffer.alloc(0))})}resBodyData(){return this.resWriteChunk}async reqBodyMultipartFormDataObject(){const t=await this.reqBodyMultipartFormData(),e={};for(const r of t)if(r.isFile)e[r.name]=await w.i.writeFile(r.value,{originalName:r.filename});else{const t=e[r.name];Array.isArray(t)?t.push(r.value):e[r.name]="string"==typeof t?[t,r.value]:r.value}return e}reqBodyMultipartFormData(){return new Promise((t,e)=>{const r=this.req.headers["content-type"];if(!r||!r.startsWith("multipart/form-data"))return e(new Error("Invalid Content-Type. Expected multipart/form-data."));const n=r.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!n)return e(new Error("Boundary not found in Content-Type header."));const i=n[1]||n[2];if(!i)return e(new Error("Failed to extract boundary."));const o=y.Buffer.from(`--${i}`),a=y.Buffer.from("\r\n"),s=y.Buffer.from("\r\n\r\n"),u=[];let c=0;this.req.on("data",t=>{u.push(t),c+=t.length}),this.req.on("error",t=>{e(t)}),this.req.on("end",()=>{if(0===c)return t([]);const r=y.Buffer.concat(u,c),n=[];let i=0,f=r.indexOf(o,i);if(-1===f)return e(new Error("Initial boundary not found."));for(i=f+o.length,r.slice(i,i+a.length).equals(a)&&(i+=a.length);i<r.length;){const t=r.indexOf(o,i);if(-1===t)break;let e=t;e>a.length&&r.slice(e-a.length,e).equals(a)&&(e-=a.length);const u=r.slice(i,e),c=u.indexOf(s);if(-1===c){if(console.warn("Skipping malformed part: no header/body separator found."),i=t+o.length,r.slice(i,i+a.length).equals(a)&&(i+=a.length),"--"===r.slice(i,i+2).toString())break;continue}const f=u.slice(0,c),h=u.slice(c+s.length),l=f.toString("utf-8"),y={};l.split("\r\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const r=t.substring(0,e).trim().toLowerCase(),n=t.substring(e+1).trim();y[r]=n}});const p=y["content-disposition"];if(!p){if(console.warn("Skipping part: no Content-Disposition header."),i=t+o.length,r.slice(i,i+a.length).equals(a)&&(i+=a.length),"--"===r.slice(i,i+2).toString())break;continue}const d=p.match(/name="([^"]+)"/i),g=p.match(/filename="([^"]+)"/i),v=d?d[1]:null,w=g?g[1]:null,b=y["content-type"]||null;if(v){const t=!!w,e={name:v,isFile:t,filename:w,contentType:b,value:t?h:h.toString("utf-8")};n.push(e)}else console.warn("Skipping part: 'name' not found in Content-Disposition.");if(i=t+o.length,r.slice(i,i+a.length).equals(a)&&(i+=a.length),"--"===r.slice(i,i+2).toString())break}t(n)})})}async reqBodyStringData(){return(await this.reqBodyData()).toString()}async reqBodyJsonData(){return JSON.parse(await this.reqBodyStringData())}async reqBodyFormUrlData(){const t=await this.reqBodyStringData(),e={};return Array.from(new l.URLSearchParams(t).entries()).forEach(([t,r])=>{const n=e[t];Array.isArray(n)?n.push(r):e[t]="string"==typeof n?[n,r]:r}),e}async reqBodyReqFormUrlBody(){const t=await this.reqBodyFormUrlData();return Object.assign(new p.ReqFormUrlBody,t)}async reqBodyReqJsonBody(){const t=await this.reqBodyStringData();return Object.assign(new d.ReqJsonBody,t?JSON.parse(t):{})}resBodyJsonData(){const t=T.T.toString(this.resBodyData());return t?JSON.parse(t):null}resBodyStringData(){return T.T.toString(this.resBodyData())}reqMethod(){return this.req.method?.toUpperCase()}reqHeader(t){return this.req.headers[t.toLowerCase()]}get reqHost(){return this.reqHeaderFirst(n.HttpHeaders.Host)}get reqHeaderObj(){const t=new g.ReqHeader;return Object.entries(this.req.headers).forEach(([e,r])=>{t[e]=r}),t}reqHeaderFirst(t,e){const r=this.req.headers[t.toLowerCase()];return r&&Array.isArray(r)?r[0]??e:r??e}reqAuthorizationHeader(){return this.reqHeaderFirst(n.HttpHeaders.Authorization)}reqRefreshTokenHeader(){return this.reqHeaderFirst(n.HttpHeaders.Authorization)}resStatusCode(t){return t?(this.res.statusCode=t,new E(this.req,this.res,this.config,this.res.statusCode)):this.res.statusCode}resHeader(t){return this.res.getHeader(t.toLowerCase())}resHeaderFirst(t,e){const r=this.res.getHeader(t.toLowerCase());return r&&Array.isArray(r)?r[0]??e:r??e}async reqSession(){return this.config.sessionManager?(await this.config.sessionManager.session(this)).dataSet.data:Promise.reject(new Error("Not SessionManager"))}reqSessionSet(t,e){this.reqSession[t]=e}reqSessionGet(t){const e=this.reqSession;if(e)return e[t]}resSetStatusCode(t){return this.res.statusCode=t,this.createRequestResponseChain(this.res.statusCode)}resWrite(t,e="utf8"){return this.resWriteChunk=t,this.createRequestResponseChain(this.resWriteChunk)}resWriteJson(t,e="utf8"){return this.resWrite(JSON.stringify(t),e)}resSetHeader(t,e){return this.createRequestResponseChain(this.res.setHeader(t.toLowerCase(),e))}resAddHeader(t,e){const r=this.res.getHeader(t.toLowerCase()),n=Array.isArray(r)?r.concat(e):r?[r.toString(),...[].concat(e)]:e;return this.createRequestResponseChain(this.res.setHeader(t.toLowerCase(),n))}resSetHeaders(t){return Object.entries(t).forEach(([t,e])=>this.resSetHeader(t,e)),this.createRequestResponseChain()}resAddHeaders(t){return Object.entries(t).forEach(([t,e])=>this.resAddHeader(t,e)),this.createRequestResponseChain()}async resEndChunk(){const t=this.reqHeaderFirst(n.HttpHeaders.AcceptEncoding);let e=this.resWriteChunk;t?.includes("gzip")&&(e=await(0,v.gzip)(e),this.resSetHeader(n.HttpHeaders.ContentEncoding,"gzip")),this.res.end(e)}async resEnd(t){this.resWriteChunk=t??this.resWriteChunk,this.req.readable?(await this.reqBodyData(),await this.resEndChunk()):await this.resEndChunk()}resWriteHead(t,e){return this.createRequestResponseChain(this.res.writeHead(t,e))}resWriteHeadEnd(t,e){this.createRequestResponseChain(this.res.writeHead(t,e)),this.res.end()}resIsDone(){return this.res.finished||this.res.writableEnded||this.res.headersSent}createRequestResponseChain(t){const e=new E(this.req,this.res,this.config,t);return e.resWriteChunk=this.resWriteChunk,e.reqBodyChunk=this.reqBodyChunk,e}}class E extends A{constructor(t,e,r,n){super(t,e,r),this.result=n}}},3587:(t,e,r)=>{"use strict";r.d(e,{HttpServerOption:()=>s});var n={d:(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},i={};n.d(i,{t:()=>o});class o{constructor({rootRouter:t,container:e,cache:r,advice:n=[],proxy:i,using:o}={}){this.rootRouter=t,this.container=e,this.advice=n,this.proxy=i,this.using=o,this.cache=r}addAdvicce(t){this.advice??(this.advice=[]),this.advice.push(t)}setAdvice(...t){return this.advice=t,this}}const a=i.t;class s extends a{constructor({serverOption:t,listen:e,filters:r,requestEndPoints:n,closeEndPoints:i,errorEndPoints:o,sessionOption:a,globalAdvice:u,fileUploadTempPath:c,noSuchRouteEndPointMappingThrow:f,transactionManagerFactory:h}={},l){super(l),this.serverOption=t,this.listen=Object.assign({port:s.DEFAULT_PORT,hostname:s.DEFAULT_HOSTNAME},e),this.filters=r,this.requestEndPoints=n,this.closeEndPoints=i,this.errorEndPoints=o,this.sessionOption=Object.assign({key:"SBSESSIONID",expiredTime:18e5},a),this.globalAdvice=u,this.fileUploadTempPath=c,this.noSuchRouteEndPointMappingThrow=f,this.transactionManagerFactory=h}get hostname(){return this.listen.hostname}get port(){return this.listen.port}get protocol(){return this.isSecure?"https":"http"}get address(){return`${this.protocol}://${this.hostname}:${this.port}`}get isSecure(){return this.serverOption&&"key"in this.serverOption&&"cert"in this.serverOption}}s.DEFAULT_PORT=8081,s.DEFAULT_HOSTNAME="127.0.0.1"},5053:(t,e,r)=>{"use strict";r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=N(t,i);if(void 0!==r){var n=r.call(t,e);if(P(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(A(n)&&!P(r=n.call(t)))return r;if(A(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function T(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function E(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!T(t))throw new TypeError;if(!E(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!E(n))throw new TypeError;e=n}}return e}(t,e)}if(!T(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d},5118:(t,e,r)=>{"use strict";var n;r.d(e,{HttpMethod:()=>n}),function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE",t.PATCH="PATCH",t.HEAD="HEAD",t.OPTIONS="OPTIONS",t.TRACE="TRACE",t.CONNECT="CONNECT"}(n||(n={}))},5797:(t,e,r)=>{"use strict";var n;r.d(e,{InjectSituationType:()=>n}),function(t){t.TransactionManager=Symbol("TransactionManager")}(n||(n={}))},5884:(t,e,r)=>{"use strict";var n=r(3106);t.exports={gzip:function(t,e){return new Promise(function(r,i){n.gzip(t,e,function(t,e){t?i(Error(t)):r(e)})})},ungzip:function(t,e){return new Promise(function(r,i){n.gunzip(t,e,function(t,e){t?i(Error(t)):r(e)})})}}},6377:(t,e,r)=>{"use strict";r.d(e,{ReqFormUrlBody:()=>n});class n{}},7016:t=>{"use strict";t.exports=require("url")},7953:(t,e,r)=>{"use strict";var n;r.d(e,{HttpHeaders:()=>n}),function(t){t.ContentLength="Content-Length",t.ContentType="Content-Type",t.ContentEncoding="Content-Encoding",t.Accept="Accept",t.Authorization="Authorization",t.CacheControl="Cache-Control",t.Connection="Connection",t.Date="Date",t.Host="Host",t.Pragma="Pragma",t.Trailer="Trailer",t.TransferEncoding="Transfer-Encoding",t.Upgrade="Upgrade",t.Via="Via",t.Warning="Warning",t.AcceptCharset="Accept-Charset",t.AcceptEncoding="Accept-Encoding",t.AcceptLanguage="Accept-Language",t.AccessControlAllowOrigin="Access-Control-Allow-Origin",t.AccessControlAllowMethods="Access-Control-Allow-Methods",t.AccessControlAllowHeaders="Access-Control-Allow-Headers",t.AccessControlExposeHeaders="Access-Control-Expose-Headers",t.Expect="Expect",t.From="From",t.MaxForwards="Max-Forwards",t.Referer="Referer",t.UserAgent="User-Agent",t.Cookie="Cookie",t.SetCookie="Set-Cookie",t.Cookie2="Cookie2",t.SetCookie2="Set-Cookie2",t.Location="Location",t.IfModifiedSince="If-Modified-Since",t.IfUnmodifiedSince="If-Unmodified-Since",t.IfMatch="If-Match",t.IfNoneMatch="If-None-Match",t.IfRange="If-Range",t.Allow="Allow",t.Server="Server"}(n||(n={}))},9108:(t,e,r)=>{"use strict";r.d(e,{UrlMappingSituationType:()=>n,getUrlMapping:()=>a,getUrlMappings:()=>s}),r(9771);var n,i=r(5053);r(5118),function(t){t.REQ_JSON_BODY="SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY",t.REQ_FORM_URL_BODY="SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY"}(n||(n={}));const o=Symbol("MappingMetadataKey"),a=(t,e)=>i.d.getMetadata(o,t,e),s=t=>(null!=t&&"object"==typeof t&&(t=t.constructor),i.d.getMetadata(o,t))},9434:(t,e,r)=>{"use strict";r.d(e,{ReqHeader:()=>n});class n{}},9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return D(Object.create(null))}:s?function(){return D({__proto__:null})}:function(){return D({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,N(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!N(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(N(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(t){if("function"==typeof Uint8Array){var e=new Uint8Array(t);return"undefined"!=typeof crypto?crypto.getRandomValues(e):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(e):o(e,t),e}return o(new Array(t),t)}(16);t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:s,getProvider:c,setProvider:d};return a;function s(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}}function u(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=F(i);;){var s=L(a);if(!s)return;var u=B(s);if(u.isProviderFor(e,o))return I(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function c(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=u(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function f(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}function d(t,e,r){if(!f(r))throw new Error("Metadata provider not registered.");var n=c(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&R(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=F(i.keys()),a=0;;){var s=L(o);if(!s)return r.length=a,r;var u=B(s);try{r[a]=u}catch(t){try{I(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=U(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=K(e,r,!1);return!S(n)&&R(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=U(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=K(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){K(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=U(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=K(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t,e){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var r=3===e?"string":5===e?"number":"default",n=C(t,i);if(void 0!==n){var o=n.call(t,r);if(P(o))throw new TypeError;return o}return function(t,e){if("string"===e){var r=t.toString;if(E(r)&&!P(i=r.call(t)))return i;if(E(n=t.valueOf)&&!P(i=n.call(t)))return i}else{var n;if(E(n=t.valueOf)&&!P(i=n.call(t)))return i;var i,o=t.toString;if(E(o)&&!P(i=o.call(t)))return i}throw new TypeError}(t,"default"===r?"number":r)}function R(t){return!!t}function T(t){var e=j(t,3);return"symbol"==typeof e?e:function(t){return""+t}(e)}function A(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function z(t){return"function"==typeof t}function N(t,e){return t===e||t!=t&&e!=e}function C(t,e){var r=t[e];if(null!=r){if(!E(r))throw new TypeError;return r}}function F(t){var e=C(t,o);if(!E(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function B(t){return t.value}function L(t){var e=t.next();return!e.done&&e}function I(t){var e=t.return;e&&e.call(t)}function U(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function K(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function D(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!A(t))throw new TypeError;if(!z(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!z(n))throw new TypeError;e=n}}return e}(t,e)}if(!A(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=T(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=T(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=T(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=T(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=T(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=T(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=T(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=T(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=T(r)),!P(e))throw new TypeError;S(r)||(r=T(r));var n=K(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{SimpleBootHttpServer:()=>Xt});var t={16:(t,e,r)=>{r.d(e,{p:()=>y});var n=r(2743),i=r(4647),o=r(970),a=r(9212),s=r(8259),u=r(742),c=r(532),f=r(4209),h=r(1448),l=r(653);let y=class{constructor(t,e){this.simstanceManager=t,this.simOption=e,this.subject=new l.B}get observable(){return this.subject.asObservable()}routingMap(t="",e){const r=e?.router??this.simOption.rootRouter;if(!r)throw new Error("no router");const n={};if(r){const i="object"==typeof r?r.constructor:r,s="object"==typeof r?r:void 0,u=new a.J({targetKeyType:i,originalType:i,value:s},this.simstanceManager).getConfig(o.sP);if(u){const r=t+u.path;u.route&&u.route[""]&&(n[r]=u.route[""]),u.route&&Object.entries(u.route).forEach(([t,e])=>{n[r+t]=e}),u.routers?.forEach(t=>{Object.assign(n,this.routingMap(r,{...e,router:t}))})}}return n}async routings(t,e){const r=e?.router??this.simOption.rootRouter;if(!r)throw new Error("no router");const n="object"==typeof r?r.constructor:r,i="object"==typeof r?r:void 0,o=new a.J({targetKeyType:n,originalType:n,value:i},this.simstanceManager),s=this._collectAllMatchingModules(o,t,[]),u=s.filter(e=>e.path===t.pathname&&e.module);if(u.length>0)return u.forEach(e=>this.subject.next({intent:t,routerManager:this,routerModule:e})),u;const c=s.filter(e=>e.path===t.pathname);return c.length>0?(c.forEach(e=>this.subject.next({intent:t,routerManager:this,routerModule:e})),c):[]}async routing(t,e){"string"==typeof t&&(t=new n.J(t));const r=e?.router??this.simOption.rootRouter;if(!r)throw new Error("no router");const i="object"==typeof r?r.constructor:r,o="object"==typeof r?r:void 0,s=new a.J({targetKeyType:i,originalType:i,value:o},this.simstanceManager),u=s.getValue(),c=this.getExecuteModule(s,t,[],e);if(c){const[e,r]=c;e.routerChains=r,this.activeRouterModule=e;const n={intent:t,routerModule:e,routerManager:this};if(r.length>0)for(let t=0;t<r.length;t++){const e=r[t],i=r[t+1],o=e.getValue();f.W.isCanActivate(o)&&i&&await o.canActivate(n,i.getValue()),f.W.isOnRouting(o)&&i&&await o.onRouting(n)}this.activeRouterModule=e;const i=e.getModuleInstance();if(e?.module){const t=e.router?.getValue();f.W.isCanActivate(t)&&await t.canActivate(n,i),f.W.isOnRouting(t)&&await t.onRouting(n),i&&f.W.isOnRouting(i)&&await i.onRouting(n)}else{const t=e.routerChains[e.routerChains.length-1],r=t?.getValue();f.W.isCanActivate(r)&&await r.canActivate(n,i),f.W.isOnRouting(r)&&await r.onRouting(n)}const o=this.activeRouterModule;return this.subject.next({intent:t,routerModule:o,routerManager:this}),o}{const e=await this._handleNotFoundRouting(u,t);return this.subject.next({intent:t,routerModule:e,routerManager:this}),e}}async _handleNotFoundRouting(t,e){const r=new i.i(this.simstanceManager,t,void 0,[]),n={intent:e,routerModule:r,routerManager:this},o=t;return f.W.isCanActivate(o)&&await o.canActivate(n,null),f.W.isOnRouting(o)&&await o.onRouting(n),this.activeRouterModule=r,this.activeRouterModule}getExecuteModule(t,e,r,n){const i=e.pathname,s=t.getConfig(o.sP);if(s){const u=[];if(Array.isArray(s.filters)?u.push(...s.filters):s.filters&&u.push(s.filters),u.some(t=>!1===("function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t)?.isAccept(e)))return;const c=r.map(t=>t.getConfig(o.sP)?.path||"");if(this.isRootUrl(s.path,c,i)){const i=[...r,t];if(s.routers&&s.routers.length>0){let t,r=-1;for(const o of s.routers){const s=new a.J({targetKeyType:o,originalType:o},this.simstanceManager),u=this.getExecuteModule(s,e,i,n);if(u){const[e,i]=u,o=e.path?.length||0;o>r?(r=o,t=u):o===r&&"last"===n?.find?.router&&(t=u)}}if(t)return t}const o=this.findRouterOrModule(t,s,c,e);if(o)return[o,i]}}}isRootUrl(t,e,r){const n=e.join("")+(t||"");if("/"===n)return!0;const i=n.split("/"),o=r.split("/").slice(0,i.length).join("/");return!!c.r.Path.pathNameData(o,n)}_collectAllMatchingModules(t,e,r){const n=[],i=e.pathname,s=t.getConfig(o.sP);if(s){const u=[];if(Array.isArray(s.filters)?u.push(...s.filters):s.filters&&u.push(s.filters),u.some(t=>!1===("function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t)?.isAccept(e)))return n;const c=r.map(t=>t.getConfig(o.sP)?.path||"");if(this.isRootUrl(s.path,c,i)){const i=[...r,t];if(s.routers&&s.routers.length>0)for(const t of s.routers){const r=new a.J({targetKeyType:t,originalType:t},this.simstanceManager);n.push(...this._collectAllMatchingModules(r,e,i))}const o=this.findRouterOrModule(t,s,c,e);o&&(o.routerChains=i,n.push(o))}}return n}findRouterOrModule(t,e,r,n){const o=this.findRouting(t,e,r,n);if(o?.module)return o.intent=n,o;const a=r.join("")+(e.path||"");if(this.isRootUrl(e.path,r,n.pathname)){const e=new i.i(this.simstanceManager,t);return e.intent=n,e.path=a,e.pathData=n.getPathnameData(a),e}}findRouting(t,e,r,n){const o=r.join("")+e.path;if(e.route)for(const r of Object.keys(e.route).filter(t=>!t.startsWith("_"))){const a=o+r,s=n.getPathnameData(a);if(s)try{const o=this.findRouteProperty(e.route,r,n),u=new i.i(this.simstanceManager,t,o.child);return u.data=o.data,u.path=a,u.pathData=s,u.propertyKeys=o.propertyKeys,u}catch(t){}}}findRouteProperty(t,e,r){let n,i,o;const a=t[e];if("function"==typeof a)n={targetKeyType:a,originalType:a};else if("symbol"==typeof a)n=this.simstanceManager.findLastSim(a)?.type;else{if("string"==typeof a)return this.findRouteProperty(t,a,r);if(Array.isArray(a)){const t=a?.[0];if("object"==typeof t&&"filters"in t&&"target"in t){const e=[];Array.isArray(t.filters)?e.push(...t.filters):t.filters&&e.push(t.filters),e.some(t=>!1===("function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t)?.isAccept(r))||(n={targetKeyType:t.target,originalType:t.target})}else n={targetKeyType:t,originalType:t};i=a?.[1]}else if("object"==typeof a&&"target"in a&&"propertyKeys"in a){const t=a.filters?.filter(t=>t).some(t=>!1===("function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t)?.isAccept(r));t||(n={targetKeyType:a.target,originalType:a.target},o=a.propertyKeys)}else if("object"==typeof a&&"filters"in a&&"target"in a){const t=[];Array.isArray(a.filters)?t.push(...a.filters):a.filters&&t.push(a.filters),t.some(t=>!1===("function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t)?.isAccept(r))||(n={targetKeyType:a.target,originalType:a.target})}}return{child:n,data:i,propertyKeys:o}}};y=function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}([u.on,function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:paramtypes",e)}(0,[s.T,h.t])],y)},420:(t,e,r)=>{r.d(e,{e:()=>i});var n=r(3966);class i extends n.W{constructor(t,e,r,n){super(t,e,n),this.propertyKeys=r}}},532:(t,e,r)=>{r.d(e,{r:()=>c});var n={3056:(t,e,r)=>{r.d(e,{$:()=>n});var n,i=r(9284);!function(t){t.deleteEnter=t=>t.replace(/\r?\n/g,""),t.pickEmoji=t=>t.match(/[\p{Emoji}]/gu)??[],t.regexExec=(t,e)=>{let r=t.exec(e);const n=[];for(;r;)n.push(r),r=t.exec(r.input);return n},t.regexExecArrayReplace=(e,r,n)=>((Array.isArray(r)?r:t.regexExec(r,e)).reverse().forEach(t=>{const r="string"==typeof n?n:n(t);e=e.substr(0,t.index)+e.substr(t.index).replace(t[0],r)}),e),t.escapeSpecialCharacterRegExp=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.trim=t=>t.trim(),t.rsubString=(t,e)=>t.substring(t.length-e,t.length),t.lsubString=(t,e)=>t.substring(0,e),t.lpad=(e,r,n)=>{for(;r>n.length;)n=e+n;return t.rsubString(n,r)},t.rpad=(e,r,n)=>{for(;r>n.length;)n+=e;return t.lsubString(n,r)},t.lappend=(t,e)=>{let r="",n=0;for(;n++<t;)r+=e;return r},t.unescape=t=>{if(!t)return"";const e={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿","#x27":"'"};return t.replace(/&((?:(?:[a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});?)+);/gi,(t,r)=>r.toLowerCase().split(";").map(r=>r in e?e[r]:t).join(""))},t.executeExpression=(t,e)=>t.replace(/\${([^{}]*)}/g,(t,r)=>String(e[r]??t)),t.ellipsis=(t,e)=>t.length>e?`${t.slice(0,e)}...`:t,t.appendPostposition=(t,{vowel:e,consonant:r})=>`${t}${i.U.lastConsonantLetter(t)?r:e}`}(n||(n={}))},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{r:()=>s});var s,u=o(3056);!function(t){let e,r;t.bindExpression=(t,e)=>(t??"").replace(/\$\{([\s\S.]*?)\}/g,(t,r)=>{const[n,i]=r.split(":"),o=e[n];return o?"function"==typeof o?o(e[i]):o:""}),function(t){t.isExpression=t=>/[$#]\{([\s\S.]*?)\}[$#]/g.test(t??""),t.expressionGroups=t=>u.$.regexExec(/[$#]\{([\s\S.]*?)\}[$#]/g,t??"")}(e=t.Group||(t.Group={})),function(t){t.pathNameData=(t,e)=>{const r=t.split("/"),n=e.split("/");if(r.length!==n.length)return;const i={};for(let t=0;t<n.length;t++){const e=n[t],o=r[t],a=/^\{(.+)\}$/g.exec(e);if(!a){if(e!==o)return;continue}const[s,u]=a[1].split(":");if(u&&!new RegExp(u).test(o))return;i[s]=o}return i}}(r=t.Path||(t.Path={}))}(s||(s={}));const c=a.r},653:(t,e,r)=>{r.d(e,{B:()=>c});var n={4817:(t,e,r)=>{r.d(e,{c:()=>i});var n=r(6038);class i{constructor(t){this._producerFunction=t}subscribe(t,e,r){const i={next:"object"==typeof t?t.next:t,error:"object"==typeof t?t.error:e,complete:"object"==typeof t?t.complete:r},o=new n.v({next:t=>{i.next?.(t)},error:t=>{i.error?.(t)},complete:()=>{i.complete?.()}});let a;this._producerFunction&&(a=this._producerFunction(o));let s=!1;return{get closed(){return s},unsubscribe:()=>{"function"==typeof a?a():a&&"function"==typeof a.unsubscribe&&a.unsubscribe(),s=!0}}}toPromise(){return new Promise((t,e)=>{let r,n;n=this.subscribe({next:t=>{r=t},error:t=>{e(t),n.unsubscribe()},complete:()=>{t(r),n.unsubscribe()}})})}pipe(...t){return 0===t.length?this:t.reduce((t,e)=>e(t),this)}}},6038:(t,e,r)=>{r.d(e,{v:()=>n});class n{constructor(t){this.destination=t,this.closed=!1}next(t){this.closed||this.destination.next(t)}error(t){this.closed||(this.closed=!0,this.destination.error(t),this.unsubscribe())}complete(){this.closed||(this.closed=!0,this.destination.complete(),this.unsubscribe())}unsubscribe(){this.closed=!0}}}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{B:()=>u});var s=o(4817);class u extends s.c{constructor(){super(t=>this._subscribeToSubject(t)),this._observers=new Set,this._isStopped=!1,this._hasError=!1}_subscribeToSubject(t){const e={next:t.next.bind(t),error:t.error.bind(t),complete:t.complete.bind(t)};if(this._isStopped)return this._hasError?e.error?.(this._error):e.complete?.(),{closed:!0,unsubscribe:()=>{}};this._observers.add(e);let r=!1;return{get closed(){return r},unsubscribe:()=>{this._observers.delete(e),r=!0}}}next(t){this._isStopped||this._observers.forEach(e=>{e.next?.(t)})}error(t){this._isStopped||(this._hasError=!0,this._error=t,this._isStopped=!0,this._observers.forEach(e=>e.error?.(t)),this._observers.clear())}complete(){this._isStopped||(this._isStopped=!0,this._observers.forEach(t=>t.complete?.()),this._observers.clear())}asObservable(){return new s.c(t=>this._subscribeToSubject(t))}}const c=a.B},742:(t,e,r)=>{r.d(e,{wB:()=>a}),r(6404),r(5053);var n,i,o={d:(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};o.d({},{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={})),function(t){t.Singleton="Singleton",t.Transient="Transient"}(i||(i={})),new Map,new Set;const a=Symbol("Sim");Symbol("PostConstruct")},970:(t,e,r)=>{r.d(e,{cI:()=>o,sP:()=>i});var n=r(5053);const i=Symbol("Router"),o=t=>{null!=t&&"object"==typeof t&&(t=t.constructor);try{return n.d.getMetadata(i,t)}catch(t){}};Symbol("RouteMetadataKey")},1252:(t,e,r)=>{r.d(e,{O:()=>h,n:()=>f});var n=r(2743),i=r(8259),o=r(742),a=r(9212),s=r(653),u=r(16),c=r(1448);const f=t=>"object"==typeof t&&"string"==typeof t.router&&"function"==typeof t.rootRouter;let h=class{constructor(t,e,r){this.simstanceManager=t,this.routerManager=e,this.simOption=r,this.subject=new s.B}get observable(){return this.subject.asObservable()}async publish(t,e){const r=[],i=f(t)?t.rootRouter:this.simOption.rootRouter,o="string"==typeof(t=f(t)?t.router:t)&&t.match(/^Router\((.+)\):\/(.*)$/);if(o&&"string"==typeof t){const a=o[1],s=o[2],u=(await this.routerManager.routing(a,{router:i})).getModuleInstance();u&&r.push(u),t=new n.J(s,e)}else"string"==typeof t&&(t=new n.J(t,e));let s=t;const u=[];o||(s.symbols?r.push(...s.symbols.map(t=>this.simstanceManager.findSims(t)).flat()):s.scheme?r.push(...this.simstanceManager.getSimConfig(s.scheme)):r.push(...this.simstanceManager.getSimAtomics()));const c=r.map(t=>t instanceof a.J?t.getValue():t);return this.subject.next(t),c.forEach(t=>{let e=t;if(e)if(s.paths.length>0){let t=e,r="";s.paths.filter(t=>t).forEach(n=>{t=e,e=e?.[n],r=n}),e&&"function"==typeof e?n.M.DATA_PARAMETERS===s.publishType?u.push(e.call(t,s.data)):n.M.INLINE_DATA_PARAMETERS===s.publishType?u.push(e.call(t,...s.data)):u.push(e.call(t,s)):e&&(t[r]=s.data,u.push(t[r]))}else n.M.DATA_PARAMETERS===s.publishType?u.push(e?.intentSubscribe?.(s.data)):n.M.INLINE_DATA_PARAMETERS===s.publishType?u.push(e?.intentSubscribe?.(...s.data)):u.push(e?.intentSubscribe?.(s))}),u}};h=function(t,e,r,n){var i,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}([o.on,function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata("design:paramtypes",e)}(0,[i.T,u.p,c.t])],h)},1448:(t,e,r)=>{r.d(e,{t:()=>n});class n{constructor({rootRouter:t,container:e,cache:r,advice:n=[],proxy:i,using:o}={}){this.rootRouter=t,this.container=e,this.advice=n,this.proxy=i,this.using=o,this.cache=r}addAdvicce(t){this.advice??(this.advice=[]),this.advice.push(t)}setAdvice(...t){return this.advice=t,this}}},2018:(t,e,r)=>{r.d(e,{C:()=>i});var n=r(3966);class i extends n.W{constructor(t,e,r){super(t,e,r)}}},2225:(t,e,r)=>{r.d(e,{j1:()=>i}),r(6404);const n=Symbol("Sim:NoProxy"),i=(t,e)=>null!=t&&!0===((t,e)=>{try{return void 0===e?Reflect.getMetadata(n,t):Reflect.getMetadata(n,t,e)}catch(t){return}})(t,e)},2482:(t,e,r)=>{r.d(e,{Mq:()=>u,_t:()=>o,tr:()=>a}),r(6404);var n,i=r(5053);!function(t){t.INDEX="SIMPLE_BOOT_CORE://Inject/INDEX"}(n||(n={}));class o{constructor({situationType:t,data:e,index:r}){this.situationType=t,this.data=e,this.index=r}}class a{constructor(t){this.containers=[],t&&this.containers.push(...t)}push(...t){this.containers.push(...t)}get length(){return this.containers.length}find(t,e){return this.containers.find(t)}}const s=Symbol("Inject"),u=(t,e)=>(null!=t&&void 0!==t&&"object"==typeof t&&(t=t.constructor),e?Reflect.getOwnMetadata(s,t,e):i.d.getMetadata(s,t)??[])},2743:(t,e,r)=>{r.d(e,{J:()=>o,M:()=>n});var n,i=r(532);!function(t){t.DATA_PARAMETERS="DATA_PARAMETERS",t.INLINE_DATA_PARAMETERS="INLINE_DATA_PARAMETERS"}(n||(n={}));class o{constructor(t,e,r){if(this.uri=t,this.data=e,this.event=r,this.sessionData=new Map,"string"==typeof t){const e=t.match(/^Symbol\.for\((.+)\):\/(.*)$/);if(e){const t=Symbol.for(e[1]);this.uri={symbol:t,uri:e[2]}}}}get symbols(){if("object"==typeof this.uri)return Array.isArray(this.uri.symbol)?this.uri.symbol:[this.uri.symbol]}get scheme(){if("string"==typeof this.uri){const t=this.uri.split("://");return t.length>1?t[0]:void 0}}get paths(){return this.pathname.split("/")??[]}get fullPath(){const t=("string"==typeof this.uri?this.uri:this.uri.uri).split("://");return t[t.length>=2?1:0]??""}get pathname(){return this.fullPath.split("?")[0]}get query(){return this.fullPath.split("?")[1]??""}get queryParams(){const t={};return this.query.split("&")?.forEach(e=>{const r=e.split("=");t[r[0]]=r[1]}),t}get queryParamsAfterDecodeURI(){const t=this.queryParams;for(const e in t)t.hasOwnProperty(e)&&(t[e]=decodeURIComponent(t[e]));return t}getPathnameData(t){return i.r.Path.pathNameData(this.pathname,t)}get isSymbolScheme(){return void 0!==this.symbols}}},3605:(t,e,r)=>{r.d(e,{i:()=>i}),r(6404);class n{constructor(t,e){this.target=t,this.metaData=e}}class i extends n{constructor(t,e,r,n){super(t,e),this.property=r,this.parameter=n}call(...t){return this.target[this.property](...t)}}},3896:(t,e,r)=>{r.d(e,{I:()=>n});const n=t=>"function"==typeof t?.onSimCreateProxyCompleted},3966:(t,e,r)=>{r.d(e,{W:()=>n});class n{constructor(t,e,r){this.message=t,this.name=e,this.stack=r}}},4209:(t,e,r)=>{var n;r.d(e,{W:()=>n}),function(t){t.isCanActivate=t=>"function"==typeof t?.canActivate,t.isOnRouting=t=>"function"==typeof t?.onRouting,t.isHasActivate=t=>"function"==typeof t?.hasActivate}(n||(n={}))},4297:(t,e,r)=>{r.d(e,{P:()=>n});const n=t=>"function"==typeof t?.onSimCreate},4642:(t,e,r)=>{r.d(e,{B:()=>f}),r(6404);var n=r(8259),i=r(1448),o=r(1252),a=r(16),s=r(2743),u=r(2018),c=r(742);class f{constructor(t=new i.t){this.option=t,this.simstanceManager=new n.T(this,t),this.simstanceManager.setStoreSet(n.T,this.simstanceManager),this.routerManager=this.simstanceManager.proxy(new a.p(this.simstanceManager,t)),this.intentManager=this.simstanceManager.proxy(new o.O(this.simstanceManager,this.routerManager,t)),this.simstanceManager.setStoreSet(o.O,this.intentManager),this.simstanceManager.setStoreSet(a.p,this.routerManager),c.l8.add(this)}getSimstanceManager(){return this.simstanceManager}getIntentManager(){return this.intentManager}getRouterManager(){return this.routerManager}run(t){return this.simstanceManager.run(t),this.simstanceManager}simAtomic(t){return"symbol"==typeof t?this.simstanceManager.findFirstSim(t):"function"==typeof t?this.simstanceManager.findFirstSim({type:t}):void 0}simAtomics(t){return"symbol"==typeof t?this.simstanceManager.findSims(t)??[]:"function"==typeof t?this.simstanceManager.findSims({type:t})??[]:[]}getInstance(t){const e=this.sim(t);if(e)return e;throw new u.C("SimNoSuch: no simple instance(getInstance) name:"+t?.prototype?.constructor?.name+","+t)}sim(t){return this.simAtomic(t)?.getValue()}sims(t){return this.simAtomics(t).map(t=>t.getValue())}addSim(t,e){const r=(0,c.on)(t);"function"==typeof r&&e&&r(e)}publishIntent(t,e){return t instanceof s.J?this.intentManager.publish(t):((0,o.n)(t),this.intentManager.publish(t,e))}routing(t,e){if(t instanceof s.J)return this.routerManager.routing(t,e);if("string"==typeof t){const r=new s.J(t);return this.routerManager.routing(r,e)}{const r=new s.J(t.path,t.data);return this.routerManager.routing(r,e)}}}},4647:(t,e,r)=>{r.d(e,{i:()=>u});var n=r(9212),i=r(5846),o=r(420),a=r(970),s=r(532);class u{get path(){return this._path}set path(t){this._path=t}get data(){return this._data}set data(t){this._data=t}get intent(){return this._intent}set intent(t){this._intent=t}get propertyKeys(){return this._propertyKeys}set propertyKeys(t){this._propertyKeys=t}get pathData(){return this._pathData}set pathData(t){this._pathData=t}constructor(t,e,r,n=[]){this.simstanceManager=t,this.router=e,this.module=r,this.routerChains=n}getRouterPath(t=""){return this.getRouterPaths().map(t=>t??"").join(t)}getRouterPaths(){return this.routerChains.map(t=>(0,a.cI)(t instanceof n.J?t.type.targetKeyType:t)?.path)}getRouterPathData(t){return s.r.Path.pathNameData(t,this.getRouterPath())}getModuleInstance(t,e=!0){const r=this.simstanceManager.getOrNewSim({target:this.module?.targetKeyType,originTypeTarget:this.module?.originalType});if(t&&this.propertyKeys&&this.propertyKeys.includes(t)){let n=r[t];return e&&"boolean"==typeof e?n=n.bind(r):e&&"object"==typeof e&&(n=n.bind(e)),n}return r}executeModuleProperty(t,...e){const r=this.getModuleInstance();if(t){if((0,i.A)(r,t)){const n=new Map;return e.forEach(t=>n.set(t.constructor,t)),this.simstanceManager.executeBindParameterSim({target:r,targetKey:t},n)}if(r[t])return r[t]?.(...e);throw new o.e(`${t.toString()} noSuch`,t.toString(),t)}}get firstRouteChain(){return this.routerChains[0]}get firstRouteChainValue(){return this.firstRouteChain.getValue()}get lastRouteChain(){return this.routerChains[this.routerChains.length-1]}get lastRouteChainValue(){return this.lastRouteChain.getValue()}hasActivateInLastRoute(t){return!0===this.lastRouteChainValue?.hasActivate(t)}get queryParams(){if(this.intent)return this.intent.queryParams}get queryParamsAfterDecodeURI(){if(this.intent)return this.intent.queryParamsAfterDecodeURI}}},5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(A(n)&&!P(r=n.call(t)))return r;if(A(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function T(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function E(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!T(t))throw new TypeError;if(!E(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!E(n))throw new TypeError;e=n}}return e}(t,e)}if(!T(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d},5846:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(5053);const i=Symbol("Injection"),o=(t,e)=>n.d.getMetadata(i,t,e)},6165:(t,e,r)=>{r.d(e,{Ss:()=>c,to:()=>f}),r(6404);var n=r(5053),i=r(3605),o=r(7441);const a=Symbol("After"),s=Symbol("Before"),u=(Symbol("Around"),t=>o.B.allProtoTypeName(t).map(e=>new i.i(t,((t,e)=>n.d.getMetadata(a,t,e))(t,e),e)).filter(t=>void 0!==t.metaData)||[]),c=(t,e,r)=>u(t).filter(t=>e===t.metaData?.property&&r===t.metaData.type?.prototype)||[],f=(t,e,r)=>(t=>o.B.allProtoTypeName(t).map(e=>new i.i(t,((t,e)=>n.d.getMetadata(s,t,e))(t,e),e)).filter(t=>void 0!==t.metaData)||[])(t).filter(t=>e===t.metaData?.property&&r===t.metaData.type?.prototype)||[]},6404:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=N(t,i);if(void 0!==r){var n=r.call(t,e);if(P(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(A(n)&&!P(r=n.call(t)))return r;if(A(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function T(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function E(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!T(t))throw new TypeError;if(!E(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!E(n))throw new TypeError;e=n}}return e}(t,e)}if(!T(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))},6622:(t,e,r)=>{r.d(e,{e:()=>s});var n=r(6165),i=r(7441),o=r(8537),a=r(2482);class s{constructor(t,e,r){this.simpleApplication=t,this.simstanceManager=e,this.simOption=r}get(t,e){return"_SimpleBoot_application"===e?this.simpleApplication:"_SimpleBoot_simstanceManager"===e?this.simstanceManager:"_SimpleBoot_simOption"===e?this.simOption:t[e]}set(t,e,r,n){return r=this.simstanceManager?.proxy(r),t[e]=r,!0}apply(t,e,r){let n;try{this.aopBefore(e,t);try{n=Reflect.apply(t,e,r)}catch(t){throw t}finally{this.aopAfter(e,t)}}catch(n){console.error(n);const i=this.getExceptionHandler(n,e,t);if(!(i.length>0&&i[0]))throw n;{const t=i[0];this.executeExceptionHandler(n,t,r)}}return n}executeExceptionHandler(t,e,r){const n=new Map;n.set(t.constructor,t);const i=new a._t({situationType:o.W$.ERROR_OBJECT,data:t}),s=new a._t({situationType:o.W$.PARAMETER,data:r});n.set(a.tr,new a.tr([i,s])),r?.forEach(t=>{n.set(t.constructor,t)});try{this.simstanceManager.executeBindParameterSim({target:e.thisArg,targetKey:e.config.propertyKey},n)}catch(e){t=e}if(e.config.config.throw){const n=this.getExceptionHandler(t,e.thisArg,e.config.method);(n?.length??0)>0&&this.executeExceptionHandler(t,n[0],r)}}getExceptionHandler(t,e,r){const n=this.simOption.advice.map(t=>this.simstanceManager?.getOrNewSim({target:t})).filter(t=>t).map(e=>({thisArg:e,config:(0,o.v0)(e,t,[r])}))??[];return[{thisArg:e,config:(0,o.v0)(e,t,[r])},...n].filter(t=>t&&t.config)}aopBefore(t,e){const r=i.B.prototypeName(t,e);if(r&&t){(0,n.to)(t,r).forEach(n=>{n.call(t,e,r)});for(let i=0;i<this.simOption.advice.length;i++){const o=this.simstanceManager?.getOrNewSim({target:this.simOption.advice[i]});(0,n.to)(o,r,Object.getPrototypeOf(t)).forEach(n=>{n.call(t,e,r)})}}}aopAfter(t,e){const r=i.B.prototypeName(t,e);if(r){(0,n.Ss)(t,r).forEach(n=>{n.call(t,e,r)});for(let i=0;i<this.simOption.advice.length;i++){const o=this.simstanceManager?.getOrNewSim({target:this.simOption.advice[i]});(0,n.Ss)(o,r,Object.getPrototypeOf(t)).forEach(n=>{n.call(t,e,r)})}}}has(t,e){return"isProxy"===e||e in t}}},7441:(t,e,r)=>{r.d(e,{B:()=>f});var n={7855:(t,e,r)=>{r.d(e,{O:()=>n});const n=t=>null!=t},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{B:()=>s});var s,u=o(7855),c=o(9284);!function(t){let e,r;t.constructorName=t=>t&&t.constructor&&t.constructor.name?t.constructor.name:t&&t.name?t.name:void 0,t.deepCopy=t=>t instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(t.entries())))):t instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(t.values())))):c.U.isNullOrUndefined(t)?t:JSON.parse(JSON.stringify(t)),t.allProtoTypeName=(e,r)=>{let n=[];if(e){const i=Object.getPrototypeOf(e);i&&(n=Object.keys(i)||[]).length>0&&(n=n.concat(t.allProtoTypeName(i,r)))}let i=n.filter(t=>"constructor"!==t);if(r&&e){const t=Object.getPrototypeOf(e);i=i.filter(e=>r(e,t?.[e]))}return i},t.uniqueKeys=t=>Array.from(new Set((Array.isArray(t)?t:[t]).flatMap(t=>Object.keys(t)))),t.ownPropertyNames=t=>{const e=[];if(t)if(t.prototype)e.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));else{const r=Object.getPrototypeOf(t);e.push(...Object.getOwnPropertyNames(r))}return e.filter(t=>"constructor"!==t)},t.protoTypeName=t=>{let e=[];if(t){const r=Object.getPrototypeOf(t);e=Object.keys(r)||[]}return e.filter(t=>"constructor"!==t)},t.protoTypes=t=>{const e=[];if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.push(r[t])})}return e},t.seal=t=>Object.seal(t),t.isPrototypeOfTarget=(t,e)=>!(!t||!e)&&Object.prototype.isPrototypeOf.call(t.prototype,e),t.prototypeOfDepth=(t,e)=>{let r=t;const n=[];if(e)do{if(r=Object.getPrototypeOf(r),r?.constructor===e)break;n.push(r)}while(r);return n},t.allProtoType=t=>{const e=(t,r=[])=>(t.prototype&&(r.push(t),e(Object.getPrototypeOf(t),r)),r);return e(t)},t.prototypeOf=t=>Object.getPrototypeOf(t),t.prototypeKeyMap=t=>{const e=new Map;if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.set(r[t],t)})}return e},t.prototypeName=(e,r)=>t.prototypeKeyMap(e).get(r),t.pickRandomKey=t=>{const e=Object.keys(t);return e[Math.floor(Math.random()*e.length)]},t.pickRandomValue=t=>{const e=Object.keys(t);return t[e[Math.floor(Math.random()*e.length)]]},t.pickRandomKeyValue=t=>{const e=Object.keys(t),r=e[Math.floor(Math.random()*e.length)];return{key:r,value:t[r]}},t.keyValues=t=>Object.keys(t).map(e=>({key:e,value:t[e]})),t.entries=t=>Object.entries(t),t.values=t=>Object.values(t),t.keys=t=>Object.keys(t),t.keyLength=e=>t.keys(e).length,t.toDeleteUndefinedAndNull=(t,e)=>{const r=t=>Array.isArray(t)?t.filter(t=>null!=t).map(r):t&&"object"==typeof t?e?.deep?Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e).map(([t,e])=>[t,r(e)])):Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e)):t;return r(t)},function(t){t.isFunctionScript=t=>t.trim().startsWith("function"),t.isArrowFunctionScript=t=>/^\s*\([^)]*\)\s*=>/.test(t),t.toOptionalChainPath=e=>{if(!e)return"";if(e.trim().startsWith("{")&&e.trim().endsWith("}"))return e;if(t.isFunctionScript(e)||t.isArrowFunctionScript(e))return e;if(e.includes(" ? ")&&e.includes(" : ")){const t=e.split(/(\s+\?\s+|\s+:\s+)/).map((t,e)=>{if(0===e){const e=t.match(/[^?.[\]]+|\[[^\]]*\]/g);if(e&&e.length>1)return e.join("?.")}return t});return t.join("")}if(e.includes("(")){const r=[];let n=e,i=0;const o=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let a;for(;null!==(a=o.exec(e));){const e=a[0],o=a[1],s=a[2],u=`__FUNC_CALL_${i}__`,c=`${o}?.(${s?t.toOptionalChainPath(s):""})`;r.push({original:e,processed:c,placeholder:u}),n=n.replace(e,u),i++}const s=n.match(/[^?.[\]]+|\[[^\]]*\]/g);let u="";u=s&&s.length>1?s.join("?."):n;for(const t of r)u=u.replace(t.placeholder,t.processed);return u}const r=e.match(/[^?.[\]]+|\[[^\]]*\]/g);return r?r.join("?."):e},t.removeOptionalChainOperator=t=>t?t.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const e=t=>{const e=[],r=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let n,i=0;const o=t.match(r);if(o&&(o?.index??0)>0)e.push(t.substring(0,o.index)),i=o.index;else if(!o&&t.length>0)return e.push(t),e;for(;null!==(n=r.exec(t));){if(n.index>i){const r=t.substring(i,n.index);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}n[1]?e.push(n[1]):n[2]?e.push(parseInt(n[2],10)):n[4]&&e.push(n[4]),i=r.lastIndex}if(i<t.length){const r=t.substring(i);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}return e};t.to=e=>{const r={};return Object.entries(e).forEach(([e,n])=>{t.set(r,e,n)}),r},t.set=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(t===i.length-1)o[e]=n;else{const r=i[t+1];if("number"==typeof r){if(Array.isArray(o[e])||(o[e]=[]),Array.isArray(o[e]))for(;o[e].length<=r;)o[e].push({})}else"object"==typeof o[e]&&null!==o[e]||(o[e]={});o=o[e]}}},t.get=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(null==o)return n;if("object"!=typeof o||null===o||!(e in o))return n;o=o[e]}return o},t.deletePath=(t,r)=>{const n=e(r);if(0===n.length)return!1;let i=t;for(let t=0;t<n.length-1;t++){const e=n[t];if(null==i)return!1;if("object"!=typeof i||null===i||!(e in i))return!1;i=i[e]}const o=n[n.length-1];return null!==i&&"object"==typeof i&&o in i&&(Array.isArray(i)&&"number"==typeof o?i.splice(o,1):delete i[o],!0)},t.availablePath=(t,e)=>{const r=[],n=t=>"number"==typeof t?"["+t+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?t:"['"+t+"']",i=(t,o,a)=>{null!==t&&"object"==typeof t&&(a.has(t)||(a.add(t),Array.isArray(t)?t.forEach((t,s)=>{const u=n(s),c=o?`${o}${u}`:u;e&&!e(c,t)||r.push(c),i(t,c,a)}):Object.keys(t).forEach(s=>{const u=n(s);let c;c=u.startsWith("[")?o?`${o}${u}`:u:o?`${o}.${u}`:u,e&&!e(c,t[s])||r.push(c),i(t[s],c,a)})))};return i(t,"",new Set),r},t.detectPathFromScript=(t,e)=>{const r=new Set;class n{constructor(t){this.prefix=t,this.usingVars=r}set(t,e,r,n){return!0}get(t,e,r){if("symbol"==typeof e)return this.createSafeProxy(this.prefix);let n;const i=String(e);return n=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,n&&this.usingVars.add(n),this.createSafeProxy(n)}apply(t,e,r){return this.createSafeProxy(this.prefix)}createSafeProxy(t){const e=new n(t);return new Proxy(()=>{},{get:(r,n,i)=>n===Symbol.toPrimitive?()=>"":"valueOf"===n?()=>e.createSafeProxy(t):"toString"===n?()=>"":e.get(r,n,i),set:e.set.bind(e),apply:e.apply.bind(e)})}}const i={window:new Proxy(()=>{},new n("window")),document:new Proxy(()=>{},new n("document")),console:new Proxy(()=>{},new n("console"))},o=new Proxy(()=>{},new n("this"));try{new Function("window","document","console",`"use strict"; ${t}; `).call(o,i.window,i.document,i.console)}catch(t){console.error("detectPathFromScript error:",t)}if(e?.excludeThis){const t=new Set;return r.forEach(e=>{"this"!==e&&(e.startsWith("this.")?t.add(e.substring(5)):t.add(e))}),t}return r}}(e=t.Path||(t.Path={})),t.toDeleteKey=(e,r)=>{const n={...e};return t.deleteKey(n,r),n},t.deleteKey=(t,e)=>{e.filter(t=>(0,u.O)(t)).forEach(e=>{delete t[e]})},function(t){t.evalReturn=(e,r={})=>{let n="",i="";return"object"==typeof e?(n=e.bodyScript,i=e.returnScript):i=e,t.eval(`${n}; return ${i} `,r)},t.eval=(t,e={})=>{try{return Function(`"use strict"; ${t} `).bind(e)()}catch(e){return console.error("eval error",e),void console.error(t)}}}(r=t.Script||(t.Script={}))}(s||(s={}));const f=a.B},8259:(t,e,r)=>{r.d(e,{T:()=>P}),r(6404);var n=r(9492),i=r(2018),o=r(742),a=r(7441),s=r(9212),u=r(5053),c=r(2482),f=r(1448),h=r(6622),l={2676:(t,e,r)=>{r.d(e,{B:()=>n});var n,i=r(7855),o=r(9284);!function(t){let e,r;t.constructorName=t=>t&&t.constructor&&t.constructor.name?t.constructor.name:t&&t.name?t.name:void 0,t.deepCopy=t=>t instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(t.entries())))):t instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(t.values())))):o.U.isNullOrUndefined(t)?t:JSON.parse(JSON.stringify(t)),t.allProtoTypeName=(e,r)=>{let n=[];if(e){const i=Object.getPrototypeOf(e);i&&(n=Object.keys(i)||[]).length>0&&(n=n.concat(t.allProtoTypeName(i,r)))}let i=n.filter(t=>"constructor"!==t);if(r&&e){const t=Object.getPrototypeOf(e);i=i.filter(e=>r(e,t?.[e]))}return i},t.uniqueKeys=t=>Array.from(new Set((Array.isArray(t)?t:[t]).flatMap(t=>Object.keys(t)))),t.ownPropertyNames=t=>{const e=[];if(t)if(t.prototype)e.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));else{const r=Object.getPrototypeOf(t);e.push(...Object.getOwnPropertyNames(r))}return e.filter(t=>"constructor"!==t)},t.protoTypeName=t=>{let e=[];if(t){const r=Object.getPrototypeOf(t);e=Object.keys(r)||[]}return e.filter(t=>"constructor"!==t)},t.protoTypes=t=>{const e=[];if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.push(r[t])})}return e},t.seal=t=>Object.seal(t),t.isPrototypeOfTarget=(t,e)=>!(!t||!e)&&Object.prototype.isPrototypeOf.call(t.prototype,e),t.prototypeOfDepth=(t,e)=>{let r=t;const n=[];if(e)do{if(r=Object.getPrototypeOf(r),r?.constructor===e)break;n.push(r)}while(r);return n},t.allProtoType=t=>{const e=(t,r=[])=>(t.prototype&&(r.push(t),e(Object.getPrototypeOf(t),r)),r);return e(t)},t.prototypeOf=t=>Object.getPrototypeOf(t),t.prototypeKeyMap=t=>{const e=new Map;if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.set(r[t],t)})}return e},t.prototypeName=(e,r)=>t.prototypeKeyMap(e).get(r),t.pickRandomKey=t=>{const e=Object.keys(t);return e[Math.floor(Math.random()*e.length)]},t.pickRandomValue=t=>{const e=Object.keys(t);return t[e[Math.floor(Math.random()*e.length)]]},t.pickRandomKeyValue=t=>{const e=Object.keys(t),r=e[Math.floor(Math.random()*e.length)];return{key:r,value:t[r]}},t.keyValues=t=>Object.keys(t).map(e=>({key:e,value:t[e]})),t.entries=t=>Object.entries(t),t.values=t=>Object.values(t),t.keys=t=>Object.keys(t),t.keyLength=e=>t.keys(e).length,t.toDeleteUndefinedAndNull=(t,e)=>{const r=t=>Array.isArray(t)?t.filter(t=>null!=t).map(r):t&&"object"==typeof t?e?.deep?Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e).map(([t,e])=>[t,r(e)])):Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e)):t;return r(t)},function(t){t.isFunctionScript=t=>t.trim().startsWith("function"),t.isArrowFunctionScript=t=>/^\s*\([^)]*\)\s*=>/.test(t),t.toOptionalChainPath=e=>{if(!e)return"";if(e.trim().startsWith("{")&&e.trim().endsWith("}"))return e;if(t.isFunctionScript(e)||t.isArrowFunctionScript(e))return e;if(e.includes(" ? ")&&e.includes(" : ")){const t=e.split(/(\s+\?\s+|\s+:\s+)/).map((t,e)=>{if(0===e){const e=t.match(/[^?.[\]]+|\[[^\]]*\]/g);if(e&&e.length>1)return e.join("?.")}return t});return t.join("")}if(e.includes("(")){const r=[];let n=e,i=0;const o=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let a;for(;null!==(a=o.exec(e));){const e=a[0],o=a[1],s=a[2],u=`__FUNC_CALL_${i}__`,c=`${o}?.(${s?t.toOptionalChainPath(s):""})`;r.push({original:e,processed:c,placeholder:u}),n=n.replace(e,u),i++}const s=n.match(/[^?.[\]]+|\[[^\]]*\]/g);let u="";u=s&&s.length>1?s.join("?."):n;for(const t of r)u=u.replace(t.placeholder,t.processed);return u}const r=e.match(/[^?.[\]]+|\[[^\]]*\]/g);return r?r.join("?."):e},t.removeOptionalChainOperator=t=>t?t.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const e=t=>{const e=[],r=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let n,i=0;const o=t.match(r);if(o&&(o?.index??0)>0)e.push(t.substring(0,o.index)),i=o.index;else if(!o&&t.length>0)return e.push(t),e;for(;null!==(n=r.exec(t));){if(n.index>i){const r=t.substring(i,n.index);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}n[1]?e.push(n[1]):n[2]?e.push(parseInt(n[2],10)):n[4]&&e.push(n[4]),i=r.lastIndex}if(i<t.length){const r=t.substring(i);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}return e};t.to=e=>{const r={};return Object.entries(e).forEach(([e,n])=>{t.set(r,e,n)}),r},t.set=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(t===i.length-1)o[e]=n;else{const r=i[t+1];if("number"==typeof r){if(Array.isArray(o[e])||(o[e]=[]),Array.isArray(o[e]))for(;o[e].length<=r;)o[e].push({})}else"object"==typeof o[e]&&null!==o[e]||(o[e]={});o=o[e]}}},t.get=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(null==o)return n;if("object"!=typeof o||null===o||!(e in o))return n;o=o[e]}return o},t.deletePath=(t,r)=>{const n=e(r);if(0===n.length)return!1;let i=t;for(let t=0;t<n.length-1;t++){const e=n[t];if(null==i)return!1;if("object"!=typeof i||null===i||!(e in i))return!1;i=i[e]}const o=n[n.length-1];return null!==i&&"object"==typeof i&&o in i&&(Array.isArray(i)&&"number"==typeof o?i.splice(o,1):delete i[o],!0)},t.availablePath=(t,e)=>{const r=[],n=t=>"number"==typeof t?"["+t+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?t:"['"+t+"']",i=(t,o,a)=>{null!==t&&"object"==typeof t&&(a.has(t)||(a.add(t),Array.isArray(t)?t.forEach((t,s)=>{const u=n(s),c=o?`${o}${u}`:u;e&&!e(c,t)||r.push(c),i(t,c,a)}):Object.keys(t).forEach(s=>{const u=n(s);let c;c=u.startsWith("[")?o?`${o}${u}`:u:o?`${o}.${u}`:u,e&&!e(c,t[s])||r.push(c),i(t[s],c,a)})))};return i(t,"",new Set),r},t.detectPathFromScript=(t,e)=>{const r=new Set;class n{constructor(t){this.prefix=t,this.usingVars=r}set(t,e,r,n){return!0}get(t,e,r){if("symbol"==typeof e)return this.createSafeProxy(this.prefix);let n;const i=String(e);return n=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,n&&this.usingVars.add(n),this.createSafeProxy(n)}apply(t,e,r){return this.createSafeProxy(this.prefix)}createSafeProxy(t){const e=new n(t);return new Proxy(()=>{},{get:(r,n,i)=>n===Symbol.toPrimitive?()=>"":"valueOf"===n?()=>e.createSafeProxy(t):"toString"===n?()=>"":e.get(r,n,i),set:e.set.bind(e),apply:e.apply.bind(e)})}}const i={window:new Proxy(()=>{},new n("window")),document:new Proxy(()=>{},new n("document")),console:new Proxy(()=>{},new n("console"))},o=new Proxy(()=>{},new n("this"));try{new Function("window","document","console",`"use strict"; ${t}; `).call(o,i.window,i.document,i.console)}catch(t){console.error("detectPathFromScript error:",t)}if(e?.excludeThis){const t=new Set;return r.forEach(e=>{"this"!==e&&(e.startsWith("this.")?t.add(e.substring(5)):t.add(e))}),t}return r}}(e=t.Path||(t.Path={})),t.toDeleteKey=(e,r)=>{const n={...e};return t.deleteKey(n,r),n},t.deleteKey=(t,e)=>{e.filter(t=>(0,i.O)(t)).forEach(e=>{delete t[e]})},function(t){t.evalReturn=(e,r={})=>{let n="",i="";return"object"==typeof e?(n=e.bodyScript,i=e.returnScript):i=e,t.eval(`${n}; return ${i} `,r)},t.eval=(t,e={})=>{try{return Function(`"use strict"; ${t} `).bind(e)()}catch(e){return console.error("eval error",e),void console.error(t)}}}(r=t.Script||(t.Script={}))}(n||(n={}))},3205:(t,e,r)=>{r.d(e,{O:()=>o});var n=r(7553),i=r(9244);class o extends n.M{constructor(t){super(),this.volume=0,this.mass=0,this.e=0,this.rotate=0,this.width=0,this.height=0,this.transform=[1,0,0,1,0,0],this.color={r:0,g:0,b:0,a:255},this.updateObjWithDefaults(t)}copyObj(){return new o({x:this.x,y:this.y,z:this.z,volume:this.volume,mass:this.mass,e:this.e,rotate:this.rotate,width:this.width,height:this.height,transform:[...this.transform],color:{...this.color},data:{...this.data}})}updateObjWithDefaults(t){if(t){this.x=t.x??this.x,this.y=t.y??this.y,this.z=t.z??this.z,this.volume=t.volume??this.volume,this.mass=t.mass??this.mass,this.e=t.e??this.e,this.rotate=t.rotate??this.rotate,this.width=t.width??this.width,this.height=t.height??this.height,this.transform=[...t.transform??this.transform],this.color={...t.color??this.color};const e=t.data??this.data;this.data=e?{...e}:void 0}}setObj(t){if(t){this.x=t.x??0,this.y=t.y??0,this.z=t.z??0,this.volume=t.volume??0,this.mass=t.mass??0,this.e=t.e??0,this.rotate=t.rotate??0,this.width=t.width??0,this.height=t.height??0,this.transform=[...t.transform??[1,0,0,1,0,0]],this.color={...t.color??{r:0,g:0,b:0,a:255}};const e=t.data;this.data=e?{...e}:void 0}}toRect(){return new i.r(this.x,this.y,this.width,this.height)}}},3599:(t,e,r)=>{r.d(e,{z:()=>n});var n,i=r(8741),o=r(7553),a=r(3205),s=r(4068);!function(t){t.getMinByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let n=1;n<t.length;n++)r=Math.min(r,t[n][e])}return r},t.hypot=(...t)=>Math.hypot(...t),t.pythagorean=(t,e)=>Math.sqrt(t*t+e*e),t.getMaxByObjectArray=(t,e)=>{let r;if(e&&t&&t.length>0){r=t[0][e];for(let n=1;n<t.length;n++)r=Math.max(r,t[n][e])}return r},t.sum=t=>t.reduce((t,e)=>t+e,0),t.avg=e=>e.length>0?t.sum(e)/e.length:0,t.minMax=(t,e)=>Math.min(Math.max(t,e.min),e.max),t.max=t=>t.length>0?Math.max(...t):void 0,t.min=t=>t.length>0?Math.min(...t):void 0,t.getSumByObjectArray=(t,e)=>{let r=0;if(e&&t&&t.length>0)for(let n=0;n<t.length;n++)r+=t[n][e];return r},t.radians=(t,{type:e="degreeAngle"})=>"ratio"===e?2*t*Math.PI:"percent"===e?t/100*2*Math.PI:t/180*Math.PI,t.degrees=(t,{type:e="degreeAngle"})=>"ratio"===e?360*t:"percent"===e?t/100*360:180*t/Math.PI,t.ratio=(t,e,r=1)=>r*(e/t),t.getBetweenLength=(t,e)=>e-t,t.getPercentByTotal=(t,e)=>e/t*100,t.getRatioByTotal=(t,e)=>e/t,t.getValueByTotalInPercent=(t,e)=>t*e/100,t.getValueByTotalInRatio=(t,e)=>t*e,t.getValuePercentUp=(t,e)=>t*(1+e/100),t.getValueRatioUp=(t,e)=>t*(1+e),t.getValuePercentDown=(t,e)=>t*(1-e/100),t.getValueRatioDown=(t,e)=>t*(1-e),t.beziers=(e,r)=>{const n=new Array(r).fill(void 0);for(let i=0;i<n.length;i++)n[i]=t.bezier(e,r,i);return n},t.bezier=(e,r,n)=>{if(e&&e.length>0){const a=e.map(t=>new o.M(t.x,t.y,t.z)),s=[];return a.reduce((t,e)=>{const i=t.toSub(e).div(r).mult(n+1);return s.push(t.toSub(i)),e}),s.length<=1?s[0]:t.bezier(s.map(t=>new i.M(t)),r,n)}return new o.M},t.cubicBezier=function(e,r,n){if(e.start instanceof a.O&&e.end instanceof a.O){const i=t.cubicBezier({start:e.start.x,end:e.end.x},r,n),o=t.cubicBezier({start:e.start.y,end:e.end.y},r,n),s=t.cubicBezier({start:e.start.z,end:e.end.z},r,n),u=t.cubicBezier({start:e.start.volume,end:e.end.volume},r,n),c=t.cubicBezier({start:e.start.mass,end:e.end.mass},r,n),f=t.cubicBezier({start:e.start.e,end:e.end.e},r,n),h=t.cubicBezier({start:e.start.rotate,end:e.end.rotate},r,n),l=t.cubicBezier({start:e.start.width,end:e.end.width},r,n),y=t.cubicBezier({start:e.start.height,end:e.end.height},r,n),p=t.cubicBezier({start:e.start.transform[0],end:e.end.transform[0]},r,n),d=t.cubicBezier({start:e.start.transform[1],end:e.end.transform[1]},r,n),g=t.cubicBezier({start:e.start.transform[2],end:e.end.transform[2]},r,n),v=t.cubicBezier({start:e.start.transform[3],end:e.end.transform[3]},r,n),w=t.cubicBezier({start:e.start.transform[4],end:e.end.transform[4]},r,n),b=t.cubicBezier({start:e.start.transform[5],end:e.end.transform[5]},r,n),m=t.cubicBezier({start:e.start.color.r??0,end:e.end.color.r??0},r,n),O=t.cubicBezier({start:e.start.color.g??0,end:e.end.color.g??0},r,n),_=t.cubicBezier({start:e.start.color.b??0,end:e.end.color.b??0},r,n),M=t.cubicBezier({start:e.start.color.a??255,end:e.end.color.a??255},r,n);return i.map((t,e)=>{const r=new a.O({x:t,y:o[e],z:s[e]});return r.volume=u[e],r.mass=c[e],r.e=f[e],r.rotate=h[e],r.width=l[e],r.height=y[e],r.transform=[p[e],d[e],g[e],v[e],w[e],b[e]],r.color={r:m[e],g:O[e],b:_[e],a:M[e]},r})}if(e.start instanceof i.M&&e.end instanceof i.M){const o=t.cubicBezier({start:e.start.x,end:e.end.x},r,n),a=t.cubicBezier({start:e.start.y,end:e.end.y},r,n),s=t.cubicBezier({start:e.start.z,end:e.end.z},r,n);return o.map((t,e)=>new i.M(t,a[e],s[e]))}const{start:o,end:s}=e,{frame:u}=r;let{p1x:c,p1y:f,p2x:h,p2y:l}=Array.isArray(n)?{p1x:n[0],p1y:n[1],p2x:n[2],p2y:n[3]}:n;c="random"===c?Math.random():c,f="random"===f?Math.random():f,h="random"===h?Math.random():h,l="random"===l?Math.random():l;const y=[],p=s-o,d=t=>{const e=Number(t*t),r=Number(e*t),n=Number(1-t),i=Number(n*n);return 0*Number(i*n)+3*i*t*Number(f)+3*n*e*Number(l)+1*r},g=u+1;for(let t=1;t<g;t++){const e=o+p*d(t/g);y.push(e)}return y},t.diff=(t,e)=>Math.abs(t-e),t.distSqToLineSegment=(t,e,r)=>{const n=(e.x-r.x)**2+(e.y-r.y)**2;if(0===n)return(t.x-e.x)**2+(t.y-e.y)**2;let i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;i=Math.max(0,Math.min(1,i));const o=e.x+i*(r.x-e.x),a=e.y+i*(r.y-e.y);return(t.x-o)**2+(t.y-a)**2},t.rotatePoint=(t,e,r)=>{const n=t.x-e.x,i=t.y-e.y,o=n*Math.cos(r)-i*Math.sin(r),a=n*Math.sin(r)+i*Math.cos(r);return new s.P(o+e.x,a+e.y)}}(n||(n={}))},4068:(t,e,r)=>{r.d(e,{P:()=>n});class n{constructor(t,e){"object"==typeof t?(this.x=t.x??0,this.y=t.y??0):(this.x=t??0,this.y=e??0)}copy(){return new n(this.x,this.y)}}},5275:(t,e,r)=>{r.d(e,{s:()=>n});const n=t=>!!t&&"number"==typeof t.width&&"number"==typeof t.height},7553:(t,e,r)=>{r.d(e,{M:()=>o});var n=r(8741),i=r(4068);class o{constructor(t,e,r){t instanceof n.M?(this.x=t.x,this.y=t.y,this.z=t.z):"object"==typeof t?(this.x=t.x??0,this.y=t.y??0,this.z=t.z??0):(this.x=t??0,this.y=e??0,this.z=r??0)}set(t,e=0,r=0){return t instanceof o||t instanceof n.M?this.set(t.x||0,t.y||0,t.z||0):(this.x=t,this.y=e,this.z=r),this}get(){return new o(this.x,this.y,this.z)}mag(){const t=this.x,e=this.y,r=this.z;return Math.sqrt(t*t+e*e+r*r)}add(t,e=0,r=0){t instanceof o||t instanceof n.M?(this.x+=t.x,this.y+=t.y,this.z+=t.z):(this.x+=t,this.y+=e,this.z+=r)}toAdd(t,e){return new o(t.x+e.x,t.y+e.y,t.x+e.y)}sub(t,e=0,r=0){t instanceof o||t instanceof n.M?(this.x-=t.x,this.y-=t.y,this.z-=t.z):(this.x-=t,this.y-=e,this.z-=r)}toSub(t){const e=this;return new o(e.x-t.x,e.y-t.y,e.z-t.z)}mult(t){return t instanceof o||t instanceof n.M?(this.x*=t.x,this.y*=t.y,this.z*=t.z):(this.x*=t,this.y*=t,this.z*=t),this}toMult(t){const e=this;return new o(e.x*=t.x,e.y*=t.y,e.z*=t.z)}div(t){return t instanceof o||t instanceof n.M?(this.x/=t.x,this.y/=t.y,this.z/=t.z):(this.x/=t,this.y/=t,this.z/=t),this}toDiv(t){const e=this.get();return e.x/=t,e.y/=t,e.z/=t,e}dist(t){const e=this.x-t.x,r=this.y-t.y,n=this.z-t.z;return Math.sqrt(e*e+r*r+n*n)}toDist(t){const e=this,r=e.x-t.x,n=e.y-t.y,i=e.z-t.z;return Math.sqrt(r*r+n*n+i*i)}dot(t,e,r){return t instanceof o||t instanceof n.M?this.x*t.x+this.y*t.y+this.z*t.z:this.x*t+this.y*e+this.z*r}cross(t){const e=this.x,r=this.y,n=this.z;return new o(r*t.z-t.y*n,n*t.x-t.z*e,e*t.y-t.x*r)}normalize(){const t=this.mag();t>0&&this.div(t)}limit(t){this.mag()>t&&(this.normalize(),this.mult(t))}heading2D(){return-Math.atan2(-this.y,this.x)}random2D(){return this.fromAngle(Math.random()*(2*Math.PI))}fromAngle(t,e=1){return new o(e*Math.cos(t),e*Math.sin(t),0)}fromAngles(t,e,r=1){const n=Math.cos(e),i=Math.sin(e),a=Math.cos(t),s=Math.sin(t);return new o(r*s*i,-r*a,r*s*n)}array(){return[this.x,this.y,this.z]}toPoint3D(){return new n.M(this.x,this.y,this.z)}toPoint2D(){return new i.P(this.x,this.y)}copy(){return new o(this.x,this.y,this.z)}toString(){return"["+this.x+", "+this.y+", "+this.z+"]"}}},7855:(t,e,r)=>{r.d(e,{O:()=>n});const n=t=>null!=t},8741:(t,e,r)=>{r.d(e,{M:()=>o});var n=r(7553),i=r(4068);class o extends i.P{constructor(t,e,r){t instanceof n.M?(super(t.x,t.y),this.z=t.z):"object"==typeof t?(super({x:t.x??0,y:t.y??0}),this.z=t.z??0):(super(t,e),this.z=r??0)}copy(){return new o(this.x,this.y,this.z)}}},9244:(t,e,r)=>{r.d(e,{r:()=>a});var n=r(4068),i=r(3599),o=r(5275);class a{constructor(t,e,r=0,i=0){(0,o.s)(t)?(this._start=new n.P(0,0),this._width=t.width,this._height=t.height):"object"==typeof t&&"object"==typeof e?(this._start=t instanceof n.P?t:new n.P(t.x,t.y),this.end=e instanceof n.P?e:new n.P(e.x,e.y)):"object"==typeof t&&"number"==typeof e?(this._start=t instanceof n.P?t:new n.P(t.x,t.y),this._width=e,this._height=r):"number"==typeof t&&"number"==typeof e&&(this._start=new n.P(t,e),this._width=r,this._height=i)}valueLinkControl(t){let e,r=!1;var n;return"object"==typeof(n=t)&&"value"in n&&"noLink"in n?(e=t.value,r=t.noLink):e=t,{value:e,noLink:r}}get width(){return this._width}get height(){return this._height}get start(){return this._start.copy()}set width(t){this.setWidth(t)}setWidth(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this._width,e);this._width=e,this.applyWidthPercentLinks({value:n,noLink:r})}set height(t){this.setHeight(t)}setHeight(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this._height,e);this._height=e,this.applyHeightPercentLinks({value:n,noLink:r})}set start(t){let{value:e,noLink:r}=this.valueLinkControl(t);const o=new n.P({x:i.z.getPercentByTotal(this._start.x,e.x),y:i.z.getPercentByTotal(this._start.y,e.y)});this._start=e,this.applyStartPercentLinks({value:o,noLink:r})}setWidthFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=i.z.getPercentByTotal(this.start.x,e);this._start.x=this.end.x-e,this.applyStartXPercentLinks({value:n,noLink:r})}set widthFromEnd(t){this.setWidthFromEnd(t)}setHeightFromEnd(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.end.y-e,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks({value:o,noLink:r})}set heightFromEnd(t){this.setHeightFromEnd(t)}setWidthFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.x-e/2,o=i.z.getPercentByTotal(this.start.x,n);this._start.x=n,this.applyStartXPercentLinks(o)}set widthFromCenter(t){this.setWidthFromCenter(t)}setHeightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.y-e/2,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks(o)}set heightFromCenter(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=this.center.y-e/2,o=i.z.getPercentByTotal(this.start.y,n);this._start.y=n,this.applyStartYPercentLinks(o)}set x(t){this.setX(t)}setX(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=e-this._start.x,o=i.z.getPercentByTotal(this.width,n);this._start.x=e,this.applyStartXPercentLinks({value:o,noLink:r})}set y(t){this.setY(t)}setY(t){let{value:e,noLink:r}=this.valueLinkControl(t);const n=e-this._start.y,o=i.z.getPercentByTotal(this.height,n);this._start.y=e,this.applyStartYPercentLinks({value:o,noLink:r})}applyWidthPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setWidthByWidthPercent({value:e,noLink:this})})}applyHeightPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.setHeightByHeightPercent({value:e,noLink:this})})}applyStartPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.applyStartXPercentLinks({value:e.x,noLink:r}),this.applyStartYPercentLinks({value:e.y,noLink:r})}applyStartXPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addXByWidthPercent({value:e,noLink:this})})}applyStartYPercentLinks(t){let{value:e,noLink:r}=this.valueLinkControl(t);!this.linkRects||"boolean"==typeof r&&r||Array.from(this.linkRects.values()).filter(t=>"boolean"==typeof r||t!==r).forEach(t=>{t.addYByHeightPercent({value:e,noLink:this})})}hasLink(t){return this.linkRects?.has(t)}isLinked(){return!!this.linkRects?.size}addLink(...t){this.linkRects??(this.linkRects=new Set),t.filter(t=>!this.linkRects?.has(t)).forEach(t=>{this.linkRects?.add(t),t.addLink(this)})}setLinks(t){this.unLinkAll(),this.addLink(...t)}unLinkAll(){this.linkRects&&(Array.from(this.linkRects.values()).forEach(t=>{this.unLink(t)}),this.linkRects.clear())}unLink(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.linkRects&&this.linkRects.delete(e),r||e.unLink({value:this,noLink:this})}addWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:this.width+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:this.height+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addWidthRatio(t){this.width=this.width+i.z.getValueByTotalInRatio(this.width,t)}addHeightRatio(t){this.height=this.height+i.z.getValueByTotalInRatio(this.height,t)}addXPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addYPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addXRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set endX(t){const e=t-this.x;this.width=e}set endXPercent(t){this.endX=i.z.getValueByTotalInPercent(this.width,t)}set endYPercent(t){this.endY=i.z.getValueByTotalInPercent(this.height,t)}set endY(t){this.height=t-this.y}set end(t){this.width=t.x-this.x,this.height=t.y-this.y}get x(){return this.start.x}get y(){return this.start.y}get endX(){return this.end.x}get endY(){return this.end.y}to(t){const e=this.copy();return e.start=t,e}toRotate(t,{rotatePoint:e=this.center,type:r="degreeAngle"}){const o=i.z.radians(t,{type:r}),a=e instanceof n.P?e:new n.P(e.x,e.y);return[this.leftTop,this.rightTop,this.rightBottom,this.leftBottom].map(t=>i.z.rotatePoint(t,a,o))}get center(){return new n.P(this.start.x+this.width/2,this.start.y+this.height/2)}get end(){return new n.P(this.start.x+this.width,this.start.y+this.height)}get leftTop(){return this.start.copy()}get leftBottom(){return new n.P(this.start.x,this.end.y)}get rightTop(){return new n.P(this.end.x,this.start.y)}get rightBottom(){return this.end}copy(){return new a(this.x,this.y,this.width,this.height)}getWidthPercent(t){return i.z.getPercentByTotal(this.width,t)}getWidthRatio(t){return i.z.getRatioByTotal(this.width,t)}getWidthByPercent(t){return i.z.getValueByTotalInPercent(this.width,t)}getWidthByRatio(t){return i.z.getValueByTotalInRatio(this.width,t)}getHeightPercent(t){return i.z.getPercentByTotal(this.height,t)}getHeightRatio(t){return i.z.getRatioByTotal(this.height,t)}getHeightByPercent(t){return i.z.getValueByTotalInPercent(this.height,t)}getHeightByRatio(t){return i.z.getValueByTotalInRatio(this.height,t)}getXPercent(t){return i.z.getPercentByTotal(this.width,t-this.x)}getXRatio(t){return i.z.getRatioByTotal(this.width,t-this.x)}getXByPercent(t){return this.x+i.z.getValueByTotalInPercent(this.width,t)}getXByRatio(t){return this.x+i.z.getValueByTotalInRatio(this.width,t)}getYPercent(t){return i.z.getPercentByTotal(this.height,t-this.y)}getYRatio(t){return i.z.getRatioByTotal(this.height,t-this.y)}getYByPercent(t){return this.y+i.z.getValueByTotalInPercent(this.height,t)}getYByRatio(t){return this.y+i.z.getValueByTotalInRatio(this.height,t)}getPercent(t){return new n.P(this.getXPercent(t.x),this.getYPercent(t.y))}toScaleByWidth(t){const e=this.height/this.width;return new a(this.x,this.y,t,t*e)}toScaleByHeight(t){const e=this.width/this.height;return new a(this.x,this.y,t*e,t)}toRatio(t){return new a(this.getXRatio(t.x),this.getYRatio(t.y),this.getWidthRatio(t instanceof a?t.width:t.w),this.getHeightRatio(t instanceof a?t.height:t.h))}getRatio(t){return new n.P(this.getXRatio(t.x),this.getYRatio(t.y))}getByPercent(t){return new n.P(this.getXByPercent(t.x),this.getYByPercent(t.y))}getByRatio(t){return new n.P(this.getXByRatio(t.x),this.getYByRatio(t.y))}getDiffX(t){return t-this.x}getDiffY(t){return t-this.y}getDiffLeft(t){this.getDiffX(t)}getDiffTop(t){this.getDiffY(t)}getDiffRight(t){return t-this.end.x}getDiffBottom(t){return t-this.end.y}getDiffWidth(t){return t-this.width}getDiffHeight(t){return t-this.height}toDiff(t){return new a(t.x-this.x,t.y-this.y,t.width-this.width,t.height-this.height)}setXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:i.z.getValueByTotalInPercent(this.width,e),noLink:r})}set xByWidthPercent(t){this.setXByWidthPercent(t)}setXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:i.z.getValueByTotalInRatio(this.width,e),noLink:r})}set xByWidthRatio(t){this.setXByWidthRatio(t)}setYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:i.z.getValueByTotalInPercent(this.height,e),noLink:r})}set yByHeightPercent(t){this.setYByHeightPercent(t)}setYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set yByHeightRatio(t){this.setYByHeightRatio(t)}addXByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInPercent(this.width,e),noLink:r})}addXByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setX({value:this.x+i.z.getValueByTotalInRatio(this.width,e),noLink:r})}addYByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInPercent(this.height,e),noLink:r})}addYByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setY({value:this.y+i.z.getValueByTotalInRatio(this.height,e),noLink:r})}setWidthByWidthPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:i.z.getValueByTotalInPercent(this.width,e),noLink:r})}set widthByWidthPercent(t){this.setWidthByWidthPercent(t)}setWidthByWidthRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setWidth({value:i.z.getValueByTotalInRatio(this.width,e),noLink:r})}set widthByWidthRatio(t){this.setWidthByWidthRatio(t)}setHeightByHeightPercent(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:i.z.getValueByTotalInPercent(this.height,e),noLink:r})}set heightByHeightPercent(t){this.setHeightByHeightPercent(t)}setHeightByHeightRatio(t){let{value:e,noLink:r}=this.valueLinkControl(t);this.setHeight({value:i.z.getValueByTotalInRatio(this.height,e),noLink:r})}set heightByHeightRatio(t){this.setHeightByHeightRatio(t)}copyByPercent(t,e){return new a(this.x,this.y,i.z.getValueByTotalInPercent(this.width,t),i.z.getValueByTotalInPercent(this.height,e??t))}copyByRatio(t,e){return new a(this.x,this.y,i.z.getValueByTotalInRatio(this.width,t),i.z.getValueByTotalInRatio(this.height,e??t))}isIn(t){return t instanceof a?this.isIn(t.start)&&this.isIn(t.end):t.x>=this.start.x&&t.x<=this.end.x&&t.y>=this.start.y&&t.y<=this.end.y}isOut(t){return t instanceof a?!this.isOverlap(t):!this.isIn(t)}isOverlap(t){return t instanceof a?!(this.endX<t.x||this.x>t.endX||this.endY<t.y||this.y>t.endY):this.isIn(t)}toString(){return`x:${this.x}, y:${this.y}, width: ${this.width}, height: ${this.height}`}}},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},y={};function p(t){var e=y[t];if(void 0!==e)return e.exports;var r=y[t]={exports:{}};return l[t](r,r.exports,p),r.exports}p.d=(t,e)=>{for(var r in e)p.o(e,r)&&!p.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},p.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var d={};p.d(d,{T:()=>g});var g,v=p(9284),w=p(4068),b=p(8741),m=p(9244),O=p(2676);!function(t){t.objToGetURL=t=>Object.keys(t).reduce((e,r,n)=>`${e}${0!==n?"&":""}${r}=${t[r]}`,""),t.mapToJson=t=>JSON.stringify(Array.from(t.entries()).reduce((t,[e,r])=>(t[e]=r,t),{})),t.jsonToMap=t=>new Map(JSON.parse(t)),t.decodeURIString=t=>decodeURIComponent(t),t.objToStrMap=t=>{const e=new Map;for(const r of Object.keys(t))e.set(r,t[r]);return e},t.jsonToStrMap=e=>t.objToStrMap(JSON.parse(e)),t.strToObject=t=>JSON.parse(t),t.objToJson=t=>JSON.stringify(t),t.objToMap=t=>{const e=new Map;return Object.keys(t).forEach(r=>{e.set(r,t[r])}),e},t.mapToObj=t=>{const e={};return t.forEach((t,r)=>{e[r]=t}),e},t.snakeToCamelCase=t=>t.replace(/_([a-z])/g,(t,e)=>e.toUpperCase()),t.camelToSnakeCase=t=>t.replace(/([a-z])([A-Z])/g,"$1_$2").toLowerCase(),t.toFormData=function(t){const e=new FormData;for(const r in t)e.append(r,t[r]);return e},t.toObject=function(e,r){if(e instanceof URLSearchParams){const t={};return e.forEach((e,n)=>{r?.firstValue&&void 0===t[n]?t[n]=e:r?.firstValue||(t[n]?Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]:t[n]=e)}),t}if(e instanceof FormData){const t=t=>{const e={};for(const r of t.keys()){const n=t.getAll(r);e[r]=n.length>1?n:n[0]}return e};return t(e)}if(e&&"function"==typeof e[Symbol.iterator])return Object.fromEntries(e);if(Array.isArray(e))return Object.fromEntries(e);if(v.U.isMap(e)){const r=e;e=t.mapToObj(r)}if(v.U.isArray(e)){const r=e;for(let e=0;e<r.length;e++)r[e]=t.toObject(r[e])}if(v.U.isObject(e))for(const r in e)e[r]=t.toObject(e[r]);return e},t.toArray=t=>t instanceof Set?Array.from(t.values()):Array.isArray(t)?t:t?[t]:[],t.flatArray=(...t)=>t.flatMap(t=>t instanceof Object&&Symbol.iterator in t?Array.from(t):[t]),t.iteratorToArray=t=>Array.from(t),t.toJson=e=>{const r=t.toObject(e);return JSON.stringify(r)},t.concatenateToAttribute=e=>t.concatenateToString(e,"="," ","'"),t.concatenateToParameter=e=>t.concatenateToString(e,"=","&",""),t.concatenateToString=(t,e="=",r=" ",n="")=>{const i=[];for(const r in t){const o=t[r];o&&i.push(r.toString()+e+n+o+n)}return i.join(r)},t.specialCharsToEscape=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.decodeHTMLEscape=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(///g,"/"),t.copyObject=(t,e={})=>({...t,...e}),t.copyArrayWithAddition=(t,e)=>[...t,...e||[]],t.hexToInt=t=>(t.startsWith("#")&&(t=t.slice(1)),3===t.length&&(t=t.split("").map(t=>t+t).join("")),parseInt(t,16)),t.toHex=t=>(t<0&&(t=4294967295+t+1),(t=Number(t.toFixed(0))).toString(16).padStart(2,"0").toUpperCase()),t.toHexColor=e=>`#${t.toHex(e.r??0)}${t.toHex(e.g??0)}${t.toHex(e.b??0)}${t.toHex(e.a??255)}`,t.avgColor=t=>{const e=t.reduce((t,e)=>(t.r+=e.r??0,t.g+=e.g??0,t.b+=e.b??0,t.a+=e.a??0,t),{r:0,g:0,b:0,a:0});return{r:Math.floor(e.r/t.length),g:Math.floor(e.g/t.length),b:Math.floor(e.b/t.length),a:Math.floor(e.a/t.length)}},t.toRGBA=t=>{t??(t="#000000FF");const e=t.replace("#","");return{r:parseInt(e.slice(0,2)||"0",16),g:parseInt(e.slice(2,4)||"0",16),b:parseInt(e.slice(4,6)||"0",16),a:e.length>6?parseInt(e.slice(6,8)||"0",16):255}},t.minMaxCenterAvg=t=>{const e={},r=O.B.uniqueKeys(t);for(const n of r){const r=t.map(t=>t[n]),i=Math.min(...r),o=Math.max(...r),a=(i+o)/2,s=r.reduce((t,e)=>t+e,0)/r.length;e[n]={min:i,max:o,center:a,avg:s,diff:o-i}}return e},t.minMaxCenterRectAvg2D=t=>{const e=new w.P(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),r=new w.P(Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);let n=new w.P(0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),n.x+=t.x,n.y+=t.y});const i=new w.P((e.x+r.x)/2,(e.y+r.y)/2),o=new w.P(n.x/t.length,n.y/t.length),a=new m.r(e.x,e.y,r.x-e.x,r.y-e.y);return{min:e,max:r,center:i,avg:o,minMaxRect:a}},t.minMaxCenterAvg3D=t=>{const e=new b.M(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE),r=new b.M(Number.MIN_VALUE,Number.MIN_VALUE,Number.MIN_VALUE);let n=new b.M(0,0,0);t.forEach(t=>{e.x=Math.min(e.x,t.x),e.y=Math.min(e.y,t.y),e.z=Math.max(e.z,t.z),r.x=Math.max(r.x,t.x),r.y=Math.max(r.y,t.y),r.z=Math.max(r.z,t.y),n.x+=t.x,n.y+=t.y,n.z+=t.z});const i=new b.M((e.x+r.x)/2,(e.y+r.y)/2,(e.z+r.z)/2),o=new b.M(n.x/t.length,n.y/t.length,n.z/t.length);return{min:e,max:r,center:i,avg:o}},t.roundRectRadiiToFullRadii=t=>t?1===t.length?[t[0]??0,t[0]??0,t[0]??0,t[0]??0]:2===t.length?[t[0]??0,t[1]??0,t[0]??0,t[1]??0]:3===t.length?[t[0]??0,t[1]??0,t[2]??0,t[1]??0]:t:[0,0,0,0],t.toArrayDirectionChange=t=>{if(!t||0===t.length||!t[0]||0===t[0].length)return[];const e=[],r=t[0].length,n=t.length;for(let i=0;i<r;i++){const r=[];for(let e=0;e<n;e++)r.push(t[e][i]);e.push(r)}return e},t.groupByMap=(t,e)=>t.reduce((t,r)=>{const n=e(r),i=t.get(n)||[];return i.push(r),t.set(n,i),t},new Map),t.groupByObject=(e,r)=>{const n=t.groupByMap(e,r);return Object.fromEntries(n)},t.toURLSearchParams=t=>{const e=new URLSearchParams;if("string"==typeof t)new URLSearchParams(t).forEach((t,r)=>{e.append(r,t)});else if("object"==typeof t){const r=t instanceof URLSearchParams?t.entries():Array.isArray(t)?t:Object.entries(t);for(const[t,n]of Array.from(r))Array.isArray(n)?n.forEach(r=>e.append(t,r)):e.append(t,n)}return e},t.stringJsonToKeyPairs=t=>Array.from(t.matchAll(/(\w+):\s*([^,}]+)/g)).map(t=>({key:t[1],value:t[2]}))}(g||(g={}));const _=d.T;var M=r(4297),x=r(3896),S=r(4642),k=r(2225);class P{constructor(t,e){this.simpleApplication=t,this.option=e,this._storage=new Map,this.setStoreSet(S.B,this.simpleApplication),this.setStoreSet(P,this),this.setStoreSet(e.constructor,e),this.setStoreSet(f.t,e),this.simProxyHandler=new h.e(this.simpleApplication,this,e)}get storage(){return this._storage}getSimAtomics(){const t=[];return Array.from(this.storage.entries()).forEach(([e,r])=>{t.push(...Array.from(Array.from(r.keys())).map(t=>new s.J({targetKeyType:e,originalType:t},this)))}),t}getSimConfig(t){return this.getSimAtomics().filter(e=>{const r=e?.getConfig(),n=_.flatArray(r?.symbol),i=_.flatArray(r?.scheme);return"symbol"==typeof t?t&&e&&n.includes(t):"string"==typeof t&&t&&e&&i.includes(t)})||[]}findSims(t){let e=[];return t&&(e=this.getSimAtomics().filter(e=>{let r=!1;const i=e.getConfig(),o=_.flatArray(i?.symbol).filter(n.O),a=_.flatArray(i?.scheme).filter(n.O);if("symbol"==typeof t)r=o.includes(t);else{const{scheme:n,type:i}=t;r=(!n||a.includes(n))&&(!i||e.type.targetKeyType===i)}return r})),e}findFirstSim(t){return this.findSims(t)[0]}findLastSim(t){return this.findSims(t).reverse()[0]}flatStoreSets(){return new Map(Array.from(this.storage.values()).map(t=>Array.from(t.entries())).flat())}getStoreSets(t){const e=this.storage.get(t);return(Array.from(e?.entries?.()??[])??[]).reverse().map(t=>({type:t[0],instance:t[1]}))}getStoreSet(t,e){const r=this.getStoreSets(t).find(t=>t.type===e);if(r?.instance)return r;{const r=e??t,n=this.flatStoreSets().get(r);return n&&this.setStoreSet(t,n,r),{type:r,instance:n}}}getStoreInstance(t,e){return this.getStoreSet(t,e)?.instance}getOrNewSim({target:t,originTypeTarget:e=t,newInstanceCarrier:r}){if(t){const n=this.getStoreSet(t,e);return n?.type&&!n?.instance?this.resolve({targetKey:t,target:e,newInstanceCarrier:r}):n?.instance}}setStoreSet(t,e,r=t){const n=this.storage.get(t)??new Map;n.set(r,e),this.storage.set(t,n)}registerStore(t,e){const r=this.storage.get(t)??new Map;e.forEach(t=>{const{type:e,value:n}="object"==typeof t?{type:t.constructor,value:t}:{type:t,value:void 0};r.has(e)||r.set(e,n)}),this.storage.set(t,r)}resolve({target:t,targetKey:e,newInstanceCarrier:r={newInstances:[],depth:0}}){const n=this.getStoreSet(e,t);if(n?.instance)return n.instance;if(this.storage.has(e)&&void 0===n?.instance){r.depth++;const i=this.newSim({target:n?.type??e,newInstanceCarrier:r,simCreateAfter:r=>{(0,o.Op)(n?.type??t??e)?.scope===o.v0.Singleton&&this.setStoreSet(e,r,t)}});return r.depth--,0===r.depth&&r.newInstances.forEach(t=>{this.callBindPostConstruct(t)}),(0,M.P)(i)&&i.onSimCreate(),i}const a=new i.C("SimNoSuch: no simple instance(resolve) name:"+e?.prototype?.constructor?.name+","+e);throw console.error(a),a}newSim({target:t,simCreateAfter:e,otherStorage:r,newInstanceCarrier:i}){const a=new t(...this.getParameterSim({target:t,otherStorage:r,newInstanceCarrier:i}));let s=this.proxy(a);const u=(0,o.Op)(t);return u?.proxy&&(Array.isArray(u.proxy)?u.proxy:[u.proxy]).filter(n.O).forEach(t=>{if("object"==typeof t)s=new Proxy(s,t);else{const e=(0,o.Op)(t);s=new Proxy(s,e?this.getOrNewSim({target:t}):this.newSim({target:t}))}}),i?.newInstances.push(s),e?.(s),(0,x.I)(s)&&s.onSimCreateProxyCompleted(s),s}callBindPostConstruct(t){(0,o.Dy)(t).forEach(e=>{t[e.property](...this.getParameterSim({target:t,targetKey:e.property}))})}async executeBindParameterSimPromise({target:t,targetKey:e,firstCheckMaker:r},n){let i=this.executeBindParameterSim({target:t,targetKey:e,firstCheckMaker:r},n);return i instanceof Promise&&(i=await i),i}executeBindParameterSim({target:t,targetKey:e,firstCheckMaker:r},n){const i=this.getParameterSim({target:t,targetKey:e,firstCheckMaker:r,otherStorage:n});if("object"==typeof t&&e){const r=t[e];return r?.bind(t)?.(...i)}if("function"==typeof t&&!e)return new t(...i)}getParameterSim({target:t,targetKey:e,firstCheckMaker:r,otherStorage:n,newInstanceCarrier:i}){const o=u.d.getParameterTypes(t,e);let a=[];const s=(0,c.Mq)(t,e);return a=o.map((o,a)=>{const u=s?.find(t=>t.index===a);if(!u?.config.disabled){for(const n of r??[]){const r=n({target:t,targetKey:e},o,a,u);if(void 0!==r)return r}if(u){const t=u.config;let e=n?.get(o);if(o===Array&&(t.type||t.scheme||t.symbol)){const e=[];return t.type&&e.push(...this.getStoreSets(t.type).map(e=>this.resolve({targetKey:t.type,target:e.type,newInstanceCarrier:i})).reverse()),t.symbol&&e.push(...this.getSimConfig(t.symbol).map(t=>t.getValue({newInstanceCarrier:i}))),t.scheme&&e.push(...this.getSimConfig(t.scheme).map(t=>t.getValue({newInstanceCarrier:i}))),e}if(t.situationType&&n){const r=n.get(c.tr),i=n.get(c._t);if(t.situationType===i?.situationType)e=i.data;else if(r&&r.length>0){const n=r.find(e=>void 0!==e.index?e.situationType===t.situationType&&e.index===a:e.situationType===t.situationType);n&&(e=n.data)}}if(!e){const r=t.symbol?this.findLastSim(t.symbol):this.findLastSim({scheme:t.scheme,type:t.type});try{e=r?this.resolve({targetKey:r?.type.targetKeyType??o,newInstanceCarrier:i}):this.resolve({targetKey:o,newInstanceCarrier:i})}catch(e){if(t.optional)return;throw e}}return t.applyProxy&&e&&(e=t.applyProxy.param?new Proxy(e,new t.applyProxy.type(...t.applyProxy.param)):new Proxy(e,new t.applyProxy.type)),e}return o?n?.get(o)??this.resolve({targetKey:o,newInstanceCarrier:i}):void 0}}),a}proxy(t){try{if(!(0,k.j1)(t)&&null!==t&&(0,o.Op)(t)&&"object"==typeof t&&!("isProxy"in t)){for(const e in t)(0,k.j1)(t,e)||(t[e]=this.proxy(t[e]));a.B.ownPropertyNames(t).filter(e=>"function"==typeof t[e]).filter(e=>!(0,k.j1)(t,e)).forEach(e=>{t[e]=new Proxy(t[e],this.simProxyHandler)}),this.simProxyHandler&&(t=new Proxy(t,this.simProxyHandler))}return this.option.proxy&&(t=this.option.proxy.onAfterProxy(t)),t}catch(t){throw console.log("sim proxy error"),t}}run(t=new Map){for(const[e,r]of Array.from(t.entries()))"object"==typeof e?(0,o.tS)(e,r):(0,o.tS)({type:e},r);const e=_.flatArray(this.option.container).filter(n.O);Array.from(o.hm.entries()).forEach(([t,r])=>{const i=_.flatArray((0,o.Op)(t)?.container).filter(n.O);let a=!1;a=e.length<=0&&i.length<=0||i.length<=0||e.some(t=>i.includes(t)),this.registerStore(t,r)}),this.callBindPostConstruct(this),this.getSimAtomics().forEach(t=>{t.getConfig()?.autoCreate&&t.getValue()})}}},8537:(t,e,r)=>{r.d(e,{W$:()=>n,v0:()=>s}),r(6404);var n,i=r(5053),o=r(7441);!function(t){t.ERROR_OBJECT="SIMPLE_BOOT_CORE://ExceptionHandler/ERROR_OBJECT",t.PARAMETER="SIMPLE_BOOT_CORE://ExceptionHandler/PARAMETER"}(n||(n={}));const a=Symbol("ExceptionHandler"),s=(t,e,r=[])=>{let n=((t,e)=>{const r=(t=>(null!=t&&"object"==typeof t&&(t=t.constructor),i.d.getMetadata(a,t)))(t),n=r?.filter(t=>void 0===t.config.type),s=r?.filter(t=>o.B.isPrototypeOfTarget(t.config.type,e)),u=s?.sort((t,r)=>{const n=o.B.prototypeOfDepth(e,t.config.type),i=o.B.prototypeOfDepth(e,r.config.type);return n.length-i.length});return(u??[]).concat(...n??[])})(t,e);return n=n?.filter(t=>!r.includes(t.method)),n&&n.length>0?n[0]:void 0}},9212:(t,e,r)=>{r.d(e,{J:()=>o});var n=r(742),i=r(5053);class o{constructor(t,e,r){this.type=t,this.simstanceManager=e,this.config=r,this.value=t.value}getConfig(t=n.wB){return i.d.getMetadata(t,this.type.originalType)}getConfigs(){return i.d.getMetadatas(this.type.originalType)}getValue(t){return t?.refresh&&(this.value=void 0),this.value||(this.value=this.simstanceManager.getOrNewSim({target:this.type.targetKeyType,originTypeTarget:this.type.originalType,newInstanceCarrier:t?.newInstanceCarrier})),this.value}}},9492:(t,e,r)=>{r.d(e,{O:()=>a});var n={d:(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},i={};n.d(i,{O:()=>o});const o=t=>null!=t,a=i.O}},e={};function i(r){var n=e[r];if(void 0!==n)return n.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const o=i(4642).B;var a=r(3587);const s=require("http"),u=require("https");var c=r(3500),f=r(9108),h=r(229),l=r(7953),y=r(1946),p={5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(A(n)&&!P(r=n.call(t)))return r;if(A(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function T(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function E(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!T(t))throw new TypeError;if(!E(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!E(n))throw new TypeError;e=n}}return e}(t,e)}if(!T(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d},6404:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=N(t,i);if(void 0!==r){var n=r.call(t,e);if(P(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(A(n)&&!P(r=n.call(t)))return r;if(A(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function T(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function E(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!T(t))throw new TypeError;if(!E(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!E(n))throw new TypeError;e=n}}return e}(t,e)}if(!T(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))},7441:(t,e,r)=>{r.d(e,{B:()=>f});var n={7855:(t,e,r)=>{r.d(e,{O:()=>n});const n=t=>null!=t},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{B:()=>s});var s,u=o(7855),c=o(9284);!function(t){let e,r;t.constructorName=t=>t&&t.constructor&&t.constructor.name?t.constructor.name:t&&t.name?t.name:void 0,t.deepCopy=t=>t instanceof Map?new Map(JSON.parse(JSON.stringify(Array.from(t.entries())))):t instanceof Set?new Set(JSON.parse(JSON.stringify(Array.from(t.values())))):c.U.isNullOrUndefined(t)?t:JSON.parse(JSON.stringify(t)),t.allProtoTypeName=(e,r)=>{let n=[];if(e){const i=Object.getPrototypeOf(e);i&&(n=Object.keys(i)||[]).length>0&&(n=n.concat(t.allProtoTypeName(i,r)))}let i=n.filter(t=>"constructor"!==t);if(r&&e){const t=Object.getPrototypeOf(e);i=i.filter(e=>r(e,t?.[e]))}return i},t.uniqueKeys=t=>Array.from(new Set((Array.isArray(t)?t:[t]).flatMap(t=>Object.keys(t)))),t.ownPropertyNames=t=>{const e=[];if(t)if(t.prototype)e.push(...Object.getOwnPropertyNames(Object.getPrototypeOf(t)));else{const r=Object.getPrototypeOf(t);e.push(...Object.getOwnPropertyNames(r))}return e.filter(t=>"constructor"!==t)},t.protoTypeName=t=>{let e=[];if(t){const r=Object.getPrototypeOf(t);e=Object.keys(r)||[]}return e.filter(t=>"constructor"!==t)},t.protoTypes=t=>{const e=[];if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.push(r[t])})}return e},t.seal=t=>Object.seal(t),t.isPrototypeOfTarget=(t,e)=>!(!t||!e)&&Object.prototype.isPrototypeOf.call(t.prototype,e),t.prototypeOfDepth=(t,e)=>{let r=t;const n=[];if(e)do{if(r=Object.getPrototypeOf(r),r?.constructor===e)break;n.push(r)}while(r);return n},t.allProtoType=t=>{const e=(t,r=[])=>(t.prototype&&(r.push(t),e(Object.getPrototypeOf(t),r)),r);return e(t)},t.prototypeOf=t=>Object.getPrototypeOf(t),t.prototypeKeyMap=t=>{const e=new Map;if(t){const r=Object.getPrototypeOf(t);(Object.keys(r)||[]).filter(t=>"constructor"!==t).forEach(t=>{e.set(r[t],t)})}return e},t.prototypeName=(e,r)=>t.prototypeKeyMap(e).get(r),t.pickRandomKey=t=>{const e=Object.keys(t);return e[Math.floor(Math.random()*e.length)]},t.pickRandomValue=t=>{const e=Object.keys(t);return t[e[Math.floor(Math.random()*e.length)]]},t.pickRandomKeyValue=t=>{const e=Object.keys(t),r=e[Math.floor(Math.random()*e.length)];return{key:r,value:t[r]}},t.keyValues=t=>Object.keys(t).map(e=>({key:e,value:t[e]})),t.entries=t=>Object.entries(t),t.values=t=>Object.values(t),t.keys=t=>Object.keys(t),t.keyLength=e=>t.keys(e).length,t.toDeleteUndefinedAndNull=(t,e)=>{const r=t=>Array.isArray(t)?t.filter(t=>null!=t).map(r):t&&"object"==typeof t?e?.deep?Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e).map(([t,e])=>[t,r(e)])):Object.fromEntries(Object.entries(t).filter(([t,e])=>null!=e)):t;return r(t)},function(t){t.isFunctionScript=t=>t.trim().startsWith("function"),t.isArrowFunctionScript=t=>/^\s*\([^)]*\)\s*=>/.test(t),t.toOptionalChainPath=e=>{if(!e)return"";if(e.trim().startsWith("{")&&e.trim().endsWith("}"))return e;if(t.isFunctionScript(e)||t.isArrowFunctionScript(e))return e;if(e.includes(" ? ")&&e.includes(" : ")){const t=e.split(/(\s+\?\s+|\s+:\s+)/).map((t,e)=>{if(0===e){const e=t.match(/[^?.[\]]+|\[[^\]]*\]/g);if(e&&e.length>1)return e.join("?.")}return t});return t.join("")}if(e.includes("(")){const r=[];let n=e,i=0;const o=/(\w+)\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g;let a;for(;null!==(a=o.exec(e));){const e=a[0],o=a[1],s=a[2],u=`__FUNC_CALL_${i}__`,c=`${o}?.(${s?t.toOptionalChainPath(s):""})`;r.push({original:e,processed:c,placeholder:u}),n=n.replace(e,u),i++}const s=n.match(/[^?.[\]]+|\[[^\]]*\]/g);let u="";u=s&&s.length>1?s.join("?."):n;for(const t of r)u=u.replace(t.placeholder,t.processed);return u}const r=e.match(/[^?.[\]]+|\[[^\]]*\]/g);return r?r.join("?."):e},t.removeOptionalChainOperator=t=>t?t.replace(/\?\./g,".").replace(/\.\[/g,"["):"";const e=t=>{const e=[],r=/\.([^.\[]+)|\[(\d+)\]|\[(['"])(.*?)\3\]/g;let n,i=0;const o=t.match(r);if(o&&(o?.index??0)>0)e.push(t.substring(0,o.index)),i=o.index;else if(!o&&t.length>0)return e.push(t),e;for(;null!==(n=r.exec(t));){if(n.index>i){const r=t.substring(i,n.index);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}n[1]?e.push(n[1]):n[2]?e.push(parseInt(n[2],10)):n[4]&&e.push(n[4]),i=r.lastIndex}if(i<t.length){const r=t.substring(i);r.startsWith(".")?e.push(r.substring(1)):e.push(r)}return e};t.to=e=>{const r={};return Object.entries(e).forEach(([e,n])=>{t.set(r,e,n)}),r},t.set=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(t===i.length-1)o[e]=n;else{const r=i[t+1];if("number"==typeof r){if(Array.isArray(o[e])||(o[e]=[]),Array.isArray(o[e]))for(;o[e].length<=r;)o[e].push({})}else"object"==typeof o[e]&&null!==o[e]||(o[e]={});o=o[e]}}},t.get=(t,r,n)=>{const i=e(r);let o=t;for(let t=0;t<i.length;t++){const e=i[t];if(null==o)return n;if("object"!=typeof o||null===o||!(e in o))return n;o=o[e]}return o},t.deletePath=(t,r)=>{const n=e(r);if(0===n.length)return!1;let i=t;for(let t=0;t<n.length-1;t++){const e=n[t];if(null==i)return!1;if("object"!=typeof i||null===i||!(e in i))return!1;i=i[e]}const o=n[n.length-1];return null!==i&&"object"==typeof i&&o in i&&(Array.isArray(i)&&"number"==typeof o?i.splice(o,1):delete i[o],!0)},t.availablePath=(t,e)=>{const r=[],n=t=>"number"==typeof t?"["+t+"]":/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(t)?t:"['"+t+"']",i=(t,o,a)=>{null!==t&&"object"==typeof t&&(a.has(t)||(a.add(t),Array.isArray(t)?t.forEach((t,s)=>{const u=n(s),c=o?`${o}${u}`:u;e&&!e(c,t)||r.push(c),i(t,c,a)}):Object.keys(t).forEach(s=>{const u=n(s);let c;c=u.startsWith("[")?o?`${o}${u}`:u:o?`${o}.${u}`:u,e&&!e(c,t[s])||r.push(c),i(t[s],c,a)})))};return i(t,"",new Set),r},t.detectPathFromScript=(t,e)=>{const r=new Set;class n{constructor(t){this.prefix=t,this.usingVars=r}set(t,e,r,n){return!0}get(t,e,r){if("symbol"==typeof e)return this.createSafeProxy(this.prefix);let n;const i=String(e);return n=isNaN(Number(i))?this.prefix?`${this.prefix}.${i}`:i:this.prefix?`${this.prefix}[${i}]`:i,n&&this.usingVars.add(n),this.createSafeProxy(n)}apply(t,e,r){return this.createSafeProxy(this.prefix)}createSafeProxy(t){const e=new n(t);return new Proxy(()=>{},{get:(r,n,i)=>n===Symbol.toPrimitive?()=>"":"valueOf"===n?()=>e.createSafeProxy(t):"toString"===n?()=>"":e.get(r,n,i),set:e.set.bind(e),apply:e.apply.bind(e)})}}const i={window:new Proxy(()=>{},new n("window")),document:new Proxy(()=>{},new n("document")),console:new Proxy(()=>{},new n("console"))},o=new Proxy(()=>{},new n("this"));try{new Function("window","document","console",`"use strict"; ${t}; `).call(o,i.window,i.document,i.console)}catch(t){console.error("detectPathFromScript error:",t)}if(e?.excludeThis){const t=new Set;return r.forEach(e=>{"this"!==e&&(e.startsWith("this.")?t.add(e.substring(5)):t.add(e))}),t}return r}}(e=t.Path||(t.Path={})),t.toDeleteKey=(e,r)=>{const n={...e};return t.deleteKey(n,r),n},t.deleteKey=(t,e)=>{e.filter(t=>(0,u.O)(t)).forEach(e=>{delete t[e]})},function(t){t.evalReturn=(e,r={})=>{let n="",i="";return"object"==typeof e?(n=e.bodyScript,i=e.returnScript):i=e,t.eval(`${n}; return ${i} `,r)},t.eval=(t,e={})=>{try{return Function(`"use strict"; ${t} `).bind(e)()}catch(e){return console.error("eval error",e),void console.error(t)}}}(r=t.Script||(t.Script={}))}(s||(s={}));const f=a.B}},d={};function g(t){var e=d[t];if(void 0!==e)return e.exports;var r=d[t]={exports:{}};return p[t](r,r.exports,g),r.exports}g.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return g.d(e,{a:e}),e},g.d=(t,e)=>{for(var r in e)g.o(e,r)&&!g.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},g.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var v={};g.d(v,{AR:()=>S,SX:()=>_,W$:()=>w,dM:()=>x,ey:()=>M,v0:()=>k}),g(6404);var w,b=g(5053),m=g(7441);!function(t){t.ERROR_OBJECT="SIMPLE_BOOT_CORE://ExceptionHandler/ERROR_OBJECT",t.PARAMETER="SIMPLE_BOOT_CORE://ExceptionHandler/PARAMETER"}(w||(w={}));const O=Symbol("ExceptionHandler"),_=(t={})=>(e,r,n)=>{const i=b.d.getMetadata(O,e.constructor)??[],o=e[r];i.push({propertyKey:r,method:o,config:t}),b.d.defineMetadata(O,i,e.constructor),b.d.defineMetadata(O,t,e,r)},M=(t,e)=>b.d.getMetadata(O,t,e),x=t=>(null!=t&&"object"==typeof t&&(t=t.constructor),b.d.getMetadata(O,t)),S=(t,e)=>{const r=x(t),n=r?.filter(t=>void 0===t.config.type),i=r?.filter(t=>m.B.isPrototypeOfTarget(t.config.type,e)),o=i?.sort((t,r)=>{const n=m.B.prototypeOfDepth(e,t.config.type),i=m.B.prototypeOfDepth(e,r.config.type);return n.length-i.length});return(o??[]).concat(...n??[])},k=(t,e,r=[])=>{let n=S(t,e);return n=n?.filter(t=>!r.includes(t.method)),n&&n.length>0?n[0]:void 0},P=v.W$,j=v.v0;var R={5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(A(n)&&!P(r=n.call(t)))return r;if(A(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function T(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function E(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!T(t))throw new TypeError;if(!E(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!E(n))throw new TypeError;e=n}}return e}(t,e)}if(!T(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d},6404:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=N(t,i);if(void 0!==r){var n=r.call(t,e);if(P(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(A(n)&&!P(r=n.call(t)))return r;if(A(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function T(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function E(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!T(t))throw new TypeError;if(!E(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!E(n))throw new TypeError;e=n}}return e}(t,e)}if(!T(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},T={};function A(t){var e=T[t];if(void 0!==e)return e.exports;var r=T[t]={exports:{}};return R[t](r,r.exports,A),r.exports}A.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return A.d(e,{a:e}),e},A.d=(t,e)=>{for(var r in e)A.o(e,r)&&!A.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},A.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var E={};A.d(E,{Mq:()=>U,Qp:()=>z,_t:()=>C,tr:()=>F,y_:()=>I}),A(6404);var z,N=A(5053);!function(t){t.INDEX="SIMPLE_BOOT_CORE://Inject/INDEX"}(z||(z={}));class C{constructor({situationType:t,data:e,index:r}){this.situationType=t,this.data=e,this.index=r}}class F{constructor(t){this.containers=[],t&&this.containers.push(...t)}push(...t){this.containers.push(...t)}get length(){return this.containers.length}find(t,e){return this.containers.find(t)}}const B=Symbol("Inject"),L=(t,e,r,n)=>{if(r&&"object"==typeof e){const i=e;e=e.constructor;const o=Reflect.getOwnMetadata(B,e,r)||[],a=N.d.getParameterTypes(i,r)[n];o.push({index:n,config:t,propertyKey:r,type:a}),N.d.defineMetadata(B,o,e,r)}else if(!r||"function"==typeof e){const r=N.d.getMetadata(B,e)||[],i=N.d.getParameterTypes(e)[n];r.push({index:n,config:t,type:i}),N.d.defineMetadata(B,r,e)}};function I(t,e,r){if(!e||void 0===r)return(e,r,n)=>{L(t,e,r,n)};L({},t,e,r)}const U=(t,e)=>(null!=t&&void 0!==t&&"object"==typeof t&&(t=t.constructor),e?Reflect.getOwnMetadata(B,t,e):N.d.getMetadata(B,t)??[]),K=E._t,D=E.tr,H=E.Mq;var q=r(5053),W=r(6377),$=r(1022),V=r(9434),X={420:(t,e,r)=>{r.d(e,{e:()=>i});var n=r(3966);class i extends n.W{constructor(t,e,r,n){super(t,e,n),this.propertyKeys=r}}},532:(t,e,r)=>{r.d(e,{r:()=>c});var n={3056:(t,e,r)=>{r.d(e,{$:()=>n});var n,i=r(9284);!function(t){t.deleteEnter=t=>t.replace(/\r?\n/g,""),t.pickEmoji=t=>t.match(/[\p{Emoji}]/gu)??[],t.regexExec=(t,e)=>{let r=t.exec(e);const n=[];for(;r;)n.push(r),r=t.exec(r.input);return n},t.regexExecArrayReplace=(e,r,n)=>((Array.isArray(r)?r:t.regexExec(r,e)).reverse().forEach(t=>{const r="string"==typeof n?n:n(t);e=e.substr(0,t.index)+e.substr(t.index).replace(t[0],r)}),e),t.escapeSpecialCharacterRegExp=t=>t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),t.trim=t=>t.trim(),t.rsubString=(t,e)=>t.substring(t.length-e,t.length),t.lsubString=(t,e)=>t.substring(0,e),t.lpad=(e,r,n)=>{for(;r>n.length;)n=e+n;return t.rsubString(n,r)},t.rpad=(e,r,n)=>{for(;r>n.length;)n+=e;return t.lsubString(n,r)},t.lappend=(t,e)=>{let r="",n=0;for(;n++<t;)r+=e;return r},t.unescape=t=>{if(!t)return"";const e={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿","#x27":"'"};return t.replace(/&((?:(?:[a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});?)+);/gi,(t,r)=>r.toLowerCase().split(";").map(r=>r in e?e[r]:t).join(""))},t.executeExpression=(t,e)=>t.replace(/\${([^{}]*)}/g,(t,r)=>String(e[r]??t)),t.ellipsis=(t,e)=>t.length>e?`${t.slice(0,e)}...`:t,t.appendPostposition=(t,{vowel:e,consonant:r})=>`${t}${i.U.lastConsonantLetter(t)?r:e}`}(n||(n={}))},9284:(t,e,r)=>{var n;r.d(e,{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a={};o.d(a,{r:()=>s});var s,u=o(3056);!function(t){let e,r;t.bindExpression=(t,e)=>(t??"").replace(/\$\{([\s\S.]*?)\}/g,(t,r)=>{const[n,i]=r.split(":"),o=e[n];return o?"function"==typeof o?o(e[i]):o:""}),function(t){t.isExpression=t=>/[$#]\{([\s\S.]*?)\}[$#]/g.test(t??""),t.expressionGroups=t=>u.$.regexExec(/[$#]\{([\s\S.]*?)\}[$#]/g,t??"")}(e=t.Group||(t.Group={})),function(t){t.pathNameData=(t,e)=>{const r=t.split("/"),n=e.split("/");if(r.length!==n.length)return;const i={};for(let t=0;t<n.length;t++){const e=n[t],o=r[t],a=/^\{(.+)\}$/g.exec(e);if(!a){if(e!==o)return;continue}const[s,u]=a[1].split(":");if(u&&!new RegExp(u).test(o))return;i[s]=o}return i}}(r=t.Path||(t.Path={}))}(s||(s={}));const c=a.r},742:(t,e,r)=>{r.d(e,{wB:()=>a}),r(6404),r(5053);var n,i,o={d:(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};o.d({},{U:()=>n}),function(t){t.isArrowFunction=t=>"function"==typeof t&&void 0===t.prototype&&!t.toString().startsWith("class"),t.isPlainObject=t=>null!==t&&"object"==typeof t&&t.constructor===Object,t.isFrozen=t=>Object.isFrozen(t),t.isSealed=t=>Object.isSealed(t),t.isFrozenOrSealed=e=>t.isFrozen(e)||t.isSealed(e),t.isFrozenAndSealed=e=>t.isFrozen(e)&&t.isSealed(e),t.isNotFrozen=t=>!Object.isFrozen(t),t.isNotSealed=t=>!Object.isSealed(t),t.isNotFrozenOrSealed=e=>!t.isFrozen(e)&&!t.isSealed(e),t.isNotFrozenAndSealed=e=>!t.isFrozen(e)||!t.isSealed(e),t.isNullOrUndefined=t=>null==t||void 0===t,t.isConstructor=t=>"function"==typeof t&&void 0!==t.prototype&&t.prototype.constructor===t,t.isFunction=e=>"function"==typeof e&&!t.isConstructor(e),t.isNullish=e=>t.isNotNullish(e),t.isNotNullish=e=>Array.isArray(e)||t.isString(e)?e.length>0:e instanceof Set||e instanceof Map?e.size>0:"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e,t.isNotNullUndefined=t=>null!=t,t.isNull=t=>null===t,t.isUndefined=t=>void 0===t,t.isArray=e=>!t.isNullOrUndefined(e)&&"[object Array]"===Object.prototype.toString.call(e).trim(),t.isStringNumber=t=>"number"==typeof t?!isNaN(t):"string"==typeof t&&""!==t.trim()&&!isNaN(Number(t)),t.isNumber=e=>!t.isNullOrUndefined(e)&&"[object Number]"===Object.prototype.toString.call(e).trim(),t.isIterator=t=>null!=t&&"function"==typeof t[Symbol.iterator],t.isString=e=>!t.isNullOrUndefined(e)&&"[object String]"===Object.prototype.toString.call(e).trim(),t.isObject=e=>!t.isNullOrUndefined(e)&&"[object Object]"===Object.prototype.toString.call(e).trim(),t.isMap=e=>!t.isNullOrUndefined(e)&&"[object Map]"===Object.prototype.toString.call(e).trim(),t.isEmpty=e=>!!t.isNullOrUndefined(e)||(t.isArray(e)?0===e.length:t.isString(e)?0===e.trim().length:t.isMap(e)?0===e.size:!!t.isObject(e)&&0===Object.keys(e).length),t.isSet=t=>t instanceof Set,t.isNullishFiltered=t=>Array.isArray(t)?t.every(t=>null!=t):null!=t,t.isFalsyFiltered=t=>Array.isArray(t)?t.every(t=>t):!!t,t.includeValue=(t,e)=>Object.values(t).includes(e),t.includeKey=(t,e)=>Object.keys(t).includes(e),t.lastConsonantLetter=t=>(t.charCodeAt(t.length-1)-44032)%28>0,t.inRange=(t,e,r)=>e<=t&&t<=r,t.isBase64=t=>{let e=t;const r=t.split(";base64,");if(r.length>1)e=r[1];else if(t.startsWith("data:")){const r=t.indexOf(",");r>-1&&(e=t.substring(r+1))}return""===e||e.length,/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}}(n||(n={})),function(t){t.Singleton="Singleton",t.Transient="Transient"}(i||(i={})),new Map,new Set;const a=Symbol("Sim");Symbol("PostConstruct")},970:(t,e,r)=>{r.d(e,{cI:()=>o});var n=r(5053);const i=Symbol("Router"),o=t=>{null!=t&&"object"==typeof t&&(t=t.constructor);try{return n.d.getMetadata(i,t)}catch(t){}};Symbol("RouteMetadataKey")},3966:(t,e,r)=>{r.d(e,{W:()=>n});class n{constructor(t,e,r){this.message=t,this.name=e,this.stack=r}}},5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(A(n)&&!P(r=n.call(t)))return r;if(A(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function T(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function E(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!T(t))throw new TypeError;if(!E(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!E(n))throw new TypeError;e=n}}return e}(t,e)}if(!T(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d},5846:(t,e,r)=>{r.d(e,{A:()=>o});var n=r(5053);const i=Symbol("Injection"),o=(t,e)=>n.d.getMetadata(i,t,e)},6404:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e="string",r=N(t,i);if(void 0!==r){var n=r.call(t,e);if(P(n))throw new TypeError;return n}return function(t){var e,r,n=t.toString;if(A(n)&&!P(r=n.call(t)))return r;if(A(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function T(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function E(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!T(t))throw new TypeError;if(!E(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!E(n))throw new TypeError;e=n}}return e}(t,e)}if(!T(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))},9212:(t,e,r)=>{r.d(e,{J:()=>o});var n=r(742),i=r(5053);class o{constructor(t,e,r){this.type=t,this.simstanceManager=e,this.config=r,this.value=t.value}getConfig(t=n.wB){return i.d.getMetadata(t,this.type.originalType)}getConfigs(){return i.d.getMetadatas(this.type.originalType)}getValue(t){return t?.refresh&&(this.value=void 0),this.value||(this.value=this.simstanceManager.getOrNewSim({target:this.type.targetKeyType,originTypeTarget:this.type.originalType,newInstanceCarrier:t?.newInstanceCarrier})),this.value}}}},J={};function Y(t){var e=J[t];if(void 0!==e)return e.exports;var r=J[t]={exports:{}};return X[t](r,r.exports,Y),r.exports}Y.d=(t,e)=>{for(var r in e)Y.o(e,r)&&!Y.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},Y.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var G={};Y.d(G,{i:()=>nt});var Z=Y(9212),Q=Y(5846),tt=Y(420),et=Y(970),rt=Y(532);class nt{get path(){return this._path}set path(t){this._path=t}get data(){return this._data}set data(t){this._data=t}get intent(){return this._intent}set intent(t){this._intent=t}get propertyKeys(){return this._propertyKeys}set propertyKeys(t){this._propertyKeys=t}get pathData(){return this._pathData}set pathData(t){this._pathData=t}constructor(t,e,r,n=[]){this.simstanceManager=t,this.router=e,this.module=r,this.routerChains=n}getRouterPath(t=""){return this.getRouterPaths().map(t=>t??"").join(t)}getRouterPaths(){return this.routerChains.map(t=>(0,et.cI)(t instanceof Z.J?t.type.targetKeyType:t)?.path)}getRouterPathData(t){return rt.r.Path.pathNameData(t,this.getRouterPath())}getModuleInstance(t,e=!0){const r=this.simstanceManager.getOrNewSim({target:this.module?.targetKeyType,originTypeTarget:this.module?.originalType});if(t&&this.propertyKeys&&this.propertyKeys.includes(t)){let n=r[t];return e&&"boolean"==typeof e?n=n.bind(r):e&&"object"==typeof e&&(n=n.bind(e)),n}return r}executeModuleProperty(t,...e){const r=this.getModuleInstance();if(t){if((0,Q.A)(r,t)){const n=new Map;return e.forEach(t=>n.set(t.constructor,t)),this.simstanceManager.executeBindParameterSim({target:r,targetKey:t},n)}if(r[t])return r[t]?.(...e);throw new tt.e(`${t.toString()} noSuch`,t.toString(),t)}}get firstRouteChain(){return this.routerChains[0]}get firstRouteChainValue(){return this.firstRouteChain.getValue()}get lastRouteChain(){return this.routerChains[this.routerChains.length-1]}get lastRouteChainValue(){return this.lastRouteChain.getValue()}hasActivateInLastRoute(t){return!0===this.lastRouteChainValue?.hasActivate(t)}get queryParams(){if(this.intent)return this.intent.queryParams}get queryParamsAfterDecodeURI(){if(this.intent)return this.intent.queryParamsAfterDecodeURI}}const it=G.i;var ot=r(2188),at={5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(A(n)&&!P(r=n.call(t)))return r;if(A(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function T(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function E(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!T(t))throw new TypeError;if(!E(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!E(n))throw new TypeError;e=n}}return e}(t,e)}if(!T(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d}},st={};function ut(t){var e=st[t];if(void 0!==e)return e.exports;var r=st[t]={exports:{}};return at[t](r,r.exports,ut),r.exports}ut.d=(t,e)=>{for(var r in e)ut.o(e,r)&&!ut.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},ut.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var ct={};ut.d(ct,{BR:()=>_t,Hl:()=>lt,Lu:()=>mt,OH:()=>dt,QL:()=>vt,aK:()=>wt,by:()=>gt,nv:()=>yt,q7:()=>Ot,xh:()=>bt});var ft=ut(5053);const ht=Symbol("ValidMetadataKey"),lt=(t,e,r)=>{if(e&&"object"==typeof t){t=t.constructor;const n=Reflect.getOwnMetadata(ht,t,e)||[];n.push(r),Reflect.defineMetadata(ht,n,t,e)}else if(!e||"function"==typeof t){const e=Reflect.getOwnMetadata(ht,t)||[];e.push(r),Reflect.defineMetadata(ht,e,t)}},yt=(t,e)=>(null!=t&&"object"==typeof t&&(t=t.constructor),e?Reflect.getOwnMetadata(ht,t,e)??[]:ft.d.getMetadata(ht,t)??[]),pt=Symbol("ValidationMetadataKey"),dt=t=>(e,r)=>{const n=ft.d.getMetadata(pt,e.constructor)??[];n.push({propertyKey:r,validator:t}),ft.d.defineMetadata(pt,n,e.constructor),ft.d.defineMetadata(pt,t,e,r)},gt=(t,e)=>ft.d.getMetadata(pt,t,e),vt=t=>(null!=t&&"object"==typeof t&&(t=t.constructor),ft.d.getMetadata(pt,t)??[]),wt=t=>(e,...r)=>t.test(e),bt=(t,...e)=>null!==t,mt=(t,...e)=>null!=t&&("string"==typeof t&&t.length>0||Array.isArray(t)&&t.length>0),Ot=t=>_t(t).filter(t=>!t.valid),_t=t=>{const e=vt(t),r=[];return e.forEach(t=>{r.push({name:t.propertyKey,valid:t.validator(t.propertyKey,t),message:""})}),r},Mt=ct.q7,xt=ct.nv;var St={d:(t,e)=>{for(var r in e)St.o(e,r)&&!St.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},kt={};St.d(kt,{E:()=>Pt});class Pt{constructor(t){this.result=t}toString(){return this.result?JSON.stringify(this.result):"undefined"}get message(){return this.toString()}}const jt=kt.E;var Rt=r(758),Tt={5053:(t,e,r)=>{r.d(e,{d:()=>u});var n={9771:()=>{var t;!function(t){!function(){var e="object"==typeof globalThis?globalThis:"object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:function(){try{return Function("return this;")()}catch(t){}}()||function(){try{return(0,eval)("(function() { return this; })()")}catch(t){}}(),r=n(t);function n(t,e){return function(r,n){Object.defineProperty(t,r,{configurable:!0,writable:!0,value:n}),e&&e(r,n)}}void 0!==e.Reflect&&(r=n(e.Reflect,r)),function(t,e){var r=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,i=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,c={create:a?function(){return K(Object.create(null))}:s?function(){return K({__proto__:null})}:function(){return K({})},has:u?function(t,e){return r.call(t,e)}:function(t,e){return e in t},get:u?function(t,e){return r.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},f=Object.getPrototypeOf(Function),h="function"==typeof Map&&"function"==typeof Map.prototype.entries?Map:function(){var t={},e=[],r=function(){function t(t,e,r){this._index=0,this._keys=t,this._values=e,this._selector=r}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t<this._keys.length){var r=this._selector(this._keys[t],this._values[t]);return t+1>=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:r,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var r=this._find(t,!0);return this._values[r]=e,this},e.prototype.delete=function(e){var r=this._find(e,!1);if(r>=0){for(var n=this._keys.length,i=r+1;i<n;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,z(e,this._cacheKey)&&(this._cacheKey=t,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=t,this._cacheIndex=-2},e.prototype.keys=function(){return new r(this._keys,this._values,n)},e.prototype.values=function(){return new r(this._keys,this._values,i)},e.prototype.entries=function(){return new r(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[o]=function(){return this.entries()},e.prototype._find=function(t,e){if(!z(this._cacheKey,t)){this._cacheIndex=-1;for(var r=0;r<this._keys.length;r++)if(z(this._keys[r],t)){this._cacheIndex=r;break}}return this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e}();function n(t,e){return t}function i(t,e){return e}function a(t,e){return[t,e]}}(),l="function"==typeof Set&&"function"==typeof Set.prototype.entries?Set:function(){function t(){this._map=new h}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.keys()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[o]=function(){return this.keys()},t}(),y="function"==typeof WeakMap?WeakMap:function(){var t=c.create(),e=n();return function(){function t(){this._key=n()}return t.prototype.has=function(t){var e=i(t,!1);return void 0!==e&&c.has(e,this._key)},t.prototype.get=function(t){var e=i(t,!1);return void 0!==e?c.get(e,this._key):void 0},t.prototype.set=function(t,e){return i(t,!0)[this._key]=e,this},t.prototype.delete=function(t){var e=i(t,!1);return void 0!==e&&delete e[this._key]},t.prototype.clear=function(){this._key=n()},t}();function n(){var e;do{e="@@WeakMap@@"+a()}while(c.has(t,e));return t[e]=!0,e}function i(t,n){if(!r.call(t,e)){if(!n)return;Object.defineProperty(t,e,{value:c.create()})}return t[e]}function o(t,e){for(var r=0;r<e;++r)t[r]=255*Math.random()|0;return t}function a(){var t=function(){if("function"==typeof Uint8Array){var t=new Uint8Array(16);return"undefined"!=typeof crypto?crypto.getRandomValues(t):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(t):o(t,16),t}return o(new Array(16),16)}();t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var e="",r=0;r<16;++r){var n=t[r];4!==r&&6!==r&&8!==r||(e+="-"),n<16&&(e+="0"),e+=n.toString(16).toLowerCase()}return e}}(),p=n?Symbol.for("@reflect-metadata:registry"):void 0,d=function(){var t;return!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&(t=e.Reflect[p]),S(t)&&(t=function(){var t,r,n,i;S(p)||void 0===e.Reflect||p in e.Reflect||"function"!=typeof e.Reflect.defineMetadata||(t=function(t){var e=t.defineMetadata,r=t.hasOwnMetadata,n=t.getOwnMetadata,i=t.getOwnMetadataKeys,o=t.deleteMetadata,a=new y;return{isProviderFor:function(t,e){var r=a.get(t);return!(S(r)||!r.has(e))||!!i(t,e).length&&(S(r)&&(r=new l,a.set(t,r)),r.add(e),!0)},OrdinaryDefineOwnMetadata:e,OrdinaryHasOwnMetadata:r,OrdinaryGetOwnMetadata:n,OrdinaryOwnMetadataKeys:i,OrdinaryDeleteMetadata:o}}(e.Reflect));var o=new y,a={registerProvider:function(e){if(!Object.isExtensible(a))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case t===e:break;case S(r):r=e;break;case r===e:break;case S(n):n=e;break;case n===e:break;default:void 0===i&&(i=new l),i.add(e)}},getProvider:u,setProvider:function(t,e,r){if(!c(r))throw new Error("Metadata provider not registered.");var n=u(t,e);if(n!==r){if(!S(n))return!1;var i=o.get(t);S(i)&&(i=new h,o.set(t,i)),i.set(e,r)}return!0}};return a;function s(e,o){if(!S(r)){if(r.isProviderFor(e,o))return r;if(!S(n)){if(n.isProviderFor(e,o))return r;if(!S(i))for(var a=C(i);;){var s=B(a);if(!s)return;var u=F(s);if(u.isProviderFor(e,o))return L(a),u}}}if(!S(t)&&t.isProviderFor(e,o))return t}function u(t,e){var r,n=o.get(t);return S(n)||(r=n.get(e)),S(r)?(S(r=s(t,e))||(S(n)&&(n=new h,o.set(t,n)),n.set(e,r)),r):r}function c(t){if(S(t))throw new TypeError;return r===t||n===t||!S(i)&&i.has(t)}}()),!S(p)&&P(e.Reflect)&&Object.isExtensible(e.Reflect)&&Object.defineProperty(e.Reflect,p,{enumerable:!1,configurable:!1,writable:!1,value:t}),t}(),g=function(t){var e=new y,r={isProviderFor:function(t,r){var n=e.get(t);return!S(n)&&n.has(r)},OrdinaryDefineOwnMetadata:function(t,e,r,i){n(r,i,!0).set(t,e)},OrdinaryHasOwnMetadata:function(t,e,r){var i=n(e,r,!1);return!S(i)&&j(i.has(t))},OrdinaryGetOwnMetadata:function(t,e,r){var i=n(e,r,!1);if(!S(i))return i.get(t)},OrdinaryOwnMetadataKeys:function(t,e){var r=[],i=n(t,e,!1);if(S(i))return r;for(var o=C(i.keys()),a=0;;){var s=B(o);if(!s)return r.length=a,r;var u=F(s);try{r[a]=u}catch(t){try{L(o)}finally{throw t}}a++}},OrdinaryDeleteMetadata:function(t,r,i){var o=n(r,i,!1);if(S(o))return!1;if(!o.delete(t))return!1;if(0===o.size){var a=e.get(r);S(a)||(a.delete(i),0===a.size&&e.delete(a))}return!0}};return d.registerProvider(r),r;function n(n,i,o){var a=e.get(n),s=!1;if(S(a)){if(!o)return;a=new h,e.set(n,a),s=!0}var u=a.get(i);if(S(u)){if(!o)return;if(u=new h,a.set(i,u),!t.setProvider(n,i,r))throw a.delete(i),s&&e.delete(n),new Error("Wrong provider for target.")}return u}}(d);function v(t,e,r){if(w(t,e,r))return!0;var n=I(e);return!k(n)&&v(t,n,r)}function w(t,e,r){var n=U(e,r,!1);return!S(n)&&j(n.OrdinaryHasOwnMetadata(t,e,r))}function b(t,e,r){if(w(t,e,r))return m(t,e,r);var n=I(e);return k(n)?void 0:b(t,n,r)}function m(t,e,r){var n=U(e,r,!1);if(!S(n))return n.OrdinaryGetOwnMetadata(t,e,r)}function O(t,e,r,n){U(r,n,!0).OrdinaryDefineOwnMetadata(t,e,r,n)}function _(t,e){var r=M(t,e),n=I(t);if(null===n)return r;var i=_(n,e);if(i.length<=0)return r;if(r.length<=0)return i;for(var o=new l,a=[],s=0,u=r;s<u.length;s++){var c=u[s];o.has(c)||(o.add(c),a.push(c))}for(var f=0,h=i;f<h.length;f++)c=h[f],o.has(c)||(o.add(c),a.push(c));return a}function M(t,e){var r=U(t,e,!1);return r?r.OrdinaryOwnMetadataKeys(t,e):[]}function x(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function S(t){return void 0===t}function k(t){return null===t}function P(t){return"object"==typeof t?null!==t:"function"==typeof t}function j(t){return!!t}function R(t){var e=function(t){switch(x(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=N(t,i);if(void 0!==e){var r=e.call(t,"string");if(P(r))throw new TypeError;return r}return function(t){var e,r,n=t.toString;if(A(n)&&!P(r=n.call(t)))return r;if(A(e=t.valueOf)&&!P(r=e.call(t)))return r;throw new TypeError}(t)}(t);return"symbol"==typeof e?e:function(t){return""+t}(e)}function T(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function A(t){return"function"==typeof t}function E(t){return"function"==typeof t}function z(t,e){return t===e||t!=t&&e!=e}function N(t,e){var r=t[e];if(null!=r){if(!A(r))throw new TypeError;return r}}function C(t){var e=N(t,o);if(!A(e))throw new TypeError;var r=e.call(t);if(!P(r))throw new TypeError;return r}function F(t){return t.value}function B(t){var e=t.next();return!e.done&&e}function L(t){var e=t.return;e&&e.call(t)}function I(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===f)return e;if(e!==f)return e;var r=t.prototype,n=r&&Object.getPrototypeOf(r);if(null==n||n===Object.prototype)return e;var i=n.constructor;return"function"!=typeof i||i===t?e:i}function U(t,e,r){var n=d.getProvider(t,e);if(!S(n))return n;if(r){if(d.setProvider(t,e,g))return g;throw new Error("Illegal state.")}}function K(t){return t.__=void 0,delete t.__,t}t("decorate",function(t,e,r,n){if(S(r)){if(!T(t))throw new TypeError;if(!E(e))throw new TypeError;return function(t,e){for(var r=t.length-1;r>=0;--r){var n=(0,t[r])(e);if(!S(n)&&!k(n)){if(!E(n))throw new TypeError;e=n}}return e}(t,e)}if(!T(t))throw new TypeError;if(!P(e))throw new TypeError;if(!P(n)&&!S(n)&&!k(n))throw new TypeError;return k(n)&&(n=void 0),function(t,e,r,n){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,r,n);if(!S(o)&&!k(o)){if(!P(o))throw new TypeError;n=o}}return n}(t,e,r=R(r),n)}),t("metadata",function(t,e){return function(r,n){if(!P(r))throw new TypeError;if(!S(n)&&!function(t){switch(x(t)){case 3:case 4:return!0;default:return!1}}(n))throw new TypeError;O(t,e,r,n)}}),t("defineMetadata",function(t,e,r,n){if(!P(r))throw new TypeError;return S(n)||(n=R(n)),O(t,e,r,n)}),t("hasMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),v(t,e,r)}),t("hasOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),w(t,e,r)}),t("getMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),b(t,e,r)}),t("getOwnMetadata",function(t,e,r){if(!P(e))throw new TypeError;return S(r)||(r=R(r)),m(t,e,r)}),t("getMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),_(t,e)}),t("getOwnMetadataKeys",function(t,e){if(!P(t))throw new TypeError;return S(e)||(e=R(e)),M(t,e)}),t("deleteMetadata",function(t,e,r){if(!P(e))throw new TypeError;if(S(r)||(r=R(r)),!P(e))throw new TypeError;S(r)||(r=R(r));var n=U(e,r,!1);return!S(n)&&n.OrdinaryDeleteMetadata(t,e,r)})}(r,e),void 0===e.Reflect&&(e.Reflect=t)}()}(t||(t={}))}},i={};function o(t){var e=i[t];if(void 0!==e)return e.exports;var r=i[t]={exports:{}};return n[t](r,r.exports,o),r.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var a,s={};o.d(s,{d:()=>a}),o(9771),function(t){t.getParameterTypes=(t,e)=>e?Reflect.getMetadata("design:paramtypes",t,e)||[]:Reflect.getMetadata("design:paramtypes",t)||[],t.getReturnType=(t,e)=>Reflect.getMetadata("design:returntype",t,e),t.getType=(t,e)=>e?Reflect.getMetadata("design:type",t,e):Reflect.getMetadata("design:type",t),t.getMetadata=(t,e,r)=>r?Reflect.getMetadata(t,e,r):Reflect.getMetadata(t,e),t.getMetadataKeys=t=>Reflect.getMetadataKeys(t),t.getOwnMetadata=(t,e,r)=>r?Reflect.getOwnMetadata(t,e,r):Reflect.getOwnMetadata(t,e),t.getMetadatas=e=>t.getMetadataKeys(e).map(r=>t.getMetadata(r,e)),t.metadata=(t,e)=>Reflect.metadata(t,e),t.defineMetadata=(t,e,r,n)=>{n&&Reflect.defineMetadata?Reflect.defineMetadata(t,e,r,n):Reflect.defineMetadata&&Reflect.defineMetadata(t,e,r)}}(a||(a={}));const u=s.d}},At={};function Et(t){var e=At[t];if(void 0!==e)return e.exports;var r=At[t]={exports:{}};return Tt[t](r,r.exports,Et),r.exports}Et.d=(t,e)=>{for(var r in e)Et.o(e,r)&&!Et.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},Et.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var zt={};Et.d(zt,{Ix:()=>Bt,X5:()=>Dt,aM:()=>Kt,cI:()=>Lt,qh:()=>Ut,r3:()=>Ft,sP:()=>Ct,yL:()=>It});var Nt=Et(5053);const Ct=Symbol("Router"),Ft=(t,e)=>{Dt(e)?.forEach(r=>{t.route=t.route??{};const n=Array.isArray(r.config.path)?r.config.path:[r.config.path];for(const i of n)if(t.route[i]){const e=t.route[i];e.propertyKeys.push(r.propertyKey),e.filters=e.filters??[],Array.isArray(r.config.filters)?e.filters.push(...r.config.filters):r.config.filters&&e.filters.push(r.config.filters)}else t.route[i]={target:e,propertyKeys:[r.propertyKey],filters:r.config.filters}}),Nt.d.defineMetadata(Ct,t,e)};function Bt(t){if("function"!=typeof t)return e=>{t.path=t.path??"",Ft(t,e)};Ft({path:""},t)}const Lt=t=>{null!=t&&"object"==typeof t&&(t=t.constructor);try{return Nt.d.getMetadata(Ct,t)}catch(t){}},It=Symbol("RouteMetadataKey"),Ut=t=>(e,r,n)=>{const i=Nt.d.getMetadata(It,e.constructor)??[],o=e[r];i.push({propertyKey:r,method:o,config:t}),Nt.d.defineMetadata(It,i,e.constructor),Nt.d.defineMetadata(It,t,e,r)},Kt=(t,e)=>Nt.d.getMetadata(It,t,e),Dt=t=>(null!=t&&"object"==typeof t&&(t=t.constructor),Nt.d.getMetadata(It,t)),Ht=zt.aM;var qt=r(7016),Wt=r(5118),$t=r(1262),Vt=r(5797);class Xt extends o{constructor(t=new a.HttpServerOption){super(t),this.option=t,this.sessionManager=new $t.SessionManager(this.option)}run(t){const e=super.run(t),r=[...this.option.closeEndPoints??[],...this.option.errorEndPoints??[],...this.option.requestEndPoints??[],...this.option.filters??[]];return Promise.all(r.map(t=>"function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t).map(t=>t.onInit(this))).then(t=>{this.startServer()}),e}startServer(){if(this.option.serverOption&&"key"in this.option.serverOption&&"cert"in this.option.serverOption){this.server=new u.Server(this.option.serverOption);const t=new s.Server;t.on("request",(t,e)=>{e.writeHead(301,{Location:`https://${t.headers.host}${t.url}`}),e.end()}),t.listen(80,this.option.listen.hostname,()=>{console.log("HTTP redirect server running on port 80")})}else this.option.serverOption?this.server=new s.Server(this.option.serverOption):this.server=new s.Server;this.server.on("request",async(t,e)=>{const r=this.option.transactionManagerFactory?await this.option.transactionManagerFactory():void 0;e.on("close",async()=>{if(this.option.closeEndPoints)for(const t of this.option.closeEndPoints)try{const e="function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t,r=e?.endPoint(n,this);r instanceof Promise&&await r}catch(t){}n.resIsDone()||n.resEnd()}),e.on("error",async()=>{if(this.option.errorEndPoints)for(const t of this.option.errorEndPoints)try{const e="function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t,r=e?.endPoint(n,this);r instanceof Promise&&await r}catch(t){}n.resIsDone()||n.resEnd()});const n=new c.RequestResponse(t,e,{sessionManager:this.sessionManager,option:this.option});if(n.resSetHeader(l.HttpHeaders.Server,"simple-boot-http-server"),!n.reqCookieGet(this.option.sessionOption.key)){const t=await this.sessionManager.session();n.resSetHeader(l.HttpHeaders.SetCookie,`${this.option.sessionOption.key}=${t.uuid}; Path=/; HttpOnly`)}const i=new Map;i.set(c.RequestResponse,n),i.set(s.IncomingMessage,t),i.set(s.ServerResponse,e);try{if(r?.try(),this.option.requestEndPoints)for(const t of this.option.requestEndPoints)try{const e="function"==typeof t?this.simstanceManager.getOrNewSim({target:t}):t;e?.endPoint(n,this)}catch(t){}const t={carrier:new Map,filters:[]};for(let e=0;this.option.filters&&e<this.option.filters.length;e++){const r=this.option.filters[e],i="function"==typeof r?this.simstanceManager.getOrNewSim({target:r}):r;let o=!0;if(i?.proceedBefore&&(o=await i.proceedBefore({rr:n,app:this,carrier:t.carrier}),t.filters.push({filter:i,sw:o})),!o)break}if(!n.resIsDone()){const t=await super.routing(n.reqIntent);i.set(it,t);const e=t?.getModuleInstance?.();let o=[];if(t&&e){if(t.propertyKeys){const r=t.propertyKeys?.map(t=>({propertyKey:t,config:(0,f.getUrlMapping)(e,t)}));o.push(...r??[])}else o.push(...(0,f.getUrlMappings)(e).filter(t=>!Ht(e,t.propertyKey))??[]);if(n.reqMethod()?.toUpperCase()===Wt.HttpMethod.OPTIONS.toUpperCase()&&(n.resSetHeader(l.HttpHeaders.Allow,o.map(t=>t.config.method).join(", ")),n.resStatusCode(h.HttpStatus.Ok)),o=o.filter(t=>t&&t.propertyKey&&t.config&&n.reqMethod()?.toUpperCase()===t.config.method.toUpperCase()),o.sort((t,e)=>(e.config?.req?.contentType?.length??0)+(e.config?.req?.accept?.length??0)-((t.config?.req?.contentType?.length??0)+(t.config?.req?.accept?.length??0))),o=o.filter(t=>!t.config?.req?.contentType||!!t.config?.req?.contentType?.find(t=>n.reqHasContentTypeHeader(t))).filter(t=>!t.config?.req?.accept||!!t.config?.req?.accept?.find(t=>n.reqHasAcceptHeader(t))),o[0]){const t=o[0],a=q.d.getParameterTypes(e,t.propertyKey),s=H(e,t.propertyKey),u=xt(e,t.propertyKey);if(s){const t=s.find(t=>t.config?.situationType===f.UrlMappingSituationType.REQ_JSON_BODY),e=s.find(t=>t.config?.situationType===f.UrlMappingSituationType.REQ_FORM_URL_BODY),o=s.find(t=>t.config?.situationType===Vt.InjectSituationType.TransactionManager),a=new D;if(t){let e=await n.reqBodyJsonData();if(t.type&&(e=Object.assign(new t.type,e)),u.includes(t.index)){const t=Mt(e);if((t?.length??0)>0)throw new jt(t)}a.push(new K({situationType:f.UrlMappingSituationType.REQ_JSON_BODY,data:e}))}if(e){let t=await n.reqBodyFormUrlData();if(e.type&&(t=Object.assign(new e.type,t)),u.includes(e.index)){const e=Mt(t);if((e?.length??0)>0)throw new jt(e)}a.push(new K({situationType:f.UrlMappingSituationType.REQ_FORM_URL_BODY,data:t}))}if(o&&o.type&&r&&r.hasTransaction(o.type)){let t=await r.getTransaction(o.type);t&&(t=await t.try(o.config.argument),a.push(new K({situationType:Vt.InjectSituationType.TransactionManager,data:t,index:o.index})))}a.length&&i.set(D,a)}for(const t of a)t===W.ReqFormUrlBody?i.set(W.ReqFormUrlBody,await n.reqBodyReqFormUrlBody()):t===$.ReqJsonBody?i.set($.ReqJsonBody,await n.reqBodyReqJsonBody()):t===qt.URLSearchParams?i.set(qt.URLSearchParams,n.reqUrlSearchParams):t===ot.ReqMultipartFormBody?i.set(ot.ReqMultipartFormBody,n.reqBodyMultipartFormData()):t===V.ReqHeader&&i.set(V.ReqHeader,n.reqHeaderObj);let c=await this.simstanceManager.executeBindParameterSimPromise({target:e,targetKey:t.propertyKey},i);if(t.config?.resolver){const e="function"==typeof t.config.resolver?this.simstanceManager.getOrNewSim({target:t.config.resolver}):t.config.resolver;c=await(e?.resolve?.(c,n))}const p=t.config?.res?.status??h.HttpStatus.Ok,d=t.config?.res?.header??{};t.config?.res?.contentType&&(d[l.HttpHeaders.ContentType]=t.config?.res?.contentType),((t.config?.res?.contentType?.toLowerCase().indexOf(y.Mimes.ApplicationJson.toLowerCase())??-1)>-1||c&&"object"==typeof c)&&(c=JSON.stringify(c)),n.resSetHeaders(d),n.resSetStatusCode(p),n.resWrite(c)}}if(this.option.noSuchRouteEndPointMappingThrow&&o.length<=0&&n.reqMethod()?.toUpperCase()!==Wt.HttpMethod.OPTIONS)throw this.option.noSuchRouteEndPointMappingThrow(n)}for(const e of t.filters.reverse())if(e.filter?.proceedAfter&&!await e.filter.proceedAfter({rr:n,app:this,before:e.sw,carrier:t.carrier}))break}catch(t){r?.catch(t),n.resStatusCode(t instanceof Rt.HttpError?t.status:h.HttpStatus.InternalServerError);const e="function"==typeof this.option.globalAdvice?this.simstanceManager.getOrNewSim(this.option.globalAdvice):this.option.globalAdvice;if(!e)return void n.resEnd();t&&"object"==typeof t&&(i.set(t.constructor,t),i.set(K,new K({situationType:P.ERROR_OBJECT,data:t})));const o=j(e,t);o&&await this.simstanceManager.executeBindParameterSimPromise({target:e,targetKey:o.propertyKey},i)}finally{r?.finally()}n.resIsDone()||n.resEnd()}),this.server.listen(this.option.listen.port,this.option.listen.hostname,this.option.listen.backlog,()=>{this.option.listen.listeningListener?.(this,this.server)})}}})(),module.exports=n})();
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/SimpleBootHttpServer.ts
|
|
20
|
+
var SimpleBootHttpServer_exports = {};
|
|
21
|
+
__export(SimpleBootHttpServer_exports, {
|
|
22
|
+
SimpleBootHttpServer: () => SimpleBootHttpServer
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(SimpleBootHttpServer_exports);
|
|
25
|
+
var import_SimpleApplication = require("@dooboostore/simple-boot/SimpleApplication");
|
|
26
|
+
|
|
27
|
+
// src/option/HttpServerOption.ts
|
|
28
|
+
var import_SimOption = require("@dooboostore/simple-boot/SimOption");
|
|
29
|
+
var HttpServerOption = class _HttpServerOption extends import_SimOption.SimOption {
|
|
30
|
+
static {
|
|
31
|
+
this.DEFAULT_PORT = 8081;
|
|
32
|
+
}
|
|
33
|
+
static {
|
|
34
|
+
this.DEFAULT_HOSTNAME = "127.0.0.1";
|
|
35
|
+
}
|
|
36
|
+
constructor({ serverOption, listen, filters, requestEndPoints, closeEndPoints, errorEndPoints, sessionOption, globalAdvice, fileUploadTempPath, noSuchRouteEndPointMappingThrow, transactionManagerFactory } = {}, initSimOption) {
|
|
37
|
+
super(initSimOption);
|
|
38
|
+
this.serverOption = serverOption;
|
|
39
|
+
this.listen = Object.assign({ port: _HttpServerOption.DEFAULT_PORT, hostname: _HttpServerOption.DEFAULT_HOSTNAME }, listen);
|
|
40
|
+
this.filters = filters;
|
|
41
|
+
this.requestEndPoints = requestEndPoints;
|
|
42
|
+
this.closeEndPoints = closeEndPoints;
|
|
43
|
+
this.errorEndPoints = errorEndPoints;
|
|
44
|
+
this.sessionOption = Object.assign({ key: "SBSESSIONID", expiredTime: 1e3 * 60 * 30 }, sessionOption);
|
|
45
|
+
this.globalAdvice = globalAdvice;
|
|
46
|
+
this.fileUploadTempPath = fileUploadTempPath;
|
|
47
|
+
this.noSuchRouteEndPointMappingThrow = noSuchRouteEndPointMappingThrow;
|
|
48
|
+
this.transactionManagerFactory = transactionManagerFactory;
|
|
49
|
+
}
|
|
50
|
+
get hostname() {
|
|
51
|
+
return this.listen.hostname;
|
|
52
|
+
}
|
|
53
|
+
get port() {
|
|
54
|
+
return this.listen.port;
|
|
55
|
+
}
|
|
56
|
+
get protocol() {
|
|
57
|
+
return this.isSecure ? "https" : "http";
|
|
58
|
+
}
|
|
59
|
+
get address() {
|
|
60
|
+
return `${this.protocol}://${this.hostname}:${this.port}`;
|
|
61
|
+
}
|
|
62
|
+
get isSecure() {
|
|
63
|
+
return this.serverOption && "key" in this.serverOption && "cert" in this.serverOption;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// src/SimpleBootHttpServer.ts
|
|
68
|
+
var import_http = require("http");
|
|
69
|
+
var import_https = require("https");
|
|
70
|
+
|
|
71
|
+
// src/models/RequestResponse.ts
|
|
72
|
+
var import_Intent = require("@dooboostore/simple-boot/intent/Intent");
|
|
73
|
+
var import_url = require("url");
|
|
74
|
+
var import_buffer = require("buffer");
|
|
75
|
+
|
|
76
|
+
// src/models/datas/body/ReqFormUrlBody.ts
|
|
77
|
+
var ReqFormUrlBody = class {
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
// src/models/datas/body/ReqJsonBody.ts
|
|
81
|
+
var ReqJsonBody = class {
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// src/models/datas/ReqHeader.ts
|
|
85
|
+
var ReqHeader = class {
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// src/models/RequestResponse.ts
|
|
89
|
+
var import_node_gzip = require("node-gzip");
|
|
90
|
+
var import_FileUtils = require("@dooboostore/core-node/file/FileUtils");
|
|
91
|
+
var import_ConvertUtils = require("@dooboostore/core/convert/ConvertUtils");
|
|
92
|
+
var import_ConvertUtils2 = require("@dooboostore/core-node/convert/ConvertUtils");
|
|
93
|
+
var RequestResponse = class _RequestResponse {
|
|
94
|
+
// protected sessionManager?: SessionManager;
|
|
95
|
+
// constructor(req: IncomingMessage, res: ServerResponse);
|
|
96
|
+
// constructor(req: RequestResponse);
|
|
97
|
+
// constructor(req: IncomingMessage, res: ServerResponse, sessionManager?: SessionManager);
|
|
98
|
+
// constructor(req: IncomingMessage | RequestResponse, res?: ServerResponse, sessionManager?: SessionManager) {
|
|
99
|
+
// // this.req = req;
|
|
100
|
+
// // this.res = res;
|
|
101
|
+
// if (req instanceof RequestResponse) {
|
|
102
|
+
// this.req = req.req;
|
|
103
|
+
// this.res = req.res;
|
|
104
|
+
// this.sessionManager = req.sessionManager;
|
|
105
|
+
// } else {
|
|
106
|
+
// this.req = req;
|
|
107
|
+
// this.res = res!;
|
|
108
|
+
// this.sessionManager = sessionManager;
|
|
109
|
+
// }
|
|
110
|
+
// }
|
|
111
|
+
constructor(req, res, config) {
|
|
112
|
+
if (req instanceof _RequestResponse) {
|
|
113
|
+
this.req = req.req;
|
|
114
|
+
this.res = req.res;
|
|
115
|
+
this.config = config;
|
|
116
|
+
} else {
|
|
117
|
+
this.req = req;
|
|
118
|
+
this.res = res;
|
|
119
|
+
this.config = config;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
get reqSocket() {
|
|
123
|
+
return this.req.socket;
|
|
124
|
+
}
|
|
125
|
+
get reqCookieMap() {
|
|
126
|
+
let cookies = this.reqHeader("Cookie" /* Cookie */) ?? "";
|
|
127
|
+
if (Array.isArray(cookies)) {
|
|
128
|
+
cookies = cookies.join(";");
|
|
129
|
+
}
|
|
130
|
+
const map = /* @__PURE__ */ new Map();
|
|
131
|
+
cookies.split(";").map((it) => it.trim().split("=")).forEach((it) => {
|
|
132
|
+
map.set(it[0], it[1]);
|
|
133
|
+
});
|
|
134
|
+
return map;
|
|
135
|
+
}
|
|
136
|
+
reqCookieGet(key) {
|
|
137
|
+
return this.reqCookieMap.get(key);
|
|
138
|
+
}
|
|
139
|
+
get reqRemoteAddress() {
|
|
140
|
+
const ipHeader = this.req.headers["x-forwarded-for"];
|
|
141
|
+
let ip = this.req.socket.remoteAddress;
|
|
142
|
+
if (Array.isArray(ipHeader)) {
|
|
143
|
+
ip = ipHeader.join(",").split(",").shift();
|
|
144
|
+
} else if (typeof ipHeader === "string") {
|
|
145
|
+
ip = ipHeader.split(",").shift();
|
|
146
|
+
}
|
|
147
|
+
return ip;
|
|
148
|
+
}
|
|
149
|
+
get reqUrlObject() {
|
|
150
|
+
return new import_url.URL(this.reqUrl, `${this.reqSocket ? "https://" : "http"}${this.reqHost ?? "localhost"}`);
|
|
151
|
+
}
|
|
152
|
+
get reqUrlPathName() {
|
|
153
|
+
return this.reqUrlObj().pathname ?? "";
|
|
154
|
+
}
|
|
155
|
+
get reqUrl() {
|
|
156
|
+
return this.req.url ?? "";
|
|
157
|
+
}
|
|
158
|
+
reqUrlObj(config) {
|
|
159
|
+
return new import_url.URL(`${config?.scheme ?? "http"}://${config?.host ? config?.host : this.reqHeaderFirst("Host" /* Host */) ?? "localhost"}${this.req.url ?? ""}`);
|
|
160
|
+
}
|
|
161
|
+
get reqUrlSearchParamTuples() {
|
|
162
|
+
return Array.from(this.reqUrlObj().searchParams);
|
|
163
|
+
}
|
|
164
|
+
get reqUrlSearchParams() {
|
|
165
|
+
return this.reqUrlObj().searchParams;
|
|
166
|
+
}
|
|
167
|
+
get reqUrlSearchParamsObj() {
|
|
168
|
+
const entries = this.reqUrlObj().searchParams;
|
|
169
|
+
return import_ConvertUtils.ConvertUtils.toObject(entries);
|
|
170
|
+
}
|
|
171
|
+
get reqPathSearchParamUrl() {
|
|
172
|
+
const reqUrlObj = this.reqUrlObj();
|
|
173
|
+
return reqUrlObj.pathname + (reqUrlObj.searchParams.toString() ? "?" + reqUrlObj.searchParams.toString() : "");
|
|
174
|
+
}
|
|
175
|
+
get reqReadable() {
|
|
176
|
+
return this.req.readable;
|
|
177
|
+
}
|
|
178
|
+
get reqIntent() {
|
|
179
|
+
return new import_Intent.Intent(this.reqPathSearchParamUrl);
|
|
180
|
+
}
|
|
181
|
+
reqHasContentTypeHeader(mime) {
|
|
182
|
+
return (this.reqHeaderFirst("Content-Type" /* ContentType */) ?? "").toLowerCase().indexOf(mime.toLocaleLowerCase()) > -1;
|
|
183
|
+
}
|
|
184
|
+
reqHasAcceptHeader(mime) {
|
|
185
|
+
return (this.reqHeaderFirst("Accept" /* Accept */) ?? "").toLowerCase().indexOf(mime.toLocaleLowerCase()) > -1;
|
|
186
|
+
}
|
|
187
|
+
reqBodyData() {
|
|
188
|
+
return new Promise((resolve, reject) => {
|
|
189
|
+
if (this.reqReadable) {
|
|
190
|
+
const data = [];
|
|
191
|
+
this.req.on("data", (chunk) => data.push(chunk));
|
|
192
|
+
this.req.on("error", (err) => reject(err));
|
|
193
|
+
this.req.on("end", () => {
|
|
194
|
+
this.reqBodyChunk = import_buffer.Buffer.concat(data);
|
|
195
|
+
resolve(this.reqBodyChunk);
|
|
196
|
+
});
|
|
197
|
+
} else {
|
|
198
|
+
resolve(this.reqBodyChunk ?? import_buffer.Buffer.alloc(0));
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
resBodyData() {
|
|
203
|
+
return this.resWriteChunk;
|
|
204
|
+
}
|
|
205
|
+
async reqBodyMultipartFormDataObject() {
|
|
206
|
+
const m = await this.reqBodyMultipartFormData();
|
|
207
|
+
const formData = {};
|
|
208
|
+
for (const it of m) {
|
|
209
|
+
if (it.isFile) {
|
|
210
|
+
formData[it.name] = await import_FileUtils.FileUtils.writeFile(it.value, { originalName: it.filename });
|
|
211
|
+
} else {
|
|
212
|
+
const target = formData[it.name];
|
|
213
|
+
if (Array.isArray(target)) {
|
|
214
|
+
target.push(it.value);
|
|
215
|
+
} else if (typeof target === "string") {
|
|
216
|
+
formData[it.name] = [target, it.value];
|
|
217
|
+
} else {
|
|
218
|
+
formData[it.name] = it.value;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
;
|
|
223
|
+
return formData;
|
|
224
|
+
}
|
|
225
|
+
reqBodyMultipartFormData() {
|
|
226
|
+
return new Promise((resolve, reject) => {
|
|
227
|
+
const contentTypeHeader = this.req.headers["content-type"];
|
|
228
|
+
if (!contentTypeHeader || !contentTypeHeader.startsWith("multipart/form-data")) {
|
|
229
|
+
return reject(new Error("Invalid Content-Type. Expected multipart/form-data."));
|
|
230
|
+
}
|
|
231
|
+
const boundaryMatch = contentTypeHeader.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
|
|
232
|
+
if (!boundaryMatch) {
|
|
233
|
+
return reject(new Error("Boundary not found in Content-Type header."));
|
|
234
|
+
}
|
|
235
|
+
const boundary = boundaryMatch[1] || boundaryMatch[2];
|
|
236
|
+
if (!boundary) {
|
|
237
|
+
return reject(new Error("Failed to extract boundary."));
|
|
238
|
+
}
|
|
239
|
+
const boundaryBuffer = import_buffer.Buffer.from(`--${boundary}`);
|
|
240
|
+
const crlfBuffer = import_buffer.Buffer.from("\r\n");
|
|
241
|
+
const doubleCrlfBuffer = import_buffer.Buffer.from("\r\n\r\n");
|
|
242
|
+
const chunks = [];
|
|
243
|
+
let totalLength = 0;
|
|
244
|
+
this.req.on("data", (chunk) => {
|
|
245
|
+
chunks.push(chunk);
|
|
246
|
+
totalLength += chunk.length;
|
|
247
|
+
});
|
|
248
|
+
this.req.on("error", (err) => {
|
|
249
|
+
reject(err);
|
|
250
|
+
});
|
|
251
|
+
this.req.on("end", () => {
|
|
252
|
+
if (totalLength === 0) {
|
|
253
|
+
return resolve([]);
|
|
254
|
+
}
|
|
255
|
+
const fullBuffer = import_buffer.Buffer.concat(chunks, totalLength);
|
|
256
|
+
const parsedParts = [];
|
|
257
|
+
let currentPosition = 0;
|
|
258
|
+
let boundaryStartIndex = fullBuffer.indexOf(boundaryBuffer, currentPosition);
|
|
259
|
+
if (boundaryStartIndex === -1) {
|
|
260
|
+
return reject(new Error("Initial boundary not found."));
|
|
261
|
+
}
|
|
262
|
+
currentPosition = boundaryStartIndex + boundaryBuffer.length;
|
|
263
|
+
if (fullBuffer.slice(currentPosition, currentPosition + crlfBuffer.length).equals(crlfBuffer)) {
|
|
264
|
+
currentPosition += crlfBuffer.length;
|
|
265
|
+
}
|
|
266
|
+
while (currentPosition < fullBuffer.length) {
|
|
267
|
+
const nextBoundaryIndex = fullBuffer.indexOf(boundaryBuffer, currentPosition);
|
|
268
|
+
if (nextBoundaryIndex === -1) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
let partEndIndex = nextBoundaryIndex;
|
|
272
|
+
if (partEndIndex > crlfBuffer.length && fullBuffer.slice(partEndIndex - crlfBuffer.length, partEndIndex).equals(crlfBuffer)) {
|
|
273
|
+
partEndIndex -= crlfBuffer.length;
|
|
274
|
+
}
|
|
275
|
+
const partBuffer = fullBuffer.slice(currentPosition, partEndIndex);
|
|
276
|
+
const headerBodySeparatorIndex = partBuffer.indexOf(doubleCrlfBuffer);
|
|
277
|
+
if (headerBodySeparatorIndex === -1) {
|
|
278
|
+
console.warn("Skipping malformed part: no header/body separator found.");
|
|
279
|
+
currentPosition = nextBoundaryIndex + boundaryBuffer.length;
|
|
280
|
+
if (fullBuffer.slice(currentPosition, currentPosition + crlfBuffer.length).equals(crlfBuffer)) {
|
|
281
|
+
currentPosition += crlfBuffer.length;
|
|
282
|
+
}
|
|
283
|
+
if (fullBuffer.slice(currentPosition, currentPosition + 2).toString() === "--") break;
|
|
284
|
+
continue;
|
|
285
|
+
}
|
|
286
|
+
const headerBuffer = partBuffer.slice(0, headerBodySeparatorIndex);
|
|
287
|
+
const bodyBuffer = partBuffer.slice(headerBodySeparatorIndex + doubleCrlfBuffer.length);
|
|
288
|
+
const headersStr = headerBuffer.toString("utf-8");
|
|
289
|
+
const headers = {};
|
|
290
|
+
headersStr.split("\r\n").forEach((line) => {
|
|
291
|
+
const colonIndex = line.indexOf(":");
|
|
292
|
+
if (colonIndex > 0) {
|
|
293
|
+
const key = line.substring(0, colonIndex).trim().toLowerCase();
|
|
294
|
+
const value = line.substring(colonIndex + 1).trim();
|
|
295
|
+
headers[key] = value;
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
const contentDisposition = headers["content-disposition"];
|
|
299
|
+
if (!contentDisposition) {
|
|
300
|
+
console.warn("Skipping part: no Content-Disposition header.");
|
|
301
|
+
currentPosition = nextBoundaryIndex + boundaryBuffer.length;
|
|
302
|
+
if (fullBuffer.slice(currentPosition, currentPosition + crlfBuffer.length).equals(crlfBuffer)) {
|
|
303
|
+
currentPosition += crlfBuffer.length;
|
|
304
|
+
}
|
|
305
|
+
if (fullBuffer.slice(currentPosition, currentPosition + 2).toString() === "--") break;
|
|
306
|
+
continue;
|
|
307
|
+
}
|
|
308
|
+
const nameMatch = contentDisposition.match(/name="([^"]+)"/i);
|
|
309
|
+
const filenameMatch = contentDisposition.match(/filename="([^"]+)"/i);
|
|
310
|
+
const name = nameMatch ? nameMatch[1] : null;
|
|
311
|
+
const filename = filenameMatch ? filenameMatch[1] : null;
|
|
312
|
+
const contentType = headers["content-type"] || null;
|
|
313
|
+
if (name) {
|
|
314
|
+
const isFile = !!filename;
|
|
315
|
+
const multipartData = {
|
|
316
|
+
name,
|
|
317
|
+
isFile,
|
|
318
|
+
// filename이 있으면 파일로 간주
|
|
319
|
+
filename,
|
|
320
|
+
contentType,
|
|
321
|
+
value: isFile ? bodyBuffer : bodyBuffer.toString("utf-8")
|
|
322
|
+
};
|
|
323
|
+
parsedParts.push(multipartData);
|
|
324
|
+
} else {
|
|
325
|
+
console.warn("Skipping part: 'name' not found in Content-Disposition.");
|
|
326
|
+
}
|
|
327
|
+
currentPosition = nextBoundaryIndex + boundaryBuffer.length;
|
|
328
|
+
if (fullBuffer.slice(currentPosition, currentPosition + crlfBuffer.length).equals(crlfBuffer)) {
|
|
329
|
+
currentPosition += crlfBuffer.length;
|
|
330
|
+
}
|
|
331
|
+
if (fullBuffer.slice(currentPosition, currentPosition + 2).toString() === "--") {
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
resolve(parsedParts);
|
|
336
|
+
});
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
async reqBodyStringData() {
|
|
340
|
+
const data = (await this.reqBodyData()).toString();
|
|
341
|
+
return data;
|
|
342
|
+
}
|
|
343
|
+
async reqBodyJsonData() {
|
|
344
|
+
return JSON.parse(await this.reqBodyStringData());
|
|
345
|
+
}
|
|
346
|
+
async reqBodyFormUrlData() {
|
|
347
|
+
const data = await this.reqBodyStringData();
|
|
348
|
+
const formData = {};
|
|
349
|
+
Array.from(new import_url.URLSearchParams(data).entries()).forEach(([k, v]) => {
|
|
350
|
+
const target = formData[k];
|
|
351
|
+
if (Array.isArray(target)) {
|
|
352
|
+
target.push(v);
|
|
353
|
+
} else if (typeof target === "string") {
|
|
354
|
+
formData[k] = [target, v];
|
|
355
|
+
} else {
|
|
356
|
+
formData[k] = v;
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
return formData;
|
|
360
|
+
}
|
|
361
|
+
async reqBodyReqFormUrlBody() {
|
|
362
|
+
const data = await this.reqBodyFormUrlData();
|
|
363
|
+
return Object.assign(new ReqFormUrlBody(), data);
|
|
364
|
+
}
|
|
365
|
+
async reqBodyReqJsonBody() {
|
|
366
|
+
const data = await this.reqBodyStringData();
|
|
367
|
+
return Object.assign(new ReqJsonBody(), data ? JSON.parse(data) : {});
|
|
368
|
+
}
|
|
369
|
+
// reqBodyReqMultipartFormBody(): Promise<ReqMultipartFormBody> {
|
|
370
|
+
// return this.reqBodyMultipartFormData().then(it => new ReqMultipartFormBody(it))
|
|
371
|
+
// }
|
|
372
|
+
resBodyJsonData() {
|
|
373
|
+
const data = import_ConvertUtils2.ConvertUtils.toString(this.resBodyData());
|
|
374
|
+
return data ? JSON.parse(data) : null;
|
|
375
|
+
}
|
|
376
|
+
resBodyStringData() {
|
|
377
|
+
return import_ConvertUtils2.ConvertUtils.toString(this.resBodyData());
|
|
378
|
+
}
|
|
379
|
+
reqMethod() {
|
|
380
|
+
return this.req.method?.toUpperCase();
|
|
381
|
+
}
|
|
382
|
+
reqHeader(key) {
|
|
383
|
+
return this.req.headers[key.toLowerCase()];
|
|
384
|
+
}
|
|
385
|
+
get reqHost() {
|
|
386
|
+
return this.reqHeaderFirst("Host" /* Host */);
|
|
387
|
+
}
|
|
388
|
+
get reqHeaderObj() {
|
|
389
|
+
const h = new ReqHeader();
|
|
390
|
+
Object.entries(this.req.headers).forEach(([k, v]) => {
|
|
391
|
+
h[k] = v;
|
|
392
|
+
});
|
|
393
|
+
return h;
|
|
394
|
+
}
|
|
395
|
+
reqHeaderFirst(key, defaultValue) {
|
|
396
|
+
const header = this.req.headers[key.toLowerCase()];
|
|
397
|
+
if (header && Array.isArray(header)) {
|
|
398
|
+
return header[0] ?? defaultValue;
|
|
399
|
+
} else {
|
|
400
|
+
return header ?? defaultValue;
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
reqAuthorizationHeader() {
|
|
404
|
+
return this.reqHeaderFirst("Authorization" /* Authorization */);
|
|
405
|
+
}
|
|
406
|
+
reqRefreshTokenHeader() {
|
|
407
|
+
return this.reqHeaderFirst("Authorization" /* Authorization */);
|
|
408
|
+
}
|
|
409
|
+
// eslint-disable-next-line no-dupe-class-members
|
|
410
|
+
resStatusCode(code) {
|
|
411
|
+
if (code) {
|
|
412
|
+
this.res.statusCode = code;
|
|
413
|
+
return new RequestResponseChain(this.req, this.res, this.config, this.res.statusCode);
|
|
414
|
+
} else {
|
|
415
|
+
return this.res.statusCode;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
resHeader(key) {
|
|
419
|
+
return this.res.getHeader(key.toLowerCase());
|
|
420
|
+
}
|
|
421
|
+
resHeaderFirst(key, defaultValue) {
|
|
422
|
+
const header = this.res.getHeader(key.toLowerCase());
|
|
423
|
+
if (header && Array.isArray(header)) {
|
|
424
|
+
return header[0] ?? defaultValue;
|
|
425
|
+
} else {
|
|
426
|
+
return header ?? defaultValue;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
async reqSession() {
|
|
430
|
+
if (this.config.sessionManager) {
|
|
431
|
+
return (await this.config.sessionManager.session(this)).dataSet.data;
|
|
432
|
+
} else {
|
|
433
|
+
return Promise.reject(new Error("Not SessionManager"));
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
reqSessionSet(key, value) {
|
|
437
|
+
this.reqSession[key] = value;
|
|
438
|
+
}
|
|
439
|
+
reqSessionGet(key) {
|
|
440
|
+
const session = this.reqSession;
|
|
441
|
+
if (session) {
|
|
442
|
+
return session[key];
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
resSetStatusCode(statusCode) {
|
|
446
|
+
this.res.statusCode = statusCode;
|
|
447
|
+
return this.createRequestResponseChain(this.res.statusCode);
|
|
448
|
+
}
|
|
449
|
+
// resEnd() {
|
|
450
|
+
// this.res.end();
|
|
451
|
+
// }
|
|
452
|
+
// eslint-disable-next-line no-undef
|
|
453
|
+
resWrite(chunk, encoding = "utf8") {
|
|
454
|
+
this.resWriteChunk = chunk;
|
|
455
|
+
return this.createRequestResponseChain(this.resWriteChunk);
|
|
456
|
+
}
|
|
457
|
+
// eslint-disable-next-line no-undef
|
|
458
|
+
resWriteJson(chunk, encoding = "utf8") {
|
|
459
|
+
return this.resWrite(JSON.stringify(chunk), encoding);
|
|
460
|
+
}
|
|
461
|
+
resSetHeader(key, value) {
|
|
462
|
+
return this.createRequestResponseChain(this.res.setHeader(key.toLowerCase(), value));
|
|
463
|
+
}
|
|
464
|
+
resAddHeader(key, value) {
|
|
465
|
+
const existingValue = this.res.getHeader(key.toLowerCase());
|
|
466
|
+
const newValue = Array.isArray(existingValue) ? existingValue.concat(value) : existingValue ? [existingValue.toString(), ...[].concat(value)] : value;
|
|
467
|
+
return this.createRequestResponseChain(this.res.setHeader(key.toLowerCase(), newValue));
|
|
468
|
+
}
|
|
469
|
+
resSetHeaders(headers) {
|
|
470
|
+
Object.entries(headers).forEach(([key, value]) => this.resSetHeader(key, value));
|
|
471
|
+
return this.createRequestResponseChain();
|
|
472
|
+
}
|
|
473
|
+
resAddHeaders(headers) {
|
|
474
|
+
Object.entries(headers).forEach(([key, value]) => this.resAddHeader(key, value));
|
|
475
|
+
return this.createRequestResponseChain();
|
|
476
|
+
}
|
|
477
|
+
// 마지막 종료될때 타는거.
|
|
478
|
+
async resEndChunk() {
|
|
479
|
+
const encoding = this.reqHeaderFirst("Accept-Encoding" /* AcceptEncoding */);
|
|
480
|
+
let data = this.resWriteChunk;
|
|
481
|
+
if (encoding?.includes("gzip")) {
|
|
482
|
+
data = await (0, import_node_gzip.gzip)(data);
|
|
483
|
+
this.resSetHeader("Content-Encoding" /* ContentEncoding */, "gzip");
|
|
484
|
+
}
|
|
485
|
+
this.res.end(data);
|
|
486
|
+
}
|
|
487
|
+
async resEnd(chunk) {
|
|
488
|
+
this.resWriteChunk = chunk ?? this.resWriteChunk;
|
|
489
|
+
if (this.req.readable) {
|
|
490
|
+
await this.reqBodyData();
|
|
491
|
+
await this.resEndChunk();
|
|
492
|
+
} else {
|
|
493
|
+
await this.resEndChunk();
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
// writeContinue(callback?: () => void) {
|
|
497
|
+
// this.res.writeContinue(callback);
|
|
498
|
+
// return new RequestResponseChain(this.req, this.res);
|
|
499
|
+
// }
|
|
500
|
+
// reqWrite(chunk?: any) {
|
|
501
|
+
// this.resWriteChunk = chunk;
|
|
502
|
+
// // this.res.write(chunk);
|
|
503
|
+
// return this.createRequestResponseChain();
|
|
504
|
+
// }
|
|
505
|
+
resWriteHead(statusCode, headers) {
|
|
506
|
+
return this.createRequestResponseChain(this.res.writeHead(statusCode, headers));
|
|
507
|
+
}
|
|
508
|
+
resWriteHeadEnd(statusCode, headers) {
|
|
509
|
+
this.createRequestResponseChain(this.res.writeHead(statusCode, headers));
|
|
510
|
+
this.res.end();
|
|
511
|
+
}
|
|
512
|
+
resIsDone() {
|
|
513
|
+
return this.res.finished || this.res.writableEnded || this.res.headersSent;
|
|
514
|
+
}
|
|
515
|
+
createRequestResponseChain(data) {
|
|
516
|
+
const requestResponseChain = new RequestResponseChain(this.req, this.res, this.config, data);
|
|
517
|
+
requestResponseChain.resWriteChunk = this.resWriteChunk;
|
|
518
|
+
requestResponseChain.reqBodyChunk = this.reqBodyChunk;
|
|
519
|
+
return requestResponseChain;
|
|
520
|
+
}
|
|
521
|
+
// res.on("readable", () => {
|
|
522
|
+
// console.log('readable???')
|
|
523
|
+
// });
|
|
524
|
+
// res.on('complete', function (details) {
|
|
525
|
+
// var size = details.req.bytes;
|
|
526
|
+
// console.log('complete-->', size)
|
|
527
|
+
// });
|
|
528
|
+
// res.on('finish', function() {
|
|
529
|
+
// console.log('finish??');
|
|
530
|
+
// });
|
|
531
|
+
// res.on('end', () => {
|
|
532
|
+
// console.log('end--?')
|
|
533
|
+
// });
|
|
534
|
+
};
|
|
535
|
+
var RequestResponseChain = class extends RequestResponse {
|
|
536
|
+
constructor(req, res, config, result) {
|
|
537
|
+
super(req, res, config);
|
|
538
|
+
this.result = result;
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
|
|
542
|
+
// src/decorators/MethodMapping.ts
|
|
543
|
+
var import_reflect_metadata = require("reflect-metadata");
|
|
544
|
+
var import_ReflectUtils = require("@dooboostore/core/reflect/ReflectUtils");
|
|
545
|
+
var MappingMetadataKey = Symbol("MappingMetadataKey");
|
|
546
|
+
var getUrlMapping = (target, propertyKey) => {
|
|
547
|
+
return import_ReflectUtils.ReflectUtils.getMetadata(MappingMetadataKey, target, propertyKey);
|
|
548
|
+
};
|
|
549
|
+
var getUrlMappings = (target) => {
|
|
550
|
+
if (target !== null && void 0 !== target && typeof target === "object") {
|
|
551
|
+
target = target.constructor;
|
|
552
|
+
}
|
|
553
|
+
return import_ReflectUtils.ReflectUtils.getMetadata(MappingMetadataKey, target);
|
|
554
|
+
};
|
|
555
|
+
|
|
556
|
+
// src/SimpleBootHttpServer.ts
|
|
557
|
+
var import_ExceptionDecorator = require("@dooboostore/simple-boot/decorators/exception/ExceptionDecorator");
|
|
558
|
+
var import_Inject = require("@dooboostore/simple-boot/decorators/inject/Inject");
|
|
559
|
+
var import_ReflectUtils2 = require("@dooboostore/core/reflect/ReflectUtils");
|
|
560
|
+
var import_RouterModule = require("@dooboostore/simple-boot/route/RouterModule");
|
|
561
|
+
|
|
562
|
+
// src/models/datas/body/ReqMultipartFormBody.ts
|
|
563
|
+
var ReqMultipartFormBody = class {
|
|
564
|
+
constructor(field = []) {
|
|
565
|
+
this.field = field;
|
|
566
|
+
}
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
// src/SimpleBootHttpServer.ts
|
|
570
|
+
var import_Validation = require("@dooboostore/simple-boot/decorators/validate/Validation");
|
|
571
|
+
var import_ValidException = require("@dooboostore/simple-boot/errors/ValidException");
|
|
572
|
+
|
|
573
|
+
// src/errors/HttpError.ts
|
|
574
|
+
var HttpError = class {
|
|
575
|
+
constructor({ status, message = "HttpError" }) {
|
|
576
|
+
this.name = "Error";
|
|
577
|
+
this.message = message;
|
|
578
|
+
this.status = status;
|
|
579
|
+
}
|
|
580
|
+
};
|
|
581
|
+
|
|
582
|
+
// src/SimpleBootHttpServer.ts
|
|
583
|
+
var import_Router = require("@dooboostore/simple-boot/decorators/route/Router");
|
|
584
|
+
var import_url2 = require("url");
|
|
585
|
+
|
|
586
|
+
// src/session/SessionManager.ts
|
|
587
|
+
var import_RandomUtils = require("@dooboostore/core/random/RandomUtils");
|
|
588
|
+
var SessionManager = class {
|
|
589
|
+
constructor(option) {
|
|
590
|
+
this.option = option;
|
|
591
|
+
this.sessions = /* @__PURE__ */ new Map();
|
|
592
|
+
this.sessionOption = option.sessionOption;
|
|
593
|
+
setInterval(async () => {
|
|
594
|
+
const uuids = await this.getSessionUUIDs();
|
|
595
|
+
for (const uuid of uuids) {
|
|
596
|
+
const dataSet = await this.getSessionDataSet(uuid);
|
|
597
|
+
if (dataSet && this.isExpired(dataSet.access)) {
|
|
598
|
+
await this.deleteSession(uuid);
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}, this.sessionOption.expiredTime);
|
|
602
|
+
}
|
|
603
|
+
async getSessionUUIDs() {
|
|
604
|
+
if (this.sessionOption.provider?.uuids) {
|
|
605
|
+
return this.sessionOption.provider.uuids();
|
|
606
|
+
} else {
|
|
607
|
+
return Array.from(this.sessions.keys());
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
async deleteSession(uuid) {
|
|
611
|
+
if (this.sessionOption.provider?.delete) {
|
|
612
|
+
this.sessionOption.provider.delete(uuid);
|
|
613
|
+
} else {
|
|
614
|
+
this.sessions.delete(uuid);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
async getSessionDataSet(uuid) {
|
|
618
|
+
if (this.sessionOption.provider?.get) {
|
|
619
|
+
return this.sessionOption.provider.get(uuid);
|
|
620
|
+
} else {
|
|
621
|
+
return this.sessions.get(uuid);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
async setSessionDataSet(uuid, dataSet) {
|
|
625
|
+
if (this.sessionOption.provider?.set) {
|
|
626
|
+
this.sessionOption.provider.set(uuid, dataSet);
|
|
627
|
+
} else {
|
|
628
|
+
this.sessions.set(uuid, dataSet);
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
isExpired(access, now = Date.now()) {
|
|
632
|
+
return now - access >= this.option.sessionOption.expiredTime;
|
|
633
|
+
}
|
|
634
|
+
makeUUID() {
|
|
635
|
+
return import_RandomUtils.RandomUtils.uuid("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
|
|
636
|
+
}
|
|
637
|
+
async session(rrOrUUID) {
|
|
638
|
+
let uuid;
|
|
639
|
+
if (rrOrUUID instanceof RequestResponse) {
|
|
640
|
+
uuid = rrOrUUID.reqCookieGet(this.sessionOption.key) ?? this.makeUUID();
|
|
641
|
+
} else if (typeof rrOrUUID === "string") {
|
|
642
|
+
uuid = rrOrUUID;
|
|
643
|
+
} else {
|
|
644
|
+
uuid = this.makeUUID();
|
|
645
|
+
}
|
|
646
|
+
let dataSet = await this.getSessionDataSet(uuid);
|
|
647
|
+
const now = Date.now();
|
|
648
|
+
if (dataSet) {
|
|
649
|
+
if (this.isExpired(dataSet.access, now)) {
|
|
650
|
+
delete dataSet.data;
|
|
651
|
+
}
|
|
652
|
+
dataSet.access = now;
|
|
653
|
+
} else {
|
|
654
|
+
dataSet = {
|
|
655
|
+
access: now
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
await this.setSessionDataSet(uuid, dataSet);
|
|
659
|
+
return { uuid, dataSet };
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
|
|
663
|
+
// src/inject/InjectSituationType.ts
|
|
664
|
+
var InjectSituationType;
|
|
665
|
+
((InjectSituationType2) => {
|
|
666
|
+
InjectSituationType2.TransactionManager = Symbol("TransactionManager");
|
|
667
|
+
})(InjectSituationType || (InjectSituationType = {}));
|
|
668
|
+
|
|
669
|
+
// src/SimpleBootHttpServer.ts
|
|
670
|
+
var SimpleBootHttpServer = class extends import_SimpleApplication.SimpleApplication {
|
|
671
|
+
constructor(option = new HttpServerOption()) {
|
|
672
|
+
super(option);
|
|
673
|
+
this.option = option;
|
|
674
|
+
this.sessionManager = new SessionManager(this.option);
|
|
675
|
+
}
|
|
676
|
+
run(otherInstanceSim) {
|
|
677
|
+
const simstanceManager = super.run(otherInstanceSim);
|
|
678
|
+
const targets = [...this.option.closeEndPoints ?? [], ...this.option.errorEndPoints ?? [], ...this.option.requestEndPoints ?? [], ...this.option.filters ?? []];
|
|
679
|
+
Promise.all(targets.map((it) => typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it).map((it) => it.onInit(this))).then((it) => {
|
|
680
|
+
this.startServer();
|
|
681
|
+
});
|
|
682
|
+
return simstanceManager;
|
|
683
|
+
}
|
|
684
|
+
startServer() {
|
|
685
|
+
if (this.option.serverOption && "key" in this.option.serverOption && "cert" in this.option.serverOption) {
|
|
686
|
+
this.server = new import_https.Server(this.option.serverOption);
|
|
687
|
+
const httpServer = new import_http.Server();
|
|
688
|
+
httpServer.on("request", (req, res) => {
|
|
689
|
+
res.writeHead(301, { Location: `https://${req.headers.host}${req.url}` });
|
|
690
|
+
res.end();
|
|
691
|
+
});
|
|
692
|
+
httpServer.listen(80, this.option.listen.hostname, () => {
|
|
693
|
+
console.log("HTTP redirect server running on port 80");
|
|
694
|
+
});
|
|
695
|
+
} else if (this.option.serverOption) {
|
|
696
|
+
this.server = new import_http.Server(this.option.serverOption);
|
|
697
|
+
} else {
|
|
698
|
+
this.server = new import_http.Server();
|
|
699
|
+
}
|
|
700
|
+
this.server.on("request", async (req, res) => {
|
|
701
|
+
const transactionManager = this.option.transactionManagerFactory ? await this.option.transactionManagerFactory() : void 0;
|
|
702
|
+
res.on("close", async () => {
|
|
703
|
+
if (this.option.closeEndPoints) {
|
|
704
|
+
for (const it of this.option.closeEndPoints) {
|
|
705
|
+
try {
|
|
706
|
+
const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
|
|
707
|
+
const endPoint = execute?.endPoint(rr, this);
|
|
708
|
+
if (endPoint instanceof Promise) {
|
|
709
|
+
await endPoint;
|
|
710
|
+
}
|
|
711
|
+
} catch (e) {
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
if (!rr.resIsDone()) {
|
|
716
|
+
rr.resEnd();
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
res.on("error", async () => {
|
|
720
|
+
if (this.option.errorEndPoints) {
|
|
721
|
+
for (const it of this.option.errorEndPoints) {
|
|
722
|
+
try {
|
|
723
|
+
const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
|
|
724
|
+
const endPoint = execute?.endPoint(rr, this);
|
|
725
|
+
if (endPoint instanceof Promise) {
|
|
726
|
+
await endPoint;
|
|
727
|
+
}
|
|
728
|
+
} catch (e) {
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
if (!rr.resIsDone()) {
|
|
733
|
+
rr.resEnd();
|
|
734
|
+
}
|
|
735
|
+
});
|
|
736
|
+
const rr = new RequestResponse(req, res, { sessionManager: this.sessionManager, option: this.option });
|
|
737
|
+
rr.resSetHeader("Server" /* Server */, "simple-boot-http-server");
|
|
738
|
+
const cookie = rr.reqCookieGet(this.option.sessionOption.key);
|
|
739
|
+
if (!cookie) {
|
|
740
|
+
const session = await this.sessionManager.session();
|
|
741
|
+
rr.resSetHeader("Set-Cookie" /* SetCookie */, `${this.option.sessionOption.key}=${session.uuid}; Path=/; HttpOnly`);
|
|
742
|
+
}
|
|
743
|
+
const otherStorage = /* @__PURE__ */ new Map();
|
|
744
|
+
otherStorage.set(RequestResponse, rr);
|
|
745
|
+
otherStorage.set(import_http.IncomingMessage, req);
|
|
746
|
+
otherStorage.set(import_http.ServerResponse, res);
|
|
747
|
+
try {
|
|
748
|
+
transactionManager?.try();
|
|
749
|
+
if (this.option.requestEndPoints) {
|
|
750
|
+
for (const it of this.option.requestEndPoints) {
|
|
751
|
+
try {
|
|
752
|
+
const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
|
|
753
|
+
execute?.endPoint(rr, this);
|
|
754
|
+
} catch (e) {
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
const filter = {
|
|
759
|
+
carrier: /* @__PURE__ */ new Map(),
|
|
760
|
+
filters: []
|
|
761
|
+
};
|
|
762
|
+
for (let i = 0; this.option.filters && i < this.option.filters.length; i++) {
|
|
763
|
+
const it = this.option.filters[i];
|
|
764
|
+
const execute = typeof it === "function" ? this.simstanceManager.getOrNewSim({ target: it }) : it;
|
|
765
|
+
let sw = true;
|
|
766
|
+
if (execute?.proceedBefore) {
|
|
767
|
+
sw = await execute.proceedBefore({ rr, app: this, carrier: filter.carrier });
|
|
768
|
+
filter.filters.push({ filter: execute, sw });
|
|
769
|
+
}
|
|
770
|
+
if (!sw) {
|
|
771
|
+
break;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
if (!rr.resIsDone()) {
|
|
775
|
+
const routerModule = await super.routing(rr.reqIntent);
|
|
776
|
+
otherStorage.set(import_RouterModule.RouterModule, routerModule);
|
|
777
|
+
const moduleInstance = routerModule?.getModuleInstance?.();
|
|
778
|
+
let methods = [];
|
|
779
|
+
if (routerModule && moduleInstance) {
|
|
780
|
+
if (routerModule.propertyKeys) {
|
|
781
|
+
const map = routerModule.propertyKeys?.map((it) => {
|
|
782
|
+
return { propertyKey: it, config: getUrlMapping(moduleInstance, it) };
|
|
783
|
+
});
|
|
784
|
+
methods.push(...map ?? []);
|
|
785
|
+
} else {
|
|
786
|
+
methods.push(...getUrlMappings(moduleInstance).filter((it) => !(0, import_Router.getRoute)(moduleInstance, it.propertyKey)) ?? []);
|
|
787
|
+
}
|
|
788
|
+
if (rr.reqMethod()?.toUpperCase() === "OPTIONS" /* OPTIONS */.toUpperCase()) {
|
|
789
|
+
rr.resSetHeader("Allow" /* Allow */, methods.map((it) => it.config.method).join(", "));
|
|
790
|
+
rr.resStatusCode(200 /* Ok */);
|
|
791
|
+
}
|
|
792
|
+
methods = methods.filter((it) => it && it.propertyKey && it.config && rr.reqMethod()?.toUpperCase() === it.config.method.toUpperCase());
|
|
793
|
+
methods.sort((a, b) => {
|
|
794
|
+
return (b.config?.req?.contentType?.length ?? 0) + (b.config?.req?.accept?.length ?? 0) - ((a.config?.req?.contentType?.length ?? 0) + (a.config?.req?.accept?.length ?? 0));
|
|
795
|
+
});
|
|
796
|
+
methods = methods.filter((it) => it.config?.req?.contentType ? !!it.config?.req?.contentType?.find((sit) => rr.reqHasContentTypeHeader(sit)) : true).filter((it) => it.config?.req?.accept ? !!it.config?.req?.accept?.find((sit) => rr.reqHasAcceptHeader(sit)) : true);
|
|
797
|
+
if (methods[0]) {
|
|
798
|
+
const it = methods[0];
|
|
799
|
+
const paramTypes = import_ReflectUtils2.ReflectUtils.getParameterTypes(moduleInstance, it.propertyKey);
|
|
800
|
+
const injects = (0, import_Inject.getInject)(moduleInstance, it.propertyKey);
|
|
801
|
+
const validIndexs = (0, import_Validation.getValidIndex)(moduleInstance, it.propertyKey);
|
|
802
|
+
if (injects) {
|
|
803
|
+
const isJson = injects.find((it2) => it2.config?.situationType === "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY" /* REQ_JSON_BODY */);
|
|
804
|
+
const isFormUrl = injects.find((it2) => it2.config?.situationType === "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY" /* REQ_FORM_URL_BODY */);
|
|
805
|
+
const isTransactionManager = injects.find((it2) => it2.config?.situationType === InjectSituationType.TransactionManager);
|
|
806
|
+
const siturationContainers = new import_Inject.SituationTypeContainers();
|
|
807
|
+
if (isJson) {
|
|
808
|
+
let data2 = await rr.reqBodyJsonData();
|
|
809
|
+
if (isJson.type) {
|
|
810
|
+
data2 = Object.assign(new isJson.type(), data2);
|
|
811
|
+
}
|
|
812
|
+
if (validIndexs.includes(isJson.index)) {
|
|
813
|
+
const inValid = (0, import_Validation.execValidationInValid)(data2);
|
|
814
|
+
if ((inValid?.length ?? 0) > 0) {
|
|
815
|
+
throw new import_ValidException.ValidException(inValid);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
siturationContainers.push(new import_Inject.SituationTypeContainer({
|
|
819
|
+
situationType: "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_JSON_BODY" /* REQ_JSON_BODY */,
|
|
820
|
+
data: data2
|
|
821
|
+
}));
|
|
822
|
+
}
|
|
823
|
+
if (isFormUrl) {
|
|
824
|
+
let data2 = await rr.reqBodyFormUrlData();
|
|
825
|
+
if (isFormUrl.type) {
|
|
826
|
+
data2 = Object.assign(new isFormUrl.type(), data2);
|
|
827
|
+
}
|
|
828
|
+
if (validIndexs.includes(isFormUrl.index)) {
|
|
829
|
+
const inValid = (0, import_Validation.execValidationInValid)(data2);
|
|
830
|
+
if ((inValid?.length ?? 0) > 0) {
|
|
831
|
+
throw new import_ValidException.ValidException(inValid);
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
siturationContainers.push(new import_Inject.SituationTypeContainer({ situationType: "SIMPLE_BOOT_HTTP_SERVER://URLMAPPING/REQ_FORM_URL_BODY" /* REQ_FORM_URL_BODY */, data: data2 }));
|
|
835
|
+
}
|
|
836
|
+
if (isTransactionManager && isTransactionManager.type && transactionManager && transactionManager.hasTransaction(isTransactionManager.type)) {
|
|
837
|
+
let data2 = await transactionManager.getTransaction(isTransactionManager.type);
|
|
838
|
+
if (data2) {
|
|
839
|
+
data2 = await data2.try(isTransactionManager.config.argument);
|
|
840
|
+
siturationContainers.push(new import_Inject.SituationTypeContainer({ situationType: InjectSituationType.TransactionManager, data: data2, index: isTransactionManager.index }));
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
if (siturationContainers.length) {
|
|
844
|
+
otherStorage.set(import_Inject.SituationTypeContainers, siturationContainers);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
for (const paramType of paramTypes) {
|
|
848
|
+
if (paramType === ReqFormUrlBody) {
|
|
849
|
+
otherStorage.set(ReqFormUrlBody, await rr.reqBodyReqFormUrlBody());
|
|
850
|
+
} else if (paramType === ReqJsonBody) {
|
|
851
|
+
otherStorage.set(ReqJsonBody, await rr.reqBodyReqJsonBody());
|
|
852
|
+
} else if (paramType === import_url2.URLSearchParams) {
|
|
853
|
+
otherStorage.set(import_url2.URLSearchParams, rr.reqUrlSearchParams);
|
|
854
|
+
} else if (paramType === ReqMultipartFormBody) {
|
|
855
|
+
otherStorage.set(ReqMultipartFormBody, rr.reqBodyMultipartFormData());
|
|
856
|
+
} else if (paramType === ReqHeader) {
|
|
857
|
+
otherStorage.set(ReqHeader, rr.reqHeaderObj);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
let data = await this.simstanceManager.executeBindParameterSimPromise({
|
|
861
|
+
target: moduleInstance,
|
|
862
|
+
targetKey: it.propertyKey
|
|
863
|
+
}, otherStorage);
|
|
864
|
+
if (it.config?.resolver) {
|
|
865
|
+
const execute = typeof it.config.resolver === "function" ? this.simstanceManager.getOrNewSim({ target: it.config.resolver }) : it.config.resolver;
|
|
866
|
+
data = await execute?.resolve?.(data, rr);
|
|
867
|
+
}
|
|
868
|
+
const status = it.config?.res?.status ?? 200 /* Ok */;
|
|
869
|
+
const headers = it.config?.res?.header ?? {};
|
|
870
|
+
if (it.config?.res?.contentType) {
|
|
871
|
+
headers["Content-Type" /* ContentType */] = it.config?.res?.contentType;
|
|
872
|
+
}
|
|
873
|
+
if ((it.config?.res?.contentType?.toLowerCase().indexOf("application/json" /* ApplicationJson */.toLowerCase()) ?? -1) > -1) {
|
|
874
|
+
data = JSON.stringify(data);
|
|
875
|
+
} else if (data && typeof data === "object") {
|
|
876
|
+
data = JSON.stringify(data);
|
|
877
|
+
}
|
|
878
|
+
rr.resSetHeaders(headers);
|
|
879
|
+
rr.resSetStatusCode(status);
|
|
880
|
+
rr.resWrite(data);
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
if (this.option.noSuchRouteEndPointMappingThrow && methods.length <= 0 && rr.reqMethod()?.toUpperCase() !== "OPTIONS" /* OPTIONS */) {
|
|
884
|
+
throw this.option.noSuchRouteEndPointMappingThrow(rr);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
for (const it of filter.filters.reverse()) {
|
|
888
|
+
if (it.filter?.proceedAfter && !await it.filter.proceedAfter({ rr, app: this, before: it.sw, carrier: filter.carrier })) {
|
|
889
|
+
break;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
} catch (e) {
|
|
893
|
+
transactionManager?.catch(e);
|
|
894
|
+
rr.resStatusCode(e instanceof HttpError ? e.status : 500 /* InternalServerError */);
|
|
895
|
+
const execute = typeof this.option.globalAdvice === "function" ? this.simstanceManager.getOrNewSim(this.option.globalAdvice) : this.option.globalAdvice;
|
|
896
|
+
if (!execute) {
|
|
897
|
+
rr.resEnd();
|
|
898
|
+
return;
|
|
899
|
+
}
|
|
900
|
+
if (e && typeof e === "object") {
|
|
901
|
+
otherStorage.set(e.constructor, e);
|
|
902
|
+
otherStorage.set(import_Inject.SituationTypeContainer, new import_Inject.SituationTypeContainer({
|
|
903
|
+
situationType: import_ExceptionDecorator.ExceptionHandlerSituationType.ERROR_OBJECT,
|
|
904
|
+
data: e
|
|
905
|
+
}));
|
|
906
|
+
}
|
|
907
|
+
const target = (0, import_ExceptionDecorator.targetExceptionHandler)(execute, e);
|
|
908
|
+
if (target) {
|
|
909
|
+
await this.simstanceManager.executeBindParameterSimPromise({
|
|
910
|
+
target: execute,
|
|
911
|
+
targetKey: target.propertyKey
|
|
912
|
+
}, otherStorage);
|
|
913
|
+
}
|
|
914
|
+
} finally {
|
|
915
|
+
transactionManager?.finally();
|
|
916
|
+
}
|
|
917
|
+
if (!rr.resIsDone()) {
|
|
918
|
+
rr.resEnd();
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
this.server.listen(this.option.listen.port, this.option.listen.hostname, this.option.listen.backlog, () => {
|
|
922
|
+
this.option.listen.listeningListener?.(this, this.server);
|
|
923
|
+
});
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
927
|
+
0 && (module.exports = {
|
|
928
|
+
SimpleBootHttpServer
|
|
929
|
+
});
|
|
930
|
+
//# sourceMappingURL=SimpleBootHttpServer.js.map
|