From 98ae629a604e0ff5b84a199c35762e0b7018e2c1 Mon Sep 17 00:00:00 2001 From: samchon Date: Tue, 29 Oct 2024 16:23:04 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20samchon/?= =?UTF-8?q?nestia@11f77697f89bdb1dfc4e2f4b0baf5e38a2407824=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 404.html | 2 +- 404/index.html | 2 +- .../K5UkeH36kMOj63mOP4Z1K/_buildManifest.js | 1 + .../_ssgManifest.js | 0 _next/static/chunks/100-ba4744976712b367.js | 1 - ...39db289a74d.js => 222-302c23e7555515fb.js} | 2 +- _next/static/chunks/243-533b9953d7cf12ab.js | 11 ++++ _next/static/chunks/269-bb5232fb822cb6cf.js | 35 +++++++++++ ...1a9bfb.js => 46d2146f-91aa341f5278ab06.js} | 2 +- _next/static/chunks/484-cc7a480ea920e92d.js | 11 ---- _next/static/chunks/666-01777fe9710d2a94.js | 57 ++++++++++++++++++ _next/static/chunks/666-5b8c5c94fe82eb64.js | 57 ------------------ _next/static/chunks/935-1197ed3ddf0c5832.js | 35 ----------- _next/static/chunks/940-af8803efee146d6c.js | 1 - ...b864ec.js => d89928ee-764ce18e095101de.js} | 2 +- _next/static/chunks/nextra-data-en-US.json | 2 +- ...5ddc439380.js => docs-225b5e7f1f438f14.js} | 2 +- ...13bd6.js => TypedBody-ed28431f6ec7f384.js} | 2 +- ....js => TypedException-c39d63080b14d8e8.js} | 2 +- ...7.js => TypedFormData-651094a876ab6c87.js} | 2 +- ...52.js => TypedHeaders-14f488499084f906.js} | 2 +- ...aaa3.js => TypedParam-8146685293bbed7a.js} | 2 +- ...9763.js => TypedQuery-a78b2063174ba204.js} | 2 +- ...d1e8.js => TypedRoute-40120b64f67592ce.js} | 2 +- ....js => WebSocketRoute-29c81536100bc928.js} | 2 +- ...c86fc.js => benchmark-3f7acdb62255f364.js} | 2 +- ...968.js => development-f5c19ad6db358482.js} | 2 +- ...27fa170bcbe.js => why-82a3804cc4a776f5.js} | 2 +- ...7aa4f747.js => editor-9f8ca4660ef65466.js} | 2 +- .../pages/docs/migrate-4aa5c7e592dbe6fc.js | 1 - .../pages/docs/migrate-5e3b97f1146b170e.js | 1 + ...a9e72b89c3.js => pure-88323f72842db935.js} | 2 +- ...ab482f0d9c6.js => e2e-e918c4564077a70f.js} | 2 +- ...c44bea1c16a.js => sdk-48266e672d9c8cbf.js} | 2 +- ...36c53.js => simulator-f5f287d2bf22bb96.js} | 2 +- .../docs/sdk/swagger-7e74159c213e0769.js | 1 + .../docs/sdk/swagger-c74f01ca9c088509.js | 1 - ...179b257ee.js => setup-2c1cd5509835de2a.js} | 2 +- ...38cd3ea4.js => editor-6f9d0eb712f9a807.js} | 2 +- ...139844e24.js => index-a8672c5aba3e2a8a.js} | 2 +- ...b17e.js => playground-52ac00f6d0ea1506.js} | 2 +- .../lxSJmuyul9djBh8Uk63BS/_buildManifest.js | 1 - .../_nestia_core.WebSocketAdaptor.html | 4 +- ...benchmark.DynamicBenchmarker.markdown.html | 2 +- ...a_benchmark.DynamicBenchmarker.master.html | 2 +- ..._benchmark.DynamicBenchmarker.servant.html | 2 +- .../_nestia_core.DynamicModule.mount.html | 2 +- api/functions/_nestia_core.EncryptedBody.html | 2 +- .../_nestia_core.EncryptedController.html | 2 +- .../_nestia_core.EncryptedModule-1.html | 2 +- .../_nestia_core.EncryptedModule.dynamic.html | 2 +- .../_nestia_core.EncryptedRoute.Delete.html | 2 +- .../_nestia_core.EncryptedRoute.Get.html | 2 +- .../_nestia_core.EncryptedRoute.Patch.html | 2 +- .../_nestia_core.EncryptedRoute.Post.html | 2 +- .../_nestia_core.EncryptedRoute.Put.html | 2 +- ...EncryptedRoute.setValidateErrorLogger.html | 2 +- .../_nestia_core.ExceptionManager.erase.html | 2 +- .../_nestia_core.ExceptionManager.insert.html | 2 +- .../_nestia_core.ExceptionManager.off.html | 2 +- .../_nestia_core.ExceptionManager.on.html | 2 +- .../_nestia_core.SwaggerCustomizer-1.html | 2 +- ..._nestia_core.SwaggerExample.Parameter.html | 2 +- .../_nestia_core.SwaggerExample.Response.html | 2 +- api/functions/_nestia_core.TypedBody.html | 2 +- .../_nestia_core.TypedFormData.Body.html | 2 +- api/functions/_nestia_core.TypedHeaders.html | 2 +- api/functions/_nestia_core.TypedParam.html | 2 +- api/functions/_nestia_core.TypedQuery-1.html | 2 +- .../_nestia_core.TypedQuery.Body.html | 2 +- .../_nestia_core.TypedQuery.Delete.html | 2 +- .../_nestia_core.TypedQuery.Get.html | 2 +- .../_nestia_core.TypedQuery.Patch.html | 2 +- .../_nestia_core.TypedQuery.Post.html | 2 +- .../_nestia_core.TypedQuery.Put.html | 2 +- .../_nestia_core.TypedRoute.Delete.html | 2 +- .../_nestia_core.TypedRoute.Get.html | 2 +- .../_nestia_core.TypedRoute.Patch.html | 2 +- .../_nestia_core.TypedRoute.Post.html | 2 +- .../_nestia_core.TypedRoute.Put.html | 2 +- ...ore.TypedRoute.setValidateErrorLogger.html | 2 +- .../_nestia_core.WebSocketRoute-1.html | 2 +- .../_nestia_core.WebSocketRoute.Acceptor.html | 2 +- .../_nestia_core.WebSocketRoute.Driver.html | 2 +- .../_nestia_core.WebSocketRoute.Header.html | 2 +- .../_nestia_core.WebSocketRoute.Param.html | 2 +- .../_nestia_core.WebSocketRoute.Query.html | 2 +- .../_nestia_e2e.ArrayUtil.asyncFilter.html | 2 +- .../_nestia_e2e.ArrayUtil.asyncForEach.html | 2 +- .../_nestia_e2e.ArrayUtil.asyncMap.html | 2 +- .../_nestia_e2e.ArrayUtil.asyncRepeat.html | 2 +- api/functions/_nestia_e2e.ArrayUtil.flat.html | 2 +- api/functions/_nestia_e2e.ArrayUtil.has.html | 2 +- .../_nestia_e2e.ArrayUtil.repeat.html | 2 +- .../_nestia_e2e.ArrayUtil.subsets.html | 2 +- .../_nestia_e2e.DynamicExecutor.assert.html | 2 +- .../_nestia_e2e.DynamicExecutor.validate.html | 2 +- .../_nestia_e2e.GaffComparator.dates.html | 2 +- .../_nestia_e2e.GaffComparator.numbers.html | 2 +- .../_nestia_e2e.GaffComparator.strings.html | 2 +- ...stia_e2e.RandomGenerator.alphaNumeric.html | 2 +- ..._nestia_e2e.RandomGenerator.alphabets.html | 2 +- .../_nestia_e2e.RandomGenerator.content.html | 2 +- .../_nestia_e2e.RandomGenerator.date.html | 2 +- .../_nestia_e2e.RandomGenerator.mobile.html | 2 +- .../_nestia_e2e.RandomGenerator.name.html | 2 +- ..._nestia_e2e.RandomGenerator.paragraph.html | 2 +- .../_nestia_e2e.RandomGenerator.pick.html | 2 +- .../_nestia_e2e.RandomGenerator.sample.html | 2 +- ..._nestia_e2e.RandomGenerator.substring.html | 2 +- .../_nestia_e2e.TestValidator.equals.html | 2 +- .../_nestia_e2e.TestValidator.error.html | 2 +- .../_nestia_e2e.TestValidator.httpError.html | 2 +- .../_nestia_e2e.TestValidator.index.html | 2 +- .../_nestia_e2e.TestValidator.predicate.html | 2 +- .../_nestia_e2e.TestValidator.proceed.html | 2 +- .../_nestia_e2e.TestValidator.search.html | 2 +- .../_nestia_e2e.TestValidator.sort.html | 2 +- ...hmark.DynamicBenchmarker.IMasterProps.html | 18 +++--- ...enchmark.DynamicBenchmarker.IReport-1.html | 4 +- ....DynamicBenchmarker.IReport.IEndpoint.html | 4 +- ...rk.DynamicBenchmarker.IReport.IMemory.html | 4 +- ...ynamicBenchmarker.IReport.IStatistics.html | 4 +- ...mark.DynamicBenchmarker.IServantProps.html | 10 +-- .../_nestia_benchmark.IBenchmarkEvent.html | 4 +- ..._nestia_core.ExceptionManager.Closure.html | 2 +- ...stia_core.SwaggerCustomizer.IAccessor.html | 6 +- ..._nestia_core.SwaggerCustomizer.IProps.html | 14 ++--- ...re.SwaggerCustomizer.ISwaggerEndpoint.html | 8 +-- .../_nestia_core.SwaggerExample.IData.html | 4 +- .../_nestia_core.TypedException.IProps.html | 4 +- ...tia_core.TypedRoute.IValidateErrorLog.html | 10 +-- .../_nestia_e2e.DynamicExecutor.Closure.html | 2 +- ...nestia_e2e.DynamicExecutor.IExecution.html | 12 ++-- .../_nestia_e2e.DynamicExecutor.IProps.html | 16 ++--- .../_nestia_e2e.DynamicExecutor.IReport.html | 8 +-- ...nestia_e2e.TestValidator.ISearchProps.html | 4 +- ...stia_fetcher.FormDataInput.IFileProps.html | 8 +-- .../_nestia_fetcher.IConnection-1.html | 16 ++--- .../_nestia_fetcher.IConnection.IOptions.html | 20 +++--- ..._nestia_fetcher.IEncryptionPassword-1.html | 6 +- ...a_fetcher.IEncryptionPassword.Closure.html | 2 +- ...ia_fetcher.IEncryptionPassword.IProps.html | 4 +- .../_nestia_fetcher.IFetchEvent.html | 4 +- .../_nestia_fetcher.IFetchRoute-1.html | 16 ++--- .../_nestia_fetcher.IFetchRoute.IBody.html | 4 +- .../_nestia_fetcher.IPropagation.IBranch.html | 4 +- .../_nestia_fetcher.IRandomGenerator-1.html | 4 +- ..._fetcher.IRandomGenerator.ICommentTag.html | 4 +- ..._benchmark.DynamicBenchmarker.IReport.html | 2 +- .../_nestia_benchmark.DynamicBenchmarker.html | 2 +- api/modules/_nestia_core.DynamicModule.html | 2 +- api/modules/_nestia_core.EncryptedModule.html | 2 +- api/modules/_nestia_core.EncryptedRoute.html | 2 +- .../_nestia_core.ExceptionManager.html | 2 +- .../_nestia_core.SwaggerCustomizer.html | 2 +- api/modules/_nestia_core.SwaggerExample.html | 2 +- api/modules/_nestia_core.TypedException.html | 2 +- api/modules/_nestia_core.TypedFormData.html | 2 +- api/modules/_nestia_core.TypedQuery.html | 2 +- api/modules/_nestia_core.TypedRoute.html | 2 +- api/modules/_nestia_core.WebSocketRoute.html | 2 +- api/modules/_nestia_core.default.html | 2 +- api/modules/_nestia_e2e.ArrayUtil.html | 2 +- api/modules/_nestia_e2e.DynamicExecutor.html | 2 +- api/modules/_nestia_e2e.GaffComparator.html | 2 +- api/modules/_nestia_e2e.RandomGenerator.html | 2 +- api/modules/_nestia_e2e.TestValidator.html | 2 +- api/modules/_nestia_e2e.default.html | 2 +- .../_nestia_fetcher.FormDataInput.html | 2 +- api/modules/_nestia_fetcher.IConnection.html | 2 +- .../_nestia_fetcher.IEncryptionPassword.html | 2 +- api/modules/_nestia_fetcher.IFetchRoute.html | 2 +- api/modules/_nestia_fetcher.IPropagation.html | 2 +- .../_nestia_fetcher.IRandomGenerator.html | 2 +- .../_nestia_e2e.TestValidator.Sortable.html | 2 +- .../_nestia_fetcher.FormDataInput-1.html | 2 +- .../_nestia_fetcher.FormDataInput.Value.html | 2 +- ...estia_fetcher.IConnection.HeaderValue.html | 2 +- ..._nestia_fetcher.IConnection.Headerify.html | 2 +- api/types/_nestia_fetcher.IPropagation-1.html | 2 +- .../_nestia_fetcher.IPropagation.Status.html | 2 +- ...stia_fetcher.IPropagation.StatusRange.html | 2 +- ...ia_fetcher.IRandomGenerator.CustomMap.html | 2 +- ...fetcher.IRandomGenerator.Customizable.html | 2 +- api/types/_nestia_fetcher.Primitive.html | 2 +- api/types/_nestia_fetcher.Resolved.html | 2 +- docs/core/TypedBody/index.html | 4 +- docs/core/TypedException/index.html | 4 +- docs/core/TypedFormData/index.html | 4 +- docs/core/TypedHeaders/index.html | 4 +- docs/core/TypedParam/index.html | 4 +- docs/core/TypedQuery/index.html | 4 +- docs/core/TypedRoute/index.html | 4 +- docs/core/WebSocketRoute/index.html | 4 +- docs/e2e/benchmark/index.html | 4 +- docs/e2e/development/index.html | 4 +- docs/e2e/why/index.html | 4 +- docs/editor/index.html | 4 +- docs/index.html | 4 +- docs/migrate/index.html | 4 +- docs/pure/index.html | 4 +- docs/sdk/e2e/index.html | 4 +- docs/sdk/sdk/index.html | 4 +- docs/sdk/simulator/index.html | 4 +- docs/sdk/swagger/index.html | 6 +- docs/setup/index.html | 4 +- downloads/editor.zip | Bin 1567437 -> 1567545 bytes editor/index.html | 2 +- index.html | 4 +- playground/index.html | 2 +- sitemap-0.xml | 46 +++++++------- 212 files changed, 431 insertions(+), 433 deletions(-) create mode 100644 _next/static/K5UkeH36kMOj63mOP4Z1K/_buildManifest.js rename _next/static/{lxSJmuyul9djBh8Uk63BS => K5UkeH36kMOj63mOP4Z1K}/_ssgManifest.js (100%) delete mode 100644 _next/static/chunks/100-ba4744976712b367.js rename _next/static/chunks/{222-8d40a39db289a74d.js => 222-302c23e7555515fb.js} (99%) create mode 100644 _next/static/chunks/243-533b9953d7cf12ab.js create mode 100644 _next/static/chunks/269-bb5232fb822cb6cf.js rename _next/static/chunks/{46d2146f-5ad3af8e0f1a9bfb.js => 46d2146f-91aa341f5278ab06.js} (91%) delete mode 100644 _next/static/chunks/484-cc7a480ea920e92d.js create mode 100644 _next/static/chunks/666-01777fe9710d2a94.js delete mode 100644 _next/static/chunks/666-5b8c5c94fe82eb64.js delete mode 100644 _next/static/chunks/935-1197ed3ddf0c5832.js delete mode 100644 _next/static/chunks/940-af8803efee146d6c.js rename _next/static/chunks/{d89928ee-156d471515b864ec.js => d89928ee-764ce18e095101de.js} (99%) rename _next/static/chunks/pages/{docs-e91e055ddc439380.js => docs-225b5e7f1f438f14.js} (99%) rename _next/static/chunks/pages/docs/core/{TypedBody-e1dec4a865013bd6.js => TypedBody-ed28431f6ec7f384.js} (99%) rename _next/static/chunks/pages/docs/core/{TypedException-24e4e181d6e94ae1.js => TypedException-c39d63080b14d8e8.js} (99%) rename _next/static/chunks/pages/docs/core/{TypedFormData-d4a44a99ee26c067.js => TypedFormData-651094a876ab6c87.js} (99%) rename _next/static/chunks/pages/docs/core/{TypedHeaders-721fc6edc2039152.js => TypedHeaders-14f488499084f906.js} (99%) rename _next/static/chunks/pages/docs/core/{TypedParam-ddd7e1c37220aaa3.js => TypedParam-8146685293bbed7a.js} (99%) rename _next/static/chunks/pages/docs/core/{TypedQuery-3c76d2cbb0919763.js => TypedQuery-a78b2063174ba204.js} (99%) rename _next/static/chunks/pages/docs/core/{TypedRoute-6cdbc3bff5b6d1e8.js => TypedRoute-40120b64f67592ce.js} (99%) rename _next/static/chunks/pages/docs/core/{WebSocketRoute-b3b2ca4bf807c76e.js => WebSocketRoute-29c81536100bc928.js} (99%) rename _next/static/chunks/pages/docs/e2e/{benchmark-e98c91e497dc86fc.js => benchmark-3f7acdb62255f364.js} (99%) rename _next/static/chunks/pages/docs/e2e/{development-8d698f9b4f392968.js => development-f5c19ad6db358482.js} (99%) rename _next/static/chunks/pages/docs/e2e/{why-6c0d627fa170bcbe.js => why-82a3804cc4a776f5.js} (99%) rename _next/static/chunks/pages/docs/{editor-c4e03cd37aa4f747.js => editor-9f8ca4660ef65466.js} (98%) delete mode 100644 _next/static/chunks/pages/docs/migrate-4aa5c7e592dbe6fc.js create mode 100644 _next/static/chunks/pages/docs/migrate-5e3b97f1146b170e.js rename _next/static/chunks/pages/docs/{pure-972409a9e72b89c3.js => pure-88323f72842db935.js} (99%) rename _next/static/chunks/pages/docs/sdk/{e2e-c4a96ab482f0d9c6.js => e2e-e918c4564077a70f.js} (99%) rename _next/static/chunks/pages/docs/sdk/{sdk-d7af9c44bea1c16a.js => sdk-48266e672d9c8cbf.js} (99%) rename _next/static/chunks/pages/docs/sdk/{simulator-daf012e6c1436c53.js => simulator-f5f287d2bf22bb96.js} (99%) create mode 100644 _next/static/chunks/pages/docs/sdk/swagger-7e74159c213e0769.js delete mode 100644 _next/static/chunks/pages/docs/sdk/swagger-c74f01ca9c088509.js rename _next/static/chunks/pages/docs/{setup-9ba4135179b257ee.js => setup-2c1cd5509835de2a.js} (99%) rename _next/static/chunks/pages/{editor-61b1595638cd3ea4.js => editor-6f9d0eb712f9a807.js} (84%) rename _next/static/chunks/pages/{index-ddebc36139844e24.js => index-a8672c5aba3e2a8a.js} (99%) rename _next/static/chunks/pages/{playground-1fcd15913ee5b17e.js => playground-52ac00f6d0ea1506.js} (98%) delete mode 100644 _next/static/lxSJmuyul9djBh8Uk63BS/_buildManifest.js diff --git a/404.html b/404.html index eacaedb9b..3510dfb20 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/404/index.html b/404/index.html index eacaedb9b..3510dfb20 100644 --- a/404/index.html +++ b/404/index.html @@ -1 +1 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file +404: This page could not be found

404

This page could not be found.

\ No newline at end of file diff --git a/_next/static/K5UkeH36kMOj63mOP4Z1K/_buildManifest.js b/_next/static/K5UkeH36kMOj63mOP4Z1K/_buildManifest.js new file mode 100644 index 000000000..d2cf38cef --- /dev/null +++ b/_next/static/K5UkeH36kMOj63mOP4Z1K/_buildManifest.js @@ -0,0 +1 @@ +self.__BUILD_MANIFEST=function(s,e,c,d,a,o,t,r,i,p,u,k,n){return{__rewrites:{afterFiles:[{has:void 0,source:"/api",destination:"/api/index.html"}],beforeFiles:[],fallback:[]},"/":[s,e,c,d,o,p,"static/chunks/pages/index-a8672c5aba3e2a8a.js"],"/_error":["static/chunks/pages/_error-8447282b6bcee29e.js"],"/docs":[s,e,c,d,a,"static/chunks/pages/docs-225b5e7f1f438f14.js"],"/docs/core/TypedBody":[s,e,c,"static/chunks/pages/docs/core/TypedBody-ed28431f6ec7f384.js"],"/docs/core/TypedException":[s,e,c,"static/chunks/pages/docs/core/TypedException-c39d63080b14d8e8.js"],"/docs/core/TypedFormData":[s,e,c,"static/chunks/pages/docs/core/TypedFormData-651094a876ab6c87.js"],"/docs/core/TypedHeaders":[s,e,c,"static/chunks/pages/docs/core/TypedHeaders-14f488499084f906.js"],"/docs/core/TypedParam":[s,e,c,"static/chunks/pages/docs/core/TypedParam-8146685293bbed7a.js"],"/docs/core/TypedQuery":[s,e,c,"static/chunks/pages/docs/core/TypedQuery-a78b2063174ba204.js"],"/docs/core/TypedRoute":[s,e,c,"static/chunks/pages/docs/core/TypedRoute-40120b64f67592ce.js"],"/docs/core/WebSocketRoute":[s,e,c,"static/chunks/pages/docs/core/WebSocketRoute-29c81536100bc928.js"],"/docs/e2e/benchmark":[s,e,c,"static/chunks/pages/docs/e2e/benchmark-3f7acdb62255f364.js"],"/docs/e2e/development":[s,e,c,"static/chunks/pages/docs/e2e/development-f5c19ad6db358482.js"],"/docs/e2e/why":[s,e,c,"static/chunks/pages/docs/e2e/why-82a3804cc4a776f5.js"],"/docs/editor":[t,r,u,k,s,e,c,d,a,o,i,n,"static/chunks/pages/docs/editor-9f8ca4660ef65466.js"],"/docs/migrate":[t,r,u,k,s,e,c,d,a,o,i,n,"static/chunks/pages/docs/migrate-5e3b97f1146b170e.js"],"/docs/pure":[s,e,c,"static/chunks/pages/docs/pure-88323f72842db935.js"],"/docs/sdk/e2e":[s,e,c,"static/chunks/pages/docs/sdk/e2e-e918c4564077a70f.js"],"/docs/sdk/sdk":[s,e,c,"static/chunks/pages/docs/sdk/sdk-48266e672d9c8cbf.js"],"/docs/sdk/simulator":[s,e,c,"static/chunks/pages/docs/sdk/simulator-f5f287d2bf22bb96.js"],"/docs/sdk/swagger":[s,e,c,"static/chunks/pages/docs/sdk/swagger-7e74159c213e0769.js"],"/docs/setup":[s,e,c,d,a,"static/chunks/pages/docs/setup-2c1cd5509835de2a.js"],"/editor":[t,r,"static/chunks/da8b8037-4624431a86ec3ae6.js","static/chunks/1e058b06-15f01e3c881c3453.js",s,d,a,o,i,p,"static/chunks/666-01777fe9710d2a94.js","static/chunks/pages/editor-6f9d0eb712f9a807.js"],"/playground":[s,e,c,"static/chunks/pages/playground-52ac00f6d0ea1506.js"],sortedPages:["/","/_app","/_error","/docs","/docs/core/TypedBody","/docs/core/TypedException","/docs/core/TypedFormData","/docs/core/TypedHeaders","/docs/core/TypedParam","/docs/core/TypedQuery","/docs/core/TypedRoute","/docs/core/WebSocketRoute","/docs/e2e/benchmark","/docs/e2e/development","/docs/e2e/why","/docs/editor","/docs/migrate","/docs/pure","/docs/sdk/e2e","/docs/sdk/sdk","/docs/sdk/simulator","/docs/sdk/swagger","/docs/setup","/editor","/playground"]}}("static/chunks/623-98317d9955985ced.js","static/css/445c4173ffc2bf04.css","static/chunks/790-eaa092d2dad72826.js","static/chunks/992-d931220c2d492b25.js","static/chunks/851-372406b71dd82964.js","static/chunks/222-302c23e7555515fb.js","static/chunks/88682331-0a4e775cf8cebf92.js","static/chunks/e0385ce4-4854b2e503bbcab1.js","static/chunks/243-533b9953d7cf12ab.js","static/chunks/942-d905f1e7c4c7fd7e.js","static/chunks/d89928ee-764ce18e095101de.js","static/chunks/46d2146f-91aa341f5278ab06.js","static/chunks/269-bb5232fb822cb6cf.js"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB(); \ No newline at end of file diff --git a/_next/static/lxSJmuyul9djBh8Uk63BS/_ssgManifest.js b/_next/static/K5UkeH36kMOj63mOP4Z1K/_ssgManifest.js similarity index 100% rename from _next/static/lxSJmuyul9djBh8Uk63BS/_ssgManifest.js rename to _next/static/K5UkeH36kMOj63mOP4Z1K/_ssgManifest.js diff --git a/_next/static/chunks/100-ba4744976712b367.js b/_next/static/chunks/100-ba4744976712b367.js deleted file mode 100644 index 0a3e80dd9..000000000 --- a/_next/static/chunks/100-ba4744976712b367.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[100],{78100:function(e,t,n){n.d(t,{I:function(){return ta}});var i,r=n(85893),o=n(51714),a=n(17586),l=n(60504),s=n(88735),u=n(24562),c=n(11901),p=n(73173),d=n(79979),f={isObject:function(e){return"object"==typeof e&&null!==e},repeat:function(e,t){var n,i="";for(n=0;nl&&(t=i-l+(o=" ... ").length),n-i>l&&(n=i+l-(a=" ...").length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:i-t+o.length}}function I(e,t){return f.repeat(" ",t-e.length)+e}M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M.prototype.toString=function(e){return this.name+": "+g(this,e)};var h=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,i=[0],r=[],o=-1;a=n.exec(e.buffer);)r.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=i.length-2);o<0&&(o=i.length-1);var a,l,s,u="",c=Math.min(e.line+t.linesAfter,r.length).toString().length,p=t.maxLength-(t.indent+c+3);for(l=1;l<=t.linesBefore&&!(o-l<0);l++)s=j(e.buffer,i[o-l],r[o-l],e.position-(i[o]-i[o-l]),p),u=f.repeat(" ",t.indent)+I((e.line-l+1).toString(),c)+" | "+s.str+"\n"+u;for(s=j(e.buffer,i[o],r[o],e.position,p),u+=f.repeat(" ",t.indent)+I((e.line+1).toString(),c)+" | "+s.str+"\n"+f.repeat("-",t.indent+c+3+s.pos)+"^\n",l=1;l<=t.linesAfter&&!(o+l>=r.length);l++)s=j(e.buffer,i[o+l],r[o+l],e.position-(i[o]-i[o+l]),p),u+=f.repeat(" ",t.indent)+I((e.line+l+1).toString(),c)+" | "+s.str+"\n";return u.replace(/\n$/,"")},m=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],N=["scalar","sequence","mapping"],y=function(e,t){var n,i;if(Object.keys(t=t||{}).forEach(function(t){if(-1===m.indexOf(t))throw new M('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,i={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){i[String(t)]=e})}),i),-1===N.indexOf(this.kind))throw new M('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function L(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,i){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=i)}),n[t]=e}),n}function x(e){return this.extend(e)}x.prototype.extend=function(e){var t=[],n=[];if(e instanceof y)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new M("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof y))throw new M("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new M("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new M("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof y))throw new M("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(x.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=L(i,"implicit"),i.compiledExplicit=L(i,"explicit"),i.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function i(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),C=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),A=/^[-+]?[0-9]+e/,E=new y("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!!(null!==e&&C.test(e)&&"_"!==e[e.length-1])},construct:function(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||f.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(f.isNegativeZero(e))return"-0.0";return n=e.toString(10),A.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),S=w.extend({implicit:[b,T,D,E]}),v=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),k=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),O=new y("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==v.exec(e)||null!==k.exec(e))},construct:function(e){var t,n,i,r,o,a,l,s,u=0,c=null;if(null===(t=v.exec(e))&&(t=k.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],i=+t[2]-1,r=+t[3],!t[4])return new Date(Date.UTC(n,i,r));if(o=+t[4],a=+t[5],l=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(c=(60*+t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(c=-c)),s=new Date(Date.UTC(n,i,r,o,a,l,u)),c&&s.setTime(s.getTime()-c),s},instanceOf:Date,represent:function(e){return e.toISOString()}}),z=new y("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",Y=new y("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i=0,r=e.length;for(n=0;n64)){if(t<0)return!1;i+=6}return i%8==0},construct:function(e){var t,n,i=e.replace(/[\r\n=]/g,""),r=i.length,o=0,a=[];for(t=0;t>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|Z.indexOf(i.charAt(t));return 0==(n=r%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===n?(a.push(o>>10&255),a.push(o>>2&255)):12===n&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,i="",r=0,o=e.length;for(t=0;t>18&63]+Z[r>>12&63]+Z[r>>6&63]+Z[63&r]),r=(r<<8)+e[t];return 0==(n=o%3)?i+=Z[r>>18&63]+Z[r>>12&63]+Z[r>>6&63]+Z[63&r]:2===n?i+=Z[r>>10&63]+Z[r>>4&63]+Z[r<<2&63]+Z[64]:1===n&&(i+=Z[r>>2&63]+Z[r<<4&63]+Z[64]+Z[64]),i}}),P=Object.prototype.hasOwnProperty,G=Object.prototype.toString,F=new y("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,i,r,o,a=[];for(t=0,n=e.length;t1&&(e.result+=f.repeat("\n",t-1))}function em(e,t){var n,i,r=e.tag,o=e.anchor,a=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,eu(e,"tab characters must not be used in indentation")),45===i&&et(e.input.charCodeAt(e.position+1)));){if(l=!0,e.position++,ej(e,!0,-1)&&e.lineIndent<=t){a.push(null),i=e.input.charCodeAt(e.position);continue}if(n=e.line,eN(e,t,3,!1,!0),a.push(e.result),ej(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)eu(e,"bad indentation of a sequence entry");else if(e.lineIndentt?M=1:e.lineIndent===t?M=0:e.lineIndentt?M=1:e.lineIndent===t?M=0:e.lineIndentt)&&(I&&(a=e.line,l=e.lineStart,s=e.position),eN(e,t,4,!0,r)&&(I?M=e.result:j=e.result),I||(eg(e,d,f,g,M,j,a,l,s),g=M=j=null),ej(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===o||e.lineIndent>t)&&0!==u)eu(e,"bad indentation of a mapping entry");else if(e.lineIndent=0)0===o?eu(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?eu(e,"repeat of an indentation width identifier"):(c=t+o-1,u=!0);else break;if(ee(a)){do a=e.input.charCodeAt(++e.position);while(ee(a));if(35===a)do a=e.input.charCodeAt(++e.position);while(!K(a)&&0!==a)}for(;0!==a;){for(eM(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!u||e.lineIndentc&&(c=e.lineIndent),K(a)){p++;continue}if(e.lineIndent0){for(r=a,o=0;r>0;r--)(a=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(l=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+a:eu(e,"expected hexadecimal character");e.result+=(u=o)<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320),e.position++}else eu(e,"unknown escape sequence");n=i=e.position}else K(l)?(ed(e,n,i,!0),eh(e,ej(e,!1,t)),n=i=e.position):e.position===e.lineStart&&eI(e)?eu(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}eu(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?I=!0:function(e){var t,n,i;if(42!==(i=e.input.charCodeAt(e.position)))return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!et(i)&&!en(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&eu(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),R.call(e.anchorMap,n)||eu(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ej(e,!0,-1),!0}(e)?(I=!0,(null!==e.tag||null!==e.anchor)&&eu(e,"alias node should not have any properties")):function(e,t,n){var i,r,o,a,l,s,u,c,p=e.kind,d=e.result;if(et(c=e.input.charCodeAt(e.position))||en(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(et(i=e.input.charCodeAt(e.position+1))||n&&en(i)))return!1;for(e.kind="scalar",e.result="",r=o=e.position,a=!1;0!==c;){if(58===c){if(et(i=e.input.charCodeAt(e.position+1))||n&&en(i))break}else if(35===c){if(et(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&eI(e)||n&&en(c))break;else if(K(c)){if(l=e.line,s=e.lineStart,u=e.lineIndent,ej(e,!1,-1),e.lineIndent>=t){a=!0,c=e.input.charCodeAt(e.position);continue}e.position=o,e.line=l,e.lineStart=s,e.lineIndent=u;break}a&&(ed(e,r,o,!1),eh(e,e.line-l),r=o=e.position,a=!1),ee(c)||(o=e.position+1),c=e.input.charCodeAt(++e.position)}return ed(e,r,o,!1),!!e.result||(e.kind=p,e.result=d,!1)}(e,d,1===n)&&(I=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===M&&(I=l&&em(e,g))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&eu(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),s=0,u=e.implicitTypes.length;s"),null!==e.result&&p.kind!==e.kind&&eu(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):eu(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||I}var ey=function(e,t){var n=function(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new el(e,t),i=e.indexOf("\0");for(-1!==i&&(n.position=i,eu(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position0)&&37===r);){for(a=!0,r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!et(r);)r=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&eu(e,"directive name must not be less than one character in length");0!==r;){for(;ee(r);)r=e.input.charCodeAt(++e.position);if(35===r){do r=e.input.charCodeAt(++e.position);while(0!==r&&!K(r));break}if(K(r))break;for(t=e.position;0!==r&&!et(r);)r=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==r&&eM(e),R.call(ep,n)?ep[n](e,n,i):ec(e,'unknown document directive "'+n+'"')}if(ej(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,ej(e,!0,-1)):a&&eu(e,"directives end mark is expected"),eN(e,e.lineIndent-1,4,!1,!0),ej(e,!0,-1),e.checkLineBreaks&&J.test(e.input.slice(o,e.position))&&ec(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&eI(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,ej(e,!0,-1));return}e.position=55296&&i<=56319&&t+1=56320&&n<=57343?(i-55296)*1024+n-56320+65536:i}function eO(e){return/^\n* /.test(e)}function ez(e,t){var n=eO(e)?String(t):"",i="\n"===e[e.length-1];return n+(i&&("\n"===e[e.length-2]||"\n"===e)?"+":i?"":"-")+"\n"}function eZ(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function eY(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,o=0,a=0,l=0,s="";n=r.exec(e);)(l=n.index)-o>t&&(i=a>o?a:l,s+="\n"+e.slice(o,i),o=i+1),a=l;return s+="\n",e.length-o>t&&a>o?s+=e.slice(o,a)+"\n"+e.slice(a+1):s+=e.slice(o),s.slice(1)}function eP(e,t,n,i){var r,o,a,l="",s=e.tag;for(r=0,o=n.length;r tag resolver accepts not "'+s+'" style');e.dump=i}return!0}return!1}function eF(e,t,n,i,r,o,a){e.tag=null,e.dump=n,eG(e,n,!1)||eG(e,n,!0);var l,s=eL.call(e.dump),u=i;i&&(i=e.flowLevel<0||e.flowLevel>t);var c,p,d,g="[object Object]"===s||"[object Array]"===s;if(g&&(d=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||d||2!==e.indent&&t>0)&&(r=!1),d&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(g&&d&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===s)i&&0!==Object.keys(e.dump).length?(!function(e,t,n,i){var r,o,a,l,s,u,c="",p=e.tag,d=Object.keys(n);if(!0===e.sortKeys)d.sort();else if("function"==typeof e.sortKeys)d.sort(e.sortKeys);else if(e.sortKeys)throw new M("sortKeys must be a boolean or a function");for(r=0,o=d.length;r1024)&&(e.dump&&10===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,s&&(u+=eC(e,t)),eF(e,t+1,l,!0,s)&&(e.dump&&10===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,c+=u));e.tag=p,e.dump=c||"{}"}(e,t,e.dump,r),d&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a,l,s="",u=e.tag,c=Object.keys(n);for(i=0,r=c.length;i1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),eF(e,t,a,!1,!1)&&(l+=e.dump,s+=l));e.tag=u,e.dump="{"+s+"}"}(e,t,e.dump),d&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===s)i&&0!==e.dump.length?(e.noArrayIndent&&!a&&t>0?eP(e,t-1,e.dump,r):eP(e,t,e.dump,r),d&&(e.dump="&ref_"+p+e.dump)):(!function(e,t,n){var i,r,o,a="",l=e.tag;for(i=0,r=n.length;i=65536?c+=2:c++){if(!eE(p=ek(e,c)))return 5;I=I&&ev(p,d,l),d=p}else{for(c=0;c=65536?c+=2:c++){if(10===(p=ek(e,c)))f=!0,M&&(g=g||c-j-1>i&&" "!==e[j+1],j=c);else if(!eE(p))return 5;I=I&&ev(p,d,l),d=p}g=g||M&&c-j-1>i&&" "!==e[j+1]}return f||g?n>9&&eO(e)?5:a?2===o?5:2:g?4:3:!I||a||r(e)?2===o?5:2:1}(l,o||e.flowLevel>-1&&t>=e.flowLevel,e.indent,i,function(t){return function(e,t){var n,i;for(n=0,i=e.implicitTypes.length;n"+ez(l,e.indent)+eZ(eD(function(e,t){for(var n,i,r,o=/(\n+)([^\n]*)/g,a=(n=-1!==(n=e.indexOf("\n"))?n:e.length,o.lastIndex=n,eY(e.slice(0,n),t)),l="\n"===e[0]||" "===e[0];r=o.exec(e);){var s=r[1],u=r[2];i=" "===u[0],a+=s+(l||i||""===u?"":"\n")+eY(u,t),l=i}return a}(l,i),n));case 5:return'"'+function(e){for(var t,n="",i=0,r=0;r=65536?r+=2:r++)!(t=ew[i=ek(e,r)])&&eE(i)?(n+=e[r],i>=65536&&(n+=e[r+1])):n+=t||function(e){var t,n,i;if(t=e.toString(16).toUpperCase(),e<=255)n="x",i=2;else if(e<=65535)n="u",i=4;else if(e<=4294967295)n="U",i=8;else throw new M("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+f.repeat("0",i-t.length)+t}(i);return n}(l)+'"';default:throw new M("impossible error: invalid scalar style")}}());else{if("[object Undefined]"===s||e.skipInvalid)return!1;throw new M("unacceptable kind of an object to dump "+s)}null!==e.tag&&"?"!==e.tag&&(c=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),c="!"===e.tag[0]?"!"+c:"tag:yaml.org,2002:"===c.slice(0,18)?"!!"+c.slice(18):"!<"+c+">",e.dump=c+" "+e.dump)}return!0}function eU(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}eU("safeLoad","load"),eU("safeLoadAll","loadAll"),eU("safeDump","dump");var eQ=n(67294),eB=n(73660),eW=n(9966),eH=n(28538),eR=n(94935),e_=n(45697),eJ=n.n(e_),eV=n(53043),eX=n(10382),eq=n(58046),e$=n(80594),eK=n(63885),e0=n(69216),e1=n(99514),e4=n(99900),e2=n(6714),e3=n(49360),e5=n(89262),e9=n(39626),e6=n(77347),e8=n(90645),e7=n(48878),te=function(){return(te=Object.assign||function(e){for(var t,n=1,i=arguments.length;n0&&n.size>1048576*f){var l=b||"The size of files cannot exceed ".concat(f,"Mb");return W(l),i&&i(l)}if(T&&T.length>0&&!(-1!==T.findIndex(function(e){return e.toLowerCase()===o.toLowerCase()}))){var s="Extension .".concat(o," has been excluded");return W(s),i&&i(s)}a||(et.push(n),en(et)),r.addEventListener("load",function(){$.push({name:n.name,size:n.size,path:this.result,type:n.type,contentType:n.type,lastModified:n.lastModified,extension:null==o?void 0:o.toLowerCase()}),K(tt([],$,!0))},!1),r.readAsDataURL(n)}(r);return e.target.value="",!0}catch(e){W(e.toString())}return!1},es=function(e,t){if(W(null),ei.current&&(ei.current.value=""),"number"!=typeof t){K([]),en([]);return}if(t<0||t>$.length-1)return console.error("item's index not found...");var n=te({},$[t]);return null==$||$.splice(t,1),null==et||et.splice(t,1),K(tt([],$,!0)),en(tt([],et,!0)),n},eu=(0,eQ.useCallback)(function(e){e.preventDefault(),X(!0)},[]),ec=(0,eQ.useCallback)(function(e){e.stopPropagation(),e.preventDefault()},[]),ep=(0,eQ.useCallback)(function(e){var t;e.stopPropagation(),e.preventDefault(),X(!1),_({event:e,files:null===(t=e.dataTransfer)||void 0===t?void 0:t.files})},[]),ed=(0,eQ.useCallback)(function(){X(!1)},[]),ef=function(){return{addFile:el,removeFile:es,input:ei.current,files:a?$:et}};(0,eQ.useEffect)(function(){ei.current&&x&&"function"==typeof x&&x(ef())},[ei.current]),(0,eQ.useEffect)(function(){var e=eo.current;!e||e.ondrop||r||(e.ondrop=ep,e.ondragend=ed,e.ondragover=ec,e.ondragenter=eu)},[eo.current]),(0,eQ.useEffect)(function(){I&&I.length>0&&$.length!==I.length&&K(I)},[I]),(0,eQ.useEffect)(function(){(null==R?void 0:R.event)&&(null==R?void 0:R.files)&&(el(R.event,R.files),_(null)),h&&(h(a?$:et),x&&x(ef()))},[$,R]);var eg=V?O.palette.secondary.light:O.palette.primary.light;return eQ.createElement(eQ.Fragment,null,eQ.createElement(e0.Z,te({sx:{p:1},elevation:0,ref:eo,variant:"outlined"},Z),eQ.createElement(eq.Z,{gutterBottom:!0,component:"div",color:"textSecondary",sx:{display:"flex"}},eQ.createElement(eV.Z,{sx:{flexGrow:1,fontSize:12}},t),(null==$?void 0:$.length)>0&&eQ.createElement(eV.Z,{sx:{fontSize:12}},$.length,N>0&&"/".concat(N)," file",(null==$?void 0:$.length)>1&&"s"," joined")),eQ.createElement(e0.Z,te({elevation:0,sx:{p:1,transition:500,background:eg}},z),eQ.createElement(e1.ZP,{container:!0,spacing:2,alignItems:"center",justifyContent:"center"},w&&eQ.createElement(e1.ZP,te({item:!0,xs:12,sm:3,md:4,sx:{textAlign:"center",mt:{xs:-3,sm:2}}},A),eQ.createElement("img",{alt:l,src:o||"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgMzAwIiB3aWR0aD0iNDA2IiBoZWlnaHQ9IjMwNiIgY2xhc3M9ImlsbHVzdHJhdGlvbiBzdHlsZXNfaWxsdXN0cmF0aW9uVGFibGV0X18xRFdPYSI+PHRpdGxlPiMxNiBmaWxlcyBhbmQgZm9sZGVyczwvdGl0bGU+PHBhdGggZD0iTTE0Ny43MSwxNDcuN0gxNDAuOHYtMi43Nmg2LjkxYTMuNDQsMy40NCwwLDEsMCwwLTYuODhIMTQwLjhWMTM1LjNoNi45MWE2LjIsNi4yLDAsMSwxLDAsMTIuNFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMTQ3LjcxLDE0Ny43SDE0MC44di0yLjc2aDYuOTFhMy40NCwzLjQ0LDAsMSwwLDAtNi44OEgxNDAuOFYxMzUuM2g2LjkxYTYuMiw2LjIsMCwxLDEsMCwxMi40WiIgZmlsbD0iI2ZmZiIgb3BhY2l0eT0iMC42MSI+PC9wYXRoPjxlbGxpcHNlIGN4PSIxOTguNTYiIGN5PSIyNTYuOTkiIHJ4PSIxNDUuMDciIHJ5PSIyMC4xOCIgZmlsbD0iI2U2ZTZlNiIgb3BhY2l0eT0iMC40NSI+PC9lbGxpcHNlPjxwYXRoIGQ9Ik0yODguNzUsOTUuNjJjLTEuMzYsMjEuMDctMTEuNDIsNzMuNjEtNzkuNDMsNDQuMDZsMi4zNC02Ljk0czMzLjYxLDUuOTMsNDIuNS02LjU0YzcuNTItMTAuNTYsNy40LTQ1LjE5LDI0LTQzLjU0QTEyLjA5LDEyLjA5LDAsMCwxLDI4OC43NSw5NS42MloiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4Ljc1LDk1LjYyYy0xLjM2LDIxLjA3LTExLjQyLDczLjYxLTc5LjQzLDQ0LjA2bDIuMzQtNi45NHMzMy42MSw1LjkzLDQyLjUtNi41NGM3LjUyLTEwLjU2LDcuNC00NS4xOSwyNC00My41NEExMi4wOSwxMi4wOSwwLDAsMSwyODguNzUsOTUuNjJaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHBhdGggZD0iTTIyNi4xNSw1Ni4zNnMxLjM4LDcuNTksNCwxMi4xOGEzLjg3LDMuODcsMCwwLDAsNS4zLDEuNDVjMi4zLTEuMzQsNS0zLjgxLDQuNzYtOGwuNDUtNy4xMWE2LjkxLDYuOTEsMCwwLDAtNC44OS02LjMzQzIzMC43Miw0Ni43MSwyMjUuMDgsNTEuNzgsMjI2LjE1LDU2LjM2WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwb2x5Z29uIHBvaW50cz0iMjQwLjcyIDU3LjIyIDI1NS42OSA3Mi4zMyAyNDYuNzUgODIuMDQgMjM3LjM2IDYzLjk4IDI0MC43MiA1Ny4yMiIgZmlsbD0iI2Y0YTI4YyI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yMzUuOCw2MC41OHMtLjczLTIuODgsMS40OC0zLjI1LDMuMjksMy43OS40Nyw1WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwYXRoIGQ9Ik0yMjcuMjcsNjEuMSwyMjYsNjQuNTNhMS4yNCwxLjI0LDAsMCwwLDEuMjUsMS42N2wzLS4yNFoiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjY1LjIxLDI0OC43OXMtMiwzLjY1LTUuNTMsMy40MS01LDMtMiw0LjQxLDExLjc0LTEuNDIsMTEuNzQtMS40MmwuNTUtNS4wOFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMzA3LjM1LDI0NC4xNHMyLjI1LDMuNTEuMzIsNi40OS4yNiw1LjgzLDIuOTEsMy44Niw0LjQzLTExLDQuNDMtMTFsLTQuMTktMi45M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjM4Ljg3LDY2Ljg4QTE1LjU0LDE1LjU0LDAsMCwwLDI0MC4xOCw2MlMyNDYsNjcuMzgsMjQyLjEsNzMuMVoiIGZpbGw9IiNjZTgxNzIiIG9wYWNpdHk9IjAuMzEiPjwvcGF0aD48cG9seWdvbiBwb2ludHM9IjI2My40NiAxNzAuMzUgMjYzLjAzIDI1MC40NCAyNzMuMzkgMjUwLjQ0IDI4Ni42NSAxNjkuMzIgMjYzLjQ2IDE3MC4zNSIgZmlsbD0iIzI0Mjg1YiI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yNDguNDEsNzYuNDZhMzAuNjYsMzAuNjYsMCwwLDEsMTguMzEtNi43MWMxMC44LS4xMSw0MC45MiwxLjc0LDM4Ljg2LDM4LjU4LTEuNTMsMjcuMy0yLjMxLDU3LjUtMi4zMSw1Ny41bC0zOS42Niw2LjYxUzIxNi4yNCwxMDUuNDEsMjQ4LjQxLDc2LjQ2WiIgZmlsbD0iI2ZmZmZmZiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzQuNjIsODUuNzJzLTguMzEsMTAtMy4xNywyOC4yOCwxMi4zNiw0MC4zMy0xMi40LDUxLjQxbDQuNTYsNywzOS42Ni02LjYxLjUyLTE2Ljg4LDYuMzctMzEuMjZaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHJlY3QgeD0iMTA5LjI1IiB5PSIxNTAuMzEiIHdpZHRoPSI2Ni45NyIgaGVpZ2h0PSIxMDYuNjgiIGZpbGw9IiNhNWE1YTUiIG9wYWNpdHk9IjAuNzkiPjwvcmVjdD48cmVjdCB4PSIxMzguNDgiIHk9IjE1MC4zMSIgd2lkdGg9IjU3LjkzIiBoZWlnaHQ9IjEwNi42OCIgZmlsbD0iI2U2ZTZlNiI+PC9yZWN0Pjxwb2x5Z29uIHBvaW50cz0iMTc5LjggMTU2LjU1IDE3OC43NCAxNjIuNjYgMTUwLjMgMTYyLjY2IDE1MC4zIDE4OC40NCAxOTcuNiAxODguNDQgMTk3LjYgMTY3LjQ0IDE5Ny42IDE2Mi42NiAxOTcuNiAxNTYuNTUgMTc5LjggMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxNzkuOCAxNTYuNTUgMTc4Ljc0IDE2Mi42NiAxNTAuMyAxNjIuNjYgMTUwLjMgMTg4LjQ0IDE5Ny42IDE4OC40NCAxOTcuNiAxNjcuNDQgMTk3LjYgMTYyLjY2IDE5Ny42IDE1Ni41NSAxNzkuOCAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjE4Ni43MSAxNTYuNTUgMTg1LjY1IDE2Mi42NiAxNTcuMjEgMTYyLjY2IDE1Ny4yMSAxODguNDQgMjA0LjUxIDE4OC40NCAyMDQuNTEgMTY3LjQ0IDIwNC41MSAxNjIuNjYgMjA0LjUxIDE1Ni41NSAxODYuNzEgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIyNjIuOTggMTIxLjA3IDI2NC45MiAxMjguMjggMjM4Ljc4IDEzOS40OSAyNTEuMDcgMTY4LjE0IDI5NC41NSAxNDkuNDkgMjg0LjU0IDEyNi4xNiAyODIuMjYgMTIwLjg0IDI3OS4zNCAxMTQuMDUgMjYyLjk4IDEyMS4wNyIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMjYyLjk4IDEyMS4wNyAyNjQuOTIgMTI4LjI4IDIzOC43OCAxMzkuNDkgMjUxLjA3IDE2OC4xNCAyOTQuNTUgMTQ5LjQ5IDI4NC41NCAxMjYuMTYgMjgyLjI2IDEyMC44NCAyNzkuMzQgMTE0LjA1IDI2Mi45OCAxMjEuMDciIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjI2OS4zMyAxMTguMzQgMjcxLjI3IDEyNS41NiAyNDUuMTMgMTM2Ljc2IDI1Ny40MiAxNjUuNDEgMzAwLjg5IDE0Ni43NyAyOTAuODkgMTIzLjQzIDI4OC42MSAxMTguMTIgMjg1LjY5IDExMS4zMyAyNjkuMzMgMTE4LjM0IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxOTIuNDIgMTU2LjU1IDE5MS4zNiAxNjIuNjYgMTYyLjkzIDE2Mi42NiAxNjIuOTMgMTg4LjQ0IDIxMC4yMyAxODguNDQgMjEwLjIzIDE2Ny40NCAyMTAuMjMgMTYyLjY2IDIxMC4yMyAxNTYuNTUgMTkyLjQyIDE1Ni41NSIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMTkyLjQyIDE1Ni41NSAxOTEuMzYgMTYyLjY2IDE2Mi45MyAxNjIuNjYgMTYyLjkzIDE4OC40NCAyMTAuMjMgMTg4LjQ0IDIxMC4yMyAxNjcuNDQgMjEwLjIzIDE2Mi42NiAyMTAuMjMgMTU2LjU1IDE5Mi40MiAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMTIiPjwvcmVjdD48cmVjdCB4PSIxNjYuNDUiIHk9IjE0Ny4yMyIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjEuNDQgMjguOTEpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cG9seWdvbiBwb2ludHM9IjE5OS4zMyAxNTYuNTUgMTk4LjI3IDE2Mi42NiAxNjkuODQgMTYyLjY2IDE2OS44NCAxODguNDQgMjE3LjE0IDE4OC40NCAyMTcuMTQgMTY3LjQ0IDIxNy4xNCAxNjIuNjYgMjE3LjE0IDE1Ni41NSAxOTkuMzMgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHJlY3QgeD0iMTQ3LjY1IiB5PSIxNzAuMzciIHdpZHRoPSI3NC41NCIgaGVpZ2h0PSIyOS4xIiBmaWxsPSIjYTVhNWE1Ij48L3JlY3Q+PHBhdGggZD0iTTI5MS4xMywxMjRhMjEyLjI0LDIxMi4yNCwwLDAsMS0xNCwxNi4yNyw2My43OCw2My43OCwwLDAsMS0xMi42Nyw5LjkyYy0yLjY5LDEuNjUtNS41Miw0LjU5LTMuNjIsOS4xOWgxNC44MUwyOTUsMTMzLjEzWiIgb3BhY2l0eT0iMC4wOCI+PC9wYXRoPjxyZWN0IHg9IjE3MS4xNiIgeT0iMTcwLjM3IiB3aWR0aD0iNTEuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjE0Ny42NSIgeT0iMjEyLjkyIiB3aWR0aD0iNTkuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjEyOC4zOCIgeT0iMTMyLjMiIHdpZHRoPSIxNi44OSIgaGVpZ2h0PSIxOC40IiBmaWxsPSIjZmZmZmZmIj48L3JlY3Q+PGNpcmNsZSBjeD0iMTk3LjU3IiBjeT0iMTgzLjc1IiByPSI0LjA5IiBmaWxsPSIjYTVhNWE1Ij48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNzguMDQiIGN5PSIyMjYuMzEiIHI9IjQuMDkiIGZpbGw9IiNhNWE1YTUiPjwvY2lyY2xlPjxwYXRoIGQ9Ik0yMTEuMjMsMTM0YTIyLjE2LDIyLjE2LDAsMCwwLTguMjYsMS4yNWMtNC40MywxLjU2LTguNTMsNS41MS01LjM3LDEwLjEzLDIuNDQsMy41Niw1LjksMS43Miw3LjE5LTEuMTNzMi4wNy01LjYxLDQuNTMtNC41N1oiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzEuNDUsMTU1LjdzLTExLTEuMi0xMiwzLTEuNjgsNi43NC0xLjY4LDYuNzRhMzAuMSwzMC4xLDAsMCwwLDE1LjY2LTQuODJaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTMwMy4yNywxNjUuODNhMTA0Ljc4LDEwNC43OCwwLDAsMSwuMTgsMTUuMzhjLS4yNyw2LjMxLTEuOTEsMTYuODItMy4xNSwyNC4wOUEyMy4yMiwyMy4yMiwwLDAsMCwzMDMsMjIwLjZsMTAsMTcuNzktNy4yNiw3LjI0LTExLjkxLTE1LjQ4YTY0Ljg4LDY0Ljg4LDAsMCwxLTEyLjE2LTI3bC0zLjc5LTE5LjM0LTkuNTUtMTIuMTRaIiBmaWxsPSIjMjQyODViIj48L3BhdGg+PHBhdGggZD0iTTIyMS43NSw0Ny4zM3MtMy4wOSw3LjE0LDQuMjksNy40OSw3LjI5LTEuMTUsNy4yOS0xLjE1LjQ2LDkuNTQsNi44NSw4LjM1bDIuNjUtMi42OHMzLTEyLjE3LTIuMi0xNC44NEMyNDAuNjMsNDQuNSwyMzAuMjUsMzMuODMsMjIxLjc1LDQ3LjMzWiIgZmlsbD0iIzI0Mjg1YiI+PC9wYXRoPjxwYXRoIGQ9Ik0yMzUuNjgsNjEuNzNzLjM5LTYuMjIsMy44OS00LjY3UzI0MC43Niw2NS4zOSwyMzUuNjgsNjEuNzNaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTE0MC44LDEzMi4zczExLjg5LTcuNjMsMC0xOC4zLTE2LjU1LDE0LTI1LjIyLTIuNjcsMTMuMzMtMzQuNjYtMTEtMzZTOTUuNDcsNTguNjIsNzQuNTIsNTYuODEsNDcuOTEsOTIuMTEsNjMuOTEsOTQuNTZzMzEuMzQsMy40NCwyNywxOC43NywxMiwxOS41LDE5LjY3LDE1Ljc1LDE3LjgsMy4yMiwxNy44LDMuMjJaIiBmaWxsPSIjZTZlNmU2IiBvcGFjaXR5PSIwLjQ1Ij48L3BhdGg+PHBhdGggZD0iTTk4LDI0MnMtMTEuODUtMy4xOC0xNC40Ny0xNC4xOGMwLDAsMTguMzItMy43OCwxOC45MiwxNS4xNFoiIGZpbGw9IiNmZmZmZmYiIG9wYWNpdHk9IjAuNTgiPjwvcGF0aD48cGF0aCBkPSJNOTkuNDYsMjQwLjc4cy04LjMyLTEzLTEuMS0yNS4yOGMwLDAsMTQsOC43OSw3Ljg2LDI1LjI4WiIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC43MyI+PC9wYXRoPjxwYXRoIGQ9Ik0xMDEuNTksMjQwLjc4czQuMzEtMTMuODIsMTcuNS0xNi40OWMwLDAsMi41Miw5LTguNDgsMTYuNDlaIiBmaWxsPSIjZmZmZmZmIj48L3BhdGg+PHBvbHlnb24gcG9pbnRzPSI5My4wMSAyNDAuNTEgOTUuNDggMjU2LjkxIDExMC41OCAyNTYuOTEgMTEyLjc0IDI0MC41MSA5My4wMSAyNDAuNTEiIGZpbGw9IiMyNDI4NWIiPjwvcG9seWdvbj48L3N2Zz4=",width:ea.width,height:ea.height})),eQ.createElement(e1.ZP,te({item:!0,xs:12,sm:!0,md:!0,sx:{color:"#fff",textAlign:"center",mt:{xs:w?-4:0,sm:2}}},C),eQ.createElement(e4.Z,{smDown:!0},eQ.createElement(eq.Z,{variant:"h5"},eQ.createElement("b",null,n))),eQ.createElement(e4.Z,{smUp:!0},eQ.createElement(eq.Z,{variant:"h6"},eQ.createElement("b",null,n))),eQ.createElement(eq.Z,{variant:"caption"},u,eQ.createElement(p.Z,{size:"small",color:"secondary",variant:"outlined",disabled:r,onClick:function(){var e;return null===(e=ei.current)||void 0===e?void 0:e.click()},sx:{m:.5,color:O.palette.grey["50"],borderColor:O.palette.grey["50"],"&:hover":{borderColor:O.palette.grey["50"]}}},d),c),eQ.createElement("input",{type:"file",ref:ei,onChange:function(e){return el(e)},multiple:s,accept:j,style:{display:"none"}})))),B&&eQ.createElement(e2.Z,{color:"error",severity:"error",sx:{mt:1},onClose:function(){return W(null)}},B),(null==$?void 0:$.length)>0&&eQ.createElement(eQ.Fragment,null,eQ.createElement(ti,{component:"div",sx:{overflowY:"auto",mt:2,mr:-1,pr:1,height:E,maxHeight:S}},null==$?void 0:$.map(function(e,t){var n=(e.size/1024).toFixed(2)+" Kb";return e.size>1048576&&(n=(e.size/1048576).toFixed(2)+" Mb"),eQ.createElement(tn,{file:e,size:n,index:t,disabled:r,key:"upload-file--".concat(t),handleRemoveFile:es})})),eQ.createElement(eq.Z,{component:"div",align:"right",sx:{mt:1}},eQ.createElement(p.Z,{size:"small",disabled:r,onClick:es,ref:er},D||"Remove all")))))}function to(e){let[t,n]=eQ.useState([]),i=async t=>{if(0===t.length){e.onChange(null,null);return}let i=t[t.length-1],r=await i.arrayBuffer(),o=(new TextDecoder).decode(r),a=i.name.split(".").pop();try{let t="json"===a?JSON.parse(o):ey(o);e.onChange(t,null)}catch{e.onChange(null,"json"===a?"Invalid JSON file":"Invalid YAML file");return}t.length>1&&n([i])};return(0,r.jsx)(tr,{defaultFiles:t,onFilesChange:i,acceptedType:".json, .yaml",getBase64:!1,multiFile:!1,maxUploadFiles:1,title:"Swagger file uploader",header:"Drag and drop a Swagger file here",buttonLabel:"Click Here",rightLabel:"to select swagger.json/yaml file",buttonRemoveLabel:"Clear"})}function ta(e){let[t,n]=eQ.useState("sdk"),[f,g]=eQ.useState(!0),[M,j]=eQ.useState(!0),[I,h]=eQ.useState(null),[m,N]=eQ.useState(!1),y=t=>{e.onError?e.onError(t):alert(t)},L=async()=>{if(null!==I){N(!0);try{let e=await i[t]({document:I,e2e:M,simulate:f});!0===e.success?d.default.openProject({title:I.info?.title??"Nestia Editor",template:"node",files:e.data.files},{newWindow:!0,openFile:e.data.openFile,startScript:e.data.startScript}):y(JSON.stringify(e.errors,null,2))}catch(e){y(e instanceof Error?e.message:"unknown error")}N(!1)}};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(to,{onChange:(e,t)=>{h(e),null!==t&&y(t)}}),(0,r.jsx)("br",{}),(0,r.jsxs)(o.Z,{fullWidth:!0,style:{paddingLeft:15},children:[(0,r.jsx)(a.Z,{children:" Mode "}),(0,r.jsxs)(l.Z,{defaultValue:t,onChange:(e,t)=>n(t),style:{paddingLeft:15},children:[(0,r.jsx)(s.Z,{value:"sdk",control:(0,r.jsx)(u.Z,{}),label:"Software Development Kit"}),(0,r.jsx)(s.Z,{value:"nest",control:(0,r.jsx)(u.Z,{}),label:"NestJS Project"})]}),(0,r.jsx)(a.Z,{style:{paddingTop:20},children:" Options "}),(0,r.jsx)(s.Z,{label:"Mockup Simulator",style:{paddingTop:5,paddingLeft:15},control:(0,r.jsx)(c.Z,{checked:f,onChange:()=>g(!f)})}),(0,r.jsx)(s.Z,{label:"E2E Test Functions",style:{paddingLeft:15},control:(0,r.jsx)(c.Z,{checked:M,onChange:()=>j(!M)})})]}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)(p.Z,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:!0===m||null===I,onClick:()=>L(),children:m?"Generating...":"Generate Editor"})]})}tr.propTypes={getBase64:eJ().bool,maxUploadFiles:eJ().number,title:eJ().string,header:eJ().string,leftLabel:eJ().string,rightLabel:eJ().string,buttonLabel:eJ().string,multiFile:eJ().bool,disabled:eJ().bool,defaultFiles:eJ().array,maxFileSize:eJ().number,maxFilesContainerHeight:eJ().number,errorSizeMessage:eJ().string,imageSrc:eJ().string,imageSrcAlt:eJ().string,acceptedType:eJ().string,bannerProps:eJ().object,BannerProps:eJ().object,containerProps:eJ().object,ContainerProps:eJ().object,allowedExtensions:eJ().array,onError:eJ().func,onContextReady:eJ().func,onFilesChange:eJ().func,showPlaceholderImage:eJ().bool,LabelsGridProps:eJ().object,PlaceholderGridProps:eJ().object,placeholderImageDimension:eJ().object,PlaceholderImageDimension:eJ().object},tr.defaultProps={getBase64:!1,multiFile:!0,maxFileSize:0,maxUploadFiles:0,acceptedType:"*/*",defaultFiles:[],allowedExtensions:[],title:"My awesome file uploader",header:">[Drag to drop]<",leftLabel:"or",rightLabel:"to select files",buttonLabel:"click here",imageSrcAlt:"Placeholder image",maxFilesContainerHeight:300,showPlaceholderImage:!0,placeholderImageDimension:{},PlaceholderImageDimension:{},bannerProps:{},BannerProps:{},containerProps:{},ContainerProps:{},LabelsGridProps:{},PlaceholderGridProps:{}},function(e){e.nest=e=>t({openFile:"README.md,test/start.ts",startScript:["build:test,test",""],migrate:t=>t.nest(e)})(e),e.sdk=async e=>(console.log("NestiaEditorComposer.sdk()",e),t({openFile:"README.md,test/start.ts",startScript:["swagger","hello"],migrate:t=>t.sdk(e)})(e));let t=e=>async t=>{if(void 0!==t.files)return{success:!0,data:{files:t.files,openFile:e.openFile,startScript:e.startScript},errors:[]};let n=await eB.MigrateApplication.create(t.document);if(!1===n.success)return n;let i=n.data,{files:r}=e.migrate(i);for(let e of r)if(".ts"===e.file.substring(e.file.length-3))try{e.content=await (0,eR.WU)(e.content,{parser:"typescript",plugins:[eW.ZP,eH.Z]})}catch{}return{success:!0,data:{files:Object.fromEntries(r.map(e=>[[e.location,e.location.length?"/":"",e.file].join(""),e.content])),openFile:e.openFile,startScript:e.startScript},errors:[]}}}(i||(i={}))}}]); \ No newline at end of file diff --git a/_next/static/chunks/222-8d40a39db289a74d.js b/_next/static/chunks/222-302c23e7555515fb.js similarity index 99% rename from _next/static/chunks/222-8d40a39db289a74d.js rename to _next/static/chunks/222-302c23e7555515fb.js index 455e35851..bc313e80d 100644 --- a/_next/static/chunks/222-8d40a39db289a74d.js +++ b/_next/static/chunks/222-302c23e7555515fb.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[222],{91476:function(t,e,n){"use strict";function r(...t){return t.reduce((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)},()=>{})}n.d(e,{Z:function(){return r}})},39336:function(t,e,n){"use strict";function r(t,e=166){let n;function r(...o){clearTimeout(n),n=setTimeout(()=>{t.apply(this,o)},e)}return r.clear=()=>{clearTimeout(n)},r}n.d(e,{Z:function(){return r}})},17317:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(67294);function o(t,e){var n,o;return r.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},82690:function(t,e,n){"use strict";function r(t){return t&&t.ownerDocument||document}n.d(e,{Z:function(){return r}})},74161:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(82690);function o(t){return(0,r.Z)(t).defaultView||window}},19032:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(67294);function o({controlled:t,default:e,name:n,state:o="value"}){let{current:a}=r.useRef(void 0!==t),[i,c]=r.useState(e),l=r.useCallback(t=>{a||c(t)},[]);return[a?t:i,l]}},92996:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r,o=n(67294);let a=0,i=(r||(r=n.t(o,2)))["useId".toString()];function c(t){if(void 0!==i){let e=i();return null!=t?t:e}return function(t){let[e,n]=o.useState(t),r=t||e;return o.useEffect(()=>{null==e&&(a+=1,n(`mui-${a}`))},[e]),r}(t)}},47955:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(21180)},53043:function(t,e,n){"use strict";n.d(e,{Z:function(){return Z}});var r=n(87462),o=n(63366),a=n(67294),i=n(90512),c=n(49731),l=n(86523),u=n(39707),s=n(96682),d=n(85893);let p=["className","component"];var f=n(37078),m=n(96047),h=n(95038),v=n(4856);let g=(0,m.Z)();var Z=function(t={}){let{themeId:e,defaultTheme:n,defaultClassName:f="MuiBox-root",generateClassName:m}=t,h=(0,c.ZP)("div",{shouldForwardProp:t=>"theme"!==t&&"sx"!==t&&"as"!==t})(l.Z);return a.forwardRef(function(t,a){let c=(0,s.Z)(n),l=(0,u.Z)(t),{className:v,component:g="div"}=l,Z=(0,o.Z)(l,p);return(0,d.jsx)(h,(0,r.Z)({as:g,ref:a,className:(0,i.Z)(v,m?m(f):f),theme:e&&c[e]||c},Z))})}({themeId:h.Z,defaultTheme:g,defaultClassName:v.Z.root,generateClassName:f.Z.generate})},4856:function(t,e,n){"use strict";let r=(0,n(1588).Z)("MuiBox",["root"]);e.Z=r},73173:function(t,e,n){"use strict";var r=n(63366),o=n(87462),a=n(67294),i=n(90512),c=n(35971),l=n(94780),u=n(41796),s=n(89262),d=n(59145),p=n(11506),f=n(75228),m=n(46778),h=n(26855),v=n(88980),g=n(85893);let Z=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],x=t=>{let{color:e,disableElevation:n,fullWidth:r,size:a,variant:i,classes:c}=t,u={root:["root",i,"".concat(i).concat((0,f.Z)(e)),"size".concat((0,f.Z)(a)),"".concat(i,"Size").concat((0,f.Z)(a)),"inherit"===e&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,f.Z)(a))],endIcon:["endIcon","iconSize".concat((0,f.Z)(a))]},s=(0,l.Z)(u,m.F,c);return(0,o.Z)({},c,s)},b=t=>(0,o.Z)({},"small"===t.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===t.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===t.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),y=(0,s.ZP)(p.Z,{shouldForwardProp:t=>(0,s.FO)(t)||"classes"===t,name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,e[n.variant],e["".concat(n.variant).concat((0,f.Z)(n.color))],e["size".concat((0,f.Z)(n.size))],e["".concat(n.variant,"Size").concat((0,f.Z)(n.size))],"inherit"===n.color&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})(t=>{var e,n;let{theme:r,ownerState:a}=t,i="light"===r.palette.mode?r.palette.grey[300]:r.palette.grey[800],c="light"===r.palette.mode?r.palette.grey.A100:r.palette.grey[700];return(0,o.Z)({},r.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create(["background-color","box-shadow","border-color","color"],{duration:r.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===a.variant&&"inherit"!==a.color&&{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[a.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(r.palette[a.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===a.variant&&"inherit"!==a.color&&{border:"1px solid ".concat((r.vars||r).palette[a.color].main),backgroundColor:r.vars?"rgba(".concat(r.vars.palette[a.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(r.palette[a.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===a.variant&&{backgroundColor:r.vars?r.vars.palette.Button.inheritContainedHoverBg:c,boxShadow:(r.vars||r).shadows[4],"@media (hover: none)":{boxShadow:(r.vars||r).shadows[2],backgroundColor:(r.vars||r).palette.grey[300]}},"contained"===a.variant&&"inherit"!==a.color&&{backgroundColor:(r.vars||r).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(r.vars||r).palette[a.color].main}}),"&:active":(0,o.Z)({},"contained"===a.variant&&{boxShadow:(r.vars||r).shadows[8]}),["&.".concat(m.Z.focusVisible)]:(0,o.Z)({},"contained"===a.variant&&{boxShadow:(r.vars||r).shadows[6]}),["&.".concat(m.Z.disabled)]:(0,o.Z)({color:(r.vars||r).palette.action.disabled},"outlined"===a.variant&&{border:"1px solid ".concat((r.vars||r).palette.action.disabledBackground)},"contained"===a.variant&&{color:(r.vars||r).palette.action.disabled,boxShadow:(r.vars||r).shadows[0],backgroundColor:(r.vars||r).palette.action.disabledBackground})},"text"===a.variant&&{padding:"6px 8px"},"text"===a.variant&&"inherit"!==a.color&&{color:(r.vars||r).palette[a.color].main},"outlined"===a.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===a.variant&&"inherit"!==a.color&&{color:(r.vars||r).palette[a.color].main,border:r.vars?"1px solid rgba(".concat(r.vars.palette[a.color].mainChannel," / 0.5)"):"1px solid ".concat((0,u.Fq)(r.palette[a.color].main,.5))},"contained"===a.variant&&{color:r.vars?r.vars.palette.text.primary:null==(e=(n=r.palette).getContrastText)?void 0:e.call(n,r.palette.grey[300]),backgroundColor:r.vars?r.vars.palette.Button.inheritContainedBg:i,boxShadow:(r.vars||r).shadows[2]},"contained"===a.variant&&"inherit"!==a.color&&{color:(r.vars||r).palette[a.color].contrastText,backgroundColor:(r.vars||r).palette[a.color].main},"inherit"===a.color&&{color:"inherit",borderColor:"currentColor"},"small"===a.size&&"text"===a.variant&&{padding:"4px 5px",fontSize:r.typography.pxToRem(13)},"large"===a.size&&"text"===a.variant&&{padding:"8px 11px",fontSize:r.typography.pxToRem(15)},"small"===a.size&&"outlined"===a.variant&&{padding:"3px 9px",fontSize:r.typography.pxToRem(13)},"large"===a.size&&"outlined"===a.variant&&{padding:"7px 21px",fontSize:r.typography.pxToRem(15)},"small"===a.size&&"contained"===a.variant&&{padding:"4px 10px",fontSize:r.typography.pxToRem(13)},"large"===a.size&&"contained"===a.variant&&{padding:"8px 22px",fontSize:r.typography.pxToRem(15)},a.fullWidth&&{width:"100%"})},t=>{let{ownerState:e}=t;return e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(m.Z.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(m.Z.disabled)]:{boxShadow:"none"}}}),S=(0,s.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.startIcon,e["iconSize".concat((0,f.Z)(n.size))]]}})(t=>{let{ownerState:e}=t;return(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},b(e))}),w=(0,s.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.endIcon,e["iconSize".concat((0,f.Z)(n.size))]]}})(t=>{let{ownerState:e}=t;return(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},b(e))}),z=a.forwardRef(function(t,e){let n=a.useContext(h.Z),l=a.useContext(v.Z),u=(0,c.Z)(n,t),s=(0,d.Z)({props:u,name:"MuiButton"}),{children:p,color:f="primary",component:m="button",className:b,disabled:z=!1,disableElevation:k=!1,disableFocusRipple:C=!1,endIcon:M,focusVisibleClassName:I,fullWidth:N=!1,size:W="medium",startIcon:R,type:B,variant:P="text"}=s,E=(0,r.Z)(s,Z),T=(0,o.Z)({},s,{color:f,component:m,disabled:z,disableElevation:k,disableFocusRipple:C,fullWidth:N,size:W,type:B,variant:P}),O=x(T),j=R&&(0,g.jsx)(S,{className:O.startIcon,ownerState:T,children:R}),F=M&&(0,g.jsx)(w,{className:O.endIcon,ownerState:T,children:M});return(0,g.jsxs)(y,(0,o.Z)({ownerState:T,className:(0,i.Z)(n.className,O.root,b,l||""),component:m,disabled:z,focusRipple:!C,focusVisibleClassName:(0,i.Z)(O.focusVisible,I),ref:e,type:B},E,{classes:O,children:[j,p,F]}))});e.Z=z},46778:function(t,e,n){"use strict";n.d(e,{F:function(){return a}});var r=n(1588),o=n(34867);function a(t){return(0,o.ZP)("MuiButton",t)}let i=(0,r.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);e.Z=i},88980:function(t,e,n){"use strict";let r=n(67294).createContext(void 0);e.Z=r},26855:function(t,e,n){"use strict";let r=n(67294).createContext({});e.Z=r},99514:function(t,e,n){"use strict";n.d(e,{ZP:function(){return y}});var r=n(63366),o=n(87462),a=n(67294),i=n(90512),c=n(95408),l=n(39707),u=n(94780),s=n(89262),d=n(59145),p=n(49360);let f=a.createContext();var m=n(84501),h=n(85893);let v=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function g(t){let e=parseFloat(t);return"".concat(e).concat(String(t).replace(String(e),"")||"px")}function Z(t){let{breakpoints:e,values:n}=t,r="";Object.keys(n).forEach(t=>{""===r&&0!==n[t]&&(r=t)});let o=Object.keys(e).sort((t,n)=>e[t]-e[n]);return o.slice(0,o.indexOf(r))}let x=(0,s.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t,{container:r,direction:o,item:a,spacing:i,wrap:c,zeroMinWidth:l,breakpoints:u}=n,s=[];r&&(s=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||t<=0)return[];if("string"==typeof t&&!Number.isNaN(Number(t))||"number"==typeof t)return[n["spacing-xs-".concat(String(t))]];let r=[];return e.forEach(e=>{let o=t[e];Number(o)>0&&r.push(n["spacing-".concat(e,"-").concat(String(o))])}),r}(i,u,e));let d=[];return u.forEach(t=>{let r=n[t];r&&d.push(e["grid-".concat(t,"-").concat(String(r))])}),[e.root,r&&e.container,a&&e.item,l&&e.zeroMinWidth,...s,"row"!==o&&e["direction-xs-".concat(String(o))],"wrap"!==c&&e["wrap-xs-".concat(String(c))],...d]}})(t=>{let{ownerState:e}=t;return(0,o.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})},function(t){let{theme:e,ownerState:n}=t,r=(0,c.P$)({values:n.direction,breakpoints:e.breakpoints.values});return(0,c.k9)({theme:e},r,t=>{let e={flexDirection:t};return 0===t.indexOf("column")&&(e["& > .".concat(m.Z.item)]={maxWidth:"none"}),e})},function(t){let{theme:e,ownerState:n}=t,{container:r,rowSpacing:o}=n,a={};if(r&&0!==o){let t;let n=(0,c.P$)({values:o,breakpoints:e.breakpoints.values});"object"==typeof n&&(t=Z({breakpoints:e.breakpoints.values,values:n})),a=(0,c.k9)({theme:e},n,(n,r)=>{var o;let a=e.spacing(n);return"0px"!==a?{marginTop:"-".concat(g(a)),["& > .".concat(m.Z.item)]:{paddingTop:g(a)}}:null!=(o=t)&&o.includes(r)?{}:{marginTop:0,["& > .".concat(m.Z.item)]:{paddingTop:0}}})}return a},function(t){let{theme:e,ownerState:n}=t,{container:r,columnSpacing:o}=n,a={};if(r&&0!==o){let t;let n=(0,c.P$)({values:o,breakpoints:e.breakpoints.values});"object"==typeof n&&(t=Z({breakpoints:e.breakpoints.values,values:n})),a=(0,c.k9)({theme:e},n,(n,r)=>{var o;let a=e.spacing(n);return"0px"!==a?{width:"calc(100% + ".concat(g(a),")"),marginLeft:"-".concat(g(a)),["& > .".concat(m.Z.item)]:{paddingLeft:g(a)}}:null!=(o=t)&&o.includes(r)?{}:{width:"100%",marginLeft:0,["& > .".concat(m.Z.item)]:{paddingLeft:0}}})}return a},function(t){let e,{theme:n,ownerState:r}=t;return n.breakpoints.keys.reduce((t,a)=>{let i={};if(r[a]&&(e=r[a]),!e)return t;if(!0===e)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===e)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{let l=(0,c.P$)({values:r.columns,breakpoints:n.breakpoints.values}),u="object"==typeof l?l[a]:l;if(null==u)return t;let s="".concat(Math.round(e/u*1e8)/1e6,"%"),d={};if(r.container&&r.item&&0!==r.columnSpacing){let t=n.spacing(r.columnSpacing);if("0px"!==t){let e="calc(".concat(s," + ").concat(g(t),")");d={flexBasis:e,maxWidth:e}}}i=(0,o.Z)({flexBasis:s,flexGrow:0,maxWidth:s},d)}return 0===n.breakpoints.values[a]?Object.assign(t,i):t[n.breakpoints.up(a)]=i,t},{})}),b=t=>{let{classes:e,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:c,breakpoints:l}=t,s=[];n&&(s=function(t,e){if(!t||t<=0)return[];if("string"==typeof t&&!Number.isNaN(Number(t))||"number"==typeof t)return["spacing-xs-".concat(String(t))];let n=[];return e.forEach(e=>{let r=t[e];if(Number(r)>0){let t="spacing-".concat(e,"-").concat(String(r));n.push(t)}}),n}(a,l));let d=[];l.forEach(e=>{let n=t[e];n&&d.push("grid-".concat(e,"-").concat(String(n)))});let p={root:["root",n&&"container",o&&"item",c&&"zeroMinWidth",...s,"row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==i&&"wrap-xs-".concat(String(i)),...d]};return(0,u.Z)(p,m.H,e)};var y=a.forwardRef(function(t,e){let n=(0,d.Z)({props:t,name:"MuiGrid"}),{breakpoints:c}=(0,p.Z)(),u=(0,l.Z)(n),{className:s,columns:m,columnSpacing:g,component:Z="div",container:y=!1,direction:S="row",item:w=!1,rowSpacing:z,spacing:k=0,wrap:C="wrap",zeroMinWidth:M=!1}=u,I=(0,r.Z)(u,v),N=z||k,W=g||k,R=a.useContext(f),B=y?m||12:R,P={},E=(0,o.Z)({},I);c.keys.forEach(t=>{null!=I[t]&&(P[t]=I[t],delete E[t])});let T=(0,o.Z)({},u,{columns:B,container:y,direction:S,item:w,rowSpacing:N,columnSpacing:W,wrap:C,zeroMinWidth:M,spacing:k},P,{breakpoints:c.keys}),O=b(T);return(0,h.jsx)(f.Provider,{value:B,children:(0,h.jsx)(x,(0,o.Z)({ownerState:T,className:(0,i.Z)(O.root,s),as:Z,ref:e},E))})})},84501:function(t,e,n){"use strict";n.d(e,{H:function(){return a}});var r=n(1588),o=n(34867);function a(t){return(0,o.ZP)("MuiGrid",t)}let i=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],c=(0,r.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(t=>"spacing-xs-".concat(t)),...["column-reverse","column","row-reverse","row"].map(t=>"direction-xs-".concat(t)),...["nowrap","wrap-reverse","wrap"].map(t=>"wrap-xs-".concat(t)),...i.map(t=>"grid-xs-".concat(t)),...i.map(t=>"grid-sm-".concat(t)),...i.map(t=>"grid-md-".concat(t)),...i.map(t=>"grid-lg-".concat(t)),...i.map(t=>"grid-xl-".concat(t))]);e.Z=c},58046:function(t,e,n){"use strict";var r=n(63366),o=n(87462),a=n(67294),i=n(90512),c=n(39707),l=n(94780),u=n(89262),s=n(59145),d=n(75228),p=n(40655),f=n(85893);let m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],h=t=>{let{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=t,c={root:["root",a,"inherit"!==t.align&&"align".concat((0,d.Z)(e)),n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,l.Z)(c,p.f,i)},v=(0,u.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],"inherit"!==n.align&&e["align".concat((0,d.Z)(n.align))],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(t=>{let{theme:e,ownerState:n}=t;return(0,o.Z)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&e.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})}),g={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=t=>Z[t]||t,b=a.forwardRef(function(t,e){let n=(0,s.Z)({props:t,name:"MuiTypography"}),a=x(n.color),l=(0,c.Z)((0,o.Z)({},n,{color:a})),{align:u="inherit",className:d,component:p,gutterBottom:Z=!1,noWrap:b=!1,paragraph:y=!1,variant:S="body1",variantMapping:w=g}=l,z=(0,r.Z)(l,m),k=(0,o.Z)({},l,{align:u,color:a,className:d,component:p,gutterBottom:Z,noWrap:b,paragraph:y,variant:S,variantMapping:w}),C=p||(y?"p":w[S]||g[S])||"span",M=h(k);return(0,f.jsx)(v,(0,o.Z)({as:C,ref:e,ownerState:k,className:(0,i.Z)(M.root,d)},z))});e.Z=b},40655:function(t,e,n){"use strict";n.d(e,{f:function(){return a}});var r=n(1588),o=n(34867);function a(t){return(0,o.ZP)("MuiTypography",t)}let i=(0,r.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);e.Z=i},49360:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}}),n(67294);var r=n(96682),o=n(17854),a=n(95038);function i(){let t=(0,r.Z)(o.Z);return t[a.Z]||t}},15368:function(t,e,n){"use strict";var r=n(91476);e.Z=r.Z},31837:function(t,e,n){"use strict";var r=n(39336);e.Z=r.Z},21180:function(t,e,n){"use strict";n.r(e),n.d(e,{capitalize:function(){return o.Z},createChainedFunction:function(){return a.Z},createSvgIcon:function(){return i.Z},debounce:function(){return c.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return u.Z},ownerDocument:function(){return s.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return p},setRef:function(){return f},unstable_ClassNameGenerator:function(){return y},unstable_useEnhancedEffect:function(){return m.Z},unstable_useId:function(){return h.Z},unsupportedProp:function(){return v},useControlled:function(){return g.Z},useEventCallback:function(){return Z.Z},useForkRef:function(){return x.Z},useIsFocusVisible:function(){return b.Z}});var r=n(37078),o=n(75228),a=n(15368),i=n(12921),c=n(31837),l=function(t,e){return()=>null},u=n(23516),s=n(96308),d=n(81603);n(87462);var p=function(t,e){return()=>null},f=n(27364).Z,m=n(23769),h=n(47309),v=function(t,e,n,r,o){return null},g=n(61890),Z=n(60174),x=n(28735),b=n(77004);let y={configure:t=>{r.Z.configure(t)}}},23516:function(t,e,n){"use strict";var r=n(17317);e.Z=r.Z},96308:function(t,e,n){"use strict";var r=n(82690);e.Z=r.Z},81603:function(t,e,n){"use strict";var r=n(74161);e.Z=r.Z},61890:function(t,e,n){"use strict";var r=n(19032);e.Z=r.Z},23769:function(t,e,n){"use strict";var r=n(73546);e.Z=r.Z},47309:function(t,e,n){"use strict";var r=n(92996);e.Z=r.Z},64836:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[222],{91476:function(t,e,n){"use strict";function r(...t){return t.reduce((t,e)=>null==e?t:function(...n){t.apply(this,n),e.apply(this,n)},()=>{})}n.d(e,{Z:function(){return r}})},39336:function(t,e,n){"use strict";function r(t,e=166){let n;function r(...o){clearTimeout(n),n=setTimeout(()=>{t.apply(this,o)},e)}return r.clear=()=>{clearTimeout(n)},r}n.d(e,{Z:function(){return r}})},17317:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(67294);function o(t,e){var n,o;return r.isValidElement(t)&&-1!==e.indexOf(null!=(n=t.type.muiName)?n:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},82690:function(t,e,n){"use strict";function r(t){return t&&t.ownerDocument||document}n.d(e,{Z:function(){return r}})},74161:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(82690);function o(t){return(0,r.Z)(t).defaultView||window}},19032:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(67294);function o({controlled:t,default:e,name:n,state:o="value"}){let{current:a}=r.useRef(void 0!==t),[i,c]=r.useState(e),l=r.useCallback(t=>{a||c(t)},[]);return[a?t:i,l]}},92996:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r,o=n(67294);let a=0,i=(r||(r=n.t(o,2)))["useId".toString()];function c(t){if(void 0!==i){let e=i();return null!=t?t:e}return function(t){let[e,n]=o.useState(t),r=t||e;return o.useEffect(()=>{null==e&&(a+=1,n(`mui-${a}`))},[e]),r}(t)}},47955:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(21180)},53043:function(t,e,n){"use strict";n.d(e,{Z:function(){return Z}});var r=n(87462),o=n(63366),a=n(67294),i=n(90512),c=n(49731),l=n(86523),u=n(39707),s=n(96682),d=n(85893);let p=["className","component"];var f=n(37078),m=n(96047),h=n(95038),v=n(4856);let g=(0,m.Z)();var Z=function(t={}){let{themeId:e,defaultTheme:n,defaultClassName:f="MuiBox-root",generateClassName:m}=t,h=(0,c.ZP)("div",{shouldForwardProp:t=>"theme"!==t&&"sx"!==t&&"as"!==t})(l.Z);return a.forwardRef(function(t,a){let c=(0,s.Z)(n),l=(0,u.Z)(t),{className:v,component:g="div"}=l,Z=(0,o.Z)(l,p);return(0,d.jsx)(h,(0,r.Z)({as:g,ref:a,className:(0,i.Z)(v,m?m(f):f),theme:e&&c[e]||c},Z))})}({themeId:h.Z,defaultTheme:g,defaultClassName:v.Z.root,generateClassName:f.Z.generate})},4856:function(t,e,n){"use strict";let r=(0,n(1588).Z)("MuiBox",["root"]);e.Z=r},73173:function(t,e,n){"use strict";var r=n(63366),o=n(87462),a=n(67294),i=n(90512),c=n(35971),l=n(94780),u=n(41796),s=n(89262),d=n(59145),p=n(11506),f=n(75228),m=n(46778),h=n(26855),v=n(88980),g=n(85893);let Z=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],x=t=>{let{color:e,disableElevation:n,fullWidth:r,size:a,variant:i,classes:c}=t,u={root:["root",i,"".concat(i).concat((0,f.Z)(e)),"size".concat((0,f.Z)(a)),"".concat(i,"Size").concat((0,f.Z)(a)),"inherit"===e&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize".concat((0,f.Z)(a))],endIcon:["endIcon","iconSize".concat((0,f.Z)(a))]},s=(0,l.Z)(u,m.F,c);return(0,o.Z)({},c,s)},b=t=>(0,o.Z)({},"small"===t.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===t.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===t.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),y=(0,s.ZP)(p.Z,{shouldForwardProp:t=>(0,s.FO)(t)||"classes"===t,name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,e[n.variant],e["".concat(n.variant).concat((0,f.Z)(n.color))],e["size".concat((0,f.Z)(n.size))],e["".concat(n.variant,"Size").concat((0,f.Z)(n.size))],"inherit"===n.color&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})(t=>{var e,n;let{theme:r,ownerState:a}=t,i="light"===r.palette.mode?r.palette.grey[300]:r.palette.grey[800],c="light"===r.palette.mode?r.palette.grey.A100:r.palette.grey[700];return(0,o.Z)({},r.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create(["background-color","box-shadow","border-color","color"],{duration:r.transitions.duration.short}),"&:hover":(0,o.Z)({textDecoration:"none",backgroundColor:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===a.variant&&"inherit"!==a.color&&{backgroundColor:r.vars?"rgba(".concat(r.vars.palette[a.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(r.palette[a.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===a.variant&&"inherit"!==a.color&&{border:"1px solid ".concat((r.vars||r).palette[a.color].main),backgroundColor:r.vars?"rgba(".concat(r.vars.palette[a.color].mainChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,u.Fq)(r.palette[a.color].main,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===a.variant&&{backgroundColor:r.vars?r.vars.palette.Button.inheritContainedHoverBg:c,boxShadow:(r.vars||r).shadows[4],"@media (hover: none)":{boxShadow:(r.vars||r).shadows[2],backgroundColor:(r.vars||r).palette.grey[300]}},"contained"===a.variant&&"inherit"!==a.color&&{backgroundColor:(r.vars||r).palette[a.color].dark,"@media (hover: none)":{backgroundColor:(r.vars||r).palette[a.color].main}}),"&:active":(0,o.Z)({},"contained"===a.variant&&{boxShadow:(r.vars||r).shadows[8]}),["&.".concat(m.Z.focusVisible)]:(0,o.Z)({},"contained"===a.variant&&{boxShadow:(r.vars||r).shadows[6]}),["&.".concat(m.Z.disabled)]:(0,o.Z)({color:(r.vars||r).palette.action.disabled},"outlined"===a.variant&&{border:"1px solid ".concat((r.vars||r).palette.action.disabledBackground)},"contained"===a.variant&&{color:(r.vars||r).palette.action.disabled,boxShadow:(r.vars||r).shadows[0],backgroundColor:(r.vars||r).palette.action.disabledBackground})},"text"===a.variant&&{padding:"6px 8px"},"text"===a.variant&&"inherit"!==a.color&&{color:(r.vars||r).palette[a.color].main},"outlined"===a.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===a.variant&&"inherit"!==a.color&&{color:(r.vars||r).palette[a.color].main,border:r.vars?"1px solid rgba(".concat(r.vars.palette[a.color].mainChannel," / 0.5)"):"1px solid ".concat((0,u.Fq)(r.palette[a.color].main,.5))},"contained"===a.variant&&{color:r.vars?r.vars.palette.text.primary:null==(e=(n=r.palette).getContrastText)?void 0:e.call(n,r.palette.grey[300]),backgroundColor:r.vars?r.vars.palette.Button.inheritContainedBg:i,boxShadow:(r.vars||r).shadows[2]},"contained"===a.variant&&"inherit"!==a.color&&{color:(r.vars||r).palette[a.color].contrastText,backgroundColor:(r.vars||r).palette[a.color].main},"inherit"===a.color&&{color:"inherit",borderColor:"currentColor"},"small"===a.size&&"text"===a.variant&&{padding:"4px 5px",fontSize:r.typography.pxToRem(13)},"large"===a.size&&"text"===a.variant&&{padding:"8px 11px",fontSize:r.typography.pxToRem(15)},"small"===a.size&&"outlined"===a.variant&&{padding:"3px 9px",fontSize:r.typography.pxToRem(13)},"large"===a.size&&"outlined"===a.variant&&{padding:"7px 21px",fontSize:r.typography.pxToRem(15)},"small"===a.size&&"contained"===a.variant&&{padding:"4px 10px",fontSize:r.typography.pxToRem(13)},"large"===a.size&&"contained"===a.variant&&{padding:"8px 22px",fontSize:r.typography.pxToRem(15)},a.fullWidth&&{width:"100%"})},t=>{let{ownerState:e}=t;return e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(m.Z.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(m.Z.disabled)]:{boxShadow:"none"}}}),S=(0,s.ZP)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.startIcon,e["iconSize".concat((0,f.Z)(n.size))]]}})(t=>{let{ownerState:e}=t;return(0,o.Z)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},b(e))}),w=(0,s.ZP)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.endIcon,e["iconSize".concat((0,f.Z)(n.size))]]}})(t=>{let{ownerState:e}=t;return(0,o.Z)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},b(e))}),z=a.forwardRef(function(t,e){let n=a.useContext(h.Z),l=a.useContext(v.Z),u=(0,c.Z)(n,t),s=(0,d.Z)({props:u,name:"MuiButton"}),{children:p,color:f="primary",component:m="button",className:b,disabled:z=!1,disableElevation:k=!1,disableFocusRipple:C=!1,endIcon:M,focusVisibleClassName:I,fullWidth:N=!1,size:W="medium",startIcon:R,type:B,variant:P="text"}=s,E=(0,r.Z)(s,Z),T=(0,o.Z)({},s,{color:f,component:m,disabled:z,disableElevation:k,disableFocusRipple:C,fullWidth:N,size:W,type:B,variant:P}),O=x(T),j=R&&(0,g.jsx)(S,{className:O.startIcon,ownerState:T,children:R}),F=M&&(0,g.jsx)(w,{className:O.endIcon,ownerState:T,children:M});return(0,g.jsxs)(y,(0,o.Z)({ownerState:T,className:(0,i.Z)(n.className,O.root,b,l||""),component:m,disabled:z,focusRipple:!C,focusVisibleClassName:(0,i.Z)(O.focusVisible,I),ref:e,type:B},E,{classes:O,children:[j,p,F]}))});e.Z=z},46778:function(t,e,n){"use strict";n.d(e,{F:function(){return a}});var r=n(1588),o=n(34867);function a(t){return(0,o.ZP)("MuiButton",t)}let i=(0,r.Z)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);e.Z=i},88980:function(t,e,n){"use strict";let r=n(67294).createContext(void 0);e.Z=r},26855:function(t,e,n){"use strict";let r=n(67294).createContext({});e.Z=r},99514:function(t,e,n){"use strict";n.d(e,{ZP:function(){return y}});var r=n(63366),o=n(87462),a=n(67294),i=n(90512),c=n(95408),l=n(39707),u=n(94780),s=n(89262),d=n(59145),p=n(49360);let f=a.createContext();var m=n(84501),h=n(85893);let v=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function g(t){let e=parseFloat(t);return"".concat(e).concat(String(t).replace(String(e),"")||"px")}function Z(t){let{breakpoints:e,values:n}=t,r="";Object.keys(n).forEach(t=>{""===r&&0!==n[t]&&(r=t)});let o=Object.keys(e).sort((t,n)=>e[t]-e[n]);return o.slice(0,o.indexOf(r))}let x=(0,s.ZP)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t,{container:r,direction:o,item:a,spacing:i,wrap:c,zeroMinWidth:l,breakpoints:u}=n,s=[];r&&(s=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t||t<=0)return[];if("string"==typeof t&&!Number.isNaN(Number(t))||"number"==typeof t)return[n["spacing-xs-".concat(String(t))]];let r=[];return e.forEach(e=>{let o=t[e];Number(o)>0&&r.push(n["spacing-".concat(e,"-").concat(String(o))])}),r}(i,u,e));let d=[];return u.forEach(t=>{let r=n[t];r&&d.push(e["grid-".concat(t,"-").concat(String(r))])}),[e.root,r&&e.container,a&&e.item,l&&e.zeroMinWidth,...s,"row"!==o&&e["direction-xs-".concat(String(o))],"wrap"!==c&&e["wrap-xs-".concat(String(c))],...d]}})(t=>{let{ownerState:e}=t;return(0,o.Z)({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})},function(t){let{theme:e,ownerState:n}=t,r=(0,c.P$)({values:n.direction,breakpoints:e.breakpoints.values});return(0,c.k9)({theme:e},r,t=>{let e={flexDirection:t};return 0===t.indexOf("column")&&(e["& > .".concat(m.Z.item)]={maxWidth:"none"}),e})},function(t){let{theme:e,ownerState:n}=t,{container:r,rowSpacing:o}=n,a={};if(r&&0!==o){let t;let n=(0,c.P$)({values:o,breakpoints:e.breakpoints.values});"object"==typeof n&&(t=Z({breakpoints:e.breakpoints.values,values:n})),a=(0,c.k9)({theme:e},n,(n,r)=>{var o;let a=e.spacing(n);return"0px"!==a?{marginTop:"-".concat(g(a)),["& > .".concat(m.Z.item)]:{paddingTop:g(a)}}:null!=(o=t)&&o.includes(r)?{}:{marginTop:0,["& > .".concat(m.Z.item)]:{paddingTop:0}}})}return a},function(t){let{theme:e,ownerState:n}=t,{container:r,columnSpacing:o}=n,a={};if(r&&0!==o){let t;let n=(0,c.P$)({values:o,breakpoints:e.breakpoints.values});"object"==typeof n&&(t=Z({breakpoints:e.breakpoints.values,values:n})),a=(0,c.k9)({theme:e},n,(n,r)=>{var o;let a=e.spacing(n);return"0px"!==a?{width:"calc(100% + ".concat(g(a),")"),marginLeft:"-".concat(g(a)),["& > .".concat(m.Z.item)]:{paddingLeft:g(a)}}:null!=(o=t)&&o.includes(r)?{}:{width:"100%",marginLeft:0,["& > .".concat(m.Z.item)]:{paddingLeft:0}}})}return a},function(t){let e,{theme:n,ownerState:r}=t;return n.breakpoints.keys.reduce((t,a)=>{let i={};if(r[a]&&(e=r[a]),!e)return t;if(!0===e)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===e)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{let l=(0,c.P$)({values:r.columns,breakpoints:n.breakpoints.values}),u="object"==typeof l?l[a]:l;if(null==u)return t;let s="".concat(Math.round(e/u*1e8)/1e6,"%"),d={};if(r.container&&r.item&&0!==r.columnSpacing){let t=n.spacing(r.columnSpacing);if("0px"!==t){let e="calc(".concat(s," + ").concat(g(t),")");d={flexBasis:e,maxWidth:e}}}i=(0,o.Z)({flexBasis:s,flexGrow:0,maxWidth:s},d)}return 0===n.breakpoints.values[a]?Object.assign(t,i):t[n.breakpoints.up(a)]=i,t},{})}),b=t=>{let{classes:e,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:c,breakpoints:l}=t,s=[];n&&(s=function(t,e){if(!t||t<=0)return[];if("string"==typeof t&&!Number.isNaN(Number(t))||"number"==typeof t)return["spacing-xs-".concat(String(t))];let n=[];return e.forEach(e=>{let r=t[e];if(Number(r)>0){let t="spacing-".concat(e,"-").concat(String(r));n.push(t)}}),n}(a,l));let d=[];l.forEach(e=>{let n=t[e];n&&d.push("grid-".concat(e,"-").concat(String(n)))});let p={root:["root",n&&"container",o&&"item",c&&"zeroMinWidth",...s,"row"!==r&&"direction-xs-".concat(String(r)),"wrap"!==i&&"wrap-xs-".concat(String(i)),...d]};return(0,u.Z)(p,m.H,e)};var y=a.forwardRef(function(t,e){let n=(0,d.Z)({props:t,name:"MuiGrid"}),{breakpoints:c}=(0,p.Z)(),u=(0,l.Z)(n),{className:s,columns:m,columnSpacing:g,component:Z="div",container:y=!1,direction:S="row",item:w=!1,rowSpacing:z,spacing:k=0,wrap:C="wrap",zeroMinWidth:M=!1}=u,I=(0,r.Z)(u,v),N=z||k,W=g||k,R=a.useContext(f),B=y?m||12:R,P={},E=(0,o.Z)({},I);c.keys.forEach(t=>{null!=I[t]&&(P[t]=I[t],delete E[t])});let T=(0,o.Z)({},u,{columns:B,container:y,direction:S,item:w,rowSpacing:N,columnSpacing:W,wrap:C,zeroMinWidth:M,spacing:k},P,{breakpoints:c.keys}),O=b(T);return(0,h.jsx)(f.Provider,{value:B,children:(0,h.jsx)(x,(0,o.Z)({ownerState:T,className:(0,i.Z)(O.root,s),as:Z,ref:e},E))})})},84501:function(t,e,n){"use strict";n.d(e,{H:function(){return a}});var r=n(1588),o=n(34867);function a(t){return(0,o.ZP)("MuiGrid",t)}let i=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],c=(0,r.Z)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(t=>"spacing-xs-".concat(t)),...["column-reverse","column","row-reverse","row"].map(t=>"direction-xs-".concat(t)),...["nowrap","wrap-reverse","wrap"].map(t=>"wrap-xs-".concat(t)),...i.map(t=>"grid-xs-".concat(t)),...i.map(t=>"grid-sm-".concat(t)),...i.map(t=>"grid-md-".concat(t)),...i.map(t=>"grid-lg-".concat(t)),...i.map(t=>"grid-xl-".concat(t))]);e.Z=c},58046:function(t,e,n){"use strict";var r=n(63366),o=n(87462),a=n(67294),i=n(90512),c=n(39707),l=n(94780),u=n(89262),s=n(59145),d=n(75228),p=n(40655),f=n(85893);let m=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],h=t=>{let{align:e,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=t,c={root:["root",a,"inherit"!==t.align&&"align".concat((0,d.Z)(e)),n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,l.Z)(c,p.f,i)},v=(0,u.ZP)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],"inherit"!==n.align&&e["align".concat((0,d.Z)(n.align))],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(t=>{let{theme:e,ownerState:n}=t;return(0,o.Z)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&e.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})}),g={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Z={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},x=t=>Z[t]||t,b=a.forwardRef(function(t,e){let n=(0,s.Z)({props:t,name:"MuiTypography"}),a=x(n.color),l=(0,c.Z)((0,o.Z)({},n,{color:a})),{align:u="inherit",className:d,component:p,gutterBottom:Z=!1,noWrap:b=!1,paragraph:y=!1,variant:S="body1",variantMapping:w=g}=l,z=(0,r.Z)(l,m),k=(0,o.Z)({},l,{align:u,color:a,className:d,component:p,gutterBottom:Z,noWrap:b,paragraph:y,variant:S,variantMapping:w}),C=p||(y?"p":w[S]||g[S])||"span",M=h(k);return(0,f.jsx)(v,(0,o.Z)({as:C,ref:e,ownerState:k,className:(0,i.Z)(M.root,d)},z))});e.Z=b},40655:function(t,e,n){"use strict";n.d(e,{f:function(){return a}});var r=n(1588),o=n(34867);function a(t){return(0,o.ZP)("MuiTypography",t)}let i=(0,r.Z)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);e.Z=i},49360:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}}),n(67294);var r=n(96682),o=n(17854),a=n(95038);function i(){let t=(0,r.Z)(o.Z);return t[a.Z]||t}},15368:function(t,e,n){"use strict";var r=n(91476);e.Z=r.Z},31837:function(t,e,n){"use strict";var r=n(39336);e.Z=r.Z},21180:function(t,e,n){"use strict";n.r(e),n.d(e,{capitalize:function(){return o.Z},createChainedFunction:function(){return a.Z},createSvgIcon:function(){return i.Z},debounce:function(){return c.Z},deprecatedPropType:function(){return l},isMuiElement:function(){return u.Z},ownerDocument:function(){return s.Z},ownerWindow:function(){return d.Z},requirePropFactory:function(){return p},setRef:function(){return f},unstable_ClassNameGenerator:function(){return y},unstable_useEnhancedEffect:function(){return m.Z},unstable_useId:function(){return h.Z},unsupportedProp:function(){return v},useControlled:function(){return g.Z},useEventCallback:function(){return Z.Z},useForkRef:function(){return x.Z},useIsFocusVisible:function(){return b.Z}});var r=n(37078),o=n(75228),a=n(15368),i=n(12921),c=n(31837),l=function(t,e){return()=>null},u=n(23516),s=n(19194),d=n(81603);n(87462);var p=function(t,e){return()=>null},f=n(27364).Z,m=n(23769),h=n(47309),v=function(t,e,n,r,o){return null},g=n(61890),Z=n(60174),x=n(28735),b=n(77004);let y={configure:t=>{r.Z.configure(t)}}},23516:function(t,e,n){"use strict";var r=n(17317);e.Z=r.Z},19194:function(t,e,n){"use strict";var r=n(82690);e.Z=r.Z},81603:function(t,e,n){"use strict";var r=n(74161);e.Z=r.Z},61890:function(t,e,n){"use strict";var r=n(19032);e.Z=r.Z},23769:function(t,e,n){"use strict";var r=n(73546);e.Z=r.Z},47309:function(t,e,n){"use strict";var r=n(92996);e.Z=r.Z},64836:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports}}]); \ No newline at end of file diff --git a/_next/static/chunks/243-533b9953d7cf12ab.js b/_next/static/chunks/243-533b9953d7cf12ab.js new file mode 100644 index 000000000..93a7d0095 --- /dev/null +++ b/_next/static/chunks/243-533b9953d7cf12ab.js @@ -0,0 +1,11 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[243],{67412:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateAnalyzer=void 0;let o=r(95065);(n||(t.MigrateAnalyzer=n={})).analyze=e=>{let t=o.HttpMigration.application(e.document);return Object.assign(Object.assign({},e),{routes:t.routes,errors:t.errors})}},96352:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateControllerAnalyzer=void 0;let o=r(95669),i=r(18640);(n||(t.MigrateControllerAnalyzer=n={})).analyze=e=>{let t=new Map;for(let r of e){let e=r.emendedPath.split("/").filter(e=>":"!==e[0]).join("/");o.MapUtil.take(t)(e)(()=>[]).push(r)}let r=[...t.entries()].filter(([e,t])=>!!t.length).map(([e,t])=>({name:t[0].accessor.slice(0,-1).map(i.StringUtil.capitalize).join("")+"Controller",path:e,location:"src/controllers/"+t[0].accessor.slice(0,-2).join("/"),routes:t}));for(let e of r)"Controller"===e.name&&(e.name=i.StringUtil.escapeDuplicate([...r.map(e=>e.name)])("AppController"));return r}},85657:function(e,t){"use strict";var r,n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateFileArchiver=void 0,function(e){e.archive=e=>r=>o=>n(this,void 0,void 0,function*(){let n=new Set;for(let i of o)yield t(e.mkdir)(r)(n)(i.location),yield e.writeFile([r,i.location,i.file].join("/"),i.content)});let t=e=>t=>r=>o=>n(this,void 0,void 0,function*(){for(let n of o.split("/").map((e,t,r)=>r.slice(0,t+1).join("/")))if(!1===r.has(n))try{yield e([t,n].join("/")),r.add(n)}catch(e){}})}(r||(t.MigrateFileArchiver=r={}))},71517:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NEST_TEMPLATE=void 0,t.NEST_TEMPLATE=[{location:"",file:".env",content:"# BASIC SERVER INFO\r\nPROJECT_API_PORT=37001"},{location:"",file:".eslintrc.cjs",content:'module.exports = {\r\n root: true,\r\n plugins: ["@typescript-eslint", "deprecation"],\r\n extends: ["plugin:@typescript-eslint/recommended"],\r\n parser: "@typescript-eslint/parser",\r\n parserOptions: {\r\n project: ["tsconfig.json", "test/tsconfig.json"],\r\n },\r\n overrides: [\r\n {\r\n files: ["src/**/*.ts", "test/**/*.ts"],\r\n rules: {\r\n "@typescript-eslint/consistent-type-definitions": "off",\r\n "@typescript-eslint/no-empty-function": "off",\r\n "@typescript-eslint/no-empty-interface": "off",\r\n "@typescript-eslint/no-explicit-any": "off",\r\n "@typescript-eslint/no-inferrable-types": "off",\r\n "@typescript-eslint/no-namespace": "off",\r\n "@typescript-eslint/no-non-null-assertion": "off",\r\n "@typescript-eslint/no-unused-vars": "off",\r\n "@typescript-eslint/no-var-requires": "off",\r\n "@typescript-eslint/no-floating-promises": "error",\r\n "@typescript-eslint/no-require-imports": "off",\r\n "@typescript-eslint/no-empty-object-type": "off",\r\n },\r\n },\r\n ],\r\n};\r\n'},{location:".github/workflows",file:"build.yml",content:"name: build\r\non: \r\n push:\r\n paths:\r\n - 'src/**'\r\n - 'test/**'\r\n - 'package.json'\r\n pull_request:\r\n paths:\r\n - 'src/**'\r\n - 'test/**'\r\n - 'package.json'\r\njobs:\r\n Ubuntu:\r\n runs-on: ubuntu-latest\r\n steps:\r\n - uses: actions/checkout@v4\r\n - uses: actions/setup-node@v4\r\n with:\r\n node-version: 20.x\r\n - uses: pnpm/action-setup@v4\r\n with:\r\n version: 8\r\n \r\n - name: Install Backend-Server\r\n run: pnpm install\r\n\r\n - name: Build Swagger\r\n run: npm run build:swagger\r\n\r\n - name: Build SDK\r\n run: npm run build:sdk\r\n\r\n - name: Compile Backend-Server\r\n run: npm run build\r\n\r\n - name: Run Test Program\r\n run: npm run test\r\n\r\n - name: Test Webpack\r\n run: npm run webpack && npm run test:webpack\r\n\r\n - name: EsLint\r\n run: npm run eslint\r\n"},{location:"",file:".gitignore",content:".git/\r\nbin/\r\ndist/\r\nlib/\r\nnode_modules/\r\npackages/api/lib/\r\n\r\npackage-lock.json\r\npnpm-lock.yaml"},{location:"",file:".prettierignore",content:"dist\r\nbin\r\nnode_modules\r\npackages\r\nsrc/api/functional\r\nsrc/api/utils/NestiaSimulator.ts\r\nREADME.md\r\ntsconfig.json"},{location:".vscode",file:"launch.json",content:'{\r\n // Use IntelliSense to learn about possible Node.js debug attributes.\r\n // Hover to view descriptions of existing attributes.\r\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\r\n "version": "0.2.0",\r\n "configurations": [\r\n {\r\n "type": "node",\r\n "request": "launch",\r\n "name": "Backend Test",\r\n "program": "${workspaceRoot}/test/index.ts",\r\n "cwd": "${workspaceRoot}",\r\n "args": [\r\n // //----\r\n // // Not possible to reset DB in debugging mode\r\n // //\r\n // // Therefore, if you need DB reset, then do it \r\n // // through `npm run reset-for-debugging` command\r\n // //----\r\n // "--reset", "false",\r\n // "--mode", "local",\r\n \r\n //----\r\n // You can run specific test functions\r\n //\r\n // If you want to include or exclude multiple words,\r\n // then separate them with space character\r\n //----\r\n // "--include", "some-words-to-include",\r\n // "--exclude", "some-word another-word",\r\n ],\r\n "outFiles": ["${workspaceRoot}/bin/**/*.js"],\r\n }\r\n]\r\n}'},{location:".vscode",file:"settings.json",content:'{\r\n "editor.tabSize": 2,\r\n "editor.formatOnSave": true,\r\n "[javascript][typescript]": {\r\n "editor.defaultFormatter": "esbenp.prettier-vscode",\r\n "editor.codeActionsOnSave": {\r\n "source.fixAll.eslint": "explicit"\r\n },\r\n }\r\n}'},{location:"docs/benchmarks",file:"AMD Ryzen 9 7940HS w Radeon 780M Graphics.md",content:'# Benchmark Report\r\n> Generated by [`@nestia/benchmark`](https://github.com/samchon/nestia)\r\n\r\n - Specifications\r\n - CPU: AMD Ryzen 9 7940HS w/ Radeon 780M Graphics \r\n - RAM: 31 GB\r\n - NodeJS Version: v20.10.0\r\n - Backend Server: 1 core / 1 thread\r\n - Arguments\r\n - Count: 40,000\r\n - Threads: 4\r\n - Simultaneous: 32\r\n - Time\r\n - Start: 2024-07-26T05:37:51.497Z\r\n - Complete: 2024-07-26T05:39:34.390Z\r\n - Elapsed: 102,893 ms\r\n\r\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\r\n----|----|----|----|----|----|----\r\nTotal | 41,383 | 41,383 | 74.78 | 73.58 | 5 | 523\r\n\r\n> Unit: milliseconds\r\n\r\n## Memory Consumptions\r\n```mermaid\r\nxychart-beta\r\n x-axis "Time (second)"\r\n y-axis "Memory (MB)"\r\n line "Resident Set Size" [106, 115, 153, 177, 128, 130, 128, 135, 140, 148, 158, 195, 198, 202, 153, 157, 141, 146, 150, 162, 175, 191, 203, 216, 228, 216, 224, 233, 243, 250, 257, 263, 269, 277, 207, 211, 217, 189, 197, 206, 216, 178, 180, 159, 165, 158, 170, 167, 156, 164, 170, 162, 170, 157, 165, 157, 168, 181, 167, 166, 169, 179, 190, 173, 182, 189, 200, 181, 159, 171, 158, 164, 163, 165, 172, 179, 188, 170, 177, 168, 177, 188, 175, 190, 197, 178, 186, 195, 182, 187, 197, 180, 185, 196, 172, 167]\r\n line "Heap Total" [69, 75, 112, 136, 90, 90, 90, 96, 100, 106, 116, 151, 160, 164, 115, 118, 101, 106, 110, 121, 134, 147, 159, 172, 183, 175, 183, 192, 201, 206, 215, 220, 226, 234, 166, 170, 177, 147, 156, 164, 175, 137, 140, 119, 125, 118, 130, 126, 115, 123, 129, 121, 129, 118, 126, 117, 129, 142, 128, 125, 128, 139, 150, 133, 143, 149, 159, 141, 120, 131, 118, 124, 122, 124, 131, 137, 147, 131, 138, 128, 137, 148, 134, 150, 157, 137, 145, 154, 140, 145, 156, 140, 145, 157, 131, 126]\r\n line "Heap Used + External" [42, 45, 88, 112, 46, 53, 52, 68, 77, 86, 96, 133, 48, 56, 55, 61, 64, 54, 73, 92, 111, 129, 140, 142, 154, 66, 92, 104, 118, 125, 142, 168, 171, 191, 67, 89, 110, 76, 89, 101, 113, 67, 78, 68, 81, 78, 105, 81, 69, 71, 92, 67, 82, 70, 88, 72, 81, 101, 87, 94, 79, 82, 108, 81, 107, 107, 134, 87, 79, 97, 66, 90, 74, 83, 76, 92, 109, 69, 97, 85, 91, 111, 81, 99, 110, 79, 96, 102, 97, 106, 116, 95, 102, 108, 79, 92]\r\n line "Heap Used Only" [39, 40, 82, 105, 44, 49, 49, 64, 71, 79, 89, 124, 46, 52, 53, 57, 61, 51, 69, 88, 106, 123, 134, 134, 146, 63, 89, 99, 113, 119, 136, 161, 164, 184, 64, 86, 106, 73, 85, 97, 108, 64, 75, 65, 77, 75, 101, 78, 66, 68, 88, 64, 79, 68, 85, 70, 78, 98, 84, 91, 76, 79, 104, 78, 104, 103, 129, 84, 76, 94, 63, 87, 72, 80, 73, 88, 105, 67, 94, 83, 88, 108, 78, 96, 107, 76, 92, 98, 94, 103, 112, 93, 99, 105, 76, 90]\r\n```\r\n\r\n> - \uD83D\uDFE6 Resident Set Size\r\n> - \uD83D\uDFE2 Heap Total\r\n> - \uD83D\uDD34 Heap Used + External\r\n> - \uD83D\uDFE1 Heap Used Only\r\n\r\n## Endpoints\r\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\r\n----|----|----|----|----|----|----\r\nPATCH /bbs/articles/:section | 6,492 | 6,492 | 104.93 | 75.27 | 6 | 523\r\nGET /bbs/articles/:section/:id | 601 | 601 | 79.59 | 73.28 | 6 | 493\r\nPOST /bbs/articles/:section | 33,968 | 33,968 | 69.03 | 71.97 | 5 | 503\r\nPUT /bbs/articles/:section/:id | 322 | 322 | 63.94 | 56.27 | 7 | 371\r\n\r\n> Unit: milliseconds\r\n\r\n## Failures\r\nMethod | Path | Count | Failures\r\n-------|------|-------|----------'},{location:"",file:"LICENSE",content:'MIT License\r\n\r\nCopyright (c) 2022 Jeongho Nam\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the "Software"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n'},{location:"",file:"nestia.config.ts",content:'// nestia configuration file\r\nimport type sdk from "@nestia/sdk";\r\nimport { NestFactory } from "@nestjs/core";\r\n\r\nimport { MyModule } from "./src/MyModule";\r\n\r\nconst NESTIA_CONFIG: sdk.INestiaConfig = {\r\n input: () => NestFactory.create(MyModule),\r\n output: "src/api",\r\n swagger: {\r\n output: "packages/api/swagger.json",\r\n servers: [\r\n {\r\n url: "http://localhost:37001",\r\n description: "Local Server",\r\n },\r\n ],\r\n beautify: true,\r\n },\r\n distribute: "packages/api",\r\n primitive: false,\r\n simulate: true,\r\n};\r\nexport default NESTIA_CONFIG;\r\n'},{location:"",file:"package.json",content:'{\r\n "private": true,\r\n "name": "@ORGANIZATION/PROJECT",\r\n "version": "0.1.0",\r\n "description": "Starter kit of Nestia",\r\n "main": "lib/index.js",\r\n "scripts": {\r\n "benchmark": "node bin/test/benchmark",\r\n "test": "node bin/test",\r\n "test:webpack": "npm run webpack && node bin/test/webpack.js",\r\n "------------------------BUILDS------------------------": "",\r\n "build": "npm run build:sdk && npm run build:main && npm run build:test",\r\n "build:api": "rimraf packages/api/lib && nestia all && rimraf packages/api/lib && tsc -p packages/api/tsconfig.json && rollup -c packages/api/rollup.config.js",\r\n "build:main": "rimraf lib && tsc",\r\n "build:sdk": "rimraf src/api/functional && nestia sdk",\r\n "build:swagger": "npx nestia swagger",\r\n "build:test": "rimraf bin && tsc -p test/tsconfig.json",\r\n "dev": "npm run build:test -- --watch",\r\n "eslint": "eslint src && eslint test",\r\n "eslint:fix": "eslint --fix src && eslint --fix test",\r\n "prepare": "ts-patch install && typia patch",\r\n "prettier": "prettier src --write && prettier test --write",\r\n "------------------------WEBPACK------------------------": "",\r\n "webpack": "rimraf dist && webpack",\r\n "webpack:start": "cd dist && node dist/server",\r\n "webpack:test": "npm run webpack && node bin/test/webpack.js",\r\n "------------------------DEPLOYS------------------------": "",\r\n "package:api": "npm run build:api && cd packages/api && npm publish",\r\n "start": "node lib/executable/server",\r\n "start:swagger": "ts-node src/executable/swagger.ts"\r\n },\r\n "repository": {\r\n "type": "git",\r\n "url": "https://github.com/samchon/nestia-start"\r\n },\r\n "keywords": [\r\n "nestia",\r\n "template",\r\n "boilerplate"\r\n ],\r\n "author": "AUTHOR",\r\n "license": "MIT",\r\n "bugs": {\r\n "url": "https://github.com/samchon/nestia-start/issues"\r\n },\r\n "homepage": "https://github.com/samchon/nestia-start#readme",\r\n "devDependencies": {\r\n "@nestia/benchmark": "^0.2.3",\r\n "@nestia/e2e": "^0.7.0",\r\n "@nestia/sdk": "^3.14.0",\r\n "@rollup/plugin-terser": "^0.4.4",\r\n "@rollup/plugin-typescript": "^11.1.6",\r\n "@trivago/prettier-plugin-sort-imports": "^4.3.0",\r\n "@types/cli": "^0.11.21",\r\n "@types/cli-progress": "^3.11.5",\r\n "@types/express": "^4.17.21",\r\n "@types/inquirer": "^8.2.5",\r\n "@types/node": "^18.11.0",\r\n "@types/uuid": "^8.3.4",\r\n "@typescript-eslint/eslint-plugin": "^8.1.0",\r\n "@typescript-eslint/parser": "^8.1.0",\r\n "chalk": "^4.1.2",\r\n "cli": "^1.0.1",\r\n "cli-progress": "^3.12.0",\r\n "copy-webpack-plugin": "^11.0.0",\r\n "eslint-plugin-deprecation": "^3.0.0",\r\n "express": "^4.18.2",\r\n "nestia": "^6.1.0",\r\n "prettier": "^3.2.4",\r\n "prettier-plugin-prisma": "^5.0.0",\r\n "rimraf": "^3.0.2",\r\n "rollup": "^4.18.0",\r\n "source-map-support": "^0.5.21",\r\n "swagger-ui-express": "^5.0.0",\r\n "ts-loader": "^9.5.1",\r\n "ts-node": "^10.9.1",\r\n "ts-patch": "^3.2.1",\r\n "typescript": "5.5.4",\r\n "typescript-transform-paths": "^3.4.6",\r\n "webpack": "^5.89.0",\r\n "webpack-cli": "^5.1.4",\r\n "write-file-webpack-plugin": "^4.5.1"\r\n },\r\n "dependencies": {\r\n "@nestia/core": "^3.14.0",\r\n "@nestia/fetcher": "^3.14.0",\r\n "@nestjs/common": "^10.4.3",\r\n "@nestjs/core": "^10.4.3",\r\n "@nestjs/platform-express": "^10.4.3",\r\n "commander": "10.0.0",\r\n "dotenv": "^16.3.1",\r\n "dotenv-expand": "^10.0.0",\r\n "inquirer": "8.2.5",\r\n "serialize-error": "^4.1.0",\r\n "tgrid": "^1.0.2",\r\n "tstl": "^3.0.0",\r\n "typia": "^6.10.2",\r\n "uuid": "^9.0.0"\r\n },\r\n "stackblitz": {\r\n "startCommand": "npm run prepare && npm run build:test && npm run test"\r\n }\r\n}\r\n'},{location:"packages/api",file:".gitignore",content:"lib/\r\nnode_modules/\r\n\r\nswagger.json\r\nopenai.json"},{location:"packages/api",file:"LICENSE",content:'MIT License\r\n\r\nCopyright (c) 2021 ORGANIZATION\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the "Software"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.'},{location:"packages/api",file:"package.json",content:'{\r\n "name": "@ORGANIZATION/PROJECT-api",\r\n "version": "0.1.0",\r\n "description": "SDK library generated by Nestia",\r\n "main": "lib/index.js",\r\n "module": "lib/index.mjs",\r\n "typings": "lib/index.d.ts",\r\n "repository": {\r\n "type": "git",\r\n "url": "https://github.com/samchon/nestia"\r\n },\r\n "author": "Jeongho Nam",\r\n "license": "MIT",\r\n "bugs": {\r\n "url": "https://github.com/samchon/nestia/issues"\r\n },\r\n "homepage": "https://nestia.io",\r\n "files": [\r\n "lib",\r\n "package.json",\r\n "swagger.json",\r\n "openai.json",\r\n "README.md"\r\n ],\r\n "dependencies": {\r\n "@nestia/fetcher": "^3.14.0",\r\n "tgrid": "^1.0.3",\r\n "typia": "^6.10.2"\r\n }\r\n}'},{location:"packages/api",file:"README.md",content:"# SDK Library\r\nThis is a SDK library generated by [`nestia`](https://nestia.io).\r\n\r\nWith this SDK library, you can easily and safely interact with backend server.\r\n\r\nJust import and call some API functions like gif image below:\r\n\r\n![nestia-sdk-demo](https://user-images.githubusercontent.com/13158709/215004990-368c589d-7101-404e-b81b-fbc936382f05.gif)\r\n\r\n> Left is server code, and right is client code utilizing the SDK\r\n\r\n\r\n\r\n\r\n# What [`Nestia`](https://nestia.io) is:\r\n![Nestia Logo](https://nestia.io/logo.png)\r\n\r\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/samchon/nestia/blob/master/LICENSE)\r\n[![npm version](https://img.shields.io/npm/v/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\r\n[![Downloads](https://img.shields.io/npm/dm/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\r\n[![Build Status](https://github.com/samchon/nestia/workflows/build/badge.svg)](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\r\n[![Guide Documents](https://img.shields.io/badge/guide-documents-forestgreen)](https://nestia.io/docs/)\r\n\r\nNestia is a set of helper libraries for NestJS, supporting below features:\r\n\r\n - `@nestia/core`: super-fast decorators\r\n - `@nestia/sdk`:\r\n - Swagger generator evolved than ever\r\n - SDK library generator for clients\r\n - Mockup Simulator for client applications\r\n - Automatic E2E test functions generator\r\n - `@nestia/migrate`: migration from Swagger to NestJS\r\n - `nestia`: just CLI (command line interface) tool\r\n\r\n> **Note**\r\n> \r\n> - **Only one line** required, with pure TypeScript type\r\n> - Enhance performance **30x** up\r\n> - Runtime validator is **20,000x faster** than `class-validator`\r\n> - JSON serialization is **200x faster** than `class-transformer`\r\n> - Software Development Kit\r\n> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://trpc.io/)\r\n> - Mockup simulator means embedded backend simulator in SDK\r\n> - similar with [msw](https://mswjs.io/), but fully automated"},{location:"packages/api",file:"rollup.config.js",content:'const typescript = require("@rollup/plugin-typescript");\r\nconst terser = require("@rollup/plugin-terser");\r\n\r\nmodule.exports = {\r\n input: `${__dirname}/../../src/api/index.ts`,\r\n output: {\r\n dir: `${__dirname}/lib`,\r\n format: "esm",\r\n entryFileNames: "[name].mjs",\r\n sourcemap: true,\r\n },\r\n plugins: [\r\n typescript({\r\n tsconfig: `${__dirname}/tsconfig.json`,\r\n module: "ESNext",\r\n target: "ESNext",\r\n }),\r\n terser({\r\n format: {\r\n comments: "some",\r\n beautify: true,\r\n ecma: "2020",\r\n },\r\n compress: false,\r\n mangle: false,\r\n module: true,\r\n }),\r\n ],\r\n};\r\n'},{location:"packages/api",file:"tsconfig.json",content:'{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n /* Language and Environment */\r\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n "lib": [\r\n "DOM",\r\n "ES2015"\r\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "jsx": "preserve", /* Specify what JSX code is generated. */\r\n // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */// "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n // "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'\'s from expanding the number of files TypeScript should add to a project. */\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n /* Emit */\r\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */// "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */// "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. *//* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n // "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n // "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n {\r\n "transform": "typia/lib/transform"\r\n }\r\n ],\r\n "strictNullChecks": true\r\n },\r\n "include": [\r\n "../../src/api"\r\n ]\r\n}'},{location:"",file:"prettier.config.js",content:'module.exports = {\r\n // DEFAULT CONFIGURATIONS\r\n parser: "typescript",\r\n printWidth: 80,\r\n semi: true,\r\n tabWidth: 2,\r\n trailingComma: "all",\r\n\r\n // PLUG-IN CONFIGURATIONS\r\n plugins: ["@trivago/prettier-plugin-sort-imports"],\r\n importOrder: [\r\n "",\r\n "^@ORGANIZATION/PROJECT-api(.*)$",\r\n "^[./]",\r\n ],\r\n importOrderSeparation: true,\r\n importOrderSortSpecifiers: true,\r\n importOrderParserPlugins: ["decorators-legacy", "typescript"],\r\n};\r\n'},{location:"",file:"README.md",content:'# Nestia Template\r\n## Outline\r\n[![Build Status](https://github.com/samchon/nestia-start/workflows/build/badge.svg)](https://github.com/samchon/nestia-start/actions?query=workflow%3Abuild)\r\n\r\nA template repository for backend projects using [nestia](https://github.com/samchon/nestia).\r\n\r\nYou can create a new project from this boilerplate by running below command:\r\n\r\n```bash\r\nnpx nestia start \r\n```\r\n\r\nFor reference, this is a minimal boilerplate project concentrating only on [nestia](https://github.com/samchon/nestia) SDK generation. \r\n\r\nIf you wanna much detailed boilerplate project, visit [`@samchon/backend`](https://github.com/samchon/backend).\r\n\r\n\r\n\r\n\r\n## Directories and Files\r\nThis template project has categorized directories like below.\r\n\r\nAs you can see from the below, all of the Backend source files are placed into the [src](src/) directory. When you build the TypeScript source files, compiled files would be placed into the `lib` directory following the [tsconfig.json](tsconfig.json) configuration. Otherwise you build client [SDK](#32-sdk) library for npm publishing and their compiled files would be placed into the [packages](packages) directory.\r\n\r\n - [packages/api/](packages/api): SDK module built by `npm run build:api`\r\n - [src/](src): Backend source directory\r\n - [src/api/](src/api/): Client SDK that would be published to the `@ORGANIZATION/PROJECT-api`\r\n - [**src/api/functional/**](src/api/functional/): API functions generated by the [`nestia`](https://github.com/samchon/nestia)\r\n - [**src/api/structures/**](src/api/structures/): DTO structures\r\n - [src/controllers/](src/controllers/): Controller classes of the Main Program\r\n - [**test/**](test): Test Automation Program\r\n - [nestia.config.ts](nestia.config.ts): Configuration file of [`nestia`](https://github.com/samchon/nestia)\r\n - [package.json](package.json): NPM configuration\r\n - [tsconfig.json](tsconfig.json): TypeScript configuration for the main program\r\n - [tsconfig.api.json](tsconfig.api.json): TypeScript configuration for the SDK generation\r\n\r\n\r\n\r\n\r\n## NPM Run Commands\r\nList of the run commands defined in the [package.json](package.json) are like below:\r\n\r\n - Test\r\n - **`test`**: Run test automation program\r\n - `benchmark`: Run performance benchmark program\r\n - Build\r\n - `build`: Build everything\r\n - `build:main`: Build main program (`src` directory)\r\n - `build:test` Build test automation program (`test` directory)\r\n - `build:sdk`: Build SDK into main program only\r\n - `build:swagger`: Build Swagger Documents\r\n - **`dev`**: Incremental build for development (test program)\r\n - Deploy\r\n - `package:api`: Build and deploy the SDK library to the NPM\r\n - `start`: Start local NestJS server\r\n - Webpack\r\n - `webpack`: Run webpack bundler\r\n - `webpack:start`: Start the backend server built by webpack\r\n - `webpack:test`: Run test program to the webpack built\r\n\r\n\r\n\r\n\r\n## Specialization\r\nTransform this template project to be yours.\r\n\r\nWhen you\'ve created a new backend project through this template project, you can specialize it to be suitable for you by changing some words. Replace below words through IDE specific function like `Edit > Replace in Files` (*Ctrl + Shift + H*), who\'ve been supported by the VSCode.\r\n\r\n| Before | After\r\n|-----------------|----------------------------------------\r\n| ORGANIZATION | Your account or corporation name\r\n| PROJECT | Your own project name\r\n| AUTHOR | Author name\r\n| https://github.com/samchon/nestia-start | Your repository URL\r\n\r\n\r\n\r\n\r\n## Test Driven Development\r\nWith [nestia](https://github.com/samchon/nestia) helps to accomplish TDD (Test Driven Development). \r\n\r\nJust define DTOs and API controllers\' methods (only declarations) first. After the definitions, and build SDK (Software Development Kit) through [nestia](https://github.com/samchon/nestia) (`npm run build:sdk`). After buildling those SDK, develop test automation program using the SDK, following use-case scenarios in the framework of client side.\r\n\r\nDuring the test automation program development, you can find that which API is mis-designed or which requirement analysis is not exact. Development of the main program must be the last step after such validation process during TDD.\r\n\r\n> Visit the [samchon/backend](https://github.com/samchon/backend), then you may find much detailed story about this TDD.\r\n>\r\n> 1. Definitions\r\n> 2. SDK\r\n> 3. Test Automation Program\r\n> 4. Main Program\r\n\r\n```typescript\r\nimport {\r\n ArrayUtil,\r\n GaffComparator,\r\n RandomGenerator,\r\n TestValidator,\r\n} from "@nestia/e2e";\r\n\r\nimport api from "@ORGANIZATION/PROJECT-api/lib/index";\r\nimport { IBbsArticle } from "@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle";\r\nimport { IPage } from "@ORGANIZATION/PROJECT-api/lib/structures/common/IPage";\r\n\r\nexport async function test_api_bbs_article_index_sort(\r\n connection: api.IConnection,\r\n): Promise {\r\n // GENERATE 100 ARTICLES\r\n const section: string = "general";\r\n await ArrayUtil.asyncRepeat(100)(() =>\r\n api.functional.bbs.articles.create(connection, section, {\r\n writer: RandomGenerator.name(),\r\n title: RandomGenerator.paragraph(5)(),\r\n body: RandomGenerator.content(8)()(),\r\n format: "txt",\r\n files: [],\r\n password: RandomGenerator.alphabets(8),\r\n }),\r\n );\r\n\r\n // PREPARE VALIDATOR\r\n const validator = TestValidator.sort("BbsArticleProvider.index()")(async (\r\n sort: IPage.Sort,\r\n ) => {\r\n const page: IPage =\r\n await api.functional.bbs.articles.index(connection, section, {\r\n limit: 100,\r\n sort,\r\n });\r\n return page.data;\r\n });\r\n\r\n // DO VALIDATE\r\n const components = [\r\n validator("created_at")(GaffComparator.dates((x) => x.created_at)),\r\n validator("updated_at")(GaffComparator.dates((x) => x.updated_at)),\r\n validator("title")(GaffComparator.strings((x) => x.title)),\r\n validator("writer")(GaffComparator.strings((x) => x.writer)),\r\n validator(\r\n "writer",\r\n "title",\r\n )(GaffComparator.strings((x) => [x.writer, x.title])),\r\n ];\r\n for (const comp of components) {\r\n await comp("+", false);\r\n await comp("-", false);\r\n }\r\n}\r\n```\r\n\r\nFor reference, if you run `npm run benchmark` command, your test functions defined in the [test/features/api](test/features/api) directory would be utilized for performance benchmarking. If you want to see the performance bench result earlier, visit below link please:\r\n\r\n - [docs/benchmarks/AMD Ryzen 9 7940HS w Radeon 780M Graphics.md](https://github.com/samchon/nestia-start/blob/master/docs/benchmarks/AMD%20Ryzen%209%207940HS%20w%20Radeon%20780M%20Graphics.md)'},{location:"src/api",file:"HttpError.ts",content:'export { HttpError } from "@nestia/fetcher";\r\n'},{location:"src/api",file:"IConnection.ts",content:'export type { IConnection } from "@nestia/fetcher";\r\n'},{location:"src/api",file:"index.ts",content:'import * as api from "./module";\r\n\r\nexport * from "./module";\r\nexport default api;\r\n'},{location:"src/api",file:"module.ts",content:'export type * from "./IConnection";\r\nexport * from "./HttpError";\r\n\r\nexport * as functional from "./functional";\r\n'},{location:"src/api",file:"Primitive.ts",content:'export type { Primitive } from "@nestia/fetcher";\r\n'},{location:"src/api/structures/bbs",file:"IBbsArticle.ts",content:'import { tags } from "typia";\r\n\r\nimport { IAttachmentFile } from "../common/IAttachmentFile";\r\nimport { IPage } from "../common/IPage";\r\n\r\n/**\r\n * BBS article.\r\n */\r\nexport interface IBbsArticle {\r\n /**\r\n * Primary Key.\r\n */\r\n id: string & tags.Format<"uuid">;\r\n\r\n /**\r\n * Section code.\r\n */\r\n section: string;\r\n\r\n /**\r\n * Name of nickname of writer.\r\n */\r\n writer: string;\r\n\r\n /**\r\n * List of snapshot contents.\r\n *\r\n * Whenever updating an article, its contents would be accumulated.\r\n */\r\n snapshots: IBbsArticle.ISnapshot[];\r\n\r\n /**\r\n * Creation time of the article.\r\n */\r\n created_at: string & tags.Format<"date-time">;\r\n}\r\n\r\nexport namespace IBbsArticle {\r\n /**\r\n * Page request info with some options.\r\n */\r\n export interface IRequest extends IPage.IRequest {\r\n /**\r\n * Searching options.\r\n */\r\n search?: IRequest.ISearch;\r\n\r\n /**\r\n * Sorting options.\r\n *\r\n * The plus sign means ASC and minus sign means DESC.\r\n */\r\n sort?: IPage.Sort;\r\n }\r\n export namespace IRequest {\r\n /**\r\n * Searching options.\r\n */\r\n export interface ISearch {\r\n writer?: string;\r\n title?: string;\r\n body?: string;\r\n }\r\n\r\n /**\r\n * List of sortable columns.\r\n */\r\n export type SortableColumns =\r\n | "writer"\r\n | "title"\r\n | "created_at"\r\n | "updated_at";\r\n }\r\n\r\n /**\r\n * Summarized info.\r\n */\r\n export interface ISummary {\r\n id: string;\r\n writer: string;\r\n title: string;\r\n created_at: string;\r\n updated_at: string;\r\n }\r\n\r\n /**\r\n * Content info.\r\n */\r\n export interface ISnapshot extends Omit {\r\n /**\r\n * Primary key of individual content.\r\n */\r\n id: string & tags.Format<"uuid">;\r\n\r\n /**\r\n * Creation time of this content.\r\n */\r\n created_at: string & tags.Format<"date-time">;\r\n }\r\n\r\n /**\r\n * Store info.\r\n */\r\n export interface ICreate extends IUpdate {\r\n /**\r\n * Name or nickname of the writer.\r\n */\r\n writer: string;\r\n }\r\n\r\n /**\r\n * Update info.\r\n */\r\n export interface IUpdate {\r\n /**\r\n * Title of the article.\r\n */\r\n title: string;\r\n\r\n /**\r\n * Content body.\r\n */\r\n body: string;\r\n\r\n /**\r\n * Format of the content body.\r\n */\r\n format: "md" | "html" | "txt";\r\n\r\n /**\r\n * List of files (to be) attached.\r\n */\r\n files: IAttachmentFile[];\r\n\r\n /**\r\n * Password of the article.\r\n */\r\n password: string;\r\n }\r\n}\r\n'},{location:"src/api/structures/common",file:"IAttachmentFile.ts",content:'import { tags } from "typia";\r\n\r\nexport interface IAttachmentFile {\r\n name: null | (string & tags.MinLength<1> & tags.MaxLength<255>);\r\n extension: null | (string & tags.MinLength<1> & tags.MaxLength<8>);\r\n url: string & tags.Format<"url">;\r\n}\r\n'},{location:"src/api/structures/common",file:"IPage.ts",content:'import { tags } from "typia";\r\n\r\n/**\r\n * A page.\r\n *\r\n * Collection of records with pagination indformation.\r\n *\r\n * @author Samchon\r\n */\r\nexport interface IPage {\r\n /**\r\n * Page information.\r\n */\r\n pagination: IPage.IPagination;\r\n\r\n /**\r\n * List of records.\r\n */\r\n data: T[];\r\n}\r\nexport namespace IPage {\r\n /**\r\n * Page information.\r\n */\r\n export interface IPagination {\r\n /**\r\n * Current page number.\r\n */\r\n current: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Limitation of records per a page.\r\n *\r\n * @default 100\r\n */\r\n limit: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Count of total records in database.\r\n */\r\n records: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Number of total pages.\r\n *\r\n * Equal to {@link records} / {@link limit} with ceiling.\r\n */\r\n pages: number & tags.Type<"uint32">;\r\n }\r\n\r\n /**\r\n * Page request data\r\n */\r\n export interface IRequest {\r\n /**\r\n * Page number.\r\n */\r\n page?: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Limitation of records per a page.\r\n */\r\n limit?: number & tags.Type<"uint32">;\r\n }\r\n\r\n /**\r\n * Sorting column specialization.\r\n *\r\n * The plus means ascending order and the minus means descending order.\r\n */\r\n export type Sort = Array<\r\n `-${Literal}` | `+${Literal}`\r\n >;\r\n}\r\n'},{location:"src/executable",file:"server.ts",content:'import { MyBackend } from "../MyBackend";\r\n\r\nconst EXTENSION = __filename.substring(__filename.length - 2);\r\nif (EXTENSION === "js") require("source-map-support/register");\r\n\r\nasync function main(): Promise {\r\n // BACKEND SEVER\r\n const backend: MyBackend = new MyBackend();\r\n await backend.open();\r\n\r\n // UNEXPECTED ERRORS\r\n global.process.on("uncaughtException", console.error);\r\n global.process.on("unhandledRejection", console.error);\r\n}\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"src/executable",file:"swagger.ts",content:'import cp from "child_process";\r\nimport express from "express";\r\n\r\nconst execute = (command: string): void => {\r\n console.log(`\\n$ ${command}\\n`);\r\n cp.execSync(command, { stdio: "inherit" });\r\n};\r\n\r\nconst main = async (): Promise => {\r\n if (!process.argv.some((str) => str === "--skipBuild"))\r\n execute("npm run build:swagger");\r\n\r\n const docs = await import("../../packages/api/swagger.json" as any);\r\n\r\n const app = express();\r\n const swaggerUi = require("swagger-ui-express");\r\n app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(docs));\r\n app.listen(37810);\r\n\r\n console.log("\\n");\r\n console.log("-----------------------------------------------------------");\r\n console.log("\\n Swagger UI Address: http://127.0.0.1:37810/api-docs \\n");\r\n console.log("-----------------------------------------------------------");\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"src",file:"MyBackend.ts",content:'import { INestApplication } from "@nestjs/common";\r\nimport { NestFactory } from "@nestjs/core";\r\n\r\nimport { MyConfiguration } from "./MyConfiguration";\r\nimport { MyModule } from "./MyModule";\r\n\r\nexport class MyBackend {\r\n private application_?: INestApplication;\r\n\r\n public async open(): Promise {\r\n //----\r\n // OPEN THE BACKEND SERVER\r\n //----\r\n // MOUNT CONTROLLERS\r\n this.application_ = await NestFactory.create(MyModule, { logger: false });\r\n\r\n // DO OPEN\r\n this.application_.enableCors();\r\n await this.application_.listen(MyConfiguration.API_PORT(), "0.0.0.0");\r\n\r\n //----\r\n // POST-PROCESSES\r\n //----\r\n // INFORM TO THE PM2\r\n if (process.send) process.send("ready");\r\n\r\n // WHEN KILL COMMAND COMES\r\n process.on("SIGINT", async () => {\r\n await this.close();\r\n process.exit(0);\r\n });\r\n }\r\n\r\n public async close(): Promise {\r\n if (this.application_ === undefined) return;\r\n\r\n // DO CLOSE\r\n await this.application_.close();\r\n delete this.application_;\r\n }\r\n}\r\n'},{location:"src",file:"MyConfiguration.ts",content:'import fs from "fs";\r\nimport path from "path";\r\n\r\nimport { MyGlobal } from "./MyGlobal";\r\n\r\nexport namespace MyConfiguration {\r\n export const API_PORT = () => Number(MyGlobal.env.PROJECT_API_PORT);\r\n\r\n export const ROOT = (() => {\r\n const splitted: string[] = __dirname.split(path.sep);\r\n return splitted.at(-1) === "src" && splitted.at(-2) === "bin"\r\n ? path.resolve(__dirname + "/../..")\r\n : fs.existsSync(__dirname + "/.env")\r\n ? __dirname\r\n : path.resolve(__dirname + "/..");\r\n })();\r\n}\r\n'},{location:"src",file:"MyGlobal.ts",content:'import dotenv from "dotenv";\r\nimport dotenvExpand from "dotenv-expand";\r\nimport { Singleton } from "tstl";\r\nimport typia from "typia";\r\n\r\n/* eslint-disable */\r\nexport class MyGlobal {\r\n public static testing: boolean = false;\r\n public static get env(): MyGlobal.IEnvironments {\r\n return environments.get();\r\n }\r\n}\r\nexport namespace MyGlobal {\r\n export interface IEnvironments {\r\n PROJECT_API_PORT: `${number}`;\r\n }\r\n}\r\n\r\nconst environments = new Singleton(() => {\r\n const env = dotenv.config();\r\n dotenvExpand.expand(env);\r\n return typia.assert(process.env);\r\n});\r\n'},{location:"src/utils",file:"ErrorUtil.ts",content:'import serializeError = require("serialize-error");\r\n\r\nexport namespace ErrorUtil {\r\n export const toJSON = (err: any): object =>\r\n err instanceof Object && err.toJSON instanceof Function\r\n ? err.toJSON()\r\n : serializeError(err);\r\n}\r\n'},{location:"src/utils",file:"MapUtil.ts",content:"export namespace MapUtil {\r\n export function take(\r\n dict: Map,\r\n key: Key,\r\n generator: () => T,\r\n ): T {\r\n const oldbie: T | undefined = dict.get(key);\r\n if (oldbie) return oldbie;\r\n\r\n const value: T = generator();\r\n dict.set(key, value);\r\n return value;\r\n }\r\n}\r\n"},{location:"test/benchmark",file:"index.ts",content:'import { DynamicBenchmarker } from "@nestia/benchmark";\r\nimport cliProgress from "cli-progress";\r\nimport fs from "fs";\r\nimport os from "os";\r\nimport { IPointer } from "tstl";\r\n\r\nimport { MyBackend } from "../../src/MyBackend";\r\nimport { MyConfiguration } from "../../src/MyConfiguration";\r\nimport { MyGlobal } from "../../src/MyGlobal";\r\nimport { ArgumentParser } from "../helpers/ArgumentParser";\r\n\r\ninterface IOptions {\r\n include?: string[];\r\n exclude?: string[];\r\n count: number;\r\n threads: number;\r\n simultaneous: number;\r\n}\r\n\r\nconst getOptions = () =>\r\n ArgumentParser.parse(async (command, prompt, action) => {\r\n // command.option("--mode ", "target mode");\r\n // command.option("--reset ", "reset local DB or not");\r\n command.option("--include ", "include feature files");\r\n command.option("--exclude ", "exclude feature files");\r\n command.option("--count ", "number of requests to make");\r\n command.option("--threads ", "number of threads to use");\r\n command.option(\r\n "--simultaneous ",\r\n "number of simultaneous requests to make",\r\n );\r\n return action(async (options) => {\r\n // if (typeof options.reset === "string")\r\n // options.reset = options.reset === "true";\r\n // options.mode ??= await prompt.select("mode")("Select mode")([\r\n // "LOCAL",\r\n // "DEV",\r\n // "REAL",\r\n // ]);\r\n // options.reset ??= await prompt.boolean("reset")("Reset local DB");\r\n options.count = Number(\r\n options.count ??\r\n (await prompt.number("count")("Number of requests to make")),\r\n );\r\n options.threads = Number(\r\n options.threads ??\r\n (await prompt.number("threads")("Number of threads to use")),\r\n );\r\n options.simultaneous = Number(\r\n options.simultaneous ??\r\n (await prompt.number("simultaneous")(\r\n "Number of simultaneous requests to make",\r\n )),\r\n );\r\n return options as IOptions;\r\n });\r\n });\r\n\r\nconst main = async (): Promise => {\r\n // CONFIGURATIONS\r\n const options: IOptions = await getOptions();\r\n MyGlobal.testing = true;\r\n\r\n // BACKEND SERVER\r\n const backend: MyBackend = new MyBackend();\r\n await backend.open();\r\n\r\n // DO BENCHMARK\r\n const prev: IPointer = { value: 0 };\r\n const bar: cliProgress.SingleBar = new cliProgress.SingleBar(\r\n {},\r\n cliProgress.Presets.shades_classic,\r\n );\r\n bar.start(options.count, 0);\r\n\r\n const report: DynamicBenchmarker.IReport = await DynamicBenchmarker.master({\r\n servant: `${__dirname}/servant.js`,\r\n count: options.count,\r\n threads: options.threads,\r\n simultaneous: options.simultaneous,\r\n filter: (func) =>\r\n (!options.include?.length ||\r\n (options.include ?? []).some((str) => func.includes(str))) &&\r\n (!options.exclude?.length ||\r\n (options.exclude ?? []).every((str) => !func.includes(str))),\r\n progress: (value: number) => {\r\n if (value >= 100 + prev.value) {\r\n bar.update(value);\r\n prev.value = value;\r\n }\r\n },\r\n stdio: "ignore",\r\n });\r\n bar.stop();\r\n\r\n // DOCUMENTATION\r\n try {\r\n await fs.promises.mkdir(`${MyConfiguration.ROOT}/docs/benchmarks`, {\r\n recursive: true,\r\n });\r\n } catch {}\r\n await fs.promises.writeFile(\r\n `${MyConfiguration.ROOT}/docs/benchmarks/${os\r\n .cpus()[0]\r\n .model.trim()\r\n .split("\\\\")\r\n .join("")\r\n .split("/")\r\n .join("")}.md`,\r\n DynamicBenchmarker.markdown(report),\r\n "utf8",\r\n );\r\n\r\n // CLOSE\r\n await backend.close();\r\n};\r\nmain().catch((exp) => {\r\n console.error(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test/benchmark",file:"servant.ts",content:'import { DynamicBenchmarker } from "@nestia/benchmark";\r\n\r\nimport { MyConfiguration } from "../../src/MyConfiguration";\r\n\r\nDynamicBenchmarker.servant({\r\n connection: {\r\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\r\n },\r\n location: `${__dirname}/../features`,\r\n parameters: (connection) => [connection],\r\n prefix: "test_api_",\r\n}).catch((exp) => {\r\n console.error(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test/helpers",file:"ArgumentParser.ts",content:'import commander from "commander";\r\nimport * as inquirer from "inquirer";\r\n\r\nexport namespace ArgumentParser {\r\n export type Inquiry = (\r\n command: commander.Command,\r\n prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule,\r\n action: (closure: (options: Partial) => Promise) => Promise,\r\n ) => Promise;\r\n\r\n export interface Prompt {\r\n select: (\r\n name: string,\r\n ) => (\r\n message: string,\r\n ) => (choices: Choice[]) => Promise;\r\n boolean: (name: string) => (message: string) => Promise;\r\n number: (name: string) => (message: string) => Promise;\r\n }\r\n\r\n export const parse = async (\r\n inquiry: (\r\n command: commander.Command,\r\n prompt: Prompt,\r\n action: (closure: (options: Partial) => Promise) => Promise,\r\n ) => Promise,\r\n ): Promise => {\r\n // TAKE OPTIONS\r\n const action = (closure: (options: Partial) => Promise) =>\r\n new Promise((resolve, reject) => {\r\n commander.program.action(async (options) => {\r\n try {\r\n resolve(await closure(options));\r\n } catch (exp) {\r\n reject(exp);\r\n }\r\n });\r\n commander.program.parseAsync().catch(reject);\r\n });\r\n\r\n const select =\r\n (name: string) =>\r\n (message: string) =>\r\n async (choices: Choice[]): Promise =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "list",\r\n name,\r\n message,\r\n choices,\r\n })\r\n )[name];\r\n const boolean = (name: string) => async (message: string) =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "confirm",\r\n name,\r\n message,\r\n })\r\n )[name] as boolean;\r\n const number = (name: string) => async (message: string) =>\r\n Number(\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "number",\r\n name,\r\n message,\r\n })\r\n )[name],\r\n );\r\n\r\n const output: T | Error = await (async () => {\r\n try {\r\n return await inquiry(\r\n commander.program,\r\n { select, boolean, number },\r\n action,\r\n );\r\n } catch (error) {\r\n return error as Error;\r\n }\r\n })();\r\n\r\n // RETURNS\r\n if (output instanceof Error) throw output;\r\n return output;\r\n };\r\n}\r\n'},{location:"test",file:"index.ts",content:'import { DynamicExecutor } from "@nestia/e2e";\r\nimport chalk from "chalk";\r\n\r\nimport api from "@ORGANIZATION/PROJECT-api";\r\n\r\nimport { MyBackend } from "../src/MyBackend";\r\nimport { MyConfiguration } from "../src/MyConfiguration";\r\nimport { MyGlobal } from "../src/MyGlobal";\r\nimport { ArgumentParser } from "./helpers/ArgumentParser";\r\n\r\ninterface IOptions {\r\n include?: string[];\r\n exclude?: string[];\r\n}\r\n\r\nconst getOptions = () =>\r\n ArgumentParser.parse(async (command, _prompt, action) => {\r\n // command.option("--mode ", "target mode");\r\n // command.option("--reset ", "reset local DB or not");\r\n command.option("--include ", "include feature files");\r\n command.option("--exclude ", "exclude feature files");\r\n\r\n return action(async (options) => {\r\n // if (typeof options.reset === "string")\r\n // options.reset = options.reset === "true";\r\n // options.mode ??= await prompt.select("mode")("Select mode")([\r\n // "LOCAL",\r\n // "DEV",\r\n // "REAL",\r\n // ]);\r\n // options.reset ??= await prompt.boolean("reset")("Reset local DB");\r\n return options as IOptions;\r\n });\r\n });\r\n\r\nasync function main(): Promise {\r\n // CONFIGURATIONS\r\n const options: IOptions = await getOptions();\r\n MyGlobal.testing = true;\r\n\r\n // BACKEND SERVER\r\n const backend: MyBackend = new MyBackend();\r\n await backend.open();\r\n\r\n //----\r\n // CLINET CONNECTOR\r\n //----\r\n // DO TEST\r\n const connection: api.IConnection = {\r\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\r\n };\r\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\r\n prefix: "test",\r\n location: __dirname + "/features",\r\n parameters: () => [\r\n {\r\n host: connection.host,\r\n encryption: connection.encryption,\r\n },\r\n ],\r\n filter: (func) =>\r\n (!options.include?.length ||\r\n (options.include ?? []).some((str) => func.includes(str))) &&\r\n (!options.exclude?.length ||\r\n (options.exclude ?? []).every((str) => !func.includes(str))),\r\n onComplete: (exec) => {\r\n const trace = (str: string) =>\r\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\r\n if (exec.error === null) {\r\n const elapsed: number =\r\n new Date(exec.completed_at).getTime() -\r\n new Date(exec.started_at).getTime();\r\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\r\n } else trace(chalk.red(exec.error.name));\r\n },\r\n });\r\n await backend.close();\r\n\r\n const failures: DynamicExecutor.IExecution[] = report.executions.filter(\r\n (exec) => exec.error !== null,\r\n );\r\n if (failures.length === 0) {\r\n console.log("Success");\r\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\r\n } else {\r\n for (const f of failures) console.log(f.error);\r\n process.exit(-1);\r\n }\r\n\r\n console.log(\r\n [\r\n `All: #${report.executions.length}`,\r\n `Success: #${report.executions.length - failures.length}`,\r\n `Failed: #${failures.length}`,\r\n ].join("\\n"),\r\n );\r\n}\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test",file:"tsconfig.json",content:'{\r\n "extends": "../tsconfig.json",\r\n "compilerOptions": {\r\n "outDir": "../bin",\r\n },\r\n "include": [".", "../src"]\r\n}'},{location:"test",file:"webpack.ts",content:'import { DynamicExecutor } from "@nestia/e2e";\r\nimport chalk from "chalk";\r\nimport cp from "child_process";\r\nimport { sleep_for } from "tstl";\r\n\r\nimport { MyConfiguration } from "../src/MyConfiguration";\r\nimport api from "../src/api";\r\n\r\nconst main = async (): Promise => {\r\n // OPEN BUNDLED SERVER\r\n const backend = cp.fork(`${MyConfiguration.ROOT}/dist/server.js`, {\r\n cwd: `${MyConfiguration.ROOT}/dist`,\r\n });\r\n await sleep_for(2_500);\r\n\r\n // DO TEST\r\n const connection: api.IConnection = {\r\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\r\n };\r\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\r\n prefix: "test",\r\n location: __dirname + "/features",\r\n parameters: () => [\r\n {\r\n host: connection.host,\r\n encryption: connection.encryption,\r\n },\r\n ],\r\n onComplete: (exec) => {\r\n const trace = (str: string) =>\r\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\r\n if (exec.error === null) {\r\n const elapsed: number =\r\n new Date(exec.completed_at).getTime() -\r\n new Date(exec.started_at).getTime();\r\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\r\n } else trace(chalk.red(exec.error.name));\r\n },\r\n });\r\n\r\n backend.kill();\r\n\r\n const failures: DynamicExecutor.IExecution[] = report.executions.filter(\r\n (exec) => exec.error !== null,\r\n );\r\n if (failures.length === 0) {\r\n console.log("Success");\r\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\r\n } else {\r\n for (const f of failures) console.log(f.error);\r\n process.exit(-1);\r\n }\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"",file:"tsconfig.json",content:'{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n\r\n /* Language and Environment */\r\n "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */\r\n // "jsx": "preserve", /* Specify what JSX code is generated. */\r\n "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */\r\n // "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n "paths": {\r\n "@ORGANIZATION/PROJECT-api/lib/*": ["./src/api/*"],\r\n "@ORGANIZATION/PROJECT-api": ["./src/api"],\r\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n // "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'\'s from expanding the number of files TypeScript should add to a project. */\r\n\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n\r\n /* Emit */\r\n // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */\r\n // "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */\r\n // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */\r\n // "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */\r\n // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */\r\n "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */\r\n // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */\r\n\r\n /* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */\r\n // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n { "transform": "typescript-transform-paths" },\r\n { "transform": "typia/lib/transform" },\r\n { "transform": "@nestia/core/lib/transform" },\r\n ]\r\n },\r\n "include": [\r\n "src"\r\n ],\r\n "exclude": [\r\n "node_modules",\r\n "packages",\r\n ]\r\n}\r\n'},{location:"",file:"webpack.config.js",content:'const path = require("path");\r\n\r\nconst CopyWebpackPlugin = require("copy-webpack-plugin");\r\nconst WriteFilePlugin = require("write-file-webpack-plugin");\r\nconst { IgnorePlugin } = require("webpack");\r\n\r\nconst lazyImports = [\r\n "@fastify/static",\r\n "@fastify/view",\r\n "@nestjs/microservices",\r\n "@nestjs/websockets",\r\n "class-transformer",\r\n "class-validator",\r\n];\r\n\r\n// @reference https://tech-blog.s-yoshiki.com/entry/297\r\nmodule.exports = {\r\n // CUSTOMIZE HERE\r\n entry: {\r\n server: "./src/executable/server.ts",\r\n },\r\n output: {\r\n path: path.join(__dirname, "dist"),\r\n filename: "[name].js",\r\n },\r\n optimization: {\r\n minimize: true,\r\n },\r\n\r\n // JUST KEEP THEM\r\n mode: "production",\r\n target: "node",\r\n module: {\r\n rules: [\r\n {\r\n test: /\\.ts$/,\r\n exclude: /node_modules/,\r\n loader: "ts-loader",\r\n },\r\n ],\r\n },\r\n resolve: {\r\n extensions: [".tsx", ".ts", ".js"],\r\n },\r\n plugins: [\r\n new CopyWebpackPlugin({\r\n patterns: [\r\n {\r\n from: ".env",\r\n to: "[name][ext]",\r\n },\r\n // {\r\n // from: "./node_modules/.prisma/client/*.node",\r\n // to: () => Promise.resolve("[path][name][ext]"),\r\n // globOptions: {\r\n // dot: true,\r\n // },\r\n // },\r\n ],\r\n }),\r\n new WriteFilePlugin(),\r\n new IgnorePlugin({\r\n checkResource: (resource) => {\r\n if (lazyImports.some((modulo) => resource.startsWith(modulo))) {\r\n try {\r\n require.resolve(resource);\r\n } catch (err) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n },\r\n }),\r\n ],\r\n};\r\n'}]},57280:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDK_TEMPLATE=void 0,t.SDK_TEMPLATE=[{location:"",file:".gitignore",content:".git/\r\nbin/\r\nlib/\r\nnode_modules/\r\n\r\npackage-lock.json\r\npnpm-lock.yaml"},{location:".vscode",file:"launch.json",content:'{\r\n // Use IntelliSense to learn about possible Node.js debug attributes.\r\n // Hover to view descriptions of existing attributes.\r\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\r\n "version": "0.2.0",\r\n "configurations": [\r\n {\r\n "type": "node",\r\n "request": "launch",\r\n "name": "JavaScript Test using SourceMap",\r\n "program": "${workspaceRoot}/test/index.ts",\r\n "cwd": "${workspaceRoot}",\r\n "args": [\r\n //----\r\n // You can run specific test functions\r\n //----\r\n // "--include", "something",\r\n // "--exclude", "nothing",\r\n ],\r\n "outFiles": ["${workspaceRoot}/bin/**/*.js"],\r\n }\r\n ]\r\n}'},{location:".vscode",file:"settings.json",content:'{\r\n "editor.tabSize": 2,\r\n "editor.formatOnSave": true,\r\n "[javascript][typescript]": {\r\n "editor.defaultFormatter": "esbenp.prettier-vscode",\r\n "editor.codeActionsOnSave": {\r\n "source.fixAll.eslint": "explicit"\r\n },\r\n },\r\n}'},{location:"",file:"hello.js",content:'function print(command, description) {\r\n return console.log(`\\x1b[1m${command}\\x1b[2m: ${description}\\x1b[0m`);\r\n}\r\n\r\nconsole.log("-----------------------------------------");\r\nconsole.log("\\x1b[7mGenerated by \\x1b[2m@nestia/editor\\x1b[0m");\r\nconsole.log("");\r\nconsole.log(" - \\x1b[36mhttps://nestia.io/docs/editor\\x1b[0m");\r\nconsole.log(" - \\x1b[36mhttps://github.com/samchon/nestia\\x1b[0m");\r\nconsole.log("-----------------------------------------");\r\n\r\nprint("npm run start", "Run only test/start.ts");\r\nprint("npm run test", "Run every test/features/**/*.ts files");\r\nprint("npm run test:simulate", "Test with mockup simulator");\r\n'},{location:"",file:"LICENSE",content:'MIT License\r\n\r\nCopyright (c) 2024 Jeongho Nam\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the "Software"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n'},{location:"",file:"package.json",content:'{\r\n "name": "@ORGANIZATION/PROJECT-api",\r\n "version": "0.1.0",\r\n "description": "SDK library generated by Nestia",\r\n "main": "lib/index.js",\r\n "module": "lib/index.mjs",\r\n "typings": "lib/index.d.ts",\r\n "scripts": {\r\n "build": "rimraf lib && tsc && rollup -c",\r\n "build:test": "rimraf bin && tsc --project test/tsconfig.json",\r\n "deploy": "npm run build && npm publish",\r\n "dev": "npm run build:test -- --watch",\r\n "hello": "node hello",\r\n "prepare": "ts-patch install && typia patch",\r\n "start": "ts-node test/start.ts",\r\n "swagger": "ts-node test/swagger.ts",\r\n "test": "ts-node test/index.ts",\r\n "test:simulate": "ts-node test/index.ts --simulate true",\r\n "test:manual": "ts-node test/manual.ts"\r\n },\r\n "repository": {\r\n "type": "git",\r\n "url": "https://github.com/samchon/nestia"\r\n },\r\n "author": "Jeongho Nam",\r\n "license": "MIT",\r\n "bugs": {\r\n "url": "https://github.com/samchon/nestia/issues"\r\n },\r\n "homepage": "https://nestia.io",\r\n "files": [\r\n "lib",\r\n "swagger.json",\r\n "package.json",\r\n "README.md"\r\n ],\r\n "dependencies": {\r\n "@nestia/fetcher": "^3.14.0",\r\n "tgrid": "^1.0.3",\r\n "typia": "^6.10.2"\r\n },\r\n "devDependencies": {\r\n "@nestia/e2e": "^0.7.0",\r\n "@rollup/plugin-terser": "^0.4.4",\r\n "@rollup/plugin-typescript": "^11.1.6",\r\n "@trivago/prettier-plugin-sort-imports": "^4.3.0",\r\n "@types/express": "^4.17.21",\r\n "@types/inquirer": "8.2.5",\r\n "@types/swagger-ui-express": "^4.1.6",\r\n "chalk": "4.1.2",\r\n "commander": "^10.0.0",\r\n "express": "^4.19.2",\r\n "inquirer": "8.2.5",\r\n "prettier": "^3.2.5",\r\n "rimraf": "^5.0.5",\r\n "rollup": "^4.13.2",\r\n "swagger-ui-express": "^5.0.0",\r\n "ts-node": "^10.9.2",\r\n "ts-patch": "^3.2.1",\r\n "typescript": "5.5.4",\r\n "typescript-transform-paths": "^3.4.6"\r\n }\r\n}\r\n'},{location:"",file:"prettier.config.js",content:'module.exports = {\r\n // DEFAULT CONFIGURATIONS\r\n parser: "typescript",\r\n printWidth: 80,\r\n semi: true,\r\n tabWidth: 2,\r\n trailingComma: "all",\r\n\r\n // PLUG-IN CONFIGURATIONS\r\n plugins: ["@trivago/prettier-plugin-sort-imports"],\r\n importOrder: ["", "^[./]"],\r\n importOrderSeparation: true,\r\n importOrderSortSpecifiers: true,\r\n importOrderParserPlugins: ["decorators-legacy", "typescript", "jsx"],\r\n};\r\n'},{location:"",file:"README.md",content:'# Software Development Kit\r\nThis is a SDK library generated by [`@nestia/migrate`](https://nestia.io/docs/migrate) or [`@nestia/editor`](https://nestia.io/docs/editor).\r\n\r\nWith this SDK library, you can easily and safely interact with backend server.\r\n\r\nJust import and call some API functions like gif image below:\r\n\r\n![nestia-sdk-demo](https://user-images.githubusercontent.com/13158709/215004990-368c589d-7101-404e-b81b-fbc936382f05.gif)\r\n\r\n> Left is server code, and right is client code utilizing the SDK\r\n\r\n\r\n\r\n\r\n## How to Test\r\n```bash\r\nnpm install\r\nnpm start # run only "test/start.ts" file\r\nnpm run test # everything under the "test/features" directory\r\nnpm run test:simulate # "test/features" with mockup simulation mode\r\n```\r\n\r\nIf you run `npm start` command, only [test/start.ts](test/start.ts) file would be executed.\r\n\r\nOtherwise you run `npm run test` command instead, run everything in the [test/features](test/features) directory.\r\n\r\nFor reference, the [test/features](test/features) directory and E2E test functions (for each API endpoints) would be automatically composed only when you\'ve configured the "E2E test function generation mode" of the `@nestia/migrate` (or `@nestia/editor`).\r\n\r\n```bash\r\nnpm install -g @nestia/migrate\r\nnpx @nestia/migrate\r\n? Migration mode (Use arrow keys):\r\n NestJS\r\n > SDK\r\n? Swagger file location: assets/input/clickhouse.json\r\n? Output directory path: assets/output/clickhouse-sdk-manual\r\n? Mokup Simulator: true\r\n? E2E Test Functions: true\r\n```\r\n\r\n\r\n\r\n\r\n## Deploy\r\n```bash\r\nnpm install\r\nnpm run deploy\r\n```\r\n\r\nJust run `npm run deploy` command, then your SDK library would be published.\r\n\r\nBy the way, the initial package name of this template repository is `@ORGANIZATION/PROJECT-api`. I think it would better to change the word to your own organization and project name. If you\'re utilizing `VsCode`, you can do it through `Edit > Replace in Files` (*Ctrl + Shift + H*) feature.\r\n\r\n-----------\r\n\r\n> ## What [`Nestia`](https://nestia.io) is:\r\n> ![Nestia Logo](https://nestia.io/logo.png)\r\n> \r\n> [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/samchon/nestia/blob/master/LICENSE)\r\n> [![npm version](https://img.shields.io/npm/v/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\r\n> [![Downloads](https://img.shields.io/npm/dm/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\r\n> [![Build Status](https://github.com/samchon/nestia/workflows/build/badge.svg)](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\r\n> [![Guide Documents](https://img.shields.io/badge/guide-documents-forestgreen)](https://nestia.io/docs/)\r\n> \r\n> Nestia is a set of helper libraries for NestJS, supporting below features:\r\n> \r\n> - `@nestia/core`: Super-fast decorators\r\n> - `@nestia/sdk`:\r\n> - Swagger generator evolved than ever\r\n> - SDK library generator for clients\r\n> - Mockup Simulator for client applications\r\n> - Automatic E2E test functions generator\r\n> - `@nestia/migrate`: Migration from Swagger to NestJS\r\n> - `@nestia/editor`: Online TypeScript Swagger Editor\r\n> - `nestia`: Just CLI (command line interface) tool\r\n> \r\n>> **Note**\r\n>> \r\n>> - **Only one line** required, with pure TypeScript type\r\n>> - Enhance performance **30x** up\r\n>> - Runtime validator is **20,000x faster** than `class-validator`\r\n>> - JSON serialization is **200x faster** than `class-transformer`\r\n>> - Software Development Kit\r\n>> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://> trpc.io/)\r\n>> - Mockup simulator means embedded backend simulator in SDK\r\n>> - similar with [msw](https://mswjs.io/), but fully automated'},{location:"",file:"rollup.config.js",content:'const typescript = require("@rollup/plugin-typescript");\r\nconst terser = require("@rollup/plugin-terser");\r\n\r\nmodule.exports = {\r\n input: "./src/index.ts",\r\n output: {\r\n dir: "lib",\r\n format: "esm",\r\n entryFileNames: "[name].mjs",\r\n sourcemap: true,\r\n },\r\n plugins: [\r\n typescript({\r\n tsconfig: "tsconfig.json",\r\n module: "ES2020",\r\n target: "ES2020",\r\n }),\r\n terser({\r\n format: {\r\n comments: "some",\r\n beautify: true,\r\n ecma: "2020",\r\n },\r\n compress: false,\r\n mangle: false,\r\n module: true,\r\n }),\r\n ],\r\n};\r\n'},{location:"src",file:"HttpError.ts",content:'export { HttpError } from "@nestia/fetcher";\r\n'},{location:"src",file:"IConnection.ts",content:'export type { IConnection } from "@nestia/fetcher";\r\n'},{location:"src",file:"index.ts",content:'import * as api from "./module";\r\n\r\nexport * from "./module";\r\nexport default api;\r\n'},{location:"src",file:"module.ts",content:'export type * from "./IConnection";\r\nexport * from "./HttpError";\r\n\r\nexport * as functional from "./functional";\r\n'},{location:"src",file:"Primitive.ts",content:'export type { Primitive } from "@nestia/fetcher";\r\n'},{location:"",file:"swagger.json",content:'{\r\n "openapi": "3.0.1",\r\n "servers": [\r\n {\r\n "url": "http://localhost:37001",\r\n "description": "Local Server"\r\n }\r\n ],\r\n "info": {\r\n "version": "2.2.0",\r\n "title": "@samchon/bbs-backend",\r\n "description": "Backend for bbs",\r\n "license": {\r\n "name": "MIT"\r\n }\r\n },\r\n "paths": {\r\n "/bbs/articles": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated summarized articles.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticle.ISummary"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all summarized articles",\r\n "description": "List up all summarized articles.\\n\\nList up all summarized articles with pagination and searching options."\r\n },\r\n "post": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Article information to create.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.ICreate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "201": {\r\n "description": "Newly created article.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Create a new article",\r\n "description": "Create a new article.\\n\\nCreate a new article with its first {@link IBbsArticle.ISnapshot snapshot}."\r\n }\r\n },\r\n "/bbs/articles/abridges": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated abridged articles.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticle.IAbridge"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all abridged articles",\r\n "description": "List up all abridged articles.\\n\\nList up all abridged articles with pagination and searching options."\r\n }\r\n },\r\n "/bbs/articles/{id}": {\r\n "get": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "responses": {\r\n "200": {\r\n "description": "Article information",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Read individual article",\r\n "description": "Read individual article.\\n\\nReads an article with its every {@link IBbsArticle.ISnapshot snapshots}."\r\n },\r\n "put": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Article information to update.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IUpdate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Newly accumulated snapshot information.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Update an article",\r\n "description": "Update an article.\\n\\nAccumulate a new {@link IBbsArticle.ISnapshot snapshot} record to the article."\r\n },\r\n "delete": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Password of the article.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IErase"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Erase an article",\r\n "description": "Erase an article.\\n\\nPerforms soft deletion to the article."\r\n }\r\n },\r\n "/bbs/articles/{articleId}/comments": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated summarized comments.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all summarized comments",\r\n "description": "List up all summarized comments.\\n\\nList up all summarized comments with pagination and searching options."\r\n },\r\n "post": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Comment information to create.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ICreate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "201": {\r\n "description": "Newly created comment.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Create a new comment",\r\n "description": "Create a new comment.\\n\\nCreate a new comment with its first {@link IBbsArticleComment.ISnapshot snapshot}."\r\n }\r\n },\r\n "/bbs/articles/{articleId}/comments/{id}": {\r\n "get": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "responses": {\r\n "200": {\r\n "description": "Comment information",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Read individual comment",\r\n "description": "Read individual comment.\\n\\nReads a comment with its every {@link IBbsArticleComment.ISnapshot snapshots}."\r\n },\r\n "put": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Comment information to update.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IUpdate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Newly accumulated snapshot information.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Update a comment",\r\n "description": "Update a comment.\\n\\nAccumulate a new {@link IBbsArticleComment.ISnapshot snapshot} record to the comment."\r\n },\r\n "delete": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Password of the comment.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IErase"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Erase a comment",\r\n "description": "Erase a comment.\\n\\nPerforms soft deletion to the comment."\r\n }\r\n },\r\n "/monitors/health": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Health check API",\r\n "description": "Health check API."\r\n }\r\n },\r\n "/monitors/performance": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": "Performance info",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPerformance"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Get performance information",\r\n "description": "Get performance information.\\n\\nGet perofmration information composed with CPU, memory and resource usage."\r\n }\r\n },\r\n "/monitors/system": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": "System info",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/ISystem"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Get system information",\r\n "description": "Get system information.\\n\\nGet system information with commit and package information."\r\n }\r\n }\r\n },\r\n "components": {\r\n "schemas": {\r\n "IBbsArticle.IRequest": {\r\n "type": "object",\r\n "properties": {\r\n "search": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest.ISearch",\r\n "title": "Search condition",\r\n "description": "Search condition."\r\n },\r\n "sort": {\r\n "type": "array",\r\n "items": {\r\n "type": "string",\r\n "enum": [\r\n "+created_at",\r\n "+title",\r\n "+updated_at",\r\n "+writer",\r\n "-created_at",\r\n "-title",\r\n "-updated_at",\r\n "-writer"\r\n ]\r\n },\r\n "title": "Sort condition",\r\n "description": "Sort condition."\r\n },\r\n "page": {\r\n "type": "integer",\r\n "title": "Page number",\r\n "description": "Page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IBbsArticle.IRequest.ISearch": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "title": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n },\r\n "title_or_body": {\r\n "type": "string"\r\n },\r\n "from": {\r\n "type": "string",\r\n "format": "date-time"\r\n },\r\n "to": {\r\n "type": "string",\r\n "format": "date-time"\r\n }\r\n },\r\n "nullable": false,\r\n "description": "검색 정보."\r\n },\r\n "IPageIBbsArticle.ISummary": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISummary"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IPage.IPagination": {\r\n "type": "object",\r\n "properties": {\r\n "current": {\r\n "type": "integer",\r\n "title": "Current page number",\r\n "description": "Current page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n },\r\n "records": {\r\n "type": "integer",\r\n "title": "Total records in the database",\r\n "description": "Total records in the database."\r\n },\r\n "pages": {\r\n "type": "integer",\r\n "title": "Total pages",\r\n "description": "Total pages.\\n\\nEqual to {@link records } / {@link limit } with ceiling."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "current",\r\n "limit",\r\n "records",\r\n "pages"\r\n ],\r\n "description": "Page information."\r\n },\r\n "IBbsArticle.ISummary": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of the article",\r\n "description": "Writer of the article."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of the last snapshot",\r\n "description": "Title of the last snapshot."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of the article",\r\n "description": "Creation time of the article."\r\n },\r\n "updated_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Modification time of the article",\r\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "title",\r\n "created_at",\r\n "updated_at"\r\n ],\r\n "description": "Summarized information of the article."\r\n },\r\n "IPageIBbsArticle.IAbridge": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.IAbridge"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IBbsArticle.IAbridge": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of the article",\r\n "description": "Writer of the article."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of the last snapshot",\r\n "description": "Title of the last snapshot."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of the article",\r\n "description": "Creation time of the article."\r\n },\r\n "updated_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Modification time of the article",\r\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticle.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "title",\r\n "created_at",\r\n "updated_at",\r\n "format",\r\n "body",\r\n "files"\r\n ],\r\n "description": "Abriged information of the article."\r\n },\r\n "IBbsArticle.Format": {\r\n "type": "string",\r\n "enum": [\r\n "txt",\r\n "md",\r\n "html"\r\n ]\r\n },\r\n "IAttachmentFile.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string",\r\n "maxLength": 255,\r\n "title": "File name, except extension",\r\n "description": "File name, except extension."\r\n },\r\n "extension": {\r\n "type": "string",\r\n "maxLength": 8,\r\n "minLength": 1,\r\n "nullable": true,\r\n "title": "Extension",\r\n "description": "Extension.\\n\\nPossible to omit like `README` case."\r\n },\r\n "url": {\r\n "type": "string",\r\n "format": "uri",\r\n "title": "URL path of the real file",\r\n "description": "URL path of the real file."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "extension",\r\n "url"\r\n ]\r\n },\r\n "IBbsArticle": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of article",\r\n "description": "Writer of article."\r\n },\r\n "snapshots": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\r\n },\r\n "minItems": 1,\r\n "title": "List of snapshot contents",\r\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when an article is created, and is\\naccumulated every time the article is modified."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of article",\r\n "description": "Creation time of article."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "snapshots",\r\n "created_at"\r\n ],\r\n "description": "Article entity.\\n\\n`IBbsArticle* is a super-type entity of all kinds of articles in the current\\nbackend system, literally shaping individual articles of the bulletin board.\\n\\nAnd, as you can see, the elements that must inevitably exist in the article,\\nsuch as the `title` or the `body`, do not exist in the `IBbsArticle`, but exist\\nin the subsidiary entity, {@link IBbsArticle.ISnapshot }, as a 1: N relationship,\\nwhich is because a new snapshot record is published every time the article is\\nmodified.\\n\\nThe reason why a new snapshot record is published every time the article is\\nmodified is to preserve the evidence. Due to the nature of e-community, there\\nis always a threat of dispute among the participants. And it can happen that\\ndisputes arise through articles or {@link IBbsArticleComment comments}, and to\\nprevent such things as modifying existing articles to manipulate the situation,\\nthe article is designed in this structure.\\n\\nIn other words, to keep evidence, and prevent fraud."\r\n },\r\n "IBbsArticle.ISnapshot": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of snapshot record",\r\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or article."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticle.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "created_at",\r\n "format",\r\n "body",\r\n "files",\r\n "title"\r\n ],\r\n "description": "Snapshot of article.\\n\\n`IBbsArticle.ISnapshot` is a snapshot entity that contains the contents of\\nthe article, as mentioned in {@link IBbsArticle }, the contents of the article\\nare separated from the article record to keep evidence and prevent fraud."\r\n },\r\n "IBbsArticle.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "writer",\r\n "format",\r\n "title",\r\n "body",\r\n "files",\r\n "password"\r\n ],\r\n "description": "Store content type of the article."\r\n },\r\n "IBbsArticle.IUpdate": {\r\n "type": "object",\r\n "properties": {\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "format",\r\n "title",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticle.IErase": {\r\n "type": "object",\r\n "properties": {\r\n "password": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IRequest": {\r\n "type": "object",\r\n "properties": {\r\n "search": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest.ISearch"\r\n },\r\n "sort": {\r\n "type": "array",\r\n "items": {\r\n "type": "string",\r\n "enum": [\r\n "+created_at",\r\n "+writer",\r\n "-created_at",\r\n "-writer"\r\n ]\r\n }\r\n },\r\n "page": {\r\n "type": "integer",\r\n "title": "Page number",\r\n "description": "Page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IBbsArticleComment.IRequest.ISearch": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IPageIBbsArticleComment": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IBbsArticleComment": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "parent_id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "nullable": true,\r\n "title": "Parent comment\'s ID",\r\n "description": "Parent comment\'s ID."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of comment",\r\n "description": "Writer of comment."\r\n },\r\n "snapshots": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\r\n },\r\n "minItems": 1,\r\n "title": "List of snapshot contents",\r\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when a comment being created, and is\\naccumulated every time the comment is modified."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of comment",\r\n "description": "Creation time of comment."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "parent_id",\r\n "writer",\r\n "snapshots",\r\n "created_at"\r\n ],\r\n "description": "Comment written on an article.\\n\\n`IBbsArticleComment` is an entity that shapes the comments written on an article.\\n\\nAnd for this comment, as in the previous relationship between\\n{@link IBbsArticle } and {@link IBbsArticle.ISnapshot }, the content body of the\\ncomment is stored in the sub {@link IBbsArticleComment.ISnapshot } table for\\nevidentialism, and a new snapshot record is issued every time the comment is modified.\\n\\nAlso, `IBbsArticleComment` is expressing the relationship of the hierarchical reply\\nstructure through the {@link IBbsArticleComment.parent_id } attribute."\r\n },\r\n "IBbsArticleComment.ISnapshot": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of snapshot record",\r\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or comment."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "created_at",\r\n "format",\r\n "body",\r\n "files"\r\n ],\r\n "description": "Snapshot of comment.\\n\\n`IBbsArticleComment.ISnapshot` is a snapshot entity that contains\\nthe contents of the comment.\\n\\nAs mentioned in {@link IBbsArticleComment }, designed to keep evidence\\nand prevent fraud."\r\n },\r\n "IBbsArticleComment.Format": {\r\n "type": "string",\r\n "enum": [\r\n "txt",\r\n "md",\r\n "html"\r\n ]\r\n },\r\n "IBbsArticleComment.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of comment",\r\n "description": "Writer of comment."\r\n },\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "writer",\r\n "format",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IUpdate": {\r\n "type": "object",\r\n "properties": {\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "format",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IErase": {\r\n "type": "object",\r\n "properties": {\r\n "password": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "password"\r\n ]\r\n },\r\n "IPerformance": {\r\n "type": "object",\r\n "properties": {\r\n "cpu": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.CpuUsage"\r\n },\r\n "memory": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.MemoryUsage"\r\n },\r\n "resource": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.ResourceUsage"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "cpu",\r\n "memory",\r\n "resource"\r\n ]\r\n },\r\n "process.global.NodeJS.CpuUsage": {\r\n "type": "object",\r\n "properties": {\r\n "user": {\r\n "type": "number"\r\n },\r\n "system": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "user",\r\n "system"\r\n ]\r\n },\r\n "process.global.NodeJS.MemoryUsage": {\r\n "type": "object",\r\n "properties": {\r\n "rss": {\r\n "type": "number"\r\n },\r\n "heapTotal": {\r\n "type": "number"\r\n },\r\n "heapUsed": {\r\n "type": "number"\r\n },\r\n "external": {\r\n "type": "number"\r\n },\r\n "arrayBuffers": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "rss",\r\n "heapTotal",\r\n "heapUsed",\r\n "external",\r\n "arrayBuffers"\r\n ]\r\n },\r\n "process.global.NodeJS.ResourceUsage": {\r\n "type": "object",\r\n "properties": {\r\n "fsRead": {\r\n "type": "number"\r\n },\r\n "fsWrite": {\r\n "type": "number"\r\n },\r\n "involuntaryContextSwitches": {\r\n "type": "number"\r\n },\r\n "ipcReceived": {\r\n "type": "number"\r\n },\r\n "ipcSent": {\r\n "type": "number"\r\n },\r\n "majorPageFault": {\r\n "type": "number"\r\n },\r\n "maxRSS": {\r\n "type": "number"\r\n },\r\n "minorPageFault": {\r\n "type": "number"\r\n },\r\n "sharedMemorySize": {\r\n "type": "number"\r\n },\r\n "signalsCount": {\r\n "type": "number"\r\n },\r\n "swappedOut": {\r\n "type": "number"\r\n },\r\n "systemCPUTime": {\r\n "type": "number"\r\n },\r\n "unsharedDataSize": {\r\n "type": "number"\r\n },\r\n "unsharedStackSize": {\r\n "type": "number"\r\n },\r\n "userCPUTime": {\r\n "type": "number"\r\n },\r\n "voluntaryContextSwitches": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "fsRead",\r\n "fsWrite",\r\n "involuntaryContextSwitches",\r\n "ipcReceived",\r\n "ipcSent",\r\n "majorPageFault",\r\n "maxRSS",\r\n "minorPageFault",\r\n "sharedMemorySize",\r\n "signalsCount",\r\n "swappedOut",\r\n "systemCPUTime",\r\n "unsharedDataSize",\r\n "unsharedStackSize",\r\n "userCPUTime",\r\n "voluntaryContextSwitches"\r\n ]\r\n },\r\n "ISystem": {\r\n "type": "object",\r\n "properties": {\r\n "uid": {\r\n "type": "number",\r\n "title": "Random Unique ID",\r\n "description": "Random Unique ID."\r\n },\r\n "arguments": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n },\r\n "description": "`process.argv`"\r\n },\r\n "commit": {\r\n "$ref": "#/components/schemas/ISystem.ICommit",\r\n "title": "Git commit info",\r\n "description": "Git commit info."\r\n },\r\n "package": {\r\n "$ref": "#/components/schemas/ISystem.IPackage",\r\n "description": "`package.json`"\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "title": "Creation time of this server",\r\n "description": "Creation time of this server."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "uid",\r\n "arguments",\r\n "commit",\r\n "package",\r\n "created_at"\r\n ],\r\n "description": "System Information."\r\n },\r\n "ISystem.ICommit": {\r\n "type": "object",\r\n "properties": {\r\n "shortHash": {\r\n "type": "string"\r\n },\r\n "branch": {\r\n "type": "string"\r\n },\r\n "hash": {\r\n "type": "string"\r\n },\r\n "subject": {\r\n "type": "string"\r\n },\r\n "sanitizedSubject": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n },\r\n "author": {\r\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\r\n },\r\n "committer": {\r\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\r\n },\r\n "authored_at": {\r\n "type": "string"\r\n },\r\n "commited_at": {\r\n "type": "string"\r\n },\r\n "notes": {\r\n "type": "string"\r\n },\r\n "tags": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n }\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "shortHash",\r\n "branch",\r\n "hash",\r\n "subject",\r\n "sanitizedSubject",\r\n "body",\r\n "author",\r\n "committer",\r\n "authored_at",\r\n "commited_at",\r\n "tags"\r\n ],\r\n "description": "Git commit info."\r\n },\r\n "ISystem.ICommit.IUser": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string"\r\n },\r\n "email": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "email"\r\n ],\r\n "description": "Git user account info."\r\n },\r\n "ISystem.IPackage": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string"\r\n },\r\n "version": {\r\n "type": "string"\r\n },\r\n "description": {\r\n "type": "string"\r\n },\r\n "main": {\r\n "type": "string"\r\n },\r\n "typings": {\r\n "type": "string"\r\n },\r\n "scripts": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "repository": {\r\n "type": "object",\r\n "properties": {\r\n "type": {\r\n "type": "string",\r\n "enum": [\r\n "git"\r\n ]\r\n },\r\n "url": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "type",\r\n "url"\r\n ]\r\n },\r\n "author": {\r\n "type": "string"\r\n },\r\n "license": {\r\n "type": "string"\r\n },\r\n "bugs": {\r\n "type": "object",\r\n "properties": {\r\n "url": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "url"\r\n ]\r\n },\r\n "homepage": {\r\n "type": "string"\r\n },\r\n "devDependencies": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "dependencies": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "publishConfig": {\r\n "type": "object",\r\n "properties": {\r\n "registry": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "registry"\r\n ]\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n }\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "version",\r\n "description",\r\n "scripts",\r\n "repository",\r\n "author",\r\n "license",\r\n "bugs",\r\n "homepage",\r\n "dependencies"\r\n ],\r\n "description": "NPM package info."\r\n },\r\n "Recordstringstring": {\r\n "type": "object",\r\n "properties": {},\r\n "nullable": false,\r\n "description": "Construct a type with a set of properties K of type T"\r\n }\r\n }\r\n }\r\n}'},{location:"test",file:"index.ts",content:'import { DynamicExecutor } from "@nestia/e2e";\r\nimport chalk from "chalk";\r\n\r\nimport { TestGlobal } from "./TestGlobal";\r\nimport { ArgumentParser } from "./utils/ArgumentParser";\r\n\r\ninterface IOptions {\r\n simulate: boolean;\r\n include?: string[];\r\n exclude?: string[];\r\n trace: boolean;\r\n}\r\n\r\nconst getOptions = () =>\r\n ArgumentParser.parse(async (command, prompt, action) => {\r\n command.option("--simulate ", "Mockup Simultator");\r\n command.option("--include ", "include feature files");\r\n command.option("--exclude ", "exclude feature files");\r\n command.option("--trace ", "trace detailed errors");\r\n\r\n return action(async (options) => {\r\n if (typeof options.simulate === "string")\r\n options.simulate = options.simulate === "true";\r\n options.simulate ??= await prompt.boolean("simulate")("Mockup Simulator");\r\n options.trace = options.trace !== ("false" as any);\r\n return options as IOptions;\r\n });\r\n });\r\n\r\nconst main = async (): Promise => {\r\n // DO TEST\r\n const options: IOptions = await getOptions();\r\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\r\n prefix: "test",\r\n location: __dirname + "/features",\r\n extension: __filename.substring(__filename.length - 2),\r\n parameters: () => [\r\n {\r\n ...TestGlobal.connection(),\r\n simulate: options.simulate,\r\n },\r\n ],\r\n filter: (func) =>\r\n (!options.include?.length ||\r\n (options.include ?? []).some((str) => func.includes(str))) &&\r\n (!options.exclude?.length ||\r\n (options.exclude ?? []).every((str) => !func.includes(str))),\r\n onComplete: (exec) => {\r\n const trace = (str: string) =>\r\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\r\n if (exec.error === null) {\r\n const elapsed: number =\r\n new Date(exec.completed_at).getTime() -\r\n new Date(exec.started_at).getTime();\r\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\r\n } else trace(chalk.red(exec.error.name));\r\n },\r\n });\r\n\r\n // REPORT EXCEPTIONS\r\n const exceptions: Error[] = report.executions\r\n .filter((exec) => exec.error !== null)\r\n .map((exec) => exec.error!);\r\n if (exceptions.length === 0) {\r\n console.log("Success");\r\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\r\n } else {\r\n if (options.trace !== false) for (const exp of exceptions) console.log(exp);\r\n console.log("Failed");\r\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\r\n }\r\n\r\n // TERMINATE\r\n if (exceptions.length) process.exit(-1);\r\n else process.exit(0);\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test",file:"start.ts",content:'import api from "@ORGANIZATION/PROJECT-api";\r\nimport { IBbsArticleComment } from "@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticleComment";\r\nimport typia from "typia";\r\nimport type { Format } from "typia/lib/tags/Format";\r\n\r\nimport { TestGlobal } from "./TestGlobal";\r\n\r\nconst main = async () => {\r\n const connection: api.IConnection = {\r\n ...TestGlobal.connection(),\r\n simulate: true,\r\n };\r\n const output: IBbsArticleComment =\r\n await api.functional.bbs.articles.comments.create(\r\n connection,\r\n typia.random>(),\r\n typia.random(),\r\n );\r\n typia.assert(output);\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test",file:"swagger.ts",content:'import express from "express";\r\nimport ui from "swagger-ui-express";\r\n\r\nimport swagger from "../swagger.json";\r\n\r\nconst main = async (): Promise => {\r\n const app = express();\r\n app.use("/", ui.serve, ui.setup(swagger));\r\n app.listen(3000);\r\n\r\n console.log("-----------------------------------------------------------");\r\n console.log("\\n Swagger UI Address: http://127.0.0.1:3000 \\n");\r\n console.log("-----------------------------------------------------------");\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test",file:"TestGlobal.ts",content:'import api from "@ORGANIZATION/PROJECT-api";\r\n\r\nexport namespace TestGlobal {\r\n export const connection = (): api.IConnection => ({\r\n host: `http://127.0.0.1:37001`,\r\n });\r\n}\r\n'},{location:"test",file:"tsconfig.json",content:'{\r\n "extends": "../tsconfig.json",\r\n "compilerOptions": {\r\n "outDir": "../bin",\r\n "paths": {\r\n "@ORGANIZATION/PROJECT-api": ["../src"],\r\n "@ORGANIZATION/PROJECT-api/lib/*": ["../src/*"],\r\n },\r\n "plugins": [\r\n { "transform": "typia/lib/transform" },\r\n { "transform": "typescript-transform-paths" },\r\n ],\r\n },\r\n "include": [\r\n ".", \r\n "../src",\r\n ],\r\n}'},{location:"test/utils",file:"ArgumentParser.ts",content:'import commander from "commander";\r\nimport * as inquirer from "inquirer";\r\n\r\nexport namespace ArgumentParser {\r\n export type Inquiry = (\r\n command: commander.Command,\r\n prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule,\r\n action: (closure: (options: Partial) => Promise) => Promise,\r\n ) => Promise;\r\n\r\n export interface Prompt {\r\n select: (\r\n name: string,\r\n ) => (\r\n message: string,\r\n ) => (choices: Choice[]) => Promise;\r\n boolean: (name: string) => (message: string) => Promise;\r\n }\r\n\r\n export const parse = async (\r\n inquiry: (\r\n command: commander.Command,\r\n prompt: Prompt,\r\n action: (closure: (options: Partial) => Promise) => Promise,\r\n ) => Promise,\r\n ): Promise => {\r\n // TAKE OPTIONS\r\n const action = (closure: (options: Partial) => Promise) =>\r\n new Promise((resolve, reject) => {\r\n commander.program.action(async (options) => {\r\n try {\r\n resolve(await closure(options));\r\n } catch (exp) {\r\n reject(exp);\r\n }\r\n });\r\n commander.program.parseAsync().catch(reject);\r\n });\r\n\r\n const select =\r\n (name: string) =>\r\n (message: string) =>\r\n async (choices: Choice[]): Promise =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "list",\r\n name,\r\n message,\r\n choices,\r\n })\r\n )[name];\r\n const boolean = (name: string) => async (message: string) =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "confirm",\r\n name,\r\n message,\r\n })\r\n )[name] as boolean;\r\n\r\n const output: T | Error = await (async () => {\r\n try {\r\n return await inquiry(commander.program, { select, boolean }, action);\r\n } catch (error) {\r\n return error as Error;\r\n }\r\n })();\r\n\r\n // RETURNS\r\n if (output instanceof Error) throw output;\r\n return output;\r\n };\r\n}\r\n'},{location:"",file:"tsconfig.json",content:'{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n /* Language and Environment */\r\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n "lib": [\r\n "DOM",\r\n "ES2015"\r\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "jsx": "preserve", /* Specify what JSX code is generated. */\r\n // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */// "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n "paths": {\r\n "@ORGANIZATION/PROJECT-api": ["../src"],\r\n "@ORGANIZATION/PROJECT-api/lib/*": ["../src/*"],\r\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'\'s from expanding the number of files TypeScript should add to a project. */\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n /* Emit */\r\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */// "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */// "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. *//* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n // "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n // "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n { "transform": "typia/lib/transform" },\r\n { "transform": "typescript-transform-paths" },\r\n ],\r\n },\r\n "include": ["src"],\r\n}'}]},62430:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeLiteralFactory=void 0;let i=o(r(55423)),a=r(5724);!function(e){e.generate=e=>"boolean"==typeof e?n(e):"number"==typeof e?r(e):"string"==typeof e?t(e):"object"==typeof e?null===e?o():Array.isArray(e)?s(e):c(e):i.default.factory.createKeywordTypeNode(i.default.SyntaxKind.AnyKeyword);let t=e=>i.default.factory.createLiteralTypeNode(i.default.factory.createStringLiteral(e)),r=e=>i.default.factory.createLiteralTypeNode(e<0?i.default.factory.createPrefixUnaryExpression(i.default.SyntaxKind.MinusToken,i.default.factory.createNumericLiteral(-e)):i.default.factory.createNumericLiteral(e)),n=e=>i.default.factory.createLiteralTypeNode(e?i.default.factory.createTrue():i.default.factory.createFalse()),o=()=>i.default.factory.createLiteralTypeNode(i.default.factory.createNull()),s=t=>i.default.factory.createTupleTypeNode(t.map(e.generate)),c=t=>i.default.factory.createTypeLiteralNode(Object.entries(t).map(([t,r])=>i.default.factory.createPropertySignature(void 0,a.Escaper.variable(t)?i.default.factory.createIdentifier(t):i.default.factory.createStringLiteral(t),void 0,e.generate(r))))}(n||(t.TypeLiteralFactory=n={}))},73660:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});let s=i(r(36930));t.default=s,a(r(36930),t)},36930:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(54478),t),o(r(67412),t),o(r(85657),t),o(r(89943),t),o(r(38788),t)},68787:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiFileProgrammer=void 0;let i=o(r(55423)),a=r(37219),s=r(54093),c=r(86879);(n||(t.MigrateApiFileProgrammer=n={})).write=e=>t=>r=>{let n=new c.MigrateImportProgrammer,o=r.routes.map(r=>[a.MigrateApiFunctionProgrammer.write(e)(t)(n)(r),s.MigrateApiNamespaceProgrammer.write(e)(t)(n)(r)]).flat();return[...n.toStatements(e=>`../${"../".repeat(r.namespace.length)}structures/${e}`),...[...r.children].map(e=>i.default.factory.createExportDeclaration(void 0,!1,i.default.factory.createNamespaceExport(i.default.factory.createIdentifier(e)),i.default.factory.createStringLiteral(`./${e}`),void 0)),...o]}},37219:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiFunctionProgrammer=void 0;let i=o(r(55423)),a=r(61387),s=r(7621),c=r(49271);!function(e){e.write=n=>o=>a=>c=>s.FilePrinter.description(i.default.factory.createFunctionDeclaration([i.default.factory.createModifier(i.default.SyntaxKind.ExportKeyword),i.default.factory.createModifier(i.default.SyntaxKind.AsyncKeyword)],void 0,c.accessor.at(-1),void 0,e.writeParameterDeclarations(o)(a)(c),i.default.factory.createTypeReferenceNode("Promise",[i.default.factory.createTypeReferenceNode(null===c.success?"void":`${c.accessor.at(-1)}.Output`)]),i.default.factory.createBlock(r(n)(a)(c),!0)),t(c)),e.writeParameterDeclarations=e=>t=>r=>[a.IdentifierFactory.parameter("connection",i.default.factory.createTypeReferenceNode(t.external({type:"instance",library:"@nestia/fetcher",name:"IConnection"}),r.headers?[i.default.factory.createTypeReferenceNode(`${r.accessor.at(-1)}.Headers`)]:void 0)),...r.parameters.map(r=>a.IdentifierFactory.parameter(r.key,c.MigrateSchemaProgrammer.write(e)(t)(r.schema))),...r.query?[a.IdentifierFactory.parameter(r.query.key,i.default.factory.createTypeReferenceNode(`${r.accessor.at(-1)}.Query`))]:[],...r.body?[a.IdentifierFactory.parameter(r.body.key,i.default.factory.createTypeReferenceNode(`${r.accessor.at(-1)}.Input`))]:[]];let t=e=>[e.comment(),`@path ${e.emendedPath}`,"@nestia Generated by Nestia - https://github.com/samchon/nestia"].join("\n"),r=e=>t=>r=>{var n,o,s;let c=!!(null===(n=r.success)||void 0===n?void 0:n["x-nestia-encrypted"]),u=null!==(s=null===(o=r.body)||void 0===o?void 0:o.type)&&void 0!==s?s:"application/json",l=()=>i.default.factory.createCallExpression(a.IdentifierFactory.access(i.default.factory.createIdentifier(t.external({type:"instance",library:`@nestia/fetcher/lib/${c?"EncryptedFetcher":"PlainFetcher"}`,name:c?"EncryptedFetcher":"PlainFetcher"})))("fetch"),void 0,[u&&"multipart/form-data"!==u?i.default.factory.createObjectLiteralExpression([i.default.factory.createSpreadAssignment(i.default.factory.createIdentifier("connection")),i.default.factory.createPropertyAssignment("headers",i.default.factory.createObjectLiteralExpression([i.default.factory.createSpreadAssignment(a.IdentifierFactory.access(i.default.factory.createIdentifier("connection"))("headers")),i.default.factory.createPropertyAssignment(i.default.factory.createStringLiteral("Content-Type"),i.default.factory.createStringLiteral(u))],!0))],!0):i.default.factory.createIdentifier("connection"),i.default.factory.createObjectLiteralExpression([i.default.factory.createSpreadAssignment(a.IdentifierFactory.access(i.default.factory.createIdentifier(r.accessor.at(-1)))("METADATA")),i.default.factory.createPropertyAssignment("path",i.default.factory.createCallExpression(a.IdentifierFactory.access(i.default.factory.createIdentifier(r.accessor.at(-1)))("path"),void 0,[...r.parameters.map(e=>i.default.factory.createIdentifier(e.key)),...r.query?[i.default.factory.createIdentifier(r.query.key)]:[]])),i.default.factory.createPropertyAssignment("status",i.default.factory.createNull())],!0),...r.body?[i.default.factory.createIdentifier(r.body.key)]:[]]);return!0!==e.simulate?[i.default.factory.createReturnStatement(l())]:[i.default.factory.createReturnStatement(i.default.factory.createConditionalExpression(i.default.factory.createIdentifier("!!connection.simulate"),void 0,i.default.factory.createCallExpression(i.default.factory.createIdentifier(`${r.accessor.at(-1)}.simulate`),[],["connection",...r.parameters.map(e=>e.key),...r.query?[r.query.key]:[],...r.body?[r.body.key]:[]].map(e=>i.default.factory.createIdentifier(e))),void 0,l()))]}}(n||(t.MigrateApiFunctionProgrammer=n={}))},54093:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiNamespaceProgrammer=void 0;let i=o(r(55423)),a=r(73906),s=r(61387),c=r(97846),u=r(12301),l=r(7621),p=r(43298),f=r(49271);!function(e){e.write=e=>o=>a=>s=>{let c=t(o)(a)(s);return i.default.factory.createModuleDeclaration([i.default.factory.createToken(i.default.SyntaxKind.ExportKeyword)],i.default.factory.createIdentifier(s.accessor.at(-1)),i.default.factory.createModuleBlock([...c,...c.length?[l.FilePrinter.newLine()]:[],r(o)(a)(s),l.FilePrinter.newLine(),n(o)(a)(s),...e.simulate?[p.MigrateApiSimulatationProgrammer.random(o)(a)(s),p.MigrateApiSimulatationProgrammer.simulate(o)(a)(s)]:[]]),i.default.NodeFlags.Namespace)},e.writePathCallExpression=e=>i.default.factory.createCallExpression(i.default.factory.createIdentifier(`${e.accessor.at(-1)}.path`),void 0,[...e.parameters.map(e=>i.default.factory.createIdentifier(e.key)),...e.query?[i.default.factory.createIdentifier(e.query.key)]:[]]);let t=e=>t=>r=>{let n=[],o=(e,t)=>n.push(i.default.factory.createTypeAliasDeclaration([i.default.factory.createModifier(i.default.SyntaxKind.ExportKeyword)],e,void 0,t));return r.headers&&o("Headers",f.MigrateSchemaProgrammer.write(e)(t)(r.headers.schema)),r.query&&o("Query",f.MigrateSchemaProgrammer.write(e)(t)(r.query.schema)),r.body&&o("Input",f.MigrateSchemaProgrammer.write(e)(t)(r.body.schema)),r.success&&o("Output",f.MigrateSchemaProgrammer.write(e)(t)(r.success.schema)),n},r=e=>t=>r=>{var n,o,a,s;return d("METADATA")(i.default.factory.createAsExpression(i.default.factory.createObjectLiteralExpression([i.default.factory.createPropertyAssignment("method",i.default.factory.createStringLiteral(r.method.toUpperCase())),i.default.factory.createPropertyAssignment("path",i.default.factory.createStringLiteral(h(r))),i.default.factory.createPropertyAssignment("request",r.body?c.LiteralFactory.generate({type:r.body.type,encrypted:!!r.body["x-nestia-encrypted"]}):i.default.factory.createNull()),i.default.factory.createPropertyAssignment("response","HEAD"!==r.method.toUpperCase()?c.LiteralFactory.generate({type:null!==(o=null===(n=r.success)||void 0===n?void 0:n.type)&&void 0!==o?o:"application/json",encrypted:!!(null===(a=r.success)||void 0===a?void 0:a["x-nestia-encrypted"])}):i.default.factory.createNull()),...(null===(s=r.success)||void 0===s?void 0:s.type)==="application/x-www-form-urlencoded"?[i.default.factory.createPropertyAssignment("parseQuery",i.default.factory.createCallExpression(i.default.factory.createIdentifier(`${t.external({type:"default",library:"typia",name:"typia"})}.http.createAssertQuery`),[f.MigrateSchemaProgrammer.write(e)(t)(r.success.schema)],void 0))]:[]],!0),i.default.factory.createTypeReferenceNode(i.default.factory.createIdentifier("const"))))},n=e=>t=>r=>{let n=n=>d("path")(i.default.factory.createArrowFunction([],[],[...r.parameters.map(r=>s.IdentifierFactory.parameter(r.key,f.MigrateSchemaProgrammer.write(e)(t)(r.schema))),...r.query?[s.IdentifierFactory.parameter(r.query.key,i.default.factory.createTypeReferenceNode(`${r.accessor.at(-1)}.Query`))]:[]],void 0,void 0,n)),o=()=>{let e=h(r),t=e.split(":");return 1===t.length?i.default.factory.createStringLiteral(e):i.default.factory.createTemplateExpression(i.default.factory.createTemplateHead(t[0]),t.slice(1).map((e,t,n)=>{let o=e.split("/")[0];return i.default.factory.createTemplateSpan(i.default.factory.createCallExpression(i.default.factory.createIdentifier("encodeURIComponent"),void 0,[i.default.factory.createBinaryExpression(i.default.factory.createIdentifier(r.parameters.find(e=>e.name===o).key),i.default.factory.createToken(i.default.SyntaxKind.QuestionQuestionToken),i.default.factory.createStringLiteral("null"))]),(t!==n.length-1?i.default.factory.createTemplateMiddle:i.default.factory.createTemplateTail)(e.substring(o.length)))}))};if(!r.query)return n(o());let c=e=>void 0!==r.parameters.find(t=>t.key===e)?c("_"+e):e,l=c("variables");return n(i.default.factory.createBlock([y(l)("URLSearchParams")(i.default.factory.createNewExpression(i.default.factory.createIdentifier("URLSearchParams"),[],[])),i.default.factory.createForOfStatement(void 0,i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration(i.default.factory.createArrayBindingPattern([i.default.factory.createBindingElement(void 0,void 0,i.default.factory.createIdentifier("key"),void 0),i.default.factory.createBindingElement(void 0,void 0,i.default.factory.createIdentifier("value"),void 0)]),void 0,void 0,void 0)],i.default.NodeFlags.Const),i.default.factory.createCallExpression(i.default.factory.createIdentifier("Object.entries"),void 0,[i.default.factory.createAsExpression(i.default.factory.createIdentifier(r.query.key),u.TypeFactory.keyword("any"))]),i.default.factory.createIfStatement(i.default.factory.createStrictEquality(i.default.factory.createIdentifier("undefined"),i.default.factory.createIdentifier("value")),i.default.factory.createContinueStatement(),i.default.factory.createIfStatement(i.default.factory.createCallExpression(i.default.factory.createIdentifier("Array.isArray"),void 0,[i.default.factory.createIdentifier("value")]),i.default.factory.createExpressionStatement(i.default.factory.createCallExpression(i.default.factory.createPropertyAccessExpression(i.default.factory.createIdentifier("value"),i.default.factory.createIdentifier("forEach")),void 0,[i.default.factory.createArrowFunction(void 0,void 0,[s.IdentifierFactory.parameter("elem")],void 0,void 0,i.default.factory.createCallExpression(s.IdentifierFactory.access(i.default.factory.createIdentifier(l))("append"),void 0,[i.default.factory.createIdentifier("key"),i.default.factory.createCallExpression(i.default.factory.createIdentifier("String"),void 0,[i.default.factory.createIdentifier("elem")])]))])),i.default.factory.createExpressionStatement(i.default.factory.createCallExpression(s.IdentifierFactory.access(i.default.factory.createIdentifier(l))("set"),void 0,[i.default.factory.createIdentifier("key"),i.default.factory.createCallExpression(i.default.factory.createIdentifier("String"),void 0,[i.default.factory.createIdentifier("value")])]))))),y("location")("string")(o()),i.default.factory.createReturnStatement(i.default.factory.createConditionalExpression(i.default.factory.createStrictEquality(a.ExpressionFactory.number(0),s.IdentifierFactory.access(i.default.factory.createIdentifier(l))("size")),void 0,i.default.factory.createIdentifier("location"),void 0,i.default.factory.createTemplateExpression(i.default.factory.createTemplateHead(""),[i.default.factory.createTemplateSpan(i.default.factory.createIdentifier("location"),i.default.factory.createTemplateMiddle("?")),i.default.factory.createTemplateSpan(i.default.factory.createCallExpression(s.IdentifierFactory.access(i.default.factory.createIdentifier(l))("toString"),void 0,void 0),i.default.factory.createTemplateTail(""))])))],!0))}}(n||(t.MigrateApiNamespaceProgrammer=n={}));let d=e=>t=>i.default.factory.createVariableStatement([i.default.factory.createModifier(i.default.SyntaxKind.ExportKeyword)],i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration(e,void 0,void 0,t)],i.default.NodeFlags.Const)),h=e=>"/"+e.emendedPath,y=e=>t=>r=>i.default.factory.createVariableStatement([],i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration(e,void 0,i.default.factory.createTypeReferenceNode(t),r)],i.default.NodeFlags.Const))},1213:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiProgrammer=void 0;let i=r(85113),a=o(r(55423)),s=r(7621),c=r(68787),u=r(59218),l=r(86879);!function(e){e.write=e=>{let r=new i.HashMap(e=>(0,i.hash)(e.join(".")),(e,t)=>e.length===t.length&&e.join(".")===t.join("."));for(let t of e.routes){let e=t.accessor.slice(0,-1),n=r.take(e,()=>({namespace:e,routes:[],children:new Set}));n.routes.push(t),e.forEach((t,o,i)=>{let a=e.slice(0,i.length-o-1),s=r.take(a,()=>({namespace:a,children:new Set,routes:[]}));s.children.add(n.namespace.at(-1)),n=s})}let n=[...r].map(({second:t})=>({location:`src/${"nest"===e.mode?"api/":""}functional/${t.namespace.join("/")}`,file:"index.ts",content:s.FilePrinter.write({statements:c.MigrateApiFileProgrammer.write(e)(e.document.components)(t)})}));return"sdk"===e.mode&&n.push(...[...u.MigrateDtoProgrammer.compose(e.document.components).entries()].map(([e,r])=>({location:"src/structures",file:`${e}.ts`,content:s.FilePrinter.write({statements:t(e,r)})}))),n};let t=(e,t)=>{let n=new l.MigrateImportProgrammer,o=r(n)(t);return 0===o.length?[]:[...n.toStatements(e=>`./${e}`,e),...n.empty()?[]:[s.FilePrinter.newLine()],...o]},r=e=>t=>{let n=[];if(null!==t.programmer&&n.push(t.programmer(e)),t.children.size){let o=[];for(let n of t.children.values())o.push(...r(e)(n));n.push(a.default.factory.createModuleDeclaration([a.default.factory.createModifier(a.default.SyntaxKind.ExportKeyword)],a.default.factory.createIdentifier(t.name),a.default.factory.createModuleBlock(o),a.default.NodeFlags.Namespace))}return n}}(n||(t.MigrateApiProgrammer=n={}))},43298:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiSimulatationProgrammer=void 0;let i=o(r(55423)),a=r(61387),s=r(6152),c=r(12301),u=r(37219),l=r(54093),p=r(49271);!function(e){e.random=e=>t=>r=>{let n=r.success?p.MigrateSchemaProgrammer.write(e)(t)(r.success.schema):c.TypeFactory.keyword("void");return f("random")(i.default.factory.createArrowFunction(void 0,void 0,[i.default.factory.createParameterDeclaration(void 0,void 0,"g",i.default.factory.createToken(i.default.SyntaxKind.QuestionToken),i.default.factory.createTypeReferenceNode(i.default.factory.createIdentifier("Partial"),[i.default.factory.createTypeReferenceNode(`${t.external({type:"default",library:"typia",name:"typia"})}.IRandomGenerator`)]))],n,void 0,i.default.factory.createCallExpression(a.IdentifierFactory.access(i.default.factory.createIdentifier(t.external({type:"default",library:"typia",name:"typia"})))("random"),[n],[i.default.factory.createIdentifier("g")])))},e.simulate=e=>r=>n=>f("simulate")(i.default.factory.createArrowFunction(void 0,void 0,u.MigrateApiFunctionProgrammer.writeParameterDeclarations(e)(r)(n),i.default.factory.createTypeReferenceNode(n.success?"Output":"void"),void 0,i.default.factory.createBlock([...t(e)(r)(n),i.default.factory.createReturnStatement(i.default.factory.createCallExpression(i.default.factory.createIdentifier("random"),void 0,[i.default.factory.createConditionalExpression(i.default.factory.createLogicalAnd(i.default.factory.createStrictEquality(i.default.factory.createStringLiteral("object"),i.default.factory.createTypeOfExpression(i.default.factory.createIdentifier("connection.simulate"))),i.default.factory.createStrictInequality(i.default.factory.createNull(),i.default.factory.createIdentifier("connection.simulate"))),void 0,i.default.factory.createIdentifier("connection.simulate"),void 0,i.default.factory.createIdentifier("undefined"))]))],!0)));let t=e=>t=>n=>{var o,c;let u=[...n.parameters.map(r=>({category:"param",name:r.key,schema:p.MigrateSchemaProgrammer.write(e)(t)(r.schema)})),...n.query?[{category:"query",name:n.query.key,schema:p.MigrateSchemaProgrammer.write(e)(t)(n.query.schema)}]:[],...n.body?[{category:"body",name:n.body.key,schema:p.MigrateSchemaProgrammer.write(e)(t)(n.body.schema)}]:[]];if(0===u.length)return[];let f=s.StatementFactory.constant("assert",i.default.factory.createCallExpression(a.IdentifierFactory.access(i.default.factory.createIdentifier(t.external({type:"instance",library:"@nestia/fetcher/lib/NestiaSimulator",name:"NestiaSimulator"})))("assert"),void 0,[i.default.factory.createObjectLiteralExpression([i.default.factory.createPropertyAssignment("method",i.default.factory.createIdentifier("METADATA.method")),i.default.factory.createPropertyAssignment("host",i.default.factory.createIdentifier("connection.host")),i.default.factory.createPropertyAssignment("path",l.MigrateApiNamespaceProgrammer.writePathCallExpression(n)),i.default.factory.createPropertyAssignment("contentType",i.default.factory.createStringLiteral(null!==(c=null===(o=n.success)||void 0===o?void 0:o.type)&&void 0!==c?c:"application/json"))],!0)])),d=u.map(e=>i.default.factory.createCallExpression((()=>{let t=a.IdentifierFactory.access(i.default.factory.createIdentifier("assert"))(e.category);return"param"!==e.category?t:i.default.factory.createCallExpression(t,void 0,[i.default.factory.createStringLiteral(e.name)])})(),void 0,[i.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,i.default.factory.createCallExpression(a.IdentifierFactory.access(i.default.factory.createIdentifier(t.external({type:"default",library:"typia",name:"typia"})))("assert"),void 0,[i.default.factory.createIdentifier("headers"===e.category?"connection.headers":e.name)]))])).map(i.default.factory.createExpressionStatement);return[f,r(t)(d)]},r=e=>t=>i.default.factory.createTryStatement(i.default.factory.createBlock(t,!0),i.default.factory.createCatchClause("exp",i.default.factory.createBlock([i.default.factory.createIfStatement(i.default.factory.createLogicalNot(i.default.factory.createCallExpression(a.IdentifierFactory.access(i.default.factory.createIdentifier(e.external({type:"default",library:"typia",name:"typia"})))("is"),[i.default.factory.createTypeReferenceNode(e.external({type:"instance",library:"@nestia/fetcher",name:"HttpError"}))],[i.default.factory.createIdentifier("exp")])),i.default.factory.createThrowStatement(i.default.factory.createIdentifier("exp"))),i.default.factory.createReturnStatement(i.default.factory.createAsExpression(i.default.factory.createObjectLiteralExpression([i.default.factory.createPropertyAssignment("success",i.default.factory.createFalse()),i.default.factory.createPropertyAssignment("status",i.default.factory.createIdentifier("exp.status")),i.default.factory.createPropertyAssignment("headers",i.default.factory.createIdentifier("exp.headers")),i.default.factory.createPropertyAssignment("data",i.default.factory.createIdentifier("exp.toJSON().message"))],!0),c.TypeFactory.keyword("any")))],!0)),void 0)}(n||(t.MigrateApiSimulatationProgrammer=n={}));let f=e=>t=>i.default.factory.createVariableStatement([i.default.factory.createModifier(i.default.SyntaxKind.ExportKeyword)],i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration(i.default.factory.createIdentifier(e),void 0,void 0,t)],i.default.NodeFlags.Const))},60643:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiStartProgrammer=void 0;let i=o(r(55423)),a=r(61387),s=r(6152),c=r(7621),u=r(49813),l=r(86879);!function(e){e.write=e=>{let r=new l.MigrateImportProgrammer,o=t(e)(e.document)(r)(p(e.routes)),a=[...r.toStatements(e=>`@ORGANIZATION/PROJECT-api/lib/structures/${e}`),c.FilePrinter.newLine(),i.default.factory.createImportDeclaration(void 0,i.default.factory.createImportClause(!1,void 0,i.default.factory.createNamedImports([i.default.factory.createImportSpecifier(!1,void 0,i.default.factory.createIdentifier("TestGlobal"))])),i.default.factory.createStringLiteral("./TestGlobal"),void 0),c.FilePrinter.newLine(),o,i.default.factory.createExpressionStatement(n())];return{location:"test",file:"start.ts",content:c.FilePrinter.write({statements:a})}};let t=e=>t=>n=>o=>s.StatementFactory.constant("main",i.default.factory.createArrowFunction([i.default.factory.createToken(i.default.SyntaxKind.AsyncKeyword)],void 0,[],void 0,void 0,i.default.factory.createBlock([r(e)(t)(n),...u.MigrateE2eFunctionProgrammer.writeBody(t.components)(n)(o)],!0))),r=e=>t=>r=>{var n,o,a;return i.default.factory.createVariableStatement(void 0,i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration("connection",void 0,i.default.factory.createTypeReferenceNode(i.default.factory.createQualifiedName(i.default.factory.createIdentifier(r.external({type:"default",library:"@ORGANIZATION/PROJECT-api",name:"api"})),i.default.factory.createIdentifier("IConnection"))),i.default.factory.createObjectLiteralExpression([i.default.factory.createSpreadAssignment(i.default.factory.createCallExpression(i.default.factory.createPropertyAccessExpression(i.default.factory.createIdentifier("TestGlobal"),"connection"),void 0,void 0)),...(null===(a=null===(o=null===(n=t.servers)||void 0===n?void 0:n[0])||void 0===o?void 0:o.url)||void 0===a?void 0:a.length)?[i.default.factory.createPropertyAssignment("host",i.default.factory.createStringLiteral(t.servers[0].url))]:[],...!0===e.simulate?[i.default.factory.createPropertyAssignment("simulate",i.default.factory.createTrue())]:[]],!0))],i.default.NodeFlags.Const))},n=()=>i.default.factory.createCallExpression(i.default.factory.createPropertyAccessExpression(i.default.factory.createCallExpression(i.default.factory.createIdentifier("main"),void 0,void 0),"catch"),void 0,[i.default.factory.createArrowFunction(void 0,void 0,[a.IdentifierFactory.parameter("exp")],void 0,void 0,i.default.factory.createBlock([i.default.factory.createExpressionStatement(i.default.factory.createCallExpression(i.default.factory.createPropertyAccessExpression(i.default.factory.createIdentifier("console"),"log"),void 0,[i.default.factory.createIdentifier("exp")])),i.default.factory.createExpressionStatement(i.default.factory.createCallExpression(i.default.factory.createPropertyAccessExpression(i.default.factory.createIdentifier("process"),"exit"),void 0,[i.default.factory.createPrefixMinus(i.default.factory.createNumericLiteral("1"))]))],!0))])}(n||(t.MigrateApiStartProgrammer=n={}));let p=e=>{let t=Math.random()*e.length,r=Math.min(e.length-1,Math.floor(t));return e[r]}},59218:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateDtoProgrammer=void 0;let i=o(r(55423)),a=r(7621),s=r(95669),c=r(18640),u=r(49271);!function(e){e.compose=e=>{var n;let o=new Map;for(let[i,a]of Object.entries(null!==(n=e.schemas)&&void 0!==n?n:{})){let n=i.split("/").filter(e=>0!==e.length).map(c.StringUtil.escapeNonVariable).join("");t(o)(n)(t=>r(e)(t)(n,a))}return o};let t=e=>t=>r=>{let n=t.split("."),o={value:null};return n.forEach((t,i)=>{o.value=s.MapUtil.take(e)(t)(()=>({name:t,children:new Map,programmer:null})),i===n.length-1&&(o.value.programmer=r),e=o.value.children}),o},r=e=>t=>(r,n)=>a.FilePrinter.description(i.default.factory.createTypeAliasDeclaration([i.default.factory.createToken(i.default.SyntaxKind.ExportKeyword)],r.split(".").at(-1),[],u.MigrateSchemaProgrammer.write(e)(t)(n)),l(n))}(n||(t.MigrateDtoProgrammer=n={}));let l=e=>{var t,r;return[...(null===(t=e.description)||void 0===t?void 0:t.length)?[e.description]:[],...(null===(r=e.description)||void 0===r?void 0:r.length)&&(void 0!==e.title||!0===e.deprecated)?[""]:[],...void 0!==e.title?[`@title ${e.title}`]:[],...!0===e.deprecated?["@deprecated"]:[]].join("\n").split("*/").join("*\\/")}},49813:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateE2eFunctionProgrammer=void 0;let i=o(r(55423)),a=r(61387),s=r(49271);!function(e){e.write=t=>r=>n=>i.default.factory.createFunctionDeclaration([i.default.factory.createModifier(i.default.SyntaxKind.ExportKeyword),i.default.factory.createModifier(i.default.SyntaxKind.AsyncKeyword)],void 0,["test","api",...n.accessor].join("_"),void 0,[a.IdentifierFactory.parameter("connection",i.default.factory.createTypeReferenceNode(i.default.factory.createQualifiedName(i.default.factory.createIdentifier(r.external({type:"default",library:"@ORGANIZATION/PROJECT-api",name:"api"})),i.default.factory.createIdentifier("IConnection"))))],void 0,i.default.factory.createBlock(e.writeBody(t)(r)(n),!0)),e.writeBody=e=>r=>n=>[i.default.factory.createVariableStatement([],i.default.factory.createVariableDeclarationList([i.default.factory.createVariableDeclaration("output",void 0,n.success?s.MigrateSchemaProgrammer.write(e)(r)(n.success.schema):void 0,i.default.factory.createAwaitExpression(t(e)(r)(n)))],i.default.NodeFlags.Const)),i.default.factory.createExpressionStatement(i.default.factory.createCallExpression(i.default.factory.createPropertyAccessExpression(i.default.factory.createIdentifier(r.external({type:"default",library:"typia",name:"typia"})),"assert"),void 0,[i.default.factory.createIdentifier("output")]))];let t=e=>t=>r=>i.default.factory.createCallExpression(i.default.factory.createPropertyAccessExpression(i.default.factory.createIdentifier("api.functional"),i.default.factory.createIdentifier(r.accessor.join("."))),void 0,[i.default.factory.createIdentifier("connection"),...[...r.parameters,r.query,r.body].filter(e=>!!e).map(r=>i.default.factory.createCallExpression(i.default.factory.createPropertyAccessExpression(i.default.factory.createIdentifier(t.external({type:"default",library:"typia",name:"typia"})),"random"),[s.MigrateSchemaProgrammer.write(e)(t)(r.schema)],void 0))])}(n||(t.MigrateE2eFunctionProgrammer=n={}))},65961:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateE2eProgrammer=void 0;let o=r(7621),i=r(49813),a=r(86879);!function(e){e.write=e=>e.routes.map(t(e.document.components));let t=e=>t=>{let r=new a.MigrateImportProgrammer,n=i.MigrateE2eFunctionProgrammer.write(e)(r)(t),s=[...r.toStatements(e=>`@ORGANIZATION/PROJECT-api/lib/structures/${e}`),o.FilePrinter.newLine(),n];return{location:"test/features/api",file:`${["test","api",...t.accessor].join("_")}.ts`,content:o.FilePrinter.write({statements:s})}}}(n||(t.MigrateE2eProgrammer=n={}))},86879:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateImportProgrammer=void 0;let o=n(r(55423)),i=r(62430),a=r(7621),s=r(95669);class c{constructor(){this.external_=new Map,this.dtos_=new Set}empty(){return 0===this.external_.size&&0===this.dtos_.size}external(e){let t=s.MapUtil.take(this.external_)(e.library)(()=>({default:null,instances:new Set})),r=e.name.split(".")[0];return"default"===e.type?t.default=e.name:t.instances.add(r),r}dto(e,t){let r=e.split(".")[0];return this.dtos_.add(r),o.default.factory.createTypeReferenceNode((null==t?void 0:t.length)?o.default.factory.createQualifiedName(o.default.factory.createIdentifier(t),o.default.factory.createIdentifier(r)):e)}tag(e,t){let r=this.external({type:"instance",library:"typia",name:"tags"});return o.default.factory.createTypeReferenceNode(`${r}.${e}`,void 0===t?[]:[i.TypeLiteralFactory.generate(t)])}toStatements(e,t){return[...[...this.external_.entries()].map(([e,t])=>o.default.factory.createImportDeclaration(void 0,o.default.factory.createImportClause(!1,null!==t.default?o.default.factory.createIdentifier(t.default):void 0,t.instances.size?o.default.factory.createNamedImports([...t.instances].map(e=>o.default.factory.createImportSpecifier(!1,void 0,o.default.factory.createIdentifier(e)))):void 0),o.default.factory.createStringLiteral(e))),...this.external_.size&&this.dtos_.size?[a.FilePrinter.newLine()]:[],...[...this.dtos_].filter(t?e=>e!==t.split(".")[0]:()=>!0).map(t=>o.default.factory.createImportDeclaration(void 0,o.default.factory.createImportClause(!1,void 0,o.default.factory.createNamedImports([o.default.factory.createImportSpecifier(!1,void 0,o.default.factory.createIdentifier(t))])),o.default.factory.createStringLiteral(e(t))))]}}t.MigrateImportProgrammer=c},99967:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateNestControllerProgrammer=void 0;let i=o(r(55423)),a=r(7621),s=r(18640),c=r(86879),u=r(58266);(n||(t.MigrateNestControllerProgrammer=n={})).write=e=>t=>{let r=new c.MigrateImportProgrammer,n=i.default.factory.createClassDeclaration([i.default.factory.createDecorator(i.default.factory.createCallExpression(i.default.factory.createIdentifier(r.external({type:"instance",library:"@nestjs/common",name:"Controller"})),[],[i.default.factory.createStringLiteral(t.path)])),i.default.factory.createToken(i.default.SyntaxKind.ExportKeyword)],t.name,[],[],t.routes.map(u.MigrateNestMethodProgrammer.write(e)(r)));return[...r.toStatements(e=>`${"../".repeat(s.StringUtil.splitWithNormalization(t.location).length-1)}api/structures/${e}`),...r.empty()?[]:[a.FilePrinter.newLine()],n]}},58266:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateNestMethodProgrammer=void 0;let i=o(r(55423)),a=r(73906),s=r(61387),c=r(97846),u=r(12301),l=r(7621),p=r(18640),f=r(49271);!function(e){e.write=e=>o=>a=>{let c=a.success?f.MigrateSchemaProgrammer.write(e)(o)(a.success.schema):u.TypeFactory.keyword("void"),p=i.default.factory.createMethodDeclaration([...r(e)(o)(a),i.default.factory.createToken(i.default.SyntaxKind.PublicKeyword),i.default.factory.createToken(i.default.SyntaxKind.AsyncKeyword)],void 0,a.accessor.at(-1),void 0,void 0,n(e)(o)(a),i.default.factory.createTypeReferenceNode("Promise",[c]),i.default.factory.createBlock([...[...a.parameters.map(e=>e.key),...a.headers?["headers"]:[],...a.query?["query"]:[],...a.body?["body"]:[]].map(e=>i.default.factory.createExpressionStatement(i.default.factory.createIdentifier(e))),i.default.factory.createReturnStatement(i.default.factory.createCallExpression(s.IdentifierFactory.access(i.default.factory.createIdentifier(o.external({type:"default",library:"typia",name:"typia"})))("random"),[c],void 0))],!0));return l.FilePrinter.description(p,t(a))};let t=e=>[e.comment(),"@nestia Generated by Nestia - https://github.com/samchon/nestia"].join("\n"),r=e=>t=>r=>{var n,o,c,u,l,h;let y=e=>r=>i.default.factory.createIdentifier(t.external({type:"instance",library:e,name:r})),m=[];r.success&&m.push(...d("Response")(t)(r.success.media()));let _=e=>i.default.factory.createDecorator(i.default.factory.createCallExpression(s.IdentifierFactory.access(y("@nestia/core")(e))(p.StringUtil.capitalize(r.method)),[],[i.default.factory.createStringLiteral(r.path)]));for(let[s,d]of((null===(n=r.success)||void 0===n?void 0:n["x-nestia-encrypted"])?m.push(_("EncryptedRoute")):(null===(o=r.success)||void 0===o?void 0:o.type)==="text/plain"?m.push(i.default.factory.createDecorator(i.default.factory.createCallExpression(y("@nestjs/common")(p.StringUtil.capitalize(r.method)),[],[i.default.factory.createStringLiteral(r.path)]))):(null===(c=r.success)||void 0===c?void 0:c.type)==="application/x-www-form-urlencoded"?m.push(_("TypedQuery")):"head"===r.method?m.push(i.default.factory.createDecorator(i.default.factory.createCallExpression(y("@nestjs/common")("Head"),[],[i.default.factory.createStringLiteral(r.path)]))):(null===r.success||(null===(u=r.success)||void 0===u?void 0:u.type)==="application/json")&&m.push(_("TypedRoute")),Object.entries(null!==(l=r.exceptions)&&void 0!==l?l:{})))m.push(i.default.factory.createDecorator(i.default.factory.createCallExpression(y("@nestia/core")("TypedException"),[f.MigrateSchemaProgrammer.write(e)(t)(d.schema)],[isNaN(Number(s))?i.default.factory.createStringLiteral(s):a.ExpressionFactory.number(Number(s)),...(null===(h=d.response().description)||void 0===h?void 0:h.length)?[i.default.factory.createStringLiteral(d.response().description)]:[]])));return m},n=e=>t=>r=>[...r.parameters.map(r=>i.default.factory.createParameterDeclaration([...d("Parameter")(t)(r.parameter()),i.default.factory.createDecorator(i.default.factory.createCallExpression(i.default.factory.createIdentifier(t.external({type:"instance",library:"@nestia/core",name:"TypedParam"})),void 0,[i.default.factory.createStringLiteral(r.key)]))],void 0,r.key,void 0,f.MigrateSchemaProgrammer.write(e)(t)(r.schema))),...r.headers?[o({method:"TypedHeaders",variable:"headers"})(e)(t)({schema:r.headers.schema,example:r.headers.example(),examples:r.headers.examples()})]:[],...r.query?[o({method:"TypedQuery",variable:"query"})(e)(t)({schema:r.query.schema,example:r.query.example(),examples:r.query.examples()})]:[],...r.body?[o({method:r.body["x-nestia-encrypted"]?"EncryptedBody":"application/json"===r.body.type?"TypedBody":"application/x-www-form-urlencoded"===r.body.type?["TypedQuery","Body"]:"text/plain"===r.body.type?"PlainBody":"multipart/form-data"===r.body.type?["TypedFormData","Body"]:"TypedBody",variable:"body"})(e)(t)({schema:r.body.schema,example:r.body.media().example,examples:r.body.media().examples})]:[]],o=e=>t=>r=>n=>{let o=i.default.factory.createIdentifier(r.external({type:"instance",library:"@nestia/core",name:"string"==typeof e.method?e.method:e.method[0]}));return i.default.factory.createParameterDeclaration([...d("Parameter")(r)(n),i.default.factory.createDecorator(i.default.factory.createCallExpression("string"==typeof e.method?o:s.IdentifierFactory.access(o)(e.method[1]),void 0,void 0))],void 0,e.variable,void 0,f.MigrateSchemaProgrammer.write(t)(r)(n.schema))},d=e=>t=>r=>{var n;return[...void 0!==r.example?[i.default.factory.createDecorator(i.default.factory.createCallExpression(s.IdentifierFactory.access(i.default.factory.createIdentifier(t.external({type:"instance",library:"@nestia/core",name:"SwaggerExample"})))(e),[],[c.LiteralFactory.generate(r.example)]))]:[],...Object.entries(null!==(n=r.examples)&&void 0!==n?n:{}).map(([r,n])=>i.default.factory.createDecorator(i.default.factory.createCallExpression(s.IdentifierFactory.access(i.default.factory.createIdentifier(t.external({type:"instance",library:"@nestia/core",name:"SwaggerExample"})))(e),[],[i.default.factory.createStringLiteral(r),c.LiteralFactory.generate(n)])))]}}(n||(t.MigrateNestMethodProgrammer=n={}))},47523:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateNestModuleProgrammer=void 0;let i=o(r(55423)),a=r(7621);(n||(t.MigrateNestModuleProgrammer=n={})).write=e=>[s("@nestjs/common")("Module"),...e.length?[a.FilePrinter.newLine()]:[],...e.map(e=>s(`${e.location.replace("src/","./")}/${e.name}`)(e.name)),...e.length?[a.FilePrinter.newLine()]:[],i.default.factory.createClassDeclaration([i.default.factory.createDecorator(i.default.factory.createCallExpression(i.default.factory.createIdentifier("Module"),void 0,[i.default.factory.createObjectLiteralExpression([i.default.factory.createPropertyAssignment(i.default.factory.createIdentifier("controllers"),i.default.factory.createArrayLiteralExpression(e.map(e=>i.default.factory.createIdentifier(e.name)),!0))],!0)])),i.default.factory.createToken(i.default.SyntaxKind.ExportKeyword)],"MyModule",void 0,void 0,[])];let s=e=>t=>i.default.factory.createImportDeclaration(void 0,i.default.factory.createImportClause(!1,void 0,i.default.factory.createNamedImports([i.default.factory.createImportSpecifier(!1,void 0,i.default.factory.createIdentifier(t))])),i.default.factory.createStringLiteral(e))},3582:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateNestProgrammer=void 0;let i=o(r(55423)),a=r(96352),s=r(7621),c=r(59218),u=r(86879),l=r(99967),p=r(47523);!function(e){e.write=e=>{let r=a.MigrateControllerAnalyzer.analyze(e.routes);return[{location:"src",file:"MyModule.ts",statements:p.MigrateNestModuleProgrammer.write(r)},...r.map(t=>({location:t.location,file:`${t.name}.ts`,statements:l.MigrateNestControllerProgrammer.write(e.document.components)(t)})),...[...c.MigrateDtoProgrammer.compose(e.document.components).entries()].map(([e,r])=>({location:"src/api/structures",file:`${e}.ts`,statements:t(e,r)}))].map(e=>({location:e.location,file:e.file,content:s.FilePrinter.write({statements:e.statements})}))};let t=(e,t)=>{let n=new u.MigrateImportProgrammer,o=r(n)(t);return 0===o.length?[]:[...n.toStatements(e=>`./${e}`,e),...n.empty()?[]:[s.FilePrinter.newLine()],...o]},r=e=>t=>{let n=[];if(null!==t.programmer&&n.push(t.programmer(e)),t.children.size){let o=[];for(let n of t.children.values())o.push(...r(e)(n));n.push(i.default.factory.createModuleDeclaration([i.default.factory.createModifier(i.default.SyntaxKind.ExportKeyword)],i.default.factory.createIdentifier(t.name),i.default.factory.createModuleBlock(o),i.default.NodeFlags.Namespace))}return n}}(n||(t.MigrateNestProgrammer=n={}))},49271:function(e,t,r){"use strict";var n,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateSchemaProgrammer=void 0;let i=o(r(55423));o(r(77947));let a=r(12301),s=r(97420),c=r(5724),u=r(7621),l=r(75348),p=r(18640);!function(e){e.write=e=>s=>c=>{let u=[];if(l.OpenApiTypeChecker.isUnknown(c))return a.TypeFactory.keyword("any");let p=(()=>{if(l.OpenApiTypeChecker.isConstant(c))return t(s)(c);if(l.OpenApiTypeChecker.isBoolean(c))return r(s)(c);if(l.OpenApiTypeChecker.isInteger(c))return n(s)(c);if(l.OpenApiTypeChecker.isNumber(c))return o(s)(c);if(l.OpenApiTypeChecker.isString(c))return m(s)(c);if(l.OpenApiTypeChecker.isArray(c))return _(e)(s)(c);if(l.OpenApiTypeChecker.isTuple(c))return v(e)(s)(c);else if(l.OpenApiTypeChecker.isObject(c))return g(e)(s)(c);else if(l.OpenApiTypeChecker.isReference(c))return x(s)(c);else if(l.OpenApiTypeChecker.isOneOf(c))return O(e)(s)(c.oneOf);else if(l.OpenApiTypeChecker.isNull(c))return f("null");else return a.TypeFactory.keyword("any")})();return(u.push(p),0===u.length)?a.TypeFactory.keyword("any"):1===u.length?u[0]:i.default.factory.createUnionTypeNode(u)};let t=e=>t=>{let r=[i.default.factory.createLiteralTypeNode("boolean"==typeof t.const?!0===t.const?i.default.factory.createTrue():i.default.factory.createFalse():"number"==typeof t.const?t.const<0?i.default.factory.createPrefixUnaryExpression(i.default.SyntaxKind.MinusToken,i.default.factory.createNumericLiteral(-t.const)):i.default.factory.createNumericLiteral(t.const):i.default.factory.createStringLiteral(t.const))];return h({importer:e,regular:["const","title","description","deprecated"],intersection:r})(t),1===r.length?r[0]:i.default.factory.createIntersectionTypeNode(r)},r=e=>t=>{let r=[a.TypeFactory.keyword("boolean")];return h({importer:e,regular:["default","title","description","deprecated","type"],intersection:r})(t),1===r.length?r[0]:i.default.factory.createIntersectionTypeNode(r)},n=e=>t=>y(()=>[a.TypeFactory.keyword("number"),e.tag("Type","int32")])(e)(t),o=e=>t=>y(()=>[a.TypeFactory.keyword("number")])(e)(t),y=e=>t=>r=>{let n=e();return void 0!==r.default&&n.push(t.tag("Default",r.default)),void 0!==r.minimum&&n.push(t.tag(r.exclusiveMinimum?"ExclusiveMinimum":"Minimum",r.minimum)),void 0!==r.maximum&&n.push(t.tag(r.exclusiveMaximum?"ExclusiveMaximum":"Maximum",r.maximum)),void 0!==r.multipleOf&&n.push(t.tag("MultipleOf",r.multipleOf)),h({importer:t,regular:["default","title","description","deprecated","type","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf"],intersection:n})(r),1===n.length?n[0]:i.default.factory.createIntersectionTypeNode(n)},m=e=>t=>{if("binary"===t.format)return i.default.factory.createTypeReferenceNode("File");let r=[a.TypeFactory.keyword("string")];return void 0!==t.default&&r.push(e.tag("Default",t.default)),void 0!==t.minLength&&r.push(e.tag("MinLength",t.minLength)),void 0!==t.maxLength&&r.push(e.tag("MaxLength",t.maxLength)),void 0!==t.pattern&&r.push(e.tag("Pattern",t.pattern)),void 0!==t.format&&void 0!==s.FormatCheatSheet[t.format]&&r.push(e.tag("Format",t.format)),void 0!==t.contentMediaType&&r.push(e.tag("ContentMediaType",t.contentMediaType)),h({importer:e,regular:["default","title","description","deprecated","type","format","pattern","contentMediaType","minLength","maxLength"],intersection:r})(t),1===r.length?r[0]:i.default.factory.createIntersectionTypeNode(r)},_=t=>r=>n=>{let o=[i.default.factory.createArrayTypeNode(e.write(t)(r)(n.items))];return void 0!==n.minItems&&o.push(r.tag("MinItems",n.minItems)),void 0!==n.maxItems&&o.push(r.tag("MaxItems",n.maxItems)),!0===n.uniqueItems&&o.push(r.tag("UniqueItems")),h({importer:r,regular:["title","description","deprecated","type","items","uniqueItems","minItems","maxItems"],intersection:o})(n),1===o.length?o[0]:i.default.factory.createIntersectionTypeNode(o)},v=t=>r=>n=>{let o=[i.default.factory.createTupleTypeNode([...n.prefixItems.map(e.write(t)(r)),..."object"==typeof n.additionalItems&&null!==n.additionalItems?[i.default.factory.createRestTypeNode(e.write(t)(r)(n.additionalItems))]:!0===n.additionalItems?[i.default.factory.createRestTypeNode(i.default.factory.createArrayTypeNode(i.default.factory.createKeywordTypeNode(i.default.SyntaxKind.AnyKeyword)))]:[]])];return h({importer:r,regular:["title","description","deprecated","type","uniqueItems","minItems","maxItems","prefixItems","additionalItems"],intersection:o})(n),1===o.length?o[0]:i.default.factory.createIntersectionTypeNode(o)},g=e=>t=>r=>{var n;let o=()=>{var n;return i.default.factory.createTypeLiteralNode(Object.entries(null!==(n=r.properties)&&void 0!==n?n:[]).map(([n,o])=>{var i;return b(e)(t)(null!==(i=r.required)&&void 0!==i?i:[])(n,o)}))},a=()=>i.default.factory.createTypeLiteralNode([w(e)(t)(r.additionalProperties)]);return(null===(n=r.properties)||void 0===n?void 0:n.length)&&"object"==typeof r.additionalProperties?i.default.factory.createIntersectionTypeNode([o(),a()]):"object"==typeof r.additionalProperties?a():o()},b=t=>r=>n=>(o,a)=>u.FilePrinter.description(i.default.factory.createPropertySignature(void 0,c.Escaper.variable(o)?i.default.factory.createIdentifier(o):i.default.factory.createStringLiteral(o),n.includes(o)?void 0:i.default.factory.createToken(i.default.SyntaxKind.QuestionToken),e.write(t)(r)(a)),d(a)),w=t=>r=>n=>u.FilePrinter.description(i.default.factory.createIndexSignature(void 0,[i.default.factory.createParameterDeclaration(void 0,void 0,i.default.factory.createIdentifier("key"),void 0,a.TypeFactory.keyword("string"))],e.write(t)(r)(n)),d(n)),x=e=>t=>{if(!1===t.$ref.startsWith("#/components/schemas"))return a.TypeFactory.keyword("any");let r=t.$ref.split("/").slice(3).filter(e=>0!==e.length).map(p.StringUtil.escapeNonVariable).join("");return""===r?a.TypeFactory.keyword("any"):e.dto(r)},O=t=>r=>n=>i.default.factory.createUnionTypeNode(n.map(e.write(t)(r)))}(n||(t.MigrateSchemaProgrammer=n={}));let f=e=>i.default.factory.createTypeReferenceNode(e),d=e=>{var t,r;return[...(null===(t=e.description)||void 0===t?void 0:t.length)?[e.description]:[],...(null===(r=e.description)||void 0===r?void 0:r.length)&&(void 0!==e.title||!0===e.deprecated)?[""]:[],...void 0!==e.title?[`@title ${e.title}`]:[],...!0===e.deprecated?["@deprecated"]:[]].join("\n").split("*/").join("*\\/")},h=e=>t=>{let r={};for(let[n,o]of Object.entries(t))void 0!==o&&!1===e.regular.includes(n)&&(r[n]=o);0!==Object.keys(r).length&&e.intersection.push(e.importer.tag("JsonSchemaPlugin",r))}},89943:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},38788:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7621:function(e,t,r){"use strict";var n,o,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FilePrinter=void 0;let a=i(r(55423));(n=o||(t.FilePrinter=o={})).description=(e,t)=>(0===t.length||a.default.addSyntheticLeadingComment(e,a.default.SyntaxKind.MultiLineCommentTrivia,["*",...t.split("\n").map(e=>` * ${e}`),""].join("\n"),!0),e),n.newLine=()=>a.default.factory.createExpressionStatement(a.default.factory.createIdentifier("\n")),n.write=e=>{var t;let r=a.default.createPrinter().printFile(a.default.factory.createSourceFile(e.statements,a.default.factory.createToken(a.default.SyntaxKind.EndOfFileToken),a.default.NodeFlags.None));return(null!==(t=e.top)&&void 0!==t?t:"")+r}},95669:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.MapUtil=void 0,(r||(t.MapUtil=r={})).take=e=>t=>r=>{let n=e.get(t);if(n)return n;let o=r();return e.set(t,o),o}},75348:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenApiTypeChecker=void 0,(n=r||(t.OpenApiTypeChecker=r={})).isOneOf=e=>void 0!==e.oneOf,n.isNull=e=>"null"===e.type,n.isConstant=e=>void 0!==e.const,n.isBoolean=e=>"boolean"===e.type,n.isInteger=e=>"integer"===e.type,n.isNumber=e=>"number"===e.type,n.isString=e=>"string"===e.type,n.isArray=e=>"array"===e.type&&void 0!==e.items,n.isTuple=e=>"array"===e.type&&void 0!==e.prefixItems,n.isObject=e=>"object"===e.type,n.isReference=e=>void 0!==e.$ref,n.isUnknown=e=>void 0===e.type&&!n.isOneOf(e)&&!n.isReference(e)&&!n.isConstant(e)},18640:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtil=void 0,(n=r||(t.StringUtil=r={})).capitalize=e=>e[0].toUpperCase()+e.slice(1).toLowerCase(),n.splitWithNormalization=e=>e.split("/").map(e=>i(e.trim())).filter(e=>!!e.length),n.escapeDuplicate=e=>t=>e.includes(t)?n.escapeDuplicate(e)(`_${t}`):t,n.escapeNonVariable=e=>{for(let[t,r]of(e=o(e),s))e=e.split(t).join(r);for(let t=0;t<=9;++t)if(e[0]===t.toString()){e="_"+e;break}return""===e?"_empty_":e};let o=e=>(e=e.trim(),a.has(e))?`_${e}`:(0!==e.length&&"0"<=e[0]&&e[0]<="9"&&(e=`_${e}`),e),i=e=>o(e.split(".").join("_").split("-").join("_")),a=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","module","new","null","package","public","private","protected","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]),s=[["`","_backquote_"],["!","_exclamation_"],["@","_at_"],["#","_hash_"],["$","_dollar_"],["%","_percent_"],["^","_caret_"],["&","_and_"],["*","_star_"],["(","_lparen_"],[")","_rparen_"],["-","_"],["+","_plus_"],["|","_or_"],["{","_blt_"],["}","_bgt_"],["<","_lt_"],[">","_gt_"],["[","_alt_"],["]","_agt_"],[",","_comma_"],["'","_singlequote_"],['"',"_doublequote_"],[" ","_space_"],["?","_question_"],[":","_colon_"],[";","_semicolon_"],["...","_rest_"]]},79979:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return k}});let n=["angular-cli","create-react-app","html","javascript","node","polymer","typescript","vue"],o=["project","search","ports","settings"],i=["light","dark"],a=["editor","preview"],s={clickToLoad:e=>u("ctl",e),devToolsHeight:e=>l("devtoolsheight",e),forceEmbedLayout:e=>u("embed",e),hideDevTools:e=>u("hidedevtools",e),hideExplorer:e=>u("hideExplorer",e),hideNavigation:e=>u("hideNavigation",e),openFile:e=>f("file",e),showSidebar:e=>"boolean"==typeof e?`showSidebar=${e?"1":"0"}`:"",sidebarView:e=>p("sidebarView",e,o),startScript:e=>f("startScript",e),terminalHeight:e=>l("terminalHeight",e),theme:e=>p("theme",e,i),view:e=>p("view",e,a),zenMode:e=>u("zenMode",e),organization:e=>`${f("orgName",e?.name)}&${f("orgProvider",e?.provider)}`,crossOriginIsolated:e=>u("corp",e)};function c(e={}){let t=Object.entries(e).map(([e,t])=>null!=t&&s.hasOwnProperty(e)?s[e](t):"").filter(Boolean);return t.length?`?${t.join("&")}`:""}function u(e,t){return!0===t?`${e}=1`:""}function l(e,t){return"number"!=typeof t||Number.isNaN(t)?"":`${e}=${encodeURIComponent(Math.round(Math.min(100,Math.max(0,t))))}`}function p(e,t="",r=[]){return r.includes(t)?`${e}=${encodeURIComponent(t)}`:""}function f(e,t){return(Array.isArray(t)?t:[t]).filter(e=>"string"==typeof e&&""!==e.trim()).map(t=>`${e}=${encodeURIComponent(t)}`).join("&")}function d(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function h(e,t){return`${m(t)}${e}${c(t)}`}function y(e,t){let r={forceEmbedLayout:!0};return t&&"object"==typeof t&&Object.assign(r,t),`${m(r)}${e}${c(r)}`}function m(e={}){return("string"==typeof e.origin?e.origin:"https://stackblitz.com").replace(/\/$/,"")}function _(e,t,r){if(!t||!e||!e.parentNode)throw Error("Invalid Element");e.id&&(t.id=e.id),e.className&&(t.className=e.className),function(e,t={}){let r=Object.hasOwnProperty.call(t,"height")?`${t.height}`:"300",n=Object.hasOwnProperty.call(t,"width")?`${t.width}`:void 0;e.setAttribute("height",r),n?e.setAttribute("width",n):e.setAttribute("style","width:100%;")}(t,r),function(e,t,r={}){let n=e.allow?.split(";")?.map(e=>e.trim())??[];r.crossOriginIsolated&&!n.includes("cross-origin-isolated")&&n.push("cross-origin-isolated"),n.length>0&&(t.allow=n.join("; "))}(e,t,r),e.replaceWith(t)}function v(e){if("string"==typeof e){let t=document.getElementById(e);if(!t)throw Error(`Could not find element with id '${e}'`);return t}if(e instanceof HTMLElement)return e;throw Error(`Invalid element: ${e}`)}function g(e){return e&&!1===e.newWindow?"_self":"_blank"}class b{constructor(e){this.pending={},this.port=e,this.port.onmessage=this.messageListener.bind(this)}request({type:e,payload:t}){return new Promise((r,n)=>{let o=d();this.pending[o]={resolve:r,reject:n},this.port.postMessage({type:e,payload:{...t,__reqid:o}})})}messageListener(e){if("string"!=typeof e.data.payload?.__reqid)return;let{type:t,payload:r}=e.data,{__reqid:n,__success:o,__error:i}=r;this.pending[n]&&(o?this.pending[n].resolve(this.cleanResult(r)):this.pending[n].reject(i?`${t}: ${i}`:t),delete this.pending[n])}cleanResult(e){let t={...e};return delete t.__reqid,delete t.__success,delete t.__error,Object.keys(t).length?t:null}}class w{constructor(e,t){this.editor={openFile:e=>this._rdc.request({type:"SDK_OPEN_FILE",payload:{path:e}}),setCurrentFile:e=>this._rdc.request({type:"SDK_SET_CURRENT_FILE",payload:{path:e}}),setTheme:e=>this._rdc.request({type:"SDK_SET_UI_THEME",payload:{theme:e}}),setView:e=>this._rdc.request({type:"SDK_SET_UI_VIEW",payload:{view:e}}),showSidebar:(e=!0)=>this._rdc.request({type:"SDK_TOGGLE_SIDEBAR",payload:{visible:e}})},this.preview={origin:"",getUrl:()=>this._rdc.request({type:"SDK_GET_PREVIEW_URL",payload:{}}).then(e=>e?.url??null),setUrl:(e="/")=>{if("string"!=typeof e||!e.startsWith("/"))throw Error(`Invalid argument: expected a path starting with '/', got '${e}'`);return this._rdc.request({type:"SDK_SET_PREVIEW_URL",payload:{path:e}})}},this._rdc=new b(e),Object.defineProperty(this.preview,"origin",{value:"string"==typeof t.previewOrigin?t.previewOrigin:null,writable:!1})}applyFsDiff(e){let t;if(null!==e&&"object"==typeof e&&null!==(t=e.create)&&"object"==typeof t){if(!Array.isArray(e.destroy))throw Error("Invalid diff object: expected diff.destroy to be an array.")}else throw Error("Invalid diff object: expected diff.create to be an object.");return this._rdc.request({type:"SDK_APPLY_FS_DIFF",payload:e})}getDependencies(){return this._rdc.request({type:"SDK_GET_DEPS_SNAPSHOT",payload:{}})}getFsSnapshot(){return this._rdc.request({type:"SDK_GET_FS_SNAPSHOT",payload:{}})}}let x=[];class O{constructor(e){this.id=d(),this.element=e,this.pending=new Promise((e,t)=>{let r=({data:t,ports:r})=>{t?.action==="SDK_INIT_SUCCESS"&&t.id===this.id&&(this.vm=new w(r[0],t.payload),e(this.vm),o())},n=()=>{this.element.contentWindow?.postMessage({action:"SDK_INIT",id:this.id},"*")};function o(){window.clearInterval(a),window.removeEventListener("message",r)}window.addEventListener("message",r),n();let i=0,a=window.setInterval(()=>{if(this.vm){o();return}if(i>=20){o(),t("Timeout: Unable to establish a connection with the StackBlitz VM"),x.forEach((e,t)=>{e.id===this.id&&x.splice(t,1)});return}i++,n()},500)}),x.push(this)}}let S=e=>{let t=e instanceof Element?"element":"id";return x.find(r=>r[t]===e)??null};function I({template:e,title:t,description:r,dependencies:o,files:i,settings:a}){if(!n.includes(e)){let e=n.map(e=>`'${e}'`).join(", ");console.warn(`Unsupported project.template: must be one of ${e}`)}let s=[],c=(e,t,r="")=>{s.push(function(e,t){let r=document.createElement("input");return r.type="hidden",r.name=e,r.value=t,r}(e,"string"==typeof t?t:r))};c("project[title]",t),"string"==typeof r&&r.length>0&&c("project[description]",r),c("project[template]",e,"javascript"),o&&("node"===e?console.warn("Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template."):c("project[dependencies]",JSON.stringify(o))),a&&c("project[settings]",JSON.stringify(a)),Object.entries(i).forEach(([e,t])=>{c(`project[files][${e.replace(/\[/g,"%5B").replace(/\]/g,"%5D")}]`,t)});let u=document.createElement("form");return u.method="POST",u.setAttribute("style","display:none!important;"),u.append(...s),u}function j(e){return e?.contentWindow?(S(e)??new O(e)).pending:Promise.reject("Provided element is not an iframe.")}let k={connect:j,embedGithubProject:function(e,t,r){let n=v(e),o=document.createElement("iframe");return o.src=y(`/github/${t}`,r),_(n,o,r),j(o)},embedProject:function(e,t,r){let n=v(e),o=function(e,t){let r=I(e);return r.action=y("/run",t),r.id="sb_run",` + + + + ${r.outerHTML} + + +`}(t,r),i=document.createElement("iframe");return _(n,i,r),i.contentDocument?.write(o),j(i)},embedProjectId:function(e,t,r){let n=v(e),o=document.createElement("iframe");return o.src=y(`/edit/${t}`,r),_(n,o,r),j(o)},openGithubProject:function(e,t){let r=h(`/github/${e}`,t),n=g(t);window.open(r,n)},openProject:function(e,t){!function(e,t){let r=I(e);r.action=h("/run",t),r.target=g(t),document.body.appendChild(r),r.submit(),document.body.removeChild(r)}(e,t)},openProjectId:function(e,t){let r=h(`/edit/${e}`,t),n=g(t);window.open(r,n)}}},69450:function(e){"use strict";class t{constructor(e,t){this.low=e,this.high=t,this.length=1+t-e}overlaps(e){return!(this.highe.high)}touches(e){return!(this.high+1e.high)}add(e){return new t(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.highe+t.length,0)}add(e,n){var o=e=>{for(var t=0;t{for(var t=0;t{for(var r=0;r{for(var r=t.low;r<=t.high;)e.push(r),r++;return e},[])}subranges(){return this.ranges.map(e=>({low:e.low,high:e.high,length:1+e.high-e.low}))}}e.exports=r},77347:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(47955)),i=r(85893);t.default=(0,o.default)((0,i.jsx)("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27M6.24 5h11.52l.81.97H5.44zM5 19V8h14v11zm8.45-9h-2.9v3H8l4 4 4-4h-2.55z"}),"ArchiveOutlined")},39626:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(47955)),i=r(85893);t.default=(0,o.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},48878:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(47955)),i=r(85893);t.default=(0,o.default)((0,i.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined")},90645:function(e,t,r){"use strict";var n=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(47955)),i=r(85893);t.default=(0,o.default)((0,i.jsx)("path",{d:"m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"PlayCircleOutline")},10382:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var n=r(63366),o=r(87462),i=r(67294),a=r(90512),s=r(94780),c=r(89262),u=r(59145),l=r(12921),p=r(85893),f=(0,l.Z)((0,p.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),d=r(86767);let h=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],y=e=>{let{classes:t,variant:r,colorDefault:n}=e;return(0,s.Z)({root:["root",r,n&&"colorDefault"],img:["img"],fallback:["fallback"]},d.$,t)},m=(0,c.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,o.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:(0,o.Z)({backgroundColor:t.palette.grey[400]},t.applyDarkStyles({backgroundColor:t.palette.grey[600]})))}]}}),_=(0,c.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),v=(0,c.ZP)(f,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});var g=i.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"MuiAvatar"}),{alt:s,children:c,className:l,component:f="div",imgProps:d,sizes:g,src:b,srcSet:w,variant:x="circular"}=r,O=(0,n.Z)(r,h),S=null,I=function(e){let{crossOrigin:t,referrerPolicy:r,src:n,srcSet:o}=e,[a,s]=i.useState(!1);return i.useEffect(()=>{if(!n&&!o)return;s(!1);let e=!0,i=new Image;return i.onload=()=>{e&&s("loaded")},i.onerror=()=>{e&&s("error")},i.crossOrigin=t,i.referrerPolicy=r,i.src=n,o&&(i.srcset=o),()=>{e=!1}},[t,r,n,o]),a}((0,o.Z)({},d,{src:b,srcSet:w})),j=b||w,k=j&&"error"!==I,P=(0,o.Z)({},r,{colorDefault:!k,component:f,variant:x}),E=y(P);return S=k?(0,p.jsx)(_,(0,o.Z)({alt:s,srcSet:w,src:b,sizes:g,ownerState:P,className:E.img},d)):null!=c?c:j&&s?s[0]:(0,p.jsx)(v,{ownerState:P,className:E.fallback}),(0,p.jsx)(m,(0,o.Z)({as:f,ownerState:P,className:(0,a.Z)(E.root,l),ref:t},O,{children:S}))})},86767:function(e,t,r){"use strict";r.d(t,{$:function(){return i}});var n=r(1588),o=r(34867);function i(e){return(0,o.ZP)("MuiAvatar",e)}let a=(0,n.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);t.Z=a},51714:function(e,t,r){"use strict";var n=r(63366),o=r(87462),i=r(67294),a=r(90512),s=r(94780),c=r(59145),u=r(89262),l=r(22537),p=r(75228),f=r(23516),d=r(25491),h=r(20408),y=r(85893);let m=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_=e=>{let{classes:t,margin:r,fullWidth:n}=e,o={root:["root","none"!==r&&"margin".concat((0,p.Z)(r)),n&&"fullWidth"]};return(0,s.Z)(o,h.e,t)},v=(0,u.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,o.Z)({},t.root,t["margin".concat((0,p.Z)(r.margin))],r.fullWidth&&t.fullWidth)}})(e=>{let{ownerState:t}=e;return(0,o.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})}),g=i.forwardRef(function(e,t){let r;let s=(0,c.Z)({props:e,name:"MuiFormControl"}),{children:u,className:p,color:h="primary",component:g="div",disabled:b=!1,error:w=!1,focused:x,fullWidth:O=!1,hiddenLabel:S=!1,margin:I="none",required:j=!1,size:k="medium",variant:P="outlined"}=s,E=(0,n.Z)(s,m),A=(0,o.Z)({},s,{color:h,component:g,disabled:b,error:w,fullWidth:O,hiddenLabel:S,margin:I,required:j,size:k,variant:P}),M=_(A),[T,C]=i.useState(()=>{let e=!1;return u&&i.Children.forEach(u,t=>{if(!(0,f.Z)(t,["Input","Select"]))return;let r=(0,f.Z)(t,["Select"])?t.props.input:t;r&&(0,l.B7)(r.props)&&(e=!0)}),e}),[R,q]=i.useState(()=>{let e=!1;return u&&i.Children.forEach(u,t=>{(0,f.Z)(t,["Input","Select"])&&((0,l.vd)(t.props,!0)||(0,l.vd)(t.props.inputProps,!0))&&(e=!0)}),e}),[N,D]=i.useState(!1);b&&N&&D(!1);let F=void 0===x||b?N:x,B=i.useMemo(()=>({adornedStart:T,setAdornedStart:C,color:h,disabled:b,error:w,filled:R,focused:F,fullWidth:O,hiddenLabel:S,size:k,onBlur:()=>{D(!1)},onEmpty:()=>{q(!1)},onFilled:()=>{q(!0)},onFocus:()=>{D(!0)},registerEffect:r,required:j,variant:P}),[T,h,b,w,R,F,O,S,r,j,k,P]);return(0,y.jsx)(d.Z.Provider,{value:B,children:(0,y.jsx)(v,(0,o.Z)({as:g,ownerState:A,className:(0,a.Z)(M.root,p),ref:t},E,{children:u}))})});t.Z=g},25491:function(e,t,r){"use strict";let n=r(67294).createContext(void 0);t.Z=n},20408:function(e,t,r){"use strict";r.d(t,{e:function(){return i}});var n=r(1588),o=r(34867);function i(e){return(0,o.ZP)("MuiFormControl",e)}let a=(0,n.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);t.Z=a},35029:function(e,t,r){"use strict";function n(e){let{props:t,states:r,muiFormControl:n}=e;return r.reduce((e,r)=>(e[r]=t[r],n&&void 0===t[r]&&(e[r]=n[r]),e),{})}r.d(t,{Z:function(){return n}})},12794:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),o=r(25491);function i(){return n.useContext(o.Z)}},88735:function(e,t,r){"use strict";var n=r(63366),o=r(87462),i=r(67294),a=r(90512),s=r(94780),c=r(12794),u=r(35465),l=r(58046),p=r(75228),f=r(89262),d=r(59145),h=r(59325),y=r(35029),m=r(85893);let _=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],v=e=>{let{classes:t,disabled:r,labelPlacement:n,error:o,required:i}=e,a={root:["root",r&&"disabled","labelPlacement".concat((0,p.Z)(n)),o&&"error",i&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,s.Z)(a,h.r,t)},g=(0,f.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(h.Z.label)]:t.label},t.root,t["labelPlacement".concat((0,p.Z)(r.labelPlacement))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,o.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(h.Z.disabled)]:{cursor:"default"}},"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(h.Z.label)]:{["&.".concat(h.Z.disabled)]:{color:(t.vars||t).palette.text.disabled}}})}),b=(0,f.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(e=>{let{theme:t}=e;return{["&.".concat(h.Z.error)]:{color:(t.vars||t).palette.error.main}}}),w=i.forwardRef(function(e,t){var r,s;let p=(0,d.Z)({props:e,name:"MuiFormControlLabel"}),{className:f,componentsProps:h={},control:w,disabled:x,disableTypography:O,label:S,labelPlacement:I="end",required:j,slotProps:k={}}=p,P=(0,n.Z)(p,_),E=(0,c.Z)(),A=null!=(r=null!=x?x:w.props.disabled)?r:null==E?void 0:E.disabled,M=null!=j?j:w.props.required,T={disabled:A,required:M};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===w.props[e]&&void 0!==p[e]&&(T[e]=p[e])});let C=(0,y.Z)({props:p,muiFormControl:E,states:["error"]}),R=(0,o.Z)({},p,{disabled:A,labelPlacement:I,required:M,error:C.error}),q=v(R),N=null!=(s=k.typography)?s:h.typography,D=S;return null==D||D.type===l.Z||O||(D=(0,m.jsx)(l.Z,(0,o.Z)({component:"span"},N,{className:(0,a.Z)(q.label,null==N?void 0:N.className),children:D}))),(0,m.jsxs)(g,(0,o.Z)({className:(0,a.Z)(q.root,f),ownerState:R,ref:t},P,{children:[i.cloneElement(w,T),M?(0,m.jsxs)(u.Z,{display:"block",children:[D,(0,m.jsxs)(b,{ownerState:R,"aria-hidden":!0,className:q.asterisk,children:[" ","*"]})]}):D]}))});t.Z=w},59325:function(e,t,r){"use strict";r.d(t,{r:function(){return i}});var n=r(1588),o=r(34867);function i(e){return(0,o.ZP)("MuiFormControlLabel",e)}let a=(0,n.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);t.Z=a},46028:function(e,t,r){"use strict";var n=r(63366),o=r(87462),i=r(67294),a=r(90512),s=r(94780),c=r(89262),u=r(59145),l=r(58469),p=r(12794),f=r(35029),d=r(85893);let h=["className","row"],y=e=>{let{classes:t,row:r,error:n}=e;return(0,s.Z)({root:["root",r&&"row",n&&"error"]},l.y,t)},m=(0,c.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.row&&t.row]}})(e=>{let{ownerState:t}=e;return(0,o.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})}),_=i.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"MuiFormGroup"}),{className:i,row:s=!1}=r,c=(0,n.Z)(r,h),l=(0,p.Z)(),_=(0,f.Z)({props:r,muiFormControl:l,states:["error"]}),v=(0,o.Z)({},r,{row:s,error:_.error}),g=y(v);return(0,d.jsx)(m,(0,o.Z)({className:(0,a.Z)(g.root,i),ownerState:v,ref:t},c))});t.Z=_},58469:function(e,t,r){"use strict";r.d(t,{y:function(){return i}});var n=r(1588),o=r(34867);function i(e){return(0,o.ZP)("MuiFormGroup",e)}let a=(0,n.Z)("MuiFormGroup",["root","row","error"]);t.Z=a},17586:function(e,t,r){"use strict";r.d(t,{D:function(){return _}});var n=r(63366),o=r(87462),i=r(67294),a=r(90512),s=r(94780),c=r(35029),u=r(12794),l=r(75228),p=r(59145),f=r(89262),d=r(65493),h=r(85893);let y=["children","className","color","component","disabled","error","filled","focused","required"],m=e=>{let{classes:t,color:r,focused:n,disabled:o,error:i,filled:a,required:c}=e,u={root:["root","color".concat((0,l.Z)(r)),o&&"disabled",i&&"error",a&&"filled",n&&"focused",c&&"required"],asterisk:["asterisk",i&&"error"]};return(0,s.Z)(u,d.M,t)},_=(0,f.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,o.Z)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})(e=>{let{theme:t,ownerState:r}=e;return(0,o.Z)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(d.Z.focused)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(d.Z.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(d.Z.error)]:{color:(t.vars||t).palette.error.main}})}),v=(0,f.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(e=>{let{theme:t}=e;return{["&.".concat(d.Z.error)]:{color:(t.vars||t).palette.error.main}}}),g=i.forwardRef(function(e,t){let r=(0,p.Z)({props:e,name:"MuiFormLabel"}),{children:i,className:s,component:l="label"}=r,f=(0,n.Z)(r,y),d=(0,u.Z)(),g=(0,c.Z)({props:r,muiFormControl:d,states:["color","required","focused","disabled","error","filled"]}),b=(0,o.Z)({},r,{color:g.color||"primary",component:l,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required}),w=m(b);return(0,h.jsxs)(_,(0,o.Z)({as:l,ownerState:b,className:(0,a.Z)(w.root,s),ref:t},f,{children:[i,g.required&&(0,h.jsxs)(v,{ownerState:b,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}))});t.Z=g},65493:function(e,t,r){"use strict";r.d(t,{M:function(){return i}});var n=r(1588),o=r(34867);function i(e){return(0,o.ZP)("MuiFormLabel",e)}let a=(0,n.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);t.Z=a},99900:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(87462),o=r(63366),i=r(67294),a=r(20539),s=r(49360),c=r(23769),u=r(63885),l=r(85893);let p=["initialWidth","width"],f=["xs","sm","md","lg","xl"],d=function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return r?f.indexOf(e)<=f.indexOf(t):f.indexOf(e)2&&void 0!==arguments[2]&&arguments[2];return r?f.indexOf(t)<=f.indexOf(e):f.indexOf(t)0&&void 0!==arguments[0]?arguments[0]:{};return t=>{let{withTheme:r=!1,noSSR:f=!1,initialWidth:d}=e;return function(e){let h=(0,s.Z)(),y=e.theme||h,m=(0,a.Z)({theme:y,name:"MuiWithWidth",props:e}),{initialWidth:_,width:v}=m,g=(0,o.Z)(m,p),[b,w]=i.useState(!1);(0,c.Z)(()=>{w(!0)},[]);let x=y.breakpoints.keys.slice().reverse().reduce((e,t)=>{let r=(0,u.Z)(y.breakpoints.up(t));return!e&&r?t:e},null),O=(0,n.Z)({width:v||(b||f?x:void 0)||_||d},r?{theme:y}:{},g);return void 0===O.width?null:(0,l.jsx)(t,(0,n.Z)({},O))}}})()(function(e){let{children:t,only:r,width:n}=e,o=(0,s.Z)(),a=!0;if(r){if(Array.isArray(r)){for(let e=0;e{let{classes:t,breakpoints:r}=e,n={root:["root",...r.map(e=>{let{breakpoint:t,dir:r}=e;return"only"===r?"".concat(r).concat((0,v.Z)(t)):"".concat(t).concat((0,v.Z)(r))})]};return(0,_.Z)(n,x,t)},I=(0,g.ZP)("div",{name:"PrivateHiddenCss",slot:"Root"})(e=>{let{theme:t,ownerState:r}=e,o={display:"none"};return(0,n.Z)({},r.breakpoints.map(e=>{let{breakpoint:r,dir:n}=e;return"only"===n?{[t.breakpoints.only(r)]:o}:"up"===n?{[t.breakpoints.up(r)]:o}:{[t.breakpoints.down(r)]:o}}).reduce((e,t)=>(Object.keys(t).forEach(r=>{e[r]=t[r]}),e),{}))});var j=function(e){let{children:t,className:r,only:i}=e,a=(0,o.Z)(e,O),c=(0,s.Z)(),u=[];for(let e=0;e{u.push({breakpoint:e,dir:"only"})});let p=(0,n.Z)({},e,{breakpoints:u}),f=S(p);return(0,l.jsx)(I,{className:(0,m.Z)(f.root,r),ownerState:p,children:t})};let k=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];var P=function(e){let{implementation:t="js",lgDown:r=!1,lgUp:i=!1,mdDown:a=!1,mdUp:s=!1,smDown:c=!1,smUp:u=!1,xlDown:p=!1,xlUp:f=!1,xsDown:d=!1,xsUp:h=!1}=e,m=(0,o.Z)(e,k);return"js"===t?(0,l.jsx)(y,(0,n.Z)({lgDown:r,lgUp:i,mdDown:a,mdUp:s,smDown:c,smUp:u,xlDown:p,xlUp:f,xsDown:d,xsUp:h},m)):(0,l.jsx)(j,(0,n.Z)({lgDown:r,lgUp:i,mdDown:a,mdUp:s,smDown:c,smUp:u,xlDown:p,xlUp:f,xsDown:d,xsUp:h},m))}},22537:function(e,t,r){"use strict";function n(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(n(e.value)&&""!==e.value||t&&n(e.defaultValue)&&""!==e.defaultValue)}function i(e){return e.startAdornment}r.d(t,{B7:function(){return i},vd:function(){return o}})},24562:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var n=r(63366),o=r(87462),i=r(67294),a=r(90512),s=r(94780),c=r(41796),u=r(93067),l=r(59145),p=r(12921),f=r(85893),d=(0,p.Z)((0,f.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),h=(0,p.Z)((0,f.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),y=r(89262);let m=(0,y.ZP)("span",{shouldForwardProp:y.FO})({position:"relative",display:"flex"}),_=(0,y.ZP)(d)({transform:"scale(1)"}),v=(0,y.ZP)(h)(e=>{let{theme:t,ownerState:r}=e;return(0,o.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},r.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})});var g=function(e){let{checked:t=!1,classes:r={},fontSize:n}=e,i=(0,o.Z)({},e,{checked:t});return(0,f.jsxs)(m,{className:r.root,ownerState:i,children:[(0,f.jsx)(_,{fontSize:n,className:r.background,ownerState:i}),(0,f.jsx)(v,{fontSize:n,className:r.dot,ownerState:i})]})},b=r(75228),w=r(15368),x=r(92562),O=r(66950);let S=["checked","checkedIcon","color","icon","name","onChange","size","className"],I=e=>{let{classes:t,color:r,size:n}=e,i={root:["root","color".concat((0,b.Z)(r)),"medium"!==n&&"size".concat((0,b.Z)(n))]};return(0,o.Z)({},t,(0,s.Z)(i,O.l,t))},j=(0,y.ZP)(u.Z,{shouldForwardProp:e=>(0,y.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"medium"!==r.size&&t["size".concat((0,b.Z)(r.size))],t["color".concat((0,b.Z)(r.color))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,o.Z)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(O.Z.checked)]:{color:(t.vars||t).palette[r.color].main}},{["&.".concat(O.Z.disabled)]:{color:(t.vars||t).palette.action.disabled}})}),k=(0,f.jsx)(g,{checked:!0}),P=(0,f.jsx)(g,{});var E=i.forwardRef(function(e,t){var r,s,c,u;let p=(0,l.Z)({props:e,name:"MuiRadio"}),{checked:d,checkedIcon:h=k,color:y="primary",icon:m=P,name:_,onChange:v,size:g="medium",className:b}=p,O=(0,n.Z)(p,S),E=(0,o.Z)({},p,{color:y,size:g}),A=I(E),M=(0,x.Z)(),T=d,C=(0,w.Z)(v,M&&M.onChange),R=_;return M&&(void 0===T&&(c=M.value,T="object"==typeof(u=p.value)&&null!==u?c===u:String(c)===String(u)),void 0===R&&(R=M.name)),(0,f.jsx)(j,(0,o.Z)({type:"radio",icon:i.cloneElement(m,{fontSize:null!=(r=P.props.fontSize)?r:g}),checkedIcon:i.cloneElement(h,{fontSize:null!=(s=k.props.fontSize)?s:g}),ownerState:E,classes:A,name:R,checked:T,onChange:C,ref:t,className:(0,a.Z)(A.root,b)},O))})},66950:function(e,t,r){"use strict";r.d(t,{l:function(){return i}});var n=r(1588),o=r(34867);function i(e){return(0,o.ZP)("MuiRadio",e)}let a=(0,n.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);t.Z=a},60504:function(e,t,r){"use strict";var n=r(87462),o=r(63366),i=r(67294),a=r(46028),s=r(28735),c=r(61890),u=r(88505),l=r(47309),p=r(85893);let f=["actions","children","defaultValue","name","onChange","value"],d=i.forwardRef(function(e,t){let{actions:r,children:d,defaultValue:h,name:y,onChange:m,value:_}=e,v=(0,o.Z)(e,f),g=i.useRef(null),[b,w]=(0,c.Z)({controlled:_,default:h,name:"RadioGroup"});i.useImperativeHandle(r,()=>({focus:()=>{let e=g.current.querySelector("input:not(:disabled):checked");e||(e=g.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);let x=(0,s.Z)(t,g),O=(0,l.Z)(y),S=i.useMemo(()=>({name:O,onChange(e){w(e.target.value),m&&m(e,e.target.value)},value:b}),[O,m,w,b]);return(0,p.jsx)(u.Z.Provider,{value:S,children:(0,p.jsx)(a.Z,(0,n.Z)({role:"radiogroup",ref:x},v,{children:d}))})});t.Z=d},88505:function(e,t,r){"use strict";let n=r(67294).createContext(void 0);t.Z=n},92562:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(67294),o=r(88505);function i(){return n.useContext(o.Z)}},11901:function(e,t,r){"use strict";var n=r(63366),o=r(87462),i=r(67294),a=r(90512),s=r(94780),c=r(41796),u=r(75228),l=r(93067),p=r(59145),f=r(89262),d=r(37649),h=r(85893);let y=["className","color","edge","size","sx"],m=e=>{let{classes:t,edge:r,size:n,color:i,checked:a,disabled:c}=e,l={root:["root",r&&"edge".concat((0,u.Z)(r)),"size".concat((0,u.Z)(n))],switchBase:["switchBase","color".concat((0,u.Z)(i)),a&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},p=(0,s.Z)(l,d.H,t);return(0,o.Z)({},t,p)},_=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.edge&&t["edge".concat((0,u.Z)(r.edge))],t["size".concat((0,u.Z)(r.size))]]}})(e=>{let{ownerState:t}=e;return(0,o.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,["& .".concat(d.Z.thumb)]:{width:16,height:16},["& .".concat(d.Z.switchBase)]:{padding:4,["&.".concat(d.Z.checked)]:{transform:"translateX(16px)"}}})}),v=(0,f.ZP)(l.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.switchBase,{["& .".concat(d.Z.input)]:t.input},"default"!==r.color&&t["color".concat((0,u.Z)(r.color))]]}})(e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(d.Z.checked)]:{transform:"translateX(20px)"},["&.".concat(d.Z.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(d.Z.checked," + .").concat(d.Z.track)]:{opacity:.5},["&.".concat(d.Z.disabled," + .").concat(d.Z.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(d.Z.input)]:{left:"-100%",width:"300%"}}},e=>{let{theme:t,ownerState:r}=e;return(0,o.Z)({"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(d.Z.checked)]:{color:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(d.Z.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(r.color,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,c.$n)(t.palette[r.color].main,.62):(0,c._j)(t.palette[r.color].main,.55))}},["&.".concat(d.Z.checked," + .").concat(d.Z.track)]:{backgroundColor:(t.vars||t).palette[r.color].main}})}),g=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}}),b=(0,f.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}}),w=i.forwardRef(function(e,t){let r=(0,p.Z)({props:e,name:"MuiSwitch"}),{className:i,color:s="primary",edge:c=!1,size:u="medium",sx:l}=r,f=(0,n.Z)(r,y),d=(0,o.Z)({},r,{color:s,edge:c,size:u}),w=m(d),x=(0,h.jsx)(b,{className:w.thumb,ownerState:d});return(0,h.jsxs)(_,{className:(0,a.Z)(w.root,i),sx:l,ownerState:d,children:[(0,h.jsx)(v,(0,o.Z)({type:"checkbox",icon:x,checkedIcon:x,ref:t,ownerState:d},f,{classes:(0,o.Z)({},w,{root:w.switchBase})})),(0,h.jsx)(g,{className:w.track,ownerState:d})]})});t.Z=w},37649:function(e,t,r){"use strict";r.d(t,{H:function(){return i}});var n=r(1588),o=r(34867);function i(e){return(0,o.ZP)("MuiSwitch",e)}let a=(0,n.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);t.Z=a},93067:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var n=r(63366),o=r(87462),i=r(67294),a=r(90512),s=r(94780),c=r(75228),u=r(89262),l=r(61890),p=r(12794),f=r(11506),d=r(1588),h=r(34867);function y(e){return(0,h.ZP)("PrivateSwitchBase",e)}(0,d.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var m=r(85893);let _=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],v=e=>{let{classes:t,checked:r,disabled:n,edge:o}=e,i={root:["root",r&&"checked",n&&"disabled",o&&"edge".concat((0,c.Z)(o))],input:["input"]};return(0,s.Z)(i,y,t)},g=(0,u.ZP)(f.Z)(e=>{let{ownerState:t}=e;return(0,o.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})}),b=(0,u.ZP)("input",{shouldForwardProp:u.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var w=i.forwardRef(function(e,t){let{autoFocus:r,checked:i,checkedIcon:s,className:c,defaultChecked:u,disabled:f,disableFocusRipple:d=!1,edge:h=!1,icon:y,id:w,inputProps:x,inputRef:O,name:S,onBlur:I,onChange:j,onFocus:k,readOnly:P,required:E=!1,tabIndex:A,type:M,value:T}=e,C=(0,n.Z)(e,_),[R,q]=(0,l.Z)({controlled:i,default:!!u,name:"SwitchBase",state:"checked"}),N=(0,p.Z)(),D=f;N&&void 0===D&&(D=N.disabled);let F="checkbox"===M||"radio"===M,B=(0,o.Z)({},e,{checked:R,disabled:D,disableFocusRipple:d,edge:h}),L=v(B);return(0,m.jsxs)(g,(0,o.Z)({component:"span",className:(0,a.Z)(L.root,c),centerRipple:!0,focusRipple:!d,disabled:D,tabIndex:null,role:void 0,onFocus:e=>{k&&k(e),N&&N.onFocus&&N.onFocus(e)},onBlur:e=>{I&&I(e),N&&N.onBlur&&N.onBlur(e)},ownerState:B,ref:t},C,{children:[(0,m.jsx)(b,(0,o.Z)({autoFocus:r,checked:i,defaultChecked:u,className:L.input,disabled:D,id:F?w:void 0,name:S,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;q(t),j&&j(e,t)},readOnly:P,ref:O,required:E,ownerState:B,tabIndex:A,type:M},"checkbox"===M&&void 0===T?{}:{value:T},x)),R?s:y]}))})},63885:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n,o=r(67294),i=r(34168),a=r(20539),s=r(23769);let c=(n||(n=r.t(o,2))).useSyncExternalStore;function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,i.Z)(),n=void 0!==window.matchMedia,{defaultMatches:u=!1,matchMedia:l=n?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:f=!1}=(0,a.Z)({name:"MuiUseMediaQuery",props:t,theme:r}),d="function"==typeof e?e(r):e;return(void 0!==c?function(e,t,r,n,i){let a=o.useCallback(()=>t,[t]),s=o.useMemo(()=>{if(i&&r)return()=>r(e).matches;if(null!==n){let{matches:t}=n(e);return()=>t}return a},[a,e,n,i,r]),[u,l]=o.useMemo(()=>{if(null===r)return[a,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[a,r,e]);return c(l,u,s)}:function(e,t,r,n,i){let[a,c]=o.useState(()=>i&&r?r(e).matches:n?n(e).matches:t);return(0,s.Z)(()=>{let t=!0;if(!r)return;let n=r(e),o=()=>{t&&c(n.matches)};return o(),n.addListener(o),()=>{t=!1,n.removeListener(o)}},[e,r]),a})(d=d.replace(/^@media( ?)/m,""),u,l,p,f)}},92703:function(e,t,r){"use strict";var n=r(50414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},14419:function(e,t,r){let n=r(60697),o=r(69450),i=n.types;e.exports=class e{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else if("string"==typeof e)this.ignoreCase=t&&-1!==t.indexOf("i"),this.multiline=t&&-1!==t.indexOf("m");else throw Error("Expected a regexp or string");this.tokens=n(e)}_setDefaults(t){this.max=null!=t.max?t.max:null!=e.prototype.max?e.prototype.max:100,this.defaultRange=t.defaultRange?t.defaultRange:this.defaultRange.clone(),t.randInt&&(this.randInt=t.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var r,n,o,a,s;switch(e.type){case i.ROOT:case i.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&void 0===e.groupNumber&&(e.groupNumber=t.push(null)-1),r=e.options?this._randSelect(e.options):e.stack,n="",a=0,s=r.length;a{var t,r,s=0,c={type:o.ROOT,stack:[]},u=c,l=c.stack,p=[],f=t=>{n.error(e,`Nothing to repeat at column ${t-1}`)},d=n.strToChars(e);for(t=d.length;s({type:n.POSITION,value:"b"}),t.nonWordBoundary=()=>({type:n.POSITION,value:"B"}),t.begin=()=>({type:n.POSITION,value:"^"}),t.end=()=>({type:n.POSITION,value:"$"})},94992:function(e,t,r){let n=r(30504),o=()=>[{type:n.RANGE,from:48,to:57}],i=()=>[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(o()),a=()=>[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.RANGE,from:8192,to:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}],s=()=>[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}];t.words=()=>({type:n.SET,set:i(),not:!1}),t.notWords=()=>({type:n.SET,set:i(),not:!0}),t.ints=()=>({type:n.SET,set:o(),not:!1}),t.notInts=()=>({type:n.SET,set:o(),not:!0}),t.whitespace=()=>({type:n.SET,set:a(),not:!1}),t.notWhitespace=()=>({type:n.SET,set:a(),not:!0}),t.anyChar=()=>({type:n.SET,set:s(),not:!0})},30504:function(e){e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},86245:function(e,t,r){let n=r(30504),o=r(94992),i={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,function(e,t,r,n,o,a,s,c){if(r)return e;var u=String.fromCharCode(t?8:n?parseInt(n,16):o?parseInt(o,16):a?parseInt(a,8):s?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(s):i[c]);return/[[\]{}^$.|?*+()]/.test(u)&&(u="\\"+u),u})},t.tokenizeClass=(e,r)=>{for(var i,a,s=[],c=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(i=c.exec(e));)if(i[1])s.push(o.words());else if(i[2])s.push(o.ints());else if(i[3])s.push(o.whitespace());else if(i[4])s.push(o.notWords());else if(i[5])s.push(o.notInts());else if(i[6])s.push(o.notWhitespace());else if(i[7])s.push({type:n.RANGE,from:(i[8]||i[9]).charCodeAt(0),to:i[10].charCodeAt(0)});else{if(!(a=i[12]))return[s,c.lastIndex];s.push({type:n.CHAR,value:a.charCodeAt(0)})}t.error(r,"Unterminated character class")},t.error=(e,t)=>{throw SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},38577:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.binary_search=t.equal_range=t.upper_bound=t.lower_bound=void 0;var n=r(46544),o=r(42830),i=r(17393);function a(e,t,r,n){void 0===n&&(n=i.less);for(var a=(0,o.distance)(e,t);a>0;){var s=Math.floor(a/2),c=(0,o.advance)(e,s);n(c.value,r)?(e=c.next(),a-=s+1):a=s}return e}function s(e,t,r,n){void 0===n&&(n=i.less);for(var a=(0,o.distance)(e,t);a>0;){var s=Math.floor(a/2),c=(0,o.advance)(e,s);n(r,c.value)?a=s:(e=c.next(),a-=s+1)}return e}t.lower_bound=a,t.upper_bound=s,t.equal_range=function(e,t,r,o){void 0===o&&(o=i.less);var c=s(e=a(e,t,r,o),t,r,o);return new n.Pair(e,c)},t.binary_search=function(e,t,r,n){return void 0===n&&(n=i.less),!(e=a(e,t,r,n)).equals(t)&&!n(r,e.value)}},88139:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sort_heap=t.is_heap_until=t.is_heap=t.pop_heap=t.push_heap=t.make_heap=void 0;var n=r(17393),o=r(42830);function i(e,t,r){void 0===r&&(r=n.less);var i=t.prev(),a=i.value;i.value=e.value,c(e,0,(0,o.distance)(e,t)-1,0,a,r)}function a(e,t,r){var i,a;void 0===r&&(r=n.less);for(var s=0,c=e.next();i=c,a=t.index(),i.base instanceof Function?a>1;r>t&&o(e.advance(i).value,n);i=r-1>>1)e.advance(r).value=e.advance(i).value,r=i;e.advance(r).value=n}function c(e,t,r,n,o,i){for(var a=2*n+2;a>1)+1;do{var s=e.advance(--a).value;c(e,a,i,a,s,r)}while(0!==a)}},t.push_heap=function(e,t,r){void 0===r&&(r=n.less);var i=t.prev().value;s(e,0,(0,o.distance)(e,t)-1,i,r)},t.pop_heap=i,t.is_heap=function(e,t,r){return void 0===r&&(r=n.less),a(e,t,r).equals(t)},t.is_heap_until=a,t.sort_heap=function(e,t,r){for(void 0===r&&(r=n.less);(0,o.distance)(e,t)>1;t=t.prev())i(e,t,r)}},38043:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(38577),t),o(r(88139),t),o(r(95114),t),o(r(16908),t),o(r(50431),t),o(r(47501),t),o(r(16559),t),o(r(51167),t),o(r(76362),t)},95114:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count_if=t.count=t.mismatch=t.search_n=t.search=t.adjacent_find=t.find_first_of=t.find_end=t.find_if_not=t.find_if=t.find=t.lexicographical_compare=t.equal=t.none_of=t.any_of=t.all_of=t.for_each_n=t.for_each=void 0;var n=r(46544),o=r(17393),i=r(42830);function a(e,t,r){for(var n=e;!n.equals(t);n=n.next())if(!0===r(n.value))return!0;return!1}function s(e,t,r){for(var n=e;!n.equals(t);n=n.next())if(r(n.value))return n;return t}function c(e,t,r){for(var n=0,o=e;!o.equals(t);o=o.next())r(o.value)&&++n;return n}t.for_each=function(e,t,r){for(var n=e;!n.equals(t);n=n.next())r(n.value);return r},t.for_each_n=function(e,t,r){for(var n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0;)e.value=r(),e=e.next();return e},t.is_unique=function(e,t,r){if(void 0===r&&(r=i.equal_to),e.equals(t))return!0;for(var n=e.next();!n.equals(t);n=n.next()){if(!0===r(e.value,n.value))return!1;e=e.next()}return!0},t.unique=function(e,t,r){if(void 0===r&&(r=i.equal_to),e.equals(t))return t;var n=e;for(e=e.next();!e.equals(t);e=e.next())r(n.value,e.value)||((n=n.next()).value=e.value);return n.next()},t.unique_copy=function(e,t,r,n){if(void 0===n&&(n=i.equal_to),e.equals(t))return r;for(r.value=e.value,e=e.next();!e.equals(t);e=e.next())n(e.value,r.value)||((r=r.next()).value=e.value);return r.next()},t.remove=function(e,t,r){return f(e,t,function(e){return(0,i.equal_to)(e,r)})},t.remove_if=f,t.remove_copy=function(e,t,r,n){return d(e,t,r,function(e){return(0,i.equal_to)(e,n)})},t.remove_copy_if=d,t.replace=function(e,t,r,n){return h(e,t,function(e){return(0,i.equal_to)(e,r)},n)},t.replace_if=h,t.replace_copy=function(e,t,r,n,o){return y(e,t,r,function(e){return(0,i.equal_to)(e,n)},o)},t.replace_copy_if=y,t.iter_swap=m,t.swap_ranges=function(e,t,r){for(;!e.equals(t);e=e.next())m(e,r),r=r.next();return r},t.reverse=function(e,t){for(;!1===e.equals(t)&&!1===e.equals(t=t.prev());)m(e,t),e=e.next()},t.reverse_copy=function(e,t,r){for(;!t.equals(e);)t=t.prev(),r.value=t.value,r=r.next();return r},t.shift_left=function(e,t,r){return c((0,s.advance)(e,r),t,e)},t.shift_right=function(e,t,r){return u(e,(0,s.advance)(t,-r),t)},t.rotate=function(e,t,r){for(;!e.equals(t)&&!t.equals(r);)m(e,t),e=e.next(),t=t.next();return e},t.rotate_copy=function(e,t,r,n){return n=c(t,r,n),c(e,t,n)},t.shuffle=function(e,t){for(var r=e;!r.equals(t);r=r.next()){var n=(0,a.randint)(e.index(),t.index()-1);r.index()!==n&&m(r,e.advance(n))}}},47501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition_copy=t.stable_partition=t.partition=t.partition_point=t.is_partitioned=void 0;var n=r(46544),o=r(50431),i=r(42830);function a(e,t,r){for(;!e.equals(t)&&r(e.value);){for(;r(e.value);)if((e=e.next()).equals(t))return e;do if(t=t.prev(),e.equals(t))return e;while(!r(t.value));(0,o.iter_swap)(e,t),e=e.next()}return t}t.is_partitioned=function(e,t,r){for(;!e.equals(t)&&r(e.value);)e=e.next();for(;!e.equals(t);e=e.next())if(r(e.value))return!1;return!0},t.partition_point=function(e,t,r){for(var n=(0,i.distance)(e,t);n>0;){var o=Math.floor(n/2),a=(0,i.advance)(e,o);r(a.value)?(e=a.next(),n-=o+1):n=o}return e},t.partition=function(e,t,r){return a(e,t,r)},t.stable_partition=a,t.partition_copy=function(e,t,r,o,i){for(;!e.equals(t);e=e.next())i(e.value)?(r.value=e.value,r=r.next()):(o.value=e.value,o=o.next());return new n.Pair(r,o)}},16559:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.sample=t.randint=void 0;var o=r(81484),i=r(42830),a=r(51167);function s(e,t){return Math.floor(Math.random()*(t-e+1))+e}t.randint=s,t.sample=function(e,t,r,c){for(var u,l,p=(0,i.distance)(e,t),f=[],d=0;d=1;--d)h.set(d,h.at(d)-h.at(d-1));try{for(var m=n(h),_=m.next();!_.done;_=m.next()){var v=_.value;e=(0,i.advance)(e,v),r.value=e.value,r=r.next()}}catch(e){u={error:e}}finally{try{_&&!_.done&&(l=m.return)&&l.call(m)}finally{if(u)throw u.error}}return r}},51167:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.is_sorted_until=t.is_sorted=t.nth_element=t.partial_sort_copy=t.partial_sort=t.stable_sort=t.sort=void 0;var n=r(81484),o=r(17393),i=r(50431),a=r(42830);function s(e,t,r){void 0===r&&(r=o.less);var n=t.index()-e.index();if(!(n<=0)){var a=e.advance(Math.floor(n/2)),c=a.value;a.index()!==e.index()&&(0,i.iter_swap)(e,a);for(var u=1,l=1;lp?(0,i.copy)(f.begin(),f.begin().advance(p),r):(0,i.copy)(f.begin(),f.end(),r)},t.nth_element=function(e,t,r,n){void 0===n&&(n=o.less);for(var s=(0,a.distance)(e,t),c=e;!c.equals(r);c=c.next()){for(var u=0,l=e;!l.equals(r);l=l.next())if(c.equals(l))continue;else if(n(c.value,l.value)&&++u>s)break;if(u===s){(0,i.iter_swap)(t,c);return}}},t.is_sorted=function(e,t,r){return void 0===r&&(r=o.less),c(e,t,r).equals(t)},t.is_sorted_until=c},32080:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;var o=r(40869),i=function(){function e(){}return e.prototype.empty=function(){return 0===this.size()},e.prototype.rbegin=function(){return this.end().reverse()},e.prototype.rend=function(){return this.begin().reverse()},e.prototype[Symbol.iterator]=function(){return new o.ForOfAdaptor(this.begin(),this.end())},e.prototype.toJSON=function(){var e,t,r=[];try{for(var o=n(this),i=o.next();!i.done;i=o.next()){var a=i.value;r.push(a)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r},e}();t.Container=i},44457:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53039:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2807:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},49849:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34418:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},76392:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},33319:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},27161:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65311:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MapContainer=void 0;var i=r(32080),a=r(52168),s=function(e){function t(t){var r=e.call(this)||this;return r.data_=t(r),r}return o(t,e),t.prototype.assign=function(e,t){this.clear(),this.insert(e,t)},t.prototype.clear=function(){this.data_.clear()},t.prototype.begin=function(){return this.data_.begin()},t.prototype.end=function(){return this.data_.end()},t.prototype.has=function(e){return!this.find(e).equals(this.end())},t.prototype.size=function(){return this.data_.size()},t.prototype.push=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0?this.insert(this.end(),r,void 0):r<0&&this.erase(this.end().advance(-r),this.end())},t.prototype.reserve=function(e){this._Reserve(t._Emend(e,"reserve"))},t.prototype._Reserve=function(e){for(var r=[[]],n=this._Compute_col_size(e),o=0;o (n = ").concat(e,")"));return e},t.prototype.size=function(){return this.size_},t.prototype.capacity=function(){return this.capacity_},t.prototype.nth=function(e){return new t.Iterator(this,e)},t.prototype[Symbol.iterator]=function(){return new t.ForOfAdaptor(this.matrix_)},t.prototype.source=function(){return this},t.prototype._At=function(e){var t=this._Fetch_index(e);return this.matrix_[t.first][t.second]},t.prototype._Set=function(e,t){var r=this._Fetch_index(e);this.matrix_[r.first][r.second]=t},t.prototype._Fetch_index=function(e){var t;for(t=0;t1&&this.matrix_.shift(),this.size_--},t.prototype._Pop_back=function(){var e=this.matrix_[this.matrix_.length-1];e.pop(),0===e.length&&this.matrix_.length>1&&this.matrix_.pop(),this.size_--},t.prototype._Insert_by_range=function(e,r,n){var o=this.size_+(0,y.distance)(r,n);if(o===this.size_)return e;if(!0===e.equals(this.end()))this._Try_expand_capacity(o),this._Insert_to_end(r,n),e=this.nth(this.size_);else if(o>this.capacity_){var i=new t;i._Reserve(Math.max(o,Math.floor(this.capacity_*t.MAGNIFIER))),i._Insert_to_end(this.begin(),e),i._Insert_to_end(r,n),i._Insert_to_end(e,this.end()),this._Swap(i)}else this._Insert_to_middle(e,r,n);return this.size_=o,e},t.prototype._Insert_to_middle=function(e,r,n){for(var o,i,a=this._Compute_col_size(),u=this._Fetch_index(e.index()),l=this.matrix_[u.first],p=u.second,f=l.splice(p);!r.equals(n);r=r.next()){if(l.length===a&&this.matrix_.length=r&&this.matrix_.length=e&&this.matrix_.length=this.size())return e;r=t.index()>=this.size()?this.size()-e.index():t.index()-e.index(),this.size_-=r;for(var r,n=null,o=null,i=0;0!==r;){var a=this._Fetch_index(e.index()),u=this.matrix_[a.first],l=a.second,p=Math.min(r,u.length-l);u.splice(l,p),0!==u.length&&(0===i?n=u:o=u),0===u.length&&this.matrix_.length>1&&this.matrix_.splice(a.first,1),r-=p,++i}return null!==n&&null!==o&&n.length+o.length<=this._Compute_col_size()&&(n.push.apply(n,c([],s(o),!1)),this.matrix_.splice(this.matrix_.indexOf(o),1)),e},t}(u.ArrayContainer);t.Deque=_,(o=_||(t.Deque=_={})).Iterator=l.ArrayIterator,o.ReverseIterator=p.ArrayReverseIterator,o.ROW_SIZE=8,o.MIN_CAPACITY=36,o.MAGNIFIER=1.5,i=function(){function e(e){this.matrix_=e,this.row_=0,this.col_=0}return e.prototype.next=function(){if(this.row_===this.matrix_.length)return{done:!0,value:void 0};var e=this.matrix_[this.row_][this.col_];return++this.col_===this.matrix_[this.row_].length&&(++this.row_,this.col_=0),{done:!1,value:e}},e.prototype[Symbol.iterator]=function(){return this},e}(),o.ForOfAdaptor=i},37032:function(e,t,r){"use strict";var n,o,i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ForwardList=void 0;var s=r(19151),c=r(40869),u=r(81484),l=r(48058),p=r(42830),f=r(17393),d=r(51167),h=function(){function e(){for(var t,r,n=[],o=0;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.HashMultiMap=void 0;var u=r(27205),l=r(53985),p=r(37194),f=r(85587),d=r(52168),h=r(92376),y=function(e){function t(){for(var r=[],n=0;nthis.buckets_.capacity()&&this.reserve(Math.max(this.size(),2*this.buckets_.capacity())),this._Handle_insert(o,this.end())},t.prototype._Handle_insert=function(e,t){for(;!e.equals(t);e=e.next())this.buckets_.insert(e)},t.prototype._Handle_erase=function(e,t){for(;!e.equals(t);e=e.next())this.buckets_.erase(e)},t}(u.MultiMap);t.HashMultiMap=y,(o=y||(t.HashMultiMap=y={})).Iterator=p.MapElementList.Iterator,o.ReverseIterator=p.MapElementList.ReverseIterator},66612:function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.HashMultiSet=void 0;var u=r(19852),l=r(53985),p=r(22409),f=r(67392),d=function(e){function t(){for(var r=[],n=0;nthis.buckets_.capacity()&&this.reserve(Math.max(this.size(),2*this.buckets_.capacity())),this._Handle_insert(r,this.end())},t.prototype._Handle_insert=function(e,t){for(;!e.equals(t);e=e.next())this.buckets_.insert(e)},t.prototype._Handle_erase=function(e,t){for(;!e.equals(t);e=e.next())this.buckets_.erase(e)},t}(u.MultiSet);t.HashMultiSet=d,(o=d||(t.HashMultiSet=d={})).Iterator=p.SetElementList.Iterator,o.ReverseIterator=p.SetElementList.ReverseIterator},38038:function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.PriorityQueue=void 0;var s=r(39281),c=r(81484),u=r(88139),l=r(17393),p=function(e){function t(){for(var r=[],n=0;n=2&&r[0].next instanceof Function&&r[1].next instanceof Function?(3===r.length&&(i=r[2]),a=function(){var e=r[0],t=r[1];o.source_.assign(e,t)}):1===r.length&&(i=r[0]);return o.comp_=i,null!==a&&a(),o}return o(t,e),t.prototype.value_comp=function(){return this.comp_},t.prototype.top=function(){return this.source_.front()},t.prototype.push=function(){for(var e,t,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.VectorBoolean=void 0;var u=r(85474),l=r(59850),p=r(46849),f=r(77506),d=r(52168),h=r(46544),y=r(17393),m=function(e){function t(){for(var r=[],n=0;n0?this.insert(this.end(),t,!1):t<0&&this.erase(this.end().advance(-t),this.end())},t.prototype.flip=function(){var e,t;try{for(var r=c(this.data_),n=r.next();!n.done;n=r.next()){var o=n.value;o.second=!o.second}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype.swap=function(e){var t,r;t=a([e.data_,this.data_],2),this.data_=t[0],e.data_=t[1],r=a([e.size_,this.size_],2),this.size_=r[0],e.size_=r[1]},t.prototype.source=function(){return this},t.prototype.size=function(){return this.size_},t.prototype._At=function(e){return this._Find_node(e).second},t.prototype._Set=function(e,t){t=!!t;var r=this._Find_node(e);if(r.second!==t&&(r.first===e?r.second=t:r=this.data_.emplace(e,t).first,e!==this.size()-1)){var n=r.prev(),o=r.next();(0,y.not_equal_to)(n,this.data_.end())&&n.second===r.second&&this.data_.erase(r),!0===o.equals(this.data_.end())||o.first!==e+1||o.second!==t?this.data_.emplace(e+1,!t):this.data_.erase(o)}},t.prototype.nth=function(e){return new t.Iterator(this,e)},t.prototype._Find_node=function(e){return this.data_.upper_bound(e).prev()},t.prototype.push=function(){for(var e=[],t=0;t=2&&"number"==typeof t[0].valueOf()){var o=t[0],i=t[1];n.code_=new s.ErrorCode(o,i),n.message=t[2]}else n.code_=t[0],n.message=t[1];return n}return o(t,e),t.prototype.code=function(){return this.code_},t.prototype.toJSON=function(){return i(i({},e.prototype.toJSON.call(this)),{code:this.code_.toJSON()})},t}(a.RuntimeError);t.SystemError=c},68687:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.UnderflowError=void 0;var i=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t}(r(41718).RuntimeError);t.UnderflowError=i},12159:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(95561),t),o(r(45638),t),o(r(73464),t),o(r(1767),t),o(r(35813),t),o(r(68661),t),o(r(41718),t),o(r(90609),t),o(r(38833),t),o(r(68687),t),o(r(13535),t),o(r(30025),t),o(r(17337),t),o(r(50018),t)},41067:function(e,t,r){"use strict";var n,o,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.hash=void 0;var o=r(16544);function i(e,t){return a(e.toString(),t)}function a(e,t){for(var r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o=1&&i[0]instanceof Array?(t=function(){var t=i[0];e.push.apply(e,o([],n(t),!1))},r=i.slice(1)):i.length>=2&&i[0].next instanceof Function&&i[1].next instanceof Function?(t=function(){var t=i[0],r=i[1];e.assign(t,r)},r=i.slice(2)):(t=null,r=i),{ramda:t,tail:r}}},53985:function(e,t,r){"use strict";var n,o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o=1&&(p=h.tail[0]),h.tail.length>=2&&(f=h.tail[1])}r(p,f),null!==l&&l()}},48220:function(e,t,r){"use strict";var n,o,i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o=1&&(l=f.tail[0])}r(l),null!==u&&u()},n.emplacable=function(e,t,r){var n=t.prev();return(n.equals(e.end())||e.value_comp()(n.value,r))&&(t.equals(e.end())||e.value_comp()(r,t.value))}},37194:function(e,t,r){"use strict";var n,o,i,a,s=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.MapElementList=void 0;var u=r(93258),l=r(69189),p=r(39664),f=function(e){function t(t){var r=e.call(this)||this;return r.associative_=t,r}return s(t,e),t.prototype._Create_iterator=function(e,r,n){return t.Iterator.create(this,e,r,n)},t._Swap_associative=function(e,t){var r;r=c([t.associative_,e.associative_],2),e.associative_=r[0],t.associative_=r[1]},t.prototype.associative=function(){return this.associative_},t}(u.ListContainer);t.MapElementList=f,o=f||(t.MapElementList=f={}),i=function(e){function t(t,r,n,o){var i=e.call(this,r,n,o)||this;return i.list_=t,i}return s(t,e),t.create=function(e,r,n,o){return new t(e,r,n,o)},t.prototype.reverse=function(){return new a(this)},t.prototype.source=function(){return this.list_.associative()},Object.defineProperty(t.prototype,"first",{get:function(){return this.value.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"second",{get:function(){return this.value.second},set:function(e){this.value.second=e},enumerable:!1,configurable:!0}),t}(l.ListIterator),o.Iterator=i,a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype._Create_neighbor=function(e){return new t(e)},Object.defineProperty(t.prototype,"first",{get:function(){return this.base_.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"second",{get:function(){return this.base_.second},set:function(e){this.base_.second=e},enumerable:!1,configurable:!0}),t}(p.ReverseIterator),o.ReverseIterator=a},6164:function(e,t,r){"use strict";var n,o,i,a,s=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.MapElementVector=void 0;var u=r(49519),l=r(56267),p=r(99738),f=function(e){function t(t){var r=e.call(this)||this;return r.data_=[],r.associative_=t,r}return s(t,e),t.prototype.nth=function(e){return new t.Iterator(this,e)},t._Swap_associative=function(e,t){var r;r=c([t.associative_,e.associative_],2),e.associative_=r[0],t.associative_=r[1]},t.prototype.source=function(){return this.associative_},t}(u.VectorContainer);t.MapElementVector=f,o=f||(t.MapElementVector=f={}),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.source=function(){return this._Get_array().source()},t.prototype.reverse=function(){return new a(this)},Object.defineProperty(t.prototype,"first",{get:function(){return this.value.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"second",{get:function(){return this.value.second},set:function(e){this.value.second=e},enumerable:!1,configurable:!0}),t}(l.ArrayIteratorBase),o.Iterator=i,a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype._Create_neighbor=function(e){return new t(e)},Object.defineProperty(t.prototype,"first",{get:function(){return this.value.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"second",{get:function(){return this.value.second},set:function(e){this.value.second=e},enumerable:!1,configurable:!0}),t}(p.ArrayReverseIteratorBase),o.ReverseIterator=a},67684:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MultiTreeMap=void 0;var i=r(27205),a=r(48220),s=r(92376),c=r(46544),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.find=function(e){var t=this.lower_bound(e);return!t.equals(this.end())&&this._Key_eq(e,t.first)?t:this.end()},t.prototype.count=function(e){for(var t=this.find(e),r=0;!t.equals(this.end())&&this._Key_eq(t.first,e);t=t.next())++r;return r},t.prototype.equal_range=function(e){return new c.Pair(this.lower_bound(e),this.upper_bound(e))},t.prototype.value_comp=function(){var e=this;return function(t,r){return e.key_comp()(t.first,r.first)}},t.prototype._Key_eq=function(e,t){return!this.key_comp()(e,t)&&!this.key_comp()(t,e)},t.prototype.emplace=function(e,t){var r=this.upper_bound(e);return r=this.data_.insert(r,new s.Entry(e,t)),this._Handle_insert(r,r.next()),r},t.prototype.emplace_hint=function(e,t,r){var n=new s.Entry(t,r);if(!a.ITreeContainer.emplacable(this,e,n))return this.emplace(t,r);var o=this.data_.insert(e,n);return this._Handle_insert(o,o.next()),o},t.prototype._Insert_by_range=function(e,t){for(var r=e;!r.equals(t);r=r.next())this.emplace(r.value.first,r.value.second)},t}(i.MultiMap);t.MultiTreeMap=u},41622:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MultiTreeSet=void 0;var i=r(19852),a=r(48220),s=r(46544),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.find=function(e){var t=this.lower_bound(e);return!t.equals(this.end())&&this._Key_eq(e,t.value)?t:this.end()},t.prototype.count=function(e){for(var t=this.find(e),r=0;!t.equals(this.end())&&this._Key_eq(t.value,e);t=t.next())++r;return r},t.prototype.equal_range=function(e){return new s.Pair(this.lower_bound(e),this.upper_bound(e))},t.prototype.value_comp=function(){return this.key_comp()},t.prototype._Key_eq=function(e,t){return!this.key_comp()(e,t)&&!this.key_comp()(t,e)},t.prototype._Insert_by_key=function(e){var t=this.upper_bound(e);return t=this.data_.insert(t,e),this._Handle_insert(t,t.next()),t},t.prototype._Insert_by_hint=function(e,t){if(!a.ITreeContainer.emplacable(this,e,t))return this._Insert_by_key(t);var r=this.data_.insert(e,t);return this._Handle_insert(r,r.next()),r},t.prototype._Insert_by_range=function(e,t){for(var r=e;!r.equals(t);r=r.next())this._Insert_by_key(r.value)},t}(i.MultiSet);t.MultiTreeSet=c},22409:function(e,t,r){"use strict";var n,o,i,a,s=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.SetElementList=void 0;var u=r(93258),l=r(69189),p=r(39664),f=function(e){function t(t){var r=e.call(this)||this;return r.associative_=t,r}return s(t,e),t.prototype._Create_iterator=function(e,r,n){return t.Iterator.create(this,e,r,n)},t._Swap_associative=function(e,t){var r;r=c([t.associative_,e.associative_],2),e.associative_=r[0],t.associative_=r[1]},t.prototype.associative=function(){return this.associative_},t}(u.ListContainer);t.SetElementList=f,o=f||(t.SetElementList=f={}),i=function(e){function t(t,r,n,o){var i=e.call(this,r,n,o)||this;return i.source_=t,i}return s(t,e),t.create=function(e,r,n,o){return new t(e,r,n,o)},t.prototype.reverse=function(){return new a(this)},t.prototype.source=function(){return this.source_.associative()},t}(l.ListIterator),o.Iterator=i,a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype._Create_neighbor=function(e){return new t(e)},t}(p.ReverseIterator),o.ReverseIterator=a},62128:function(e,t,r){"use strict";var n,o,i,a,s=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.SetElementVector=void 0;var u=r(49519),l=r(56267),p=r(99738),f=function(e){function t(t){var r=e.call(this)||this;return r.data_=[],r.associative_=t,r}return s(t,e),t.prototype.nth=function(e){return new t.Iterator(this,e)},t._Swap_associative=function(e,t){var r;r=c([t.associative_,e.associative_],2),e.associative_=r[0],t.associative_=r[1]},t.prototype.source=function(){return this.associative_},t}(u.VectorContainer);t.SetElementVector=f,o=f||(t.SetElementVector=f={}),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.source=function(){return this._Get_array().source()},t.prototype.reverse=function(){return new a(this)},t}(l.ArrayIteratorBase),o.Iterator=i,a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype._Create_neighbor=function(e){return new t(e)},t}(p.ArrayReverseIteratorBase),o.ReverseIterator=a},30792:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueTreeMap=void 0;var i=r(27730),a=r(48220),s=r(92376),c=r(46544),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.find=function(e){var t=this.lower_bound(e);return!t.equals(this.end())&&this._Key_eq(e,t.first)?t:this.end()},t.prototype.equal_range=function(e){var t=this.lower_bound(e);return new c.Pair(t,!t.equals(this.end())&&this._Key_eq(e,t.first)?t.next():t)},t.prototype.value_comp=function(){var e=this;return function(t,r){return e.key_comp()(t.first,r.first)}},t.prototype._Key_eq=function(e,t){return!this.key_comp()(e,t)&&!this.key_comp()(t,e)},t.prototype.emplace=function(e,t){var r=this.lower_bound(e);return!r.equals(this.end())&&this._Key_eq(r.first,e)?new c.Pair(r,!1):(r=this.data_.insert(r,new s.Entry(e,t)),this._Handle_insert(r,r.next()),new c.Pair(r,!0))},t.prototype.emplace_hint=function(e,t,r){var n=new s.Entry(t,r);if(!a.ITreeContainer.emplacable(this,e,n))return this.emplace(t,r).first;var o=this.data_.insert(e,n);return this._Handle_insert(o,o.next()),o},t}(i.UniqueMap);t.UniqueTreeMap=u},95396:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueTreeSet=void 0;var i=r(11855),a=r(48220),s=r(46544),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.find=function(e){var t=this.lower_bound(e);return!t.equals(this.end())&&this._Key_eq(e,t.value)?t:this.end()},t.prototype.equal_range=function(e){var t=this.lower_bound(e);return new s.Pair(t,!t.equals(this.end())&&this._Key_eq(e,t.value)?t.next():t)},t.prototype.value_comp=function(){return this.key_comp()},t.prototype._Key_eq=function(e,t){return!this.key_comp()(e,t)&&!this.key_comp()(t,e)},t.prototype._Insert_by_key=function(e){var t=this.lower_bound(e);return!t.equals(this.end())&&this._Key_eq(t.value,e)?new s.Pair(t,!1):(t=this.data_.insert(t,e),this._Handle_insert(t,t.next()),new s.Pair(t,!0))},t.prototype._Insert_by_hint=function(e,t){if(!a.ITreeContainer.emplacable(this,e,t))return this._Insert_by_key(t).first;var r=this.data_.insert(e,t);return this._Handle_insert(r,r.next()),r},t}(i.UniqueSet);t.UniqueTreeSet=c},39281:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o=this.size())throw a.ErrorGenerator.excessive_index(this.source(),"at",e,this.size());this._Set(e,t)},t.prototype.front=function(e){if(0==arguments.length)return this.at(0);this.set(0,e)},t.prototype.back=function(e){var t=this.size()-1;if(0==arguments.length)return this.at(t);this.set(t,e)},t.prototype.insert=function(e){for(var t=[],r=1;re.index())throw a.ErrorGenerator.negative_iterator(this.source(),"insert",e.index());return e.index()>this.size()&&(e=this.end()),1===t.length?this._Insert_by_repeating_val(e,1,t[0]):2===t.length&&"number"==typeof t[0]?this._Insert_by_repeating_val(e,t[0],t[1]):this._Insert_by_range(e,t[0],t[1])},t.prototype._Insert_by_repeating_val=function(e,t,r){var n=new c.Repeater(0,r),o=new c.Repeater(t);return this._Insert_by_range(e,n,o)},t.prototype.pop_back=function(){if(!0===this.empty())throw a.ErrorGenerator.empty(this.source(),"pop_back");this._Pop_back()},t.prototype.erase=function(e,t){if(void 0===t&&(t=e.next()),e._Get_array()!==this||t._Get_array()!==this)throw a.ErrorGenerator.not_my_iterator(this.source(),"erase");if(0>e.index())throw a.ErrorGenerator.negative_iterator(this.source(),"erase",e.index());if(e.index()>t.index())throw new s.RangeError("Error on ".concat(a.ErrorGenerator.get_class_name(this.source()),".erase(): first iterator has greater index than last -> (first = ").concat(e.index(),", last = ").concat(t.index(),")."));return e.index()>=this.size()?this.end():this._Erase_by_range(e,t)},t}(i.Container);t.ArrayContainer=u},93258:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ListContainer=void 0;var a=r(32080),s=r(69189),c=r(19151),u=r(52168),l=r(42830),p=r(48058),f=function(e){function t(){var t=e.call(this)||this;return t.end_=t._Create_iterator(null,null),t.clear(),t}return o(t,e),t.prototype.assign=function(e,t){this.clear(),this.insert(this.end(),e,t)},t.prototype.clear=function(){s.ListIterator._Set_prev(this.end_,this.end_),s.ListIterator._Set_next(this.end_,this.end_),this.begin_=this.end_,this.size_=0},t.prototype.resize=function(e){var t=e-this.size();t>0?this.insert(this.end(),t,void 0):t<0&&this.erase((0,l.advance)(this.end(),-t),this.end())},t.prototype.begin=function(){return this.begin_},t.prototype.end=function(){return this.end_},t.prototype.size=function(){return this.size_},t.prototype.push_front=function(e){this.insert(this.begin_,e)},t.prototype.push_back=function(e){this.insert(this.end_,e)},t.prototype.pop_front=function(){if(!0===this.empty())throw p.ErrorGenerator.empty(this.end_.source().constructor.name,"pop_front");this.erase(this.begin_)},t.prototype.pop_back=function(){if(!0===this.empty())throw p.ErrorGenerator.empty(this.end_.source().constructor.name,"pop_back");this.erase(this.end_.prev())},t.prototype.push=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o=this.size()){for(var n,o=this.size();!t.equals(r);t=t.next())this.data_.push(t.value);return this.nth(o)}for(var s=this.data_.splice(e.index());!t.equals(r);t=t.next())this.data_.push(t.value);return(n=this.data_).push.apply(n,a([],i(s),!1)),e},t.prototype._Pop_back=function(){this.data_.pop()},t.prototype._Erase_by_range=function(e,t){return e.index()>=this.size()?e:t.index()>=this.size()?(this.data_.splice(e.index()),this.end()):(this.data_.splice(e.index(),t.index()-e.index()),e)},t.prototype.equals=function(e){return this.data_===e.data_},t.prototype.swap=function(e){var t;t=i([e.data_,this.data_],2),this.data_=t[0],e.data_=t[1]},t.prototype.toJSON=function(){return this.data_},t}(r(85474).ArrayContainer);t.VectorContainer=s},48058:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorGenerator=void 0;var n,o=r(1767),i=r(68661);!function(e){function t(e){if("string"==typeof e)return e;var t=e.constructor.name;return e.constructor.__MODULE&&(t="".concat(e.constructor.__MODULE,".").concat(t)),"std.".concat(t)}e.get_class_name=t,e.empty=function(e,r){return new i.OutOfRange("Error on ".concat(t(e),".").concat(r,"(): it's empty container."))},e.negative_index=function(e,r,n){return new i.OutOfRange("Error on ".concat(t(e),".").concat(r,"(): parametric index is negative -> (index = ").concat(n,")."))},e.excessive_index=function(e,r,n,o){return new i.OutOfRange("Error on ".concat(t(e),".").concat(r,"(): parametric index is equal or greater than size -> (index = ").concat(n,", size: ").concat(o,")."))},e.not_my_iterator=function(e,r){return new o.InvalidArgument("Error on ".concat(t(e),".").concat(r,"(): parametric iterator is not this container's own."))},e.erased_iterator=function(e,r){return new o.InvalidArgument("Error on ".concat(t(e),".").concat(r,"(): parametric iterator, it already has been erased."))},e.negative_iterator=function(e,r,n){return new i.OutOfRange("Error on ".concat(t(e),".").concat(r,"(): parametric iterator is directing negative position -> (index = ").concat(n,")."))},e.iterator_end_value=function(e,r){void 0===r&&(r="end");var n=t(e);return new i.OutOfRange("Error on ".concat(n,".Iterator.value: cannot access to the ").concat(n,".").concat(r,"().value."))},e.key_nout_found=function(e,r,n){throw new i.OutOfRange("Error on ".concat(t(e),".").concat(r,"(): unable to find the matched key -> ").concat(n))}}(n||(t.ErrorGenerator=n={}))},52812:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorInstance=void 0;var r=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=null),this.assign(e,t)}return e.prototype.assign=function(e,t){this.category_=t,this.value_=e},e.prototype.clear=function(){this.value_=0},e.prototype.category=function(){return this.category_},e.prototype.value=function(){return this.value_},e.prototype.message=function(){return this.category_.message(this.value_)},e.prototype.to_bool=function(){return 0!==this.value_},e.prototype.toJSON=function(){return null===this.category_?{}:{cateogory:this.category_.name(),value:this.value(),message:this.message()}},e}();t.ErrorInstance=r},10049:function(e,t){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.HashBuckets=void 0;var n=function(){function e(e,t){this.fetcher_=e,this.hasher_=t,this.max_load_factor_=i,this.data_=[],this.size_=0,this.initialize()}return e.prototype.clear=function(){this.data_=[],this.size_=0,this.initialize()},e.prototype.rehash=function(e){e=Math.max(e,o);for(var t,n,i,a,s=[],c=0;cthis.capacity()&&(e=Math.floor(e/this.max_load_factor_),this.rehash(e))},e.prototype.initialize=function(){for(var e=0;et&&this.reserve(2*t);var r=this.index(e);this.data_[r].push(e)},e.prototype.erase=function(e){for(var t=this.index(e),r=this.data_[t],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MapHashBuckets=void 0;var s=function(e){function t(t,r,n){var o=e.call(this,c,r)||this;return o.source_=t,o.key_eq_=n,o}return o(t,e),t._Swap_source=function(e,t){var r;r=i([t.source_,e.source_],2),e.source_=r[0],t.source_=r[1]},t.prototype.key_eq=function(){return this.key_eq_},t.prototype.find=function(e){var t,r,n=this.hash_function()(e)%this.length(),o=this.at(n);try{for(var i=a(o),s=i.next();!s.done;s=i.next()){var c=s.value;if(this.key_eq_(c.first,e))return c}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this.source_.end()},t}(r(10049).HashBuckets);function c(e){return e.first}t.MapHashBuckets=s},67392:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.SetHashBuckets=void 0;var s=function(e){function t(t,r,n){var o=e.call(this,c,r)||this;return o.source_=t,o.key_eq_=n,o}return o(t,e),t._Swap_source=function(e,t){var r;r=i([t.source_,e.source_],2),e.source_=r[0],t.source_=r[1]},t.prototype.key_eq=function(){return this.key_eq_},t.prototype.find=function(e){var t,r,n=this.hash_function()(e)%this.length(),o=this.at(n);try{for(var i=a(o),s=i.next();!s.done;s=i.next()){var c=s.value;if(this.key_eq_(c.value,e))return c}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return this.source_.end()},t}(r(10049).HashBuckets);function c(e){return e.value}t.SetHashBuckets=s},59850:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayIterator=void 0;var i=r(56267),a=r(46849),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.reverse=function(){return new a.ArrayReverseIterator(this)},t.prototype.source=function(){return this._Get_array()},t}(i.ArrayIteratorBase);t.ArrayIterator=s},56267:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayIteratorBase=void 0;var n=r(17393),o=function(){function e(e,t){this.array_=e,this.index_=t}return e.prototype._Get_array=function(){return this.array_},e.prototype.index=function(){return this.index_},Object.defineProperty(e.prototype,"value",{get:function(){return this.array_.at(this.index_)},set:function(e){this.array_.set(this.index_,e)},enumerable:!1,configurable:!0}),e.prototype.prev=function(){return this.advance(-1)},e.prototype.next=function(){return this.advance(1)},e.prototype.advance=function(e){return this.array_.nth(this.index_+e)},e.prototype.equals=function(e){return(0,n.equal_to)(this.array_,e.array_)&&this.index_===e.index_},e}();t.ArrayIteratorBase=o},46849:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayReverseIterator=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype._Create_neighbor=function(e){return new t(e)},t}(r(99738).ArrayReverseIteratorBase);t.ArrayReverseIterator=i},99738:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayReverseIteratorBase=void 0;var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.advance=function(e){return this._Create_neighbor(this.base().advance(-e))},t.prototype.index=function(){return this.base_.index()},Object.defineProperty(t.prototype,"value",{get:function(){return this.base_.value},set:function(e){this.base_.value=e},enumerable:!1,configurable:!0}),t}(r(39664).ReverseIterator);t.ArrayReverseIteratorBase=i},24063:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InsertIteratorBase=void 0;var r=function(){function e(){}return e.prototype.next=function(){return this},e}();t.InsertIteratorBase=r},69189:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListIterator=void 0;var n=r(48058),o=function(){function e(e,t,r){this.prev_=e,this.next_=t,this.value_=r}return e._Set_prev=function(e,t){e.prev_=t},e._Set_next=function(e,t){e.next_=t},e.prototype.prev=function(){return this.prev_},e.prototype.next=function(){return this.next_},Object.defineProperty(e.prototype,"value",{get:function(){return this._Try_value(),this.value_},enumerable:!1,configurable:!0}),e.prototype._Try_value=function(){if(void 0===this.value_&&!0===this.equals(this.source().end()))throw n.ErrorGenerator.iterator_end_value(this.source())},e.prototype.equals=function(e){return this===e},e}();t.ListIterator=o},39664:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReverseIterator=void 0;var r=function(){function e(e){this.base_=e.prev()}return e.prototype.source=function(){return this.base_.source()},e.prototype.base=function(){return this.base_.next()},Object.defineProperty(e.prototype,"value",{get:function(){return this.base_.value},enumerable:!1,configurable:!0}),e.prototype.prev=function(){return this._Create_neighbor(this.base().next())},e.prototype.next=function(){return this._Create_neighbor(this.base_)},e.prototype.equals=function(e){return this.base_.equals(e.base_)},e}();t.ReverseIterator=r},40869:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForOfAdaptor=void 0;var r=function(){function e(e,t){this.it_=e,this.last_=t}return e.prototype.next=function(){if(this.it_.equals(this.last_))return{done:!0,value:void 0};var e=this.it_;return this.it_=this.it_.next(),{done:!1,value:e.value}},e.prototype[Symbol.iterator]=function(){return this},e}();t.ForOfAdaptor=r},52168:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeArrayIterator=void 0;var n=function(){function e(e,t){this.data_=e,this.index_=t}return e.prototype.index=function(){return this.index_},Object.defineProperty(e.prototype,"value",{get:function(){return this.data_[this.index_]},enumerable:!1,configurable:!0}),e.prototype.prev=function(){return--this.index_,this},e.prototype.next=function(){return++this.index_,this},e.prototype.advance=function(e){return this.index_+=e,this},e.prototype.equals=function(e){return this.data_===e.data_&&this.index_===e.index_},e.prototype.swap=function(e){var t,n;t=r([e.data_,this.data_],2),this.data_=t[0],e.data_=t[1],n=r([e.index_,this.index_],2),this.index_=n[0],e.index_=n[1]},e}();t.NativeArrayIterator=n},19151:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Repeater=void 0;var r=function(){function e(e,t){this.index_=e,this.value_=t}return e.prototype.index=function(){return this.index_},Object.defineProperty(e.prototype,"value",{get:function(){return this.value_},enumerable:!1,configurable:!0}),e.prototype.next=function(){return++this.index_,this},e.prototype.equals=function(e){return this.index_===e.index_},e}();t.Repeater=r},45118:function(e,t){"use strict";var r,n,o,i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.MathUtil=void 0,(r=o||(t.MathUtil=o={})).factorial=function(e){if(n.length<=e)for(var t=n.length;t<=e;++t)n.push(n[t-1]*t);return n[e]},r.integral=function(e,t,r,n){if(void 0===n&&(n=1e5),t>r)t=(o=i([r,t],2))[0],r=o[1];else if(t===r)return 0;for(var o,a=(r-t)/n,s=0;t0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.MapTree=void 0;var a=r(31457),s=r(46544),c=function(e){function t(t,r,n){var o=e.call(this,n)||this;return o.source_=t,o.key_compare_=r,o.key_eq_=function(e,t){return!r(e,t)&&!r(t,e)},o.value_compare_=function(e,t){return r(e.first,t.first)},o}return o(t,e),t._Swap_source=function(e,t){var r;r=i([t.source_,e.source_],2),e.source_=r[0],t.source_=r[1]},t.prototype.get_by_key=function(e){var t=this.nearest_by_key(e);return null!==t&&this.key_eq_(e,t.value.first)?t:null},t.prototype.lower_bound=function(e){var t=this.nearest_by_key(e);return null===t?this.source().end():this.key_comp()(t.value.first,e)?t.value.next():t.value},t.prototype.equal_range=function(e){return new s.Pair(this.lower_bound(e),this.upper_bound(e))},t.prototype.source=function(){return this.source_},t.prototype.key_comp=function(){return this.key_compare_},t.prototype.key_eq=function(){return this.key_eq_},t.prototype.value_comp=function(){return this.value_compare_},t}(a.XTree);t.MapTree=c},74870:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MultiMapTree=void 0;var i=r(35293),a=r(16544),s=function(e){function t(t,r){return e.call(this,t,r,function(e,t){var n=r(e.first,t.first);return n||r(t.first,e.first)?n:(0,a.get_uid)(e)<(0,a.get_uid)(t)})||this}return o(t,e),t.prototype.insert=function(t){(0,a.get_uid)(t),e.prototype.insert.call(this,t)},t.prototype._Nearest_by_key=function(e,t){if(null===this.root_)return null;for(var r=this.root_,n=null;;){var o=r.value,i=null;if(this.key_comp()(e,o.first)?i=r.left:this.key_comp()(o.first,e)?i=r.right:(n=r,i=t(r)),null===i)break;r=i}return null!==n?n:r},t.prototype.nearest_by_key=function(e){return this._Nearest_by_key(e,function(e){return e.left})},t.prototype.upper_bound=function(e){var t=this._Nearest_by_key(e,function(e){return e.right});if(null===t)return this.source().end();var r=t.value;return this.key_comp()(e,r.first)?r:r.next()},t}(i.MapTree);t.MultiMapTree=s},9593:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSetTree=void 0;var i=r(98170),a=r(16544),s=function(e){function t(t,r){return e.call(this,t,r,function(e,t){var n=r(e.value,t.value);return n||r(t.value,e.value)?n:(0,a.get_uid)(e)<(0,a.get_uid)(t)})||this}return o(t,e),t.prototype.insert=function(t){(0,a.get_uid)(t),e.prototype.insert.call(this,t)},t.prototype._Nearest_by_key=function(e,t){if(null===this.root_)return null;for(var r=this.root_,n=null;;){var o=r.value,i=null;if(this.key_comp()(e,o.value)?i=r.left:this.key_comp()(o.value,e)?i=r.right:(n=r,i=t(r)),null===i)break;r=i}return null!==n?n:r},t.prototype.nearest_by_key=function(e){return this._Nearest_by_key(e,function(e){return e.left})},t.prototype.upper_bound=function(e){var t=this._Nearest_by_key(e,function(e){return e.right});if(null===t)return this.source().end();var r=t.value;return this.key_comp()(e,r.value)?r:r.next()},t}(i.SetTree);t.MultiSetTree=s},98170:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.SetTree=void 0;var a=r(31457),s=r(46544),c=function(e){function t(t,r,n){var o=e.call(this,n)||this;return o.source_=t,o.key_comp_=r,o.key_eq_=function(e,t){return!r(e,t)&&!r(t,e)},o}return o(t,e),t._Swap_source=function(e,t){var r;r=i([t.source_,e.source_],2),e.source_=r[0],t.source_=r[1]},t.prototype.get_by_key=function(e){var t=this.nearest_by_key(e);return null!==t&&this.key_eq_(e,t.value.value)?t:null},t.prototype.lower_bound=function(e){var t=this.nearest_by_key(e);return null===t?this.source_.end():this.key_comp_(t.value.value,e)?t.value.next():t.value},t.prototype.equal_range=function(e){return new s.Pair(this.lower_bound(e),this.upper_bound(e))},t.prototype.source=function(){return this.source_},t.prototype.key_comp=function(){return this.key_comp_},t.prototype.key_eq=function(){return this.key_eq_},t.prototype.value_comp=function(){return this.key_comp_},t}(a.XTree);t.SetTree=c},80254:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueMapTree=void 0;var i=function(e){function t(t,r){return e.call(this,t,r,function(e,t){return r(e.first,t.first)})||this}return o(t,e),t.prototype.nearest_by_key=function(e){if(null===this.root_)return null;for(var t=this.root_;;){var r=t.value,n=null;if(this.key_comp()(e,r.first))n=t.left;else if(this.key_comp()(r.first,e))n=t.right;else break;if(null===n)break;t=n}return t},t.prototype.upper_bound=function(e){var t=this.nearest_by_key(e);if(null===t)return this.source().end();var r=t.value;return this.key_comp()(e,r.first)?r:r.next()},t}(r(35293).MapTree);t.UniqueMapTree=i},9589:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueSetTree=void 0;var i=function(e){function t(t,r){return e.call(this,t,r,function(e,t){return r(e.value,t.value)})||this}return o(t,e),t.prototype.nearest_by_key=function(e){if(null===this.root_)return null;for(var t=this.root_;;){var r=t.value,n=null;if(this.key_comp()(e,r.value))n=t.left;else if(this.key_comp()(r.value,e))n=t.right;else break;if(null===n)break;t=n}return t},t.prototype.upper_bound=function(e){var t=this.nearest_by_key(e);if(null===t)return this.source().end();var r=t.value;return this.key_comp()(e,r.value)?r:r.next()},t}(r(98170).SetTree);t.UniqueSetTree=i},31457:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XTree=void 0;var n=r(89004),o=function(){function e(e){this.root_=null,this.comp_=e,this.equal_=function(t,r){return!e(t,r)&&!e(r,t)}}return e.prototype.clear=function(){this.root_=null},e.prototype.root=function(){return this.root_},e.prototype.get=function(e){var t=this.nearest(e);return null!==t&&this.equal_(e,t.value)?t:null},e.prototype.nearest=function(e){if(null===this.root_)return null;for(var t=this.root_;;){var r=null;if(this.comp_(e,t.value))r=t.left;else if(this.comp_(t.value,e))r=t.right;else break;if(null!==r)t=r;else break}return t},e.prototype._Fetch_maximum=function(e){for(;null!==e.right;)e=e.right;return e},e.prototype.insert=function(e){var t=this.nearest(e),r=new n.XTreeNode(e,1);null===t?this.root_=r:(r.parent=t,this.comp_(r.value,t.value)?t.left=r:t.right=r),this._Insert_case1(r)},e.prototype._Insert_case1=function(e){null===e.parent?e.color=0:this._Insert_case2(e)},e.prototype._Insert_case2=function(e){0!==this._Fetch_color(e.parent)&&this._Insert_case3(e)},e.prototype._Insert_case3=function(e){1===this._Fetch_color(e.uncle)?(e.parent.color=0,e.uncle.color=0,e.grand.color=1,this._Insert_case1(e.grand)):this._Insert_case4(e)},e.prototype._Insert_case4=function(e){e===e.parent.right&&e.parent===e.grand.left?(this._Rotate_left(e.parent),e=e.left):e===e.parent.left&&e.parent===e.grand.right&&(this._Rotate_right(e.parent),e=e.right),this._Insert_case5(e)},e.prototype._Insert_case5=function(e){e.parent.color=0,e.grand.color=1,e===e.parent.left&&e.parent===e.grand.left?this._Rotate_right(e.grand):this._Rotate_left(e.grand)},e.prototype.erase=function(e){var t=this.get(e);if(null!==t){if(null!==t.left&&null!==t.right){var r=this._Fetch_maximum(t.left);t.value=r.value,t=r}var n=null===t.right?t.left:t.right;0===this._Fetch_color(t)&&(t.color=this._Fetch_color(n),this._Erase_case1(t)),this._Replace_node(t,n),1===this._Fetch_color(this.root_)&&(this.root_.color=0)}},e.prototype._Erase_case1=function(e){null!==e.parent&&this._Erase_case2(e)},e.prototype._Erase_case2=function(e){1===this._Fetch_color(e.sibling)&&(e.parent.color=1,e.sibling.color=0,e===e.parent.left?this._Rotate_left(e.parent):this._Rotate_right(e.parent)),this._Erase_case3(e)},e.prototype._Erase_case3=function(e){0===this._Fetch_color(e.parent)&&0===this._Fetch_color(e.sibling)&&0===this._Fetch_color(e.sibling.left)&&0===this._Fetch_color(e.sibling.right)?(e.sibling.color=1,this._Erase_case1(e.parent)):this._Erase_case4(e)},e.prototype._Erase_case4=function(e){1===this._Fetch_color(e.parent)&&null!==e.sibling&&0===this._Fetch_color(e.sibling)&&0===this._Fetch_color(e.sibling.left)&&0===this._Fetch_color(e.sibling.right)?(e.sibling.color=1,e.parent.color=0):this._Erase_case5(e)},e.prototype._Erase_case5=function(e){e===e.parent.left&&null!==e.sibling&&0===this._Fetch_color(e.sibling)&&1===this._Fetch_color(e.sibling.left)&&0===this._Fetch_color(e.sibling.right)?(e.sibling.color=1,e.sibling.left.color=0,this._Rotate_right(e.sibling)):e===e.parent.right&&null!==e.sibling&&0===this._Fetch_color(e.sibling)&&0===this._Fetch_color(e.sibling.left)&&1===this._Fetch_color(e.sibling.right)&&(e.sibling.color=1,e.sibling.right.color=0,this._Rotate_left(e.sibling)),this._Erase_case6(e)},e.prototype._Erase_case6=function(e){e.sibling.color=this._Fetch_color(e.parent),e.parent.color=0,e===e.parent.left?(e.sibling.right.color=0,this._Rotate_left(e.parent)):(e.sibling.left.color=0,this._Rotate_right(e.parent))},e.prototype._Rotate_left=function(e){var t=e.right;this._Replace_node(e,t),e.right=t.left,null!==t.left&&(t.left.parent=e),t.left=e,e.parent=t},e.prototype._Rotate_right=function(e){var t=e.left;this._Replace_node(e,t),e.left=t.right,null!==t.right&&(t.right.parent=e),t.right=e,e.parent=t},e.prototype._Replace_node=function(e,t){null===e.parent?this.root_=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,null!==t&&(t.parent=e.parent)},e.prototype._Fetch_color=function(e){return null===e?0:e.color},e}();t.XTree=o},89004:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XTreeNode=void 0;var r=function(){function e(e,t){this.value=e,this.color=t,this.parent=null,this.left=null,this.right=null}return Object.defineProperty(e.prototype,"grand",{get:function(){return this.parent.parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sibling",{get:function(){return this===this.parent.left?this.parent.right:this.parent.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uncle",{get:function(){return this.parent.sibling},enumerable:!1,configurable:!0}),e}();t.XTreeNode=r},93138:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.BackInsertIterator=void 0;var i=r(24063),a=r(17393),s=function(e){function t(t){var r=e.call(this)||this;return r.source_=t,r}return o(t,e),Object.defineProperty(t.prototype,"value",{set:function(e){this.source_.push_back(e)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return(0,a.equal_to)(this.source_,e.source_)},t}(i.InsertIteratorBase);t.BackInsertIterator=s},21030:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.FrontInsertIterator=void 0;var i=r(24063),a=r(17393),s=function(e){function t(t){var r=e.call(this)||this;return r.source_=t,r}return o(t,e),Object.defineProperty(t.prototype,"value",{set:function(e){this.source_.push_front(e)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return(0,a.equal_to)(this.source_,e.source_)},t}(i.InsertIteratorBase);t.FrontInsertIterator=s},56465:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},82102:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},26357:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2982:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},87166:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},43684:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.InsertIterator=void 0;var i=r(24063),a=r(17393),s=function(e){function t(t,r){var n=e.call(this)||this;return n.container_=t,n.it_=r,n}return o(t,e),Object.defineProperty(t.prototype,"value",{set:function(e){this.it_=this.container_.insert(this.it_,e),this.it_=this.it_.next()},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return(0,a.equal_to)(this.it_,e.it_)},t}(i.InsertIteratorBase);t.InsertIterator=s},3611:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.back_inserter=t.front_inserter=t.inserter=t.make_reverse_iterator=t.rend=t.rbegin=t.end=t.begin=void 0;var n=r(43684),o=r(21030),i=r(93138),a=r(81484);t.begin=function(e){return e instanceof Array&&(e=a.Vector.wrap(e)),e.begin()},t.end=function(e){return e instanceof Array&&(e=a.Vector.wrap(e)),e.end()},t.rbegin=function(e){return e instanceof Array&&(e=a.Vector.wrap(e)),e.rbegin()},t.rend=function(e){return e instanceof Array&&(e=a.Vector.wrap(e)),e.rend()},t.make_reverse_iterator=function(e){return e.reverse()},t.inserter=function(e,t){return new n.InsertIterator(e,t)},t.front_inserter=function(e){return new o.FrontInsertIterator(e)},t.back_inserter=function(e){return e instanceof Array&&(e=a.Vector.wrap(e)),new i.BackInsertIterator(e)}},42830:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.next=t.prev=t.advance=t.distance=t.size=t.empty=void 0;var n=r(1767);function o(e,t){var r;if(0===t)return e;if(e.advance instanceof Function)return e.advance(t);if(t<0){if(!(e.prev instanceof Function))throw new n.InvalidArgument("Error on std.advance(): parametric iterator is not a bi-directional iterator, thus advancing to negative direction is not possible.");r=function(e){return e.prev()},t=-t}else r=function(e){return e.next()};for(;t-- >0;)e=r(e);return e}t.empty=function(e){return e instanceof Array?0!==e.length:e.empty()},t.size=function(e){return e instanceof Array?e.length:e.size()},t.distance=function(e,t){if(e.index instanceof Function){var r,n,o;return n=(r=e).index(),o=t.index(),r.base instanceof Function?n-o:o-n}for(var i=0;!e.equals(t);e=e.next())++i;return i},t.advance=o,t.prev=function(e,t){return(void 0===t&&(t=1),1===t)?e.prev():o(e,-t)},t.next=function(e,t){return(void 0===t&&(t=1),1===t)?e.next():o(e,t)}},71057:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(82102),t),o(r(56465),t),o(r(26357),t),o(r(87166),t),o(r(2982),t),o(r(43684),t),o(r(21030),t),o(r(93138),t),o(r(3611),t),o(r(42830),t)},12721:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ranges=t.experimental=t.base=void 0;var s=i(r(38894));t.base=s;var c=i(r(11077));t.experimental=c;var u=i(r(62242));t.ranges=u,a(r(6970),t),a(r(71057),t),a(r(38043),t),a(r(12159),t),a(r(44001),t),a(r(7526),t),a(r(56458),t),a(r(37028),t)},39105:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7526:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(39999),t),o(r(23208),t),o(r(87701),t),o(r(39105),t)},23208:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.transform_exclusive_scan=t.transform_inclusive_scan=t.exclusive_scan=t.inclusive_scan=t.partial_sum=t.adjacent_difference=t.inner_product=t.accumulate=t.iota=t.lcm=t.gcd=void 0;var o=r(39999);function i(e,t){var r;for(t=t.valueOf();0!==t;)e=(r=n([t,e%t],2))[0],t=r[1];return e}function a(e,t,r,o,i,a){var s,c;if(e.equals(t))return r;for(e=(s=n(u(e,r,i,a),3))[0],r=s[1],c=s[2];!e.equals(t);e=e.next())c=o(c,i(e.value)),r.value=c,r=r.next();return r}function s(e,t,r,o,i,a){if(e.equals(t))return r;var s,c,l=a(e.value);for(e=(s=n(u(e,r,a,o),3))[0],r=s[1],c=s[2];!e.equals(t);e=e.next())c=i(l,c),l=a(e.value),r.value=c,r=r.next();return r}function c(e,t,r){return u(e,t,function(e){return e},r)}function u(e,t,r,n){var o=r(void 0===n?e.value:n);return t.value=o,[e.next(),t.next(),o]}t.gcd=i,t.lcm=function(e,t){return e*t/i(e,t)},t.iota=function(e,t,r){for(;!e.equals(t);e=e.next())e.value=r++},t.accumulate=function(e,t,r,n){for(void 0===n&&(n=o.plus);!e.equals(t);e=e.next())r=n(r,e.value);return r},t.inner_product=function(e,t,r,n,i,a){for(void 0===i&&(i=o.plus),void 0===a&&(a=o.multiplies);!e.equals(t);e=e.next())n=i(n,a(e.value,r.value)),r=r.next();return n},t.adjacent_difference=function(e,t,r,i){var a,s;if(void 0===i&&(i=o.minus),e.equals(t))return r;for(e=(a=n(c(e,r),3))[0],r=a[1],s=a[2];!e.equals(t);e=e.next())r.value=i(e.value,s),s=e.value,r=r.next();return r},t.partial_sum=function(e,t,r,i){var a,s;if(void 0===i&&(i=o.plus),e.equals(t))return r;for(e=(a=n(c(e,r),3))[0],r=a[1],s=a[2];!e.equals(t);e=e.next())s=i(s,e.value),r.value=s,r=r.next();return r},t.inclusive_scan=function(e,t,r,n,i){return void 0===n&&(n=o.plus),a(e,t,r,n,function(e){return e},i)},t.exclusive_scan=function(e,t,r,n,i){return void 0===i&&(i=o.plus),s(e,t,r,n,i,function(e){return e})},t.transform_inclusive_scan=a,t.transform_exclusive_scan=s},39999:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modules=t.divides=t.multiplies=t.negate=t.minus=t.plus=void 0,t.plus=function(e,t){return e.plus instanceof Function?e.plus(t):e+t},t.minus=function(e,t){return e.minus instanceof Function?e.minus(t):e-t},t.negate=function(e){return e.negate instanceof Function?e.negate():-e},t.multiplies=function(e,t){return e.multiplies instanceof Function?e.multiplies(t):e*t},t.divides=function(e,t){return e.divides instanceof Function?e.divides(t):e/t},t.modules=function(e,t){return e.modules instanceof Function?e.modules(t):e%t}},20188:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cyl_bessel_k=t.cyl_bessel_i=t.sph_neumann=t.sph_bessel=t.cyl_neumann=t.cyl_bessel_j=void 0;var n=r(45118),o=r(1767),i=r(66578);function a(e,t){if(t<0&&Math.floor(e)!==e)throw new o.InvalidArgument("Error on std.cyl_bessel_j(): n must be integer when x is negative -> (n = ".concat(e,", x = ").concat(t,")."));if(0===t&&0!==e)throw new o.InvalidArgument("Error on std.cyl_bessel_j(): n must be zero when x is zero -> (n = ".concat(e,", x = ").concat(t,")."));return e===Math.floor(e)&&e<0?Math.pow(-1,e)*c(-e,t):c(e,t)}function s(e,t){if(t<=0)throw new o.InvalidArgument("Error on std.cyl_neumann(): x must be greater than zero -> (x = ".concat(t,")."));return(a(e,t)*Math.cos(e*Math.PI)-a(-e,t))/Math.sin(e*Math.PI)}function c(e,t){return n.MathUtil.sigma(function(r){return Math.pow(-1,r)*Math.pow(t/2,e+2*r)/(n.MathUtil.factorial(r)*(0,i.tgamma)(e+r+1))},0,100)}function u(e,t){if(t<0&&Math.floor(e)!==e)throw new o.InvalidArgument("Error on std.cyl_bessel_i(): n must be integer when x is negative -> (n = ".concat(e,", x = ").concat(t,")."));if(0===t&&0!==e)throw new o.InvalidArgument("Error on std.cyl_bessel_i(): n must be zero when x is zero -> (n = ".concat(e,", x = ").concat(t,")."));return .5===e?Math.sqrt(2/(Math.PI*t))*Math.sinh(t):n.MathUtil.sigma(function(r){return Math.pow(t/2,e+2*r)/(n.MathUtil.factorial(r)*(0,i.tgamma)(e+r+1))},0,100)}t.cyl_bessel_j=a,t.cyl_neumann=s,t.sph_bessel=function(e,t){return Math.sqrt(Math.PI/(2*t))*a(e+.5,t)},t.sph_neumann=function(e,t){return Math.sqrt(Math.PI/(2*t))*s(e+.5,t)},t.cyl_bessel_i=u,t.cyl_bessel_k=function(e,t){if(t<=0)throw new o.InvalidArgument("Error on std.cyl_bessel_k(): requires x > 0 -> (x = ".concat(t,")."));return Math.PI/2*(u(-e,t)-u(e,t))/Math.sin(e*Math.PI)}},3576:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beta=void 0;var n=r(66578);t.beta=function(e,t){return(0,n.tgamma)(e)*(0,n.tgamma)(t)/(0,n.tgamma)(e+t)}},5731:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.comp_ellint_3=t.ellint_3=t.comp_ellint_2=t.ellint_2=t.comp_ellint_1=t.ellint_1=void 0;var n=r(45118),o=r(1767);function i(e,t){return u("ellint_1",e,t,function(t){return 1/c(e,t)})}function a(e,t){return u("ellint_2",e,t,function(t){return c(e,t)})}function s(e,t,r){var n=1/Math.pow(Math.sin(r),2);if(t>n)throw new o.InvalidArgument("Error on std.ellint_3(): must be v < (1 / sin^2(phi)) -> (v = ".concat(t,", 1 / sin^2(phi) = ").concat(n,")."));return u("ellint_3",e,r,function(r){var n=1-t*Math.pow(Math.sin(r),2);return 1/(n*=c(e,r))})}function c(e,t){return Math.sqrt(1-Math.pow(e*Math.sin(t),2))}function u(e,t,r,i){if(Math.abs(t)>1)throw new o.InvalidArgument("Error on std.".concat(e,"(): must be |k| <= 1 -> (k = ").concat(t,")."));var a=n.MathUtil.integral(i,0,r);return r<0?-a:a}t.ellint_1=i,t.comp_ellint_1=function(e){return i(e,Math.PI/2)},t.ellint_2=a,t.comp_ellint_2=function(e){return a(e,Math.PI/2)},t.ellint_3=s,t.comp_ellint_3=function(e,t){return s(e,t,Math.PI/2)}},13989:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expint=void 0;var n=r(45118);t.expint=function(e){var t,r,u,l,p,f;return 0===e?-1/0:e<0?-(u=20/47*Math.pow(r=t=-e,Math.sqrt(31/26)),l=1/(1+Math.pow(r,1.5))+c*u/(1+u),p=a+(1-a)*Math.pow(Math.E,-t/(1-a)),(p=Math.pow(Math.E,-t)/p)*(Math.log(1+a/t-(1-a)/Math.pow(l+s*t,2))/Math.log(Math.E))):o+Math.log(Math.abs(e))/Math.log(Math.E)+n.MathUtil.sigma(function(t){return Math.pow(e,t)/(t*n.MathUtil.factorial(t))},1,i)};var o=.5772156649015329,i=150,a=.5614594835668851,s=Math.sqrt(2*.43854051643311487/.8076822154465769),c=.43854051643311487*(.31523675168719334-3.368756901401311+12)/(3.4856507739670834*s)},66578:function(e,t){"use strict";function r(e){if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*r(1-e));for(var t=n[0],i=(e-=1)+o+.5,a=1;a (n = ".concat(e,")."));return function e(t,r,n){if(n.length>t)return n[t];var o=e(t-1,r,n),i=e(t-2,r,n),a=r*o-(t-1)*i;return a*=2,n[t]=a,a}(e,t,[1,2*t])}},87701:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(3576),t),o(r(66578),t),o(r(20188),t),o(r(5731),t),o(r(13989),t),o(r(42110),t),o(r(78625),t),o(r(30263),t),o(r(19863),t)},30263:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assoc_laguerre=t.laguerre=void 0;var n=r(1767);function o(e,t,r){if((e=Math.floor(e))<0||(t=Math.floor(t))<0)throw new n.InvalidArgument("Error on std.assoc_laguerre(): both n and m must be unsigned integer -> (n = ".concat(e,", m = ").concat(t,")."));var o=[1,-r+t+1];return function e(t,r,n,o){if(o.length>t)return o[t];var i=e(t-1,r,n,o),a=e(t-2,r,n,o),s=(2*t-1+r-n)*i-(t+r-1)*a;return s/=t,o[t]=s,s}(e,t,r,o)}t.laguerre=function(e,t){return o(e,0,t)},t.assoc_laguerre=o},78625:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assoc_legendre=t.legendre=void 0;var n=r(1767);function o(e,t,r){if((e=Math.floor(e))<0||(t=Math.floor(t))<0)throw new n.InvalidArgument("Error on std.assoc_legendre(): both n and m must be unsigned integer -> (n = ".concat(e,", m = ").concat(t,")."));if(Math.abs(r)>1)throw new n.InvalidArgument("Error on std.assoc_legendre(): must be |x| <= 1 -> (x = ".concat(r,")."));var o=[[1,r]];o.length=t+1;for(var i=1;it)return n[t];var o=e(t-1,r,n),i=e(t-2,r,n),a=(2*t-1)*r*o-(t-1)*i;return a/=t,n[t]=a,a}(t,n,o[0]);if(o[r].length>t&&void 0!==o[r][t])return o[r][t];var i=((t-r+1)*(t-r+2)*e(t+1,r-1,n,o)-(t+r-1)*(t+r)*e(t-1,r-1,n,o))/(2*t+1);return i/=Math.sqrt(1-n*n),o[r][t]=i,i}(e,t,r,o)}t.legendre=function(e,t){return o(e,0,t)},t.assoc_legendre=o},19863:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.riemann_zeta=void 0;var n=r(45118),o=r(66578);t.riemann_zeta=function e(t){return t<0?Math.pow(2,t)*Math.pow(Math.PI,t-1)*Math.sin(Math.PI*t/2)*(0,o.tgamma)(1-t)*e(1-t):0===t?-.5:t<1?n.MathUtil.sigma(function(e){return Math.pow(-1,e-1)*Math.pow(e,-t)},1,i)/(1-Math.pow(2,1-t)):1===t?1/0:n.MathUtil.sigma(function(e){return Math.pow(e,-t)},1,i)};var i=1e5},54633:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.binary_search=t.equal_range=t.upper_bound=t.lower_bound=void 0;var a=i(r(38577)),s=r(3611),c=r(17393);t.lower_bound=function(e,t,r){return void 0===r&&(r=c.less),a.lower_bound((0,s.begin)(e),(0,s.end)(e),t,r)},t.upper_bound=function(e,t,r){return void 0===r&&(r=c.less),a.upper_bound((0,s.begin)(e),(0,s.end)(e),t,r)},t.equal_range=function(e,t,r){return void 0===r&&(r=c.less),a.equal_range((0,s.begin)(e),(0,s.end)(e),t,r)},t.binary_search=function(e,t,r){return void 0===r&&(r=c.less),a.binary_search((0,s.begin)(e),(0,s.end)(e),t,r)}},23979:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sort_heap=t.is_heap_until=t.is_heap=t.pop_heap=t.push_heap=t.make_heap=void 0;var a=i(r(88139)),s=r(3611),c=r(17393);t.make_heap=function(e,t){return void 0===t&&(t=c.less),a.make_heap((0,s.begin)(e),(0,s.end)(e),t)},t.push_heap=function(e,t){return void 0===t&&(t=c.less),a.push_heap((0,s.begin)(e),(0,s.end)(e),t)},t.pop_heap=function(e,t){return void 0===t&&(t=c.less),a.pop_heap((0,s.begin)(e),(0,s.end)(e),t)},t.is_heap=function(e,t){return void 0===t&&(t=c.less),a.is_heap((0,s.begin)(e),(0,s.end)(e),t)},t.is_heap_until=function(e,t){return void 0===t&&(t=c.less),a.is_heap_until((0,s.begin)(e),(0,s.end)(e),t)},t.sort_heap=function(e,t){return void 0===t&&(t=c.less),a.sort_heap((0,s.begin)(e),(0,s.end)(e),t)}},84197:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(54633),t),o(r(23979),t),o(r(17557),t),o(r(31666),t),o(r(51752),t),o(r(83292),t),o(r(14954),t),o(r(3338),t),o(r(17302),t)},17557:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.count_if=t.count=t.mismatch=t.search_n=t.search=t.adjacent_find=t.find_first_of=t.find_end=t.find_if_not=t.find_if=t.find=t.lexicographical_compare=t.equal=t.none_of=t.any_of=t.all_of=t.for_each_n=t.for_each=void 0;var a=i(r(95114)),s=r(46544),c=r(3611),u=r(42830),l=r(17393);t.for_each=function(e,t){return a.for_each((0,c.begin)(e),(0,c.end)(e),t)},t.for_each_n=function(e,t,r){return a.for_each_n((0,c.begin)(e),t,r)},t.all_of=function(e,t){return a.all_of((0,c.begin)(e),(0,c.end)(e),t)},t.any_of=function(e,t){return a.any_of((0,c.begin)(e),(0,c.end)(e),t)},t.none_of=function(e,t){return a.none_of((0,c.begin)(e),(0,c.end)(e),t)},t.equal=function(e,t,r){return void 0===r&&(r=l.equal_to),(0,u.size)(e)===(0,u.size)(t)&&a.equal((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),r)},t.lexicographical_compare=function(e,t,r){return void 0===r&&(r=l.less),a.lexicographical_compare((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),(0,c.end)(t),r)},t.find=function(e,t){return a.find((0,c.begin)(e),(0,c.end)(e),t)},t.find_if=function(e,t){return a.find_if((0,c.begin)(e),(0,c.end)(e),t)},t.find_if_not=function(e,t){return a.find_if_not((0,c.begin)(e),(0,c.end)(e),t)},t.find_end=function(e,t,r){return void 0===r&&(r=l.equal_to),a.find_end((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),(0,c.end)(t),r)},t.find_first_of=function(e,t,r){return void 0===r&&(r=l.equal_to),a.find_first_of((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),(0,c.end)(t),r)},t.adjacent_find=function(e,t){return void 0===t&&(t=l.equal_to),a.adjacent_find((0,c.begin)(e),(0,c.end)(e),t)},t.search=function(e,t,r){return void 0===r&&(r=l.equal_to),a.search((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),(0,c.end)(t),r)},t.search_n=function(e,t,r,n){return void 0===n&&(n=l.equal_to),a.search_n((0,c.begin)(e),(0,c.end)(e),t,r,n)},t.mismatch=function(e,t,r){if(void 0===r&&(r=l.equal_to),(0,u.size)(e)===(0,u.size)(t))return a.mismatch((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),r);for(var n=Math.min((0,u.size)(e),(0,u.size)(t)),o=(0,c.begin)(e),i=(0,c.begin)(t),p=0;p0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionVariable=void 0;var a=r(98562),s=r(67107),c=function(){function e(){this.resolvers_=new a.List}return e.prototype.wait=function(e){return n(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:if(e)return[3,2];return[4,this._Wait()];case 1:return[2,t.sent()];case 2:return[4,e()];case 3:if(t.sent())return[3,5];return[4,this._Wait()];case 4:return t.sent(),[3,2];case 5:return[2]}})})},e.prototype.wait_for=function(e,t){var r=new Date(Date.now()+e);return this.wait_until(r,t)},e.prototype.wait_until=function(e,t){return n(this,void 0,void 0,function(){return o(this,function(r){switch(r.label){case 0:if(t)return[3,2];return[4,this._Wait_until(e)];case 1:case 5:return[2,r.sent()];case 2:return[4,t()];case 3:if(r.sent())return[3,7];return[4,this._Wait_until(e)];case 4:if(r.sent())return[3,6];return[4,t()];case 6:return[3,2];case 7:return[2,!0]}})})},e.prototype._Wait=function(){var e=this;return new Promise(function(t){e.resolvers_.push_back({handler:t,lockType:0})})},e.prototype._Wait_until=function(e){var t=this;return new Promise(function(r){var n=t.resolvers_.insert(t.resolvers_.end(),{handler:r,lockType:1});(0,s.sleep_until)(e).then(function(){!0!==n.erased_&&(t.resolvers_.erase(n),r(!1))})})},e.prototype.notify_one=function(){return n(this,void 0,void 0,function(){var e;return o(this,function(t){return this.resolvers_.empty()||(e=this.resolvers_.begin(),this.resolvers_.erase(e),0===e.value.lockType?e.value.handler():e.value.handler(!0)),[2]})})},e.prototype.notify_all=function(){return n(this,void 0,void 0,function(){var e,t,r,n,a,s;return o(this,function(o){if(this.resolvers_.empty())return[2];e=this.resolvers_.toJSON(),this.resolvers_.clear();try{for(r=(t=i(e)).next();!r.done;r=t.next())n=r.value,0===n.lockType?n.handler():n.handler(!0)}catch(e){a={error:e}}finally{try{r&&!r.done&&(s=t.return)&&s.call(t)}finally{if(a)throw a.error}}return[2]})})},e}();t.ConditionVariable=c},63250:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;var u=r(98562),l=r(1767),p=r(68661),f=r(67107),d=function(){function e(e){this.queue_=new u.List,this.acquiring_=0,this.max_=e}return e.prototype.max=function(){return this.max_},e.prototype.acquire=function(){var e=this;return new Promise(function(t){e.acquiring_ (n = ".concat(e,")."));if(e>this.max_)throw new p.OutOfRange("Error on std.Semaphore.release(): parametric n is greater than max -> (n = ".concat(e,", max = ").concat(this.max_,")."));if(e>this.acquiring_)throw new p.OutOfRange("Error on std.Semaphore.release(): parametric n is greater than acquiring -> (n = ".concat(e,", acquiring = ").concat(this.acquiring_,")."));for(t=[];!1===this.queue_.empty()&&t.length0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.SharedTimedMutex=void 0;var s=r(98562),c=r(1767),u=r(67107),l=function(){function e(e){void 0===e&&(e=null),this.source_=null!==e?e:this,this.queue_=new s.List,this.writing_=0,this.reading_=0}return e.prototype._Current_access_type=function(){return this.queue_.empty()?null:this.queue_.front().accessType},e.prototype.lock=function(){var e=this;return new Promise(function(t){var r={handler:0==e.writing_++&&0===e.reading_?null:t,accessType:0,lockType:0};e.queue_.push_back(r),null===r.handler&&t()})},e.prototype.try_lock=function(){return o(this,void 0,void 0,function(){return i(this,function(e){return 0!==this.writing_||0!==this.reading_?[2,!1]:(this.queue_.push_back({handler:null,accessType:0,lockType:1}),++this.writing_,[2,!0])})})},e.prototype.try_lock_for=function(e){var t=this;return new Promise(function(r){var n=t.queue_.insert(t.queue_.end(),{handler:0==t.writing_++&&0===t.reading_?null:r,accessType:0,lockType:1});null===n.value.handler?r(!0):(0,u.sleep_for)(e).then(function(){null!==n.value.handler&&(--t.writing_,t._Cancel(n))})})},e.prototype.try_lock_until=function(e){return o(this,void 0,void 0,function(){var t,r;return i(this,function(n){switch(n.label){case 0:return t=new Date,r=e.getTime()-t.getTime(),[4,this.try_lock_for(r)];case 1:return[2,n.sent()]}})})},e.prototype.unlock=function(){return o(this,void 0,void 0,function(){return i(this,function(e){if(0!==this._Current_access_type())throw new c.InvalidArgument("Error on std.".concat(this.source_.constructor.name,".unlock(): this mutex is free on the unique lock."));return--this.writing_,this.queue_.pop_front(),this._Release(),[2]})})},e.prototype.lock_shared=function(){var e=this;return new Promise(function(t){var r={handler:0===e.writing_?null:t,accessType:1,lockType:0};e.queue_.push_back(r),++e.reading_,null===r.handler&&t()})},e.prototype.try_lock_shared=function(){return o(this,void 0,void 0,function(){return i(this,function(e){return 0!==this.writing_?[2,!1]:(++this.reading_,this.queue_.push_back({handler:null,accessType:1,lockType:1}),[2,!0])})})},e.prototype.try_lock_shared_for=function(e){var t=this;return new Promise(function(r){var n=t.queue_.insert(t.queue_.end(),{handler:0===t.writing_?null:r,accessType:1,lockType:1});++t.reading_,null===n.value.handler?r(!0):(0,u.sleep_for)(e).then(function(){null!==n.value.handler&&(--t.reading_,t._Cancel(n))})})},e.prototype.try_lock_shared_until=function(e){return o(this,void 0,void 0,function(){var t,r;return i(this,function(n){switch(n.label){case 0:return t=new Date,r=e.getTime()-t.getTime(),[4,this.try_lock_shared_for(r)];case 1:return[2,n.sent()]}})})},e.prototype.unlock_shared=function(){return o(this,void 0,void 0,function(){return i(this,function(e){if(1!==this._Current_access_type())throw new c.InvalidArgument("Error on std.".concat(this.source_.constructor.name,".unlock_shared(): this mutex is free on the shared lock."));return--this.reading_,this.queue_.pop_front(),this._Release(),[2]})})},e.prototype._Release=function(){var e,t,r,o,i=this._Current_access_type(),s=[];try{for(var c=a(this.queue_),u=c.next();!u.done;u=c.next()){var l=u.value;if(l.accessType!==i||(null!==l.handler&&(s.push(n({},l)),l.handler=null),0===l.accessType))break}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}try{for(var p=a(s),f=p.next();!f.done;f=p.next()){var l=f.value;0===l.lockType?l.handler():l.handler(!0)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}},e.prototype._Cancel=function(e){this.queue_.erase(e);var t=e.value.handler;e.value.handler=null;var r=e.prev();!1===r.equals(this.queue_.end())&&null===r.value.handler&&this._Release(),t(!1)},e}();t.SharedTimedMutex=l},47233:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o=this.expired_at_&&(this.expired_at_=Date.now()+this.interval_,this.value_=this.closure_.apply(this,n([],r(e),!1))),this.value_},e}();t.TimedSingleton=o},32840:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueLock=void 0;var n,o=r(15541),i=function(){};t.UniqueLock=i,(n=i||(t.UniqueLock=i={})).lock=function(e,t){return o.SafeLock.lock(function(){return e.lock()},function(){return e.unlock()},t)},n.try_lock=function(e,t){return o.SafeLock.try_lock(function(){return e.try_lock()},function(){return e.unlock()},t)},n.try_lock_for=function(e,t,r){return o.SafeLock.try_lock(function(){return e.try_lock_for(t)},function(){return e.unlock()},r)},n.try_lock_until=function(e,t,r){return o.SafeLock.try_lock(function(){return e.try_lock_until(t)},function(){return e.unlock()},r)}},62690:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function i(e){return new Promise(function(t){setTimeout(t,e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.try_lock=t.lock=t.sleep_until=t.sleep_for=void 0,t.sleep_for=i,t.sleep_until=function(e){var t=new Date;return i(e.getTime()-t.getTime())},t.lock=function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionFactory=void 0;var s=a(r(55423)),c=r(46657);(n=o||(t.ExpressionFactory=o={})).number=function(e){return e<0?s.default.factory.createPrefixUnaryExpression(s.default.SyntaxKind.MinusToken,s.default.factory.createNumericLiteral(Math.abs(e))):s.default.factory.createNumericLiteral(e)},n.bigint=function(e){return s.default.factory.createCallExpression(s.default.factory.createIdentifier("BigInt"),void 0,[s.default.factory.createIdentifier(e.toString())])},n.isRequired=function(e){return s.default.factory.createStrictInequality(s.default.factory.createIdentifier("undefined"),e)},n.isArray=function(e){return s.default.factory.createCallExpression(s.default.factory.createIdentifier("Array.isArray"),void 0,[e])},n.isObject=function(e){return function(t){var r=[s.default.factory.createStrictEquality(s.default.factory.createStringLiteral("object"),s.default.factory.createTypeOfExpression(t))];return!0===e.checkNull&&r.push(s.default.factory.createStrictInequality(s.default.factory.createNull(),t)),!0===e.checkArray&&r.push(s.default.factory.createStrictEquality(s.default.factory.createFalse(),s.default.factory.createCallExpression(s.default.factory.createIdentifier("Array.isArray"),void 0,[t]))),1===r.length?r[0]:r.reduce(function(e,t){return s.default.factory.createLogicalAnd(e,t)})}},n.isInstanceOf=function(e){return function(t){return s.default.factory.createBinaryExpression(t,s.default.factory.createToken(s.default.SyntaxKind.InstanceOfKeyword),s.default.factory.createIdentifier(e))}},n.coalesce=function(e){return function(t){return s.default.factory.createBinaryExpression(e,s.default.factory.createToken(s.default.SyntaxKind.QuestionQuestionToken),t)}},n.currying=function(e){return function(t){if(0===t.length)return s.default.factory.createCallExpression(e,void 0,void 0);var r,n,o=s.default.factory.createCallExpression(e,void 0,[t[0]]);try{for(var a=i(t.slice(1)),c=a.next();!c.done;c=a.next()){var u=c.value;o=s.default.factory.createCallExpression(o,void 0,[u])}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}},n.selfCall=function(e){return s.default.isCallExpression(e)?e:s.default.factory.createCallExpression(s.default.factory.createParenthesizedExpression(s.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,e)),void 0,void 0)},n.getEscapedText=function(e){return function(t){return e.printNode(s.default.EmitHint.Expression,t,t.getSourceFile())}},n.transpile=function(e){return function(t){var r=s.default.createSourceFile("".concat(c.RandomGenerator.uuid(),".ts"),t,s.default.ScriptTarget.ESNext,!0,s.default.ScriptKind.TS).statements[0];if(void 0===r)throw ReferenceError("Error on ExpressionFactory.transpile(): no statement exists.");if(!s.default.isExpressionStatement(r))throw TypeError("Error on ExpressionFactory.transpile(): statement is not an expression statement.");return function(t){var n=function(r){return s.default.isIdentifier(r)&&"$input"===r.text?t:s.default.visitEachChild(s.default.factory.cloneNode(r),n,e)};return n(r.expression)}}}},61387:function(e,t,r){"use strict";var n,o,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierFactory=void 0;var a=i(r(55423)),s=r(5724),c=r(12301);(n=o||(t.IdentifierFactory=o={})).identifier=function(e){return s.Escaper.variable(e)?a.default.factory.createIdentifier(e):a.default.factory.createStringLiteral(e)},n.access=function(e){return function(t){var r=n.identifier(t);return a.default.isStringLiteral(r)?a.default.factory.createElementAccessExpression(e,r):a.default.factory.createPropertyAccessExpression(e,r)}},n.getName=function(e){var t,r=null===(t=e.escapedText)||void 0===t?void 0:t.toString();return"string"==typeof r?r:a.default.isPropertyAccessExpression(e)?"".concat(n.getName(e.expression),".").concat(e.name.escapedText.toString()):a.default.isElementAccessExpression(e)?"".concat(n.getName(e.expression),"[").concat(n.getName(e.argumentExpression),"]"):"uknown"},n.postfix=function(e){return s.Escaper.variable(e)?'".'.concat(e,'"'):'"['.concat(JSON.stringify(e).split('"').join('\\"'),']"')},n.parameter=function(e,t,r){return void 0!==a.default.getDecorators?a.default.factory.createParameterDeclaration(void 0,void 0,e,(null==r?void 0:r.kind)===a.default.SyntaxKind.QuestionToken?a.default.factory.createToken(a.default.SyntaxKind.QuestionToken):void 0,null!=t?t:c.TypeFactory.keyword("any"),r&&r.kind!==a.default.SyntaxKind.QuestionToken?r:void 0):a.default.factory.createParameterDeclaration(void 0,void 0,void 0,e,(null==r?void 0:r.kind)===a.default.SyntaxKind.QuestionToken?a.default.factory.createToken(a.default.SyntaxKind.QuestionToken):void 0,t,r&&r.kind!==a.default.SyntaxKind.QuestionToken?r:void 0)}},97846:function(e,t,r){"use strict";var n,o,i,a,s,c,u,l=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralFactory=void 0;var f=p(r(55423)),d=r(73906),h=r(61387);(n=u||(t.LiteralFactory=u={})).generate=function(e){if(null===e)return f.default.factory.createNull();if(f.default.isIdentifier(e))return e;if(e instanceof Array)return i(e);if("object"==typeof e)return o(e);if("string"==typeof e)return c(e);if("boolean"==typeof e)return a(e);if("number"==typeof e)return a(e);else if("bigint"==typeof e)return s(e);else if("function"==typeof e)return f.default.factory.createIdentifier("undefined");else throw TypeError("Error on LiteralFactory.generate(): unknown type.")},o=function(e){return f.default.factory.createObjectLiteralExpression(Object.entries(e).filter(function(e){return void 0!==e[1]}).map(function(e){var t=l(e,2),r=t[0],o=t[1];return f.default.factory.createPropertyAssignment(h.IdentifierFactory.identifier(r),n.generate(o))}),!0)},i=function(e){return f.default.factory.createArrayLiteralExpression(e.map(n.generate),!0)},a=function(e){return f.default.factory.createIdentifier(e.toString())},s=function(e){return d.ExpressionFactory.bigint(e)},c=function(e){return f.default.factory.createStringLiteral(e)}},6152:function(e,t,r){"use strict";var n,o,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StatementFactory=void 0;var a=i(r(55423)),s=r(12301);(n=o||(t.StatementFactory=o={})).mut=function(e,t){return a.default.factory.createVariableStatement(void 0,a.default.factory.createVariableDeclarationList([a.default.factory.createVariableDeclaration(e,void 0,void 0===t?s.TypeFactory.keyword("any"):void 0,t)],a.default.NodeFlags.Let))},n.constant=function(e,t){return a.default.factory.createVariableStatement(void 0,a.default.factory.createVariableDeclarationList([a.default.factory.createVariableDeclaration(e,void 0,void 0,t)],a.default.NodeFlags.Const))},n.entry=function(e){return function(t){return a.default.factory.createVariableDeclarationList([a.default.factory.createVariableDeclaration(a.default.factory.createArrayBindingPattern([a.default.factory.createBindingElement(void 0,void 0,a.default.factory.createIdentifier(e),void 0),a.default.factory.createBindingElement(void 0,void 0,a.default.factory.createIdentifier(t),void 0)]),void 0,void 0,void 0)],a.default.NodeFlags.Const)}},n.transpile=function(e){return a.default.factory.createExpressionStatement(a.default.factory.createIdentifier(a.default.transpile(e)))},n.block=function(e){return a.default.factory.createBlock([a.default.factory.createExpressionStatement(e)],!0)}},12301:function(e,t,r){"use strict";var n,o,i,a,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeFactory=void 0;var c=s(r(55423));(n=a||(t.TypeFactory=a={})).isFunction=function(e){return null!==n.getFunction(e)},n.getFunction=function(e){var t,r,n=null===(r=null===(t=e.symbol)||void 0===t?void 0:t.declarations)||void 0===r?void 0:r[0];return void 0===n?null:c.default.isFunctionLike(n)?n:(c.default.isPropertyAssignment(n)||c.default.isPropertyDeclaration(n))&&c.default.isFunctionLike(n.initializer)?n.initializer:null},n.getReturnType=function(e){return function(t){return function(r){var n=t.getProperty(r);if(!n||!n.valueDeclaration)return null;var o=e.getTypeOfSymbolAtLocation(n,n.valueDeclaration),i=e.getSignaturesOfType(o,c.default.SignatureKind.Call)[0];return i?i.getReturnType():null}}},n.getFullName=function(e){return function(t,r){if(null!=r||(r=null!==(o=t.aliasSymbol)&&void 0!==o?o:t.getSymbol()),void 0===r)return e.typeToString(t);if(void 0===t.aliasSymbol&&t.isUnionOrIntersection()){var o,a=t.isIntersection()?" & ":" | ";return t.types.map(function(t){return n.getFullName(e)(t)}).join(a)}var s=i(r),c=t.aliasSymbol?t.aliasTypeArguments||[]:e.getTypeArguments(t);return c.length?"Promise"===s?n.getFullName(e)(c[0]):"".concat(s,"<").concat(c.map(function(t){return n.getFullName(e)(t)}).join(", "),">"):s}},o=function(e){return function(t){return c.default.isModuleBlock(e)?o(e.parent.parent)("".concat(e.parent.name.getFullText().trim(),".").concat(t)):t}},i=function(e){var t,r,n=null===(r=null===(t=e.getDeclarations())||void 0===t?void 0:t[0])||void 0===r?void 0:r.parent;return n?o(n)(e.escapedName.toString()):"__type"},n.keyword=function(e){return c.default.factory.createKeywordTypeNode("void"===e?c.default.SyntaxKind.VoidKeyword:"any"===e?c.default.SyntaxKind.AnyKeyword:"unknown"===e?c.default.SyntaxKind.UnknownKeyword:"boolean"===e?c.default.SyntaxKind.BooleanKeyword:"number"===e?c.default.SyntaxKind.NumberKeyword:"bigint"===e?c.default.SyntaxKind.BigIntKeyword:c.default.SyntaxKind.StringKeyword)}},97420:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatCheatSheet=void 0;var r=function(e){return"".concat(e,".test($input)")};t.FormatCheatSheet={byte:r("/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm"),password:"true",regex:"(() => { try { new RegExp($input); return true; } catch { return false; } })()",uuid:r("/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i"),email:r("/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i"),hostname:r("/^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i"),"idn-email":r('/^(([^<>()[\\]\\.,;:\\s@\\"]+(\\.[^<>()[\\]\\.,;:\\s@\\"]+)*)|(\\".+\\"))@(([^<>()[\\]\\.,;:\\s@\\"]+\\.)+[^<>()[\\]\\.,;:\\s@\\"]{2,})$/i'),"idn-hostname":r("/^([a-z0-9\\u00a1-\\uffff0-9]+(-[a-z0-9\\u00a1-\\uffff0-9]+)*\\.)+[a-z\\u00a1-\\uffff]{2,}$/i"),iri:r('/^[A-Za-z][\\d+-.A-Za-z]*:[^\\u0000-\\u0020"<>\\\\^`{|}]*$/u'),"iri-reference":r('/^[A-Za-z][\\d+-.A-Za-z]*:[^\\u0000-\\u0020"<>\\\\^`{|}]*$/u'),ipv4:r("/^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/"),ipv6:r("/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))$/i"),uri:"".concat(r("/\\/|:/")," && ").concat(r("/^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i")),"uri-reference":r("/^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'\"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i"),"uri-template":r("/^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i"),url:r("/^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu"),"date-time":r("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T|\\s)([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$/i"),date:r("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/"),time:r("/^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$/i"),duration:r("/^P(?!$)((\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?|(\\d+W)?)$/"),"json-pointer":r("/^(?:\\/(?:[^~/]|~0|~1)*)*$/"),"relative-json-pointer":r("/^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/")}},5724:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Escaper=void 0,(r=n||(t.Escaper=n={})).variable=function(e){return!1===r.reserved(e)&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(e)},r.reserved=function(e){return o.has(e)};var r,n,o=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","module","new","null","package","public","private","protected","return","super","switch","this","throw","true","try","typeof","var","void","while","with"])},92989:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.relativeJsonPointer=t.jsonPointer=t.duration=t.time=t.date=t.datetime=t.url=t.uriTemplate=t.uriReference=t.uri=t.ipv6=t.ipv4=t.iriReference=t.iri=t.idnHostname=t.idnEmail=t.hostname=t.email=t.uuid=t.regex=t.password=t.byte=t.pattern=t.length=t.pick=t.array=t.string=t.number=t.bigint=t.integer=t.boolean=void 0;var i=o(r(14419)),a="abcdefghijklmnopqrstuvwxyz";t.boolean=function(){return .5>Math.random()},t.integer=function(e,t){return null!=e||(e=0),null!=t||(t=100),Math.floor(Math.random()*(t-e+1))+e},t.bigint=function(e,r){return BigInt((0,t.integer)(Number(null!=e?e:BigInt(0)),Number(null!=r?r:BigInt(100))))},t.number=function(e,t){return null!=e||(e=0),null!=t||(t=100),Math.random()*(t-e)+e},t.string=function(e){return Array(null!=e?e:(0,t.integer)(5,10)).fill(0).map(function(){return a[(0,t.integer)(0,a.length-1)]}).join("")},t.array=function(e,r,n){if(null!=r||(r=(0,t.length)()),null!=n||(n=!1),!1===n)return Array(null!=r?r:(0,t.length)()).fill(0).map(function(t,r){return e(r)});for(var o=new Set;o.sizet=>r=>{let n=e.get(t);if(n)return n;let o=r();return e.set(t,o),o},function(e){e.visit=t=>r=>{let n=new Set,o=i=>{if(t(i),e.isReference(i)){let e=i.$ref.split("#/components/schemas/").pop();if(!0===n.has(e))return;n.add(e);let t=r.schemas?.[e];void 0!==t&&o(t)}else if(e.isOneOf(i))i.oneOf.forEach(o);else if(e.isObject(i)){for(let e of Object.values(i.properties??{}))o(e);"object"==typeof i.additionalProperties&&null!==i.additionalProperties&&o(i.additionalProperties)}else e.isArray(i)?o(i.items):e.isTuple(i)&&((i.prefixItems??[]).forEach(o),"object"==typeof i.additionalItems&&null!==i.additionalItems&&o(i.additionalItems))};return o},e.isNull=e=>"null"===e.type,e.isUnknown=t=>void 0===t.type&&!e.isConstant(t)&&!e.isOneOf(t)&&!e.isReference(t),e.isConstant=e=>void 0!==e.const,e.isBoolean=e=>"boolean"===e.type,e.isInteger=e=>"integer"===e.type,e.isNumber=e=>"number"===e.type,e.isString=e=>"string"===e.type,e.isArray=e=>"array"===e.type&&void 0!==e.items,e.isTuple=e=>"array"===e.type&&void 0!==e.prefixItems,e.isObject=e=>"object"===e.type,e.isReference=e=>void 0!==e.$ref,e.isOneOf=e=>void 0!==e.oneOf,e.covers=e=>t(e)(new Map);let t=e=>t=>(o,i)=>{let a=t.get(o)?.get(i);if(void 0!==a)return a;let s=n.take(t)(o)(()=>new Map);s.set(i,!0);let c=r(e)(t)(o,i);return s.set(i,c),c},r=t=>r=>(n,i)=>{if(n===i||e.isReference(n)&&e.isReference(i)&&n.$ref===i.$ref)return!0;let a=p(t)(n),s=p(t)(i);return!!a.some(t=>e.isUnknown(t))||!s.some(t=>e.isUnknown(t))&&s.every(e=>a.some(n=>o(t)(r)(n,e)))},o=t=>r=>(n,o)=>{if(n===o||e.isUnknown(n))return!0;if(e.isUnknown(o));else if(e.isNull(n))return e.isNull(o);else if(e.isConstant(n))return e.isConstant(o)&&n.const===o.const;else if(e.isBoolean(n))return e.isBoolean(o)||e.isConstant(o)&&"boolean"==typeof o.const;else if(e.isInteger(n))return(e.isInteger(o)||e.isConstant(o))&&s(n,o);else if(e.isNumber(n))return(e.isConstant(o)||e.isInteger(o)||e.isNumber(o))&&c(n,o);else if(e.isString(n))return(e.isConstant(o)||e.isString(o))&&u(n,o);else if(e.isArray(n))return(e.isArray(o)||e.isTuple(o))&&i(t)(r)(n,o);else if(e.isObject(n))return e.isObject(o)&&a(t)(r)(n,o);else if(e.isReference(n))return e.isReference(o)&&n.$ref===o.$ref;return!1},i=r=>n=>(o,i)=>e.isTuple(i)?i.prefixItems.every(e=>t(r)(n)(o.items,e))&&(void 0===i.additionalItems||"object"==typeof i.additionalItems&&t(r)(n)(o.items,i.additionalItems)):(void 0===o.minItems||void 0!==i.minItems&&o.minItems<=i.minItems)&&(void 0===o.maxItems||void 0!==i.maxItems&&o.maxItems>=i.maxItems)&&t(r)(n)(o.items,i.items),a=e=>r=>(n,o)=>(!!n.additionalProperties||!o.additionalProperties)&&(!n.additionalProperties||!o.additionalProperties||("object"!=typeof n.additionalProperties||!0!==o.additionalProperties)&&("object"!=typeof n.additionalProperties||"object"!=typeof o.additionalProperties||!!t(e)(r)(n.additionalProperties,o.additionalProperties)))&&Object.entries(o.properties??{}).every(([i,a])=>{let s=n.properties?.[i];return void 0!==s&&((n.required?.includes(i)??!1)!==!0||(o.required?.includes(i)??!1)!==!1)&&t(e)(r)(s,a)}),s=(t,r)=>e.isConstant(r)?"number"==typeof r.const&&Number.isInteger(r.const):[t.type===r.type,void 0===t.minimum||void 0!==r.minimum&&t.minimum<=r.minimum,void 0===t.maximum||void 0!==r.maximum&&t.maximum>=r.maximum,!0!==t.exclusiveMinimum||void 0===t.minimum||void 0!==r.minimum&&(!0===r.exclusiveMinimum||t.minimumr.maximum),void 0===t.multipleOf||void 0!==r.multipleOf&&r.multipleOf/t.multipleOf===Math.floor(r.multipleOf/t.multipleOf)].every(e=>e),c=(t,r)=>e.isConstant(r)?"number"==typeof r.const:[t.type===r.type||"number"===t.type&&"integer"===r.type,void 0===t.minimum||void 0!==r.minimum&&t.minimum<=r.minimum,void 0===t.maximum||void 0!==r.maximum&&t.maximum>=r.maximum,!0!==t.exclusiveMinimum||void 0===t.minimum||void 0!==r.minimum&&(!0===r.exclusiveMinimum||t.minimumr.maximum),void 0===t.multipleOf||void 0!==r.multipleOf&&r.multipleOf/t.multipleOf===Math.floor(r.multipleOf/t.multipleOf)].every(e=>e),u=(t,r)=>e.isConstant(r)?"string"==typeof r.const:[void 0===t.format||void 0!==r.format&&l(t.format,r.format),void 0===t.pattern||t.pattern===r.pattern,void 0===t.minLength||void 0!==r.minLength&&t.minLength<=r.minLength,void 0===t.maxLength||void 0!==r.maxLength&&t.maxLength>=r.maxLength].every(e=>e),l=(e,t)=>e===t||"idn-email"===e&&"email"===t||"idn-hostname"===e&&"hostname"===t||["uri","iri"].includes(e)&&"url"===t||"iri"===e&&"uri"===t||"iri-reference"===e&&"uri-reference"===t,p=t=>r=>(r=f(t)(r),e.isOneOf(r))?r.oneOf.map(p(t)).flat():[r],f=t=>r=>e.isReference(r)?f(t)(t.schemas[r.$ref.replace("#/components/schemas/","")]):r}(o||(o={})),(P=i||(i={})).visit=(e,t)=>{if(t(e),P.isOneOf(e))e.oneOf.forEach(e=>P.visit(e,t));else if(P.isObject(e)){for(let[r,n]of Object.entries(e.properties??{}))P.visit(n,t);"object"==typeof e.additionalProperties&&null!==e.additionalProperties&&P.visit(e.additionalProperties,t)}else P.isArray(e)&&P.visit(e.items,t)},P.isOneOf=e=>void 0!==e.oneOf,P.isObject=e=>"object"===e.type,P.isArray=e=>"array"===e.type,P.isBoolean=e=>"boolean"===e.type,P.isInteger=e=>"integer"===e.type,P.isNumber=e=>"number"===e.type,P.isString=e=>"string"===e.type,P.isNullOnly=e=>"null"===e.type,P.isNullable=e=>!P.isUnknown(e)&&(P.isNullOnly(e)||(P.isOneOf(e)?e.oneOf.some(P.isNullable):!0===e.nullable)),P.isUnknown=e=>!P.isOneOf(e)&&void 0===e.type,(a||(a={})).is=e=>"object"==typeof e&&null!==e&&"string"==typeof e.openapi&&e.openapi.startsWith("3.0"),(s||(s={})).is=e=>"object"==typeof e&&null!==e&&"string"==typeof e.openapi&&e.openapi.startsWith("3.1"),(c||(c={})).is=e=>"object"==typeof e&&null!==e&&"string"==typeof e.swagger&&e.swagger.startsWith("2.0"),function(e){var t;let r;e.convert=t=>({...t,components:e.convertComponents(t.components??{}),paths:t.paths?Object.fromEntries(Object.entries(t.paths).filter(([e,t])=>void 0!==t).map(([e,r])=>[e,n(t)(r)])):void 0,openapi:"3.1.0","x-samchon-emended":!0});let n=e=>t=>({...t,...t.get?{get:i(e)(t)(t.get)}:void 0,...t.put?{put:i(e)(t)(t.put)}:void 0,...t.post?{post:i(e)(t)(t.post)}:void 0,...t.delete?{delete:i(e)(t)(t.delete)}:void 0,...t.options?{options:i(e)(t)(t.options)}:void 0,...t.head?{head:i(e)(t)(t.head)}:void 0,...t.patch?{patch:i(e)(t)(t.patch)}:void 0,...t.trace?{trace:i(e)(t)(t.trace)}:void 0}),i=e=>t=>n=>({...n,parameters:void 0!==t.parameters||void 0!==n.parameters?[...t.parameters??[],...n.parameters??[]].map(t=>{if(!r.isReference(t))return a(e.components??{})(t);let n=t.$ref.startsWith("#/components/headers/")?e.components?.headers?.[t.$ref.split("/").pop()??""]:e.components?.parameters?.[t.$ref.split("/").pop()??""];return void 0!==n?a(e.components??{})({...n,in:"header"}):void 0}).filter((e,t)=>void 0!==t):void 0,requestBody:n.requestBody?s(e)(n.requestBody):void 0,responses:n.responses?Object.fromEntries(Object.entries(n.responses).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,c(e)(r)]).filter(([e,t])=>void 0!==t)):void 0}),a=t=>n=>({...n,schema:e.convertSchema(t)(n.schema),examples:n.examples?Object.fromEntries(Object.entries(n.examples).map(([e,n])=>[e,r.isReference(n)?t.examples?.[n.$ref.split("/").pop()??""]:n]).filter(([e,t])=>void 0!==t)):void 0}),s=e=>t=>{if(r.isReference(t)){let r=e.components?.requestBodies?.[t.$ref.split("/").pop()??""];if(void 0===r)return;t=r}return{...t,content:t.content?u(e.components??{})(t.content):void 0}},c=e=>t=>{if(r.isReference(t)){let r=e.components?.responses?.[t.$ref.split("/").pop()??""];if(void 0===r)return;t=r}return{...t,content:t.content?u(e.components??{})(t.content):void 0,headers:t.headers?Object.fromEntries(Object.entries(t.headers).filter(([e,t])=>void 0!==t).map(([t,n])=>[t,(()=>{if(!1===r.isReference(n))return a(e.components??{})({...n,in:"header"});let t=n.$ref.startsWith("#/components/headers/")?e.components?.headers?.[n.$ref.split("/").pop()??""]:void 0;return void 0!==t?a(e.components??{})({...t,in:"header"}):void 0})()]).filter(([e,t])=>void 0!==t)):void 0}},u=t=>n=>Object.fromEntries(Object.entries(n).filter(([e,t])=>void 0!==t).map(([n,o])=>[n,{...o,schema:o.schema?e.convertSchema(t)(o.schema):void 0,examples:o.examples?Object.fromEntries(Object.entries(o.examples).map(([e,n])=>[e,r.isReference(n)?t.examples?.[n.$ref.split("/").pop()??""]:n]).filter(([e,t])=>void 0!==t)):void 0}]));e.convertComponents=t=>({schemas:t.schemas?Object.fromEntries(Object.entries(t.schemas).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,e.convertSchema(t)(n)])):void 0,securitySchemes:t.securitySchemes}),e.convertSchema=t=>n=>{let i={value:!1,default:void 0},a=[],s={title:n.title,description:n.description,...Object.fromEntries(Object.entries(n).filter(([e,t])=>e.startsWith("x-")&&void 0!==t)),example:n.example,examples:n.examples},c=n=>{!0===n.nullable&&(i.value||(i.value=!0),null===n.default&&(i.default=null)),Array.isArray(n.enum)&&n.enum?.length&&n.enum?.some(e=>null===e)&&(i.value||(i.value=!0)),r.isAnyOf(n)?n.anyOf.forEach(c):r.isOneOf(n)?n.oneOf.forEach(c):r.isAllOf(n)?a.push(l(t)(n)):r.isBoolean(n)||r.isInteger(n)||r.isNumber(n)||r.isString(n)?n.enum?.length&&n.enum.filter(e=>null!==e).length?a.push(...n.enum.filter(e=>null!==e).map(e=>({const:e}))):a.push({...n,default:n.default??void 0,enum:void 0}):r.isArray(n)?a.push({...n,items:e.convertSchema(t)(n.items)}):r.isObject(n)?a.push({...n,properties:n.properties?Object.fromEntries(Object.entries(n.properties).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,e.convertSchema(t)(n)])):void 0,additionalProperties:n.additionalProperties?"object"==typeof n.additionalProperties&&null!==n.additionalProperties?e.convertSchema(t)(n.additionalProperties):n.additionalProperties:void 0}):(r.isReference(n),a.push(n))};if(c(n),!0!==i.value||a.some(e=>"null"===e.type)||a.push({type:"null",default:i.default}),2===a.length&&1===a.filter(e=>o.isNull(e)).length){let e=a.filter(e=>!1===o.isNull(e))[0];for(let t of["title","description","deprecated","example","examples"])void 0!==e[t]&&delete e[t]}return{...0===a.length?{type:void 0}:1===a.length?{...a[0]}:{oneOf:a.map(e=>({...e,nullable:void 0}))},...s,nullable:void 0}};let l=t=>r=>{let n=r.allOf.map(e=>p(t)(e));return n.some(e=>null===e)?{type:void 0,allOf:void 0}:{...r,type:"object",properties:Object.fromEntries(n.map(e=>Object.entries(e?.properties??{})).flat().map(([r,n])=>[r,e.convertSchema(t)(n)])),allOf:void 0}},p=e=>(t,n=new Set)=>r.isObject(t)?void 0===t.properties||t.additionalProperties?null:t:n.has(t)?null:(n.add(t),r.isReference(t)?p(e)(e.schemas?.[t.$ref.split("/").pop()??""]??{},n):null);(t=r=e.TypeChecker||(e.TypeChecker={})).isBoolean=e=>"boolean"===e.type,t.isInteger=e=>"integer"===e.type,t.isNumber=e=>"number"===e.type,t.isString=e=>"string"===e.type,t.isArray=e=>"array"===e.type,t.isObject=e=>"object"===e.type,t.isReference=e=>void 0!==e.$ref,t.isAllOf=e=>void 0!==e.allOf,t.isAnyOf=e=>void 0!==e.anyOf,t.isOneOf=e=>void 0!==e.oneOf,t.isNullOnly=e=>"null"===e.type}(u||(u={})),function(e){e.downgrade=r=>{let n=e.downgradeComponents(r.components);return{openapi:"3.0.0",servers:r.servers,info:r.info,components:n.downgraded,paths:r.paths?Object.fromEntries(Object.entries(r.paths).filter(([e,t])=>void 0!==t).map(([e,r])=>[e,t(n)(r)])):void 0,security:r.security,tags:r.tags}};let t=e=>t=>({...t,...t.get?{get:r(e)(t.get)}:void 0,...t.put?{put:r(e)(t.put)}:void 0,...t.post?{post:r(e)(t.post)}:void 0,...t.delete?{delete:r(e)(t.delete)}:void 0,...t.options?{options:r(e)(t.options)}:void 0,...t.head?{head:r(e)(t.head)}:void 0,...t.patch?{patch:r(e)(t.patch)}:void 0,...t.trace?{trace:r(e)(t.trace)}:void 0}),r=e=>t=>({...t,parameters:t.parameters?t.parameters.map(n(e)):void 0,requestBody:t.requestBody?i(e)(t.requestBody):void 0,responses:t.responses?Object.fromEntries(Object.entries(t.responses).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,a(e)(r)])):void 0}),n=t=>r=>({...r,schema:e.downgradeSchema(t)(r.schema)}),i=e=>t=>({...t,content:t.content?s(e)(t.content):void 0}),a=t=>r=>({...r,content:r.content?s(t)(r.content):void 0,headers:r.headers?Object.fromEntries(Object.entries(r.headers).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,{...n,schema:e.downgradeSchema(t)(n.schema)}])):void 0}),s=t=>r=>Object.fromEntries(Object.entries(r).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,{...n,schema:n?.schema?e.downgradeSchema(t)(n.schema):void 0}]));e.downgradeComponents=t=>{let r={original:t,downgraded:{securitySchemes:t.securitySchemes}};if(t.schemas)for(let[n,o]of(r.downgraded.schemas={},Object.entries(t.schemas)))void 0!==o&&(r.downgraded.schemas[n]=e.downgradeSchema(r)(o));return r},e.downgradeSchema=t=>r=>{let n=u(new Set)(t.original)(r),i=[],a={title:r.title,description:r.description,example:r.example,examples:r.examples,...Object.fromEntries(Object.entries(r).filter(([e,t])=>e.startsWith("x-")&&void 0!==t))},s=r=>{o.isBoolean(r)?i.push({type:"boolean"}):o.isBoolean(r)||o.isInteger(r)||o.isNumber(r)||o.isString(r)||o.isReference(r)?i.push({...r}):o.isArray(r)?i.push({...r,items:e.downgradeSchema(t)(r.items)}):o.isTuple(r)?i.push({...r,items:(()=>{if(!0===r.additionalItems)return{};let n=[...r.prefixItems,..."object"==typeof r.additionalItems?[e.downgradeSchema(t)(r.additionalItems)]:[]];return 0===n.length?{}:{oneOf:n.map(e.downgradeSchema(t))}})(),minItems:r.prefixItems.length,maxItems:!0==!!r.additionalItems?void 0:r.prefixItems.length,prefixItems:void 0,additionalItems:void 0}):o.isObject(r)?i.push({...r,properties:r.properties?Object.fromEntries(Object.entries(r.properties).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,e.downgradeSchema(t)(n)])):void 0,additionalProperties:"object"==typeof r.additionalProperties?e.downgradeSchema(t)(r.additionalProperties):r.additionalProperties,required:r.required}):o.isOneOf(r)&&r.oneOf.forEach(s)};if(s(r),(e=>{let t=e=>{let t=i.find(t=>t.type===typeof e);void 0!==t?(t.enum??(t.enum=[]),t.enum.push(e)):i.push({type:typeof e,enum:[e]})};if(o.isConstant(e))t(e.const);else if(o.isOneOf(e))for(let r of e.oneOf)o.isConstant(r)&&t(r.const)})(r),!0===n)for(let e of i)o.isReference(e)?c(new Set)(t)(e):e.nullable=!0;return!0===n&&0===i.length?{type:"null",...a}:{...0===i.length?{type:void 0}:1===i.length?{...i[0]}:{oneOf:i},...a}};let c=t=>r=>n=>{var i;let a=n.$ref.split("/").pop();if(a.endsWith(".Nullable"))return;let s=r.original.schemas?.[a];void 0!==s&&!0!==u(t)(r.original)(s)&&(r.downgraded.schemas?.[`${a}.Nullable`]===void 0&&((i=r.downgraded).schemas??(i.schemas={}),r.downgraded.schemas[`${a}.Nullable`]={},r.downgraded.schemas[`${a}.Nullable`]=e.downgradeSchema(r)(o.isOneOf(s)?{...s,oneOf:[...s.oneOf,{type:"null"}]}:{oneOf:[s,{type:"null"}],title:s.title,description:s.description,example:s.example,examples:s.examples,...Object.fromEntries(Object.entries(s).filter(([e,t])=>e.startsWith("x-")&&void 0!==t))})),n.$ref+=".Nullable")},u=e=>t=>r=>{if(o.isNull(r))return!0;if(o.isReference(r)){if(e.has(r.$ref))return!1;e.add(r.$ref);let n=r.$ref.split("/").pop(),o=t.schemas?.[n];return!!o&&u(e)(t)(o)}return o.isOneOf(r)&&r.oneOf.some(u(e)(t))}}(l||(l={})),function(e){var t;let r;e.convert=e=>!0===e["x-samchon-emended"]?e:{...e,components:l(e.components??{}),paths:e.paths?Object.fromEntries(Object.entries(e.paths).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,o(e)(r)])):void 0,webhooks:e.webhooks?Object.fromEntries(Object.entries(e.webhooks).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,n(e)(r)]).filter(([e,t])=>void 0!==t)):void 0,"x-samchon-emended":!0};let n=e=>t=>{if(!r.isReference(t))return o(e)(t);let n=e.components?.pathItems?.[t.$ref.split("/").pop()??""];return n?o(e)(n):void 0},o=e=>t=>({...t,...t.get?{get:i(e)(t)(t.get)}:void 0,...t.put?{put:i(e)(t)(t.put)}:void 0,...t.post?{post:i(e)(t)(t.post)}:void 0,...t.delete?{delete:i(e)(t)(t.delete)}:void 0,...t.options?{options:i(e)(t)(t.options)}:void 0,...t.head?{head:i(e)(t)(t.head)}:void 0,...t.patch?{patch:i(e)(t)(t.patch)}:void 0,...t.trace?{trace:i(e)(t)(t.trace)}:void 0}),i=e=>t=>n=>({...n,parameters:void 0!==t.parameters||void 0!==n.parameters?[...t.parameters??[],...n.parameters??[]].map(t=>{if(!r.isReference(t))return a(e.components??{})(t);let n=t.$ref.startsWith("#/components/headers/")?e.components?.headers?.[t.$ref.split("/").pop()??""]:e.components?.parameters?.[t.$ref.split("/").pop()??""];return void 0!==n?a(e.components??{})({...n,in:"header"}):void 0}).filter((e,t)=>void 0!==t):void 0,requestBody:n.requestBody?s(e)(n.requestBody):void 0,responses:n.responses?Object.fromEntries(Object.entries(n.responses).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,c(e)(r)]).filter(([e,t])=>void 0!==t)):void 0}),a=e=>t=>({...t,schema:p(e)(t.schema),examples:t.examples?Object.fromEntries(Object.entries(t.examples).map(([t,n])=>[t,r.isReference(n)?e.examples?.[n.$ref.split("/").pop()??""]:n]).filter(([e,t])=>void 0!==t)):void 0}),s=e=>t=>{if(r.isReference(t)){let r=e.components?.requestBodies?.[t.$ref.split("/").pop()??""];if(void 0===r)return;t=r}return{...t,content:t.content?u(e.components??{})(t.content):void 0}},c=e=>t=>{if(r.isReference(t)){let r=e.components?.responses?.[t.$ref.split("/").pop()??""];if(void 0===r)return;t=r}return{...t,content:t.content?u(e.components??{})(t.content):void 0,headers:t.headers?Object.fromEntries(Object.entries(t.headers).filter(([e,t])=>void 0!==t).map(([t,n])=>[t,(()=>{if(!1===r.isReference(n))return a(e.components??{})({...n,in:"header"});let t=n.$ref.startsWith("#/components/headers/")?e.components?.headers?.[n.$ref.split("/").pop()??""]:void 0;return void 0!==t?a(e.components??{})({...t,in:"header"}):void 0})()]).filter(([e,t])=>void 0!==t)):void 0}},u=e=>t=>Object.fromEntries(Object.entries(t).filter(([e,t])=>void 0!==t).map(([t,n])=>[t,{...n,schema:n.schema?p(e)(n.schema):void 0,examples:n.examples?Object.fromEntries(Object.entries(n.examples).map(([t,n])=>[t,r.isReference(n)?e.examples?.[n.$ref.split("/").pop()??""]:n]).filter(([e,t])=>void 0!==t)):void 0}])),l=e=>({schemas:e.schemas?Object.fromEntries(Object.entries(e.schemas).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,p(e)(r)])):void 0,securitySchemes:e.securitySchemes}),p=e=>t=>{let n=[],o={title:t.title,description:t.description,...Object.fromEntries(Object.entries(t).filter(([e,t])=>e.startsWith("x-")&&void 0!==t))},i={value:!1,default:void 0},a=t=>{if(!0===t.nullable&&(i.value||(i.value=!0),null===t.default&&(i.default=null)),Array.isArray(t.enum)&&t.enum?.length&&t.enum?.some(e=>null===e)&&(i.value||(i.value=!0)),r.isMixed(t))for(let e of(void 0!==t.const&&a({...t,type:void 0,oneOf:void 0,anyOf:void 0,allOf:void 0,$ref:void 0}),void 0!==t.oneOf&&a({...t,type:void 0,anyOf:void 0,allOf:void 0,$ref:void 0}),void 0!==t.anyOf&&a({...t,type:void 0,oneOf:void 0,allOf:void 0,$ref:void 0}),void 0!==t.allOf&&a({...t,type:void 0,oneOf:void 0,anyOf:void 0,$ref:void 0}),t.type))"boolean"===e||"number"===e||"string"===e?a({...t,enum:t.enum?.length&&t.enum.filter(e=>null!==e)?t.enum.filter(t=>typeof t===e):void 0,type:e}):"integer"===e?a({...t,enum:t.enum?.length&&t.enum.filter(e=>null!==e)?t.enum.filter(e=>null!==e&&"number"==typeof e&&Number.isInteger(e)):void 0,type:e}):a({...t,type:e});else if(r.isOneOf(t))t.oneOf.forEach(a);else if(r.isAnyOf(t))t.anyOf.forEach(a);else if(r.isAllOf(t))n.push(f(e)(t));else if(r.isBoolean(t)){if(t.enum?.length&&t.enum.filter(e=>null!==e).length)for(let e of t.enum.filter(e=>null!==e))n.push({const:e,...{...t,type:void 0,enum:void 0,default:void 0}});else n.push({...t,default:t.default??void 0,enum:void 0})}else if(r.isInteger(t)||r.isNumber(t)){if(t.enum?.length&&t.enum.filter(e=>null!==e))for(let e of t.enum.filter(e=>null!==e))n.push({const:e,...{...t,type:void 0,enum:void 0,default:void 0,minimum:void 0,maximum:void 0,exclusiveMinimum:void 0,exclusiveMaximum:void 0,multipleOf:void 0}});else n.push({...t,default:t.default??void 0,enum:void 0,..."number"==typeof t.exclusiveMinimum?{minimum:t.exclusiveMinimum,exclusiveMinimum:!0}:{exclusiveMinimum:t.exclusiveMinimum},..."number"==typeof t.exclusiveMaximum?{maximum:t.exclusiveMaximum,exclusiveMaximum:!0}:{exclusiveMaximum:t.exclusiveMaximum}})}else if(r.isString(t)){if(t.enum?.length&&t.enum.filter(e=>null!==e).length)for(let e of t.enum.filter(e=>null!==e))n.push({const:e,...{...t,type:void 0,enum:void 0,default:void 0}});else n.push({...t,default:t.default??void 0,enum:void 0})}else r.isArray(t)?Array.isArray(t.items)?n.push({...t,items:void 0,prefixItems:t.items.map(p(e)),additionalItems:"object"==typeof t.additionalItems&&null!==t.additionalItems?p(e)(t.additionalItems):t.additionalItems}):Array.isArray(t.prefixItems)?n.push({...t,items:void 0,prefixItems:t.prefixItems.map(p(e)),additionalItems:"object"==typeof t.additionalItems&&null!==t.additionalItems?p(e)(t.additionalItems):t.additionalItems}):void 0===t.items?n.push({...t,items:void 0,prefixItems:[]}):n.push({...t,items:p(e)(t.items),prefixItems:void 0,additionalItems:void 0}):r.isObject(t)?n.push({...t,properties:t.properties?Object.fromEntries(Object.entries(t.properties).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,p(e)(r)])):void 0,additionalProperties:t.additionalProperties?"object"==typeof t.additionalProperties&&null!==t.additionalProperties?p(e)(t.additionalProperties):t.additionalProperties:void 0}):r.isRecursiveReference(t)?n.push({...t,$ref:t.$recursiveRef,$recursiveRef:void 0}):n.push(t)};return a(t),!0!==i.value||n.some(e=>"null"===e.type)||n.push({type:"null",default:i.default}),{...0===n.length?{type:void 0}:1===n.length?{...n[0]}:{oneOf:n.map(e=>({...e,nullable:void 0}))},...o,nullable:void 0}},f=e=>t=>{let r=t.allOf.map(t=>d(e)(t));return r.some(e=>null===e)?{type:void 0,allOf:void 0}:{...t,type:"object",properties:Object.fromEntries(r.map(e=>Object.entries(e?.properties??{})).flat().map(([t,r])=>[t,p(e)(r)])),allOf:void 0}},d=e=>(t,n=new Set)=>r.isObject(t)?void 0===t.properties||t.additionalProperties?null:t:n.has(t)?null:(n.add(t),r.isReference(t)?d(e)(e.schemas?.[t.$ref.split("/").pop()??""]??{},n):r.isRecursiveReference(t)?d(e)(e.schemas?.[t.$recursiveRef.split("/").pop()??""]??{},n):null);(t=r||(r={})).isConstant=e=>void 0!==e.const,t.isBoolean=e=>"boolean"===e.type,t.isInteger=e=>"integer"===e.type,t.isNumber=e=>"number"===e.type,t.isString=e=>"string"===e.type,t.isArray=e=>"array"===e.type,t.isObject=e=>"object"===e.type,t.isReference=e=>void 0!==e.$ref,t.isRecursiveReference=e=>void 0!==e.$recursiveRef,t.isAllOf=e=>void 0!==e.allOf,t.isAnyOf=e=>void 0!==e.anyOf,t.isOneOf=e=>void 0!==e.oneOf,t.isNullOnly=e=>"null"===e.type,t.isMixed=e=>Array.isArray(e.type)}(p||(p={})),function(e){var t;let r;e.convert=e=>({openapi:"3.1.0",info:e.info,components:u(e),paths:e.paths?Object.fromEntries(Object.entries(e.paths).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,n(e)(r)])):void 0,servers:e.host?[{url:e.host}]:void 0,security:e.security,tags:e.tags,"x-samchon-emended":!0});let n=e=>t=>({...t,...t.get?{get:i(e)(t)(t.get)}:void 0,...t.put?{put:i(e)(t)(t.put)}:void 0,...t.post?{post:i(e)(t)(t.post)}:void 0,...t.delete?{delete:i(e)(t)(t.delete)}:void 0,...t.options?{options:i(e)(t)(t.options)}:void 0,...t.head?{head:i(e)(t)(t.head)}:void 0,...t.patch?{patch:i(e)(t)(t.patch)}:void 0,...t.trace?{trace:i(e)(t)(t.trace)}:void 0}),i=e=>t=>n=>({...n,parameters:void 0!==t.parameters||void 0!==n.parameters?[...t.parameters??[],...n.parameters??[]].map(t=>r.isReference(t)?e.parameters?.[t.$ref.split("/").pop()??""]:t).filter(e=>void 0!==e&&"body"!==e.in&&void 0===e.schema).map(a):void 0,requestBody:(()=>{let t=n.parameters?.find(t=>(r.isReference(t)&&(t=e.parameters?.[t.$ref.split("/").pop()??""]),t?.schema!==void 0));return t?s(t):void 0})(),responses:n.responses?Object.fromEntries(Object.entries(n.responses).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,c(e)(r)]).filter(([e,t])=>void 0!==t)):void 0}),a=t=>({name:t.name,in:t.in,description:t.description,schema:e.convertSchema(t),required:!0}),s=t=>({description:t.description,content:{"application/json":{schema:e.convertSchema(t.schema)}}}),c=t=>n=>{if(r.isReference(n)){let e=t.responses?.[n.$ref.split("/").pop()??""];if(void 0===e)return;n=e}return{description:n.description,content:n.schema?{"application/json":{schema:e.convertSchema(n.schema),example:n.example}}:void 0,headers:n.headers?Object.fromEntries(Object.entries(n.headers).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,{schema:e.convertSchema(r),in:"header"}])):void 0}},u=t=>({schemas:t.definitions?Object.fromEntries(Object.entries(t.definitions).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,e.convertSchema(r)])):void 0,securitySchemes:t.securityDefinitions?Object.fromEntries(Object.entries(t.securityDefinitions).filter(([e,t])=>void 0!==t).map(([e,t])=>[e,l(t)]).filter(([e,t])=>void 0!==t)):void 0}),l=e=>{if("apiKey"===e.type)return e;if("basic"===e.type)return{type:"http",scheme:"basic",description:e.description};if("oauth2"===e.type){if("implicit"===e.flow)return{type:"oauth2",description:e.description,flows:{implicit:{authorizationUrl:e.authorizationUrl,scopes:e.scopes}}};if("accessCode"===e.flow)return{type:"oauth2",description:e.description,flows:{authorizationCode:{authorizationUrl:e.authorizationUrl,tokenUrl:e.tokenUrl,scopes:e.scopes}}};if("password"===e.flow)return{type:"oauth2",description:e.description,flows:{password:{tokenUrl:e.tokenUrl,scopes:e.scopes}}};else if("application"===e.flow)return{type:"oauth2",description:e.description,flows:{clientCredentials:{tokenUrl:e.tokenUrl,scopes:e.scopes}}}}};e.convertSchema=t=>{let n={value:!1,default:void 0},i=[],a={title:t.title,description:t.description,...Object.fromEntries(Object.entries(t).filter(([e,t])=>e.startsWith("x-")&&void 0!==t)),example:t.example,examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0},s=t=>{!0===t["x-nullable"]&&(n.value||(n.value=!0),null===t.default&&(n.default=null)),Array.isArray(t.enum)&&t.enum?.length&&t.enum?.some(e=>null===e)&&(n.value||(n.value=!0)),r.isAnyOf(t)?t["x-anyOf"].forEach(s):r.isOneOf(t)?t["x-oneOf"].forEach(s):r.isBoolean(t)||r.isInteger(t)||r.isNumber(t)||r.isString(t)?t.enum?.length&&t.enum.filter(e=>null!==e).length?i.push(...t.enum.filter(e=>null!==e).map(e=>({const:e}))):i.push({...t,default:t.default??void 0,examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0,enum:void 0}):r.isArray(t)?i.push({...t,items:e.convertSchema(t.items),examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0}):r.isObject(t)?i.push({...t,properties:t.properties?Object.fromEntries(Object.entries(t.properties).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,e.convertSchema(r)])):void 0,additionalProperties:t.additionalProperties?"object"==typeof t.additionalProperties&&null!==t.additionalProperties?e.convertSchema(t.additionalProperties):t.additionalProperties:void 0,examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0}):r.isReference(t)?i.push({...t,$ref:t.$ref.replace("#/definitions/","#/components/schemas/"),examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0}):i.push({...t,examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0})};if(s(t),!0!==n.value||i.some(e=>"null"===e.type)||i.push({type:"null",default:n.default}),2===i.length&&1===i.filter(e=>o.isNull(e)).length){let e=i.filter(e=>!1===o.isNull(e))[0];for(let t of["title","description","deprecated","example","examples"])void 0!==e[t]&&delete e[t]}return{...0===i.length?{type:void 0}:1===i.length?{...i[0]}:{oneOf:i.map(e=>({...e,"x-nullable":void 0}))},...a,"x-nullable":void 0}},(t=r||(r={})).isBoolean=e=>"boolean"===e.type,t.isInteger=e=>"integer"===e.type,t.isNumber=e=>"number"===e.type,t.isString=e=>"string"===e.type,t.isArray=e=>"array"===e.type,t.isObject=e=>"object"===e.type,t.isReference=e=>void 0!==e.$ref,t.isOneOf=e=>void 0!==e["x-oneOf"],t.isAnyOf=e=>void 0!==e["x-anyOf"],t.isNullOnly=e=>"null"===e.type}(f||(f={})),function(e){e.downgrade=r=>{let n=e.downgradeComponents(r.components);return{swagger:"2.0",info:r.info,host:r.servers?.[0]?.url?r.servers[0].url.split("://").pop():"",definitions:n.downgraded,securityDefinitions:r.components?.securitySchemes?Object.fromEntries(Object.entries(r.components.securitySchemes).filter(([e,t])=>void 0!==t).map(([e,t])=>c(t).map(t=>[e,t])).flat()):void 0,paths:r.paths?Object.fromEntries(Object.entries(r.paths).filter(([e,t])=>void 0!==t).map(([e,r])=>[e,t(n)(r)])):void 0,security:r.security,tags:r.tags}};let t=e=>t=>({...t,...t.get?{get:r(e)(t.get)}:void 0,...t.put?{put:r(e)(t.put)}:void 0,...t.post?{post:r(e)(t.post)}:void 0,...t.delete?{delete:r(e)(t.delete)}:void 0,...t.options?{options:r(e)(t.options)}:void 0,...t.head?{head:r(e)(t.head)}:void 0,...t.patch?{patch:r(e)(t.patch)}:void 0,...t.trace?{trace:r(e)(t.trace)}:void 0}),r=e=>t=>({...t,parameters:void 0!==t.parameters||void 0!==t.requestBody?[...(t.parameters??[]).map(n(e)),...t.requestBody?[i(e)(t.requestBody)]:[]]:void 0,responses:t.responses?Object.fromEntries(Object.entries(t.responses).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,a(e)(r)])):void 0,requestBody:void 0,servers:void 0}),n=t=>(r,n)=>({...e.downgradeSchema(t)(r.schema),...r,required:r.schema?.required,schema:void 0,name:r.name??`p${n}`,example:void 0,examples:void 0}),i=t=>r=>({name:"body",in:"body",description:r.description,required:r.required,schema:e.downgradeSchema(t)(Object.values(r.content??{})[0]?.schema??{})}),a=t=>r=>({description:r.description,schema:e.downgradeSchema(t)(Object.values(r.content??{})[0]?.schema??{}),headers:r.headers?Object.fromEntries(Object.entries(r.headers).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,{...n,schema:e.downgradeSchema(t)(n.schema),example:void 0,examples:void 0}])):void 0});e.downgradeComponents=t=>{let r={original:t,downgraded:{}};if(t.schemas)for(let[n,o]of(r.downgraded.schemas={},Object.entries(t.schemas)))void 0!==o&&(r.downgraded[n.split("/").pop()]=e.downgradeSchema(r)(o));return r},e.downgradeSchema=t=>r=>{let n=u(new Set)(t.original)(r),i=[],a={title:r.title,description:r.description,example:r.example,examples:r.examples?Object.values(r.examples):void 0,...Object.fromEntries(Object.entries(r).filter(([e,t])=>e.startsWith("x-")&&void 0!==t))},c=r=>{o.isBoolean(r)?i.push({type:"boolean"}):o.isBoolean(r)||o.isInteger(r)||o.isNumber(r)||o.isString(r)?i.push({...r,examples:r.examples?Object.values(r.examples):void 0}):o.isReference(r)?i.push({$ref:`#/definitions/${r.$ref.split("/").pop()}`}):o.isArray(r)?i.push({...r,items:e.downgradeSchema(t)(r.items),examples:r.examples?Object.values(r.examples):void 0}):o.isTuple(r)?i.push({...r,items:(()=>{if(!0===r.additionalItems)return{};let n=[...r.prefixItems,..."object"==typeof r.additionalItems?[e.downgradeSchema(t)(r.additionalItems)]:[]];return 0===n.length?{}:{"x-oneOf":n.map(e.downgradeSchema(t))}})(),minItems:r.prefixItems.length,maxItems:!0==!!r.additionalItems?void 0:r.prefixItems.length,prefixItems:void 0,additionalItems:void 0,examples:r.examples?Object.values(r.examples):void 0}):o.isObject(r)?i.push({...r,properties:r.properties?Object.fromEntries(Object.entries(r.properties).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,e.downgradeSchema(t)(n)])):void 0,additionalProperties:"object"==typeof r.additionalProperties?e.downgradeSchema(t)(r.additionalProperties):r.additionalProperties,required:r.required,examples:r.examples?Object.values(r.examples):void 0}):o.isOneOf(r)&&r.oneOf.forEach(c)};if(c(r),n)for(let e of i)o.isReference(e)?s(new Set)(t)(e):e["x-nullable"]=!0;return!0===n&&0===i.length?{type:"null",...a}:{...0===i.length?{type:void 0}:1===i.length?{...i[0]}:{"x-oneOf":i},...a,...i.length>1?{discriminator:void 0}:{}}};let s=t=>r=>n=>{let i=n.$ref.split("/").pop();if(i.endsWith(".Nullable"))return;let a=r.original.schemas?.[i];void 0!==a&&!0!==u(t)(r.original)(a)&&(void 0===r.downgraded[`${i}.Nullable`]&&(r.downgraded[`${i}.Nullable`]={},r.downgraded[`${i}.Nullable`]=e.downgradeSchema(r)(o.isOneOf(a)?{...a,oneOf:[...a.oneOf,{type:"null"}]}:{title:a.title,description:a.description,example:a.example,examples:a.examples?Object.values(a.examples):void 0,...Object.fromEntries(Object.entries(a).filter(([e,t])=>e.startsWith("x-")&&void 0!==t)),oneOf:[a,{type:"null"}]})),n.$ref+=".Nullable")},c=e=>{if("apiKey"===e.type)return[e];if("http"===e.type){if("basic"===e.scheme)return[{type:"basic",description:e.description}]}else if("oauth2"===e.type){let t=[];return e.flows.implicit&&t.push({type:"oauth2",flow:"implicit",authorizationUrl:e.flows.implicit.authorizationUrl,scopes:e.flows.implicit.scopes}),e.flows.password&&t.push({type:"oauth2",flow:"password",tokenUrl:e.flows.password.tokenUrl,scopes:e.flows.password.scopes}),e.flows.clientCredentials&&t.push({type:"oauth2",flow:"application",tokenUrl:e.flows.clientCredentials.tokenUrl,scopes:e.flows.clientCredentials.scopes}),e.flows.authorizationCode&&t.push({type:"oauth2",flow:"accessCode",authorizationUrl:e.flows.authorizationCode.authorizationUrl,tokenUrl:e.flows.authorizationCode.tokenUrl,scopes:e.flows.authorizationCode.scopes}),t}return[]},u=e=>t=>r=>{if(o.isNull(r))return!0;if(o.isReference(r)){if(e.has(r.$ref))return!1;e.add(r.$ref);let n=r.$ref.split("/").pop(),o=t.schemas?.[n];return!!o&&u(e)(t)(o)}return o.isOneOf(r)&&r.oneOf.some(u(e)(t))}}(d||(d={})),(E=h||(h={})).convert=function(e){if(s.is(e))return p.convert(e);if(a.is(e))return u.convert(e);if(c.is(e))return f.convert(e);throw TypeError("Unrecognized Swagger/OpenAPI version.")},E.downgrade=function(e,t){if("2.0"===t)return d.downgrade(e);if("3.0"===t)return l.downgrade(e);throw TypeError("Unrecognized Swagger/OpenAPI version.")},function(e){e.snake=function(e){let t=[];for(let r=0;r0;--e)t[e]-t[e-1]==1&&t.splice(e,1);if(0!==t.length&&0===t[0]&&t.splice(0,1),0===t.length)return e.toLowerCase();let r="";for(let n=0;n0===e.length?e:e[0]===e[0].toUpperCase()?e[0].toLowerCase()+e.substring(1):e)(e)},e.pascal=function(e){return t(e=>0===e.length?e:e[0]===e[0].toLowerCase()?e[0].toUpperCase()+e.substring(1):e)(e)};let t=e=>t=>{let r="";for(let e=0;e0!==e.length?e[0].toUpperCase()+e.slice(1).toLowerCase():e,A.pascal=e=>A.splitWithNormalization(e).filter(e=>"{"!==e[0]).map(y.pascal).join(""),A.splitWithNormalization=e=>e.split("/").map(e=>A.normalize(e.trim())).filter(e=>!!e.length),A.reJoinWithDecimalParameters=e=>e.split("/").filter(e=>!!e.length).map(e=>"{"===e[0]&&"}"===e[e.length-1]?`:${e.substring(1,e.length-1)}`:e).join("/"),A.normalize=e=>(e=e.split(".").join("_").split("-").join("_").trim(),F.has(e))?`_${e}`:(0!==e.length&&"0"<=e[0]&&e[0]<="9"&&(e=`_${e}`),e),A.escapeDuplicate=e=>t=>e.includes(t)?A.escapeDuplicate(e)(`_${t}`):t;let F=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","module","new","null","package","public","private","protected","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]);(M=_||(_={})).variable=e=>!1===M.reserved(e)&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(e),M.reserved=e=>B.has(e);let B=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","package","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]);!function(e){e.overwrite=e=>{for(let r of t(e=>e.emendedPath.split("/").filter(e=>!!e.length&&":"!==e[0]).map(m.normalize).map(e=>_.variable(e)?e:`_${e}`))(e).values())r.entries.forEach((e,t)=>{e.alias=m.escapeDuplicate([...r.children,...r.entries.filter((e,r)=>t!==r).map(e=>e.alias)].map(m.normalize))(m.normalize(e.alias)),e.route.accessor=[...r.namespace,e.alias];let n=[...e.route.parameters,...e.route.body?[e.route.body]:[],...e.route.headers?[e.route.headers]:[],...e.route.query?[e.route.query]:[]];n.forEach((t,r)=>t.key=m.escapeDuplicate(["connection",e.alias,...n.filter((e,t)=>r!==t).map(e=>e.key)])(t.key))})};let t=e=>t=>{let o=new Map;for(let i of t){let t=e(i),a=n.take(o)(t.join("."))(()=>({namespace:t,children:new Set,entries:[]}));a.entries.push({route:i,alias:r(i)}),t.slice(0,-1).forEach((e,r,i)=>{let s=t.slice(0,i.length-r);n.take(o)(s.join("."))(()=>({namespace:s,children:new Set,entries:[]})).children.add(a.namespace.at(-1))});let s=n.take(o)("")(()=>({namespace:[],children:new Set,entries:[]}));t.length&&s.children.add(t[0])}return o},r=e=>{let t="delete"===e.method?"erase":e.method;return 0===e.parameters.length?t:t+"By"+e.parameters.map(e=>m.capitalize(e.key)).join("And")}}(v||(v={})),function(e){e.convert=e=>{let r=n("request")(t=>i({document:e.document,name:"body",schema:t}))(e.operation.requestBody),a=n("response")(t=>i({document:e.document,name:"response",schema:t}))(e.operation.responses?.["201"]??e.operation.responses?.["200"]??e.operation.responses?.default),s=[];!1===r&&s.push('supports only "application/json", "application/x-www-form-urlencoded", "multipart/form-data" and "text/plain" content type in the request body.'),!1===a&&s.push('supports only "application/json", "application/x-www-form-urlencoded" and "text/plain" content type in the response body.');let[c,u]=["header","query"].map(t=>{let r=(e.operation.parameters??[]).filter(e=>e.in===t);if(0===r.length)return null;let n=r.map(t=>o.isObject(t.schema)?t.schema:o.isReference(t.schema)&&o.isObject(e.document.components.schemas?.[t.schema.$ref.replace("#/components/schemas/","")]??{})?t.schema:null).filter(e=>!!e),a=r.filter(e=>o.isBoolean(e.schema)||o.isInteger(e.schema)||o.isNumber(e.schema)||o.isString(e.schema)||o.isArray(e.schema)),c=e=>({...e,name:t,key:t,title:()=>e.title,description:()=>e.description,example:()=>e.example,examples:()=>e.examples});if(1===n.length&&0===a.length)return c(r[0]);if(n.length>1)return s.push(`${t} typed parameters must be only one object type`),!1;let u=n[0]?o.isObject(n[0])?n[0]:(e.document.components.schemas??{})[n[0].$ref.replace("#/components/schemas/","")]:null,l=[...n.map(t=>o.isObject(t)?t:e.document.components.schemas?.[t.$ref.replace("#/components/schemas/","")]),{type:"object",properties:Object.fromEntries([...a.map(e=>[e.name,{...e.schema,description:e.schema.description??e.description}]),...u?Object.entries(u.properties??{}):[]]),required:[...a.filter(e=>e.required).map(e=>e.name),...u?u.required??[]:[]]}];return 0===r.length?null:c({schema:i({document:e.document,name:m.pascal(`I/Api/${e.path}`)+"."+m.pascal(`${e.method}/${t}`),schema:{type:"object",properties:Object.fromEntries([...new Map(l.map(e=>Object.entries(e.properties??{}).map(([e,t])=>[e,{...t,description:t.description??t.description}])).flat())]),required:[...new Set(l.map(e=>e.required??[]).flat())]}})})}),l=m.splitWithNormalization(e.emendedPath).filter(e=>":"===e[0]).map(e=>e.substring(1)),p=(e.operation.parameters??[]).filter(e=>"path"===e.in);if(l.length!==p.length){if(p.lengthvoid 0!==e.name&&l.includes(e.name))){for(let e of l)void 0===p.find(t=>t.name===e)&&p.push({name:e,in:"path",schema:{type:"string"}});p.sort((e,t)=>l.indexOf(e.name)-l.indexOf(t.name)),e.operation.parameters=[...p,...(e.operation.parameters??[]).filter(e=>"path"!==e.in)]}else s.push("number of path parameters are not matched with its full path.")}if(s.length)return s;let f=(e.operation.parameters??[]).filter(e=>"path"===e.in).map((e,t)=>({name:l[t],key:(()=>{let e=m.normalize(l[t]);if(_.variable(e))return e;for(;;)if(e="_"+e,!l.some(t=>t===e))return e})(),schema:e.schema,parameter:()=>e}));return{method:e.method,path:e.path,emendedPath:e.emendedPath,accessor:["@lazy"],parameters:(e.operation.parameters??[]).filter(e=>"path"===e.in).map((e,t)=>({name:l[t],key:(()=>{let e=m.normalize(l[t]);if(_.variable(e))return e;for(;;)if(e="_"+e,!l.some(t=>t===e))return e})(),schema:e.schema,parameter:()=>e})),headers:c||null,query:u||null,body:r,success:a,exceptions:Object.fromEntries(Object.entries(e.operation.responses??{}).filter(([e])=>"200"!==e&&"201"!==e&&"default"!==e).map(([e,t])=>[e,{schema:t.content?.["application/json"]?.schema??{},response:()=>t,media:()=>t.content?.["application/json"]??{}}])),comment:()=>t({operation:e.operation,parameters:f,query:u||null,body:r||null}),operation:()=>e.operation}};let t=e=>{let t=[],n=e=>{t.every(t=>t!==e)&&t.push(e)},o=e.operation.description??"";if(e.operation.summary){let t=e.operation.summary.endsWith(".")?e.operation.summary:e.operation.summary+".";o.length&&!o.startsWith(e.operation.summary)&&(o=`${t} +${o}`)}for(let t of(o=o.split("\n").map(e=>e.trim()).join("\n"),e.parameters??[])){let e=t.parameter();if(e.description||e.title){let o=e.description??e.title;n(`@param ${t.name} ${r(o,t.name.length+8)}`)}}for(let t of(e.body?.description()?.length&&n(`@param body ${r(e.body.description(),12)}`),e.operation.security??[]))for(let[e,r]of Object.entries(t))n(`@security ${[e,...r].join("")}`);return e.operation.tags&&e.operation.tags.forEach(e=>n(`@tag ${e}`)),e.operation.deprecated&&n("@deprecated"),o=(o=o.length?t.length?`${o} + +${t.join("\n")}`:o:t.join("\n")).split("*/").join("*\\/")},r=(e,t)=>e.split("\n").map(e=>e.trim()).map((e,r)=>0===r?e:`${" ".repeat(t)}${e}`).join("\n"),n=e=>t=>r=>{if(!r?.content)return null;let n=Object.entries(r.content).filter(([e,t])=>!!t),o=n.find(e=>!0===r["x-nestia-encrypted"]?e[0].includes("text/plain")||e[0].includes("application/json"):e[0].includes("application/json")||e[0].includes("*/*"));if(o){let{schema:n}=o[1];return n||"response"===e?{type:"application/json",name:"body",key:"body",schema:n?a(n)?n:t(n):{},description:()=>r.description,media:()=>o[1],"x-nestia-encrypted":r["x-nestia-encrypted"]}:null}let i=n.find(e=>e[0].includes("application/x-www-form-urlencoded"));if(i){let{schema:n}=i[1];return n||"response"===e?{type:"application/x-www-form-urlencoded",name:"body",key:"body",schema:n?a(n)?n:t(n):{},description:()=>r.description,media:()=>i[1]}:null}let s=n.find(e=>e[0].includes("text/plain"));if(s)return{type:"text/plain",name:"body",key:"body",schema:{type:"string"},description:()=>r.description,media:()=>s[1]};if("request"===e){let e=n.find(e=>e[0].includes("multipart/form-data"));if(e){let{schema:n}=e[1];return{type:"multipart/form-data",name:"body",key:"body",schema:n?a(n)?n:t(n):{},description:()=>r.description,media:()=>e[1]}}}return!1},i=e=>{var t;return(t=e.document.components).schemas??(t.schemas={}),e.document.components.schemas[e.name]=e.schema,{$ref:`#/components/schemas/${e.name}`}},a=e=>o.isReference(e)||o.isBoolean(e)||o.isNumber(e)||o.isString(e)||o.isUnknown(e)||o.isOneOf(e)&&e.oneOf.every(a)||o.isArray(e)&&a(e.items)}(g||(g={})),(b||(b={})).convert=e=>{let t=[],r=Object.entries({...e.paths??{},...e.webhooks??{}}).map(([r,n])=>["head","get","post","put","patch","delete"].filter(e=>void 0!==n[e]).map(o=>{let i=n[o],a=g.convert({document:e,method:o,path:r,emendedPath:m.reJoinWithDecimalParameters(r),operation:i});return Array.isArray(a)?(t.push({method:o,path:r,operation:()=>i,messages:a}),null):a})).flat().filter(e=>!!e);return v.overwrite(r),{document:()=>e,routes:r,errors:t}},(T=w||(w={})).execute=async e=>{let t=await L("request",e);if(e.route.success?.media,200!==t.status&&201!==t.status)throw new N(e.route.method.toUpperCase(),e.route.path,t.status,t.headers,t.body);return t.body},T.propagate=e=>L("propagate",e);let L=async(e,t)=>{let r=t=>Error(`Error on MigrateRouteFetcher.${e}(): ${t}`);if(Array.isArray(t.parameters)){if(t.route.parameters.length!==t.parameters.length)throw r("number of parameters is not matched.")}else if(!1===t.route.parameters.every(e=>void 0!==t.parameters[e.key]))throw r("number of parameters is not matched.");if(!!t.route.query!=!!t.query)throw r("query is not matched.");if(!!t.route.body!=(void 0!==t.body))throw r("body is not matched.");let n={...t.connection.headers??{},...t.route.body?.type&&"multipart/form-data"!==t.route.body.type?{"Content-Type":t.route.body.type}:{}},o={...t.connection.options??{},method:t.route.method,headers:(()=>{let e=[];for(let[t,r]of Object.entries(n))if(void 0===r)continue;else if(Array.isArray(r))for(let n of r)e.push([t,String(n)]);else e.push([t,String(r)]);return e})()};void 0!==t.body&&(o.body=t.route.body?.type==="application/x-www-form-urlencoded"?U(t.body):t.route.body?.type==="multipart/form-data"?H(t.body):t.route.body?.type==="application/json"?JSON.stringify(t.body):t.body);let i="/"!==t.connection.host[t.connection.host.length-1]&&"/"!==t.route.path[0]?`/${z(t)}`:z(t),a=new URL(`${t.connection.host}/${i}`),s=await (t.connection.fetch??fetch)(a,o),c=s.status,u=e=>({status:c,headers:Z(s.headers),body:e});if(200===c||201===c){if("head"===t.route.method)return u(void 0);if(null===t.route.success||"text/plain"===t.route.success.type)return u(await s.text());if("application/json"===t.route.success.type){let e=await s.text();return u(e.length?JSON.parse(e):void 0)}if("application/x-www-form-urlencoded"===t.route.success.type)return u(new URLSearchParams(await s.text()));else if("multipart/form-data"===t.route.success.type)return u(await s.formData());throw r("Unsupported response body type.")}{let e=(s.headers.get("content-type")??s.headers.get("Content-Type")??"").split(";")[0].trim();if(""===e||e.startsWith("text/"));else if("application/json"===e)return u(await s.json());else if("application/x-www-form-urlencoded"===e)return u(new URLSearchParams(await s.text()));else if("multipart/form-data"===e)return u(await s.formData());else if("application/octet-stream"===e)return u(await s.blob());return u(await s.text())}},z=e=>{let t=e.route.emendedPath;return e.route.parameters.forEach((r,n)=>{t=t.replace(`:${r.key}`,encodeURIComponent(String((Array.isArray(e.parameters)?e.parameters[n]:e.parameters[r.key])??"null")))}),e.route.query&&(t+=$(e.query??{})),t},$=e=>{let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(void 0===n)continue;else Array.isArray(n)?n.forEach(e=>t.append(r,String(e))):t.set(r,String(n));return 0===t.size?"":`?${t.toString()}`},U=e=>{let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(void 0===n)continue;else Array.isArray(n)?n.forEach(e=>t.append(r,String(e))):t.set(r,String(n));return t},H=e=>{let t=new FormData,r=e=>r=>{void 0!==r&&("function"==typeof File&&r instanceof File?t.append(e,r,r.name):t.append(e,r))};for(let[t,n]of Object.entries(e))Array.isArray(n)?n.map(r(t)):r(t)(n);return t},Z=e=>{let t={};return e.forEach((e,r)=>{"set-cookie"===r?(t[r]??(t[r]=[]),t[r].push(...e.split(";").map(e=>e.trim()))):t[r]=e}),t};(C=x||(x={})).application=e=>b.convert(e),C.execute=e=>w.execute(e),C.propagate=e=>w.propagate(e),function(e){e.parameters=t=>{let r=t.parameters.map(e.schema(t.predicator));return{llm:r.map(([e],t)=>({index:t,schema:e})).filter(({schema:e})=>null!==e),human:r.map(([,e],t)=>({index:t,schema:e})).filter(({schema:e})=>null!==e)}},e.schema=e=>n=>{if(!0===e(n))return[null,n];if(i.isUnknown(n)||i.isOneOf(n));else if(i.isObject(n))return r(e)(n);else if(i.isArray(n))return t(e)(n);return[n,null]};let t=t=>r=>{let[n,o]=e.schema(t)(r.items);return[null!==n?{...r,items:n}:null,null!==o?{...r,items:o}:null]},r=t=>r=>{if(r.additionalProperties||0===Object.keys(r.properties??{}).length)return[r,null];let o={...r,properties:{}},i={...r,properties:{}};for(let[n,a]of Object.entries(r.properties??{})){let[r,s]=e.schema(t)(a);null!==r&&(o.properties[n]=r),null!==s&&(i.properties[n]=s)}return[0===Object.keys(o.properties).length?null:n(o),0===Object.keys(i.properties).length?null:n(i)]},n=e=>(void 0!==e.required&&(e.required=e.required.filter(t=>e.properties?.[t]!==void 0)),e)}(O||(O={})),(R=S||(S={})).compose=(e,t)=>{let r=e.errors.map(e=>({method:e.method,path:e.path,messages:e.messages,operation:()=>e.operation(),route:()=>void 0}));return{openapi:"3.0.3",functions:e.routes.map(n=>{if("head"===n.method)return null;let o=G(t)(e.document().components)(n);return null===o&&r.push({method:n.method,path:n.path,messages:["Failed to escape $ref"],operation:()=>n.operation(),route:()=>n}),o}).filter(e=>null!==e),errors:r,options:t}},R.schema=e=>{let t=V({components:e.components,visited:new Set,input:e.schema});if(null===t)return null;let r=l.downgradeSchema({original:{},downgraded:{}})(t);return i.visit(r,e=>{i.isOneOf(e)&&void 0!==e.discriminator&&delete e.discriminator}),r};let G=e=>t=>r=>{let n=e=>S.schema({components:t,schema:e}),o=r.success&&r.success?n(r.success.schema):void 0;if(null===o)return null;let i=[...r.parameters.map(e=>({key:e.key,schema:{...e.schema,title:e.parameter().title??e.schema.title,description:e.parameter().description??e.schema.description}})),...r.query?[{key:r.query.key,schema:{...r.query.schema,title:r.query.title()??r.query.schema.title,description:r.query.description()??r.query.schema.description}}]:[],...r.body?[{key:r.body.key,schema:{...r.body.schema,description:r.body.description()??r.body.schema.description}}]:[]].map(e=>[e.key,n(e.schema)]);if(i.some(([e,t])=>null===t))return null;let a=e.keyword?[{type:"object",properties:Object.fromEntries(i)}]:i.map(([e,t])=>t),s=r.operation();return{method:r.method,path:r.path,name:r.accessor.join("_"),strict:!0,parameters:a,separated:e.separate?O.parameters({parameters:a,predicator:e.separate}):void 0,output:o?l.downgradeSchema({original:{},downgraded:{}})(o):void 0,description:s.summary&&s.description?s.description.startsWith(s.summary)?s.description:[s.summary,s.summary.endsWith(".")?"":".","\n\n",s.description].join(""):s.description??s.summary,deprecated:s.deprecated,tags:s.tags,route:()=>r,operation:()=>s}},V=e=>{if(o.isReference(e.input)){let t=e.input.$ref.split("#/components/schemas/")[1],r=e.components.schemas?.[t];return r?e.visited.has(t)?null:V({components:e.components,visited:new Set([...e.visited,t]),input:r}):null}if(o.isOneOf(e.input)){let t=e.input.oneOf.map(t=>V({...e,input:t}));return t.some(e=>null===e)?null:{...e.input,oneOf:J(t)}}if(o.isObject(e.input)){let t=e.input.properties?Object.entries(e.input.properties).map(([t,r])=>[t,V({...e,input:r})]):void 0,r=e.input.additionalProperties?"object"==typeof e.input.additionalProperties&&null!==e.input.additionalProperties?V({...e,input:e.input.additionalProperties}):e.input.additionalProperties:void 0;return t&&t.some(([e,t])=>null===t)?null:null===r?null:{...e.input,properties:t?Object.fromEntries(t.filter(([e,t])=>!!t)):void 0,additionalProperties:r}}if(o.isTuple(e.input)){let t=e.input.prefixItems.map(t=>V({...e,input:t})),r="object"==typeof e.input.additionalItems&&null!==e.input.additionalItems?V({...e,input:e.input.additionalItems}):e.input.additionalItems;return t.some(e=>null===e)?null:null===r?null:{...e.input,prefixItems:t,additionalItems:r}}if(o.isArray(e.input)){let t=V({...e,input:e.input.items});return null===t?null:{...e.input,items:t}}return e.input},J=e=>e.map(e=>o.isOneOf(e)?J(e.oneOf):e).flat();!function(e){e.execute=async e=>w.execute(t("execute",e)),e.propagate=async e=>w.propagate(t("propagate",e));let t=(e,t)=>{let r=t.function.route();if(!0===t.application.options.keyword){let n=t.arguments[0];if(!1==(1===t.arguments.length&&"object"==typeof n&&null!==n))throw Error(`Error on HttpLlmFunctionFetcher.${e}(): keyworded arguments must be an object`);return{connection:t.connection,route:r,parameters:Object.fromEntries(r.parameters.map(e=>[e.key,n[e.key]])),query:n.query,body:n.body}}let n=t.arguments.slice(0,r.parameters.length),o=r.query?t.arguments[r.parameters.length]:void 0,i=r.body?t.arguments[r.parameters.length+(r.query?1:0)]:void 0;return{connection:t.connection,route:r,parameters:n,query:o,body:i}}}(I||(I={})),function(e){e.parameters=t=>{let r=t.function.separated;if(void 0===r)throw Error("Error on OpenAiDataComposer.parameters(): the function parameters are not separated.");return Array(t.function.parameters.length).fill(0).map((n,o)=>{let i=r.llm.findIndex(e=>e.index===o),a=r.human.findIndex(e=>e.index===o);if(-1===i&&-1===a)throw Error("Error on OpenAiDataComposer.parameters(): failed to gather separated arguments, because both LLM and human sides are all empty.");return e.value(t.llm[i],t.human[a])})},e.value=(r,n)=>"object"==typeof r&&"object"==typeof n&&null!==r&&null!==n?t(r,n):Array.isArray(r)&&Array.isArray(n)?Array(Math.max(r.length,n.length)).fill(0).map((t,o)=>e.value(r[o],n[o])):n??r;let t=(t,r)=>{let n={...t};for(let[o,i]of Object.entries(r))n[o]=e.value(t[o],i);return n}}(j||(j={})),(q=k||(k={})).application=(e,t)=>(!0===e["x-samchon-emended"]&&(e=x.application(e)),S.compose(e,{keyword:t?.keyword??!1,separate:t?.separate??null})),q.schema=e=>S.schema(e),q.execute=e=>I.execute(e),q.propagate=e=>I.propagate(e),q.mergeParameters=e=>j.parameters(e),q.mergeValue=(e,t)=>j.value(e,t)},77947:function(e,t,r){"use strict";r.r(t),r.d(t,{TypeGuardError:function(){return R},assert:function(){return rk},assertEquals:function(){return rM},assertGuard:function(){return rP},assertGuardEquals:function(){return rT},createAssert:function(){return rN},createAssertEquals:function(){return rL},createAssertGuard:function(){return rD},createAssertGuardEquals:function(){return rz},createEquals:function(){return r$},createIs:function(){return rF},createRandom:function(){return rH},createValidate:function(){return rB},createValidateEquals:function(){return rU},default:function(){return rG},equals:function(){return rC},functional:function(){return eY},http:function(){return tm},is:function(){return rE},json:function(){return tT},llm:function(){return tv},misc:function(){return tJ},notations:function(){return rs},protobuf:function(){return rO},random:function(){return rq},reflect:function(){return rI},tags:function(){return rj},validate:function(){return rA},validateEquals:function(){return rR}});var n,o,i,a,s={exports:{}},c={},u={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7},l={};let p=()=>[{type:u.RANGE,from:48,to:57}],f=()=>[{type:u.CHAR,value:95},{type:u.RANGE,from:97,to:122},{type:u.RANGE,from:65,to:90}].concat(p()),d=()=>[{type:u.CHAR,value:9},{type:u.CHAR,value:10},{type:u.CHAR,value:11},{type:u.CHAR,value:12},{type:u.CHAR,value:13},{type:u.CHAR,value:32},{type:u.CHAR,value:160},{type:u.CHAR,value:5760},{type:u.RANGE,from:8192,to:8202},{type:u.CHAR,value:8232},{type:u.CHAR,value:8233},{type:u.CHAR,value:8239},{type:u.CHAR,value:8287},{type:u.CHAR,value:12288},{type:u.CHAR,value:65279}],h=()=>[{type:u.CHAR,value:10},{type:u.CHAR,value:13},{type:u.CHAR,value:8232},{type:u.CHAR,value:8233}];l.words=()=>({type:u.SET,set:f(),not:!1}),l.notWords=()=>({type:u.SET,set:f(),not:!0}),l.ints=()=>({type:u.SET,set:p(),not:!1}),l.notInts=()=>({type:u.SET,set:p(),not:!0}),l.whitespace=()=>({type:u.SET,set:d(),not:!1}),l.notWhitespace=()=>({type:u.SET,set:d(),not:!0}),l.anyChar=()=>({type:u.SET,set:h(),not:!0}),function(e){let t={0:0,t:9,n:10,v:11,f:12,r:13};e.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,function(e,r,n,o,i,a,s,c){if(n)return e;var u=String.fromCharCode(r?8:o?parseInt(o,16):i?parseInt(i,16):a?parseInt(a,8):s?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(s):t[c]);return/[[\]{}^$.|?*+()]/.test(u)&&(u="\\"+u),u})},e.tokenizeClass=(t,r)=>{for(var n,o,i=[],a=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(n=a.exec(t));)if(n[1])i.push(l.words());else if(n[2])i.push(l.ints());else if(n[3])i.push(l.whitespace());else if(n[4])i.push(l.notWords());else if(n[5])i.push(l.notInts());else if(n[6])i.push(l.notWhitespace());else if(n[7])i.push({type:u.RANGE,from:(n[8]||n[9]).charCodeAt(0),to:n[10].charCodeAt(0)});else{if(!(o=n[12]))return[i,a.lastIndex];i.push({type:u.CHAR,value:o.charCodeAt(0)})}e.error(r,"Unterminated character class")},e.error=(e,t)=>{throw SyntaxError("Invalid regular expression: /"+e+"/: "+t)}}(c);var y={};y.wordBoundary=()=>({type:u.POSITION,value:"b"}),y.nonWordBoundary=()=>({type:u.POSITION,value:"B"}),y.begin=()=>({type:u.POSITION,value:"^"}),y.end=()=>({type:u.POSITION,value:"$"}),s.exports=e=>{var t,r,n=0,o={type:u.ROOT,stack:[]},i=o,a=o.stack,s=[],p=t=>{c.error(e,`Nothing to repeat at column ${t-1}`)},f=c.strToChars(e);for(t=f.length;ne.high)}touches(e){return!(this.high+1e.high)}add(e){return new _(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.highe+t.length,0)}add(t,r){var n=e=>{for(var t=0;t{for(var t=0;t{for(var t=0;t{for(var r=t.low;r<=t.high;)e.push(r),r++;return e},[])}subranges(){return this.ranges.map(e=>({low:e.low,high:e.high,length:1+e.high-e.low}))}},g=m.types;var b=(n=class e{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else if("string"==typeof e)this.ignoreCase=t&&-1!==t.indexOf("i"),this.multiline=t&&-1!==t.indexOf("m");else throw Error("Expected a regexp or string");this.tokens=m(e)}_setDefaults(t){this.max=null!=t.max?t.max:null!=e.prototype.max?e.prototype.max:100,this.defaultRange=t.defaultRange?t.defaultRange:this.defaultRange.clone(),t.randInt&&(this.randInt=t.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var r,n,o,i,a;switch(e.type){case g.ROOT:case g.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&void 0===e.groupNumber&&(e.groupNumber=t.push(null)-1),r=e.options?this._randSelect(e.options):e.stack,n="",i=0,a=r.length;iMath.floor(Math.random()*((t??=100)-(e??=0)+1))+e,O=(e,t)=>Math.random()*((t??=100)-(e??=0))+e,S=e=>Array(e??x(5,10)).fill(0).map(()=>w[x(0,w.length-1)]).join(""),I=(e,t,r)=>{if(t??=k(),!1===(r??=!1))return Array(t??k()).fill(0).map((t,r)=>e(r));{let r=new Set;for(;r.sizee[x(0,e.length-1)],k=()=>x(0,3),P=()=>`${S(10)}@${S(10)}.${S(3)}`,E=()=>`${S(10)}.${S(3)}`,A=()=>`https://${S(10)}.${S(3)}`,M=e=>e.filter(([e,t])=>0!==t).map(([e,t])=>`${t}${e}`).join("");var T=Object.freeze({__proto__:null,array:I,bigint:(e,t)=>BigInt(x(Number(e??BigInt(0)),Number(t??BigInt(100)))),boolean:()=>.5>Math.random(),byte:()=>"vt7ekz4lIoNTTS9sDQYdWKharxIFAR54+z/umIxSgUM=",date:(e,t)=>new Date(O(e??0,t??2*Date.now())).toISOString().substring(0,10),datetime:(e,t)=>new Date(O(e??Date.now()-2592e6,t??Date.now()+6048e5)).toISOString(),duration:()=>{let e=M([["Y",x(0,100)],["M",x(0,12)],["D",x(0,31)]]),t=M([["H",x(0,24)],["M",x(0,60)],["S",x(0,60)]]);return e.length+t.length===0?"PT0S":`P${e}${t.length?"T":""}${t}`},email:P,hostname:E,idnEmail:()=>P(),idnHostname:()=>E(),integer:x,ipv4:()=>I(()=>x(0,255),4).join("."),ipv6:()=>I(()=>x(0,65535).toString(16),8).join(":"),iri:()=>A(),iriReference:()=>A(),jsonPointer:()=>`/components/schemas/${S(10)}`,length:k,number:O,password:()=>S(x(4,16)),pattern:e=>{let t=new b(e);for(let r=0;r<10;++r){let r=t.gen();if(e.test(r))return r}return t.gen()},pick:j,regex:()=>"/^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/",relativeJsonPointer:()=>`${x(0,10)}#`,string:S,time:()=>new Date(O(0,864e5)).toISOString().substring(11),uri:()=>A(),uriReference:()=>A(),uriTemplate:()=>A(),url:A,uuid:()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})});let C=(e,t)=>{let r=null;for(let n=0;n(t,r,n)=>{if(!0===t)throw(n??(e=>new R(e)))({method:e,path:r.path,expected:r.expected,value:r.value});return!1},N=e=>D(e)?`.${e}`:`[${JSON.stringify(e)}]`,D=e=>!1===F(e)&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(e),F=e=>B.has(e),B=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]),L=e=>{let t=t=>{if(0===e.length)return!0;let r=e[e.length-1].path;return t.length>r.length||r.substring(0,t.length)!==t};return(r,n)=>(r&&t(n.path)&&e.push(n),!1)},z=(e,t,r)=>t<=e&&e<=r,$=e=>{try{return BigInt(e),!0}catch{return!1}},U=()=>({is_between:z,is_bigint_string:$}),H=()=>({errorFactory:e=>new R(e)}),Z=e=>{if(!1===isFinite(e))throw new R({method:"typia.json.stringify",expected:"number",value:e,message:"Error on typia.json.stringify(): infinite or not a number."});return e},G=e=>2===e.length?"":","+e.substring(1,e.length-1),V=e=>{let t=e.length,r="",n=-1,o=255;for(var i=0;i=55296&&o<=57343)return JSON.stringify(e);(34===o||92===o)&&(-1===n&&(n=0),r+=e.slice(n,i)+"\\",n=i)}return -1===n&&'"'+e+'"'||'"'+r+e.slice(n)+'"'},J=e=>","===e[e.length-1]?e.substring(0,e.length-1):e,K=e=>t=>{throw new R({...t,method:`typia.${e}`})},W=e=>({...U(),number:Z,string:V,tail:J,rest:G,throws:K(`json.${e}`)}),Q=e=>{let t=Number(e);return isNaN(t)?e:t},X=e=>{try{return BigInt(e)}catch{return e}};var Y=Object.freeze({__proto__:null,array:(e,t)=>e.length?e:t,bigint:e=>e instanceof File?e:e?.length?"null"===e?null:X(e):void 0,blob:e=>e instanceof Blob?e:null===e?void 0:"null"===e?null:e,boolean:e=>e instanceof File?e:null===e?void 0:"null"===e?null:0===e.length||"true"===e||"1"===e||"false"!==e&&"0"!==e&&e,file:e=>e instanceof File?e:null===e?void 0:"null"===e?null:e,number:e=>e instanceof File?e:e?.length?"null"===e?null:Q(e):void 0,string:e=>e instanceof File?e:null===e?void 0:"null"===e?null:e});let ee=e=>{try{return BigInt(e)}catch{return e}},et=e=>{let t=Number(e);return isNaN(t)?e:t};var er=Object.freeze({__proto__:null,bigint:e=>void 0!==e?ee(e):void 0,boolean:e=>void 0!==e?"true"===e||"false"!==e&&e:void 0,number:e=>void 0!==e?et(e):void 0,string:e=>e});let en=e=>{let t=Number(e);return isNaN(t)?e:t},eo=e=>{try{return BigInt(e)}catch{return e}};var ei=Object.freeze({__proto__:null,bigint:e=>"null"!==e?eo(e):null,boolean:e=>"null"!==e?"true"===e||"1"===e||"false"!==e&&"0"!==e&&e:null,number:e=>"null"!==e?en(e):null,string:e=>"null"!==e?e:null});let ea=e=>{let t=Number(e);return isNaN(t)?e:t},es=e=>{try{return BigInt(e)}catch{return e}};var ec=Object.freeze({__proto__:null,array:(e,t)=>e.length?e:t,bigint:e=>e?.length?"null"===e?null:es(e):void 0,boolean:e=>null===e?void 0:"null"===e?null:0===e.length||"true"===e||"1"===e||"false"!==e&&"0"!==e&&e,number:e=>e?.length?"null"===e?null:ea(e):void 0,params:e=>{if("string"==typeof e){let t=e.indexOf("?");return new URLSearchParams(e=-1===t?"":e.substring(t+1))}return e},string:e=>null===e?void 0:"null"===e?null:e});let eu=e=>e.length?e[0].toUpperCase()+e.slice(1).toLowerCase():e;function el(e){if(0===e.length)return e;let t="";for(let r=0;r`${t}${e}`,n=e.split("_");if(n.length>1)return r(n.map(e=>e.toLowerCase()).join("_"));let o=[];for(let t=0;t0;--e)o[e]-o[e-1]==1&&o.splice(e,1);if(0!==o.length&&0===o[0]&&o.splice(0,1),0===o.length)return e.toLowerCase();let i="";for(let t=0;ted({plain:e=>e.length?e===e.toUpperCase()?e.toLocaleLowerCase():`${e[0].toLowerCase()}${e.substring(1)}`:e,snake:(e,t)=>0===t?e.toLowerCase():eu(e.toLowerCase())})(e),ef=e=>ed({plain:e=>e.length?`${e[0].toUpperCase()}${e.substring(1)}`:e,snake:eu})(e),ed=e=>t=>{let r="";for(let e=0;e`${r}${e}`;if(0===t.length)return n("");let o=t.split("_").filter(e=>0!==e.length);return n(0===o.length?"":1===o.length?e.plain(o[0]):o.map(e.snake).join(""))},eh=e=>{let t=e=>{if("object"==typeof e){if(null===e)return null;if(Array.isArray(e))return e.map(t);if(e instanceof Boolean||e instanceof BigInt||e instanceof Number||e instanceof String)return e.valueOf();else if(e instanceof Date)return new Date(e);else if(!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof BigUint64Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof BigInt64Array||e instanceof Float32Array||e instanceof Float64Array||e instanceof DataView))return r(e)}return e},r=r=>Object.fromEntries(Object.entries(r).map(([r,n])=>[e(r),t(n)]));return t},ey=e=>({...ev(e),any:eh(ep)}),em=e=>({...ev(e),any:eh(ef)}),e_=e=>({...ev(e),any:eh(el)}),ev=e=>({...U(),throws:K(`notations.${e}`)}),eg=e=>eb(e),eb=e=>{if(void 0!==e){if("object"==typeof e){if(null===e)return null;if(Array.isArray(e))return e.map(eb);if(e instanceof Date)return new Date(e);else if(e instanceof Uint8Array)return new Uint8Array(e);else if(e instanceof Uint8ClampedArray)return new Uint8ClampedArray(e);else if(e instanceof Uint16Array)return new Uint16Array(e);else if(e instanceof Uint32Array)return new Uint32Array(e);else if(e instanceof BigUint64Array)return new BigUint64Array(e);else if(e instanceof Int8Array)return new Int8Array(e);else if(e instanceof Int16Array)return new Int16Array(e);else if(e instanceof Int32Array)return new Int32Array(e);else if(e instanceof BigInt64Array)return new BigInt64Array(e);else if(e instanceof Float32Array)return new Float32Array(e);else if(e instanceof Float64Array)return new Float64Array(e);else if(e instanceof ArrayBuffer)return e.slice(0);else if(e instanceof SharedArrayBuffer)return e.slice(0);else if(e instanceof DataView)return new DataView(e.buffer.slice(0));else if("undefined"!=typeof File&&e instanceof File)return new File([e],e.name,{type:e.type});else if("undefined"!=typeof Blob&&e instanceof Blob)return new Blob([e],{type:e.type});else if(e instanceof Set)return new Set([...e].map(eb));else if(e instanceof Map)return new Map([...e].map(([e,t])=>[eb(e),eb(t)]));else if(e instanceof WeakSet||e instanceof WeakMap)throw Error("WeakSet and WeakMap are not supported");else if(e.valueOf()!==e)return eb(e.valueOf());else return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,eb(t)]).filter(([,e])=>void 0!==e))}if("function"!=typeof e)return e}},ew=e=>eg(e),ex=e=>({...U(),throws:K(`misc.${e}`),any:ew}),eO=e=>({...U(),throws:K(`misc.${e}`)});class eS{closure_;value_;constructor(e){this.closure_=e,this.value_=eI}get(...e){return this.value_===eI&&(this.value_=this.closure_(...e)),this.value_}}let eI={};class ej{buf;ptr;view;constructor(e){this.buf=e,this.ptr=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}index(){return this.ptr}size(){return this.buf.length}uint32(){return this.varint32()}int32(){return this.varint32()}sint32(){let e=this.varint32();return e>>>1^-(1&e)}uint64(){return this.varint64()}int64(){return this.varint64()}sint64(){let e=this.varint64();return e>>BigInt(1)^-(e&BigInt(1))}bool(){return 0!==this.varint32()}float(){let e=this.view.getFloat32(this.ptr,!0);return this.ptr+=4,e}double(){let e=this.view.getFloat64(this.ptr,!0);return this.ptr+=8,e}bytes(){let e=this.uint32(),t=this.ptr;return this.ptr+=e,this.buf.subarray(t,t+e)}string(){return ek.get().decode(this.bytes())}skip(e){if(0===e)for(;128&this.u8(););else{if(this.index()+e>this.size())throw Error("Error on typia.protobuf.decode(): buffer overflow.");this.ptr+=e}}skipType(e){switch(e){case 0:this.skip(0);break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error(`Invalid wire type ${e} at offset ${this.ptr}.`)}}varint32(){let e,t;return t=127&(e=this.u8()),e<128||(t|=(127&(e=this.u8()))<<7,e<128||(t|=(127&(e=this.u8()))<<14,e<128||(t|=(127&(e=this.u8()))<<21,e<128||(t|=(15&(e=this.u8()))<<28,e<128||128>this.u8()||128>this.u8()||128>this.u8()||128>this.u8()||this.u8())))),t}varint64(){let e,t;return(t=(e=this.u8n())&BigInt(127),enew TextDecoder("utf-8")),eP=e=>new Blob([e]).size;class eE{len;pos;varlen;varlenidx;constructor(e=0){this.len=e,this.pos=[],this.varlen=[],this.varlenidx=[]}bool(){this.len+=1}int32(e){e<0?this.len+=10:this.varint32(e)}sint32(e){this.varint32(e<<1^e>>31)}uint32(e){this.varint32(e)}int64(e){this.varint64("number"==typeof e?BigInt(e):e)}sint64(e){"number"==typeof e&&(e=BigInt(e)),this.varint64(e<>BigInt(63))}uint64(e){this.varint64("number"==typeof e?BigInt(e):e)}float(e){this.len+=4}double(e){this.len+=8}bytes(e){this.uint32(e.byteLength),this.len+=e.byteLength}string(e){let t=eP(e);this.varlen.push(t),this.uint32(t),this.len+=t}fork(){this.pos.push(this.len),this.varlenidx.push(this.varlen.length),this.varlen.push(0)}ldelim(){if(!(this.pos.length&&this.varlenidx.length))throw Error("Error on typia.protobuf.encode(): missing fork() before ldelim() call.");let e=this.len,t=this.pos.pop(),r=this.varlenidx.pop(),n=e-t;this.varlen[r]=n,this.uint32(n)}reset(){this.len=0,this.pos.length=0,this.varlen.length=0,this.varlenidx.length=0}varint32(e){this.len+=e<0?10:e<128?1:e<16384?2:e<2097152?3:e<268435456?4:5}varint64(e){for(e=BigInt.asUintN(64,e);e>BigInt(127);)++this.len,e>>=BigInt(7);++this.len}}class eA{sizer;ptr;buf;view;varlenidx;constructor(e){this.sizer=e,this.buf=new Uint8Array(e.len),this.view=new DataView(this.buf.buffer),this.ptr=0,this.varlenidx=0}buffer(){return this.buf}bool(e){this.byte(e?1:0)}byte(e){this.buf[this.ptr++]=255&e}int32(e){e<0?this.int64(e):this.variant32(e>>>0)}sint32(e){this.variant32(e<<1^e>>31)}uint32(e){this.variant32(e)}sint64(e){e=BigInt(e),this.variant64(e<>BigInt(63))}int64(e){this.variant64(BigInt(e))}uint64(e){this.variant64(BigInt(e))}float(e){this.view.setFloat32(this.ptr,e,!0),this.ptr+=4}double(e){this.view.setFloat64(this.ptr,e,!0),this.ptr+=8}bytes(e){this.uint32(e.byteLength);for(let t=0;t127;)this.buf[this.ptr++]=127&e|128,e>>>=7;this.buf[this.ptr++]=e}variant64(e){for(e=BigInt.asUintN(64,e);e>BigInt(127);)this.buf[this.ptr++]=Number(e&BigInt(127)|BigInt(128)),e>>=BigInt(7);this.buf[this.ptr++]=Number(e)}varlen(){return this.varlenidx>=this.sizer.varlen.length?0:this.sizer.varlen[this.varlenidx++]}}let eM=new eS(()=>new TextEncoder),eT=e=>({...U(),Reader:ej,throws:K(`protobuf.${e}`)}),eC=e=>({...U(),Sizer:eE,Writer:eA,strlen:eP,throws:K(e)});(o=i||(i={})).visit=(e,t)=>{if(t(e),o.isOneOf(e))e.oneOf.forEach(e=>o.visit(e,t));else if(o.isObject(e)){for(let[r,n]of Object.entries(e.properties??{}))o.visit(n,t);"object"==typeof e.additionalProperties&&null!==e.additionalProperties&&o.visit(e.additionalProperties,t)}else o.isArray(e)&&o.visit(e.items,t)},o.isOneOf=e=>void 0!==e.oneOf,o.isObject=e=>"object"===e.type,o.isArray=e=>"array"===e.type,o.isBoolean=e=>"boolean"===e.type,o.isInteger=e=>"integer"===e.type,o.isNumber=e=>"number"===e.type,o.isString=e=>"string"===e.type,o.isNullOnly=e=>"null"===e.type,o.isNullable=e=>!o.isUnknown(e)&&(o.isNullOnly(e)||(o.isOneOf(e)?e.oneOf.some(o.isNullable):!0===e.nullable)),o.isUnknown=e=>!o.isOneOf(e)&&void 0===e.type,function(e){e.parameters=t=>{let r=t.parameters.map(e.schema(t.predicator));return{llm:r.map(([e],t)=>({index:t,schema:e})).filter(({schema:e})=>null!==e),human:r.map(([,e],t)=>({index:t,schema:e})).filter(({schema:e})=>null!==e)}},e.schema=e=>n=>{if(!0===e(n))return[null,n];if(i.isUnknown(n)||i.isOneOf(n));else if(i.isObject(n))return r(e)(n);else if(i.isArray(n))return t(e)(n);return[n,null]};let t=t=>r=>{let[n,o]=e.schema(t)(r.items);return[null!==n?{...r,items:n}:null,null!==o?{...r,items:o}:null]},r=t=>r=>{if(r.additionalProperties||0===Object.keys(r.properties??{}).length)return[r,null];let o={...r,properties:{}},i={...r,properties:{}};for(let[n,a]of Object.entries(r.properties??{})){let[r,s]=e.schema(t)(a);null!==r&&(o.properties[n]=r),null!==s&&(i.properties[n]=s)}return[0===Object.keys(o.properties).length?null:n(o),0===Object.keys(i.properties).length?null:n(i)]},n=e=>(void 0!==e.required&&(e.required=e.required.filter(t=>e.properties?.[t]!==void 0)),e)}(a||(a={}));let eR=e=>({...U(),join:N,every:C,guard:q(`typia.${e}`),predicate:(t,r,n)=>{if(!1===t&&!0===r)throw new R({...n(),method:`typia.${e}`});return t}}),eq=()=>({...U(),join:N,report:L,predicate:e=>(t,r,n)=>(!1===t&&!0===r&&(()=>{e.success&&=!1;let t=e.errors,r=n();if(t.length){let e=t[t.length-1].path;if(e.length>=r.path.length&&e.substring(0,r.path.length)===r.path)return}t.push(r)})(),t)});function eN(){eX("assertFunction")}let eD=Object.assign(eN,eR("functional.assertFunction"),H()),eF=Object.assign(eN,eR("functional.assertFunction"),H()),eB=Object.assign(function(){eX("assertReturn")},eR("functional.assertReturn"),H()),eL=Object.assign(function(){eX("assertEqualsFunction")},eR("functional.assertEqualsFunction"),H()),ez=Object.assign(function(){eX("assertEqualsParameters")},eR("functional.assertEqualsParameters"),H()),e$=Object.assign(function(){eX("assertEqualsReturn")},eR("functional.assertEqualsReturn"),H()),eU=Object.assign(function(){eX("isFunction")},U()),eH=Object.assign(function(){eX("isParameters")},U()),eZ=Object.assign(function(){eX("isReturn")},U()),eG=Object.assign(function(){eX("equalsFunction")},U()),eV=Object.assign(function(){eX("equalsParameters")},U()),eJ=Object.assign(function(){eX("equalsReturn")},U()),eK=Object.assign(function(){eX("validateFunction")},eq()),eW=Object.assign(function(){eX("validateReturn")},eq()),eQ=Object.assign(function(){eX("validateReturn")},eq());function eX(e){throw Error(`Error on typia.functional.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var eY=Object.freeze({__proto__:null,assertEqualsFunction:eL,assertEqualsParameters:ez,assertEqualsReturn:e$,assertFunction:eD,assertParameters:eF,assertReturn:eB,equalsFunction:eG,equalsParameters:eV,equalsReturn:eJ,isFunction:eU,isParameters:eH,isReturn:eZ,validateEqualsFunction:Object.assign(function(){eX("validateEqualsFunction")},eq()),validateEqualsParameters:Object.assign(function(){eX("validateEqualsParameters")},eq()),validateEqualsReturn:Object.assign(function(){eX("validateEqualsReturn")},eq()),validateFunction:eK,validateParameters:eW,validateReturn:eQ});let e0=Object.assign(function(){ty("formData")},Y),e1=Object.assign(function(){ty("assertFormData")},Y,eR("http.assertFormData")),e2=Object.assign(function(){ty("isFormData")},Y,U()),e4=Object.assign(function(){ty("validateFormData")},Y,eq()),e3=Object.assign(function(){ty("query")},ec),e9=Object.assign(function(){ty("assertQuery")},ec,eR("http.assertQuery")),e6=Object.assign(function(){ty("isQuery")},ec,U()),e5=Object.assign(function(){ty("validateQuery")},ec,eq()),e8=Object.assign(function(){ty("headers")},er),e7=Object.assign(function(){ty("assertHeaders")},er,eR("http.assertHeaders")),te=Object.assign(function(){ty("isHeaders")},er,U()),tt=Object.assign(function(){ty("validateHeaders")},er,eq()),tr=Object.assign(function(){ty("parameter")},ei,eR("http.parameter")),tn=Object.assign(function(){ty("createFormData")},Y),to=Object.assign(function(){ty("createAssertFormData")},Y,eR("http.createAssertFormData")),ti=Object.assign(function(){ty("createIsFormData")},Y,U()),ta=Object.assign(function(){ty("createValidateFormData")},Y,eq()),ts=Object.assign(function(){ty("createQuery")},ec),tc=Object.assign(function(){ty("createAssertQuery")},ec,eR("http.createAssertQuery")),tu=Object.assign(function(){ty("createIsQuery")},ec,U()),tl=Object.assign(function(){ty("createValidateQuery")},ec,eq()),tp=Object.assign(function(){ty("createHeaders")},er),tf=Object.assign(function(){ty("createAssertHeaders")},er,eR("http.createAssertHeaders")),td=Object.assign(function(){ty("createIsHeaders")},er,U()),th=Object.assign(function(){ty("createValidateHeaders")},er,eq());function ty(e){throw Error(`Error on typia.http.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var tm=Object.freeze({__proto__:null,assertFormData:e1,assertHeaders:e7,assertQuery:e9,createAssertFormData:to,createAssertHeaders:tf,createAssertQuery:tc,createFormData:tn,createHeaders:tp,createIsFormData:ti,createIsHeaders:td,createIsQuery:tu,createParameter:Object.assign(function(){ty("createParameter")},ei,eR("http.createParameter")),createQuery:ts,createValidateFormData:ta,createValidateHeaders:th,createValidateQuery:tl,formData:e0,headers:e8,isFormData:e2,isHeaders:te,isQuery:e6,parameter:tr,query:e3,validateFormData:e4,validateHeaders:tt,validateQuery:e5});function t_(e){throw Error(`Error on typia.llm.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var tv=Object.freeze({__proto__:null,application:Object.assign(function(){t_("application")},{finalize:(e,t)=>{if(e.options={separate:t?.separate??null},null!==e.options.separate)for(let t of e.functions)t.separated=a.parameters({parameters:t.parameters,predicator:e.options.separate})}}),schema:function(){t_("schema")}});let tg=Object.assign(function(){tM("assertParse")},eR("json.assertParse")),tb=Object.assign(function(){tM("isParse")},U()),tw=Object.assign(function(){tM("validateParse")},eq()),tx=Object.assign(function(){tM("stringify")},W("stringify")),tO=Object.assign(function(){tM("assertStringify")},eR("json.assertStringify"),W("assertStringify")),tS=Object.assign(function(){tM("isStringify")},U(),W("isStringify")),tI=Object.assign(function(){tM("validateStringify")},eq(),W("validateStringify")),tj=Object.assign(function(){tM("createIsParse")},tb),tk=Object.assign(function(){tM("createAssertParse")},tg),tP=Object.assign(function(){tM("createValidateParse")},tw),tE=Object.assign(function(){tM("createStringify")},tx),tA=Object.assign(function(){tM("createAssertStringify")},tO);function tM(e){throw Error(`Error on typia.json.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var tT=Object.freeze({__proto__:null,application:function(){tM("application")},assertParse:tg,assertStringify:tO,createAssertParse:tk,createAssertStringify:tA,createIsParse:tj,createIsStringify:Object.assign(function(){tM("createIsStringify")},tS),createStringify:tE,createValidateParse:tP,createValidateStringify:Object.assign(function(){tM("createValidateStringify")},tI),isParse:tb,isStringify:tS,stringify:tx,validateParse:tw,validateStringify:tI});let tC=Object.assign(function(){tV("clone")},ex("clone")),tR=Object.assign(function(){tV("assertClone")},eR("misc.assertClone"),ex("assertClone")),tq=Object.assign(function(){tV("isClone")},U(),ex("isClone")),tN=Object.assign(function(){tV("validateClone")},eq(),ex("validateClone")),tD=Object.assign(function(){tV("prune")},eO("prune")),tF=Object.assign(function(){tV("assertPrune")},eR("misc.assertPrune"),eO("assertPrune")),tB=Object.assign(function(){tV("isPrune")},U(),eO("isPrune")),tL=Object.assign(function(){tV("validatePrune")},eO("validatePrune"),eq()),tz=Object.assign(function(){tV("createClone")},tC),t$=Object.assign(function(){tV("createAssertClone")},tR),tU=Object.assign(function(){tV("createIsClone")},tq),tH=Object.assign(function(){tV("createValidateClone")},tN),tZ=Object.assign(function(){tV("createPrune")},tD),tG=Object.assign(function(){tV("createAssertPrune")},tF);function tV(e){throw Error(`Error on typia.misc.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var tJ=Object.freeze({__proto__:null,assertClone:tR,assertPrune:tF,clone:tC,createAssertClone:t$,createAssertPrune:tG,createClone:tz,createIsClone:tU,createIsPrune:Object.assign(function(){tV("createIsPrune")},tB),createPrune:tZ,createValidateClone:tH,createValidatePrune:Object.assign(function(){tV("createValidatePrune")},tL),isClone:tq,isPrune:tB,literals:function(){tV("literals")},prune:tD,validateClone:tN,validatePrune:tL});let tK=Object.assign(function(){return ra("camel")},ey("camel")),tW=Object.assign(function(){return ra("assertCamel")},ey("assertCamel"),eR("notations.assertCamel")),tQ=Object.assign(function(){return ra("isCamel")},ey("isCamel"),U()),tX=Object.assign(function(){return ra("validateCamel")},ey("validateCamel"),eq()),tY=Object.assign(function(){return ra("pascal")},em("pascal")),t0=Object.assign(function(){return ra("assertPascal")},em("assertPascal"),eR("notations.assertPascal")),t1=Object.assign(function(){return ra("isPascal")},em("isPascal"),U()),t2=Object.assign(function(){return ra("validatePascal")},em("validatePascal"),eq()),t4=Object.assign(function(){return ra("snake")},e_("snake")),t3=Object.assign(function(){return ra("assertSnake")},e_("assertSnake"),eR("notations.assertSnake")),t9=Object.assign(function(){return ra("isSnake")},e_("isSnake"),U()),t6=Object.assign(function(){return ra("validateSnake")},e_("validateSnake"),eq()),t5=Object.assign(function(){ra("createCamel")},ey("createCamel")),t8=Object.assign(function(){ra("createAssertCamel")},ey("createAssertCamel"),eR("notations.createAssertCamel")),t7=Object.assign(function(){ra("createIsCamel")},ey("createIsCamel"),U()),re=Object.assign(function(){ra("createValidateCamel")},ey("createValidateCamel"),eq()),rt=Object.assign(function(){ra("createPascal")},em("createPascal")),rr=Object.assign(function(){ra("createAssertPascal")},em("createAssertPascal"),eR("notations.createAssertPascal")),rn=Object.assign(function(){ra("createIsPascal")},em("createIsPascal"),U()),ro=Object.assign(function(){ra("createValidatePascal")},em("createValidatePascal"),eq()),ri=Object.assign(function(){ra("createSnake")},e_("createSnake"));function ra(e){throw Error(`Error on typia.notations.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var rs=Object.freeze({__proto__:null,assertCamel:tW,assertPascal:t0,assertSnake:t3,camel:tK,createAssertCamel:t8,createAssertPascal:rr,createAssertSnake:Object.assign(function(){ra("createAssertSnake")},e_("createAssertSnake"),eR("notations.createAssertSnake")),createCamel:t5,createIsCamel:t7,createIsPascal:rn,createIsSnake:Object.assign(function(){ra("createIsSnake")},e_("createIsSnake"),U()),createPascal:rt,createSnake:ri,createValidateCamel:re,createValidatePascal:ro,createValidateSnake:Object.assign(function(){ra("createValidateSnake")},e_("createValidateSnake"),eq()),isCamel:tQ,isPascal:t1,isSnake:t9,pascal:tY,snake:t4,validateCamel:tX,validatePascal:t2,validateSnake:t6});let rc=Object.assign(function(){rx("decode")},eT("decode")),ru=Object.assign(function(){rx("assertDecode")},eR("protobuf.assertDecode"),eT("assertDecode")),rl=Object.assign(function(){rx("isDecode")},U(),eT("isDecode")),rp=Object.assign(function(){rx("validateDecode")},eq(),eT("validateDecode")),rf=Object.assign(function(){rx("encode")},eC("encode")),rd=Object.assign(function(){rx("assertEncode")},eR("protobuf.assertEncode"),eC("assertEncode")),rh=Object.assign(function(){rx("isEncode")},U(),eC("isEncode")),ry=Object.assign(function(){rx("validateEncode")},eq(),eC("validateEncode")),rm=Object.assign(function(){rx("createDecode")},eT("createDecode")),r_=Object.assign(function(){rx("createIsDecode")},U(),eT("createIsDecode")),rv=Object.assign(function(){rx("createAssertDecode")},eR("protobuf.createAssertDecode"),eT("createAssertDecode")),rg=Object.assign(function(){rx("createValidateDecode")},eq(),eT("createValidateDecode")),rb=Object.assign(function(){rx("createEncode")},eC("createEncode")),rw=Object.assign(function(){rx("createIsEncode")},U(),eC("createIsEncode"));function rx(e){throw Error(`Error on typia.protobuf.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var rO=Object.freeze({__proto__:null,assertDecode:ru,assertEncode:rd,createAssertDecode:rv,createAssertEncode:Object.assign(function(){rx("createAssertEncode")},eR("protobuf.createAssertEncode"),eC("createAssertEncode")),createDecode:rm,createEncode:rb,createIsDecode:r_,createIsEncode:rw,createValidateDecode:rg,createValidateEncode:Object.assign(function(){rx("createValidateEncode")},eq(),eC("createValidateEncode")),decode:rc,encode:rf,isDecode:rl,isEncode:rh,message:function(){rx("message")},validateDecode:rp,validateEncode:ry});function rS(e){throw Error(`Error on typia.reflect.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var rI=Object.freeze({__proto__:null,metadata:Object.assign(function(){rS("metadata")},{from:e=>e}),name:function(){rS("name")}}),rj=Object.freeze({__proto__:null});let rk=Object.assign(function(){rZ("assert")},eR("assert")),rP=Object.assign(function(){rZ("assertGuard")},eR("assertGuard")),rE=Object.assign(function(){rZ("is")},eR("is")),rA=Object.assign(function(){rZ("validate")},eq()),rM=Object.assign(function(){rZ("assertEquals")},eR("assertEquals")),rT=Object.assign(function(){rZ("assertGuardEquals")},eR("assertGuardEquals")),rC=Object.assign(function(){rZ("equals")},U()),rR=Object.assign(function(){rZ("validateEquals")},eq()),rq=Object.assign(function(){rZ("random")},{generator:T,pick:j}),rN=Object.assign(function(){rZ("createAssert")},rk),rD=Object.assign(function(){rZ("createAssertGuard")},rP),rF=Object.assign(function(){rZ("createIs")},rE),rB=Object.assign(function(){rZ("createValidate")},rA),rL=Object.assign(function(){rZ("createAssertEquals")},rM),rz=Object.assign(function(){rZ("createAssertGuardEquals")},rT),r$=Object.assign(function(){rZ("createEquals")},rC),rU=Object.assign(function(){rZ("createValidateEquals")},rR),rH=Object.assign(function(){rZ("createRandom")},rq);function rZ(e){throw Error(`Error on typia.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var rG=Object.freeze({__proto__:null,TypeGuardError:R,assert:rk,assertEquals:rM,assertGuard:rP,assertGuardEquals:rT,createAssert:rN,createAssertEquals:rL,createAssertGuard:rD,createAssertGuardEquals:rz,createEquals:r$,createIs:rF,createRandom:rH,createValidate:rB,createValidateEquals:rU,equals:rC,functional:eY,http:tm,is:rE,json:tT,llm:tv,misc:tJ,notations:rs,protobuf:rO,random:rq,reflect:rI,tags:rj,validate:rA,validateEquals:rR})}}]); \ No newline at end of file diff --git a/_next/static/chunks/269-bb5232fb822cb6cf.js b/_next/static/chunks/269-bb5232fb822cb6cf.js new file mode 100644 index 000000000..862882c97 --- /dev/null +++ b/_next/static/chunks/269-bb5232fb822cb6cf.js @@ -0,0 +1,35 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[269],{75269:function(e,t,n){let r,u;n.d(t,{I:function(){return uZ}});var i,o,a=n(85893),l=n(51714),s=n(17586),D=n(60504),c=n(88735),p=n(24562),d=n(11901),f=n(73173),h=n(79979),g={isObject:function(e){return"object"==typeof e&&null!==e},repeat:function(e,t){var n,r="";for(n=0;na&&(t=r-a+(i=" ... ").length),n-r>a&&(n=r+a-(o=" ...").length),{str:i+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+i.length}}function C(e,t){return g.repeat(" ",t-e.length)+e}m.prototype=Object.create(Error.prototype),m.prototype.constructor=m,m.prototype.toString=function(e){return this.name+": "+F(this,e)};var E=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],u=[],i=-1;o=n.exec(e.buffer);)u.push(o.index),r.push(o.index+o[0].length),e.position<=o.index&&i<0&&(i=r.length-2);i<0&&(i=r.length-1);var o,a,l,s="",D=Math.min(e.line+t.linesAfter,u.length).toString().length,c=t.maxLength-(t.indent+D+3);for(a=1;a<=t.linesBefore&&!(i-a<0);a++)l=y(e.buffer,r[i-a],u[i-a],e.position-(r[i]-r[i-a]),c),s=g.repeat(" ",t.indent)+C((e.line-a+1).toString(),D)+" | "+l.str+"\n"+s;for(l=y(e.buffer,r[i],u[i],e.position,c),s+=g.repeat(" ",t.indent)+C((e.line+1).toString(),D)+" | "+l.str+"\n"+g.repeat("-",t.indent+D+3+l.pos)+"^\n",a=1;a<=t.linesAfter&&!(i+a>=u.length);a++)l=y(e.buffer,r[i+a],u[i+a],e.position-(r[i]-r[i+a]),c),s+=g.repeat(" ",t.indent)+C((e.line+a+1).toString(),D)+" | "+l.str+"\n";return s.replace(/\n$/,"")},b=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],j=["scalar","sequence","mapping"],M=function(e,t){var n,r;if(Object.keys(t=t||{}).forEach(function(t){if(-1===b.indexOf(t))throw new m('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(n=t.styleAliases||null,r={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){r[String(t)]=e})}),r),-1===j.indexOf(this.kind))throw new m('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function w(e,t){var n=[];return e[t].forEach(function(e){var t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function I(e){return this.extend(e)}I.prototype.extend=function(e){var t=[],n=[];if(e instanceof M)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new m("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(e){if(!(e instanceof M))throw new m("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new m("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new m("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(e){if(!(e instanceof M))throw new m("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var r=Object.create(I.prototype);return r.implicit=(this.implicit||[]).concat(t),r.explicit=(this.explicit||[]).concat(n),r.compiledImplicit=w(r,"implicit"),r.compiledExplicit=w(r,"explicit"),r.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function r(e){e.multi?(n.multi[e.kind].push(e),n.multi.fallback.push(e)):n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),L=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),k=/^[-+]?[0-9]+e/,S=new M("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!!(null!==e&&L.test(e)&&"_"!==e[e.length-1])},construct:function(e){var t,n;return(n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||g.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(g.isNegativeZero(e))return"-0.0";return n=e.toString(10),k.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"}),B=N.extend({implicit:[x,v,A,S]}),T=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),O=RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"),P=new M("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==T.exec(e)||null!==O.exec(e))},construct:function(e){var t,n,r,u,i,o,a,l,s=0,D=null;if(null===(t=T.exec(e))&&(t=O.exec(e)),null===t)throw Error("Date resolve error");if(n=+t[1],r=+t[2]-1,u=+t[3],!t[4])return new Date(Date.UTC(n,r,u));if(i=+t[4],o=+t[5],a=+t[6],t[7]){for(s=t[7].slice(0,3);s.length<3;)s+="0";s=+s}return t[9]&&(D=(60*+t[10]+ +(t[11]||0))*6e4,"-"===t[9]&&(D=-D)),l=new Date(Date.UTC(n,r,u,i,o,a,s)),D&&l.setTime(l.getTime()-D),l},instanceOf:Date,represent:function(e){return e.toISOString()}}),z=new M("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r",Z=new M("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,u=e.length;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,r=e.replace(/[\r\n=]/g,""),u=r.length,i=0,o=[];for(t=0;t>16&255),o.push(i>>8&255),o.push(255&i)),i=i<<6|Y.indexOf(r.charAt(t));return 0==(n=u%4*6)?(o.push(i>>16&255),o.push(i>>8&255),o.push(255&i)):18===n?(o.push(i>>10&255),o.push(i>>2&255)):12===n&&o.push(i>>4&255),new Uint8Array(o)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,n,r="",u=0,i=e.length;for(t=0;t>18&63]+Y[u>>12&63]+Y[u>>6&63]+Y[63&u]),u=(u<<8)+e[t];return 0==(n=i%3)?r+=Y[u>>18&63]+Y[u>>12&63]+Y[u>>6&63]+Y[63&u]:2===n?r+=Y[u>>10&63]+Y[u>>4&63]+Y[u<<2&63]+Y[64]:1===n&&(r+=Y[u>>2&63]+Y[u<<4&63]+Y[64]+Y[64]),r}}),_=Object.prototype.hasOwnProperty,G=Object.prototype.toString,U=new M("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,u,i,o=[];for(t=0,n=e.length;t1&&(e.result+=g.repeat("\n",t-1))}function eb(e,t){var n,r,u=e.tag,i=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),r=e.input.charCodeAt(e.position);0!==r&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,ep(e,"tab characters must not be used in indentation")),45===r&&eu(e.input.charCodeAt(e.position+1)));){if(a=!0,e.position++,ey(e,!0,-1)&&e.lineIndent<=t){o.push(null),r=e.input.charCodeAt(e.position);continue}if(n=e.line,ej(e,t,3,!1,!0),o.push(e.result),ey(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)ep(e,"bad indentation of a sequence entry");else if(e.lineIndentt?f=1:e.lineIndent===t?f=0:e.lineIndentt?f=1:e.lineIndent===t?f=0:e.lineIndentt)&&(F&&(o=e.line,a=e.lineStart,l=e.position),ej(e,t,4,!0,u)&&(F?h=e.result:g=e.result),F||(eF(e,p,d,f,h,g,o,a,l),f=h=g=null),ey(e,!0,-1),s=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==s)ep(e,"bad indentation of a mapping entry");else if(e.lineIndent=0)0===i?ep(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?ep(e,"repeat of an indentation width identifier"):(D=t+i-1,s=!0);else break;if(er(o)){do o=e.input.charCodeAt(++e.position);while(er(o));if(35===o)do o=e.input.charCodeAt(++e.position);while(!en(o)&&0!==o)}for(;0!==o;){for(em(e),e.lineIndent=0,o=e.input.charCodeAt(e.position);(!s||e.lineIndentD&&(D=e.lineIndent),en(o)){c++;continue}if(e.lineIndent0){for(u=o,i=0;u>0;u--)(o=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:ep(e,"expected hexadecimal character");e.result+=(s=i)<=65535?String.fromCharCode(s):String.fromCharCode((s-65536>>10)+55296,(s-65536&1023)+56320),e.position++}else ep(e,"unknown escape sequence");n=r=e.position}else en(a)?(eh(e,n,r,!0),eE(e,ey(e,!1,t)),n=r=e.position):e.position===e.lineStart&&eC(e)?ep(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}ep(e,"unexpected end of the stream within a double quoted scalar")}(e,p)?F=!0:function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!eu(r)&&!ei(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ep(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),V.call(e.anchorMap,n)||ep(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],ey(e,!0,-1),!0}(e)?(F=!0,(null!==e.tag||null!==e.anchor)&&ep(e,"alias node should not have any properties")):function(e,t,n){var r,u,i,o,a,l,s,D,c=e.kind,p=e.result;if(eu(D=e.input.charCodeAt(e.position))||ei(D)||35===D||38===D||42===D||33===D||124===D||62===D||39===D||34===D||37===D||64===D||96===D||(63===D||45===D)&&(eu(r=e.input.charCodeAt(e.position+1))||n&&ei(r)))return!1;for(e.kind="scalar",e.result="",u=i=e.position,o=!1;0!==D;){if(58===D){if(eu(r=e.input.charCodeAt(e.position+1))||n&&ei(r))break}else if(35===D){if(eu(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&eC(e)||n&&ei(D))break;else if(en(D)){if(a=e.line,l=e.lineStart,s=e.lineIndent,ey(e,!1,-1),e.lineIndent>=t){o=!0,D=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=l,e.lineIndent=s;break}o&&(eh(e,u,i,!1),eE(e,e.line-a),u=i=e.position,o=!1),er(D)||(i=e.position+1),D=e.input.charCodeAt(++e.position)}return eh(e,u,i,!1),!!e.result||(e.kind=c,e.result=p,!1)}(e,p,1===n)&&(F=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(F=a&&eb(e,d))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&ep(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),l=0,s=e.implicitTypes.length;l"),null!==e.result&&c.kind!==e.kind&&ep(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+c.kind+'", not "'+e.kind+'"'),c.resolve(e.result,e.tag)?(e.result=c.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):ep(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||F}var eM=function(e,t){var n=function(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new eD(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,ep(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position0)&&37===u);){for(o=!0,u=e.input.charCodeAt(++e.position),t=e.position;0!==u&&!eu(u);)u=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),r=[],n.length<1&&ep(e,"directive name must not be less than one character in length");0!==u;){for(;er(u);)u=e.input.charCodeAt(++e.position);if(35===u){do u=e.input.charCodeAt(++e.position);while(0!==u&&!en(u));break}if(en(u))break;for(t=e.position;0!==u&&!eu(u);)u=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==u&&em(e),V.call(ef,n)?ef[n](e,n,r):ed(e,'unknown document directive "'+n+'"')}if(ey(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,ey(e,!0,-1)):o&&ep(e,"directives end mark is expected"),ej(e,e.lineIndent-1,4,!1,!0),ey(e,!0,-1),e.checkLineBreaks&&q.test(e.input.slice(i,e.position))&&ed(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&eC(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,ey(e,!0,-1));return}e.position=55296&&r<=56319&&t+1=56320&&n<=57343?(r-55296)*1024+n-56320+65536:r}function eP(e){return/^\n* /.test(e)}function ez(e,t){var n=eP(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function eY(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function eZ(e,t){if(""===e||" "===e[0])return e;for(var n,r,u=/ [^ ]/g,i=0,o=0,a=0,l="";n=u.exec(e);)(a=n.index)-i>t&&(r=o>i?o:a,l+="\n"+e.slice(i,r),i=r+1),o=a;return l+="\n",e.length-i>t&&o>i?l+=e.slice(i,o)+"\n"+e.slice(o+1):l+=e.slice(i),l.slice(1)}function e_(e,t,n,r){var u,i,o,a="",l=e.tag;for(u=0,i=n.length;u tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function eU(e,t,n,r,u,i,o){e.tag=null,e.dump=n,eG(e,n,!1)||eG(e,n,!0);var a,l=ew.call(e.dump),s=r;r&&(r=e.flowLevel<0||e.flowLevel>t);var D,c,p,d="[object Object]"===l||"[object Array]"===l;if(d&&(p=-1!==(c=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(u=!1),p&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(d&&p&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=!0),"[object Object]"===l)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var u,i,o,a,l,s,D="",c=e.tag,p=Object.keys(n);if(!0===e.sortKeys)p.sort();else if("function"==typeof e.sortKeys)p.sort(e.sortKeys);else if(e.sortKeys)throw new m("sortKeys must be a boolean or a function");for(u=0,i=p.length;u1024)&&(e.dump&&10===e.dump.charCodeAt(0)?s+="?":s+="? "),s+=e.dump,l&&(s+=eL(e,t)),eU(e,t+1,a,!0,l)&&(e.dump&&10===e.dump.charCodeAt(0)?s+=":":s+=": ",s+=e.dump,D+=s));e.tag=c,e.dump=D||"{}"}(e,t,e.dump,u),p&&(e.dump="&ref_"+c+e.dump)):(!function(e,t,n){var r,u,i,o,a,l="",s=e.tag,D=Object.keys(n);for(r=0,u=D.length;r1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),eU(e,t,o,!1,!1)&&(a+=e.dump,l+=a));e.tag=s,e.dump="{"+l+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+c+" "+e.dump));else if("[object Array]"===l)r&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?e_(e,t-1,e.dump,u):e_(e,t,e.dump,u),p&&(e.dump="&ref_"+c+e.dump)):(!function(e,t,n){var r,u,i,o="",a=e.tag;for(r=0,u=n.length;r=65536?D+=2:D++){if(!eS(c=eO(e,D)))return 5;F=F&&eT(c,p,a),p=c}else{for(D=0;D=65536?D+=2:D++){if(10===(c=eO(e,D)))d=!0,h&&(f=f||D-g-1>r&&" "!==e[g+1],g=D);else if(!eS(c))return 5;F=F&&eT(c,p,a),p=c}f=f||h&&D-g-1>r&&" "!==e[g+1]}return d||f?n>9&&eP(e)?5:o?2===i?5:2:f?4:3:!F||o||u(e)?2===i?5:2:1}(a,i||e.flowLevel>-1&&t>=e.flowLevel,e.indent,r,function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n"+ez(a,e.indent)+eY(eA(function(e,t){for(var n,r,u,i=/(\n+)([^\n]*)/g,o=(n=-1!==(n=e.indexOf("\n"))?n:e.length,i.lastIndex=n,eZ(e.slice(0,n),t)),a="\n"===e[0]||" "===e[0];u=i.exec(e);){var l=u[1],s=u[2];r=" "===s[0],o+=l+(a||r||""===s?"":"\n")+eZ(s,t),a=r}return o}(a,r),n));case 5:return'"'+function(e){for(var t,n="",r=0,u=0;u=65536?u+=2:u++)!(t=eN[r=eO(e,u)])&&eS(r)?(n+=e[u],r>=65536&&(n+=e[u+1])):n+=t||function(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new m("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+g.repeat("0",r-t.length)+t}(r);return n}(a)+'"';default:throw new m("impossible error: invalid scalar style")}}());else{if("[object Undefined]"===l||e.skipInvalid)return!1;throw new m("unacceptable kind of an object to dump "+l)}null!==e.tag&&"?"!==e.tag&&(D=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),D="!"===e.tag[0]?"!"+D:"tag:yaml.org,2002:"===D.slice(0,18)?"!!"+D.slice(18):"!<"+D+">",e.dump=D+" "+e.dump)}return!0}function eW(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}eW("safeLoad","load"),eW("safeLoadAll","loadAll"),eW("safeDump","dump");var eQ=n(67294),eR=n(73660),eH=n(9966),e$=n(28538),eV=Object.create,eJ=Object.defineProperty,eq=Object.getOwnPropertyDescriptor,eX=Object.getOwnPropertyNames,eK=Object.getPrototypeOf,e0=Object.prototype.hasOwnProperty,e1=e=>{throw TypeError(e)},e2=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),e3=(e,t)=>{for(var n in t)eJ(e,n,{get:t[n],enumerable:!0})},e4=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of eX(t))e0.call(e,u)||u===n||eJ(e,u,{get:()=>t[u],enumerable:!(r=eq(t,u))||r.enumerable});return e},e8=(e,t,n)=>(n=null!=e?eV(eK(e)):{},e4(!t&&e&&e.__esModule?n:eJ(n,"default",{value:e,enumerable:!0}),e)),e9=e=>e4(eJ({},"__esModule",{value:!0}),e),e6=(e,t,n)=>t.has(e)||e1("Cannot "+n),e7=(e,t,n)=>t.has(e)?e1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),e5=(e,t,n)=>(e6(e,t,"access private method"),n),te=e2((e,t)=>{var n=new Proxy(String,{get:()=>n});t.exports=n}),tt={};e3(tt,{default:()=>tr,shouldHighlight:()=>tn});var tn,tr,tu=(r=()=>{tn=()=>!1,tr=String},()=>(r&&(u=r(r=0)),u)),ti=e2((e,t)=>{var n=String,r=function(){return{isColorSupported:!1,reset:n,bold:n,dim:n,italic:n,underline:n,inverse:n,hidden:n,strikethrough:n,black:n,red:n,green:n,yellow:n,blue:n,magenta:n,cyan:n,white:n,gray:n,bgBlack:n,bgRed:n,bgGreen:n,bgYellow:n,bgBlue:n,bgMagenta:n,bgCyan:n,bgWhite:n}};t.exports=r(),t.exports.createColors=r}),to=e2(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=s,e.default=function(e,t,n,r={}){if(!a){a=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";Error(e).name="DeprecationWarning",console.warn(Error(e))}return s(e,{start:{column:n=Math.max(n,0),line:t}},r)};var t=(tu(),e9(tt)),n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var u={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&({}).hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(u,o,a):u[o]=e[o]}return u.default=e,n&&n.set(e,u),u}(ti(),!0);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}var u,i=n.default,o=(e,t)=>n=>e(t(n)),a=!1,l=/\r\n|[\n\r\u2028\u2029]/;function s(e,r,a={}){let s=(a.highlightCode||a.forceColor)&&(0,t.shouldHighlight)(a),D=a.forceColor?(null!=u||(u=(0,n.createColors)(!0)),u):i,c={gutter:D.gray,marker:o(D.red,D.bold),message:o(D.red,D.bold)},p=(e,t)=>s?e(t):t,{start:d,end:f,markerLines:h}=function(e,t,n){let r=Object.assign({column:0,line:-1},e.start),u=Object.assign({},r,e.end),{linesAbove:i=2,linesBelow:o=3}=n||{},a=r.line,l=r.column,s=u.line,D=u.column,c=Math.max(a-(i+1),0),p=Math.min(t.length,s+o);-1===a&&(c=0),-1===s&&(p=t.length);let d=s-a,f={};if(d)for(let e=0;e<=d;e++){let n=e+a;if(l){if(0===e){let e=t[n-1].length;f[n]=[l,e-l+1]}else if(e===d)f[n]=[0,D];else{let r=t[n-e].length;f[n]=[0,r]}}else f[n]=!0}else l===D?l?f[a]=[l,0]:f[a]=!0:f[a]=[l,D-l];return{start:c,end:p,markerLines:f}}(r,e.split(l),a),g=r.start&&"number"==typeof r.start.column,F=String(f).length,m=(s?(0,t.default)(e,a):e).split(l,f).slice(d,f).map((e,t)=>{let n=d+1+t,r=` ${` ${n}`.slice(-F)} |`,u=h[n],i=!h[n+1];if(!u)return` ${p(c.gutter,r)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(u)){let n=e.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),o=u[1]||1;t=[` + `,p(c.gutter,r.replace(/\d/g," "))," ",n,p(c.marker,"^").repeat(o)].join(""),i&&a.message&&(t+=" "+p(c.message,a.message))}return[p(c.marker,">"),p(c.gutter,r),e.length>0?` ${e}`:"",t].join("")}}).join(` +`);return a.message&&!g&&(m=`${" ".repeat(F+1)}${a.message} +${m}`),s?D.reset(m):m}});e3({},{__debug:()=>ug,check:()=>uf,doc:()=>r2,format:()=>ud,formatWithCursor:()=>up,getSupportInfo:()=>uh,util:()=>r6,version:()=>r9});var ta=(e,t,n,r)=>{if(!(e&&null==t))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)};function tl(){}tl.prototype={diff:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=r.callback;"function"==typeof r&&(u=r,r={}),this.options=r;var i=this;function o(e){return u?(setTimeout(function(){u(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,s=1,D=a+l;r.maxEditLength&&(D=Math.min(D,r.maxEditLength));var c=null!==(n=r.timeout)&&void 0!==n?n:1/0,p=Date.now()+c,d=[{oldPos:-1,lastComponent:void 0}],f=this.extractCommon(d[0],t,e,0);if(d[0].oldPos+1>=l&&f+1>=a)return o([{value:this.join(t),count:t.length}]);var h=-1/0,g=1/0;function F(){for(var n=Math.max(h,-s);n<=Math.min(g,s);n+=2){var r=void 0,u=d[n-1],D=d[n+1];u&&(d[n-1]=void 0);var c=!1;if(D){var p=D.oldPos-n;c=D&&0<=p&&p=l&&f+1>=a)return o(function(e,t,n,r,u){for(var i,o=[];t;)o.push(t),i=t.previousComponent,delete t.previousComponent,t=i;o.reverse();for(var a=0,l=o.length,s=0,D=0;ae.length?n:e}),c.value=e.join(d)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(D+=c.count)}}var f=o[l-1];return l>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(o[l-2].value+=f.value,o.pop()),o}(i,r.lastComponent,t,e,i.useLongestToken));d[n]=r,r.oldPos+1>=l&&(g=Math.min(g,n-1)),f+1>=a&&(h=Math.max(h,n+1))}s++}if(u)!function e(){setTimeout(function(){if(s>D||Date.now()>p)return u();F()||e()},0)}();else for(;s<=D&&Date.now()<=p;){var m=F();if(m)return m}},addToPath:function(e,t,n,r){var u=e.lastComponent;return u&&u.added===t&&u.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:u.count+1,added:t,removed:n,previousComponent:u.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:u}}},extractCommon:function(e,t,n,r){for(var u=t.length,i=n.length,o=e.oldPos,a=o-r,l=0;a+1"u"?n:t}:r;return"string"==typeof e?e:JSON.stringify(function e(t,n,r,u,i){for(n=n||[],r=r||[],u&&(t=u(i,t)),o=0;onew Intl.ListFormat("en-US",{type:"disjunction"}).format(e),tP=class extends Error{name="InvalidDocError";constructor(e){super(function(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(tT(e))throw Error("doc is valid.");let n=Object.prototype.toString.call(e);if("[object Object]"!==n)return`Unexpected doc '${n}'.`;let r=tO([...tB].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${r}.`}(e)),this.doc=e}},tz={},tY=function(e,t,n,r){let u=[e];for(;u.length>0;){let e=u.pop();if(e===tz){n(u.pop());continue}n&&u.push(e,tz);let i=tT(e);if(!i)throw new tP(e);if((null==t?void 0:t(e))!==!1)switch(i){case tC:case tI:{let t=i===tC?e:e.parts;for(let e=t.length,n=e-1;n>=0;--n)u.push(t[n]);break}case tN:u.push(e.flatContents,e.breakContents);break;case tw:if(r&&e.expandedStates)for(let t=e.expandedStates.length,n=t-1;n>=0;--n)u.push(e.expandedStates[n]);else u.push(e.contents);break;case tj:case tb:case tx:case tk:case tv:u.push(e.contents);break;case ty:case tE:case tM:case tA:case tL:case tS:break;default:throw new tP(e)}}},tZ=()=>{};function t_(e){return tZ(e),{type:tb,contents:e}}function tG(e,t){return tZ(t),{type:tj,contents:t,n:e}}function tU(e,t={}){return tZ(e),tZ(t.expandedStates,!0),{type:tw,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function tW(e){return tZ(e),{type:tI,parts:e}}function tQ(e){return tZ(e),{type:tv,contents:e}}var tR={type:tS},tH={type:tL,hard:!0},t$={type:tL,hard:!0,literal:!0},tV={type:tL},tJ=[tH,tR],tq=[t$,tR],tX={type:tE};function tK(e,t){tZ(e),tZ(t);let n=[];for(let r=0;r0){for(let e=0;e{if(!(e&&null==t))return Array.isArray(t)||"string"==typeof t?t[n<0?t.length+n:n]:t.at(n)},t2=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,t3=e=>{var t;return!(12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510||(t=e)>=4352&&t<=4447||8986===t||8987===t||9001===t||9002===t||t>=9193&&t<=9196||9200===t||9203===t||9725===t||9726===t||9748===t||9749===t||t>=9800&&t<=9811||9855===t||9875===t||9889===t||9898===t||9899===t||9917===t||9918===t||9924===t||9925===t||9934===t||9940===t||9962===t||9970===t||9971===t||9973===t||9978===t||9981===t||9989===t||9994===t||9995===t||10024===t||10060===t||10062===t||t>=10067&&t<=10069||10071===t||t>=10133&&t<=10135||10160===t||10175===t||11035===t||11036===t||11088===t||11093===t||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||94192===t||94193===t||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101632&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||110589===t||110590===t||t>=110592&&t<=110882||110898===t||t>=110928&&t<=110930||110933===t||t>=110948&&t<=110951||t>=110960&&t<=111355||126980===t||127183===t||127374===t||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||127568===t||127569===t||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||127988===t||t>=127992&&t<=128062||128064===t||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||128378===t||128405===t||128406===t||128420===t||t>=128507&&t<=128591||t>=128640&&t<=128709||128716===t||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||128747===t||128748===t||t>=128756&&t<=128764||t>=128992&&t<=129003||129008===t||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129672||t>=129680&&t<=129725||t>=129727&&t<=129733||t>=129742&&t<=129755||t>=129760&&t<=129768||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141)},t4=/[^\x20-\x7F]/u,t8=function(e){if(!e)return 0;if(!t4.test(e))return e.length;e=e.replace(t2()," ");let t=0;for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=t3(e)?1:2)}return t};function t9(e,t){if("string"==typeof e)return t(e);let n=new Map;return function e(r){if(n.has(r))return n.get(r);let u=function(n){switch(tT(n)){case tC:return t(n.map(e));case tI:return t({...n,parts:n.parts.map(e)});case tN:return t({...n,breakContents:e(n.breakContents),flatContents:e(n.flatContents)});case tw:{let{expandedStates:r,contents:u}=n;return u=r?(r=r.map(e))[0]:e(u),t({...n,contents:u,expandedStates:r})}case tj:case tb:case tx:case tk:case tv:return t({...n,contents:e(n.contents)});case ty:case tE:case tM:case tA:case tL:case tS:return t(n);default:throw new tP(n)}}(r);return n.set(r,u),u}(e)}function t6(e,t,n){let r=n,u=!1;return tY(e,function(e){if(u)return!1;let n=t(e);void 0!==n&&(u=!0,r=n)}),r}function t7(e){if(e.type===tw&&e.break||e.type===tL&&e.hard||e.type===tS)return!0}function t5(e){if(e.length>0){let t=t1(!1,e,-1);t.expandedStates||t.break||(t.break="propagated")}return null}function ne(e){return e.type!==tL||e.hard?e.type===tN?e.flatContents:e:e.soft?"":" "}function nt(e){for(e=[...e];e.length>=2&&t1(!1,e,-2).type===tL&&t1(!1,e,-1).type===tS;)e.length-=2;if(e.length>0){let t=nn(t1(!1,e,-1));e[e.length-1]=t}return e}function nn(e){switch(tT(e)){case tb:case tx:case tw:case tv:case tk:{let t=nn(e.contents);return{...e,contents:t}}case tN:return{...e,breakContents:nn(e.breakContents),flatContents:nn(e.flatContents)};case tI:return{...e,parts:nt(e.parts)};case tC:return nt(e);case ty:return e.replace(/[\n\r]*$/u,"");case tj:case tE:case tM:case tA:case tL:case tS:break;default:throw new tP(e)}return e}function nr(e){return nn(t9(e,e=>(function(e){switch(tT(e)){case tI:if(e.parts.every(e=>""===e))return"";break;case tw:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===tw&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case tj:case tb:case tx:case tv:if(!e.contents)return"";break;case tN:if(!e.flatContents&&!e.breakContents)return"";break;case tC:{let t=[];for(let n of e){if(!n)continue;let[e,...r]=Array.isArray(n)?n:[n];"string"==typeof e&&"string"==typeof t1(!1,t,-1)?t[t.length-1]+=e:t.push(e),t.push(...r)}return 0===t.length?"":1===t.length?t[0]:t}case ty:case tE:case tM:case tA:case tL:case tk:case tS:break;default:throw new tP(e)}return e})(e)))}function nu(e){if(e.type===tL)return!0}function ni(e,t){return e.type===tk?{...e,contents:t(e.contents)}:t(e)}var no=Symbol("MODE_BREAK"),na=Symbol("MODE_FLAT"),nl=Symbol("cursor");function ns(){return{value:"",length:0,queue:[]}}function nD(e,t,n){let r="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],u="",i=0,o=0,a=0;for(let e of r)switch(e.type){case"indent":D(),n.useTabs?l(1):s(n.tabWidth);break;case"stringAlign":D(),u+=e.n,i+=e.n.length;break;case"numberAlign":o+=1,a+=e.n;break;default:throw Error(`Unexpected type '${e.type}'`)}return c(),{...e,value:u,length:i,queue:r};function l(e){u+=" ".repeat(e),i+=n.tabWidth*e}function s(e){u+=" ".repeat(e),i+=e}function D(){n.useTabs?(o>0&&l(o),o=0,a=0):c()}function c(){a>0&&s(a),o=0,a=0}}function nc(e){let t=0,n=0,r=e.length;e:for(;r--;){let u=e[r];if(u===nl){n++;continue}for(let n=u.length-1;n>=0;n--){let i=u[n];if(" "===i||" "===i)t++;else{e[r]=u.slice(0,n+1);break e}}}if(t>0||n>0)for(e.length=r+1;n-- >0;)e.push(nl);return t}function np(e,t,n,r,u,i){if(n===Number.POSITIVE_INFINITY)return!0;let o=t.length,a=[e],l=[];for(;n>=0;){if(0===a.length){if(0===o)return!0;a.push(t[--o]);continue}let{mode:e,doc:s}=a.pop(),D=tT(s);switch(D){case ty:l.push(s),n-=t8(s);break;case tC:case tI:{let t=D===tC?s:s.parts;for(let n=t.length-1;n>=0;n--)a.push({mode:e,doc:t[n]});break}case tb:case tj:case tx:case tk:a.push({mode:e,doc:s.contents});break;case tM:n+=nc(l);break;case tw:{if(i&&s.break)return!1;let t=s.break?no:e,n=s.expandedStates&&t===no?t1(!1,s.expandedStates,-1):s.contents;a.push({mode:t,doc:n});break}case tN:{let t=(s.groupId?u[s.groupId]||na:e)===no?s.breakContents:s.flatContents;t&&a.push({mode:e,doc:t});break}case tL:if(e===no||s.hard)return!0;s.soft||(l.push(" "),n--);break;case tv:r=!0;break;case tA:if(r)return!1}}return!1}function nd(e,t){var n;let r,u,i={},o=t.printWidth,a=tF(t.endOfLine),l=0,s=[{ind:ns(),mode:no,doc:e}],D=[],c=!1,p=[],d=0;for(r=new Set,u=[],tY(e,function(e){if(e.type===tS&&t5(u),e.type===tw){if(u.push(e),r.has(e))return!1;r.add(e)}},function(e){e.type===tw&&u.pop().break&&t5(u)},!0);s.length>0;){let{ind:e,mode:r,doc:u}=s.pop();switch(tT(u)){case ty:{let e=a!==` +`?ta(!1,u,` +`,a):u;D.push(e),s.length>0&&(l+=t8(e));break}case tC:for(let t=u.length-1;t>=0;t--)s.push({ind:e,mode:r,doc:u[t]});break;case tE:if(d>=2)throw Error("There are too many 'cursor' in doc.");D.push(nl),d++;break;case tb:s.push({ind:nD(e,{type:"indent"},t),mode:r,doc:u.contents});break;case tj:s.push({ind:(n=u.n)===Number.NEGATIVE_INFINITY?e.root||ns():n<0?nD(e,{type:"dedent"},t):n?"root"===n.type?{...e,root:e}:nD(e,{type:"string"==typeof n?"stringAlign":"numberAlign",n:n},t):e,mode:r,doc:u.contents});break;case tM:l-=nc(D);break;case tw:switch(r){case na:if(!c){s.push({ind:e,mode:u.break?no:na,doc:u.contents});break}case no:{c=!1;let t={ind:e,mode:na,doc:u.contents},n=o-l,r=p.length>0;if(!u.break&&np(t,s,n,r,i))s.push(t);else if(u.expandedStates){let t=t1(!1,u.expandedStates,-1);if(u.break)s.push({ind:e,mode:no,doc:t});else for(let o=1;o=u.expandedStates.length){s.push({ind:e,mode:no,doc:t});break}else{let t={ind:e,mode:na,doc:u.expandedStates[o]};if(np(t,s,n,r,i)){s.push(t);break}}}else s.push({ind:e,mode:no,doc:u.contents})}}u.id&&(i[u.id]=t1(!1,s,-1).mode);break;case tI:{let t=o-l,{parts:n}=u;if(0===n.length)break;let[a,D]=n,c={ind:e,mode:na,doc:a},d={ind:e,mode:no,doc:a},f=np(c,[],t,p.length>0,i,!0);if(1===n.length){f?s.push(c):s.push(d);break}let h={ind:e,mode:na,doc:D},g={ind:e,mode:no,doc:D};if(2===n.length){f?s.push(h,c):s.push(g,d);break}n.splice(0,2);let F={ind:e,mode:r,doc:tW(n)};np({ind:e,mode:na,doc:[a,D,n[0]]},[],t,p.length>0,i,!0)?s.push(F,h,c):f?s.push(F,g,c):s.push(F,g,d);break}case tN:case tx:{let t=u.groupId?i[u.groupId]:r;if(t===no){let t=u.type===tN?u.breakContents:u.negate?u.contents:t_(u.contents);t&&s.push({ind:e,mode:r,doc:t})}if(t===na){let t=u.type===tN?u.flatContents:u.negate?t_(u.contents):u.contents;t&&s.push({ind:e,mode:r,doc:t})}break}case tv:p.push({ind:e,mode:r,doc:u.contents});break;case tA:p.length>0&&s.push({ind:e,mode:r,doc:tH});break;case tL:switch(r){case na:if(u.hard)c=!0;else{u.soft||(D.push(" "),l+=1);break}case no:if(p.length>0){s.push({ind:e,mode:r,doc:u},...p.reverse()),p.length=0;break}u.literal?e.root?(D.push(a,e.root.value),l=e.root.length):(D.push(a),l=0):(l-=nc(D),D.push(a+e.value),l=e.length)}break;case tk:s.push({ind:e,mode:r,doc:u.contents});break;case tS:break;default:throw new tP(u)}0===s.length&&p.length>0&&(s.push(...p.reverse()),p.length=0)}let f=D.indexOf(nl);if(-1!==f){let e=D.indexOf(nl,f+1),t=D.slice(0,f).join(""),n=D.slice(f+1,e).join("");return{formatted:t+n+D.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:D.join("")}}var nf,nh,ng,nF=function(e,t,n=0){let r=0;for(let u=n;u1?t1(!1,e,-2):null}getValue(){return t1(!1,this.stack,-1)}getNode(e=0){let t=e5(this,nf,nh).call(this,e);return -1===t?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:n}=this,{length:r}=n,u=t1(!1,n,-1);for(let e of t)u=u[e],n.push(e,u);try{return e(this)}finally{n.length=r}}callParent(e,t=0){let n=e5(this,nf,nh).call(this,t+1),r=this.stack.splice(n+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:n}=this,{length:r}=n,u=t1(!1,n,-1);for(let e of t)u=u[e],n.push(e,u);try{for(let t=0;t{n[r]=e(t,r,u)},...t),n}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(let u of e){if(void 0===r)return!1;let e=null;if("number"==typeof n&&(e=n,n=this.stack[t--],r=this.stack[t--]),u&&!u(r,n,e))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of e5(this,nf,ng).call(this))if(e(t))return t}hasAncestor(e){for(let t of e5(this,nf,ng).call(this))if(e(t))return!0;return!1}};nf=new WeakSet,nh=function(e){let{stack:t}=this;for(let n=t.length-1;n>=0;n-=2)if(!Array.isArray(t[n])&&--e<0)return n;return -1},ng=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let n=e[t];Array.isArray(n)||(yield n)}};var ny=new Proxy(()=>{},{get:()=>ny});function*nC(e,t){let{getVisitorKeys:n,filter:r=()=>!0}=t,u=e=>null!==e&&"object"==typeof e&&r(e);for(let t of n(e)){let n=e[t];if(Array.isArray(n))for(let e of n)u(e)&&(yield e);else u(n)&&(yield n)}}function nE(e){return(t,n,r)=>{let u=!!(null!=r&&r.backwards);if(!1===n)return!1;let{length:i}=t,o=n;for(;o>=0&&oObject.keys(e).filter(e=>!nx.has(e)),nA=function(e){return e?t=>e(t,nx):nv};function nL(e,t){let n,r;(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=(n=e.type||e.kind||"(unknown type)",(r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"")).length>20&&(r=r.slice(0,19)+"…"),n+(r?" "+r:""))}function nk(e,t){t.leading=!0,t.trailing=!1,nL(e,t)}function nS(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),nL(e,t)}function nB(e,t){t.leading=!1,t.trailing=!0,nL(e,t)}var nT=new WeakMap;function nO(e,t){if(nT.has(e))return nT.get(e);let{printer:{getCommentChildNodes:n,canAttachComment:r,getVisitorKeys:u},locStart:i,locEnd:o}=t;if(!r)return[];let a=((null==n?void 0:n(e,t))??[...nC(e,{getVisitorKeys:nA(u)})]).flatMap(e=>r(e)?[e]:nO(e,t));return a.sort((e,t)=>i(e)-i(t)||o(e)-o(t)),nT.set(e,a),a}var nP=()=>!1,nz=e=>!/[\S\n\u2028\u2029]/u.test(e);function nY(e,t){var n,r;let u=e.length;if(0===u)return;let{precedingNode:i,followingNode:o}=e[0],a=t.locStart(o),l;for(l=u;l>0;--l){let{comment:u,precedingNode:s,followingNode:D}=e[l-1];ny.strictEqual(s,i),ny.strictEqual(D,o);let c=t.originalText.slice(t.locEnd(u),a);if((null==(r=(n=t.printer).isGap)?void 0:r.call(n,c,t))??/^[\s(]*$/u.test(c))a=t.locStart(u);else break}for(let[t,{comment:n}]of e.entries())t1&&e.comments.sort((e,n)=>t.locStart(e)-t.locStart(n));e.length=0}function nZ(e,t,n){let r=n.locStart(t)-1;for(let t=1;t"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). +The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. +The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment +in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function nR({plugins:e=[],showDeprecated:t=!1}={}){let n=e.flatMap(e=>e.languages??[]),r=[];for(let u of function(e){let t=[];for(let[n,r]of Object.entries(e)){let e={name:n,...r};Array.isArray(e.default)&&(e.default=t1(!1,e.default,-1).value),t.push(e)}return t}(Object.assign({},...e.map(({options:e})=>e),nQ)))!t&&u.deprecated||(Array.isArray(u.choices)&&(t||(u.choices=u.choices.filter(e=>!e.deprecated)),"parser"===u.name&&(u.choices=[...u.choices,...function*(e,t,n){let r=new Set(e.map(e=>e.value));for(let e of t)if(e.parsers){for(let t of e.parsers)if(!r.has(t)){r.add(t);let u=n.find(e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t)),i=e.name;null!=u&&u.name&&(i+=` (plugin: ${u.name})`),yield{value:t,description:i}}}}(u.choices,n,e)])),u.pluginDefaults=Object.fromEntries(e.filter(e=>{var t;return(null==(t=e.defaultOptions)?void 0:t[u.name])!==void 0}).map(e=>[e.name,e.defaultOptions[u.name]])),r.push(u));return{languages:n,options:r}}var nH=e=>String(e).split(/[/\\]/u).pop();function n$(e,t){if(!t)return;let n=nH(t).toLowerCase();return e.find(({filenames:e})=>null==e?void 0:e.some(e=>e.toLowerCase()===n))??e.find(({extensions:e})=>null==e?void 0:e.some(e=>n.endsWith(e)))}var nV=function(e,t){let n=e.plugins.flatMap(e=>e.languages??[]),r=function(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>null==e?void 0:e.includes(t))??e.find(({extensions:e})=>null==e?void 0:e.includes(`.${t}`))}(n,t.language)??n$(n,t.physicalFile)??n$(n,t.file)??void t.physicalFile;return null==r?void 0:r.parsers[0]},nJ={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(e=>nJ.value(e)).join(", ")}]`;let t=Object.keys(e);return 0===t.length?"{}":`{ ${t.map(t=>`${nJ.key(t)}: ${nJ.value(e[t])}`).join(", ")} }`},pair:({key:e,value:t})=>nJ.value({[e]:t})},nq=e8(te(),1),nX=e8(te(),1),nK=Symbol.for("vnopts.VALUE_NOT_EXIST"),n0=Symbol.for("vnopts.VALUE_UNCHANGED"),n1=" ".repeat(2);function n2(e,t,n,r){return`Invalid ${nX.default.red(r.key(e))} value. Expected ${nX.default.blue(n)}, but received ${t===nK?nX.default.gray("nothing"):nX.default.red(r.value(t))}.`}function n3(e,t){if(1===e.length)return e[0];let[n,r]=e,[u,i]=e.map(e=>e.split(` +`,1)[0].length);return u>t&&u>i?r:n}var n4=e8(te(),1),n8=[],n9=[],n6=(e,t,{descriptor:n,logger:r,schemas:u})=>{let i=[`Ignored unknown option ${n4.default.yellow(n.pair({key:e,value:t}))}.`],o=Object.keys(u).sort().find(t=>3>function(e,t){if(e===t)return 0;let n=e;e.length>t.length&&(e=t,t=n);let r=e.length,u=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-u);)r--,u--;let i=0;for(;ia?s>a?a+1:s:s>l?l+1:s;return a}(e,t));o&&i.push(`Did you mean ${n4.default.blue(n.key(o))}?`),r.warn(i.join(" "))},n7=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],n5=class{static create(e){return function(e,t){let n=new e(t),r=Object.create(n);for(let e of n7)e in t&&(r[e]=function(e,t,n){return"function"==typeof e?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}(t[e],n,n5.prototype[e].length));return r}(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return n0}},re=class extends n5{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},rt=class extends n5{expected(){return"anything"}validate(){return!0}},rn=class extends n5{constructor({valueSchema:e,name:t=e.name,...n}){super({...n,name:t}),this._valueSchema=e}expected(e){let{text:t,list:n}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(e,t){if(!Array.isArray(e))return!1;let n=[];for(let r of e){let e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){let n=[];for(let r of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map(({value:e})=>({value:[e]})))}return n}forward(e,t){let n=[];for(let r of e){let e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...e.map(rr))}return n}redirect(e,t){let n=[],r=[];for(let u of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(u,t),u);"remain"in e&&n.push(e.remain),r.push(...e.redirect.map(rr))}return 0===n.length?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}};function rr({from:e,to:t}){return{from:[e],to:t}}var ru=class extends n5{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};function ri(e,t){if(e===t)return 0;let n=typeof e,r=typeof t,u=["undefined","object","boolean","number","string"];return n!==r?u.indexOf(n)-u.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)}function ro(e){return void 0===e?{}:e}function ra(e){if("string"==typeof e)return{text:e};let{text:t,list:n}=e;return function(e,t){if(!e)throw Error(t)}((t||n)!==void 0,"Unexpected `expected` result, there should be at least one field."),n?{text:t,list:{title:n.title,values:n.values.map(ra)}}:{text:t}}function rl(e,t){return!0===e||(!1===e?{value:t}:e)}function rs(e,t,n=!1){return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function rD(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function rc(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>rD(e,t)):[rD(e,t)]}function rp(e,t){let n=rc("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}}var rd=class extends n5{constructor(e){super(e),this._choices=function(e,t){let n=new Map;for(let r of e){let e=r[t];if(n.has(e))throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);n.set(e,r)}return n}(e.choices.map(e=>e&&"object"==typeof e?e:{value:e}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(({hidden:e})=>!e).map(e=>e.value).sort(ri).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return{text:n.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!!t&&!!t.deprecated&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},rf=class extends n5{expected(){return"a number"}validate(e,t){return"number"==typeof e}},rh=class extends rf{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&e===Math.floor(e)}},rg=class extends n5{expected(){return"a string"}validate(e){return"string"==typeof e}},rF=(e,t,n)=>{let{text:r,list:u}=n.normalizeExpectedResult(n.schemas[e].expected(n)),i=[];return r&&i.push(n2(e,t,r,n.descriptor)),u&&i.push([n2(e,t,u.title,n.descriptor)].concat(u.values.map(e=>(function e({text:t,list:n},r){let u=[];return t&&u.push(`- ${nX.default.blue(t)}`),n&&u.push([`- ${nX.default.blue(n.title)}:`].concat(n.values.map(t=>e(t,r-n1.length).replace(/^|\n/g,`$&${n1}`))).join(` +`)),n3(u,r)})(e,n.loggerPrintWidth))).join(` +`)),n3(i,n.loggerPrintWidth)},rm=(e,t,{descriptor:n})=>{let r=[`${nq.default.yellow("string"==typeof e?n.key(e):n.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${nq.default.blue("string"==typeof t?n.key(t):n.pair(t))}`),r.join("; ")+"."},ry=class{constructor(e,t){let{logger:n=console,loggerPrintWidth:r=80,descriptor:u=nJ,unknown:i=n6,invalid:o=rF,deprecated:a=rm,missing:l=()=>!1,required:s=()=>!1,preprocess:D=e=>e,postprocess:c=()=>n0}=t||{};this._utils={descriptor:u,logger:n||{warn:()=>{}},loggerPrintWidth:r,schemas:function(e,t){let n=Object.create(null);for(let r of e){let e=r[t];if(n[e])throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);n[e]=r}return n}(e,"name"),normalizeDefaultResult:ro,normalizeExpectedResult:ra,normalizeDeprecatedResult:rs,normalizeForwardResult:rc,normalizeRedirectResult:rp,normalizeValidateResult:rl},this._unknownHandler=i,this._invalidHandler=(...e)=>{let t=o(...e);return"string"==typeof t?Error(t):t},this._deprecatedHandler=a,this._identifyMissing=(e,t)=>!(e in t)||l(e,t),this._identifyRequired=s,this._preprocess=D,this._postprocess=c,this.cleanHistory()}cleanHistory(){let e;this._hasDeprecationWarned=(e=Object.create(null),t=>{let n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)})}normalize(e){let t={},n=[this._preprocess(e,this._utils)],r=()=>{for(;0!==n.length;){let e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};for(let e of(r(),Object.keys(this._utils.schemas))){let r=this._utils.schemas[e];if(!(e in t)){let t=ro(r.default(this._utils));"value"in t&&n.push({[e]:t.value})}}for(let e of(r(),Object.keys(this._utils.schemas))){if(!(e in t))continue;let n=this._utils.schemas[e],r=t[e],u=n.postprocess(r,this._utils);u!==n0&&(this._applyValidation(u,e,n),t[e]=u)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let n=[],{knownKeys:r,unknownKeys:u}=this._partitionOptionKeys(e);for(let u of r){let r=this._utils.schemas[u],i=r.preprocess(e[u],this._utils);this._applyValidation(i,u,r);let o=({from:e,to:t})=>{n.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},a=({value:e,redirectTo:t})=>{let n=rs(r.deprecated(e,this._utils),i,!0);if(!1!==n){if(!0===n)this._hasDeprecationWarned(u)||this._utils.logger.warn(this._deprecatedHandler(u,t,this._utils));else for(let{value:e}of n){let n={key:u,value:e};if(!this._hasDeprecationWarned(n)){let r="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(n,r,this._utils))}}}};rc(r.forward(i,this._utils),i).forEach(o);let l=rp(r.redirect(i,this._utils),i);if(l.redirect.forEach(o),"remain"in l){let e=l.remain;t[u]=u in t?r.overlap(t[u],e,this._utils):e,a({value:e})}for(let{from:e,to:t}of l.redirect)a({value:e,redirectTo:t})}for(let r of u){let u=e[r];this._applyUnknownHandler(r,u,t,(e,t)=>{n.push({[e]:t})})}return n}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,nK,this._utils)}_partitionOptionKeys(e){let[t,n]=function(e,t){let n=[],r=[];for(let u of e)t(u)?n.push(u):r.push(u);return[n,r]}(Object.keys(e).filter(t=>!this._identifyMissing(t,e)),e=>e in this._utils.schemas);return{knownKeys:t,unknownKeys:n}}_applyValidation(e,t,n){let r=rl(n.validate(e,this._utils),e);if(!0!==r)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,n,r){let u=this._unknownHandler(e,t,this._utils);if(u)for(let e of Object.keys(u)){if(this._identifyMissing(e,u))continue;let t=u[e];e in this._utils.schemas?r(e,t):n[e]=t}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==n0){if(t.delete)for(let n of t.delete)delete e[n];if(t.override){let{knownKeys:n,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let r of n){let n=t.override[r];this._applyValidation(n,r,this._utils.schemas[r]),e[r]=n}for(let n of r){let r=t.override[n];this._applyUnknownHandler(n,r,e,(t,n)=>{let r=this._utils.schemas[t];this._applyValidation(n,t,r),e[t]=n})}}}}},rC=function(e,t,{logger:n=!1,isCLI:r=!1,passThrough:u=!1,FlagSchema:o,descriptor:a}={}){if(r){if(!o)throw Error("'FlagSchema' option is required.");if(!a)throw Error("'descriptor' option is required.")}else a=nJ;let l=u?Array.isArray(u)?(e,t)=>u.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,n)=>{let{_:r,...u}=n.schemas;return n6(e,t,{...n,schemas:u})},s=new ry(function(e,{isCLI:t,FlagSchema:n}){let r=[];for(let u of(t&&r.push(rt.create({name:"_"})),e))r.push(function(e,{isCLI:t,optionInfos:n,FlagSchema:r}){let{name:u}=e,i={name:u},o,a={};switch(e.type){case"int":o=rh,t&&(i.preprocess=Number);break;case"string":case"path":o=rg;break;case"choice":o=rd,i.choices=e.choices.map(t=>null!=t&&t.redirect?{...t,redirect:{to:{key:e.name,value:t.redirect}}}:t);break;case"boolean":o=ru;break;case"flag":o=r,i.flags=n.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean));break;default:throw Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):i.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(a.redirect=t=>t?{to:"string"==typeof e.redirect?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(a.deprecated=!0),t&&!e.array){let e=i.preprocess||(e=>e);i.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?t1(!1,t,-1):t),r)}return e.array?rn.create({...t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},...a,valueSchema:o.create(i)}):o.create({...i,...a})}(u,{isCLI:t,optionInfos:e,FlagSchema:n})),u.alias&&t&&r.push(re.create({name:u.alias,sourceName:u.name}));return r}(t,{isCLI:r,FlagSchema:o}),{logger:n,unknown:l,descriptor:a}),D=!1!==n;D&&i&&(s._hasDeprecationWarned=i);let c=s.normalize(e);return D&&(i=s._hasDeprecationWarned),c},rE=(e,t,n)=>{if(!(e&&null==t)){if(t.findLast)return t.findLast(n);for(let e=t.length-1;e>=0;e--){let r=t[e];if(n(r,e,t))return r}}};function rb(e,t){if(!t)throw Error("parserName is required.");let n=rE(!1,e,e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t));if(n)return n;let r=`Couldn't resolve parser "${t}".`;throw new nU(r+=" Plugins must be explicitly added to the standalone bundle.")}function rj(e,t){let n=e.parsers[t];return"function"==typeof n?n():n}var rM={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function rw(e,t={}){var n,r;let u;let i={...e};if(!i.parser){if(i.filepath){if(i.parser=nV(i,{physicalFile:i.filepath}),!i.parser)throw new nW(`No parser could be inferred for file "${i.filepath}".`)}else throw new nW("No parser and no file path given, couldn't infer a parser.")}let o=nR({plugins:e.plugins,showDeprecated:!0}).options,a={...rM,...Object.fromEntries(o.filter(e=>void 0!==e.default).map(e=>[e.name,e.default]))},l=rb(i.plugins,i.parser),s=await rj(l,i.parser);i.astFormat=s.astFormat,i.locEnd=s.locEnd,i.locStart=s.locStart;let D=null!=(n=l.printers)&&n[s.astFormat]?l:function(e,t){if(!t)throw Error("astFormat is required.");let n=rE(!1,e,e=>e.printers&&Object.prototype.hasOwnProperty.call(e.printers,t));if(n)return n;let r=`Couldn't find plugin for AST format "${t}".`;throw new nU(r+=" Plugins must be explicitly added to the standalone bundle.")}(i.plugins,s.astFormat),c=await (r=s.astFormat,"function"==typeof(u=D.printers[r])?u():u);i.printer=c;let p=D.defaultOptions?Object.fromEntries(Object.entries(D.defaultOptions).filter(([,e])=>void 0!==e)):{};for(let[e,t]of Object.entries({...a,...p}))(null===i[e]||void 0===i[e])&&(i[e]=t);return"json"===i.parser&&(i.trailingComma="none"),rC(i,o,{passThrough:Object.keys(rM),...t})}var rI=e8(to(),1);async function rN(e,t){let n,r=await function({plugins:e,parser:t}){return rj(rb(e,t),t)}(t),u=r.preprocess?r.preprocess(e,t):e;t.originalText=u;try{n=await r.parse(u,t,t)}catch(t){!function(e,t){let{loc:n}=e;if(n){let r=(0,rI.codeFrameColumns)(t,n,{highlightCode:!0});throw e.message+=` +`+r,e.codeFrame=r,e}throw e}(t,e)}return{text:u,ast:n}}async function rx(e,t,n,r,u){let{embeddedLanguageFormatting:i,printer:{embed:o,hasPrettierIgnore:a=()=>!1,getVisitorKeys:l}}=n;if(!o||"auto"!==i)return;if(o.length>2)throw Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let s=nA(o.getVisitorKeys??l),D=[];!function t(){let{node:r}=e;if(null===r||"object"!=typeof r||a(e))return;for(let n of s(r))Array.isArray(r[n])?e.each(t,n):e.call(t,n);let i=o(e,n);if(i){if("function"==typeof i){D.push({print:i,node:r,pathStack:[...e.stack]});return}u.set(r,i)}}();let c=e.stack;for(let{print:r,node:i,pathStack:o}of D)try{e.stack=o;let a=await r(p,t,e,n);a&&u.set(i,a)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}function p(e,t){return rv(e,t,n,r)}e.stack=c}async function rv(e,t,n,r){let u=await rw({...n,...t,parentParser:n.parser,originalText:e},{passThrough:!0}),{ast:i}=await rN(e,u);return nr(await r(i,u))}var rA=function(e,t){let{originalText:n,[Symbol.for("comments")]:r,locStart:u,locEnd:i,[Symbol.for("printedComments")]:o}=t,{node:a}=e,l=u(a),s=i(a);for(let e of r)u(e)>=l&&i(e)<=s&&o.add(e);return n.slice(l,s)};async function rL(e,t){({ast:e}=await rS(e,t));let n=new Map,r=new nm(e),u=()=>{},i=new Map;await rx(r,a,t,rL,i);let o=await rk(r,t,a,void 0,i);return function(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:n}=e;for(let e of t){if(!e.printed&&!n.has(e))throw Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed}}(t),o;function a(e,t){return void 0===e||e===r?l(t):Array.isArray(e)?r.call(()=>l(t),...e):r.call(()=>l(t),e)}function l(e){u(r);let o=r.node;if(null==o)return"";let l=o&&"object"==typeof o&&void 0===e;if(l&&n.has(o))return n.get(o);let s=rk(r,t,a,e,i);return l&&n.set(o,s),s}}function rk(e,t,n,r,u){var i;let{node:o}=e,{printer:a}=t,l;return l=null!=(i=a.hasPrettierIgnore)&&i.call(a,e)?rA(e,t):u.has(o)?u.get(o):a.print(e,t,n,r),o===t.cursorNode&&(l=ni(l,e=>[tX,e,tX])),!a.printComment||a.willPrintOwnComments&&a.willPrintOwnComments(e,t)||(l=function(e,t,n){let{leading:r,trailing:u}=function(e,t){let n=e.node;if(!n)return{};let r=t[Symbol.for("printedComments")];if(0===(n.comments||[]).filter(e=>!r.has(e)).length)return{leading:"",trailing:""};let u=[],i=[],o;return e.each(()=>{let n=e.node;if(null!=r&&r.has(n))return;let{leading:a,trailing:l}=n;a?u.push(function(e,t){var n;let r=e.node,u=[nG(e,t)],{printer:i,originalText:o,locStart:a,locEnd:l}=t;if(null==(n=i.isBlockComment)?void 0:n.call(i,r)){let e=nN(o,l(r))?nN(o,a(r),{backwards:!0})?tJ:tV:" ";u.push(e)}else u.push(tJ);let s=nI(o,nj(o,l(r)));return!1!==s&&nN(o,s)&&u.push(tJ),u}(e,t)):l&&(o=function(e,t,n){var r;let u=e.node,i=nG(e,t),{printer:o,originalText:a,locStart:l}=t,s=null==(r=o.isBlockComment)?void 0:r.call(o,u);return null!=n&&n.hasLineSuffix&&!(null!=n&&n.isBlock)||nN(a,l(u),{backwards:!0})?{doc:tQ([tJ,n_(a,l(u))?tJ:"",i]),isBlock:s,hasLineSuffix:!0}:!s||null!=n&&n.hasLineSuffix?{doc:[tQ([" ",i]),tR],isBlock:s,hasLineSuffix:!0}:{doc:[" ",i],isBlock:s,hasLineSuffix:!1}}(e,t,o),i.push(o.doc))},"comments"),{leading:u,trailing:i}}(e,n);return r||u?ni(t,e=>[r,e,u]):t}(e,l,t)),l}async function rS(e,t){let n=e.comments??[];t[Symbol.for("comments")]=n,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,function(e,t){let{comments:n}=e;if(delete e.comments,!(Array.isArray(n)&&n.length>0)||!t.printer.canAttachComment)return;let r=[],{locStart:u,locEnd:i,printer:{experimentalFeatures:{avoidAstMutation:o=!1}={},handleComments:a={}},originalText:l}=t,{ownLine:s=nP,endOfLine:D=nP,remaining:c=nP}=a,p=n.map((r,u)=>({...function e(t,n,r,u){let{locStart:i,locEnd:o}=r,a=i(n),l=o(n),s=nO(t,r),D,c,p=0,d=s.length;for(;p>1,u=s[t],f=i(u),h=o(u);if(f<=a&&l<=h)return e(u,n,r,u);if(h<=a){D=u,p=t+1;continue}if(l<=f){c=u,d=t;continue}throw Error("Comment location overlaps with node location")}if((null==u?void 0:u.type)==="TemplateLiteral"){let{quasis:e}=u,t=nZ(e,n,r);D&&nZ(e,D,r)!==t&&(D=null),c&&nZ(e,c,r)!==t&&(c=null)}return{enclosingNode:u,precedingNode:D,followingNode:c}}(e,r,t),comment:r,text:l,options:t,ast:e,isLastComment:n.length-1===u}));for(let[e,t]of p.entries()){let n,{comment:a,precedingNode:l,enclosingNode:d,followingNode:f,text:h,options:g,ast:F,isLastComment:m}=t;if("json"===g.parser||"json5"===g.parser||"jsonc"===g.parser||"__js_expression"===g.parser||"__ts_expression"===g.parser||"__vue_expression"===g.parser||"__vue_ts_expression"===g.parser){if(u(a)-u(F)<=0){nk(F,a);continue}if(i(a)-i(F)>=0){nB(F,a);continue}}if(o?n=[t]:(a.enclosingNode=d,a.precedingNode=l,a.followingNode=f,n=[a,h,g,F,m]),function(e,t,n,r){let{comment:u,precedingNode:i}=n[r],{locStart:o,locEnd:a}=t,l=o(u);if(i)for(let t=r-1;t>=0;t--){let{comment:r,precedingNode:u}=n[t];if(u!==i||!nz(e.slice(a(r),l)))break;l=o(r)}return nN(e,l,{backwards:!0})}(h,g,p,e))a.placement="ownLine",s(...n)||(f?nk(f,a):l?nB(l,a):d?nS(d,a):nS(F,a));else if(function(e,t,n,r){let{comment:u,followingNode:i}=n[r],{locStart:o,locEnd:a}=t,l=a(u);if(i)for(let t=r+1;t0&&r[e-1].followingNode!==f&&nY(r,g),r.push(t)}else l?nB(l,a):f?nk(f,a):d?nS(d,a):nS(F,a)}}if(nY(r,t),!o)for(let e of n)delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}(e,t);let{printer:{preprocess:r}}=t;return{ast:e=r?await r(e,t):e,comments:n}}var rB=function(e,t){let{cursorOffset:n,locStart:r,locEnd:u}=t,i=nA(t.printer.getVisitorKeys),o=e;for(let t of function*(e,t){let n=[e];for(let e=0;er(e)<=n&&u(e)>=n}))o=t;return o},rT=function(e,t){let{printer:{massageAstNode:n,getVisitorKeys:r}}=t;if(!n)return e;let u=nA(r),i=n.ignoredProperties??new Set;return function e(t,r){if(!(null!==t&&"object"==typeof t))return t;if(Array.isArray(t))return t.map(t=>e(t,r)).filter(Boolean);let o={},a=new Set(u(t));for(let n in t)!Object.prototype.hasOwnProperty.call(t,n)||i.has(n)||(a.has(n)?o[n]=e(t[n],t):o[n]=t[n]);let l=n(t,o,r);if(null!==l)return l??o}(e)},rO=(e,t,n)=>{if(!(e&&null==t)){if(t.findLastIndex)return t.findLastIndex(n);for(let e=t.length-1;e>=0;e--)if(n(t[e],e,t))return e;return -1}},rP=({parser:e})=>"json"===e||"json5"===e||"jsonc"===e||"json-stringify"===e;function rz(e){let t=rO(!1,e,e=>"Program"!==e.type&&"File"!==e.type);return -1===t?e:e.slice(0,t+1)}function rY(e,t,n,r,u=[],i){let{locStart:o,locEnd:a}=n,l=o(e),s=a(e);if(!(t>s||t=0&&(t.cursorNode=rB(r,t));let i=await rL(r,t,n);n>0&&(i=t0([tJ,i],n,t.tabWidth));let o=nd(i,t);if(n>0){let e=o.formatted.trim();void 0!==o.cursorNodeStart&&(o.cursorNodeStart-=o.formatted.indexOf(e)),o.formatted=e+tF(t.endOfLine)}let a=t[Symbol.for("comments")];if(t.cursorOffset>=0){let e,n,r,i,l;if(t.cursorNode&&o.cursorNodeText?(e=t.locStart(t.cursorNode),n=u.slice(e,t.locEnd(t.cursorNode)),r=t.cursorOffset-e,i=o.cursorNodeStart,l=o.cursorNodeText):(e=0,n=u,r=t.cursorOffset,i=0,l=o.formatted),n===l)return{formatted:o.formatted,cursorOffset:i+r,comments:a};let s=n.split("");s.splice(r,0,rU);let D=l.split(""),c=tg.diff(s,D,void 0),p=i;for(let e of c)if(e.removed){if(e.value.includes(rU))break}else p+=e.count;return{formatted:o.formatted,cursorOffset:p,comments:a}}return{formatted:o.formatted,cursorOffset:-1,comments:a}}async function rQ(e,t){let{ast:n,text:r}=await rN(e,t),{rangeStart:u,rangeEnd:i}=function(e,t,n){let r,u,{rangeStart:i,rangeEnd:o,locStart:a,locEnd:l}=t;ny.ok(o>i);let s=e.slice(i,o).search(/\S/u),D=-1===s;if(!D)for(i+=s;o>i&&!/\S/u.test(e[o-1]);--o);let c=rY(n,i,t,(e,n)=>rG(t,e,n),[],"rangeStart"),p=D?c:rY(n,o,t,e=>rG(t,e),[],"rangeEnd");if(!c||!p)return{rangeStart:0,rangeEnd:0};if(rP(t)){let e,t;let n=(e=[c.node,...c.parentNodes],t=new Set([p.node,...p.parentNodes]),e.find(e=>rZ.has(e.type)&&t.has(e)));r=n,u=n}else({startNode:r,endNode:u}=function(e,t,{locStart:n,locEnd:r}){let u=e.node,i=t.node;if(u===i)return{startNode:u,endNode:i};let o=n(e.node);for(let e of rz(t.parentNodes))if(n(e)>=o)i=e;else break;let a=r(t.node);for(let t of rz(e.parentNodes)){if(r(t)<=a)u=t;else break;if(u===i)break}return{startNode:u,endNode:i}}(c,p,t));return{rangeStart:Math.min(a(r),a(u)),rangeEnd:Math.max(l(r),l(u))}}(r,t,n),o=r.slice(u,i),a=Math.min(u,r.lastIndexOf(` +`,u)+1),l=nF(r.slice(a,u).match(/^\s*/u)[0],t.tabWidth),s=await rW(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>u&&t.cursorOffset<=i?t.cursorOffset-u:-1,endOfLine:"lf"},l),D=s.formatted.trimEnd(),{cursorOffset:c}=t;c>i?c+=D.length-o.length:s.cursorOffset>=0&&(c=s.cursorOffset+u);let p=r.slice(0,u)+D+r.slice(i);if("lf"!==t.endOfLine){let e=tF(t.endOfLine);c>=0&&e===`\r +`&&(c+=tm(p.slice(0,c),` +`)),p=ta(!1,p,` +`,e)}return{formatted:p,cursorOffset:c,comments:s.comments}}function rR(e,t,n){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?n:t}function rH(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:u}=t;return n=rR(e,n,-1),r=rR(e,r,0),u=rR(e,u,e.length),{...t,cursorOffset:n,rangeStart:r,rangeEnd:u}}function r$(e,t){var n;let r,{cursorOffset:u,rangeStart:i,rangeEnd:o,endOfLine:a}=rH(e,t),l="\uFEFF"===e.charAt(0);if(l&&(e=e.slice(1),u--,i--,o--),"auto"===a&&(a=(r=(n=e).indexOf("\r"))>=0?n.charAt(r+1)===` +`?"crlf":"cr":"lf"),e.includes("\r")){let t=t=>tm(e.slice(0,Math.max(t,0)),`\r +`);u-=t(u),i-=t(i),o-=t(o),e=ta(!1,e,/\r\n?/gu,` +`)}return{hasBOM:l,text:e,options:rH(e,{...t,cursorOffset:u,rangeStart:i,rangeEnd:o,endOfLine:a})}}async function rV(e,t){let n=await function({plugins:e,parser:t}){return rj(rb(e,t),t)}(t);return!n.hasPragma||n.hasPragma(e)}async function rJ(e,t){let n,{hasBOM:r,text:u,options:i}=r$(e,await rw(t));return i.rangeStart>=i.rangeEnd&&""!==u||i.requirePragma&&!await rV(u,i)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(i.rangeStart>0||i.rangeEnd=0&&n.cursorOffset++),n)}async function rq(e,t,n){let{text:r,options:u}=r$(e,await rw(t)),i=await rN(r,u);return n&&(n.preprocessForPrint&&(i.ast=await rS(i.ast,u)),n.massage&&(i.ast=rT(i.ast,u))),i}async function rX(e,t){return t=await rw(t),nd(await rL(e,t),t)}async function rK(e,t){let n=function(e){let t=Object.create(null),n=new Set;return function e(t,n,u){var i,o;if("string"==typeof t)return JSON.stringify(t);if(Array.isArray(t)){let n=t.map(e).filter(Boolean);return 1===n.length?n[0]:`[${n.join(", ")}]`}if(t.type===tL){let e=(null==(i=null==u?void 0:u[n+1])?void 0:i.type)===tS;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if(t.type===tS)return(null==(o=null==u?void 0:u[n-1])?void 0:o.type)===tL&&u[n-1].hard?void 0:"breakParent";if(t.type===tM)return"trim";if(t.type===tb)return"indent("+e(t.contents)+")";if(t.type===tj)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if(t.type===tN)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+`, { groupId: ${r(t.groupId)} }`:"")+")";if(t.type===tx){let n=[];t.negate&&n.push("negate: true"),t.groupId&&n.push(`groupId: ${r(t.groupId)}`);let u=n.length>0?`, { ${n.join(", ")} }`:"";return`indentIfBreak(${e(t.contents)}${u})`}if(t.type===tw){let n=[];t.break&&"propagated"!==t.break&&n.push("shouldBreak: true"),t.id&&n.push(`id: ${r(t.id)}`);let u=n.length>0?`, { ${n.join(", ")} }`:"";return t.expandedStates?`conditionalGroup([${t.expandedStates.map(t=>e(t)).join(",")}]${u})`:`group(${e(t.contents)}${u})`}if(t.type===tI)return`fill([${t.parts.map(t=>e(t)).join(", ")}])`;if(t.type===tv)return"lineSuffix("+e(t.contents)+")";if(t.type===tA)return"lineSuffixBoundary";if(t.type===tk)return`label(${JSON.stringify(t.label)}, ${e(t.contents)})`;throw Error("Unknown doc type "+t.type)}(function e(t){var n;if(!t)return"";if(Array.isArray(t)){let n=[];for(let r of t)if(Array.isArray(r))n.push(...e(r));else{let t=e(r);""!==t&&n.push(t)}return n}return t.type===tN?{...t,breakContents:e(t.breakContents),flatContents:e(t.flatContents)}:t.type===tw?{...t,contents:e(t.contents),expandedStates:null==(n=t.expandedStates)?void 0:n.map(e)}:t.type===tI?{type:"fill",parts:t.parts.map(e)}:t.contents?{...t,contents:e(t.contents)}:t}(e));function r(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];let r=e.description||"symbol";for(let u=0;;u++){let i=r+(u>0?` #${u}`:"");if(!n.has(i))return n.add(i),t[e]=`Symbol.for(${JSON.stringify(i)})`}}}(e),{formatted:r}=await rJ(n,{...t,parser:"__js_expression"});return r}async function r0(e,t){t=await rw(t);let{ast:n}=await rN(e,t);return rL(n,t)}async function r1(e,t){return nd(e,await rw(t))}var r2={};e3(r2,{builders:()=>r3,printer:()=>r4,utils:()=>r8});var r3={join:tK,line:tV,softline:{type:tL,soft:!0},hardline:tJ,literalline:tq,group:tU,conditionalGroup:function(e,t){return tU(e[0],{...t,expandedStates:e})},fill:tW,lineSuffix:tQ,lineSuffixBoundary:{type:tA},cursor:tX,breakParent:tR,ifBreak:function(e,t="",n={}){return tZ(e),""!==t&&tZ(t),{type:tN,breakContents:e,flatContents:t,groupId:n.groupId}},trim:{type:tM},indent:t_,indentIfBreak:function(e,t){return tZ(e),{type:tx,contents:e,groupId:t.groupId,negate:t.negate}},align:tG,addAlignmentToDoc:t0,markAsRoot:function(e){return tG({type:"root"},e)},dedentToRoot:function(e){return tG(Number.NEGATIVE_INFINITY,e)},dedent:function(e){return tG(-1,e)},hardlineWithoutBreakParent:tH,literallineWithoutBreakParent:t$,label:function(e,t){return tZ(t),e?{type:tk,label:e,contents:t}:t},concat:e=>e},r4={printDocToString:nd},r8={willBreak:function(e){return t6(e,t7,!1)},traverseDoc:tY,findInDoc:t6,mapDoc:t9,removeLines:function(e){return t9(e,ne)},stripTrailingHardline:nr,replaceEndOfLine:function(e,t=tq){return t9(e,e=>"string"==typeof e?tK(t,e.split(` +`)):e)},canBreak:function(e){return t6(e,nu,!1)}},r9="3.3.3",r6={};e3(r6,{addDanglingComment:()=>nS,addLeadingComment:()=>nk,addTrailingComment:()=>nB,getAlignmentSize:()=>nF,getIndentSize:()=>un,getMaxContinuousCount:()=>ur,getNextNonSpaceNonCommentCharacter:()=>uu,getNextNonSpaceNonCommentCharacterIndex:()=>ul,getStringWidth:()=>t8,hasNewline:()=>nN,hasNewlineInRange:()=>ui,hasSpaces:()=>uo,isNextLineEmpty:()=>uD,isNextLineEmptyAfterIndex:()=>ut,isPreviousLineEmpty:()=>us,makeString:()=>ua,skip:()=>nE,skipEverythingButNewLine:()=>nw,skipInlineComment:()=>r7,skipNewline:()=>nI,skipSpaces:()=>nj,skipToLineEnd:()=>nM,skipTrailingComment:()=>r5,skipWhitespace:()=>nb});var r7=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1)){for(let n=t+2;nMath.max(e,n.length/t.length),0)},uu=function(e,t){let n=ue(e,t);return!1===n?"":e.charAt(n)},ui=function(e,t,n){for(let r=t;ru===r?u:i===t?"\\"+i:i||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return t+u+t};function ul(e,t){return 2==arguments.length||"number"==typeof t?ue(e,t):function(e,t,n){return ue(e,n(t))}(...arguments)}function us(e,t){return 2==arguments.length||"number"==typeof t?n_(e,t):function(e,t,n){return n_(e,n(t))}(...arguments)}function uD(e,t){return 2==arguments.length||"number"==typeof t?ut(e,t):function(e,t,n){return ut(e,n(t))}(...arguments)}function uc(e,t=1){return async(...n)=>{let r=n[t]??{},u=r.plugins??[];return n[t]={...r,plugins:Array.isArray(u)?u:Object.values(u)},e(...n)}}var up=uc(rJ);async function ud(e,t){let{formatted:n}=await up(e,{...t,cursorOffset:-1});return n}async function uf(e,t){return await ud(e,t)===e}var uh=uc(nR,0),ug={parse:uc(rq),formatAST:uc(rX),formatDoc:uc(rK),printToDoc:uc(r0),printDocToString:uc(r1)},uF=n(45697),um=n.n(uF),uy=n(53043),uC=n(10382),uE=n(58046),ub=n(80594),uj=n(63885),uM=n(69216),uw=n(99514),uI=n(99900),uN=n(6714),ux=n(49360),uv=n(89262),uA=n(39626),uL=n(77347),uk=n(90645),uS=n(48878),uB=function(){return(uB=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&n.size>1048576*p){var a=w||"The size of files cannot exceed ".concat(p,"Mb");return W(a),r&&r(a)}if(I&&I.length>0&&!(-1!==I.findIndex(function(e){return e.toLowerCase()===i.toLowerCase()}))){var l="Extension .".concat(i," has been excluded");return W(l),r&&r(l)}o||(et.push(n),en(et)),u.addEventListener("load",function(){X.push({name:n.name,size:n.size,path:this.result,type:n.type,contentType:n.type,lastModified:n.lastModified,extension:null==i?void 0:i.toLowerCase()}),K(uT([],X,!0))},!1),u.readAsDataURL(n)}(u);return e.target.value="",!0}catch(e){W(e.toString())}return!1},el=function(e,t){if(W(null),er.current&&(er.current.value=""),"number"!=typeof t){K([]),en([]);return}if(t<0||t>X.length-1)return console.error("item's index not found...");var n=uB({},X[t]);return null==X||X.splice(t,1),null==et||et.splice(t,1),K(uT([],X,!0)),en(uT([],et,!0)),n},es=(0,eQ.useCallback)(function(e){e.preventDefault(),J(!0)},[]),eD=(0,eQ.useCallback)(function(e){e.stopPropagation(),e.preventDefault()},[]),ec=(0,eQ.useCallback)(function(e){var t;e.stopPropagation(),e.preventDefault(),J(!1),H({event:e,files:null===(t=e.dataTransfer)||void 0===t?void 0:t.files})},[]),ep=(0,eQ.useCallback)(function(){J(!1)},[]),ed=function(){return{addFile:ea,removeFile:el,input:er.current,files:o?X:et}};(0,eQ.useEffect)(function(){er.current&&j&&"function"==typeof j&&j(ed())},[er.current]),(0,eQ.useEffect)(function(){var e=ei.current;!e||e.ondrop||u||(e.ondrop=ec,e.ondragend=ep,e.ondragover=eD,e.ondragenter=es)},[ei.current]),(0,eQ.useEffect)(function(){F&&F.length>0&&X.length!==F.length&&K(F)},[F]),(0,eQ.useEffect)(function(){(null==R?void 0:R.event)&&(null==R?void 0:R.files)&&(ea(R.event,R.files),H(null)),m&&(m(o?X:et),j&&j(ed()))},[X,R]);var ef=V?B.palette.secondary.light:B.palette.primary.light;return eQ.createElement(eQ.Fragment,null,eQ.createElement(uM.Z,uB({sx:{p:1},elevation:0,ref:ei,variant:"outlined"},O),eQ.createElement(uE.Z,{gutterBottom:!0,component:"div",color:"textSecondary",sx:{display:"flex"}},eQ.createElement(uy.Z,{sx:{flexGrow:1,fontSize:12}},t),(null==X?void 0:X.length)>0&&eQ.createElement(uy.Z,{sx:{fontSize:12}},X.length,C>0&&"/".concat(C)," file",(null==X?void 0:X.length)>1&&"s"," joined")),eQ.createElement(uM.Z,uB({elevation:0,sx:{p:1,transition:500,background:ef}},T),eQ.createElement(uw.ZP,{container:!0,spacing:2,alignItems:"center",justifyContent:"center"},M&&eQ.createElement(uw.ZP,uB({item:!0,xs:12,sm:3,md:4,sx:{textAlign:"center",mt:{xs:-3,sm:2}}},v),eQ.createElement("img",{alt:a,src:i||"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgMzAwIiB3aWR0aD0iNDA2IiBoZWlnaHQ9IjMwNiIgY2xhc3M9ImlsbHVzdHJhdGlvbiBzdHlsZXNfaWxsdXN0cmF0aW9uVGFibGV0X18xRFdPYSI+PHRpdGxlPiMxNiBmaWxlcyBhbmQgZm9sZGVyczwvdGl0bGU+PHBhdGggZD0iTTE0Ny43MSwxNDcuN0gxNDAuOHYtMi43Nmg2LjkxYTMuNDQsMy40NCwwLDEsMCwwLTYuODhIMTQwLjhWMTM1LjNoNi45MWE2LjIsNi4yLDAsMSwxLDAsMTIuNFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMTQ3LjcxLDE0Ny43SDE0MC44di0yLjc2aDYuOTFhMy40NCwzLjQ0LDAsMSwwLDAtNi44OEgxNDAuOFYxMzUuM2g2LjkxYTYuMiw2LjIsMCwxLDEsMCwxMi40WiIgZmlsbD0iI2ZmZiIgb3BhY2l0eT0iMC42MSI+PC9wYXRoPjxlbGxpcHNlIGN4PSIxOTguNTYiIGN5PSIyNTYuOTkiIHJ4PSIxNDUuMDciIHJ5PSIyMC4xOCIgZmlsbD0iI2U2ZTZlNiIgb3BhY2l0eT0iMC40NSI+PC9lbGxpcHNlPjxwYXRoIGQ9Ik0yODguNzUsOTUuNjJjLTEuMzYsMjEuMDctMTEuNDIsNzMuNjEtNzkuNDMsNDQuMDZsMi4zNC02Ljk0czMzLjYxLDUuOTMsNDIuNS02LjU0YzcuNTItMTAuNTYsNy40LTQ1LjE5LDI0LTQzLjU0QTEyLjA5LDEyLjA5LDAsMCwxLDI4OC43NSw5NS42MloiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4Ljc1LDk1LjYyYy0xLjM2LDIxLjA3LTExLjQyLDczLjYxLTc5LjQzLDQ0LjA2bDIuMzQtNi45NHMzMy42MSw1LjkzLDQyLjUtNi41NGM3LjUyLTEwLjU2LDcuNC00NS4xOSwyNC00My41NEExMi4wOSwxMi4wOSwwLDAsMSwyODguNzUsOTUuNjJaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHBhdGggZD0iTTIyNi4xNSw1Ni4zNnMxLjM4LDcuNTksNCwxMi4xOGEzLjg3LDMuODcsMCwwLDAsNS4zLDEuNDVjMi4zLTEuMzQsNS0zLjgxLDQuNzYtOGwuNDUtNy4xMWE2LjkxLDYuOTEsMCwwLDAtNC44OS02LjMzQzIzMC43Miw0Ni43MSwyMjUuMDgsNTEuNzgsMjI2LjE1LDU2LjM2WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwb2x5Z29uIHBvaW50cz0iMjQwLjcyIDU3LjIyIDI1NS42OSA3Mi4zMyAyNDYuNzUgODIuMDQgMjM3LjM2IDYzLjk4IDI0MC43MiA1Ny4yMiIgZmlsbD0iI2Y0YTI4YyI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yMzUuOCw2MC41OHMtLjczLTIuODgsMS40OC0zLjI1LDMuMjksMy43OS40Nyw1WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwYXRoIGQ9Ik0yMjcuMjcsNjEuMSwyMjYsNjQuNTNhMS4yNCwxLjI0LDAsMCwwLDEuMjUsMS42N2wzLS4yNFoiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjY1LjIxLDI0OC43OXMtMiwzLjY1LTUuNTMsMy40MS01LDMtMiw0LjQxLDExLjc0LTEuNDIsMTEuNzQtMS40MmwuNTUtNS4wOFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMzA3LjM1LDI0NC4xNHMyLjI1LDMuNTEuMzIsNi40OS4yNiw1LjgzLDIuOTEsMy44Niw0LjQzLTExLDQuNDMtMTFsLTQuMTktMi45M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjM4Ljg3LDY2Ljg4QTE1LjU0LDE1LjU0LDAsMCwwLDI0MC4xOCw2MlMyNDYsNjcuMzgsMjQyLjEsNzMuMVoiIGZpbGw9IiNjZTgxNzIiIG9wYWNpdHk9IjAuMzEiPjwvcGF0aD48cG9seWdvbiBwb2ludHM9IjI2My40NiAxNzAuMzUgMjYzLjAzIDI1MC40NCAyNzMuMzkgMjUwLjQ0IDI4Ni42NSAxNjkuMzIgMjYzLjQ2IDE3MC4zNSIgZmlsbD0iIzI0Mjg1YiI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yNDguNDEsNzYuNDZhMzAuNjYsMzAuNjYsMCwwLDEsMTguMzEtNi43MWMxMC44LS4xMSw0MC45MiwxLjc0LDM4Ljg2LDM4LjU4LTEuNTMsMjcuMy0yLjMxLDU3LjUtMi4zMSw1Ny41bC0zOS42Niw2LjYxUzIxNi4yNCwxMDUuNDEsMjQ4LjQxLDc2LjQ2WiIgZmlsbD0iI2ZmZmZmZiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzQuNjIsODUuNzJzLTguMzEsMTAtMy4xNywyOC4yOCwxMi4zNiw0MC4zMy0xMi40LDUxLjQxbDQuNTYsNywzOS42Ni02LjYxLjUyLTE2Ljg4LDYuMzctMzEuMjZaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHJlY3QgeD0iMTA5LjI1IiB5PSIxNTAuMzEiIHdpZHRoPSI2Ni45NyIgaGVpZ2h0PSIxMDYuNjgiIGZpbGw9IiNhNWE1YTUiIG9wYWNpdHk9IjAuNzkiPjwvcmVjdD48cmVjdCB4PSIxMzguNDgiIHk9IjE1MC4zMSIgd2lkdGg9IjU3LjkzIiBoZWlnaHQ9IjEwNi42OCIgZmlsbD0iI2U2ZTZlNiI+PC9yZWN0Pjxwb2x5Z29uIHBvaW50cz0iMTc5LjggMTU2LjU1IDE3OC43NCAxNjIuNjYgMTUwLjMgMTYyLjY2IDE1MC4zIDE4OC40NCAxOTcuNiAxODguNDQgMTk3LjYgMTY3LjQ0IDE5Ny42IDE2Mi42NiAxOTcuNiAxNTYuNTUgMTc5LjggMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxNzkuOCAxNTYuNTUgMTc4Ljc0IDE2Mi42NiAxNTAuMyAxNjIuNjYgMTUwLjMgMTg4LjQ0IDE5Ny42IDE4OC40NCAxOTcuNiAxNjcuNDQgMTk3LjYgMTYyLjY2IDE5Ny42IDE1Ni41NSAxNzkuOCAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjE4Ni43MSAxNTYuNTUgMTg1LjY1IDE2Mi42NiAxNTcuMjEgMTYyLjY2IDE1Ny4yMSAxODguNDQgMjA0LjUxIDE4OC40NCAyMDQuNTEgMTY3LjQ0IDIwNC41MSAxNjIuNjYgMjA0LjUxIDE1Ni41NSAxODYuNzEgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIyNjIuOTggMTIxLjA3IDI2NC45MiAxMjguMjggMjM4Ljc4IDEzOS40OSAyNTEuMDcgMTY4LjE0IDI5NC41NSAxNDkuNDkgMjg0LjU0IDEyNi4xNiAyODIuMjYgMTIwLjg0IDI3OS4zNCAxMTQuMDUgMjYyLjk4IDEyMS4wNyIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMjYyLjk4IDEyMS4wNyAyNjQuOTIgMTI4LjI4IDIzOC43OCAxMzkuNDkgMjUxLjA3IDE2OC4xNCAyOTQuNTUgMTQ5LjQ5IDI4NC41NCAxMjYuMTYgMjgyLjI2IDEyMC44NCAyNzkuMzQgMTE0LjA1IDI2Mi45OCAxMjEuMDciIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjI2OS4zMyAxMTguMzQgMjcxLjI3IDEyNS41NiAyNDUuMTMgMTM2Ljc2IDI1Ny40MiAxNjUuNDEgMzAwLjg5IDE0Ni43NyAyOTAuODkgMTIzLjQzIDI4OC42MSAxMTguMTIgMjg1LjY5IDExMS4zMyAyNjkuMzMgMTE4LjM0IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxOTIuNDIgMTU2LjU1IDE5MS4zNiAxNjIuNjYgMTYyLjkzIDE2Mi42NiAxNjIuOTMgMTg4LjQ0IDIxMC4yMyAxODguNDQgMjEwLjIzIDE2Ny40NCAyMTAuMjMgMTYyLjY2IDIxMC4yMyAxNTYuNTUgMTkyLjQyIDE1Ni41NSIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMTkyLjQyIDE1Ni41NSAxOTEuMzYgMTYyLjY2IDE2Mi45MyAxNjIuNjYgMTYyLjkzIDE4OC40NCAyMTAuMjMgMTg4LjQ0IDIxMC4yMyAxNjcuNDQgMjEwLjIzIDE2Mi42NiAyMTAuMjMgMTU2LjU1IDE5Mi40MiAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMTIiPjwvcmVjdD48cmVjdCB4PSIxNjYuNDUiIHk9IjE0Ny4yMyIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjEuNDQgMjguOTEpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cG9seWdvbiBwb2ludHM9IjE5OS4zMyAxNTYuNTUgMTk4LjI3IDE2Mi42NiAxNjkuODQgMTYyLjY2IDE2OS44NCAxODguNDQgMjE3LjE0IDE4OC40NCAyMTcuMTQgMTY3LjQ0IDIxNy4xNCAxNjIuNjYgMjE3LjE0IDE1Ni41NSAxOTkuMzMgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHJlY3QgeD0iMTQ3LjY1IiB5PSIxNzAuMzciIHdpZHRoPSI3NC41NCIgaGVpZ2h0PSIyOS4xIiBmaWxsPSIjYTVhNWE1Ij48L3JlY3Q+PHBhdGggZD0iTTI5MS4xMywxMjRhMjEyLjI0LDIxMi4yNCwwLDAsMS0xNCwxNi4yNyw2My43OCw2My43OCwwLDAsMS0xMi42Nyw5LjkyYy0yLjY5LDEuNjUtNS41Miw0LjU5LTMuNjIsOS4xOWgxNC44MUwyOTUsMTMzLjEzWiIgb3BhY2l0eT0iMC4wOCI+PC9wYXRoPjxyZWN0IHg9IjE3MS4xNiIgeT0iMTcwLjM3IiB3aWR0aD0iNTEuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjE0Ny42NSIgeT0iMjEyLjkyIiB3aWR0aD0iNTkuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjEyOC4zOCIgeT0iMTMyLjMiIHdpZHRoPSIxNi44OSIgaGVpZ2h0PSIxOC40IiBmaWxsPSIjZmZmZmZmIj48L3JlY3Q+PGNpcmNsZSBjeD0iMTk3LjU3IiBjeT0iMTgzLjc1IiByPSI0LjA5IiBmaWxsPSIjYTVhNWE1Ij48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNzguMDQiIGN5PSIyMjYuMzEiIHI9IjQuMDkiIGZpbGw9IiNhNWE1YTUiPjwvY2lyY2xlPjxwYXRoIGQ9Ik0yMTEuMjMsMTM0YTIyLjE2LDIyLjE2LDAsMCwwLTguMjYsMS4yNWMtNC40MywxLjU2LTguNTMsNS41MS01LjM3LDEwLjEzLDIuNDQsMy41Niw1LjksMS43Miw3LjE5LTEuMTNzMi4wNy01LjYxLDQuNTMtNC41N1oiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzEuNDUsMTU1LjdzLTExLTEuMi0xMiwzLTEuNjgsNi43NC0xLjY4LDYuNzRhMzAuMSwzMC4xLDAsMCwwLDE1LjY2LTQuODJaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTMwMy4yNywxNjUuODNhMTA0Ljc4LDEwNC43OCwwLDAsMSwuMTgsMTUuMzhjLS4yNyw2LjMxLTEuOTEsMTYuODItMy4xNSwyNC4wOUEyMy4yMiwyMy4yMiwwLDAsMCwzMDMsMjIwLjZsMTAsMTcuNzktNy4yNiw3LjI0LTExLjkxLTE1LjQ4YTY0Ljg4LDY0Ljg4LDAsMCwxLTEyLjE2LTI3bC0zLjc5LTE5LjM0LTkuNTUtMTIuMTRaIiBmaWxsPSIjMjQyODViIj48L3BhdGg+PHBhdGggZD0iTTIyMS43NSw0Ny4zM3MtMy4wOSw3LjE0LDQuMjksNy40OSw3LjI5LTEuMTUsNy4yOS0xLjE1LjQ2LDkuNTQsNi44NSw4LjM1bDIuNjUtMi42OHMzLTEyLjE3LTIuMi0xNC44NEMyNDAuNjMsNDQuNSwyMzAuMjUsMzMuODMsMjIxLjc1LDQ3LjMzWiIgZmlsbD0iIzI0Mjg1YiI+PC9wYXRoPjxwYXRoIGQ9Ik0yMzUuNjgsNjEuNzNzLjM5LTYuMjIsMy44OS00LjY3UzI0MC43Niw2NS4zOSwyMzUuNjgsNjEuNzNaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTE0MC44LDEzMi4zczExLjg5LTcuNjMsMC0xOC4zLTE2LjU1LDE0LTI1LjIyLTIuNjcsMTMuMzMtMzQuNjYtMTEtMzZTOTUuNDcsNTguNjIsNzQuNTIsNTYuODEsNDcuOTEsOTIuMTEsNjMuOTEsOTQuNTZzMzEuMzQsMy40NCwyNywxOC43NywxMiwxOS41LDE5LjY3LDE1Ljc1LDE3LjgsMy4yMiwxNy44LDMuMjJaIiBmaWxsPSIjZTZlNmU2IiBvcGFjaXR5PSIwLjQ1Ij48L3BhdGg+PHBhdGggZD0iTTk4LDI0MnMtMTEuODUtMy4xOC0xNC40Ny0xNC4xOGMwLDAsMTguMzItMy43OCwxOC45MiwxNS4xNFoiIGZpbGw9IiNmZmZmZmYiIG9wYWNpdHk9IjAuNTgiPjwvcGF0aD48cGF0aCBkPSJNOTkuNDYsMjQwLjc4cy04LjMyLTEzLTEuMS0yNS4yOGMwLDAsMTQsOC43OSw3Ljg2LDI1LjI4WiIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC43MyI+PC9wYXRoPjxwYXRoIGQ9Ik0xMDEuNTksMjQwLjc4czQuMzEtMTMuODIsMTcuNS0xNi40OWMwLDAsMi41Miw5LTguNDgsMTYuNDlaIiBmaWxsPSIjZmZmZmZmIj48L3BhdGg+PHBvbHlnb24gcG9pbnRzPSI5My4wMSAyNDAuNTEgOTUuNDggMjU2LjkxIDExMC41OCAyNTYuOTEgMTEyLjc0IDI0MC41MSA5My4wMSAyNDAuNTEiIGZpbGw9IiMyNDI4NWIiPjwvcG9seWdvbj48L3N2Zz4=",width:eo.width,height:eo.height})),eQ.createElement(uw.ZP,uB({item:!0,xs:12,sm:!0,md:!0,sx:{color:"#fff",textAlign:"center",mt:{xs:M?-4:0,sm:2}}},x),eQ.createElement(uI.Z,{smDown:!0},eQ.createElement(uE.Z,{variant:"h5"},eQ.createElement("b",null,n))),eQ.createElement(uI.Z,{smUp:!0},eQ.createElement(uE.Z,{variant:"h6"},eQ.createElement("b",null,n))),eQ.createElement(uE.Z,{variant:"caption"},s,eQ.createElement(f.Z,{size:"small",color:"secondary",variant:"outlined",disabled:u,onClick:function(){var e;return null===(e=er.current)||void 0===e?void 0:e.click()},sx:{m:.5,color:B.palette.grey["50"],borderColor:B.palette.grey["50"],"&:hover":{borderColor:B.palette.grey["50"]}}},c),D),eQ.createElement("input",{type:"file",ref:er,onChange:function(e){return ea(e)},multiple:l,accept:g,style:{display:"none"}})))),U&&eQ.createElement(uN.Z,{color:"error",severity:"error",sx:{mt:1},onClose:function(){return W(null)}},U),(null==X?void 0:X.length)>0&&eQ.createElement(eQ.Fragment,null,eQ.createElement(uP,{component:"div",sx:{overflowY:"auto",mt:2,mr:-1,pr:1,height:A,maxHeight:L}},null==X?void 0:X.map(function(e,t){var n=(e.size/1024).toFixed(2)+" Kb";return e.size>1048576&&(n=(e.size/1048576).toFixed(2)+" Mb"),eQ.createElement(uO,{file:e,size:n,index:t,disabled:u,key:"upload-file--".concat(t),handleRemoveFile:el})})),eQ.createElement(uE.Z,{component:"div",align:"right",sx:{mt:1}},eQ.createElement(f.Z,{size:"small",disabled:u,onClick:el,ref:eu},N||"Remove all")))))}function uY(e){let[t,n]=eQ.useState([]),r=async t=>{if(0===t.length){e.onChange(null,null);return}let r=t[t.length-1],u=await r.arrayBuffer(),i=(new TextDecoder).decode(u),o=r.name.split(".").pop();try{let t="json"===o?JSON.parse(i):eM(i);e.onChange(t,null)}catch{e.onChange(null,"json"===o?"Invalid JSON file":"Invalid YAML file");return}t.length>1&&n([r])};return(0,a.jsx)(uz,{defaultFiles:t,onFilesChange:r,acceptedType:".json, .yaml",getBase64:!1,multiFile:!1,maxUploadFiles:1,title:"Swagger file uploader",header:"Drag and drop a Swagger file here",buttonLabel:"Click Here",rightLabel:"to select swagger.json/yaml file",buttonRemoveLabel:"Clear"})}function uZ(e){let[t,n]=eQ.useState("sdk"),[r,u]=eQ.useState(!0),[i,g]=eQ.useState(!0),[F,m]=eQ.useState(null),[y,C]=eQ.useState(!1),E=t=>{e.onError?e.onError(t):alert(t)},b=async()=>{if(null!==F){C(!0);try{let e=await o[t]({document:F,e2e:i,simulate:r});!0===e.success?h.default.openProject({title:F.info?.title??"Nestia Editor",template:"node",files:e.data.files},{newWindow:!0,openFile:e.data.openFile,startScript:e.data.startScript}):E(JSON.stringify(e.errors,null,2))}catch(e){E(e instanceof Error?e.message:"unknown error")}C(!1)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(uY,{onChange:(e,t)=>{m(e),null!==t&&E(t)}}),(0,a.jsx)("br",{}),(0,a.jsxs)(l.Z,{fullWidth:!0,style:{paddingLeft:15},children:[(0,a.jsx)(s.Z,{children:" Mode "}),(0,a.jsxs)(D.Z,{defaultValue:t,onChange:(e,t)=>n(t),style:{paddingLeft:15},children:[(0,a.jsx)(c.Z,{value:"sdk",control:(0,a.jsx)(p.Z,{}),label:"Software Development Kit"}),(0,a.jsx)(c.Z,{value:"nest",control:(0,a.jsx)(p.Z,{}),label:"NestJS Project"})]}),(0,a.jsx)(s.Z,{style:{paddingTop:20},children:" Options "}),(0,a.jsx)(c.Z,{label:"Mockup Simulator",style:{paddingTop:5,paddingLeft:15},control:(0,a.jsx)(d.Z,{checked:r,onChange:()=>u(!r)})}),(0,a.jsx)(c.Z,{label:"E2E Test Functions",style:{paddingLeft:15},control:(0,a.jsx)(d.Z,{checked:i,onChange:()=>g(!i)})})]}),(0,a.jsx)("br",{}),(0,a.jsx)("br",{}),(0,a.jsx)(f.Z,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:!0===y||null===F,onClick:()=>b(),children:y?"Generating...":"Generate Editor"})]})}uz.propTypes={getBase64:um().bool,maxUploadFiles:um().number,title:um().string,header:um().string,leftLabel:um().string,rightLabel:um().string,buttonLabel:um().string,multiFile:um().bool,disabled:um().bool,defaultFiles:um().array,maxFileSize:um().number,maxFilesContainerHeight:um().number,errorSizeMessage:um().string,imageSrc:um().string,imageSrcAlt:um().string,acceptedType:um().string,bannerProps:um().object,BannerProps:um().object,containerProps:um().object,ContainerProps:um().object,allowedExtensions:um().array,onError:um().func,onContextReady:um().func,onFilesChange:um().func,showPlaceholderImage:um().bool,LabelsGridProps:um().object,PlaceholderGridProps:um().object,placeholderImageDimension:um().object,PlaceholderImageDimension:um().object},uz.defaultProps={getBase64:!1,multiFile:!0,maxFileSize:0,maxUploadFiles:0,acceptedType:"*/*",defaultFiles:[],allowedExtensions:[],title:"My awesome file uploader",header:">[Drag to drop]<",leftLabel:"or",rightLabel:"to select files",buttonLabel:"click here",imageSrcAlt:"Placeholder image",maxFilesContainerHeight:300,showPlaceholderImage:!0,placeholderImageDimension:{},PlaceholderImageDimension:{},bannerProps:{},BannerProps:{},containerProps:{},ContainerProps:{},LabelsGridProps:{},PlaceholderGridProps:{}},function(e){e.nest=e=>t({openFile:"README.md,test/start.ts",startScript:["build:test,test",""],migrate:t=>t.nest(e)})(e),e.sdk=async e=>(console.log("NestiaEditorComposer.sdk()",e),t({openFile:"README.md,test/start.ts",startScript:["swagger","hello"],migrate:t=>t.sdk(e)})(e));let t=e=>async t=>{if(void 0!==t.files)return{success:!0,data:{files:t.files,openFile:e.openFile,startScript:e.startScript},errors:[]};let n=await eR.MigrateApplication.create(t.document);if(!1===n.success)return n;let r=n.data,{files:u}=e.migrate(r);for(let e of u)if(".ts"===e.file.substring(e.file.length-3))try{e.content=await ud(e.content,{parser:"typescript",plugins:[eH,e$]})}catch(e){console.log(e)}return{success:!0,data:{files:Object.fromEntries(u.map(e=>[[e.location,e.location.length?"/":"",e.file].join(""),e.content])),openFile:e.openFile,startScript:e.startScript},errors:[]}}}(o||(o={}))}}]); \ No newline at end of file diff --git a/_next/static/chunks/46d2146f-5ad3af8e0f1a9bfb.js b/_next/static/chunks/46d2146f-91aa341f5278ab06.js similarity index 91% rename from _next/static/chunks/46d2146f-5ad3af8e0f1a9bfb.js rename to _next/static/chunks/46d2146f-91aa341f5278ab06.js index 164857803..4e5ddf0db 100644 --- a/_next/static/chunks/46d2146f-5ad3af8e0f1a9bfb.js +++ b/_next/static/chunks/46d2146f-91aa341f5278ab06.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[28],{9966:function(e,t,n){n.d(t,{ZP:function(){return aG}});var r=Object.defineProperty,u=e=>{throw TypeError(e)},a=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},o=(e,t,n)=>t.has(e)||u("Cannot "+n),i=(e,t,n)=>(o(e,t,"read from private field"),n?n.call(e):t.get(e)),s=(e,t,n)=>t.has(e)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),p=(e,t,n,r)=>(o(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),l={};a(l,{languages:()=>aW,options:()=>a$,printers:()=>aU});var c={};a(c,{canAttachComment:()=>nw,embed:()=>rt,experimentalFeatures:()=>aL,getCommentChildNodes:()=>nI,getVisitorKeys:()=>O,handleComments:()=>tU,insertPragma:()=>ry,isBlockComment:()=>q,isGap:()=>nj,massageAstNode:()=>e1,print:()=>aj,printComment:()=>t$,willPrintOwnComments:()=>nN});var D=(e,t,n,r)=>{if(!(e&&null==t))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},y=(e,t,n)=>{if(!(e&&null==t))return Array.isArray(t)||"string"==typeof t?t[n<0?t.length+n:n]:t.at(n)},d=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,m=e=>{var t;return!(12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510||(t=e)>=4352&&t<=4447||8986===t||8987===t||9001===t||9002===t||t>=9193&&t<=9196||9200===t||9203===t||9725===t||9726===t||9748===t||9749===t||t>=9800&&t<=9811||9855===t||9875===t||9889===t||9898===t||9899===t||9917===t||9918===t||9924===t||9925===t||9934===t||9940===t||9962===t||9970===t||9971===t||9973===t||9978===t||9981===t||9989===t||9994===t||9995===t||10024===t||10060===t||10062===t||t>=10067&&t<=10069||10071===t||t>=10133&&t<=10135||10160===t||10175===t||11035===t||11036===t||11088===t||11093===t||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||94192===t||94193===t||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101632&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||110589===t||110590===t||t>=110592&&t<=110882||110898===t||t>=110928&&t<=110930||110933===t||t>=110948&&t<=110951||t>=110960&&t<=111355||126980===t||127183===t||127374===t||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||127568===t||127569===t||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||127988===t||t>=127992&&t<=128062||128064===t||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||128378===t||128405===t||128406===t||128420===t||t>=128507&&t<=128591||t>=128640&&t<=128709||128716===t||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||128747===t||128748===t||t>=128756&&t<=128764||t>=128992&&t<=129003||129008===t||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129672||t>=129680&&t<=129725||t>=129727&&t<=129733||t>=129742&&t<=129755||t>=129760&&t<=129768||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141)},E=/[^\x20-\x7F]/u,f=function(e){if(!e)return 0;if(!E.test(e))return e.length;e=e.replace(d()," ");let t=0;for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=m(e)?1:2)}return t};function F(e){return(t,n,r)=>{let u=!!(null!=r&&r.backwards);if(!1===n)return!1;let{length:a}=t,o=n;for(;o>=0&&o{throw TypeError(e)},a=(e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})},o=(e,t,n)=>t.has(e)||u("Cannot "+n),i=(e,t,n)=>(o(e,t,"read from private field"),n?n.call(e):t.get(e)),s=(e,t,n)=>t.has(e)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),p=(e,t,n,r)=>(o(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),l={};a(l,{languages:()=>aW,options:()=>a$,printers:()=>aU});var c={};a(c,{canAttachComment:()=>nw,embed:()=>rt,experimentalFeatures:()=>aL,getCommentChildNodes:()=>nI,getVisitorKeys:()=>O,handleComments:()=>tU,insertPragma:()=>ry,isBlockComment:()=>q,isGap:()=>nj,massageAstNode:()=>e1,print:()=>aj,printComment:()=>t$,willPrintOwnComments:()=>nN});var D=(e,t,n,r)=>{if(!(e&&null==t))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},y=(e,t,n)=>{if(!(e&&null==t))return Array.isArray(t)||"string"==typeof t?t[n<0?t.length+n:n]:t.at(n)},d=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,m=e=>{var t;return!(12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510||(t=e)>=4352&&t<=4447||8986===t||8987===t||9001===t||9002===t||t>=9193&&t<=9196||9200===t||9203===t||9725===t||9726===t||9748===t||9749===t||t>=9800&&t<=9811||9855===t||9875===t||9889===t||9898===t||9899===t||9917===t||9918===t||9924===t||9925===t||9934===t||9940===t||9962===t||9970===t||9971===t||9973===t||9978===t||9981===t||9989===t||9994===t||9995===t||10024===t||10060===t||10062===t||t>=10067&&t<=10069||10071===t||t>=10133&&t<=10135||10160===t||10175===t||11035===t||11036===t||11088===t||11093===t||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||94192===t||94193===t||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101632&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||110589===t||110590===t||t>=110592&&t<=110882||110898===t||t>=110928&&t<=110930||110933===t||t>=110948&&t<=110951||t>=110960&&t<=111355||126980===t||127183===t||127374===t||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||127568===t||127569===t||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||127988===t||t>=127992&&t<=128062||128064===t||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||128378===t||128405===t||128406===t||128420===t||t>=128507&&t<=128591||t>=128640&&t<=128709||128716===t||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||128747===t||128748===t||t>=128756&&t<=128764||t>=128992&&t<=129003||129008===t||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129672||t>=129680&&t<=129725||t>=129727&&t<=129733||t>=129742&&t<=129755||t>=129760&&t<=129768||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141)},E=/[^\x20-\x7F]/u,f=function(e){if(!e)return 0;if(!E.test(e))return e.length;e=e.replace(d()," ");let t=0;for(let n of e){let e=n.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=m(e)?1:2)}return t};function F(e){return(t,n,r)=>{let u=!!(null!=r&&r.backwards);if(!1===n)return!1;let{length:a}=t,o=n;for(;o>=0&&o{let t=i.HttpMigration.application(e.document);return Object.assign(Object.assign({},e),{routes:t.routes,errors:t.errors})}},96352:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateControllerAnalyzer=void 0;let i=r(95669),o=r(18640);(n||(t.MigrateControllerAnalyzer=n={})).analyze=e=>{let t=new Map;for(let r of e){let e=r.emendedPath.split("/").filter(e=>":"!==e[0]).join("/");i.MapUtil.take(t)(e)(()=>[]).push(r)}let r=[...t.entries()].filter(([e,t])=>!!t.length).map(([e,t])=>({name:t[0].accessor.slice(0,-1).map(o.StringUtil.capitalize).join("")+"Controller",path:e,location:"src/controllers/"+t[0].accessor.slice(0,-2).join("/"),routes:t}));for(let e of r)"Controller"===e.name&&(e.name=o.StringUtil.escapeDuplicate([...r.map(e=>e.name)])("AppController"));return r}},85657:function(e,t){"use strict";var r,n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateFileArchiver=void 0,function(e){e.archive=e=>r=>i=>n(this,void 0,void 0,function*(){let n=new Set;for(let o of i)yield t(e.mkdir)(r)(n)(o.location),yield e.writeFile([r,o.location,o.file].join("/"),o.content)});let t=e=>t=>r=>i=>n(this,void 0,void 0,function*(){for(let n of i.split("/").map((e,t,r)=>r.slice(0,t+1).join("/")))if(!1===r.has(n))try{yield e([t,n].join("/")),r.add(n)}catch(e){}})}(r||(t.MigrateFileArchiver=r={}))},71517:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NEST_TEMPLATE=void 0,t.NEST_TEMPLATE=[{location:"",file:".env",content:"# BASIC SERVER INFO\r\nPROJECT_API_PORT=37001"},{location:"",file:".eslintrc.cjs",content:'module.exports = {\r\n root: true,\r\n plugins: ["@typescript-eslint", "deprecation"],\r\n extends: ["plugin:@typescript-eslint/recommended"],\r\n parser: "@typescript-eslint/parser",\r\n parserOptions: {\r\n project: ["tsconfig.json", "test/tsconfig.json"],\r\n },\r\n overrides: [\r\n {\r\n files: ["src/**/*.ts", "test/**/*.ts"],\r\n rules: {\r\n "@typescript-eslint/consistent-type-definitions": "off",\r\n "@typescript-eslint/no-empty-function": "off",\r\n "@typescript-eslint/no-empty-interface": "off",\r\n "@typescript-eslint/no-explicit-any": "off",\r\n "@typescript-eslint/no-inferrable-types": "off",\r\n "@typescript-eslint/no-namespace": "off",\r\n "@typescript-eslint/no-non-null-assertion": "off",\r\n "@typescript-eslint/no-unused-vars": "off",\r\n "@typescript-eslint/no-var-requires": "off",\r\n "@typescript-eslint/no-floating-promises": "error",\r\n "@typescript-eslint/no-require-imports": "off",\r\n "@typescript-eslint/no-empty-object-type": "off",\r\n },\r\n },\r\n ],\r\n};\r\n'},{location:".github/workflows",file:"build.yml",content:"name: build\r\non: \r\n push:\r\n paths:\r\n - 'src/**'\r\n - 'test/**'\r\n - 'package.json'\r\n pull_request:\r\n paths:\r\n - 'src/**'\r\n - 'test/**'\r\n - 'package.json'\r\njobs:\r\n Ubuntu:\r\n runs-on: ubuntu-latest\r\n steps:\r\n - uses: actions/checkout@v4\r\n - uses: actions/setup-node@v4\r\n with:\r\n node-version: 20.x\r\n - uses: pnpm/action-setup@v4\r\n with:\r\n version: 8\r\n \r\n - name: Install Backend-Server\r\n run: pnpm install\r\n\r\n - name: Build Swagger\r\n run: npm run build:swagger\r\n\r\n - name: Build SDK\r\n run: npm run build:sdk\r\n\r\n - name: Compile Backend-Server\r\n run: npm run build\r\n\r\n - name: Run Test Program\r\n run: npm run test\r\n\r\n - name: Test Webpack\r\n run: npm run webpack && npm run test:webpack\r\n\r\n - name: EsLint\r\n run: npm run eslint\r\n"},{location:"",file:".gitignore",content:".git/\r\nbin/\r\ndist/\r\nlib/\r\nnode_modules/\r\npackages/api/lib/\r\n\r\npackage-lock.json\r\npnpm-lock.yaml"},{location:"",file:".prettierignore",content:"dist\r\nbin\r\nnode_modules\r\npackages\r\nsrc/api/functional\r\nsrc/api/utils/NestiaSimulator.ts\r\nREADME.md\r\ntsconfig.json"},{location:".vscode",file:"launch.json",content:'{\r\n // Use IntelliSense to learn about possible Node.js debug attributes.\r\n // Hover to view descriptions of existing attributes.\r\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\r\n "version": "0.2.0",\r\n "configurations": [\r\n {\r\n "type": "node",\r\n "request": "launch",\r\n "name": "Backend Test",\r\n "program": "${workspaceRoot}/test/index.ts",\r\n "cwd": "${workspaceRoot}",\r\n "args": [\r\n // //----\r\n // // Not possible to reset DB in debugging mode\r\n // //\r\n // // Therefore, if you need DB reset, then do it \r\n // // through `npm run reset-for-debugging` command\r\n // //----\r\n // "--reset", "false",\r\n // "--mode", "local",\r\n \r\n //----\r\n // You can run specific test functions\r\n //\r\n // If you want to include or exclude multiple words,\r\n // then separate them with space character\r\n //----\r\n // "--include", "some-words-to-include",\r\n // "--exclude", "some-word another-word",\r\n ],\r\n "outFiles": ["${workspaceRoot}/bin/**/*.js"],\r\n }\r\n]\r\n}'},{location:".vscode",file:"settings.json",content:'{\r\n "editor.tabSize": 2,\r\n "editor.formatOnSave": true,\r\n "[javascript][typescript]": {\r\n "editor.defaultFormatter": "esbenp.prettier-vscode",\r\n "editor.codeActionsOnSave": {\r\n "source.fixAll.eslint": "explicit"\r\n },\r\n }\r\n}'},{location:"docs/benchmarks",file:"AMD Ryzen 9 7940HS w Radeon 780M Graphics.md",content:'# Benchmark Report\r\n> Generated by [`@nestia/benchmark`](https://github.com/samchon/nestia)\r\n\r\n - Specifications\r\n - CPU: AMD Ryzen 9 7940HS w/ Radeon 780M Graphics \r\n - RAM: 31 GB\r\n - NodeJS Version: v20.10.0\r\n - Backend Server: 1 core / 1 thread\r\n - Arguments\r\n - Count: 40,000\r\n - Threads: 4\r\n - Simultaneous: 32\r\n - Time\r\n - Start: 2024-07-26T05:37:51.497Z\r\n - Complete: 2024-07-26T05:39:34.390Z\r\n - Elapsed: 102,893 ms\r\n\r\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\r\n----|----|----|----|----|----|----\r\nTotal | 41,383 | 41,383 | 74.78 | 73.58 | 5 | 523\r\n\r\n> Unit: milliseconds\r\n\r\n## Memory Consumptions\r\n```mermaid\r\nxychart-beta\r\n x-axis "Time (second)"\r\n y-axis "Memory (MB)"\r\n line "Resident Set Size" [106, 115, 153, 177, 128, 130, 128, 135, 140, 148, 158, 195, 198, 202, 153, 157, 141, 146, 150, 162, 175, 191, 203, 216, 228, 216, 224, 233, 243, 250, 257, 263, 269, 277, 207, 211, 217, 189, 197, 206, 216, 178, 180, 159, 165, 158, 170, 167, 156, 164, 170, 162, 170, 157, 165, 157, 168, 181, 167, 166, 169, 179, 190, 173, 182, 189, 200, 181, 159, 171, 158, 164, 163, 165, 172, 179, 188, 170, 177, 168, 177, 188, 175, 190, 197, 178, 186, 195, 182, 187, 197, 180, 185, 196, 172, 167]\r\n line "Heap Total" [69, 75, 112, 136, 90, 90, 90, 96, 100, 106, 116, 151, 160, 164, 115, 118, 101, 106, 110, 121, 134, 147, 159, 172, 183, 175, 183, 192, 201, 206, 215, 220, 226, 234, 166, 170, 177, 147, 156, 164, 175, 137, 140, 119, 125, 118, 130, 126, 115, 123, 129, 121, 129, 118, 126, 117, 129, 142, 128, 125, 128, 139, 150, 133, 143, 149, 159, 141, 120, 131, 118, 124, 122, 124, 131, 137, 147, 131, 138, 128, 137, 148, 134, 150, 157, 137, 145, 154, 140, 145, 156, 140, 145, 157, 131, 126]\r\n line "Heap Used + External" [42, 45, 88, 112, 46, 53, 52, 68, 77, 86, 96, 133, 48, 56, 55, 61, 64, 54, 73, 92, 111, 129, 140, 142, 154, 66, 92, 104, 118, 125, 142, 168, 171, 191, 67, 89, 110, 76, 89, 101, 113, 67, 78, 68, 81, 78, 105, 81, 69, 71, 92, 67, 82, 70, 88, 72, 81, 101, 87, 94, 79, 82, 108, 81, 107, 107, 134, 87, 79, 97, 66, 90, 74, 83, 76, 92, 109, 69, 97, 85, 91, 111, 81, 99, 110, 79, 96, 102, 97, 106, 116, 95, 102, 108, 79, 92]\r\n line "Heap Used Only" [39, 40, 82, 105, 44, 49, 49, 64, 71, 79, 89, 124, 46, 52, 53, 57, 61, 51, 69, 88, 106, 123, 134, 134, 146, 63, 89, 99, 113, 119, 136, 161, 164, 184, 64, 86, 106, 73, 85, 97, 108, 64, 75, 65, 77, 75, 101, 78, 66, 68, 88, 64, 79, 68, 85, 70, 78, 98, 84, 91, 76, 79, 104, 78, 104, 103, 129, 84, 76, 94, 63, 87, 72, 80, 73, 88, 105, 67, 94, 83, 88, 108, 78, 96, 107, 76, 92, 98, 94, 103, 112, 93, 99, 105, 76, 90]\r\n```\r\n\r\n> - \uD83D\uDFE6 Resident Set Size\r\n> - \uD83D\uDFE2 Heap Total\r\n> - \uD83D\uDD34 Heap Used + External\r\n> - \uD83D\uDFE1 Heap Used Only\r\n\r\n## Endpoints\r\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\r\n----|----|----|----|----|----|----\r\nPATCH /bbs/articles/:section | 6,492 | 6,492 | 104.93 | 75.27 | 6 | 523\r\nGET /bbs/articles/:section/:id | 601 | 601 | 79.59 | 73.28 | 6 | 493\r\nPOST /bbs/articles/:section | 33,968 | 33,968 | 69.03 | 71.97 | 5 | 503\r\nPUT /bbs/articles/:section/:id | 322 | 322 | 63.94 | 56.27 | 7 | 371\r\n\r\n> Unit: milliseconds\r\n\r\n## Failures\r\nMethod | Path | Count | Failures\r\n-------|------|-------|----------'},{location:"",file:"LICENSE",content:'MIT License\r\n\r\nCopyright (c) 2022 Jeongho Nam\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the "Software"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n'},{location:"",file:"nestia.config.ts",content:'// nestia configuration file\r\nimport type sdk from "@nestia/sdk";\r\nimport { NestFactory } from "@nestjs/core";\r\n\r\nimport { MyModule } from "./src/MyModule";\r\n\r\nconst NESTIA_CONFIG: sdk.INestiaConfig = {\r\n input: () => NestFactory.create(MyModule),\r\n output: "src/api",\r\n swagger: {\r\n output: "packages/api/swagger.json",\r\n servers: [\r\n {\r\n url: "http://localhost:37001",\r\n description: "Local Server",\r\n },\r\n ],\r\n beautify: true,\r\n },\r\n distribute: "packages/api",\r\n primitive: false,\r\n simulate: true,\r\n};\r\nexport default NESTIA_CONFIG;\r\n'},{location:"",file:"package.json",content:'{\r\n "private": true,\r\n "name": "@ORGANIZATION/PROJECT",\r\n "version": "0.1.0",\r\n "description": "Starter kit of Nestia",\r\n "main": "lib/index.js",\r\n "scripts": {\r\n "benchmark": "node bin/test/benchmark",\r\n "test": "node bin/test",\r\n "test:webpack": "npm run webpack && node bin/test/webpack.js",\r\n "------------------------BUILDS------------------------": "",\r\n "build": "npm run build:sdk && npm run build:main && npm run build:test",\r\n "build:api": "rimraf packages/api/lib && nestia all && rimraf packages/api/lib && tsc -p packages/api/tsconfig.json && rollup -c packages/api/rollup.config.js",\r\n "build:main": "rimraf lib && tsc",\r\n "build:sdk": "rimraf src/api/functional && nestia sdk",\r\n "build:swagger": "npx nestia swagger",\r\n "build:test": "rimraf bin && tsc -p test/tsconfig.json",\r\n "dev": "npm run build:test -- --watch",\r\n "eslint": "eslint src && eslint test",\r\n "eslint:fix": "eslint --fix src && eslint --fix test",\r\n "prepare": "ts-patch install && typia patch",\r\n "prettier": "prettier src --write && prettier test --write",\r\n "------------------------WEBPACK------------------------": "",\r\n "webpack": "rimraf dist && webpack",\r\n "webpack:start": "cd dist && node dist/server",\r\n "webpack:test": "npm run webpack && node bin/test/webpack.js",\r\n "------------------------DEPLOYS------------------------": "",\r\n "package:api": "npm run build:api && cd packages/api && npm publish",\r\n "start": "node lib/executable/server",\r\n "start:swagger": "ts-node src/executable/swagger.ts"\r\n },\r\n "repository": {\r\n "type": "git",\r\n "url": "https://github.com/samchon/nestia-start"\r\n },\r\n "keywords": [\r\n "nestia",\r\n "template",\r\n "boilerplate"\r\n ],\r\n "author": "AUTHOR",\r\n "license": "MIT",\r\n "bugs": {\r\n "url": "https://github.com/samchon/nestia-start/issues"\r\n },\r\n "homepage": "https://github.com/samchon/nestia-start#readme",\r\n "devDependencies": {\r\n "@nestia/benchmark": "^0.2.3",\r\n "@nestia/e2e": "^0.7.0",\r\n "@nestia/sdk": "^3.14.0",\r\n "@rollup/plugin-terser": "^0.4.4",\r\n "@rollup/plugin-typescript": "^11.1.6",\r\n "@trivago/prettier-plugin-sort-imports": "^4.3.0",\r\n "@types/cli": "^0.11.21",\r\n "@types/cli-progress": "^3.11.5",\r\n "@types/express": "^4.17.21",\r\n "@types/inquirer": "^8.2.5",\r\n "@types/node": "^18.11.0",\r\n "@types/uuid": "^8.3.4",\r\n "@typescript-eslint/eslint-plugin": "^8.1.0",\r\n "@typescript-eslint/parser": "^8.1.0",\r\n "chalk": "^4.1.2",\r\n "cli": "^1.0.1",\r\n "cli-progress": "^3.12.0",\r\n "copy-webpack-plugin": "^11.0.0",\r\n "eslint-plugin-deprecation": "^3.0.0",\r\n "express": "^4.18.2",\r\n "nestia": "^6.1.0",\r\n "prettier": "^3.2.4",\r\n "prettier-plugin-prisma": "^5.0.0",\r\n "rimraf": "^3.0.2",\r\n "rollup": "^4.18.0",\r\n "source-map-support": "^0.5.21",\r\n "swagger-ui-express": "^5.0.0",\r\n "ts-loader": "^9.5.1",\r\n "ts-node": "^10.9.1",\r\n "ts-patch": "^3.2.1",\r\n "typescript": "5.5.4",\r\n "typescript-transform-paths": "^3.4.6",\r\n "webpack": "^5.89.0",\r\n "webpack-cli": "^5.1.4",\r\n "write-file-webpack-plugin": "^4.5.1"\r\n },\r\n "dependencies": {\r\n "@nestia/core": "^3.14.0",\r\n "@nestia/fetcher": "^3.14.0",\r\n "@nestjs/common": "^10.4.3",\r\n "@nestjs/core": "^10.4.3",\r\n "@nestjs/platform-express": "^10.4.3",\r\n "commander": "10.0.0",\r\n "dotenv": "^16.3.1",\r\n "dotenv-expand": "^10.0.0",\r\n "inquirer": "8.2.5",\r\n "serialize-error": "^4.1.0",\r\n "tgrid": "^1.0.2",\r\n "tstl": "^3.0.0",\r\n "typia": "^6.10.2",\r\n "uuid": "^9.0.0"\r\n },\r\n "stackblitz": {\r\n "startCommand": "npm run prepare && npm run build:test && npm run test"\r\n }\r\n}\r\n'},{location:"packages/api",file:".gitignore",content:"lib/\r\nnode_modules/\r\n\r\nswagger.json\r\nopenai.json"},{location:"packages/api",file:"LICENSE",content:'MIT License\r\n\r\nCopyright (c) 2021 ORGANIZATION\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the "Software"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.'},{location:"packages/api",file:"package.json",content:'{\r\n "name": "@ORGANIZATION/PROJECT-api",\r\n "version": "0.1.0",\r\n "description": "SDK library generated by Nestia",\r\n "main": "lib/index.js",\r\n "module": "lib/index.mjs",\r\n "typings": "lib/index.d.ts",\r\n "repository": {\r\n "type": "git",\r\n "url": "https://github.com/samchon/nestia"\r\n },\r\n "author": "Jeongho Nam",\r\n "license": "MIT",\r\n "bugs": {\r\n "url": "https://github.com/samchon/nestia/issues"\r\n },\r\n "homepage": "https://nestia.io",\r\n "files": [\r\n "lib",\r\n "package.json",\r\n "swagger.json",\r\n "openai.json",\r\n "README.md"\r\n ],\r\n "dependencies": {\r\n "@nestia/fetcher": "^3.14.0",\r\n "tgrid": "^1.0.3",\r\n "typia": "^6.10.2"\r\n }\r\n}'},{location:"packages/api",file:"README.md",content:"# SDK Library\r\nThis is a SDK library generated by [`nestia`](https://nestia.io).\r\n\r\nWith this SDK library, you can easily and safely interact with backend server.\r\n\r\nJust import and call some API functions like gif image below:\r\n\r\n![nestia-sdk-demo](https://user-images.githubusercontent.com/13158709/215004990-368c589d-7101-404e-b81b-fbc936382f05.gif)\r\n\r\n> Left is server code, and right is client code utilizing the SDK\r\n\r\n\r\n\r\n\r\n# What [`Nestia`](https://nestia.io) is:\r\n![Nestia Logo](https://nestia.io/logo.png)\r\n\r\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/samchon/nestia/blob/master/LICENSE)\r\n[![npm version](https://img.shields.io/npm/v/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\r\n[![Downloads](https://img.shields.io/npm/dm/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\r\n[![Build Status](https://github.com/samchon/nestia/workflows/build/badge.svg)](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\r\n[![Guide Documents](https://img.shields.io/badge/guide-documents-forestgreen)](https://nestia.io/docs/)\r\n\r\nNestia is a set of helper libraries for NestJS, supporting below features:\r\n\r\n - `@nestia/core`: super-fast decorators\r\n - `@nestia/sdk`:\r\n - Swagger generator evolved than ever\r\n - SDK library generator for clients\r\n - Mockup Simulator for client applications\r\n - Automatic E2E test functions generator\r\n - `@nestia/migrate`: migration from Swagger to NestJS\r\n - `nestia`: just CLI (command line interface) tool\r\n\r\n> **Note**\r\n> \r\n> - **Only one line** required, with pure TypeScript type\r\n> - Enhance performance **30x** up\r\n> - Runtime validator is **20,000x faster** than `class-validator`\r\n> - JSON serialization is **200x faster** than `class-transformer`\r\n> - Software Development Kit\r\n> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://trpc.io/)\r\n> - Mockup simulator means embedded backend simulator in SDK\r\n> - similar with [msw](https://mswjs.io/), but fully automated"},{location:"packages/api",file:"rollup.config.js",content:'const typescript = require("@rollup/plugin-typescript");\r\nconst terser = require("@rollup/plugin-terser");\r\n\r\nmodule.exports = {\r\n input: `${__dirname}/../../src/api/index.ts`,\r\n output: {\r\n dir: `${__dirname}/lib`,\r\n format: "esm",\r\n entryFileNames: "[name].mjs",\r\n sourcemap: true,\r\n },\r\n plugins: [\r\n typescript({\r\n tsconfig: `${__dirname}/tsconfig.json`,\r\n module: "ESNext",\r\n target: "ESNext",\r\n }),\r\n terser({\r\n format: {\r\n comments: "some",\r\n beautify: true,\r\n ecma: "2020",\r\n },\r\n compress: false,\r\n mangle: false,\r\n module: true,\r\n }),\r\n ],\r\n};\r\n'},{location:"packages/api",file:"tsconfig.json",content:'{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n /* Language and Environment */\r\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n "lib": [\r\n "DOM",\r\n "ES2015"\r\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "jsx": "preserve", /* Specify what JSX code is generated. */\r\n // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */// "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n // "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'\'s from expanding the number of files TypeScript should add to a project. */\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n /* Emit */\r\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */// "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */// "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. *//* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n // "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n // "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n {\r\n "transform": "typia/lib/transform"\r\n }\r\n ],\r\n "strictNullChecks": true\r\n },\r\n "include": [\r\n "../../src/api"\r\n ]\r\n}'},{location:"",file:"prettier.config.js",content:'module.exports = {\r\n // DEFAULT CONFIGURATIONS\r\n parser: "typescript",\r\n printWidth: 80,\r\n semi: true,\r\n tabWidth: 2,\r\n trailingComma: "all",\r\n\r\n // PLUG-IN CONFIGURATIONS\r\n plugins: ["@trivago/prettier-plugin-sort-imports"],\r\n importOrder: [\r\n "",\r\n "^@ORGANIZATION/PROJECT-api(.*)$",\r\n "^[./]",\r\n ],\r\n importOrderSeparation: true,\r\n importOrderSortSpecifiers: true,\r\n importOrderParserPlugins: ["decorators-legacy", "typescript"],\r\n};\r\n'},{location:"",file:"README.md",content:'# Nestia Template\r\n## Outline\r\n[![Build Status](https://github.com/samchon/nestia-start/workflows/build/badge.svg)](https://github.com/samchon/nestia-start/actions?query=workflow%3Abuild)\r\n\r\nA template repository for backend projects using [nestia](https://github.com/samchon/nestia).\r\n\r\nYou can create a new project from this boilerplate by running below command:\r\n\r\n```bash\r\nnpx nestia start \r\n```\r\n\r\nFor reference, this is a minimal boilerplate project concentrating only on [nestia](https://github.com/samchon/nestia) SDK generation. \r\n\r\nIf you wanna much detailed boilerplate project, visit [`@samchon/backend`](https://github.com/samchon/backend).\r\n\r\n\r\n\r\n\r\n## Directories and Files\r\nThis template project has categorized directories like below.\r\n\r\nAs you can see from the below, all of the Backend source files are placed into the [src](src/) directory. When you build the TypeScript source files, compiled files would be placed into the `lib` directory following the [tsconfig.json](tsconfig.json) configuration. Otherwise you build client [SDK](#32-sdk) library for npm publishing and their compiled files would be placed into the [packages](packages) directory.\r\n\r\n - [packages/api/](packages/api): SDK module built by `npm run build:api`\r\n - [src/](src): Backend source directory\r\n - [src/api/](src/api/): Client SDK that would be published to the `@ORGANIZATION/PROJECT-api`\r\n - [**src/api/functional/**](src/api/functional/): API functions generated by the [`nestia`](https://github.com/samchon/nestia)\r\n - [**src/api/structures/**](src/api/structures/): DTO structures\r\n - [src/controllers/](src/controllers/): Controller classes of the Main Program\r\n - [**test/**](test): Test Automation Program\r\n - [nestia.config.ts](nestia.config.ts): Configuration file of [`nestia`](https://github.com/samchon/nestia)\r\n - [package.json](package.json): NPM configuration\r\n - [tsconfig.json](tsconfig.json): TypeScript configuration for the main program\r\n - [tsconfig.api.json](tsconfig.api.json): TypeScript configuration for the SDK generation\r\n\r\n\r\n\r\n\r\n## NPM Run Commands\r\nList of the run commands defined in the [package.json](package.json) are like below:\r\n\r\n - Test\r\n - **`test`**: Run test automation program\r\n - `benchmark`: Run performance benchmark program\r\n - Build\r\n - `build`: Build everything\r\n - `build:main`: Build main program (`src` directory)\r\n - `build:test` Build test automation program (`test` directory)\r\n - `build:sdk`: Build SDK into main program only\r\n - `build:swagger`: Build Swagger Documents\r\n - **`dev`**: Incremental build for development (test program)\r\n - Deploy\r\n - `package:api`: Build and deploy the SDK library to the NPM\r\n - `start`: Start local NestJS server\r\n - Webpack\r\n - `webpack`: Run webpack bundler\r\n - `webpack:start`: Start the backend server built by webpack\r\n - `webpack:test`: Run test program to the webpack built\r\n\r\n\r\n\r\n\r\n## Specialization\r\nTransform this template project to be yours.\r\n\r\nWhen you\'ve created a new backend project through this template project, you can specialize it to be suitable for you by changing some words. Replace below words through IDE specific function like `Edit > Replace in Files` (*Ctrl + Shift + H*), who\'ve been supported by the VSCode.\r\n\r\n| Before | After\r\n|-----------------|----------------------------------------\r\n| ORGANIZATION | Your account or corporation name\r\n| PROJECT | Your own project name\r\n| AUTHOR | Author name\r\n| https://github.com/samchon/nestia-start | Your repository URL\r\n\r\n\r\n\r\n\r\n## Test Driven Development\r\nWith [nestia](https://github.com/samchon/nestia) helps to accomplish TDD (Test Driven Development). \r\n\r\nJust define DTOs and API controllers\' methods (only declarations) first. After the definitions, and build SDK (Software Development Kit) through [nestia](https://github.com/samchon/nestia) (`npm run build:sdk`). After buildling those SDK, develop test automation program using the SDK, following use-case scenarios in the framework of client side.\r\n\r\nDuring the test automation program development, you can find that which API is mis-designed or which requirement analysis is not exact. Development of the main program must be the last step after such validation process during TDD.\r\n\r\n> Visit the [samchon/backend](https://github.com/samchon/backend), then you may find much detailed story about this TDD.\r\n>\r\n> 1. Definitions\r\n> 2. SDK\r\n> 3. Test Automation Program\r\n> 4. Main Program\r\n\r\n```typescript\r\nimport {\r\n ArrayUtil,\r\n GaffComparator,\r\n RandomGenerator,\r\n TestValidator,\r\n} from "@nestia/e2e";\r\n\r\nimport api from "@ORGANIZATION/PROJECT-api/lib/index";\r\nimport { IBbsArticle } from "@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle";\r\nimport { IPage } from "@ORGANIZATION/PROJECT-api/lib/structures/common/IPage";\r\n\r\nexport async function test_api_bbs_article_index_sort(\r\n connection: api.IConnection,\r\n): Promise {\r\n // GENERATE 100 ARTICLES\r\n const section: string = "general";\r\n await ArrayUtil.asyncRepeat(100)(() =>\r\n api.functional.bbs.articles.create(connection, section, {\r\n writer: RandomGenerator.name(),\r\n title: RandomGenerator.paragraph(5)(),\r\n body: RandomGenerator.content(8)()(),\r\n format: "txt",\r\n files: [],\r\n password: RandomGenerator.alphabets(8),\r\n }),\r\n );\r\n\r\n // PREPARE VALIDATOR\r\n const validator = TestValidator.sort("BbsArticleProvider.index()")(async (\r\n sort: IPage.Sort,\r\n ) => {\r\n const page: IPage =\r\n await api.functional.bbs.articles.index(connection, section, {\r\n limit: 100,\r\n sort,\r\n });\r\n return page.data;\r\n });\r\n\r\n // DO VALIDATE\r\n const components = [\r\n validator("created_at")(GaffComparator.dates((x) => x.created_at)),\r\n validator("updated_at")(GaffComparator.dates((x) => x.updated_at)),\r\n validator("title")(GaffComparator.strings((x) => x.title)),\r\n validator("writer")(GaffComparator.strings((x) => x.writer)),\r\n validator(\r\n "writer",\r\n "title",\r\n )(GaffComparator.strings((x) => [x.writer, x.title])),\r\n ];\r\n for (const comp of components) {\r\n await comp("+", false);\r\n await comp("-", false);\r\n }\r\n}\r\n```\r\n\r\nFor reference, if you run `npm run benchmark` command, your test functions defined in the [test/features/api](test/features/api) directory would be utilized for performance benchmarking. If you want to see the performance bench result earlier, visit below link please:\r\n\r\n - [docs/benchmarks/AMD Ryzen 9 7940HS w Radeon 780M Graphics.md](https://github.com/samchon/nestia-start/blob/master/docs/benchmarks/AMD%20Ryzen%209%207940HS%20w%20Radeon%20780M%20Graphics.md)'},{location:"src/api",file:"HttpError.ts",content:'export { HttpError } from "@nestia/fetcher";\r\n'},{location:"src/api",file:"IConnection.ts",content:'export type { IConnection } from "@nestia/fetcher";\r\n'},{location:"src/api",file:"index.ts",content:'import * as api from "./module";\r\n\r\nexport * from "./module";\r\nexport default api;\r\n'},{location:"src/api",file:"module.ts",content:'export type * from "./IConnection";\r\nexport * from "./HttpError";\r\n\r\nexport * as functional from "./functional";\r\n'},{location:"src/api",file:"Primitive.ts",content:'export type { Primitive } from "@nestia/fetcher";\r\n'},{location:"src/api/structures/bbs",file:"IBbsArticle.ts",content:'import { tags } from "typia";\r\n\r\nimport { IAttachmentFile } from "../common/IAttachmentFile";\r\nimport { IPage } from "../common/IPage";\r\n\r\n/**\r\n * BBS article.\r\n */\r\nexport interface IBbsArticle {\r\n /**\r\n * Primary Key.\r\n */\r\n id: string & tags.Format<"uuid">;\r\n\r\n /**\r\n * Section code.\r\n */\r\n section: string;\r\n\r\n /**\r\n * Name of nickname of writer.\r\n */\r\n writer: string;\r\n\r\n /**\r\n * List of snapshot contents.\r\n *\r\n * Whenever updating an article, its contents would be accumulated.\r\n */\r\n snapshots: IBbsArticle.ISnapshot[];\r\n\r\n /**\r\n * Creation time of the article.\r\n */\r\n created_at: string & tags.Format<"date-time">;\r\n}\r\n\r\nexport namespace IBbsArticle {\r\n /**\r\n * Page request info with some options.\r\n */\r\n export interface IRequest extends IPage.IRequest {\r\n /**\r\n * Searching options.\r\n */\r\n search?: IRequest.ISearch;\r\n\r\n /**\r\n * Sorting options.\r\n *\r\n * The plus sign means ASC and minus sign means DESC.\r\n */\r\n sort?: IPage.Sort;\r\n }\r\n export namespace IRequest {\r\n /**\r\n * Searching options.\r\n */\r\n export interface ISearch {\r\n writer?: string;\r\n title?: string;\r\n body?: string;\r\n }\r\n\r\n /**\r\n * List of sortable columns.\r\n */\r\n export type SortableColumns =\r\n | "writer"\r\n | "title"\r\n | "created_at"\r\n | "updated_at";\r\n }\r\n\r\n /**\r\n * Summarized info.\r\n */\r\n export interface ISummary {\r\n id: string;\r\n writer: string;\r\n title: string;\r\n created_at: string;\r\n updated_at: string;\r\n }\r\n\r\n /**\r\n * Content info.\r\n */\r\n export interface ISnapshot extends Omit {\r\n /**\r\n * Primary key of individual content.\r\n */\r\n id: string & tags.Format<"uuid">;\r\n\r\n /**\r\n * Creation time of this content.\r\n */\r\n created_at: string & tags.Format<"date-time">;\r\n }\r\n\r\n /**\r\n * Store info.\r\n */\r\n export interface ICreate extends IUpdate {\r\n /**\r\n * Name or nickname of the writer.\r\n */\r\n writer: string;\r\n }\r\n\r\n /**\r\n * Update info.\r\n */\r\n export interface IUpdate {\r\n /**\r\n * Title of the article.\r\n */\r\n title: string;\r\n\r\n /**\r\n * Content body.\r\n */\r\n body: string;\r\n\r\n /**\r\n * Format of the content body.\r\n */\r\n format: "md" | "html" | "txt";\r\n\r\n /**\r\n * List of files (to be) attached.\r\n */\r\n files: IAttachmentFile[];\r\n\r\n /**\r\n * Password of the article.\r\n */\r\n password: string;\r\n }\r\n}\r\n'},{location:"src/api/structures/common",file:"IAttachmentFile.ts",content:'import { tags } from "typia";\r\n\r\nexport interface IAttachmentFile {\r\n name: null | (string & tags.MinLength<1> & tags.MaxLength<255>);\r\n extension: null | (string & tags.MinLength<1> & tags.MaxLength<8>);\r\n url: string & tags.Format<"url">;\r\n}\r\n'},{location:"src/api/structures/common",file:"IPage.ts",content:'import { tags } from "typia";\r\n\r\n/**\r\n * A page.\r\n *\r\n * Collection of records with pagination indformation.\r\n *\r\n * @author Samchon\r\n */\r\nexport interface IPage {\r\n /**\r\n * Page information.\r\n */\r\n pagination: IPage.IPagination;\r\n\r\n /**\r\n * List of records.\r\n */\r\n data: T[];\r\n}\r\nexport namespace IPage {\r\n /**\r\n * Page information.\r\n */\r\n export interface IPagination {\r\n /**\r\n * Current page number.\r\n */\r\n current: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Limitation of records per a page.\r\n *\r\n * @default 100\r\n */\r\n limit: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Count of total records in database.\r\n */\r\n records: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Number of total pages.\r\n *\r\n * Equal to {@link records} / {@link limit} with ceiling.\r\n */\r\n pages: number & tags.Type<"uint32">;\r\n }\r\n\r\n /**\r\n * Page request data\r\n */\r\n export interface IRequest {\r\n /**\r\n * Page number.\r\n */\r\n page?: number & tags.Type<"uint32">;\r\n\r\n /**\r\n * Limitation of records per a page.\r\n */\r\n limit?: number & tags.Type<"uint32">;\r\n }\r\n\r\n /**\r\n * Sorting column specialization.\r\n *\r\n * The plus means ascending order and the minus means descending order.\r\n */\r\n export type Sort = Array<\r\n `-${Literal}` | `+${Literal}`\r\n >;\r\n}\r\n'},{location:"src/executable",file:"server.ts",content:'import { MyBackend } from "../MyBackend";\r\n\r\nconst EXTENSION = __filename.substring(__filename.length - 2);\r\nif (EXTENSION === "js") require("source-map-support/register");\r\n\r\nasync function main(): Promise {\r\n // BACKEND SEVER\r\n const backend: MyBackend = new MyBackend();\r\n await backend.open();\r\n\r\n // UNEXPECTED ERRORS\r\n global.process.on("uncaughtException", console.error);\r\n global.process.on("unhandledRejection", console.error);\r\n}\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"src/executable",file:"swagger.ts",content:'import cp from "child_process";\r\nimport express from "express";\r\n\r\nconst execute = (command: string): void => {\r\n console.log(`\\n$ ${command}\\n`);\r\n cp.execSync(command, { stdio: "inherit" });\r\n};\r\n\r\nconst main = async (): Promise => {\r\n if (!process.argv.some((str) => str === "--skipBuild"))\r\n execute("npm run build:swagger");\r\n\r\n const docs = await import("../../packages/api/swagger.json" as any);\r\n\r\n const app = express();\r\n const swaggerUi = require("swagger-ui-express");\r\n app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(docs));\r\n app.listen(37810);\r\n\r\n console.log("\\n");\r\n console.log("-----------------------------------------------------------");\r\n console.log("\\n Swagger UI Address: http://127.0.0.1:37810/api-docs \\n");\r\n console.log("-----------------------------------------------------------");\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"src",file:"MyBackend.ts",content:'import { INestApplication } from "@nestjs/common";\r\nimport { NestFactory } from "@nestjs/core";\r\n\r\nimport { MyConfiguration } from "./MyConfiguration";\r\nimport { MyModule } from "./MyModule";\r\n\r\nexport class MyBackend {\r\n private application_?: INestApplication;\r\n\r\n public async open(): Promise {\r\n //----\r\n // OPEN THE BACKEND SERVER\r\n //----\r\n // MOUNT CONTROLLERS\r\n this.application_ = await NestFactory.create(MyModule, { logger: false });\r\n\r\n // DO OPEN\r\n this.application_.enableCors();\r\n await this.application_.listen(MyConfiguration.API_PORT(), "0.0.0.0");\r\n\r\n //----\r\n // POST-PROCESSES\r\n //----\r\n // INFORM TO THE PM2\r\n if (process.send) process.send("ready");\r\n\r\n // WHEN KILL COMMAND COMES\r\n process.on("SIGINT", async () => {\r\n await this.close();\r\n process.exit(0);\r\n });\r\n }\r\n\r\n public async close(): Promise {\r\n if (this.application_ === undefined) return;\r\n\r\n // DO CLOSE\r\n await this.application_.close();\r\n delete this.application_;\r\n }\r\n}\r\n'},{location:"src",file:"MyConfiguration.ts",content:'import fs from "fs";\r\nimport path from "path";\r\n\r\nimport { MyGlobal } from "./MyGlobal";\r\n\r\nexport namespace MyConfiguration {\r\n export const API_PORT = () => Number(MyGlobal.env.PROJECT_API_PORT);\r\n\r\n export const ROOT = (() => {\r\n const splitted: string[] = __dirname.split(path.sep);\r\n return splitted.at(-1) === "src" && splitted.at(-2) === "bin"\r\n ? path.resolve(__dirname + "/../..")\r\n : fs.existsSync(__dirname + "/.env")\r\n ? __dirname\r\n : path.resolve(__dirname + "/..");\r\n })();\r\n}\r\n'},{location:"src",file:"MyGlobal.ts",content:'import dotenv from "dotenv";\r\nimport dotenvExpand from "dotenv-expand";\r\nimport { Singleton } from "tstl";\r\nimport typia from "typia";\r\n\r\n/* eslint-disable */\r\nexport class MyGlobal {\r\n public static testing: boolean = false;\r\n public static get env(): MyGlobal.IEnvironments {\r\n return environments.get();\r\n }\r\n}\r\nexport namespace MyGlobal {\r\n export interface IEnvironments {\r\n PROJECT_API_PORT: `${number}`;\r\n }\r\n}\r\n\r\nconst environments = new Singleton(() => {\r\n const env = dotenv.config();\r\n dotenvExpand.expand(env);\r\n return typia.assert(process.env);\r\n});\r\n'},{location:"src/utils",file:"ErrorUtil.ts",content:'import serializeError = require("serialize-error");\r\n\r\nexport namespace ErrorUtil {\r\n export const toJSON = (err: any): object =>\r\n err instanceof Object && err.toJSON instanceof Function\r\n ? err.toJSON()\r\n : serializeError(err);\r\n}\r\n'},{location:"src/utils",file:"MapUtil.ts",content:"export namespace MapUtil {\r\n export function take(\r\n dict: Map,\r\n key: Key,\r\n generator: () => T,\r\n ): T {\r\n const oldbie: T | undefined = dict.get(key);\r\n if (oldbie) return oldbie;\r\n\r\n const value: T = generator();\r\n dict.set(key, value);\r\n return value;\r\n }\r\n}\r\n"},{location:"test/benchmark",file:"index.ts",content:'import { DynamicBenchmarker } from "@nestia/benchmark";\r\nimport cliProgress from "cli-progress";\r\nimport fs from "fs";\r\nimport os from "os";\r\nimport { IPointer } from "tstl";\r\n\r\nimport { MyBackend } from "../../src/MyBackend";\r\nimport { MyConfiguration } from "../../src/MyConfiguration";\r\nimport { MyGlobal } from "../../src/MyGlobal";\r\nimport { ArgumentParser } from "../helpers/ArgumentParser";\r\n\r\ninterface IOptions {\r\n include?: string[];\r\n exclude?: string[];\r\n count: number;\r\n threads: number;\r\n simultaneous: number;\r\n}\r\n\r\nconst getOptions = () =>\r\n ArgumentParser.parse(async (command, prompt, action) => {\r\n // command.option("--mode ", "target mode");\r\n // command.option("--reset ", "reset local DB or not");\r\n command.option("--include ", "include feature files");\r\n command.option("--exclude ", "exclude feature files");\r\n command.option("--count ", "number of requests to make");\r\n command.option("--threads ", "number of threads to use");\r\n command.option(\r\n "--simultaneous ",\r\n "number of simultaneous requests to make",\r\n );\r\n return action(async (options) => {\r\n // if (typeof options.reset === "string")\r\n // options.reset = options.reset === "true";\r\n // options.mode ??= await prompt.select("mode")("Select mode")([\r\n // "LOCAL",\r\n // "DEV",\r\n // "REAL",\r\n // ]);\r\n // options.reset ??= await prompt.boolean("reset")("Reset local DB");\r\n options.count = Number(\r\n options.count ??\r\n (await prompt.number("count")("Number of requests to make")),\r\n );\r\n options.threads = Number(\r\n options.threads ??\r\n (await prompt.number("threads")("Number of threads to use")),\r\n );\r\n options.simultaneous = Number(\r\n options.simultaneous ??\r\n (await prompt.number("simultaneous")(\r\n "Number of simultaneous requests to make",\r\n )),\r\n );\r\n return options as IOptions;\r\n });\r\n });\r\n\r\nconst main = async (): Promise => {\r\n // CONFIGURATIONS\r\n const options: IOptions = await getOptions();\r\n MyGlobal.testing = true;\r\n\r\n // BACKEND SERVER\r\n const backend: MyBackend = new MyBackend();\r\n await backend.open();\r\n\r\n // DO BENCHMARK\r\n const prev: IPointer = { value: 0 };\r\n const bar: cliProgress.SingleBar = new cliProgress.SingleBar(\r\n {},\r\n cliProgress.Presets.shades_classic,\r\n );\r\n bar.start(options.count, 0);\r\n\r\n const report: DynamicBenchmarker.IReport = await DynamicBenchmarker.master({\r\n servant: `${__dirname}/servant.js`,\r\n count: options.count,\r\n threads: options.threads,\r\n simultaneous: options.simultaneous,\r\n filter: (func) =>\r\n (!options.include?.length ||\r\n (options.include ?? []).some((str) => func.includes(str))) &&\r\n (!options.exclude?.length ||\r\n (options.exclude ?? []).every((str) => !func.includes(str))),\r\n progress: (value: number) => {\r\n if (value >= 100 + prev.value) {\r\n bar.update(value);\r\n prev.value = value;\r\n }\r\n },\r\n stdio: "ignore",\r\n });\r\n bar.stop();\r\n\r\n // DOCUMENTATION\r\n try {\r\n await fs.promises.mkdir(`${MyConfiguration.ROOT}/docs/benchmarks`, {\r\n recursive: true,\r\n });\r\n } catch {}\r\n await fs.promises.writeFile(\r\n `${MyConfiguration.ROOT}/docs/benchmarks/${os\r\n .cpus()[0]\r\n .model.trim()\r\n .split("\\\\")\r\n .join("")\r\n .split("/")\r\n .join("")}.md`,\r\n DynamicBenchmarker.markdown(report),\r\n "utf8",\r\n );\r\n\r\n // CLOSE\r\n await backend.close();\r\n};\r\nmain().catch((exp) => {\r\n console.error(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test/benchmark",file:"servant.ts",content:'import { DynamicBenchmarker } from "@nestia/benchmark";\r\n\r\nimport { MyConfiguration } from "../../src/MyConfiguration";\r\n\r\nDynamicBenchmarker.servant({\r\n connection: {\r\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\r\n },\r\n location: `${__dirname}/../features`,\r\n parameters: (connection) => [connection],\r\n prefix: "test_api_",\r\n}).catch((exp) => {\r\n console.error(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test/helpers",file:"ArgumentParser.ts",content:'import commander from "commander";\r\nimport * as inquirer from "inquirer";\r\n\r\nexport namespace ArgumentParser {\r\n export type Inquiry = (\r\n command: commander.Command,\r\n prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule,\r\n action: (closure: (options: Partial) => Promise) => Promise,\r\n ) => Promise;\r\n\r\n export interface Prompt {\r\n select: (\r\n name: string,\r\n ) => (\r\n message: string,\r\n ) => (choices: Choice[]) => Promise;\r\n boolean: (name: string) => (message: string) => Promise;\r\n number: (name: string) => (message: string) => Promise;\r\n }\r\n\r\n export const parse = async (\r\n inquiry: (\r\n command: commander.Command,\r\n prompt: Prompt,\r\n action: (closure: (options: Partial) => Promise) => Promise,\r\n ) => Promise,\r\n ): Promise => {\r\n // TAKE OPTIONS\r\n const action = (closure: (options: Partial) => Promise) =>\r\n new Promise((resolve, reject) => {\r\n commander.program.action(async (options) => {\r\n try {\r\n resolve(await closure(options));\r\n } catch (exp) {\r\n reject(exp);\r\n }\r\n });\r\n commander.program.parseAsync().catch(reject);\r\n });\r\n\r\n const select =\r\n (name: string) =>\r\n (message: string) =>\r\n async (choices: Choice[]): Promise =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "list",\r\n name,\r\n message,\r\n choices,\r\n })\r\n )[name];\r\n const boolean = (name: string) => async (message: string) =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "confirm",\r\n name,\r\n message,\r\n })\r\n )[name] as boolean;\r\n const number = (name: string) => async (message: string) =>\r\n Number(\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "number",\r\n name,\r\n message,\r\n })\r\n )[name],\r\n );\r\n\r\n const output: T | Error = await (async () => {\r\n try {\r\n return await inquiry(\r\n commander.program,\r\n { select, boolean, number },\r\n action,\r\n );\r\n } catch (error) {\r\n return error as Error;\r\n }\r\n })();\r\n\r\n // RETURNS\r\n if (output instanceof Error) throw output;\r\n return output;\r\n };\r\n}\r\n'},{location:"test",file:"index.ts",content:'import { DynamicExecutor } from "@nestia/e2e";\r\nimport chalk from "chalk";\r\n\r\nimport api from "@ORGANIZATION/PROJECT-api";\r\n\r\nimport { MyBackend } from "../src/MyBackend";\r\nimport { MyConfiguration } from "../src/MyConfiguration";\r\nimport { MyGlobal } from "../src/MyGlobal";\r\nimport { ArgumentParser } from "./helpers/ArgumentParser";\r\n\r\ninterface IOptions {\r\n include?: string[];\r\n exclude?: string[];\r\n}\r\n\r\nconst getOptions = () =>\r\n ArgumentParser.parse(async (command, _prompt, action) => {\r\n // command.option("--mode ", "target mode");\r\n // command.option("--reset ", "reset local DB or not");\r\n command.option("--include ", "include feature files");\r\n command.option("--exclude ", "exclude feature files");\r\n\r\n return action(async (options) => {\r\n // if (typeof options.reset === "string")\r\n // options.reset = options.reset === "true";\r\n // options.mode ??= await prompt.select("mode")("Select mode")([\r\n // "LOCAL",\r\n // "DEV",\r\n // "REAL",\r\n // ]);\r\n // options.reset ??= await prompt.boolean("reset")("Reset local DB");\r\n return options as IOptions;\r\n });\r\n });\r\n\r\nasync function main(): Promise {\r\n // CONFIGURATIONS\r\n const options: IOptions = await getOptions();\r\n MyGlobal.testing = true;\r\n\r\n // BACKEND SERVER\r\n const backend: MyBackend = new MyBackend();\r\n await backend.open();\r\n\r\n //----\r\n // CLINET CONNECTOR\r\n //----\r\n // DO TEST\r\n const connection: api.IConnection = {\r\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\r\n };\r\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\r\n prefix: "test",\r\n location: __dirname + "/features",\r\n parameters: () => [\r\n {\r\n host: connection.host,\r\n encryption: connection.encryption,\r\n },\r\n ],\r\n filter: (func) =>\r\n (!options.include?.length ||\r\n (options.include ?? []).some((str) => func.includes(str))) &&\r\n (!options.exclude?.length ||\r\n (options.exclude ?? []).every((str) => !func.includes(str))),\r\n onComplete: (exec) => {\r\n const trace = (str: string) =>\r\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\r\n if (exec.error === null) {\r\n const elapsed: number =\r\n new Date(exec.completed_at).getTime() -\r\n new Date(exec.started_at).getTime();\r\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\r\n } else trace(chalk.red(exec.error.name));\r\n },\r\n });\r\n await backend.close();\r\n\r\n const failures: DynamicExecutor.IExecution[] = report.executions.filter(\r\n (exec) => exec.error !== null,\r\n );\r\n if (failures.length === 0) {\r\n console.log("Success");\r\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\r\n } else {\r\n for (const f of failures) console.log(f.error);\r\n process.exit(-1);\r\n }\r\n\r\n console.log(\r\n [\r\n `All: #${report.executions.length}`,\r\n `Success: #${report.executions.length - failures.length}`,\r\n `Failed: #${failures.length}`,\r\n ].join("\\n"),\r\n );\r\n}\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test",file:"tsconfig.json",content:'{\r\n "extends": "../tsconfig.json",\r\n "compilerOptions": {\r\n "outDir": "../bin",\r\n },\r\n "include": [".", "../src"]\r\n}'},{location:"test",file:"webpack.ts",content:'import { DynamicExecutor } from "@nestia/e2e";\r\nimport chalk from "chalk";\r\nimport cp from "child_process";\r\nimport { sleep_for } from "tstl";\r\n\r\nimport { MyConfiguration } from "../src/MyConfiguration";\r\nimport api from "../src/api";\r\n\r\nconst main = async (): Promise => {\r\n // OPEN BUNDLED SERVER\r\n const backend = cp.fork(`${MyConfiguration.ROOT}/dist/server.js`, {\r\n cwd: `${MyConfiguration.ROOT}/dist`,\r\n });\r\n await sleep_for(2_500);\r\n\r\n // DO TEST\r\n const connection: api.IConnection = {\r\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\r\n };\r\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\r\n prefix: "test",\r\n location: __dirname + "/features",\r\n parameters: () => [\r\n {\r\n host: connection.host,\r\n encryption: connection.encryption,\r\n },\r\n ],\r\n onComplete: (exec) => {\r\n const trace = (str: string) =>\r\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\r\n if (exec.error === null) {\r\n const elapsed: number =\r\n new Date(exec.completed_at).getTime() -\r\n new Date(exec.started_at).getTime();\r\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\r\n } else trace(chalk.red(exec.error.name));\r\n },\r\n });\r\n\r\n backend.kill();\r\n\r\n const failures: DynamicExecutor.IExecution[] = report.executions.filter(\r\n (exec) => exec.error !== null,\r\n );\r\n if (failures.length === 0) {\r\n console.log("Success");\r\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\r\n } else {\r\n for (const f of failures) console.log(f.error);\r\n process.exit(-1);\r\n }\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"",file:"tsconfig.json",content:'{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n\r\n /* Language and Environment */\r\n "target": "ES2015", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */\r\n // "jsx": "preserve", /* Specify what JSX code is generated. */\r\n "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */\r\n // "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n "paths": {\r\n "@ORGANIZATION/PROJECT-api/lib/*": ["./src/api/*"],\r\n "@ORGANIZATION/PROJECT-api": ["./src/api"],\r\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n // "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'\'s from expanding the number of files TypeScript should add to a project. */\r\n\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n\r\n /* Emit */\r\n // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */\r\n // "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */\r\n // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */\r\n // "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */\r\n // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */\r\n "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */\r\n // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */\r\n\r\n /* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */\r\n // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n { "transform": "typescript-transform-paths" },\r\n { "transform": "typia/lib/transform" },\r\n { "transform": "@nestia/core/lib/transform" },\r\n ]\r\n },\r\n "include": [\r\n "src"\r\n ],\r\n "exclude": [\r\n "node_modules",\r\n "packages",\r\n ]\r\n}\r\n'},{location:"",file:"webpack.config.js",content:'const path = require("path");\r\n\r\nconst CopyWebpackPlugin = require("copy-webpack-plugin");\r\nconst WriteFilePlugin = require("write-file-webpack-plugin");\r\nconst { IgnorePlugin } = require("webpack");\r\n\r\nconst lazyImports = [\r\n "@fastify/static",\r\n "@fastify/view",\r\n "@nestjs/microservices",\r\n "@nestjs/websockets",\r\n "class-transformer",\r\n "class-validator",\r\n];\r\n\r\n// @reference https://tech-blog.s-yoshiki.com/entry/297\r\nmodule.exports = {\r\n // CUSTOMIZE HERE\r\n entry: {\r\n server: "./src/executable/server.ts",\r\n },\r\n output: {\r\n path: path.join(__dirname, "dist"),\r\n filename: "[name].js",\r\n },\r\n optimization: {\r\n minimize: true,\r\n },\r\n\r\n // JUST KEEP THEM\r\n mode: "production",\r\n target: "node",\r\n module: {\r\n rules: [\r\n {\r\n test: /\\.ts$/,\r\n exclude: /node_modules/,\r\n loader: "ts-loader",\r\n },\r\n ],\r\n },\r\n resolve: {\r\n extensions: [".tsx", ".ts", ".js"],\r\n },\r\n plugins: [\r\n new CopyWebpackPlugin({\r\n patterns: [\r\n {\r\n from: ".env",\r\n to: "[name][ext]",\r\n },\r\n // {\r\n // from: "./node_modules/.prisma/client/*.node",\r\n // to: () => Promise.resolve("[path][name][ext]"),\r\n // globOptions: {\r\n // dot: true,\r\n // },\r\n // },\r\n ],\r\n }),\r\n new WriteFilePlugin(),\r\n new IgnorePlugin({\r\n checkResource: (resource) => {\r\n if (lazyImports.some((modulo) => resource.startsWith(modulo))) {\r\n try {\r\n require.resolve(resource);\r\n } catch (err) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n },\r\n }),\r\n ],\r\n};\r\n'}]},57280:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SDK_TEMPLATE=void 0,t.SDK_TEMPLATE=[{location:"",file:".gitignore",content:".git/\r\nbin/\r\nlib/\r\nnode_modules/\r\n\r\npackage-lock.json\r\npnpm-lock.yaml"},{location:".vscode",file:"launch.json",content:'{\r\n // Use IntelliSense to learn about possible Node.js debug attributes.\r\n // Hover to view descriptions of existing attributes.\r\n // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387\r\n "version": "0.2.0",\r\n "configurations": [\r\n {\r\n "type": "node",\r\n "request": "launch",\r\n "name": "JavaScript Test using SourceMap",\r\n "program": "${workspaceRoot}/test/index.ts",\r\n "cwd": "${workspaceRoot}",\r\n "args": [\r\n //----\r\n // You can run specific test functions\r\n //----\r\n // "--include", "something",\r\n // "--exclude", "nothing",\r\n ],\r\n "outFiles": ["${workspaceRoot}/bin/**/*.js"],\r\n }\r\n ]\r\n}'},{location:".vscode",file:"settings.json",content:'{\r\n "editor.tabSize": 2,\r\n "editor.formatOnSave": true,\r\n "[javascript][typescript]": {\r\n "editor.defaultFormatter": "esbenp.prettier-vscode",\r\n "editor.codeActionsOnSave": {\r\n "source.fixAll.eslint": "explicit"\r\n },\r\n },\r\n}'},{location:"",file:"hello.js",content:'function print(command, description) {\r\n return console.log(`\\x1b[1m${command}\\x1b[2m: ${description}\\x1b[0m`);\r\n}\r\n\r\nconsole.log("-----------------------------------------");\r\nconsole.log("\\x1b[7mGenerated by \\x1b[2m@nestia/editor\\x1b[0m");\r\nconsole.log("");\r\nconsole.log(" - \\x1b[36mhttps://nestia.io/docs/editor\\x1b[0m");\r\nconsole.log(" - \\x1b[36mhttps://github.com/samchon/nestia\\x1b[0m");\r\nconsole.log("-----------------------------------------");\r\n\r\nprint("npm run start", "Run only test/start.ts");\r\nprint("npm run test", "Run every test/features/**/*.ts files");\r\nprint("npm run test:simulate", "Test with mockup simulator");\r\n'},{location:"",file:"LICENSE",content:'MIT License\r\n\r\nCopyright (c) 2024 Jeongho Nam\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy\r\nof this software and associated documentation files (the "Software"), to deal\r\nin the Software without restriction, including without limitation the rights\r\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\ncopies of the Software, and to permit persons to whom the Software is\r\nfurnished to do so, subject to the following conditions:\r\n\r\nThe above copyright notice and this permission notice shall be included in all\r\ncopies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\nSOFTWARE.\r\n'},{location:"",file:"package.json",content:'{\r\n "name": "@ORGANIZATION/PROJECT-api",\r\n "version": "0.1.0",\r\n "description": "SDK library generated by Nestia",\r\n "main": "lib/index.js",\r\n "module": "lib/index.mjs",\r\n "typings": "lib/index.d.ts",\r\n "scripts": {\r\n "build": "rimraf lib && tsc && rollup -c",\r\n "build:test": "rimraf bin && tsc --project test/tsconfig.json",\r\n "deploy": "npm run build && npm publish",\r\n "dev": "npm run build:test -- --watch",\r\n "hello": "node hello",\r\n "prepare": "ts-patch install && typia patch",\r\n "start": "ts-node test/start.ts",\r\n "swagger": "ts-node test/swagger.ts",\r\n "test": "ts-node test/index.ts",\r\n "test:simulate": "ts-node test/index.ts --simulate true",\r\n "test:manual": "ts-node test/manual.ts"\r\n },\r\n "repository": {\r\n "type": "git",\r\n "url": "https://github.com/samchon/nestia"\r\n },\r\n "author": "Jeongho Nam",\r\n "license": "MIT",\r\n "bugs": {\r\n "url": "https://github.com/samchon/nestia/issues"\r\n },\r\n "homepage": "https://nestia.io",\r\n "files": [\r\n "lib",\r\n "swagger.json",\r\n "package.json",\r\n "README.md"\r\n ],\r\n "dependencies": {\r\n "@nestia/fetcher": "^3.14.0",\r\n "tgrid": "^1.0.3",\r\n "typia": "^6.10.2"\r\n },\r\n "devDependencies": {\r\n "@nestia/e2e": "^0.7.0",\r\n "@rollup/plugin-terser": "^0.4.4",\r\n "@rollup/plugin-typescript": "^11.1.6",\r\n "@trivago/prettier-plugin-sort-imports": "^4.3.0",\r\n "@types/express": "^4.17.21",\r\n "@types/inquirer": "8.2.5",\r\n "@types/swagger-ui-express": "^4.1.6",\r\n "chalk": "4.1.2",\r\n "commander": "^10.0.0",\r\n "express": "^4.19.2",\r\n "inquirer": "8.2.5",\r\n "prettier": "^3.2.5",\r\n "rimraf": "^5.0.5",\r\n "rollup": "^4.13.2",\r\n "swagger-ui-express": "^5.0.0",\r\n "ts-node": "^10.9.2",\r\n "ts-patch": "^3.2.1",\r\n "typescript": "5.5.4",\r\n "typescript-transform-paths": "^3.4.6"\r\n }\r\n}\r\n'},{location:"",file:"prettier.config.js",content:'module.exports = {\r\n // DEFAULT CONFIGURATIONS\r\n parser: "typescript",\r\n printWidth: 80,\r\n semi: true,\r\n tabWidth: 2,\r\n trailingComma: "all",\r\n\r\n // PLUG-IN CONFIGURATIONS\r\n plugins: ["@trivago/prettier-plugin-sort-imports"],\r\n importOrder: ["", "^[./]"],\r\n importOrderSeparation: true,\r\n importOrderSortSpecifiers: true,\r\n importOrderParserPlugins: ["decorators-legacy", "typescript", "jsx"],\r\n};\r\n'},{location:"",file:"README.md",content:'# Software Development Kit\r\nThis is a SDK library generated by [`@nestia/migrate`](https://nestia.io/docs/migrate) or [`@nestia/editor`](https://nestia.io/docs/editor).\r\n\r\nWith this SDK library, you can easily and safely interact with backend server.\r\n\r\nJust import and call some API functions like gif image below:\r\n\r\n![nestia-sdk-demo](https://user-images.githubusercontent.com/13158709/215004990-368c589d-7101-404e-b81b-fbc936382f05.gif)\r\n\r\n> Left is server code, and right is client code utilizing the SDK\r\n\r\n\r\n\r\n\r\n## How to Test\r\n```bash\r\nnpm install\r\nnpm start # run only "test/start.ts" file\r\nnpm run test # everything under the "test/features" directory\r\nnpm run test:simulate # "test/features" with mockup simulation mode\r\n```\r\n\r\nIf you run `npm start` command, only [test/start.ts](test/start.ts) file would be executed.\r\n\r\nOtherwise you run `npm run test` command instead, run everything in the [test/features](test/features) directory.\r\n\r\nFor reference, the [test/features](test/features) directory and E2E test functions (for each API endpoints) would be automatically composed only when you\'ve configured the "E2E test function generation mode" of the `@nestia/migrate` (or `@nestia/editor`).\r\n\r\n```bash\r\nnpm install -g @nestia/migrate\r\nnpx @nestia/migrate\r\n? Migration mode (Use arrow keys):\r\n NestJS\r\n > SDK\r\n? Swagger file location: assets/input/clickhouse.json\r\n? Output directory path: assets/output/clickhouse-sdk-manual\r\n? Mokup Simulator: true\r\n? E2E Test Functions: true\r\n```\r\n\r\n\r\n\r\n\r\n## Deploy\r\n```bash\r\nnpm install\r\nnpm run deploy\r\n```\r\n\r\nJust run `npm run deploy` command, then your SDK library would be published.\r\n\r\nBy the way, the initial package name of this template repository is `@ORGANIZATION/PROJECT-api`. I think it would better to change the word to your own organization and project name. If you\'re utilizing `VsCode`, you can do it through `Edit > Replace in Files` (*Ctrl + Shift + H*) feature.\r\n\r\n-----------\r\n\r\n> ## What [`Nestia`](https://nestia.io) is:\r\n> ![Nestia Logo](https://nestia.io/logo.png)\r\n> \r\n> [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/samchon/nestia/blob/master/LICENSE)\r\n> [![npm version](https://img.shields.io/npm/v/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\r\n> [![Downloads](https://img.shields.io/npm/dm/@nestia/core.svg)](https://www.npmjs.com/package/@nestia/core)\r\n> [![Build Status](https://github.com/samchon/nestia/workflows/build/badge.svg)](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\r\n> [![Guide Documents](https://img.shields.io/badge/guide-documents-forestgreen)](https://nestia.io/docs/)\r\n> \r\n> Nestia is a set of helper libraries for NestJS, supporting below features:\r\n> \r\n> - `@nestia/core`: Super-fast decorators\r\n> - `@nestia/sdk`:\r\n> - Swagger generator evolved than ever\r\n> - SDK library generator for clients\r\n> - Mockup Simulator for client applications\r\n> - Automatic E2E test functions generator\r\n> - `@nestia/migrate`: Migration from Swagger to NestJS\r\n> - `@nestia/editor`: Online TypeScript Swagger Editor\r\n> - `nestia`: Just CLI (command line interface) tool\r\n> \r\n>> **Note**\r\n>> \r\n>> - **Only one line** required, with pure TypeScript type\r\n>> - Enhance performance **30x** up\r\n>> - Runtime validator is **20,000x faster** than `class-validator`\r\n>> - JSON serialization is **200x faster** than `class-transformer`\r\n>> - Software Development Kit\r\n>> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://> trpc.io/)\r\n>> - Mockup simulator means embedded backend simulator in SDK\r\n>> - similar with [msw](https://mswjs.io/), but fully automated'},{location:"",file:"rollup.config.js",content:'const typescript = require("@rollup/plugin-typescript");\r\nconst terser = require("@rollup/plugin-terser");\r\n\r\nmodule.exports = {\r\n input: "./src/index.ts",\r\n output: {\r\n dir: "lib",\r\n format: "esm",\r\n entryFileNames: "[name].mjs",\r\n sourcemap: true,\r\n },\r\n plugins: [\r\n typescript({\r\n tsconfig: "tsconfig.json",\r\n module: "ES2020",\r\n target: "ES2020",\r\n }),\r\n terser({\r\n format: {\r\n comments: "some",\r\n beautify: true,\r\n ecma: "2020",\r\n },\r\n compress: false,\r\n mangle: false,\r\n module: true,\r\n }),\r\n ],\r\n};\r\n'},{location:"src",file:"HttpError.ts",content:'export { HttpError } from "@nestia/fetcher";\r\n'},{location:"src",file:"IConnection.ts",content:'export type { IConnection } from "@nestia/fetcher";\r\n'},{location:"src",file:"index.ts",content:'import * as api from "./module";\r\n\r\nexport * from "./module";\r\nexport default api;\r\n'},{location:"src",file:"module.ts",content:'export type * from "./IConnection";\r\nexport * from "./HttpError";\r\n\r\nexport * as functional from "./functional";\r\n'},{location:"src",file:"Primitive.ts",content:'export type { Primitive } from "@nestia/fetcher";\r\n'},{location:"",file:"swagger.json",content:'{\r\n "openapi": "3.0.1",\r\n "servers": [\r\n {\r\n "url": "http://localhost:37001",\r\n "description": "Local Server"\r\n }\r\n ],\r\n "info": {\r\n "version": "2.2.0",\r\n "title": "@samchon/bbs-backend",\r\n "description": "Backend for bbs",\r\n "license": {\r\n "name": "MIT"\r\n }\r\n },\r\n "paths": {\r\n "/bbs/articles": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated summarized articles.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticle.ISummary"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all summarized articles",\r\n "description": "List up all summarized articles.\\n\\nList up all summarized articles with pagination and searching options."\r\n },\r\n "post": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Article information to create.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.ICreate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "201": {\r\n "description": "Newly created article.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Create a new article",\r\n "description": "Create a new article.\\n\\nCreate a new article with its first {@link IBbsArticle.ISnapshot snapshot}."\r\n }\r\n },\r\n "/bbs/articles/abridges": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated abridged articles.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticle.IAbridge"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all abridged articles",\r\n "description": "List up all abridged articles.\\n\\nList up all abridged articles with pagination and searching options."\r\n }\r\n },\r\n "/bbs/articles/{id}": {\r\n "get": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "responses": {\r\n "200": {\r\n "description": "Article information",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Read individual article",\r\n "description": "Read individual article.\\n\\nReads an article with its every {@link IBbsArticle.ISnapshot snapshots}."\r\n },\r\n "put": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Article information to update.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IUpdate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Newly accumulated snapshot information.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Update an article",\r\n "description": "Update an article.\\n\\nAccumulate a new {@link IBbsArticle.ISnapshot snapshot} record to the article."\r\n },\r\n "delete": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Password of the article.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticle.IErase"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Erase an article",\r\n "description": "Erase an article.\\n\\nPerforms soft deletion to the article."\r\n }\r\n },\r\n "/bbs/articles/{articleId}/comments": {\r\n "patch": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Request info of pagination and searching options.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Paginated summarized comments.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPageIBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "List up all summarized comments",\r\n "description": "List up all summarized comments.\\n\\nList up all summarized comments with pagination and searching options."\r\n },\r\n "post": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Comment information to create.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ICreate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "201": {\r\n "description": "Newly created comment.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Create a new comment",\r\n "description": "Create a new comment.\\n\\nCreate a new comment with its first {@link IBbsArticleComment.ISnapshot snapshot}."\r\n }\r\n },\r\n "/bbs/articles/{articleId}/comments/{id}": {\r\n "get": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "responses": {\r\n "200": {\r\n "description": "Comment information",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Read individual comment",\r\n "description": "Read individual comment.\\n\\nReads a comment with its every {@link IBbsArticleComment.ISnapshot snapshots}."\r\n },\r\n "put": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Comment information to update.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IUpdate"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": "Newly accumulated snapshot information.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Update a comment",\r\n "description": "Update a comment.\\n\\nAccumulate a new {@link IBbsArticleComment.ISnapshot snapshot} record to the comment."\r\n },\r\n "delete": {\r\n "tags": [\r\n "BBS"\r\n ],\r\n "parameters": [\r\n {\r\n "name": "articleId",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Belonged article\'s ",\r\n "required": true\r\n },\r\n {\r\n "name": "id",\r\n "in": "path",\r\n "schema": {\r\n "type": "string",\r\n "format": "uuid"\r\n },\r\n "description": "Target comment\'s ",\r\n "required": true\r\n }\r\n ],\r\n "requestBody": {\r\n "description": "Password of the comment.",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IErase"\r\n }\r\n }\r\n },\r\n "required": true\r\n },\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Erase a comment",\r\n "description": "Erase a comment.\\n\\nPerforms soft deletion to the comment."\r\n }\r\n },\r\n "/monitors/health": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": ""\r\n }\r\n },\r\n "summary": "Health check API",\r\n "description": "Health check API."\r\n }\r\n },\r\n "/monitors/performance": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": "Performance info",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/IPerformance"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Get performance information",\r\n "description": "Get performance information.\\n\\nGet perofmration information composed with CPU, memory and resource usage."\r\n }\r\n },\r\n "/monitors/system": {\r\n "get": {\r\n "tags": [\r\n "Monitor"\r\n ],\r\n "parameters": [],\r\n "responses": {\r\n "200": {\r\n "description": "System info",\r\n "content": {\r\n "application/json": {\r\n "schema": {\r\n "$ref": "#/components/schemas/ISystem"\r\n }\r\n }\r\n }\r\n }\r\n },\r\n "summary": "Get system information",\r\n "description": "Get system information.\\n\\nGet system information with commit and package information."\r\n }\r\n }\r\n },\r\n "components": {\r\n "schemas": {\r\n "IBbsArticle.IRequest": {\r\n "type": "object",\r\n "properties": {\r\n "search": {\r\n "$ref": "#/components/schemas/IBbsArticle.IRequest.ISearch",\r\n "title": "Search condition",\r\n "description": "Search condition."\r\n },\r\n "sort": {\r\n "type": "array",\r\n "items": {\r\n "type": "string",\r\n "enum": [\r\n "+created_at",\r\n "+title",\r\n "+updated_at",\r\n "+writer",\r\n "-created_at",\r\n "-title",\r\n "-updated_at",\r\n "-writer"\r\n ]\r\n },\r\n "title": "Sort condition",\r\n "description": "Sort condition."\r\n },\r\n "page": {\r\n "type": "integer",\r\n "title": "Page number",\r\n "description": "Page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IBbsArticle.IRequest.ISearch": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "title": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n },\r\n "title_or_body": {\r\n "type": "string"\r\n },\r\n "from": {\r\n "type": "string",\r\n "format": "date-time"\r\n },\r\n "to": {\r\n "type": "string",\r\n "format": "date-time"\r\n }\r\n },\r\n "nullable": false,\r\n "description": "검색 정보."\r\n },\r\n "IPageIBbsArticle.ISummary": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISummary"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IPage.IPagination": {\r\n "type": "object",\r\n "properties": {\r\n "current": {\r\n "type": "integer",\r\n "title": "Current page number",\r\n "description": "Current page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n },\r\n "records": {\r\n "type": "integer",\r\n "title": "Total records in the database",\r\n "description": "Total records in the database."\r\n },\r\n "pages": {\r\n "type": "integer",\r\n "title": "Total pages",\r\n "description": "Total pages.\\n\\nEqual to {@link records } / {@link limit } with ceiling."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "current",\r\n "limit",\r\n "records",\r\n "pages"\r\n ],\r\n "description": "Page information."\r\n },\r\n "IBbsArticle.ISummary": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of the article",\r\n "description": "Writer of the article."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of the last snapshot",\r\n "description": "Title of the last snapshot."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of the article",\r\n "description": "Creation time of the article."\r\n },\r\n "updated_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Modification time of the article",\r\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "title",\r\n "created_at",\r\n "updated_at"\r\n ],\r\n "description": "Summarized information of the article."\r\n },\r\n "IPageIBbsArticle.IAbridge": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.IAbridge"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IBbsArticle.IAbridge": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of the article",\r\n "description": "Writer of the article."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of the last snapshot",\r\n "description": "Title of the last snapshot."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of the article",\r\n "description": "Creation time of the article."\r\n },\r\n "updated_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Modification time of the article",\r\n "description": "Modification time of the article.\\n\\nIn other words, the time when the last snapshot was created."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticle.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "title",\r\n "created_at",\r\n "updated_at",\r\n "format",\r\n "body",\r\n "files"\r\n ],\r\n "description": "Abriged information of the article."\r\n },\r\n "IBbsArticle.Format": {\r\n "type": "string",\r\n "enum": [\r\n "txt",\r\n "md",\r\n "html"\r\n ]\r\n },\r\n "IAttachmentFile.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string",\r\n "maxLength": 255,\r\n "title": "File name, except extension",\r\n "description": "File name, except extension."\r\n },\r\n "extension": {\r\n "type": "string",\r\n "maxLength": 8,\r\n "minLength": 1,\r\n "nullable": true,\r\n "title": "Extension",\r\n "description": "Extension.\\n\\nPossible to omit like `README` case."\r\n },\r\n "url": {\r\n "type": "string",\r\n "format": "uri",\r\n "title": "URL path of the real file",\r\n "description": "URL path of the real file."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "extension",\r\n "url"\r\n ]\r\n },\r\n "IBbsArticle": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of article",\r\n "description": "Writer of article."\r\n },\r\n "snapshots": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticle.ISnapshot"\r\n },\r\n "minItems": 1,\r\n "title": "List of snapshot contents",\r\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when an article is created, and is\\naccumulated every time the article is modified."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of article",\r\n "description": "Creation time of article."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "writer",\r\n "snapshots",\r\n "created_at"\r\n ],\r\n "description": "Article entity.\\n\\n`IBbsArticle* is a super-type entity of all kinds of articles in the current\\nbackend system, literally shaping individual articles of the bulletin board.\\n\\nAnd, as you can see, the elements that must inevitably exist in the article,\\nsuch as the `title` or the `body`, do not exist in the `IBbsArticle`, but exist\\nin the subsidiary entity, {@link IBbsArticle.ISnapshot }, as a 1: N relationship,\\nwhich is because a new snapshot record is published every time the article is\\nmodified.\\n\\nThe reason why a new snapshot record is published every time the article is\\nmodified is to preserve the evidence. Due to the nature of e-community, there\\nis always a threat of dispute among the participants. And it can happen that\\ndisputes arise through articles or {@link IBbsArticleComment comments}, and to\\nprevent such things as modifying existing articles to manipulate the situation,\\nthe article is designed in this structure.\\n\\nIn other words, to keep evidence, and prevent fraud."\r\n },\r\n "IBbsArticle.ISnapshot": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of snapshot record",\r\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or article."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticle.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "created_at",\r\n "format",\r\n "body",\r\n "files",\r\n "title"\r\n ],\r\n "description": "Snapshot of article.\\n\\n`IBbsArticle.ISnapshot` is a snapshot entity that contains the contents of\\nthe article, as mentioned in {@link IBbsArticle }, the contents of the article\\nare separated from the article record to keep evidence and prevent fraud."\r\n },\r\n "IBbsArticle.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "writer",\r\n "format",\r\n "title",\r\n "body",\r\n "files",\r\n "password"\r\n ],\r\n "description": "Store content type of the article."\r\n },\r\n "IBbsArticle.IUpdate": {\r\n "type": "object",\r\n "properties": {\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "title": {\r\n "type": "string",\r\n "title": "Title of article",\r\n "description": "Title of article."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of article",\r\n "description": "Content body of article."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "format",\r\n "title",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticle.IErase": {\r\n "type": "object",\r\n "properties": {\r\n "password": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IRequest": {\r\n "type": "object",\r\n "properties": {\r\n "search": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.IRequest.ISearch"\r\n },\r\n "sort": {\r\n "type": "array",\r\n "items": {\r\n "type": "string",\r\n "enum": [\r\n "+created_at",\r\n "+writer",\r\n "-created_at",\r\n "-writer"\r\n ]\r\n }\r\n },\r\n "page": {\r\n "type": "integer",\r\n "title": "Page number",\r\n "description": "Page number."\r\n },\r\n "limit": {\r\n "type": "integer",\r\n "default": 100,\r\n "title": "Limitation of records per a page",\r\n "description": "Limitation of records per a page."\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IBbsArticleComment.IRequest.ISearch": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false\r\n },\r\n "IPageIBbsArticleComment": {\r\n "type": "object",\r\n "properties": {\r\n "pagination": {\r\n "$ref": "#/components/schemas/IPage.IPagination",\r\n "title": "Page information",\r\n "description": "Page information."\r\n },\r\n "data": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticleComment"\r\n },\r\n "title": "List of records",\r\n "description": "List of records."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "pagination",\r\n "data"\r\n ],\r\n "description": "A page.\\n\\nCollection of records with pagination indformation."\r\n },\r\n "IBbsArticleComment": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "parent_id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "nullable": true,\r\n "title": "Parent comment\'s ID",\r\n "description": "Parent comment\'s ID."\r\n },\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of comment",\r\n "description": "Writer of comment."\r\n },\r\n "snapshots": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.ISnapshot"\r\n },\r\n "minItems": 1,\r\n "title": "List of snapshot contents",\r\n "description": "List of snapshot contents.\\n\\nIt is created for the first time when a comment being created, and is\\naccumulated every time the comment is modified."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of comment",\r\n "description": "Creation time of comment."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "parent_id",\r\n "writer",\r\n "snapshots",\r\n "created_at"\r\n ],\r\n "description": "Comment written on an article.\\n\\n`IBbsArticleComment` is an entity that shapes the comments written on an article.\\n\\nAnd for this comment, as in the previous relationship between\\n{@link IBbsArticle } and {@link IBbsArticle.ISnapshot }, the content body of the\\ncomment is stored in the sub {@link IBbsArticleComment.ISnapshot } table for\\nevidentialism, and a new snapshot record is issued every time the comment is modified.\\n\\nAlso, `IBbsArticleComment` is expressing the relationship of the hierarchical reply\\nstructure through the {@link IBbsArticleComment.parent_id } attribute."\r\n },\r\n "IBbsArticleComment.ISnapshot": {\r\n "type": "object",\r\n "properties": {\r\n "id": {\r\n "type": "string",\r\n "format": "uuid",\r\n "title": "Primary Key",\r\n "description": "Primary Key."\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "format": "date-time",\r\n "title": "Creation time of snapshot record",\r\n "description": "Creation time of snapshot record.\\n\\nIn other words, creation time or update time or comment."\r\n },\r\n "format": {\r\n "$ref": "#/components/schemas/IBbsArticleComment.Format",\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "id",\r\n "created_at",\r\n "format",\r\n "body",\r\n "files"\r\n ],\r\n "description": "Snapshot of comment.\\n\\n`IBbsArticleComment.ISnapshot` is a snapshot entity that contains\\nthe contents of the comment.\\n\\nAs mentioned in {@link IBbsArticleComment }, designed to keep evidence\\nand prevent fraud."\r\n },\r\n "IBbsArticleComment.Format": {\r\n "type": "string",\r\n "enum": [\r\n "txt",\r\n "md",\r\n "html"\r\n ]\r\n },\r\n "IBbsArticleComment.ICreate": {\r\n "type": "object",\r\n "properties": {\r\n "writer": {\r\n "type": "string",\r\n "title": "Writer of comment",\r\n "description": "Writer of comment."\r\n },\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "writer",\r\n "format",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IUpdate": {\r\n "type": "object",\r\n "properties": {\r\n "format": {\r\n "type": "string",\r\n "enum": [\r\n "html",\r\n "md",\r\n "txt"\r\n ],\r\n "title": "Format of body",\r\n "description": "Format of body.\\n\\nSame meaning with extension like `html`, `md`, `txt`."\r\n },\r\n "body": {\r\n "type": "string",\r\n "title": "Content body of comment",\r\n "description": "Content body of comment."\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "$ref": "#/components/schemas/IAttachmentFile.ICreate"\r\n },\r\n "title": "List of attachment files",\r\n "description": "List of attachment files."\r\n },\r\n "password": {\r\n "type": "string",\r\n "title": "Password for modification",\r\n "description": "Password for modification."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "format",\r\n "body",\r\n "files",\r\n "password"\r\n ]\r\n },\r\n "IBbsArticleComment.IErase": {\r\n "type": "object",\r\n "properties": {\r\n "password": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "password"\r\n ]\r\n },\r\n "IPerformance": {\r\n "type": "object",\r\n "properties": {\r\n "cpu": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.CpuUsage"\r\n },\r\n "memory": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.MemoryUsage"\r\n },\r\n "resource": {\r\n "$ref": "#/components/schemas/process.global.NodeJS.ResourceUsage"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "cpu",\r\n "memory",\r\n "resource"\r\n ]\r\n },\r\n "process.global.NodeJS.CpuUsage": {\r\n "type": "object",\r\n "properties": {\r\n "user": {\r\n "type": "number"\r\n },\r\n "system": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "user",\r\n "system"\r\n ]\r\n },\r\n "process.global.NodeJS.MemoryUsage": {\r\n "type": "object",\r\n "properties": {\r\n "rss": {\r\n "type": "number"\r\n },\r\n "heapTotal": {\r\n "type": "number"\r\n },\r\n "heapUsed": {\r\n "type": "number"\r\n },\r\n "external": {\r\n "type": "number"\r\n },\r\n "arrayBuffers": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "rss",\r\n "heapTotal",\r\n "heapUsed",\r\n "external",\r\n "arrayBuffers"\r\n ]\r\n },\r\n "process.global.NodeJS.ResourceUsage": {\r\n "type": "object",\r\n "properties": {\r\n "fsRead": {\r\n "type": "number"\r\n },\r\n "fsWrite": {\r\n "type": "number"\r\n },\r\n "involuntaryContextSwitches": {\r\n "type": "number"\r\n },\r\n "ipcReceived": {\r\n "type": "number"\r\n },\r\n "ipcSent": {\r\n "type": "number"\r\n },\r\n "majorPageFault": {\r\n "type": "number"\r\n },\r\n "maxRSS": {\r\n "type": "number"\r\n },\r\n "minorPageFault": {\r\n "type": "number"\r\n },\r\n "sharedMemorySize": {\r\n "type": "number"\r\n },\r\n "signalsCount": {\r\n "type": "number"\r\n },\r\n "swappedOut": {\r\n "type": "number"\r\n },\r\n "systemCPUTime": {\r\n "type": "number"\r\n },\r\n "unsharedDataSize": {\r\n "type": "number"\r\n },\r\n "unsharedStackSize": {\r\n "type": "number"\r\n },\r\n "userCPUTime": {\r\n "type": "number"\r\n },\r\n "voluntaryContextSwitches": {\r\n "type": "number"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "fsRead",\r\n "fsWrite",\r\n "involuntaryContextSwitches",\r\n "ipcReceived",\r\n "ipcSent",\r\n "majorPageFault",\r\n "maxRSS",\r\n "minorPageFault",\r\n "sharedMemorySize",\r\n "signalsCount",\r\n "swappedOut",\r\n "systemCPUTime",\r\n "unsharedDataSize",\r\n "unsharedStackSize",\r\n "userCPUTime",\r\n "voluntaryContextSwitches"\r\n ]\r\n },\r\n "ISystem": {\r\n "type": "object",\r\n "properties": {\r\n "uid": {\r\n "type": "number",\r\n "title": "Random Unique ID",\r\n "description": "Random Unique ID."\r\n },\r\n "arguments": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n },\r\n "description": "`process.argv`"\r\n },\r\n "commit": {\r\n "$ref": "#/components/schemas/ISystem.ICommit",\r\n "title": "Git commit info",\r\n "description": "Git commit info."\r\n },\r\n "package": {\r\n "$ref": "#/components/schemas/ISystem.IPackage",\r\n "description": "`package.json`"\r\n },\r\n "created_at": {\r\n "type": "string",\r\n "title": "Creation time of this server",\r\n "description": "Creation time of this server."\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "uid",\r\n "arguments",\r\n "commit",\r\n "package",\r\n "created_at"\r\n ],\r\n "description": "System Information."\r\n },\r\n "ISystem.ICommit": {\r\n "type": "object",\r\n "properties": {\r\n "shortHash": {\r\n "type": "string"\r\n },\r\n "branch": {\r\n "type": "string"\r\n },\r\n "hash": {\r\n "type": "string"\r\n },\r\n "subject": {\r\n "type": "string"\r\n },\r\n "sanitizedSubject": {\r\n "type": "string"\r\n },\r\n "body": {\r\n "type": "string"\r\n },\r\n "author": {\r\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\r\n },\r\n "committer": {\r\n "$ref": "#/components/schemas/ISystem.ICommit.IUser"\r\n },\r\n "authored_at": {\r\n "type": "string"\r\n },\r\n "commited_at": {\r\n "type": "string"\r\n },\r\n "notes": {\r\n "type": "string"\r\n },\r\n "tags": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n }\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "shortHash",\r\n "branch",\r\n "hash",\r\n "subject",\r\n "sanitizedSubject",\r\n "body",\r\n "author",\r\n "committer",\r\n "authored_at",\r\n "commited_at",\r\n "tags"\r\n ],\r\n "description": "Git commit info."\r\n },\r\n "ISystem.ICommit.IUser": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string"\r\n },\r\n "email": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "email"\r\n ],\r\n "description": "Git user account info."\r\n },\r\n "ISystem.IPackage": {\r\n "type": "object",\r\n "properties": {\r\n "name": {\r\n "type": "string"\r\n },\r\n "version": {\r\n "type": "string"\r\n },\r\n "description": {\r\n "type": "string"\r\n },\r\n "main": {\r\n "type": "string"\r\n },\r\n "typings": {\r\n "type": "string"\r\n },\r\n "scripts": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "repository": {\r\n "type": "object",\r\n "properties": {\r\n "type": {\r\n "type": "string",\r\n "enum": [\r\n "git"\r\n ]\r\n },\r\n "url": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "type",\r\n "url"\r\n ]\r\n },\r\n "author": {\r\n "type": "string"\r\n },\r\n "license": {\r\n "type": "string"\r\n },\r\n "bugs": {\r\n "type": "object",\r\n "properties": {\r\n "url": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "url"\r\n ]\r\n },\r\n "homepage": {\r\n "type": "string"\r\n },\r\n "devDependencies": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "dependencies": {\r\n "$ref": "#/components/schemas/Recordstringstring"\r\n },\r\n "publishConfig": {\r\n "type": "object",\r\n "properties": {\r\n "registry": {\r\n "type": "string"\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "registry"\r\n ]\r\n },\r\n "files": {\r\n "type": "array",\r\n "items": {\r\n "type": "string"\r\n }\r\n }\r\n },\r\n "nullable": false,\r\n "required": [\r\n "name",\r\n "version",\r\n "description",\r\n "scripts",\r\n "repository",\r\n "author",\r\n "license",\r\n "bugs",\r\n "homepage",\r\n "dependencies"\r\n ],\r\n "description": "NPM package info."\r\n },\r\n "Recordstringstring": {\r\n "type": "object",\r\n "properties": {},\r\n "nullable": false,\r\n "description": "Construct a type with a set of properties K of type T"\r\n }\r\n }\r\n }\r\n}'},{location:"test",file:"index.ts",content:'import { DynamicExecutor } from "@nestia/e2e";\r\nimport chalk from "chalk";\r\n\r\nimport { TestGlobal } from "./TestGlobal";\r\nimport { ArgumentParser } from "./utils/ArgumentParser";\r\n\r\ninterface IOptions {\r\n simulate: boolean;\r\n include?: string[];\r\n exclude?: string[];\r\n trace: boolean;\r\n}\r\n\r\nconst getOptions = () =>\r\n ArgumentParser.parse(async (command, prompt, action) => {\r\n command.option("--simulate ", "Mockup Simultator");\r\n command.option("--include ", "include feature files");\r\n command.option("--exclude ", "exclude feature files");\r\n command.option("--trace ", "trace detailed errors");\r\n\r\n return action(async (options) => {\r\n if (typeof options.simulate === "string")\r\n options.simulate = options.simulate === "true";\r\n options.simulate ??= await prompt.boolean("simulate")("Mockup Simulator");\r\n options.trace = options.trace !== ("false" as any);\r\n return options as IOptions;\r\n });\r\n });\r\n\r\nconst main = async (): Promise => {\r\n // DO TEST\r\n const options: IOptions = await getOptions();\r\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\r\n prefix: "test",\r\n location: __dirname + "/features",\r\n extension: __filename.substring(__filename.length - 2),\r\n parameters: () => [\r\n {\r\n ...TestGlobal.connection(),\r\n simulate: options.simulate,\r\n },\r\n ],\r\n filter: (func) =>\r\n (!options.include?.length ||\r\n (options.include ?? []).some((str) => func.includes(str))) &&\r\n (!options.exclude?.length ||\r\n (options.exclude ?? []).every((str) => !func.includes(str))),\r\n onComplete: (exec) => {\r\n const trace = (str: string) =>\r\n console.log(` - ${chalk.green(exec.name)}: ${str}`);\r\n if (exec.error === null) {\r\n const elapsed: number =\r\n new Date(exec.completed_at).getTime() -\r\n new Date(exec.started_at).getTime();\r\n trace(`${chalk.yellow(elapsed.toLocaleString())} ms`);\r\n } else trace(chalk.red(exec.error.name));\r\n },\r\n });\r\n\r\n // REPORT EXCEPTIONS\r\n const exceptions: Error[] = report.executions\r\n .filter((exec) => exec.error !== null)\r\n .map((exec) => exec.error!);\r\n if (exceptions.length === 0) {\r\n console.log("Success");\r\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\r\n } else {\r\n if (options.trace !== false) for (const exp of exceptions) console.log(exp);\r\n console.log("Failed");\r\n console.log("Elapsed time", report.time.toLocaleString(), `ms`);\r\n }\r\n\r\n // TERMINATE\r\n if (exceptions.length) process.exit(-1);\r\n else process.exit(0);\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test",file:"start.ts",content:'import api from "@ORGANIZATION/PROJECT-api";\r\nimport { IBbsArticleComment } from "@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticleComment";\r\nimport typia from "typia";\r\nimport type { Format } from "typia/lib/tags/Format";\r\n\r\nimport { TestGlobal } from "./TestGlobal";\r\n\r\nconst main = async () => {\r\n const connection: api.IConnection = {\r\n ...TestGlobal.connection(),\r\n simulate: true,\r\n };\r\n const output: IBbsArticleComment =\r\n await api.functional.bbs.articles.comments.create(\r\n connection,\r\n typia.random>(),\r\n typia.random(),\r\n );\r\n typia.assert(output);\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test",file:"swagger.ts",content:'import express from "express";\r\nimport ui from "swagger-ui-express";\r\n\r\nimport swagger from "../swagger.json";\r\n\r\nconst main = async (): Promise => {\r\n const app = express();\r\n app.use("/", ui.serve, ui.setup(swagger));\r\n app.listen(3000);\r\n\r\n console.log("-----------------------------------------------------------");\r\n console.log("\\n Swagger UI Address: http://127.0.0.1:3000 \\n");\r\n console.log("-----------------------------------------------------------");\r\n};\r\nmain().catch((exp) => {\r\n console.log(exp);\r\n process.exit(-1);\r\n});\r\n'},{location:"test",file:"TestGlobal.ts",content:'import api from "@ORGANIZATION/PROJECT-api";\r\n\r\nexport namespace TestGlobal {\r\n export const connection = (): api.IConnection => ({\r\n host: `http://127.0.0.1:37001`,\r\n });\r\n}\r\n'},{location:"test",file:"tsconfig.json",content:'{\r\n "extends": "../tsconfig.json",\r\n "compilerOptions": {\r\n "outDir": "../bin",\r\n "paths": {\r\n "@ORGANIZATION/PROJECT-api": ["../src"],\r\n "@ORGANIZATION/PROJECT-api/lib/*": ["../src/*"],\r\n },\r\n "plugins": [\r\n { "transform": "typia/lib/transform" },\r\n { "transform": "typescript-transform-paths" },\r\n ],\r\n },\r\n "include": [\r\n ".", \r\n "../src",\r\n ],\r\n}'},{location:"test/utils",file:"ArgumentParser.ts",content:'import commander from "commander";\r\nimport * as inquirer from "inquirer";\r\n\r\nexport namespace ArgumentParser {\r\n export type Inquiry = (\r\n command: commander.Command,\r\n prompt: (opt?: inquirer.StreamOptions) => inquirer.PromptModule,\r\n action: (closure: (options: Partial) => Promise) => Promise,\r\n ) => Promise;\r\n\r\n export interface Prompt {\r\n select: (\r\n name: string,\r\n ) => (\r\n message: string,\r\n ) => (choices: Choice[]) => Promise;\r\n boolean: (name: string) => (message: string) => Promise;\r\n }\r\n\r\n export const parse = async (\r\n inquiry: (\r\n command: commander.Command,\r\n prompt: Prompt,\r\n action: (closure: (options: Partial) => Promise) => Promise,\r\n ) => Promise,\r\n ): Promise => {\r\n // TAKE OPTIONS\r\n const action = (closure: (options: Partial) => Promise) =>\r\n new Promise((resolve, reject) => {\r\n commander.program.action(async (options) => {\r\n try {\r\n resolve(await closure(options));\r\n } catch (exp) {\r\n reject(exp);\r\n }\r\n });\r\n commander.program.parseAsync().catch(reject);\r\n });\r\n\r\n const select =\r\n (name: string) =>\r\n (message: string) =>\r\n async (choices: Choice[]): Promise =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "list",\r\n name,\r\n message,\r\n choices,\r\n })\r\n )[name];\r\n const boolean = (name: string) => async (message: string) =>\r\n (\r\n await inquirer.createPromptModule()({\r\n type: "confirm",\r\n name,\r\n message,\r\n })\r\n )[name] as boolean;\r\n\r\n const output: T | Error = await (async () => {\r\n try {\r\n return await inquiry(commander.program, { select, boolean }, action);\r\n } catch (error) {\r\n return error as Error;\r\n }\r\n })();\r\n\r\n // RETURNS\r\n if (output instanceof Error) throw output;\r\n return output;\r\n };\r\n}\r\n'},{location:"",file:"tsconfig.json",content:'{\r\n "compilerOptions": {\r\n /* Visit https://aka.ms/tsconfig to read more about this file */\r\n /* Projects */\r\n // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\r\n // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\r\n // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */\r\n // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\r\n // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */\r\n // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */\r\n /* Language and Environment */\r\n "target": "ES5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\r\n "lib": [\r\n "DOM",\r\n "ES2015"\r\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// "jsx": "preserve", /* Specify what JSX code is generated. */\r\n // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\r\n // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */\r\n // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. \'React.createElement\' or \'h\'. */\r\n // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. \'React.Fragment\' or \'Fragment\'. */\r\n // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using \'jsx: react-jsx*\'. */\r\n // "reactNamespace": "", /* Specify the object invoked for \'createElement\'. This only applies when targeting \'react\' JSX emit. */\r\n // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */\r\n // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */\r\n // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */\r\n /* Modules */\r\n "module": "commonjs", /* Specify what module code is generated. */// "rootDir": "./", /* Specify the root folder within your source files. */\r\n // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */\r\n // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */\r\n "paths": {\r\n "@ORGANIZATION/PROJECT-api": ["../src"],\r\n "@ORGANIZATION/PROJECT-api/lib/*": ["../src/*"],\r\n }, /* Specify a set of entries that re-map imports to additional lookup locations. */\r\n // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */\r\n // "typeRoots": [], /* Specify multiple folders that act like \'./node_modules/@types\'. */\r\n // "types": [], /* Specify type package names to be included without being referenced in a source file. */\r\n // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */\r\n // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */\r\n "resolveJsonModule": true, /* Enable importing .json files. */\r\n // "noResolve": true, /* Disallow \'import\'s, \'require\'s or \'\'s from expanding the number of files TypeScript should add to a project. */\r\n /* JavaScript Support */\r\n // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the \'checkJS\' option to get errors from these files. */\r\n // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */\r\n // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from \'node_modules\'. Only applicable with \'allowJs\'. */\r\n /* Emit */\r\n "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// "declarationMap": true, /* Create sourcemaps for d.ts files. */\r\n // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */\r\n "sourceMap": true, /* Create source map files for emitted JavaScript files. */// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If \'declaration\' is true, also designates a file that bundles all .d.ts output. */\r\n "outDir": "./lib", /* Specify an output folder for all emitted files. */// "removeComments": true, /* Disable emitting comments. */\r\n // "noEmit": true, /* Disable emitting files from a compilation. */\r\n // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\r\n // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */\r\n "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */\r\n // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */\r\n // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */\r\n // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\r\n // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\r\n "newLine": "lf", /* Set the newline character for emitting files. */// "stripInternal": true, /* Disable emitting declarations that have \'@internal\' in their JSDoc comments. */\r\n // "noEmitHelpers": true, /* Disable generating custom helper functions like \'__extends\' in compiled output. */\r\n // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */\r\n // "preserveConstEnums": true, /* Disable erasing \'const enum\' declarations in generated code. */\r\n // "declarationDir": "./", /* Specify the output directory for generated declaration files. */\r\n // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\r\n /* Interop Constraints */\r\n // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\r\n // "allowSyntheticDefaultImports": true, /* Allow \'import x from y\' when a module doesn\'t have a default export. */\r\n "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables \'allowSyntheticDefaultImports\' for type compatibility. */// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\r\n "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. *//* Type Checking */\r\n "strict": true, /* Enable all strict type-checking options. */// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied \'any\' type. */\r\n // "strictNullChecks": true, /* When type checking, take into account \'null\' and \'undefined\'. */\r\n // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\r\n // "strictBindCallApply": true, /* Check that the arguments for \'bind\', \'call\', and \'apply\' methods match the original function. */\r\n // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */\r\n // "noImplicitThis": true, /* Enable error reporting when \'this\' is given the type \'any\'. */\r\n // "useUnknownInCatchVariables": true, /* Default catch clause variables as \'unknown\' instead of \'any\'. */\r\n // "alwaysStrict": true, /* Ensure \'use strict\' is always emitted. */\r\n // "noUnusedLocals": true, /* Enable error reporting when local variables aren\'t read. */\r\n // "noUnusedParameters": true, /* Raise an error when a function parameter isn\'t read. */\r\n // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding \'undefined\'. */\r\n // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\r\n // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */\r\n // "noUncheckedIndexedAccess": true, /* Add \'undefined\' to a type when accessed using an index. */\r\n // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\r\n // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\r\n // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */\r\n // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */\r\n /* Completeness */\r\n // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */\r\n "skipLibCheck": true, /* Skip type checking all .d.ts files. */\r\n "plugins": [\r\n { "transform": "typia/lib/transform" },\r\n { "transform": "typescript-transform-paths" },\r\n ],\r\n },\r\n "include": ["src"],\r\n}'}]},62430:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeLiteralFactory=void 0;let o=i(r(55423)),a=r(5724);!function(e){e.generate=e=>"boolean"==typeof e?n(e):"number"==typeof e?r(e):"string"==typeof e?t(e):"object"==typeof e?null===e?i():Array.isArray(e)?s(e):c(e):o.default.factory.createKeywordTypeNode(o.default.SyntaxKind.AnyKeyword);let t=e=>o.default.factory.createLiteralTypeNode(o.default.factory.createStringLiteral(e)),r=e=>o.default.factory.createLiteralTypeNode(e<0?o.default.factory.createPrefixUnaryExpression(o.default.SyntaxKind.MinusToken,o.default.factory.createNumericLiteral(-e)):o.default.factory.createNumericLiteral(e)),n=e=>o.default.factory.createLiteralTypeNode(e?o.default.factory.createTrue():o.default.factory.createFalse()),i=()=>o.default.factory.createLiteralTypeNode(o.default.factory.createNull()),s=t=>o.default.factory.createTupleTypeNode(t.map(e.generate)),c=t=>o.default.factory.createTypeLiteralNode(Object.entries(t).map(([t,r])=>o.default.factory.createPropertySignature(void 0,a.Escaper.variable(t)?o.default.factory.createIdentifier(t):o.default.factory.createStringLiteral(t),void 0,e.generate(r))))}(n||(t.TypeLiteralFactory=n={}))},73660:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0});let s=o(r(36930));t.default=s,a(r(36930),t)},36930:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(54478),t),i(r(67412),t),i(r(85657),t),i(r(89943),t),i(r(38788),t)},68787:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiFileProgrammer=void 0;let o=i(r(55423)),a=r(37219),s=r(54093),c=r(86879);(n||(t.MigrateApiFileProgrammer=n={})).write=e=>t=>r=>{let n=new c.MigrateImportProgrammer,i=r.routes.map(r=>[a.MigrateApiFunctionProgrammer.write(e)(t)(n)(r),s.MigrateApiNamespaceProgrammer.write(e)(t)(n)(r)]).flat();return[...n.toStatements(e=>`../${"../".repeat(r.namespace.length)}structures/${e}`),...[...r.children].map(e=>o.default.factory.createExportDeclaration(void 0,!1,o.default.factory.createNamespaceExport(o.default.factory.createIdentifier(e)),o.default.factory.createStringLiteral(`./${e}`),void 0)),...i]}},37219:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiFunctionProgrammer=void 0;let o=i(r(55423)),a=r(61387),s=r(7621),c=r(49271);!function(e){e.write=n=>i=>a=>c=>s.FilePrinter.description(o.default.factory.createFunctionDeclaration([o.default.factory.createModifier(o.default.SyntaxKind.ExportKeyword),o.default.factory.createModifier(o.default.SyntaxKind.AsyncKeyword)],void 0,c.accessor.at(-1),void 0,e.writeParameterDeclarations(i)(a)(c),o.default.factory.createTypeReferenceNode("Promise",[o.default.factory.createTypeReferenceNode(null===c.success?"void":`${c.accessor.at(-1)}.Output`)]),o.default.factory.createBlock(r(n)(a)(c),!0)),t(c)),e.writeParameterDeclarations=e=>t=>r=>[a.IdentifierFactory.parameter("connection",o.default.factory.createTypeReferenceNode(t.external({type:"instance",library:"@nestia/fetcher",name:"IConnection"}),r.headers?[o.default.factory.createTypeReferenceNode(`${r.accessor.at(-1)}.Headers`)]:void 0)),...r.parameters.map(r=>a.IdentifierFactory.parameter(r.key,c.MigrateSchemaProgrammer.write(e)(t)(r.schema))),...r.query?[a.IdentifierFactory.parameter(r.query.key,o.default.factory.createTypeReferenceNode(`${r.accessor.at(-1)}.Query`))]:[],...r.body?[a.IdentifierFactory.parameter(r.body.key,o.default.factory.createTypeReferenceNode(`${r.accessor.at(-1)}.Input`))]:[]];let t=e=>[e.comment(),`@path ${e.emendedPath}`,"@nestia Generated by Nestia - https://github.com/samchon/nestia"].join("\n"),r=e=>t=>r=>{var n,i,s;let c=!!(null===(n=r.success)||void 0===n?void 0:n["x-nestia-encrypted"]),u=null!==(s=null===(i=r.body)||void 0===i?void 0:i.type)&&void 0!==s?s:"application/json",l=()=>o.default.factory.createCallExpression(a.IdentifierFactory.access(o.default.factory.createIdentifier(t.external({type:"instance",library:`@nestia/fetcher/lib/${c?"EncryptedFetcher":"PlainFetcher"}`,name:c?"EncryptedFetcher":"PlainFetcher"})))("fetch"),void 0,[u&&"multipart/form-data"!==u?o.default.factory.createObjectLiteralExpression([o.default.factory.createSpreadAssignment(o.default.factory.createIdentifier("connection")),o.default.factory.createPropertyAssignment("headers",o.default.factory.createObjectLiteralExpression([o.default.factory.createSpreadAssignment(a.IdentifierFactory.access(o.default.factory.createIdentifier("connection"))("headers")),o.default.factory.createPropertyAssignment(o.default.factory.createStringLiteral("Content-Type"),o.default.factory.createStringLiteral(u))],!0))],!0):o.default.factory.createIdentifier("connection"),o.default.factory.createObjectLiteralExpression([o.default.factory.createSpreadAssignment(a.IdentifierFactory.access(o.default.factory.createIdentifier(r.accessor.at(-1)))("METADATA")),o.default.factory.createPropertyAssignment("path",o.default.factory.createCallExpression(a.IdentifierFactory.access(o.default.factory.createIdentifier(r.accessor.at(-1)))("path"),void 0,[...r.parameters.map(e=>o.default.factory.createIdentifier(e.key)),...r.query?[o.default.factory.createIdentifier(r.query.key)]:[]])),o.default.factory.createPropertyAssignment("status",o.default.factory.createNull())],!0),...r.body?[o.default.factory.createIdentifier(r.body.key)]:[]]);return!0!==e.simulate?[o.default.factory.createReturnStatement(l())]:[o.default.factory.createReturnStatement(o.default.factory.createConditionalExpression(o.default.factory.createIdentifier("!!connection.simulate"),void 0,o.default.factory.createCallExpression(o.default.factory.createIdentifier(`${r.accessor.at(-1)}.simulate`),[],["connection",...r.parameters.map(e=>e.key),...r.query?[r.query.key]:[],...r.body?[r.body.key]:[]].map(e=>o.default.factory.createIdentifier(e))),void 0,l()))]}}(n||(t.MigrateApiFunctionProgrammer=n={}))},54093:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiNamespaceProgrammer=void 0;let o=i(r(55423)),a=r(73906),s=r(61387),c=r(97846),u=r(12301),l=r(7621),p=r(19194),f=r(49271);!function(e){e.write=e=>i=>a=>s=>{let c=t(i)(a)(s);return o.default.factory.createModuleDeclaration([o.default.factory.createToken(o.default.SyntaxKind.ExportKeyword)],o.default.factory.createIdentifier(s.accessor.at(-1)),o.default.factory.createModuleBlock([...c,...c.length?[l.FilePrinter.newLine()]:[],r(i)(a)(s),l.FilePrinter.newLine(),n(i)(a)(s),...e.simulate?[p.MigrateApiSimulatationProgrammer.random(i)(a)(s),p.MigrateApiSimulatationProgrammer.simulate(i)(a)(s)]:[]]),o.default.NodeFlags.Namespace)},e.writePathCallExpression=e=>o.default.factory.createCallExpression(o.default.factory.createIdentifier(`${e.accessor.at(-1)}.path`),void 0,[...e.parameters.map(e=>o.default.factory.createIdentifier(e.key)),...e.query?[o.default.factory.createIdentifier(e.query.key)]:[]]);let t=e=>t=>r=>{let n=[],i=(e,t)=>n.push(o.default.factory.createTypeAliasDeclaration([o.default.factory.createModifier(o.default.SyntaxKind.ExportKeyword)],e,void 0,t));return r.headers&&i("Headers",f.MigrateSchemaProgrammer.write(e)(t)(r.headers.schema)),r.query&&i("Query",f.MigrateSchemaProgrammer.write(e)(t)(r.query.schema)),r.body&&i("Input",f.MigrateSchemaProgrammer.write(e)(t)(r.body.schema)),r.success&&i("Output",f.MigrateSchemaProgrammer.write(e)(t)(r.success.schema)),n},r=e=>t=>r=>{var n,i,a,s;return d("METADATA")(o.default.factory.createAsExpression(o.default.factory.createObjectLiteralExpression([o.default.factory.createPropertyAssignment("method",o.default.factory.createStringLiteral(r.method.toUpperCase())),o.default.factory.createPropertyAssignment("path",o.default.factory.createStringLiteral(h(r))),o.default.factory.createPropertyAssignment("request",r.body?c.LiteralFactory.generate({type:r.body.type,encrypted:!!r.body["x-nestia-encrypted"]}):o.default.factory.createNull()),o.default.factory.createPropertyAssignment("response","HEAD"!==r.method.toUpperCase()?c.LiteralFactory.generate({type:null!==(i=null===(n=r.success)||void 0===n?void 0:n.type)&&void 0!==i?i:"application/json",encrypted:!!(null===(a=r.success)||void 0===a?void 0:a["x-nestia-encrypted"])}):o.default.factory.createNull()),...(null===(s=r.success)||void 0===s?void 0:s.type)==="application/x-www-form-urlencoded"?[o.default.factory.createPropertyAssignment("parseQuery",o.default.factory.createCallExpression(o.default.factory.createIdentifier(`${t.external({type:"default",library:"typia",name:"typia"})}.http.createAssertQuery`),[f.MigrateSchemaProgrammer.write(e)(t)(r.success.schema)],void 0))]:[]],!0),o.default.factory.createTypeReferenceNode(o.default.factory.createIdentifier("const"))))},n=e=>t=>r=>{let n=n=>d("path")(o.default.factory.createArrowFunction([],[],[...r.parameters.map(r=>s.IdentifierFactory.parameter(r.key,f.MigrateSchemaProgrammer.write(e)(t)(r.schema))),...r.query?[s.IdentifierFactory.parameter(r.query.key,o.default.factory.createTypeReferenceNode(`${r.accessor.at(-1)}.Query`))]:[]],void 0,void 0,n)),i=()=>{let e=h(r),t=e.split(":");return 1===t.length?o.default.factory.createStringLiteral(e):o.default.factory.createTemplateExpression(o.default.factory.createTemplateHead(t[0]),t.slice(1).map((e,t,n)=>{let i=e.split("/")[0];return o.default.factory.createTemplateSpan(o.default.factory.createCallExpression(o.default.factory.createIdentifier("encodeURIComponent"),void 0,[o.default.factory.createBinaryExpression(o.default.factory.createIdentifier(r.parameters.find(e=>e.name===i).key),o.default.factory.createToken(o.default.SyntaxKind.QuestionQuestionToken),o.default.factory.createStringLiteral("null"))]),(t!==n.length-1?o.default.factory.createTemplateMiddle:o.default.factory.createTemplateTail)(e.substring(i.length)))}))};if(!r.query)return n(i());let c=e=>void 0!==r.parameters.find(t=>t.key===e)?c("_"+e):e,l=c("variables");return n(o.default.factory.createBlock([y(l)("URLSearchParams")(o.default.factory.createNewExpression(o.default.factory.createIdentifier("URLSearchParams"),[],[])),o.default.factory.createForOfStatement(void 0,o.default.factory.createVariableDeclarationList([o.default.factory.createVariableDeclaration(o.default.factory.createArrayBindingPattern([o.default.factory.createBindingElement(void 0,void 0,o.default.factory.createIdentifier("key"),void 0),o.default.factory.createBindingElement(void 0,void 0,o.default.factory.createIdentifier("value"),void 0)]),void 0,void 0,void 0)],o.default.NodeFlags.Const),o.default.factory.createCallExpression(o.default.factory.createIdentifier("Object.entries"),void 0,[o.default.factory.createAsExpression(o.default.factory.createIdentifier(r.query.key),u.TypeFactory.keyword("any"))]),o.default.factory.createIfStatement(o.default.factory.createStrictEquality(o.default.factory.createIdentifier("undefined"),o.default.factory.createIdentifier("value")),o.default.factory.createContinueStatement(),o.default.factory.createIfStatement(o.default.factory.createCallExpression(o.default.factory.createIdentifier("Array.isArray"),void 0,[o.default.factory.createIdentifier("value")]),o.default.factory.createExpressionStatement(o.default.factory.createCallExpression(o.default.factory.createPropertyAccessExpression(o.default.factory.createIdentifier("value"),o.default.factory.createIdentifier("forEach")),void 0,[o.default.factory.createArrowFunction(void 0,void 0,[s.IdentifierFactory.parameter("elem")],void 0,void 0,o.default.factory.createCallExpression(s.IdentifierFactory.access(o.default.factory.createIdentifier(l))("append"),void 0,[o.default.factory.createIdentifier("key"),o.default.factory.createCallExpression(o.default.factory.createIdentifier("String"),void 0,[o.default.factory.createIdentifier("elem")])]))])),o.default.factory.createExpressionStatement(o.default.factory.createCallExpression(s.IdentifierFactory.access(o.default.factory.createIdentifier(l))("set"),void 0,[o.default.factory.createIdentifier("key"),o.default.factory.createCallExpression(o.default.factory.createIdentifier("String"),void 0,[o.default.factory.createIdentifier("value")])]))))),y("location")("string")(i()),o.default.factory.createReturnStatement(o.default.factory.createConditionalExpression(o.default.factory.createStrictEquality(a.ExpressionFactory.number(0),s.IdentifierFactory.access(o.default.factory.createIdentifier(l))("size")),void 0,o.default.factory.createIdentifier("location"),void 0,o.default.factory.createTemplateExpression(o.default.factory.createTemplateHead(""),[o.default.factory.createTemplateSpan(o.default.factory.createIdentifier("location"),o.default.factory.createTemplateMiddle("?")),o.default.factory.createTemplateSpan(o.default.factory.createCallExpression(s.IdentifierFactory.access(o.default.factory.createIdentifier(l))("toString"),void 0,void 0),o.default.factory.createTemplateTail(""))])))],!0))}}(n||(t.MigrateApiNamespaceProgrammer=n={}));let d=e=>t=>o.default.factory.createVariableStatement([o.default.factory.createModifier(o.default.SyntaxKind.ExportKeyword)],o.default.factory.createVariableDeclarationList([o.default.factory.createVariableDeclaration(e,void 0,void 0,t)],o.default.NodeFlags.Const)),h=e=>"/"+e.emendedPath,y=e=>t=>r=>o.default.factory.createVariableStatement([],o.default.factory.createVariableDeclarationList([o.default.factory.createVariableDeclaration(e,void 0,o.default.factory.createTypeReferenceNode(t),r)],o.default.NodeFlags.Const))},1213:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiProgrammer=void 0;let o=r(85113),a=i(r(55423)),s=r(7621),c=r(68787),u=r(59218),l=r(86879);!function(e){e.write=e=>{let r=new o.HashMap(e=>(0,o.hash)(e.join(".")),(e,t)=>e.length===t.length&&e.join(".")===t.join("."));for(let t of e.routes){let e=t.accessor.slice(0,-1),n=r.take(e,()=>({namespace:e,routes:[],children:new Set}));n.routes.push(t),e.forEach((t,i,o)=>{let a=e.slice(0,o.length-i-1),s=r.take(a,()=>({namespace:a,children:new Set,routes:[]}));s.children.add(n.namespace.at(-1)),n=s})}let n=[...r].map(({second:t})=>({location:`src/${"nest"===e.mode?"api/":""}functional/${t.namespace.join("/")}`,file:"index.ts",content:s.FilePrinter.write({statements:c.MigrateApiFileProgrammer.write(e)(e.document.components)(t)})}));return"sdk"===e.mode&&n.push(...[...u.MigrateDtoProgrammer.compose(e.document.components).entries()].map(([e,r])=>({location:"src/structures",file:`${e}.ts`,content:s.FilePrinter.write({statements:t(e,r)})}))),n};let t=(e,t)=>{let n=new l.MigrateImportProgrammer,i=r(n)(t);return 0===i.length?[]:[...n.toStatements(e=>`./${e}`,e),...n.empty()?[]:[s.FilePrinter.newLine()],...i]},r=e=>t=>{let n=[];if(null!==t.programmer&&n.push(t.programmer(e)),t.children.size){let i=[];for(let n of t.children.values())i.push(...r(e)(n));n.push(a.default.factory.createModuleDeclaration([a.default.factory.createModifier(a.default.SyntaxKind.ExportKeyword)],a.default.factory.createIdentifier(t.name),a.default.factory.createModuleBlock(i),a.default.NodeFlags.Namespace))}return n}}(n||(t.MigrateApiProgrammer=n={}))},19194:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiSimulatationProgrammer=void 0;let o=i(r(55423)),a=r(61387),s=r(6152),c=r(12301),u=r(37219),l=r(54093),p=r(49271);!function(e){e.random=e=>t=>r=>{let n=r.success?p.MigrateSchemaProgrammer.write(e)(t)(r.success.schema):c.TypeFactory.keyword("void");return f("random")(o.default.factory.createArrowFunction(void 0,void 0,[o.default.factory.createParameterDeclaration(void 0,void 0,"g",o.default.factory.createToken(o.default.SyntaxKind.QuestionToken),o.default.factory.createTypeReferenceNode(o.default.factory.createIdentifier("Partial"),[o.default.factory.createTypeReferenceNode(`${t.external({type:"default",library:"typia",name:"typia"})}.IRandomGenerator`)]))],n,void 0,o.default.factory.createCallExpression(a.IdentifierFactory.access(o.default.factory.createIdentifier(t.external({type:"default",library:"typia",name:"typia"})))("random"),[n],[o.default.factory.createIdentifier("g")])))},e.simulate=e=>r=>n=>f("simulate")(o.default.factory.createArrowFunction(void 0,void 0,u.MigrateApiFunctionProgrammer.writeParameterDeclarations(e)(r)(n),o.default.factory.createTypeReferenceNode(n.success?"Output":"void"),void 0,o.default.factory.createBlock([...t(e)(r)(n),o.default.factory.createReturnStatement(o.default.factory.createCallExpression(o.default.factory.createIdentifier("random"),void 0,[o.default.factory.createConditionalExpression(o.default.factory.createLogicalAnd(o.default.factory.createStrictEquality(o.default.factory.createStringLiteral("object"),o.default.factory.createTypeOfExpression(o.default.factory.createIdentifier("connection.simulate"))),o.default.factory.createStrictInequality(o.default.factory.createNull(),o.default.factory.createIdentifier("connection.simulate"))),void 0,o.default.factory.createIdentifier("connection.simulate"),void 0,o.default.factory.createIdentifier("undefined"))]))],!0)));let t=e=>t=>n=>{var i,c;let u=[...n.parameters.map(r=>({category:"param",name:r.key,schema:p.MigrateSchemaProgrammer.write(e)(t)(r.schema)})),...n.query?[{category:"query",name:n.query.key,schema:p.MigrateSchemaProgrammer.write(e)(t)(n.query.schema)}]:[],...n.body?[{category:"body",name:n.body.key,schema:p.MigrateSchemaProgrammer.write(e)(t)(n.body.schema)}]:[]];if(0===u.length)return[];let f=s.StatementFactory.constant("assert",o.default.factory.createCallExpression(a.IdentifierFactory.access(o.default.factory.createIdentifier(t.external({type:"instance",library:"@nestia/fetcher/lib/NestiaSimulator",name:"NestiaSimulator"})))("assert"),void 0,[o.default.factory.createObjectLiteralExpression([o.default.factory.createPropertyAssignment("method",o.default.factory.createIdentifier("METADATA.method")),o.default.factory.createPropertyAssignment("host",o.default.factory.createIdentifier("connection.host")),o.default.factory.createPropertyAssignment("path",l.MigrateApiNamespaceProgrammer.writePathCallExpression(n)),o.default.factory.createPropertyAssignment("contentType",o.default.factory.createStringLiteral(null!==(c=null===(i=n.success)||void 0===i?void 0:i.type)&&void 0!==c?c:"application/json"))],!0)])),d=u.map(e=>o.default.factory.createCallExpression((()=>{let t=a.IdentifierFactory.access(o.default.factory.createIdentifier("assert"))(e.category);return"param"!==e.category?t:o.default.factory.createCallExpression(t,void 0,[o.default.factory.createStringLiteral(e.name)])})(),void 0,[o.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,o.default.factory.createCallExpression(a.IdentifierFactory.access(o.default.factory.createIdentifier(t.external({type:"default",library:"typia",name:"typia"})))("assert"),void 0,[o.default.factory.createIdentifier("headers"===e.category?"connection.headers":e.name)]))])).map(o.default.factory.createExpressionStatement);return[f,r(t)(d)]},r=e=>t=>o.default.factory.createTryStatement(o.default.factory.createBlock(t,!0),o.default.factory.createCatchClause("exp",o.default.factory.createBlock([o.default.factory.createIfStatement(o.default.factory.createLogicalNot(o.default.factory.createCallExpression(a.IdentifierFactory.access(o.default.factory.createIdentifier(e.external({type:"default",library:"typia",name:"typia"})))("is"),[o.default.factory.createTypeReferenceNode(e.external({type:"instance",library:"@nestia/fetcher",name:"HttpError"}))],[o.default.factory.createIdentifier("exp")])),o.default.factory.createThrowStatement(o.default.factory.createIdentifier("exp"))),o.default.factory.createReturnStatement(o.default.factory.createAsExpression(o.default.factory.createObjectLiteralExpression([o.default.factory.createPropertyAssignment("success",o.default.factory.createFalse()),o.default.factory.createPropertyAssignment("status",o.default.factory.createIdentifier("exp.status")),o.default.factory.createPropertyAssignment("headers",o.default.factory.createIdentifier("exp.headers")),o.default.factory.createPropertyAssignment("data",o.default.factory.createIdentifier("exp.toJSON().message"))],!0),c.TypeFactory.keyword("any")))],!0)),void 0)}(n||(t.MigrateApiSimulatationProgrammer=n={}));let f=e=>t=>o.default.factory.createVariableStatement([o.default.factory.createModifier(o.default.SyntaxKind.ExportKeyword)],o.default.factory.createVariableDeclarationList([o.default.factory.createVariableDeclaration(o.default.factory.createIdentifier(e),void 0,void 0,t)],o.default.NodeFlags.Const))},60643:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateApiStartProgrammer=void 0;let o=i(r(55423)),a=r(61387),s=r(6152),c=r(7621),u=r(49813),l=r(86879);!function(e){e.write=e=>{let r=new l.MigrateImportProgrammer,i=t(e)(e.document)(r)(p(e.routes)),a=[...r.toStatements(e=>`@ORGANIZATION/PROJECT-api/lib/structures/${e}`),c.FilePrinter.newLine(),o.default.factory.createImportDeclaration(void 0,o.default.factory.createImportClause(!1,void 0,o.default.factory.createNamedImports([o.default.factory.createImportSpecifier(!1,void 0,o.default.factory.createIdentifier("TestGlobal"))])),o.default.factory.createStringLiteral("./TestGlobal"),void 0),c.FilePrinter.newLine(),i,o.default.factory.createExpressionStatement(n())];return{location:"test",file:"start.ts",content:c.FilePrinter.write({statements:a})}};let t=e=>t=>n=>i=>s.StatementFactory.constant("main",o.default.factory.createArrowFunction([o.default.factory.createToken(o.default.SyntaxKind.AsyncKeyword)],void 0,[],void 0,void 0,o.default.factory.createBlock([r(e)(t)(n),...u.MigrateE2eFunctionProgrammer.writeBody(t.components)(n)(i)],!0))),r=e=>t=>r=>{var n,i,a;return o.default.factory.createVariableStatement(void 0,o.default.factory.createVariableDeclarationList([o.default.factory.createVariableDeclaration("connection",void 0,o.default.factory.createTypeReferenceNode(o.default.factory.createQualifiedName(o.default.factory.createIdentifier(r.external({type:"default",library:"@ORGANIZATION/PROJECT-api",name:"api"})),o.default.factory.createIdentifier("IConnection"))),o.default.factory.createObjectLiteralExpression([o.default.factory.createSpreadAssignment(o.default.factory.createCallExpression(o.default.factory.createPropertyAccessExpression(o.default.factory.createIdentifier("TestGlobal"),"connection"),void 0,void 0)),...(null===(a=null===(i=null===(n=t.servers)||void 0===n?void 0:n[0])||void 0===i?void 0:i.url)||void 0===a?void 0:a.length)?[o.default.factory.createPropertyAssignment("host",o.default.factory.createStringLiteral(t.servers[0].url))]:[],...!0===e.simulate?[o.default.factory.createPropertyAssignment("simulate",o.default.factory.createTrue())]:[]],!0))],o.default.NodeFlags.Const))},n=()=>o.default.factory.createCallExpression(o.default.factory.createPropertyAccessExpression(o.default.factory.createCallExpression(o.default.factory.createIdentifier("main"),void 0,void 0),"catch"),void 0,[o.default.factory.createArrowFunction(void 0,void 0,[a.IdentifierFactory.parameter("exp")],void 0,void 0,o.default.factory.createBlock([o.default.factory.createExpressionStatement(o.default.factory.createCallExpression(o.default.factory.createPropertyAccessExpression(o.default.factory.createIdentifier("console"),"log"),void 0,[o.default.factory.createIdentifier("exp")])),o.default.factory.createExpressionStatement(o.default.factory.createCallExpression(o.default.factory.createPropertyAccessExpression(o.default.factory.createIdentifier("process"),"exit"),void 0,[o.default.factory.createPrefixMinus(o.default.factory.createNumericLiteral("1"))]))],!0))])}(n||(t.MigrateApiStartProgrammer=n={}));let p=e=>{let t=Math.random()*e.length,r=Math.min(e.length-1,Math.floor(t));return e[r]}},59218:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateDtoProgrammer=void 0;let o=i(r(55423)),a=r(7621),s=r(95669),c=r(18640),u=r(49271);!function(e){e.compose=e=>{var n;let i=new Map;for(let[o,a]of Object.entries(null!==(n=e.schemas)&&void 0!==n?n:{})){let n=o.split("/").filter(e=>0!==e.length).map(c.StringUtil.escapeNonVariable).join("");t(i)(n)(t=>r(e)(t)(n,a))}return i};let t=e=>t=>r=>{let n=t.split("."),i={value:null};return n.forEach((t,o)=>{i.value=s.MapUtil.take(e)(t)(()=>({name:t,children:new Map,programmer:null})),o===n.length-1&&(i.value.programmer=r),e=i.value.children}),i},r=e=>t=>(r,n)=>a.FilePrinter.description(o.default.factory.createTypeAliasDeclaration([o.default.factory.createToken(o.default.SyntaxKind.ExportKeyword)],r.split(".").at(-1),[],u.MigrateSchemaProgrammer.write(e)(t)(n)),l(n))}(n||(t.MigrateDtoProgrammer=n={}));let l=e=>{var t,r;return[...(null===(t=e.description)||void 0===t?void 0:t.length)?[e.description]:[],...(null===(r=e.description)||void 0===r?void 0:r.length)&&(void 0!==e.title||!0===e.deprecated)?[""]:[],...void 0!==e.title?[`@title ${e.title}`]:[],...!0===e.deprecated?["@deprecated"]:[]].join("\n").split("*/").join("*\\/")}},49813:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateE2eFunctionProgrammer=void 0;let o=i(r(55423)),a=r(61387),s=r(49271);!function(e){e.write=t=>r=>n=>o.default.factory.createFunctionDeclaration([o.default.factory.createModifier(o.default.SyntaxKind.ExportKeyword),o.default.factory.createModifier(o.default.SyntaxKind.AsyncKeyword)],void 0,["test","api",...n.accessor].join("_"),void 0,[a.IdentifierFactory.parameter("connection",o.default.factory.createTypeReferenceNode(o.default.factory.createQualifiedName(o.default.factory.createIdentifier(r.external({type:"default",library:"@ORGANIZATION/PROJECT-api",name:"api"})),o.default.factory.createIdentifier("IConnection"))))],void 0,o.default.factory.createBlock(e.writeBody(t)(r)(n),!0)),e.writeBody=e=>r=>n=>[o.default.factory.createVariableStatement([],o.default.factory.createVariableDeclarationList([o.default.factory.createVariableDeclaration("output",void 0,n.success?s.MigrateSchemaProgrammer.write(e)(r)(n.success.schema):void 0,o.default.factory.createAwaitExpression(t(e)(r)(n)))],o.default.NodeFlags.Const)),o.default.factory.createExpressionStatement(o.default.factory.createCallExpression(o.default.factory.createPropertyAccessExpression(o.default.factory.createIdentifier(r.external({type:"default",library:"typia",name:"typia"})),"assert"),void 0,[o.default.factory.createIdentifier("output")]))];let t=e=>t=>r=>o.default.factory.createCallExpression(o.default.factory.createPropertyAccessExpression(o.default.factory.createIdentifier("api.functional"),o.default.factory.createIdentifier(r.accessor.join("."))),void 0,[o.default.factory.createIdentifier("connection"),...[...r.parameters,r.query,r.body].filter(e=>!!e).map(r=>o.default.factory.createCallExpression(o.default.factory.createPropertyAccessExpression(o.default.factory.createIdentifier(t.external({type:"default",library:"typia",name:"typia"})),"random"),[s.MigrateSchemaProgrammer.write(e)(t)(r.schema)],void 0))])}(n||(t.MigrateE2eFunctionProgrammer=n={}))},65961:function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateE2eProgrammer=void 0;let i=r(7621),o=r(49813),a=r(86879);!function(e){e.write=e=>e.routes.map(t(e.document.components));let t=e=>t=>{let r=new a.MigrateImportProgrammer,n=o.MigrateE2eFunctionProgrammer.write(e)(r)(t),s=[...r.toStatements(e=>`@ORGANIZATION/PROJECT-api/lib/structures/${e}`),i.FilePrinter.newLine(),n];return{location:"test/features/api",file:`${["test","api",...t.accessor].join("_")}.ts`,content:i.FilePrinter.write({statements:s})}}}(n||(t.MigrateE2eProgrammer=n={}))},86879:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateImportProgrammer=void 0;let i=n(r(55423)),o=r(62430),a=r(7621),s=r(95669);class c{constructor(){this.external_=new Map,this.dtos_=new Set}empty(){return 0===this.external_.size&&0===this.dtos_.size}external(e){let t=s.MapUtil.take(this.external_)(e.library)(()=>({default:null,instances:new Set})),r=e.name.split(".")[0];return"default"===e.type?t.default=e.name:t.instances.add(r),r}dto(e,t){let r=e.split(".")[0];return this.dtos_.add(r),i.default.factory.createTypeReferenceNode((null==t?void 0:t.length)?i.default.factory.createQualifiedName(i.default.factory.createIdentifier(t),i.default.factory.createIdentifier(r)):e)}tag(e,t){let r=this.external({type:"instance",library:"typia",name:"tags"});return i.default.factory.createTypeReferenceNode(`${r}.${e}`,void 0===t?[]:[o.TypeLiteralFactory.generate(t)])}toStatements(e,t){return[...[...this.external_.entries()].map(([e,t])=>i.default.factory.createImportDeclaration(void 0,i.default.factory.createImportClause(!1,null!==t.default?i.default.factory.createIdentifier(t.default):void 0,t.instances.size?i.default.factory.createNamedImports([...t.instances].map(e=>i.default.factory.createImportSpecifier(!1,void 0,i.default.factory.createIdentifier(e)))):void 0),i.default.factory.createStringLiteral(e))),...this.external_.size&&this.dtos_.size?[a.FilePrinter.newLine()]:[],...[...this.dtos_].filter(t?e=>e!==t.split(".")[0]:()=>!0).map(t=>i.default.factory.createImportDeclaration(void 0,i.default.factory.createImportClause(!1,void 0,i.default.factory.createNamedImports([i.default.factory.createImportSpecifier(!1,void 0,i.default.factory.createIdentifier(t))])),i.default.factory.createStringLiteral(e(t))))]}}t.MigrateImportProgrammer=c},99967:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateNestControllerProgrammer=void 0;let o=i(r(55423)),a=r(7621),s=r(18640),c=r(86879),u=r(58266);(n||(t.MigrateNestControllerProgrammer=n={})).write=e=>t=>{let r=new c.MigrateImportProgrammer,n=o.default.factory.createClassDeclaration([o.default.factory.createDecorator(o.default.factory.createCallExpression(o.default.factory.createIdentifier(r.external({type:"instance",library:"@nestjs/common",name:"Controller"})),[],[o.default.factory.createStringLiteral(t.path)])),o.default.factory.createToken(o.default.SyntaxKind.ExportKeyword)],t.name,[],[],t.routes.map(u.MigrateNestMethodProgrammer.write(e)(r)));return[...r.toStatements(e=>`${"../".repeat(s.StringUtil.splitWithNormalization(t.location).length-1)}api/structures/${e}`),...r.empty()?[]:[a.FilePrinter.newLine()],n]}},58266:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateNestMethodProgrammer=void 0;let o=i(r(55423)),a=r(73906),s=r(61387),c=r(97846),u=r(12301),l=r(7621),p=r(18640),f=r(49271);!function(e){e.write=e=>i=>a=>{let c=a.success?f.MigrateSchemaProgrammer.write(e)(i)(a.success.schema):u.TypeFactory.keyword("void"),p=o.default.factory.createMethodDeclaration([...r(e)(i)(a),o.default.factory.createToken(o.default.SyntaxKind.PublicKeyword),o.default.factory.createToken(o.default.SyntaxKind.AsyncKeyword)],void 0,a.accessor.at(-1),void 0,void 0,n(e)(i)(a),o.default.factory.createTypeReferenceNode("Promise",[c]),o.default.factory.createBlock([...[...a.parameters.map(e=>e.key),...a.headers?["headers"]:[],...a.query?["query"]:[],...a.body?["body"]:[]].map(e=>o.default.factory.createExpressionStatement(o.default.factory.createIdentifier(e))),o.default.factory.createReturnStatement(o.default.factory.createCallExpression(s.IdentifierFactory.access(o.default.factory.createIdentifier(i.external({type:"default",library:"typia",name:"typia"})))("random"),[c],void 0))],!0));return l.FilePrinter.description(p,t(a))};let t=e=>[e.comment(),"@nestia Generated by Nestia - https://github.com/samchon/nestia"].join("\n"),r=e=>t=>r=>{var n,i,c,u,l,h;let y=e=>r=>o.default.factory.createIdentifier(t.external({type:"instance",library:e,name:r})),m=[];r.success&&m.push(...d("Response")(t)(r.success.media()));let _=e=>o.default.factory.createDecorator(o.default.factory.createCallExpression(s.IdentifierFactory.access(y("@nestia/core")(e))(p.StringUtil.capitalize(r.method)),[],[o.default.factory.createStringLiteral(r.path)]));for(let[s,d]of((null===(n=r.success)||void 0===n?void 0:n["x-nestia-encrypted"])?m.push(_("EncryptedRoute")):(null===(i=r.success)||void 0===i?void 0:i.type)==="text/plain"?m.push(o.default.factory.createDecorator(o.default.factory.createCallExpression(y("@nestjs/common")(p.StringUtil.capitalize(r.method)),[],[o.default.factory.createStringLiteral(r.path)]))):(null===(c=r.success)||void 0===c?void 0:c.type)==="application/x-www-form-urlencoded"?m.push(_("TypedQuery")):"head"===r.method?m.push(o.default.factory.createDecorator(o.default.factory.createCallExpression(y("@nestjs/common")("Head"),[],[o.default.factory.createStringLiteral(r.path)]))):(null===r.success||(null===(u=r.success)||void 0===u?void 0:u.type)==="application/json")&&m.push(_("TypedRoute")),Object.entries(null!==(l=r.exceptions)&&void 0!==l?l:{})))m.push(o.default.factory.createDecorator(o.default.factory.createCallExpression(y("@nestia/core")("TypedException"),[f.MigrateSchemaProgrammer.write(e)(t)(d.schema)],[isNaN(Number(s))?o.default.factory.createStringLiteral(s):a.ExpressionFactory.number(Number(s)),...(null===(h=d.response().description)||void 0===h?void 0:h.length)?[o.default.factory.createStringLiteral(d.response().description)]:[]])));return m},n=e=>t=>r=>[...r.parameters.map(r=>o.default.factory.createParameterDeclaration([...d("Parameter")(t)(r.parameter()),o.default.factory.createDecorator(o.default.factory.createCallExpression(o.default.factory.createIdentifier(t.external({type:"instance",library:"@nestia/core",name:"TypedParam"})),void 0,[o.default.factory.createStringLiteral(r.key)]))],void 0,r.key,void 0,f.MigrateSchemaProgrammer.write(e)(t)(r.schema))),...r.headers?[i({method:"TypedHeaders",variable:"headers"})(e)(t)({schema:r.headers.schema,example:r.headers.example(),examples:r.headers.examples()})]:[],...r.query?[i({method:"TypedQuery",variable:"query"})(e)(t)({schema:r.query.schema,example:r.query.example(),examples:r.query.examples()})]:[],...r.body?[i({method:r.body["x-nestia-encrypted"]?"EncryptedBody":"application/json"===r.body.type?"TypedBody":"application/x-www-form-urlencoded"===r.body.type?["TypedQuery","Body"]:"text/plain"===r.body.type?"PlainBody":"multipart/form-data"===r.body.type?["TypedFormData","Body"]:"TypedBody",variable:"body"})(e)(t)({schema:r.body.schema,example:r.body.media().example,examples:r.body.media().examples})]:[]],i=e=>t=>r=>n=>{let i=o.default.factory.createIdentifier(r.external({type:"instance",library:"@nestia/core",name:"string"==typeof e.method?e.method:e.method[0]}));return o.default.factory.createParameterDeclaration([...d("Parameter")(r)(n),o.default.factory.createDecorator(o.default.factory.createCallExpression("string"==typeof e.method?i:s.IdentifierFactory.access(i)(e.method[1]),void 0,void 0))],void 0,e.variable,void 0,f.MigrateSchemaProgrammer.write(t)(r)(n.schema))},d=e=>t=>r=>{var n;return[...void 0!==r.example?[o.default.factory.createDecorator(o.default.factory.createCallExpression(s.IdentifierFactory.access(o.default.factory.createIdentifier(t.external({type:"instance",library:"@nestia/core",name:"SwaggerExample"})))(e),[],[c.LiteralFactory.generate(r.example)]))]:[],...Object.entries(null!==(n=r.examples)&&void 0!==n?n:{}).map(([r,n])=>o.default.factory.createDecorator(o.default.factory.createCallExpression(s.IdentifierFactory.access(o.default.factory.createIdentifier(t.external({type:"instance",library:"@nestia/core",name:"SwaggerExample"})))(e),[],[o.default.factory.createStringLiteral(r),c.LiteralFactory.generate(n)])))]}}(n||(t.MigrateNestMethodProgrammer=n={}))},47523:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateNestModuleProgrammer=void 0;let o=i(r(55423)),a=r(7621);(n||(t.MigrateNestModuleProgrammer=n={})).write=e=>[s("@nestjs/common")("Module"),...e.length?[a.FilePrinter.newLine()]:[],...e.map(e=>s(`${e.location.replace("src/","./")}/${e.name}`)(e.name)),...e.length?[a.FilePrinter.newLine()]:[],o.default.factory.createClassDeclaration([o.default.factory.createDecorator(o.default.factory.createCallExpression(o.default.factory.createIdentifier("Module"),void 0,[o.default.factory.createObjectLiteralExpression([o.default.factory.createPropertyAssignment(o.default.factory.createIdentifier("controllers"),o.default.factory.createArrayLiteralExpression(e.map(e=>o.default.factory.createIdentifier(e.name)),!0))],!0)])),o.default.factory.createToken(o.default.SyntaxKind.ExportKeyword)],"MyModule",void 0,void 0,[])];let s=e=>t=>o.default.factory.createImportDeclaration(void 0,o.default.factory.createImportClause(!1,void 0,o.default.factory.createNamedImports([o.default.factory.createImportSpecifier(!1,void 0,o.default.factory.createIdentifier(t))])),o.default.factory.createStringLiteral(e))},3582:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateNestProgrammer=void 0;let o=i(r(55423)),a=r(96352),s=r(7621),c=r(59218),u=r(86879),l=r(99967),p=r(47523);!function(e){e.write=e=>{let r=a.MigrateControllerAnalyzer.analyze(e.routes);return[{location:"src",file:"MyModule.ts",statements:p.MigrateNestModuleProgrammer.write(r)},...r.map(t=>({location:t.location,file:`${t.name}.ts`,statements:l.MigrateNestControllerProgrammer.write(e.document.components)(t)})),...[...c.MigrateDtoProgrammer.compose(e.document.components).entries()].map(([e,r])=>({location:"src/api/structures",file:`${e}.ts`,statements:t(e,r)}))].map(e=>({location:e.location,file:e.file,content:s.FilePrinter.write({statements:e.statements})}))};let t=(e,t)=>{let n=new u.MigrateImportProgrammer,i=r(n)(t);return 0===i.length?[]:[...n.toStatements(e=>`./${e}`,e),...n.empty()?[]:[s.FilePrinter.newLine()],...i]},r=e=>t=>{let n=[];if(null!==t.programmer&&n.push(t.programmer(e)),t.children.size){let i=[];for(let n of t.children.values())i.push(...r(e)(n));n.push(o.default.factory.createModuleDeclaration([o.default.factory.createModifier(o.default.SyntaxKind.ExportKeyword)],o.default.factory.createIdentifier(t.name),o.default.factory.createModuleBlock(i),o.default.NodeFlags.Namespace))}return n}}(n||(t.MigrateNestProgrammer=n={}))},49271:function(e,t,r){"use strict";var n,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MigrateSchemaProgrammer=void 0;let o=i(r(55423));i(r(77947));let a=r(12301),s=r(97420),c=r(5724),u=r(7621),l=r(75348),p=r(18640);!function(e){e.write=e=>s=>c=>{let u=[];if(l.OpenApiTypeChecker.isUnknown(c))return a.TypeFactory.keyword("any");let p=(()=>{if(l.OpenApiTypeChecker.isConstant(c))return t(s)(c);if(l.OpenApiTypeChecker.isBoolean(c))return r(s)(c);if(l.OpenApiTypeChecker.isInteger(c))return n(s)(c);if(l.OpenApiTypeChecker.isNumber(c))return i(s)(c);if(l.OpenApiTypeChecker.isString(c))return m(s)(c);if(l.OpenApiTypeChecker.isArray(c))return _(e)(s)(c);if(l.OpenApiTypeChecker.isTuple(c))return v(e)(s)(c);else if(l.OpenApiTypeChecker.isObject(c))return g(e)(s)(c);else if(l.OpenApiTypeChecker.isReference(c))return x(s)(c);else if(l.OpenApiTypeChecker.isOneOf(c))return O(e)(s)(c.oneOf);else if(l.OpenApiTypeChecker.isNull(c))return f("null");else return a.TypeFactory.keyword("any")})();return(u.push(p),0===u.length)?a.TypeFactory.keyword("any"):1===u.length?u[0]:o.default.factory.createUnionTypeNode(u)};let t=e=>t=>{let r=[o.default.factory.createLiteralTypeNode("boolean"==typeof t.const?!0===t.const?o.default.factory.createTrue():o.default.factory.createFalse():"number"==typeof t.const?t.const<0?o.default.factory.createPrefixUnaryExpression(o.default.SyntaxKind.MinusToken,o.default.factory.createNumericLiteral(-t.const)):o.default.factory.createNumericLiteral(t.const):o.default.factory.createStringLiteral(t.const))];return h({importer:e,regular:["const","title","description","deprecated"],intersection:r})(t),1===r.length?r[0]:o.default.factory.createIntersectionTypeNode(r)},r=e=>t=>{let r=[a.TypeFactory.keyword("boolean")];return h({importer:e,regular:["default","title","description","deprecated","type"],intersection:r})(t),1===r.length?r[0]:o.default.factory.createIntersectionTypeNode(r)},n=e=>t=>y(()=>[a.TypeFactory.keyword("number"),e.tag("Type","int32")])(e)(t),i=e=>t=>y(()=>[a.TypeFactory.keyword("number")])(e)(t),y=e=>t=>r=>{let n=e();return void 0!==r.default&&n.push(t.tag("Default",r.default)),void 0!==r.minimum&&n.push(t.tag(r.exclusiveMinimum?"ExclusiveMinimum":"Minimum",r.minimum)),void 0!==r.maximum&&n.push(t.tag(r.exclusiveMaximum?"ExclusiveMaximum":"Maximum",r.maximum)),void 0!==r.multipleOf&&n.push(t.tag("MultipleOf",r.multipleOf)),h({importer:t,regular:["default","title","description","deprecated","type","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf"],intersection:n})(r),1===n.length?n[0]:o.default.factory.createIntersectionTypeNode(n)},m=e=>t=>{if("binary"===t.format)return o.default.factory.createTypeReferenceNode("File");let r=[a.TypeFactory.keyword("string")];return void 0!==t.default&&r.push(e.tag("Default",t.default)),void 0!==t.minLength&&r.push(e.tag("MinLength",t.minLength)),void 0!==t.maxLength&&r.push(e.tag("MaxLength",t.maxLength)),void 0!==t.pattern&&r.push(e.tag("Pattern",t.pattern)),void 0!==t.format&&void 0!==s.FormatCheatSheet[t.format]&&r.push(e.tag("Format",t.format)),void 0!==t.contentMediaType&&r.push(e.tag("ContentMediaType",t.contentMediaType)),h({importer:e,regular:["default","title","description","deprecated","type","format","pattern","contentMediaType","minLength","maxLength"],intersection:r})(t),1===r.length?r[0]:o.default.factory.createIntersectionTypeNode(r)},_=t=>r=>n=>{let i=[o.default.factory.createArrayTypeNode(e.write(t)(r)(n.items))];return void 0!==n.minItems&&i.push(r.tag("MinItems",n.minItems)),void 0!==n.maxItems&&i.push(r.tag("MaxItems",n.maxItems)),!0===n.uniqueItems&&i.push(r.tag("UniqueItems")),h({importer:r,regular:["title","description","deprecated","type","items","uniqueItems","minItems","maxItems"],intersection:i})(n),1===i.length?i[0]:o.default.factory.createIntersectionTypeNode(i)},v=t=>r=>n=>{let i=[o.default.factory.createTupleTypeNode([...n.prefixItems.map(e.write(t)(r)),..."object"==typeof n.additionalItems&&null!==n.additionalItems?[o.default.factory.createRestTypeNode(e.write(t)(r)(n.additionalItems))]:!0===n.additionalItems?[o.default.factory.createRestTypeNode(o.default.factory.createArrayTypeNode(o.default.factory.createKeywordTypeNode(o.default.SyntaxKind.AnyKeyword)))]:[]])];return h({importer:r,regular:["title","description","deprecated","type","uniqueItems","minItems","maxItems","prefixItems","additionalItems"],intersection:i})(n),1===i.length?i[0]:o.default.factory.createIntersectionTypeNode(i)},g=e=>t=>r=>{var n;let i=()=>{var n;return o.default.factory.createTypeLiteralNode(Object.entries(null!==(n=r.properties)&&void 0!==n?n:[]).map(([n,i])=>{var o;return b(e)(t)(null!==(o=r.required)&&void 0!==o?o:[])(n,i)}))},a=()=>o.default.factory.createTypeLiteralNode([w(e)(t)(r.additionalProperties)]);return(null===(n=r.properties)||void 0===n?void 0:n.length)&&"object"==typeof r.additionalProperties?o.default.factory.createIntersectionTypeNode([i(),a()]):"object"==typeof r.additionalProperties?a():i()},b=t=>r=>n=>(i,a)=>u.FilePrinter.description(o.default.factory.createPropertySignature(void 0,c.Escaper.variable(i)?o.default.factory.createIdentifier(i):o.default.factory.createStringLiteral(i),n.includes(i)?void 0:o.default.factory.createToken(o.default.SyntaxKind.QuestionToken),e.write(t)(r)(a)),d(a)),w=t=>r=>n=>u.FilePrinter.description(o.default.factory.createIndexSignature(void 0,[o.default.factory.createParameterDeclaration(void 0,void 0,o.default.factory.createIdentifier("key"),void 0,a.TypeFactory.keyword("string"))],e.write(t)(r)(n)),d(n)),x=e=>t=>{if(!1===t.$ref.startsWith("#/components/schemas"))return a.TypeFactory.keyword("any");let r=t.$ref.split("/").slice(3).filter(e=>0!==e.length).map(p.StringUtil.escapeNonVariable).join("");return""===r?a.TypeFactory.keyword("any"):e.dto(r)},O=t=>r=>n=>o.default.factory.createUnionTypeNode(n.map(e.write(t)(r)))}(n||(t.MigrateSchemaProgrammer=n={}));let f=e=>o.default.factory.createTypeReferenceNode(e),d=e=>{var t,r;return[...(null===(t=e.description)||void 0===t?void 0:t.length)?[e.description]:[],...(null===(r=e.description)||void 0===r?void 0:r.length)&&(void 0!==e.title||!0===e.deprecated)?[""]:[],...void 0!==e.title?[`@title ${e.title}`]:[],...!0===e.deprecated?["@deprecated"]:[]].join("\n").split("*/").join("*\\/")},h=e=>t=>{let r={};for(let[n,i]of Object.entries(t))void 0!==i&&!1===e.regular.includes(n)&&(r[n]=i);0!==Object.keys(r).length&&e.intersection.push(e.importer.tag("JsonSchemaPlugin",r))}},89943:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},38788:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7621:function(e,t,r){"use strict";var n,i,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FilePrinter=void 0;let a=o(r(55423));(n=i||(t.FilePrinter=i={})).description=(e,t)=>(0===t.length||a.default.addSyntheticLeadingComment(e,a.default.SyntaxKind.MultiLineCommentTrivia,["*",...t.split("\n").map(e=>` * ${e}`),""].join("\n"),!0),e),n.newLine=()=>a.default.factory.createExpressionStatement(a.default.factory.createIdentifier("\n")),n.write=e=>{var t;let r=a.default.createPrinter().printFile(a.default.factory.createSourceFile(e.statements,a.default.factory.createToken(a.default.SyntaxKind.EndOfFileToken),a.default.NodeFlags.None));return(null!==(t=e.top)&&void 0!==t?t:"")+r}},95669:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.MapUtil=void 0,(r||(t.MapUtil=r={})).take=e=>t=>r=>{let n=e.get(t);if(n)return n;let i=r();return e.set(t,i),i}},75348:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.OpenApiTypeChecker=void 0,(n=r||(t.OpenApiTypeChecker=r={})).isOneOf=e=>void 0!==e.oneOf,n.isNull=e=>"null"===e.type,n.isConstant=e=>void 0!==e.const,n.isBoolean=e=>"boolean"===e.type,n.isInteger=e=>"integer"===e.type,n.isNumber=e=>"number"===e.type,n.isString=e=>"string"===e.type,n.isArray=e=>"array"===e.type&&void 0!==e.items,n.isTuple=e=>"array"===e.type&&void 0!==e.prefixItems,n.isObject=e=>"object"===e.type,n.isReference=e=>void 0!==e.$ref,n.isUnknown=e=>void 0===e.type&&!n.isOneOf(e)&&!n.isReference(e)&&!n.isConstant(e)},18640:function(e,t){"use strict";var r,n;Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtil=void 0,(n=r||(t.StringUtil=r={})).capitalize=e=>e[0].toUpperCase()+e.slice(1).toLowerCase(),n.splitWithNormalization=e=>e.split("/").map(e=>o(e.trim())).filter(e=>!!e.length),n.escapeDuplicate=e=>t=>e.includes(t)?n.escapeDuplicate(e)(`_${t}`):t,n.escapeNonVariable=e=>{for(let[t,r]of(e=i(e),s))e=e.split(t).join(r);for(let t=0;t<=9;++t)if(e[0]===t.toString()){e="_"+e;break}return""===e?"_empty_":e};let i=e=>(e=e.trim(),a.has(e))?`_${e}`:(0!==e.length&&"0"<=e[0]&&e[0]<="9"&&(e=`_${e}`),e),o=e=>i(e.split(".").join("_").split("-").join("_")),a=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","module","new","null","package","public","private","protected","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]),s=[["`","_backquote_"],["!","_exclamation_"],["@","_at_"],["#","_hash_"],["$","_dollar_"],["%","_percent_"],["^","_caret_"],["&","_and_"],["*","_star_"],["(","_lparen_"],[")","_rparen_"],["-","_"],["+","_plus_"],["|","_or_"],["{","_blt_"],["}","_bgt_"],["<","_lt_"],[">","_gt_"],["[","_alt_"],["]","_agt_"],[",","_comma_"],["'","_singlequote_"],['"',"_doublequote_"],[" ","_space_"],["?","_question_"],[":","_colon_"],[";","_semicolon_"],["...","_rest_"]]},79979:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return P}});let n=["angular-cli","create-react-app","html","javascript","node","polymer","typescript","vue"],i=["project","search","ports","settings"],o=["light","dark"],a=["editor","preview"],s={clickToLoad:e=>u("ctl",e),devToolsHeight:e=>l("devtoolsheight",e),forceEmbedLayout:e=>u("embed",e),hideDevTools:e=>u("hidedevtools",e),hideExplorer:e=>u("hideExplorer",e),hideNavigation:e=>u("hideNavigation",e),openFile:e=>f("file",e),showSidebar:e=>"boolean"==typeof e?`showSidebar=${e?"1":"0"}`:"",sidebarView:e=>p("sidebarView",e,i),startScript:e=>f("startScript",e),terminalHeight:e=>l("terminalHeight",e),theme:e=>p("theme",e,o),view:e=>p("view",e,a),zenMode:e=>u("zenMode",e),organization:e=>`${f("orgName",e?.name)}&${f("orgProvider",e?.provider)}`,crossOriginIsolated:e=>u("corp",e)};function c(e={}){let t=Object.entries(e).map(([e,t])=>null!=t&&s.hasOwnProperty(e)?s[e](t):"").filter(Boolean);return t.length?`?${t.join("&")}`:""}function u(e,t){return!0===t?`${e}=1`:""}function l(e,t){return"number"!=typeof t||Number.isNaN(t)?"":`${e}=${encodeURIComponent(Math.round(Math.min(100,Math.max(0,t))))}`}function p(e,t="",r=[]){return r.includes(t)?`${e}=${encodeURIComponent(t)}`:""}function f(e,t){return(Array.isArray(t)?t:[t]).filter(e=>"string"==typeof e&&""!==e.trim()).map(t=>`${e}=${encodeURIComponent(t)}`).join("&")}function d(){return Math.random().toString(36).slice(2,6)+Math.random().toString(36).slice(2,6)}function h(e,t){return`${m(t)}${e}${c(t)}`}function y(e,t){let r={forceEmbedLayout:!0};return t&&"object"==typeof t&&Object.assign(r,t),`${m(r)}${e}${c(r)}`}function m(e={}){return("string"==typeof e.origin?e.origin:"https://stackblitz.com").replace(/\/$/,"")}function _(e,t,r){if(!t||!e||!e.parentNode)throw Error("Invalid Element");e.id&&(t.id=e.id),e.className&&(t.className=e.className),function(e,t={}){let r=Object.hasOwnProperty.call(t,"height")?`${t.height}`:"300",n=Object.hasOwnProperty.call(t,"width")?`${t.width}`:void 0;e.setAttribute("height",r),n?e.setAttribute("width",n):e.setAttribute("style","width:100%;")}(t,r),function(e,t,r={}){let n=e.allow?.split(";")?.map(e=>e.trim())??[];r.crossOriginIsolated&&!n.includes("cross-origin-isolated")&&n.push("cross-origin-isolated"),n.length>0&&(t.allow=n.join("; "))}(e,t,r),e.replaceWith(t)}function v(e){if("string"==typeof e){let t=document.getElementById(e);if(!t)throw Error(`Could not find element with id '${e}'`);return t}if(e instanceof HTMLElement)return e;throw Error(`Invalid element: ${e}`)}function g(e){return e&&!1===e.newWindow?"_self":"_blank"}class b{constructor(e){this.pending={},this.port=e,this.port.onmessage=this.messageListener.bind(this)}request({type:e,payload:t}){return new Promise((r,n)=>{let i=d();this.pending[i]={resolve:r,reject:n},this.port.postMessage({type:e,payload:{...t,__reqid:i}})})}messageListener(e){if("string"!=typeof e.data.payload?.__reqid)return;let{type:t,payload:r}=e.data,{__reqid:n,__success:i,__error:o}=r;this.pending[n]&&(i?this.pending[n].resolve(this.cleanResult(r)):this.pending[n].reject(o?`${t}: ${o}`:t),delete this.pending[n])}cleanResult(e){let t={...e};return delete t.__reqid,delete t.__success,delete t.__error,Object.keys(t).length?t:null}}class w{constructor(e,t){this.editor={openFile:e=>this._rdc.request({type:"SDK_OPEN_FILE",payload:{path:e}}),setCurrentFile:e=>this._rdc.request({type:"SDK_SET_CURRENT_FILE",payload:{path:e}}),setTheme:e=>this._rdc.request({type:"SDK_SET_UI_THEME",payload:{theme:e}}),setView:e=>this._rdc.request({type:"SDK_SET_UI_VIEW",payload:{view:e}}),showSidebar:(e=!0)=>this._rdc.request({type:"SDK_TOGGLE_SIDEBAR",payload:{visible:e}})},this.preview={origin:"",getUrl:()=>this._rdc.request({type:"SDK_GET_PREVIEW_URL",payload:{}}).then(e=>e?.url??null),setUrl:(e="/")=>{if("string"!=typeof e||!e.startsWith("/"))throw Error(`Invalid argument: expected a path starting with '/', got '${e}'`);return this._rdc.request({type:"SDK_SET_PREVIEW_URL",payload:{path:e}})}},this._rdc=new b(e),Object.defineProperty(this.preview,"origin",{value:"string"==typeof t.previewOrigin?t.previewOrigin:null,writable:!1})}applyFsDiff(e){let t;if(null!==e&&"object"==typeof e&&null!==(t=e.create)&&"object"==typeof t){if(!Array.isArray(e.destroy))throw Error("Invalid diff object: expected diff.destroy to be an array.")}else throw Error("Invalid diff object: expected diff.create to be an object.");return this._rdc.request({type:"SDK_APPLY_FS_DIFF",payload:e})}getDependencies(){return this._rdc.request({type:"SDK_GET_DEPS_SNAPSHOT",payload:{}})}getFsSnapshot(){return this._rdc.request({type:"SDK_GET_FS_SNAPSHOT",payload:{}})}}let x=[];class O{constructor(e){this.id=d(),this.element=e,this.pending=new Promise((e,t)=>{let r=({data:t,ports:r})=>{t?.action==="SDK_INIT_SUCCESS"&&t.id===this.id&&(this.vm=new w(r[0],t.payload),e(this.vm),i())},n=()=>{this.element.contentWindow?.postMessage({action:"SDK_INIT",id:this.id},"*")};function i(){window.clearInterval(a),window.removeEventListener("message",r)}window.addEventListener("message",r),n();let o=0,a=window.setInterval(()=>{if(this.vm){i();return}if(o>=20){i(),t("Timeout: Unable to establish a connection with the StackBlitz VM"),x.forEach((e,t)=>{e.id===this.id&&x.splice(t,1)});return}o++,n()},500)}),x.push(this)}}let S=e=>{let t=e instanceof Element?"element":"id";return x.find(r=>r[t]===e)??null};function I({template:e,title:t,description:r,dependencies:i,files:o,settings:a}){if(!n.includes(e)){let e=n.map(e=>`'${e}'`).join(", ");console.warn(`Unsupported project.template: must be one of ${e}`)}let s=[],c=(e,t,r="")=>{s.push(function(e,t){let r=document.createElement("input");return r.type="hidden",r.name=e,r.value=t,r}(e,"string"==typeof t?t:r))};c("project[title]",t),"string"==typeof r&&r.length>0&&c("project[description]",r),c("project[template]",e,"javascript"),i&&("node"===e?console.warn("Invalid project.dependencies: dependencies must be provided as a 'package.json' file when using the 'node' template."):c("project[dependencies]",JSON.stringify(i))),a&&c("project[settings]",JSON.stringify(a)),Object.entries(o).forEach(([e,t])=>{c(`project[files][${e.replace(/\[/g,"%5B").replace(/\]/g,"%5D")}]`,t)});let u=document.createElement("form");return u.method="POST",u.setAttribute("style","display:none!important;"),u.append(...s),u}function j(e){return e?.contentWindow?(S(e)??new O(e)).pending:Promise.reject("Provided element is not an iframe.")}let P={connect:j,embedGithubProject:function(e,t,r){let n=v(e),i=document.createElement("iframe");return i.src=y(`/github/${t}`,r),_(n,i,r),j(i)},embedProject:function(e,t,r){let n=v(e),i=function(e,t){let r=I(e);return r.action=y("/run",t),r.id="sb_run",` - - - - ${r.outerHTML} - - -`}(t,r),o=document.createElement("iframe");return _(n,o,r),o.contentDocument?.write(i),j(o)},embedProjectId:function(e,t,r){let n=v(e),i=document.createElement("iframe");return i.src=y(`/edit/${t}`,r),_(n,i,r),j(i)},openGithubProject:function(e,t){let r=h(`/github/${e}`,t),n=g(t);window.open(r,n)},openProject:function(e,t){!function(e,t){let r=I(e);r.action=h("/run",t),r.target=g(t),document.body.appendChild(r),r.submit(),document.body.removeChild(r)}(e,t)},openProjectId:function(e,t){let r=h(`/edit/${e}`,t),n=g(t);window.open(r,n)}}},69450:function(e){"use strict";class t{constructor(e,t){this.low=e,this.high=t,this.length=1+t-e}overlaps(e){return!(this.highe.high)}touches(e){return!(this.high+1e.high)}add(e){return new t(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.highe+t.length,0)}add(e,n){var i=e=>{for(var t=0;t{for(var t=0;t{for(var r=0;r{for(var r=t.low;r<=t.high;)e.push(r),r++;return e},[])}subranges(){return this.ranges.map(e=>({low:e.low,high:e.high,length:1+e.high-e.low}))}}e.exports=r},14419:function(e,t,r){let n=r(60697),i=r(69450),o=n.types;e.exports=class e{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else if("string"==typeof e)this.ignoreCase=t&&-1!==t.indexOf("i"),this.multiline=t&&-1!==t.indexOf("m");else throw Error("Expected a regexp or string");this.tokens=n(e)}_setDefaults(t){this.max=null!=t.max?t.max:null!=e.prototype.max?e.prototype.max:100,this.defaultRange=t.defaultRange?t.defaultRange:this.defaultRange.clone(),t.randInt&&(this.randInt=t.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var r,n,i,a,s;switch(e.type){case o.ROOT:case o.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&void 0===e.groupNumber&&(e.groupNumber=t.push(null)-1),r=e.options?this._randSelect(e.options):e.stack,n="",a=0,s=r.length;a{var t,r,s=0,c={type:i.ROOT,stack:[]},u=c,l=c.stack,p=[],f=t=>{n.error(e,`Nothing to repeat at column ${t-1}`)},d=n.strToChars(e);for(t=d.length;s({type:n.POSITION,value:"b"}),t.nonWordBoundary=()=>({type:n.POSITION,value:"B"}),t.begin=()=>({type:n.POSITION,value:"^"}),t.end=()=>({type:n.POSITION,value:"$"})},94992:function(e,t,r){let n=r(30504),i=()=>[{type:n.RANGE,from:48,to:57}],o=()=>[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(i()),a=()=>[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.RANGE,from:8192,to:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}],s=()=>[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}];t.words=()=>({type:n.SET,set:o(),not:!1}),t.notWords=()=>({type:n.SET,set:o(),not:!0}),t.ints=()=>({type:n.SET,set:i(),not:!1}),t.notInts=()=>({type:n.SET,set:i(),not:!0}),t.whitespace=()=>({type:n.SET,set:a(),not:!1}),t.notWhitespace=()=>({type:n.SET,set:a(),not:!0}),t.anyChar=()=>({type:n.SET,set:s(),not:!0})},30504:function(e){e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},86245:function(e,t,r){let n=r(30504),i=r(94992),o={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,function(e,t,r,n,i,a,s,c){if(r)return e;var u=String.fromCharCode(t?8:n?parseInt(n,16):i?parseInt(i,16):a?parseInt(a,8):s?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(s):o[c]);return/[[\]{}^$.|?*+()]/.test(u)&&(u="\\"+u),u})},t.tokenizeClass=(e,r)=>{for(var o,a,s=[],c=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(o=c.exec(e));)if(o[1])s.push(i.words());else if(o[2])s.push(i.ints());else if(o[3])s.push(i.whitespace());else if(o[4])s.push(i.notWords());else if(o[5])s.push(i.notInts());else if(o[6])s.push(i.notWhitespace());else if(o[7])s.push({type:n.RANGE,from:(o[8]||o[9]).charCodeAt(0),to:o[10].charCodeAt(0)});else{if(!(a=o[12]))return[s,c.lastIndex];s.push({type:n.CHAR,value:a.charCodeAt(0)})}t.error(r,"Unterminated character class")},t.error=(e,t)=>{throw SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},38577:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.binary_search=t.equal_range=t.upper_bound=t.lower_bound=void 0;var n=r(46544),i=r(42830),o=r(17393);function a(e,t,r,n){void 0===n&&(n=o.less);for(var a=(0,i.distance)(e,t);a>0;){var s=Math.floor(a/2),c=(0,i.advance)(e,s);n(c.value,r)?(e=c.next(),a-=s+1):a=s}return e}function s(e,t,r,n){void 0===n&&(n=o.less);for(var a=(0,i.distance)(e,t);a>0;){var s=Math.floor(a/2),c=(0,i.advance)(e,s);n(r,c.value)?a=s:(e=c.next(),a-=s+1)}return e}t.lower_bound=a,t.upper_bound=s,t.equal_range=function(e,t,r,i){void 0===i&&(i=o.less);var c=s(e=a(e,t,r,i),t,r,i);return new n.Pair(e,c)},t.binary_search=function(e,t,r,n){return void 0===n&&(n=o.less),!(e=a(e,t,r,n)).equals(t)&&!n(r,e.value)}},88139:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sort_heap=t.is_heap_until=t.is_heap=t.pop_heap=t.push_heap=t.make_heap=void 0;var n=r(17393),i=r(42830);function o(e,t,r){void 0===r&&(r=n.less);var o=t.prev(),a=o.value;o.value=e.value,c(e,0,(0,i.distance)(e,t)-1,0,a,r)}function a(e,t,r){var o,a;void 0===r&&(r=n.less);for(var s=0,c=e.next();o=c,a=t.index(),o.base instanceof Function?a>1;r>t&&i(e.advance(o).value,n);o=r-1>>1)e.advance(r).value=e.advance(o).value,r=o;e.advance(r).value=n}function c(e,t,r,n,i,o){for(var a=2*n+2;a>1)+1;do{var s=e.advance(--a).value;c(e,a,o,a,s,r)}while(0!==a)}},t.push_heap=function(e,t,r){void 0===r&&(r=n.less);var o=t.prev().value;s(e,0,(0,i.distance)(e,t)-1,o,r)},t.pop_heap=o,t.is_heap=function(e,t,r){return void 0===r&&(r=n.less),a(e,t,r).equals(t)},t.is_heap_until=a,t.sort_heap=function(e,t,r){for(void 0===r&&(r=n.less);(0,i.distance)(e,t)>1;t=t.prev())o(e,t,r)}},38043:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(38577),t),i(r(88139),t),i(r(95114),t),i(r(16908),t),i(r(50431),t),i(r(47501),t),i(r(16559),t),i(r(51167),t),i(r(76362),t)},95114:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.count_if=t.count=t.mismatch=t.search_n=t.search=t.adjacent_find=t.find_first_of=t.find_end=t.find_if_not=t.find_if=t.find=t.lexicographical_compare=t.equal=t.none_of=t.any_of=t.all_of=t.for_each_n=t.for_each=void 0;var n=r(46544),i=r(17393),o=r(42830);function a(e,t,r){for(var n=e;!n.equals(t);n=n.next())if(!0===r(n.value))return!0;return!1}function s(e,t,r){for(var n=e;!n.equals(t);n=n.next())if(r(n.value))return n;return t}function c(e,t,r){for(var n=0,i=e;!i.equals(t);i=i.next())r(i.value)&&++n;return n}t.for_each=function(e,t,r){for(var n=e;!n.equals(t);n=n.next())r(n.value);return r},t.for_each_n=function(e,t,r){for(var n=0;n0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0;)e.value=r(),e=e.next();return e},t.is_unique=function(e,t,r){if(void 0===r&&(r=o.equal_to),e.equals(t))return!0;for(var n=e.next();!n.equals(t);n=n.next()){if(!0===r(e.value,n.value))return!1;e=e.next()}return!0},t.unique=function(e,t,r){if(void 0===r&&(r=o.equal_to),e.equals(t))return t;var n=e;for(e=e.next();!e.equals(t);e=e.next())r(n.value,e.value)||((n=n.next()).value=e.value);return n.next()},t.unique_copy=function(e,t,r,n){if(void 0===n&&(n=o.equal_to),e.equals(t))return r;for(r.value=e.value,e=e.next();!e.equals(t);e=e.next())n(e.value,r.value)||((r=r.next()).value=e.value);return r.next()},t.remove=function(e,t,r){return f(e,t,function(e){return(0,o.equal_to)(e,r)})},t.remove_if=f,t.remove_copy=function(e,t,r,n){return d(e,t,r,function(e){return(0,o.equal_to)(e,n)})},t.remove_copy_if=d,t.replace=function(e,t,r,n){return h(e,t,function(e){return(0,o.equal_to)(e,r)},n)},t.replace_if=h,t.replace_copy=function(e,t,r,n,i){return y(e,t,r,function(e){return(0,o.equal_to)(e,n)},i)},t.replace_copy_if=y,t.iter_swap=m,t.swap_ranges=function(e,t,r){for(;!e.equals(t);e=e.next())m(e,r),r=r.next();return r},t.reverse=function(e,t){for(;!1===e.equals(t)&&!1===e.equals(t=t.prev());)m(e,t),e=e.next()},t.reverse_copy=function(e,t,r){for(;!t.equals(e);)t=t.prev(),r.value=t.value,r=r.next();return r},t.shift_left=function(e,t,r){return c((0,s.advance)(e,r),t,e)},t.shift_right=function(e,t,r){return u(e,(0,s.advance)(t,-r),t)},t.rotate=function(e,t,r){for(;!e.equals(t)&&!t.equals(r);)m(e,t),e=e.next(),t=t.next();return e},t.rotate_copy=function(e,t,r,n){return n=c(t,r,n),c(e,t,n)},t.shuffle=function(e,t){for(var r=e;!r.equals(t);r=r.next()){var n=(0,a.randint)(e.index(),t.index()-1);r.index()!==n&&m(r,e.advance(n))}}},47501:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.partition_copy=t.stable_partition=t.partition=t.partition_point=t.is_partitioned=void 0;var n=r(46544),i=r(50431),o=r(42830);function a(e,t,r){for(;!e.equals(t)&&r(e.value);){for(;r(e.value);)if((e=e.next()).equals(t))return e;do if(t=t.prev(),e.equals(t))return e;while(!r(t.value));(0,i.iter_swap)(e,t),e=e.next()}return t}t.is_partitioned=function(e,t,r){for(;!e.equals(t)&&r(e.value);)e=e.next();for(;!e.equals(t);e=e.next())if(r(e.value))return!1;return!0},t.partition_point=function(e,t,r){for(var n=(0,o.distance)(e,t);n>0;){var i=Math.floor(n/2),a=(0,o.advance)(e,i);r(a.value)?(e=a.next(),n-=i+1):n=i}return e},t.partition=function(e,t,r){return a(e,t,r)},t.stable_partition=a,t.partition_copy=function(e,t,r,i,o){for(;!e.equals(t);e=e.next())o(e.value)?(r.value=e.value,r=r.next()):(i.value=e.value,i=i.next());return new n.Pair(r,i)}},16559:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.sample=t.randint=void 0;var i=r(81484),o=r(42830),a=r(51167);function s(e,t){return Math.floor(Math.random()*(t-e+1))+e}t.randint=s,t.sample=function(e,t,r,c){for(var u,l,p=(0,o.distance)(e,t),f=[],d=0;d=1;--d)h.set(d,h.at(d)-h.at(d-1));try{for(var m=n(h),_=m.next();!_.done;_=m.next()){var v=_.value;e=(0,o.advance)(e,v),r.value=e.value,r=r.next()}}catch(e){u={error:e}}finally{try{_&&!_.done&&(l=m.return)&&l.call(m)}finally{if(u)throw u.error}}return r}},51167:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.is_sorted_until=t.is_sorted=t.nth_element=t.partial_sort_copy=t.partial_sort=t.stable_sort=t.sort=void 0;var n=r(81484),i=r(17393),o=r(50431),a=r(42830);function s(e,t,r){void 0===r&&(r=i.less);var n=t.index()-e.index();if(!(n<=0)){var a=e.advance(Math.floor(n/2)),c=a.value;a.index()!==e.index()&&(0,o.iter_swap)(e,a);for(var u=1,l=1;lp?(0,o.copy)(f.begin(),f.begin().advance(p),r):(0,o.copy)(f.begin(),f.end(),r)},t.nth_element=function(e,t,r,n){void 0===n&&(n=i.less);for(var s=(0,a.distance)(e,t),c=e;!c.equals(r);c=c.next()){for(var u=0,l=e;!l.equals(r);l=l.next())if(c.equals(l))continue;else if(n(c.value,l.value)&&++u>s)break;if(u===s){(0,o.iter_swap)(t,c);return}}},t.is_sorted=function(e,t,r){return void 0===r&&(r=i.less),c(e,t,r).equals(t)},t.is_sorted_until=c},32080:function(e,t,r){"use strict";var n=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Container=void 0;var i=r(40869),o=function(){function e(){}return e.prototype.empty=function(){return 0===this.size()},e.prototype.rbegin=function(){return this.end().reverse()},e.prototype.rend=function(){return this.begin().reverse()},e.prototype[Symbol.iterator]=function(){return new i.ForOfAdaptor(this.begin(),this.end())},e.prototype.toJSON=function(){var e,t,r=[];try{for(var i=n(this),o=i.next();!o.done;o=i.next()){var a=o.value;r.push(a)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return r},e}();t.Container=o},44457:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},53039:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2807:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},49849:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34418:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},76392:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},33319:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},27161:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65311:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MapContainer=void 0;var o=r(32080),a=r(52168),s=function(e){function t(t){var r=e.call(this)||this;return r.data_=t(r),r}return i(t,e),t.prototype.assign=function(e,t){this.clear(),this.insert(e,t)},t.prototype.clear=function(){this.data_.clear()},t.prototype.begin=function(){return this.data_.begin()},t.prototype.end=function(){return this.data_.end()},t.prototype.has=function(e){return!this.find(e).equals(this.end())},t.prototype.size=function(){return this.data_.size()},t.prototype.push=function(){for(var e=[],t=0;t0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},c=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0?this.insert(this.end(),r,void 0):r<0&&this.erase(this.end().advance(-r),this.end())},t.prototype.reserve=function(e){this._Reserve(t._Emend(e,"reserve"))},t.prototype._Reserve=function(e){for(var r=[[]],n=this._Compute_col_size(e),i=0;i (n = ").concat(e,")"));return e},t.prototype.size=function(){return this.size_},t.prototype.capacity=function(){return this.capacity_},t.prototype.nth=function(e){return new t.Iterator(this,e)},t.prototype[Symbol.iterator]=function(){return new t.ForOfAdaptor(this.matrix_)},t.prototype.source=function(){return this},t.prototype._At=function(e){var t=this._Fetch_index(e);return this.matrix_[t.first][t.second]},t.prototype._Set=function(e,t){var r=this._Fetch_index(e);this.matrix_[r.first][r.second]=t},t.prototype._Fetch_index=function(e){var t;for(t=0;t1&&this.matrix_.shift(),this.size_--},t.prototype._Pop_back=function(){var e=this.matrix_[this.matrix_.length-1];e.pop(),0===e.length&&this.matrix_.length>1&&this.matrix_.pop(),this.size_--},t.prototype._Insert_by_range=function(e,r,n){var i=this.size_+(0,y.distance)(r,n);if(i===this.size_)return e;if(!0===e.equals(this.end()))this._Try_expand_capacity(i),this._Insert_to_end(r,n),e=this.nth(this.size_);else if(i>this.capacity_){var o=new t;o._Reserve(Math.max(i,Math.floor(this.capacity_*t.MAGNIFIER))),o._Insert_to_end(this.begin(),e),o._Insert_to_end(r,n),o._Insert_to_end(e,this.end()),this._Swap(o)}else this._Insert_to_middle(e,r,n);return this.size_=i,e},t.prototype._Insert_to_middle=function(e,r,n){for(var i,o,a=this._Compute_col_size(),u=this._Fetch_index(e.index()),l=this.matrix_[u.first],p=u.second,f=l.splice(p);!r.equals(n);r=r.next()){if(l.length===a&&this.matrix_.length=r&&this.matrix_.length=e&&this.matrix_.length=this.size())return e;r=t.index()>=this.size()?this.size()-e.index():t.index()-e.index(),this.size_-=r;for(var r,n=null,i=null,o=0;0!==r;){var a=this._Fetch_index(e.index()),u=this.matrix_[a.first],l=a.second,p=Math.min(r,u.length-l);u.splice(l,p),0!==u.length&&(0===o?n=u:i=u),0===u.length&&this.matrix_.length>1&&this.matrix_.splice(a.first,1),r-=p,++o}return null!==n&&null!==i&&n.length+i.length<=this._Compute_col_size()&&(n.push.apply(n,c([],s(i),!1)),this.matrix_.splice(this.matrix_.indexOf(i),1)),e},t}(u.ArrayContainer);t.Deque=_,(i=_||(t.Deque=_={})).Iterator=l.ArrayIterator,i.ReverseIterator=p.ArrayReverseIterator,i.ROW_SIZE=8,i.MIN_CAPACITY=36,i.MAGNIFIER=1.5,o=function(){function e(e){this.matrix_=e,this.row_=0,this.col_=0}return e.prototype.next=function(){if(this.row_===this.matrix_.length)return{done:!0,value:void 0};var e=this.matrix_[this.row_][this.col_];return++this.col_===this.matrix_[this.row_].length&&(++this.row_,this.col_=0),{done:!1,value:e}},e.prototype[Symbol.iterator]=function(){return this},e}(),i.ForOfAdaptor=o},37032:function(e,t,r){"use strict";var n,i,o=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ForwardList=void 0;var s=r(19151),c=r(40869),u=r(81484),l=r(48058),p=r(42830),f=r(17393),d=r(51167),h=function(){function e(){for(var t,r,n=[],i=0;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.HashMultiMap=void 0;var u=r(27205),l=r(53985),p=r(37194),f=r(85587),d=r(52168),h=r(92376),y=function(e){function t(){for(var r=[],n=0;nthis.buckets_.capacity()&&this.reserve(Math.max(this.size(),2*this.buckets_.capacity())),this._Handle_insert(i,this.end())},t.prototype._Handle_insert=function(e,t){for(;!e.equals(t);e=e.next())this.buckets_.insert(e)},t.prototype._Handle_erase=function(e,t){for(;!e.equals(t);e=e.next())this.buckets_.erase(e)},t}(u.MultiMap);t.HashMultiMap=y,(i=y||(t.HashMultiMap=y={})).Iterator=p.MapElementList.Iterator,i.ReverseIterator=p.MapElementList.ReverseIterator},66612:function(e,t,r){"use strict";var n,i,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.HashMultiSet=void 0;var u=r(19852),l=r(53985),p=r(22409),f=r(67392),d=function(e){function t(){for(var r=[],n=0;nthis.buckets_.capacity()&&this.reserve(Math.max(this.size(),2*this.buckets_.capacity())),this._Handle_insert(r,this.end())},t.prototype._Handle_insert=function(e,t){for(;!e.equals(t);e=e.next())this.buckets_.insert(e)},t.prototype._Handle_erase=function(e,t){for(;!e.equals(t);e=e.next())this.buckets_.erase(e)},t}(u.MultiSet);t.HashMultiSet=d,(i=d||(t.HashMultiSet=d={})).Iterator=p.SetElementList.Iterator,i.ReverseIterator=p.SetElementList.ReverseIterator},38038:function(e,t,r){"use strict";var n,i,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},u=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.PriorityQueue=void 0;var s=r(39281),c=r(81484),u=r(88139),l=r(17393),p=function(e){function t(){for(var r=[],n=0;n=2&&r[0].next instanceof Function&&r[1].next instanceof Function?(3===r.length&&(o=r[2]),a=function(){var e=r[0],t=r[1];i.source_.assign(e,t)}):1===r.length&&(o=r[0]);return i.comp_=o,null!==a&&a(),i}return i(t,e),t.prototype.value_comp=function(){return this.comp_},t.prototype.top=function(){return this.source_.front()},t.prototype.push=function(){for(var e,t,r=[],n=0;n0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.VectorBoolean=void 0;var u=r(85474),l=r(59850),p=r(46849),f=r(77506),d=r(52168),h=r(46544),y=r(17393),m=function(e){function t(){for(var r=[],n=0;n0?this.insert(this.end(),t,!1):t<0&&this.erase(this.end().advance(-t),this.end())},t.prototype.flip=function(){var e,t;try{for(var r=c(this.data_),n=r.next();!n.done;n=r.next()){var i=n.value;i.second=!i.second}}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}},t.prototype.swap=function(e){var t,r;t=a([e.data_,this.data_],2),this.data_=t[0],e.data_=t[1],r=a([e.size_,this.size_],2),this.size_=r[0],e.size_=r[1]},t.prototype.source=function(){return this},t.prototype.size=function(){return this.size_},t.prototype._At=function(e){return this._Find_node(e).second},t.prototype._Set=function(e,t){t=!!t;var r=this._Find_node(e);if(r.second!==t&&(r.first===e?r.second=t:r=this.data_.emplace(e,t).first,e!==this.size()-1)){var n=r.prev(),i=r.next();(0,y.not_equal_to)(n,this.data_.end())&&n.second===r.second&&this.data_.erase(r),!0===i.equals(this.data_.end())||i.first!==e+1||i.second!==t?this.data_.emplace(e+1,!t):this.data_.erase(i)}},t.prototype.nth=function(e){return new t.Iterator(this,e)},t.prototype._Find_node=function(e){return this.data_.upper_bound(e).prev()},t.prototype.push=function(){for(var e=[],t=0;t=2&&"number"==typeof t[0].valueOf()){var i=t[0],o=t[1];n.code_=new s.ErrorCode(i,o),n.message=t[2]}else n.code_=t[0],n.message=t[1];return n}return i(t,e),t.prototype.code=function(){return this.code_},t.prototype.toJSON=function(){return o(o({},e.prototype.toJSON.call(this)),{code:this.code_.toJSON()})},t}(a.RuntimeError);t.SystemError=c},68687:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.UnderflowError=void 0;var o=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t}(r(41718).RuntimeError);t.UnderflowError=o},12159:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(95561),t),i(r(45638),t),i(r(73464),t),i(r(1767),t),i(r(35813),t),i(r(68661),t),i(r(41718),t),i(r(90609),t),i(r(38833),t),i(r(68687),t),i(r(13535),t),i(r(30025),t),i(r(17337),t),i(r(50018),t)},41067:function(e,t,r){"use strict";var n,i,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.hash=void 0;var i=r(16544);function o(e,t){return a(e.toString(),t)}function a(e,t){for(var r=0;r0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=1&&o[0]instanceof Array?(t=function(){var t=o[0];e.push.apply(e,i([],n(t),!1))},r=o.slice(1)):o.length>=2&&o[0].next instanceof Function&&o[1].next instanceof Function?(t=function(){var t=o[0],r=o[1];e.assign(t,r)},r=o.slice(2)):(t=null,r=o),{ramda:t,tail:r}}},53985:function(e,t,r){"use strict";var n,i=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},o=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=1&&(p=h.tail[0]),h.tail.length>=2&&(f=h.tail[1])}r(p,f),null!==l&&l()}},48220:function(e,t,r){"use strict";var n,i,o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=1&&(l=f.tail[0])}r(l),null!==u&&u()},n.emplacable=function(e,t,r){var n=t.prev();return(n.equals(e.end())||e.value_comp()(n.value,r))&&(t.equals(e.end())||e.value_comp()(r,t.value))}},37194:function(e,t,r){"use strict";var n,i,o,a,s=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.MapElementList=void 0;var u=r(93258),l=r(69189),p=r(39664),f=function(e){function t(t){var r=e.call(this)||this;return r.associative_=t,r}return s(t,e),t.prototype._Create_iterator=function(e,r,n){return t.Iterator.create(this,e,r,n)},t._Swap_associative=function(e,t){var r;r=c([t.associative_,e.associative_],2),e.associative_=r[0],t.associative_=r[1]},t.prototype.associative=function(){return this.associative_},t}(u.ListContainer);t.MapElementList=f,i=f||(t.MapElementList=f={}),o=function(e){function t(t,r,n,i){var o=e.call(this,r,n,i)||this;return o.list_=t,o}return s(t,e),t.create=function(e,r,n,i){return new t(e,r,n,i)},t.prototype.reverse=function(){return new a(this)},t.prototype.source=function(){return this.list_.associative()},Object.defineProperty(t.prototype,"first",{get:function(){return this.value.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"second",{get:function(){return this.value.second},set:function(e){this.value.second=e},enumerable:!1,configurable:!0}),t}(l.ListIterator),i.Iterator=o,a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype._Create_neighbor=function(e){return new t(e)},Object.defineProperty(t.prototype,"first",{get:function(){return this.base_.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"second",{get:function(){return this.base_.second},set:function(e){this.base_.second=e},enumerable:!1,configurable:!0}),t}(p.ReverseIterator),i.ReverseIterator=a},6164:function(e,t,r){"use strict";var n,i,o,a,s=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.MapElementVector=void 0;var u=r(49519),l=r(56267),p=r(99738),f=function(e){function t(t){var r=e.call(this)||this;return r.data_=[],r.associative_=t,r}return s(t,e),t.prototype.nth=function(e){return new t.Iterator(this,e)},t._Swap_associative=function(e,t){var r;r=c([t.associative_,e.associative_],2),e.associative_=r[0],t.associative_=r[1]},t.prototype.source=function(){return this.associative_},t}(u.VectorContainer);t.MapElementVector=f,i=f||(t.MapElementVector=f={}),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.source=function(){return this._Get_array().source()},t.prototype.reverse=function(){return new a(this)},Object.defineProperty(t.prototype,"first",{get:function(){return this.value.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"second",{get:function(){return this.value.second},set:function(e){this.value.second=e},enumerable:!1,configurable:!0}),t}(l.ArrayIteratorBase),i.Iterator=o,a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype._Create_neighbor=function(e){return new t(e)},Object.defineProperty(t.prototype,"first",{get:function(){return this.value.first},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"second",{get:function(){return this.value.second},set:function(e){this.value.second=e},enumerable:!1,configurable:!0}),t}(p.ArrayReverseIteratorBase),i.ReverseIterator=a},67684:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MultiTreeMap=void 0;var o=r(27205),a=r(48220),s=r(92376),c=r(46544),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.find=function(e){var t=this.lower_bound(e);return!t.equals(this.end())&&this._Key_eq(e,t.first)?t:this.end()},t.prototype.count=function(e){for(var t=this.find(e),r=0;!t.equals(this.end())&&this._Key_eq(t.first,e);t=t.next())++r;return r},t.prototype.equal_range=function(e){return new c.Pair(this.lower_bound(e),this.upper_bound(e))},t.prototype.value_comp=function(){var e=this;return function(t,r){return e.key_comp()(t.first,r.first)}},t.prototype._Key_eq=function(e,t){return!this.key_comp()(e,t)&&!this.key_comp()(t,e)},t.prototype.emplace=function(e,t){var r=this.upper_bound(e);return r=this.data_.insert(r,new s.Entry(e,t)),this._Handle_insert(r,r.next()),r},t.prototype.emplace_hint=function(e,t,r){var n=new s.Entry(t,r);if(!a.ITreeContainer.emplacable(this,e,n))return this.emplace(t,r);var i=this.data_.insert(e,n);return this._Handle_insert(i,i.next()),i},t.prototype._Insert_by_range=function(e,t){for(var r=e;!r.equals(t);r=r.next())this.emplace(r.value.first,r.value.second)},t}(o.MultiMap);t.MultiTreeMap=u},41622:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MultiTreeSet=void 0;var o=r(19852),a=r(48220),s=r(46544),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.find=function(e){var t=this.lower_bound(e);return!t.equals(this.end())&&this._Key_eq(e,t.value)?t:this.end()},t.prototype.count=function(e){for(var t=this.find(e),r=0;!t.equals(this.end())&&this._Key_eq(t.value,e);t=t.next())++r;return r},t.prototype.equal_range=function(e){return new s.Pair(this.lower_bound(e),this.upper_bound(e))},t.prototype.value_comp=function(){return this.key_comp()},t.prototype._Key_eq=function(e,t){return!this.key_comp()(e,t)&&!this.key_comp()(t,e)},t.prototype._Insert_by_key=function(e){var t=this.upper_bound(e);return t=this.data_.insert(t,e),this._Handle_insert(t,t.next()),t},t.prototype._Insert_by_hint=function(e,t){if(!a.ITreeContainer.emplacable(this,e,t))return this._Insert_by_key(t);var r=this.data_.insert(e,t);return this._Handle_insert(r,r.next()),r},t.prototype._Insert_by_range=function(e,t){for(var r=e;!r.equals(t);r=r.next())this._Insert_by_key(r.value)},t}(o.MultiSet);t.MultiTreeSet=c},22409:function(e,t,r){"use strict";var n,i,o,a,s=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.SetElementList=void 0;var u=r(93258),l=r(69189),p=r(39664),f=function(e){function t(t){var r=e.call(this)||this;return r.associative_=t,r}return s(t,e),t.prototype._Create_iterator=function(e,r,n){return t.Iterator.create(this,e,r,n)},t._Swap_associative=function(e,t){var r;r=c([t.associative_,e.associative_],2),e.associative_=r[0],t.associative_=r[1]},t.prototype.associative=function(){return this.associative_},t}(u.ListContainer);t.SetElementList=f,i=f||(t.SetElementList=f={}),o=function(e){function t(t,r,n,i){var o=e.call(this,r,n,i)||this;return o.source_=t,o}return s(t,e),t.create=function(e,r,n,i){return new t(e,r,n,i)},t.prototype.reverse=function(){return new a(this)},t.prototype.source=function(){return this.source_.associative()},t}(l.ListIterator),i.Iterator=o,a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype._Create_neighbor=function(e){return new t(e)},t}(p.ReverseIterator),i.ReverseIterator=a},62128:function(e,t,r){"use strict";var n,i,o,a,s=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.SetElementVector=void 0;var u=r(49519),l=r(56267),p=r(99738),f=function(e){function t(t){var r=e.call(this)||this;return r.data_=[],r.associative_=t,r}return s(t,e),t.prototype.nth=function(e){return new t.Iterator(this,e)},t._Swap_associative=function(e,t){var r;r=c([t.associative_,e.associative_],2),e.associative_=r[0],t.associative_=r[1]},t.prototype.source=function(){return this.associative_},t}(u.VectorContainer);t.SetElementVector=f,i=f||(t.SetElementVector=f={}),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.source=function(){return this._Get_array().source()},t.prototype.reverse=function(){return new a(this)},t}(l.ArrayIteratorBase),i.Iterator=o,a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype._Create_neighbor=function(e){return new t(e)},t}(p.ArrayReverseIteratorBase),i.ReverseIterator=a},30792:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueTreeMap=void 0;var o=r(27730),a=r(48220),s=r(92376),c=r(46544),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.find=function(e){var t=this.lower_bound(e);return!t.equals(this.end())&&this._Key_eq(e,t.first)?t:this.end()},t.prototype.equal_range=function(e){var t=this.lower_bound(e);return new c.Pair(t,!t.equals(this.end())&&this._Key_eq(e,t.first)?t.next():t)},t.prototype.value_comp=function(){var e=this;return function(t,r){return e.key_comp()(t.first,r.first)}},t.prototype._Key_eq=function(e,t){return!this.key_comp()(e,t)&&!this.key_comp()(t,e)},t.prototype.emplace=function(e,t){var r=this.lower_bound(e);return!r.equals(this.end())&&this._Key_eq(r.first,e)?new c.Pair(r,!1):(r=this.data_.insert(r,new s.Entry(e,t)),this._Handle_insert(r,r.next()),new c.Pair(r,!0))},t.prototype.emplace_hint=function(e,t,r){var n=new s.Entry(t,r);if(!a.ITreeContainer.emplacable(this,e,n))return this.emplace(t,r).first;var i=this.data_.insert(e,n);return this._Handle_insert(i,i.next()),i},t}(o.UniqueMap);t.UniqueTreeMap=u},95396:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueTreeSet=void 0;var o=r(11855),a=r(48220),s=r(46544),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.find=function(e){var t=this.lower_bound(e);return!t.equals(this.end())&&this._Key_eq(e,t.value)?t:this.end()},t.prototype.equal_range=function(e){var t=this.lower_bound(e);return new s.Pair(t,!t.equals(this.end())&&this._Key_eq(e,t.value)?t.next():t)},t.prototype.value_comp=function(){return this.key_comp()},t.prototype._Key_eq=function(e,t){return!this.key_comp()(e,t)&&!this.key_comp()(t,e)},t.prototype._Insert_by_key=function(e){var t=this.lower_bound(e);return!t.equals(this.end())&&this._Key_eq(t.value,e)?new s.Pair(t,!1):(t=this.data_.insert(t,e),this._Handle_insert(t,t.next()),new s.Pair(t,!0))},t.prototype._Insert_by_hint=function(e,t){if(!a.ITreeContainer.emplacable(this,e,t))return this._Insert_by_key(t).first;var r=this.data_.insert(e,t);return this._Handle_insert(r,r.next()),r},t}(o.UniqueSet);t.UniqueTreeSet=c},39281:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=this.size())throw a.ErrorGenerator.excessive_index(this.source(),"at",e,this.size());this._Set(e,t)},t.prototype.front=function(e){if(0==arguments.length)return this.at(0);this.set(0,e)},t.prototype.back=function(e){var t=this.size()-1;if(0==arguments.length)return this.at(t);this.set(t,e)},t.prototype.insert=function(e){for(var t=[],r=1;re.index())throw a.ErrorGenerator.negative_iterator(this.source(),"insert",e.index());return e.index()>this.size()&&(e=this.end()),1===t.length?this._Insert_by_repeating_val(e,1,t[0]):2===t.length&&"number"==typeof t[0]?this._Insert_by_repeating_val(e,t[0],t[1]):this._Insert_by_range(e,t[0],t[1])},t.prototype._Insert_by_repeating_val=function(e,t,r){var n=new c.Repeater(0,r),i=new c.Repeater(t);return this._Insert_by_range(e,n,i)},t.prototype.pop_back=function(){if(!0===this.empty())throw a.ErrorGenerator.empty(this.source(),"pop_back");this._Pop_back()},t.prototype.erase=function(e,t){if(void 0===t&&(t=e.next()),e._Get_array()!==this||t._Get_array()!==this)throw a.ErrorGenerator.not_my_iterator(this.source(),"erase");if(0>e.index())throw a.ErrorGenerator.negative_iterator(this.source(),"erase",e.index());if(e.index()>t.index())throw new s.RangeError("Error on ".concat(a.ErrorGenerator.get_class_name(this.source()),".erase(): first iterator has greater index than last -> (first = ").concat(e.index(),", last = ").concat(t.index(),")."));return e.index()>=this.size()?this.end():this._Erase_by_range(e,t)},t}(o.Container);t.ArrayContainer=u},93258:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.ListContainer=void 0;var a=r(32080),s=r(69189),c=r(19151),u=r(52168),l=r(42830),p=r(48058),f=function(e){function t(){var t=e.call(this)||this;return t.end_=t._Create_iterator(null,null),t.clear(),t}return i(t,e),t.prototype.assign=function(e,t){this.clear(),this.insert(this.end(),e,t)},t.prototype.clear=function(){s.ListIterator._Set_prev(this.end_,this.end_),s.ListIterator._Set_next(this.end_,this.end_),this.begin_=this.end_,this.size_=0},t.prototype.resize=function(e){var t=e-this.size();t>0?this.insert(this.end(),t,void 0):t<0&&this.erase((0,l.advance)(this.end(),-t),this.end())},t.prototype.begin=function(){return this.begin_},t.prototype.end=function(){return this.end_},t.prototype.size=function(){return this.size_},t.prototype.push_front=function(e){this.insert(this.begin_,e)},t.prototype.push_back=function(e){this.insert(this.end_,e)},t.prototype.pop_front=function(){if(!0===this.empty())throw p.ErrorGenerator.empty(this.end_.source().constructor.name,"pop_front");this.erase(this.begin_)},t.prototype.pop_back=function(){if(!0===this.empty())throw p.ErrorGenerator.empty(this.end_.source().constructor.name,"pop_back");this.erase(this.end_.prev())},t.prototype.push=function(){for(var e=[],t=0;t0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=this.size()){for(var n,i=this.size();!t.equals(r);t=t.next())this.data_.push(t.value);return this.nth(i)}for(var s=this.data_.splice(e.index());!t.equals(r);t=t.next())this.data_.push(t.value);return(n=this.data_).push.apply(n,a([],o(s),!1)),e},t.prototype._Pop_back=function(){this.data_.pop()},t.prototype._Erase_by_range=function(e,t){return e.index()>=this.size()?e:t.index()>=this.size()?(this.data_.splice(e.index()),this.end()):(this.data_.splice(e.index(),t.index()-e.index()),e)},t.prototype.equals=function(e){return this.data_===e.data_},t.prototype.swap=function(e){var t;t=o([e.data_,this.data_],2),this.data_=t[0],e.data_=t[1]},t.prototype.toJSON=function(){return this.data_},t}(r(85474).ArrayContainer);t.VectorContainer=s},48058:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorGenerator=void 0;var n,i=r(1767),o=r(68661);!function(e){function t(e){if("string"==typeof e)return e;var t=e.constructor.name;return e.constructor.__MODULE&&(t="".concat(e.constructor.__MODULE,".").concat(t)),"std.".concat(t)}e.get_class_name=t,e.empty=function(e,r){return new o.OutOfRange("Error on ".concat(t(e),".").concat(r,"(): it's empty container."))},e.negative_index=function(e,r,n){return new o.OutOfRange("Error on ".concat(t(e),".").concat(r,"(): parametric index is negative -> (index = ").concat(n,")."))},e.excessive_index=function(e,r,n,i){return new o.OutOfRange("Error on ".concat(t(e),".").concat(r,"(): parametric index is equal or greater than size -> (index = ").concat(n,", size: ").concat(i,")."))},e.not_my_iterator=function(e,r){return new i.InvalidArgument("Error on ".concat(t(e),".").concat(r,"(): parametric iterator is not this container's own."))},e.erased_iterator=function(e,r){return new i.InvalidArgument("Error on ".concat(t(e),".").concat(r,"(): parametric iterator, it already has been erased."))},e.negative_iterator=function(e,r,n){return new o.OutOfRange("Error on ".concat(t(e),".").concat(r,"(): parametric iterator is directing negative position -> (index = ").concat(n,")."))},e.iterator_end_value=function(e,r){void 0===r&&(r="end");var n=t(e);return new o.OutOfRange("Error on ".concat(n,".Iterator.value: cannot access to the ").concat(n,".").concat(r,"().value."))},e.key_nout_found=function(e,r,n){throw new o.OutOfRange("Error on ".concat(t(e),".").concat(r,"(): unable to find the matched key -> ").concat(n))}}(n||(t.ErrorGenerator=n={}))},52812:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorInstance=void 0;var r=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=null),this.assign(e,t)}return e.prototype.assign=function(e,t){this.category_=t,this.value_=e},e.prototype.clear=function(){this.value_=0},e.prototype.category=function(){return this.category_},e.prototype.value=function(){return this.value_},e.prototype.message=function(){return this.category_.message(this.value_)},e.prototype.to_bool=function(){return 0!==this.value_},e.prototype.toJSON=function(){return null===this.category_?{}:{cateogory:this.category_.name(),value:this.value(),message:this.message()}},e}();t.ErrorInstance=r},10049:function(e,t){"use strict";var r=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.HashBuckets=void 0;var n=function(){function e(e,t){this.fetcher_=e,this.hasher_=t,this.max_load_factor_=o,this.data_=[],this.size_=0,this.initialize()}return e.prototype.clear=function(){this.data_=[],this.size_=0,this.initialize()},e.prototype.rehash=function(e){e=Math.max(e,i);for(var t,n,o,a,s=[],c=0;cthis.capacity()&&(e=Math.floor(e/this.max_load_factor_),this.rehash(e))},e.prototype.initialize=function(){for(var e=0;et&&this.reserve(2*t);var r=this.index(e);this.data_[r].push(e)},e.prototype.erase=function(e){for(var t=this.index(e),r=this.data_[t],n=0;n0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.MapHashBuckets=void 0;var s=function(e){function t(t,r,n){var i=e.call(this,c,r)||this;return i.source_=t,i.key_eq_=n,i}return i(t,e),t._Swap_source=function(e,t){var r;r=o([t.source_,e.source_],2),e.source_=r[0],t.source_=r[1]},t.prototype.key_eq=function(){return this.key_eq_},t.prototype.find=function(e){var t,r,n=this.hash_function()(e)%this.length(),i=this.at(n);try{for(var o=a(i),s=o.next();!s.done;s=o.next()){var c=s.value;if(this.key_eq_(c.first,e))return c}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this.source_.end()},t}(r(10049).HashBuckets);function c(e){return e.first}t.MapHashBuckets=s},67392:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.SetHashBuckets=void 0;var s=function(e){function t(t,r,n){var i=e.call(this,c,r)||this;return i.source_=t,i.key_eq_=n,i}return i(t,e),t._Swap_source=function(e,t){var r;r=o([t.source_,e.source_],2),e.source_=r[0],t.source_=r[1]},t.prototype.key_eq=function(){return this.key_eq_},t.prototype.find=function(e){var t,r,n=this.hash_function()(e)%this.length(),i=this.at(n);try{for(var o=a(i),s=o.next();!s.done;s=o.next()){var c=s.value;if(this.key_eq_(c.value,e))return c}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return this.source_.end()},t}(r(10049).HashBuckets);function c(e){return e.value}t.SetHashBuckets=s},59850:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayIterator=void 0;var o=r(56267),a=r(46849),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.reverse=function(){return new a.ArrayReverseIterator(this)},t.prototype.source=function(){return this._Get_array()},t}(o.ArrayIteratorBase);t.ArrayIterator=s},56267:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayIteratorBase=void 0;var n=r(17393),i=function(){function e(e,t){this.array_=e,this.index_=t}return e.prototype._Get_array=function(){return this.array_},e.prototype.index=function(){return this.index_},Object.defineProperty(e.prototype,"value",{get:function(){return this.array_.at(this.index_)},set:function(e){this.array_.set(this.index_,e)},enumerable:!1,configurable:!0}),e.prototype.prev=function(){return this.advance(-1)},e.prototype.next=function(){return this.advance(1)},e.prototype.advance=function(e){return this.array_.nth(this.index_+e)},e.prototype.equals=function(e){return(0,n.equal_to)(this.array_,e.array_)&&this.index_===e.index_},e}();t.ArrayIteratorBase=i},46849:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayReverseIterator=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype._Create_neighbor=function(e){return new t(e)},t}(r(99738).ArrayReverseIteratorBase);t.ArrayReverseIterator=o},99738:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayReverseIteratorBase=void 0;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.advance=function(e){return this._Create_neighbor(this.base().advance(-e))},t.prototype.index=function(){return this.base_.index()},Object.defineProperty(t.prototype,"value",{get:function(){return this.base_.value},set:function(e){this.base_.value=e},enumerable:!1,configurable:!0}),t}(r(39664).ReverseIterator);t.ArrayReverseIteratorBase=o},24063:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InsertIteratorBase=void 0;var r=function(){function e(){}return e.prototype.next=function(){return this},e}();t.InsertIteratorBase=r},69189:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ListIterator=void 0;var n=r(48058),i=function(){function e(e,t,r){this.prev_=e,this.next_=t,this.value_=r}return e._Set_prev=function(e,t){e.prev_=t},e._Set_next=function(e,t){e.next_=t},e.prototype.prev=function(){return this.prev_},e.prototype.next=function(){return this.next_},Object.defineProperty(e.prototype,"value",{get:function(){return this._Try_value(),this.value_},enumerable:!1,configurable:!0}),e.prototype._Try_value=function(){if(void 0===this.value_&&!0===this.equals(this.source().end()))throw n.ErrorGenerator.iterator_end_value(this.source())},e.prototype.equals=function(e){return this===e},e}();t.ListIterator=i},39664:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReverseIterator=void 0;var r=function(){function e(e){this.base_=e.prev()}return e.prototype.source=function(){return this.base_.source()},e.prototype.base=function(){return this.base_.next()},Object.defineProperty(e.prototype,"value",{get:function(){return this.base_.value},enumerable:!1,configurable:!0}),e.prototype.prev=function(){return this._Create_neighbor(this.base().next())},e.prototype.next=function(){return this._Create_neighbor(this.base_)},e.prototype.equals=function(e){return this.base_.equals(e.base_)},e}();t.ReverseIterator=r},40869:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForOfAdaptor=void 0;var r=function(){function e(e,t){this.it_=e,this.last_=t}return e.prototype.next=function(){if(this.it_.equals(this.last_))return{done:!0,value:void 0};var e=this.it_;return this.it_=this.it_.next(),{done:!1,value:e.value}},e.prototype[Symbol.iterator]=function(){return this},e}();t.ForOfAdaptor=r},52168:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.NativeArrayIterator=void 0;var n=function(){function e(e,t){this.data_=e,this.index_=t}return e.prototype.index=function(){return this.index_},Object.defineProperty(e.prototype,"value",{get:function(){return this.data_[this.index_]},enumerable:!1,configurable:!0}),e.prototype.prev=function(){return--this.index_,this},e.prototype.next=function(){return++this.index_,this},e.prototype.advance=function(e){return this.index_+=e,this},e.prototype.equals=function(e){return this.data_===e.data_&&this.index_===e.index_},e.prototype.swap=function(e){var t,n;t=r([e.data_,this.data_],2),this.data_=t[0],e.data_=t[1],n=r([e.index_,this.index_],2),this.index_=n[0],e.index_=n[1]},e}();t.NativeArrayIterator=n},19151:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Repeater=void 0;var r=function(){function e(e,t){this.index_=e,this.value_=t}return e.prototype.index=function(){return this.index_},Object.defineProperty(e.prototype,"value",{get:function(){return this.value_},enumerable:!1,configurable:!0}),e.prototype.next=function(){return++this.index_,this},e.prototype.equals=function(e){return this.index_===e.index_},e}();t.Repeater=r},45118:function(e,t){"use strict";var r,n,i,o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.MathUtil=void 0,(r=i||(t.MathUtil=i={})).factorial=function(e){if(n.length<=e)for(var t=n.length;t<=e;++t)n.push(n[t-1]*t);return n[e]},r.integral=function(e,t,r,n){if(void 0===n&&(n=1e5),t>r)t=(i=o([r,t],2))[0],r=i[1];else if(t===r)return 0;for(var i,a=(r-t)/n,s=0;t0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.MapTree=void 0;var a=r(31457),s=r(46544),c=function(e){function t(t,r,n){var i=e.call(this,n)||this;return i.source_=t,i.key_compare_=r,i.key_eq_=function(e,t){return!r(e,t)&&!r(t,e)},i.value_compare_=function(e,t){return r(e.first,t.first)},i}return i(t,e),t._Swap_source=function(e,t){var r;r=o([t.source_,e.source_],2),e.source_=r[0],t.source_=r[1]},t.prototype.get_by_key=function(e){var t=this.nearest_by_key(e);return null!==t&&this.key_eq_(e,t.value.first)?t:null},t.prototype.lower_bound=function(e){var t=this.nearest_by_key(e);return null===t?this.source().end():this.key_comp()(t.value.first,e)?t.value.next():t.value},t.prototype.equal_range=function(e){return new s.Pair(this.lower_bound(e),this.upper_bound(e))},t.prototype.source=function(){return this.source_},t.prototype.key_comp=function(){return this.key_compare_},t.prototype.key_eq=function(){return this.key_eq_},t.prototype.value_comp=function(){return this.value_compare_},t}(a.XTree);t.MapTree=c},74870:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MultiMapTree=void 0;var o=r(35293),a=r(16544),s=function(e){function t(t,r){return e.call(this,t,r,function(e,t){var n=r(e.first,t.first);return n||r(t.first,e.first)?n:(0,a.get_uid)(e)<(0,a.get_uid)(t)})||this}return i(t,e),t.prototype.insert=function(t){(0,a.get_uid)(t),e.prototype.insert.call(this,t)},t.prototype._Nearest_by_key=function(e,t){if(null===this.root_)return null;for(var r=this.root_,n=null;;){var i=r.value,o=null;if(this.key_comp()(e,i.first)?o=r.left:this.key_comp()(i.first,e)?o=r.right:(n=r,o=t(r)),null===o)break;r=o}return null!==n?n:r},t.prototype.nearest_by_key=function(e){return this._Nearest_by_key(e,function(e){return e.left})},t.prototype.upper_bound=function(e){var t=this._Nearest_by_key(e,function(e){return e.right});if(null===t)return this.source().end();var r=t.value;return this.key_comp()(e,r.first)?r:r.next()},t}(o.MapTree);t.MultiMapTree=s},9593:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.MultiSetTree=void 0;var o=r(98170),a=r(16544),s=function(e){function t(t,r){return e.call(this,t,r,function(e,t){var n=r(e.value,t.value);return n||r(t.value,e.value)?n:(0,a.get_uid)(e)<(0,a.get_uid)(t)})||this}return i(t,e),t.prototype.insert=function(t){(0,a.get_uid)(t),e.prototype.insert.call(this,t)},t.prototype._Nearest_by_key=function(e,t){if(null===this.root_)return null;for(var r=this.root_,n=null;;){var i=r.value,o=null;if(this.key_comp()(e,i.value)?o=r.left:this.key_comp()(i.value,e)?o=r.right:(n=r,o=t(r)),null===o)break;r=o}return null!==n?n:r},t.prototype.nearest_by_key=function(e){return this._Nearest_by_key(e,function(e){return e.left})},t.prototype.upper_bound=function(e){var t=this._Nearest_by_key(e,function(e){return e.right});if(null===t)return this.source().end();var r=t.value;return this.key_comp()(e,r.value)?r:r.next()},t}(o.SetTree);t.MultiSetTree=s},98170:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.SetTree=void 0;var a=r(31457),s=r(46544),c=function(e){function t(t,r,n){var i=e.call(this,n)||this;return i.source_=t,i.key_comp_=r,i.key_eq_=function(e,t){return!r(e,t)&&!r(t,e)},i}return i(t,e),t._Swap_source=function(e,t){var r;r=o([t.source_,e.source_],2),e.source_=r[0],t.source_=r[1]},t.prototype.get_by_key=function(e){var t=this.nearest_by_key(e);return null!==t&&this.key_eq_(e,t.value.value)?t:null},t.prototype.lower_bound=function(e){var t=this.nearest_by_key(e);return null===t?this.source_.end():this.key_comp_(t.value.value,e)?t.value.next():t.value},t.prototype.equal_range=function(e){return new s.Pair(this.lower_bound(e),this.upper_bound(e))},t.prototype.source=function(){return this.source_},t.prototype.key_comp=function(){return this.key_comp_},t.prototype.key_eq=function(){return this.key_eq_},t.prototype.value_comp=function(){return this.key_comp_},t}(a.XTree);t.SetTree=c},80254:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueMapTree=void 0;var o=function(e){function t(t,r){return e.call(this,t,r,function(e,t){return r(e.first,t.first)})||this}return i(t,e),t.prototype.nearest_by_key=function(e){if(null===this.root_)return null;for(var t=this.root_;;){var r=t.value,n=null;if(this.key_comp()(e,r.first))n=t.left;else if(this.key_comp()(r.first,e))n=t.right;else break;if(null===n)break;t=n}return t},t.prototype.upper_bound=function(e){var t=this.nearest_by_key(e);if(null===t)return this.source().end();var r=t.value;return this.key_comp()(e,r.first)?r:r.next()},t}(r(35293).MapTree);t.UniqueMapTree=o},9589:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueSetTree=void 0;var o=function(e){function t(t,r){return e.call(this,t,r,function(e,t){return r(e.value,t.value)})||this}return i(t,e),t.prototype.nearest_by_key=function(e){if(null===this.root_)return null;for(var t=this.root_;;){var r=t.value,n=null;if(this.key_comp()(e,r.value))n=t.left;else if(this.key_comp()(r.value,e))n=t.right;else break;if(null===n)break;t=n}return t},t.prototype.upper_bound=function(e){var t=this.nearest_by_key(e);if(null===t)return this.source().end();var r=t.value;return this.key_comp()(e,r.value)?r:r.next()},t}(r(98170).SetTree);t.UniqueSetTree=o},31457:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XTree=void 0;var n=r(89004),i=function(){function e(e){this.root_=null,this.comp_=e,this.equal_=function(t,r){return!e(t,r)&&!e(r,t)}}return e.prototype.clear=function(){this.root_=null},e.prototype.root=function(){return this.root_},e.prototype.get=function(e){var t=this.nearest(e);return null!==t&&this.equal_(e,t.value)?t:null},e.prototype.nearest=function(e){if(null===this.root_)return null;for(var t=this.root_;;){var r=null;if(this.comp_(e,t.value))r=t.left;else if(this.comp_(t.value,e))r=t.right;else break;if(null!==r)t=r;else break}return t},e.prototype._Fetch_maximum=function(e){for(;null!==e.right;)e=e.right;return e},e.prototype.insert=function(e){var t=this.nearest(e),r=new n.XTreeNode(e,1);null===t?this.root_=r:(r.parent=t,this.comp_(r.value,t.value)?t.left=r:t.right=r),this._Insert_case1(r)},e.prototype._Insert_case1=function(e){null===e.parent?e.color=0:this._Insert_case2(e)},e.prototype._Insert_case2=function(e){0!==this._Fetch_color(e.parent)&&this._Insert_case3(e)},e.prototype._Insert_case3=function(e){1===this._Fetch_color(e.uncle)?(e.parent.color=0,e.uncle.color=0,e.grand.color=1,this._Insert_case1(e.grand)):this._Insert_case4(e)},e.prototype._Insert_case4=function(e){e===e.parent.right&&e.parent===e.grand.left?(this._Rotate_left(e.parent),e=e.left):e===e.parent.left&&e.parent===e.grand.right&&(this._Rotate_right(e.parent),e=e.right),this._Insert_case5(e)},e.prototype._Insert_case5=function(e){e.parent.color=0,e.grand.color=1,e===e.parent.left&&e.parent===e.grand.left?this._Rotate_right(e.grand):this._Rotate_left(e.grand)},e.prototype.erase=function(e){var t=this.get(e);if(null!==t){if(null!==t.left&&null!==t.right){var r=this._Fetch_maximum(t.left);t.value=r.value,t=r}var n=null===t.right?t.left:t.right;0===this._Fetch_color(t)&&(t.color=this._Fetch_color(n),this._Erase_case1(t)),this._Replace_node(t,n),1===this._Fetch_color(this.root_)&&(this.root_.color=0)}},e.prototype._Erase_case1=function(e){null!==e.parent&&this._Erase_case2(e)},e.prototype._Erase_case2=function(e){1===this._Fetch_color(e.sibling)&&(e.parent.color=1,e.sibling.color=0,e===e.parent.left?this._Rotate_left(e.parent):this._Rotate_right(e.parent)),this._Erase_case3(e)},e.prototype._Erase_case3=function(e){0===this._Fetch_color(e.parent)&&0===this._Fetch_color(e.sibling)&&0===this._Fetch_color(e.sibling.left)&&0===this._Fetch_color(e.sibling.right)?(e.sibling.color=1,this._Erase_case1(e.parent)):this._Erase_case4(e)},e.prototype._Erase_case4=function(e){1===this._Fetch_color(e.parent)&&null!==e.sibling&&0===this._Fetch_color(e.sibling)&&0===this._Fetch_color(e.sibling.left)&&0===this._Fetch_color(e.sibling.right)?(e.sibling.color=1,e.parent.color=0):this._Erase_case5(e)},e.prototype._Erase_case5=function(e){e===e.parent.left&&null!==e.sibling&&0===this._Fetch_color(e.sibling)&&1===this._Fetch_color(e.sibling.left)&&0===this._Fetch_color(e.sibling.right)?(e.sibling.color=1,e.sibling.left.color=0,this._Rotate_right(e.sibling)):e===e.parent.right&&null!==e.sibling&&0===this._Fetch_color(e.sibling)&&0===this._Fetch_color(e.sibling.left)&&1===this._Fetch_color(e.sibling.right)&&(e.sibling.color=1,e.sibling.right.color=0,this._Rotate_left(e.sibling)),this._Erase_case6(e)},e.prototype._Erase_case6=function(e){e.sibling.color=this._Fetch_color(e.parent),e.parent.color=0,e===e.parent.left?(e.sibling.right.color=0,this._Rotate_left(e.parent)):(e.sibling.left.color=0,this._Rotate_right(e.parent))},e.prototype._Rotate_left=function(e){var t=e.right;this._Replace_node(e,t),e.right=t.left,null!==t.left&&(t.left.parent=e),t.left=e,e.parent=t},e.prototype._Rotate_right=function(e){var t=e.left;this._Replace_node(e,t),e.left=t.right,null!==t.right&&(t.right.parent=e),t.right=e,e.parent=t},e.prototype._Replace_node=function(e,t){null===e.parent?this.root_=t:e===e.parent.left?e.parent.left=t:e.parent.right=t,null!==t&&(t.parent=e.parent)},e.prototype._Fetch_color=function(e){return null===e?0:e.color},e}();t.XTree=i},89004:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.XTreeNode=void 0;var r=function(){function e(e,t){this.value=e,this.color=t,this.parent=null,this.left=null,this.right=null}return Object.defineProperty(e.prototype,"grand",{get:function(){return this.parent.parent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sibling",{get:function(){return this===this.parent.left?this.parent.right:this.parent.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uncle",{get:function(){return this.parent.sibling},enumerable:!1,configurable:!0}),e}();t.XTreeNode=r},93138:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.BackInsertIterator=void 0;var o=r(24063),a=r(17393),s=function(e){function t(t){var r=e.call(this)||this;return r.source_=t,r}return i(t,e),Object.defineProperty(t.prototype,"value",{set:function(e){this.source_.push_back(e)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return(0,a.equal_to)(this.source_,e.source_)},t}(o.InsertIteratorBase);t.BackInsertIterator=s},21030:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.FrontInsertIterator=void 0;var o=r(24063),a=r(17393),s=function(e){function t(t){var r=e.call(this)||this;return r.source_=t,r}return i(t,e),Object.defineProperty(t.prototype,"value",{set:function(e){this.source_.push_front(e)},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return(0,a.equal_to)(this.source_,e.source_)},t}(o.InsertIteratorBase);t.FrontInsertIterator=s},56465:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},82102:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},26357:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2982:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},87166:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},43684:function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.InsertIterator=void 0;var o=r(24063),a=r(17393),s=function(e){function t(t,r){var n=e.call(this)||this;return n.container_=t,n.it_=r,n}return i(t,e),Object.defineProperty(t.prototype,"value",{set:function(e){this.it_=this.container_.insert(this.it_,e),this.it_=this.it_.next()},enumerable:!1,configurable:!0}),t.prototype.equals=function(e){return(0,a.equal_to)(this.it_,e.it_)},t}(o.InsertIteratorBase);t.InsertIterator=s},3611:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.back_inserter=t.front_inserter=t.inserter=t.make_reverse_iterator=t.rend=t.rbegin=t.end=t.begin=void 0;var n=r(43684),i=r(21030),o=r(93138),a=r(81484);t.begin=function(e){return e instanceof Array&&(e=a.Vector.wrap(e)),e.begin()},t.end=function(e){return e instanceof Array&&(e=a.Vector.wrap(e)),e.end()},t.rbegin=function(e){return e instanceof Array&&(e=a.Vector.wrap(e)),e.rbegin()},t.rend=function(e){return e instanceof Array&&(e=a.Vector.wrap(e)),e.rend()},t.make_reverse_iterator=function(e){return e.reverse()},t.inserter=function(e,t){return new n.InsertIterator(e,t)},t.front_inserter=function(e){return new i.FrontInsertIterator(e)},t.back_inserter=function(e){return e instanceof Array&&(e=a.Vector.wrap(e)),new o.BackInsertIterator(e)}},42830:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.next=t.prev=t.advance=t.distance=t.size=t.empty=void 0;var n=r(1767);function i(e,t){var r;if(0===t)return e;if(e.advance instanceof Function)return e.advance(t);if(t<0){if(!(e.prev instanceof Function))throw new n.InvalidArgument("Error on std.advance(): parametric iterator is not a bi-directional iterator, thus advancing to negative direction is not possible.");r=function(e){return e.prev()},t=-t}else r=function(e){return e.next()};for(;t-- >0;)e=r(e);return e}t.empty=function(e){return e instanceof Array?0!==e.length:e.empty()},t.size=function(e){return e instanceof Array?e.length:e.size()},t.distance=function(e,t){if(e.index instanceof Function){var r,n,i;return n=(r=e).index(),i=t.index(),r.base instanceof Function?n-i:i-n}for(var o=0;!e.equals(t);e=e.next())++o;return o},t.advance=i,t.prev=function(e,t){return(void 0===t&&(t=1),1===t)?e.prev():i(e,-t)},t.next=function(e,t){return(void 0===t&&(t=1),1===t)?e.next():i(e,t)}},71057:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(82102),t),i(r(56465),t),i(r(26357),t),i(r(87166),t),i(r(2982),t),i(r(43684),t),i(r(21030),t),i(r(93138),t),i(r(3611),t),i(r(42830),t)},12721:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.ranges=t.experimental=t.base=void 0;var s=o(r(38894));t.base=s;var c=o(r(11077));t.experimental=c;var u=o(r(62242));t.ranges=u,a(r(6970),t),a(r(71057),t),a(r(38043),t),a(r(12159),t),a(r(44001),t),a(r(7526),t),a(r(56458),t),a(r(37028),t)},39105:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7526:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(39999),t),i(r(23208),t),i(r(87701),t),i(r(39105),t)},23208:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};Object.defineProperty(t,"__esModule",{value:!0}),t.transform_exclusive_scan=t.transform_inclusive_scan=t.exclusive_scan=t.inclusive_scan=t.partial_sum=t.adjacent_difference=t.inner_product=t.accumulate=t.iota=t.lcm=t.gcd=void 0;var i=r(39999);function o(e,t){var r;for(t=t.valueOf();0!==t;)e=(r=n([t,e%t],2))[0],t=r[1];return e}function a(e,t,r,i,o,a){var s,c;if(e.equals(t))return r;for(e=(s=n(u(e,r,o,a),3))[0],r=s[1],c=s[2];!e.equals(t);e=e.next())c=i(c,o(e.value)),r.value=c,r=r.next();return r}function s(e,t,r,i,o,a){if(e.equals(t))return r;var s,c,l=a(e.value);for(e=(s=n(u(e,r,a,i),3))[0],r=s[1],c=s[2];!e.equals(t);e=e.next())c=o(l,c),l=a(e.value),r.value=c,r=r.next();return r}function c(e,t,r){return u(e,t,function(e){return e},r)}function u(e,t,r,n){var i=r(void 0===n?e.value:n);return t.value=i,[e.next(),t.next(),i]}t.gcd=o,t.lcm=function(e,t){return e*t/o(e,t)},t.iota=function(e,t,r){for(;!e.equals(t);e=e.next())e.value=r++},t.accumulate=function(e,t,r,n){for(void 0===n&&(n=i.plus);!e.equals(t);e=e.next())r=n(r,e.value);return r},t.inner_product=function(e,t,r,n,o,a){for(void 0===o&&(o=i.plus),void 0===a&&(a=i.multiplies);!e.equals(t);e=e.next())n=o(n,a(e.value,r.value)),r=r.next();return n},t.adjacent_difference=function(e,t,r,o){var a,s;if(void 0===o&&(o=i.minus),e.equals(t))return r;for(e=(a=n(c(e,r),3))[0],r=a[1],s=a[2];!e.equals(t);e=e.next())r.value=o(e.value,s),s=e.value,r=r.next();return r},t.partial_sum=function(e,t,r,o){var a,s;if(void 0===o&&(o=i.plus),e.equals(t))return r;for(e=(a=n(c(e,r),3))[0],r=a[1],s=a[2];!e.equals(t);e=e.next())s=o(s,e.value),r.value=s,r=r.next();return r},t.inclusive_scan=function(e,t,r,n,o){return void 0===n&&(n=i.plus),a(e,t,r,n,function(e){return e},o)},t.exclusive_scan=function(e,t,r,n,o){return void 0===o&&(o=i.plus),s(e,t,r,n,o,function(e){return e})},t.transform_inclusive_scan=a,t.transform_exclusive_scan=s},39999:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modules=t.divides=t.multiplies=t.negate=t.minus=t.plus=void 0,t.plus=function(e,t){return e.plus instanceof Function?e.plus(t):e+t},t.minus=function(e,t){return e.minus instanceof Function?e.minus(t):e-t},t.negate=function(e){return e.negate instanceof Function?e.negate():-e},t.multiplies=function(e,t){return e.multiplies instanceof Function?e.multiplies(t):e*t},t.divides=function(e,t){return e.divides instanceof Function?e.divides(t):e/t},t.modules=function(e,t){return e.modules instanceof Function?e.modules(t):e%t}},20188:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cyl_bessel_k=t.cyl_bessel_i=t.sph_neumann=t.sph_bessel=t.cyl_neumann=t.cyl_bessel_j=void 0;var n=r(45118),i=r(1767),o=r(66578);function a(e,t){if(t<0&&Math.floor(e)!==e)throw new i.InvalidArgument("Error on std.cyl_bessel_j(): n must be integer when x is negative -> (n = ".concat(e,", x = ").concat(t,")."));if(0===t&&0!==e)throw new i.InvalidArgument("Error on std.cyl_bessel_j(): n must be zero when x is zero -> (n = ".concat(e,", x = ").concat(t,")."));return e===Math.floor(e)&&e<0?Math.pow(-1,e)*c(-e,t):c(e,t)}function s(e,t){if(t<=0)throw new i.InvalidArgument("Error on std.cyl_neumann(): x must be greater than zero -> (x = ".concat(t,")."));return(a(e,t)*Math.cos(e*Math.PI)-a(-e,t))/Math.sin(e*Math.PI)}function c(e,t){return n.MathUtil.sigma(function(r){return Math.pow(-1,r)*Math.pow(t/2,e+2*r)/(n.MathUtil.factorial(r)*(0,o.tgamma)(e+r+1))},0,100)}function u(e,t){if(t<0&&Math.floor(e)!==e)throw new i.InvalidArgument("Error on std.cyl_bessel_i(): n must be integer when x is negative -> (n = ".concat(e,", x = ").concat(t,")."));if(0===t&&0!==e)throw new i.InvalidArgument("Error on std.cyl_bessel_i(): n must be zero when x is zero -> (n = ".concat(e,", x = ").concat(t,")."));return .5===e?Math.sqrt(2/(Math.PI*t))*Math.sinh(t):n.MathUtil.sigma(function(r){return Math.pow(t/2,e+2*r)/(n.MathUtil.factorial(r)*(0,o.tgamma)(e+r+1))},0,100)}t.cyl_bessel_j=a,t.cyl_neumann=s,t.sph_bessel=function(e,t){return Math.sqrt(Math.PI/(2*t))*a(e+.5,t)},t.sph_neumann=function(e,t){return Math.sqrt(Math.PI/(2*t))*s(e+.5,t)},t.cyl_bessel_i=u,t.cyl_bessel_k=function(e,t){if(t<=0)throw new i.InvalidArgument("Error on std.cyl_bessel_k(): requires x > 0 -> (x = ".concat(t,")."));return Math.PI/2*(u(-e,t)-u(e,t))/Math.sin(e*Math.PI)}},3576:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.beta=void 0;var n=r(66578);t.beta=function(e,t){return(0,n.tgamma)(e)*(0,n.tgamma)(t)/(0,n.tgamma)(e+t)}},5731:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.comp_ellint_3=t.ellint_3=t.comp_ellint_2=t.ellint_2=t.comp_ellint_1=t.ellint_1=void 0;var n=r(45118),i=r(1767);function o(e,t){return u("ellint_1",e,t,function(t){return 1/c(e,t)})}function a(e,t){return u("ellint_2",e,t,function(t){return c(e,t)})}function s(e,t,r){var n=1/Math.pow(Math.sin(r),2);if(t>n)throw new i.InvalidArgument("Error on std.ellint_3(): must be v < (1 / sin^2(phi)) -> (v = ".concat(t,", 1 / sin^2(phi) = ").concat(n,")."));return u("ellint_3",e,r,function(r){var n=1-t*Math.pow(Math.sin(r),2);return 1/(n*=c(e,r))})}function c(e,t){return Math.sqrt(1-Math.pow(e*Math.sin(t),2))}function u(e,t,r,o){if(Math.abs(t)>1)throw new i.InvalidArgument("Error on std.".concat(e,"(): must be |k| <= 1 -> (k = ").concat(t,")."));var a=n.MathUtil.integral(o,0,r);return r<0?-a:a}t.ellint_1=o,t.comp_ellint_1=function(e){return o(e,Math.PI/2)},t.ellint_2=a,t.comp_ellint_2=function(e){return a(e,Math.PI/2)},t.ellint_3=s,t.comp_ellint_3=function(e,t){return s(e,t,Math.PI/2)}},13989:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.expint=void 0;var n=r(45118);t.expint=function(e){var t,r,u,l,p,f;return 0===e?-1/0:e<0?-(u=20/47*Math.pow(r=t=-e,Math.sqrt(31/26)),l=1/(1+Math.pow(r,1.5))+c*u/(1+u),p=a+(1-a)*Math.pow(Math.E,-t/(1-a)),(p=Math.pow(Math.E,-t)/p)*(Math.log(1+a/t-(1-a)/Math.pow(l+s*t,2))/Math.log(Math.E))):i+Math.log(Math.abs(e))/Math.log(Math.E)+n.MathUtil.sigma(function(t){return Math.pow(e,t)/(t*n.MathUtil.factorial(t))},1,o)};var i=.5772156649015329,o=150,a=.5614594835668851,s=Math.sqrt(2*.43854051643311487/.8076822154465769),c=.43854051643311487*(.31523675168719334-3.368756901401311+12)/(3.4856507739670834*s)},66578:function(e,t){"use strict";function r(e){if(e<.5)return Math.PI/(Math.sin(Math.PI*e)*r(1-e));for(var t=n[0],o=(e-=1)+i+.5,a=1;a (n = ".concat(e,")."));return function e(t,r,n){if(n.length>t)return n[t];var i=e(t-1,r,n),o=e(t-2,r,n),a=r*i-(t-1)*o;return a*=2,n[t]=a,a}(e,t,[1,2*t])}},87701:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(3576),t),i(r(66578),t),i(r(20188),t),i(r(5731),t),i(r(13989),t),i(r(42110),t),i(r(78625),t),i(r(30263),t),i(r(19863),t)},30263:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assoc_laguerre=t.laguerre=void 0;var n=r(1767);function i(e,t,r){if((e=Math.floor(e))<0||(t=Math.floor(t))<0)throw new n.InvalidArgument("Error on std.assoc_laguerre(): both n and m must be unsigned integer -> (n = ".concat(e,", m = ").concat(t,")."));var i=[1,-r+t+1];return function e(t,r,n,i){if(i.length>t)return i[t];var o=e(t-1,r,n,i),a=e(t-2,r,n,i),s=(2*t-1+r-n)*o-(t+r-1)*a;return s/=t,i[t]=s,s}(e,t,r,i)}t.laguerre=function(e,t){return i(e,0,t)},t.assoc_laguerre=i},78625:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assoc_legendre=t.legendre=void 0;var n=r(1767);function i(e,t,r){if((e=Math.floor(e))<0||(t=Math.floor(t))<0)throw new n.InvalidArgument("Error on std.assoc_legendre(): both n and m must be unsigned integer -> (n = ".concat(e,", m = ").concat(t,")."));if(Math.abs(r)>1)throw new n.InvalidArgument("Error on std.assoc_legendre(): must be |x| <= 1 -> (x = ".concat(r,")."));var i=[[1,r]];i.length=t+1;for(var o=1;ot)return n[t];var i=e(t-1,r,n),o=e(t-2,r,n),a=(2*t-1)*r*i-(t-1)*o;return a/=t,n[t]=a,a}(t,n,i[0]);if(i[r].length>t&&void 0!==i[r][t])return i[r][t];var o=((t-r+1)*(t-r+2)*e(t+1,r-1,n,i)-(t+r-1)*(t+r)*e(t-1,r-1,n,i))/(2*t+1);return o/=Math.sqrt(1-n*n),i[r][t]=o,o}(e,t,r,i)}t.legendre=function(e,t){return i(e,0,t)},t.assoc_legendre=i},19863:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.riemann_zeta=void 0;var n=r(45118),i=r(66578);t.riemann_zeta=function e(t){return t<0?Math.pow(2,t)*Math.pow(Math.PI,t-1)*Math.sin(Math.PI*t/2)*(0,i.tgamma)(1-t)*e(1-t):0===t?-.5:t<1?n.MathUtil.sigma(function(e){return Math.pow(-1,e-1)*Math.pow(e,-t)},1,o)/(1-Math.pow(2,1-t)):1===t?1/0:n.MathUtil.sigma(function(e){return Math.pow(e,-t)},1,o)};var o=1e5},54633:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.binary_search=t.equal_range=t.upper_bound=t.lower_bound=void 0;var a=o(r(38577)),s=r(3611),c=r(17393);t.lower_bound=function(e,t,r){return void 0===r&&(r=c.less),a.lower_bound((0,s.begin)(e),(0,s.end)(e),t,r)},t.upper_bound=function(e,t,r){return void 0===r&&(r=c.less),a.upper_bound((0,s.begin)(e),(0,s.end)(e),t,r)},t.equal_range=function(e,t,r){return void 0===r&&(r=c.less),a.equal_range((0,s.begin)(e),(0,s.end)(e),t,r)},t.binary_search=function(e,t,r){return void 0===r&&(r=c.less),a.binary_search((0,s.begin)(e),(0,s.end)(e),t,r)}},23979:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sort_heap=t.is_heap_until=t.is_heap=t.pop_heap=t.push_heap=t.make_heap=void 0;var a=o(r(88139)),s=r(3611),c=r(17393);t.make_heap=function(e,t){return void 0===t&&(t=c.less),a.make_heap((0,s.begin)(e),(0,s.end)(e),t)},t.push_heap=function(e,t){return void 0===t&&(t=c.less),a.push_heap((0,s.begin)(e),(0,s.end)(e),t)},t.pop_heap=function(e,t){return void 0===t&&(t=c.less),a.pop_heap((0,s.begin)(e),(0,s.end)(e),t)},t.is_heap=function(e,t){return void 0===t&&(t=c.less),a.is_heap((0,s.begin)(e),(0,s.end)(e),t)},t.is_heap_until=function(e,t){return void 0===t&&(t=c.less),a.is_heap_until((0,s.begin)(e),(0,s.end)(e),t)},t.sort_heap=function(e,t){return void 0===t&&(t=c.less),a.sort_heap((0,s.begin)(e),(0,s.end)(e),t)}},84197:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(54633),t),i(r(23979),t),i(r(17557),t),i(r(31666),t),i(r(51752),t),i(r(83292),t),i(r(14954),t),i(r(3338),t),i(r(17302),t)},17557:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.count_if=t.count=t.mismatch=t.search_n=t.search=t.adjacent_find=t.find_first_of=t.find_end=t.find_if_not=t.find_if=t.find=t.lexicographical_compare=t.equal=t.none_of=t.any_of=t.all_of=t.for_each_n=t.for_each=void 0;var a=o(r(95114)),s=r(46544),c=r(3611),u=r(42830),l=r(17393);t.for_each=function(e,t){return a.for_each((0,c.begin)(e),(0,c.end)(e),t)},t.for_each_n=function(e,t,r){return a.for_each_n((0,c.begin)(e),t,r)},t.all_of=function(e,t){return a.all_of((0,c.begin)(e),(0,c.end)(e),t)},t.any_of=function(e,t){return a.any_of((0,c.begin)(e),(0,c.end)(e),t)},t.none_of=function(e,t){return a.none_of((0,c.begin)(e),(0,c.end)(e),t)},t.equal=function(e,t,r){return void 0===r&&(r=l.equal_to),(0,u.size)(e)===(0,u.size)(t)&&a.equal((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),r)},t.lexicographical_compare=function(e,t,r){return void 0===r&&(r=l.less),a.lexicographical_compare((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),(0,c.end)(t),r)},t.find=function(e,t){return a.find((0,c.begin)(e),(0,c.end)(e),t)},t.find_if=function(e,t){return a.find_if((0,c.begin)(e),(0,c.end)(e),t)},t.find_if_not=function(e,t){return a.find_if_not((0,c.begin)(e),(0,c.end)(e),t)},t.find_end=function(e,t,r){return void 0===r&&(r=l.equal_to),a.find_end((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),(0,c.end)(t),r)},t.find_first_of=function(e,t,r){return void 0===r&&(r=l.equal_to),a.find_first_of((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),(0,c.end)(t),r)},t.adjacent_find=function(e,t){return void 0===t&&(t=l.equal_to),a.adjacent_find((0,c.begin)(e),(0,c.end)(e),t)},t.search=function(e,t,r){return void 0===r&&(r=l.equal_to),a.search((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),(0,c.end)(t),r)},t.search_n=function(e,t,r,n){return void 0===n&&(n=l.equal_to),a.search_n((0,c.begin)(e),(0,c.end)(e),t,r,n)},t.mismatch=function(e,t,r){if(void 0===r&&(r=l.equal_to),(0,u.size)(e)===(0,u.size)(t))return a.mismatch((0,c.begin)(e),(0,c.end)(e),(0,c.begin)(t),r);for(var n=Math.min((0,u.size)(e),(0,u.size)(t)),i=(0,c.begin)(e),o=(0,c.begin)(t),p=0;p0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},s=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionVariable=void 0;var a=r(98562),s=r(67107),c=function(){function e(){this.resolvers_=new a.List}return e.prototype.wait=function(e){return n(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:if(e)return[3,2];return[4,this._Wait()];case 1:return[2,t.sent()];case 2:return[4,e()];case 3:if(t.sent())return[3,5];return[4,this._Wait()];case 4:return t.sent(),[3,2];case 5:return[2]}})})},e.prototype.wait_for=function(e,t){var r=new Date(Date.now()+e);return this.wait_until(r,t)},e.prototype.wait_until=function(e,t){return n(this,void 0,void 0,function(){return i(this,function(r){switch(r.label){case 0:if(t)return[3,2];return[4,this._Wait_until(e)];case 1:case 5:return[2,r.sent()];case 2:return[4,t()];case 3:if(r.sent())return[3,7];return[4,this._Wait_until(e)];case 4:if(r.sent())return[3,6];return[4,t()];case 6:return[3,2];case 7:return[2,!0]}})})},e.prototype._Wait=function(){var e=this;return new Promise(function(t){e.resolvers_.push_back({handler:t,lockType:0})})},e.prototype._Wait_until=function(e){var t=this;return new Promise(function(r){var n=t.resolvers_.insert(t.resolvers_.end(),{handler:r,lockType:1});(0,s.sleep_until)(e).then(function(){!0!==n.erased_&&(t.resolvers_.erase(n),r(!1))})})},e.prototype.notify_one=function(){return n(this,void 0,void 0,function(){var e;return i(this,function(t){return this.resolvers_.empty()||(e=this.resolvers_.begin(),this.resolvers_.erase(e),0===e.value.lockType?e.value.handler():e.value.handler(!0)),[2]})})},e.prototype.notify_all=function(){return n(this,void 0,void 0,function(){var e,t,r,n,a,s;return i(this,function(i){if(this.resolvers_.empty())return[2];e=this.resolvers_.toJSON(),this.resolvers_.clear();try{for(r=(t=o(e)).next();!r.done;r=t.next())n=r.value,0===n.lockType?n.handler():n.handler(!0)}catch(e){a={error:e}}finally{try{r&&!r.done&&(s=t.return)&&s.call(t)}finally{if(a)throw a.error}}return[2]})})},e}();t.ConditionVariable=c},63250:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.Semaphore=void 0;var u=r(98562),l=r(1767),p=r(68661),f=r(67107),d=function(){function e(e){this.queue_=new u.List,this.acquiring_=0,this.max_=e}return e.prototype.max=function(){return this.max_},e.prototype.acquire=function(){var e=this;return new Promise(function(t){e.acquiring_ (n = ".concat(e,")."));if(e>this.max_)throw new p.OutOfRange("Error on std.Semaphore.release(): parametric n is greater than max -> (n = ".concat(e,", max = ").concat(this.max_,")."));if(e>this.acquiring_)throw new p.OutOfRange("Error on std.Semaphore.release(): parametric n is greater than acquiring -> (n = ".concat(e,", acquiring = ").concat(this.acquiring_,")."));for(t=[];!1===this.queue_.empty()&&t.length0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.SharedTimedMutex=void 0;var s=r(98562),c=r(1767),u=r(67107),l=function(){function e(e){void 0===e&&(e=null),this.source_=null!==e?e:this,this.queue_=new s.List,this.writing_=0,this.reading_=0}return e.prototype._Current_access_type=function(){return this.queue_.empty()?null:this.queue_.front().accessType},e.prototype.lock=function(){var e=this;return new Promise(function(t){var r={handler:0==e.writing_++&&0===e.reading_?null:t,accessType:0,lockType:0};e.queue_.push_back(r),null===r.handler&&t()})},e.prototype.try_lock=function(){return i(this,void 0,void 0,function(){return o(this,function(e){return 0!==this.writing_||0!==this.reading_?[2,!1]:(this.queue_.push_back({handler:null,accessType:0,lockType:1}),++this.writing_,[2,!0])})})},e.prototype.try_lock_for=function(e){var t=this;return new Promise(function(r){var n=t.queue_.insert(t.queue_.end(),{handler:0==t.writing_++&&0===t.reading_?null:r,accessType:0,lockType:1});null===n.value.handler?r(!0):(0,u.sleep_for)(e).then(function(){null!==n.value.handler&&(--t.writing_,t._Cancel(n))})})},e.prototype.try_lock_until=function(e){return i(this,void 0,void 0,function(){var t,r;return o(this,function(n){switch(n.label){case 0:return t=new Date,r=e.getTime()-t.getTime(),[4,this.try_lock_for(r)];case 1:return[2,n.sent()]}})})},e.prototype.unlock=function(){return i(this,void 0,void 0,function(){return o(this,function(e){if(0!==this._Current_access_type())throw new c.InvalidArgument("Error on std.".concat(this.source_.constructor.name,".unlock(): this mutex is free on the unique lock."));return--this.writing_,this.queue_.pop_front(),this._Release(),[2]})})},e.prototype.lock_shared=function(){var e=this;return new Promise(function(t){var r={handler:0===e.writing_?null:t,accessType:1,lockType:0};e.queue_.push_back(r),++e.reading_,null===r.handler&&t()})},e.prototype.try_lock_shared=function(){return i(this,void 0,void 0,function(){return o(this,function(e){return 0!==this.writing_?[2,!1]:(++this.reading_,this.queue_.push_back({handler:null,accessType:1,lockType:1}),[2,!0])})})},e.prototype.try_lock_shared_for=function(e){var t=this;return new Promise(function(r){var n=t.queue_.insert(t.queue_.end(),{handler:0===t.writing_?null:r,accessType:1,lockType:1});++t.reading_,null===n.value.handler?r(!0):(0,u.sleep_for)(e).then(function(){null!==n.value.handler&&(--t.reading_,t._Cancel(n))})})},e.prototype.try_lock_shared_until=function(e){return i(this,void 0,void 0,function(){var t,r;return o(this,function(n){switch(n.label){case 0:return t=new Date,r=e.getTime()-t.getTime(),[4,this.try_lock_shared_for(r)];case 1:return[2,n.sent()]}})})},e.prototype.unlock_shared=function(){return i(this,void 0,void 0,function(){return o(this,function(e){if(1!==this._Current_access_type())throw new c.InvalidArgument("Error on std.".concat(this.source_.constructor.name,".unlock_shared(): this mutex is free on the shared lock."));return--this.reading_,this.queue_.pop_front(),this._Release(),[2]})})},e.prototype._Release=function(){var e,t,r,i,o=this._Current_access_type(),s=[];try{for(var c=a(this.queue_),u=c.next();!u.done;u=c.next()){var l=u.value;if(l.accessType!==o||(null!==l.handler&&(s.push(n({},l)),l.handler=null),0===l.accessType))break}}catch(t){e={error:t}}finally{try{u&&!u.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}try{for(var p=a(s),f=p.next();!f.done;f=p.next()){var l=f.value;0===l.lockType?l.handler():l.handler(!0)}}catch(e){r={error:e}}finally{try{f&&!f.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}},e.prototype._Cancel=function(e){this.queue_.erase(e);var t=e.value.handler;e.value.handler=null;var r=e.prev();!1===r.equals(this.queue_.end())&&null===r.value.handler&&this._Release(),t(!1)},e}();t.SharedTimedMutex=l},47233:function(e,t){"use strict";var r=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},n=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=this.expired_at_&&(this.expired_at_=Date.now()+this.interval_,this.value_=this.closure_.apply(this,n([],r(e),!1))),this.value_},e}();t.TimedSingleton=i},32840:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UniqueLock=void 0;var n,i=r(15541),o=function(){};t.UniqueLock=o,(n=o||(t.UniqueLock=o={})).lock=function(e,t){return i.SafeLock.lock(function(){return e.lock()},function(){return e.unlock()},t)},n.try_lock=function(e,t){return i.SafeLock.try_lock(function(){return e.try_lock()},function(){return e.unlock()},t)},n.try_lock_for=function(e,t,r){return i.SafeLock.try_lock(function(){return e.try_lock_for(t)},function(){return e.unlock()},r)},n.try_lock_until=function(e,t,r){return i.SafeLock.try_lock(function(){return e.try_lock_until(t)},function(){return e.unlock()},r)}},62690:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{c(n.next(e))}catch(e){o(e)}}function s(e){try{c(n.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}c((n=n.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},a=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__spreadArray||function(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function o(e){return new Promise(function(t){setTimeout(t,e)})}Object.defineProperty(t,"__esModule",{value:!0}),t.try_lock=t.lock=t.sleep_until=t.sleep_for=void 0,t.sleep_for=o,t.sleep_until=function(e){var t=new Date;return o(e.getTime()-t.getTime())},t.lock=function(){for(var e=[],t=0;t=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionFactory=void 0;var s=a(r(55423)),c=r(46657);(n=i||(t.ExpressionFactory=i={})).number=function(e){return e<0?s.default.factory.createPrefixUnaryExpression(s.default.SyntaxKind.MinusToken,s.default.factory.createNumericLiteral(Math.abs(e))):s.default.factory.createNumericLiteral(e)},n.bigint=function(e){return s.default.factory.createCallExpression(s.default.factory.createIdentifier("BigInt"),void 0,[s.default.factory.createIdentifier(e.toString())])},n.isRequired=function(e){return s.default.factory.createStrictInequality(s.default.factory.createIdentifier("undefined"),e)},n.isArray=function(e){return s.default.factory.createCallExpression(s.default.factory.createIdentifier("Array.isArray"),void 0,[e])},n.isObject=function(e){return function(t){var r=[s.default.factory.createStrictEquality(s.default.factory.createStringLiteral("object"),s.default.factory.createTypeOfExpression(t))];return!0===e.checkNull&&r.push(s.default.factory.createStrictInequality(s.default.factory.createNull(),t)),!0===e.checkArray&&r.push(s.default.factory.createStrictEquality(s.default.factory.createFalse(),s.default.factory.createCallExpression(s.default.factory.createIdentifier("Array.isArray"),void 0,[t]))),1===r.length?r[0]:r.reduce(function(e,t){return s.default.factory.createLogicalAnd(e,t)})}},n.isInstanceOf=function(e){return function(t){return s.default.factory.createBinaryExpression(t,s.default.factory.createToken(s.default.SyntaxKind.InstanceOfKeyword),s.default.factory.createIdentifier(e))}},n.coalesce=function(e){return function(t){return s.default.factory.createBinaryExpression(e,s.default.factory.createToken(s.default.SyntaxKind.QuestionQuestionToken),t)}},n.currying=function(e){return function(t){if(0===t.length)return s.default.factory.createCallExpression(e,void 0,void 0);var r,n,i=s.default.factory.createCallExpression(e,void 0,[t[0]]);try{for(var a=o(t.slice(1)),c=a.next();!c.done;c=a.next()){var u=c.value;i=s.default.factory.createCallExpression(i,void 0,[u])}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}},n.selfCall=function(e){return s.default.isCallExpression(e)?e:s.default.factory.createCallExpression(s.default.factory.createParenthesizedExpression(s.default.factory.createArrowFunction(void 0,void 0,[],void 0,void 0,e)),void 0,void 0)},n.getEscapedText=function(e){return function(t){return e.printNode(s.default.EmitHint.Expression,t,t.getSourceFile())}},n.transpile=function(e){return function(t){var r=s.default.createSourceFile("".concat(c.RandomGenerator.uuid(),".ts"),t,s.default.ScriptTarget.ESNext,!0,s.default.ScriptKind.TS).statements[0];if(void 0===r)throw ReferenceError("Error on ExpressionFactory.transpile(): no statement exists.");if(!s.default.isExpressionStatement(r))throw TypeError("Error on ExpressionFactory.transpile(): statement is not an expression statement.");return function(t){var n=function(r){return s.default.isIdentifier(r)&&"$input"===r.text?t:s.default.visitEachChild(s.default.factory.cloneNode(r),n,e)};return n(r.expression)}}}},61387:function(e,t,r){"use strict";var n,i,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierFactory=void 0;var a=o(r(55423)),s=r(5724),c=r(12301);(n=i||(t.IdentifierFactory=i={})).identifier=function(e){return s.Escaper.variable(e)?a.default.factory.createIdentifier(e):a.default.factory.createStringLiteral(e)},n.access=function(e){return function(t){var r=n.identifier(t);return a.default.isStringLiteral(r)?a.default.factory.createElementAccessExpression(e,r):a.default.factory.createPropertyAccessExpression(e,r)}},n.getName=function(e){var t,r=null===(t=e.escapedText)||void 0===t?void 0:t.toString();return"string"==typeof r?r:a.default.isPropertyAccessExpression(e)?"".concat(n.getName(e.expression),".").concat(e.name.escapedText.toString()):a.default.isElementAccessExpression(e)?"".concat(n.getName(e.expression),"[").concat(n.getName(e.argumentExpression),"]"):"uknown"},n.postfix=function(e){return s.Escaper.variable(e)?'".'.concat(e,'"'):'"['.concat(JSON.stringify(e).split('"').join('\\"'),']"')},n.parameter=function(e,t,r){return void 0!==a.default.getDecorators?a.default.factory.createParameterDeclaration(void 0,void 0,e,(null==r?void 0:r.kind)===a.default.SyntaxKind.QuestionToken?a.default.factory.createToken(a.default.SyntaxKind.QuestionToken):void 0,null!=t?t:c.TypeFactory.keyword("any"),r&&r.kind!==a.default.SyntaxKind.QuestionToken?r:void 0):a.default.factory.createParameterDeclaration(void 0,void 0,void 0,e,(null==r?void 0:r.kind)===a.default.SyntaxKind.QuestionToken?a.default.factory.createToken(a.default.SyntaxKind.QuestionToken):void 0,t,r&&r.kind!==a.default.SyntaxKind.QuestionToken?r:void 0)}},97846:function(e,t,r){"use strict";var n,i,o,a,s,c,u,l=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralFactory=void 0;var f=p(r(55423)),d=r(73906),h=r(61387);(n=u||(t.LiteralFactory=u={})).generate=function(e){if(null===e)return f.default.factory.createNull();if(f.default.isIdentifier(e))return e;if(e instanceof Array)return o(e);if("object"==typeof e)return i(e);if("string"==typeof e)return c(e);if("boolean"==typeof e)return a(e);if("number"==typeof e)return a(e);else if("bigint"==typeof e)return s(e);else if("function"==typeof e)return f.default.factory.createIdentifier("undefined");else throw TypeError("Error on LiteralFactory.generate(): unknown type.")},i=function(e){return f.default.factory.createObjectLiteralExpression(Object.entries(e).filter(function(e){return void 0!==e[1]}).map(function(e){var t=l(e,2),r=t[0],i=t[1];return f.default.factory.createPropertyAssignment(h.IdentifierFactory.identifier(r),n.generate(i))}),!0)},o=function(e){return f.default.factory.createArrayLiteralExpression(e.map(n.generate),!0)},a=function(e){return f.default.factory.createIdentifier(e.toString())},s=function(e){return d.ExpressionFactory.bigint(e)},c=function(e){return f.default.factory.createStringLiteral(e)}},6152:function(e,t,r){"use strict";var n,i,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StatementFactory=void 0;var a=o(r(55423)),s=r(12301);(n=i||(t.StatementFactory=i={})).mut=function(e,t){return a.default.factory.createVariableStatement(void 0,a.default.factory.createVariableDeclarationList([a.default.factory.createVariableDeclaration(e,void 0,void 0===t?s.TypeFactory.keyword("any"):void 0,t)],a.default.NodeFlags.Let))},n.constant=function(e,t){return a.default.factory.createVariableStatement(void 0,a.default.factory.createVariableDeclarationList([a.default.factory.createVariableDeclaration(e,void 0,void 0,t)],a.default.NodeFlags.Const))},n.entry=function(e){return function(t){return a.default.factory.createVariableDeclarationList([a.default.factory.createVariableDeclaration(a.default.factory.createArrayBindingPattern([a.default.factory.createBindingElement(void 0,void 0,a.default.factory.createIdentifier(e),void 0),a.default.factory.createBindingElement(void 0,void 0,a.default.factory.createIdentifier(t),void 0)]),void 0,void 0,void 0)],a.default.NodeFlags.Const)}},n.transpile=function(e){return a.default.factory.createExpressionStatement(a.default.factory.createIdentifier(a.default.transpile(e)))},n.block=function(e){return a.default.factory.createBlock([a.default.factory.createExpressionStatement(e)],!0)}},12301:function(e,t,r){"use strict";var n,i,o,a,s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TypeFactory=void 0;var c=s(r(55423));(n=a||(t.TypeFactory=a={})).isFunction=function(e){return null!==n.getFunction(e)},n.getFunction=function(e){var t,r,n=null===(r=null===(t=e.symbol)||void 0===t?void 0:t.declarations)||void 0===r?void 0:r[0];return void 0===n?null:c.default.isFunctionLike(n)?n:(c.default.isPropertyAssignment(n)||c.default.isPropertyDeclaration(n))&&c.default.isFunctionLike(n.initializer)?n.initializer:null},n.getReturnType=function(e){return function(t){return function(r){var n=t.getProperty(r);if(!n||!n.valueDeclaration)return null;var i=e.getTypeOfSymbolAtLocation(n,n.valueDeclaration),o=e.getSignaturesOfType(i,c.default.SignatureKind.Call)[0];return o?o.getReturnType():null}}},n.getFullName=function(e){return function(t,r){if(null!=r||(r=null!==(i=t.aliasSymbol)&&void 0!==i?i:t.getSymbol()),void 0===r)return e.typeToString(t);if(void 0===t.aliasSymbol&&t.isUnionOrIntersection()){var i,a=t.isIntersection()?" & ":" | ";return t.types.map(function(t){return n.getFullName(e)(t)}).join(a)}var s=o(r),c=t.aliasSymbol?t.aliasTypeArguments||[]:e.getTypeArguments(t);return c.length?"Promise"===s?n.getFullName(e)(c[0]):"".concat(s,"<").concat(c.map(function(t){return n.getFullName(e)(t)}).join(", "),">"):s}},i=function(e){return function(t){return c.default.isModuleBlock(e)?i(e.parent.parent)("".concat(e.parent.name.getFullText().trim(),".").concat(t)):t}},o=function(e){var t,r,n=null===(r=null===(t=e.getDeclarations())||void 0===t?void 0:t[0])||void 0===r?void 0:r.parent;return n?i(n)(e.escapedName.toString()):"__type"},n.keyword=function(e){return c.default.factory.createKeywordTypeNode("void"===e?c.default.SyntaxKind.VoidKeyword:"any"===e?c.default.SyntaxKind.AnyKeyword:"unknown"===e?c.default.SyntaxKind.UnknownKeyword:"boolean"===e?c.default.SyntaxKind.BooleanKeyword:"number"===e?c.default.SyntaxKind.NumberKeyword:"bigint"===e?c.default.SyntaxKind.BigIntKeyword:c.default.SyntaxKind.StringKeyword)}},97420:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatCheatSheet=void 0;var r=function(e){return"".concat(e,".test($input)")};t.FormatCheatSheet={byte:r("/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm"),password:"true",regex:"(() => { try { new RegExp($input); return true; } catch { return false; } })()",uuid:r("/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i"),email:r("/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i"),hostname:r("/^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i"),"idn-email":r('/^(([^<>()[\\]\\.,;:\\s@\\"]+(\\.[^<>()[\\]\\.,;:\\s@\\"]+)*)|(\\".+\\"))@(([^<>()[\\]\\.,;:\\s@\\"]+\\.)+[^<>()[\\]\\.,;:\\s@\\"]{2,})$/i'),"idn-hostname":r("/^([a-z0-9\\u00a1-\\uffff0-9]+(-[a-z0-9\\u00a1-\\uffff0-9]+)*\\.)+[a-z\\u00a1-\\uffff]{2,}$/i"),iri:r('/^[A-Za-z][\\d+-.A-Za-z]*:[^\\u0000-\\u0020"<>\\\\^`{|}]*$/u'),"iri-reference":r('/^[A-Za-z][\\d+-.A-Za-z]*:[^\\u0000-\\u0020"<>\\\\^`{|}]*$/u'),ipv4:r("/^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/"),ipv6:r("/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))$/i"),uri:"".concat(r("/\\/|:/")," && ").concat(r("/^(?:[a-z][a-z0-9+\\-.]*:)(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\\?(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i")),"uri-reference":r("/^(?:[a-z][a-z0-9+\\-.]*:)?(?:\\/?\\/(?:(?:[a-z0-9\\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\\.[a-z0-9\\-._~!$&'()*+,;=:]+)\\]|(?:(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d\\d?)|(?:[a-z0-9\\-._~!$&'\"()*+,;=]|%[0-9a-f]{2})*)(?::\\d*)?(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*|\\/(?:(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})+(?:\\/(?:[a-z0-9\\-._~!$&'\"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\\?(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\\-._~!$&'\"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i"),"uri-template":r("/^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i"),url:r("/^(?:https?|ftp):\\/\\/(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)(?:\\.(?:[a-z0-9\\u{00a1}-\\u{ffff}]+-)*[a-z0-9\\u{00a1}-\\u{ffff}]+)*(?:\\.(?:[a-z\\u{00a1}-\\u{ffff}]{2,})))(?::\\d{2,5})?(?:\\/[^\\s]*)?$/iu"),"date-time":r("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T|\\s)([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$/i"),date:r("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/"),time:r("/^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](?:\\.[0-9]{1,9})?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$/i"),duration:r("/^P(?!$)((\\d+Y)?(\\d+M)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+S)?)?|(\\d+W)?)$/"),"json-pointer":r("/^(?:\\/(?:[^~/]|~0|~1)*)*$/"),"relative-json-pointer":r("/^(?:0|[1-9][0-9]*)(?:#|(?:\\/(?:[^~/]|~0|~1)*)*)$/")}},5724:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Escaper=void 0,(r=n||(t.Escaper=n={})).variable=function(e){return!1===r.reserved(e)&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(e)},r.reserved=function(e){return i.has(e)};var r,n,i=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","module","new","null","package","public","private","protected","return","super","switch","this","throw","true","try","typeof","var","void","while","with"])},92989:function(e,t,r){"use strict";var n=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.relativeJsonPointer=t.jsonPointer=t.duration=t.time=t.date=t.datetime=t.url=t.uriTemplate=t.uriReference=t.uri=t.ipv6=t.ipv4=t.iriReference=t.iri=t.idnHostname=t.idnEmail=t.hostname=t.email=t.uuid=t.regex=t.password=t.byte=t.pattern=t.length=t.pick=t.array=t.string=t.number=t.bigint=t.integer=t.boolean=void 0;var o=i(r(14419)),a="abcdefghijklmnopqrstuvwxyz";t.boolean=function(){return .5>Math.random()},t.integer=function(e,t){return null!=e||(e=0),null!=t||(t=100),Math.floor(Math.random()*(t-e+1))+e},t.bigint=function(e,r){return BigInt((0,t.integer)(Number(null!=e?e:BigInt(0)),Number(null!=r?r:BigInt(100))))},t.number=function(e,t){return null!=e||(e=0),null!=t||(t=100),Math.random()*(t-e)+e},t.string=function(e){return Array(null!=e?e:(0,t.integer)(5,10)).fill(0).map(function(){return a[(0,t.integer)(0,a.length-1)]}).join("")},t.array=function(e,r,n){if(null!=r||(r=(0,t.length)()),null!=n||(n=!1),!1===n)return Array(null!=r?r:(0,t.length)()).fill(0).map(function(t,r){return e(r)});for(var i=new Set;i.sizet=>r=>{let n=e.get(t);if(n)return n;let i=r();return e.set(t,i),i},function(e){e.visit=t=>r=>{let n=new Set,i=o=>{if(t(o),e.isReference(o)){let e=o.$ref.split("#/components/schemas/").pop();if(!0===n.has(e))return;n.add(e);let t=r.schemas?.[e];void 0!==t&&i(t)}else if(e.isOneOf(o))o.oneOf.forEach(i);else if(e.isObject(o)){for(let e of Object.values(o.properties??{}))i(e);"object"==typeof o.additionalProperties&&null!==o.additionalProperties&&i(o.additionalProperties)}else e.isArray(o)?i(o.items):e.isTuple(o)&&((o.prefixItems??[]).forEach(i),"object"==typeof o.additionalItems&&null!==o.additionalItems&&i(o.additionalItems))};return i},e.isNull=e=>"null"===e.type,e.isUnknown=t=>void 0===t.type&&!e.isConstant(t)&&!e.isOneOf(t)&&!e.isReference(t),e.isConstant=e=>void 0!==e.const,e.isBoolean=e=>"boolean"===e.type,e.isInteger=e=>"integer"===e.type,e.isNumber=e=>"number"===e.type,e.isString=e=>"string"===e.type,e.isArray=e=>"array"===e.type&&void 0!==e.items,e.isTuple=e=>"array"===e.type&&void 0!==e.prefixItems,e.isObject=e=>"object"===e.type,e.isReference=e=>void 0!==e.$ref,e.isOneOf=e=>void 0!==e.oneOf,e.covers=e=>t(e)(new Map);let t=e=>t=>(i,o)=>{let a=t.get(i)?.get(o);if(void 0!==a)return a;let s=n.take(t)(i)(()=>new Map);s.set(o,!0);let c=r(e)(t)(i,o);return s.set(o,c),c},r=t=>r=>(n,o)=>{if(n===o||e.isReference(n)&&e.isReference(o)&&n.$ref===o.$ref)return!0;let a=p(t)(n),s=p(t)(o);return!!a.some(t=>e.isUnknown(t))||!s.some(t=>e.isUnknown(t))&&s.every(e=>a.some(n=>i(t)(r)(n,e)))},i=t=>r=>(n,i)=>{if(n===i||e.isUnknown(n))return!0;if(e.isUnknown(i));else if(e.isNull(n))return e.isNull(i);else if(e.isConstant(n))return e.isConstant(i)&&n.const===i.const;else if(e.isBoolean(n))return e.isBoolean(i)||e.isConstant(i)&&"boolean"==typeof i.const;else if(e.isInteger(n))return(e.isInteger(i)||e.isConstant(i))&&s(n,i);else if(e.isNumber(n))return(e.isConstant(i)||e.isInteger(i)||e.isNumber(i))&&c(n,i);else if(e.isString(n))return(e.isConstant(i)||e.isString(i))&&u(n,i);else if(e.isArray(n))return(e.isArray(i)||e.isTuple(i))&&o(t)(r)(n,i);else if(e.isObject(n))return e.isObject(i)&&a(t)(r)(n,i);else if(e.isReference(n))return e.isReference(i)&&n.$ref===i.$ref;return!1},o=r=>n=>(i,o)=>e.isTuple(o)?o.prefixItems.every(e=>t(r)(n)(i.items,e))&&(void 0===o.additionalItems||"object"==typeof o.additionalItems&&t(r)(n)(i.items,o.additionalItems)):(void 0===i.minItems||void 0!==o.minItems&&i.minItems<=o.minItems)&&(void 0===i.maxItems||void 0!==o.maxItems&&i.maxItems>=o.maxItems)&&t(r)(n)(i.items,o.items),a=e=>r=>(n,i)=>(!!n.additionalProperties||!i.additionalProperties)&&(!n.additionalProperties||!i.additionalProperties||("object"!=typeof n.additionalProperties||!0!==i.additionalProperties)&&("object"!=typeof n.additionalProperties||"object"!=typeof i.additionalProperties||!!t(e)(r)(n.additionalProperties,i.additionalProperties)))&&Object.entries(i.properties??{}).every(([o,a])=>{let s=n.properties?.[o];return void 0!==s&&((n.required?.includes(o)??!1)!==!0||(i.required?.includes(o)??!1)!==!1)&&t(e)(r)(s,a)}),s=(t,r)=>e.isConstant(r)?"number"==typeof r.const&&Number.isInteger(r.const):[t.type===r.type,void 0===t.minimum||void 0!==r.minimum&&t.minimum<=r.minimum,void 0===t.maximum||void 0!==r.maximum&&t.maximum>=r.maximum,!0!==t.exclusiveMinimum||void 0===t.minimum||void 0!==r.minimum&&(!0===r.exclusiveMinimum||t.minimumr.maximum),void 0===t.multipleOf||void 0!==r.multipleOf&&r.multipleOf/t.multipleOf===Math.floor(r.multipleOf/t.multipleOf)].every(e=>e),c=(t,r)=>e.isConstant(r)?"number"==typeof r.const:[t.type===r.type||"number"===t.type&&"integer"===r.type,void 0===t.minimum||void 0!==r.minimum&&t.minimum<=r.minimum,void 0===t.maximum||void 0!==r.maximum&&t.maximum>=r.maximum,!0!==t.exclusiveMinimum||void 0===t.minimum||void 0!==r.minimum&&(!0===r.exclusiveMinimum||t.minimumr.maximum),void 0===t.multipleOf||void 0!==r.multipleOf&&r.multipleOf/t.multipleOf===Math.floor(r.multipleOf/t.multipleOf)].every(e=>e),u=(t,r)=>e.isConstant(r)?"string"==typeof r.const:[void 0===t.format||void 0!==r.format&&l(t.format,r.format),void 0===t.pattern||t.pattern===r.pattern,void 0===t.minLength||void 0!==r.minLength&&t.minLength<=r.minLength,void 0===t.maxLength||void 0!==r.maxLength&&t.maxLength>=r.maxLength].every(e=>e),l=(e,t)=>e===t||"idn-email"===e&&"email"===t||"idn-hostname"===e&&"hostname"===t||["uri","iri"].includes(e)&&"url"===t||"iri"===e&&"uri"===t||"iri-reference"===e&&"uri-reference"===t,p=t=>r=>(r=f(t)(r),e.isOneOf(r))?r.oneOf.map(p(t)).flat():[r],f=t=>r=>e.isReference(r)?f(t)(t.schemas[r.$ref.replace("#/components/schemas/","")]):r}(i||(i={})),(k=o||(o={})).visit=(e,t)=>{if(t(e),k.isOneOf(e))e.oneOf.forEach(e=>k.visit(e,t));else if(k.isObject(e)){for(let[r,n]of Object.entries(e.properties??{}))k.visit(n,t);"object"==typeof e.additionalProperties&&null!==e.additionalProperties&&k.visit(e.additionalProperties,t)}else k.isArray(e)&&k.visit(e.items,t)},k.isOneOf=e=>void 0!==e.oneOf,k.isObject=e=>"object"===e.type,k.isArray=e=>"array"===e.type,k.isBoolean=e=>"boolean"===e.type,k.isInteger=e=>"integer"===e.type,k.isNumber=e=>"number"===e.type,k.isString=e=>"string"===e.type,k.isNullOnly=e=>"null"===e.type,k.isNullable=e=>!k.isUnknown(e)&&(k.isNullOnly(e)||(k.isOneOf(e)?e.oneOf.some(k.isNullable):!0===e.nullable)),k.isUnknown=e=>!k.isOneOf(e)&&void 0===e.type,(a||(a={})).is=e=>"object"==typeof e&&null!==e&&"string"==typeof e.openapi&&e.openapi.startsWith("3.0"),(s||(s={})).is=e=>"object"==typeof e&&null!==e&&"string"==typeof e.openapi&&e.openapi.startsWith("3.1"),(c||(c={})).is=e=>"object"==typeof e&&null!==e&&"string"==typeof e.swagger&&e.swagger.startsWith("2.0"),function(e){var t;let r;e.convert=t=>({...t,components:e.convertComponents(t.components??{}),paths:t.paths?Object.fromEntries(Object.entries(t.paths).filter(([e,t])=>void 0!==t).map(([e,r])=>[e,n(t)(r)])):void 0,openapi:"3.1.0","x-samchon-emended":!0});let n=e=>t=>({...t,...t.get?{get:o(e)(t)(t.get)}:void 0,...t.put?{put:o(e)(t)(t.put)}:void 0,...t.post?{post:o(e)(t)(t.post)}:void 0,...t.delete?{delete:o(e)(t)(t.delete)}:void 0,...t.options?{options:o(e)(t)(t.options)}:void 0,...t.head?{head:o(e)(t)(t.head)}:void 0,...t.patch?{patch:o(e)(t)(t.patch)}:void 0,...t.trace?{trace:o(e)(t)(t.trace)}:void 0}),o=e=>t=>n=>({...n,parameters:void 0!==t.parameters||void 0!==n.parameters?[...t.parameters??[],...n.parameters??[]].map(t=>{if(!r.isReference(t))return a(e.components??{})(t);let n=t.$ref.startsWith("#/components/headers/")?e.components?.headers?.[t.$ref.split("/").pop()??""]:e.components?.parameters?.[t.$ref.split("/").pop()??""];return void 0!==n?a(e.components??{})({...n,in:"header"}):void 0}).filter((e,t)=>void 0!==t):void 0,requestBody:n.requestBody?s(e)(n.requestBody):void 0,responses:n.responses?Object.fromEntries(Object.entries(n.responses).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,c(e)(r)]).filter(([e,t])=>void 0!==t)):void 0}),a=t=>n=>({...n,schema:e.convertSchema(t)(n.schema),examples:n.examples?Object.fromEntries(Object.entries(n.examples).map(([e,n])=>[e,r.isReference(n)?t.examples?.[n.$ref.split("/").pop()??""]:n]).filter(([e,t])=>void 0!==t)):void 0}),s=e=>t=>{if(r.isReference(t)){let r=e.components?.requestBodies?.[t.$ref.split("/").pop()??""];if(void 0===r)return;t=r}return{...t,content:t.content?u(e.components??{})(t.content):void 0}},c=e=>t=>{if(r.isReference(t)){let r=e.components?.responses?.[t.$ref.split("/").pop()??""];if(void 0===r)return;t=r}return{...t,content:t.content?u(e.components??{})(t.content):void 0,headers:t.headers?Object.fromEntries(Object.entries(t.headers).filter(([e,t])=>void 0!==t).map(([t,n])=>[t,(()=>{if(!1===r.isReference(n))return a(e.components??{})({...n,in:"header"});let t=n.$ref.startsWith("#/components/headers/")?e.components?.headers?.[n.$ref.split("/").pop()??""]:void 0;return void 0!==t?a(e.components??{})({...t,in:"header"}):void 0})()]).filter(([e,t])=>void 0!==t)):void 0}},u=t=>n=>Object.fromEntries(Object.entries(n).filter(([e,t])=>void 0!==t).map(([n,i])=>[n,{...i,schema:i.schema?e.convertSchema(t)(i.schema):void 0,examples:i.examples?Object.fromEntries(Object.entries(i.examples).map(([e,n])=>[e,r.isReference(n)?t.examples?.[n.$ref.split("/").pop()??""]:n]).filter(([e,t])=>void 0!==t)):void 0}]));e.convertComponents=t=>({schemas:t.schemas?Object.fromEntries(Object.entries(t.schemas).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,e.convertSchema(t)(n)])):void 0,securitySchemes:t.securitySchemes}),e.convertSchema=t=>n=>{let o={value:!1,default:void 0},a=[],s={title:n.title,description:n.description,...Object.fromEntries(Object.entries(n).filter(([e,t])=>e.startsWith("x-")&&void 0!==t)),example:n.example,examples:n.examples},c=n=>{!0===n.nullable&&(o.value||(o.value=!0),null===n.default&&(o.default=null)),Array.isArray(n.enum)&&n.enum?.length&&n.enum?.some(e=>null===e)&&(o.value||(o.value=!0)),r.isAnyOf(n)?n.anyOf.forEach(c):r.isOneOf(n)?n.oneOf.forEach(c):r.isAllOf(n)?a.push(l(t)(n)):r.isBoolean(n)||r.isInteger(n)||r.isNumber(n)||r.isString(n)?n.enum?.length&&n.enum.filter(e=>null!==e).length?a.push(...n.enum.filter(e=>null!==e).map(e=>({const:e}))):a.push({...n,default:n.default??void 0,enum:void 0}):r.isArray(n)?a.push({...n,items:e.convertSchema(t)(n.items)}):r.isObject(n)?a.push({...n,properties:n.properties?Object.fromEntries(Object.entries(n.properties).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,e.convertSchema(t)(n)])):void 0,additionalProperties:n.additionalProperties?"object"==typeof n.additionalProperties&&null!==n.additionalProperties?e.convertSchema(t)(n.additionalProperties):n.additionalProperties:void 0}):(r.isReference(n),a.push(n))};if(c(n),!0!==o.value||a.some(e=>"null"===e.type)||a.push({type:"null",default:o.default}),2===a.length&&1===a.filter(e=>i.isNull(e)).length){let e=a.filter(e=>!1===i.isNull(e))[0];for(let t of["title","description","deprecated","example","examples"])void 0!==e[t]&&delete e[t]}return{...0===a.length?{type:void 0}:1===a.length?{...a[0]}:{oneOf:a.map(e=>({...e,nullable:void 0}))},...s,nullable:void 0}};let l=t=>r=>{let n=r.allOf.map(e=>p(t)(e));return n.some(e=>null===e)?{type:void 0,allOf:void 0}:{...r,type:"object",properties:Object.fromEntries(n.map(e=>Object.entries(e?.properties??{})).flat().map(([r,n])=>[r,e.convertSchema(t)(n)])),allOf:void 0}},p=e=>(t,n=new Set)=>r.isObject(t)?void 0===t.properties||t.additionalProperties?null:t:n.has(t)?null:(n.add(t),r.isReference(t)?p(e)(e.schemas?.[t.$ref.split("/").pop()??""]??{},n):null);(t=r=e.TypeChecker||(e.TypeChecker={})).isBoolean=e=>"boolean"===e.type,t.isInteger=e=>"integer"===e.type,t.isNumber=e=>"number"===e.type,t.isString=e=>"string"===e.type,t.isArray=e=>"array"===e.type,t.isObject=e=>"object"===e.type,t.isReference=e=>void 0!==e.$ref,t.isAllOf=e=>void 0!==e.allOf,t.isAnyOf=e=>void 0!==e.anyOf,t.isOneOf=e=>void 0!==e.oneOf,t.isNullOnly=e=>"null"===e.type}(u||(u={})),function(e){e.downgrade=r=>{let n=e.downgradeComponents(r.components);return{openapi:"3.0.0",servers:r.servers,info:r.info,components:n.downgraded,paths:r.paths?Object.fromEntries(Object.entries(r.paths).filter(([e,t])=>void 0!==t).map(([e,r])=>[e,t(n)(r)])):void 0,security:r.security,tags:r.tags}};let t=e=>t=>({...t,...t.get?{get:r(e)(t.get)}:void 0,...t.put?{put:r(e)(t.put)}:void 0,...t.post?{post:r(e)(t.post)}:void 0,...t.delete?{delete:r(e)(t.delete)}:void 0,...t.options?{options:r(e)(t.options)}:void 0,...t.head?{head:r(e)(t.head)}:void 0,...t.patch?{patch:r(e)(t.patch)}:void 0,...t.trace?{trace:r(e)(t.trace)}:void 0}),r=e=>t=>({...t,parameters:t.parameters?t.parameters.map(n(e)):void 0,requestBody:t.requestBody?o(e)(t.requestBody):void 0,responses:t.responses?Object.fromEntries(Object.entries(t.responses).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,a(e)(r)])):void 0}),n=t=>r=>({...r,schema:e.downgradeSchema(t)(r.schema)}),o=e=>t=>({...t,content:t.content?s(e)(t.content):void 0}),a=t=>r=>({...r,content:r.content?s(t)(r.content):void 0,headers:r.headers?Object.fromEntries(Object.entries(r.headers).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,{...n,schema:e.downgradeSchema(t)(n.schema)}])):void 0}),s=t=>r=>Object.fromEntries(Object.entries(r).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,{...n,schema:n?.schema?e.downgradeSchema(t)(n.schema):void 0}]));e.downgradeComponents=t=>{let r={original:t,downgraded:{securitySchemes:t.securitySchemes}};if(t.schemas)for(let[n,i]of(r.downgraded.schemas={},Object.entries(t.schemas)))void 0!==i&&(r.downgraded.schemas[n]=e.downgradeSchema(r)(i));return r},e.downgradeSchema=t=>r=>{let n=u(new Set)(t.original)(r),o=[],a={title:r.title,description:r.description,example:r.example,examples:r.examples,...Object.fromEntries(Object.entries(r).filter(([e,t])=>e.startsWith("x-")&&void 0!==t))},s=r=>{i.isBoolean(r)?o.push({type:"boolean"}):i.isBoolean(r)||i.isInteger(r)||i.isNumber(r)||i.isString(r)||i.isReference(r)?o.push({...r}):i.isArray(r)?o.push({...r,items:e.downgradeSchema(t)(r.items)}):i.isTuple(r)?o.push({...r,items:(()=>{if(!0===r.additionalItems)return{};let n=[...r.prefixItems,..."object"==typeof r.additionalItems?[e.downgradeSchema(t)(r.additionalItems)]:[]];return 0===n.length?{}:{oneOf:n.map(e.downgradeSchema(t))}})(),minItems:r.prefixItems.length,maxItems:!0==!!r.additionalItems?void 0:r.prefixItems.length,prefixItems:void 0,additionalItems:void 0}):i.isObject(r)?o.push({...r,properties:r.properties?Object.fromEntries(Object.entries(r.properties).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,e.downgradeSchema(t)(n)])):void 0,additionalProperties:"object"==typeof r.additionalProperties?e.downgradeSchema(t)(r.additionalProperties):r.additionalProperties,required:r.required}):i.isOneOf(r)&&r.oneOf.forEach(s)};if(s(r),(e=>{let t=e=>{let t=o.find(t=>t.type===typeof e);void 0!==t?(t.enum??(t.enum=[]),t.enum.push(e)):o.push({type:typeof e,enum:[e]})};if(i.isConstant(e))t(e.const);else if(i.isOneOf(e))for(let r of e.oneOf)i.isConstant(r)&&t(r.const)})(r),!0===n)for(let e of o)i.isReference(e)?c(new Set)(t)(e):e.nullable=!0;return!0===n&&0===o.length?{type:"null",...a}:{...0===o.length?{type:void 0}:1===o.length?{...o[0]}:{oneOf:o},...a}};let c=t=>r=>n=>{var o;let a=n.$ref.split("/").pop();if(a.endsWith(".Nullable"))return;let s=r.original.schemas?.[a];void 0!==s&&!0!==u(t)(r.original)(s)&&(r.downgraded.schemas?.[`${a}.Nullable`]===void 0&&((o=r.downgraded).schemas??(o.schemas={}),r.downgraded.schemas[`${a}.Nullable`]={},r.downgraded.schemas[`${a}.Nullable`]=e.downgradeSchema(r)(i.isOneOf(s)?{...s,oneOf:[...s.oneOf,{type:"null"}]}:{oneOf:[s,{type:"null"}],title:s.title,description:s.description,example:s.example,examples:s.examples,...Object.fromEntries(Object.entries(s).filter(([e,t])=>e.startsWith("x-")&&void 0!==t))})),n.$ref+=".Nullable")},u=e=>t=>r=>{if(i.isNull(r))return!0;if(i.isReference(r)){if(e.has(r.$ref))return!1;e.add(r.$ref);let n=r.$ref.split("/").pop(),i=t.schemas?.[n];return!!i&&u(e)(t)(i)}return i.isOneOf(r)&&r.oneOf.some(u(e)(t))}}(l||(l={})),function(e){var t;let r;e.convert=e=>!0===e["x-samchon-emended"]?e:{...e,components:l(e.components??{}),paths:e.paths?Object.fromEntries(Object.entries(e.paths).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,i(e)(r)])):void 0,webhooks:e.webhooks?Object.fromEntries(Object.entries(e.webhooks).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,n(e)(r)]).filter(([e,t])=>void 0!==t)):void 0,"x-samchon-emended":!0};let n=e=>t=>{if(!r.isReference(t))return i(e)(t);let n=e.components?.pathItems?.[t.$ref.split("/").pop()??""];return n?i(e)(n):void 0},i=e=>t=>({...t,...t.get?{get:o(e)(t)(t.get)}:void 0,...t.put?{put:o(e)(t)(t.put)}:void 0,...t.post?{post:o(e)(t)(t.post)}:void 0,...t.delete?{delete:o(e)(t)(t.delete)}:void 0,...t.options?{options:o(e)(t)(t.options)}:void 0,...t.head?{head:o(e)(t)(t.head)}:void 0,...t.patch?{patch:o(e)(t)(t.patch)}:void 0,...t.trace?{trace:o(e)(t)(t.trace)}:void 0}),o=e=>t=>n=>({...n,parameters:void 0!==t.parameters||void 0!==n.parameters?[...t.parameters??[],...n.parameters??[]].map(t=>{if(!r.isReference(t))return a(e.components??{})(t);let n=t.$ref.startsWith("#/components/headers/")?e.components?.headers?.[t.$ref.split("/").pop()??""]:e.components?.parameters?.[t.$ref.split("/").pop()??""];return void 0!==n?a(e.components??{})({...n,in:"header"}):void 0}).filter((e,t)=>void 0!==t):void 0,requestBody:n.requestBody?s(e)(n.requestBody):void 0,responses:n.responses?Object.fromEntries(Object.entries(n.responses).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,c(e)(r)]).filter(([e,t])=>void 0!==t)):void 0}),a=e=>t=>({...t,schema:p(e)(t.schema),examples:t.examples?Object.fromEntries(Object.entries(t.examples).map(([t,n])=>[t,r.isReference(n)?e.examples?.[n.$ref.split("/").pop()??""]:n]).filter(([e,t])=>void 0!==t)):void 0}),s=e=>t=>{if(r.isReference(t)){let r=e.components?.requestBodies?.[t.$ref.split("/").pop()??""];if(void 0===r)return;t=r}return{...t,content:t.content?u(e.components??{})(t.content):void 0}},c=e=>t=>{if(r.isReference(t)){let r=e.components?.responses?.[t.$ref.split("/").pop()??""];if(void 0===r)return;t=r}return{...t,content:t.content?u(e.components??{})(t.content):void 0,headers:t.headers?Object.fromEntries(Object.entries(t.headers).filter(([e,t])=>void 0!==t).map(([t,n])=>[t,(()=>{if(!1===r.isReference(n))return a(e.components??{})({...n,in:"header"});let t=n.$ref.startsWith("#/components/headers/")?e.components?.headers?.[n.$ref.split("/").pop()??""]:void 0;return void 0!==t?a(e.components??{})({...t,in:"header"}):void 0})()]).filter(([e,t])=>void 0!==t)):void 0}},u=e=>t=>Object.fromEntries(Object.entries(t).filter(([e,t])=>void 0!==t).map(([t,n])=>[t,{...n,schema:n.schema?p(e)(n.schema):void 0,examples:n.examples?Object.fromEntries(Object.entries(n.examples).map(([t,n])=>[t,r.isReference(n)?e.examples?.[n.$ref.split("/").pop()??""]:n]).filter(([e,t])=>void 0!==t)):void 0}])),l=e=>({schemas:e.schemas?Object.fromEntries(Object.entries(e.schemas).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,p(e)(r)])):void 0,securitySchemes:e.securitySchemes}),p=e=>t=>{let n=[],i={title:t.title,description:t.description,...Object.fromEntries(Object.entries(t).filter(([e,t])=>e.startsWith("x-")&&void 0!==t))},o={value:!1,default:void 0},a=t=>{if(!0===t.nullable&&(o.value||(o.value=!0),null===t.default&&(o.default=null)),Array.isArray(t.enum)&&t.enum?.length&&t.enum?.some(e=>null===e)&&(o.value||(o.value=!0)),r.isMixed(t))for(let e of(void 0!==t.const&&a({...t,type:void 0,oneOf:void 0,anyOf:void 0,allOf:void 0,$ref:void 0}),void 0!==t.oneOf&&a({...t,type:void 0,anyOf:void 0,allOf:void 0,$ref:void 0}),void 0!==t.anyOf&&a({...t,type:void 0,oneOf:void 0,allOf:void 0,$ref:void 0}),void 0!==t.allOf&&a({...t,type:void 0,oneOf:void 0,anyOf:void 0,$ref:void 0}),t.type))"boolean"===e||"number"===e||"string"===e?a({...t,enum:t.enum?.length&&t.enum.filter(e=>null!==e)?t.enum.filter(t=>typeof t===e):void 0,type:e}):"integer"===e?a({...t,enum:t.enum?.length&&t.enum.filter(e=>null!==e)?t.enum.filter(e=>null!==e&&"number"==typeof e&&Number.isInteger(e)):void 0,type:e}):a({...t,type:e});else if(r.isOneOf(t))t.oneOf.forEach(a);else if(r.isAnyOf(t))t.anyOf.forEach(a);else if(r.isAllOf(t))n.push(f(e)(t));else if(r.isBoolean(t)){if(t.enum?.length&&t.enum.filter(e=>null!==e).length)for(let e of t.enum.filter(e=>null!==e))n.push({const:e,...{...t,type:void 0,enum:void 0,default:void 0}});else n.push({...t,default:t.default??void 0,enum:void 0})}else if(r.isInteger(t)||r.isNumber(t)){if(t.enum?.length&&t.enum.filter(e=>null!==e))for(let e of t.enum.filter(e=>null!==e))n.push({const:e,...{...t,type:void 0,enum:void 0,default:void 0,minimum:void 0,maximum:void 0,exclusiveMinimum:void 0,exclusiveMaximum:void 0,multipleOf:void 0}});else n.push({...t,default:t.default??void 0,enum:void 0,..."number"==typeof t.exclusiveMinimum?{minimum:t.exclusiveMinimum,exclusiveMinimum:!0}:{exclusiveMinimum:t.exclusiveMinimum},..."number"==typeof t.exclusiveMaximum?{maximum:t.exclusiveMaximum,exclusiveMaximum:!0}:{exclusiveMaximum:t.exclusiveMaximum}})}else if(r.isString(t)){if(t.enum?.length&&t.enum.filter(e=>null!==e).length)for(let e of t.enum.filter(e=>null!==e))n.push({const:e,...{...t,type:void 0,enum:void 0,default:void 0}});else n.push({...t,default:t.default??void 0,enum:void 0})}else r.isArray(t)?Array.isArray(t.items)?n.push({...t,items:void 0,prefixItems:t.items.map(p(e)),additionalItems:"object"==typeof t.additionalItems&&null!==t.additionalItems?p(e)(t.additionalItems):t.additionalItems}):Array.isArray(t.prefixItems)?n.push({...t,items:void 0,prefixItems:t.prefixItems.map(p(e)),additionalItems:"object"==typeof t.additionalItems&&null!==t.additionalItems?p(e)(t.additionalItems):t.additionalItems}):void 0===t.items?n.push({...t,items:void 0,prefixItems:[]}):n.push({...t,items:p(e)(t.items),prefixItems:void 0,additionalItems:void 0}):r.isObject(t)?n.push({...t,properties:t.properties?Object.fromEntries(Object.entries(t.properties).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,p(e)(r)])):void 0,additionalProperties:t.additionalProperties?"object"==typeof t.additionalProperties&&null!==t.additionalProperties?p(e)(t.additionalProperties):t.additionalProperties:void 0}):r.isRecursiveReference(t)?n.push({...t,$ref:t.$recursiveRef,$recursiveRef:void 0}):n.push(t)};return a(t),!0!==o.value||n.some(e=>"null"===e.type)||n.push({type:"null",default:o.default}),{...0===n.length?{type:void 0}:1===n.length?{...n[0]}:{oneOf:n.map(e=>({...e,nullable:void 0}))},...i,nullable:void 0}},f=e=>t=>{let r=t.allOf.map(t=>d(e)(t));return r.some(e=>null===e)?{type:void 0,allOf:void 0}:{...t,type:"object",properties:Object.fromEntries(r.map(e=>Object.entries(e?.properties??{})).flat().map(([t,r])=>[t,p(e)(r)])),allOf:void 0}},d=e=>(t,n=new Set)=>r.isObject(t)?void 0===t.properties||t.additionalProperties?null:t:n.has(t)?null:(n.add(t),r.isReference(t)?d(e)(e.schemas?.[t.$ref.split("/").pop()??""]??{},n):r.isRecursiveReference(t)?d(e)(e.schemas?.[t.$recursiveRef.split("/").pop()??""]??{},n):null);(t=r||(r={})).isConstant=e=>void 0!==e.const,t.isBoolean=e=>"boolean"===e.type,t.isInteger=e=>"integer"===e.type,t.isNumber=e=>"number"===e.type,t.isString=e=>"string"===e.type,t.isArray=e=>"array"===e.type,t.isObject=e=>"object"===e.type,t.isReference=e=>void 0!==e.$ref,t.isRecursiveReference=e=>void 0!==e.$recursiveRef,t.isAllOf=e=>void 0!==e.allOf,t.isAnyOf=e=>void 0!==e.anyOf,t.isOneOf=e=>void 0!==e.oneOf,t.isNullOnly=e=>"null"===e.type,t.isMixed=e=>Array.isArray(e.type)}(p||(p={})),function(e){var t;let r;e.convert=e=>({openapi:"3.1.0",info:e.info,components:u(e),paths:e.paths?Object.fromEntries(Object.entries(e.paths).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,n(e)(r)])):void 0,servers:e.host?[{url:e.host}]:void 0,security:e.security,tags:e.tags,"x-samchon-emended":!0});let n=e=>t=>({...t,...t.get?{get:o(e)(t)(t.get)}:void 0,...t.put?{put:o(e)(t)(t.put)}:void 0,...t.post?{post:o(e)(t)(t.post)}:void 0,...t.delete?{delete:o(e)(t)(t.delete)}:void 0,...t.options?{options:o(e)(t)(t.options)}:void 0,...t.head?{head:o(e)(t)(t.head)}:void 0,...t.patch?{patch:o(e)(t)(t.patch)}:void 0,...t.trace?{trace:o(e)(t)(t.trace)}:void 0}),o=e=>t=>n=>({...n,parameters:void 0!==t.parameters||void 0!==n.parameters?[...t.parameters??[],...n.parameters??[]].map(t=>r.isReference(t)?e.parameters?.[t.$ref.split("/").pop()??""]:t).filter(e=>void 0!==e&&"body"!==e.in&&void 0===e.schema).map(a):void 0,requestBody:(()=>{let t=n.parameters?.find(t=>(r.isReference(t)&&(t=e.parameters?.[t.$ref.split("/").pop()??""]),t?.schema!==void 0));return t?s(t):void 0})(),responses:n.responses?Object.fromEntries(Object.entries(n.responses).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,c(e)(r)]).filter(([e,t])=>void 0!==t)):void 0}),a=t=>({name:t.name,in:t.in,description:t.description,schema:e.convertSchema(t),required:!0}),s=t=>({description:t.description,content:{"application/json":{schema:e.convertSchema(t.schema)}}}),c=t=>n=>{if(r.isReference(n)){let e=t.responses?.[n.$ref.split("/").pop()??""];if(void 0===e)return;n=e}return{description:n.description,content:n.schema?{"application/json":{schema:e.convertSchema(n.schema),example:n.example}}:void 0,headers:n.headers?Object.fromEntries(Object.entries(n.headers).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,{schema:e.convertSchema(r),in:"header"}])):void 0}},u=t=>({schemas:t.definitions?Object.fromEntries(Object.entries(t.definitions).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,e.convertSchema(r)])):void 0,securitySchemes:t.securityDefinitions?Object.fromEntries(Object.entries(t.securityDefinitions).filter(([e,t])=>void 0!==t).map(([e,t])=>[e,l(t)]).filter(([e,t])=>void 0!==t)):void 0}),l=e=>{if("apiKey"===e.type)return e;if("basic"===e.type)return{type:"http",scheme:"basic",description:e.description};if("oauth2"===e.type){if("implicit"===e.flow)return{type:"oauth2",description:e.description,flows:{implicit:{authorizationUrl:e.authorizationUrl,scopes:e.scopes}}};if("accessCode"===e.flow)return{type:"oauth2",description:e.description,flows:{authorizationCode:{authorizationUrl:e.authorizationUrl,tokenUrl:e.tokenUrl,scopes:e.scopes}}};if("password"===e.flow)return{type:"oauth2",description:e.description,flows:{password:{tokenUrl:e.tokenUrl,scopes:e.scopes}}};else if("application"===e.flow)return{type:"oauth2",description:e.description,flows:{clientCredentials:{tokenUrl:e.tokenUrl,scopes:e.scopes}}}}};e.convertSchema=t=>{let n={value:!1,default:void 0},o=[],a={title:t.title,description:t.description,...Object.fromEntries(Object.entries(t).filter(([e,t])=>e.startsWith("x-")&&void 0!==t)),example:t.example,examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0},s=t=>{!0===t["x-nullable"]&&(n.value||(n.value=!0),null===t.default&&(n.default=null)),Array.isArray(t.enum)&&t.enum?.length&&t.enum?.some(e=>null===e)&&(n.value||(n.value=!0)),r.isAnyOf(t)?t["x-anyOf"].forEach(s):r.isOneOf(t)?t["x-oneOf"].forEach(s):r.isBoolean(t)||r.isInteger(t)||r.isNumber(t)||r.isString(t)?t.enum?.length&&t.enum.filter(e=>null!==e).length?o.push(...t.enum.filter(e=>null!==e).map(e=>({const:e}))):o.push({...t,default:t.default??void 0,examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0,enum:void 0}):r.isArray(t)?o.push({...t,items:e.convertSchema(t.items),examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0}):r.isObject(t)?o.push({...t,properties:t.properties?Object.fromEntries(Object.entries(t.properties).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,e.convertSchema(r)])):void 0,additionalProperties:t.additionalProperties?"object"==typeof t.additionalProperties&&null!==t.additionalProperties?e.convertSchema(t.additionalProperties):t.additionalProperties:void 0,examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0}):r.isReference(t)?o.push({...t,$ref:t.$ref.replace("#/definitions/","#/components/schemas/"),examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0}):o.push({...t,examples:t.examples?Object.fromEntries(t.examples.map((e,t)=>[t.toString(),e])):void 0})};if(s(t),!0!==n.value||o.some(e=>"null"===e.type)||o.push({type:"null",default:n.default}),2===o.length&&1===o.filter(e=>i.isNull(e)).length){let e=o.filter(e=>!1===i.isNull(e))[0];for(let t of["title","description","deprecated","example","examples"])void 0!==e[t]&&delete e[t]}return{...0===o.length?{type:void 0}:1===o.length?{...o[0]}:{oneOf:o.map(e=>({...e,"x-nullable":void 0}))},...a,"x-nullable":void 0}},(t=r||(r={})).isBoolean=e=>"boolean"===e.type,t.isInteger=e=>"integer"===e.type,t.isNumber=e=>"number"===e.type,t.isString=e=>"string"===e.type,t.isArray=e=>"array"===e.type,t.isObject=e=>"object"===e.type,t.isReference=e=>void 0!==e.$ref,t.isOneOf=e=>void 0!==e["x-oneOf"],t.isAnyOf=e=>void 0!==e["x-anyOf"],t.isNullOnly=e=>"null"===e.type}(f||(f={})),function(e){e.downgrade=r=>{let n=e.downgradeComponents(r.components);return{swagger:"2.0",info:r.info,host:r.servers?.[0]?.url?r.servers[0].url.split("://").pop():"",definitions:n.downgraded,securityDefinitions:r.components?.securitySchemes?Object.fromEntries(Object.entries(r.components.securitySchemes).filter(([e,t])=>void 0!==t).map(([e,t])=>c(t).map(t=>[e,t])).flat()):void 0,paths:r.paths?Object.fromEntries(Object.entries(r.paths).filter(([e,t])=>void 0!==t).map(([e,r])=>[e,t(n)(r)])):void 0,security:r.security,tags:r.tags}};let t=e=>t=>({...t,...t.get?{get:r(e)(t.get)}:void 0,...t.put?{put:r(e)(t.put)}:void 0,...t.post?{post:r(e)(t.post)}:void 0,...t.delete?{delete:r(e)(t.delete)}:void 0,...t.options?{options:r(e)(t.options)}:void 0,...t.head?{head:r(e)(t.head)}:void 0,...t.patch?{patch:r(e)(t.patch)}:void 0,...t.trace?{trace:r(e)(t.trace)}:void 0}),r=e=>t=>({...t,parameters:void 0!==t.parameters||void 0!==t.requestBody?[...(t.parameters??[]).map(n(e)),...t.requestBody?[o(e)(t.requestBody)]:[]]:void 0,responses:t.responses?Object.fromEntries(Object.entries(t.responses).filter(([e,t])=>void 0!==t).map(([t,r])=>[t,a(e)(r)])):void 0,requestBody:void 0,servers:void 0}),n=t=>(r,n)=>({...e.downgradeSchema(t)(r.schema),...r,required:r.schema?.required,schema:void 0,name:r.name??`p${n}`,example:void 0,examples:void 0}),o=t=>r=>({name:"body",in:"body",description:r.description,required:r.required,schema:e.downgradeSchema(t)(Object.values(r.content??{})[0]?.schema??{})}),a=t=>r=>({description:r.description,schema:e.downgradeSchema(t)(Object.values(r.content??{})[0]?.schema??{}),headers:r.headers?Object.fromEntries(Object.entries(r.headers).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,{...n,schema:e.downgradeSchema(t)(n.schema),example:void 0,examples:void 0}])):void 0});e.downgradeComponents=t=>{let r={original:t,downgraded:{}};if(t.schemas)for(let[n,i]of(r.downgraded.schemas={},Object.entries(t.schemas)))void 0!==i&&(r.downgraded[n.split("/").pop()]=e.downgradeSchema(r)(i));return r},e.downgradeSchema=t=>r=>{let n=u(new Set)(t.original)(r),o=[],a={title:r.title,description:r.description,example:r.example,examples:r.examples?Object.values(r.examples):void 0,...Object.fromEntries(Object.entries(r).filter(([e,t])=>e.startsWith("x-")&&void 0!==t))},c=r=>{i.isBoolean(r)?o.push({type:"boolean"}):i.isBoolean(r)||i.isInteger(r)||i.isNumber(r)||i.isString(r)?o.push({...r,examples:r.examples?Object.values(r.examples):void 0}):i.isReference(r)?o.push({$ref:`#/definitions/${r.$ref.split("/").pop()}`}):i.isArray(r)?o.push({...r,items:e.downgradeSchema(t)(r.items),examples:r.examples?Object.values(r.examples):void 0}):i.isTuple(r)?o.push({...r,items:(()=>{if(!0===r.additionalItems)return{};let n=[...r.prefixItems,..."object"==typeof r.additionalItems?[e.downgradeSchema(t)(r.additionalItems)]:[]];return 0===n.length?{}:{"x-oneOf":n.map(e.downgradeSchema(t))}})(),minItems:r.prefixItems.length,maxItems:!0==!!r.additionalItems?void 0:r.prefixItems.length,prefixItems:void 0,additionalItems:void 0,examples:r.examples?Object.values(r.examples):void 0}):i.isObject(r)?o.push({...r,properties:r.properties?Object.fromEntries(Object.entries(r.properties).filter(([e,t])=>void 0!==t).map(([r,n])=>[r,e.downgradeSchema(t)(n)])):void 0,additionalProperties:"object"==typeof r.additionalProperties?e.downgradeSchema(t)(r.additionalProperties):r.additionalProperties,required:r.required,examples:r.examples?Object.values(r.examples):void 0}):i.isOneOf(r)&&r.oneOf.forEach(c)};if(c(r),n)for(let e of o)i.isReference(e)?s(new Set)(t)(e):e["x-nullable"]=!0;return!0===n&&0===o.length?{type:"null",...a}:{...0===o.length?{type:void 0}:1===o.length?{...o[0]}:{"x-oneOf":o},...a,...o.length>1?{discriminator:void 0}:{}}};let s=t=>r=>n=>{let o=n.$ref.split("/").pop();if(o.endsWith(".Nullable"))return;let a=r.original.schemas?.[o];void 0!==a&&!0!==u(t)(r.original)(a)&&(void 0===r.downgraded[`${o}.Nullable`]&&(r.downgraded[`${o}.Nullable`]={},r.downgraded[`${o}.Nullable`]=e.downgradeSchema(r)(i.isOneOf(a)?{...a,oneOf:[...a.oneOf,{type:"null"}]}:{title:a.title,description:a.description,example:a.example,examples:a.examples?Object.values(a.examples):void 0,...Object.fromEntries(Object.entries(a).filter(([e,t])=>e.startsWith("x-")&&void 0!==t)),oneOf:[a,{type:"null"}]})),n.$ref+=".Nullable")},c=e=>{if("apiKey"===e.type)return[e];if("http"===e.type){if("basic"===e.scheme)return[{type:"basic",description:e.description}]}else if("oauth2"===e.type){let t=[];return e.flows.implicit&&t.push({type:"oauth2",flow:"implicit",authorizationUrl:e.flows.implicit.authorizationUrl,scopes:e.flows.implicit.scopes}),e.flows.password&&t.push({type:"oauth2",flow:"password",tokenUrl:e.flows.password.tokenUrl,scopes:e.flows.password.scopes}),e.flows.clientCredentials&&t.push({type:"oauth2",flow:"application",tokenUrl:e.flows.clientCredentials.tokenUrl,scopes:e.flows.clientCredentials.scopes}),e.flows.authorizationCode&&t.push({type:"oauth2",flow:"accessCode",authorizationUrl:e.flows.authorizationCode.authorizationUrl,tokenUrl:e.flows.authorizationCode.tokenUrl,scopes:e.flows.authorizationCode.scopes}),t}return[]},u=e=>t=>r=>{if(i.isNull(r))return!0;if(i.isReference(r)){if(e.has(r.$ref))return!1;e.add(r.$ref);let n=r.$ref.split("/").pop(),i=t.schemas?.[n];return!!i&&u(e)(t)(i)}return i.isOneOf(r)&&r.oneOf.some(u(e)(t))}}(d||(d={})),(E=h||(h={})).convert=function(e){if(s.is(e))return p.convert(e);if(a.is(e))return u.convert(e);if(c.is(e))return f.convert(e);throw TypeError("Unrecognized Swagger/OpenAPI version.")},E.downgrade=function(e,t){if("2.0"===t)return d.downgrade(e);if("3.0"===t)return l.downgrade(e);throw TypeError("Unrecognized Swagger/OpenAPI version.")},function(e){e.snake=function(e){let t=[];for(let r=0;r0;--e)t[e]-t[e-1]==1&&t.splice(e,1);if(0!==t.length&&0===t[0]&&t.splice(0,1),0===t.length)return e.toLowerCase();let r="";for(let n=0;n0===e.length?e:e[0]===e[0].toUpperCase()?e[0].toLowerCase()+e.substring(1):e)(e)},e.pascal=function(e){return t(e=>0===e.length?e:e[0]===e[0].toLowerCase()?e[0].toUpperCase()+e.substring(1):e)(e)};let t=e=>t=>{let r="";for(let e=0;e0!==e.length?e[0].toUpperCase()+e.slice(1).toLowerCase():e,A.pascal=e=>A.splitWithNormalization(e).filter(e=>"{"!==e[0]).map(y.pascal).join(""),A.splitWithNormalization=e=>e.split("/").map(e=>A.normalize(e.trim())).filter(e=>!!e.length),A.reJoinWithDecimalParameters=e=>e.split("/").filter(e=>!!e.length).map(e=>"{"===e[0]&&"}"===e[e.length-1]?`:${e.substring(1,e.length-1)}`:e).join("/"),A.normalize=e=>(e=e.split(".").join("_").split("-").join("_").trim(),F.has(e))?`_${e}`:(0!==e.length&&"0"<=e[0]&&e[0]<="9"&&(e=`_${e}`),e),A.escapeDuplicate=e=>t=>e.includes(t)?A.escapeDuplicate(e)(`_${t}`):t;let F=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","module","new","null","package","public","private","protected","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]);(M=_||(_={})).variable=e=>!1===M.reserved(e)&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(e),M.reserved=e=>B.has(e);let B=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","package","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]);!function(e){e.overwrite=e=>{for(let r of t(e=>e.emendedPath.split("/").filter(e=>!!e.length&&":"!==e[0]).map(m.normalize).map(e=>_.variable(e)?e:`_${e}`))(e).values())r.entries.forEach((e,t)=>{e.alias=m.escapeDuplicate([...r.children,...r.entries.filter((e,r)=>t!==r).map(e=>e.alias)].map(m.normalize))(m.normalize(e.alias)),e.route.accessor=[...r.namespace,e.alias];let n=[...e.route.parameters,...e.route.body?[e.route.body]:[],...e.route.headers?[e.route.headers]:[],...e.route.query?[e.route.query]:[]];n.forEach((t,r)=>t.key=m.escapeDuplicate(["connection",e.alias,...n.filter((e,t)=>r!==t).map(e=>e.key)])(t.key))})};let t=e=>t=>{let i=new Map;for(let o of t){let t=e(o),a=n.take(i)(t.join("."))(()=>({namespace:t,children:new Set,entries:[]}));a.entries.push({route:o,alias:r(o)}),t.slice(0,-1).forEach((e,r,o)=>{let s=t.slice(0,o.length-r);n.take(i)(s.join("."))(()=>({namespace:s,children:new Set,entries:[]})).children.add(a.namespace.at(-1))});let s=n.take(i)("")(()=>({namespace:[],children:new Set,entries:[]}));t.length&&s.children.add(t[0])}return i},r=e=>{let t="delete"===e.method?"erase":e.method;return 0===e.parameters.length?t:t+"By"+e.parameters.map(e=>m.capitalize(e.key)).join("And")}}(v||(v={})),function(e){e.convert=e=>{let r=n("request")(t=>o({document:e.document,name:"body",schema:t}))(e.operation.requestBody),a=n("response")(t=>o({document:e.document,name:"response",schema:t}))(e.operation.responses?.["201"]??e.operation.responses?.["200"]??e.operation.responses?.default),s=[];!1===r&&s.push('supports only "application/json", "application/x-www-form-urlencoded", "multipart/form-data" and "text/plain" content type in the request body.'),!1===a&&s.push('supports only "application/json", "application/x-www-form-urlencoded" and "text/plain" content type in the response body.');let[c,u]=["header","query"].map(t=>{let r=(e.operation.parameters??[]).filter(e=>e.in===t);if(0===r.length)return null;let n=r.map(t=>i.isObject(t.schema)?t.schema:i.isReference(t.schema)&&i.isObject(e.document.components.schemas?.[t.schema.$ref.replace("#/components/schemas/","")]??{})?t.schema:null).filter(e=>!!e),a=r.filter(e=>i.isBoolean(e.schema)||i.isInteger(e.schema)||i.isNumber(e.schema)||i.isString(e.schema)||i.isArray(e.schema)),c=e=>({...e,name:t,key:t,title:()=>e.title,description:()=>e.description,example:()=>e.example,examples:()=>e.examples});if(1===n.length&&0===a.length)return c(r[0]);if(n.length>1)return s.push(`${t} typed parameters must be only one object type`),!1;let u=n[0]?i.isObject(n[0])?n[0]:(e.document.components.schemas??{})[n[0].$ref.replace("#/components/schemas/","")]:null,l=[...n.map(t=>i.isObject(t)?t:e.document.components.schemas?.[t.$ref.replace("#/components/schemas/","")]),{type:"object",properties:Object.fromEntries([...a.map(e=>[e.name,{...e.schema,description:e.schema.description??e.description}]),...u?Object.entries(u.properties??{}):[]]),required:[...a.filter(e=>e.required).map(e=>e.name),...u?u.required??[]:[]]}];return 0===r.length?null:c({schema:o({document:e.document,name:m.pascal(`I/Api/${e.path}`)+"."+m.pascal(`${e.method}/${t}`),schema:{type:"object",properties:Object.fromEntries([...new Map(l.map(e=>Object.entries(e.properties??{}).map(([e,t])=>[e,{...t,description:t.description??t.description}])).flat())]),required:[...new Set(l.map(e=>e.required??[]).flat())]}})})}),l=m.splitWithNormalization(e.emendedPath).filter(e=>":"===e[0]).map(e=>e.substring(1)),p=(e.operation.parameters??[]).filter(e=>"path"===e.in);if(l.length!==p.length){if(p.lengthvoid 0!==e.name&&l.includes(e.name))){for(let e of l)void 0===p.find(t=>t.name===e)&&p.push({name:e,in:"path",schema:{type:"string"}});p.sort((e,t)=>l.indexOf(e.name)-l.indexOf(t.name)),e.operation.parameters=[...p,...(e.operation.parameters??[]).filter(e=>"path"!==e.in)]}else s.push("number of path parameters are not matched with its full path.")}if(s.length)return s;let f=(e.operation.parameters??[]).filter(e=>"path"===e.in).map((e,t)=>({name:l[t],key:(()=>{let e=m.normalize(l[t]);if(_.variable(e))return e;for(;;)if(e="_"+e,!l.some(t=>t===e))return e})(),schema:e.schema,parameter:()=>e}));return{method:e.method,path:e.path,emendedPath:e.emendedPath,accessor:["@lazy"],parameters:(e.operation.parameters??[]).filter(e=>"path"===e.in).map((e,t)=>({name:l[t],key:(()=>{let e=m.normalize(l[t]);if(_.variable(e))return e;for(;;)if(e="_"+e,!l.some(t=>t===e))return e})(),schema:e.schema,parameter:()=>e})),headers:c||null,query:u||null,body:r,success:a,exceptions:Object.fromEntries(Object.entries(e.operation.responses??{}).filter(([e])=>"200"!==e&&"201"!==e&&"default"!==e).map(([e,t])=>[e,{schema:t.content?.["application/json"]?.schema??{},response:()=>t,media:()=>t.content?.["application/json"]??{}}])),comment:()=>t({operation:e.operation,parameters:f,query:u||null,body:r||null}),operation:()=>e.operation}};let t=e=>{let t=[],n=e=>{t.every(t=>t!==e)&&t.push(e)},i=e.operation.description??"";if(e.operation.summary){let t=e.operation.summary.endsWith(".")?e.operation.summary:e.operation.summary+".";i.length&&!i.startsWith(e.operation.summary)&&(i=`${t} -${i}`)}for(let t of(i=i.split("\n").map(e=>e.trim()).join("\n"),e.parameters??[])){let e=t.parameter();if(e.description||e.title){let i=e.description??e.title;n(`@param ${t.name} ${r(i,t.name.length+8)}`)}}for(let t of(e.body?.description()?.length&&n(`@param body ${r(e.body.description(),12)}`),e.operation.security??[]))for(let[e,r]of Object.entries(t))n(`@security ${[e,...r].join("")}`);return e.operation.tags&&e.operation.tags.forEach(e=>n(`@tag ${e}`)),e.operation.deprecated&&n("@deprecated"),i=(i=i.length?t.length?`${i} - -${t.join("\n")}`:i:t.join("\n")).split("*/").join("*\\/")},r=(e,t)=>e.split("\n").map(e=>e.trim()).map((e,r)=>0===r?e:`${" ".repeat(t)}${e}`).join("\n"),n=e=>t=>r=>{if(!r?.content)return null;let n=Object.entries(r.content).filter(([e,t])=>!!t),i=n.find(e=>!0===r["x-nestia-encrypted"]?e[0].includes("text/plain")||e[0].includes("application/json"):e[0].includes("application/json")||e[0].includes("*/*"));if(i){let{schema:n}=i[1];return n||"response"===e?{type:"application/json",name:"body",key:"body",schema:n?a(n)?n:t(n):{},description:()=>r.description,media:()=>i[1],"x-nestia-encrypted":r["x-nestia-encrypted"]}:null}let o=n.find(e=>e[0].includes("application/x-www-form-urlencoded"));if(o){let{schema:n}=o[1];return n||"response"===e?{type:"application/x-www-form-urlencoded",name:"body",key:"body",schema:n?a(n)?n:t(n):{},description:()=>r.description,media:()=>o[1]}:null}let s=n.find(e=>e[0].includes("text/plain"));if(s)return{type:"text/plain",name:"body",key:"body",schema:{type:"string"},description:()=>r.description,media:()=>s[1]};if("request"===e){let e=n.find(e=>e[0].includes("multipart/form-data"));if(e){let{schema:n}=e[1];return{type:"multipart/form-data",name:"body",key:"body",schema:n?a(n)?n:t(n):{},description:()=>r.description,media:()=>e[1]}}}return!1},o=e=>{var t;return(t=e.document.components).schemas??(t.schemas={}),e.document.components.schemas[e.name]=e.schema,{$ref:`#/components/schemas/${e.name}`}},a=e=>i.isReference(e)||i.isBoolean(e)||i.isNumber(e)||i.isString(e)||i.isUnknown(e)||i.isOneOf(e)&&e.oneOf.every(a)||i.isArray(e)&&a(e.items)}(g||(g={})),(b||(b={})).convert=e=>{let t=[],r=Object.entries({...e.paths??{},...e.webhooks??{}}).map(([r,n])=>["head","get","post","put","patch","delete"].filter(e=>void 0!==n[e]).map(i=>{let o=n[i],a=g.convert({document:e,method:i,path:r,emendedPath:m.reJoinWithDecimalParameters(r),operation:o});return Array.isArray(a)?(t.push({method:i,path:r,operation:()=>o,messages:a}),null):a})).flat().filter(e=>!!e);return v.overwrite(r),{document:()=>e,routes:r,errors:t}},(T=w||(w={})).execute=async e=>{let t=await L("request",e);if(e.route.success?.media,200!==t.status&&201!==t.status)throw new N(e.route.method.toUpperCase(),e.route.path,t.status,t.headers,t.body);return t.body},T.propagate=e=>L("propagate",e);let L=async(e,t)=>{let r=t=>Error(`Error on MigrateRouteFetcher.${e}(): ${t}`);if(Array.isArray(t.parameters)){if(t.route.parameters.length!==t.parameters.length)throw r("number of parameters is not matched.")}else if(!1===t.route.parameters.every(e=>void 0!==t.parameters[e.key]))throw r("number of parameters is not matched.");if(!!t.route.query!=!!t.query)throw r("query is not matched.");if(!!t.route.body!=(void 0!==t.body))throw r("body is not matched.");let n={...t.connection.headers??{},...t.route.body?.type&&"multipart/form-data"!==t.route.body.type?{"Content-Type":t.route.body.type}:{}},i={...t.connection.options??{},method:t.route.method,headers:(()=>{let e=[];for(let[t,r]of Object.entries(n))if(void 0===r)continue;else if(Array.isArray(r))for(let n of r)e.push([t,String(n)]);else e.push([t,String(r)]);return e})()};void 0!==t.body&&(i.body=t.route.body?.type==="application/x-www-form-urlencoded"?U(t.body):t.route.body?.type==="multipart/form-data"?H(t.body):t.route.body?.type==="application/json"?JSON.stringify(t.body):t.body);let o="/"!==t.connection.host[t.connection.host.length-1]&&"/"!==t.route.path[0]?`/${$(t)}`:$(t),a=new URL(`${t.connection.host}/${o}`),s=await (t.connection.fetch??fetch)(a,i),c=s.status,u=e=>({status:c,headers:G(s.headers),body:e});if(200===c||201===c){if("head"===t.route.method)return u(void 0);if(null===t.route.success||"text/plain"===t.route.success.type)return u(await s.text());if("application/json"===t.route.success.type){let e=await s.text();return u(e.length?JSON.parse(e):void 0)}if("application/x-www-form-urlencoded"===t.route.success.type)return u(new URLSearchParams(await s.text()));else if("multipart/form-data"===t.route.success.type)return u(await s.formData());throw r("Unsupported response body type.")}{let e=(s.headers.get("content-type")??s.headers.get("Content-Type")??"").split(";")[0].trim();if(""===e||e.startsWith("text/"));else if("application/json"===e)return u(await s.json());else if("application/x-www-form-urlencoded"===e)return u(new URLSearchParams(await s.text()));else if("multipart/form-data"===e)return u(await s.formData());else if("application/octet-stream"===e)return u(await s.blob());return u(await s.text())}},$=e=>{let t=e.route.emendedPath;return e.route.parameters.forEach((r,n)=>{t=t.replace(`:${r.key}`,encodeURIComponent(String((Array.isArray(e.parameters)?e.parameters[n]:e.parameters[r.key])??"null")))}),e.route.query&&(t+=z(e.query??{})),t},z=e=>{let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(void 0===n)continue;else Array.isArray(n)?n.forEach(e=>t.append(r,String(e))):t.set(r,String(n));return 0===t.size?"":`?${t.toString()}`},U=e=>{let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(void 0===n)continue;else Array.isArray(n)?n.forEach(e=>t.append(r,String(e))):t.set(r,String(n));return t},H=e=>{let t=new FormData,r=e=>r=>{void 0!==r&&("function"==typeof File&&r instanceof File?t.append(e,r,r.name):t.append(e,r))};for(let[t,n]of Object.entries(e))Array.isArray(n)?n.map(r(t)):r(t)(n);return t},G=e=>{let t={};return e.forEach((e,r)=>{"set-cookie"===r?(t[r]??(t[r]=[]),t[r].push(...e.split(";").map(e=>e.trim()))):t[r]=e}),t};(C=x||(x={})).application=e=>b.convert(e),C.execute=e=>w.execute(e),C.propagate=e=>w.propagate(e),function(e){e.parameters=t=>{let r=t.parameters.map(e.schema(t.predicator));return{llm:r.map(([e],t)=>({index:t,schema:e})).filter(({schema:e})=>null!==e),human:r.map(([,e],t)=>({index:t,schema:e})).filter(({schema:e})=>null!==e)}},e.schema=e=>n=>{if(!0===e(n))return[null,n];if(o.isUnknown(n)||o.isOneOf(n));else if(o.isObject(n))return r(e)(n);else if(o.isArray(n))return t(e)(n);return[n,null]};let t=t=>r=>{let[n,i]=e.schema(t)(r.items);return[null!==n?{...r,items:n}:null,null!==i?{...r,items:i}:null]},r=t=>r=>{if(r.additionalProperties||0===Object.keys(r.properties??{}).length)return[r,null];let i={...r,properties:{}},o={...r,properties:{}};for(let[n,a]of Object.entries(r.properties??{})){let[r,s]=e.schema(t)(a);null!==r&&(i.properties[n]=r),null!==s&&(o.properties[n]=s)}return[0===Object.keys(i.properties).length?null:n(i),0===Object.keys(o.properties).length?null:n(o)]},n=e=>(void 0!==e.required&&(e.required=e.required.filter(t=>e.properties?.[t]!==void 0)),e)}(O||(O={})),(q=S||(S={})).compose=(e,t)=>{let r=e.errors.map(e=>({method:e.method,path:e.path,messages:e.messages,operation:()=>e.operation(),route:()=>void 0}));return{openapi:"3.0.3",functions:e.routes.map(n=>{if("head"===n.method)return null;let i=J(t)(e.document().components)(n);return null===i&&r.push({method:n.method,path:n.path,messages:["Failed to escape $ref"],operation:()=>n.operation(),route:()=>n}),i}).filter(e=>null!==e),errors:r,options:t}},q.schema=e=>{let t=V({components:e.components,visited:new Set,input:e.schema});if(null===t)return null;let r=l.downgradeSchema({original:{},downgraded:{}})(t);return o.visit(r,e=>{o.isOneOf(e)&&void 0!==e.discriminator&&delete e.discriminator}),r};let J=e=>t=>r=>{let n=e=>S.schema({components:t,schema:e}),i=r.success&&r.success?n(r.success.schema):void 0;if(null===i)return null;let o=[...r.parameters.map(e=>({key:e.key,schema:{...e.schema,title:e.parameter().title??e.schema.title,description:e.parameter().description??e.schema.description}})),...r.query?[{key:r.query.key,schema:{...r.query.schema,title:r.query.title()??r.query.schema.title,description:r.query.description()??r.query.schema.description}}]:[],...r.body?[{key:r.body.key,schema:{...r.body.schema,description:r.body.description()??r.body.schema.description}}]:[]].map(e=>[e.key,n(e.schema)]);if(o.some(([e,t])=>null===t))return null;let a=e.keyword?[{type:"object",properties:Object.fromEntries(o)}]:o.map(([e,t])=>t),s=r.operation();return{method:r.method,path:r.path,name:r.accessor.join("_"),strict:!0,parameters:a,separated:e.separate?O.parameters({parameters:a,predicator:e.separate}):void 0,output:i?l.downgradeSchema({original:{},downgraded:{}})(i):void 0,description:s.summary&&s.description?s.description.startsWith(s.summary)?s.description:[s.summary,s.summary.endsWith(".")?"":".","\n\n",s.description].join(""):s.description??s.summary,deprecated:s.deprecated,tags:s.tags,route:()=>r,operation:()=>s}},V=e=>{if(i.isReference(e.input)){let t=e.input.$ref.split("#/components/schemas/")[1],r=e.components.schemas?.[t];return r?e.visited.has(t)?null:V({components:e.components,visited:new Set([...e.visited,t]),input:r}):null}if(i.isOneOf(e.input)){let t=e.input.oneOf.map(t=>V({...e,input:t}));return t.some(e=>null===e)?null:{...e.input,oneOf:K(t)}}if(i.isObject(e.input)){let t=e.input.properties?Object.entries(e.input.properties).map(([t,r])=>[t,V({...e,input:r})]):void 0,r=e.input.additionalProperties?"object"==typeof e.input.additionalProperties&&null!==e.input.additionalProperties?V({...e,input:e.input.additionalProperties}):e.input.additionalProperties:void 0;return t&&t.some(([e,t])=>null===t)?null:null===r?null:{...e.input,properties:t?Object.fromEntries(t.filter(([e,t])=>!!t)):void 0,additionalProperties:r}}if(i.isTuple(e.input)){let t=e.input.prefixItems.map(t=>V({...e,input:t})),r="object"==typeof e.input.additionalItems&&null!==e.input.additionalItems?V({...e,input:e.input.additionalItems}):e.input.additionalItems;return t.some(e=>null===e)?null:null===r?null:{...e.input,prefixItems:t,additionalItems:r}}if(i.isArray(e.input)){let t=V({...e,input:e.input.items});return null===t?null:{...e.input,items:t}}return e.input},K=e=>e.map(e=>i.isOneOf(e)?K(e.oneOf):e).flat();!function(e){e.execute=async e=>w.execute(t("execute",e)),e.propagate=async e=>w.propagate(t("propagate",e));let t=(e,t)=>{let r=t.function.route();if(!0===t.application.options.keyword){let n=t.arguments[0];if(!1==(1===t.arguments.length&&"object"==typeof n&&null!==n))throw Error(`Error on HttpLlmFunctionFetcher.${e}(): keyworded arguments must be an object`);return{connection:t.connection,route:r,parameters:Object.fromEntries(r.parameters.map(e=>[e.key,n[e.key]])),query:n.query,body:n.body}}let n=t.arguments.slice(0,r.parameters.length),i=r.query?t.arguments[r.parameters.length]:void 0,o=r.body?t.arguments[r.parameters.length+(r.query?1:0)]:void 0;return{connection:t.connection,route:r,parameters:n,query:i,body:o}}}(I||(I={})),function(e){e.parameters=t=>{let r=t.function.separated;if(void 0===r)throw Error("Error on OpenAiDataComposer.parameters(): the function parameters are not separated.");return Array(t.function.parameters.length).fill(0).map((n,i)=>{let o=r.llm.findIndex(e=>e.index===i),a=r.human.findIndex(e=>e.index===i);if(-1===o&&-1===a)throw Error("Error on OpenAiDataComposer.parameters(): failed to gather separated arguments, because both LLM and human sides are all empty.");return e.value(t.llm[o],t.human[a])})},e.value=(r,n)=>"object"==typeof r&&"object"==typeof n&&null!==r&&null!==n?t(r,n):Array.isArray(r)&&Array.isArray(n)?Array(Math.max(r.length,n.length)).fill(0).map((t,i)=>e.value(r[i],n[i])):n??r;let t=(t,r)=>{let n={...t};for(let[i,o]of Object.entries(r))n[i]=e.value(t[i],o);return n}}(j||(j={})),(R=P||(P={})).application=(e,t)=>(!0===e["x-samchon-emended"]&&(e=x.application(e)),S.compose(e,{keyword:t?.keyword??!1,separate:t?.separate??null})),R.schema=e=>S.schema(e),R.execute=e=>I.execute(e),R.propagate=e=>I.propagate(e),R.mergeParameters=e=>j.parameters(e),R.mergeValue=(e,t)=>j.value(e,t)},77947:function(e,t,r){"use strict";r.r(t),r.d(t,{TypeGuardError:function(){return q},assert:function(){return rP},assertEquals:function(){return rM},assertGuard:function(){return rk},assertGuardEquals:function(){return rT},createAssert:function(){return rN},createAssertEquals:function(){return rL},createAssertGuard:function(){return rD},createAssertGuardEquals:function(){return r$},createEquals:function(){return rz},createIs:function(){return rF},createRandom:function(){return rH},createValidate:function(){return rB},createValidateEquals:function(){return rU},default:function(){return rJ},equals:function(){return rC},functional:function(){return eY},http:function(){return tm},is:function(){return rE},json:function(){return tT},llm:function(){return tv},misc:function(){return tK},notations:function(){return rs},protobuf:function(){return rO},random:function(){return rR},reflect:function(){return rI},tags:function(){return rj},validate:function(){return rA},validateEquals:function(){return rq}});var n,i,o,a,s={exports:{}},c={},u={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7},l={};let p=()=>[{type:u.RANGE,from:48,to:57}],f=()=>[{type:u.CHAR,value:95},{type:u.RANGE,from:97,to:122},{type:u.RANGE,from:65,to:90}].concat(p()),d=()=>[{type:u.CHAR,value:9},{type:u.CHAR,value:10},{type:u.CHAR,value:11},{type:u.CHAR,value:12},{type:u.CHAR,value:13},{type:u.CHAR,value:32},{type:u.CHAR,value:160},{type:u.CHAR,value:5760},{type:u.RANGE,from:8192,to:8202},{type:u.CHAR,value:8232},{type:u.CHAR,value:8233},{type:u.CHAR,value:8239},{type:u.CHAR,value:8287},{type:u.CHAR,value:12288},{type:u.CHAR,value:65279}],h=()=>[{type:u.CHAR,value:10},{type:u.CHAR,value:13},{type:u.CHAR,value:8232},{type:u.CHAR,value:8233}];l.words=()=>({type:u.SET,set:f(),not:!1}),l.notWords=()=>({type:u.SET,set:f(),not:!0}),l.ints=()=>({type:u.SET,set:p(),not:!1}),l.notInts=()=>({type:u.SET,set:p(),not:!0}),l.whitespace=()=>({type:u.SET,set:d(),not:!1}),l.notWhitespace=()=>({type:u.SET,set:d(),not:!0}),l.anyChar=()=>({type:u.SET,set:h(),not:!0}),function(e){let t={0:0,t:9,n:10,v:11,f:12,r:13};e.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,function(e,r,n,i,o,a,s,c){if(n)return e;var u=String.fromCharCode(r?8:i?parseInt(i,16):o?parseInt(o,16):a?parseInt(a,8):s?"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?".indexOf(s):t[c]);return/[[\]{}^$.|?*+()]/.test(u)&&(u="\\"+u),u})},e.tokenizeClass=(t,r)=>{for(var n,i,o=[],a=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g;null!=(n=a.exec(t));)if(n[1])o.push(l.words());else if(n[2])o.push(l.ints());else if(n[3])o.push(l.whitespace());else if(n[4])o.push(l.notWords());else if(n[5])o.push(l.notInts());else if(n[6])o.push(l.notWhitespace());else if(n[7])o.push({type:u.RANGE,from:(n[8]||n[9]).charCodeAt(0),to:n[10].charCodeAt(0)});else{if(!(i=n[12]))return[o,a.lastIndex];o.push({type:u.CHAR,value:i.charCodeAt(0)})}e.error(r,"Unterminated character class")},e.error=(e,t)=>{throw SyntaxError("Invalid regular expression: /"+e+"/: "+t)}}(c);var y={};y.wordBoundary=()=>({type:u.POSITION,value:"b"}),y.nonWordBoundary=()=>({type:u.POSITION,value:"B"}),y.begin=()=>({type:u.POSITION,value:"^"}),y.end=()=>({type:u.POSITION,value:"$"}),s.exports=e=>{var t,r,n=0,i={type:u.ROOT,stack:[]},o=i,a=i.stack,s=[],p=t=>{c.error(e,`Nothing to repeat at column ${t-1}`)},f=c.strToChars(e);for(t=f.length;ne.high)}touches(e){return!(this.high+1e.high)}add(e){return new _(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.highe+t.length,0)}add(t,r){var n=e=>{for(var t=0;t{for(var t=0;t{for(var t=0;t{for(var r=t.low;r<=t.high;)e.push(r),r++;return e},[])}subranges(){return this.ranges.map(e=>({low:e.low,high:e.high,length:1+e.high-e.low}))}},g=m.types;var b=(n=class e{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else if("string"==typeof e)this.ignoreCase=t&&-1!==t.indexOf("i"),this.multiline=t&&-1!==t.indexOf("m");else throw Error("Expected a regexp or string");this.tokens=m(e)}_setDefaults(t){this.max=null!=t.max?t.max:null!=e.prototype.max?e.prototype.max:100,this.defaultRange=t.defaultRange?t.defaultRange:this.defaultRange.clone(),t.randInt&&(this.randInt=t.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var r,n,i,o,a;switch(e.type){case g.ROOT:case g.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&void 0===e.groupNumber&&(e.groupNumber=t.push(null)-1),r=e.options?this._randSelect(e.options):e.stack,n="",o=0,a=r.length;oMath.floor(Math.random()*((t??=100)-(e??=0)+1))+e,O=(e,t)=>Math.random()*((t??=100)-(e??=0))+e,S=e=>Array(e??x(5,10)).fill(0).map(()=>w[x(0,w.length-1)]).join(""),I=(e,t,r)=>{if(t??=P(),!1===(r??=!1))return Array(t??P()).fill(0).map((t,r)=>e(r));{let r=new Set;for(;r.sizee[x(0,e.length-1)],P=()=>x(0,3),k=()=>`${S(10)}@${S(10)}.${S(3)}`,E=()=>`${S(10)}.${S(3)}`,A=()=>`https://${S(10)}.${S(3)}`,M=e=>e.filter(([e,t])=>0!==t).map(([e,t])=>`${t}${e}`).join("");var T=Object.freeze({__proto__:null,array:I,bigint:(e,t)=>BigInt(x(Number(e??BigInt(0)),Number(t??BigInt(100)))),boolean:()=>.5>Math.random(),byte:()=>"vt7ekz4lIoNTTS9sDQYdWKharxIFAR54+z/umIxSgUM=",date:(e,t)=>new Date(O(e??0,t??2*Date.now())).toISOString().substring(0,10),datetime:(e,t)=>new Date(O(e??Date.now()-2592e6,t??Date.now()+6048e5)).toISOString(),duration:()=>{let e=M([["Y",x(0,100)],["M",x(0,12)],["D",x(0,31)]]),t=M([["H",x(0,24)],["M",x(0,60)],["S",x(0,60)]]);return e.length+t.length===0?"PT0S":`P${e}${t.length?"T":""}${t}`},email:k,hostname:E,idnEmail:()=>k(),idnHostname:()=>E(),integer:x,ipv4:()=>I(()=>x(0,255),4).join("."),ipv6:()=>I(()=>x(0,65535).toString(16),8).join(":"),iri:()=>A(),iriReference:()=>A(),jsonPointer:()=>`/components/schemas/${S(10)}`,length:P,number:O,password:()=>S(x(4,16)),pattern:e=>{let t=new b(e);for(let r=0;r<10;++r){let r=t.gen();if(e.test(r))return r}return t.gen()},pick:j,regex:()=>"/^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/",relativeJsonPointer:()=>`${x(0,10)}#`,string:S,time:()=>new Date(O(0,864e5)).toISOString().substring(11),uri:()=>A(),uriReference:()=>A(),uriTemplate:()=>A(),url:A,uuid:()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})});let C=(e,t)=>{let r=null;for(let n=0;n(t,r,n)=>{if(!0===t)throw(n??(e=>new q(e)))({method:e,path:r.path,expected:r.expected,value:r.value});return!1},N=e=>D(e)?`.${e}`:`[${JSON.stringify(e)}]`,D=e=>!1===F(e)&&/^[a-zA-Z_$][a-zA-Z_$0-9]*$/g.test(e),F=e=>B.has(e),B=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with"]),L=e=>{let t=t=>{if(0===e.length)return!0;let r=e[e.length-1].path;return t.length>r.length||r.substring(0,t.length)!==t};return(r,n)=>(r&&t(n.path)&&e.push(n),!1)},$=(e,t,r)=>t<=e&&e<=r,z=e=>{try{return BigInt(e),!0}catch{return!1}},U=()=>({is_between:$,is_bigint_string:z}),H=()=>({errorFactory:e=>new q(e)}),G=e=>{if(!1===isFinite(e))throw new q({method:"typia.json.stringify",expected:"number",value:e,message:"Error on typia.json.stringify(): infinite or not a number."});return e},J=e=>2===e.length?"":","+e.substring(1,e.length-1),V=e=>{let t=e.length,r="",n=-1,i=255;for(var o=0;o=55296&&i<=57343)return JSON.stringify(e);(34===i||92===i)&&(-1===n&&(n=0),r+=e.slice(n,o)+"\\",n=o)}return -1===n&&'"'+e+'"'||'"'+r+e.slice(n)+'"'},K=e=>","===e[e.length-1]?e.substring(0,e.length-1):e,W=e=>t=>{throw new q({...t,method:`typia.${e}`})},Z=e=>({...U(),number:G,string:V,tail:K,rest:J,throws:W(`json.${e}`)}),Q=e=>{let t=Number(e);return isNaN(t)?e:t},X=e=>{try{return BigInt(e)}catch{return e}};var Y=Object.freeze({__proto__:null,array:(e,t)=>e.length?e:t,bigint:e=>e instanceof File?e:e?.length?"null"===e?null:X(e):void 0,blob:e=>e instanceof Blob?e:null===e?void 0:"null"===e?null:e,boolean:e=>e instanceof File?e:null===e?void 0:"null"===e?null:0===e.length||"true"===e||"1"===e||"false"!==e&&"0"!==e&&e,file:e=>e instanceof File?e:null===e?void 0:"null"===e?null:e,number:e=>e instanceof File?e:e?.length?"null"===e?null:Q(e):void 0,string:e=>e instanceof File?e:null===e?void 0:"null"===e?null:e});let ee=e=>{try{return BigInt(e)}catch{return e}},et=e=>{let t=Number(e);return isNaN(t)?e:t};var er=Object.freeze({__proto__:null,bigint:e=>void 0!==e?ee(e):void 0,boolean:e=>void 0!==e?"true"===e||"false"!==e&&e:void 0,number:e=>void 0!==e?et(e):void 0,string:e=>e});let en=e=>{let t=Number(e);return isNaN(t)?e:t},ei=e=>{try{return BigInt(e)}catch{return e}};var eo=Object.freeze({__proto__:null,bigint:e=>"null"!==e?ei(e):null,boolean:e=>"null"!==e?"true"===e||"1"===e||"false"!==e&&"0"!==e&&e:null,number:e=>"null"!==e?en(e):null,string:e=>"null"!==e?e:null});let ea=e=>{let t=Number(e);return isNaN(t)?e:t},es=e=>{try{return BigInt(e)}catch{return e}};var ec=Object.freeze({__proto__:null,array:(e,t)=>e.length?e:t,bigint:e=>e?.length?"null"===e?null:es(e):void 0,boolean:e=>null===e?void 0:"null"===e?null:0===e.length||"true"===e||"1"===e||"false"!==e&&"0"!==e&&e,number:e=>e?.length?"null"===e?null:ea(e):void 0,params:e=>{if("string"==typeof e){let t=e.indexOf("?");return new URLSearchParams(e=-1===t?"":e.substring(t+1))}return e},string:e=>null===e?void 0:"null"===e?null:e});let eu=e=>e.length?e[0].toUpperCase()+e.slice(1).toLowerCase():e;function el(e){if(0===e.length)return e;let t="";for(let r=0;r`${t}${e}`,n=e.split("_");if(n.length>1)return r(n.map(e=>e.toLowerCase()).join("_"));let i=[];for(let t=0;t0;--e)i[e]-i[e-1]==1&&i.splice(e,1);if(0!==i.length&&0===i[0]&&i.splice(0,1),0===i.length)return e.toLowerCase();let o="";for(let t=0;ted({plain:e=>e.length?e===e.toUpperCase()?e.toLocaleLowerCase():`${e[0].toLowerCase()}${e.substring(1)}`:e,snake:(e,t)=>0===t?e.toLowerCase():eu(e.toLowerCase())})(e),ef=e=>ed({plain:e=>e.length?`${e[0].toUpperCase()}${e.substring(1)}`:e,snake:eu})(e),ed=e=>t=>{let r="";for(let e=0;e`${r}${e}`;if(0===t.length)return n("");let i=t.split("_").filter(e=>0!==e.length);return n(0===i.length?"":1===i.length?e.plain(i[0]):i.map(e.snake).join(""))},eh=e=>{let t=e=>{if("object"==typeof e){if(null===e)return null;if(Array.isArray(e))return e.map(t);if(e instanceof Boolean||e instanceof BigInt||e instanceof Number||e instanceof String)return e.valueOf();else if(e instanceof Date)return new Date(e);else if(!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof BigUint64Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof BigInt64Array||e instanceof Float32Array||e instanceof Float64Array||e instanceof DataView))return r(e)}return e},r=r=>Object.fromEntries(Object.entries(r).map(([r,n])=>[e(r),t(n)]));return t},ey=e=>({...ev(e),any:eh(ep)}),em=e=>({...ev(e),any:eh(ef)}),e_=e=>({...ev(e),any:eh(el)}),ev=e=>({...U(),throws:W(`notations.${e}`)}),eg=e=>eb(e),eb=e=>{if(void 0!==e){if("object"==typeof e){if(null===e)return null;if(Array.isArray(e))return e.map(eb);if(e instanceof Date)return new Date(e);else if(e instanceof Uint8Array)return new Uint8Array(e);else if(e instanceof Uint8ClampedArray)return new Uint8ClampedArray(e);else if(e instanceof Uint16Array)return new Uint16Array(e);else if(e instanceof Uint32Array)return new Uint32Array(e);else if(e instanceof BigUint64Array)return new BigUint64Array(e);else if(e instanceof Int8Array)return new Int8Array(e);else if(e instanceof Int16Array)return new Int16Array(e);else if(e instanceof Int32Array)return new Int32Array(e);else if(e instanceof BigInt64Array)return new BigInt64Array(e);else if(e instanceof Float32Array)return new Float32Array(e);else if(e instanceof Float64Array)return new Float64Array(e);else if(e instanceof ArrayBuffer)return e.slice(0);else if(e instanceof SharedArrayBuffer)return e.slice(0);else if(e instanceof DataView)return new DataView(e.buffer.slice(0));else if("undefined"!=typeof File&&e instanceof File)return new File([e],e.name,{type:e.type});else if("undefined"!=typeof Blob&&e instanceof Blob)return new Blob([e],{type:e.type});else if(e instanceof Set)return new Set([...e].map(eb));else if(e instanceof Map)return new Map([...e].map(([e,t])=>[eb(e),eb(t)]));else if(e instanceof WeakSet||e instanceof WeakMap)throw Error("WeakSet and WeakMap are not supported");else if(e.valueOf()!==e)return eb(e.valueOf());else return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,eb(t)]).filter(([,e])=>void 0!==e))}if("function"!=typeof e)return e}},ew=e=>eg(e),ex=e=>({...U(),throws:W(`misc.${e}`),any:ew}),eO=e=>({...U(),throws:W(`misc.${e}`)});class eS{closure_;value_;constructor(e){this.closure_=e,this.value_=eI}get(...e){return this.value_===eI&&(this.value_=this.closure_(...e)),this.value_}}let eI={};class ej{buf;ptr;view;constructor(e){this.buf=e,this.ptr=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}index(){return this.ptr}size(){return this.buf.length}uint32(){return this.varint32()}int32(){return this.varint32()}sint32(){let e=this.varint32();return e>>>1^-(1&e)}uint64(){return this.varint64()}int64(){return this.varint64()}sint64(){let e=this.varint64();return e>>BigInt(1)^-(e&BigInt(1))}bool(){return 0!==this.varint32()}float(){let e=this.view.getFloat32(this.ptr,!0);return this.ptr+=4,e}double(){let e=this.view.getFloat64(this.ptr,!0);return this.ptr+=8,e}bytes(){let e=this.uint32(),t=this.ptr;return this.ptr+=e,this.buf.subarray(t,t+e)}string(){return eP.get().decode(this.bytes())}skip(e){if(0===e)for(;128&this.u8(););else{if(this.index()+e>this.size())throw Error("Error on typia.protobuf.decode(): buffer overflow.");this.ptr+=e}}skipType(e){switch(e){case 0:this.skip(0);break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error(`Invalid wire type ${e} at offset ${this.ptr}.`)}}varint32(){let e,t;return t=127&(e=this.u8()),e<128||(t|=(127&(e=this.u8()))<<7,e<128||(t|=(127&(e=this.u8()))<<14,e<128||(t|=(127&(e=this.u8()))<<21,e<128||(t|=(15&(e=this.u8()))<<28,e<128||128>this.u8()||128>this.u8()||128>this.u8()||128>this.u8()||this.u8())))),t}varint64(){let e,t;return(t=(e=this.u8n())&BigInt(127),enew TextDecoder("utf-8")),ek=e=>new Blob([e]).size;class eE{len;pos;varlen;varlenidx;constructor(e=0){this.len=e,this.pos=[],this.varlen=[],this.varlenidx=[]}bool(){this.len+=1}int32(e){e<0?this.len+=10:this.varint32(e)}sint32(e){this.varint32(e<<1^e>>31)}uint32(e){this.varint32(e)}int64(e){this.varint64("number"==typeof e?BigInt(e):e)}sint64(e){"number"==typeof e&&(e=BigInt(e)),this.varint64(e<>BigInt(63))}uint64(e){this.varint64("number"==typeof e?BigInt(e):e)}float(e){this.len+=4}double(e){this.len+=8}bytes(e){this.uint32(e.byteLength),this.len+=e.byteLength}string(e){let t=ek(e);this.varlen.push(t),this.uint32(t),this.len+=t}fork(){this.pos.push(this.len),this.varlenidx.push(this.varlen.length),this.varlen.push(0)}ldelim(){if(!(this.pos.length&&this.varlenidx.length))throw Error("Error on typia.protobuf.encode(): missing fork() before ldelim() call.");let e=this.len,t=this.pos.pop(),r=this.varlenidx.pop(),n=e-t;this.varlen[r]=n,this.uint32(n)}reset(){this.len=0,this.pos.length=0,this.varlen.length=0,this.varlenidx.length=0}varint32(e){this.len+=e<0?10:e<128?1:e<16384?2:e<2097152?3:e<268435456?4:5}varint64(e){for(e=BigInt.asUintN(64,e);e>BigInt(127);)++this.len,e>>=BigInt(7);++this.len}}class eA{sizer;ptr;buf;view;varlenidx;constructor(e){this.sizer=e,this.buf=new Uint8Array(e.len),this.view=new DataView(this.buf.buffer),this.ptr=0,this.varlenidx=0}buffer(){return this.buf}bool(e){this.byte(e?1:0)}byte(e){this.buf[this.ptr++]=255&e}int32(e){e<0?this.int64(e):this.variant32(e>>>0)}sint32(e){this.variant32(e<<1^e>>31)}uint32(e){this.variant32(e)}sint64(e){e=BigInt(e),this.variant64(e<>BigInt(63))}int64(e){this.variant64(BigInt(e))}uint64(e){this.variant64(BigInt(e))}float(e){this.view.setFloat32(this.ptr,e,!0),this.ptr+=4}double(e){this.view.setFloat64(this.ptr,e,!0),this.ptr+=8}bytes(e){this.uint32(e.byteLength);for(let t=0;t127;)this.buf[this.ptr++]=127&e|128,e>>>=7;this.buf[this.ptr++]=e}variant64(e){for(e=BigInt.asUintN(64,e);e>BigInt(127);)this.buf[this.ptr++]=Number(e&BigInt(127)|BigInt(128)),e>>=BigInt(7);this.buf[this.ptr++]=Number(e)}varlen(){return this.varlenidx>=this.sizer.varlen.length?0:this.sizer.varlen[this.varlenidx++]}}let eM=new eS(()=>new TextEncoder),eT=e=>({...U(),Reader:ej,throws:W(`protobuf.${e}`)}),eC=e=>({...U(),Sizer:eE,Writer:eA,strlen:ek,throws:W(e)});(i=o||(o={})).visit=(e,t)=>{if(t(e),i.isOneOf(e))e.oneOf.forEach(e=>i.visit(e,t));else if(i.isObject(e)){for(let[r,n]of Object.entries(e.properties??{}))i.visit(n,t);"object"==typeof e.additionalProperties&&null!==e.additionalProperties&&i.visit(e.additionalProperties,t)}else i.isArray(e)&&i.visit(e.items,t)},i.isOneOf=e=>void 0!==e.oneOf,i.isObject=e=>"object"===e.type,i.isArray=e=>"array"===e.type,i.isBoolean=e=>"boolean"===e.type,i.isInteger=e=>"integer"===e.type,i.isNumber=e=>"number"===e.type,i.isString=e=>"string"===e.type,i.isNullOnly=e=>"null"===e.type,i.isNullable=e=>!i.isUnknown(e)&&(i.isNullOnly(e)||(i.isOneOf(e)?e.oneOf.some(i.isNullable):!0===e.nullable)),i.isUnknown=e=>!i.isOneOf(e)&&void 0===e.type,function(e){e.parameters=t=>{let r=t.parameters.map(e.schema(t.predicator));return{llm:r.map(([e],t)=>({index:t,schema:e})).filter(({schema:e})=>null!==e),human:r.map(([,e],t)=>({index:t,schema:e})).filter(({schema:e})=>null!==e)}},e.schema=e=>n=>{if(!0===e(n))return[null,n];if(o.isUnknown(n)||o.isOneOf(n));else if(o.isObject(n))return r(e)(n);else if(o.isArray(n))return t(e)(n);return[n,null]};let t=t=>r=>{let[n,i]=e.schema(t)(r.items);return[null!==n?{...r,items:n}:null,null!==i?{...r,items:i}:null]},r=t=>r=>{if(r.additionalProperties||0===Object.keys(r.properties??{}).length)return[r,null];let i={...r,properties:{}},o={...r,properties:{}};for(let[n,a]of Object.entries(r.properties??{})){let[r,s]=e.schema(t)(a);null!==r&&(i.properties[n]=r),null!==s&&(o.properties[n]=s)}return[0===Object.keys(i.properties).length?null:n(i),0===Object.keys(o.properties).length?null:n(o)]},n=e=>(void 0!==e.required&&(e.required=e.required.filter(t=>e.properties?.[t]!==void 0)),e)}(a||(a={}));let eq=e=>({...U(),join:N,every:C,guard:R(`typia.${e}`),predicate:(t,r,n)=>{if(!1===t&&!0===r)throw new q({...n(),method:`typia.${e}`});return t}}),eR=()=>({...U(),join:N,report:L,predicate:e=>(t,r,n)=>(!1===t&&!0===r&&(()=>{e.success&&=!1;let t=e.errors,r=n();if(t.length){let e=t[t.length-1].path;if(e.length>=r.path.length&&e.substring(0,r.path.length)===r.path)return}t.push(r)})(),t)});function eN(){eX("assertFunction")}let eD=Object.assign(eN,eq("functional.assertFunction"),H()),eF=Object.assign(eN,eq("functional.assertFunction"),H()),eB=Object.assign(function(){eX("assertReturn")},eq("functional.assertReturn"),H()),eL=Object.assign(function(){eX("assertEqualsFunction")},eq("functional.assertEqualsFunction"),H()),e$=Object.assign(function(){eX("assertEqualsParameters")},eq("functional.assertEqualsParameters"),H()),ez=Object.assign(function(){eX("assertEqualsReturn")},eq("functional.assertEqualsReturn"),H()),eU=Object.assign(function(){eX("isFunction")},U()),eH=Object.assign(function(){eX("isParameters")},U()),eG=Object.assign(function(){eX("isReturn")},U()),eJ=Object.assign(function(){eX("equalsFunction")},U()),eV=Object.assign(function(){eX("equalsParameters")},U()),eK=Object.assign(function(){eX("equalsReturn")},U()),eW=Object.assign(function(){eX("validateFunction")},eR()),eZ=Object.assign(function(){eX("validateReturn")},eR()),eQ=Object.assign(function(){eX("validateReturn")},eR());function eX(e){throw Error(`Error on typia.functional.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var eY=Object.freeze({__proto__:null,assertEqualsFunction:eL,assertEqualsParameters:e$,assertEqualsReturn:ez,assertFunction:eD,assertParameters:eF,assertReturn:eB,equalsFunction:eJ,equalsParameters:eV,equalsReturn:eK,isFunction:eU,isParameters:eH,isReturn:eG,validateEqualsFunction:Object.assign(function(){eX("validateEqualsFunction")},eR()),validateEqualsParameters:Object.assign(function(){eX("validateEqualsParameters")},eR()),validateEqualsReturn:Object.assign(function(){eX("validateEqualsReturn")},eR()),validateFunction:eW,validateParameters:eZ,validateReturn:eQ});let e0=Object.assign(function(){ty("formData")},Y),e1=Object.assign(function(){ty("assertFormData")},Y,eq("http.assertFormData")),e2=Object.assign(function(){ty("isFormData")},Y,U()),e3=Object.assign(function(){ty("validateFormData")},Y,eR()),e4=Object.assign(function(){ty("query")},ec),e9=Object.assign(function(){ty("assertQuery")},ec,eq("http.assertQuery")),e6=Object.assign(function(){ty("isQuery")},ec,U()),e5=Object.assign(function(){ty("validateQuery")},ec,eR()),e8=Object.assign(function(){ty("headers")},er),e7=Object.assign(function(){ty("assertHeaders")},er,eq("http.assertHeaders")),te=Object.assign(function(){ty("isHeaders")},er,U()),tt=Object.assign(function(){ty("validateHeaders")},er,eR()),tr=Object.assign(function(){ty("parameter")},eo,eq("http.parameter")),tn=Object.assign(function(){ty("createFormData")},Y),ti=Object.assign(function(){ty("createAssertFormData")},Y,eq("http.createAssertFormData")),to=Object.assign(function(){ty("createIsFormData")},Y,U()),ta=Object.assign(function(){ty("createValidateFormData")},Y,eR()),ts=Object.assign(function(){ty("createQuery")},ec),tc=Object.assign(function(){ty("createAssertQuery")},ec,eq("http.createAssertQuery")),tu=Object.assign(function(){ty("createIsQuery")},ec,U()),tl=Object.assign(function(){ty("createValidateQuery")},ec,eR()),tp=Object.assign(function(){ty("createHeaders")},er),tf=Object.assign(function(){ty("createAssertHeaders")},er,eq("http.createAssertHeaders")),td=Object.assign(function(){ty("createIsHeaders")},er,U()),th=Object.assign(function(){ty("createValidateHeaders")},er,eR());function ty(e){throw Error(`Error on typia.http.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var tm=Object.freeze({__proto__:null,assertFormData:e1,assertHeaders:e7,assertQuery:e9,createAssertFormData:ti,createAssertHeaders:tf,createAssertQuery:tc,createFormData:tn,createHeaders:tp,createIsFormData:to,createIsHeaders:td,createIsQuery:tu,createParameter:Object.assign(function(){ty("createParameter")},eo,eq("http.createParameter")),createQuery:ts,createValidateFormData:ta,createValidateHeaders:th,createValidateQuery:tl,formData:e0,headers:e8,isFormData:e2,isHeaders:te,isQuery:e6,parameter:tr,query:e4,validateFormData:e3,validateHeaders:tt,validateQuery:e5});function t_(e){throw Error(`Error on typia.llm.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var tv=Object.freeze({__proto__:null,application:Object.assign(function(){t_("application")},{finalize:(e,t)=>{if(e.options={separate:t?.separate??null},null!==e.options.separate)for(let t of e.functions)t.separated=a.parameters({parameters:t.parameters,predicator:e.options.separate})}}),schema:function(){t_("schema")}});let tg=Object.assign(function(){tM("assertParse")},eq("json.assertParse")),tb=Object.assign(function(){tM("isParse")},U()),tw=Object.assign(function(){tM("validateParse")},eR()),tx=Object.assign(function(){tM("stringify")},Z("stringify")),tO=Object.assign(function(){tM("assertStringify")},eq("json.assertStringify"),Z("assertStringify")),tS=Object.assign(function(){tM("isStringify")},U(),Z("isStringify")),tI=Object.assign(function(){tM("validateStringify")},eR(),Z("validateStringify")),tj=Object.assign(function(){tM("createIsParse")},tb),tP=Object.assign(function(){tM("createAssertParse")},tg),tk=Object.assign(function(){tM("createValidateParse")},tw),tE=Object.assign(function(){tM("createStringify")},tx),tA=Object.assign(function(){tM("createAssertStringify")},tO);function tM(e){throw Error(`Error on typia.json.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var tT=Object.freeze({__proto__:null,application:function(){tM("application")},assertParse:tg,assertStringify:tO,createAssertParse:tP,createAssertStringify:tA,createIsParse:tj,createIsStringify:Object.assign(function(){tM("createIsStringify")},tS),createStringify:tE,createValidateParse:tk,createValidateStringify:Object.assign(function(){tM("createValidateStringify")},tI),isParse:tb,isStringify:tS,stringify:tx,validateParse:tw,validateStringify:tI});let tC=Object.assign(function(){tV("clone")},ex("clone")),tq=Object.assign(function(){tV("assertClone")},eq("misc.assertClone"),ex("assertClone")),tR=Object.assign(function(){tV("isClone")},U(),ex("isClone")),tN=Object.assign(function(){tV("validateClone")},eR(),ex("validateClone")),tD=Object.assign(function(){tV("prune")},eO("prune")),tF=Object.assign(function(){tV("assertPrune")},eq("misc.assertPrune"),eO("assertPrune")),tB=Object.assign(function(){tV("isPrune")},U(),eO("isPrune")),tL=Object.assign(function(){tV("validatePrune")},eO("validatePrune"),eR()),t$=Object.assign(function(){tV("createClone")},tC),tz=Object.assign(function(){tV("createAssertClone")},tq),tU=Object.assign(function(){tV("createIsClone")},tR),tH=Object.assign(function(){tV("createValidateClone")},tN),tG=Object.assign(function(){tV("createPrune")},tD),tJ=Object.assign(function(){tV("createAssertPrune")},tF);function tV(e){throw Error(`Error on typia.misc.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var tK=Object.freeze({__proto__:null,assertClone:tq,assertPrune:tF,clone:tC,createAssertClone:tz,createAssertPrune:tJ,createClone:t$,createIsClone:tU,createIsPrune:Object.assign(function(){tV("createIsPrune")},tB),createPrune:tG,createValidateClone:tH,createValidatePrune:Object.assign(function(){tV("createValidatePrune")},tL),isClone:tR,isPrune:tB,literals:function(){tV("literals")},prune:tD,validateClone:tN,validatePrune:tL});let tW=Object.assign(function(){return ra("camel")},ey("camel")),tZ=Object.assign(function(){return ra("assertCamel")},ey("assertCamel"),eq("notations.assertCamel")),tQ=Object.assign(function(){return ra("isCamel")},ey("isCamel"),U()),tX=Object.assign(function(){return ra("validateCamel")},ey("validateCamel"),eR()),tY=Object.assign(function(){return ra("pascal")},em("pascal")),t0=Object.assign(function(){return ra("assertPascal")},em("assertPascal"),eq("notations.assertPascal")),t1=Object.assign(function(){return ra("isPascal")},em("isPascal"),U()),t2=Object.assign(function(){return ra("validatePascal")},em("validatePascal"),eR()),t3=Object.assign(function(){return ra("snake")},e_("snake")),t4=Object.assign(function(){return ra("assertSnake")},e_("assertSnake"),eq("notations.assertSnake")),t9=Object.assign(function(){return ra("isSnake")},e_("isSnake"),U()),t6=Object.assign(function(){return ra("validateSnake")},e_("validateSnake"),eR()),t5=Object.assign(function(){ra("createCamel")},ey("createCamel")),t8=Object.assign(function(){ra("createAssertCamel")},ey("createAssertCamel"),eq("notations.createAssertCamel")),t7=Object.assign(function(){ra("createIsCamel")},ey("createIsCamel"),U()),re=Object.assign(function(){ra("createValidateCamel")},ey("createValidateCamel"),eR()),rt=Object.assign(function(){ra("createPascal")},em("createPascal")),rr=Object.assign(function(){ra("createAssertPascal")},em("createAssertPascal"),eq("notations.createAssertPascal")),rn=Object.assign(function(){ra("createIsPascal")},em("createIsPascal"),U()),ri=Object.assign(function(){ra("createValidatePascal")},em("createValidatePascal"),eR()),ro=Object.assign(function(){ra("createSnake")},e_("createSnake"));function ra(e){throw Error(`Error on typia.notations.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var rs=Object.freeze({__proto__:null,assertCamel:tZ,assertPascal:t0,assertSnake:t4,camel:tW,createAssertCamel:t8,createAssertPascal:rr,createAssertSnake:Object.assign(function(){ra("createAssertSnake")},e_("createAssertSnake"),eq("notations.createAssertSnake")),createCamel:t5,createIsCamel:t7,createIsPascal:rn,createIsSnake:Object.assign(function(){ra("createIsSnake")},e_("createIsSnake"),U()),createPascal:rt,createSnake:ro,createValidateCamel:re,createValidatePascal:ri,createValidateSnake:Object.assign(function(){ra("createValidateSnake")},e_("createValidateSnake"),eR()),isCamel:tQ,isPascal:t1,isSnake:t9,pascal:tY,snake:t3,validateCamel:tX,validatePascal:t2,validateSnake:t6});let rc=Object.assign(function(){rx("decode")},eT("decode")),ru=Object.assign(function(){rx("assertDecode")},eq("protobuf.assertDecode"),eT("assertDecode")),rl=Object.assign(function(){rx("isDecode")},U(),eT("isDecode")),rp=Object.assign(function(){rx("validateDecode")},eR(),eT("validateDecode")),rf=Object.assign(function(){rx("encode")},eC("encode")),rd=Object.assign(function(){rx("assertEncode")},eq("protobuf.assertEncode"),eC("assertEncode")),rh=Object.assign(function(){rx("isEncode")},U(),eC("isEncode")),ry=Object.assign(function(){rx("validateEncode")},eR(),eC("validateEncode")),rm=Object.assign(function(){rx("createDecode")},eT("createDecode")),r_=Object.assign(function(){rx("createIsDecode")},U(),eT("createIsDecode")),rv=Object.assign(function(){rx("createAssertDecode")},eq("protobuf.createAssertDecode"),eT("createAssertDecode")),rg=Object.assign(function(){rx("createValidateDecode")},eR(),eT("createValidateDecode")),rb=Object.assign(function(){rx("createEncode")},eC("createEncode")),rw=Object.assign(function(){rx("createIsEncode")},U(),eC("createIsEncode"));function rx(e){throw Error(`Error on typia.protobuf.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var rO=Object.freeze({__proto__:null,assertDecode:ru,assertEncode:rd,createAssertDecode:rv,createAssertEncode:Object.assign(function(){rx("createAssertEncode")},eq("protobuf.createAssertEncode"),eC("createAssertEncode")),createDecode:rm,createEncode:rb,createIsDecode:r_,createIsEncode:rw,createValidateDecode:rg,createValidateEncode:Object.assign(function(){rx("createValidateEncode")},eR(),eC("createValidateEncode")),decode:rc,encode:rf,isDecode:rl,isEncode:rh,message:function(){rx("message")},validateDecode:rp,validateEncode:ry});function rS(e){throw Error(`Error on typia.reflect.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var rI=Object.freeze({__proto__:null,metadata:Object.assign(function(){rS("metadata")},{from:e=>e}),name:function(){rS("name")}}),rj=Object.freeze({__proto__:null});let rP=Object.assign(function(){rG("assert")},eq("assert")),rk=Object.assign(function(){rG("assertGuard")},eq("assertGuard")),rE=Object.assign(function(){rG("is")},eq("is")),rA=Object.assign(function(){rG("validate")},eR()),rM=Object.assign(function(){rG("assertEquals")},eq("assertEquals")),rT=Object.assign(function(){rG("assertGuardEquals")},eq("assertGuardEquals")),rC=Object.assign(function(){rG("equals")},U()),rq=Object.assign(function(){rG("validateEquals")},eR()),rR=Object.assign(function(){rG("random")},{generator:T,pick:j}),rN=Object.assign(function(){rG("createAssert")},rP),rD=Object.assign(function(){rG("createAssertGuard")},rk),rF=Object.assign(function(){rG("createIs")},rE),rB=Object.assign(function(){rG("createValidate")},rA),rL=Object.assign(function(){rG("createAssertEquals")},rM),r$=Object.assign(function(){rG("createAssertGuardEquals")},rT),rz=Object.assign(function(){rG("createEquals")},rC),rU=Object.assign(function(){rG("createValidateEquals")},rq),rH=Object.assign(function(){rG("createRandom")},rR);function rG(e){throw Error(`Error on typia.${e}(): no transform has been configured. Read and follow https://typia.io/docs/setup please.`)}var rJ=Object.freeze({__proto__:null,TypeGuardError:q,assert:rP,assertEquals:rM,assertGuard:rk,assertGuardEquals:rT,createAssert:rN,createAssertEquals:rL,createAssertGuard:rD,createAssertGuardEquals:r$,createEquals:rz,createIs:rF,createRandom:rH,createValidate:rB,createValidateEquals:rU,equals:rC,functional:eY,http:tm,is:rE,json:tT,llm:tv,misc:tK,notations:rs,protobuf:rO,random:rR,reflect:rI,tags:rj,validate:rA,validateEquals:rq})}}]); \ No newline at end of file diff --git a/_next/static/chunks/666-01777fe9710d2a94.js b/_next/static/chunks/666-01777fe9710d2a94.js new file mode 100644 index 000000000..5887171d4 --- /dev/null +++ b/_next/static/chunks/666-01777fe9710d2a94.js @@ -0,0 +1,57 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[666],{41234:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}}),r(67294);var n=r(70917),o=r(85893);function a(e){let{styles:t,defaultTheme:r={}}=e,a="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,o.jsx)(n.xB,{styles:a})}},92666:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,l)}s((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NestiaEditorApplication=function(){var e=this,t=a(u.default.useState(!1),2),r=t[0],i=t[1],f=a(u.default.useState(null),2),m=f[0],h=f[1];return(u.default.useEffect(function(){n(e,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),e=h,[4,function(){return n(this,void 0,void 0,function(){var e,t,r,n,a,i,l,s,u;return o(this,function(o){switch(o.label){case 0:if(!(null!==(s=(t=new URLSearchParams(-1===(e=window.location.href.indexOf("?"))?"":window.location.href.substring(e+1))).get("url"))&&void 0!==s))return[3,1];return a=s,[3,3];case 1:return[4,p("./swagger.json")];case 2:a=o.sent(),o.label=3;case 3:if(!(null!==(u=a)&&void 0!==u))return[3,4];return n=u,[3,6];case 4:return[4,p("./swagger.yaml")];case 5:n=o.sent(),o.label=6;case 6:if(null===(r=n))return[2,null];return[2,{url:r,simulate:null!==(i=t.get("simulate"))&&("true"===i||"1"===i),e2e:null!==(l=t.get("e2e"))&&("true"===l||"1"===l),mode:"nest"===t.get("mode")?"nest":"sdk"}]}})})}()];case 1:return e.apply(void 0,[t.sent()]),[3,3];case 2:return t.sent(),h(null),[3,3];case 3:return i(!0),[2]}})}).catch(function(){})},[]),!1===r)?(0,l.jsx)(l.Fragment,{}):null!==m?(0,l.jsx)(c.NestiaEditorIframe,{swagger:m.url,simulate:m.simulate,e2e:m.e2e}):(0,l.jsxs)("div",{style:{padding:25},children:[(0,l.jsx)(s.Typography,{variant:"h4",children:"Nestia Editor"}),(0,l.jsx)("hr",{}),(0,l.jsx)("br",{}),(0,l.jsx)(d.NestiaEditorUploader,{})]})};var l=r(85893),s=r(47367),u=i(r(67294)),c=r(3701),d=r(94650);function p(e){return n(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return[4,fetch(e)];case 1:return[2,200===t.sent().status?e:null]}})})}},3701:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,l)}s((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NestiaEditorIframe=function(e){var t=this,r=a(p.default.useState("reactia-editor-div-".concat(Math.random().toString().substring(2))),1)[0],i=a(p.default.useState(0),2),l=i[0],d=i[1],g=a(p.default.useState(null),2),v=g[0],b=g[1],y=a(p.default.useState({}),2),D=y[0],x=y[1],C=a(p.default.useState(null),2),Z=C[0],w=C[1];return p.default.useEffect(function(){n(t,void 0,void 0,function(){var t,a,i,l,s,u=this;return o(this,function(p){switch(p.label){case 0:if(d(0),"string"!=typeof e.swagger)return[3,2];return[4,m(e.swagger)];case 1:return a=p.sent(),[3,3];case 2:a=e.swagger,p.label=3;case 3:if("string"==typeof(t=a))return b(t),[2];return x(h(t)),d(1),[4,n(u,void 0,void 0,function(){var r,n,a;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,f.NestiaEditorComposer[null!==(r=e.mode)&&void 0!==r?r:"sdk"]({document:t,simulate:null===(n=e.simulate)||void 0===n||n,e2e:null===(a=e.e2e)||void 0===a||a})];case 1:return[2,o.sent()];case 2:return[2,{success:!1,errors:o.sent()}];case 3:return[2]}})})];case 4:if(!1===(i=p.sent()).success)return w(i.errors),[2];return d(2),c.default.embedProject(r,{title:null!==(s=null===(l=t.info)||void 0===l?void 0:l.title)&&void 0!==s?s:"Nestia Editor",template:"node",files:i.data.files},{width:"100%",height:"100%",openFile:i.data.openFile,startScript:i.data.startScript}),[2]}})}).catch(function(e){console.error("unknown error",e)})},[]),(0,s.jsx)("div",{id:r,style:{width:"100%",height:"100%",overflow:"hidden"},children:(0,s.jsxs)("div",{style:{padding:25,overflow:"auto"},children:[(0,s.jsx)(u.Typography,{variant:"h4",children:"Nestia Editor"}),(0,s.jsx)("hr",{}),(0,s.jsx)("br",{}),(0,s.jsxs)(u.Stepper,{activeStep:l,orientation:"vertical",nonLinear:!0,children:[(0,s.jsxs)(u.Step,{children:[(0,s.jsx)(u.StepLabel,{children:(0,s.jsx)(u.Typography,{variant:"h5",children:"Loading OpenAPI Document"})}),(0,s.jsxs)(u.StepContent,{children:[(0,s.jsx)("br",{}),(0,s.jsx)(u.CircularProgress,{size:100,color:"success"}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"string"==typeof e.swagger?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:"Fetching OpenAPI Document from"}),(0,s.jsx)("p",{children:(0,s.jsx)("a",{href:e.swagger,target:"_blank",children:e.swagger})})]}):"Delivering OpenAPI Document to the composer",null!==v?(0,s.jsxs)(u.Alert,{severity:"error",children:[(0,s.jsx)(u.AlertTitle,{children:"Fetch Error"}),v]}):null]})]},0),(0,s.jsxs)(u.Step,{children:[(0,s.jsx)(u.StepLabel,{children:(0,s.jsx)(u.Typography,{variant:"h5",children:"Generating Software Development Kit"})}),(0,s.jsxs)(u.StepContent,{children:[(0,s.jsx)("br",{}),(0,s.jsx)(u.CircularProgress,{size:100,color:"success"}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"Generating SDK funtions...",(0,s.jsx)("br",{}),(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{children:["total operations: #",Object.values(D).reduce(function(e,t){return e+t},0).toLocaleString()]}),Object.entries(D).map(function(e){var t=a(e,2),r=t[0],n=t[1];return(0,s.jsxs)("li",{children:[r,": #",n.toLocaleString()]})})]}),null!==Z?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("br",{}),(0,s.jsxs)(u.Alert,{severity:"error",children:[(0,s.jsx)(u.AlertTitle,{children:"Composition Error"}),(0,s.jsx)("pre",{children:JSON.stringify(Z,null,2)})]})]}):null]})]},1),(0,s.jsxs)(u.Step,{children:[(0,s.jsx)(u.StepLabel,{children:(0,s.jsx)(u.Typography,{variant:"h5",children:"Composing TypeScript Project"})}),(0,s.jsx)(u.StepContent,{})]},2)]})]})})};var s=r(85893),u=r(47367),c=l(r(79979)),d=r(93320),p=l(r(67294)),f=r(68902),m=function(e){return n(void 0,void 0,void 0,function(){var t,r,n;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,7,,8]),[4,fetch(e)];case 1:if(!(200!==(t=o.sent()).status))return[3,3];return[4,t.text()];case 2:case 6:return[2,o.sent()];case 3:if(!e.endsWith(".yaml"))return[3,5];return[4,t.text()];case 4:return r=o.sent(),[2,(0,d.load)(r)];case 5:return[4,t.json()];case 7:if((n=o.sent())instanceof Error)return[2,n.message];return[2,"Unknown error"];case 8:return[2]}})})},h=function(e){var t,r,n,o,l,s,u={};if(!("object"==typeof e&&null!==e))return u;try{for(var c=i(Object.values(null!==(l=e.paths)&&void 0!==l?l:{})),d=c.next();!d.done;d=c.next()){var p=d.value;if("object"==typeof p&&null!==p)try{for(var f=(n=void 0,i(Object.entries(p))),m=f.next();!m.done;m=f.next()){var h=a(m.value,1)[0];("head"===h||"get"===h||"post"===h||"patch"===h||"put"===h||"delete"===h)&&(u[h]=(null!==(s=u[h])&&void 0!==s?s:0)+1)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return u}},94650:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,l)}s((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NestiaEditorUploader=function(e){var t=this,r=a(c.default.useState("sdk"),2),i=r[0],f=r[1],m=a(c.default.useState(!0),2),h=m[0],g=m[1],v=a(c.default.useState(!0),2),b=v[0],y=v[1],D=a(c.default.useState(null),2),x=D[0],C=D[1],Z=a(c.default.useState(!1),2),w=Z[0],S=Z[1],F=function(t){e.onError?e.onError(t):alert(t)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.NestiaEditorFileUploader,{onChange:function(e,t){C(e),null!==t&&F(t)}}),(0,l.jsx)("br",{}),(0,l.jsxs)(s.FormControl,{fullWidth:!0,style:{paddingLeft:15},children:[(0,l.jsx)(s.FormLabel,{children:" Mode "}),(0,l.jsxs)(s.RadioGroup,{defaultValue:i,onChange:function(e,t){return f(t)},style:{paddingLeft:15},children:[(0,l.jsx)(s.FormControlLabel,{value:"sdk",control:(0,l.jsx)(s.Radio,{}),label:"Software Development Kit"}),(0,l.jsx)(s.FormControlLabel,{value:"nest",control:(0,l.jsx)(s.Radio,{}),label:"NestJS Project"})]}),(0,l.jsx)(s.FormLabel,{style:{paddingTop:20},children:" Options "}),(0,l.jsx)(s.FormControlLabel,{label:"Mockup Simulator",style:{paddingTop:5,paddingLeft:15},control:(0,l.jsx)(s.Switch,{checked:h,onChange:function(){return g(!h)}})}),(0,l.jsx)(s.FormControlLabel,{label:"E2E Test Functions",style:{paddingLeft:15},control:(0,l.jsx)(s.Switch,{checked:b,onChange:function(){return y(!b)}})})]}),(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),(0,l.jsx)(s.Button,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:!0===w||null===x,onClick:function(){return n(t,void 0,void 0,function(){var e,t,r,n;return o(this,function(o){switch(o.label){case 0:if(null===x)return[2];S(!0),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,d.NestiaEditorComposer[i]({document:x,e2e:b,simulate:h})];case 2:return!0===(e=o.sent()).success?u.default.openProject({title:null!==(n=null===(r=x.info)||void 0===r?void 0:r.title)&&void 0!==n?n:"Nestia Editor",template:"node",files:e.data.files},{newWindow:!0,openFile:e.data.openFile,startScript:e.data.startScript}):F(JSON.stringify(e.errors,null,2)),[3,4];case 3:return F((t=o.sent())instanceof Error?t.message:"unknown error"),[3,4];case 4:return S(!1),[2]}})})},children:w?"Generating...":"Generate Editor"})]})};var l=r(85893),s=r(47367),u=i(r(79979)),c=i(r(67294)),d=r(68902),p=r(3988)},68902:function(e,t,r){"use strict";var n,o=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&o(t,e,r);return a(t,e),t},l=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,l)}s((n=n.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0}),t.NestiaEditorComposer=void 0;var c=r(73660),d=i(r(21433)),p=i(r(99091)),f=r(73945);!function(e){var t=this;e.nest=function(e){return r({openFile:"README.md,test/start.ts",startScript:["build:test,test",""],migrate:function(t){return t.nest(e)}})(e)},e.sdk=function(e){return l(t,void 0,void 0,function(){return s(this,function(t){return console.log("NestiaEditorComposer.sdk()",e),[2,r({openFile:"README.md,test/start.ts",startScript:["swagger","hello"],migrate:function(t){return t.sdk(e)}})(e)]})})};var r=function(e){return function(r){return l(t,void 0,void 0,function(){var t,n,o,a,i,l,m,h,g;return s(this,function(s){switch(s.label){case 0:if(void 0!==r.files)return[2,{success:!0,data:{files:r.files,openFile:e.openFile,startScript:e.startScript},errors:[]}];return[4,c.MigrateApplication.create(r.document)];case 1:if(!1===(t=s.sent()).success)return[2,t];n=t.data,o=e.migrate(n).files,s.label=2;case 2:s.trys.push([2,9,10,11]),i=(a=u(o)).next(),s.label=3;case 3:if(i.done)return[3,8];if(".ts"!==(l=i.value).file.substring(l.file.length-3))return[3,7];s.label=4;case 4:return s.trys.push([4,6,,7]),m=l,[4,(0,f.format)(l.content,{parser:"typescript",plugins:[d,p]})];case 5:return m.content=s.sent(),[3,7];case 6:return console.log(s.sent()),[3,7];case 7:return i=a.next(),[3,3];case 8:return[3,11];case 9:return h={error:s.sent()},[3,11];case 10:try{i&&!i.done&&(g=a.return)&&g.call(a)}finally{if(h)throw h.error}return[7];case 11:return[2,{success:!0,data:{files:Object.fromEntries(o.map(function(e){return[[e.location,e.location.length?"/":"",e.file].join(""),e.content]})),openFile:e.openFile,startScript:e.startScript},errors:[]}]}})})}}}(n||(t.NestiaEditorComposer=n={}))},3988:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,l)}s((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NestiaEditorFileUploader=function(e){var t=this,r=a(u.default.useState([]),2),i=r[0],d=r[1];return(0,l.jsx)(c.default,{defaultFiles:i,onFilesChange:function(r){return n(t,void 0,void 0,function(){var t,n,a,i,l;return o(this,function(o){switch(o.label){case 0:if(0===r.length)return e.onChange(null,null),[2];return[4,(t=r[r.length-1]).arrayBuffer()];case 1:n=o.sent(),a=new TextDecoder().decode(n),i=t.name.split(".").pop();try{l="json"===i?JSON.parse(a):(0,s.load)(a),e.onChange(l,null)}catch(t){return e.onChange(null,"json"===i?"Invalid JSON file":"Invalid YAML file"),[2]}return r.length>1&&d([t]),[2]}})})},acceptedType:".json, .yaml",getBase64:!1,multiFile:!1,maxUploadFiles:1,title:"Swagger file uploader",header:"Drag and drop a Swagger file here",buttonLabel:"Click Here",rightLabel:"to select swagger.json/yaml file",buttonRemoveLabel:"Clear"})};var l=r(85893),s=r(93320),u=i(r(67294)),c=i(r(88385))},93320:function(e,t,r){"use strict";var n=r(7990),o=r(13150);function a(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(71364),e.exports.Schema=r(67657),e.exports.FAILSAFE_SCHEMA=r(44795),e.exports.JSON_SCHEMA=r(35966),e.exports.CORE_SCHEMA=r(9471),e.exports.DEFAULT_SCHEMA=r(86601),e.exports.load=n.load,e.exports.loadAll=n.loadAll,e.exports.dump=o.dump,e.exports.YAMLException=r(88425),e.exports.types={binary:r(43531),float:r(45215),map:r(40945),null:r(30151),pairs:r(6879),set:r(44982),timestamp:r(12156),bool:r(48771),int:r(61518),merge:r(67452),omap:r(51605),seq:r(76451),str:r(48)},e.exports.safeLoad=a("safeLoad","load"),e.exports.safeLoadAll=a("safeLoadAll","loadAll"),e.exports.safeDump=a("safeDump","dump")},8347:function(e){"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r=55296&&n<=56319&&t+1=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function y(e){return/^\n* /.test(e)}function D(e,t){var r=y(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function x(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function C(e,t){if(""===e||" "===e[0])return e;for(var r,n,o=/ [^ ]/g,a=0,i=0,l=0,s="";r=o.exec(e);)(l=r.index)-a>t&&(n=i>a?i:l,s+="\n"+e.slice(a,n),a=n+1),i=l;return s+="\n",e.length-a>t&&i>a?s+=e.slice(a,i)+"\n"+e.slice(i+1):s+=e.slice(a),s.slice(1)}function Z(e,t,r,n){var o,a,i,l="",s=e.tag;for(o=0,a=r.length;o tag resolver accepts not "'+d+'" style');e.dump=n}return!0}return!1}function S(e,t,r,a,l,d,g){e.tag=null,e.dump=r,w(e,r,!1)||w(e,r,!0);var F,k=i.call(e.dump),E=a;a&&(a=e.flowLevel<0||e.flowLevel>t);var M,I,j,T="[object Object]"===k||"[object Array]"===k;if(T&&(j=-1!==(I=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||j||2!==e.indent&&t>0)&&(l=!1),j&&e.usedDuplicates[I])e.dump="*ref_"+I;else{if(T&&j&&!e.usedDuplicates[I]&&(e.usedDuplicates[I]=!0),"[object Object]"===k)a&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var a,i,l,s,u,c,d="",p=e.tag,m=Object.keys(r);if(!0===e.sortKeys)m.sort();else if("function"==typeof e.sortKeys)m.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(a=0,i=m.length;a1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,u&&(c+=f(e,t)),S(e,t+1,s,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,d+=c));e.tag=p,e.dump=d||"{}"}(e,t,e.dump,l),j&&(e.dump="&ref_"+I+e.dump)):(!function(e,t,r){var n,o,a,i,l,s="",u=e.tag,c=Object.keys(r);for(n=0,o=c.length;n1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),S(e,t,i,!1,!1)&&(l+=e.dump,s+=l));e.tag=u,e.dump="{"+s+"}"}(e,t,e.dump),j&&(e.dump="&ref_"+I+" "+e.dump));else if("[object Array]"===k)a&&0!==e.dump.length?(e.noArrayIndent&&!g&&t>0?Z(e,t-1,e.dump,l):Z(e,t,e.dump,l),j&&(e.dump="&ref_"+I+e.dump)):(!function(e,t,r){var n,o,a,i="",l=e.tag;for(n=0,o=r.length;n=65536?c+=2:c++){if(!h(d=b(e,c)))return 5;C=C&&v(d,p,l),p=d}else{for(c=0;c=65536?c+=2:c++){if(10===(d=b(e,c)))f=!0,D&&(g=g||c-x-1>n&&" "!==e[x+1],x=c);else if(!h(d))return 5;C=C&&v(d,p,l),p=d}g=g||D&&c-x-1>n&&" "!==e[x+1]}return f||g?r>9&&y(e)?5:i?2===a?5:2:g?4:3:!C||i||o(e)?2===a?5:2:1}(F,d||e.flowLevel>-1&&t>=e.flowLevel,e.indent,a,function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r"+D(F,e.indent)+x(p(function(e,t){for(var r,n,o,a=/(\n+)([^\n]*)/g,i=(r=-1!==(r=e.indexOf("\n"))?r:e.length,a.lastIndex=r,C(e.slice(0,r),t)),l="\n"===e[0]||" "===e[0];o=a.exec(e);){var s=o[1],u=o[2];n=" "===u[0],i+=s+(l||n||""===u?"":"\n")+C(u,t),l=n}return i}(F,a),r));case 5:return'"'+function(e){for(var t,r="",a=0,i=0;i=65536?i+=2:i++)!(t=s[a=b(e,i)])&&h(a)?(r+=e[i],a>=65536&&(r+=e[i+1])):r+=t||function(e){var t,r,a;if(t=e.toString(16).toUpperCase(),e<=255)r="x",a=2;else if(e<=65535)r="u",a=4;else if(e<=4294967295)r="U",a=8;else throw new o("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+n.repeat("0",a-t.length)+t}(a);return r}(F,a)+'"';default:throw new o("impossible error: invalid scalar style")}}());else{if("[object Undefined]"===k||e.skipInvalid)return!1;throw new o("unacceptable kind of an object to dump "+k)}null!==e.tag&&"?"!==e.tag&&(M=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),M="!"===e.tag[0]?"!"+M:"tag:yaml.org,2002:"===M.slice(0,18)?"!!"+M.slice(18):"!<"+M+">",e.dump=M+" "+e.dump)}return!0}e.exports.dump=function(e,t){var r=new d(t=t||{});r.noRefs||function(e,t){var r,n,o=[],a=[];for(function e(t,r,n){var o,a,i;if(null!==t&&"object"==typeof t){if(-1!==(a=r.indexOf(t)))-1===n.indexOf(a)&&n.push(a);else if(r.push(t),Array.isArray(t))for(a=0,i=t.length;a1&&(e.result+=n.repeat("\n",t-1))}function N(e,t){var r,n,o=e.tag,a=e.anchor,i=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,w(e,"tab characters must not be used in indentation")),45===n&&g(e.input.charCodeAt(e.position+1)));){if(l=!0,e.position++,j(e,!0,-1)&&e.lineIndent<=t){i.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,L(e,t,3,!1,!0),i.push(e.result),j(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)w(e,"bad indentation of a sequence entry");else if(e.lineIndentt?F=1:e.lineIndent===t?F=0:e.lineIndentt?F=1:e.lineIndent===t?F=0:e.lineIndentt)&&(y&&(i=e.line,l=e.lineStart,s=e.position),L(e,t,4,!0,o)&&(y?v=e.result:b=e.result),y||(M(e,p,f,m,v,b,i,l,s),m=v=b=null),j(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==u)w(e,"bad indentation of a mapping entry");else if(e.lineIndent=0)0===i?w(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?w(e,"repeat of an indentation width identifier"):(d=t+i-1,c=!0);else break;if(h(l)){do l=e.input.charCodeAt(++e.position);while(h(l));if(35===l)do l=e.input.charCodeAt(++e.position);while(!m(l)&&0!==l)}for(;0!==l;){for(I(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!c||e.lineIndentd&&(d=e.lineIndent),m(l)){p++;continue}if(e.lineIndent0){for(o=i,a=0;o>0;o--)(i=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(l=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+i:w(e,"expected hexadecimal character");e.result+=(u=a)<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320),e.position++}else w(e,"unknown escape sequence");r=n=e.position}else m(l)?(k(e,r,n,!0),A(e,j(e,!1,t)),r=n=e.position):e.position===e.lineStart&&T(e)?w(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}w(e,"unexpected end of the stream within a double quoted scalar")}(e,Z)?P=!0:function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!g(n)&&!v(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&w(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),l.call(e.anchorMap,r)||w(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],j(e,!0,-1),!0}(e)?(P=!0,(null!==e.tag||null!==e.anchor)&&w(e,"alias node should not have any properties")):function(e,t,r){var n,o,a,i,l,s,u,c,d=e.kind,p=e.result;if(g(c=e.input.charCodeAt(e.position))||v(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(g(n=e.input.charCodeAt(e.position+1))||r&&v(n)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,i=!1;0!==c;){if(58===c){if(g(n=e.input.charCodeAt(e.position+1))||r&&v(n))break}else if(35===c){if(g(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&T(e)||r&&v(c))break;else if(m(c)){if(l=e.line,s=e.lineStart,u=e.lineIndent,j(e,!1,-1),e.lineIndent>=t){i=!0,c=e.input.charCodeAt(e.position);continue}e.position=a,e.line=l,e.lineStart=s,e.lineIndent=u;break}i&&(k(e,o,a,!1),A(e,e.line-l),o=a=e.position,i=!1),h(c)||(a=e.position+1),c=e.input.charCodeAt(++e.position)}return k(e,o,a,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,Z,1===r)&&(P=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===F&&(P=u&&N(e,S))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&w(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),f=0,b=e.implicitTypes.length;f"),null!==e.result&&C.kind!==e.kind&&w(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+C.kind+'", not "'+e.kind+'"'),C.resolve(e.result,e.tag)?(e.result=C.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):w(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||P}function P(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new C(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,w(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position0)&&37===o);){for(i=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!g(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&w(e,"directive name must not be less than one character in length");0!==o;){for(;h(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!m(o));break}if(m(o))break;for(t=e.position;0!==o&&!g(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==o&&I(e),l.call(F,r)?F[r](e,r,n):S(e,'unknown document directive "'+r+'"')}if(j(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,j(e,!0,-1)):i&&w(e,"directives end mark is expected"),L(e,e.lineIndent-1,4,!1,!0),j(e,!0,-1),e.checkLineBreaks&&u.test(e.input.slice(a,e.position))&&S(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&T(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,j(e,!0,-1));return}e.positionl&&(t=n-l+(a=" ... ").length),r-n>l&&(r=n+l-(i=" ...").length),{str:a+e.slice(t,r).replace(/\t/g,"→")+i,pos:n-t+a.length}}function a(e,t){return n.repeat(" ",t-e.length)+e}e.exports=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],l=[],s=-1;u=r.exec(e.buffer);)l.push(u.index),i.push(u.index+u[0].length),e.position<=u.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var u,c,d,p="",f=Math.min(e.line+t.linesAfter,l.length).toString().length,m=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(s-c<0);c++)d=o(e.buffer,i[s-c],l[s-c],e.position-(i[s]-i[s-c]),m),p=n.repeat(" ",t.indent)+a((e.line-c+1).toString(),f)+" | "+d.str+"\n"+p;for(d=o(e.buffer,i[s],l[s],e.position,m),p+=n.repeat(" ",t.indent)+a((e.line+1).toString(),f)+" | "+d.str+"\n"+n.repeat("-",t.indent+f+3+d.pos)+"^\n",c=1;c<=t.linesAfter&&!(s+c>=l.length);c++)d=o(e.buffer,i[s+c],l[s+c],e.position-(i[s]-i[s+c]),m),p+=n.repeat(" ",t.indent)+a((e.line+c+1).toString(),f)+" | "+d.str+"\n";return p.replace(/\n$/,"")}},71364:function(e,t,r){"use strict";var n=r(88425),o=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];e.exports=function(e,t){var r,i;if(Object.keys(t=t||{}).forEach(function(t){if(-1===o.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(r=t.styleAliases||null,i={},null!==r&&Object.keys(r).forEach(function(e){r[e].forEach(function(t){i[String(t)]=e})}),i),-1===a.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},43531:function(e,t,r){"use strict";var n=r(71364),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,a=e.length;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),a=n.length,i=0,l=[];for(t=0;t>16&255),l.push(i>>8&255),l.push(255&i)),i=i<<6|o.indexOf(n.charAt(t));return 0==(r=a%4*6)?(l.push(i>>16&255),l.push(i>>8&255),l.push(255&i)):18===r?(l.push(i>>10&255),l.push(i>>2&255)):12===r&&l.push(i>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",a=0,i=e.length;for(t=0;t>18&63]+o[a>>12&63]+o[a>>6&63]+o[63&a]),a=(a<<8)+e[t];return 0==(r=i%3)?n+=o[a>>18&63]+o[a>>12&63]+o[a>>6&63]+o[63&a]:2===r?n+=o[a>>10&63]+o[a>>4&63]+o[a<<2&63]+o[64]:1===r&&(n+=o[a>>2&63]+o[a<<4&63]+o[64]+o[64]),n}})},48771:function(e,t,r){"use strict";var n=r(71364);e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},45215:function(e,t,r){"use strict";var n=r(8347),o=r(71364),a=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=/^[-+]?[0-9]+e/;e.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!!(null!==e&&a.test(e)&&"_"!==e[e.length-1])},construct:function(e){var t,r;return(r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return r=e.toString(10),i.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},61518:function(e,t,r){"use strict";var n=r(8347),o=r(71364);e.exports=new o("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n,o,a=e.length,i=0,l=!1;if(!a)return!1;if(("-"===(o=e[i])||"+"===o)&&(o=e[++i]),"0"===o){if(i+1===a)return!0;if("b"===(o=e[++i])){for(i++;i=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},40945:function(e,t,r){"use strict";var n=r(71364);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},67452:function(e,t,r){"use strict";var n=r(71364);e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},30151:function(e,t,r){"use strict";var n=r(71364);e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},51605:function(e,t,r){"use strict";var n=r(71364),o=Object.prototype.hasOwnProperty,a=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,i,l,s=[];for(t=0,r=e.length;t{let{classes:t}=e;return(0,l.Z)({root:["root"]},d.E,t)},h=(0,s.ZP)(c.Z,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightMedium,marginTop:-2}}),g=a.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"MuiAlertTitle"}),{className:a}=r,l=(0,o.Z)(r,f),s=m(r);return(0,p.jsx)(h,(0,n.Z)({gutterBottom:!0,component:"div",ownerState:r,ref:t,className:(0,i.Z)(s.root,a)},l))});t.Z=g},65485:function(e,t,r){"use strict";r.d(t,{E:function(){return a}});var n=r(1588),o=r(34867);function a(e){return(0,o.ZP)("MuiAlertTitle",e)}let i=(0,n.Z)("MuiAlertTitle",["root"]);t.Z=i},47367:function(e,t,r){"use strict";let n,o;r.r(t),r.d(t,{Accordion:function(){return eL},AccordionActions:function(){return eW},AccordionDetails:function(){return eV},AccordionSummary:function(){return e2},Alert:function(){return e4.Z},AlertTitle:function(){return e5.Z},AppBar:function(){return to},Autocomplete:function(){return rD},Avatar:function(){return rx.Z},AvatarGroup:function(){return rI},Backdrop:function(){return rO},Badge:function(){return rY},BottomNavigation:function(){return rK},BottomNavigationAction:function(){return r5},Box:function(){return r8.Z},Breadcrumbs:function(){return nd},Button:function(){return np.Z},ButtonBase:function(){return e$.Z},ButtonGroup:function(){return nw},ButtonGroupButtonContext:function(){return nD.Z},ButtonGroupContext:function(){return ny.Z},Card:function(){return nI},CardActionArea:function(){return nj.Z},CardActions:function(){return nB},CardContent:function(){return nO.Z},CardHeader:function(){return nq},CardMedia:function(){return n4},Checkbox:function(){return oi},Chip:function(){return t2},CircularProgress:function(){return ok},ClickAwayListener:function(){return oM},Collapse:function(){return eg},Container:function(){return oI.Z},CssBaseline:function(){return o_},Dialog:function(){return au},DialogActions:function(){return ah},DialogContent:function(){return aZ},DialogContentText:function(){return aM},DialogTitle:function(){return aA},Divider:function(){return aN.Z},Drawer:function(){return aJ},Experimental_CssVarsProvider:function(){return N.Experimental_CssVarsProvider},Fab:function(){return a5},Fade:function(){return rA},FilledInput:function(){return iw},FormControl:function(){return iS.Z},FormControlLabel:function(){return ik.Z},FormGroup:function(){return iM.Z},FormHelperText:function(){return iP},FormLabel:function(){return iR.Z},FormLabelRoot:function(){return iR.D},GlobalStyles:function(){return oB},Grid:function(){return iO.ZP},Grow:function(){return lp},Hidden:function(){return lf.Z},Icon:function(){return lD},IconButton:function(){return tY.Z},ImageList:function(){return lE},ImageListItem:function(){return lL},ImageListItemBar:function(){return lG},Input:function(){return lX},InputAdornment:function(){return l4},InputBase:function(){return ib},InputLabel:function(){return l7},LinearProgress:function(){return sS},Link:function(){return sP},List:function(){return sU},ListItem:function(){return s8},ListItemAvatar:function(){return ur},ListItemButton:function(){return ui},ListItemIcon:function(){return up},ListItemSecondaryAction:function(){return s0},ListItemText:function(){return ub},ListSubheader:function(){return tG},Menu:function(){return uq},MenuItem:function(){return u1},MenuList:function(){return uS},MobileStepper:function(){return ce},Modal:function(){return o7},ModalManager:function(){return oK},NativeSelect:function(){return ch},NoSsr:function(){return cg},OutlinedInput:function(){return cF},Pagination:function(){return cq},PaginationItem:function(){return cU},Paper:function(){return ev.Z},Popover:function(){return uB},PopoverPaper:function(){return uR},PopoverRoot:function(){return uP},Popper:function(){return tB},Portal:function(){return tD},Radio:function(){return cX.Z},RadioGroup:function(){return cJ.Z},Rating:function(){return dp},ScopedCssBaseline:function(){return db},Select:function(){return dP},Skeleton:function(){return d0},Slide:function(){return az},Slider:function(){return pg},SliderMark:function(){return pp},SliderMarkLabel:function(){return pf},SliderRail:function(){return ps},SliderRoot:function(){return pl},SliderThumb:function(){return pc},SliderTrack:function(){return pu},SliderValueLabel:function(){return pd},Snackbar:function(){return pj},SnackbarContent:function(){return pw},SpeedDial:function(){return pG},SpeedDialAction:function(){return fr},SpeedDialIcon:function(){return fc},Stack:function(){return fd.Z},Step:function(){return fw},StepButton:function(){return fQ},StepConnector:function(){return f4},StepContent:function(){return me},StepContext:function(){return fb},StepIcon:function(){return fN},StepLabel:function(){return fH},Stepper:function(){return ml},StepperContext:function(){return fh},StyledEngineProvider:function(){return N.StyledEngineProvider},SvgIcon:function(){return fk.Z},SwipeableDrawer:function(){return mD},Switch:function(){return mx.Z},THEME_ID:function(){return N.THEME_ID},Tab:function(){return mE},TabScrollButton:function(){return h4},Table:function(){return mP},TableBody:function(){return mG},TableCell:function(){return mX},TableContainer:function(){return m4},TableFooter:function(){return ht},TableHead:function(){return hu},TablePagination:function(){return hA},TableRow:function(){return hO},TableSortLabel:function(){return hV},Tabs:function(){return gl},TextField:function(){return gm},TextareaAutosize:function(){return io},ThemeProvider:function(){return N.ThemeProvider},ToggleButton:function(){return gw},ToggleButtonGroup:function(){return gI},Toolbar:function(){return hh},Tooltip:function(){return p3},Typography:function(){return r9.Z},Unstable_Grid2:function(){return ln},Unstable_TrapFocus:function(){return o2},Zoom:function(){return pN},accordionActionsClasses:function(){return eR},accordionClasses:function(){return ej},accordionDetailsClasses:function(){return eU},accordionSummaryClasses:function(){return eQ},adaptV4Theme:function(){return N.adaptV4Theme},alertClasses:function(){return e3.Z},alertTitleClasses:function(){return e8.Z},alpha:function(){return N.alpha},appBarClasses:function(){return e7},autocompleteClasses:function(){return ro},avatarClasses:function(){return rC.Z},avatarGroupClasses:function(){return rw},backdropClasses:function(){return rL},badgeClasses:function(){return rW},bottomNavigationActionClasses:function(){return r0},bottomNavigationClasses:function(){return r$},boxClasses:function(){return r6.Z},breadcrumbsClasses:function(){return na},buttonBaseClasses:function(){return nm.Z},buttonClasses:function(){return nf.Z},buttonGroupClasses:function(){return nb},capitalize:function(){return L.capitalize},cardActionAreaClasses:function(){return nT.Z},cardActionsClasses:function(){return nN},cardClasses:function(){return nF},cardContentClasses:function(){return nz.Z},cardHeaderClasses:function(){return n_},cardMediaClasses:function(){return nX},checkboxClasses:function(){return n7},chipClasses:function(){return tQ},circularProgressClasses:function(){return oc},collapseClasses:function(){return es},colors:function(){return f},containerClasses:function(){return oT},createChainedFunction:function(){return L.createChainedFunction},createFilterOptions:function(){return td},createMuiTheme:function(){return N.createMuiTheme},createStyles:function(){return N.createStyles},createSvgIcon:function(){return L.createSvgIcon},createTheme:function(){return N.createTheme},css:function(){return N.css},darkScrollbar:function(){return oH},darken:function(){return N.darken},debounce:function(){return L.debounce},decomposeColor:function(){return N.decomposeColor},deprecatedPropType:function(){return L.deprecatedPropType},dialogActionsClasses:function(){return ad},dialogClasses:function(){return at},dialogContentClasses:function(){return av},dialogContentTextClasses:function(){return aS},dialogTitleClasses:function(){return ay},dividerClasses:function(){return aL.Z},drawerClasses:function(){return a_},duration:function(){return N.duration},easing:function(){return N.easing},emphasize:function(){return N.emphasize},experimentalStyled:function(){return N.experimentalStyled},experimental_extendTheme:function(){return N.experimental_extendTheme},experimental_sx:function(){return N.experimental_sx},fabClasses:function(){return a1},filledInputClasses:function(){return re},formControlClasses:function(){return iF.Z},formControlLabelClasses:function(){return iE.Z},formGroupClasses:function(){return iI.Z},formHelperTextClasses:function(){return iT},formLabelClasses:function(){return iB.Z},generateUtilityClass:function(){return ei.ZP},generateUtilityClasses:function(){return ea.Z},getAccordionActionsUtilityClass:function(){return eP},getAccordionDetailsUtilityClass:function(){return e_},getAccordionSummaryUtilityClass:function(){return eq},getAccordionUtilityClass:function(){return eI},getAlertTitleUtilityClass:function(){return e8.E},getAlertUtilityClass:function(){return e3.t},getAppBarUtilityClass:function(){return e9},getAutocompleteUtilityClass:function(){return rn},getAvatarGroupUtilityClass:function(){return rZ},getAvatarUtilityClass:function(){return rC.$},getBackdropUtilityClass:function(){return rN},getBadgeUtilityClass:function(){return rz},getBottomNavigationActionUtilityClass:function(){return rJ},getBottomNavigationUtilityClass:function(){return rV},getBreadcrumbsUtilityClass:function(){return no},getButtonBaseUtilityClass:function(){return nm.$},getButtonGroupUtilityClass:function(){return nv},getButtonUtilityClass:function(){return nf.F},getCardActionAreaUtilityClass:function(){return nT.J},getCardActionsUtilityClass:function(){return nA},getCardContentUtilityClass:function(){return nz.N},getCardHeaderUtilityClass:function(){return nW},getCardMediaUtilityClass:function(){return nQ},getCardUtilityClass:function(){return nS},getCheckboxUtilityClass:function(){return n9},getChipUtilityClass:function(){return tq},getCircularProgressUtilityClass:function(){return ou},getCollapseUtilityClass:function(){return el},getContainerUtilityClass:function(){return oj},getContrastRatio:function(){return N.getContrastRatio},getDialogActionsUtilityClass:function(){return ac},getDialogContentTextUtilityClass:function(){return aw},getDialogContentUtilityClass:function(){return ag},getDialogTitleUtilityClass:function(){return ab},getDialogUtilityClass:function(){return ae},getDividerUtilityClass:function(){return aL.V},getDrawerUtilityClass:function(){return aW},getFabUtilityClass:function(){return a0},getFilledInputUtilityClass:function(){return t7},getFormControlLabelUtilityClasses:function(){return iE.r},getFormControlUtilityClasses:function(){return iF.e},getFormGroupUtilityClass:function(){return iI.y},getFormHelperTextUtilityClasses:function(){return ij},getFormLabelUtilityClasses:function(){return iB.M},getGrid2UtilityClass:function(){return lo},getGridUtilityClass:function(){return iz.H},getIconButtonUtilityClass:function(){return lx.r},getIconUtilityClass:function(){return lm},getImageListItemBarUtilityClass:function(){return lP},getImageListItemUtilityClass:function(){return lI},getImageListUtilityClass:function(){return lC},getInitColorSchemeScript:function(){return N.getInitColorSchemeScript},getInputAdornmentUtilityClass:function(){return lK},getInputBaseUtilityClass:function(){return t4},getInputLabelUtilityClasses:function(){return l3},getInputUtilityClass:function(){return t5},getLinearProgressUtilityClass:function(){return se},getLinkUtilityClass:function(){return sk},getListItemAvatarUtilityClass:function(){return s6},getListItemButtonUtilityClass:function(){return sY},getListItemIconUtilityClass:function(){return ul},getListItemSecondaryActionClassesUtilityClass:function(){return s$},getListItemTextUtilityClass:function(){return uf},getListItemUtilityClass:function(){return sH},getListSubheaderUtilityClass:function(){return tO},getListUtilityClass:function(){return sB},getLuminance:function(){return N.getLuminance},getMenuItemUtilityClass:function(){return uQ},getMenuUtilityClass:function(){return uO},getMobileStepperUtilityClass:function(){return u2},getModalUtilityClass:function(){return o4},getNativeSelectUtilityClasses:function(){return ct},getOffsetLeft:function(){return uT},getOffsetTop:function(){return uj},getOutlinedInputUtilityClass:function(){return t6},getOverlayAlpha:function(){return N.getOverlayAlpha},getPaginationItemUtilityClass:function(){return cj},getPaginationUtilityClass:function(){return ck},getPaperUtilityClass:function(){return cQ.J},getPopoverUtilityClass:function(){return uF},getRadioUtilityClass:function(){return cK.l},getRatingUtilityClass:function(){return c8},getScopedCssBaselineUtilityClass:function(){return df},getSelectUtilityClasses:function(){return dy},getSkeletonUtilityClass:function(){return dB},getSliderUtilityClass:function(){return pr},getSnackbarContentUtilityClass:function(){return pv},getSnackbarUtilityClass:function(){return pS},getSpeedDialActionUtilityClass:function(){return p5},getSpeedDialIconUtilityClass:function(){return fo},getSpeedDialUtilityClass:function(){return pL},getStepButtonUtilityClass:function(){return fG},getStepConnectorUtilityClass:function(){return fX},getStepContentUtilityClass:function(){return f3},getStepIconUtilityClass:function(){return fE},getStepLabelUtilityClass:function(){return fL},getStepUtilityClass:function(){return fy},getStepperUtilityClass:function(){return mt},getSvgIconUtilityClass:function(){return ms.h},getSwitchUtilityClass:function(){return mC.H},getTabScrollButtonUtilityClass:function(){return hK},getTabUtilityClass:function(){return mZ},getTableBodyUtilityClass:function(){return mB},getTableCellUtilityClass:function(){return mY},getTableContainerUtilityClass:function(){return mK},getTableFooterUtilityClass:function(){return m3},getTableHeadUtilityClass:function(){return hr},getTablePaginationUtilityClass:function(){return hD},getTableRowUtilityClass:function(){return hN},getTableSortLabelUtilityClass:function(){return hW},getTableUtilityClass:function(){return mI},getTabsUtilityClass:function(){return h3},getTextFieldUtilityClass:function(){return gs},getToggleButtonGroupUtilityClass:function(){return gS},getToggleButtonUtilityClass:function(){return gg},getToolbarUtilityClass:function(){return hc},getTooltipUtilityClass:function(){return pV},getTouchRippleUtilityClass:function(){return nh.H},getTypographyUtilityClass:function(){return gj.f},grid2Classes:function(){return li},gridClasses:function(){return iz.Z},hexToRgb:function(){return N.hexToRgb},hslToRgb:function(){return N.hslToRgb},iconButtonClasses:function(){return lx.Z},iconClasses:function(){return lh},imageListClasses:function(){return lZ},imageListItemBarClasses:function(){return lR},imageListItemClasses:function(){return lj},inputAdornmentClasses:function(){return lJ},inputBaseClasses:function(){return t3},inputClasses:function(){return t8},inputLabelClasses:function(){return l5},isMuiElement:function(){return L.isMuiElement},keyframes:function(){return N.keyframes},lighten:function(){return N.lighten},linearProgressClasses:function(){return st},linkClasses:function(){return sE},listClasses:function(){return sO},listItemAvatarClasses:function(){return s9},listItemButtonClasses:function(){return sV},listItemClasses:function(){return sG},listItemIconClasses:function(){return us},listItemSecondaryActionClasses:function(){return sq},listItemTextClasses:function(){return um},listSubheaderClasses:function(){return tz},makeStyles:function(){return N.makeStyles},menuClasses:function(){return uz},menuItemClasses:function(){return uX},mobileStepperClasses:function(){return u4},modalClasses:function(){return o3},nativeSelectClasses:function(){return cr},outlinedInputClasses:function(){return t9},ownerDocument:function(){return L.ownerDocument},ownerWindow:function(){return L.ownerWindow},paginationClasses:function(){return cE},paginationItemClasses:function(){return cT},paperClasses:function(){return cQ.Z},popoverClasses:function(){return uk},private_createMixins:function(){return N.private_createMixins},private_createTypography:function(){return N.private_createTypography},private_excludeVariablesFromRoot:function(){return N.private_excludeVariablesFromRoot},radioClasses:function(){return cK.Z},ratingClasses:function(){return c6},recomposeColor:function(){return N.recomposeColor},requirePropFactory:function(){return L.requirePropFactory},responsiveFontSizes:function(){return N.responsiveFontSizes},rgbToHex:function(){return N.rgbToHex},scopedCssBaselineClasses:function(){return dm},selectClasses:function(){return dD},setRef:function(){return L.setRef},shouldSkipGeneratingVar:function(){return N.shouldSkipGeneratingVar},skeletonClasses:function(){return dO},sliderClasses:function(){return pn},snackbarClasses:function(){return pF},snackbarContentClasses:function(){return pb},speedDialActionClasses:function(){return p8},speedDialClasses:function(){return pP},speedDialIconClasses:function(){return fa},stackClasses:function(){return fp},stepButtonClasses:function(){return fY},stepClasses:function(){return fD},stepConnectorClasses:function(){return fK},stepContentClasses:function(){return f5},stepIconClasses:function(){return fM},stepLabelClasses:function(){return fP},stepperClasses:function(){return mr},styled:function(){return N.styled},svgIconClasses:function(){return ms.Z},switchClasses:function(){return mC.Z},tabClasses:function(){return mw},tabScrollButtonClasses:function(){return hJ},tableBodyClasses:function(){return mO},tableCellClasses:function(){return mV},tableClasses:function(){return mj},tableContainerClasses:function(){return mJ},tableFooterClasses:function(){return m5},tableHeadClasses:function(){return hn},tablePaginationClasses:function(){return hx},tableRowClasses:function(){return hL},tableSortLabelClasses:function(){return h_},tabsClasses:function(){return h5},textFieldClasses:function(){return gu},toggleButtonClasses:function(){return gv},toggleButtonGroupClasses:function(){return gF},toolbarClasses:function(){return hd},tooltipClasses:function(){return p$},touchRippleClasses:function(){return nh.Z},typographyClasses:function(){return gj.Z},unstable_ClassNameGenerator:function(){return L.unstable_ClassNameGenerator},unstable_composeClasses:function(){return z.Z},unstable_createMuiStrictModeTheme:function(){return N.unstable_createMuiStrictModeTheme},unstable_getUnit:function(){return N.unstable_getUnit},unstable_toUnitless:function(){return N.unstable_toUnitless},unstable_useEnhancedEffect:function(){return L.unstable_useEnhancedEffect},unstable_useId:function(){return L.unstable_useId},unsupportedProp:function(){return L.unsupportedProp},useAutocomplete:function(){return th},useColorScheme:function(){return N.useColorScheme},useControlled:function(){return L.useControlled},useEventCallback:function(){return L.useEventCallback},useForkRef:function(){return L.useForkRef},useFormControl:function(){return il.Z},useIsFocusVisible:function(){return L.useIsFocusVisible},useMediaQuery:function(){return gT.Z},usePagination:function(){return cI},useRadioGroup:function(){return c0.Z},useScrollTrigger:function(){return gP},useStepContext:function(){return fv},useStepperContext:function(){return fm},useTheme:function(){return N.useTheme},useThemeProps:function(){return N.useThemeProps},withStyles:function(){return N.withStyles},withTheme:function(){return N.withTheme}});var a,i,l,s,u,c,d,p,f={};r.r(f),r.d(f,{amber:function(){return E},blue:function(){return D.Z},blueGrey:function(){return A},brown:function(){return j},common:function(){return m.Z},cyan:function(){return C},deepOrange:function(){return I},deepPurple:function(){return b},green:function(){return w.Z},grey:function(){return T.Z},indigo:function(){return y},lightBlue:function(){return x.Z},lightGreen:function(){return S},lime:function(){return F},orange:function(){return M.Z},pink:function(){return g},purple:function(){return v.Z},red:function(){return h.Z},teal:function(){return Z},yellow:function(){return k}});var m=r(86332),h=r(86372),g={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},v=r(3676),b={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},y={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},D=r(14973),x=r(93620),C={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},Z={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},w=r(35271),S={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},F={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},k={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},E={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},M=r(40592),I={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},j={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},T=r(4761),A={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},N=r(54326),L=r(21180),P=r(63366),R=r(87462),B=r(67294);r(59864);var O=r(90512),z=r(94780),W=r(89262),_=r(59145),U=r(75068),H=r(73935),G={disabled:!1},Y=r(220),V="unmounted",$="exited",q="entering",Q="entered",X="exiting",K=function(e){function t(t,r){n=e.call(this,t,r)||this;var n,o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=$,n.appearStatus=q):o=Q:o=t.unmountOnExit||t.mountOnEnter?V:$,n.state={status:o},n.nextCallback=null,n}(0,U.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===V?{status:$}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==q&&r!==Q&&(t=q):(r===q||r===Q)&&(t=X)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===q){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:H.findDOMNode(this);r&&r.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===$&&this.setState({status:V})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[H.findDOMNode(this),n],a=o[0],i=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;if(!e&&!r||G.disabled){this.safeSetState({status:Q},function(){t.props.onEntered(a)});return}this.props.onEnter(a,i),this.safeSetState({status:q},function(){t.props.onEntering(a,i),t.onTransitionEnd(s,function(){t.safeSetState({status:Q},function(){t.props.onEntered(a,i)})})})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:H.findDOMNode(this);if(!t||G.disabled){this.safeSetState({status:$},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:X},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:$},function(){e.props.onExited(n)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:H.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===V)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,P.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return B.createElement(Y.Z.Provider,{value:null},"function"==typeof r?r(e,n):B.cloneElement(B.Children.only(r),n))},t}(B.Component);function J(){}K.contextType=Y.Z,K.propTypes={},K.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:J,onEntering:J,onEntered:J,onExit:J,onExiting:J,onExited:J},K.UNMOUNTED=V,K.EXITED=$,K.ENTERING=q,K.ENTERED=Q,K.EXITING=X;var ee=r(5713);let et=e=>e.scrollTop;function er(e,t){var r,n;let{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=i.transitionTimingFunction)?n:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}var en=r(49360),eo=r(28735),ea=r(1588),ei=r(34867);function el(e){return(0,ei.ZP)("MuiCollapse",e)}var es=(0,ea.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),eu=r(85893);let ec=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],ed=e=>{let{orientation:t,classes:r}=e;return(0,z.Z)({root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]},el,r)},ep=(0,W.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation],"entered"===r.state&&t.entered,"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&t.hidden]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===r.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===r.state&&(0,R.Z)({height:"auto",overflow:"visible"},"horizontal"===r.orientation&&{width:"auto"}),"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&{visibility:"hidden"})}),ef=(0,W.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})}),em=(0,W.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(e=>{let{ownerState:t}=e;return(0,R.Z)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})}),eh=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCollapse"}),{addEndListener:n,children:o,className:a,collapsedSize:i="0px",component:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,orientation:g="vertical",style:v,timeout:b=ee.x9.standard,TransitionComponent:y=K}=r,D=(0,P.Z)(r,ec),x=(0,R.Z)({},r,{orientation:g,collapsedSize:i}),C=ed(x),Z=(0,en.Z)(),w=B.useRef(),S=B.useRef(null),F=B.useRef(),k="number"==typeof i?"".concat(i,"px"):i,E="horizontal"===g,M=E?"width":"height";B.useEffect(()=>()=>{clearTimeout(w.current)},[]);let I=B.useRef(null),j=(0,eo.Z)(t,I),T=e=>t=>{if(e){let r=I.current;void 0===t?e(r):e(r,t)}},A=()=>S.current?S.current[E?"clientWidth":"clientHeight"]:0,N=T((e,t)=>{S.current&&E&&(S.current.style.position="absolute"),e.style[M]=k,c&&c(e,t)}),L=T((e,t)=>{let r=A();S.current&&E&&(S.current.style.position="");let{duration:n,easing:o}=er({style:v,timeout:b,easing:s},{mode:"enter"});if("auto"===b){let t=Z.transitions.getAutoHeightDuration(r);e.style.transitionDuration="".concat(t,"ms"),F.current=t}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style[M]="".concat(r,"px"),e.style.transitionTimingFunction=o,p&&p(e,t)}),z=T((e,t)=>{e.style[M]="auto",d&&d(e,t)}),W=T(e=>{e.style[M]="".concat(A(),"px"),f&&f(e)}),U=T(m),H=T(e=>{let t=A(),{duration:r,easing:n}=er({style:v,timeout:b,easing:s},{mode:"exit"});if("auto"===b){let r=Z.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),F.current=r}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style[M]=k,e.style.transitionTimingFunction=n,h&&h(e)});return(0,eu.jsx)(y,(0,R.Z)({in:u,onEnter:N,onEntered:z,onEntering:L,onExit:W,onExited:U,onExiting:H,addEndListener:e=>{"auto"===b&&(w.current=setTimeout(e,F.current||0)),n&&n(I.current,e)},nodeRef:I,timeout:"auto"===b?null:b},D,{children:(e,t)=>(0,eu.jsx)(ep,(0,R.Z)({as:l,className:(0,O.Z)(C.root,a,{entered:C.entered,exited:!u&&"0px"===k&&C.hidden}[e]),style:(0,R.Z)({[E?"minWidth":"minHeight"]:k},v),ownerState:(0,R.Z)({},x,{state:e}),ref:j},t,{children:(0,eu.jsx)(ef,{ownerState:(0,R.Z)({},x,{state:e}),className:C.wrapper,ref:S,children:(0,eu.jsx)(em,{ownerState:(0,R.Z)({},x,{state:e}),className:C.wrapperInner,children:o})})}))}))});eh.muiSupportAuto=!0;var eg=eh,ev=r(69216);let eb=B.createContext({});var ey=r(61890),eD=r(33703);function ex(e,t,r){return"function"==typeof e?e(t,r):e}function eC(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function eZ(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function ew(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){let e=(0,O.Z)(null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),t=(0,R.Z)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=(0,R.Z)({},r,o,n);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let i=eC((0,R.Z)({},o,n)),l=eZ(n),s=eZ(o),u=t(i),c=(0,O.Z)(null==u?void 0:u.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),d=(0,R.Z)({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=(0,R.Z)({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function eS(e){return"string"==typeof e}function eF(e,t,r){return void 0===e||eS(e)?t:(0,R.Z)({},t,{ownerState:(0,R.Z)({},t.ownerState,r)})}let ek=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],eE=["component","slots","slotProps"],eM=["component"];function eI(e){return(0,ei.ZP)("MuiAccordion",e)}var ej=(0,ea.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);let eT=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],eA=e=>{let{classes:t,square:r,expanded:n,disabled:o,disableGutters:a}=e;return(0,z.Z)({root:["root",!r&&"rounded",n&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},eI,t)},eN=(0,W.ZP)(ev.Z,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(ej.region)]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(e=>{let{theme:t}=e,r={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],r),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],r)},"&:first-of-type":{"&::before":{display:"none"}},["&.".concat(ej.expanded)]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},["&.".concat(ej.disabled)]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}},e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},!r.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!r.disableGutters&&{["&.".concat(ej.expanded)]:{margin:"16px 0"}})});var eL=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiAccordion"}),{children:n,className:o,defaultExpanded:a=!1,disabled:i=!1,disableGutters:l=!1,expanded:s,onChange:u,square:c=!1,slots:d={},slotProps:p={},TransitionComponent:f,TransitionProps:m}=r,h=(0,P.Z)(r,eT),[g,v]=(0,ey.Z)({controlled:s,default:a,name:"Accordion",state:"expanded"}),b=B.useCallback(e=>{v(!g),u&&u(e,!g)},[g,u,v]),[y,...D]=B.Children.toArray(n),x=B.useMemo(()=>({expanded:g,disabled:i,disableGutters:l,toggle:b}),[g,i,l,b]),C=(0,R.Z)({},r,{square:c,disabled:i,disableGutters:l,expanded:g}),Z=eA(C),[w,S]=function(e,t){let{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:l}=t,s=(0,P.Z)(t,ek),{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=a,p=(0,P.Z)(a,eE),f=c[e]||n,m=ex(d[e],o),h=ew((0,R.Z)({className:r},s,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:m})),{props:{component:g},internalRef:v}=h,b=(0,P.Z)(h.props,eM),y=(0,eD.Z)(v,null==m?void 0:m.ref,t.ref),D=i?i(b):{},x=(0,R.Z)({},o,D),C="root"===e?g||u:g,Z=eF(f,(0,R.Z)({},"root"===e&&!u&&!c[e]&&l,"root"!==e&&!c[e]&&l,b,C&&{as:C},{ref:y}),x);return Object.keys(D).forEach(e=>{delete Z[e]}),[f,Z]}("transition",{elementType:eg,externalForwardedProps:{slots:(0,R.Z)({transition:f},d),slotProps:(0,R.Z)({transition:m},p)},ownerState:C});return delete S.ownerState,(0,eu.jsxs)(eN,(0,R.Z)({className:(0,O.Z)(Z.root,o),ref:t,ownerState:C,square:c},h,{children:[(0,eu.jsx)(eb.Provider,{value:x,children:y}),(0,eu.jsx)(w,(0,R.Z)({in:g,timeout:"auto"},S,{children:(0,eu.jsx)("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:Z.region,children:D})}))]}))});function eP(e){return(0,ei.ZP)("MuiAccordionActions",e)}var eR=(0,ea.Z)("MuiAccordionActions",["root","spacing"]);let eB=["className","disableSpacing"],eO=e=>{let{classes:t,disableSpacing:r}=e;return(0,z.Z)({root:["root",!r&&"spacing"]},eP,t)},ez=(0,W.ZP)("div",{name:"MuiAccordionActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})});var eW=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiAccordionActions"}),{className:n,disableSpacing:o=!1}=r,a=(0,P.Z)(r,eB),i=(0,R.Z)({},r,{disableSpacing:o}),l=eO(i);return(0,eu.jsx)(ez,(0,R.Z)({className:(0,O.Z)(l.root,n),ref:t,ownerState:i},a))});function e_(e){return(0,ei.ZP)("MuiAccordionDetails",e)}var eU=(0,ea.Z)("MuiAccordionDetails",["root"]);let eH=["className"],eG=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},e_,t)},eY=(0,W.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{padding:t.spacing(1,2,2)}});var eV=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiAccordionDetails"}),{className:n}=r,o=(0,P.Z)(r,eH),a=eG(r);return(0,eu.jsx)(eY,(0,R.Z)({className:(0,O.Z)(a.root,n),ref:t,ownerState:r},o))}),e$=r(11506);function eq(e){return(0,ei.ZP)("MuiAccordionSummary",e)}var eQ=(0,ea.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);let eX=["children","className","expandIcon","focusVisibleClassName","onClick"],eK=e=>{let{classes:t,expanded:r,disabled:n,disableGutters:o}=e;return(0,z.Z)({root:["root",r&&"expanded",n&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},eq,t)},eJ=(0,W.ZP)(e$.Z,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t,ownerState:r}=e,n={duration:t.transitions.duration.shortest};return(0,R.Z)({display:"flex",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],n),["&.".concat(eQ.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(eQ.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["&:hover:not(.".concat(eQ.disabled,")")]:{cursor:"pointer"}},!r.disableGutters&&{["&.".concat(eQ.expanded)]:{minHeight:64}})}),e0=(0,W.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!r.disableGutters&&{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),["&.".concat(eQ.expanded)]:{margin:"20px 0"}})}),e1=(0,W.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(e=>{let{theme:t}=e;return{display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),["&.".concat(eQ.expanded)]:{transform:"rotate(180deg)"}}});var e2=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiAccordionSummary"}),{children:n,className:o,expandIcon:a,focusVisibleClassName:i,onClick:l}=r,s=(0,P.Z)(r,eX),{disabled:u=!1,disableGutters:c,expanded:d,toggle:p}=B.useContext(eb),f=(0,R.Z)({},r,{expanded:d,disabled:u,disableGutters:c}),m=eK(f);return(0,eu.jsxs)(eJ,(0,R.Z)({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":d,className:(0,O.Z)(m.root,o),focusVisibleClassName:(0,O.Z)(m.focusVisible,i),onClick:e=>{p&&p(e),l&&l(e)},ref:t,ownerState:f},s,{children:[(0,eu.jsx)(e0,{className:m.content,ownerState:f,children:n}),a&&(0,eu.jsx)(e1,{className:m.expandIconWrapper,ownerState:f,children:a})]}))}),e4=r(6714),e3=r(20596),e5=r(36925),e8=r(65485),e6=r(75228);function e9(e){return(0,ei.ZP)("MuiAppBar",e)}var e7=(0,ea.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);let te=["className","color","enableColorOnDark","position"],tt=e=>{let{color:t,position:r,classes:n}=e,o={root:["root","color".concat((0,e6.Z)(t)),"position".concat((0,e6.Z)(r))]};return(0,z.Z)(o,e9,n)},tr=(e,t)=>e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t,tn=(0,W.ZP)(ev.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["position".concat((0,e6.Z)(r.position))],t["color".concat((0,e6.Z)(r.color))]]}})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,R.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!t.vars&&(0,R.Z)({},"default"===r.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:t.palette[r.color].main,color:t.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===t.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,R.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,R.Z)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette.AppBar.defaultBg:tr(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?t.vars.palette.text.primary:tr(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette[r.color].main:tr(t.vars.palette.AppBar.darkBg,t.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?t.vars.palette[r.color].contrastText:tr(t.vars.palette.AppBar.darkColor,t.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))});var to=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiAppBar"}),{className:n,color:o="primary",enableColorOnDark:a=!1,position:i="fixed"}=r,l=(0,P.Z)(r,te),s=(0,R.Z)({},r,{color:o,position:i,enableColorOnDark:a}),u=tt(s);return(0,eu.jsx)(tn,(0,R.Z)({square:!0,component:"header",ownerState:s,elevation:4,className:(0,O.Z)(u.root,n,"fixed"===i&&"mui-fixed"),ref:t},l))}),ta=r(92996),ti=r(19032),tl=e=>{let t=B.useRef({});return B.useEffect(()=>{t.current=e}),t.current},ts=r(59948),tu=r(27364);function tc(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function td(e={}){let{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let u=i?l.trim():l;r&&(u=u.toLowerCase()),t&&(u=tc(u));let c=u?e.filter(e=>{let n=(a||s)(e);return r&&(n=n.toLowerCase()),t&&(n=tc(n)),"start"===o?0===n.indexOf(u):n.indexOf(u)>-1}):e;return"number"==typeof n?c.slice(0,n):c}}function tp(e,t){for(let r=0;r{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function th(e){let{unstable_isActiveElementInListbox:t=tm,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:s=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:f,disabledItemsFocusable:m=!1,disableListWrap:h=!1,filterOptions:g=tf,filterSelectedOptions:v=!1,freeSolo:b=!1,getOptionDisabled:y,getOptionKey:D,getOptionLabel:x=e=>{var t;return null!=(t=e.label)?t:e},groupBy:C,handleHomeEndKeys:Z=!e.freeSolo,id:w,includeInputInList:S=!1,inputValue:F,isOptionEqualToValue:k=(e,t)=>e===t,multiple:E=!1,onChange:M,onClose:I,onHighlightChange:j,onInputChange:T,onOpen:A,open:N,openOnFocus:L=!1,options:P,readOnly:O=!1,selectOnFocus:z=!e.freeSolo,value:W}=e,_=(0,ta.Z)(w),U=x;U=e=>{let t=x(e);return"string"!=typeof t?String(t):t};let H=B.useRef(!1),G=B.useRef(!0),Y=B.useRef(null),V=B.useRef(null),[$,q]=B.useState(null),[Q,X]=B.useState(-1),K=o?0:-1,J=B.useRef(K),[ee,et]=(0,ti.Z)({controlled:W,default:c,name:u}),[er,en]=(0,ti.Z)({controlled:F,default:"",name:u,state:"inputValue"}),[eo,ea]=B.useState(!1),ei=B.useCallback((e,t)=>{let r;if((E?ee.length!(v&&(E?ee:[ee]).some(t=>null!==t&&k(e,t)))),{inputValue:ed&&eu?"":er,getOptionLabel:U}):[],em=tl({filteredOptions:ef,value:ee,inputValue:er});B.useEffect(()=>{let e=ee!==em.value;(!eo||e)&&(!b||e)&&ei(null,ee)},[ee,ei,eo,em.value,b]);let eh=el&&ef.length>0&&!O,eg=(0,ts.Z)(e=>{-1===e?Y.current.focus():$.querySelector(`[data-tag-index="${e}"]`).focus()});B.useEffect(()=>{E&&Q>ee.length-1&&(X(-1),eg(-1))},[ee,E,Q,eg]);let ev=(0,ts.Z)(({event:e,index:t,reason:n="auto"})=>{if(J.current=t,-1===t?Y.current.removeAttribute("aria-activedescendant"):Y.current.setAttribute("aria-activedescendant",`${_}-option-${t}`),j&&j(e,-1===t?null:ef[t],n),!V.current)return;let o=V.current.querySelector(`[role="option"].${r}-focused`);o&&(o.classList.remove(`${r}-focused`),o.classList.remove(`${r}-focusVisible`));let a=V.current;if("listbox"!==V.current.getAttribute("role")&&(a=V.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t){a.scrollTop=0;return}let i=V.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${r}-focused`),"keyboard"===n&&i.classList.add(`${r}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==n&&"touch"!==n)){let e=a.clientHeight+a.scrollTop,t=i.offsetTop+i.offsetHeight;t>e?a.scrollTop=t-a.clientHeight:i.offsetTop-i.offsetHeight*(C?1.3:0){if(!ep)return;let a=function(e,t){if(!V.current||e<0||e>=ef.length)return -1;let r=e;for(;;){let n=V.current.querySelector(`[data-option-index="${r}"]`),o=!m&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!o)return r;if((r="next"===t?(r+1)%ef.length:(r-1+ef.length)%ef.length)===e)return -1}}((()=>{let e=ef.length-1;if("reset"===t)return K;if("start"===t)return 0;if("end"===t)return e;let r=J.current+t;return r<0?-1===r&&S?-1:h&&-1!==J.current||Math.abs(t)>1?0:e:r>e?r===e+1&&S?-1:h||Math.abs(t)>1?e:0:r})(),r);if(ev({index:a,reason:o,event:e}),n&&"reset"!==t){if(-1===a)Y.current.value=er;else{let e=U(ef[a]);Y.current.value=e,0===e.toLowerCase().indexOf(er.toLowerCase())&&er.length>0&&Y.current.setSelectionRange(er.length,e.length)}}}),ey=()=>{var e;if(-1!==J.current&&em.filteredOptions&&em.filteredOptions.length!==ef.length&&em.inputValue===er&&(E?ee.length===em.value.length&&em.value.every((e,t)=>U(ee[t])===U(e)):((e=em.value)?U(e):"")===(ee?U(ee):""))){let e=em.filteredOptions[J.current];if(e&&ef.some(t=>U(t)===U(e)))return!0}return!1},eD=B.useCallback(()=>{if(!ep||ey())return;let e=E?ee[0]:ee;if(0===ef.length||null==e){eb({diff:"reset"});return}if(V.current){if(null!=e){let t=ef[J.current];if(E&&t&&-1!==tp(ee,e=>k(t,e)))return;let r=tp(ef,t=>k(t,e));-1===r?eb({diff:"reset"}):ev({index:r});return}if(J.current>=ef.length-1){ev({index:ef.length-1});return}ev({index:J.current})}},[ef.length,!E&&ee,v,eb,ev,ep,er,E]),ex=(0,ts.Z)(e=>{(0,tu.Z)(V,e),e&&eD()});B.useEffect(()=>{eD()},[eD]);let eC=e=>{!el&&(es(!0),ec(!0),A&&A(e))},eZ=(e,t)=>{el&&(es(!1),I&&I(e,t))},ew=(e,t,r,n)=>{if(E){if(ee.length===t.length&&ee.every((e,r)=>e===t[r]))return}else if(ee===t)return;M&&M(e,t,r,n),et(t)},eS=B.useRef(!1),eF=(e,t,r="selectOption",n="options")=>{let o=r,a=t;if(E){let e=tp(a=Array.isArray(ee)?ee.slice():[],e=>k(t,e));-1===e?a.push(t):"freeSolo"!==n&&(a.splice(e,1),o="removeOption")}ei(e,a),ew(e,a,o,{option:t}),p||e&&(e.ctrlKey||e.metaKey)||eZ(e,o),(!0===i||"touch"===i&&eS.current||"mouse"===i&&!eS.current)&&Y.current.blur()},ek=(e,t)=>{if(!E)return;""===er&&eZ(e,"toggleInput");let r=Q;-1===Q?""===er&&"previous"===t&&(r=ee.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===ee.length&&(r=-1)),X(r=function(e,t){if(-1===e)return -1;let r=e;for(;;){if("next"===t&&r===ee.length||"previous"===t&&-1===r)return -1;let e=$.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t)),eg(r)},eE=e=>{H.current=!0,en(""),T&&T(e,"","clear"),ew(e,E?[]:null,"clear")},eM=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Q&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(X(-1),eg(-1)),229!==t.which))switch(t.key){case"Home":ep&&Z&&(t.preventDefault(),eb({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ep&&Z&&(t.preventDefault(),eb({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),eb({diff:-5,direction:"previous",reason:"keyboard",event:t}),eC(t);break;case"PageDown":t.preventDefault(),eb({diff:5,direction:"next",reason:"keyboard",event:t}),eC(t);break;case"ArrowDown":t.preventDefault(),eb({diff:1,direction:"next",reason:"keyboard",event:t}),eC(t);break;case"ArrowUp":t.preventDefault(),eb({diff:-1,direction:"previous",reason:"keyboard",event:t}),eC(t);break;case"ArrowLeft":ek(t,"previous");break;case"ArrowRight":ek(t,"next");break;case"Enter":if(-1!==J.current&&ep){let e=ef[J.current],r=!!y&&y(e);if(t.preventDefault(),r)return;eF(t,e,"selectOption"),n&&Y.current.setSelectionRange(Y.current.value.length,Y.current.value.length)}else b&&""!==er&&!1===ed&&(E&&t.preventDefault(),eF(t,er,"createOption","freeSolo"));break;case"Escape":ep?(t.preventDefault(),t.stopPropagation(),eZ(t,"escape")):s&&(""!==er||E&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),eE(t));break;case"Backspace":if(E&&!O&&""===er&&ee.length>0){let e=-1===Q?ee.length-1:Q,r=ee.slice();r.splice(e,1),ew(t,r,"removeOption",{option:ee[e]})}break;case"Delete":if(E&&!O&&""===er&&ee.length>0&&-1!==Q){let e=ee.slice();e.splice(Q,1),ew(t,e,"removeOption",{option:ee[Q]})}}},eI=e=>{ea(!0),L&&!H.current&&eC(e)},ej=e=>{if(t(V)){Y.current.focus();return}ea(!1),G.current=!0,H.current=!1,a&&-1!==J.current&&ep?eF(e,ef[J.current],"blur"):a&&b&&""!==er?eF(e,er,"blur","freeSolo"):l&&ei(e,ee),eZ(e,"blur")},eT=e=>{let t=e.target.value;er!==t&&(en(t),ec(!1),T&&T(e,t,"input")),""===t?d||E||ew(e,null,"clear"):eC(e)},eA=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&ev({event:e,index:t,reason:"mouse"})},eN=e=>{ev({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),eS.current=!0},eL=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));eF(e,ef[t],"selectOption"),eS.current=!1},eP=e=>t=>{let r=ee.slice();r.splice(e,1),ew(t,r,"removeOption",{option:ee[e]})},eR=e=>{el?eZ(e,"toggleInput"):eC(e)},eB=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==_&&e.preventDefault()},eO=e=>{e.currentTarget.contains(e.target)&&(Y.current.focus(),z&&G.current&&Y.current.selectionEnd-Y.current.selectionStart==0&&Y.current.select(),G.current=!1)},ez=e=>{f||""!==er&&el||eR(e)},eW=b&&er.length>0;eW=eW||(E?ee.length>0:null!==ee);let e_=ef;return C&&(e_=ef.reduce((e,t,r)=>{let n=C(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e},[])),f&&eo&&ej(),{getRootProps:(e={})=>(0,R.Z)({"aria-owns":eh?`${_}-listbox`:null},e,{onKeyDown:eM(e),onMouseDown:eB,onClick:eO}),getInputLabelProps:()=>({id:`${_}-label`,htmlFor:_}),getInputProps:()=>({id:_,value:er,onBlur:ej,onFocus:eI,onChange:eT,onMouseDown:ez,"aria-activedescendant":ep?"":null,"aria-autocomplete":n?"both":"list","aria-controls":eh?`${_}-listbox`:void 0,"aria-expanded":eh,autoComplete:"off",ref:Y,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:eE}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eR}),getTagProps:({index:e})=>(0,R.Z)({key:e,"data-tag-index":e,tabIndex:-1},!O&&{onDelete:eP(e)}),getListboxProps:()=>({role:"listbox",id:`${_}-listbox`,"aria-labelledby":`${_}-label`,ref:ex,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var r;let n=(E?ee:[ee]).some(e=>null!=e&&k(t,e)),o=!!y&&y(t);return{key:null!=(r=null==D?void 0:D(t))?r:U(t),tabIndex:-1,role:"option",id:`${_}-option-${e}`,onMouseMove:eA,onClick:eL,onTouchStart:eN,"data-option-index":e,"aria-disabled":o,"aria-selected":n}},id:_,inputValue:er,value:ee,dirty:eW,expanded:ep&&$,popupOpen:ep,focused:eo||-1!==Q,anchorEl:$,setAnchorEl:q,focusedTag:Q,groupedOptions:e_}}var tg=r(41796),tv=r(73546),tb=r(82690),ty=r(95551);let tD=B.forwardRef(function(e,t){let{children:r,container:n,disablePortal:o=!1}=e,[a,i]=B.useState(null),l=(0,eD.Z)(B.isValidElement(r)?r.ref:null,t);return((0,tv.Z)(()=>{!o&&i(("function"==typeof n?n():n)||document.body)},[n,o]),(0,tv.Z)(()=>{if(a&&!o)return(0,tu.Z)(t,a),()=>{(0,tu.Z)(t,null)}},[t,a,o]),o)?B.isValidElement(r)?B.cloneElement(r,{ref:l}):(0,eu.jsx)(B.Fragment,{children:r}):(0,eu.jsx)(B.Fragment,{children:a?H.createPortal(r,a):a})}),tx="base";function tC(e,t){let r=ei._v[t];return r?`${tx}--${r}`:`${tx}-${e}-${t}`}let tZ="Popper";function tw(e){return tC(tZ,e)}!function(e,t){let r={};t.forEach(t=>{r[t]=tC(e,t)})}(tZ,["root"]);let tS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tF(e){var t;let{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=(0,P.Z)(e,tS),l=a?{}:ex(n,o),{props:s,internalRef:u}=ew((0,R.Z)({},i,{externalSlotProps:l})),c=(0,eD.Z)(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref);return eF(r,(0,R.Z)({},s,{ref:c}),o)}let tk=B.createContext({disableDefaultClasses:!1}),tE=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],tM=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function tI(e){return"function"==typeof e?e():e}let tj=()=>(0,z.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=B.useContext(tk);return r=>t?"":e(r)}(tw)),tT={},tA=B.forwardRef(function(e,t){var r;let{anchorEl:n,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:u,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:m}=e,h=(0,P.Z)(e,tE),g=B.useRef(null),v=(0,eD.Z)(g,t),b=B.useRef(null),y=(0,eD.Z)(b,d),D=B.useRef(y);(0,tv.Z)(()=>{D.current=y},[y]),B.useImperativeHandle(d,()=>b.current,[]);let x=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,a),[C,Z]=B.useState(x),[w,S]=B.useState(tI(n));B.useEffect(()=>{b.current&&b.current.forceUpdate()}),B.useEffect(()=>{n&&S(tI(n))},[n]),(0,tv.Z)(()=>{if(!w||!s)return;let e=e=>{Z(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=l&&(t=t.concat(l)),c&&null!=c.modifiers&&(t=t.concat(c.modifiers));let r=(0,ty.fi)(w,g.current,(0,R.Z)({placement:x},c,{modifiers:t}));return D.current(r),()=>{r.destroy(),D.current(null)}},[w,i,l,s,c,x]);let F={placement:C};null!==m&&(F.TransitionProps=m);let k=tj(),E=null!=(r=f.root)?r:"div",M=tF({elementType:E,externalSlotProps:p.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:k.root});return(0,eu.jsx)(E,(0,R.Z)({},M,{children:"function"==typeof o?o(F):o}))}),tN=B.forwardRef(function(e,t){let r;let{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=tT,popperRef:f,style:m,transition:h=!1,slotProps:g={},slots:v={}}=e,b=(0,P.Z)(e,tM),[y,D]=B.useState(!0);if(!s&&!c&&(!h||y))return null;if(a)r=a;else if(n){let e=tI(n);r=e&&void 0!==e.nodeType?(0,tb.Z)(e).body:(0,tb.Z)(null).body}let x=!c&&s&&(!h||y)?"none":void 0,C=h?{in:c,onEnter:()=>{D(!1)},onExited:()=>{D(!0)}}:void 0;return(0,eu.jsx)(tD,{disablePortal:l,container:r,children:(0,eu.jsx)(tA,(0,R.Z)({anchorEl:n,direction:i,disablePortal:l,modifiers:u,ref:t,open:h?!y:c,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:v},b,{style:(0,R.Z)({position:"fixed",top:0,left:0,display:x},m),TransitionProps:C,children:o}))})});var tL=r(34168);let tP=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],tR=(0,W.ZP)(tN,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({});var tB=B.forwardRef(function(e,t){var r;let n=(0,tL.Z)(),o=(0,_.Z)({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:m,popperOptions:h,popperRef:g,transition:v,slots:b,slotProps:y}=o,D=(0,P.Z)(o,tP),x=null!=(r=null==b?void 0:b.root)?r:null==l?void 0:l.Root,C=(0,R.Z)({anchorEl:a,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:m,popperOptions:h,popperRef:g,transition:v},D);return(0,eu.jsx)(tR,(0,R.Z)({as:i,direction:null==n?void 0:n.direction,slots:{root:x},slotProps:null!=y?y:s},C,{ref:t}))});function tO(e){return(0,ei.ZP)("MuiListSubheader",e)}var tz=(0,ea.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);let tW=["className","color","component","disableGutters","disableSticky","inset"],t_=e=>{let{classes:t,color:r,disableGutters:n,inset:o,disableSticky:a}=e,i={root:["root","default"!==r&&"color".concat((0,e6.Z)(r)),!n&&"gutters",o&&"inset",!a&&"sticky"]};return(0,z.Z)(i,tO,t)},tU=(0,W.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color".concat((0,e6.Z)(r.color))],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===r.color&&{color:(t.vars||t).palette.primary.main},"inherit"===r.color&&{color:"inherit"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.inset&&{paddingLeft:72},!r.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})}),tH=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:a="li",disableGutters:i=!1,disableSticky:l=!1,inset:s=!1}=r,u=(0,P.Z)(r,tW),c=(0,R.Z)({},r,{color:o,component:a,disableGutters:i,disableSticky:l,inset:s}),d=t_(c);return(0,eu.jsx)(tU,(0,R.Z)({as:a,className:(0,O.Z)(d.root,n),ref:t,ownerState:c},u))});tH.muiSkipListHighlight=!0;var tG=tH,tY=r(80594),tV=r(12921),t$=(0,tV.Z)((0,eu.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function tq(e){return(0,ei.ZP)("MuiChip",e)}var tQ=(0,ea.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);let tX=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],tK=e=>{let{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:i,clickable:l,variant:s}=e,u={root:["root",s,r&&"disabled","size".concat((0,e6.Z)(n)),"color".concat((0,e6.Z)(o)),l&&"clickable",l&&"clickableColor".concat((0,e6.Z)(o)),i&&"deletable",i&&"deletableColor".concat((0,e6.Z)(o)),"".concat(s).concat((0,e6.Z)(o))],label:["label","label".concat((0,e6.Z)(n))],avatar:["avatar","avatar".concat((0,e6.Z)(n)),"avatarColor".concat((0,e6.Z)(o))],icon:["icon","icon".concat((0,e6.Z)(n)),"iconColor".concat((0,e6.Z)(a))],deleteIcon:["deleteIcon","deleteIcon".concat((0,e6.Z)(n)),"deleteIconColor".concat((0,e6.Z)(o)),"deleteIcon".concat((0,e6.Z)(s),"Color").concat((0,e6.Z)(o))]};return(0,z.Z)(u,tq,t)},tJ=(0,W.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:i,size:l,variant:s}=r;return[{["& .".concat(tQ.avatar)]:t.avatar},{["& .".concat(tQ.avatar)]:t["avatar".concat((0,e6.Z)(l))]},{["& .".concat(tQ.avatar)]:t["avatarColor".concat((0,e6.Z)(n))]},{["& .".concat(tQ.icon)]:t.icon},{["& .".concat(tQ.icon)]:t["icon".concat((0,e6.Z)(l))]},{["& .".concat(tQ.icon)]:t["iconColor".concat((0,e6.Z)(o))]},{["& .".concat(tQ.deleteIcon)]:t.deleteIcon},{["& .".concat(tQ.deleteIcon)]:t["deleteIcon".concat((0,e6.Z)(l))]},{["& .".concat(tQ.deleteIcon)]:t["deleteIconColor".concat((0,e6.Z)(n))]},{["& .".concat(tQ.deleteIcon)]:t["deleteIcon".concat((0,e6.Z)(s),"Color").concat((0,e6.Z)(n))]},t.root,t["size".concat((0,e6.Z)(l))],t["color".concat((0,e6.Z)(n))],a&&t.clickable,a&&"default"!==n&&t["clickableColor".concat((0,e6.Z)(n),")")],i&&t.deletable,i&&"default"!==n&&t["deletableColor".concat((0,e6.Z)(n))],t[s],t["".concat(s).concat((0,e6.Z)(n))]]}})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,R.Z)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&.".concat(tQ.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["& .".concat(tQ.avatar)]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:n,fontSize:t.typography.pxToRem(12)},["& .".concat(tQ.avatarColorPrimary)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},["& .".concat(tQ.avatarColorSecondary)]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},["& .".concat(tQ.avatarSmall)]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},["& .".concat(tQ.icon)]:(0,R.Z)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,R.Z)({color:t.vars?t.vars.palette.Chip.defaultIconColor:n},"default"!==r.color&&{color:"inherit"})),["& .".concat(tQ.deleteIcon)]:(0,R.Z)({WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):(0,tg.Fq)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,tg.Fq)(t.palette.text.primary,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:t.vars?"rgba(".concat(t.vars.palette[r.color].contrastTextChannel," / 0.7)"):(0,tg.Fq)(t.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].contrastText}})},"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].main,color:(t.vars||t).palette[r.color].contrastText},r.onDelete&&{["&.".concat(tQ.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},r.onDelete&&"default"!==r.color&&{["&.".concat(tQ.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}})},e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},r.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},["&.".concat(tQ.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},r.clickable&&"default"!==r.color&&{["&:hover, &.".concat(tQ.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}})},e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},"outlined"===r.variant&&{backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]),["&.".concat(tQ.clickable,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(tQ.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["& .".concat(tQ.avatar)]:{marginLeft:4},["& .".concat(tQ.avatarSmall)]:{marginLeft:2},["& .".concat(tQ.icon)]:{marginLeft:4},["& .".concat(tQ.iconSmall)]:{marginLeft:2},["& .".concat(tQ.deleteIcon)]:{marginRight:5},["& .".concat(tQ.deleteIconSmall)]:{marginRight:3}},"outlined"===r.variant&&"default"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,tg.Fq)(t.palette[r.color].main,.7)),["&.".concat(tQ.clickable,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,tg.Fq)(t.palette[r.color].main,t.palette.action.hoverOpacity)},["&.".concat(tQ.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,tg.Fq)(t.palette[r.color].main,t.palette.action.focusOpacity)},["& .".concat(tQ.deleteIcon)]:{color:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,tg.Fq)(t.palette[r.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].main}}})}),t0=(0,W.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{let{ownerState:r}=e,{size:n}=r;return[t.label,t["label".concat((0,e6.Z)(n))]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===t.variant&&{paddingLeft:11,paddingRight:11},"small"===t.size&&{paddingLeft:8,paddingRight:8},"small"===t.size&&"outlined"===t.variant&&{paddingLeft:7,paddingRight:7})});function t1(e){return"Backspace"===e.key||"Delete"===e.key}var t2=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiChip"}),{avatar:n,className:o,clickable:a,color:i="default",component:l,deleteIcon:s,disabled:u=!1,icon:c,label:d,onClick:p,onDelete:f,onKeyDown:m,onKeyUp:h,size:g="medium",variant:v="filled",tabIndex:b,skipFocusWhenDisabled:y=!1}=r,D=(0,P.Z)(r,tX),x=B.useRef(null),C=(0,eo.Z)(x,t),Z=e=>{e.stopPropagation(),f&&f(e)},w=!1!==a&&!!p||a,S=w||f?e$.Z:l||"div",F=(0,R.Z)({},r,{component:S,disabled:u,size:g,color:i,iconColor:B.isValidElement(c)&&c.props.color||i,onDelete:!!f,clickable:w,variant:v}),k=tK(F),E=S===e$.Z?(0,R.Z)({component:l||"div",focusVisibleClassName:k.focusVisible},f&&{disableRipple:!0}):{},M=null;f&&(M=s&&B.isValidElement(s)?B.cloneElement(s,{className:(0,O.Z)(s.props.className,k.deleteIcon),onClick:Z}):(0,eu.jsx)(t$,{className:(0,O.Z)(k.deleteIcon),onClick:Z}));let I=null;n&&B.isValidElement(n)&&(I=B.cloneElement(n,{className:(0,O.Z)(k.avatar,n.props.className)}));let j=null;return c&&B.isValidElement(c)&&(j=B.cloneElement(c,{className:(0,O.Z)(k.icon,c.props.className)})),(0,eu.jsxs)(tJ,(0,R.Z)({as:S,className:(0,O.Z)(k.root,o),disabled:!!w&&!!u||void 0,onClick:p,onKeyDown:e=>{e.currentTarget===e.target&&t1(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&t1(e)?f(e):"Escape"===e.key&&x.current&&x.current.blur()),h&&h(e)},ref:C,tabIndex:y&&u?-1:b,ownerState:F},E,D,{children:[I||j,(0,eu.jsx)(t0,{className:(0,O.Z)(k.label),ownerState:F,children:d}),M]}))});function t4(e){return(0,ei.ZP)("MuiInputBase",e)}var t3=(0,ea.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function t5(e){return(0,ei.ZP)("MuiInput",e)}var t8=(0,R.Z)({},t3,(0,ea.Z)("MuiInput",["root","underline","input"]));function t6(e){return(0,ei.ZP)("MuiOutlinedInput",e)}var t9=(0,R.Z)({},t3,(0,ea.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));function t7(e){return(0,ei.ZP)("MuiFilledInput",e)}var re=(0,R.Z)({},t3,(0,ea.Z)("MuiFilledInput",["root","underline","input"])),rt=r(67178),rr=(0,tV.Z)((0,eu.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function rn(e){return(0,ei.ZP)("MuiAutocomplete",e)}var ro=(0,ea.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);let ra=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],ri=["ref"],rl=["key"],rs=e=>{let{classes:t,disablePortal:r,expanded:n,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:l,inputFocused:s,popupOpen:u,size:c}=e,d={root:["root",n&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag","tagSize".concat((0,e6.Z)(c))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,z.Z)(d,rn,t)},ru=(0,W.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{fullWidth:n,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:l}=r;return[{["& .".concat(ro.tag)]:t.tag},{["& .".concat(ro.tag)]:t["tagSize".concat((0,e6.Z)(l))]},{["& .".concat(ro.inputRoot)]:t.inputRoot},{["& .".concat(ro.input)]:t.input},{["& .".concat(ro.input)]:i&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({["&.".concat(ro.focused," .").concat(ro.clearIndicator)]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover .".concat(ro.clearIndicator)]:{visibility:"visible"}}},t.fullWidth&&{width:"100%"},{["& .".concat(ro.tag)]:(0,R.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===t.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),["& .".concat(ro.inputRoot)]:{flexWrap:"wrap",[".".concat(ro.hasPopupIcon,"&, .").concat(ro.hasClearIcon,"&")]:{paddingRight:30},[".".concat(ro.hasPopupIcon,".").concat(ro.hasClearIcon,"&")]:{paddingRight:56},["& .".concat(ro.input)]:{width:0,minWidth:30}},["& .".concat(t8.root)]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},["& .".concat(t8.root,".").concat(t3.sizeSmall)]:{["& .".concat(t8.input)]:{padding:"2px 4px 3px 0"}},["& .".concat(t9.root)]:{padding:9,[".".concat(ro.hasPopupIcon,"&, .").concat(ro.hasClearIcon,"&")]:{paddingRight:39},[".".concat(ro.hasPopupIcon,".").concat(ro.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(ro.input)]:{padding:"7.5px 4px 7.5px 5px"},["& .".concat(ro.endAdornment)]:{right:9}},["& .".concat(t9.root,".").concat(t3.sizeSmall)]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& .".concat(ro.input)]:{padding:"2.5px 4px 2.5px 8px"}},["& .".concat(re.root)]:{paddingTop:19,paddingLeft:8,[".".concat(ro.hasPopupIcon,"&, .").concat(ro.hasClearIcon,"&")]:{paddingRight:39},[".".concat(ro.hasPopupIcon,".").concat(ro.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(re.input)]:{padding:"7px 4px"},["& .".concat(ro.endAdornment)]:{right:9}},["& .".concat(re.root,".").concat(t3.sizeSmall)]:{paddingBottom:1,["& .".concat(re.input)]:{padding:"2.5px 4px"}},["& .".concat(t3.hiddenLabel)]:{paddingTop:8},["& .".concat(re.root,".").concat(t3.hiddenLabel)]:{paddingTop:0,paddingBottom:0,["& .".concat(ro.input)]:{paddingTop:16,paddingBottom:17}},["& .".concat(re.root,".").concat(t3.hiddenLabel,".").concat(t3.sizeSmall)]:{["& .".concat(ro.input)]:{paddingTop:8,paddingBottom:9}},["& .".concat(ro.input)]:(0,R.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},t.inputFocused&&{opacity:1})})}),rc=(0,W.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),rd=(0,W.ZP)(tY.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),rp=(0,W.ZP)(tY.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,R.Z)({},t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen)}})(e=>{let{ownerState:t}=e;return(0,R.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})}),rf=(0,W.ZP)(tB,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(ro.option)]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({zIndex:(t.vars||t).zIndex.modal},r.disablePortal&&{position:"absolute"})}),rm=(0,W.ZP)(ev.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(e=>{let{theme:t}=e;return(0,R.Z)({},t.typography.body1,{overflow:"auto"})}),rh=(0,W.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}}),rg=(0,W.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}}),rv=(0,W.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& .".concat(ro.option)]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},["&.".concat(ro.focused)]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(ro.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(ro.focused)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(ro.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}}),rb=(0,W.ZP)(tG,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}}),ry=(0,W.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& .".concat(ro.option)]:{paddingLeft:24}});var rD=B.forwardRef(function(e,t){var r,n,o,l;let s;let u=(0,_.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:d=!1,autoSelect:p=!1,blurOnSelect:f=!1,ChipProps:m,className:h,clearIcon:g=a||(a=(0,eu.jsx)(rt.Z,{fontSize:"small"})),clearOnBlur:v=!u.freeSolo,clearOnEscape:b=!1,clearText:y="Clear",closeText:D="Close",componentsProps:x={},defaultValue:C=u.multiple?[]:null,disableClearable:Z=!1,disableCloseOnSelect:w=!1,disabled:S=!1,disabledItemsFocusable:F=!1,disableListWrap:k=!1,disablePortal:E=!1,filterSelectedOptions:M=!1,forcePopupIcon:I="auto",freeSolo:j=!1,fullWidth:T=!1,getLimitTagsText:A=e=>"+".concat(e),getOptionLabel:N,groupBy:L,handleHomeEndKeys:z=!u.freeSolo,includeInputInList:W=!1,limitTags:U=-1,ListboxComponent:H="ul",ListboxProps:G,loading:Y=!1,loadingText:V="Loading…",multiple:$=!1,noOptionsText:q="No options",openOnFocus:Q=!1,openText:X="Open",PaperComponent:K=ev.Z,PopperComponent:J=tB,popupIcon:ee=i||(i=(0,eu.jsx)(rr,{})),readOnly:et=!1,renderGroup:er,renderInput:en,renderOption:ea,renderTags:ei,selectOnFocus:el=!u.freeSolo,size:es="medium",slotProps:ec={}}=u,ed=(0,P.Z)(u,ra),{getRootProps:ep,getInputProps:ef,getInputLabelProps:em,getPopupIndicatorProps:eh,getClearProps:eg,getTagProps:eb,getListboxProps:ey,getOptionProps:eD,value:ex,dirty:eC,expanded:eZ,id:ew,popupOpen:eS,focused:eF,focusedTag:ek,anchorEl:eE,setAnchorEl:eM,inputValue:eI,groupedOptions:ej}=th((0,R.Z)({},u,{componentName:"Autocomplete"})),eT=!Z&&!S&&eC&&!et,eA=(!j||!0===I)&&!1!==I,{onMouseDown:eN}=ef(),{ref:eL}=null!=G?G:{},eP=ey(),{ref:eR}=eP,eB=(0,P.Z)(eP,ri),eO=(0,eo.Z)(eR,eL),ez=N||(e=>{var t;return null!=(t=e.label)?t:e}),eW=(0,R.Z)({},u,{disablePortal:E,expanded:eZ,focused:eF,fullWidth:T,getOptionLabel:ez,hasClearIcon:eT,hasPopupIcon:eA,inputFocused:-1===ek,popupOpen:eS,size:es}),e_=rs(eW);if($&&ex.length>0){let e=e=>(0,R.Z)({className:e_.tag,disabled:S},eb(e));s=ei?ei(ex,e,eW):ex.map((t,r)=>(0,eu.jsx)(t2,(0,R.Z)({label:ez(t),size:es},e({index:r}),m)))}if(U>-1&&Array.isArray(s)){let e=s.length-U;!eF&&e>0&&(s=s.splice(0,U)).push((0,eu.jsx)("span",{className:e_.tag,children:A(e)},s.length))}let eU=er||(e=>(0,eu.jsxs)("li",{children:[(0,eu.jsx)(rb,{className:e_.groupLabel,ownerState:eW,component:"div",children:e.group}),(0,eu.jsx)(ry,{className:e_.groupUl,ownerState:eW,children:e.children})]},e.key)),eH=ea||((e,t)=>{let{key:r}=e,n=(0,P.Z)(e,rl);return(0,eu.jsx)("li",(0,R.Z)({},n,{children:ez(t)}),r)}),eG=(e,t)=>{let r=eD({option:e,index:t});return eH((0,R.Z)({},r,{className:e_.option}),e,{selected:r["aria-selected"],index:t,inputValue:eI},eW)},eY=null!=(r=ec.clearIndicator)?r:x.clearIndicator,eV=null!=(n=ec.paper)?n:x.paper,e$=null!=(o=ec.popper)?o:x.popper,eq=null!=(l=ec.popupIndicator)?l:x.popupIndicator;return(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)(ru,(0,R.Z)({ref:t,className:(0,O.Z)(e_.root,h),ownerState:eW},ep(ed),{children:en({id:ew,disabled:S,fullWidth:!0,size:"small"===es?"small":void 0,InputLabelProps:em(),InputProps:(0,R.Z)({ref:eM,className:e_.inputRoot,startAdornment:s,onClick:e=>{e.target===e.currentTarget&&eN(e)}},(eT||eA)&&{endAdornment:(0,eu.jsxs)(rc,{className:e_.endAdornment,ownerState:eW,children:[eT?(0,eu.jsx)(rd,(0,R.Z)({},eg(),{"aria-label":y,title:y,ownerState:eW},eY,{className:(0,O.Z)(e_.clearIndicator,null==eY?void 0:eY.className),children:g})):null,eA?(0,eu.jsx)(rp,(0,R.Z)({},eh(),{disabled:S,"aria-label":eS?D:X,title:eS?D:X,ownerState:eW},eq,{className:(0,O.Z)(e_.popupIndicator,null==eq?void 0:eq.className),children:ee})):null]})}),inputProps:(0,R.Z)({className:e_.input,disabled:S,readOnly:et},ef())})})),eE?(0,eu.jsx)(rf,(0,R.Z)({as:J,disablePortal:E,style:{width:eE?eE.clientWidth:null},ownerState:eW,role:"presentation",anchorEl:eE,open:eS},e$,{className:(0,O.Z)(e_.popper,null==e$?void 0:e$.className),children:(0,eu.jsxs)(rm,(0,R.Z)({ownerState:eW,as:K},eV,{className:(0,O.Z)(e_.paper,null==eV?void 0:eV.className),children:[Y&&0===ej.length?(0,eu.jsx)(rh,{className:e_.loading,ownerState:eW,children:V}):null,0!==ej.length||j||Y?null:(0,eu.jsx)(rg,{className:e_.noOptions,ownerState:eW,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:q}),ej.length>0?(0,eu.jsx)(rv,(0,R.Z)({as:H,className:e_.listbox,ownerState:eW},eB,G,{ref:eO,children:ej.map((e,t)=>L?eU({key:e.key,group:e.group,children:e.options.map((t,r)=>eG(t,e.index+r))}):eG(e,t))})):null]}))})):null]})}),rx=r(10382),rC=r(86767);function rZ(e){return(0,ei.ZP)("MuiAvatarGroup",e)}var rw=(0,ea.Z)("MuiAvatarGroup",["root","avatar"]);let rS=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],rF={small:-16,medium:null},rk=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],avatar:["avatar"]},rZ,t)},rE=(0,W.ZP)("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>(0,R.Z)({["& .".concat(rw.avatar)]:t.avatar},t.root)})(e=>{let{theme:t}=e;return{["& .".concat(rC.Z.root)]:{border:"2px solid ".concat((t.vars||t).palette.background.default),boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),rM=(0,W.ZP)(rx.Z,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})(e=>{let{theme:t}=e;return{border:"2px solid ".concat((t.vars||t).palette.background.default),boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}}});var rI=B.forwardRef(function(e,t){var r;let n=(0,_.Z)({props:e,name:"MuiAvatarGroup"}),{children:o,className:a,component:i="div",componentsProps:l={},max:s=5,renderSurplus:u,slotProps:c={},spacing:d="medium",total:p,variant:f="circular"}=n,m=(0,P.Z)(n,rS),h=s<2?2:s,g=(0,R.Z)({},n,{max:s,spacing:d,component:i,variant:f}),v=rk(g),b=B.Children.toArray(o).filter(e=>B.isValidElement(e)),y=p||b.length;y===h&&(h+=1),h=Math.min(y+1,h);let D=Math.min(b.length,h-1),x=Math.max(y-h,y-D,0),C=u?u(x):"+".concat(x),Z=d&&void 0!==rF[d]?rF[d]:-d,w=null!=(r=c.additionalAvatar)?r:l.additionalAvatar;return(0,eu.jsxs)(rE,(0,R.Z)({as:i,ownerState:g,className:(0,O.Z)(v.root,a),ref:t},m,{children:[x?(0,eu.jsx)(rM,(0,R.Z)({ownerState:g,variant:f},w,{className:(0,O.Z)(v.avatar,null==w?void 0:w.className),style:(0,R.Z)({marginLeft:Z},null==w?void 0:w.style),children:C})):null,b.slice(0,D).reverse().map((e,t)=>B.cloneElement(e,{className:(0,O.Z)(e.props.className,v.avatar),style:(0,R.Z)({marginLeft:t===D-1?void 0:Z},e.props.style),variant:e.props.variant||f}))]}))});let rj=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],rT={entering:{opacity:1},entered:{opacity:1}};var rA=B.forwardRef(function(e,t){let r=(0,en.Z)(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:v=K}=e,b=(0,P.Z)(e,rj),y=B.useRef(null),D=(0,eo.Z)(y,i.ref,t),x=e=>t=>{if(e){let r=y.current;void 0===t?e(r):e(r,t)}},C=x(d),Z=x((e,t)=>{et(e);let n=er({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)}),w=x(c),S=x(m),F=x(e=>{let t=er({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),k=x(f);return(0,eu.jsx)(v,(0,R.Z)({appear:a,in:s,nodeRef:y,onEnter:Z,onEntered:w,onEntering:C,onExit:F,onExited:k,onExiting:S,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>B.cloneElement(i,(0,R.Z)({style:(0,R.Z)({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},rT[e],h,i.props.style),ref:D},t))}))});function rN(e){return(0,ei.ZP)("MuiBackdrop",e)}var rL=(0,ea.Z)("MuiBackdrop",["root","invisible"]);let rP=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],rR=e=>{let{classes:t,invisible:r}=e;return(0,z.Z)({root:["root",r&&"invisible"]},rN,t)},rB=(0,W.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})});var rO=B.forwardRef(function(e,t){var r,n,o;let a=(0,_.Z)({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=rA,transitionDuration:g}=a,v=(0,P.Z)(a,rP),b=(0,R.Z)({},a,{component:s,invisible:d}),y=rR(b),D=null!=(r=f.root)?r:c.root;return(0,eu.jsx)(h,(0,R.Z)({in:p,timeout:g},v,{children:(0,eu.jsx)(rB,(0,R.Z)({"aria-hidden":!0},D,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:(0,O.Z)(y.root,l,null==D?void 0:D.className),ownerState:(0,R.Z)({},b,null==D?void 0:D.ownerState),classes:y,ref:t,children:i}))}))});function rz(e){return(0,ei.ZP)("MuiBadge",e)}var rW=(0,ea.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);let r_=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],rU=e=>{let{color:t,anchorOrigin:r,invisible:n,overlap:o,variant:a,classes:i={}}=e,l={root:["root"],badge:["badge",a,n&&"invisible","anchorOrigin".concat((0,e6.Z)(r.vertical)).concat((0,e6.Z)(r.horizontal)),"anchorOrigin".concat((0,e6.Z)(r.vertical)).concat((0,e6.Z)(r.horizontal)).concat((0,e6.Z)(o)),"overlap".concat((0,e6.Z)(o)),"default"!==t&&"color".concat((0,e6.Z)(t))]};return(0,z.Z)(l,rz,i)},rH=(0,W.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),rG=(0,W.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.badge,t[r.variant],t["anchorOrigin".concat((0,e6.Z)(r.anchorOrigin.vertical)).concat((0,e6.Z)(r.anchorOrigin.horizontal)).concat((0,e6.Z)(r.overlap))],"default"!==r.color&&t["color".concat((0,e6.Z)(r.color))],r.invisible&&t.invisible]}})(e=>{var t;let{theme:r}=e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:r.typography.fontFamily,fontWeight:r.typography.fontWeightMedium,fontSize:r.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:r.transitions.create("transform",{easing:r.transitions.easing.easeInOut,duration:r.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=r.vars)?t:r).palette).filter(e=>{var t,n;return(null!=(t=r.vars)?t:r).palette[e].main&&(null!=(n=r.vars)?n:r).palette[e].contrastText}).map(e=>({props:{color:e},style:{backgroundColor:(r.vars||r).palette[e].main,color:(r.vars||r).palette[e].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:r.transitions.create("transform",{easing:r.transitions.easing.easeInOut,duration:r.transitions.duration.leavingScreen})}}]}});var rY=B.forwardRef(function(e,t){var r,n,o,a,i,l;let s=(0,_.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:c,component:d,components:p={},componentsProps:f={},children:m,overlap:h="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:D,slotProps:x,showZero:C=!1,variant:Z="standard"}=s,w=(0,P.Z)(s,r_),{badgeContent:S,invisible:F,max:k,displayValue:E}=function(e){let{badgeContent:t,invisible:r=!1,max:n=99,showZero:o=!1}=e,a=tl({badgeContent:t,max:n}),i=r;!1!==r||0!==t||o||(i=!0);let{badgeContent:l,max:s=n}=i?a:e,u=l&&Number(l)>s?`${s}+`:l;return{badgeContent:l,invisible:i,max:s,displayValue:u}}({max:b,invisible:v,badgeContent:y,showZero:C}),M=tl({anchorOrigin:u,color:g,overlap:h,variant:Z,badgeContent:y}),I=F||null==S&&"dot"!==Z,{color:j=g,overlap:T=h,anchorOrigin:A=u,variant:N=Z}=I?M:s,L="dot"!==N?E:void 0,B=(0,R.Z)({},s,{badgeContent:S,invisible:I,max:k,displayValue:L,showZero:C,anchorOrigin:A,color:j,overlap:T,variant:N}),z=rU(B),W=null!=(r=null!=(n=null==D?void 0:D.root)?n:p.Root)?r:rH,U=null!=(o=null!=(a=null==D?void 0:D.badge)?a:p.Badge)?o:rG,H=null!=(i=null==x?void 0:x.root)?i:f.root,G=null!=(l=null==x?void 0:x.badge)?l:f.badge,Y=tF({elementType:W,externalSlotProps:H,externalForwardedProps:w,additionalProps:{ref:t,as:d},ownerState:B,className:(0,O.Z)(null==H?void 0:H.className,z.root,c)}),V=tF({elementType:U,externalSlotProps:G,ownerState:B,className:(0,O.Z)(z.badge,null==G?void 0:G.className)});return(0,eu.jsxs)(W,(0,R.Z)({},Y,{children:[m,(0,eu.jsx)(U,(0,R.Z)({},V,{children:L}))]}))});function rV(e){return(0,ei.ZP)("MuiBottomNavigation",e)}var r$=(0,ea.Z)("MuiBottomNavigation",["root"]);let rq=["children","className","component","onChange","showLabels","value"],rQ=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},rV,t)},rX=(0,W.ZP)("div",{name:"MuiBottomNavigation",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{display:"flex",justifyContent:"center",height:56,backgroundColor:(t.vars||t).palette.background.paper}});var rK=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiBottomNavigation"}),{children:n,className:o,component:a="div",onChange:i,showLabels:l=!1,value:s}=r,u=(0,P.Z)(r,rq),c=(0,R.Z)({},r,{component:a,showLabels:l}),d=rQ(c);return(0,eu.jsx)(rX,(0,R.Z)({as:a,className:(0,O.Z)(d.root,o),ref:t,ownerState:c},u,{children:B.Children.map(n,(e,t)=>{if(!B.isValidElement(e))return null;let r=void 0===e.props.value?t:e.props.value;return B.cloneElement(e,{selected:r===s,showLabel:void 0!==e.props.showLabel?e.props.showLabel:l,value:r,onChange:i})})}))});function rJ(e){return(0,ei.ZP)("MuiBottomNavigationAction",e)}var r0=(0,ea.Z)("MuiBottomNavigationAction",["root","iconOnly","selected","label"]);let r1=["className","icon","label","onChange","onClick","selected","showLabel","value"],r2=e=>{let{classes:t,showLabel:r,selected:n}=e;return(0,z.Z)({root:["root",!r&&!n&&"iconOnly",n&&"selected"],label:["label",!r&&!n&&"iconOnly",n&&"selected"]},rJ,t)},r4=(0,W.ZP)(e$.Z,{name:"MuiBottomNavigationAction",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.showLabel&&!r.selected&&t.iconOnly]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({transition:t.transitions.create(["color","padding-top"],{duration:t.transitions.duration.short}),padding:"0px 12px",minWidth:80,maxWidth:168,color:(t.vars||t).palette.text.secondary,flexDirection:"column",flex:"1"},!r.showLabel&&!r.selected&&{paddingTop:14},!r.showLabel&&!r.selected&&!r.label&&{paddingTop:0},{["&.".concat(r0.selected)]:{color:(t.vars||t).palette.primary.main}})}),r3=(0,W.ZP)("span",{name:"MuiBottomNavigationAction",slot:"Label",overridesResolver:(e,t)=>t.label})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s"},!r.showLabel&&!r.selected&&{opacity:0,transitionDelay:"0s"},{["&.".concat(r0.selected)]:{fontSize:t.typography.pxToRem(14)}})});var r5=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiBottomNavigationAction"}),{className:n,icon:o,label:a,onChange:i,onClick:l,value:s}=r,u=(0,P.Z)(r,r1),c=r2(r);return(0,eu.jsxs)(r4,(0,R.Z)({ref:t,className:(0,O.Z)(c.root,n),focusRipple:!0,onClick:e=>{i&&i(e,s),l&&l(e)},ownerState:r},u,{children:[o,(0,eu.jsx)(r3,{className:c.label,ownerState:r,children:a})]}))}),r8=r(53043),r6=r(4856),r9=r(58046),r7=(0,tV.Z)((0,eu.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");let ne=["slots","slotProps"],nt=(0,W.ZP)(e$.Z)(e=>{let{theme:t}=e;return(0,R.Z)({display:"flex",marginLeft:"calc(".concat(t.spacing(1)," * 0.5)"),marginRight:"calc(".concat(t.spacing(1)," * 0.5)")},"light"===t.palette.mode?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,R.Z)({},"light"===t.palette.mode?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":(0,R.Z)({boxShadow:t.shadows[0]},"light"===t.palette.mode?{backgroundColor:(0,tg._4)(t.palette.grey[200],.12)}:{backgroundColor:(0,tg._4)(t.palette.grey[600],.12)})})}),nr=(0,W.ZP)(r7)({width:24,height:16});var nn=function(e){let{slots:t={},slotProps:r={}}=e,n=(0,P.Z)(e,ne);return(0,eu.jsx)("li",{children:(0,eu.jsx)(nt,(0,R.Z)({focusRipple:!0},n,{ownerState:e,children:(0,eu.jsx)(nr,(0,R.Z)({as:t.CollapsedIcon,ownerState:e},r.collapsedIcon))}))})};function no(e){return(0,ei.ZP)("MuiBreadcrumbs",e)}var na=(0,ea.Z)("MuiBreadcrumbs",["root","ol","li","separator"]);let ni=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],nl=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},no,t)},ns=(0,W.ZP)(r9.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{["& .".concat(na.li)]:t.li},t.root]})({}),nu=(0,W.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),nc=(0,W.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});var nd=B.forwardRef(function(e,t){var r,n;let o=(0,_.Z)({props:e,name:"MuiBreadcrumbs"}),{children:a,className:i,component:l="nav",slots:s={},slotProps:u={},expandText:c="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:p=1,maxItems:f=8,separator:m="/"}=o,h=(0,P.Z)(o,ni),[g,v]=B.useState(!1),b=(0,R.Z)({},o,{component:l,expanded:g,expandText:c,itemsAfterCollapse:d,itemsBeforeCollapse:p,maxItems:f,separator:m}),y=nl(b),D=tF({elementType:s.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:b}),x=B.useRef(null),C=B.Children.toArray(a).filter(e=>B.isValidElement(e)).map((e,t)=>(0,eu.jsx)("li",{className:y.li,children:e},"child-".concat(t)));return(0,eu.jsx)(ns,(0,R.Z)({ref:t,component:l,color:"text.secondary",className:(0,O.Z)(y.root,i),ownerState:b},h,{children:(0,eu.jsx)(nu,{className:y.ol,ref:x,ownerState:b,children:(r=g||f&&C.length<=f?C:p+d>=C.length?C:[...C.slice(0,p),(0,eu.jsx)(nn,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:D},onClick:()=>{v(!0);let e=x.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...C.slice(C.length-d,C.length)],n=y.separator,r.reduce((e,t,o)=>(oB.isValidElement(e))}function nv(e){return(0,ei.ZP)("MuiButtonGroup",e)}var nb=(0,ea.Z)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),ny=r(26855),nD=r(88980);let nx=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],nC=e=>{let{classes:t,color:r,disabled:n,disableElevation:o,fullWidth:a,orientation:i,variant:l}=e,s={root:["root",l,"vertical"===i&&"vertical",a&&"fullWidth",o&&"disableElevation"],grouped:["grouped","grouped".concat((0,e6.Z)(i)),"grouped".concat((0,e6.Z)(l)),"grouped".concat((0,e6.Z)(l)).concat((0,e6.Z)(i)),"grouped".concat((0,e6.Z)(l)).concat((0,e6.Z)(r)),n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,z.Z)(s,nv,t)},nZ=(0,W.ZP)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(nb.grouped)]:t.grouped},{["& .".concat(nb.grouped)]:t["grouped".concat((0,e6.Z)(r.orientation))]},{["& .".concat(nb.grouped)]:t["grouped".concat((0,e6.Z)(r.variant))]},{["& .".concat(nb.grouped)]:t["grouped".concat((0,e6.Z)(r.variant)).concat((0,e6.Z)(r.orientation))]},{["& .".concat(nb.grouped)]:t["grouped".concat((0,e6.Z)(r.variant)).concat((0,e6.Z)(r.color))]},{["& .".concat(nb.firstButton)]:t.firstButton},{["& .".concat(nb.lastButton)]:t.lastButton},{["& .".concat(nb.middleButton)]:t.middleButton},t.root,t[r.variant],!0===r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,"vertical"===r.orientation&&t.vertical]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[2]},r.disableElevation&&{boxShadow:"none"},r.fullWidth&&{width:"100%"},"vertical"===r.orientation&&{flexDirection:"column"},{["& .".concat(nb.grouped)]:(0,R.Z)({minWidth:40,"&:hover":(0,R.Z)({},"contained"===r.variant&&{boxShadow:"none"})},"contained"===r.variant&&{boxShadow:"none"}),["& .".concat(nb.firstButton,",& .").concat(nb.middleButton)]:(0,R.Z)({},"horizontal"===r.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===r.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===r.variant&&"horizontal"===r.orientation&&{borderRight:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(nb.disabled)]:{borderRight:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"text"===r.variant&&"vertical"===r.orientation&&{borderBottom:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(nb.disabled)]:{borderBottom:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"text"===r.variant&&"inherit"!==r.color&&{borderColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):(0,tg.Fq)(t.palette[r.color].main,.5)},"outlined"===r.variant&&"horizontal"===r.orientation&&{borderRightColor:"transparent"},"outlined"===r.variant&&"vertical"===r.orientation&&{borderBottomColor:"transparent"},"contained"===r.variant&&"horizontal"===r.orientation&&{borderRight:"1px solid ".concat((t.vars||t).palette.grey[400]),["&.".concat(nb.disabled)]:{borderRight:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"contained"===r.variant&&"vertical"===r.orientation&&{borderBottom:"1px solid ".concat((t.vars||t).palette.grey[400]),["&.".concat(nb.disabled)]:{borderBottom:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"contained"===r.variant&&"inherit"!==r.color&&{borderColor:(t.vars||t).palette[r.color].dark},{"&:hover":(0,R.Z)({},"outlined"===r.variant&&"horizontal"===r.orientation&&{borderRightColor:"currentColor"},"outlined"===r.variant&&"vertical"===r.orientation&&{borderBottomColor:"currentColor"})}),["& .".concat(nb.lastButton,",& .").concat(nb.middleButton)]:(0,R.Z)({},"horizontal"===r.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===r.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===r.variant&&"horizontal"===r.orientation&&{marginLeft:-1},"outlined"===r.variant&&"vertical"===r.orientation&&{marginTop:-1})})});var nw=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiButtonGroup"}),{children:n,className:o,color:a="primary",component:i="div",disabled:l=!1,disableElevation:s=!1,disableFocusRipple:u=!1,disableRipple:c=!1,fullWidth:d=!1,orientation:p="horizontal",size:f="medium",variant:m="outlined"}=r,h=(0,P.Z)(r,nx),g=(0,R.Z)({},r,{color:a,component:i,disabled:l,disableElevation:s,disableFocusRipple:u,disableRipple:c,fullWidth:d,orientation:p,size:f,variant:m}),v=nC(g),b=B.useMemo(()=>({className:v.grouped,color:a,disabled:l,disableElevation:s,disableFocusRipple:u,disableRipple:c,fullWidth:d,size:f,variant:m}),[a,l,s,u,c,d,f,m,v.grouped]),y=ng(n),D=y.length,x=e=>{let t=0===e,r=e===D-1;return t&&r?"":t?v.firstButton:r?v.lastButton:v.middleButton};return(0,eu.jsx)(nZ,(0,R.Z)({as:i,role:"group",className:(0,O.Z)(v.root,o),ref:t,ownerState:g},h,{children:(0,eu.jsx)(ny.Z.Provider,{value:b,children:y.map((e,t)=>(0,eu.jsx)(nD.Z.Provider,{value:x(t),children:e},t))})}))});function nS(e){return(0,ei.ZP)("MuiCard",e)}var nF=(0,ea.Z)("MuiCard",["root"]);let nk=["className","raised"],nE=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},nS,t)},nM=(0,W.ZP)(ev.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"}));var nI=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCard"}),{className:n,raised:o=!1}=r,a=(0,P.Z)(r,nk),i=(0,R.Z)({},r,{raised:o}),l=nE(i);return(0,eu.jsx)(nM,(0,R.Z)({className:(0,O.Z)(l.root,n),elevation:o?8:void 0,ref:t,ownerState:i},a))}),nj=r(55019),nT=r(10563);function nA(e){return(0,ei.ZP)("MuiCardActions",e)}var nN=(0,ea.Z)("MuiCardActions",["root","spacing"]);let nL=["disableSpacing","className"],nP=e=>{let{classes:t,disableSpacing:r}=e;return(0,z.Z)({root:["root",!r&&"spacing"]},nA,t)},nR=(0,W.ZP)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})});var nB=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCardActions"}),{disableSpacing:n=!1,className:o}=r,a=(0,P.Z)(r,nL),i=(0,R.Z)({},r,{disableSpacing:n}),l=nP(i);return(0,eu.jsx)(nR,(0,R.Z)({className:(0,O.Z)(l.root,o),ownerState:i,ref:t},a))}),nO=r(44282),nz=r(15672);function nW(e){return(0,ei.ZP)("MuiCardHeader",e)}var n_=(0,ea.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]);let nU=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],nH=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},nW,t)},nG=(0,W.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,R.Z)({["& .".concat(n_.title)]:t.title,["& .".concat(n_.subheader)]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),nY=(0,W.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),nV=(0,W.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),n$=(0,W.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"});var nq=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCardHeader"}),{action:n,avatar:o,className:a,component:i="div",disableTypography:l=!1,subheader:s,subheaderTypographyProps:u,title:c,titleTypographyProps:d}=r,p=(0,P.Z)(r,nU),f=(0,R.Z)({},r,{component:i,disableTypography:l}),m=nH(f),h=c;null==h||h.type===r9.Z||l||(h=(0,eu.jsx)(r9.Z,(0,R.Z)({variant:o?"body2":"h5",className:m.title,component:"span",display:"block"},d,{children:h})));let g=s;return null==g||g.type===r9.Z||l||(g=(0,eu.jsx)(r9.Z,(0,R.Z)({variant:o?"body2":"body1",className:m.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),(0,eu.jsxs)(nG,(0,R.Z)({className:(0,O.Z)(m.root,a),as:i,ref:t,ownerState:f},p,{children:[o&&(0,eu.jsx)(nY,{className:m.avatar,ownerState:f,children:o}),(0,eu.jsxs)(n$,{className:m.content,ownerState:f,children:[h,g]}),n&&(0,eu.jsx)(nV,{className:m.action,ownerState:f,children:n})]}))});function nQ(e){return(0,ei.ZP)("MuiCardMedia",e)}var nX=(0,ea.Z)("MuiCardMedia",["root","media","img"]);let nK=["children","className","component","image","src","style"],nJ=e=>{let{classes:t,isMediaComponent:r,isImageComponent:n}=e;return(0,z.Z)({root:["root",r&&"media",n&&"img"]},nQ,t)},n0=(0,W.ZP)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{isMediaComponent:n,isImageComponent:o}=r;return[t.root,n&&t.media,o&&t.img]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},t.isMediaComponent&&{width:"100%"},t.isImageComponent&&{objectFit:"cover"})}),n1=["video","audio","picture","iframe","img"],n2=["picture","img"];var n4=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCardMedia"}),{children:n,className:o,component:a="div",image:i,src:l,style:s}=r,u=(0,P.Z)(r,nK),c=-1!==n1.indexOf(a),d=!c&&i?(0,R.Z)({backgroundImage:'url("'.concat(i,'")')},s):s,p=(0,R.Z)({},r,{component:a,isMediaComponent:c,isImageComponent:-1!==n2.indexOf(a)}),f=nJ(p);return(0,eu.jsx)(n0,(0,R.Z)({className:(0,O.Z)(f.root,o),as:a,role:!c&&i?"img":void 0,ref:t,style:d,ownerState:p,src:c?i||l:void 0},u,{children:n}))}),n3=r(93067),n5=(0,tV.Z)((0,eu.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),n8=(0,tV.Z)((0,eu.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),n6=(0,tV.Z)((0,eu.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function n9(e){return(0,ei.ZP)("MuiCheckbox",e)}var n7=(0,ea.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);let oe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ot=e=>{let{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate","color".concat((0,e6.Z)(n)),"size".concat((0,e6.Z)(o))]},i=(0,z.Z)(a,n9,t);return(0,R.Z)({},t,i)},or=(0,W.ZP)(n3.Z,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t["size".concat((0,e6.Z)(r.size))],"default"!==r.color&&t["color".concat((0,e6.Z)(r.color))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,tg.Fq)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(n7.checked,", &.").concat(n7.indeterminate)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(n7.disabled)]:{color:(t.vars||t).palette.action.disabled}})}),on=(0,eu.jsx)(n8,{}),oo=(0,eu.jsx)(n5,{}),oa=(0,eu.jsx)(n6,{});var oi=B.forwardRef(function(e,t){var r,n;let o=(0,_.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=on,color:i="primary",icon:l=oo,indeterminate:s=!1,indeterminateIcon:u=oa,inputProps:c,size:d="medium",className:p}=o,f=(0,P.Z)(o,oe),m=s?u:l,h=s?u:a,g=(0,R.Z)({},o,{color:i,indeterminate:s,size:d}),v=ot(g);return(0,eu.jsx)(or,(0,R.Z)({type:"checkbox",inputProps:(0,R.Z)({"data-indeterminate":s},c),icon:B.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),checkedIcon:B.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),ownerState:g,ref:t,className:(0,O.Z)(v.root,p)},f,{classes:v}))}),ol=r(82729),os=r(70917);function ou(e){return(0,ei.ZP)("MuiCircularProgress",e)}var oc=(0,ea.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);function od(){let e=(0,ol._)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"]);return od=function(){return e},e}function op(){let e=(0,ol._)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"]);return op=function(){return e},e}function of(){let e=(0,ol._)(["\n animation: "," 1.4s linear infinite;\n "]);return of=function(){return e},e}function om(){let e=(0,ol._)(["\n animation: "," 1.4s ease-in-out infinite;\n "]);return om=function(){return e},e}let oh=["className","color","disableShrink","size","style","thickness","value","variant"],og=e=>e,ov,ob,oy,oD,ox=(0,os.F4)(ov||(ov=og(od()))),oC=(0,os.F4)(ob||(ob=og(op()))),oZ=e=>{let{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,"color".concat((0,e6.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,e6.Z)(r)),o&&"circleDisableShrink"]};return(0,z.Z)(a,ou,t)},ow=(0,W.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,e6.Z)(r.color))]]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})},e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,os.iv)(oy||(oy=og(of(),0)),ox)}),oS=(0,W.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),oF=(0,W.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,t["circle".concat((0,e6.Z)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})},e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,os.iv)(oD||(oD=og(om(),0)),oC)});var ok=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:u=0,variant:c="indeterminate"}=r,d=(0,P.Z)(r,oh),p=(0,R.Z)({},r,{color:o,disableShrink:a,size:i,thickness:s,value:u,variant:c}),f=oZ(p),m={},h={},g={};if("determinate"===c){let e=2*Math.PI*((44-s)/2);m.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(u),m.strokeDashoffset="".concat(((100-u)/100*e).toFixed(3),"px"),h.transform="rotate(-90deg)"}return(0,eu.jsx)(ow,(0,R.Z)({className:(0,O.Z)(f.root,n),style:(0,R.Z)({width:i,height:i},h,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:(0,eu.jsx)(oS,{className:f.svg,ownerState:p,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44),children:(0,eu.jsx)(oF,{className:f.circle,style:m,ownerState:p,cx:44,cy:44,r:(44-s)/2,fill:"none",strokeWidth:s})})}))});function oE(e){return e.substring(2).toLowerCase()}function oM(e){let{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,i=B.useRef(!1),l=B.useRef(null),s=B.useRef(!1),u=B.useRef(!1);B.useEffect(()=>(setTimeout(()=>{s.current=!0},0),()=>{s.current=!1}),[]);let c=(0,eD.Z)(t.ref,l),d=(0,ts.Z)(e=>{let t=u.current;u.current=!1;let n=(0,tb.Z)(l.current);if(s.current&&l.current&&(!("clientX"in e)||!(n.documentElement.clientWidth-1:!n.documentElement.contains(e.target)||l.current.contains(e.target))||!r&&t||o(e)}}),p=e=>r=>{u.current=!0;let n=t.props[e];n&&n(r)},f={ref:c};return!1!==a&&(f[a]=p(a)),B.useEffect(()=>{if(!1!==a){let e=oE(a),t=(0,tb.Z)(l.current),r=()=>{i.current=!0};return t.addEventListener(e,d),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,d),t.removeEventListener("touchmove",r)}}},[d,a]),!1!==n&&(f[n]=p(n)),B.useEffect(()=>{if(!1!==n){let e=oE(n),t=(0,tb.Z)(l.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,n]),(0,eu.jsx)(B.Fragment,{children:B.cloneElement(t,f)})}var oI=r(59979);function oj(e){return(0,ei.ZP)("MuiContainer",e)}var oT=(0,ea.Z)("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]),oA=r(41234),oN=r(96682),oL=function({styles:e,themeId:t,defaultTheme:r={}}){let n=(0,oN.Z)(r),o="function"==typeof e?e(t&&n[t]||n):e;return(0,eu.jsx)(oA.Z,{styles:o})},oP=r(17854),oR=r(95038),oB=function(e){return(0,eu.jsx)(oL,(0,R.Z)({},e,{defaultTheme:oP.Z,themeId:oR.Z}))};let oO=(e,t)=>(0,R.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),oz=e=>(0,R.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),oW=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};r&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(t=>{var r;let[o,a]=t;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:null==(r=a.palette)?void 0:r.mode}});let o=(0,R.Z)({html:oO(e,r),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,R.Z)({margin:0},oz(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n),a=null==(t=e.components)||null==(t=t.MuiCssBaseline)?void 0:t.styleOverrides;return a&&(o=[o,a]),o};var o_=function(e){let{children:t,enableColorScheme:r=!1}=(0,_.Z)({props:e,name:"MuiCssBaseline"});return(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)(oB,{styles:e=>oW(e,r)}),t]})};let oU={track:"#2b2b2b",thumb:"#6b6b6b",active:"#959595"};function oH(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oU;return{scrollbarColor:"".concat(e.thumb," ").concat(e.track),"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:e.track},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:e.thumb,minHeight:24,border:"3px solid ".concat(e.track)},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:e.active},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:e.active},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:e.active},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:e.track}}}var oG=r(91476),oY=r(74161);function oV(e){let t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function o$(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oq(e){return parseInt((0,oY.Z)(e).getComputedStyle(e).paddingRight,10)||0}function oQ(e,t,r,n,o){let a=[t,r,...n];[].forEach.call(e.children,e=>{let t=-1===a.indexOf(e),r=!function(e){let t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&o$(e,o)})}function oX(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}class oK{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&o$(e.modalRef,!1);let n=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);oQ(t,e.mount,e.modalRef,n,!0);let o=oX(this.containers,e=>e.container===t);return -1!==o?this.containers[o].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r}mount(e,t){let r=oX(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=function(e,t){let r=[],n=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=(0,tb.Z)(e);return t.body===e?(0,oY.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){let e=oV((0,tb.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${oq(n)+e}px`;let t=(0,tb.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${oq(t)+e}px`})}if(n.parentNode instanceof DocumentFragment)e=(0,tb.Z)(n).body;else{let t=n.parentElement,r=(0,oY.Z)(n);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}(n,t))}remove(e,t=!0){let r=this.modals.indexOf(e);if(-1===r)return r;let n=oX(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&o$(e.modalRef,t),oQ(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{let e=o.modals[o.modals.length-1];e.modalRef&&o$(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}let oJ=new oK;function o0(e){let t=[],r=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,n)=>{let o=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===o||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e)||(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function o1(){return!0}function o2(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=o0,isEnabled:i=o1,open:l}=e,s=B.useRef(!1),u=B.useRef(null),c=B.useRef(null),d=B.useRef(null),p=B.useRef(null),f=B.useRef(!1),m=B.useRef(null),h=(0,eD.Z)(t.ref,m),g=B.useRef(null);B.useEffect(()=>{l&&m.current&&(f.current=!r)},[r,l]),B.useEffect(()=>{if(!l||!m.current)return;let e=(0,tb.Z)(m.current);return!m.current.contains(e.activeElement)&&(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[l]),B.useEffect(()=>{if(!l||!m.current)return;let e=(0,tb.Z)(m.current),t=t=>{g.current=t,!n&&i()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{let t=m.current;if(null===t)return;if(!e.hasFocus()||!i()||s.current){s.current=!1;return}if(t.contains(e.activeElement)||n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if((e.activeElement===u.current||e.activeElement===c.current)&&(r=a(m.current)),r.length>0){var o,l;let e=!!((null==(o=g.current)?void 0:o.shiftKey)&&(null==(l=g.current)?void 0:l.key)==="Tab"),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);let o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,i,l,a]);let v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),B.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;let r=t.props.onFocus;r&&r(e)}}),(0,eu.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}function o4(e){return(0,ei.ZP)("MuiModal",e)}var o3=(0,ea.Z)("MuiModal",["root","hidden","backdrop"]);let o5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],o8=e=>{let{open:t,exited:r,classes:n}=e;return(0,z.Z)({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},o4,n)},o6=(0,W.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})}),o9=(0,W.ZP)(rO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var o7=B.forwardRef(function(e,t){var r,n,o,a,i,l;let s=(0,_.Z)({name:"MuiModal",props:e}),{BackdropComponent:u=o9,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:D=!1,disablePortal:x=!1,disableRestoreFocus:C=!1,disableScrollLock:Z=!1,hideBackdrop:w=!1,keepMounted:S=!1,onBackdropClick:F,open:k,slotProps:E,slots:M}=s,I=(0,P.Z)(s,o5),j=(0,R.Z)({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:D,disablePortal:x,disableRestoreFocus:C,disableScrollLock:Z,hideBackdrop:w,keepMounted:S}),{getRootProps:T,getBackdropProps:A,getTransitionProps:N,portalRef:L,isTopModal:z,exited:W,hasTransition:U}=function(e){let{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=oJ,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=B.useRef({}),f=B.useRef(null),m=B.useRef(null),h=(0,eD.Z)(m,d),[g,v]=B.useState(!c),b=!!s&&s.props.hasOwnProperty("in"),y=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(y=!1);let D=()=>(0,tb.Z)(f.current),x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),C=()=>{o.mount(x(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},Z=(0,ts.Z)(()=>{let e=("function"==typeof t?t():t)||D().body;o.add(x(),e),m.current&&C()}),w=B.useCallback(()=>o.isTopModal(x()),[o]),S=(0,ts.Z)(e=>{f.current=e,e&&(c&&w()?C():m.current&&o$(m.current,y))}),F=B.useCallback(()=>{o.remove(x(),y)},[y,o]);B.useEffect(()=>()=>{F()},[F]),B.useEffect(()=>{c?Z():b&&a||F()},[c,F,b,a,Z]);let k=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&!r&&(t.stopPropagation(),u&&u(t,"escapeKeyDown"))},E=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{let r=eC(e);delete r.onTransitionEnter,delete r.onTransitionExited;let n=(0,R.Z)({},r,t);return(0,R.Z)({role:"presentation"},n,{onKeyDown:k(n),ref:h})},getBackdropProps:(e={})=>(0,R.Z)({"aria-hidden":!0},e,{onClick:E(e),open:c}),getTransitionProps:()=>({onEnter:(0,oG.Z)(()=>{v(!1),i&&i()},null==s?void 0:s.props.onEnter),onExited:(0,oG.Z)(()=>{v(!0),l&&l(),a&&F()},null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:S,isTopModal:w,exited:g,hasTransition:b}}((0,R.Z)({},j,{rootRef:t})),H=(0,R.Z)({},j,{exited:W}),G=o8(H),Y={};if(void 0===f.props.tabIndex&&(Y.tabIndex="-1"),U){let{onEnter:e,onExited:t}=N();Y.onEnter=e,Y.onExited=t}let V=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:o6,$=null!=(o=null!=(a=null==M?void 0:M.backdrop)?a:g.Backdrop)?o:u,q=null!=(i=null==E?void 0:E.root)?i:v.root,Q=null!=(l=null==E?void 0:E.backdrop)?l:v.backdrop,X=tF({elementType:V,externalSlotProps:q,externalForwardedProps:I,getSlotProps:T,additionalProps:{ref:t,as:h},ownerState:H,className:(0,O.Z)(d,null==q?void 0:q.className,null==G?void 0:G.root,!H.open&&H.exited&&(null==G?void 0:G.hidden))}),K=tF({elementType:$,externalSlotProps:Q,additionalProps:c,getSlotProps:e=>A((0,R.Z)({},e,{onClick:t=>{F&&F(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,O.Z)(null==Q?void 0:Q.className,null==c?void 0:c.className,null==G?void 0:G.backdrop),ownerState:H});return S||k||U&&!W?(0,eu.jsx)(tD,{ref:L,container:m,disablePortal:x,children:(0,eu.jsxs)(V,(0,R.Z)({},X,{children:[!w&&u?(0,eu.jsx)($,(0,R.Z)({},K)):null,(0,eu.jsx)(o2,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:z,open:k,children:B.cloneElement(f,Y)})]}))}):null});function ae(e){return(0,ei.ZP)("MuiDialog",e)}var at=(0,ea.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);let ar=B.createContext({}),an=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ao=(0,W.ZP)(rO,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),aa=e=>{let{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container","scroll".concat((0,e6.Z)(r))],paper:["paper","paperScroll".concat((0,e6.Z)(r)),"paperWidth".concat((0,e6.Z)(String(n))),o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,z.Z)(i,ae,t)},ai=(0,W.ZP)(o7,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),al=(0,W.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.container,t["scroll".concat((0,e6.Z)(r.scroll))]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})}),as=(0,W.ZP)(ev.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,e6.Z)(r.scroll))],t["paperWidth".concat((0,e6.Z)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(at.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(at.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(at.paperScrollBody)]:{margin:0,maxWidth:"100%"}})});var au=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDialog"}),n=(0,en.Z)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":i,BackdropComponent:l,BackdropProps:s,children:u,className:c,disableEscapeKeyDown:d=!1,fullScreen:p=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:h,onClose:g,open:v,PaperComponent:b=ev.Z,PaperProps:y={},scroll:D="paper",TransitionComponent:x=rA,transitionDuration:C=o,TransitionProps:Z}=r,w=(0,P.Z)(r,an),S=(0,R.Z)({},r,{disableEscapeKeyDown:d,fullScreen:p,fullWidth:f,maxWidth:m,scroll:D}),F=aa(S),k=B.useRef(),E=(0,ta.Z)(i),M=B.useMemo(()=>({titleId:E}),[E]);return(0,eu.jsx)(ai,(0,R.Z)({className:(0,O.Z)(F.root,c),closeAfterTransition:!0,components:{Backdrop:ao},componentsProps:{backdrop:(0,R.Z)({transitionDuration:C,as:l},s)},disableEscapeKeyDown:d,onClose:g,open:v,ref:t,onClick:e=>{k.current&&(k.current=null,h&&h(e),g&&g(e,"backdropClick"))},ownerState:S},w,{children:(0,eu.jsx)(x,(0,R.Z)({appear:!0,in:v,timeout:C,role:"presentation"},Z,{children:(0,eu.jsx)(al,{className:(0,O.Z)(F.container),onMouseDown:e=>{k.current=e.target===e.currentTarget},ownerState:S,children:(0,eu.jsx)(as,(0,R.Z)({as:b,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":E},y,{className:(0,O.Z)(F.paper,y.className),ownerState:S,children:(0,eu.jsx)(ar.Provider,{value:M,children:u})}))})}))}))});function ac(e){return(0,ei.ZP)("MuiDialogActions",e)}var ad=(0,ea.Z)("MuiDialogActions",["root","spacing"]);let ap=["className","disableSpacing"],af=e=>{let{classes:t,disableSpacing:r}=e;return(0,z.Z)({root:["root",!r&&"spacing"]},ac,t)},am=(0,W.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})});var ah=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=r,a=(0,P.Z)(r,ap),i=(0,R.Z)({},r,{disableSpacing:o}),l=af(i);return(0,eu.jsx)(am,(0,R.Z)({className:(0,O.Z)(l.root,n),ownerState:i,ref:t},a))});function ag(e){return(0,ei.ZP)("MuiDialogContent",e)}var av=(0,ea.Z)("MuiDialogContent",["root","dividers"]);function ab(e){return(0,ei.ZP)("MuiDialogTitle",e)}var ay=(0,ea.Z)("MuiDialogTitle",["root"]);let aD=["className","dividers"],ax=e=>{let{classes:t,dividers:r}=e;return(0,z.Z)({root:["root",r&&"dividers"]},ag,t)},aC=(0,W.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(ay.root," + &")]:{paddingTop:0}})});var aZ=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=r,a=(0,P.Z)(r,aD),i=(0,R.Z)({},r,{dividers:o}),l=ax(i);return(0,eu.jsx)(aC,(0,R.Z)({className:(0,O.Z)(l.root,n),ownerState:i,ref:t},a))});function aw(e){return(0,ei.ZP)("MuiDialogContentText",e)}var aS=(0,ea.Z)("MuiDialogContentText",["root"]);let aF=["children","className"],ak=e=>{let{classes:t}=e,r=(0,z.Z)({root:["root"]},aw,t);return(0,R.Z)({},t,r)},aE=(0,W.ZP)(r9.Z,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({});var aM=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDialogContentText"}),{className:n}=r,o=(0,P.Z)(r,aF),a=ak(o);return(0,eu.jsx)(aE,(0,R.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:(0,O.Z)(a.root,n)},r,{classes:a}))});let aI=["className","id"],aj=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},ab,t)},aT=(0,W.ZP)(r9.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"});var aA=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDialogTitle"}),{className:n,id:o}=r,a=(0,P.Z)(r,aI),i=aj(r),{titleId:l=o}=B.useContext(ar);return(0,eu.jsx)(aT,(0,R.Z)({component:"h2",className:(0,O.Z)(i.root,n),ownerState:r,ref:t,variant:"h6",id:null!=o?o:l},a))}),aN=r(59505),aL=r(70869),aP=r(31837),aR=r(81603);let aB=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function aO(e,t,r){let n=function(e,t,r){let n;let o=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=(0,aR.Z)(t);if(t.fakeTransform)n=t.fakeTransform;else{let e=i.getComputedStyle(t);n=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let l=0,s=0;if(n&&"none"!==n&&"string"==typeof n){let e=n.split("(")[1].split(")")[0].split(",");l=parseInt(e[4],10),s=parseInt(e[5],10)}return"left"===e?a?"translateX(".concat(a.right+l-o.left,"px)"):"translateX(".concat(i.innerWidth+l-o.left,"px)"):"right"===e?a?"translateX(-".concat(o.right-a.left-l,"px)"):"translateX(-".concat(o.left+o.width-l,"px)"):"up"===e?a?"translateY(".concat(a.bottom+s-o.top,"px)"):"translateY(".concat(i.innerHeight+s-o.top,"px)"):a?"translateY(-".concat(o.top-a.top+o.height-s,"px)"):"translateY(-".concat(o.top+o.height-s,"px)")}(e,t,"function"==typeof r?r():r);n&&(t.style.webkitTransform=n,t.style.transform=n)}var az=B.forwardRef(function(e,t){let r=(0,en.Z)(),n={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,container:s,direction:u="down",easing:c=n,in:d,onEnter:p,onEntered:f,onEntering:m,onExit:h,onExited:g,onExiting:v,style:b,timeout:y=o,TransitionComponent:D=K}=e,x=(0,P.Z)(e,aB),C=B.useRef(null),Z=(0,eo.Z)(l.ref,C,t),w=e=>t=>{e&&(void 0===t?e(C.current):e(C.current,t))},S=w((e,t)=>{aO(u,e,s),et(e),p&&p(e,t)}),F=w((e,t)=>{let n=er({timeout:y,style:b,easing:c},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,R.Z)({},n)),e.style.transition=r.transitions.create("transform",(0,R.Z)({},n)),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)}),k=w(f),E=w(v),M=w(e=>{let t=er({timeout:y,style:b,easing:c},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),aO(u,e,s),h&&h(e)}),I=w(e=>{e.style.webkitTransition="",e.style.transition="",g&&g(e)}),j=B.useCallback(()=>{C.current&&aO(u,C.current,s)},[u,s]);return B.useEffect(()=>{if(d||"down"===u||"right"===u)return;let e=(0,aP.Z)(()=>{C.current&&aO(u,C.current,s)}),t=(0,aR.Z)(C.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[u,d,s]),B.useEffect(()=>{d||j()},[d,j]),(0,eu.jsx)(D,(0,R.Z)({nodeRef:C,onEnter:S,onEntered:k,onEntering:F,onExit:M,onExited:I,onExiting:E,addEndListener:e=>{a&&a(C.current,e)},appear:i,in:d,timeout:y},x,{children:(e,t)=>B.cloneElement(l,(0,R.Z)({ref:Z,style:(0,R.Z)({visibility:"exited"!==e||d?void 0:"hidden"},b,l.props.style)},t))}))});function aW(e){return(0,ei.ZP)("MuiDrawer",e)}var a_=(0,ea.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);let aU=["BackdropProps"],aH=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],aG=(e,t)=>{let{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},aY=e=>{let{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,e6.Z)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,e6.Z)(r))]};return(0,z.Z)(o,aW,t)},aV=(0,W.ZP)(o7,{name:"MuiDrawer",slot:"Root",overridesResolver:aG})(e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}}),a$=(0,W.ZP)("div",{shouldForwardProp:W.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:aG})({flex:"0 0 auto"}),aq=(0,W.ZP)(ev.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t["paperAnchor".concat((0,e6.Z)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,e6.Z)(r.anchor))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})}),aQ={left:"right",right:"left",top:"down",bottom:"up"};function aX(e){return -1!==["left","right"].indexOf(e)}function aK(e,t){return"rtl"===e.direction&&aX(t)?aQ[t]:t}var aJ=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDrawer"}),n=(0,en.Z)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:i,children:l,className:s,elevation:u=16,hideBackdrop:c=!1,ModalProps:{BackdropProps:d}={},onClose:p,open:f=!1,PaperProps:m={},SlideProps:h,TransitionComponent:g=az,transitionDuration:v=o,variant:b="temporary"}=r,y=(0,P.Z)(r.ModalProps,aU),D=(0,P.Z)(r,aH),x=B.useRef(!1);B.useEffect(()=>{x.current=!0},[]);let C=aK(n,a),Z=(0,R.Z)({},r,{anchor:a,elevation:u,open:f,variant:b},D),w=aY(Z),S=(0,eu.jsx)(aq,(0,R.Z)({elevation:"temporary"===b?u:0,square:!0},m,{className:(0,O.Z)(w.paper,m.className),ownerState:Z,children:l}));if("permanent"===b)return(0,eu.jsx)(a$,(0,R.Z)({className:(0,O.Z)(w.root,w.docked,s),ownerState:Z,ref:t},D,{children:S}));let F=(0,eu.jsx)(g,(0,R.Z)({in:f,direction:aQ[C],timeout:v,appear:x.current},h,{children:S}));return"persistent"===b?(0,eu.jsx)(a$,(0,R.Z)({className:(0,O.Z)(w.root,w.docked,s),ownerState:Z,ref:t},D,{children:F})):(0,eu.jsx)(aV,(0,R.Z)({BackdropProps:(0,R.Z)({},i,d,{transitionDuration:v}),className:(0,O.Z)(w.root,w.modal,s),open:f,ownerState:Z,onClose:p,hideBackdrop:c,ref:t},D,y,{children:F}))});function a0(e){return(0,ei.ZP)("MuiFab",e)}var a1=(0,ea.Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);let a2=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],a4=e=>{let{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,"size".concat((0,e6.Z)(o)),"inherit"===t?"colorInherit":t]},i=(0,z.Z)(a,a0,n);return(0,R.Z)({},n,i)},a3=(0,W.ZP)(e$.Z,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,e6.Z)(r.size))],"inherit"===r.color&&t.colorInherit,t[(0,e6.Z)(r.size)],t[r.color]]}})(e=>{var t,r;let{theme:n,ownerState:o}=e;return(0,R.Z)({},n.typography.button,{minHeight:36,transition:n.transitions.create(["background-color","box-shadow","border-color"],{duration:n.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(n.vars||n).zIndex.fab,boxShadow:(n.vars||n).shadows[6],"&:active":{boxShadow:(n.vars||n).shadows[12]},color:n.vars?n.vars.palette.text.primary:null==(t=(r=n.palette).getContrastText)?void 0:t.call(r,n.palette.grey[300]),backgroundColor:(n.vars||n).palette.grey[300],"&:hover":{backgroundColor:(n.vars||n).palette.grey.A100,"@media (hover: none)":{backgroundColor:(n.vars||n).palette.grey[300]},textDecoration:"none"},["&.".concat(a1.focusVisible)]:{boxShadow:(n.vars||n).shadows[6]}},"small"===o.size&&{width:40,height:40},"medium"===o.size&&{width:48,height:48},"extended"===o.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===o.variant&&"small"===o.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===o.variant&&"medium"===o.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===o.color&&{color:"inherit"})},e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},"inherit"!==r.color&&"default"!==r.color&&null!=(t.vars||t).palette[r.color]&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}})},e=>{let{theme:t}=e;return{["&.".concat(a1.disabled)]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}});var a5=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiFab"}),{children:n,className:o,color:a="default",component:i="button",disabled:l=!1,disableFocusRipple:s=!1,focusVisibleClassName:u,size:c="large",variant:d="circular"}=r,p=(0,P.Z)(r,a2),f=(0,R.Z)({},r,{color:a,component:i,disabled:l,disableFocusRipple:s,size:c,variant:d}),m=a4(f);return(0,eu.jsx)(a3,(0,R.Z)({className:(0,O.Z)(m.root,o),component:i,disabled:l,focusRipple:!s,focusVisibleClassName:(0,O.Z)(m.focusVisible,u),ownerState:f,ref:t},p,{classes:m,children:n}))}),a8=r(4953),a6=r(56535),a9=r(39336);let a7=["onChange","maxRows","minRows","style","value"];function ie(e){return parseInt(e,10)||0}let it={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ir(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}let io=B.forwardRef(function(e,t){let{onChange:r,maxRows:n,minRows:o=1,style:a,value:i}=e,l=(0,P.Z)(e,a7),{current:s}=B.useRef(null!=i),u=B.useRef(null),c=(0,eD.Z)(t,u),d=B.useRef(null),p=B.useRef(0),[f,m]=B.useState({outerHeightStyle:0}),h=B.useCallback(()=>{let t=u.current,r=(0,oY.Z)(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};let a=d.current;a.style.width=r.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");let i=r.boxSizing,l=ie(r.paddingBottom)+ie(r.paddingTop),s=ie(r.borderBottomWidth)+ie(r.borderTopWidth),c=a.scrollHeight;a.value="x";let p=a.scrollHeight,f=c;return o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),{outerHeightStyle:(f=Math.max(f,p))+("border-box"===i?l+s:0),overflow:1>=Math.abs(f-c)}},[n,o,e.placeholder]),g=(e,t)=>{let{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},v=B.useCallback(()=>{let e=h();ir(e)||m(t=>g(t,e))},[h]);return(0,tv.Z)(()=>{let e,t;let r=()=>{let e=h();ir(e)||H.flushSync(()=>{m(t=>g(t,e))})},n=()=>{p.current=0,r()},o=(0,a9.Z)(n),a=u.current,i=(0,oY.Z)(a);return i.addEventListener("resize",o),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(n)).observe(a),()=>{o.clear(),cancelAnimationFrame(e),i.removeEventListener("resize",o),t&&t.disconnect()}},[h]),(0,tv.Z)(()=>{v()}),B.useEffect(()=>{p.current=0},[i]),(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)("textarea",(0,R.Z)({value:i,onChange:e=>{p.current=0,s||v(),r&&r(e)},ref:c,rows:o,style:(0,R.Z)({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},a)},l)),(0,eu.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:(0,R.Z)({},it,a,{paddingTop:0,paddingBottom:0})})]})});var ia=r(35029),ii=r(25491),il=r(12794),is=r(23769),iu=r(22537);let ic=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],id=(e,t)=>{let{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color".concat((0,e6.Z)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ip=(e,t)=>{let{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},im=e=>{let{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e,h={root:["root","color".concat((0,e6.Z)(r)),n&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&"size".concat((0,e6.Z)(p)),c&&"multiline",f&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return(0,z.Z)(h,t4,t)},ih=(0,W.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:id})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(t3.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},r.multiline&&(0,R.Z)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})}),ig=(0,W.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ip})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode,o=(0,R.Z)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},i=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,R.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(t3.formControl," &")]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},["&.".concat(t3.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})}),iv=(0,eu.jsx)(oB,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}});var ib=B.forwardRef(function(e,t){var r;let n=(0,_.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:D,multiline:x=!1,name:C,onBlur:Z,onChange:w,onClick:S,onFocus:F,onKeyDown:k,onKeyUp:E,placeholder:M,readOnly:I,renderSuffix:j,rows:T,slotProps:A={},slots:N={},startAdornment:L,type:z="text",value:W}=n,U=(0,P.Z)(n,ic),H=null!=v.value?v.value:W,{current:G}=B.useRef(null!=H),Y=B.useRef(),V=B.useCallback(e=>{},[]),$=(0,eo.Z)(Y,b,v.ref,V),[q,Q]=B.useState(!1),X=(0,il.Z)(),K=(0,ia.Z)({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=X?X.focused:q,B.useEffect(()=>{!X&&d&&q&&(Q(!1),Z&&Z())},[X,d,q,Z]);let J=X&&X.onFilled,ee=X&&X.onEmpty,et=B.useCallback(e=>{(0,iu.vd)(e)?J&&J():ee&&ee()},[J,ee]);(0,is.Z)(()=>{G&&et({value:H})},[H,et,G]),B.useEffect(()=>{et(Y.current)},[]);let er=g,en=v;x&&"input"===er&&(en=T?(0,R.Z)({type:void 0,minRows:T,maxRows:T},en):(0,R.Z)({type:void 0,maxRows:y,minRows:D},en),er=io),B.useEffect(()=>{X&&X.setAdornedStart(!!L)},[X,L]);let ea=(0,R.Z)({},n,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:X,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:x,size:K.size,startAdornment:L,type:z}),ei=im(ea),el=N.root||s.Root||ih,es=A.root||u.root||{},ec=N.input||s.Input||ig;return en=(0,R.Z)({},en,null!=(r=A.input)?r:u.input),(0,eu.jsxs)(B.Fragment,{children:[!p&&iv,(0,eu.jsxs)(el,(0,R.Z)({},es,!eS(el)&&{ownerState:(0,R.Z)({},ea,es.ownerState)},{ref:t,onClick:e=>{Y.current&&e.currentTarget===e.target&&Y.current.focus(),S&&S(e)}},U,{className:(0,O.Z)(ei.root,es.className,l,I&&"MuiInputBase-readOnly"),children:[L,(0,eu.jsx)(ii.Z.Provider,{value:null,children:(0,eu.jsx)(ec,(0,R.Z)({ownerState:ea,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:c,disabled:K.disabled,id:h,onAnimationStart:e=>{et("mui-auto-fill-cancel"===e.animationName?Y.current:{value:"x"})},name:C,placeholder:M,readOnly:I,required:K.required,rows:T,value:H,onKeyDown:k,onKeyUp:E,type:z},en,!eS(ec)&&{as:er,ownerState:(0,R.Z)({},ea,en.ownerState)},{ref:$,className:(0,O.Z)(ei.input,en.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{Z&&Z(e),v.onBlur&&v.onBlur(e),X&&X.onBlur?X.onBlur(e):Q(!1)},onChange:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{if(K.disabled){e.stopPropagation();return}F&&F(e),v.onFocus&&v.onFocus(e),X&&X.onFocus?X.onFocus(e):Q(!0)}}))}),f,j?j((0,R.Z)({},K,{startAdornment:L})):null]}))]})});let iy=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],iD=e=>{let{classes:t,disableUnderline:r}=e,n=(0,z.Z)({root:["root",!r&&"underline"],input:["input"]},t7,t);return(0,R.Z)({},t,n)},ix=(0,W.ZP)(ih,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...id(e,t),!r.disableUnderline&&t.underline]}})(e=>{var t;let{theme:r,ownerState:n}=e,o="light"===r.palette.mode,a=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return(0,R.Z)({position:"relative",backgroundColor:r.vars?r.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(r.vars||r).shape.borderRadius,borderTopRightRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),"&:hover":{backgroundColor:r.vars?r.vars.palette.FilledInput.hoverBg:o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:a}},["&.".concat(re.focused)]:{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:a},["&.".concat(re.disabled)]:{backgroundColor:r.vars?r.vars.palette.FilledInput.disabledBg:o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},!n.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat(null==(t=(r.vars||r).palette[n.color||"primary"])?void 0:t.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(re.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(re.error)]:{"&::before, &::after":{borderBottomColor:(r.vars||r).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / ").concat(r.vars.opacity.inputUnderline,")"):o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)"),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(re.disabled,", .").concat(re.error,"):before")]:{borderBottom:"1px solid ".concat((r.vars||r).palette.text.primary)},["&.".concat(re.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,R.Z)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))}),iC=(0,W.ZP)(ig,{name:"MuiFilledInput",slot:"Input",overridesResolver:ip})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})}),iZ=B.forwardRef(function(e,t){var r,n,o,a;let i=(0,_.Z)({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=i,h=(0,P.Z)(i,iy),g=(0,R.Z)({},i,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=iD(i),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?(0,a8.Z)(b,null!=p?p:s):b,D=null!=(r=null!=(n=f.root)?n:l.Root)?r:ix,x=null!=(o=null!=(a=f.input)?a:l.Input)?o:iC;return(0,eu.jsx)(ib,(0,R.Z)({slots:{root:D,input:x},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))});iZ.muiName="Input";var iw=iZ,iS=r(51714),iF=r(20408),ik=r(88735),iE=r(59325),iM=r(46028),iI=r(58469);function ij(e){return(0,ei.ZP)("MuiFormHelperText",e)}var iT=(0,ea.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);let iA=["children","className","component","disabled","error","filled","focused","margin","required","variant"],iN=e=>{let{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:l,required:s}=e,u={root:["root",o&&"disabled",a&&"error",n&&"size".concat((0,e6.Z)(n)),r&&"contained",l&&"focused",i&&"filled",s&&"required"]};return(0,z.Z)(u,ij,t)},iL=(0,W.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.size&&t["size".concat((0,e6.Z)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(iT.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(iT.error)]:{color:(t.vars||t).palette.error.main}},"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})});var iP=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=(0,P.Z)(r,iA),s=(0,il.Z)(),u=(0,ia.Z)({props:r,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),c=(0,R.Z)({},r,{component:a,contained:"filled"===u.variant||"outlined"===u.variant,variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=iN(c);return(0,eu.jsx)(iL,(0,R.Z)({as:a,ownerState:c,className:(0,O.Z)(d.root,o),ref:t},i,{children:" "===n?l||(l=(0,eu.jsx)("span",{className:"notranslate",children:"​"})):n}))}),iR=r(17586),iB=r(65493),iO=r(99514),iz=r(84501),iW=r(17317),i_=r(13264),iU=r(29628),iH=r(39707),iG=r(88647);let iY=(e,t)=>e.filter(e=>t.includes(e)),iV=(e,t,r)=>{let n=e.keys[0];Array.isArray(t)?t.forEach((t,n)=>{r((t,r)=>{n<=e.keys.length-1&&(0===n?Object.assign(t,r):t[e.up(e.keys[n])]=r)},t)}):t&&"object"==typeof t?(Object.keys(t).length>e.keys.length?e.keys:iY(e.keys,Object.keys(t))).forEach(o=>{if(-1!==e.keys.indexOf(o)){let a=t[o];void 0!==a&&r((t,r)=>{n===o?Object.assign(t,r):t[e.up(o)]=r},a)}}):("number"==typeof t||"string"==typeof t)&&r((e,t)=>{Object.assign(e,t)},t)};function i$(e){return e?`Level${e}`:""}function iq(e){return e.unstable_level>0&&e.container}function iQ(e){return function(t){return`var(--Grid-${t}Spacing${i$(e.unstable_level)})`}}function iX(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${i$(e.unstable_level-1)})`}}function iK(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${i$(e.unstable_level-1)})`}let iJ=({theme:e,ownerState:t})=>{let r=iQ(t),n={};return iV(e.breakpoints,t.gridSize,(e,o)=>{let a={};!0===o&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===o&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof o&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / ${iK(t)}${iq(t)?` + ${r("column")}`:""})`}),e(n,a)}),n},i0=({theme:e,ownerState:t})=>{let r={};return iV(e.breakpoints,t.gridOffset,(e,n)=>{let o={};"auto"===n&&(o={marginLeft:"auto"}),"number"==typeof n&&(o={marginLeft:0===n?"0px":`calc(100% * ${n} / ${iK(t)})`}),e(r,o)}),r},i1=({theme:e,ownerState:t})=>{if(!t.container)return{};let r=iq(t)?{[`--Grid-columns${i$(t.unstable_level)}`]:iK(t)}:{"--Grid-columns":12};return iV(e.breakpoints,t.columns,(e,n)=>{e(r,{[`--Grid-columns${i$(t.unstable_level)}`]:n})}),r},i2=({theme:e,ownerState:t})=>{if(!t.container)return{};let r=iX(t),n=iq(t)?{[`--Grid-rowSpacing${i$(t.unstable_level)}`]:r("row")}:{};return iV(e.breakpoints,t.rowSpacing,(r,o)=>{var a;r(n,{[`--Grid-rowSpacing${i$(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})}),n},i4=({theme:e,ownerState:t})=>{if(!t.container)return{};let r=iX(t),n=iq(t)?{[`--Grid-columnSpacing${i$(t.unstable_level)}`]:r("column")}:{};return iV(e.breakpoints,t.columnSpacing,(r,o)=>{var a;r(n,{[`--Grid-columnSpacing${i$(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})}),n},i3=({theme:e,ownerState:t})=>{if(!t.container)return{};let r={};return iV(e.breakpoints,t.direction,(e,t)=>{e(r,{flexDirection:t})}),r},i5=({ownerState:e})=>{let t=iQ(e),r=iX(e);return(0,R.Z)({minWidth:0,boxSizing:"border-box"},e.container&&(0,R.Z)({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||iq(e))&&(0,R.Z)({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},i8=e=>{let t=[];return Object.entries(e).forEach(([e,r])=>{!1!==r&&void 0!==r&&t.push(`grid-${e}-${String(r)}`)}),t},i6=(e,t="xs")=>{function r(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(r(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,n])=>{r(n)&&t.push(`spacing-${e}-${String(n)}`)}),t}return[]},i9=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`],i7=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],le=(0,iG.Z)(),lt=(0,i_.Z)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function lr(e){return(0,iU.Z)({props:e,name:"MuiGrid",defaultTheme:le})}var ln=function(e={}){let{createStyledComponent:t=lt,useThemeProps:r=lr,componentName:n="MuiGrid"}=e,o=B.createContext(void 0),a=(e,t)=>{let{container:r,direction:o,spacing:a,wrap:i,gridSize:l}=e,s={root:["root",r&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...i9(o),...i8(l),...r?i6(a,t.breakpoints.keys[0]):[]]};return(0,z.Z)(s,e=>(0,ei.ZP)(n,e),{})},i=t(i1,i4,i2,iJ,i3,i5,i0),l=B.forwardRef(function(e,t){var n,l,s,u,c,d,p,f;let m=(0,oN.Z)(),h=r(e),g=(0,iH.Z)(h),v=B.useContext(o),{className:b,children:y,columns:D=12,container:x=!1,component:C="div",direction:Z="row",wrap:w="wrap",spacing:S=0,rowSpacing:F=S,columnSpacing:k=S,disableEqualOverflow:E,unstable_level:M=0}=g,I=(0,P.Z)(g,i7),j=E;M&&void 0!==E&&(j=e.disableEqualOverflow);let T={},A={},N={};Object.entries(I).forEach(([e,t])=>{void 0!==m.breakpoints.values[e]?T[e]=t:void 0!==m.breakpoints.values[e.replace("Offset","")]?A[e.replace("Offset","")]=t:N[e]=t});let L=null!=(n=e.columns)?n:M?void 0:D,z=null!=(l=e.spacing)?l:M?void 0:S,W=null!=(s=null!=(u=e.rowSpacing)?u:e.spacing)?s:M?void 0:F,_=null!=(c=null!=(d=e.columnSpacing)?d:e.spacing)?c:M?void 0:k,U=(0,R.Z)({},g,{level:M,columns:L,container:x,direction:Z,wrap:w,spacing:z,rowSpacing:W,columnSpacing:_,gridSize:T,gridOffset:A,disableEqualOverflow:null!=(p=null!=(f=j)?f:v)&&p,parentDisableEqualOverflow:v}),H=a(U,m),G=(0,eu.jsx)(i,(0,R.Z)({ref:t,as:C,ownerState:U,className:(0,O.Z)(H.root,b)},N,{children:B.Children.map(y,e=>{if(B.isValidElement(e)&&(0,iW.Z)(e,["Grid"])){var t;return B.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:M+1})}return e})}));return void 0!==j&&j!==(null!=v&&v)&&(G=(0,eu.jsx)(o.Provider,{value:j,children:G})),G});return l.muiName="Grid",l}({createStyledComponent:(0,W.ZP)("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>(0,_.Z)({props:e,name:"MuiGrid2"})});function lo(e){return(0,ei.ZP)("MuiGrid2",e)}let la=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var li=(0,ea.Z)("MuiGrid2",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>"spacing-xs-".concat(e)),...["column-reverse","column","row-reverse","row"].map(e=>"direction-xs-".concat(e)),...["nowrap","wrap-reverse","wrap"].map(e=>"wrap-xs-".concat(e)),...la.map(e=>"grid-xs-".concat(e)),...la.map(e=>"grid-sm-".concat(e)),...la.map(e=>"grid-md-".concat(e)),...la.map(e=>"grid-lg-".concat(e)),...la.map(e=>"grid-xl-".concat(e))]);let ll=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ls(e){return"scale(".concat(e,", ").concat(e**2,")")}let lu={entering:{opacity:1,transform:ls(1)},entered:{opacity:1,transform:"none"}},lc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ld=B.forwardRef(function(e,t){let{addEndListener:r,appear:n=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=K}=e,g=(0,P.Z)(e,ll),v=B.useRef(),b=B.useRef(),y=(0,en.Z)(),D=B.useRef(null),x=(0,eo.Z)(D,o.ref,t),C=e=>t=>{if(e){let r=D.current;void 0===t?e(r):e(r,t)}},Z=C(u),w=C((e,t)=>{let r;et(e);let{duration:n,delay:o,easing:i}=er({style:f,timeout:m,easing:a},{mode:"enter"});"auto"===m?(r=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=n,e.style.transition=[y.transitions.create("opacity",{duration:r,delay:o}),y.transitions.create("transform",{duration:lc?r:.666*r,delay:o,easing:i})].join(","),l&&l(e,t)}),S=C(s),F=C(p),k=C(e=>{let t;let{duration:r,delay:n,easing:o}=er({style:f,timeout:m,easing:a},{mode:"exit"});"auto"===m?(t=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[y.transitions.create("opacity",{duration:t,delay:n}),y.transitions.create("transform",{duration:lc?t:.666*t,delay:lc?n:n||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=ls(.75),c&&c(e)}),E=C(d);return B.useEffect(()=>()=>{clearTimeout(v.current)},[]),(0,eu.jsx)(h,(0,R.Z)({appear:n,in:i,nodeRef:D,onEnter:w,onEntered:S,onEntering:Z,onExit:k,onExited:E,onExiting:F,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),r&&r(D.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>B.cloneElement(o,(0,R.Z)({style:(0,R.Z)({opacity:0,transform:ls(.75),visibility:"exited"!==e||i?void 0:"hidden"},lu[e],f,o.props.style),ref:x},t))}))});ld.muiSupportAuto=!0;var lp=ld,lf=r(99900);function lm(e){return(0,ei.ZP)("MuiIcon",e)}var lh=(0,ea.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);let lg=["baseClassName","className","color","component","fontSize"],lv=e=>{let{color:t,fontSize:r,classes:n}=e,o={root:["root","inherit"!==t&&"color".concat((0,e6.Z)(t)),"fontSize".concat((0,e6.Z)(r))]};return(0,z.Z)(o,lm,n)},lb=(0,W.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t["color".concat((0,e6.Z)(r.color))],t["fontSize".concat((0,e6.Z)(r.fontSize))]]}})(e=>{let{theme:t,ownerState:r}=e;return{userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:({inherit:"inherit",small:t.typography.pxToRem(20),medium:t.typography.pxToRem(24),large:t.typography.pxToRem(36)})[r.fontSize],color:({primary:(t.vars||t).palette.primary.main,secondary:(t.vars||t).palette.secondary.main,info:(t.vars||t).palette.info.main,success:(t.vars||t).palette.success.main,warning:(t.vars||t).palette.warning.main,action:(t.vars||t).palette.action.active,error:(t.vars||t).palette.error.main,disabled:(t.vars||t).palette.action.disabled,inherit:void 0})[r.color]}}),ly=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiIcon"}),{baseClassName:n="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=r,s=(0,P.Z)(r,lg),u=(0,R.Z)({},r,{baseClassName:n,color:a,component:i,fontSize:l}),c=lv(u);return(0,eu.jsx)(lb,(0,R.Z)({as:i,className:(0,O.Z)(n,"notranslate",c.root,o),ownerState:u,"aria-hidden":!0,ref:t},s))});ly.muiName="Icon";var lD=ly,lx=r(80543);function lC(e){return(0,ei.ZP)("MuiImageList",e)}var lZ=(0,ea.Z)("MuiImageList",["root","masonry","quilted","standard","woven"]);let lw=B.createContext({}),lS=["children","className","cols","component","rowHeight","gap","style","variant"],lF=e=>{let{classes:t,variant:r}=e;return(0,z.Z)({root:["root",r]},lC,t)},lk=(0,W.ZP)("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"},"masonry"===t.variant&&{display:"block"})});var lE=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiImageList"}),{children:n,className:o,cols:a=2,component:i="ul",rowHeight:l="auto",gap:s=4,style:u,variant:c="standard"}=r,d=(0,P.Z)(r,lS),p=B.useMemo(()=>({rowHeight:l,gap:s,variant:c}),[l,s,c]);B.useEffect(()=>{},[]);let f="masonry"===c?(0,R.Z)({columnCount:a,columnGap:s},u):(0,R.Z)({gridTemplateColumns:"repeat(".concat(a,", 1fr)"),gap:s},u),m=(0,R.Z)({},r,{component:i,gap:s,rowHeight:l,variant:c}),h=lF(m);return(0,eu.jsx)(lk,(0,R.Z)({as:i,className:(0,O.Z)(h.root,h[c],o),ref:t,style:f,ownerState:m},d,{children:(0,eu.jsx)(lw.Provider,{value:p,children:n})}))}),lM=r(23516);function lI(e){return(0,ei.ZP)("MuiImageListItem",e)}var lj=(0,ea.Z)("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]);let lT=["children","className","cols","component","rows","style"],lA=e=>{let{classes:t,variant:r}=e;return(0,z.Z)({root:["root",r],img:["img"]},lI,t)},lN=(0,W.ZP)("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(lj.img)]:t.img},t.root,t[r.variant]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"block",position:"relative"},"standard"===t.variant&&{display:"flex",flexDirection:"column"},"woven"===t.variant&&{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}},{["& .".concat(lj.img)]:(0,R.Z)({objectFit:"cover",width:"100%",height:"100%",display:"block"},"standard"===t.variant&&{height:"auto",flexGrow:1})})});var lL=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiImageListItem"}),{children:n,className:o,cols:a=1,component:i="li",rows:l=1,style:s}=r,u=(0,P.Z)(r,lT),{rowHeight:c="auto",gap:d,variant:p}=B.useContext(lw),f="auto";"woven"===p?f=void 0:"auto"!==c&&(f=c*l+d*(l-1));let m=(0,R.Z)({},r,{cols:a,component:i,gap:d,rowHeight:c,rows:l,variant:p}),h=lA(m);return(0,eu.jsx)(lN,(0,R.Z)({as:i,className:(0,O.Z)(h.root,h[p],o),ref:t,style:(0,R.Z)({height:f,gridColumnEnd:"masonry"!==p?"span ".concat(a):void 0,gridRowEnd:"masonry"!==p?"span ".concat(l):void 0,marginBottom:"masonry"===p?d:void 0,breakInside:"masonry"===p?"avoid":void 0},s),ownerState:m},u,{children:B.Children.map(n,e=>B.isValidElement(e)?"img"===e.type||(0,lM.Z)(e,["Image"])?B.cloneElement(e,{className:(0,O.Z)(h.img,e.props.className)}):e:null)}))});function lP(e){return(0,ei.ZP)("MuiImageListItemBar",e)}var lR=(0,ea.Z)("MuiImageListItemBar",["root","positionBottom","positionTop","positionBelow","titleWrap","titleWrapBottom","titleWrapTop","titleWrapBelow","titleWrapActionPosLeft","titleWrapActionPosRight","title","subtitle","actionIcon","actionIconActionPosLeft","actionIconActionPosRight"]);let lB=["actionIcon","actionPosition","className","subtitle","title","position"],lO=e=>{let{classes:t,position:r,actionIcon:n,actionPosition:o}=e,a={root:["root","position".concat((0,e6.Z)(r))],titleWrap:["titleWrap","titleWrap".concat((0,e6.Z)(r)),n&&"titleWrapActionPos".concat((0,e6.Z)(o))],title:["title"],subtitle:["subtitle"],actionIcon:["actionIcon","actionIconActionPos".concat((0,e6.Z)(o))]};return(0,z.Z)(a,lP,t)},lz=(0,W.ZP)("div",{name:"MuiImageListItemBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["position".concat((0,e6.Z)(r.position))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({position:"absolute",left:0,right:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:t.typography.fontFamily},"bottom"===r.position&&{bottom:0},"top"===r.position&&{top:0},"below"===r.position&&{position:"relative",background:"transparent",alignItems:"normal"})}),lW=(0,W.ZP)("div",{name:"MuiImageListItemBar",slot:"TitleWrap",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.titleWrap,t["titleWrap".concat((0,e6.Z)(r.position))],r.actionIcon&&t["titleWrapActionPos".concat((0,e6.Z)(r.actionPosition))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({flexGrow:1,padding:"12px 16px",color:(t.vars||t).palette.common.white,overflow:"hidden"},"below"===r.position&&{padding:"6px 0 12px",color:"inherit"},r.actionIcon&&"left"===r.actionPosition&&{paddingLeft:0},r.actionIcon&&"right"===r.actionPosition&&{paddingRight:0})}),l_=(0,W.ZP)("div",{name:"MuiImageListItemBar",slot:"Title",overridesResolver:(e,t)=>t.title})(e=>{let{theme:t}=e;return{fontSize:t.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}}),lU=(0,W.ZP)("div",{name:"MuiImageListItemBar",slot:"Subtitle",overridesResolver:(e,t)=>t.subtitle})(e=>{let{theme:t}=e;return{fontSize:t.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}}),lH=(0,W.ZP)("div",{name:"MuiImageListItemBar",slot:"ActionIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.actionIcon,t["actionIconActionPos".concat((0,e6.Z)(r.actionPosition))]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({},"left"===t.actionPosition&&{order:-1})});var lG=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiImageListItemBar"}),{actionIcon:n,actionPosition:o="right",className:a,subtitle:i,title:l,position:s="bottom"}=r,u=(0,P.Z)(r,lB),c=(0,R.Z)({},r,{position:s,actionPosition:o}),d=lO(c);return(0,eu.jsxs)(lz,(0,R.Z)({ownerState:c,className:(0,O.Z)(d.root,a),ref:t},u,{children:[(0,eu.jsxs)(lW,{ownerState:c,className:d.titleWrap,children:[(0,eu.jsx)(l_,{className:d.title,children:l}),i?(0,eu.jsx)(lU,{className:d.subtitle,children:i}):null]}),n?(0,eu.jsx)(lH,{ownerState:c,className:d.actionIcon,children:n}):null]}))});let lY=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],lV=e=>{let{classes:t,disableUnderline:r}=e,n=(0,z.Z)({root:["root",!r&&"underline"],input:["input"]},t5,t);return(0,R.Z)({},t,n)},l$=(0,W.ZP)(ih,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...id(e,t),!r.disableUnderline&&t.underline]}})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,R.Z)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[r.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(t8.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(t8.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(t8.disabled,", .").concat(t8.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},["&.".concat(t8.disabled,":before")]:{borderBottomStyle:"dotted"}})}),lq=(0,W.ZP)(ig,{name:"MuiInput",slot:"Input",overridesResolver:ip})({}),lQ=B.forwardRef(function(e,t){var r,n,o,a;let i=(0,_.Z)({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=i,g=(0,P.Z)(i,lY),v=lV(i),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?(0,a8.Z)(null!=f?f:u,b):b,D=null!=(r=null!=(n=m.root)?n:s.Root)?r:l$,x=null!=(o=null!=(a=m.input)?a:s.Input)?o:lq;return(0,eu.jsx)(ib,(0,R.Z)({slots:{root:D,input:x},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))});lQ.muiName="Input";var lX=lQ;function lK(e){return(0,ei.ZP)("MuiInputAdornment",e)}var lJ=(0,ea.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);let l0=["children","className","component","disablePointerEvents","disableTypography","position","variant"],l1=e=>{let{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,l={root:["root",r&&"disablePointerEvents",o&&"position".concat((0,e6.Z)(o)),i,n&&"hiddenLabel",a&&"size".concat((0,e6.Z)(a))]};return(0,z.Z)(l,lK,t)},l2=(0,W.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["position".concat((0,e6.Z)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&{["&.".concat(lJ.positionStart,"&:not(.").concat(lJ.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})});var l4=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:u,variant:c}=r,d=(0,P.Z)(r,l0),p=(0,il.Z)()||{},f=c;c&&p.variant,p&&!f&&(f=p.variant);let m=(0,R.Z)({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:i,position:u,variant:f}),h=l1(m);return(0,eu.jsx)(ii.Z.Provider,{value:null,children:(0,eu.jsx)(l2,(0,R.Z)({as:a,ownerState:m,className:(0,O.Z)(h.root,o),ref:t},d,{children:"string"!=typeof n||l?(0,eu.jsxs)(B.Fragment,{children:["start"===u?s||(s=(0,eu.jsx)("span",{className:"notranslate",children:"​"})):null,n]}):(0,eu.jsx)(r9.Z,{color:"text.secondary",children:n})}))})});function l3(e){return(0,ei.ZP)("MuiInputLabel",e)}var l5=(0,ea.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);let l8=["disableAnimation","margin","shrink","variant","className"],l6=e=>{let{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:l}=e,s={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&"size".concat((0,e6.Z)(n)),i],asterisk:[l&&"asterisk"]},u=(0,z.Z)(s,l3,t);return(0,R.Z)({},t,u)},l9=(0,W.ZP)(iR.Z,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(iB.Z.asterisk)]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&(0,R.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,R.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,R.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))});var l7=B.forwardRef(function(e,t){let r=(0,_.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=(0,P.Z)(r,l8),l=(0,il.Z)(),s=o;void 0===s&&l&&(s=l.filled||l.focused||l.adornedStart);let u=(0,ia.Z)({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),c=(0,R.Z)({},r,{disableAnimation:n,formControl:l,shrink:s,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),d=l6(c);return(0,eu.jsx)(l9,(0,R.Z)({"data-shrink":s,ownerState:c,ref:t,className:(0,O.Z)(d.root,a)},i,{classes:d}))});function se(e){return(0,ei.ZP)("MuiLinearProgress",e)}var st=(0,ea.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);function sr(){let e=(0,ol._)(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"]);return sr=function(){return e},e}function sn(){let e=(0,ol._)(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"]);return sn=function(){return e},e}function so(){let e=(0,ol._)(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"]);return so=function(){return e},e}function sa(){let e=(0,ol._)(["\n animation: "," 3s infinite linear;\n "]);return sa=function(){return e},e}function si(){let e=(0,ol._)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]);return si=function(){return e},e}function sl(){let e=(0,ol._)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]);return sl=function(){return e},e}let ss=["className","color","value","valueBuffer","variant"],su=e=>e,sc,sd,sp,sf,sm,sh,sg=(0,os.F4)(sc||(sc=su(sr()))),sv=(0,os.F4)(sd||(sd=su(sn()))),sb=(0,os.F4)(sp||(sp=su(so()))),sy=e=>{let{classes:t,variant:r,color:n}=e,o={root:["root","color".concat((0,e6.Z)(n)),r],dashed:["dashed","dashedColor".concat((0,e6.Z)(n))],bar1:["bar","barColor".concat((0,e6.Z)(n)),("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&"barColor".concat((0,e6.Z)(n)),"buffer"===r&&"color".concat((0,e6.Z)(n)),("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,z.Z)(o,se,t)},sD=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,tg.$n)(e.palette[t].main,.62):(0,tg._j)(e.palette[t].main,.5),sx=(0,W.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["color".concat((0,e6.Z)(r.color))],t[r.variant]]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:sD(r,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})}),sC=(0,W.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.dashed,t["dashedColor".concat((0,e6.Z)(r.color))]]}})(e=>{let{ownerState:t,theme:r}=e,n=sD(r,t.color);return(0,R.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},(0,os.iv)(sf||(sf=su(sa(),0)),sb)),sZ=(0,W.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.bar,t["barColor".concat((0,e6.Z)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})},e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,os.iv)(sm||(sm=su(si(),0)),sg)}),sw=(0,W.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.bar,t["barColor".concat((0,e6.Z)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:sD(r,t.color),transition:"transform .".concat(4,"s linear")})},e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,os.iv)(sh||(sh=su(sl(),0)),sv)});var sS=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiLinearProgress"}),{className:n,color:o="primary",value:a,valueBuffer:i,variant:l="indeterminate"}=r,s=(0,P.Z)(r,ss),u=(0,R.Z)({},r,{color:o,variant:l}),c=sy(u),d=(0,en.Z)(),p={},f={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==a){p["aria-valuenow"]=Math.round(a),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=a-100;"rtl"===d.direction&&(e=-e),f.bar1.transform="translateX(".concat(e,"%)")}if("buffer"===l&&void 0!==i){let e=(i||0)-100;"rtl"===d.direction&&(e=-e),f.bar2.transform="translateX(".concat(e,"%)")}return(0,eu.jsxs)(sx,(0,R.Z)({className:(0,O.Z)(c.root,n),ownerState:u,role:"progressbar"},p,{ref:t},s,{children:["buffer"===l?(0,eu.jsx)(sC,{className:c.dashed,ownerState:u}):null,(0,eu.jsx)(sZ,{className:c.bar1,ownerState:u,style:f.bar1}),"determinate"===l?null:(0,eu.jsx)(sw,{className:c.bar2,ownerState:u,style:f.bar2})]}))}),sF=r(77004);function sk(e){return(0,ei.ZP)("MuiLink",e)}var sE=(0,ea.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),sM=r(54844);let sI={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},sj=e=>sI[e]||e;var sT=e=>{let{theme:t,ownerState:r}=e,n=sj(r.color),o=(0,sM.DW)(t,"palette.".concat(n),!1)||r.color,a=(0,sM.DW)(t,"palette.".concat(n,"Channel"));return"vars"in t&&a?"rgba(".concat(a," / 0.4)"):(0,tg.Fq)(o,.4)};let sA=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],sN=e=>{let{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root","underline".concat((0,e6.Z)(o)),"button"===r&&"button",n&&"focusVisible"]};return(0,z.Z)(a,sk,t)},sL=(0,W.ZP)(r9.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["underline".concat((0,e6.Z)(r.underline))],"button"===r.component&&t.button]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,R.Z)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:sT({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(sE.focusVisible)]:{outline:"auto"}})});var sP=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:a="a",onBlur:i,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=(0,P.Z)(r,sA),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=(0,sF.Z)(),[v,b]=B.useState(!1),y=(0,eo.Z)(t,g),D=(0,R.Z)({},r,{color:o,component:a,focusVisible:v,underline:u,variant:c}),x=sN(D);return(0,eu.jsx)(sL,(0,R.Z)({color:o,className:(0,O.Z)(x.root,n),classes:s,component:a,onBlur:e=>{m(e),!1===f.current&&b(!1),i&&i(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:D,variant:c,sx:[...Object.keys(sI).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))});let sR=B.createContext({});function sB(e){return(0,ei.ZP)("MuiList",e)}var sO=(0,ea.Z)("MuiList",["root","padding","dense","subheader"]);let sz=["children","className","component","dense","disablePadding","subheader"],sW=e=>{let{classes:t,disablePadding:r,dense:n,subheader:o}=e;return(0,z.Z)({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},sB,t)},s_=(0,W.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})});var sU=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=r,u=(0,P.Z)(r,sz),c=B.useMemo(()=>({dense:i}),[i]),d=(0,R.Z)({},r,{component:a,dense:i,disablePadding:l}),p=sW(d);return(0,eu.jsx)(sR.Provider,{value:c,children:(0,eu.jsxs)(s_,(0,R.Z)({as:a,className:(0,O.Z)(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})});function sH(e){return(0,ei.ZP)("MuiListItem",e)}var sG=(0,ea.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function sY(e){return(0,ei.ZP)("MuiListItemButton",e)}var sV=(0,ea.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function s$(e){return(0,ei.ZP)("MuiListItemSecondaryAction",e)}var sq=(0,ea.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);let sQ=["className"],sX=e=>{let{disableGutters:t,classes:r}=e;return(0,z.Z)({root:["root",t&&"disableGutters"]},s$,r)},sK=(0,W.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})}),sJ=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=(0,P.Z)(r,sQ),a=B.useContext(sR),i=(0,R.Z)({},r,{disableGutters:a.disableGutters}),l=sX(i);return(0,eu.jsx)(sK,(0,R.Z)({className:(0,O.Z)(l.root,n),ownerState:i,ref:t},o))});sJ.muiName="ListItemSecondaryAction";var s0=sJ;let s1=["className"],s2=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],s4=e=>{let{alignItems:t,button:r,classes:n,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:u,selected:c}=e;return(0,z.Z)({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},sH,n)},s3=(0,W.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!r.disablePadding&&(0,R.Z)({paddingTop:8,paddingBottom:8},r.dense&&{paddingTop:4,paddingBottom:4},!r.disableGutters&&{paddingLeft:16,paddingRight:16},!!r.secondaryAction&&{paddingRight:48}),!!r.secondaryAction&&{["& > .".concat(sV.root)]:{paddingRight:48}},{["&.".concat(sG.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(sG.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(sG.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(sG.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===r.alignItems&&{alignItems:"flex-start"},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},r.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(sG.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},r.hasSecondaryAction&&{paddingRight:48})}),s5=(0,W.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"});var s8=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:u={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:m=!1,disableGutters:h=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:D=!1,slotProps:x={},slots:C={}}=r,Z=(0,P.Z)(r.ContainerProps,s1),w=(0,P.Z)(r,s2),S=B.useContext(sR),F=B.useMemo(()=>({dense:f||S.dense||!1,alignItems:n,disableGutters:h}),[n,S.dense,f,h]),k=B.useRef(null);(0,is.Z)(()=>{o&&k.current&&k.current.focus()},[o]);let E=B.Children.toArray(i),M=E.length&&(0,lM.Z)(E[E.length-1],["ListItemSecondaryAction"]),I=(0,R.Z)({},r,{alignItems:n,autoFocus:o,button:a,dense:F.dense,disabled:m,disableGutters:h,disablePadding:g,divider:v,hasSecondaryAction:M,selected:D}),j=s4(I),T=(0,eo.Z)(k,t),A=C.root||u.Root||s3,N=x.root||c.root||{},L=(0,R.Z)({className:(0,O.Z)(j.root,N.className,l),disabled:m},w),z=s||"li";return(a&&(L.component=s||"div",L.focusVisibleClassName=(0,O.Z)(sG.focusVisible,b),z=e$.Z),M)?(z=L.component||s?z:"div","li"===d&&("li"===z?z="div":"li"===L.component&&(L.component="div")),(0,eu.jsx)(sR.Provider,{value:F,children:(0,eu.jsxs)(s5,(0,R.Z)({as:d,className:(0,O.Z)(j.container,p),ref:T,ownerState:I},Z,{children:[(0,eu.jsx)(A,(0,R.Z)({},N,!eS(A)&&{as:z,ownerState:(0,R.Z)({},I,N.ownerState)},L,{children:E})),E.pop()]}))})):(0,eu.jsx)(sR.Provider,{value:F,children:(0,eu.jsxs)(A,(0,R.Z)({},N,{as:z,ref:T},!eS(A)&&{ownerState:(0,R.Z)({},I,N.ownerState)},L,{children:[E,y&&(0,eu.jsx)(s0,{children:y})]}))})});function s6(e){return(0,ei.ZP)("MuiListItemAvatar",e)}var s9=(0,ea.Z)("MuiListItemAvatar",["root","alignItemsFlexStart"]);let s7=["className"],ue=e=>{let{alignItems:t,classes:r}=e;return(0,z.Z)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},s6,r)},ut=(0,W.ZP)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({minWidth:56,flexShrink:0},"flex-start"===t.alignItems&&{marginTop:8})});var ur=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItemAvatar"}),{className:n}=r,o=(0,P.Z)(r,s7),a=B.useContext(sR),i=(0,R.Z)({},r,{alignItems:a.alignItems}),l=ue(i);return(0,eu.jsx)(ut,(0,R.Z)({className:(0,O.Z)(l.root,n),ownerState:i,ref:t},o))});let un=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],uo=e=>{let{alignItems:t,classes:r,dense:n,disabled:o,disableGutters:a,divider:i,selected:l}=e,s=(0,z.Z)({root:["root",n&&"dense",!a&&"gutters",i&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},sY,r);return(0,R.Z)({},r,s)},ua=(0,W.ZP)(e$.Z,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(sV.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(sV.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(sV.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(sV.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(sV.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},"flex-start"===r.alignItems&&{alignItems:"flex-start"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.dense&&{paddingTop:4,paddingBottom:4})});var ui=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItemButton"}),{alignItems:n="center",autoFocus:o=!1,component:a="div",children:i,dense:l=!1,disableGutters:s=!1,divider:u=!1,focusVisibleClassName:c,selected:d=!1,className:p}=r,f=(0,P.Z)(r,un),m=B.useContext(sR),h=B.useMemo(()=>({dense:l||m.dense||!1,alignItems:n,disableGutters:s}),[n,m.dense,l,s]),g=B.useRef(null);(0,is.Z)(()=>{o&&g.current&&g.current.focus()},[o]);let v=(0,R.Z)({},r,{alignItems:n,dense:h.dense,disableGutters:s,divider:u,selected:d}),b=uo(v),y=(0,eo.Z)(g,t);return(0,eu.jsx)(sR.Provider,{value:h,children:(0,eu.jsx)(ua,(0,R.Z)({ref:y,href:f.href||f.to,component:(f.href||f.to)&&"div"===a?"button":a,focusVisibleClassName:(0,O.Z)(b.focusVisible,c),ownerState:v,className:(0,O.Z)(b.root,p)},f,{classes:b,children:i}))})});function ul(e){return(0,ei.ZP)("MuiListItemIcon",e)}var us=(0,ea.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);let uu=["className"],uc=e=>{let{alignItems:t,classes:r}=e;return(0,z.Z)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ul,r)},ud=(0,W.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})});var up=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=(0,P.Z)(r,uu),a=B.useContext(sR),i=(0,R.Z)({},r,{alignItems:a.alignItems}),l=uc(i);return(0,eu.jsx)(ud,(0,R.Z)({className:(0,O.Z)(l.root,n),ownerState:i,ref:t},o))});function uf(e){return(0,ei.ZP)("MuiListItemText",e)}var um=(0,ea.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);let uh=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],ug=e=>{let{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return(0,z.Z)({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},uf,t)},uv=(0,W.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(um.primary)]:t.primary},{["& .".concat(um.secondary)]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})});var ub=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItemText"}),{children:n,className:o,disableTypography:a=!1,inset:i=!1,primary:l,primaryTypographyProps:s,secondary:u,secondaryTypographyProps:c}=r,d=(0,P.Z)(r,uh),{dense:p}=B.useContext(sR),f=null!=l?l:n,m=u,h=(0,R.Z)({},r,{disableTypography:a,inset:i,primary:!!f,secondary:!!m,dense:p}),g=ug(h);return null==f||f.type===r9.Z||a||(f=(0,eu.jsx)(r9.Z,(0,R.Z)({variant:p?"body2":"body1",className:g.primary,component:null!=s&&s.variant?void 0:"span",display:"block"},s,{children:f}))),null==m||m.type===r9.Z||a||(m=(0,eu.jsx)(r9.Z,(0,R.Z)({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},c,{children:m}))),(0,eu.jsxs)(uv,(0,R.Z)({className:(0,O.Z)(g.root,o),ownerState:h,ref:t},d,{children:[f,m]}))}),uy=r(19194);let uD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ux(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function uC(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function uZ(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function uw(e,t,r,n,o,a){let i=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}let t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&uZ(l,a)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var uS=B.forwardRef(function(e,t){let{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=(0,P.Z)(e,uD),p=B.useRef(null),f=B.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,is.Z)(()=>{n&&p.current.focus()},[n]),B.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,t)=>{let r=!p.current.style.width;if(e.clientHeight{if(!B.isValidElement(e)){h===t&&(h+=1)>=a.length&&(h=-1);return}e.props.disabled||("selectedMenu"===c&&e.props.selected?h=t:-1!==h||(h=t)),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1)>=a.length&&(h=-1)});let g=B.Children.map(a,(e,t)=>{if(t===h){let t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),B.cloneElement(e,t)}return e});return(0,eu.jsx)(sU,(0,R.Z)({role:"menu",ref:m,className:i,onKeyDown:e=>{let t=p.current,r=e.key,n=(0,uy.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),uw(t,n,s,l,ux);else if("ArrowUp"===r)e.preventDefault(),uw(t,n,s,l,uC);else if("Home"===r)e.preventDefault(),uw(t,null,s,l,ux);else if("End"===r)e.preventDefault(),uw(t,null,s,l,uC);else if(1===r.length){let o=f.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);let s=n&&!o.repeating&&uZ(n,o);o.previousKeyMatched&&(s||uw(t,n,!1,l,ux,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))});function uF(e){return(0,ei.ZP)("MuiPopover",e)}var uk=(0,ea.Z)("MuiPopover",["root","paper"]);let uE=["onEntering"],uM=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],uI=["slotProps"];function uj(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function uT(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function uA(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?"".concat(e,"px"):e).join(" ")}function uN(e){return"function"==typeof e?e():e}let uL=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],paper:["paper"]},uF,t)},uP=(0,W.ZP)(o7,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uR=(0,W.ZP)(ev.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var uB=B.forwardRef(function(e,t){var r,n,o;let a=(0,_.Z)({props:e,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:x=lp,transitionDuration:C="auto",TransitionProps:{onEntering:Z}={},disableScrollLock:w=!1}=a,S=(0,P.Z)(a.TransitionProps,uE),F=(0,P.Z)(a,uM),k=null!=(r=null==y?void 0:y.paper)?r:v,E=B.useRef(),M=(0,eo.Z)(E,k.ref),I=(0,R.Z)({},a,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:D,TransitionComponent:x,transitionDuration:C,TransitionProps:S}),j=uL(I),T=B.useCallback(()=>{if("anchorPosition"===c)return u;let e=uN(l),t=(e&&1===e.nodeType?e:(0,uy.Z)(E.current).body).getBoundingClientRect();return{top:t.top+uj(t,s.vertical),left:t.left+uT(t,s.horizontal)}},[l,s.horizontal,s.vertical,u,c]),A=B.useCallback(e=>({vertical:uj(e,D.vertical),horizontal:uT(e,D.horizontal)}),[D.horizontal,D.vertical]),N=B.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},r=A(t);if("none"===c)return{top:null,left:null,transformOrigin:uA(r)};let n=T(),o=n.top-r.vertical,a=n.left-r.horizontal,i=o+t.height,s=a+t.width,u=(0,aR.Z)(uN(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&od){let e=i-d;o-=e,r.vertical+=e}if(null!==h&&ap){let e=s-p;a-=e,r.horizontal+=e}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:uA(r)}},[l,c,T,A,h]),[L,z]=B.useState(g),W=B.useCallback(()=>{let e=E.current;if(!e)return;let t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)},[N]);B.useEffect(()=>(w&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[l,w,W]),B.useEffect(()=>{g&&W()}),B.useImperativeHandle(i,()=>g?{updatePosition:()=>{W()}}:null,[g,W]),B.useEffect(()=>{if(!g)return;let e=(0,aP.Z)(()=>{W()}),t=(0,aR.Z)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,g,W]);let U=C;"auto"!==C||x.muiSupportAuto||(U=void 0);let H=f||(l?(0,uy.Z)(uN(l)).body:void 0),G=null!=(n=null==b?void 0:b.root)?n:uP,Y=null!=(o=null==b?void 0:b.paper)?o:uR,V=tF({elementType:Y,externalSlotProps:(0,R.Z)({},k,{style:L?k.style:(0,R.Z)({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:I,className:(0,O.Z)(j.paper,null==k?void 0:k.className)}),$=tF({elementType:G,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:F,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:H,open:g},ownerState:I,className:(0,O.Z)(j.root,p)}),{slotProps:q}=$,Q=(0,P.Z)($,uI);return(0,eu.jsx)(G,(0,R.Z)({},Q,!eS(G)&&{slotProps:q,disableScrollLock:w},{children:(0,eu.jsx)(x,(0,R.Z)({appear:!0,in:g,onEntering:(e,t)=>{Z&&Z(e,t),W()},onExited:()=>{z(!1)},timeout:U},S,{children:(0,eu.jsx)(Y,(0,R.Z)({},V,{children:d}))}))}))});function uO(e){return(0,ei.ZP)("MuiMenu",e)}var uz=(0,ea.Z)("MuiMenu",["root","paper","list"]);let uW=["onEntering"],u_=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],uU={vertical:"top",horizontal:"right"},uH={vertical:"top",horizontal:"left"},uG=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],paper:["paper"],list:["list"]},uO,t)},uY=(0,W.ZP)(uB,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uV=(0,W.ZP)(uR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),u$=(0,W.ZP)(uS,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var uq=B.forwardRef(function(e,t){var r,n;let o=(0,_.Z)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=(0,P.Z)(o.TransitionProps,uW),D=(0,P.Z)(o,u_),x=(0,en.Z)(),C="rtl"===x.direction,Z=(0,R.Z)({},o,{autoFocus:a,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=uG(Z),S=a&&!s&&d,F=B.useRef(null),k=-1;B.Children.map(i,(e,t)=>{B.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected?k=t:-1!==k||(k=t)))});let E=null!=(r=v.paper)?r:uV,M=null!=(n=b.paper)?n:p,I=tF({elementType:v.root,externalSlotProps:b.root,ownerState:Z,className:[w.root,l]}),j=tF({elementType:E,externalSlotProps:M,ownerState:Z,className:w.paper});return(0,eu.jsx)(uY,(0,R.Z)({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?uU:uH,slots:{paper:E,root:v.root},slotProps:{root:I,paper:j},open:d,ref:t,transitionDuration:m,TransitionProps:(0,R.Z)({onEntering:(e,t)=>{F.current&&F.current.adjustStyleForScrollbar(e,x),h&&h(e,t)}},y),ownerState:Z},D,{classes:f,children:(0,eu.jsx)(u$,(0,R.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:F,autoFocus:a&&(-1===k||s),autoFocusItem:S,variant:g},u,{className:(0,O.Z)(w.list,u.className),children:i}))}))});function uQ(e){return(0,ei.ZP)("MuiMenuItem",e)}var uX=(0,ea.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);let uK=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],uJ=e=>{let{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,l=(0,z.Z)({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},uQ,i);return(0,R.Z)({},i,l)},u0=(0,W.ZP)(e$.Z,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(uX.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(uX.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(uX.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(uX.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(uX.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(aL.Z.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(aL.Z.inset)]:{marginLeft:52},["& .".concat(um.root)]:{marginTop:0,marginBottom:0},["& .".concat(um.inset)]:{paddingLeft:36},["& .".concat(us.root)]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,R.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(us.root," svg")]:{fontSize:"1.25rem"}}))});var u1=B.forwardRef(function(e,t){let r;let n=(0,_.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=(0,P.Z)(n,uK),m=B.useContext(sR),h=B.useMemo(()=>({dense:i||m.dense||!1,disableGutters:s}),[m.dense,i,s]),g=B.useRef(null);(0,is.Z)(()=>{o&&g.current&&g.current.focus()},[o]);let v=(0,R.Z)({},n,{dense:h.dense,divider:l,disableGutters:s}),b=uJ(n),y=(0,eo.Z)(g,t);return n.disabled||(r=void 0!==d?d:-1),(0,eu.jsx)(sR.Provider,{value:h,children:(0,eu.jsx)(u0,(0,R.Z)({ref:y,role:c,tabIndex:r,component:a,focusVisibleClassName:(0,O.Z)(b.focusVisible,u),className:(0,O.Z)(b.root,p)},f,{ownerState:v,classes:b}))})});function u2(e){return(0,ei.ZP)("MuiMobileStepper",e)}var u4=(0,ea.Z)("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);let u3=["activeStep","backButton","className","LinearProgressProps","nextButton","position","steps","variant"],u5=e=>{let{classes:t,position:r}=e,n={root:["root","position".concat((0,e6.Z)(r))],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return(0,z.Z)(n,u2,t)},u8=(0,W.ZP)(ev.Z,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["position".concat((0,e6.Z)(r.position))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(t.vars||t).palette.background.default,padding:8},"bottom"===r.position&&{position:"fixed",bottom:0,left:0,right:0,zIndex:(t.vars||t).zIndex.mobileStepper},"top"===r.position&&{position:"fixed",top:0,left:0,right:0,zIndex:(t.vars||t).zIndex.mobileStepper})}),u6=(0,W.ZP)("div",{name:"MuiMobileStepper",slot:"Dots",overridesResolver:(e,t)=>t.dots})(e=>{let{ownerState:t}=e;return(0,R.Z)({},"dots"===t.variant&&{display:"flex",flexDirection:"row"})}),u9=(0,W.ZP)("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>(0,W.Dz)(e)&&"dotActive"!==e,overridesResolver:(e,t)=>{let{dotActive:r}=e;return[t.dot,r&&t.dotActive]}})(e=>{let{theme:t,ownerState:r,dotActive:n}=e;return(0,R.Z)({},"dots"===r.variant&&(0,R.Z)({transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),backgroundColor:(t.vars||t).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},n&&{backgroundColor:(t.vars||t).palette.primary.main}))}),u7=(0,W.ZP)(sS,{name:"MuiMobileStepper",slot:"Progress",overridesResolver:(e,t)=>t.progress})(e=>{let{ownerState:t}=e;return(0,R.Z)({},"progress"===t.variant&&{width:"50%"})});var ce=B.forwardRef(function(e,t){let r;let n=(0,_.Z)({props:e,name:"MuiMobileStepper"}),{activeStep:o=0,backButton:a,className:i,LinearProgressProps:l,nextButton:s,position:u="bottom",steps:c,variant:d="dots"}=n,p=(0,P.Z)(n,u3),f=(0,R.Z)({},n,{activeStep:o,position:u,variant:d});"progress"===d&&(r=1===c?100:Math.ceil(o/(c-1)*100));let m=u5(f);return(0,eu.jsxs)(u8,(0,R.Z)({square:!0,elevation:0,className:(0,O.Z)(m.root,i),ref:t,ownerState:f},p,{children:[a,"text"===d&&(0,eu.jsxs)(B.Fragment,{children:[o+1," / ",c]}),"dots"===d&&(0,eu.jsx)(u6,{ownerState:f,className:m.dots,children:[...Array(c)].map((e,t)=>(0,eu.jsx)(u9,{className:(0,O.Z)(m.dot,t===o&&m.dotActive),ownerState:f,dotActive:t===o},t))}),"progress"===d&&(0,eu.jsx)(u7,(0,R.Z)({ownerState:f,className:m.progress,variant:"determinate",value:r},l)),s]}))});function ct(e){return(0,ei.ZP)("MuiNativeSelect",e)}var cr=(0,ea.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);let cn=["className","disabled","error","IconComponent","inputRef","variant"],co=e=>{let{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon","icon".concat((0,e6.Z)(r)),a&&"iconOpen",n&&"disabled"]};return(0,z.Z)(l,ct,t)},ca=e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,R.Z)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(cr.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},ci=(0,W.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:W.FO,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{["&.".concat(cr.multiple)]:t.multiple}]}})(ca),cl=e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,["&.".concat(cr.disabled)]:{color:(r.vars||r).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},cs=(0,W.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,e6.Z)(r.variant))],r.open&&t.iconOpen]}})(cl),cu=B.forwardRef(function(e,t){let{className:r,disabled:n,error:o,IconComponent:a,inputRef:i,variant:l="standard"}=e,s=(0,P.Z)(e,cn),u=(0,R.Z)({},e,{disabled:n,variant:l,error:o}),c=co(u);return(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)(ci,(0,R.Z)({ownerState:u,className:(0,O.Z)(c.select,r),disabled:n,ref:i||t},s)),e.multiple?null:(0,eu.jsx)(cs,{as:a,ownerState:u,className:c.icon})]})}),cc=["className","children","classes","IconComponent","input","inputProps","variant"],cd=["root"],cp=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},ct,t)},cf=(0,eu.jsx)(lX,{}),cm=B.forwardRef(function(e,t){let r=(0,_.Z)({name:"MuiNativeSelect",props:e}),{className:n,children:o,classes:a={},IconComponent:i=rr,input:l=cf,inputProps:s}=r,u=(0,P.Z)(r,cc),c=(0,il.Z)(),d=(0,ia.Z)({props:r,muiFormControl:c,states:["variant"]}),p=cp((0,R.Z)({},r,{classes:a})),f=(0,P.Z)(a,cd);return(0,eu.jsx)(B.Fragment,{children:B.cloneElement(l,(0,R.Z)({inputComponent:cu,inputProps:(0,R.Z)({children:o,classes:f,IconComponent:i,variant:d.variant,type:void 0},s,l?l.props.inputProps:{}),ref:t},u,{className:(0,O.Z)(p.root,l.props.className,n)}))})});cm.muiName="Select";var ch=cm;function cg(e){let{children:t,defer:r=!1,fallback:n=null}=e,[o,a]=B.useState(!1);return(0,tv.Z)(()=>{r||a(!0)},[r]),B.useEffect(()=>{r&&a(!0)},[r]),(0,eu.jsx)(B.Fragment,{children:o?t:n})}let cv=["children","classes","className","label","notched"],cb=(0,W.ZP)("fieldset",{shouldForwardProp:W.FO})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),cy=(0,W.ZP)("legend",{shouldForwardProp:W.FO})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&(0,R.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}),cD=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],cx=e=>{let{classes:t}=e,r=(0,z.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},t6,t);return(0,R.Z)({},t,r)},cC=(0,W.ZP)(ih,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:id})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,R.Z)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(t9.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(t9.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}},["&.".concat(t9.focused," .").concat(t9.notchedOutline)]:{borderColor:(t.vars||t).palette[r.color].main,borderWidth:2},["&.".concat(t9.error," .").concat(t9.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(t9.disabled," .").concat(t9.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,R.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))}),cZ=(0,W.ZP)(function(e){let{className:t,label:r,notched:n}=e,o=(0,P.Z)(e,cv),a=null!=r&&""!==r,i=(0,R.Z)({},e,{notched:n,withLabel:a});return(0,eu.jsx)(cb,(0,R.Z)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,eu.jsx)(cy,{ownerState:i,children:a?(0,eu.jsx)("span",{children:r}):u||(u=(0,eu.jsx)("span",{className:"notranslate",children:"​"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(e=>{let{theme:t}=e,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}}),cw=(0,W.ZP)(ig,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ip})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})}),cS=B.forwardRef(function(e,t){var r,n,o,a,i;let l=(0,_.Z)({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=(0,P.Z)(l,cD),v=cx(l),b=(0,il.Z)(),y=(0,ia.Z)({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D=(0,R.Z)({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),x=null!=(r=null!=(n=m.root)?n:s.Root)?r:cC,C=null!=(o=null!=(a=m.input)?a:s.Input)?o:cw;return(0,eu.jsx)(ib,(0,R.Z)({slots:{root:x,input:C},renderSuffix:e=>(0,eu.jsx)(cZ,{ownerState:D,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?i||(i=(0,eu.jsxs)(B.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:!!(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:(0,R.Z)({},v,{notchedOutline:null})}))});cS.muiName="Input";var cF=cS;function ck(e){return(0,ei.ZP)("MuiPagination",e)}var cE=(0,ea.Z)("MuiPagination",["root","ul","outlined","text"]);let cM=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function cI(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:l=!1,onChange:s,page:u,showFirstButton:c=!1,showLastButton:d=!1,siblingCount:p=1}=e,f=(0,P.Z)(e,cM),[m,h]=(0,ti.Z)({controlled:u,default:o,name:r,state:"page"}),g=(e,t)=>{u||h(t),s&&s(e,t)},v=(e,t)=>Array.from({length:t-e+1},(t,r)=>e+r),b=v(1,Math.min(t,n)),y=v(Math.max(n-t+1,t+1),n),D=Math.max(Math.min(m-p,n-t-2*p-1),t+2),x=Math.min(Math.max(m+p,t+2*p+2),y.length>0?y[0]-2:n-1),C=[...c?["first"]:[],...l?[]:["previous"],...b,...D>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...y,...i?[]:["next"],...d?["last"]:[]],Z=e=>{switch(e){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return n;default:return null}},w=C.map(e=>"number"==typeof e?{onClick:t=>{g(t,e)},type:"page",page:e,selected:e===m,disabled:a,"aria-current":e===m?"true":void 0}:{onClick:t=>{g(t,Z(e))},type:e,page:Z(e),selected:!1,disabled:a||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?m>=n:m<=1)});return(0,R.Z)({items:w},f)}function cj(e){return(0,ei.ZP)("MuiPaginationItem",e)}var cT=(0,ea.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),cA=(0,tV.Z)((0,eu.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),cN=(0,tV.Z)((0,eu.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),cL=(0,tV.Z)((0,eu.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),cP=(0,tV.Z)((0,eu.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");let cR=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],cB=(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,e6.Z)(r.size))],"text"===r.variant&&t["text".concat((0,e6.Z)(r.color))],"outlined"===r.variant&&t["outlined".concat((0,e6.Z)(r.color))],"rounded"===r.shape&&t.rounded,"page"===r.type&&t.page,("start-ellipsis"===r.type||"end-ellipsis"===r.type)&&t.ellipsis,("previous"===r.type||"next"===r.type)&&t.previousNext,("first"===r.type||"last"===r.type)&&t.firstLast]},cO=e=>{let{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:l,variant:s}=e,u={root:["root","size".concat((0,e6.Z)(a)),s,i,"standard"!==r&&"color".concat((0,e6.Z)(r)),"standard"!==r&&"".concat(s).concat((0,e6.Z)(r)),n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return(0,z.Z)(u,cj,t)},cz=(0,W.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:cB})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",["&.".concat(cT.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"small"===r.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)})}),cW=(0,W.ZP)(e$.Z,{name:"MuiPaginationItem",slot:"Root",overridesResolver:cB})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,["&.".concat(cT.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(cT.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(cT.selected)]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(cT.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},["&.".concat(cT.disabled)]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},"small"===r.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)},"rounded"===r.shape&&{borderRadius:(t.vars||t).shape.borderRadius})},e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},"text"===r.variant&&{["&.".concat(cT.selected)]:(0,R.Z)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}},["&.".concat(cT.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}},{["&.".concat(cT.disabled)]:{color:(t.vars||t).palette.action.disabled}})},"outlined"===r.variant&&{border:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(cT.selected)]:(0,R.Z)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):(0,tg.Fq)(t.palette[r.color].main,.5)),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.activatedOpacity,")"):(0,tg.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(cT.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{["&.".concat(cT.disabled)]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})}),c_=(0,W.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},"small"===r.size&&{fontSize:t.typography.pxToRem(18)},"large"===r.size&&{fontSize:t.typography.pxToRem(22)})});var cU=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiPaginationItem"}),{className:n,color:o="standard",component:a,components:i={},disabled:l=!1,page:s,selected:u=!1,shape:c="circular",size:d="medium",slots:p={},type:f="page",variant:m="text"}=r,h=(0,P.Z)(r,cR),g=(0,R.Z)({},r,{color:o,disabled:l,selected:u,shape:c,size:d,type:f,variant:m}),v=(0,en.Z)(),b=cO(g),y=("rtl"===v.direction?{previous:p.next||i.next||cP,next:p.previous||i.previous||cL,last:p.first||i.first||cA,first:p.last||i.last||cN}:{previous:p.previous||i.previous||cL,next:p.next||i.next||cP,first:p.first||i.first||cA,last:p.last||i.last||cN})[f];return"start-ellipsis"===f||"end-ellipsis"===f?(0,eu.jsx)(cz,{ref:t,ownerState:g,className:(0,O.Z)(b.root,n),children:"…"}):(0,eu.jsxs)(cW,(0,R.Z)({ref:t,ownerState:g,component:a,disabled:l,className:(0,O.Z)(b.root,n)},h,{children:["page"===f&&s,y?(0,eu.jsx)(c_,{as:y,ownerState:g,className:b.icon}):null]}))});let cH=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],cG=e=>{let{classes:t,variant:r}=e;return(0,z.Z)({root:["root",r],ul:["ul"]},ck,t)},cY=(0,W.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),cV=(0,W.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function c$(e,t,r){return"page"===e?"".concat(r?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}var cq=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiPagination"}),{boundaryCount:n=1,className:o,color:a="standard",count:i=1,defaultPage:l=1,disabled:s=!1,getItemAriaLabel:u=c$,hideNextButton:c=!1,hidePrevButton:d=!1,renderItem:p=e=>(0,eu.jsx)(cU,(0,R.Z)({},e)),shape:f="circular",showFirstButton:m=!1,showLastButton:h=!1,siblingCount:g=1,size:v="medium",variant:b="text"}=r,y=(0,P.Z)(r,cH),{items:D}=cI((0,R.Z)({},r,{componentName:"Pagination"})),x=(0,R.Z)({},r,{boundaryCount:n,color:a,count:i,defaultPage:l,disabled:s,getItemAriaLabel:u,hideNextButton:c,hidePrevButton:d,renderItem:p,shape:f,showFirstButton:m,showLastButton:h,siblingCount:g,size:v,variant:b}),C=cG(x);return(0,eu.jsx)(cY,(0,R.Z)({"aria-label":"pagination navigation",className:(0,O.Z)(C.root,o),ownerState:x,ref:t},y,{children:(0,eu.jsx)(cV,{className:C.ul,ownerState:x,children:D.map((e,t)=>(0,eu.jsx)("li",{children:p((0,R.Z)({},e,{color:a,"aria-label":u(e.type,e.page,e.selected),shape:f,size:v,variant:b}))},t))})}))}),cQ=r(12241),cX=r(24562),cK=r(66950),cJ=r(60504),c0=r(92562),c1={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},c2=r(7610),c4=r(47309),c3=(0,tV.Z)((0,eu.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),c5=(0,tV.Z)((0,eu.jsx)("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function c8(e){return(0,ei.ZP)("MuiRating",e)}var c6=(0,ea.Z)("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);let c9=["value"],c7=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function de(e,t){return null==e?e:Number((Math.round(e/t)*t).toFixed(function(e){let t=e.toString().split(".")[1];return t?t.length:0}(t)))}let dt=e=>{let{classes:t,size:r,readOnly:n,disabled:o,emptyValueFocused:a,focusVisible:i}=e,l={root:["root","size".concat((0,e6.Z)(r)),o&&"disabled",i&&"focusVisible",n&&"readOnly"],label:["label","pristine"],labelEmptyValue:[a&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return(0,z.Z)(l,c8,t)},dr=(0,W.ZP)("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(c6.visuallyHidden)]:t.visuallyHidden},t.root,t["size".concat((0,e6.Z)(r.size))],r.readOnly&&t.readOnly]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"inline-flex",position:"relative",fontSize:t.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",["&.".concat(c6.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(c6.focusVisible," .").concat(c6.iconActive)]:{outline:"1px solid #999"},["& .".concat(c6.visuallyHidden)]:c1},"small"===r.size&&{fontSize:t.typography.pxToRem(18)},"large"===r.size&&{fontSize:t.typography.pxToRem(30)},r.readOnly&&{pointerEvents:"none"})}),dn=(0,W.ZP)("label",{name:"MuiRating",slot:"Label",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.label,r.emptyValueFocused&&t.labelEmptyValueActive]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({cursor:"inherit"},t.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"})}),da=(0,W.ZP)("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.iconEmpty&&t.iconEmpty,r.iconFilled&&t.iconFilled,r.iconHover&&t.iconHover,r.iconFocus&&t.iconFocus,r.iconActive&&t.iconActive]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),pointerEvents:"none"},r.iconActive&&{transform:"scale(1.2)"},r.iconEmpty&&{color:(t.vars||t).palette.action.disabled})}),di=(0,W.ZP)("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>(0,W.Dz)(e)&&"iconActive"!==e,overridesResolver:(e,t)=>{let{iconActive:r}=e;return[t.decimal,r&&t.iconActive]}})(e=>{let{iconActive:t}=e;return(0,R.Z)({position:"relative"},t&&{transform:"scale(1.2)"})});function dl(e){let t=(0,P.Z)(e,c9);return(0,eu.jsx)("span",(0,R.Z)({},t))}function ds(e){let{classes:t,disabled:r,emptyIcon:n,focus:o,getLabelText:a,highlightSelectedOnly:i,hover:l,icon:s,IconContainerComponent:u,isActive:c,itemValue:d,labelProps:p,name:f,onBlur:m,onChange:h,onClick:g,onFocus:v,readOnly:b,ownerState:y,ratingValue:D,ratingValueRounded:x}=e,C=i?d===D:d<=D,Z=d<=l,w=d<=o,S=d===x,F=(0,c4.Z)(),k=(0,eu.jsx)(da,{as:u,value:d,className:(0,O.Z)(t.icon,C?t.iconFilled:t.iconEmpty,Z&&t.iconHover,w&&t.iconFocus,c&&t.iconActive),ownerState:(0,R.Z)({},y,{iconEmpty:!C,iconFilled:C,iconHover:Z,iconFocus:w,iconActive:c}),children:n&&!C?n:s});return b?(0,eu.jsx)("span",(0,R.Z)({},p,{children:k})):(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsxs)(dn,(0,R.Z)({ownerState:(0,R.Z)({},y,{emptyValueFocused:void 0}),htmlFor:F},p,{children:[k,(0,eu.jsx)("span",{className:t.visuallyHidden,children:a(d)})]})),(0,eu.jsx)("input",{className:t.visuallyHidden,onFocus:v,onBlur:m,onChange:h,onClick:g,disabled:r,value:d,id:F,type:"radio",name:f,checked:S})]})}let du=(0,eu.jsx)(c3,{fontSize:"inherit"}),dc=(0,eu.jsx)(c5,{fontSize:"inherit"});function dd(e){return"".concat(e," Star").concat(1!==e?"s":"")}var dp=B.forwardRef(function(e,t){let r=(0,_.Z)({name:"MuiRating",props:e}),{className:n,defaultValue:o=null,disabled:a=!1,emptyIcon:i=dc,emptyLabelText:l="Empty",getLabelText:s=dd,highlightSelectedOnly:u=!1,icon:c=du,IconContainerComponent:d=dl,max:p=5,name:f,onChange:m,onChangeActive:h,onMouseLeave:g,onMouseMove:v,precision:b=1,readOnly:y=!1,size:D="medium",value:x}=r,C=(0,P.Z)(r,c7),Z=(0,c4.Z)(f),[w,S]=(0,ey.Z)({controlled:x,default:o,name:"Rating"}),F=de(w,b),k=(0,en.Z)(),[{hover:E,focus:M},I]=B.useState({hover:-1,focus:-1}),j=F;-1!==E&&(j=E),-1!==M&&(j=M);let{isFocusVisibleRef:T,onBlur:A,onFocus:N,ref:L}=(0,sF.Z)(),[z,W]=B.useState(!1),U=B.useRef(),H=(0,eo.Z)(L,U,t),G=e=>{let t=""===e.target.value?null:parseFloat(e.target.value);-1!==E&&(t=E),S(t),m&&m(e,t)},Y=e=>{(0!==e.clientX||0!==e.clientY)&&(I({hover:-1,focus:-1}),S(null),m&&parseFloat(e.target.value)===F&&m(e,null))},V=e=>{N(e),!0===T.current&&W(!0);let t=parseFloat(e.target.value);I(e=>({hover:e.hover,focus:t}))},$=e=>{-1===E&&(A(e),!1===T.current&&W(!1),I(e=>({hover:e.hover,focus:-1})))},[q,Q]=B.useState(!1),X=(0,R.Z)({},r,{defaultValue:o,disabled:a,emptyIcon:i,emptyLabelText:l,emptyValueFocused:q,focusVisible:z,getLabelText:s,icon:c,IconContainerComponent:d,max:p,precision:b,readOnly:y,size:D}),K=dt(X);return(0,eu.jsxs)(dr,(0,R.Z)({ref:H,onMouseMove:e=>{v&&v(e);let{right:t,left:r,width:n}=U.current.getBoundingClientRect(),o=de(p*("rtl"===k.direction?(t-e.clientX)/n:(e.clientX-r)/n)+b/2,b);o=(0,c2.Z)(o,b,p),I(e=>e.hover===o&&e.focus===o?e:{hover:o,focus:o}),W(!1),h&&E!==o&&h(e,o)},onMouseLeave:e=>{g&&g(e),I({hover:-1,focus:-1}),h&&-1!==E&&h(e,-1)},className:(0,O.Z)(K.root,n,y&&"MuiRating-readOnly"),ownerState:X,role:y?"img":null,"aria-label":y?s(j):null},C,{children:[Array.from(Array(p)).map((e,t)=>{let r=t+1,n={classes:K,disabled:a,emptyIcon:i,focus:M,getLabelText:s,highlightSelectedOnly:u,hover:E,icon:c,IconContainerComponent:d,name:Z,onBlur:$,onChange:G,onClick:Y,onFocus:V,ratingValue:j,ratingValueRounded:F,readOnly:y,ownerState:X},o=r===Math.ceil(j)&&(-1!==E||-1!==M);if(b<1){let e=Array.from(Array(1/b));return(0,eu.jsx)(di,{className:(0,O.Z)(K.decimal,o&&K.iconActive),ownerState:X,iconActive:o,children:e.map((t,o)=>{let a=de(r-1+(o+1)*b,b);return(0,eu.jsx)(ds,(0,R.Z)({},n,{isActive:!1,itemValue:a,labelProps:{style:e.length-1===o?{}:{width:a===j?"".concat((o+1)*b*100,"%"):"0%",overflow:"hidden",position:"absolute"}}}),a)})},r)}return(0,eu.jsx)(ds,(0,R.Z)({},n,{isActive:o,itemValue:r}),r)}),!y&&!a&&(0,eu.jsxs)(dn,{className:(0,O.Z)(K.label,K.labelEmptyValue),ownerState:X,children:[(0,eu.jsx)("input",{className:K.visuallyHidden,value:"",id:"".concat(Z,"-empty"),type:"radio",name:Z,checked:null==F,onFocus:()=>Q(!0),onBlur:()=>Q(!1),onChange:G}),(0,eu.jsx)("span",{className:K.visuallyHidden,children:l})]})]}))});function df(e){return(0,ei.ZP)("MuiScopedCssBaseline",e)}var dm=(0,ea.Z)("MuiScopedCssBaseline",["root"]);let dh=["className","component","enableColorScheme"],dg=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},df,t)},dv=(0,W.ZP)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t,ownerState:r}=e,n={};return r.enableColorScheme&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach(e=>{var r;let[o,a]=e;n["&".concat(t.getColorSchemeSelector(o).replace(/\s*&/,""))]={colorScheme:null==(r=a.palette)?void 0:r.mode}}),(0,R.Z)({},oO(t,r.enableColorScheme),oz(t),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:t.typography.fontWeightBold}},n)});var db=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiScopedCssBaseline"}),{className:n,component:o="div"}=r,a=(0,P.Z)(r,dh),i=(0,R.Z)({},r,{component:o}),l=dg(i);return(0,eu.jsx)(dv,(0,R.Z)({as:o,className:(0,O.Z)(l.root,n),ref:t,ownerState:i},a))});function dy(e){return(0,ei.ZP)("MuiSelect",e)}var dD=(0,ea.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);let dx=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],dC=(0,W.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["&.".concat(dD.select)]:t.select},{["&.".concat(dD.select)]:t[r.variant]},{["&.".concat(dD.error)]:t.error},{["&.".concat(dD.multiple)]:t.multiple}]}})(ca,{["&.".concat(dD.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),dZ=(0,W.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,e6.Z)(r.variant))],r.open&&t.iconOpen]}})(cl),dw=(0,W.ZP)("input",{shouldForwardProp:e=>(0,W.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function dS(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}let dF=e=>{let{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon","icon".concat((0,e6.Z)(r)),a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,z.Z)(l,dy,t)},dk=B.forwardRef(function(e,t){var r,n;let o,a,i;let{"aria-describedby":l,"aria-label":s,autoFocus:u,autoWidth:d,children:p,className:f,defaultOpen:m,defaultValue:h,disabled:g,displayEmpty:v,error:b=!1,IconComponent:y,inputRef:D,labelId:x,MenuProps:C={},multiple:Z,name:w,onBlur:S,onChange:F,onClose:k,onFocus:E,onOpen:M,open:I,readOnly:j,renderValue:T,SelectDisplayProps:A={},tabIndex:N,value:L,variant:z="standard"}=e,W=(0,P.Z)(e,dx),[_,U]=(0,ey.Z)({controlled:L,default:h,name:"Select"}),[H,G]=(0,ey.Z)({controlled:I,default:m,name:"Select"}),Y=B.useRef(null),V=B.useRef(null),[$,q]=B.useState(null),{current:Q}=B.useRef(null!=I),[X,K]=B.useState(),J=(0,eo.Z)(t,D),ee=B.useCallback(e=>{V.current=e,e&&q(e)},[]),et=null==$?void 0:$.parentNode;B.useImperativeHandle(J,()=>({focus:()=>{V.current.focus()},node:Y.current,value:_}),[_]),B.useEffect(()=>{m&&H&&$&&!Q&&(K(d?null:et.clientWidth),V.current.focus())},[$,d]),B.useEffect(()=>{u&&V.current.focus()},[u]),B.useEffect(()=>{if(!x)return;let e=(0,uy.Z)(V.current).getElementById(x);if(e){let t=()=>{getSelection().isCollapsed&&V.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[x]);let er=(e,t)=>{e?M&&M(t):k&&k(t),Q||(K(d?null:et.clientWidth),G(e))},en=B.Children.toArray(p),ea=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(Z){r=Array.isArray(_)?_.slice():[];let t=_.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),_!==r&&(U(r),F)){let n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:w}}),F(o,e)}Z||er(!1,t)}},ei=null!==$&&H;delete W["aria-invalid"];let el=[],es=!1;((0,iu.vd)({value:_})||v)&&(T?o=T(_):es=!0);let ec=en.map(e=>{let t;if(!B.isValidElement(e))return null;if(Z){if(!Array.isArray(_))throw Error((0,a6.Z)(2));(t=_.some(t=>dS(t,e.props.value)))&&es&&el.push(e.props.children)}else(t=dS(_,e.props.value))&&es&&(a=e.props.children);return B.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ea(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});es&&(o=Z?0===el.length?null:el.reduce((e,t,r)=>(e.push(t),r{j||-1===[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)||(e.preventDefault(),er(!0,e))},onMouseDown:g||j?null:e=>{0===e.button&&(e.preventDefault(),V.current.focus(),er(!0,e))},onBlur:e=>{!ei&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:w}}),S(e))},onFocus:E},A,{ownerState:ef,className:(0,O.Z)(A.className,em.select,f),id:ep,children:null!=(n=o)&&("string"!=typeof n||n.trim())?o:c||(c=(0,eu.jsx)("span",{className:"notranslate",children:"​"}))})),(0,eu.jsx)(dw,(0,R.Z)({"aria-invalid":b,value:Array.isArray(_)?_.join(","):_,name:w,ref:Y,"aria-hidden":!0,onChange:e=>{let t=en.find(t=>t.props.value===e.target.value);void 0!==t&&(U(t.props.value),F&&F(e,t))},tabIndex:-1,disabled:g,className:em.nativeInput,autoFocus:u,ownerState:ef},W)),(0,eu.jsx)(dZ,{as:y,className:em.icon,ownerState:ef}),(0,eu.jsx)(uq,(0,R.Z)({id:"menu-".concat(w||""),anchorEl:et,open:ei,onClose:e=>{er(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},C,{MenuListProps:(0,R.Z)({"aria-labelledby":x,role:"listbox","aria-multiselectable":Z?"true":void 0,disableListWrap:!0,id:eg},C.MenuListProps),slotProps:(0,R.Z)({},C.slotProps,{paper:(0,R.Z)({},eh,{style:(0,R.Z)({minWidth:ed},null!=eh?eh.style:null)})}),children:ec}))]})}),dE=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],dM=["root"],dI=e=>{let{classes:t}=e;return t},dj={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,W.FO)(e)&&"variant"!==e,slot:"Root"},dT=(0,W.ZP)(lX,dj)(""),dA=(0,W.ZP)(cF,dj)(""),dN=(0,W.ZP)(iw,dj)(""),dL=B.forwardRef(function(e,t){let r=(0,_.Z)({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:a={},className:i,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=rr,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:D,renderValue:x,SelectDisplayProps:C,variant:Z="outlined"}=r,w=(0,P.Z)(r,dE),S=v?cu:dk,F=(0,il.Z)(),k=(0,ia.Z)({props:r,muiFormControl:F,states:["variant","error"]}),E=k.variant||Z,M=(0,R.Z)({},r,{variant:E,classes:a}),I=dI(M),j=(0,P.Z)(I,dM),T=d||({standard:(0,eu.jsx)(dT,{ownerState:M}),outlined:(0,eu.jsx)(dA,{label:f,ownerState:M}),filled:(0,eu.jsx)(dN,{ownerState:M})})[E],A=(0,eo.Z)(t,T.ref);return(0,eu.jsx)(B.Fragment,{children:B.cloneElement(T,(0,R.Z)({inputComponent:S,inputProps:(0,R.Z)({children:o,error:k.error,IconComponent:u,variant:E,type:void 0,multiple:g},v?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:D,renderValue:x,SelectDisplayProps:(0,R.Z)({id:c},C)},p,{classes:p?(0,a8.Z)(j,p.classes):j},d?d.props.inputProps:{})},g&&v&&"outlined"===E?{notched:!0}:{},{ref:A,className:(0,O.Z)(T.props.className,i,I.root)},!d&&{variant:E},w))})});dL.muiName="Select";var dP=dL,dR=r(32626);function dB(e){return(0,ei.ZP)("MuiSkeleton",e)}var dO=(0,ea.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);function dz(){let e=(0,ol._)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return dz=function(){return e},e}function dW(){let e=(0,ol._)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"]);return dW=function(){return e},e}function d_(){let e=(0,ol._)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]);return d_=function(){return e},e}function dU(){let e=(0,ol._)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]);return dU=function(){return e},e}let dH=["animation","className","component","height","style","variant","width"],dG=e=>e,dY,dV,d$,dq,dQ=e=>{let{classes:t,variant:r,animation:n,hasChildren:o,width:a,height:i}=e;return(0,z.Z)({root:["root",r,n,o&&"withChildren",o&&!a&&"fitContent",o&&!i&&"heightAuto"]},dB,t)},dX=(0,os.F4)(dY||(dY=dG(dz()))),dK=(0,os.F4)(dV||(dV=dG(dW()))),dJ=(0,W.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})(e=>{let{theme:t,ownerState:r}=e,n=(0,dR.Wy)(t.shape.borderRadius)||"px",o=(0,dR.YL)(t.shape.borderRadius);return(0,R.Z)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,tg.Fq)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===r.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(o).concat(n,"/").concat(Math.round(o/.6*10)/10).concat(n),"&:empty:before":{content:'"\\00a0"'}},"circular"===r.variant&&{borderRadius:"50%"},"rounded"===r.variant&&{borderRadius:(t.vars||t).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})},e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,os.iv)(d$||(d$=dG(d_(),0)),dX)},e=>{let{ownerState:t,theme:r}=e;return"wave"===t.animation&&(0,os.iv)(dq||(dq=dG(dU(),0,0)),dK,(r.vars||r).palette.action.hover)});var d0=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:o,component:a="span",height:i,style:l,variant:s="text",width:u}=r,c=(0,P.Z)(r,dH),d=(0,R.Z)({},r,{animation:n,component:a,variant:s,hasChildren:!!c.children}),p=dQ(d);return(0,eu.jsx)(dJ,(0,R.Z)({as:a,ref:t,className:(0,O.Z)(p.root,o),ownerState:d},c,{style:(0,R.Z)({width:u,height:i},l)}))}),d1=r(55551);function d2(e,t){return e-t}function d4(e,t){var r;let{index:n}=null!=(r=e.reduce((e,r,n)=>{let o=Math.abs(t-r);return null===e||oe===t){return e.length===t.length&&e.every((e,n)=>r(e,t[n]))}(e,t)}let d9={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},d7=e=>e;function pe(){return void 0===n&&("undefined"!=typeof CSS&&"function"==typeof CSS.supports?n=CSS.supports("touch-action","none"):n=!0),n}var pt=e=>!e||!eS(e);function pr(e){return(0,ei.ZP)("MuiSlider",e)}var pn=(0,ea.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);let po=e=>{let{open:t}=e;return{offset:(0,O.Z)(t&&pn.valueLabelOpen),circle:pn.valueLabelCircle,label:pn.valueLabelLabel}},pa=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function pi(e){return e}let pl=(0,W.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["color".concat((0,e6.Z)(r.color))],"medium"!==r.size&&t["size".concat((0,e6.Z)(r.size))],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(t.vars||t).palette[r.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===r.orientation&&(0,R.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===r.size&&{height:2},r.marked&&{marginBottom:20}),"vertical"===r.orientation&&(0,R.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===r.size&&{width:2},r.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},["&.".concat(pn.disabled)]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},["&.".concat(pn.dragging)]:{["& .".concat(pn.thumb,", & .").concat(pn.track)]:{transition:"none"}}})}),ps=(0,W.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})}),pu=(0,W.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode?(0,tg.$n)(t.palette[r.color].main,.62):(0,tg._j)(t.palette[r.color].main,.5);return(0,R.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===r.size&&{border:"none"},"horizontal"===r.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===r.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===r.track&&{display:"none"},"inverted"===r.track&&{backgroundColor:t.vars?t.vars.palette.Slider["".concat(r.color,"Track")]:n,borderColor:t.vars?t.vars.palette.Slider["".concat(r.color,"Track")]:n})}),pc=(0,W.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.thumb,t["thumbColor".concat((0,e6.Z)(r.color))],"medium"!==r.size&&t["thumbSize".concat((0,e6.Z)(r.size))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest})},"small"===r.size&&{width:12,height:12},"horizontal"===r.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===r.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":(0,R.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"small"===r.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},["&:hover, &.".concat(pn.focusVisible)]:{boxShadow:"0px 0px 0px 8px ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.16)"):(0,tg.Fq)(t.palette[r.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}},["&.".concat(pn.active)]:{boxShadow:"0px 0px 0px 14px ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.16)"):(0,tg.Fq)(t.palette[r.color].main,.16))},["&.".concat(pn.disabled)]:{"&:hover":{boxShadow:"none"}}})}),pd=(0,W.ZP)(function(e){let{children:t,className:r,value:n}=e,o=po(e);return t?B.cloneElement(t,{className:(0,O.Z)(t.props.className)},(0,eu.jsxs)(B.Fragment,{children:[t.props.children,(0,eu.jsx)("span",{className:(0,O.Z)(o.offset,r),"aria-hidden":!0,children:(0,eu.jsx)("span",{className:o.circle,children:(0,eu.jsx)("span",{className:o.label,children:n})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({["&.".concat(pn.valueLabelOpen)]:{transform:"".concat("vertical"===r.orientation?"translateY(-50%)":"translateY(-100%)"," scale(1)")},zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),transform:"".concat("vertical"===r.orientation?"translateY(-50%)":"translateY(-100%)"," scale(0)"),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===r.orientation&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===r.orientation&&{right:"small"===r.size?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===r.size&&{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"})}),pp=(0,W.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,W.Dz)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{let{markActive:r}=e;return[t.mark,r&&t.markActive]}})(e=>{let{theme:t,ownerState:r,markActive:n}=e;return(0,R.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===r.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===r.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})}),pf=(0,W.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,W.Dz)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})(e=>{let{theme:t,ownerState:r,markLabelActive:n}=e;return(0,R.Z)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===r.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===r.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(t.vars||t).palette.text.primary})}),pm=e=>{let{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:s}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse",l&&"color".concat((0,e6.Z)(l)),s&&"size".concat((0,e6.Z)(s))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",s&&"thumbSize".concat((0,e6.Z)(s)),l&&"thumbColor".concat((0,e6.Z)(l))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,z.Z)(u,pr,i)},ph=e=>{let{children:t}=e;return t};var pg=B.forwardRef(function(e,t){var r,n,o,a,i,l,s,u,c,d,p,f,m,h,g,v,b,y,D,x,C,Z,w,S;let F=(0,_.Z)({props:e,name:"MuiSlider"}),k="rtl"===(0,en.Z)().direction,{"aria-label":E,"aria-valuetext":M,"aria-labelledby":I,component:j="span",components:T={},componentsProps:A={},color:N="primary",classes:L,className:z,disableSwap:W=!1,disabled:U=!1,getAriaLabel:H,getAriaValueText:G,marks:Y=!1,max:V=100,min:$=0,orientation:q="horizontal",size:Q="medium",step:X=1,scale:K=pi,slotProps:J,slots:ee,track:et="normal",valueLabelDisplay:er="off",valueLabelFormat:eo=pi}=F,ea=(0,P.Z)(F,pa),ei=(0,R.Z)({},F,{isRtl:k,max:V,min:$,classes:L,disabled:U,disableSwap:W,orientation:q,marks:Y,color:N,size:Q,step:X,scale:K,track:et,valueLabelDisplay:er,valueLabelFormat:eo}),{axisProps:el,getRootProps:es,getHiddenInputProps:ec,getThumbProps:ed,open:ep,active:ef,axis:em,focusedThumbIndex:eh,range:eg,dragging:ev,marks:eb,values:ey,trackOffset:ex,trackLeap:eZ,getThumbStyle:ew}=function(e){let{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:s=0,name:u,onChange:c,onChangeCommitted:d,orientation:p="horizontal",rootRef:f,scale:m=d7,step:h=1,tabIndex:g,value:v}=e,b=B.useRef(),[y,D]=B.useState(-1),[x,C]=B.useState(-1),[Z,w]=B.useState(!1),S=B.useRef(0),[F,k]=(0,ti.Z)({controlled:v,default:null!=r?r:s,name:"Slider"}),E=c&&((e,t,r)=>{let n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:u}}),c(o,t,r)}),M=Array.isArray(F),I=M?F.slice().sort(d2):[F];I=I.map(e=>null==e?s:(0,c2.Z)(e,s,l));let j=!0===i&&null!==h?[...Array(Math.floor((l-s)/h)+1)].map((e,t)=>({value:s+h*t})):i||[],T=j.map(e=>e.value),{isFocusVisibleRef:A,onBlur:N,onFocus:L,ref:P}=(0,d1.Z)(),[O,z]=B.useState(-1),W=B.useRef(),_=(0,eD.Z)(P,W),U=(0,eD.Z)(f,_),H=e=>t=>{var r;let n=Number(t.currentTarget.getAttribute("data-index"));L(t),!0===A.current&&z(n),C(n),null==e||null==(r=e.onFocus)||r.call(e,t)},G=e=>t=>{var r;N(t),!1===A.current&&z(-1),C(-1),null==e||null==(r=e.onBlur)||r.call(e,t)};(0,tv.Z)(()=>{if(n&&W.current.contains(document.activeElement)){var e;null==(e=document.activeElement)||e.blur()}},[n]),n&&-1!==y&&D(-1),n&&-1!==O&&z(-1);let Y=e=>t=>{var r;null==(r=e.onChange)||r.call(e,t);let n=Number(t.currentTarget.getAttribute("data-index")),a=I[n],i=T.indexOf(a),u=t.target.valueAsNumber;if(j&&null==h){let e=T[T.length-1];u=u>e?e:u{let r,n;let{current:a}=W,{width:i,height:u,bottom:c,left:d}=a.getBoundingClientRect();if(r=0===$.indexOf("vertical")?(c-e.y)/u:(e.x-d)/i,-1!==$.indexOf("-reverse")&&(r=1-r),n=(l-s)*r+s,h)n=Number((Math.round((n-s)/h)*h+s).toFixed(function(e){if(1>Math.abs(e)){let t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}(h)));else{let e=d4(T,n);n=T[e]}n=(0,c2.Z)(n,s,l);let p=0;if(M){p=t?V.current:d4(I,n),o&&(n=(0,c2.Z)(n,I[p-1]||-1/0,I[p+1]||1/0));let e=n;n=d5({values:I,newValue:n,index:p}),o&&t||(p=n.indexOf(e),V.current=p)}return{newValue:n,activeIndex:p}},Q=(0,ts.Z)(e=>{let t=d3(e,b);if(!t)return;if(S.current+=1,"mousemove"===e.type&&0===e.buttons){X(e);return}let{newValue:r,activeIndex:n}=q({finger:t,move:!0});d8({sliderRef:W,activeIndex:n,setActive:D}),k(r),!Z&&S.current>2&&w(!0),E&&!d6(r,F)&&E(e,r,n)}),X=(0,ts.Z)(e=>{let t=d3(e,b);if(w(!1),!t)return;let{newValue:r}=q({finger:t,move:!0});D(-1),"touchend"===e.type&&C(-1),d&&d(e,r),b.current=void 0,J()}),K=(0,ts.Z)(e=>{if(n)return;pe()||e.preventDefault();let t=e.changedTouches[0];null!=t&&(b.current=t.identifier);let r=d3(e,b);if(!1!==r){let{newValue:t,activeIndex:n}=q({finger:r});d8({sliderRef:W,activeIndex:n,setActive:D}),k(t),E&&!d6(t,F)&&E(e,t,n)}S.current=0;let o=(0,tb.Z)(W.current);o.addEventListener("touchmove",Q,{passive:!0}),o.addEventListener("touchend",X,{passive:!0})}),J=B.useCallback(()=>{let e=(0,tb.Z)(W.current);e.removeEventListener("mousemove",Q),e.removeEventListener("mouseup",X),e.removeEventListener("touchmove",Q),e.removeEventListener("touchend",X)},[X,Q]);B.useEffect(()=>{let{current:e}=W;return e.addEventListener("touchstart",K,{passive:pe()}),()=>{e.removeEventListener("touchstart",K),J()}},[J,K]),B.useEffect(()=>{n&&J()},[n,J]);let ee=e=>t=>{var r;if(null==(r=e.onMouseDown)||r.call(e,t),n||t.defaultPrevented||0!==t.button)return;t.preventDefault();let o=d3(t,b);if(!1!==o){let{newValue:e,activeIndex:r}=q({finger:o});d8({sliderRef:W,activeIndex:r,setActive:D}),k(e),E&&!d6(e,F)&&E(t,e,r)}S.current=0;let a=(0,tb.Z)(W.current);a.addEventListener("mousemove",Q,{passive:!0}),a.addEventListener("mouseup",X)},et=((M?I[0]:s)-s)*100/(l-s),er=(I[I.length-1]-s)*100/(l-s)-et,en=e=>t=>{var r;null==(r=e.onMouseOver)||r.call(e,t),C(Number(t.currentTarget.getAttribute("data-index")))},eo=e=>t=>{var r;null==(r=e.onMouseLeave)||r.call(e,t),C(-1)};return{active:y,axis:$,axisProps:d9,dragging:Z,focusedThumbIndex:O,getHiddenInputProps:(r={})=>{var o;let i=eC(r),c={onChange:Y(i||{}),onFocus:H(i||{}),onBlur:G(i||{})},d=(0,R.Z)({},i,c);return(0,R.Z)({tabIndex:g,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(l),"aria-valuemin":m(s),name:u,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:n},r,d,{style:(0,R.Z)({},c1,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{let t=eC(e),r={onMouseDown:ee(t||{})},n=(0,R.Z)({},t,r);return(0,R.Z)({},e,{ref:U},n)},getThumbProps:(e={})=>{let t=eC(e),r={onMouseOver:en(t||{}),onMouseLeave:eo(t||{})};return(0,R.Z)({},e,t,r)},marks:j,open:x,range:M,rootRef:U,trackLeap:er,trackOffset:et,values:I,getThumbStyle:e=>({pointerEvents:-1!==y&&y!==e?"none":void 0})}}((0,R.Z)({},ei,{rootRef:t}));ei.marked=eb.length>0&&eb.some(e=>e.label),ei.dragging=ev,ei.focusedThumbIndex=eh;let eF=pm(ei),ek=null!=(r=null!=(n=null==ee?void 0:ee.root)?n:T.Root)?r:pl,eE=null!=(o=null!=(a=null==ee?void 0:ee.rail)?a:T.Rail)?o:ps,eM=null!=(i=null!=(l=null==ee?void 0:ee.track)?l:T.Track)?i:pu,eI=null!=(s=null!=(u=null==ee?void 0:ee.thumb)?u:T.Thumb)?s:pc,ej=null!=(c=null!=(d=null==ee?void 0:ee.valueLabel)?d:T.ValueLabel)?c:pd,eT=null!=(p=null!=(f=null==ee?void 0:ee.mark)?f:T.Mark)?p:pp,eA=null!=(m=null!=(h=null==ee?void 0:ee.markLabel)?h:T.MarkLabel)?m:pf,eN=null!=(g=null!=(v=null==ee?void 0:ee.input)?v:T.Input)?g:"input",eL=null!=(b=null==J?void 0:J.root)?b:A.root,eP=null!=(y=null==J?void 0:J.rail)?y:A.rail,eR=null!=(D=null==J?void 0:J.track)?D:A.track,eB=null!=(x=null==J?void 0:J.thumb)?x:A.thumb,eO=null!=(C=null==J?void 0:J.valueLabel)?C:A.valueLabel,ez=null!=(Z=null==J?void 0:J.mark)?Z:A.mark,eW=null!=(w=null==J?void 0:J.markLabel)?w:A.markLabel,e_=null!=(S=null==J?void 0:J.input)?S:A.input,eU=tF({elementType:ek,getSlotProps:es,externalSlotProps:eL,externalForwardedProps:ea,additionalProps:(0,R.Z)({},pt(ek)&&{as:j}),ownerState:(0,R.Z)({},ei,null==eL?void 0:eL.ownerState),className:[eF.root,z]}),eH=tF({elementType:eE,externalSlotProps:eP,ownerState:ei,className:eF.rail}),eG=tF({elementType:eM,externalSlotProps:eR,additionalProps:{style:(0,R.Z)({},el[em].offset(ex),el[em].leap(eZ))},ownerState:(0,R.Z)({},ei,null==eR?void 0:eR.ownerState),className:eF.track}),eY=tF({elementType:eI,getSlotProps:ed,externalSlotProps:eB,ownerState:(0,R.Z)({},ei,null==eB?void 0:eB.ownerState),className:eF.thumb}),eV=tF({elementType:ej,externalSlotProps:eO,ownerState:(0,R.Z)({},ei,null==eO?void 0:eO.ownerState),className:eF.valueLabel}),e$=tF({elementType:eT,externalSlotProps:ez,ownerState:ei,className:eF.mark}),eq=tF({elementType:eA,externalSlotProps:eW,ownerState:ei,className:eF.markLabel}),eQ=tF({elementType:eN,getSlotProps:ec,externalSlotProps:e_,ownerState:ei});return(0,eu.jsxs)(ek,(0,R.Z)({},eU,{children:[(0,eu.jsx)(eE,(0,R.Z)({},eH)),(0,eu.jsx)(eM,(0,R.Z)({},eG)),eb.filter(e=>e.value>=$&&e.value<=V).map((e,t)=>{let r;let n=(e.value-$)*100/(V-$),o=el[em].offset(n);return r=!1===et?-1!==ey.indexOf(e.value):"normal"===et&&(eg?e.value>=ey[0]&&e.value<=ey[ey.length-1]:e.value<=ey[0])||"inverted"===et&&(eg?e.value<=ey[0]||e.value>=ey[ey.length-1]:e.value>=ey[0]),(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)(eT,(0,R.Z)({"data-index":t},e$,!eS(eT)&&{markActive:r},{style:(0,R.Z)({},o,e$.style),className:(0,O.Z)(e$.className,r&&eF.markActive)})),null!=e.label?(0,eu.jsx)(eA,(0,R.Z)({"aria-hidden":!0,"data-index":t},eq,!eS(eA)&&{markLabelActive:r},{style:(0,R.Z)({},o,eq.style),className:(0,O.Z)(eF.markLabel,eq.className,r&&eF.markLabelActive),children:e.label})):null]},t)}),ey.map((e,t)=>{let r=(e-$)*100/(V-$),n=el[em].offset(r),o="off"===er?ph:ej;return(0,eu.jsx)(o,(0,R.Z)({},!eS(o)&&{valueLabelFormat:eo,valueLabelDisplay:er,value:"function"==typeof eo?eo(K(e),t):eo,index:t,open:ep===t||ef===t||"on"===er,disabled:U},eV,{children:(0,eu.jsx)(eI,(0,R.Z)({"data-index":t},eY,{className:(0,O.Z)(eF.thumb,eY.className,ef===t&&eF.active,eh===t&&eF.focusVisible),style:(0,R.Z)({},n,ew(t),eY.style),children:(0,eu.jsx)(eN,(0,R.Z)({"data-index":t,"aria-label":H?H(t):E,"aria-valuenow":K(e),"aria-labelledby":I,"aria-valuetext":G?G(K(e),t):M,value:ey[t]},eQ))}))}),t)})]}))});function pv(e){return(0,ei.ZP)("MuiSnackbarContent",e)}var pb=(0,ea.Z)("MuiSnackbarContent",["root","message","action"]);let py=["action","className","message","role"],pD=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],action:["action"],message:["message"]},pv,t)},px=(0,W.ZP)(ev.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e,r="light"===t.palette.mode?.8:.98,n=(0,tg._4)(t.palette.background.default,r);return(0,R.Z)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),pC=(0,W.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),pZ=(0,W.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8});var pw=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSnackbarContent"}),{action:n,className:o,message:a,role:i="alert"}=r,l=(0,P.Z)(r,py),s=pD(r);return(0,eu.jsxs)(px,(0,R.Z)({role:i,square:!0,elevation:6,className:(0,O.Z)(s.root,o),ownerState:r,ref:t},l,{children:[(0,eu.jsx)(pC,{className:s.message,ownerState:r,children:a}),n?(0,eu.jsx)(pZ,{className:s.action,ownerState:r,children:n}):null]}))});function pS(e){return(0,ei.ZP)("MuiSnackbar",e)}var pF=(0,ea.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let pk=["onEnter","onExited"],pE=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],pM=e=>{let{classes:t,anchorOrigin:r}=e,n={root:["root","anchorOrigin".concat((0,e6.Z)(r.vertical)).concat((0,e6.Z)(r.horizontal))]};return(0,z.Z)(n,pS,t)},pI=(0,W.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["anchorOrigin".concat((0,e6.Z)(r.anchorOrigin.vertical)).concat((0,e6.Z)(r.anchorOrigin.horizontal))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,R.Z)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})})});var pj=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSnackbar"}),n=(0,en.Z)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:i,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:s=null,children:u,className:c,ClickAwayListenerProps:d,ContentProps:p,disableWindowBlurListener:f=!1,message:m,open:h,TransitionComponent:g=lp,transitionDuration:v=o,TransitionProps:{onEnter:b,onExited:y}={}}=r,D=(0,P.Z)(r.TransitionProps,pk),x=(0,P.Z)(r,pE),C=(0,R.Z)({},r,{anchorOrigin:{vertical:i,horizontal:l},autoHideDuration:s,disableWindowBlurListener:f,TransitionComponent:g,transitionDuration:v}),Z=pM(C),{getRootProps:w,onClickAway:S}=function(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=B.useRef();B.useEffect(()=>{if(o)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==n||n(e,"escapeKeyDown")}},[o,n]);let l=(0,ts.Z)((e,t)=>{null==n||n(e,t)}),s=(0,ts.Z)(e=>{n&&null!=e&&(clearTimeout(i.current),i.current=setTimeout(()=>{l(null,"timeout")},e))});B.useEffect(()=>(o&&s(t),()=>{clearTimeout(i.current)}),[o,t,s]);let u=()=>{clearTimeout(i.current)},c=B.useCallback(()=>{null!=t&&s(null!=a?a:.5*t)},[t,a,s]),d=e=>t=>{let r=e.onBlur;null==r||r(t),c()},p=e=>t=>{let r=e.onFocus;null==r||r(t),u()},f=e=>t=>{let r=e.onMouseEnter;null==r||r(t),u()},m=e=>t=>{let r=e.onMouseLeave;null==r||r(t),c()};return B.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",c),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",c),window.removeEventListener("blur",u)}},[r,c,o]),{getRootProps:(t={})=>{let r=(0,R.Z)({},eC(e),eC(t));return(0,R.Z)({role:"presentation"},t,r,{onBlur:d(r),onFocus:p(r),onMouseEnter:f(r),onMouseLeave:m(r)})},onClickAway:e=>{null==n||n(e,"clickaway")}}}((0,R.Z)({},C)),[F,k]=B.useState(!0),E=tF({elementType:pI,getSlotProps:w,externalForwardedProps:x,ownerState:C,additionalProps:{ref:t},className:[Z.root,c]});return!h&&F?null:(0,eu.jsx)(oM,(0,R.Z)({onClickAway:S},d,{children:(0,eu.jsx)(pI,(0,R.Z)({},E,{children:(0,eu.jsx)(g,(0,R.Z)({appear:!0,in:h,timeout:v,direction:"top"===i?"down":"up",onEnter:(e,t)=>{k(!1),b&&b(e,t)},onExited:e=>{k(!0),y&&y(e)}},D,{children:u||(0,eu.jsx)(pw,(0,R.Z)({message:m,action:a},p))}))}))}))});let pT=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pA={entering:{transform:"none"},entered:{transform:"none"}};var pN=B.forwardRef(function(e,t){let r=(0,en.Z)(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:v=K}=e,b=(0,P.Z)(e,pT),y=B.useRef(null),D=(0,eo.Z)(y,i.ref,t),x=e=>t=>{if(e){let r=y.current;void 0===t?e(r):e(r,t)}},C=x(d),Z=x((e,t)=>{et(e);let n=er({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("transform",n),e.style.transition=r.transitions.create("transform",n),u&&u(e,t)}),w=x(c),S=x(m),F=x(e=>{let t=er({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("transform",t),e.style.transition=r.transitions.create("transform",t),p&&p(e)}),k=x(f);return(0,eu.jsx)(v,(0,R.Z)({appear:a,in:s,nodeRef:y,onEnter:Z,onEntered:w,onEntering:C,onExit:F,onExited:k,onExiting:S,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>B.cloneElement(i,(0,R.Z)({style:(0,R.Z)({transform:"scale(0)",visibility:"exited"!==e||s?void 0:"hidden"},pA[e],h,i.props.style),ref:D},t))}))});function pL(e){return(0,ei.ZP)("MuiSpeedDial",e)}var pP=(0,ea.Z)("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);let pR=["ref"],pB=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],pO=["ref"],pz=e=>{let{classes:t,open:r,direction:n}=e,o={root:["root","direction".concat((0,e6.Z)(n))],fab:["fab"],actions:["actions",!r&&"actionsClosed"]};return(0,z.Z)(o,pL,t)};function pW(e){return"up"===e||"down"===e?"vertical":"right"===e||"left"===e?"horizontal":void 0}let p_=(0,W.ZP)("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["direction".concat((0,e6.Z)(r.direction))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({zIndex:(t.vars||t).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},"up"===r.direction&&{flexDirection:"column-reverse",["& .".concat(pP.actions)]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}},"down"===r.direction&&{flexDirection:"column",["& .".concat(pP.actions)]:{flexDirection:"column",marginTop:-32,paddingTop:48}},"left"===r.direction&&{flexDirection:"row-reverse",["& .".concat(pP.actions)]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}},"right"===r.direction&&{flexDirection:"row",["& .".concat(pP.actions)]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}})}),pU=(0,W.ZP)(a5,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,t)=>t.fab})(()=>({pointerEvents:"auto"})),pH=(0,W.ZP)("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.actions,!r.open&&t.actionsClosed]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",pointerEvents:"auto"},!t.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"})});var pG=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSpeedDial"}),n=(0,en.Z)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{ariaLabel:a,FabProps:{ref:i}={},children:l,className:s,direction:u="up",hidden:c=!1,icon:d,onBlur:p,onClose:f,onFocus:m,onKeyDown:h,onMouseEnter:g,onMouseLeave:v,onOpen:b,open:y,TransitionComponent:D=pN,transitionDuration:x=o,TransitionProps:C}=r,Z=(0,P.Z)(r.FabProps,pR),w=(0,P.Z)(r,pB),[S,F]=(0,ey.Z)({controlled:y,default:!1,name:"SpeedDial",state:"open"}),k=(0,R.Z)({},r,{open:S,direction:u}),E=pz(k),M=B.useRef();B.useEffect(()=>()=>{clearTimeout(M.current)},[]);let I=B.useRef(0),j=B.useRef(),T=B.useRef([]);T.current=[T.current[0]];let A=B.useCallback(e=>{T.current[0]=e},[]),N=(0,eo.Z)(i,A),L=(e,t)=>r=>{T.current[e+1]=r,t&&t(r)};B.useEffect(()=>{S||(I.current=0,j.current=void 0)},[S]);let z=e=>{"mouseleave"===e.type&&v&&v(e),"blur"===e.type&&p&&p(e),clearTimeout(M.current),"blur"===e.type?M.current=setTimeout(()=>{F(!1),f&&f(e,"blur")}):(F(!1),f&&f(e,"mouseLeave"))},W=e=>{"mouseenter"===e.type&&g&&g(e),"focus"===e.type&&m&&m(e),clearTimeout(M.current),S||(M.current=setTimeout(()=>{F(!0),b&&b(e,{focus:"focus",mouseenter:"mouseEnter"}[e.type])}))},U=a.replace(/^[^a-z]+|[^\w:.-]+/gi,""),H=B.Children.toArray(l).filter(e=>B.isValidElement(e)),G=H.map((e,t)=>{let r=e.props,{FabProps:{ref:n}={},tooltipPlacement:o}=r,a=(0,P.Z)(r.FabProps,pO),i=o||("vertical"===pW(u)?"left":"top");return B.cloneElement(e,{FabProps:(0,R.Z)({},a,{ref:L(t,n)}),delay:30*(S?t:H.length-t),open:S,tooltipPlacement:i,id:"".concat(U,"-action-").concat(t)})});return(0,eu.jsxs)(p_,(0,R.Z)({className:(0,O.Z)(E.root,s),ref:t,role:"presentation",onKeyDown:e=>{h&&h(e);let t=e.key.replace("Arrow","").toLowerCase(),{current:r=t}=j;if("Escape"===e.key){F(!1),T.current[0].focus(),f&&f(e,"escapeKeyDown");return}if(pW(t)===pW(r)&&void 0!==pW(t)){e.preventDefault();let n=t===r?1:-1,o=(0,c2.Z)(I.current+n,0,T.current.length-1);T.current[o].focus(),I.current=o,j.current=r}},onBlur:z,onFocus:W,onMouseEnter:W,onMouseLeave:z,ownerState:k},w,{children:[(0,eu.jsx)(D,(0,R.Z)({in:!c,timeout:x,unmountOnExit:!0},C,{children:(0,eu.jsx)(pU,(0,R.Z)({color:"primary","aria-label":a,"aria-haspopup":"true","aria-expanded":S,"aria-controls":"".concat(U,"-actions")},Z,{onClick:e=>{Z.onClick&&Z.onClick(e),clearTimeout(M.current),S?(F(!1),f&&f(e,"toggle")):(F(!0),b&&b(e,"toggle"))},className:(0,O.Z)(E.fab,Z.className),ref:N,ownerState:k,children:B.isValidElement(d)&&(0,lM.Z)(d,["SpeedDialIcon"])?B.cloneElement(d,{open:S}):d}))})),(0,eu.jsx)(pH,{id:"".concat(U,"-actions"),role:"menu","aria-orientation":pW(u),className:(0,O.Z)(E.actions,!S&&E.actionsClosed),ownerState:k,children:G})]}))}),pY=r(60174);function pV(e){return(0,ei.ZP)("MuiTooltip",e)}var p$=(0,ea.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);let pq=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],pQ=e=>{let{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,e6.Z)(a.split("-")[0]))],arrow:["arrow"]};return(0,z.Z)(i,pV,t)},pX=(0,W.ZP)(tB,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(e=>{let{theme:t,ownerState:r,open:n}=e;return(0,R.Z)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},r.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(p$.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(p$.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(p$.arrow)]:(0,R.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(p$.arrow)]:(0,R.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})}),pK=(0,W.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,e6.Z)(r.placement.split("-")[0]))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,tg.Fq)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(Math.round(16/14*1e5)/1e5,"em"),fontWeight:t.typography.fontWeightRegular},{[".".concat(p$.popper,'[data-popper-placement*="left"] &')]:(0,R.Z)({transformOrigin:"right center"},r.isRtl?(0,R.Z)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):(0,R.Z)({marginRight:"14px"},r.touch&&{marginRight:"24px"})),[".".concat(p$.popper,'[data-popper-placement*="right"] &')]:(0,R.Z)({transformOrigin:"left center"},r.isRtl?(0,R.Z)({marginRight:"14px"},r.touch&&{marginRight:"24px"}):(0,R.Z)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"})),[".".concat(p$.popper,'[data-popper-placement*="top"] &')]:(0,R.Z)({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"}),[".".concat(p$.popper,'[data-popper-placement*="bottom"] &')]:(0,R.Z)({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})})}),pJ=(0,W.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,tg.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}),p0=!1,p1=null,p2={x:0,y:0};function p4(e,t){return r=>{t&&t(r),e(r)}}var p3=B.forwardRef(function(e,t){var r,n,o,a,i,l,s,u,c,d,p,f,m,h,g,v,b,y,D;let x=(0,_.Z)({props:e,name:"MuiTooltip"}),{arrow:C=!1,children:Z,components:w={},componentsProps:S={},describeChild:F=!1,disableFocusListener:k=!1,disableHoverListener:E=!1,disableInteractive:M=!1,disableTouchListener:I=!1,enterDelay:j=100,enterNextDelay:T=0,enterTouchDelay:A=700,followCursor:N=!1,id:L,leaveDelay:z=0,leaveTouchDelay:W=1500,onClose:U,onOpen:H,open:G,placement:Y="bottom",PopperComponent:V,PopperProps:$={},slotProps:q={},slots:Q={},title:X,TransitionComponent:K=lp,TransitionProps:J}=x,ee=(0,P.Z)(x,pq),et=B.isValidElement(Z)?Z:(0,eu.jsx)("span",{children:Z}),er=(0,en.Z)(),ea="rtl"===er.direction,[ei,el]=B.useState(),[es,ec]=B.useState(null),ed=B.useRef(!1),ep=M||N,ef=B.useRef(),em=B.useRef(),eh=B.useRef(),eg=B.useRef(),[ev,eb]=(0,ey.Z)({controlled:G,default:!1,name:"Tooltip",state:"open"}),eD=ev,ex=(0,c4.Z)(L),eC=B.useRef(),eZ=B.useCallback(()=>{void 0!==eC.current&&(document.body.style.WebkitUserSelect=eC.current,eC.current=void 0),clearTimeout(eg.current)},[]);B.useEffect(()=>()=>{clearTimeout(ef.current),clearTimeout(em.current),clearTimeout(eh.current),eZ()},[eZ]);let ew=e=>{clearTimeout(p1),p0=!0,eb(!0),H&&!eD&&H(e)},eS=(0,pY.Z)(e=>{clearTimeout(p1),p1=setTimeout(()=>{p0=!1},800+z),eb(!1),U&&eD&&U(e),clearTimeout(ef.current),ef.current=setTimeout(()=>{ed.current=!1},er.transitions.duration.shortest)}),ek=e=>{ed.current&&"touchstart"!==e.type||(ei&&ei.removeAttribute("title"),clearTimeout(em.current),clearTimeout(eh.current),j||p0&&T?em.current=setTimeout(()=>{ew(e)},p0?T:j):ew(e))},eE=e=>{clearTimeout(em.current),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},z)},{isFocusVisibleRef:eM,onBlur:eI,onFocus:ej,ref:eT}=(0,sF.Z)(),[,eA]=B.useState(!1),eN=e=>{eI(e),!1===eM.current&&(eA(!1),eE(e))},eL=e=>{ei||el(e.currentTarget),ej(e),!0===eM.current&&(eA(!0),ek(e))},eP=e=>{ed.current=!0;let t=et.props;t.onTouchStart&&t.onTouchStart(e)};B.useEffect(()=>{if(eD)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&eS(e)}},[eS,eD]);let eR=(0,eo.Z)(et.ref,eT,el,t);X||0===X||(eD=!1);let eB=B.useRef(),eO={},ez="string"==typeof X;F?(eO.title=eD||!ez||E?null:X,eO["aria-describedby"]=eD?ex:null):(eO["aria-label"]=ez?X:null,eO["aria-labelledby"]=eD&&!ez?ex:null);let eW=(0,R.Z)({},eO,ee,et.props,{className:(0,O.Z)(ee.className,et.props.className),onTouchStart:eP,ref:eR},N?{onMouseMove:e=>{let t=et.props;t.onMouseMove&&t.onMouseMove(e),p2={x:e.clientX,y:e.clientY},eB.current&&eB.current.update()}}:{}),e_={};I||(eW.onTouchStart=e=>{eP(e),clearTimeout(eh.current),clearTimeout(ef.current),eZ(),eC.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",eg.current=setTimeout(()=>{document.body.style.WebkitUserSelect=eC.current,ek(e)},A)},eW.onTouchEnd=e=>{et.props.onTouchEnd&&et.props.onTouchEnd(e),eZ(),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},W)}),E||(eW.onMouseOver=p4(ek,eW.onMouseOver),eW.onMouseLeave=p4(eE,eW.onMouseLeave),ep||(e_.onMouseOver=ek,e_.onMouseLeave=eE)),k||(eW.onFocus=p4(eL,eW.onFocus),eW.onBlur=p4(eN,eW.onBlur),ep||(e_.onFocus=eL,e_.onBlur=eN));let eU=B.useMemo(()=>{var e;let t=[{name:"arrow",enabled:!!es,options:{element:es,padding:4}}];return null!=(e=$.popperOptions)&&e.modifiers&&(t=t.concat($.popperOptions.modifiers)),(0,R.Z)({},$.popperOptions,{modifiers:t})},[es,$]),eH=(0,R.Z)({},x,{isRtl:ea,arrow:C,disableInteractive:ep,placement:Y,PopperComponentProp:V,touch:ed.current}),eG=pQ(eH),eY=null!=(r=null!=(n=Q.popper)?n:w.Popper)?r:pX,eV=null!=(o=null!=(a=null!=(i=Q.transition)?i:w.Transition)?a:K)?o:lp,e$=null!=(l=null!=(s=Q.tooltip)?s:w.Tooltip)?l:pK,eq=null!=(u=null!=(c=Q.arrow)?c:w.Arrow)?u:pJ,eQ=eF(eY,(0,R.Z)({},$,null!=(d=q.popper)?d:S.popper,{className:(0,O.Z)(eG.popper,null==$?void 0:$.className,null==(p=null!=(f=q.popper)?f:S.popper)?void 0:p.className)}),eH),eX=eF(eV,(0,R.Z)({},J,null!=(m=q.transition)?m:S.transition),eH),eK=eF(e$,(0,R.Z)({},null!=(h=q.tooltip)?h:S.tooltip,{className:(0,O.Z)(eG.tooltip,null==(g=null!=(v=q.tooltip)?v:S.tooltip)?void 0:g.className)}),eH),eJ=eF(eq,(0,R.Z)({},null!=(b=q.arrow)?b:S.arrow,{className:(0,O.Z)(eG.arrow,null==(y=null!=(D=q.arrow)?D:S.arrow)?void 0:y.className)}),eH);return(0,eu.jsxs)(B.Fragment,{children:[B.cloneElement(et,eW),(0,eu.jsx)(eY,(0,R.Z)({as:null!=V?V:tB,placement:Y,anchorEl:N?{getBoundingClientRect:()=>({top:p2.y,left:p2.x,right:p2.x,bottom:p2.y,width:0,height:0})}:ei,popperRef:eB,open:!!ei&&eD,id:ex,transition:!0},e_,eQ,{popperOptions:eU,children:e=>{let{TransitionProps:t}=e;return(0,eu.jsx)(eV,(0,R.Z)({timeout:er.transitions.duration.shorter},t,eX,{children:(0,eu.jsxs)(e$,(0,R.Z)({},eK,{children:[X,C?(0,eu.jsx)(eq,(0,R.Z)({},eJ,{ref:ec})):null]}))}))}}))]})});function p5(e){return(0,ei.ZP)("MuiSpeedDialAction",e)}var p8=(0,ea.Z)("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]);let p6=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],p9=e=>{let{open:t,tooltipPlacement:r,classes:n}=e,o={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip","tooltipPlacement".concat((0,e6.Z)(r)),!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return(0,z.Z)(o,p5,n)},p7=(0,W.ZP)(a5,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.fab,!r.open&&t.fabClosed]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({margin:8,color:(t.vars||t).palette.text.secondary,backgroundColor:(t.vars||t).palette.background.paper,"&:hover":{backgroundColor:t.vars?t.vars.palette.SpeedDialAction.fabHoverBg:(0,tg._4)(t.palette.background.paper,.15)},transition:"".concat(t.transitions.create("transform",{duration:t.transitions.duration.shorter}),", opacity 0.8s"),opacity:1},!r.open&&{opacity:0,transform:"scale(0)"})}),fe=(0,W.ZP)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.staticTooltip,!r.open&&t.staticTooltipClosed,t["tooltipPlacement".concat((0,e6.Z)(r.tooltipPlacement))]]}})(e=>{let{theme:t,ownerState:r}=e;return{position:"relative",display:"flex",alignItems:"center",["& .".concat(p8.staticTooltipLabel)]:(0,R.Z)({transition:t.transitions.create(["transform","opacity"],{duration:t.transitions.duration.shorter}),opacity:1},!r.open&&{opacity:0,transform:"scale(0.5)"},"left"===r.tooltipPlacement&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},"right"===r.tooltipPlacement&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})}}),ft=(0,W.ZP)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(e,t)=>t.staticTooltipLabel})(e=>{let{theme:t}=e;return(0,R.Z)({position:"absolute"},t.typography.body1,{backgroundColor:(t.vars||t).palette.background.paper,borderRadius:(t.vars||t).shape.borderRadius,boxShadow:(t.vars||t).shadows[1],color:(t.vars||t).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})});var fr=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSpeedDialAction"}),{className:n,delay:o=0,FabProps:a={},icon:i,id:l,open:s,TooltipClasses:u,tooltipOpen:c=!1,tooltipPlacement:d="left",tooltipTitle:p}=r,f=(0,P.Z)(r,p6),m=(0,R.Z)({},r,{tooltipPlacement:d}),h=p9(m),[g,v]=B.useState(c),b={transitionDelay:"".concat(o,"ms")},y=(0,eu.jsx)(p7,(0,R.Z)({size:"small",className:(0,O.Z)(h.fab,n),tabIndex:-1,role:"menuitem",ownerState:m},a,{style:(0,R.Z)({},b,a.style),children:i}));return c?(0,eu.jsxs)(fe,(0,R.Z)({id:l,ref:t,className:h.staticTooltip,ownerState:m},f,{children:[(0,eu.jsx)(ft,{style:b,id:"".concat(l,"-label"),className:h.staticTooltipLabel,ownerState:m,children:p}),B.cloneElement(y,{"aria-labelledby":"".concat(l,"-label")})]})):(!s&&g&&v(!1),(0,eu.jsx)(p3,(0,R.Z)({id:l,ref:t,title:p,placement:d,onClose:()=>{v(!1)},onOpen:()=>{v(!0)},open:s&&g,classes:u},f,{children:y})))}),fn=(0,tV.Z)((0,eu.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function fo(e){return(0,ei.ZP)("MuiSpeedDialIcon",e)}var fa=(0,ea.Z)("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]);let fi=["className","icon","open","openIcon"],fl=e=>{let{classes:t,open:r,openIcon:n}=e;return(0,z.Z)({root:["root"],icon:["icon",r&&"iconOpen",n&&r&&"iconWithOpenIconOpen"],openIcon:["openIcon",r&&"openIconOpen"]},fo,t)},fs=(0,W.ZP)("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(fa.icon)]:t.icon},{["& .".concat(fa.icon)]:r.open&&t.iconOpen},{["& .".concat(fa.icon)]:r.open&&r.openIcon&&t.iconWithOpenIconOpen},{["& .".concat(fa.openIcon)]:t.openIcon},{["& .".concat(fa.openIcon)]:r.open&&t.openIconOpen},t.root]}})(e=>{let{theme:t,ownerState:r}=e;return{height:24,["& .".concat(fa.icon)]:(0,R.Z)({transition:t.transitions.create(["transform","opacity"],{duration:t.transitions.duration.short})},r.open&&(0,R.Z)({transform:"rotate(45deg)"},r.openIcon&&{opacity:0})),["& .".concat(fa.openIcon)]:(0,R.Z)({position:"absolute",transition:t.transitions.create(["transform","opacity"],{duration:t.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},r.open&&{transform:"rotate(0deg)",opacity:1})}}),fu=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSpeedDialIcon"}),{className:n,icon:o,openIcon:a}=r,i=(0,P.Z)(r,fi),l=fl(r);function s(e,t){return B.isValidElement(e)?B.cloneElement(e,{className:t}):e}return(0,eu.jsxs)(fs,(0,R.Z)({className:(0,O.Z)(l.root,n),ref:t,ownerState:r},i,{children:[a?s(a,l.openIcon):null,o?s(o,l.icon):(0,eu.jsx)(fn,{className:l.icon})]}))});fu.muiName="SpeedDialIcon";var fc=fu,fd=r(35465),fp=(0,ea.Z)("MuiStack",["root"]);let ff=B.createContext({});function fm(){return B.useContext(ff)}var fh=ff;let fg=B.createContext({});function fv(){return B.useContext(fg)}var fb=fg;function fy(e){return(0,ei.ZP)("MuiStep",e)}var fD=(0,ea.Z)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);let fx=["active","children","className","component","completed","disabled","expanded","index","last"],fC=e=>{let{classes:t,orientation:r,alternativeLabel:n,completed:o}=e;return(0,z.Z)({root:["root",r,n&&"alternativeLabel",o&&"completed"]},fy,t)},fZ=(0,W.ZP)("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel,r.completed&&t.completed]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})});var fw=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStep"}),{active:n,children:o,className:a,component:i="div",completed:l,disabled:s,expanded:u=!1,index:c,last:d}=r,p=(0,P.Z)(r,fx),{activeStep:f,connector:m,alternativeLabel:h,orientation:g,nonLinear:v}=B.useContext(fh),[b=!1,y=!1,D=!1]=[n,l,s];f===c?b=void 0===n||n:!v&&f>c?y=void 0===l||l:!v&&f({index:c,last:d,expanded:u,icon:c+1,active:b,completed:y,disabled:D}),[c,d,u,b,y,D]),C=(0,R.Z)({},r,{active:b,orientation:g,alternativeLabel:h,completed:y,disabled:D,expanded:u,component:i}),Z=fC(C),w=(0,eu.jsxs)(fZ,(0,R.Z)({as:i,className:(0,O.Z)(Z.root,a),ref:t,ownerState:C},p,{children:[m&&h&&0!==c?m:null,o]}));return(0,eu.jsx)(fb.Provider,{value:x,children:m&&!h&&0!==c?(0,eu.jsxs)(B.Fragment,{children:[m,w]}):w})}),fS=(0,tV.Z)((0,eu.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),fF=(0,tV.Z)((0,eu.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),fk=r(96902);function fE(e){return(0,ei.ZP)("MuiStepIcon",e)}var fM=(0,ea.Z)("MuiStepIcon",["root","active","completed","error","text"]);let fI=["active","className","completed","error","icon"],fj=e=>{let{classes:t,active:r,completed:n,error:o}=e;return(0,z.Z)({root:["root",r&&"active",n&&"completed",o&&"error"],text:["text"]},fE,t)},fT=(0,W.ZP)(fk.Z,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),color:(t.vars||t).palette.text.disabled,["&.".concat(fM.completed)]:{color:(t.vars||t).palette.primary.main},["&.".concat(fM.active)]:{color:(t.vars||t).palette.primary.main},["&.".concat(fM.error)]:{color:(t.vars||t).palette.error.main}}}),fA=(0,W.ZP)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(e=>{let{theme:t}=e;return{fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}});var fN=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStepIcon"}),{active:n=!1,className:o,completed:a=!1,error:i=!1,icon:l}=r,s=(0,P.Z)(r,fI),u=(0,R.Z)({},r,{active:n,completed:a,error:i}),c=fj(u);if("number"==typeof l||"string"==typeof l){let e=(0,O.Z)(o,c.root);return i?(0,eu.jsx)(fT,(0,R.Z)({as:fF,className:e,ref:t,ownerState:u},s)):a?(0,eu.jsx)(fT,(0,R.Z)({as:fS,className:e,ref:t,ownerState:u},s)):(0,eu.jsxs)(fT,(0,R.Z)({className:e,ref:t,ownerState:u},s,{children:[d||(d=(0,eu.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,eu.jsx)(fA,{className:c.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l});function fL(e){return(0,ei.ZP)("MuiStepLabel",e)}var fP=(0,ea.Z)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]);let fR=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],fB=e=>{let{classes:t,orientation:r,active:n,completed:o,error:a,disabled:i,alternativeLabel:l}=e;return(0,z.Z)({root:["root",r,a&&"error",i&&"disabled",l&&"alternativeLabel"],label:["label",n&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]},fL,t)},fO=(0,W.ZP)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",alignItems:"center",["&.".concat(fP.alternativeLabel)]:{flexDirection:"column"},["&.".concat(fP.disabled)]:{cursor:"default"}},"vertical"===t.orientation&&{textAlign:"left",padding:"8px 0"})}),fz=(0,W.ZP)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(e=>{let{theme:t}=e;return(0,R.Z)({},t.typography.body2,{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),["&.".concat(fP.active)]:{color:(t.vars||t).palette.text.primary,fontWeight:500},["&.".concat(fP.completed)]:{color:(t.vars||t).palette.text.primary,fontWeight:500},["&.".concat(fP.alternativeLabel)]:{marginTop:16},["&.".concat(fP.error)]:{color:(t.vars||t).palette.error.main}})}),fW=(0,W.ZP)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,["&.".concat(fP.alternativeLabel)]:{paddingRight:0}})),f_=(0,W.ZP)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(e=>{let{theme:t}=e;return{width:"100%",color:(t.vars||t).palette.text.secondary,["&.".concat(fP.alternativeLabel)]:{textAlign:"center"}}}),fU=B.forwardRef(function(e,t){var r;let n=(0,_.Z)({props:e,name:"MuiStepLabel"}),{children:o,className:a,componentsProps:i={},error:l=!1,icon:s,optional:u,slotProps:c={},StepIconComponent:d,StepIconProps:p}=n,f=(0,P.Z)(n,fR),{alternativeLabel:m,orientation:h}=B.useContext(fh),{active:g,disabled:v,completed:b,icon:y}=B.useContext(fb),D=s||y,x=d;D&&!x&&(x=fN);let C=(0,R.Z)({},n,{active:g,alternativeLabel:m,completed:b,disabled:v,error:l,orientation:h}),Z=fB(C),w=null!=(r=c.label)?r:i.label;return(0,eu.jsxs)(fO,(0,R.Z)({className:(0,O.Z)(Z.root,a),ref:t,ownerState:C},f,{children:[D||x?(0,eu.jsx)(fW,{className:Z.iconContainer,ownerState:C,children:(0,eu.jsx)(x,(0,R.Z)({completed:b,active:g,error:l,icon:D},p))}):null,(0,eu.jsxs)(f_,{className:Z.labelContainer,ownerState:C,children:[o?(0,eu.jsx)(fz,(0,R.Z)({ownerState:C},w,{className:(0,O.Z)(Z.label,null==w?void 0:w.className),children:o})):null,u]})]}))});fU.muiName="StepLabel";var fH=fU;function fG(e){return(0,ei.ZP)("MuiStepButton",e)}var fY=(0,ea.Z)("MuiStepButton",["root","horizontal","vertical","touchRipple"]);let fV=["children","className","icon","optional"],f$=e=>{let{classes:t,orientation:r}=e;return(0,z.Z)({root:["root",r],touchRipple:["touchRipple"]},fG,t)},fq=(0,W.ZP)(e$.Z,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(fY.touchRipple)]:t.touchRipple},t.root,t[r.orientation]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},"vertical"===t.orientation&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{["& .".concat(fY.touchRipple)]:{color:"rgba(0, 0, 0, 0.3)"}})});var fQ=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStepButton"}),{children:n,className:o,icon:a,optional:i}=r,l=(0,P.Z)(r,fV),{disabled:s,active:u}=B.useContext(fb),{orientation:c}=B.useContext(fh),d=(0,R.Z)({},r,{orientation:c}),p=f$(d),f={icon:a,optional:i},m=(0,lM.Z)(n,["StepLabel"])?B.cloneElement(n,f):(0,eu.jsx)(fH,(0,R.Z)({},f,{children:n}));return(0,eu.jsx)(fq,(0,R.Z)({focusRipple:!0,disabled:s,TouchRippleProps:{className:p.touchRipple},className:(0,O.Z)(p.root,o),ref:t,ownerState:d,"aria-current":u?"step":void 0},l,{children:m}))});function fX(e){return(0,ei.ZP)("MuiStepConnector",e)}var fK=(0,ea.Z)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);let fJ=["className"],f0=e=>{let{classes:t,orientation:r,alternativeLabel:n,active:o,completed:a,disabled:i}=e,l={root:["root",r,n&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line","line".concat((0,e6.Z)(r))]};return(0,z.Z)(l,fX,t)},f1=(0,W.ZP)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel,r.completed&&t.completed]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({flex:"1 1 auto"},"vertical"===t.orientation&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})}),f2=(0,W.ZP)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.line,t["line".concat((0,e6.Z)(r.orientation))]]}})(e=>{let{ownerState:t,theme:r}=e,n="light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[600];return(0,R.Z)({display:"block",borderColor:r.vars?r.vars.palette.StepConnector.border:n},"horizontal"===t.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===t.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})});var f4=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStepConnector"}),{className:n}=r,o=(0,P.Z)(r,fJ),{alternativeLabel:a,orientation:i="horizontal"}=B.useContext(fh),{active:l,disabled:s,completed:u}=B.useContext(fb),c=(0,R.Z)({},r,{alternativeLabel:a,orientation:i,active:l,completed:u,disabled:s}),d=f0(c);return(0,eu.jsx)(f1,(0,R.Z)({className:(0,O.Z)(d.root,n),ref:t,ownerState:c},o,{children:(0,eu.jsx)(f2,{className:d.line,ownerState:c})}))});function f3(e){return(0,ei.ZP)("MuiStepContent",e)}var f5=(0,ea.Z)("MuiStepContent",["root","last","transition"]);let f8=["children","className","TransitionComponent","transitionDuration","TransitionProps"],f6=e=>{let{classes:t,last:r}=e;return(0,z.Z)({root:["root",r&&"last"],transition:["transition"]},f3,t)},f9=(0,W.ZP)("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.last&&t.last]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:r.vars?"1px solid ".concat(r.vars.palette.StepContent.border):"1px solid ".concat("light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[600])},t.last&&{borderLeft:"none"})}),f7=(0,W.ZP)(eg,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({});var me=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStepContent"}),{children:n,className:o,TransitionComponent:a=eg,transitionDuration:i="auto",TransitionProps:l}=r,s=(0,P.Z)(r,f8),{orientation:u}=B.useContext(fh),{active:c,last:d,expanded:p}=B.useContext(fb),f=(0,R.Z)({},r,{last:d}),m=f6(f),h=i;return"auto"!==i||a.muiSupportAuto||(h=void 0),(0,eu.jsx)(f9,(0,R.Z)({className:(0,O.Z)(m.root,o),ref:t,ownerState:f},s,{children:(0,eu.jsx)(f7,(0,R.Z)({as:a,in:c||p,className:m.transition,ownerState:f,timeout:h,unmountOnExit:!0},l,{children:n}))}))});function mt(e){return(0,ei.ZP)("MuiStepper",e)}var mr=(0,ea.Z)("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);let mn=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],mo=e=>{let{orientation:t,alternativeLabel:r,classes:n}=e;return(0,z.Z)({root:["root",t,r&&"alternativeLabel"]},mt,n)},ma=(0,W.ZP)("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex"},"horizontal"===t.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===t.orientation&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})}),mi=(0,eu.jsx)(f4,{});var ml=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStepper"}),{activeStep:n=0,alternativeLabel:o=!1,children:a,className:i,component:l="div",connector:s=mi,nonLinear:u=!1,orientation:c="horizontal"}=r,d=(0,P.Z)(r,mn),p=(0,R.Z)({},r,{alternativeLabel:o,orientation:c,component:l}),f=mo(p),m=B.Children.toArray(a).filter(Boolean),h=m.map((e,t)=>B.cloneElement(e,(0,R.Z)({index:t,last:t+1===m.length},e.props))),g=B.useMemo(()=>({activeStep:n,alternativeLabel:o,connector:s,nonLinear:u,orientation:c}),[n,o,s,u,c]);return(0,eu.jsx)(fh.Provider,{value:g,children:(0,eu.jsx)(ma,(0,R.Z)({as:l,ownerState:p,className:(0,O.Z)(f.root,i),ref:t},d,{children:h}))})}),ms=r(73315);let mu=["anchor","classes","className","width","style"],mc=(0,W.ZP)("div",{shouldForwardProp:W.FO})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({position:"fixed",top:0,left:0,bottom:0,zIndex:t.zIndex.drawer-1},"left"===r.anchor&&{right:"auto"},"right"===r.anchor&&{left:"auto",right:0},"top"===r.anchor&&{bottom:"auto",right:0},"bottom"===r.anchor&&{top:"auto",bottom:0,right:0})}),md=B.forwardRef(function(e,t){let{anchor:r,classes:n={},className:o,width:a,style:i}=e,l=(0,P.Z)(e,mu);return(0,eu.jsx)(mc,(0,R.Z)({className:(0,O.Z)("PrivateSwipeArea-root",n.root,n["anchor".concat((0,e6.Z)(r))],o),ref:t,style:(0,R.Z)({[aX(r)?"width":"height"]:a},i),ownerState:e},l))}),mp=["BackdropProps"],mf=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"],mm=null;function mh(e,t,r){return"right"===e?r.body.offsetWidth-t[0].pageX:t[0].pageX}function mg(e,t,r){return"bottom"===e?r.innerHeight-t[0].clientY:t[0].clientY}function mv(e,t){return e?t.clientWidth:t.clientHeight}function mb(e,t,r,n){return Math.min(Math.max(r?t-e:n+t-e,0),n)}let my="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent);var mD=B.forwardRef(function(e,t){let r=(0,iU.Z)({name:"MuiSwipeableDrawer",props:e}),n=(0,en.Z)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{anchor:a="left",disableBackdropTransition:i=!1,disableDiscovery:l=!1,disableSwipeToOpen:s=my,hideBackdrop:u,hysteresis:c=.52,allowSwipeInChildren:d=!1,minFlingVelocity:p=450,ModalProps:{BackdropProps:f}={},onClose:m,onOpen:h,open:g=!1,PaperProps:v={},SwipeAreaProps:b,swipeAreaWidth:y=20,transitionDuration:D=o,variant:x="temporary"}=r,C=(0,P.Z)(r.ModalProps,mp),Z=(0,P.Z)(r,mf),[w,S]=B.useState(!1),F=B.useRef({isSwiping:null}),k=B.useRef(),E=B.useRef(),M=B.useRef(),I=(0,eo.Z)(v.ref,M),j=B.useRef(!1),T=B.useRef();(0,is.Z)(()=>{T.current=null},[g]);let A=B.useCallback(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r=null,changeTransition:o=!0}=t,l=-1!==["right","bottom"].indexOf(aK(n,a))?1:-1,s=aX(a),c=s?"translate(".concat(l*e,"px, 0)"):"translate(0, ".concat(l*e,"px)"),d=M.current.style;d.webkitTransform=c,d.transform=c;let p="";if(r&&(p=n.transitions.create("all",er({easing:void 0,style:void 0,timeout:D},{mode:r}))),o&&(d.webkitTransition=p,d.transition=p),!i&&!u){let t=E.current.style;t.opacity=1-e/mv(s,M.current),o&&(t.webkitTransition=p,t.transition=p)}},[a,i,u,n,D]),N=(0,pY.Z)(e=>{let t;if(!j.current)return;if(mm=null,j.current=!1,H.flushSync(()=>{S(!1)}),!F.current.isSwiping){F.current.isSwiping=null;return}F.current.isSwiping=null;let r=aK(n,a),o=aX(a);t=o?mh(r,e.changedTouches,(0,uy.Z)(e.currentTarget)):mg(r,e.changedTouches,(0,aR.Z)(e.currentTarget));let i=o?F.current.startX:F.current.startY,l=mv(o,M.current),s=mb(t,i,g,l),u=s/l;if(Math.abs(F.current.velocity)>p&&(T.current=1e3*Math.abs((l-s)/F.current.velocity)),g){F.current.velocity>p||u>c?m():A(0,{mode:"exit"});return}F.current.velocity<-p||1-u>c?h():A(mv(o,M.current),{mode:"enter"})}),L=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!w){(e||!(l&&d))&&H.flushSync(()=>{S(!0)});let t=aX(a);!g&&M.current&&A(mv(t,M.current)+(l?15:-20),{changeTransition:!1}),F.current.velocity=0,F.current.lastTime=null,F.current.lastTranslate=null,F.current.paperHit=!1,j.current=!0}},O=(0,pY.Z)(e=>{if(!M.current||!j.current||null!==mm&&mm!==F.current)return;L(!0);let t=aK(n,a),r=aX(a),o=mh(t,e.touches,(0,uy.Z)(e.currentTarget)),i=mg(t,e.touches,(0,aR.Z)(e.currentTarget));if(g&&M.current.contains(e.target)&&null===mm){if(function(e){let{domTreeShapes:t,start:r,current:n,anchor:o}=e,a={x:"scrollLeft",y:"scrollTop"},i={x:"scrollWidth",y:"scrollHeight"},l={x:"clientWidth",y:"clientHeight"};return t.some(e=>{let t=n>=r;("top"===o||"left"===o)&&(t=!t);let s="left"===o||"right"===o?"x":"y",u=Math.round(e[a[s]]),c=u+e[l[s]]0})}({domTreeShapes:function(e,t){let r=[];for(;e&&e!==t.parentElement;){let n=(0,aR.Z)(t).getComputedStyle(e);"absolute"===n.getPropertyValue("position")||"hidden"===n.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&r.push(e),e=e.parentElement}return r}(e.target,M.current),start:r?F.current.startX:F.current.startY,current:r?o:i,anchor:a})){mm=!0;return}mm=F.current}if(null==F.current.isSwiping){let t=Math.abs(o-F.current.startX),n=Math.abs(i-F.current.startY),a=r?t>n&&t>3:n>t&&n>3;if(a&&e.cancelable&&e.preventDefault(),!0===a||(r?n>3:t>3)){if(F.current.isSwiping=a,!a){N(e);return}F.current.startX=o,F.current.startY=i,l||g||(r?F.current.startX-=20:F.current.startY-=20)}}if(!F.current.isSwiping)return;let s=mv(r,M.current),u=r?F.current.startX:F.current.startY;g&&!F.current.paperHit&&(u=Math.min(u,s));let c=mb(r?o:i,u,g,s);if(g){if(F.current.paperHit)0===c&&(F.current.startX=o,F.current.startY=i);else{if(!(r?o{if(e.defaultPrevented||e.defaultMuiPrevented||g&&(u||!E.current.contains(e.target))&&!M.current.contains(e.target))return;let t=aK(n,a),r=aX(a),o=mh(t,e.touches,(0,uy.Z)(e.currentTarget)),i=mg(t,e.touches,(0,aR.Z)(e.currentTarget));if(!g){var l;if(s||!(e.target===k.current||null!=(l=M.current)&&l.contains(e.target)&&("function"==typeof d?d(e,k.current,M.current):d)))return;if(r){if(o>y)return}else if(i>y)return}e.defaultMuiPrevented=!0,mm=null,F.current.startX=o,F.current.startY=i,L()});return B.useEffect(()=>{if("temporary"===x){let e=(0,uy.Z)(M.current);return e.addEventListener("touchstart",z),e.addEventListener("touchmove",O,{passive:!g}),e.addEventListener("touchend",N),()=>{e.removeEventListener("touchstart",z),e.removeEventListener("touchmove",O,{passive:!g}),e.removeEventListener("touchend",N)}}},[x,g,z,O,N]),B.useEffect(()=>()=>{mm===F.current&&(mm=null)},[]),B.useEffect(()=>{g||S(!1)},[g]),(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)(aJ,(0,R.Z)({open:"temporary"===x&&!!w||g,variant:x,ModalProps:(0,R.Z)({BackdropProps:(0,R.Z)({},f,{ref:E})},"temporary"===x&&{keepMounted:!0},C),hideBackdrop:u,PaperProps:(0,R.Z)({},v,{style:(0,R.Z)({pointerEvents:"temporary"!==x||g||d?"":"none"},v.style),ref:I}),anchor:a,transitionDuration:T.current||D,onClose:m,ref:t},Z)),!s&&"temporary"===x&&(0,eu.jsx)(cg,{children:(0,eu.jsx)(md,(0,R.Z)({anchor:a,ref:k,width:y},b))})]})}),mx=r(11901),mC=r(37649);function mZ(e){return(0,ei.ZP)("MuiTab",e)}var mw=(0,ea.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);let mS=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],mF=e=>{let{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:l,disabled:s}=e,u={root:["root",a&&i&&"labelIcon","textColor".concat((0,e6.Z)(r)),n&&"fullWidth",o&&"wrapped",l&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]};return(0,z.Z)(u,mZ,t)},mk=(0,W.ZP)(e$.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t["textColor".concat((0,e6.Z)(r.textColor))],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},r.label&&{flexDirection:"top"===r.iconPosition||"bottom"===r.iconPosition?"column":"row"},{lineHeight:1.25},r.icon&&r.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(mw.iconWrapper)]:(0,R.Z)({},"top"===r.iconPosition&&{marginBottom:6},"bottom"===r.iconPosition&&{marginTop:6},"start"===r.iconPosition&&{marginRight:t.spacing(1)},"end"===r.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===r.textColor&&{color:"inherit",opacity:.6,["&.".concat(mw.selected)]:{opacity:1},["&.".concat(mw.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===r.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(mw.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(mw.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===r.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(mw.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(mw.disabled)]:{color:(t.vars||t).palette.text.disabled}},r.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},r.wrapped&&{fontSize:t.typography.pxToRem(12)})});var mE=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTab"}),{className:n,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:i,icon:l,iconPosition:s="top",indicator:u,label:c,onChange:d,onClick:p,onFocus:f,selected:m,selectionFollowsFocus:h,textColor:g="inherit",value:v,wrapped:b=!1}=r,y=(0,P.Z)(r,mS),D=(0,R.Z)({},r,{disabled:o,disableFocusRipple:a,selected:m,icon:!!l,iconPosition:s,label:!!c,fullWidth:i,textColor:g,wrapped:b}),x=mF(D),C=l&&c&&B.isValidElement(l)?B.cloneElement(l,{className:(0,O.Z)(x.iconWrapper,l.props.className)}):l;return(0,eu.jsxs)(mk,(0,R.Z)({focusRipple:!a,className:(0,O.Z)(x.root,n),ref:t,role:"tab","aria-selected":m,disabled:o,onClick:e=>{!m&&d&&d(e,v),p&&p(e)},onFocus:e=>{h&&!m&&d&&d(e,v),f&&f(e)},ownerState:D,tabIndex:m?0:-1},y,{children:["top"===s||"start"===s?(0,eu.jsxs)(B.Fragment,{children:[C,c]}):(0,eu.jsxs)(B.Fragment,{children:[c,C]}),u]}))});let mM=B.createContext();function mI(e){return(0,ei.ZP)("MuiTable",e)}var mj=(0,ea.Z)("MuiTable",["root","stickyHeader"]);let mT=["className","component","padding","size","stickyHeader"],mA=e=>{let{classes:t,stickyHeader:r}=e;return(0,z.Z)({root:["root",r&&"stickyHeader"]},mI,t)},mN=(0,W.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,R.Z)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})}),mL="table";var mP=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTable"}),{className:n,component:o=mL,padding:a="normal",size:i="medium",stickyHeader:l=!1}=r,s=(0,P.Z)(r,mT),u=(0,R.Z)({},r,{component:o,padding:a,size:i,stickyHeader:l}),c=mA(u),d=B.useMemo(()=>({padding:a,size:i,stickyHeader:l}),[a,i,l]);return(0,eu.jsx)(mM.Provider,{value:d,children:(0,eu.jsx)(mN,(0,R.Z)({as:o,role:o===mL?null:"table",ref:t,className:(0,O.Z)(c.root,n),ownerState:u},s))})});let mR=B.createContext();function mB(e){return(0,ei.ZP)("MuiTableBody",e)}var mO=(0,ea.Z)("MuiTableBody",["root"]);let mz=["className","component"],mW=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},mB,t)},m_=(0,W.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),mU={variant:"body"},mH="tbody";var mG=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableBody"}),{className:n,component:o=mH}=r,a=(0,P.Z)(r,mz),i=(0,R.Z)({},r,{component:o}),l=mW(i);return(0,eu.jsx)(mR.Provider,{value:mU,children:(0,eu.jsx)(m_,(0,R.Z)({className:(0,O.Z)(l.root,n),as:o,ref:t,role:o===mH?null:"rowgroup",ownerState:i},a))})});function mY(e){return(0,ei.ZP)("MuiTableCell",e)}var mV=(0,ea.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);let m$=["align","className","component","padding","scope","size","sortDirection","variant"],mq=e=>{let{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,l={root:["root",r,i&&"stickyHeader","inherit"!==n&&"align".concat((0,e6.Z)(n)),"normal"!==o&&"padding".concat((0,e6.Z)(o)),"size".concat((0,e6.Z)(a))]};return(0,z.Z)(l,mY,t)},mQ=(0,W.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,e6.Z)(r.size))],"normal"!==r.padding&&t["padding".concat((0,e6.Z)(r.padding))],"inherit"!==r.align&&t["align".concat((0,e6.Z)(r.align))],r.stickyHeader&&t.stickyHeader]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,tg.$n)((0,tg.Fq)(t.palette.divider,1),.88):(0,tg._j)((0,tg.Fq)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(mV.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})});var mX=B.forwardRef(function(e,t){let r;let n=(0,_.Z)({props:e,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:l,scope:s,size:u,sortDirection:c,variant:d}=n,p=(0,P.Z)(n,m$),f=B.useContext(mM),m=B.useContext(mR),h=m&&"head"===m.variant,g=s;"td"===(r=i||(h?"th":"td"))?g=void 0:!g&&h&&(g="col");let v=d||m&&m.variant,b=(0,R.Z)({},n,{align:o,component:r,padding:l||(f&&f.padding?f.padding:"normal"),size:u||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:"head"===v&&f&&f.stickyHeader,variant:v}),y=mq(b),D=null;return c&&(D="asc"===c?"ascending":"descending"),(0,eu.jsx)(mQ,(0,R.Z)({as:r,ref:t,className:(0,O.Z)(y.root,a),"aria-sort":D,scope:g,ownerState:b},p))});function mK(e){return(0,ei.ZP)("MuiTableContainer",e)}var mJ=(0,ea.Z)("MuiTableContainer",["root"]);let m0=["className","component"],m1=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},mK,t)},m2=(0,W.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var m4=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,a=(0,P.Z)(r,m0),i=(0,R.Z)({},r,{component:o}),l=m1(i);return(0,eu.jsx)(m2,(0,R.Z)({ref:t,as:o,className:(0,O.Z)(l.root,n),ownerState:i},a))});function m3(e){return(0,ei.ZP)("MuiTableFooter",e)}var m5=(0,ea.Z)("MuiTableFooter",["root"]);let m8=["className","component"],m6=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},m3,t)},m9=(0,W.ZP)("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),m7={variant:"footer"},he="tfoot";var ht=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableFooter"}),{className:n,component:o=he}=r,a=(0,P.Z)(r,m8),i=(0,R.Z)({},r,{component:o}),l=m6(i);return(0,eu.jsx)(mR.Provider,{value:m7,children:(0,eu.jsx)(m9,(0,R.Z)({as:o,className:(0,O.Z)(l.root,n),ref:t,role:o===he?null:"rowgroup",ownerState:i},a))})});function hr(e){return(0,ei.ZP)("MuiTableHead",e)}var hn=(0,ea.Z)("MuiTableHead",["root"]);let ho=["className","component"],ha=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},hr,t)},hi=(0,W.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),hl={variant:"head"},hs="thead";var hu=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableHead"}),{className:n,component:o=hs}=r,a=(0,P.Z)(r,ho),i=(0,R.Z)({},r,{component:o}),l=ha(i);return(0,eu.jsx)(mR.Provider,{value:hl,children:(0,eu.jsx)(hi,(0,R.Z)({as:o,className:(0,O.Z)(l.root,n),ref:t,role:o===hs?null:"rowgroup",ownerState:i},a))})});function hc(e){return(0,ei.ZP)("MuiToolbar",e)}var hd=(0,ea.Z)("MuiToolbar",["root","gutters","regular","dense"]);let hp=["className","component","disableGutters","variant"],hf=e=>{let{classes:t,disableGutters:r,variant:n}=e;return(0,z.Z)({root:["root",!r&&"gutters",n]},hc,t)},hm=(0,W.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===r.variant&&{minHeight:48})},e=>{let{theme:t,ownerState:r}=e;return"regular"===r.variant&&t.mixins.toolbar});var hh=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiToolbar"}),{className:n,component:o="div",disableGutters:a=!1,variant:i="regular"}=r,l=(0,P.Z)(r,hp),s=(0,R.Z)({},r,{component:o,disableGutters:a,variant:i}),u=hf(s);return(0,eu.jsx)(hm,(0,R.Z)({as:o,className:(0,O.Z)(u.root,n),ref:t,ownerState:s},l))}),hg=(0,tV.Z)((0,eu.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hv=(0,tV.Z)((0,eu.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");let hb=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],hy=B.forwardRef(function(e,t){var r,n,o,a,i,l,s,u;let{backIconButtonProps:c,count:d,disabled:p=!1,getItemAriaLabel:f,nextIconButtonProps:m,onPageChange:h,page:g,rowsPerPage:v,showFirstButton:b,showLastButton:y,slots:D={},slotProps:x={}}=e,C=(0,P.Z)(e,hb),Z=(0,en.Z)(),w=null!=(r=D.firstButton)?r:tY.Z,S=null!=(n=D.lastButton)?n:tY.Z,F=null!=(o=D.nextButton)?o:tY.Z,k=null!=(a=D.previousButton)?a:tY.Z,E=null!=(i=D.firstButtonIcon)?i:cA,M=null!=(l=D.lastButtonIcon)?l:cN,I=null!=(s=D.nextButtonIcon)?s:hv,j=null!=(u=D.previousButtonIcon)?u:hg,T="rtl"===Z.direction?S:w,A="rtl"===Z.direction?F:k,N="rtl"===Z.direction?k:F,L="rtl"===Z.direction?w:S,B="rtl"===Z.direction?x.lastButton:x.firstButton,O="rtl"===Z.direction?x.nextButton:x.previousButton,z="rtl"===Z.direction?x.previousButton:x.nextButton,W="rtl"===Z.direction?x.firstButton:x.lastButton;return(0,eu.jsxs)("div",(0,R.Z)({ref:t},C,{children:[b&&(0,eu.jsx)(T,(0,R.Z)({onClick:e=>{h(e,0)},disabled:p||0===g,"aria-label":f("first",g),title:f("first",g)},B,{children:"rtl"===Z.direction?(0,eu.jsx)(M,(0,R.Z)({},x.lastButtonIcon)):(0,eu.jsx)(E,(0,R.Z)({},x.firstButtonIcon))})),(0,eu.jsx)(A,(0,R.Z)({onClick:e=>{h(e,g-1)},disabled:p||0===g,color:"inherit","aria-label":f("previous",g),title:f("previous",g)},null!=O?O:c,{children:"rtl"===Z.direction?(0,eu.jsx)(I,(0,R.Z)({},x.nextButtonIcon)):(0,eu.jsx)(j,(0,R.Z)({},x.previousButtonIcon))})),(0,eu.jsx)(N,(0,R.Z)({onClick:e=>{h(e,g+1)},disabled:p||-1!==d&&g>=Math.ceil(d/v)-1,color:"inherit","aria-label":f("next",g),title:f("next",g)},null!=z?z:m,{children:"rtl"===Z.direction?(0,eu.jsx)(j,(0,R.Z)({},x.previousButtonIcon)):(0,eu.jsx)(I,(0,R.Z)({},x.nextButtonIcon))})),y&&(0,eu.jsx)(L,(0,R.Z)({onClick:e=>{h(e,Math.max(0,Math.ceil(d/v)-1))},disabled:p||g>=Math.ceil(d/v)-1,"aria-label":f("last",g),title:f("last",g)},W,{children:"rtl"===Z.direction?(0,eu.jsx)(E,(0,R.Z)({},x.firstButtonIcon)):(0,eu.jsx)(M,(0,R.Z)({},x.lastButtonIcon))}))]}))});function hD(e){return(0,ei.ZP)("MuiTablePagination",e)}var hx=(0,ea.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);let hC=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],hZ=(0,W.ZP)(mX,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}}),hw=(0,W.ZP)(hh,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,R.Z)({["& .".concat(hx.actions)]:t.actions},t.toolbar)})(e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,["".concat(t.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(hx.actions)]:{flexShrink:0,marginLeft:20}}}),hS=(0,W.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),hF=(0,W.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(e=>{let{theme:t}=e;return(0,R.Z)({},t.typography.body2,{flexShrink:0})}),hk=(0,W.ZP)(dP,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,R.Z)({["& .".concat(hx.selectIcon)]:t.selectIcon,["& .".concat(hx.select)]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(hx.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),hE=(0,W.ZP)(u1,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),hM=(0,W.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(e=>{let{theme:t}=e;return(0,R.Z)({},t.typography.body2,{flexShrink:0})});function hI(e){let{from:t,to:r,count:n}=e;return"".concat(t,"–").concat(r," of ").concat(-1!==n?n:"more than ".concat(r))}function hj(e){return"Go to ".concat(e," page")}let hT=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},hD,t)};var hA=B.forwardRef(function(e,t){var r;let n;let o=(0,_.Z)({props:e,name:"MuiTablePagination"}),{ActionsComponent:a=hy,backIconButtonProps:i,className:l,colSpan:s,component:u=mX,count:c,disabled:d=!1,getItemAriaLabel:f=hj,labelDisplayedRows:m=hI,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:g,onPageChange:v,onRowsPerPageChange:b,page:y,rowsPerPage:D,rowsPerPageOptions:x=[10,25,50,100],SelectProps:C={},showFirstButton:Z=!1,showLastButton:w=!1,slotProps:S={},slots:F={}}=o,k=(0,P.Z)(o,hC),E=hT(o),M=null!=(r=null==S?void 0:S.select)?r:C,I=M.native?"option":hE;(u===mX||"td"===u)&&(n=s||1e3);let j=(0,c4.Z)(M.id),T=(0,c4.Z)(M.labelId);return(0,eu.jsx)(hZ,(0,R.Z)({colSpan:n,ref:t,as:u,ownerState:o,className:(0,O.Z)(E.root,l)},k,{children:(0,eu.jsxs)(hw,{className:E.toolbar,children:[(0,eu.jsx)(hS,{className:E.spacer}),x.length>1&&(0,eu.jsx)(hF,{className:E.selectLabel,id:T,children:h}),x.length>1&&(0,eu.jsx)(hk,(0,R.Z)({variant:"standard"},!M.variant&&{input:p||(p=(0,eu.jsx)(ib,{}))},{value:D,onChange:b,id:j,labelId:T},M,{classes:(0,R.Z)({},M.classes,{root:(0,O.Z)(E.input,E.selectRoot,(M.classes||{}).root),select:(0,O.Z)(E.select,(M.classes||{}).select),icon:(0,O.Z)(E.selectIcon,(M.classes||{}).icon)}),disabled:d,children:x.map(e=>(0,B.createElement)(I,(0,R.Z)({},!eS(I)&&{ownerState:o},{className:E.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e))})),(0,eu.jsx)(hM,{className:E.displayedRows,children:m({from:0===c?0:y*D+1,to:-1===c?(y+1)*D:-1===D?c:Math.min(c,(y+1)*D),count:-1===c?-1:c,page:y})}),(0,eu.jsx)(a,{className:E.actions,backIconButtonProps:i,count:c,nextIconButtonProps:g,onPageChange:v,page:y,rowsPerPage:D,showFirstButton:Z,showLastButton:w,slotProps:S.actions,slots:F.actions,getItemAriaLabel:f,disabled:d})]})}))});function hN(e){return(0,ei.ZP)("MuiTableRow",e)}var hL=(0,ea.Z)("MuiTableRow",["root","selected","hover","head","footer"]);let hP=["className","component","hover","selected"],hR=e=>{let{classes:t,selected:r,hover:n,head:o,footer:a}=e;return(0,z.Z)({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},hN,t)},hB=(0,W.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(hL.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(hL.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}});var hO=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableRow"}),{className:n,component:o="tr",hover:a=!1,selected:i=!1}=r,l=(0,P.Z)(r,hP),s=B.useContext(mR),u=(0,R.Z)({},r,{component:o,hover:a,selected:i,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=hR(u);return(0,eu.jsx)(hB,(0,R.Z)({as:o,ref:t,className:(0,O.Z)(c.root,n),role:"tr"===o?null:"row",ownerState:u},l))}),hz=(0,tV.Z)((0,eu.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function hW(e){return(0,ei.ZP)("MuiTableSortLabel",e)}var h_=(0,ea.Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]);let hU=["active","children","className","direction","hideSortIcon","IconComponent"],hH=e=>{let{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon","iconDirection".concat((0,e6.Z)(r))]};return(0,z.Z)(o,hW,t)},hG=(0,W.ZP)(e$.Z,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.active&&t.active]}})(e=>{let{theme:t}=e;return{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,["& .".concat(h_.icon)]:{opacity:.5}},["&.".concat(h_.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(h_.icon)]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}}),hY=(0,W.ZP)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,t["iconDirection".concat((0,e6.Z)(r.direction))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===r.direction&&{transform:"rotate(0deg)"},"asc"===r.direction&&{transform:"rotate(180deg)"})});var hV=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableSortLabel"}),{active:n=!1,children:o,className:a,direction:i="asc",hideSortIcon:l=!1,IconComponent:s=hz}=r,u=(0,P.Z)(r,hU),c=(0,R.Z)({},r,{active:n,direction:i,hideSortIcon:l,IconComponent:s}),d=hH(c);return(0,eu.jsxs)(hG,(0,R.Z)({className:(0,O.Z)(d.root,a),component:"span",disableRipple:!0,ownerState:c,ref:t},u,{children:[o,l&&!n?null:(0,eu.jsx)(hY,{as:s,className:(0,O.Z)(d.icon),ownerState:c})]}))});function h$(){if(o)return o;let e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),o="reverse",e.scrollLeft>0?o="default":(e.scrollLeft=1,0===e.scrollLeft&&(o="negative")),document.body.removeChild(e),o}function hq(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}let hQ=["onChange"],hX={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function hK(e){return(0,ei.ZP)("MuiTabScrollButton",e)}var hJ=(0,ea.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);let h0=["className","slots","slotProps","direction","orientation","disabled"],h1=e=>{let{classes:t,orientation:r,disabled:n}=e;return(0,z.Z)({root:["root",r,n&&"disabled"]},hK,t)},h2=(0,W.ZP)(e$.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({width:40,flexShrink:0,opacity:.8,["&.".concat(hJ.disabled)]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})});var h4=B.forwardRef(function(e,t){var r,n;let o=(0,_.Z)({props:e,name:"MuiTabScrollButton"}),{className:a,slots:i={},slotProps:l={},direction:s}=o,u=(0,P.Z)(o,h0),c="rtl"===(0,en.Z)().direction,d=(0,R.Z)({isRtl:c},o),p=h1(d),f=null!=(r=i.StartScrollButtonIcon)?r:hg,m=null!=(n=i.EndScrollButtonIcon)?n:hv,h=tF({elementType:f,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),g=tF({elementType:m,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,eu.jsx)(h2,(0,R.Z)({component:"div",className:(0,O.Z)(p.root,a),ref:t,role:null,ownerState:d,tabIndex:null},u,{children:"left"===s?(0,eu.jsx)(f,(0,R.Z)({},h)):(0,eu.jsx)(m,(0,R.Z)({},g))}))});function h3(e){return(0,ei.ZP)("MuiTabs",e)}var h5=(0,ea.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);let h8=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],h6=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,h9=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,h7=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}let t=o.disabled||"true"===o.getAttribute("aria-disabled");if(!o.hasAttribute("tabindex")||t)o=r(e,o);else{o.focus();return}}},ge=e=>{let{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:s}=e;return(0,z.Z)({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},h3,s)},gt=(0,W.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(h5.scrollButtons)]:t.scrollButtons},{["& .".concat(h5.scrollButtons)]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{["& .".concat(h5.scrollButtons)]:{[r.breakpoints.down("sm")]:{display:"none"}}})}),gr=(0,W.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})}),gn=(0,W.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})}),go=(0,W.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:r.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})}),ga=(0,W.ZP)(function(e){let{onChange:t}=e,r=(0,P.Z)(e,hQ),n=B.useRef(),o=B.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return(0,is.Z)(()=>{let e=(0,aP.Z)(()=>{let e=n.current;a(),e!==n.current&&t(n.current)}),r=(0,aR.Z)(o.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}},[t]),B.useEffect(()=>{a(),t(n.current)},[t]),(0,eu.jsx)("div",(0,R.Z)({style:hX,ref:o},r))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),gi={};var gl=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTabs"}),n=(0,en.Z)(),o="rtl"===n.direction,{"aria-label":a,"aria-labelledby":i,action:l,centered:s=!1,children:u,className:c,component:d="div",allowScrollButtonsMobile:p=!1,indicatorColor:f="primary",onChange:m,orientation:h="horizontal",ScrollButtonComponent:g=h4,scrollButtons:v="auto",selectionFollowsFocus:b,slots:y={},slotProps:D={},TabIndicatorProps:x={},TabScrollButtonProps:C={},textColor:Z="primary",value:w,variant:S="standard",visibleScrollbar:F=!1}=r,k=(0,P.Z)(r,h8),E="scrollable"===S,M="vertical"===h,I=M?"scrollTop":"scrollLeft",j=M?"top":"left",T=M?"bottom":"right",A=M?"clientHeight":"clientWidth",N=M?"height":"width",L=(0,R.Z)({},r,{component:d,allowScrollButtonsMobile:p,indicatorColor:f,orientation:h,vertical:M,scrollButtons:v,textColor:Z,variant:S,visibleScrollbar:F,fixed:!E,hideScrollbar:E&&!F,scrollableX:E&&!M,scrollableY:E&&M,centered:s&&!E,scrollButtonsHideMobile:!p}),z=ge(L),W=tF({elementType:y.StartScrollButtonIcon,externalSlotProps:D.startScrollButtonIcon,ownerState:L}),U=tF({elementType:y.EndScrollButtonIcon,externalSlotProps:D.endScrollButtonIcon,ownerState:L}),[H,G]=B.useState(!1),[Y,V]=B.useState(gi),[$,q]=B.useState(!1),[Q,X]=B.useState(!1),[K,J]=B.useState(!1),[ee,et]=B.useState({overflow:"hidden",scrollbarWidth:0}),er=new Map,eo=B.useRef(null),ea=B.useRef(null),ei=()=>{let e,t;let r=eo.current;if(r){let t=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollLeftNormalized:function(e,t){let r=e.scrollLeft;if("rtl"!==t)return r;switch(h$()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}(r,n.direction),scrollWidth:r.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(r&&!1!==w){let e=ea.current.children;if(e.length>0){let r=e[er.get(w)];t=r?r.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},el=(0,pY.Z)(()=>{let e;let{tabsMeta:t,tabMeta:r}=ei(),n=0;if(M)e="top",r&&t&&(n=r.top-t.top+t.scrollTop);else if(e=o?"right":"left",r&&t){let a=o?t.scrollLeftNormalized+t.clientWidth-t.scrollWidth:t.scrollLeft;n=(o?-1:1)*(r[e]-t[e]+a)}let a={[e]:n,[N]:r?r[N]:0};if(isNaN(Y[e])||isNaN(Y[N]))V(a);else{let t=Math.abs(Y[e]-a[e]),r=Math.abs(Y[N]-a[N]);(t>=1||r>=1)&&V(a)}}),es=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{},{ease:a=hq,duration:i=300}=n,l=null,s=t[e],u=!1,c=n=>{if(u){o(Error("Animation cancelled"));return}null===l&&(l=n);let d=Math.min(1,(n-l)/i);if(t[e]=a(d)*(r-s)+s,d>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(c)};return s===r?o(Error("Element already at target position")):requestAnimationFrame(c),()=>{u=!0}}(I,eo.current,e,{duration:n.transitions.duration.standard}):eo.current[I]=e},ec=e=>{let t=eo.current[I];M?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===h$()?-1:1),es(t)},ed=()=>{let e=eo.current[A],t=0,r=Array.from(ea.current.children);for(let n=0;ne){0===n&&(t=e);break}t+=o[A]}return t},ep=()=>{ec(-1*ed())},ef=()=>{ec(ed())},em=B.useCallback(e=>{et({overflow:null,scrollbarWidth:e})},[]),eh=(0,pY.Z)(e=>{let{tabsMeta:t,tabMeta:r}=ei();r&&t&&(r[j]t[T]&&es(t[I]+(r[T]-t[T]),{animation:e}))}),eg=(0,pY.Z)(()=>{E&&!1!==v&&J(!K)});B.useEffect(()=>{let e,t;let r=(0,aP.Z)(()=>{eo.current&&el()}),n=(0,aR.Z)(eo.current);return n.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(ea.current.children).forEach(t=>{e.observe(t)})),"undefined"!=typeof MutationObserver&&(t=new MutationObserver(t=>{t.forEach(t=>{t.removedNodes.forEach(t=>{var r;null==(r=e)||r.unobserve(t)}),t.addedNodes.forEach(t=>{var r;null==(r=e)||r.observe(t)})}),r(),eg()})).observe(ea.current,{childList:!0}),()=>{var o,a;r.clear(),n.removeEventListener("resize",r),null==(o=t)||o.disconnect(),null==(a=e)||a.disconnect()}},[el,eg]),B.useEffect(()=>{let e=Array.from(ea.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&E&&!1!==v){let r=e[0],n=e[t-1],o={root:eo.current,threshold:.99},a=new IntersectionObserver(e=>{q(!e[0].isIntersecting)},o);a.observe(r);let i=new IntersectionObserver(e=>{X(!e[0].isIntersecting)},o);return i.observe(n),()=>{a.disconnect(),i.disconnect()}}},[E,v,K,null==u?void 0:u.length]),B.useEffect(()=>{G(!0)},[]),B.useEffect(()=>{el()}),B.useEffect(()=>{eh(gi!==Y)},[eh,Y]),B.useImperativeHandle(l,()=>({updateIndicator:el,updateScrollButtons:eg}),[el,eg]);let ev=(0,eu.jsx)(go,(0,R.Z)({},x,{className:(0,O.Z)(z.indicator,x.className),ownerState:L,style:(0,R.Z)({},Y,x.style)})),eb=0,ey=B.Children.map(u,e=>{if(!B.isValidElement(e))return null;let t=void 0===e.props.value?eb:e.props.value;er.set(t,eb);let r=t===w;return eb+=1,B.cloneElement(e,(0,R.Z)({fullWidth:"fullWidth"===S,indicator:r&&!H&&ev,selected:r,selectionFollowsFocus:b,onChange:m,textColor:Z,value:t},1!==eb||!1!==w||e.props.tabIndex?{}:{tabIndex:0}))}),eD=(()=>{let e={};e.scrollbarSizeListener=E?(0,eu.jsx)(ga,{onChange:em,className:(0,O.Z)(z.scrollableX,z.hideScrollbar)}):null;let t=E&&("auto"===v&&($||Q)||!0===v);return e.scrollButtonStart=t?(0,eu.jsx)(g,(0,R.Z)({slots:{StartScrollButtonIcon:y.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:h,direction:o?"right":"left",onClick:ep,disabled:!$},C,{className:(0,O.Z)(z.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?(0,eu.jsx)(g,(0,R.Z)({slots:{EndScrollButtonIcon:y.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:U},orientation:h,direction:o?"left":"right",onClick:ef,disabled:!Q},C,{className:(0,O.Z)(z.scrollButtons,C.className)})):null,e})();return(0,eu.jsxs)(gt,(0,R.Z)({className:(0,O.Z)(z.root,c),ownerState:L,ref:t,as:d},k,{children:[eD.scrollButtonStart,eD.scrollbarSizeListener,(0,eu.jsxs)(gr,{className:z.scroller,ownerState:L,style:{overflow:ee.overflow,[M?"margin".concat(o?"Left":"Right"):"marginBottom"]:F?void 0:-ee.scrollbarWidth},ref:eo,children:[(0,eu.jsx)(gn,{"aria-label":a,"aria-labelledby":i,"aria-orientation":"vertical"===h?"vertical":null,className:z.flexContainer,ownerState:L,onKeyDown:e=>{let t=ea.current,r=(0,uy.Z)(t).activeElement;if("tab"!==r.getAttribute("role"))return;let n="horizontal"===h?"ArrowLeft":"ArrowUp",a="horizontal"===h?"ArrowRight":"ArrowDown";switch("horizontal"===h&&o&&(n="ArrowRight",a="ArrowLeft"),e.key){case n:e.preventDefault(),h7(t,r,h9);break;case a:e.preventDefault(),h7(t,r,h6);break;case"Home":e.preventDefault(),h7(t,null,h6);break;case"End":e.preventDefault(),h7(t,null,h9)}},ref:ea,role:"tablist",children:ey}),H&&ev]}),eD.scrollButtonEnd]}))});function gs(e){return(0,ei.ZP)("MuiTextField",e)}var gu=(0,ea.Z)("MuiTextField",["root"]);let gc=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],gd={standard:lX,filled:iw,outlined:cF},gp=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},gs,t)},gf=(0,W.ZP)(iS.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var gm=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:a,className:i,color:l="primary",defaultValue:s,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:m,InputLabelProps:h,inputProps:g,InputProps:v,inputRef:b,label:y,maxRows:D,minRows:x,multiline:C=!1,name:Z,onBlur:w,onChange:S,onFocus:F,placeholder:k,required:E=!1,rows:M,select:I=!1,SelectProps:j,type:T,value:A,variant:N="outlined"}=r,L=(0,P.Z)(r,gc),B=(0,R.Z)({},r,{autoFocus:o,color:l,disabled:u,error:c,fullWidth:p,multiline:C,required:E,select:I,variant:N}),z=gp(B),W={};"outlined"===N&&(h&&void 0!==h.shrink&&(W.notched=h.shrink),W.label=y),I&&(j&&j.native||(W.id=void 0),W["aria-describedby"]=void 0);let U=(0,ta.Z)(m),H=f&&U?"".concat(U,"-helper-text"):void 0,G=y&&U?"".concat(U,"-label"):void 0,Y=gd[N],V=(0,eu.jsx)(Y,(0,R.Z)({"aria-describedby":H,autoComplete:n,autoFocus:o,defaultValue:s,fullWidth:p,multiline:C,name:Z,rows:M,maxRows:D,minRows:x,type:T,value:A,id:U,inputRef:b,onBlur:w,onChange:S,onFocus:F,placeholder:k,inputProps:g},W,v));return(0,eu.jsxs)(gf,(0,R.Z)({className:(0,O.Z)(z.root,i),disabled:u,error:c,fullWidth:p,ref:t,required:E,color:l,variant:N,ownerState:B},L,{children:[null!=y&&""!==y&&(0,eu.jsx)(l7,(0,R.Z)({htmlFor:U,id:G},h,{children:y})),I?(0,eu.jsx)(dP,(0,R.Z)({"aria-describedby":H,id:U,labelId:G,value:A,input:V},j,{children:a})):V,f&&(0,eu.jsx)(iP,(0,R.Z)({id:H},d,{children:f}))]}))}),gh=r(35971);function gg(e){return(0,ei.ZP)("MuiToggleButton",e)}var gv=(0,ea.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]);let gb=B.createContext({}),gy=B.createContext(void 0),gD=["value"],gx=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],gC=e=>{let{classes:t,fullWidth:r,selected:n,disabled:o,size:a,color:i}=e,l={root:["root",n&&"selected",o&&"disabled",r&&"fullWidth","size".concat((0,e6.Z)(a)),i]};return(0,z.Z)(l,gg,t)},gZ=(0,W.ZP)(e$.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["size".concat((0,e6.Z)(r.size))]]}})(e=>{let t,{theme:r,ownerState:n}=e,o="standard"===n.color?r.palette.text.primary:r.palette[n.color].main;return r.vars&&(o="standard"===n.color?r.vars.palette.text.primary:r.vars.palette[n.color].main,t="standard"===n.color?r.vars.palette.text.primaryChannel:r.vars.palette[n.color].mainChannel),(0,R.Z)({},r.typography.button,{borderRadius:(r.vars||r).shape.borderRadius,padding:11,border:"1px solid ".concat((r.vars||r).palette.divider),color:(r.vars||r).palette.action.active},n.fullWidth&&{width:"100%"},{["&.".concat(gv.disabled)]:{color:(r.vars||r).palette.action.disabled,border:"1px solid ".concat((r.vars||r).palette.action.disabledBackground)},"&:hover":{textDecoration:"none",backgroundColor:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,tg.Fq)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(gv.selected)]:{color:o,backgroundColor:r.vars?"rgba(".concat(t," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(o,r.palette.action.selectedOpacity),"&:hover":{backgroundColor:r.vars?"rgba(".concat(t," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(o,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?"rgba(".concat(t," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(o,r.palette.action.selectedOpacity)}}}},"small"===n.size&&{padding:7,fontSize:r.typography.pxToRem(13)},"large"===n.size&&{padding:15,fontSize:r.typography.pxToRem(15)})});var gw=B.forwardRef(function(e,t){var r;let n=B.useContext(gb),{value:o}=n,a=(0,P.Z)(n,gD),i=B.useContext(gy),l=(0,gh.Z)((0,R.Z)({},a,{selected:(r=e.value,void 0!==o&&void 0!==r&&(Array.isArray(o)?o.indexOf(r)>=0:r===o))}),e),s=(0,_.Z)({props:l,name:"MuiToggleButton"}),{children:u,className:c,color:d="standard",disabled:p=!1,disableFocusRipple:f=!1,fullWidth:m=!1,onChange:h,onClick:g,selected:v,size:b="medium",value:y}=s,D=(0,P.Z)(s,gx),x=(0,R.Z)({},s,{color:d,disabled:p,disableFocusRipple:f,fullWidth:m,size:b}),C=gC(x);return(0,eu.jsx)(gZ,(0,R.Z)({className:(0,O.Z)(a.className,C.root,c,i||""),disabled:p,focusRipple:!f,ref:t,onClick:e=>{g&&(g(e,y),e.defaultPrevented)||!h||h(e,y)},onChange:h,value:y,ownerState:x,"aria-pressed":v},D,{children:u}))});function gS(e){return(0,ei.ZP)("MuiToggleButtonGroup",e)}var gF=(0,ea.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);let gk=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],gE=e=>{let{classes:t,orientation:r,fullWidth:n,disabled:o}=e,a={root:["root","vertical"===r&&"vertical",n&&"fullWidth"],grouped:["grouped","grouped".concat((0,e6.Z)(r)),o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,z.Z)(a,gS,t)},gM=(0,W.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(gF.grouped)]:t.grouped},{["& .".concat(gF.grouped)]:t["grouped".concat((0,e6.Z)(r.orientation))]},{["& .".concat(gF.firstButton)]:t.firstButton},{["& .".concat(gF.lastButton)]:t.lastButton},{["& .".concat(gF.middleButton)]:t.middleButton},t.root,"vertical"===r.orientation&&t.vertical,r.fullWidth&&t.fullWidth]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},"vertical"===t.orientation&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{["& .".concat(gF.grouped)]:(0,R.Z)({},"horizontal"===t.orientation?{["&.".concat(gF.selected," + .").concat(gF.grouped,".").concat(gF.selected)]:{borderLeft:0,marginLeft:0}}:{["&.".concat(gF.selected," + .").concat(gF.grouped,".").concat(gF.selected)]:{borderTop:0,marginTop:0}})},"horizontal"===t.orientation?{["& .".concat(gF.firstButton,",& .").concat(gF.middleButton)]:{borderTopRightRadius:0,borderBottomRightRadius:0},["& .".concat(gF.lastButton,",& .").concat(gF.middleButton)]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{["& .".concat(gF.firstButton,",& .").concat(gF.middleButton)]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},["& .".concat(gF.lastButton,",& .").concat(gF.middleButton)]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},"horizontal"===t.orientation?{["& .".concat(gF.lastButton,".").concat(gv.disabled,",& .").concat(gF.middleButton,".").concat(gv.disabled)]:{borderLeft:"1px solid transparent"}}:{["& .".concat(gF.lastButton,".").concat(gv.disabled,",& .").concat(gF.middleButton,".").concat(gv.disabled)]:{borderTop:"1px solid transparent"}})});var gI=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiToggleButtonGroup"}),{children:n,className:o,color:a="standard",disabled:i=!1,exclusive:l=!1,fullWidth:s=!1,onChange:u,orientation:c="horizontal",size:d="medium",value:p}=r,f=(0,P.Z)(r,gk),m=(0,R.Z)({},r,{disabled:i,fullWidth:s,orientation:c,size:d}),h=gE(m),g=B.useCallback((e,t)=>{let r;if(!u)return;let n=p&&p.indexOf(t);p&&n>=0?(r=p.slice()).splice(n,1):r=p?p.concat(t):[t],u(e,r)},[u,p]),v=B.useCallback((e,t)=>{u&&u(e,p===t?null:t)},[u,p]),b=B.useMemo(()=>({className:h.grouped,onChange:l?v:g,value:p,size:d,fullWidth:s,color:a,disabled:i}),[h.grouped,l,v,g,p,d,s,a,i]),y=ng(n),D=y.length,x=e=>{let t=0===e,r=e===D-1;return t&&r?"":t?h.firstButton:r?h.lastButton:h.middleButton};return(0,eu.jsx)(gM,(0,R.Z)({role:"group",className:(0,O.Z)(h.root,o),ref:t,ownerState:m},f,{children:(0,eu.jsx)(gb.Provider,{value:b,children:y.map((e,t)=>(0,eu.jsx)(gy.Provider,{value:x(t),children:e},t))})}))}),gj=r(40655),gT=r(63885);let gA=["getTrigger","target"];function gN(e,t){let{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=void 0!==o.pageYOffset?o.pageYOffset:o.scrollTop),(!!r||void 0===a||!(e.currentn}let gL=window;function gP(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{getTrigger:t=gN,target:r=gL}=e,n=(0,P.Z)(e,gA),o=B.useRef(),[a,i]=B.useState(()=>t(o,n));return B.useEffect(()=>{let e=()=>{i(t(o,(0,R.Z)({target:r},n)))};return e(),r.addEventListener("scroll",e,{passive:!0}),()=>{r.removeEventListener("scroll",e,{passive:!0})}},[r,t,JSON.stringify(n)]),a}},32626:function(e,t,r){"use strict";function n(e){return String(parseFloat(e)).length===String(e).length}function o(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function a(e){return parseFloat(e)}function i(e){return(t,r)=>{let n=o(t);if(n===r)return t;let i=a(t);"px"!==n&&("em"===n?i=a(t)*a(e):"rem"===n&&(i=a(t)*a(e)));let l=i;if("px"!==r){if("em"===r)l=i/a(e);else{if("rem"!==r)return t;l=i/a(e)}}return parseFloat(l.toFixed(5))+r}}function l(e){let{size:t,grid:r}=e,n=t-t%r,o=n+r;return t-n{let n=r+s*e;null!==i&&(n=i(n)),l["@media (min-width:".concat(e,"px)")]={[t]:"".concat(Math.round(1e4*n)/1e4).concat(o)}}),l}r.d(t,{LV:function(){return l},Wy:function(){return o},YL:function(){return a},dA:function(){return n},vY:function(){return s},vs:function(){return i},ze:function(){return u}})},54326:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{Experimental_CssVarsProvider:function(){return ex},StyledEngineProvider:function(){return z},THEME_ID:function(){return a.Z},ThemeProvider:function(){return B},adaptV4Theme:function(){return p},alpha:function(){return f.Fq},createMuiTheme:function(){return h.A},createStyles:function(){return y},createTheme:function(){return h.Z},css:function(){return m.iv},darken:function(){return f._j},decomposeColor:function(){return f.tB},duration:function(){return C.x9},easing:function(){return C.Ui},emphasize:function(){return f._4},experimentalStyled:function(){return S.ZP},experimental_extendTheme:function(){return ev},experimental_sx:function(){return eS},getContrastRatio:function(){return f.mi},getInitColorSchemeScript:function(){return eZ},getLuminance:function(){return f.H3},getOverlayAlpha:function(){return es.Z},hexToRgb:function(){return f.oo},hslToRgb:function(){return f.ve},keyframes:function(){return m.F4},lighten:function(){return f.$n},makeStyles:function(){return W},private_createMixins:function(){return ew.Z},private_createTypography:function(){return eb.Z},private_excludeVariablesFromRoot:function(){return ey},recomposeColor:function(){return f.wy},responsiveFontSizes:function(){return x},rgbToHex:function(){return f.vq},shouldSkipGeneratingVar:function(){return el},styled:function(){return S.ZP},unstable_createMuiStrictModeTheme:function(){return v},unstable_getUnit:function(){return D.Wy},unstable_toUnitless:function(){return D.YL},useColorScheme:function(){return eC},useTheme:function(){return Z.Z},useThemeProps:function(){return w.Z},withStyles:function(){return _},withTheme:function(){return U}});var o=r(56535),a=r(95038),i=r(87462),l=r(63366),s=r(98373),u=r(41512);let c=["defaultProps","mixins","overrides","palette","props","styleOverrides"],d=["type","mode"];function p(e){let{defaultProps:t={},mixins:r={},overrides:n={},palette:o={},props:a={},styleOverrides:p={}}=e,f=(0,l.Z)(e,c),m=(0,i.Z)({},f,{components:{}});Object.keys(t).forEach(e=>{let r=m.components[e]||{};r.defaultProps=t[e],m.components[e]=r}),Object.keys(a).forEach(e=>{let t=m.components[e]||{};t.defaultProps=a[e],m.components[e]=t}),Object.keys(p).forEach(e=>{let t=m.components[e]||{};t.styleOverrides=p[e],m.components[e]=t}),Object.keys(n).forEach(e=>{let t=m.components[e]||{};t.styleOverrides=n[e],m.components[e]=t}),m.spacing=(0,s.Z)(e.spacing);let h=(0,u.Z)(e.breakpoints||{}),g=m.spacing;m.mixins=(0,i.Z)({gutters:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({paddingLeft:g(2),paddingRight:g(2)},e,{[h.up("sm")]:(0,i.Z)({paddingLeft:g(3),paddingRight:g(3)},e[h.up("sm")])})}},r);let{type:v,mode:b}=o,y=(0,l.Z)(o,d),D=b||v||"light";return m.palette=(0,i.Z)({text:{hint:"dark"===D?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:D,type:D},y),m}var f=r(41796),m=r(70917),h=r(96047),g=r(4953);function v(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:{},{breakpoints:r=["sm","md","lg"],disableAlign:n=!1,factor:a=2,variants:l=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,s=(0,i.Z)({},e);s.typography=(0,i.Z)({},s.typography);let u=s.typography,c=(0,D.vs)(u.htmlFontSize),d=r.map(e=>s.breakpoints.values[e]);return l.forEach(e=>{let t=u[e],r=parseFloat(c(t.fontSize,"rem"));if(r<=1)return;let{lineHeight:l}=t;if(!(0,D.dA)(l)&&!n)throw Error((0,o.Z)(6));(0,D.dA)(l)||(l=parseFloat(c(l,"rem"))/parseFloat(r));let s=null;n||(s=e=>(0,D.LV)({size:e,grid:(0,D.vY)({pixels:4,lineHeight:l,htmlFontSize:u.htmlFontSize})})),u[e]=(0,i.Z)({},t,(0,D.ze)({cssProperty:"fontSize",min:1+(r-1)/a,max:r,unit:"rem",breakpoints:d,transform:s}))}),s}var C=r(5713),Z=r(49360),w=r(59145),S=r(89262),F=r(67294);let k=F.createContext(null);function E(){return F.useContext(k)}var M="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",I=r(85893),j=function(e){let{children:t,theme:r}=e,n=E(),o=F.useMemo(()=>{let e=null===n?r:"function"==typeof r?r(n):(0,i.Z)({},n,r);return null!=e&&(e[M]=null!==n),e},[r,n]);return(0,I.jsx)(k.Provider,{value:o,children:t})},T=r(52443),A=r(34168);let N={};function L(e,t,r,n=!1){return F.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof r){let a=r(o),l=e?(0,i.Z)({},t,{[e]:a}):a;return n?()=>l:l}return e?(0,i.Z)({},t,{[e]:r}):(0,i.Z)({},t,r)},[e,t,r,n])}var P=function(e){let{children:t,theme:r,themeId:n}=e,o=(0,A.Z)(N),a=E()||N,i=L(n,o,r),l=L(n,a,r,!0);return(0,I.jsx)(j,{theme:l,children:(0,I.jsx)(T.T.Provider,{value:i,children:t})})};let R=["theme"];function B(e){let{theme:t}=e,r=(0,l.Z)(e,R),n=t[a.Z];return(0,I.jsx)(P,(0,i.Z)({},r,{themeId:n?a.Z:void 0,theme:n||t}))}var O=r(48711);function z(e){let{injectFirst:t,children:r}=e;return t&&n?(0,I.jsx)(T.C,{value:n,children:r}):r}function W(){throw Error((0,o.Z)(14))}function _(){throw Error((0,o.Z)(15))}function U(){throw Error((0,o.Z)(16))}"object"==typeof document&&(n=(0,O.Z)({key:"css",prepend:!0}));var H=r(41234);let G="mode",Y="color-scheme",V="data-color-scheme";function $(e){if("undefined"!=typeof window&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function q(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function Q(e,t){let r;if("undefined"!=typeof window){try{(r=localStorage.getItem(e)||void 0)||localStorage.setItem(e,t)}catch(e){}return r||t}}let X=["colorSchemes","components","generateCssVars","cssVarPrefix"];var K=r(86523);let J=(e,t,r,n=[])=>{let o=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},ee=(e,t,r)=>{!function e(n,o=[],a=[]){Object.entries(n).forEach(([n,i])=>{r&&(!r||r([...o,n]))||null==i||("object"==typeof i&&Object.keys(i).length>0?e(i,[...o,n],Array.isArray(i)?[...a,n]:a):t([...o,n],i,a))})}(e)},et=(e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function er(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},i={};return ee(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`;Object.assign(o,{[n]:et(e,t)}),J(a,e,`var(${n})`,l),J(i,e,`var(${n}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:a,varsWithDefaults:i}}let en=["colorSchemes","components"],eo=["light"];var ea=function(e,t){let{colorSchemes:r={}}=e,{vars:n,css:o,varsWithDefaults:a}=er((0,l.Z)(e,en),t),s=a,u={},{light:c}=r;if(Object.entries((0,l.Z)(r,eo)||{}).forEach(([e,r])=>{let{vars:n,css:o,varsWithDefaults:a}=er(r,t);s=(0,g.Z)(s,a),u[e]={css:o,vars:n}}),c){let{css:e,vars:r,varsWithDefaults:n}=er(c,t);s=(0,g.Z)(s,n),u.light={css:e,vars:r}}return{vars:s,generateCssVars:e=>e?{css:(0,i.Z)({},u[e].css),vars:u[e].vars}:{css:(0,i.Z)({},o),vars:n}}},ei=r(44920);function el(e){var t;return!!e[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/(mode|contrastThreshold|tonalOffset)/))}var es=r(45205);let eu=["colorSchemes","cssVarPrefix","shouldSkipGeneratingVar"],ec=["palette"],ed=[...Array(25)].map((e,t)=>{if(0===t)return;let r=(0,es.Z)(t);return"linear-gradient(rgba(255 255 255 / ".concat(r,"), rgba(255 255 255 / ").concat(r,"))")});function ep(e,t,r){!e[t]&&r&&(e[t]=r)}function ef(e){return e&&e.startsWith("hsl")?(0,f.ve)(e):e}function em(e,t){"".concat(t,"Channel") in e||(e["".concat(t,"Channel")]=(0,f.LR)(ef(e[t]),"MUI: Can't create `palette.".concat(t,"Channel` because `palette.").concat(t,"` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().")+"\n"+"To suppress this warning, you need to explicitly provide the `palette.".concat(t,'Channel` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.')))}let eh=e=>{try{return e()}catch(e){}},eg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mui";return function(e=""){return(t,...r)=>`var(--${e?`${e}-`:""}${t}${function t(...r){if(!r.length)return"";let n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}(...r)})`}(e)};function ev(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,r,n,o,a,s,u=arguments.length,c=Array(u>1?u-1:0),d=1;d{let t=w.colorSchemes[e].palette,r=e=>{let r=e.split("-"),n=r[1],o=r[2];return y(e,t[n][o])};if("light"===e?(ep(t.common,"background","#fff"),ep(t.common,"onBackground","#000")):(ep(t.common,"background","#000"),ep(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===e){ep(t.Alert,"errorColor",(0,f.q8)(t.error.light,.6)),ep(t.Alert,"infoColor",(0,f.q8)(t.info.light,.6)),ep(t.Alert,"successColor",(0,f.q8)(t.success.light,.6)),ep(t.Alert,"warningColor",(0,f.q8)(t.warning.light,.6)),ep(t.Alert,"errorFilledBg",r("palette-error-main")),ep(t.Alert,"infoFilledBg",r("palette-info-main")),ep(t.Alert,"successFilledBg",r("palette-success-main")),ep(t.Alert,"warningFilledBg",r("palette-warning-main")),ep(t.Alert,"errorFilledColor",eh(()=>x.getContrastText(t.error.main))),ep(t.Alert,"infoFilledColor",eh(()=>x.getContrastText(t.info.main))),ep(t.Alert,"successFilledColor",eh(()=>x.getContrastText(t.success.main))),ep(t.Alert,"warningFilledColor",eh(()=>x.getContrastText(t.warning.main))),ep(t.Alert,"errorStandardBg",(0,f.ux)(t.error.light,.9)),ep(t.Alert,"infoStandardBg",(0,f.ux)(t.info.light,.9)),ep(t.Alert,"successStandardBg",(0,f.ux)(t.success.light,.9)),ep(t.Alert,"warningStandardBg",(0,f.ux)(t.warning.light,.9)),ep(t.Alert,"errorIconColor",r("palette-error-main")),ep(t.Alert,"infoIconColor",r("palette-info-main")),ep(t.Alert,"successIconColor",r("palette-success-main")),ep(t.Alert,"warningIconColor",r("palette-warning-main")),ep(t.AppBar,"defaultBg",r("palette-grey-100")),ep(t.Avatar,"defaultBg",r("palette-grey-400")),ep(t.Button,"inheritContainedBg",r("palette-grey-300")),ep(t.Button,"inheritContainedHoverBg",r("palette-grey-A100")),ep(t.Chip,"defaultBorder",r("palette-grey-400")),ep(t.Chip,"defaultAvatarColor",r("palette-grey-700")),ep(t.Chip,"defaultIconColor",r("palette-grey-700")),ep(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ep(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ep(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ep(t.LinearProgress,"primaryBg",(0,f.ux)(t.primary.main,.62)),ep(t.LinearProgress,"secondaryBg",(0,f.ux)(t.secondary.main,.62)),ep(t.LinearProgress,"errorBg",(0,f.ux)(t.error.main,.62)),ep(t.LinearProgress,"infoBg",(0,f.ux)(t.info.main,.62)),ep(t.LinearProgress,"successBg",(0,f.ux)(t.success.main,.62)),ep(t.LinearProgress,"warningBg",(0,f.ux)(t.warning.main,.62)),ep(t.Skeleton,"bg","rgba(".concat(r("palette-text-primaryChannel")," / 0.11)")),ep(t.Slider,"primaryTrack",(0,f.ux)(t.primary.main,.62)),ep(t.Slider,"secondaryTrack",(0,f.ux)(t.secondary.main,.62)),ep(t.Slider,"errorTrack",(0,f.ux)(t.error.main,.62)),ep(t.Slider,"infoTrack",(0,f.ux)(t.info.main,.62)),ep(t.Slider,"successTrack",(0,f.ux)(t.success.main,.62)),ep(t.Slider,"warningTrack",(0,f.ux)(t.warning.main,.62));let e=(0,f.fk)(t.background.default,.8);ep(t.SnackbarContent,"bg",e),ep(t.SnackbarContent,"color",eh(()=>x.getContrastText(e))),ep(t.SpeedDialAction,"fabHoverBg",(0,f.fk)(t.background.paper,.15)),ep(t.StepConnector,"border",r("palette-grey-400")),ep(t.StepContent,"border",r("palette-grey-400")),ep(t.Switch,"defaultColor",r("palette-common-white")),ep(t.Switch,"defaultDisabledColor",r("palette-grey-100")),ep(t.Switch,"primaryDisabledColor",(0,f.ux)(t.primary.main,.62)),ep(t.Switch,"secondaryDisabledColor",(0,f.ux)(t.secondary.main,.62)),ep(t.Switch,"errorDisabledColor",(0,f.ux)(t.error.main,.62)),ep(t.Switch,"infoDisabledColor",(0,f.ux)(t.info.main,.62)),ep(t.Switch,"successDisabledColor",(0,f.ux)(t.success.main,.62)),ep(t.Switch,"warningDisabledColor",(0,f.ux)(t.warning.main,.62)),ep(t.TableCell,"border",(0,f.ux)((0,f.zp)(t.divider,1),.88)),ep(t.Tooltip,"bg",(0,f.zp)(t.grey[700],.92))}else{ep(t.Alert,"errorColor",(0,f.ux)(t.error.light,.6)),ep(t.Alert,"infoColor",(0,f.ux)(t.info.light,.6)),ep(t.Alert,"successColor",(0,f.ux)(t.success.light,.6)),ep(t.Alert,"warningColor",(0,f.ux)(t.warning.light,.6)),ep(t.Alert,"errorFilledBg",r("palette-error-dark")),ep(t.Alert,"infoFilledBg",r("palette-info-dark")),ep(t.Alert,"successFilledBg",r("palette-success-dark")),ep(t.Alert,"warningFilledBg",r("palette-warning-dark")),ep(t.Alert,"errorFilledColor",eh(()=>Z.getContrastText(t.error.dark))),ep(t.Alert,"infoFilledColor",eh(()=>Z.getContrastText(t.info.dark))),ep(t.Alert,"successFilledColor",eh(()=>Z.getContrastText(t.success.dark))),ep(t.Alert,"warningFilledColor",eh(()=>Z.getContrastText(t.warning.dark))),ep(t.Alert,"errorStandardBg",(0,f.q8)(t.error.light,.9)),ep(t.Alert,"infoStandardBg",(0,f.q8)(t.info.light,.9)),ep(t.Alert,"successStandardBg",(0,f.q8)(t.success.light,.9)),ep(t.Alert,"warningStandardBg",(0,f.q8)(t.warning.light,.9)),ep(t.Alert,"errorIconColor",r("palette-error-main")),ep(t.Alert,"infoIconColor",r("palette-info-main")),ep(t.Alert,"successIconColor",r("palette-success-main")),ep(t.Alert,"warningIconColor",r("palette-warning-main")),ep(t.AppBar,"defaultBg",r("palette-grey-900")),ep(t.AppBar,"darkBg",r("palette-background-paper")),ep(t.AppBar,"darkColor",r("palette-text-primary")),ep(t.Avatar,"defaultBg",r("palette-grey-600")),ep(t.Button,"inheritContainedBg",r("palette-grey-800")),ep(t.Button,"inheritContainedHoverBg",r("palette-grey-700")),ep(t.Chip,"defaultBorder",r("palette-grey-700")),ep(t.Chip,"defaultAvatarColor",r("palette-grey-300")),ep(t.Chip,"defaultIconColor",r("palette-grey-300")),ep(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ep(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ep(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ep(t.LinearProgress,"primaryBg",(0,f.q8)(t.primary.main,.5)),ep(t.LinearProgress,"secondaryBg",(0,f.q8)(t.secondary.main,.5)),ep(t.LinearProgress,"errorBg",(0,f.q8)(t.error.main,.5)),ep(t.LinearProgress,"infoBg",(0,f.q8)(t.info.main,.5)),ep(t.LinearProgress,"successBg",(0,f.q8)(t.success.main,.5)),ep(t.LinearProgress,"warningBg",(0,f.q8)(t.warning.main,.5)),ep(t.Skeleton,"bg","rgba(".concat(r("palette-text-primaryChannel")," / 0.13)")),ep(t.Slider,"primaryTrack",(0,f.q8)(t.primary.main,.5)),ep(t.Slider,"secondaryTrack",(0,f.q8)(t.secondary.main,.5)),ep(t.Slider,"errorTrack",(0,f.q8)(t.error.main,.5)),ep(t.Slider,"infoTrack",(0,f.q8)(t.info.main,.5)),ep(t.Slider,"successTrack",(0,f.q8)(t.success.main,.5)),ep(t.Slider,"warningTrack",(0,f.q8)(t.warning.main,.5));let e=(0,f.fk)(t.background.default,.98);ep(t.SnackbarContent,"bg",e),ep(t.SnackbarContent,"color",eh(()=>Z.getContrastText(e))),ep(t.SpeedDialAction,"fabHoverBg",(0,f.fk)(t.background.paper,.15)),ep(t.StepConnector,"border",r("palette-grey-600")),ep(t.StepContent,"border",r("palette-grey-600")),ep(t.Switch,"defaultColor",r("palette-grey-300")),ep(t.Switch,"defaultDisabledColor",r("palette-grey-600")),ep(t.Switch,"primaryDisabledColor",(0,f.q8)(t.primary.main,.55)),ep(t.Switch,"secondaryDisabledColor",(0,f.q8)(t.secondary.main,.55)),ep(t.Switch,"errorDisabledColor",(0,f.q8)(t.error.main,.55)),ep(t.Switch,"infoDisabledColor",(0,f.q8)(t.info.main,.55)),ep(t.Switch,"successDisabledColor",(0,f.q8)(t.success.main,.55)),ep(t.Switch,"warningDisabledColor",(0,f.q8)(t.warning.main,.55)),ep(t.TableCell,"border",(0,f.q8)((0,f.zp)(t.divider,1),.68)),ep(t.Tooltip,"bg",(0,f.zp)(t.grey[700],.92))}em(t.background,"default"),em(t.common,"background"),em(t.common,"onBackground"),em(t,"divider"),Object.keys(t).forEach(e=>{let r=t[e];r&&"object"==typeof r&&(r.main&&ep(t[e],"mainChannel",(0,f.LR)(ef(r.main))),r.light&&ep(t[e],"lightChannel",(0,f.LR)(ef(r.light))),r.dark&&ep(t[e],"darkChannel",(0,f.LR)(ef(r.dark))),r.contrastText&&ep(t[e],"contrastTextChannel",(0,f.LR)(ef(r.contrastText))),"text"===e&&(em(t[e],"primary"),em(t[e],"secondary")),"action"===e&&(r.active&&em(t[e],"active"),r.selected&&em(t[e],"selected")))})});let{vars:S,generateCssVars:F}=ea(w=c.reduce((e,t)=>(0,g.Z)(e,t),w),{prefix:m,shouldSkipGeneratingVar:v});return w.vars=S,w.generateCssVars=F,w.shouldSkipGeneratingVar=v,w.unstable_sxConfig=(0,i.Z)({},ei.Z,null==b?void 0:b.unstable_sxConfig),w.unstable_sx=function(e){return(0,K.Z)({sx:e,theme:this})},w}var eb=r(97638),ey=e=>[...[...Array(24)].map((t,r)=>"--".concat(e?"".concat(e,"-"):"","overlays-").concat(r+1)),"--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkBg"),"--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkColor")];let eD=ev(),{CssVarsProvider:ex,useColorScheme:eC,getInitColorSchemeScript:eZ}=function(e){let{themeId:t,theme:r={},attribute:n=V,modeStorageKey:a=G,colorSchemeStorageKey:s=Y,defaultMode:u="light",defaultColorScheme:c,disableTransitionOnChange:d=!1,resolveTheme:p,excludeVariablesFromRoot:f}=e;r.colorSchemes&&("string"!=typeof c||r.colorSchemes[c])&&("object"!=typeof c||r.colorSchemes[null==c?void 0:c.light])&&("object"!=typeof c||r.colorSchemes[null==c?void 0:c.dark])||console.error(`MUI: \`${c}\` does not exist in \`theme.colorSchemes\`.`);let m=F.createContext(void 0),h="string"==typeof c?c:c.light,v="string"==typeof c?c:c.dark;return{CssVarsProvider:function({children:e,theme:o=r,modeStorageKey:h=a,colorSchemeStorageKey:v=s,attribute:b=n,defaultMode:y=u,defaultColorScheme:D=c,disableTransitionOnChange:x=d,storageWindow:C="undefined"==typeof window?void 0:window,documentNode:Z="undefined"==typeof document?void 0:document,colorSchemeNode:w="undefined"==typeof document?void 0:document.documentElement,colorSchemeSelector:S=":root",disableNestedContext:k=!1,disableStyleSheetGeneration:M=!1}){let j=F.useRef(!1),T=E(),A=F.useContext(m),N=!!A&&!k,L=o[t],R=L||o,{colorSchemes:B={},components:O={},generateCssVars:z=()=>({vars:{},css:{}}),cssVarPrefix:W}=R,_=(0,l.Z)(R,X),U=Object.keys(B),V="string"==typeof D?D:D.light,K="string"==typeof D?D:D.dark,{mode:J,setMode:ee,systemMode:et,lightColorScheme:er,darkColorScheme:en,colorScheme:eo,setColorScheme:ea}=function(e){let{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=G,colorSchemeStorageKey:l=Y,storageWindow:s="undefined"==typeof window?void 0:window}=e,u=o.join(","),[c,d]=F.useState(()=>{let e=Q(a,t),o=Q(`${l}-light`,r),i=Q(`${l}-dark`,n);return{mode:e,systemMode:$(e),lightColorScheme:o,darkColorScheme:i}}),p=q(c,e=>"light"===e?c.lightColorScheme:"dark"===e?c.darkColorScheme:void 0),f=F.useCallback(e=>{d(r=>{if(e===r.mode)return r;let n=e||t;try{localStorage.setItem(a,n)}catch(e){}return(0,i.Z)({},r,{mode:n,systemMode:$(n)})})},[a,t]),m=F.useCallback(e=>{e?"string"==typeof e?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):d(t=>{let r=(0,i.Z)({},t);return q(t,t=>{try{localStorage.setItem(`${l}-${t}`,e)}catch(e){}"light"===t&&(r.lightColorScheme=e),"dark"===t&&(r.darkColorScheme=e)}),r}):d(t=>{let o=(0,i.Z)({},t),a=null===e.light?r:e.light,s=null===e.dark?n:e.dark;if(a){if(u.includes(a)){o.lightColorScheme=a;try{localStorage.setItem(`${l}-light`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)}if(s){if(u.includes(s)){o.darkColorScheme=s;try{localStorage.setItem(`${l}-dark`,s)}catch(e){}}else console.error(`\`${s}\` does not exist in \`theme.colorSchemes\`.`)}return o}):d(e=>{try{localStorage.setItem(`${l}-light`,r),localStorage.setItem(`${l}-dark`,n)}catch(e){}return(0,i.Z)({},e,{lightColorScheme:r,darkColorScheme:n})})},[u,l,r,n]),h=F.useCallback(e=>{"system"===c.mode&&d(t=>(0,i.Z)({},t,{systemMode:null!=e&&e.matches?"dark":"light"}))},[c.mode]),g=F.useRef(h);return g.current=h,F.useEffect(()=>{let e=(...e)=>g.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>t.removeListener(e)},[]),F.useEffect(()=>{let e=e=>{let r=e.newValue;"string"==typeof e.key&&e.key.startsWith(l)&&(!r||u.match(r))&&(e.key.endsWith("light")&&m({light:r}),e.key.endsWith("dark")&&m({dark:r})),e.key===a&&(!r||["light","dark","system"].includes(r))&&f(r||t)};if(s)return s.addEventListener("storage",e),()=>s.removeEventListener("storage",e)},[m,f,a,l,u,t,s]),(0,i.Z)({},c,{colorScheme:p,setMode:f,setColorScheme:m})}({supportedColorSchemes:U,defaultLightColorScheme:V,defaultDarkColorScheme:K,modeStorageKey:h,colorSchemeStorageKey:v,defaultMode:y,storageWindow:C}),ei=J,el=eo;N&&(ei=A.mode,el=A.colorScheme);let es=ei||("system"===y?u:y),eu=el||("dark"===es?K:V),{css:ec,vars:ed}=z(),ep=(0,i.Z)({},_,{components:O,colorSchemes:B,cssVarPrefix:W,vars:ed,getColorSchemeSelector:e=>`[${b}="${e}"] &`}),ef={},em={};Object.entries(B).forEach(([e,t])=>{let{css:r,vars:n}=z(e);if(ep.vars=(0,g.Z)(ep.vars,n),e===eu&&(Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?ep[e]=(0,i.Z)({},ep[e],t[e]):ep[e]=t[e]}),ep.palette&&(ep.palette.colorScheme=e)),e===("string"==typeof D?D:"dark"===y?D.dark:D.light)){if(f){let t={};f(W).forEach(e=>{t[e]=r[e],delete r[e]}),ef[`[${b}="${e}"]`]=t}ef[`${S}, [${b}="${e}"]`]=r}else em[`${":root"===S?"":S}[${b}="${e}"]`]=r}),ep.vars=(0,g.Z)(ep.vars,ed),F.useEffect(()=>{el&&w&&w.setAttribute(b,el)},[el,b,w]),F.useEffect(()=>{let e;if(x&&j.current&&Z){let t=Z.createElement("style");t.appendChild(Z.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),Z.head.appendChild(t),window.getComputedStyle(Z.body),e=setTimeout(()=>{Z.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[el,x,Z]),F.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);let eh=F.useMemo(()=>({mode:ei,systemMode:et,setMode:ee,lightColorScheme:er,darkColorScheme:en,colorScheme:el,setColorScheme:ea,allColorSchemes:U}),[U,el,en,er,ei,ea,ee,et]),eg=!0;(M||N&&(null==T?void 0:T.cssVarPrefix)===W)&&(eg=!1);let ev=(0,I.jsxs)(F.Fragment,{children:[eg&&(0,I.jsxs)(F.Fragment,{children:[(0,I.jsx)(H.Z,{styles:{[S]:ec}}),(0,I.jsx)(H.Z,{styles:ef}),(0,I.jsx)(H.Z,{styles:em})]}),(0,I.jsx)(P,{themeId:L?t:void 0,theme:p?p(ep):ep,children:e})]});return N?ev:(0,I.jsx)(m.Provider,{value:eh,children:ev})},useColorScheme:()=>{let e=F.useContext(m);if(!e)throw Error((0,o.Z)(19));return e},getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=G,colorSchemeStorageKey:a=Y,attribute:i=V,colorSchemeNode:l="document.documentElement"}=e||{};return(0,I.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function() { +try { + var mode = localStorage.getItem('${o}') || '${t}'; + var colorScheme = ''; + if (mode === 'system') { + // handle system mode + var mql = window.matchMedia('(prefers-color-scheme: dark)'); + if (mql.matches) { + colorScheme = localStorage.getItem('${a}-dark') || '${n}'; + } else { + colorScheme = localStorage.getItem('${a}-light') || '${r}'; + } + } + if (mode === 'light') { + colorScheme = localStorage.getItem('${a}-light') || '${r}'; + } + if (mode === 'dark') { + colorScheme = localStorage.getItem('${a}-dark') || '${n}'; + } + if (colorScheme) { + ${l}.setAttribute('${i}', colorScheme); + } +} catch(e){}})();`}},"mui-color-scheme-init")})((0,i.Z)({attribute:n,colorSchemeStorageKey:s,defaultMode:u,defaultLightColorScheme:h,defaultDarkColorScheme:v,modeStorageKey:a},e))}}({themeId:a.Z,theme:eD,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t=(0,i.Z)({},e,{typography:(0,eb.Z)(e.palette,e.typography)});return t.unstable_sx=function(e){return(0,K.Z)({sx:e,theme:this})},t},excludeVariablesFromRoot:ey});var ew=r(9393);function eS(){throw Error((0,o.Z)(20))}},73945:function(e){var t,r;t=function(){"use strict";let e,t;var r,n=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,l=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=e=>{throw TypeError(e)},c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})},p=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of i(t))s.call(e,l)||l===r||o(e,l,{get:()=>t[l],enumerable:!(n=a(t,l))||n.enumerable});return e},f=(e,t,r)=>(r=null!=e?n(l(e)):{},p(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),m=e=>p(o({},"__esModule",{value:!0}),e),h=(e,t,r)=>t.has(e)||u("Cannot "+r),g=(e,t,r)=>t.has(e)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),v=(e,t,r)=>(h(e,t,"access private method"),r),b=c((e,t)=>{var r=new Proxy(String,{get:()=>r});t.exports=r}),y={};d(y,{default:()=>x,shouldHighlight:()=>D});var D,x,C=(e=()=>{D=()=>!1,x=String},()=>(e&&(t=e(e=0)),t)),Z=c((e,t)=>{var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r}};t.exports=n(),t.exports.createColors=n}),w=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=u,e.default=function(e,t,r,n={}){if(!l){l=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";Error(e).name="DeprecationWarning",console.warn(Error(e))}return u(e,{start:{column:r=Math.max(r,0),line:t}},n)};var t=(C(),m(y)),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&({}).hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(Z(),!0);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}var o,a=r.default,i=(e,t)=>r=>e(t(r)),l=!1,s=/\r\n|[\n\r\u2028\u2029]/;function u(e,n,l={}){let u=(l.highlightCode||l.forceColor)&&(0,t.shouldHighlight)(l),c=l.forceColor?(null!=o||(o=(0,r.createColors)(!0)),o):a,d={gutter:c.gray,marker:i(c.red,c.bold),message:i(c.red,c.bold)},p=(e,t)=>u?e(t):t,{start:f,end:m,markerLines:h}=function(e,t,r){let n=Object.assign({column:0,line:-1},e.start),o=Object.assign({},n,e.end),{linesAbove:a=2,linesBelow:i=3}=r||{},l=n.line,s=n.column,u=o.line,c=o.column,d=Math.max(l-(a+1),0),p=Math.min(t.length,u+i);-1===l&&(d=0),-1===u&&(p=t.length);let f=u-l,m={};if(f)for(let e=0;e<=f;e++){let r=e+l;if(s){if(0===e){let e=t[r-1].length;m[r]=[s,e-s+1]}else if(e===f)m[r]=[0,c];else{let n=t[r-e].length;m[r]=[0,n]}}else m[r]=!0}else s===c?s?m[l]=[s,0]:m[l]=!0:m[l]=[s,c-s];return{start:d,end:p,markerLines:m}}(n,e.split(s),l),g=n.start&&"number"==typeof n.start.column,v=String(m).length,b=(u?(0,t.default)(e,l):e).split(s,m).slice(f,m).map((e,t)=>{let r=f+1+t,n=` ${` ${r}`.slice(-v)} |`,o=h[r],a=!h[r+1];if(!o)return` ${p(d.gutter,n)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(o)){let r=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),i=o[1]||1;t=[` + `,p(d.gutter,n.replace(/\d/g," "))," ",r,p(d.marker,"^").repeat(i)].join(""),a&&l.message&&(t+=" "+p(d.message,l.message))}return[p(d.marker,">"),p(d.gutter,n),e.length>0?` ${e}`:"",t].join("")}}).join(` +`);return l.message&&!g&&(b=`${" ".repeat(v+1)}${l.message} +${b}`),u?c.reset(b):b}}),S={};d(S,{__debug:()=>rG,check:()=>rU,doc:()=>rx,format:()=>r_,formatWithCursor:()=>rW,getSupportInfo:()=>rH,util:()=>rF,version:()=>rS});var F=(e,t,r,n)=>{if(!(e&&null==t))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)};function k(){}k.prototype={diff:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var a=this;function i(e){return o?(setTimeout(function(){o(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,c=l+s;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var d=null!==(r=n.timeout)&&void 0!==r?r:1/0,p=Date.now()+d,f=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(f[0],t,e,0);if(f[0].oldPos+1>=s&&m+1>=l)return i([{value:this.join(t),count:t.length}]);var h=-1/0,g=1/0;function v(){for(var r=Math.max(h,-u);r<=Math.min(g,u);r+=2){var n=void 0,o=f[r-1],c=f[r+1];o&&(f[r-1]=void 0);var d=!1;if(c){var p=c.oldPos-r;d=c&&0<=p&&p=s&&m+1>=l)return i(function(e,t,r,n,o){for(var a,i=[];t;)i.push(t),a=t.previousComponent,delete t.previousComponent,t=a;i.reverse();for(var l=0,s=i.length,u=0,c=0;le.length?r:e}),d.value=e.join(f)}else d.value=e.join(r.slice(u,u+d.count));u+=d.count,d.added||(c+=d.count)}}var m=i[s-1];return s>1&&"string"==typeof m.value&&(m.added||m.removed)&&e.equals("",m.value)&&(i[s-2].value+=m.value,i.pop()),i}(a,n.lastComponent,t,e,a.useLongestToken));f[r]=n,n.oldPos+1>=s&&(g=Math.min(g,r-1)),m+1>=l&&(h=Math.max(h,r+1))}u++}if(o)!function e(){setTimeout(function(){if(u>c||Date.now()>p)return o();v()||e()},0)}();else for(;u<=c&&Date.now()<=p;){var b=v();if(b)return b}},addToPath:function(e,t,r,n){var o=e.lastComponent;return o&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}},extractCommon:function(e,t,r,n){for(var o=t.length,a=r.length,i=e.oldPos,l=i-n,s=0;l+1"u"?r:t}:n;return"string"==typeof e?e:JSON.stringify(function e(t,r,n,o,a){for(r=r||[],n=n||[],o&&(t=o(a,t)),i=0;inew Intl.ListFormat("en-US",{type:"disjunction"}).format(e),er=class extends Error{name="InvalidDocError";constructor(e){super(function(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', +Expected it to be 'string' or 'object'.`;if(ee(e))throw Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=et([...J].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'. +Expected it to be ${n}.`}(e)),this.doc=e}},en={},eo=function(e,t,r,n){let o=[e];for(;o.length>0;){let e=o.pop();if(e===en){r(o.pop());continue}r&&o.push(e,en);let a=ee(e);if(!a)throw new er(e);if((null==t?void 0:t(e))!==!1)switch(a){case O:case G:{let t=a===O?e:e.parts;for(let e=t.length,r=e-1;r>=0;--r)o.push(t[r]);break}case Y:o.push(e.flatContents,e.breakContents);break;case H:if(n&&e.expandedStates)for(let t=e.expandedStates.length,r=t-1;r>=0;--r)o.push(e.expandedStates[r]);else o.push(e.contents);break;case _:case W:case V:case X:case $:o.push(e.contents);break;case B:case z:case U:case q:case Q:case K:break;default:throw new er(e)}}},ea=()=>{};function ei(e){return ea(e),{type:W,contents:e}}function el(e,t){return ea(t),{type:_,contents:t,n:e}}function es(e,t={}){return ea(e),ea(t.expandedStates,!0),{type:H,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function eu(e){return ea(e),{type:G,parts:e}}function ec(e){return ea(e),{type:$,contents:e}}var ed={type:K},ep={type:Q,hard:!0},ef={type:Q,hard:!0,literal:!0},em={type:Q},eh=[ep,ed],eg=[ef,ed],ev={type:z};function eb(e,t){ea(e),ea(t);let r=[];for(let n=0;n0){for(let e=0;e{if(!(e&&null==t))return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)},ex=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,eC=e=>{var t;return!(12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510||(t=e)>=4352&&t<=4447||8986===t||8987===t||9001===t||9002===t||t>=9193&&t<=9196||9200===t||9203===t||9725===t||9726===t||9748===t||9749===t||t>=9800&&t<=9811||9855===t||9875===t||9889===t||9898===t||9899===t||9917===t||9918===t||9924===t||9925===t||9934===t||9940===t||9962===t||9970===t||9971===t||9973===t||9978===t||9981===t||9989===t||9994===t||9995===t||10024===t||10060===t||10062===t||t>=10067&&t<=10069||10071===t||t>=10133&&t<=10135||10160===t||10175===t||11035===t||11036===t||11088===t||11093===t||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||94192===t||94193===t||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101632&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||110589===t||110590===t||t>=110592&&t<=110882||110898===t||t>=110928&&t<=110930||110933===t||t>=110948&&t<=110951||t>=110960&&t<=111355||126980===t||127183===t||127374===t||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||127568===t||127569===t||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||127988===t||t>=127992&&t<=128062||128064===t||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||128378===t||128405===t||128406===t||128420===t||t>=128507&&t<=128591||t>=128640&&t<=128709||128716===t||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||128747===t||128748===t||t>=128756&&t<=128764||t>=128992&&t<=129003||129008===t||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129672||t>=129680&&t<=129725||t>=129727&&t<=129733||t>=129742&&t<=129755||t>=129760&&t<=129768||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141)},eZ=/[^\x20-\x7F]/u,ew=function(e){if(!e)return 0;if(!eZ.test(e))return e.length;e=e.replace(ex()," ");let t=0;for(let r of e){let e=r.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=eC(e)?1:2)}return t};function eS(e,t){if("string"==typeof e)return t(e);let r=new Map;return function e(n){if(r.has(n))return r.get(n);let o=function(r){switch(ee(r)){case O:return t(r.map(e));case G:return t({...r,parts:r.parts.map(e)});case Y:return t({...r,breakContents:e(r.breakContents),flatContents:e(r.flatContents)});case H:{let{expandedStates:n,contents:o}=r;return o=n?(n=n.map(e))[0]:e(o),t({...r,contents:o,expandedStates:n})}case _:case W:case V:case X:case $:return t({...r,contents:e(r.contents)});case B:case z:case U:case q:case Q:case K:return t(r);default:throw new er(r)}}(n);return r.set(n,o),o}(e)}function eF(e,t,r){let n=r,o=!1;return eo(e,function(e){if(o)return!1;let r=t(e);void 0!==r&&(o=!0,n=r)}),n}function ek(e){if(e.type===H&&e.break||e.type===Q&&e.hard||e.type===K)return!0}function eE(e){if(e.length>0){let t=eD(!1,e,-1);t.expandedStates||t.break||(t.break="propagated")}return null}function eM(e){return e.type!==Q||e.hard?e.type===Y?e.flatContents:e:e.soft?"":" "}function eI(e){for(e=[...e];e.length>=2&&eD(!1,e,-2).type===Q&&eD(!1,e,-1).type===K;)e.length-=2;if(e.length>0){let t=ej(eD(!1,e,-1));e[e.length-1]=t}return e}function ej(e){switch(ee(e)){case W:case V:case H:case $:case X:{let t=ej(e.contents);return{...e,contents:t}}case Y:return{...e,breakContents:ej(e.breakContents),flatContents:ej(e.flatContents)};case G:return{...e,parts:eI(e.parts)};case O:return eI(e);case B:return e.replace(/[\n\r]*$/u,"");case _:case z:case U:case q:case Q:case K:break;default:throw new er(e)}return e}function eT(e){return ej(eS(e,e=>(function(e){switch(ee(e)){case G:if(e.parts.every(e=>""===e))return"";break;case H:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===H&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case _:case W:case V:case $:if(!e.contents)return"";break;case Y:if(!e.flatContents&&!e.breakContents)return"";break;case O:{let t=[];for(let r of e){if(!r)continue;let[e,...n]=Array.isArray(r)?r:[r];"string"==typeof e&&"string"==typeof eD(!1,t,-1)?t[t.length-1]+=e:t.push(e),t.push(...n)}return 0===t.length?"":1===t.length?t[0]:t}case B:case z:case U:case q:case Q:case X:case K:break;default:throw new er(e)}return e})(e)))}function eA(e){if(e.type===Q)return!0}function eN(e,t){return e.type===X?{...e,contents:t(e.contents)}:t(e)}var eL=Symbol("MODE_BREAK"),eP=Symbol("MODE_FLAT"),eR=Symbol("cursor");function eB(){return{value:"",length:0,queue:[]}}function eO(e,t,r){let n="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],o="",a=0,i=0,l=0;for(let e of n)switch(e.type){case"indent":c(),r.useTabs?s(1):u(r.tabWidth);break;case"stringAlign":c(),o+=e.n,a+=e.n.length;break;case"numberAlign":i+=1,l+=e.n;break;default:throw Error(`Unexpected type '${e.type}'`)}return d(),{...e,value:o,length:a,queue:n};function s(e){o+=" ".repeat(e),a+=r.tabWidth*e}function u(e){o+=" ".repeat(e),a+=e}function c(){r.useTabs?(i>0&&s(i),i=0,l=0):d()}function d(){l>0&&u(l),i=0,l=0}}function ez(e){let t=0,r=0,n=e.length;e:for(;n--;){let o=e[n];if(o===eR){r++;continue}for(let r=o.length-1;r>=0;r--){let a=o[r];if(" "===a||" "===a)t++;else{e[n]=o.slice(0,r+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(eR);return t}function eW(e,t,r,n,o,a){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,l=[e],s=[];for(;r>=0;){if(0===l.length){if(0===i)return!0;l.push(t[--i]);continue}let{mode:e,doc:u}=l.pop(),c=ee(u);switch(c){case B:s.push(u),r-=ew(u);break;case O:case G:{let t=c===O?u:u.parts;for(let r=t.length-1;r>=0;r--)l.push({mode:e,doc:t[r]});break}case W:case _:case V:case X:l.push({mode:e,doc:u.contents});break;case U:r+=ez(s);break;case H:{if(a&&u.break)return!1;let t=u.break?eL:e,r=u.expandedStates&&t===eL?eD(!1,u.expandedStates,-1):u.contents;l.push({mode:t,doc:r});break}case Y:{let t=(u.groupId?o[u.groupId]||eP:e)===eL?u.breakContents:u.flatContents;t&&l.push({mode:e,doc:t});break}case Q:if(e===eL||u.hard)return!0;u.soft||(s.push(" "),r--);break;case $:n=!0;break;case q:if(n)return!1}}return!1}function e_(e,t){var r;let n,o,a={},i=t.printWidth,l=P(t.endOfLine),s=0,u=[{ind:eB(),mode:eL,doc:e}],c=[],d=!1,p=[],f=0;for(n=new Set,o=[],eo(e,function(e){if(e.type===K&&eE(o),e.type===H){if(o.push(e),n.has(e))return!1;n.add(e)}},function(e){e.type===H&&o.pop().break&&eE(o)},!0);u.length>0;){let{ind:e,mode:n,doc:o}=u.pop();switch(ee(o)){case B:{let e=l!==` +`?F(!1,o,` +`,l):o;c.push(e),u.length>0&&(s+=ew(e));break}case O:for(let t=o.length-1;t>=0;t--)u.push({ind:e,mode:n,doc:o[t]});break;case z:if(f>=2)throw Error("There are too many 'cursor' in doc.");c.push(eR),f++;break;case W:u.push({ind:eO(e,{type:"indent"},t),mode:n,doc:o.contents});break;case _:u.push({ind:(r=o.n)===Number.NEGATIVE_INFINITY?e.root||eB():r<0?eO(e,{type:"dedent"},t):r?"root"===r.type?{...e,root:e}:eO(e,{type:"string"==typeof r?"stringAlign":"numberAlign",n:r},t):e,mode:n,doc:o.contents});break;case U:s-=ez(c);break;case H:switch(n){case eP:if(!d){u.push({ind:e,mode:o.break?eL:eP,doc:o.contents});break}case eL:{d=!1;let t={ind:e,mode:eP,doc:o.contents},r=i-s,n=p.length>0;if(!o.break&&eW(t,u,r,n,a))u.push(t);else if(o.expandedStates){let t=eD(!1,o.expandedStates,-1);if(o.break)u.push({ind:e,mode:eL,doc:t});else for(let i=1;i=o.expandedStates.length){u.push({ind:e,mode:eL,doc:t});break}else{let t={ind:e,mode:eP,doc:o.expandedStates[i]};if(eW(t,u,r,n,a)){u.push(t);break}}}else u.push({ind:e,mode:eL,doc:o.contents})}}o.id&&(a[o.id]=eD(!1,u,-1).mode);break;case G:{let t=i-s,{parts:r}=o;if(0===r.length)break;let[l,c]=r,d={ind:e,mode:eP,doc:l},f={ind:e,mode:eL,doc:l},m=eW(d,[],t,p.length>0,a,!0);if(1===r.length){m?u.push(d):u.push(f);break}let h={ind:e,mode:eP,doc:c},g={ind:e,mode:eL,doc:c};if(2===r.length){m?u.push(h,d):u.push(g,f);break}r.splice(0,2);let v={ind:e,mode:n,doc:eu(r)};eW({ind:e,mode:eP,doc:[l,c,r[0]]},[],t,p.length>0,a,!0)?u.push(v,h,d):m?u.push(v,g,d):u.push(v,g,f);break}case Y:case V:{let t=o.groupId?a[o.groupId]:n;if(t===eL){let t=o.type===Y?o.breakContents:o.negate?o.contents:ei(o.contents);t&&u.push({ind:e,mode:n,doc:t})}if(t===eP){let t=o.type===Y?o.flatContents:o.negate?ei(o.contents):o.contents;t&&u.push({ind:e,mode:n,doc:t})}break}case $:p.push({ind:e,mode:n,doc:o.contents});break;case q:p.length>0&&u.push({ind:e,mode:n,doc:ep});break;case Q:switch(n){case eP:if(o.hard)d=!0;else{o.soft||(c.push(" "),s+=1);break}case eL:if(p.length>0){u.push({ind:e,mode:n,doc:o},...p.reverse()),p.length=0;break}o.literal?e.root?(c.push(l,e.root.value),s=e.root.length):(c.push(l),s=0):(s-=ez(c),c.push(l+e.value),s=e.length)}break;case X:u.push({ind:e,mode:n,doc:o.contents});break;case K:break;default:throw new er(o)}0===u.length&&p.length>0&&(u.push(...p.reverse()),p.length=0)}let m=c.indexOf(eR);if(-1!==m){let e=c.indexOf(eR,m+1),t=c.slice(0,m).join(""),r=c.slice(m+1,e).join("");return{formatted:t+r+c.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:r}}return{formatted:c.join("")}}var eU,eH,eG,eY=function(e,t,r=0){let n=0;for(let o=r;o1?eD(!1,e,-2):null}getValue(){return eD(!1,this.stack,-1)}getNode(e=0){let t=v(this,eU,eH).call(this,e);return -1===t?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,o=eD(!1,r,-1);for(let e of t)o=o[e],r.push(e,o);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=v(this,eU,eH).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,o=eD(!1,r,-1);for(let e of t)o=o[e],r.push(e,o);try{for(let t=0;t{r[n]=e(t,n,o)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let o of e){if(void 0===n)return!1;let e=null;if("number"==typeof r&&(e=r,r=this.stack[t--],n=this.stack[t--]),o&&!o(n,r,e))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of v(this,eU,eG).call(this))if(e(t))return t}hasAncestor(e){for(let t of v(this,eU,eG).call(this))if(e(t))return!0;return!1}};eU=new WeakSet,eH=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return -1},eG=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}};var e$=new Proxy(()=>{},{get:()=>e$});function*eq(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,o=e=>null!==e&&"object"==typeof e&&n(e);for(let t of r(e)){let r=e[t];if(Array.isArray(r))for(let e of r)o(e)&&(yield e);else o(r)&&(yield r)}}function eQ(e){return(t,r,n)=>{let o=!!(null!=n&&n.backwards);if(!1===r)return!1;let{length:a}=t,i=r;for(;i>=0&&iObject.keys(e).filter(e=>!e4.has(e)),e5=function(e){return e?t=>e(t,e4):e3};function e8(e,t){let r,n;(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=(r=e.type||e.kind||"(unknown type)",(n=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"")).length>20&&(n=n.slice(0,19)+"…"),r+(n?" "+n:""))}function e6(e,t){t.leading=!0,t.trailing=!1,e8(e,t)}function e9(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),e8(e,t)}function e7(e,t){t.leading=!1,t.trailing=!0,e8(e,t)}var te=new WeakMap;function tt(e,t){if(te.has(e))return te.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:o},locStart:a,locEnd:i}=t;if(!n)return[];let l=((null==r?void 0:r(e,t))??[...eq(e,{getVisitorKeys:e5(o)})]).flatMap(e=>n(e)?[e]:tt(e,t));return l.sort((e,t)=>a(e)-a(t)||i(e)-i(t)),te.set(e,l),l}var tr=()=>!1,tn=e=>!/[\S\n\u2028\u2029]/u.test(e);function to(e,t){var r,n;let o=e.length;if(0===o)return;let{precedingNode:a,followingNode:i}=e[0],l=t.locStart(i),s;for(s=o;s>0;--s){let{comment:o,precedingNode:u,followingNode:c}=e[s-1];e$.strictEqual(u,a),e$.strictEqual(c,i);let d=t.originalText.slice(t.locEnd(o),l);if((null==(n=(r=t.printer).isGap)?void 0:n.call(r,d,t))??/^[\s(]*$/u.test(d))l=t.locStart(o);else break}for(let[t,{comment:r}]of e.entries())t1&&e.comments.sort((e,r)=>t.locStart(e)-t.locStart(r));e.length=0}function ta(e,t,r){let n=r.locStart(t)-1;for(let t=1;t"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). +The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. +The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment +in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function td({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(e=>e.languages??[]),n=[];for(let o of function(e){let t=[];for(let[r,n]of Object.entries(e)){let e={name:r,...n};Array.isArray(e.default)&&(e.default=eD(!1,e.default,-1).value),t.push(e)}return t}(Object.assign({},...e.map(({options:e})=>e),tc)))!t&&o.deprecated||(Array.isArray(o.choices)&&(t||(o.choices=o.choices.filter(e=>!e.deprecated)),"parser"===o.name&&(o.choices=[...o.choices,...function*(e,t,r){let n=new Set(e.map(e=>e.value));for(let e of t)if(e.parsers){for(let t of e.parsers)if(!n.has(t)){n.add(t);let o=r.find(e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t)),a=e.name;null!=o&&o.name&&(a+=` (plugin: ${o.name})`),yield{value:t,description:a}}}}(o.choices,r,e)])),o.pluginDefaults=Object.fromEntries(e.filter(e=>{var t;return(null==(t=e.defaultOptions)?void 0:t[o.name])!==void 0}).map(e=>[e.name,e.defaultOptions[o.name]])),n.push(o));return{languages:r,options:n}}var tp=e=>String(e).split(/[/\\]/u).pop();function tf(e,t){if(!t)return;let r=tp(t).toLowerCase();return e.find(({filenames:e})=>null==e?void 0:e.some(e=>e.toLowerCase()===r))??e.find(({extensions:e})=>null==e?void 0:e.some(e=>r.endsWith(e)))}var tm=function(e,t){let r=e.plugins.flatMap(e=>e.languages??[]),n=function(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>null==e?void 0:e.includes(t))??e.find(({extensions:e})=>null==e?void 0:e.includes(`.${t}`))}(r,t.language)??tf(r,t.physicalFile)??tf(r,t.file)??void t.physicalFile;return null==n?void 0:n.parsers[0]},th={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(e=>th.value(e)).join(", ")}]`;let t=Object.keys(e);return 0===t.length?"{}":`{ ${t.map(t=>`${th.key(t)}: ${th.value(e[t])}`).join(", ")} }`},pair:({key:e,value:t})=>th.value({[e]:t})},tg=f(b(),1),tv=f(b(),1),tb=Symbol.for("vnopts.VALUE_NOT_EXIST"),ty=Symbol.for("vnopts.VALUE_UNCHANGED"),tD=" ".repeat(2);function tx(e,t,r,n){return`Invalid ${tv.default.red(n.key(e))} value. Expected ${tv.default.blue(r)}, but received ${t===tb?tv.default.gray("nothing"):tv.default.red(n.value(t))}.`}function tC(e,t){if(1===e.length)return e[0];let[r,n]=e,[o,a]=e.map(e=>e.split(` +`,1)[0].length);return o>t&&o>a?n:r}var tZ=f(b(),1),tw=[],tS=[],tF=(e,t,{descriptor:r,logger:n,schemas:o})=>{let a=[`Ignored unknown option ${tZ.default.yellow(r.pair({key:e,value:t}))}.`],i=Object.keys(o).sort().find(t=>3>function(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,o=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-o);)n--,o--;let a=0;for(;al?u>l?l+1:u:u>s?s+1:u;return l}(e,t));i&&a.push(`Did you mean ${tZ.default.blue(r.key(i))}?`),n.warn(a.join(" "))},tk=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],tE=class{static create(e){return function(e,t){let r=new e(t),n=Object.create(r);for(let e of tk)e in t&&(n[e]=function(e,t,r){return"function"==typeof e?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}(t[e],r,tE.prototype[e].length));return n}(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return ty}},tM=class extends tE{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},tI=class extends tE{expected(){return"anything"}validate(){return!0}},tj=class extends tE{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let e=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);!0!==e&&r.push(e.value)}return 0===r.length||{value:r}}deprecated(e,t){let r=[];for(let n of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);!1!==e&&r.push(...e.map(({value:e})=>({value:[e]})))}return r}forward(e,t){let r=[];for(let n of e){let e=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...e.map(tT))}return r}redirect(e,t){let r=[],n=[];for(let o of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(o,t),o);"remain"in e&&r.push(e.remain),n.push(...e.redirect.map(tT))}return 0===r.length?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function tT({from:e,to:t}){return{from:[e],to:t}}var tA=class extends tE{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};function tN(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,o=["undefined","object","boolean","number","string"];return r!==n?o.indexOf(r)-o.indexOf(n):"string"!==r?Number(e)-Number(t):e.localeCompare(t)}function tL(e){return void 0===e?{}:e}function tP(e){if("string"==typeof e)return{text:e};let{text:t,list:r}=e;return function(e,t){if(!e)throw Error(t)}((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(tP)}}:{text:t}}function tR(e,t){return!0===e||(!1===e?{value:t}:e)}function tB(e,t,r=!1){return!1!==e&&(!0===e?!!r||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function tO(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function tz(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>tO(e,t)):[tO(e,t)]}function tW(e,t){let r=tz("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===r.length?{remain:t,redirect:r}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}var t_=class extends tE{constructor(e){super(e),this._choices=function(e,t){let r=new Map;for(let n of e){let e=n[t];if(r.has(e))throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);r.set(e,n)}return r}(e.choices.map(e=>e&&"object"==typeof e?e:{value:e}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(({hidden:e})=>!e).map(e=>e.value).sort(tN).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!!t&&!!t.deprecated&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},tU=class extends tE{expected(){return"a number"}validate(e,t){return"number"==typeof e}},tH=class extends tU{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&e===Math.floor(e)}},tG=class extends tE{expected(){return"a string"}validate(e){return"string"==typeof e}},tY=(e,t,r)=>{let{text:n,list:o}=r.normalizeExpectedResult(r.schemas[e].expected(r)),a=[];return n&&a.push(tx(e,t,n,r.descriptor)),o&&a.push([tx(e,t,o.title,r.descriptor)].concat(o.values.map(e=>(function e({text:t,list:r},n){let o=[];return t&&o.push(`- ${tv.default.blue(t)}`),r&&o.push([`- ${tv.default.blue(r.title)}:`].concat(r.values.map(t=>e(t,n-tD.length).replace(/^|\n/g,`$&${tD}`))).join(` +`)),tC(o,n)})(e,r.loggerPrintWidth))).join(` +`)),tC(a,r.loggerPrintWidth)},tV=(e,t,{descriptor:r})=>{let n=[`${tg.default.yellow("string"==typeof e?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${tg.default.blue("string"==typeof t?r.key(t):r.pair(t))}`),n.join("; ")+"."},t$=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:o=th,unknown:a=tF,invalid:i=tY,deprecated:l=tV,missing:s=()=>!1,required:u=()=>!1,preprocess:c=e=>e,postprocess:d=()=>ty}=t||{};this._utils={descriptor:o,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:function(e,t){let r=Object.create(null);for(let n of e){let e=n[t];if(r[e])throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);r[e]=n}return r}(e,"name"),normalizeDefaultResult:tL,normalizeExpectedResult:tP,normalizeDeprecatedResult:tB,normalizeForwardResult:tz,normalizeRedirectResult:tW,normalizeValidateResult:tR},this._unknownHandler=a,this._invalidHandler=(...e)=>{let t=i(...e);return"string"==typeof t?Error(t):t},this._deprecatedHandler=l,this._identifyMissing=(e,t)=>!(e in t)||s(e,t),this._identifyRequired=u,this._preprocess=c,this._postprocess=d,this.cleanHistory()}cleanHistory(){let e;this._hasDeprecationWarned=(e=Object.create(null),t=>{let r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)})}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;0!==r.length;){let e=r.shift(),n=this._applyNormalization(e,t);r.push(...n)}};for(let e of(n(),Object.keys(this._utils.schemas))){let n=this._utils.schemas[e];if(!(e in t)){let t=tL(n.default(this._utils));"value"in t&&r.push({[e]:t.value})}}for(let e of(n(),Object.keys(this._utils.schemas))){if(!(e in t))continue;let r=this._utils.schemas[e],n=t[e],o=r.postprocess(n,this._utils);o!==ty&&(this._applyValidation(o,e,r),t[e]=o)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(e);for(let o of n){let n=this._utils.schemas[o],a=n.preprocess(e[o],this._utils);this._applyValidation(a,o,n);let i=({from:e,to:t})=>{r.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},l=({value:e,redirectTo:t})=>{let r=tB(n.deprecated(e,this._utils),a,!0);if(!1!==r){if(!0===r)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,t,this._utils));else for(let{value:e}of r){let r={key:o,value:e};if(!this._hasDeprecationWarned(r)){let n="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(r,n,this._utils))}}}};tz(n.forward(a,this._utils),a).forEach(i);let s=tW(n.redirect(a,this._utils),a);if(s.redirect.forEach(i),"remain"in s){let e=s.remain;t[o]=o in t?n.overlap(t[o],e,this._utils):e,l({value:e})}for(let{from:e,to:t}of s.redirect)l({value:e,redirectTo:t})}for(let n of o){let o=e[n];this._applyUnknownHandler(n,o,t,(e,t)=>{r.push({[e]:t})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,tb,this._utils)}_partitionOptionKeys(e){let[t,r]=function(e,t){let r=[],n=[];for(let o of e)t(o)?r.push(o):n.push(o);return[r,n]}(Object.keys(e).filter(t=>!this._identifyMissing(t,e)),e=>e in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=tR(r.validate(e,this._utils),e);if(!0!==n)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let o=this._unknownHandler(e,t,this._utils);if(o)for(let e of Object.keys(o)){if(this._identifyMissing(e,o))continue;let t=o[e];e in this._utils.schemas?n(e,t):r[e]=t}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==ty){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let n of r){let r=t.override[n];this._applyValidation(r,n,this._utils.schemas[n]),e[n]=r}for(let r of n){let n=t.override[r];this._applyUnknownHandler(r,n,e,(t,r)=>{let n=this._utils.schemas[t];this._applyValidation(r,t,n),e[t]=r})}}}}},tq=function(e,t,{logger:n=!1,isCLI:o=!1,passThrough:a=!1,FlagSchema:i,descriptor:l}={}){if(o){if(!i)throw Error("'FlagSchema' option is required.");if(!l)throw Error("'descriptor' option is required.")}else l=th;let s=a?Array.isArray(a)?(e,t)=>a.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,r)=>{let{_:n,...o}=r.schemas;return tF(e,t,{...r,schemas:o})},u=new t$(function(e,{isCLI:t,FlagSchema:r}){let n=[];for(let o of(t&&n.push(tI.create({name:"_"})),e))n.push(function(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:o}=e,a={name:o},i,l={};switch(e.type){case"int":i=tH,t&&(a.preprocess=Number);break;case"string":case"path":i=tG;break;case"choice":i=t_,a.choices=e.choices.map(t=>null!=t&&t.redirect?{...t,redirect:{to:{key:e.name,value:t.redirect}}}:t);break;case"boolean":i=tA;break;case"flag":i=n,a.flags=r.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean));break;default:throw Error(`Unexpected type ${e.type}`)}if(e.exception?a.validate=(t,r,n)=>e.exception(t)||r.validate(t,n):a.validate=(e,t,r)=>void 0===e||t.validate(e,r),e.redirect&&(l.redirect=t=>t?{to:"string"==typeof e.redirect?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(l.deprecated=!0),t&&!e.array){let e=a.preprocess||(e=>e);a.preprocess=(t,r,n)=>r.preprocess(e(Array.isArray(t)?eD(!1,t,-1):t),n)}return e.array?tj.create({...t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},...l,valueSchema:i.create(a)}):i.create({...a,...l})}(o,{isCLI:t,optionInfos:e,FlagSchema:r})),o.alias&&t&&n.push(tM.create({name:o.alias,sourceName:o.name}));return n}(t,{isCLI:o,FlagSchema:i}),{logger:n,unknown:s,descriptor:l}),c=!1!==n;c&&r&&(u._hasDeprecationWarned=r);let d=u.normalize(e);return c&&(r=u._hasDeprecationWarned),d},tQ=(e,t,r)=>{if(!(e&&null==t)){if(t.findLast)return t.findLast(r);for(let e=t.length-1;e>=0;e--){let n=t[e];if(r(n,e,t))return n}}};function tX(e,t){if(!t)throw Error("parserName is required.");let r=tQ(!1,e,e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw new ts(n+=" Plugins must be explicitly added to the standalone bundle.")}function tK(e,t){let r=e.parsers[t];return"function"==typeof r?r():r}var tJ={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function t0(e,t={}){var r,n;let o;let a={...e};if(!a.parser){if(a.filepath){if(a.parser=tm(a,{physicalFile:a.filepath}),!a.parser)throw new tu(`No parser could be inferred for file "${a.filepath}".`)}else throw new tu("No parser and no file path given, couldn't infer a parser.")}let i=td({plugins:e.plugins,showDeprecated:!0}).options,l={...tJ,...Object.fromEntries(i.filter(e=>void 0!==e.default).map(e=>[e.name,e.default]))},s=tX(a.plugins,a.parser),u=await tK(s,a.parser);a.astFormat=u.astFormat,a.locEnd=u.locEnd,a.locStart=u.locStart;let c=null!=(r=s.printers)&&r[u.astFormat]?s:function(e,t){if(!t)throw Error("astFormat is required.");let r=tQ(!1,e,e=>e.printers&&Object.prototype.hasOwnProperty.call(e.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw new ts(n+=" Plugins must be explicitly added to the standalone bundle.")}(a.plugins,u.astFormat),d=await (n=u.astFormat,"function"==typeof(o=c.printers[n])?o():o);a.printer=d;let p=c.defaultOptions?Object.fromEntries(Object.entries(c.defaultOptions).filter(([,e])=>void 0!==e)):{};for(let[e,t]of Object.entries({...l,...p}))(null===a[e]||void 0===a[e])&&(a[e]=t);return"json"===a.parser&&(a.trailingComma="none"),tq(a,i,{passThrough:Object.keys(tJ),...t})}var t1=f(w(),1);async function t2(e,t){let r,n=await function({plugins:e,parser:t}){return tK(tX(e,t),t)}(t),o=n.preprocess?n.preprocess(e,t):e;t.originalText=o;try{r=await n.parse(o,t,t)}catch(t){(function(e,t){let{loc:r}=e;if(r){let n=(0,t1.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` +`+n,e.codeFrame=n,e}throw e})(t,e)}return{text:o,ast:r}}async function t4(e,t,r,n,o){let{embeddedLanguageFormatting:a,printer:{embed:i,hasPrettierIgnore:l=()=>!1,getVisitorKeys:s}}=r;if(!i||"auto"!==a)return;if(i.length>2)throw Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let u=e5(i.getVisitorKeys??s),c=[];(function t(){let{node:n}=e;if(null===n||"object"!=typeof n||l(e))return;for(let r of u(n))Array.isArray(n[r])?e.each(t,r):e.call(t,r);let a=i(e,r);if(a){if("function"==typeof a){c.push({print:a,node:n,pathStack:[...e.stack]});return}o.set(n,a)}})();let d=e.stack;for(let{print:n,node:a,pathStack:i}of c)try{e.stack=i;let l=await n(p,t,e,r);l&&o.set(a,l)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}function p(e,t){return t3(e,t,r,n)}e.stack=d}async function t3(e,t,r,n){let o=await t0({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:a}=await t2(e,o);return eT(await n(a,o))}var t5=function(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:o,locEnd:a,[Symbol.for("printedComments")]:i}=t,{node:l}=e,s=o(l),u=a(l);for(let e of n)o(e)>=s&&a(e)<=u&&i.add(e);return r.slice(s,u)};async function t8(e,t){({ast:e}=await t9(e,t));let r=new Map,n=new eV(e),o=()=>{},a=new Map;await t4(n,l,t,t8,a);let i=await t6(n,t,l,void 0,a);return function(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let e of t){if(!e.printed&&!r.has(e))throw Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed}}(t),i;function l(e,t){return void 0===e||e===n?s(t):Array.isArray(e)?n.call(()=>s(t),...e):n.call(()=>s(t),e)}function s(e){o(n);let i=n.node;if(null==i)return"";let s=i&&"object"==typeof i&&void 0===e;if(s&&r.has(i))return r.get(i);let u=t6(n,t,l,e,a);return s&&r.set(i,u),u}}function t6(e,t,r,n,o){var a;let{node:i}=e,{printer:l}=t,s;return s=null!=(a=l.hasPrettierIgnore)&&a.call(l,e)?t5(e,t):o.has(i)?o.get(i):l.print(e,t,r,n),i===t.cursorNode&&(s=eN(s,e=>[ev,e,ev])),!l.printComment||l.willPrintOwnComments&&l.willPrintOwnComments(e,t)||(s=function(e,t,r){let{leading:n,trailing:o}=function(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if(0===(r.comments||[]).filter(e=>!n.has(e)).length)return{leading:"",trailing:""};let o=[],a=[],i;return e.each(()=>{let r=e.node;if(null!=n&&n.has(r))return;let{leading:l,trailing:s}=r;l?o.push(function(e,t){var r;let n=e.node,o=[tl(e,t)],{printer:a,originalText:i,locStart:l,locEnd:s}=t;if(null==(r=a.isBlockComment)?void 0:r.call(a,n)){let e=e2(i,s(n))?e2(i,l(n),{backwards:!0})?eh:em:" ";o.push(e)}else o.push(eh);let u=e1(i,eK(i,s(n)));return!1!==u&&e2(i,u)&&o.push(eh),o}(e,t)):s&&(i=function(e,t,r){var n;let o=e.node,a=tl(e,t),{printer:i,originalText:l,locStart:s}=t,u=null==(n=i.isBlockComment)?void 0:n.call(i,o);return null!=r&&r.hasLineSuffix&&!(null!=r&&r.isBlock)||e2(l,s(o),{backwards:!0})?{doc:ec([eh,ti(l,s(o))?eh:"",a]),isBlock:u,hasLineSuffix:!0}:!u||null!=r&&r.hasLineSuffix?{doc:[ec([" ",a]),ed],isBlock:u,hasLineSuffix:!0}:{doc:[" ",a],isBlock:u,hasLineSuffix:!1}}(e,t,i),a.push(i.doc))},"comments"),{leading:o,trailing:a}}(e,r);return n||o?eN(t,e=>[n,e,o]):t}(e,s,t)),s}async function t9(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,function(e,t){let{comments:r}=e;if(delete e.comments,!(Array.isArray(r)&&r.length>0)||!t.printer.canAttachComment)return;let n=[],{locStart:o,locEnd:a,printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:l={}},originalText:s}=t,{ownLine:u=tr,endOfLine:c=tr,remaining:d=tr}=l,p=r.map((n,o)=>({...function e(t,r,n,o){let{locStart:a,locEnd:i}=n,l=a(r),s=i(r),u=tt(t,n),c,d,p=0,f=u.length;for(;p>1,o=u[t],m=a(o),h=i(o);if(m<=l&&s<=h)return e(o,r,n,o);if(h<=l){c=o,p=t+1;continue}if(s<=m){d=o,f=t;continue}throw Error("Comment location overlaps with node location")}if((null==o?void 0:o.type)==="TemplateLiteral"){let{quasis:e}=o,t=ta(e,r,n);c&&ta(e,c,n)!==t&&(c=null),d&&ta(e,d,n)!==t&&(d=null)}return{enclosingNode:o,precedingNode:c,followingNode:d}}(e,n,t),comment:n,text:s,options:t,ast:e,isLastComment:r.length-1===o}));for(let[e,t]of p.entries()){let r,{comment:l,precedingNode:s,enclosingNode:f,followingNode:m,text:h,options:g,ast:v,isLastComment:b}=t;if("json"===g.parser||"json5"===g.parser||"jsonc"===g.parser||"__js_expression"===g.parser||"__ts_expression"===g.parser||"__vue_expression"===g.parser||"__vue_ts_expression"===g.parser){if(o(l)-o(v)<=0){e6(v,l);continue}if(a(l)-a(v)>=0){e7(v,l);continue}}if(i?r=[t]:(l.enclosingNode=f,l.precedingNode=s,l.followingNode=m,r=[l,h,g,v,b]),function(e,t,r,n){let{comment:o,precedingNode:a}=r[n],{locStart:i,locEnd:l}=t,s=i(o);if(a)for(let t=n-1;t>=0;t--){let{comment:n,precedingNode:o}=r[t];if(o!==a||!tn(e.slice(l(n),s)))break;s=i(n)}return e2(e,s,{backwards:!0})}(h,g,p,e))l.placement="ownLine",u(...r)||(m?e6(m,l):s?e7(s,l):f?e9(f,l):e9(v,l));else if(function(e,t,r,n){let{comment:o,followingNode:a}=r[n],{locStart:i,locEnd:l}=t,s=l(o);if(a)for(let t=n+1;t0&&n[e-1].followingNode!==m&&to(n,g),n.push(t)}else s?e7(s,l):m?e6(m,l):f?e9(f,l):e9(v,l)}}if(to(n,t),!i)for(let e of r)delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}(e,t);let{printer:{preprocess:n}}=t;return{ast:e=n?await n(e,t):e,comments:r}}var t7=function(e,t){let{cursorOffset:r,locStart:n,locEnd:o}=t,a=e5(t.printer.getVisitorKeys),i=e;for(let t of function*(e,t){let r=[e];for(let e=0;en(e)<=r&&o(e)>=r}))i=t;return i},re=function(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let o=e5(n),a=r.ignoredProperties??new Set;return function e(t,n){if(!(null!==t&&"object"==typeof t))return t;if(Array.isArray(t))return t.map(t=>e(t,n)).filter(Boolean);let i={},l=new Set(o(t));for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||a.has(r)||(l.has(r)?i[r]=e(t[r],t):i[r]=t[r]);let s=r(t,i,n);if(null!==s)return s??i}(e)},rt=(e,t,r)=>{if(!(e&&null==t)){if(t.findLastIndex)return t.findLastIndex(r);for(let e=t.length-1;e>=0;e--)if(r(t[e],e,t))return e;return -1}},rr=({parser:e})=>"json"===e||"json5"===e||"jsonc"===e||"json-stringify"===e;function rn(e){let t=rt(!1,e,e=>"Program"!==e.type&&"File"!==e.type);return -1===t?e:e.slice(0,t+1)}function ro(e,t,r,n,o=[],a){let{locStart:i,locEnd:l}=r,s=i(e),u=l(e);if(!(t>u||t=0&&(t.cursorNode=t7(n,t));let a=await t8(n,t,r);r>0&&(a=ey([eh,a],r,t.tabWidth));let i=e_(a,t);if(r>0){let e=i.formatted.trim();void 0!==i.cursorNodeStart&&(i.cursorNodeStart-=i.formatted.indexOf(e)),i.formatted=e+P(t.endOfLine)}let l=t[Symbol.for("comments")];if(t.cursorOffset>=0){let e,r,n,a,s;if(t.cursorNode&&i.cursorNodeText?(e=t.locStart(t.cursorNode),r=o.slice(e,t.locEnd(t.cursorNode)),n=t.cursorOffset-e,a=i.cursorNodeStart,s=i.cursorNodeText):(e=0,r=o,n=t.cursorOffset,a=0,s=i.formatted),r===s)return{formatted:i.formatted,cursorOffset:a+n,comments:l};let u=r.split("");u.splice(n,0,rs);let c=s.split(""),d=L.diff(u,c,void 0),p=a;for(let e of d)if(e.removed){if(e.value.includes(rs))break}else p+=e.count;return{formatted:i.formatted,cursorOffset:p,comments:l}}return{formatted:i.formatted,cursorOffset:-1,comments:l}}async function rc(e,t){let{ast:r,text:n}=await t2(e,t),{rangeStart:o,rangeEnd:a}=function(e,t,r){let n,o,{rangeStart:a,rangeEnd:i,locStart:l,locEnd:s}=t;e$.ok(i>a);let u=e.slice(a,i).search(/\S/u),c=-1===u;if(!c)for(a+=u;i>a&&!/\S/u.test(e[i-1]);--i);let d=ro(r,a,t,(e,r)=>rl(t,e,r),[],"rangeStart"),p=c?d:ro(r,i,t,e=>rl(t,e),[],"rangeEnd");if(!d||!p)return{rangeStart:0,rangeEnd:0};if(rr(t)){let e,t;let r=(e=[d.node,...d.parentNodes],t=new Set([p.node,...p.parentNodes]),e.find(e=>ra.has(e.type)&&t.has(e)));n=r,o=r}else({startNode:n,endNode:o}=function(e,t,{locStart:r,locEnd:n}){let o=e.node,a=t.node;if(o===a)return{startNode:o,endNode:a};let i=r(e.node);for(let e of rn(t.parentNodes))if(r(e)>=i)a=e;else break;let l=n(t.node);for(let t of rn(e.parentNodes)){if(n(t)<=l)o=t;else break;if(o===a)break}return{startNode:o,endNode:a}}(d,p,t));return{rangeStart:Math.min(l(n),l(o)),rangeEnd:Math.max(s(n),s(o))}}(n,t,r),i=n.slice(o,a),l=Math.min(o,n.lastIndexOf(` +`,o)+1),s=eY(n.slice(l,o).match(/^\s*/u)[0],t.tabWidth),u=await ru(i,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>o&&t.cursorOffset<=a?t.cursorOffset-o:-1,endOfLine:"lf"},s),c=u.formatted.trimEnd(),{cursorOffset:d}=t;d>a?d+=c.length-i.length:u.cursorOffset>=0&&(d=u.cursorOffset+o);let p=n.slice(0,o)+c+n.slice(a);if("lf"!==t.endOfLine){let e=P(t.endOfLine);d>=0&&e===`\r +`&&(d+=R(p.slice(0,d),` +`)),p=F(!1,p,` +`,e)}return{formatted:p,cursorOffset:d,comments:u.comments}}function rd(e,t,r){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?r:t}function rp(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o}=t;return r=rd(e,r,-1),n=rd(e,n,0),o=rd(e,o,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:o}}function rf(e,t){var r;let n,{cursorOffset:o,rangeStart:a,rangeEnd:i,endOfLine:l}=rp(e,t),s="\uFEFF"===e.charAt(0);if(s&&(e=e.slice(1),o--,a--,i--),"auto"===l&&(l=(n=(r=e).indexOf("\r"))>=0?r.charAt(n+1)===` +`?"crlf":"cr":"lf"),e.includes("\r")){let t=t=>R(e.slice(0,Math.max(t,0)),`\r +`);o-=t(o),a-=t(a),i-=t(i),e=F(!1,e,/\r\n?/gu,` +`)}return{hasBOM:s,text:e,options:rp(e,{...t,cursorOffset:o,rangeStart:a,rangeEnd:i,endOfLine:l})}}async function rm(e,t){let r=await function({plugins:e,parser:t}){return tK(tX(e,t),t)}(t);return!r.hasPragma||r.hasPragma(e)}async function rh(e,t){let r,{hasBOM:n,text:o,options:a}=rf(e,await t0(t));return a.rangeStart>=a.rangeEnd&&""!==o||a.requirePragma&&!await rm(o,a)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(a.rangeStart>0||a.rangeEnd=0&&r.cursorOffset++),r)}async function rg(e,t,r){let{text:n,options:o}=rf(e,await t0(t)),a=await t2(n,o);return r&&(r.preprocessForPrint&&(a.ast=await t9(a.ast,o)),r.massage&&(a.ast=re(a.ast,o))),a}async function rv(e,t){return t=await t0(t),e_(await t8(e,t),t)}async function rb(e,t){let r=function(e){let t=Object.create(null),r=new Set;return function e(t,r,o){var a,i;if("string"==typeof t)return JSON.stringify(t);if(Array.isArray(t)){let r=t.map(e).filter(Boolean);return 1===r.length?r[0]:`[${r.join(", ")}]`}if(t.type===Q){let e=(null==(a=null==o?void 0:o[r+1])?void 0:a.type)===K;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if(t.type===K)return(null==(i=null==o?void 0:o[r-1])?void 0:i.type)===Q&&o[r-1].hard?void 0:"breakParent";if(t.type===U)return"trim";if(t.type===W)return"indent("+e(t.contents)+")";if(t.type===_)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if(t.type===Y)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+`, { groupId: ${n(t.groupId)} }`:"")+")";if(t.type===V){let r=[];t.negate&&r.push("negate: true"),t.groupId&&r.push(`groupId: ${n(t.groupId)}`);let o=r.length>0?`, { ${r.join(", ")} }`:"";return`indentIfBreak(${e(t.contents)}${o})`}if(t.type===H){let r=[];t.break&&"propagated"!==t.break&&r.push("shouldBreak: true"),t.id&&r.push(`id: ${n(t.id)}`);let o=r.length>0?`, { ${r.join(", ")} }`:"";return t.expandedStates?`conditionalGroup([${t.expandedStates.map(t=>e(t)).join(",")}]${o})`:`group(${e(t.contents)}${o})`}if(t.type===G)return`fill([${t.parts.map(t=>e(t)).join(", ")}])`;if(t.type===$)return"lineSuffix("+e(t.contents)+")";if(t.type===q)return"lineSuffixBoundary";if(t.type===X)return`label(${JSON.stringify(t.label)}, ${e(t.contents)})`;throw Error("Unknown doc type "+t.type)}(function e(t){var r;if(!t)return"";if(Array.isArray(t)){let r=[];for(let n of t)if(Array.isArray(n))r.push(...e(n));else{let t=e(n);""!==t&&r.push(t)}return r}return t.type===Y?{...t,breakContents:e(t.breakContents),flatContents:e(t.flatContents)}:t.type===H?{...t,contents:e(t.contents),expandedStates:null==(r=t.expandedStates)?void 0:r.map(e)}:t.type===G?{type:"fill",parts:t.parts.map(e)}:t.contents?{...t,contents:e(t.contents)}:t}(e));function n(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];let n=e.description||"symbol";for(let o=0;;o++){let a=n+(o>0?` #${o}`:"");if(!r.has(a))return r.add(a),t[e]=`Symbol.for(${JSON.stringify(a)})`}}}(e),{formatted:n}=await rh(r,{...t,parser:"__js_expression"});return n}async function ry(e,t){t=await t0(t);let{ast:r}=await t2(e,t);return t8(r,t)}async function rD(e,t){return e_(e,await t0(t))}var rx={};d(rx,{builders:()=>rC,printer:()=>rZ,utils:()=>rw});var rC={join:eb,line:em,softline:{type:Q,soft:!0},hardline:eh,literalline:eg,group:es,conditionalGroup:function(e,t){return es(e[0],{...t,expandedStates:e})},fill:eu,lineSuffix:ec,lineSuffixBoundary:{type:q},cursor:ev,breakParent:ed,ifBreak:function(e,t="",r={}){return ea(e),""!==t&&ea(t),{type:Y,breakContents:e,flatContents:t,groupId:r.groupId}},trim:{type:U},indent:ei,indentIfBreak:function(e,t){return ea(e),{type:V,contents:e,groupId:t.groupId,negate:t.negate}},align:el,addAlignmentToDoc:ey,markAsRoot:function(e){return el({type:"root"},e)},dedentToRoot:function(e){return el(Number.NEGATIVE_INFINITY,e)},dedent:function(e){return el(-1,e)},hardlineWithoutBreakParent:ep,literallineWithoutBreakParent:ef,label:function(e,t){return ea(t),e?{type:X,label:e,contents:t}:t},concat:e=>e},rZ={printDocToString:e_},rw={willBreak:function(e){return eF(e,ek,!1)},traverseDoc:eo,findInDoc:eF,mapDoc:eS,removeLines:function(e){return eS(e,eM)},stripTrailingHardline:eT,replaceEndOfLine:function(e,t=eg){return eS(e,e=>"string"==typeof e?eb(t,e.split(` +`)):e)},canBreak:function(e){return eF(e,eA,!1)}},rS="3.3.3",rF={};d(rF,{addDanglingComment:()=>e9,addLeadingComment:()=>e6,addTrailingComment:()=>e7,getAlignmentSize:()=>eY,getIndentSize:()=>rj,getMaxContinuousCount:()=>rT,getNextNonSpaceNonCommentCharacter:()=>rA,getNextNonSpaceNonCommentCharacterIndex:()=>rR,getStringWidth:()=>ew,hasNewline:()=>e2,hasNewlineInRange:()=>rN,hasSpaces:()=>rL,isNextLineEmpty:()=>rO,isNextLineEmptyAfterIndex:()=>rI,isPreviousLineEmpty:()=>rB,makeString:()=>rP,skip:()=>eQ,skipEverythingButNewLine:()=>e0,skipInlineComment:()=>rk,skipNewline:()=>e1,skipSpaces:()=>eK,skipToLineEnd:()=>eJ,skipTrailingComment:()=>rE,skipWhitespace:()=>eX});var rk=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1)){for(let r=t+2;rMath.max(e,r.length/t.length),0)},rA=function(e,t){let r=rM(e,t);return!1===r?"":e.charAt(r)},rN=function(e,t,r){for(let n=t;no===n?o:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(o)?o:"\\"+o));return t+o+t};function rR(e,t){return 2==arguments.length||"number"==typeof t?rM(e,t):function(e,t,r){return rM(e,r(t))}(...arguments)}function rB(e,t){return 2==arguments.length||"number"==typeof t?ti(e,t):function(e,t,r){return ti(e,r(t))}(...arguments)}function rO(e,t){return 2==arguments.length||"number"==typeof t?rI(e,t):function(e,t,r){return rI(e,r(t))}(...arguments)}function rz(e,t=1){return async(...r)=>{let n=r[t]??{},o=n.plugins??[];return r[t]={...n,plugins:Array.isArray(o)?o:Object.values(o)},e(...r)}}var rW=rz(rh);async function r_(e,t){let{formatted:r}=await rW(e,{...t,cursorOffset:-1});return r}async function rU(e,t){return await r_(e,t)===e}var rH=rz(td,0),rG={parse:rz(rg),formatAST:rz(rv),formatDoc:rz(rb),printToDoc:rz(ry),printDocToString:rz(rD)};return m(S)},e.exports=(r=t()).default||r},69921:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},59864:function(e,t,r){"use strict";r(69921)},88385:function(e,t,r){var n;n=function(e,t,r,n,o,a,i,l){"use strict";var s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r.size>1048576*y){var a=j||"The size of files cannot exceed ".concat(y,"Mb");return Q(a),i&&i(a)}if(T&&T.length>0&&!(-1!==T.findIndex(function(e){return e.toLowerCase()===o.toLowerCase()}))){var l="Extension .".concat(o," has been excluded");return Q(l),i&&i(l)}f||(el.push(r),es(el)),n.addEventListener("load",function(){eo.push({name:r.name,size:r.size,path:this.result,type:r.type,contentType:r.type,lastModified:r.lastModified,extension:null==o?void 0:o.toLowerCase()}),ea(u([],eo,!0))},!1),n.readAsDataURL(r)}(n);return e.target.value="",!0}catch(e){Q(e.toString())}return!1},em=function(e,t){if(Q(null),eu.current&&(eu.current.value=""),"number"!=typeof t){ea([]),es([]);return}if(t<0||t>eo.length-1)return console.error("item's index not found...");var r=s({},eo[t]);return null==eo||eo.splice(t,1),null==el||el.splice(t,1),ea(u([],eo,!0)),es(u([],el,!0)),r},eh=e.useCallback(function(e){e.preventDefault(),er(!0)},[]),eg=e.useCallback(function(e){e.stopPropagation(),e.preventDefault()},[]),ev=e.useCallback(function(e){var t;e.stopPropagation(),e.preventDefault(),er(!1),J({event:e,files:null===(t=e.dataTransfer)||void 0===t?void 0:t.files})},[]),eb=e.useCallback(function(){er(!1)},[]),ey=function(){return{addFile:ef,removeFile:em,input:eu.current,files:f?eo:el}};e.useEffect(function(){eu.current&&M&&"function"==typeof M&&M(ey())},[eu.current]),e.useEffect(function(){var e=ed.current;!e||e.ondrop||l||(e.ondrop=ev,e.ondragend=eb,e.ondragover=eg,e.ondragenter=eh)},[ed.current]),e.useEffect(function(){Z&&Z.length>0&&eo.length!==Z.length&&ea(Z)},[Z]),e.useEffect(function(){(null==K?void 0:K.event)&&(null==K?void 0:K.files)&&(ef(K.event,K.files),J(null)),w&&(w(f?eo:el),M&&M(ey()))},[eo,K]);var eD=et?z.palette.secondary.light:z.palette.primary.light;return e.createElement(e.Fragment,null,e.createElement(r.Paper,s({sx:{p:1},elevation:0,ref:ed,variant:"outlined"},_),e.createElement(r.Typography,{gutterBottom:!0,component:"div",color:"textSecondary",sx:{display:"flex"}},e.createElement(r.Box,{sx:{flexGrow:1,fontSize:12}},o),(null==eo?void 0:eo.length)>0&&e.createElement(r.Box,{sx:{fontSize:12}},eo.length,F>0&&"/".concat(F)," file",(null==eo?void 0:eo.length)>1&&"s"," joined")),e.createElement(r.Paper,s({elevation:0,sx:{p:1,transition:500,background:eD}},W),e.createElement(r.Grid,{container:!0,spacing:2,alignItems:"center",justifyContent:"center"},I&&e.createElement(r.Grid,s({item:!0,xs:12,sm:3,md:4,sx:{textAlign:"center",mt:{xs:-3,sm:2}}},L),e.createElement("img",{alt:m,src:p||"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgMzAwIiB3aWR0aD0iNDA2IiBoZWlnaHQ9IjMwNiIgY2xhc3M9ImlsbHVzdHJhdGlvbiBzdHlsZXNfaWxsdXN0cmF0aW9uVGFibGV0X18xRFdPYSI+PHRpdGxlPiMxNiBmaWxlcyBhbmQgZm9sZGVyczwvdGl0bGU+PHBhdGggZD0iTTE0Ny43MSwxNDcuN0gxNDAuOHYtMi43Nmg2LjkxYTMuNDQsMy40NCwwLDEsMCwwLTYuODhIMTQwLjhWMTM1LjNoNi45MWE2LjIsNi4yLDAsMSwxLDAsMTIuNFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMTQ3LjcxLDE0Ny43SDE0MC44di0yLjc2aDYuOTFhMy40NCwzLjQ0LDAsMSwwLDAtNi44OEgxNDAuOFYxMzUuM2g2LjkxYTYuMiw2LjIsMCwxLDEsMCwxMi40WiIgZmlsbD0iI2ZmZiIgb3BhY2l0eT0iMC42MSI+PC9wYXRoPjxlbGxpcHNlIGN4PSIxOTguNTYiIGN5PSIyNTYuOTkiIHJ4PSIxNDUuMDciIHJ5PSIyMC4xOCIgZmlsbD0iI2U2ZTZlNiIgb3BhY2l0eT0iMC40NSI+PC9lbGxpcHNlPjxwYXRoIGQ9Ik0yODguNzUsOTUuNjJjLTEuMzYsMjEuMDctMTEuNDIsNzMuNjEtNzkuNDMsNDQuMDZsMi4zNC02Ljk0czMzLjYxLDUuOTMsNDIuNS02LjU0YzcuNTItMTAuNTYsNy40LTQ1LjE5LDI0LTQzLjU0QTEyLjA5LDEyLjA5LDAsMCwxLDI4OC43NSw5NS42MloiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4Ljc1LDk1LjYyYy0xLjM2LDIxLjA3LTExLjQyLDczLjYxLTc5LjQzLDQ0LjA2bDIuMzQtNi45NHMzMy42MSw1LjkzLDQyLjUtNi41NGM3LjUyLTEwLjU2LDcuNC00NS4xOSwyNC00My41NEExMi4wOSwxMi4wOSwwLDAsMSwyODguNzUsOTUuNjJaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHBhdGggZD0iTTIyNi4xNSw1Ni4zNnMxLjM4LDcuNTksNCwxMi4xOGEzLjg3LDMuODcsMCwwLDAsNS4zLDEuNDVjMi4zLTEuMzQsNS0zLjgxLDQuNzYtOGwuNDUtNy4xMWE2LjkxLDYuOTEsMCwwLDAtNC44OS02LjMzQzIzMC43Miw0Ni43MSwyMjUuMDgsNTEuNzgsMjI2LjE1LDU2LjM2WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwb2x5Z29uIHBvaW50cz0iMjQwLjcyIDU3LjIyIDI1NS42OSA3Mi4zMyAyNDYuNzUgODIuMDQgMjM3LjM2IDYzLjk4IDI0MC43MiA1Ny4yMiIgZmlsbD0iI2Y0YTI4YyI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yMzUuOCw2MC41OHMtLjczLTIuODgsMS40OC0zLjI1LDMuMjksMy43OS40Nyw1WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwYXRoIGQ9Ik0yMjcuMjcsNjEuMSwyMjYsNjQuNTNhMS4yNCwxLjI0LDAsMCwwLDEuMjUsMS42N2wzLS4yNFoiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjY1LjIxLDI0OC43OXMtMiwzLjY1LTUuNTMsMy40MS01LDMtMiw0LjQxLDExLjc0LTEuNDIsMTEuNzQtMS40MmwuNTUtNS4wOFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMzA3LjM1LDI0NC4xNHMyLjI1LDMuNTEuMzIsNi40OS4yNiw1LjgzLDIuOTEsMy44Niw0LjQzLTExLDQuNDMtMTFsLTQuMTktMi45M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjM4Ljg3LDY2Ljg4QTE1LjU0LDE1LjU0LDAsMCwwLDI0MC4xOCw2MlMyNDYsNjcuMzgsMjQyLjEsNzMuMVoiIGZpbGw9IiNjZTgxNzIiIG9wYWNpdHk9IjAuMzEiPjwvcGF0aD48cG9seWdvbiBwb2ludHM9IjI2My40NiAxNzAuMzUgMjYzLjAzIDI1MC40NCAyNzMuMzkgMjUwLjQ0IDI4Ni42NSAxNjkuMzIgMjYzLjQ2IDE3MC4zNSIgZmlsbD0iIzI0Mjg1YiI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yNDguNDEsNzYuNDZhMzAuNjYsMzAuNjYsMCwwLDEsMTguMzEtNi43MWMxMC44LS4xMSw0MC45MiwxLjc0LDM4Ljg2LDM4LjU4LTEuNTMsMjcuMy0yLjMxLDU3LjUtMi4zMSw1Ny41bC0zOS42Niw2LjYxUzIxNi4yNCwxMDUuNDEsMjQ4LjQxLDc2LjQ2WiIgZmlsbD0iI2ZmZmZmZiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzQuNjIsODUuNzJzLTguMzEsMTAtMy4xNywyOC4yOCwxMi4zNiw0MC4zMy0xMi40LDUxLjQxbDQuNTYsNywzOS42Ni02LjYxLjUyLTE2Ljg4LDYuMzctMzEuMjZaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHJlY3QgeD0iMTA5LjI1IiB5PSIxNTAuMzEiIHdpZHRoPSI2Ni45NyIgaGVpZ2h0PSIxMDYuNjgiIGZpbGw9IiNhNWE1YTUiIG9wYWNpdHk9IjAuNzkiPjwvcmVjdD48cmVjdCB4PSIxMzguNDgiIHk9IjE1MC4zMSIgd2lkdGg9IjU3LjkzIiBoZWlnaHQ9IjEwNi42OCIgZmlsbD0iI2U2ZTZlNiI+PC9yZWN0Pjxwb2x5Z29uIHBvaW50cz0iMTc5LjggMTU2LjU1IDE3OC43NCAxNjIuNjYgMTUwLjMgMTYyLjY2IDE1MC4zIDE4OC40NCAxOTcuNiAxODguNDQgMTk3LjYgMTY3LjQ0IDE5Ny42IDE2Mi42NiAxOTcuNiAxNTYuNTUgMTc5LjggMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxNzkuOCAxNTYuNTUgMTc4Ljc0IDE2Mi42NiAxNTAuMyAxNjIuNjYgMTUwLjMgMTg4LjQ0IDE5Ny42IDE4OC40NCAxOTcuNiAxNjcuNDQgMTk3LjYgMTYyLjY2IDE5Ny42IDE1Ni41NSAxNzkuOCAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjE4Ni43MSAxNTYuNTUgMTg1LjY1IDE2Mi42NiAxNTcuMjEgMTYyLjY2IDE1Ny4yMSAxODguNDQgMjA0LjUxIDE4OC40NCAyMDQuNTEgMTY3LjQ0IDIwNC41MSAxNjIuNjYgMjA0LjUxIDE1Ni41NSAxODYuNzEgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIyNjIuOTggMTIxLjA3IDI2NC45MiAxMjguMjggMjM4Ljc4IDEzOS40OSAyNTEuMDcgMTY4LjE0IDI5NC41NSAxNDkuNDkgMjg0LjU0IDEyNi4xNiAyODIuMjYgMTIwLjg0IDI3OS4zNCAxMTQuMDUgMjYyLjk4IDEyMS4wNyIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMjYyLjk4IDEyMS4wNyAyNjQuOTIgMTI4LjI4IDIzOC43OCAxMzkuNDkgMjUxLjA3IDE2OC4xNCAyOTQuNTUgMTQ5LjQ5IDI4NC41NCAxMjYuMTYgMjgyLjI2IDEyMC44NCAyNzkuMzQgMTE0LjA1IDI2Mi45OCAxMjEuMDciIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjI2OS4zMyAxMTguMzQgMjcxLjI3IDEyNS41NiAyNDUuMTMgMTM2Ljc2IDI1Ny40MiAxNjUuNDEgMzAwLjg5IDE0Ni43NyAyOTAuODkgMTIzLjQzIDI4OC42MSAxMTguMTIgMjg1LjY5IDExMS4zMyAyNjkuMzMgMTE4LjM0IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxOTIuNDIgMTU2LjU1IDE5MS4zNiAxNjIuNjYgMTYyLjkzIDE2Mi42NiAxNjIuOTMgMTg4LjQ0IDIxMC4yMyAxODguNDQgMjEwLjIzIDE2Ny40NCAyMTAuMjMgMTYyLjY2IDIxMC4yMyAxNTYuNTUgMTkyLjQyIDE1Ni41NSIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMTkyLjQyIDE1Ni41NSAxOTEuMzYgMTYyLjY2IDE2Mi45MyAxNjIuNjYgMTYyLjkzIDE4OC40NCAyMTAuMjMgMTg4LjQ0IDIxMC4yMyAxNjcuNDQgMjEwLjIzIDE2Mi42NiAyMTAuMjMgMTU2LjU1IDE5Mi40MiAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMTIiPjwvcmVjdD48cmVjdCB4PSIxNjYuNDUiIHk9IjE0Ny4yMyIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjEuNDQgMjguOTEpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cG9seWdvbiBwb2ludHM9IjE5OS4zMyAxNTYuNTUgMTk4LjI3IDE2Mi42NiAxNjkuODQgMTYyLjY2IDE2OS44NCAxODguNDQgMjE3LjE0IDE4OC40NCAyMTcuMTQgMTY3LjQ0IDIxNy4xNCAxNjIuNjYgMjE3LjE0IDE1Ni41NSAxOTkuMzMgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHJlY3QgeD0iMTQ3LjY1IiB5PSIxNzAuMzciIHdpZHRoPSI3NC41NCIgaGVpZ2h0PSIyOS4xIiBmaWxsPSIjYTVhNWE1Ij48L3JlY3Q+PHBhdGggZD0iTTI5MS4xMywxMjRhMjEyLjI0LDIxMi4yNCwwLDAsMS0xNCwxNi4yNyw2My43OCw2My43OCwwLDAsMS0xMi42Nyw5LjkyYy0yLjY5LDEuNjUtNS41Miw0LjU5LTMuNjIsOS4xOWgxNC44MUwyOTUsMTMzLjEzWiIgb3BhY2l0eT0iMC4wOCI+PC9wYXRoPjxyZWN0IHg9IjE3MS4xNiIgeT0iMTcwLjM3IiB3aWR0aD0iNTEuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjE0Ny42NSIgeT0iMjEyLjkyIiB3aWR0aD0iNTkuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjEyOC4zOCIgeT0iMTMyLjMiIHdpZHRoPSIxNi44OSIgaGVpZ2h0PSIxOC40IiBmaWxsPSIjZmZmZmZmIj48L3JlY3Q+PGNpcmNsZSBjeD0iMTk3LjU3IiBjeT0iMTgzLjc1IiByPSI0LjA5IiBmaWxsPSIjYTVhNWE1Ij48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNzguMDQiIGN5PSIyMjYuMzEiIHI9IjQuMDkiIGZpbGw9IiNhNWE1YTUiPjwvY2lyY2xlPjxwYXRoIGQ9Ik0yMTEuMjMsMTM0YTIyLjE2LDIyLjE2LDAsMCwwLTguMjYsMS4yNWMtNC40MywxLjU2LTguNTMsNS41MS01LjM3LDEwLjEzLDIuNDQsMy41Niw1LjksMS43Miw3LjE5LTEuMTNzMi4wNy01LjYxLDQuNTMtNC41N1oiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzEuNDUsMTU1LjdzLTExLTEuMi0xMiwzLTEuNjgsNi43NC0xLjY4LDYuNzRhMzAuMSwzMC4xLDAsMCwwLDE1LjY2LTQuODJaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTMwMy4yNywxNjUuODNhMTA0Ljc4LDEwNC43OCwwLDAsMSwuMTgsMTUuMzhjLS4yNyw2LjMxLTEuOTEsMTYuODItMy4xNSwyNC4wOUEyMy4yMiwyMy4yMiwwLDAsMCwzMDMsMjIwLjZsMTAsMTcuNzktNy4yNiw3LjI0LTExLjkxLTE1LjQ4YTY0Ljg4LDY0Ljg4LDAsMCwxLTEyLjE2LTI3bC0zLjc5LTE5LjM0LTkuNTUtMTIuMTRaIiBmaWxsPSIjMjQyODViIj48L3BhdGg+PHBhdGggZD0iTTIyMS43NSw0Ny4zM3MtMy4wOSw3LjE0LDQuMjksNy40OSw3LjI5LTEuMTUsNy4yOS0xLjE1LjQ2LDkuNTQsNi44NSw4LjM1bDIuNjUtMi42OHMzLTEyLjE3LTIuMi0xNC44NEMyNDAuNjMsNDQuNSwyMzAuMjUsMzMuODMsMjIxLjc1LDQ3LjMzWiIgZmlsbD0iIzI0Mjg1YiI+PC9wYXRoPjxwYXRoIGQ9Ik0yMzUuNjgsNjEuNzNzLjM5LTYuMjIsMy44OS00LjY3UzI0MC43Niw2NS4zOSwyMzUuNjgsNjEuNzNaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTE0MC44LDEzMi4zczExLjg5LTcuNjMsMC0xOC4zLTE2LjU1LDE0LTI1LjIyLTIuNjcsMTMuMzMtMzQuNjYtMTEtMzZTOTUuNDcsNTguNjIsNzQuNTIsNTYuODEsNDcuOTEsOTIuMTEsNjMuOTEsOTQuNTZzMzEuMzQsMy40NCwyNywxOC43NywxMiwxOS41LDE5LjY3LDE1Ljc1LDE3LjgsMy4yMiwxNy44LDMuMjJaIiBmaWxsPSIjZTZlNmU2IiBvcGFjaXR5PSIwLjQ1Ij48L3BhdGg+PHBhdGggZD0iTTk4LDI0MnMtMTEuODUtMy4xOC0xNC40Ny0xNC4xOGMwLDAsMTguMzItMy43OCwxOC45MiwxNS4xNFoiIGZpbGw9IiNmZmZmZmYiIG9wYWNpdHk9IjAuNTgiPjwvcGF0aD48cGF0aCBkPSJNOTkuNDYsMjQwLjc4cy04LjMyLTEzLTEuMS0yNS4yOGMwLDAsMTQsOC43OSw3Ljg2LDI1LjI4WiIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC43MyI+PC9wYXRoPjxwYXRoIGQ9Ik0xMDEuNTksMjQwLjc4czQuMzEtMTMuODIsMTcuNS0xNi40OWMwLDAsMi41Miw5LTguNDgsMTYuNDlaIiBmaWxsPSIjZmZmZmZmIj48L3BhdGg+PHBvbHlnb24gcG9pbnRzPSI5My4wMSAyNDAuNTEgOTUuNDggMjU2LjkxIDExMC41OCAyNTYuOTEgMTEyLjc0IDI0MC41MSA5My4wMSAyNDAuNTEiIGZpbGw9IiMyNDI4NWIiPjwvcG9seWdvbj48L3N2Zz4=",width:ep.width,height:ep.height})),e.createElement(r.Grid,s({item:!0,xs:12,sm:!0,md:!0,sx:{color:"#fff",textAlign:"center",mt:{xs:I?-4:0,sm:2}}},N),e.createElement(r.Hidden,{smDown:!0},e.createElement(r.Typography,{variant:"h5"},e.createElement("b",null,a))),e.createElement(r.Hidden,{smUp:!0},e.createElement(r.Typography,{variant:"h6"},e.createElement("b",null,a))),e.createElement(r.Typography,{variant:"caption"},g,e.createElement(r.Button,{size:"small",color:"secondary",variant:"outlined",disabled:l,onClick:function(){var e;return null===(e=eu.current)||void 0===e?void 0:e.click()},sx:{m:.5,color:z.palette.grey["50"],borderColor:z.palette.grey["50"],"&:hover":{borderColor:z.palette.grey["50"]}}},b),v),e.createElement("input",{type:"file",ref:eu,onChange:function(e){return ef(e)},multiple:h,accept:C,style:{display:"none"}})))),q&&e.createElement(r.Alert,{color:"error",severity:"error",sx:{mt:1},onClose:function(){return Q(null)}},q),(null==eo?void 0:eo.length)>0&&e.createElement(e.Fragment,null,e.createElement(d,{component:"div",sx:{overflowY:"auto",mt:2,mr:-1,pr:1,height:P,maxHeight:R}},null==eo?void 0:eo.map(function(t,r){var n=(t.size/1024).toFixed(2)+" Kb";return t.size>1048576&&(n=(t.size/1048576).toFixed(2)+" Mb"),e.createElement(c,{file:t,size:n,index:r,disabled:l,key:"upload-file--".concat(r),handleRemoveFile:em})})),e.createElement(r.Typography,{component:"div",align:"right",sx:{mt:1}},e.createElement(r.Button,{size:"small",disabled:l,onClick:em,ref:ec},A||"Remove all")))))}return p.propTypes={getBase64:t.bool,maxUploadFiles:t.number,title:t.string,header:t.string,leftLabel:t.string,rightLabel:t.string,buttonLabel:t.string,multiFile:t.bool,disabled:t.bool,defaultFiles:t.array,maxFileSize:t.number,maxFilesContainerHeight:t.number,errorSizeMessage:t.string,imageSrc:t.string,imageSrcAlt:t.string,acceptedType:t.string,bannerProps:t.object,BannerProps:t.object,containerProps:t.object,ContainerProps:t.object,allowedExtensions:t.array,onError:t.func,onContextReady:t.func,onFilesChange:t.func,showPlaceholderImage:t.bool,LabelsGridProps:t.object,PlaceholderGridProps:t.object,placeholderImageDimension:t.object,PlaceholderImageDimension:t.object},p.defaultProps={getBase64:!1,multiFile:!0,maxFileSize:0,maxUploadFiles:0,acceptedType:"*/*",defaultFiles:[],allowedExtensions:[],title:"My awesome file uploader",header:">[Drag to drop]<",leftLabel:"or",rightLabel:"to select files",buttonLabel:"click here",imageSrcAlt:"Placeholder image",maxFilesContainerHeight:300,showPlaceholderImage:!0,placeholderImageDimension:{},PlaceholderImageDimension:{},bannerProps:{},BannerProps:{},containerProps:{},ContainerProps:{},LabelsGridProps:{},PlaceholderGridProps:{}},p},e.exports=n(r(67294),r(45697),r(47367),r(54326),r(39626),r(77347),r(90645),r(48878))}}]); \ No newline at end of file diff --git a/_next/static/chunks/666-5b8c5c94fe82eb64.js b/_next/static/chunks/666-5b8c5c94fe82eb64.js deleted file mode 100644 index 3a284e3f1..000000000 --- a/_next/static/chunks/666-5b8c5c94fe82eb64.js +++ /dev/null @@ -1,57 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[666],{41234:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}}),r(67294);var n=r(70917),o=r(85893);function a(e){let{styles:t,defaultTheme:r={}}=e,a="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return(0,o.jsx)(n.xB,{styles:a})}},92666:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,l)}s((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NestiaEditorApplication=function(){var e=this,t=a(u.default.useState(!1),2),r=t[0],i=t[1],f=a(u.default.useState(null),2),m=f[0],h=f[1];return(u.default.useEffect(function(){n(e,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),e=h,[4,function(){return n(this,void 0,void 0,function(){var e,t,r,n,a,i,l,s,u;return o(this,function(o){switch(o.label){case 0:if(!(null!==(s=(t=new URLSearchParams(-1===(e=window.location.href.indexOf("?"))?"":window.location.href.substring(e+1))).get("url"))&&void 0!==s))return[3,1];return a=s,[3,3];case 1:return[4,p("./swagger.json")];case 2:a=o.sent(),o.label=3;case 3:if(!(null!==(u=a)&&void 0!==u))return[3,4];return n=u,[3,6];case 4:return[4,p("./swagger.yaml")];case 5:n=o.sent(),o.label=6;case 6:if(null===(r=n))return[2,null];return[2,{url:r,simulate:null!==(i=t.get("simulate"))&&("true"===i||"1"===i),e2e:null!==(l=t.get("e2e"))&&("true"===l||"1"===l),mode:"nest"===t.get("mode")?"nest":"sdk"}]}})})}()];case 1:return e.apply(void 0,[t.sent()]),[3,3];case 2:return t.sent(),h(null),[3,3];case 3:return i(!0),[2]}})}).catch(function(){})},[]),!1===r)?(0,l.jsx)(l.Fragment,{}):null!==m?(0,l.jsx)(c.NestiaEditorIframe,{swagger:m.url,simulate:m.simulate,e2e:m.e2e}):(0,l.jsxs)("div",{style:{padding:25},children:[(0,l.jsx)(s.Typography,{variant:"h4",children:"Nestia Editor"}),(0,l.jsx)("hr",{}),(0,l.jsx)("br",{}),(0,l.jsx)(d.NestiaEditorUploader,{})]})};var l=r(85893),s=r(47367),u=i(r(67294)),c=r(3701),d=r(94650);function p(e){return n(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return[4,fetch(e)];case 1:return[2,200===t.sent().status?e:null]}})})}},3701:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,l)}s((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NestiaEditorIframe=function(e){var t=this,r=a(p.default.useState("reactia-editor-div-".concat(Math.random().toString().substring(2))),1)[0],i=a(p.default.useState(0),2),l=i[0],d=i[1],g=a(p.default.useState(null),2),v=g[0],b=g[1],y=a(p.default.useState({}),2),D=y[0],x=y[1],C=a(p.default.useState(null),2),Z=C[0],w=C[1];return p.default.useEffect(function(){n(t,void 0,void 0,function(){var t,a,i,l,s,u=this;return o(this,function(p){switch(p.label){case 0:if(d(0),"string"!=typeof e.swagger)return[3,2];return[4,m(e.swagger)];case 1:return a=p.sent(),[3,3];case 2:a=e.swagger,p.label=3;case 3:if("string"==typeof(t=a))return b(t),[2];return x(h(t)),d(1),[4,n(u,void 0,void 0,function(){var r,n,a;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,f.NestiaEditorComposer[null!==(r=e.mode)&&void 0!==r?r:"sdk"]({document:t,simulate:null===(n=e.simulate)||void 0===n||n,e2e:null===(a=e.e2e)||void 0===a||a})];case 1:return[2,o.sent()];case 2:return[2,{success:!1,errors:o.sent()}];case 3:return[2]}})})];case 4:if(!1===(i=p.sent()).success)return w(i.errors),[2];return d(2),c.default.embedProject(r,{title:null!==(s=null===(l=t.info)||void 0===l?void 0:l.title)&&void 0!==s?s:"Nestia Editor",template:"node",files:i.data.files},{width:"100%",height:"100%",openFile:i.data.openFile,startScript:i.data.startScript}),[2]}})}).catch(function(e){console.error("unknown error",e)})},[]),(0,s.jsx)("div",{id:r,style:{width:"100%",height:"100%",overflow:"hidden"},children:(0,s.jsxs)("div",{style:{padding:25,overflow:"auto"},children:[(0,s.jsx)(u.Typography,{variant:"h4",children:"Nestia Editor"}),(0,s.jsx)("hr",{}),(0,s.jsx)("br",{}),(0,s.jsxs)(u.Stepper,{activeStep:l,orientation:"vertical",nonLinear:!0,children:[(0,s.jsxs)(u.Step,{children:[(0,s.jsx)(u.StepLabel,{children:(0,s.jsx)(u.Typography,{variant:"h5",children:"Loading OpenAPI Document"})}),(0,s.jsxs)(u.StepContent,{children:[(0,s.jsx)("br",{}),(0,s.jsx)(u.CircularProgress,{size:100,color:"success"}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"string"==typeof e.swagger?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:"Fetching OpenAPI Document from"}),(0,s.jsx)("p",{children:(0,s.jsx)("a",{href:e.swagger,target:"_blank",children:e.swagger})})]}):"Delivering OpenAPI Document to the composer",null!==v?(0,s.jsxs)(u.Alert,{severity:"error",children:[(0,s.jsx)(u.AlertTitle,{children:"Fetch Error"}),v]}):null]})]},0),(0,s.jsxs)(u.Step,{children:[(0,s.jsx)(u.StepLabel,{children:(0,s.jsx)(u.Typography,{variant:"h5",children:"Generating Software Development Kit"})}),(0,s.jsxs)(u.StepContent,{children:[(0,s.jsx)("br",{}),(0,s.jsx)(u.CircularProgress,{size:100,color:"success"}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"Generating SDK funtions...",(0,s.jsx)("br",{}),(0,s.jsxs)("ul",{children:[(0,s.jsxs)("li",{children:["total operations: #",Object.values(D).reduce(function(e,t){return e+t},0).toLocaleString()]}),Object.entries(D).map(function(e){var t=a(e,2),r=t[0],n=t[1];return(0,s.jsxs)("li",{children:[r,": #",n.toLocaleString()]})})]}),null!==Z?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("br",{}),(0,s.jsxs)(u.Alert,{severity:"error",children:[(0,s.jsx)(u.AlertTitle,{children:"Composition Error"}),(0,s.jsx)("pre",{children:JSON.stringify(Z,null,2)})]})]}):null]})]},1),(0,s.jsxs)(u.Step,{children:[(0,s.jsx)(u.StepLabel,{children:(0,s.jsx)(u.Typography,{variant:"h5",children:"Composing TypeScript Project"})}),(0,s.jsx)(u.StepContent,{})]},2)]})]})})};var s=r(85893),u=r(47367),c=l(r(79979)),d=r(93320),p=l(r(67294)),f=r(68902),m=function(e){return n(void 0,void 0,void 0,function(){var t,r,n;return o(this,function(o){switch(o.label){case 0:return o.trys.push([0,7,,8]),[4,fetch(e)];case 1:if(!(200!==(t=o.sent()).status))return[3,3];return[4,t.text()];case 2:case 6:return[2,o.sent()];case 3:if(!e.endsWith(".yaml"))return[3,5];return[4,t.text()];case 4:return r=o.sent(),[2,(0,d.load)(r)];case 5:return[4,t.json()];case 7:if((n=o.sent())instanceof Error)return[2,n.message];return[2,"Unknown error"];case 8:return[2]}})})},h=function(e){var t,r,n,o,l,s,u={};if(!("object"==typeof e&&null!==e))return u;try{for(var c=i(Object.values(null!==(l=e.paths)&&void 0!==l?l:{})),d=c.next();!d.done;d=c.next()){var p=d.value;if("object"==typeof p&&null!==p)try{for(var f=(n=void 0,i(Object.entries(p))),m=f.next();!m.done;m=f.next()){var h=a(m.value,1)[0];("head"===h||"get"===h||"post"===h||"patch"===h||"put"===h||"delete"===h)&&(u[h]=(null!==(s=u[h])&&void 0!==s?s:0)+1)}}catch(e){n={error:e}}finally{try{m&&!m.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}}}catch(e){t={error:e}}finally{try{d&&!d.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}return u}},94650:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,l)}s((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NestiaEditorUploader=function(e){var t=this,r=a(c.default.useState("sdk"),2),i=r[0],f=r[1],m=a(c.default.useState(!0),2),h=m[0],g=m[1],v=a(c.default.useState(!0),2),b=v[0],y=v[1],D=a(c.default.useState(null),2),x=D[0],C=D[1],Z=a(c.default.useState(!1),2),w=Z[0],S=Z[1],F=function(t){e.onError?e.onError(t):alert(t)};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.NestiaEditorFileUploader,{onChange:function(e,t){C(e),null!==t&&F(t)}}),(0,l.jsx)("br",{}),(0,l.jsxs)(s.FormControl,{fullWidth:!0,style:{paddingLeft:15},children:[(0,l.jsx)(s.FormLabel,{children:" Mode "}),(0,l.jsxs)(s.RadioGroup,{defaultValue:i,onChange:function(e,t){return f(t)},style:{paddingLeft:15},children:[(0,l.jsx)(s.FormControlLabel,{value:"sdk",control:(0,l.jsx)(s.Radio,{}),label:"Software Development Kit"}),(0,l.jsx)(s.FormControlLabel,{value:"nest",control:(0,l.jsx)(s.Radio,{}),label:"NestJS Project"})]}),(0,l.jsx)(s.FormLabel,{style:{paddingTop:20},children:" Options "}),(0,l.jsx)(s.FormControlLabel,{label:"Mockup Simulator",style:{paddingTop:5,paddingLeft:15},control:(0,l.jsx)(s.Switch,{checked:h,onChange:function(){return g(!h)}})}),(0,l.jsx)(s.FormControlLabel,{label:"E2E Test Functions",style:{paddingLeft:15},control:(0,l.jsx)(s.Switch,{checked:b,onChange:function(){return y(!b)}})})]}),(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),(0,l.jsx)(s.Button,{component:"a",fullWidth:!0,variant:"contained",color:"info",size:"large",disabled:!0===w||null===x,onClick:function(){return n(t,void 0,void 0,function(){var e,t,r,n;return o(this,function(o){switch(o.label){case 0:if(null===x)return[2];S(!0),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,d.NestiaEditorComposer[i]({document:x,e2e:b,simulate:h})];case 2:return!0===(e=o.sent()).success?u.default.openProject({title:null!==(n=null===(r=x.info)||void 0===r?void 0:r.title)&&void 0!==n?n:"Nestia Editor",template:"node",files:e.data.files},{newWindow:!0,openFile:e.data.openFile,startScript:e.data.startScript}):F(JSON.stringify(e.errors,null,2)),[3,4];case 3:return F((t=o.sent())instanceof Error?t.message:"unknown error"),[3,4];case 4:return S(!1),[2]}})})},children:w?"Generating...":"Generate Editor"})]})};var l=r(85893),s=r(47367),u=i(r(79979)),c=i(r(67294)),d=r(68902),p=r(3988)},68902:function(e,t,r){"use strict";var n,o=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,l)}s((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NestiaEditorComposer=void 0;var s=r(73660),u=l(r(21433)),c=l(r(99091)),d=r(73945);!function(e){var t=this;e.nest=function(e){return r({openFile:"README.md,test/start.ts",startScript:["build:test,test",""],migrate:function(t){return t.nest(e)}})(e)},e.sdk=function(e){return o(t,void 0,void 0,function(){return a(this,function(t){return console.log("NestiaEditorComposer.sdk()",e),[2,r({openFile:"README.md,test/start.ts",startScript:["swagger","hello"],migrate:function(t){return t.sdk(e)}})(e)]})})};var r=function(e){return function(r){return o(t,void 0,void 0,function(){var t,n,o,l,p,f,m,h,g;return a(this,function(a){switch(a.label){case 0:if(void 0!==r.files)return[2,{success:!0,data:{files:r.files,openFile:e.openFile,startScript:e.startScript},errors:[]}];return[4,s.MigrateApplication.create(r.document)];case 1:if(!1===(t=a.sent()).success)return[2,t];n=t.data,o=e.migrate(n).files,a.label=2;case 2:a.trys.push([2,9,10,11]),p=(l=i(o)).next(),a.label=3;case 3:if(p.done)return[3,8];if(".ts"!==(f=p.value).file.substring(f.file.length-3))return[3,7];a.label=4;case 4:return a.trys.push([4,6,,7]),m=f,[4,(0,d.format)(f.content,{parser:"typescript",plugins:[u.default,c.default]})];case 5:return m.content=a.sent(),[3,7];case 6:return a.sent(),[3,7];case 7:return p=l.next(),[3,3];case 8:return[3,11];case 9:return h={error:a.sent()},[3,11];case 10:try{p&&!p.done&&(g=l.return)&&g.call(l)}finally{if(h)throw h.error}return[7];case 11:return[2,{success:!0,data:{files:Object.fromEntries(o.map(function(e){return[[e.location,e.location.length?"/":"",e.file].join(""),e.content]})),openFile:e.openFile,startScript:e.startScript},errors:[]}]}})})}}}(n||(t.NestiaEditorComposer=n={}))},3988:function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function l(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,l)}s((n=n.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var r,n,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(s){return function(l){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NestiaEditorFileUploader=function(e){var t=this,r=a(u.default.useState([]),2),i=r[0],d=r[1];return(0,l.jsx)(c.default,{defaultFiles:i,onFilesChange:function(r){return n(t,void 0,void 0,function(){var t,n,a,i,l;return o(this,function(o){switch(o.label){case 0:if(0===r.length)return e.onChange(null,null),[2];return[4,(t=r[r.length-1]).arrayBuffer()];case 1:n=o.sent(),a=new TextDecoder().decode(n),i=t.name.split(".").pop();try{l="json"===i?JSON.parse(a):(0,s.load)(a),e.onChange(l,null)}catch(t){return e.onChange(null,"json"===i?"Invalid JSON file":"Invalid YAML file"),[2]}return r.length>1&&d([t]),[2]}})})},acceptedType:".json, .yaml",getBase64:!1,multiFile:!1,maxUploadFiles:1,title:"Swagger file uploader",header:"Drag and drop a Swagger file here",buttonLabel:"Click Here",rightLabel:"to select swagger.json/yaml file",buttonRemoveLabel:"Clear"})};var l=r(85893),s=r(93320),u=i(r(67294)),c=i(r(88385))},93320:function(e,t,r){"use strict";var n=r(7990),o=r(13150);function a(e,t){return function(){throw Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(71364),e.exports.Schema=r(67657),e.exports.FAILSAFE_SCHEMA=r(44795),e.exports.JSON_SCHEMA=r(35966),e.exports.CORE_SCHEMA=r(9471),e.exports.DEFAULT_SCHEMA=r(86601),e.exports.load=n.load,e.exports.loadAll=n.loadAll,e.exports.dump=o.dump,e.exports.YAMLException=r(88425),e.exports.types={binary:r(43531),float:r(45215),map:r(40945),null:r(30151),pairs:r(6879),set:r(44982),timestamp:r(12156),bool:r(48771),int:r(61518),merge:r(67452),omap:r(51605),seq:r(76451),str:r(48)},e.exports.safeLoad=a("safeLoad","load"),e.exports.safeLoadAll=a("safeLoadAll","loadAll"),e.exports.safeDump=a("safeDump","dump")},8347:function(e){"use strict";function t(e){return null==e}e.exports.isNothing=t,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:t(e)?[]:[e]},e.exports.repeat=function(e,t){var r,n="";for(r=0;r=55296&&n<=56319&&t+1=56320&&r<=57343?(n-55296)*1024+r-56320+65536:n}function y(e){return/^\n* /.test(e)}function D(e,t){var r=y(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function x(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function C(e,t){if(""===e||" "===e[0])return e;for(var r,n,o=/ [^ ]/g,a=0,i=0,l=0,s="";r=o.exec(e);)(l=r.index)-a>t&&(n=i>a?i:l,s+="\n"+e.slice(a,n),a=n+1),i=l;return s+="\n",e.length-a>t&&i>a?s+=e.slice(a,i)+"\n"+e.slice(i+1):s+=e.slice(a),s.slice(1)}function Z(e,t,r,n){var o,a,i,l="",s=e.tag;for(o=0,a=r.length;o tag resolver accepts not "'+d+'" style');e.dump=n}return!0}return!1}function S(e,t,r,a,l,d,g){e.tag=null,e.dump=r,w(e,r,!1)||w(e,r,!0);var F,k=i.call(e.dump),E=a;a&&(a=e.flowLevel<0||e.flowLevel>t);var M,I,j,T="[object Object]"===k||"[object Array]"===k;if(T&&(j=-1!==(I=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||j||2!==e.indent&&t>0)&&(l=!1),j&&e.usedDuplicates[I])e.dump="*ref_"+I;else{if(T&&j&&!e.usedDuplicates[I]&&(e.usedDuplicates[I]=!0),"[object Object]"===k)a&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var a,i,l,s,u,c,d="",p=e.tag,m=Object.keys(r);if(!0===e.sortKeys)m.sort();else if("function"==typeof e.sortKeys)m.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(a=0,i=m.length;a1024)&&(e.dump&&10===e.dump.charCodeAt(0)?c+="?":c+="? "),c+=e.dump,u&&(c+=f(e,t)),S(e,t+1,s,!0,u)&&(e.dump&&10===e.dump.charCodeAt(0)?c+=":":c+=": ",c+=e.dump,d+=c));e.tag=p,e.dump=d||"{}"}(e,t,e.dump,l),j&&(e.dump="&ref_"+I+e.dump)):(!function(e,t,r){var n,o,a,i,l,s="",u=e.tag,c=Object.keys(r);for(n=0,o=c.length;n1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),S(e,t,i,!1,!1)&&(l+=e.dump,s+=l));e.tag=u,e.dump="{"+s+"}"}(e,t,e.dump),j&&(e.dump="&ref_"+I+" "+e.dump));else if("[object Array]"===k)a&&0!==e.dump.length?(e.noArrayIndent&&!g&&t>0?Z(e,t-1,e.dump,l):Z(e,t,e.dump,l),j&&(e.dump="&ref_"+I+e.dump)):(!function(e,t,r){var n,o,a,i="",l=e.tag;for(n=0,o=r.length;n=65536?c+=2:c++){if(!h(d=b(e,c)))return 5;C=C&&v(d,p,l),p=d}else{for(c=0;c=65536?c+=2:c++){if(10===(d=b(e,c)))f=!0,D&&(g=g||c-x-1>n&&" "!==e[x+1],x=c);else if(!h(d))return 5;C=C&&v(d,p,l),p=d}g=g||D&&c-x-1>n&&" "!==e[x+1]}return f||g?r>9&&y(e)?5:i?2===a?5:2:g?4:3:!C||i||o(e)?2===a?5:2:1}(F,d||e.flowLevel>-1&&t>=e.flowLevel,e.indent,a,function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r"+D(F,e.indent)+x(p(function(e,t){for(var r,n,o,a=/(\n+)([^\n]*)/g,i=(r=-1!==(r=e.indexOf("\n"))?r:e.length,a.lastIndex=r,C(e.slice(0,r),t)),l="\n"===e[0]||" "===e[0];o=a.exec(e);){var s=o[1],u=o[2];n=" "===u[0],i+=s+(l||n||""===u?"":"\n")+C(u,t),l=n}return i}(F,a),r));case 5:return'"'+function(e){for(var t,r="",a=0,i=0;i=65536?i+=2:i++)!(t=s[a=b(e,i)])&&h(a)?(r+=e[i],a>=65536&&(r+=e[i+1])):r+=t||function(e){var t,r,a;if(t=e.toString(16).toUpperCase(),e<=255)r="x",a=2;else if(e<=65535)r="u",a=4;else if(e<=4294967295)r="U",a=8;else throw new o("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+n.repeat("0",a-t.length)+t}(a);return r}(F,a)+'"';default:throw new o("impossible error: invalid scalar style")}}());else{if("[object Undefined]"===k||e.skipInvalid)return!1;throw new o("unacceptable kind of an object to dump "+k)}null!==e.tag&&"?"!==e.tag&&(M=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),M="!"===e.tag[0]?"!"+M:"tag:yaml.org,2002:"===M.slice(0,18)?"!!"+M.slice(18):"!<"+M+">",e.dump=M+" "+e.dump)}return!0}e.exports.dump=function(e,t){var r=new d(t=t||{});r.noRefs||function(e,t){var r,n,o=[],a=[];for(function e(t,r,n){var o,a,i;if(null!==t&&"object"==typeof t){if(-1!==(a=r.indexOf(t)))-1===n.indexOf(a)&&n.push(a);else if(r.push(t),Array.isArray(t))for(a=0,i=t.length;a1&&(e.result+=n.repeat("\n",t-1))}function N(e,t){var r,n,o=e.tag,a=e.anchor,i=[],l=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,w(e,"tab characters must not be used in indentation")),45===n&&g(e.input.charCodeAt(e.position+1)));){if(l=!0,e.position++,j(e,!0,-1)&&e.lineIndent<=t){i.push(null),n=e.input.charCodeAt(e.position);continue}if(r=e.line,L(e,t,3,!1,!0),i.push(e.result),j(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)w(e,"bad indentation of a sequence entry");else if(e.lineIndentt?F=1:e.lineIndent===t?F=0:e.lineIndentt?F=1:e.lineIndent===t?F=0:e.lineIndentt)&&(y&&(i=e.line,l=e.lineStart,s=e.position),L(e,t,4,!0,o)&&(y?v=e.result:b=e.result),y||(M(e,p,f,m,v,b,i,l,s),m=v=b=null),j(e,!0,-1),u=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&0!==u)w(e,"bad indentation of a mapping entry");else if(e.lineIndent=0)0===i?w(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?w(e,"repeat of an indentation width identifier"):(d=t+i-1,c=!0);else break;if(h(l)){do l=e.input.charCodeAt(++e.position);while(h(l));if(35===l)do l=e.input.charCodeAt(++e.position);while(!m(l)&&0!==l)}for(;0!==l;){for(I(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!c||e.lineIndentd&&(d=e.lineIndent),m(l)){p++;continue}if(e.lineIndent0){for(o=i,a=0;o>0;o--)(i=function(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}(l=e.input.charCodeAt(++e.position)))>=0?a=(a<<4)+i:w(e,"expected hexadecimal character");e.result+=(u=a)<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320),e.position++}else w(e,"unknown escape sequence");r=n=e.position}else m(l)?(k(e,r,n,!0),A(e,j(e,!1,t)),r=n=e.position):e.position===e.lineStart&&T(e)?w(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}w(e,"unexpected end of the stream within a double quoted scalar")}(e,Z)?P=!0:function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!g(n)&&!v(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&w(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),l.call(e.anchorMap,r)||w(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],j(e,!0,-1),!0}(e)?(P=!0,(null!==e.tag||null!==e.anchor)&&w(e,"alias node should not have any properties")):function(e,t,r){var n,o,a,i,l,s,u,c,d=e.kind,p=e.result;if(g(c=e.input.charCodeAt(e.position))||v(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c||(63===c||45===c)&&(g(n=e.input.charCodeAt(e.position+1))||r&&v(n)))return!1;for(e.kind="scalar",e.result="",o=a=e.position,i=!1;0!==c;){if(58===c){if(g(n=e.input.charCodeAt(e.position+1))||r&&v(n))break}else if(35===c){if(g(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&T(e)||r&&v(c))break;else if(m(c)){if(l=e.line,s=e.lineStart,u=e.lineIndent,j(e,!1,-1),e.lineIndent>=t){i=!0,c=e.input.charCodeAt(e.position);continue}e.position=a,e.line=l,e.lineStart=s,e.lineIndent=u;break}i&&(k(e,o,a,!1),A(e,e.line-l),o=a=e.position,i=!1),h(c)||(a=e.position+1),c=e.input.charCodeAt(++e.position)}return k(e,o,a,!1),!!e.result||(e.kind=d,e.result=p,!1)}(e,Z,1===r)&&(P=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===F&&(P=u&&N(e,S))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&w(e,'unacceptable node kind for ! tag; it should be "scalar", not "'+e.kind+'"'),f=0,b=e.implicitTypes.length;f"),null!==e.result&&C.kind!==e.kind&&w(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+C.kind+'", not "'+e.kind+'"'),C.resolve(e.result,e.tag)?(e.result=C.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):w(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||P}function P(e,t){e=String(e),t=t||{},0!==e.length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new C(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,w(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position0)&&37===o);){for(i=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!g(o);)o=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),n=[],r.length<1&&w(e,"directive name must not be less than one character in length");0!==o;){for(;h(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!m(o));break}if(m(o))break;for(t=e.position;0!==o&&!g(o);)o=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==o&&I(e),l.call(F,r)?F[r](e,r,n):S(e,'unknown document directive "'+r+'"')}if(j(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,j(e,!0,-1)):i&&w(e,"directives end mark is expected"),L(e,e.lineIndent-1,4,!1,!0),j(e,!0,-1),e.checkLineBreaks&&u.test(e.input.slice(a,e.position))&&S(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&T(e)){46===e.input.charCodeAt(e.position)&&(e.position+=3,j(e,!0,-1));return}e.positionl&&(t=n-l+(a=" ... ").length),r-n>l&&(r=n+l-(i=" ...").length),{str:a+e.slice(t,r).replace(/\t/g,"→")+i,pos:n-t+a.length}}function a(e,t){return n.repeat(" ",t-e.length)+e}e.exports=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],l=[],s=-1;u=r.exec(e.buffer);)l.push(u.index),i.push(u.index+u[0].length),e.position<=u.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var u,c,d,p="",f=Math.min(e.line+t.linesAfter,l.length).toString().length,m=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(s-c<0);c++)d=o(e.buffer,i[s-c],l[s-c],e.position-(i[s]-i[s-c]),m),p=n.repeat(" ",t.indent)+a((e.line-c+1).toString(),f)+" | "+d.str+"\n"+p;for(d=o(e.buffer,i[s],l[s],e.position,m),p+=n.repeat(" ",t.indent)+a((e.line+1).toString(),f)+" | "+d.str+"\n"+n.repeat("-",t.indent+f+3+d.pos)+"^\n",c=1;c<=t.linesAfter&&!(s+c>=l.length);c++)d=o(e.buffer,i[s+c],l[s+c],e.position-(i[s]-i[s+c]),m),p+=n.repeat(" ",t.indent)+a((e.line+c+1).toString(),f)+" | "+d.str+"\n";return p.replace(/\n$/,"")}},71364:function(e,t,r){"use strict";var n=r(88425),o=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];e.exports=function(e,t){var r,i;if(Object.keys(t=t||{}).forEach(function(t){if(-1===o.indexOf(t))throw new n('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=(r=t.styleAliases||null,i={},null!==r&&Object.keys(r).forEach(function(e){r[e].forEach(function(t){i[String(t)]=e})}),i),-1===a.indexOf(this.kind))throw new n('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},43531:function(e,t,r){"use strict";var n=r(71364),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new n("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,a=e.length;for(r=0;r64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),a=n.length,i=0,l=[];for(t=0;t>16&255),l.push(i>>8&255),l.push(255&i)),i=i<<6|o.indexOf(n.charAt(t));return 0==(r=a%4*6)?(l.push(i>>16&255),l.push(i>>8&255),l.push(255&i)):18===r?(l.push(i>>10&255),l.push(i>>2&255)):12===r&&l.push(i>>4&255),new Uint8Array(l)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",a=0,i=e.length;for(t=0;t>18&63]+o[a>>12&63]+o[a>>6&63]+o[63&a]),a=(a<<8)+e[t];return 0==(r=i%3)?n+=o[a>>18&63]+o[a>>12&63]+o[a>>6&63]+o[63&a]:2===r?n+=o[a>>10&63]+o[a>>4&63]+o[a<<2&63]+o[64]:1===r&&(n+=o[a>>2&63]+o[a<<4&63]+o[64]+o[64]),n}})},48771:function(e,t,r){"use strict";var n=r(71364);e.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},45215:function(e,t,r){"use strict";var n=r(8347),o=r(71364),a=RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),i=/^[-+]?[0-9]+e/;e.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return!!(null!==e&&a.test(e)&&"_"!==e[e.length-1])},construct:function(e){var t,r;return(r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t)?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return r=e.toString(10),i.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},61518:function(e,t,r){"use strict";var n=r(8347),o=r(71364);e.exports=new o("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n,o,a=e.length,i=0,l=!1;if(!a)return!1;if(("-"===(o=e[i])||"+"===o)&&(o=e[++i]),"0"===o){if(i+1===a)return!0;if("b"===(o=e[++i])){for(i++;i=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},40945:function(e,t,r){"use strict";var n=r(71364);e.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},67452:function(e,t,r){"use strict";var n=r(71364);e.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},30151:function(e,t,r){"use strict";var n=r(71364);e.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})},51605:function(e,t,r){"use strict";var n=r(71364),o=Object.prototype.hasOwnProperty,a=Object.prototype.toString;e.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,i,l,s=[];for(t=0,r=e.length;t{let{classes:t}=e;return(0,l.Z)({root:["root"]},d.E,t)},h=(0,s.ZP)(c.Z,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{fontWeight:t.typography.fontWeightMedium,marginTop:-2}}),g=a.forwardRef(function(e,t){let r=(0,u.Z)({props:e,name:"MuiAlertTitle"}),{className:a}=r,l=(0,o.Z)(r,f),s=m(r);return(0,p.jsx)(h,(0,n.Z)({gutterBottom:!0,component:"div",ownerState:r,ref:t,className:(0,i.Z)(s.root,a)},l))});t.Z=g},65485:function(e,t,r){"use strict";r.d(t,{E:function(){return a}});var n=r(1588),o=r(34867);function a(e){return(0,o.ZP)("MuiAlertTitle",e)}let i=(0,n.Z)("MuiAlertTitle",["root"]);t.Z=i},47367:function(e,t,r){"use strict";let n,o;r.r(t),r.d(t,{Accordion:function(){return eL},AccordionActions:function(){return eW},AccordionDetails:function(){return eV},AccordionSummary:function(){return e2},Alert:function(){return e4.Z},AlertTitle:function(){return e5.Z},AppBar:function(){return to},Autocomplete:function(){return rD},Avatar:function(){return rx.Z},AvatarGroup:function(){return rI},Backdrop:function(){return rO},Badge:function(){return rY},BottomNavigation:function(){return rK},BottomNavigationAction:function(){return r5},Box:function(){return r8.Z},Breadcrumbs:function(){return nd},Button:function(){return np.Z},ButtonBase:function(){return e$.Z},ButtonGroup:function(){return nw},ButtonGroupButtonContext:function(){return nD.Z},ButtonGroupContext:function(){return ny.Z},Card:function(){return nI},CardActionArea:function(){return nj.Z},CardActions:function(){return nB},CardContent:function(){return nO.Z},CardHeader:function(){return nq},CardMedia:function(){return n4},Checkbox:function(){return oi},Chip:function(){return t2},CircularProgress:function(){return ok},ClickAwayListener:function(){return oM},Collapse:function(){return eg},Container:function(){return oI.Z},CssBaseline:function(){return o_},Dialog:function(){return au},DialogActions:function(){return ah},DialogContent:function(){return aZ},DialogContentText:function(){return aM},DialogTitle:function(){return aA},Divider:function(){return aN.Z},Drawer:function(){return aJ},Experimental_CssVarsProvider:function(){return N.Experimental_CssVarsProvider},Fab:function(){return a5},Fade:function(){return rA},FilledInput:function(){return iw},FormControl:function(){return iS.Z},FormControlLabel:function(){return ik.Z},FormGroup:function(){return iM.Z},FormHelperText:function(){return iP},FormLabel:function(){return iR.Z},FormLabelRoot:function(){return iR.D},GlobalStyles:function(){return oB},Grid:function(){return iO.ZP},Grow:function(){return lp},Hidden:function(){return lf.Z},Icon:function(){return lD},IconButton:function(){return tY.Z},ImageList:function(){return lE},ImageListItem:function(){return lL},ImageListItemBar:function(){return lG},Input:function(){return lX},InputAdornment:function(){return l4},InputBase:function(){return ib},InputLabel:function(){return l7},LinearProgress:function(){return sS},Link:function(){return sP},List:function(){return sU},ListItem:function(){return s8},ListItemAvatar:function(){return ur},ListItemButton:function(){return ui},ListItemIcon:function(){return up},ListItemSecondaryAction:function(){return s0},ListItemText:function(){return ub},ListSubheader:function(){return tG},Menu:function(){return uq},MenuItem:function(){return u1},MenuList:function(){return uS},MobileStepper:function(){return ce},Modal:function(){return o7},ModalManager:function(){return oK},NativeSelect:function(){return ch},NoSsr:function(){return cg},OutlinedInput:function(){return cF},Pagination:function(){return cq},PaginationItem:function(){return cU},Paper:function(){return ev.Z},Popover:function(){return uB},PopoverPaper:function(){return uR},PopoverRoot:function(){return uP},Popper:function(){return tB},Portal:function(){return tD},Radio:function(){return cX.Z},RadioGroup:function(){return cJ.Z},Rating:function(){return dp},ScopedCssBaseline:function(){return db},Select:function(){return dP},Skeleton:function(){return d0},Slide:function(){return az},Slider:function(){return pg},SliderMark:function(){return pp},SliderMarkLabel:function(){return pf},SliderRail:function(){return ps},SliderRoot:function(){return pl},SliderThumb:function(){return pc},SliderTrack:function(){return pu},SliderValueLabel:function(){return pd},Snackbar:function(){return pj},SnackbarContent:function(){return pw},SpeedDial:function(){return pG},SpeedDialAction:function(){return fr},SpeedDialIcon:function(){return fc},Stack:function(){return fd.Z},Step:function(){return fw},StepButton:function(){return fQ},StepConnector:function(){return f4},StepContent:function(){return me},StepContext:function(){return fb},StepIcon:function(){return fN},StepLabel:function(){return fH},Stepper:function(){return ml},StepperContext:function(){return fh},StyledEngineProvider:function(){return N.StyledEngineProvider},SvgIcon:function(){return fk.Z},SwipeableDrawer:function(){return mD},Switch:function(){return mx.Z},THEME_ID:function(){return N.THEME_ID},Tab:function(){return mE},TabScrollButton:function(){return h4},Table:function(){return mP},TableBody:function(){return mG},TableCell:function(){return mX},TableContainer:function(){return m4},TableFooter:function(){return ht},TableHead:function(){return hu},TablePagination:function(){return hA},TableRow:function(){return hO},TableSortLabel:function(){return hV},Tabs:function(){return gl},TextField:function(){return gm},TextareaAutosize:function(){return io},ThemeProvider:function(){return N.ThemeProvider},ToggleButton:function(){return gw},ToggleButtonGroup:function(){return gI},Toolbar:function(){return hh},Tooltip:function(){return p3},Typography:function(){return r9.Z},Unstable_Grid2:function(){return ln},Unstable_TrapFocus:function(){return o2},Zoom:function(){return pN},accordionActionsClasses:function(){return eR},accordionClasses:function(){return ej},accordionDetailsClasses:function(){return eU},accordionSummaryClasses:function(){return eQ},adaptV4Theme:function(){return N.adaptV4Theme},alertClasses:function(){return e3.Z},alertTitleClasses:function(){return e8.Z},alpha:function(){return N.alpha},appBarClasses:function(){return e7},autocompleteClasses:function(){return ro},avatarClasses:function(){return rC.Z},avatarGroupClasses:function(){return rw},backdropClasses:function(){return rL},badgeClasses:function(){return rW},bottomNavigationActionClasses:function(){return r0},bottomNavigationClasses:function(){return r$},boxClasses:function(){return r6.Z},breadcrumbsClasses:function(){return na},buttonBaseClasses:function(){return nm.Z},buttonClasses:function(){return nf.Z},buttonGroupClasses:function(){return nb},capitalize:function(){return L.capitalize},cardActionAreaClasses:function(){return nT.Z},cardActionsClasses:function(){return nN},cardClasses:function(){return nF},cardContentClasses:function(){return nz.Z},cardHeaderClasses:function(){return n_},cardMediaClasses:function(){return nX},checkboxClasses:function(){return n7},chipClasses:function(){return tQ},circularProgressClasses:function(){return oc},collapseClasses:function(){return es},colors:function(){return f},containerClasses:function(){return oT},createChainedFunction:function(){return L.createChainedFunction},createFilterOptions:function(){return td},createMuiTheme:function(){return N.createMuiTheme},createStyles:function(){return N.createStyles},createSvgIcon:function(){return L.createSvgIcon},createTheme:function(){return N.createTheme},css:function(){return N.css},darkScrollbar:function(){return oH},darken:function(){return N.darken},debounce:function(){return L.debounce},decomposeColor:function(){return N.decomposeColor},deprecatedPropType:function(){return L.deprecatedPropType},dialogActionsClasses:function(){return ad},dialogClasses:function(){return at},dialogContentClasses:function(){return av},dialogContentTextClasses:function(){return aS},dialogTitleClasses:function(){return ay},dividerClasses:function(){return aL.Z},drawerClasses:function(){return a_},duration:function(){return N.duration},easing:function(){return N.easing},emphasize:function(){return N.emphasize},experimentalStyled:function(){return N.experimentalStyled},experimental_extendTheme:function(){return N.experimental_extendTheme},experimental_sx:function(){return N.experimental_sx},fabClasses:function(){return a1},filledInputClasses:function(){return re},formControlClasses:function(){return iF.Z},formControlLabelClasses:function(){return iE.Z},formGroupClasses:function(){return iI.Z},formHelperTextClasses:function(){return iT},formLabelClasses:function(){return iB.Z},generateUtilityClass:function(){return ei.ZP},generateUtilityClasses:function(){return ea.Z},getAccordionActionsUtilityClass:function(){return eP},getAccordionDetailsUtilityClass:function(){return e_},getAccordionSummaryUtilityClass:function(){return eq},getAccordionUtilityClass:function(){return eI},getAlertTitleUtilityClass:function(){return e8.E},getAlertUtilityClass:function(){return e3.t},getAppBarUtilityClass:function(){return e9},getAutocompleteUtilityClass:function(){return rn},getAvatarGroupUtilityClass:function(){return rZ},getAvatarUtilityClass:function(){return rC.$},getBackdropUtilityClass:function(){return rN},getBadgeUtilityClass:function(){return rz},getBottomNavigationActionUtilityClass:function(){return rJ},getBottomNavigationUtilityClass:function(){return rV},getBreadcrumbsUtilityClass:function(){return no},getButtonBaseUtilityClass:function(){return nm.$},getButtonGroupUtilityClass:function(){return nv},getButtonUtilityClass:function(){return nf.F},getCardActionAreaUtilityClass:function(){return nT.J},getCardActionsUtilityClass:function(){return nA},getCardContentUtilityClass:function(){return nz.N},getCardHeaderUtilityClass:function(){return nW},getCardMediaUtilityClass:function(){return nQ},getCardUtilityClass:function(){return nS},getCheckboxUtilityClass:function(){return n9},getChipUtilityClass:function(){return tq},getCircularProgressUtilityClass:function(){return ou},getCollapseUtilityClass:function(){return el},getContainerUtilityClass:function(){return oj},getContrastRatio:function(){return N.getContrastRatio},getDialogActionsUtilityClass:function(){return ac},getDialogContentTextUtilityClass:function(){return aw},getDialogContentUtilityClass:function(){return ag},getDialogTitleUtilityClass:function(){return ab},getDialogUtilityClass:function(){return ae},getDividerUtilityClass:function(){return aL.V},getDrawerUtilityClass:function(){return aW},getFabUtilityClass:function(){return a0},getFilledInputUtilityClass:function(){return t7},getFormControlLabelUtilityClasses:function(){return iE.r},getFormControlUtilityClasses:function(){return iF.e},getFormGroupUtilityClass:function(){return iI.y},getFormHelperTextUtilityClasses:function(){return ij},getFormLabelUtilityClasses:function(){return iB.M},getGrid2UtilityClass:function(){return lo},getGridUtilityClass:function(){return iz.H},getIconButtonUtilityClass:function(){return lx.r},getIconUtilityClass:function(){return lm},getImageListItemBarUtilityClass:function(){return lP},getImageListItemUtilityClass:function(){return lI},getImageListUtilityClass:function(){return lC},getInitColorSchemeScript:function(){return N.getInitColorSchemeScript},getInputAdornmentUtilityClass:function(){return lK},getInputBaseUtilityClass:function(){return t4},getInputLabelUtilityClasses:function(){return l3},getInputUtilityClass:function(){return t5},getLinearProgressUtilityClass:function(){return se},getLinkUtilityClass:function(){return sk},getListItemAvatarUtilityClass:function(){return s6},getListItemButtonUtilityClass:function(){return sY},getListItemIconUtilityClass:function(){return ul},getListItemSecondaryActionClassesUtilityClass:function(){return s$},getListItemTextUtilityClass:function(){return uf},getListItemUtilityClass:function(){return sH},getListSubheaderUtilityClass:function(){return tO},getListUtilityClass:function(){return sB},getLuminance:function(){return N.getLuminance},getMenuItemUtilityClass:function(){return uQ},getMenuUtilityClass:function(){return uO},getMobileStepperUtilityClass:function(){return u2},getModalUtilityClass:function(){return o4},getNativeSelectUtilityClasses:function(){return ct},getOffsetLeft:function(){return uT},getOffsetTop:function(){return uj},getOutlinedInputUtilityClass:function(){return t6},getOverlayAlpha:function(){return N.getOverlayAlpha},getPaginationItemUtilityClass:function(){return cj},getPaginationUtilityClass:function(){return ck},getPaperUtilityClass:function(){return cQ.J},getPopoverUtilityClass:function(){return uF},getRadioUtilityClass:function(){return cK.l},getRatingUtilityClass:function(){return c8},getScopedCssBaselineUtilityClass:function(){return df},getSelectUtilityClasses:function(){return dy},getSkeletonUtilityClass:function(){return dB},getSliderUtilityClass:function(){return pr},getSnackbarContentUtilityClass:function(){return pv},getSnackbarUtilityClass:function(){return pS},getSpeedDialActionUtilityClass:function(){return p5},getSpeedDialIconUtilityClass:function(){return fo},getSpeedDialUtilityClass:function(){return pL},getStepButtonUtilityClass:function(){return fG},getStepConnectorUtilityClass:function(){return fX},getStepContentUtilityClass:function(){return f3},getStepIconUtilityClass:function(){return fE},getStepLabelUtilityClass:function(){return fL},getStepUtilityClass:function(){return fy},getStepperUtilityClass:function(){return mt},getSvgIconUtilityClass:function(){return ms.h},getSwitchUtilityClass:function(){return mC.H},getTabScrollButtonUtilityClass:function(){return hK},getTabUtilityClass:function(){return mZ},getTableBodyUtilityClass:function(){return mB},getTableCellUtilityClass:function(){return mY},getTableContainerUtilityClass:function(){return mK},getTableFooterUtilityClass:function(){return m3},getTableHeadUtilityClass:function(){return hr},getTablePaginationUtilityClass:function(){return hD},getTableRowUtilityClass:function(){return hN},getTableSortLabelUtilityClass:function(){return hW},getTableUtilityClass:function(){return mI},getTabsUtilityClass:function(){return h3},getTextFieldUtilityClass:function(){return gs},getToggleButtonGroupUtilityClass:function(){return gS},getToggleButtonUtilityClass:function(){return gg},getToolbarUtilityClass:function(){return hc},getTooltipUtilityClass:function(){return pV},getTouchRippleUtilityClass:function(){return nh.H},getTypographyUtilityClass:function(){return gj.f},grid2Classes:function(){return li},gridClasses:function(){return iz.Z},hexToRgb:function(){return N.hexToRgb},hslToRgb:function(){return N.hslToRgb},iconButtonClasses:function(){return lx.Z},iconClasses:function(){return lh},imageListClasses:function(){return lZ},imageListItemBarClasses:function(){return lR},imageListItemClasses:function(){return lj},inputAdornmentClasses:function(){return lJ},inputBaseClasses:function(){return t3},inputClasses:function(){return t8},inputLabelClasses:function(){return l5},isMuiElement:function(){return L.isMuiElement},keyframes:function(){return N.keyframes},lighten:function(){return N.lighten},linearProgressClasses:function(){return st},linkClasses:function(){return sE},listClasses:function(){return sO},listItemAvatarClasses:function(){return s9},listItemButtonClasses:function(){return sV},listItemClasses:function(){return sG},listItemIconClasses:function(){return us},listItemSecondaryActionClasses:function(){return sq},listItemTextClasses:function(){return um},listSubheaderClasses:function(){return tz},makeStyles:function(){return N.makeStyles},menuClasses:function(){return uz},menuItemClasses:function(){return uX},mobileStepperClasses:function(){return u4},modalClasses:function(){return o3},nativeSelectClasses:function(){return cr},outlinedInputClasses:function(){return t9},ownerDocument:function(){return L.ownerDocument},ownerWindow:function(){return L.ownerWindow},paginationClasses:function(){return cE},paginationItemClasses:function(){return cT},paperClasses:function(){return cQ.Z},popoverClasses:function(){return uk},private_createMixins:function(){return N.private_createMixins},private_createTypography:function(){return N.private_createTypography},private_excludeVariablesFromRoot:function(){return N.private_excludeVariablesFromRoot},radioClasses:function(){return cK.Z},ratingClasses:function(){return c6},recomposeColor:function(){return N.recomposeColor},requirePropFactory:function(){return L.requirePropFactory},responsiveFontSizes:function(){return N.responsiveFontSizes},rgbToHex:function(){return N.rgbToHex},scopedCssBaselineClasses:function(){return dm},selectClasses:function(){return dD},setRef:function(){return L.setRef},shouldSkipGeneratingVar:function(){return N.shouldSkipGeneratingVar},skeletonClasses:function(){return dO},sliderClasses:function(){return pn},snackbarClasses:function(){return pF},snackbarContentClasses:function(){return pb},speedDialActionClasses:function(){return p8},speedDialClasses:function(){return pP},speedDialIconClasses:function(){return fa},stackClasses:function(){return fp},stepButtonClasses:function(){return fY},stepClasses:function(){return fD},stepConnectorClasses:function(){return fK},stepContentClasses:function(){return f5},stepIconClasses:function(){return fM},stepLabelClasses:function(){return fP},stepperClasses:function(){return mr},styled:function(){return N.styled},svgIconClasses:function(){return ms.Z},switchClasses:function(){return mC.Z},tabClasses:function(){return mw},tabScrollButtonClasses:function(){return hJ},tableBodyClasses:function(){return mO},tableCellClasses:function(){return mV},tableClasses:function(){return mj},tableContainerClasses:function(){return mJ},tableFooterClasses:function(){return m5},tableHeadClasses:function(){return hn},tablePaginationClasses:function(){return hx},tableRowClasses:function(){return hL},tableSortLabelClasses:function(){return h_},tabsClasses:function(){return h5},textFieldClasses:function(){return gu},toggleButtonClasses:function(){return gv},toggleButtonGroupClasses:function(){return gF},toolbarClasses:function(){return hd},tooltipClasses:function(){return p$},touchRippleClasses:function(){return nh.Z},typographyClasses:function(){return gj.Z},unstable_ClassNameGenerator:function(){return L.unstable_ClassNameGenerator},unstable_composeClasses:function(){return z.Z},unstable_createMuiStrictModeTheme:function(){return N.unstable_createMuiStrictModeTheme},unstable_getUnit:function(){return N.unstable_getUnit},unstable_toUnitless:function(){return N.unstable_toUnitless},unstable_useEnhancedEffect:function(){return L.unstable_useEnhancedEffect},unstable_useId:function(){return L.unstable_useId},unsupportedProp:function(){return L.unsupportedProp},useAutocomplete:function(){return th},useColorScheme:function(){return N.useColorScheme},useControlled:function(){return L.useControlled},useEventCallback:function(){return L.useEventCallback},useForkRef:function(){return L.useForkRef},useFormControl:function(){return il.Z},useIsFocusVisible:function(){return L.useIsFocusVisible},useMediaQuery:function(){return gT.Z},usePagination:function(){return cI},useRadioGroup:function(){return c0.Z},useScrollTrigger:function(){return gP},useStepContext:function(){return fv},useStepperContext:function(){return fm},useTheme:function(){return N.useTheme},useThemeProps:function(){return N.useThemeProps},withStyles:function(){return N.withStyles},withTheme:function(){return N.withTheme}});var a,i,l,s,u,c,d,p,f={};r.r(f),r.d(f,{amber:function(){return E},blue:function(){return D.Z},blueGrey:function(){return A},brown:function(){return j},common:function(){return m.Z},cyan:function(){return C},deepOrange:function(){return I},deepPurple:function(){return b},green:function(){return w.Z},grey:function(){return T.Z},indigo:function(){return y},lightBlue:function(){return x.Z},lightGreen:function(){return S},lime:function(){return F},orange:function(){return M.Z},pink:function(){return g},purple:function(){return v.Z},red:function(){return h.Z},teal:function(){return Z},yellow:function(){return k}});var m=r(86332),h=r(86372),g={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},v=r(3676),b={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},y={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},D=r(14973),x=r(93620),C={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},Z={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},w=r(35271),S={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},F={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},k={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},E={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},M=r(40592),I={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},j={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},T=r(4761),A={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},N=r(54326),L=r(21180),P=r(63366),R=r(87462),B=r(67294);r(59864);var O=r(90512),z=r(94780),W=r(89262),_=r(59145),U=r(75068),H=r(73935),G={disabled:!1},Y=r(220),V="unmounted",$="exited",q="entering",Q="entered",X="exiting",K=function(e){function t(t,r){n=e.call(this,t,r)||this;var n,o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=$,n.appearStatus=q):o=Q:o=t.unmountOnExit||t.mountOnEnter?V:$,n.state={status:o},n.nextCallback=null,n}(0,U.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===V?{status:$}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==q&&r!==Q&&(t=q):(r===q||r===Q)&&(t=X)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===q){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:H.findDOMNode(this);r&&r.scrollTop}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===$&&this.setState({status:V})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[H.findDOMNode(this),n],a=o[0],i=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;if(!e&&!r||G.disabled){this.safeSetState({status:Q},function(){t.props.onEntered(a)});return}this.props.onEnter(a,i),this.safeSetState({status:q},function(){t.props.onEntering(a,i),t.onTransitionEnd(s,function(){t.safeSetState({status:Q},function(){t.props.onEntered(a,i)})})})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:H.findDOMNode(this);if(!t||G.disabled){this.safeSetState({status:$},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:X},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:$},function(){e.props.onExited(n)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:H.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===V)return null;var t=this.props,r=t.children,n=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,P.Z)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return B.createElement(Y.Z.Provider,{value:null},"function"==typeof r?r(e,n):B.cloneElement(B.Children.only(r),n))},t}(B.Component);function J(){}K.contextType=Y.Z,K.propTypes={},K.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:J,onEntering:J,onEntered:J,onExit:J,onExiting:J,onExited:J},K.UNMOUNTED=V,K.EXITED=$,K.ENTERING=q,K.ENTERED=Q,K.EXITING=X;var ee=r(5713);let et=e=>e.scrollTop;function er(e,t){var r,n;let{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(r=i.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=i.transitionTimingFunction)?n:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}var en=r(49360),eo=r(28735),ea=r(1588),ei=r(34867);function el(e){return(0,ei.ZP)("MuiCollapse",e)}var es=(0,ea.Z)("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]),eu=r(85893);let ec=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],ed=e=>{let{orientation:t,classes:r}=e;return(0,z.Z)({root:["root","".concat(t)],entered:["entered"],hidden:["hidden"],wrapper:["wrapper","".concat(t)],wrapperInner:["wrapperInner","".concat(t)]},el,r)},ep=(0,W.ZP)("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation],"entered"===r.state&&t.entered,"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&t.hidden]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===r.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===r.state&&(0,R.Z)({height:"auto",overflow:"visible"},"horizontal"===r.orientation&&{width:"auto"}),"exited"===r.state&&!r.in&&"0px"===r.collapsedSize&&{visibility:"hidden"})}),ef=(0,W.ZP)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})}),em=(0,W.ZP)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(e=>{let{ownerState:t}=e;return(0,R.Z)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})}),eh=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCollapse"}),{addEndListener:n,children:o,className:a,collapsedSize:i="0px",component:l,easing:s,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,orientation:g="vertical",style:v,timeout:b=ee.x9.standard,TransitionComponent:y=K}=r,D=(0,P.Z)(r,ec),x=(0,R.Z)({},r,{orientation:g,collapsedSize:i}),C=ed(x),Z=(0,en.Z)(),w=B.useRef(),S=B.useRef(null),F=B.useRef(),k="number"==typeof i?"".concat(i,"px"):i,E="horizontal"===g,M=E?"width":"height";B.useEffect(()=>()=>{clearTimeout(w.current)},[]);let I=B.useRef(null),j=(0,eo.Z)(t,I),T=e=>t=>{if(e){let r=I.current;void 0===t?e(r):e(r,t)}},A=()=>S.current?S.current[E?"clientWidth":"clientHeight"]:0,N=T((e,t)=>{S.current&&E&&(S.current.style.position="absolute"),e.style[M]=k,c&&c(e,t)}),L=T((e,t)=>{let r=A();S.current&&E&&(S.current.style.position="");let{duration:n,easing:o}=er({style:v,timeout:b,easing:s},{mode:"enter"});if("auto"===b){let t=Z.transitions.getAutoHeightDuration(r);e.style.transitionDuration="".concat(t,"ms"),F.current=t}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style[M]="".concat(r,"px"),e.style.transitionTimingFunction=o,p&&p(e,t)}),z=T((e,t)=>{e.style[M]="auto",d&&d(e,t)}),W=T(e=>{e.style[M]="".concat(A(),"px"),f&&f(e)}),U=T(m),H=T(e=>{let t=A(),{duration:r,easing:n}=er({style:v,timeout:b,easing:s},{mode:"exit"});if("auto"===b){let r=Z.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),F.current=r}else e.style.transitionDuration="string"==typeof r?r:"".concat(r,"ms");e.style[M]=k,e.style.transitionTimingFunction=n,h&&h(e)});return(0,eu.jsx)(y,(0,R.Z)({in:u,onEnter:N,onEntered:z,onEntering:L,onExit:W,onExited:U,onExiting:H,addEndListener:e=>{"auto"===b&&(w.current=setTimeout(e,F.current||0)),n&&n(I.current,e)},nodeRef:I,timeout:"auto"===b?null:b},D,{children:(e,t)=>(0,eu.jsx)(ep,(0,R.Z)({as:l,className:(0,O.Z)(C.root,a,{entered:C.entered,exited:!u&&"0px"===k&&C.hidden}[e]),style:(0,R.Z)({[E?"minWidth":"minHeight"]:k},v),ownerState:(0,R.Z)({},x,{state:e}),ref:j},t,{children:(0,eu.jsx)(ef,{ownerState:(0,R.Z)({},x,{state:e}),className:C.wrapper,ref:S,children:(0,eu.jsx)(em,{ownerState:(0,R.Z)({},x,{state:e}),className:C.wrapperInner,children:o})})}))}))});eh.muiSupportAuto=!0;var eg=eh,ev=r(69216);let eb=B.createContext({});var ey=r(61890),eD=r(33703);function ex(e,t,r){return"function"==typeof e?e(t,r):e}function eC(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}function eZ(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}function ew(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){let e=(0,O.Z)(null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),t=(0,R.Z)({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),i=(0,R.Z)({},r,o,n);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}let i=eC((0,R.Z)({},o,n)),l=eZ(n),s=eZ(o),u=t(i),c=(0,O.Z)(null==u?void 0:u.className,null==r?void 0:r.className,a,null==o?void 0:o.className,null==n?void 0:n.className),d=(0,R.Z)({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=(0,R.Z)({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function eS(e){return"string"==typeof e}function eF(e,t,r){return void 0===e||eS(e)?t:(0,R.Z)({},t,{ownerState:(0,R.Z)({},t.ownerState,r)})}let ek=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],eE=["component","slots","slotProps"],eM=["component"];function eI(e){return(0,ei.ZP)("MuiAccordion",e)}var ej=(0,ea.Z)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);let eT=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","slots","slotProps","TransitionComponent","TransitionProps"],eA=e=>{let{classes:t,square:r,expanded:n,disabled:o,disableGutters:a}=e;return(0,z.Z)({root:["root",!r&&"rounded",n&&"expanded",o&&"disabled",!a&&"gutters"],region:["region"]},eI,t)},eN=(0,W.ZP)(ev.Z,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(ej.region)]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(e=>{let{theme:t}=e,r={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],r),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],r)},"&:first-of-type":{"&::before":{display:"none"}},["&.".concat(ej.expanded)]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},["&.".concat(ej.disabled)]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}},e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},!r.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!r.disableGutters&&{["&.".concat(ej.expanded)]:{margin:"16px 0"}})});var eL=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiAccordion"}),{children:n,className:o,defaultExpanded:a=!1,disabled:i=!1,disableGutters:l=!1,expanded:s,onChange:u,square:c=!1,slots:d={},slotProps:p={},TransitionComponent:f,TransitionProps:m}=r,h=(0,P.Z)(r,eT),[g,v]=(0,ey.Z)({controlled:s,default:a,name:"Accordion",state:"expanded"}),b=B.useCallback(e=>{v(!g),u&&u(e,!g)},[g,u,v]),[y,...D]=B.Children.toArray(n),x=B.useMemo(()=>({expanded:g,disabled:i,disableGutters:l,toggle:b}),[g,i,l,b]),C=(0,R.Z)({},r,{square:c,disabled:i,disableGutters:l,expanded:g}),Z=eA(C),[w,S]=function(e,t){let{className:r,elementType:n,ownerState:o,externalForwardedProps:a,getSlotOwnerState:i,internalForwardedProps:l}=t,s=(0,P.Z)(t,ek),{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0}}=a,p=(0,P.Z)(a,eE),f=c[e]||n,m=ex(d[e],o),h=ew((0,R.Z)({className:r},s,{externalForwardedProps:"root"===e?p:void 0,externalSlotProps:m})),{props:{component:g},internalRef:v}=h,b=(0,P.Z)(h.props,eM),y=(0,eD.Z)(v,null==m?void 0:m.ref,t.ref),D=i?i(b):{},x=(0,R.Z)({},o,D),C="root"===e?g||u:g,Z=eF(f,(0,R.Z)({},"root"===e&&!u&&!c[e]&&l,"root"!==e&&!c[e]&&l,b,C&&{as:C},{ref:y}),x);return Object.keys(D).forEach(e=>{delete Z[e]}),[f,Z]}("transition",{elementType:eg,externalForwardedProps:{slots:(0,R.Z)({transition:f},d),slotProps:(0,R.Z)({transition:m},p)},ownerState:C});return delete S.ownerState,(0,eu.jsxs)(eN,(0,R.Z)({className:(0,O.Z)(Z.root,o),ref:t,ownerState:C,square:c},h,{children:[(0,eu.jsx)(eb.Provider,{value:x,children:y}),(0,eu.jsx)(w,(0,R.Z)({in:g,timeout:"auto"},S,{children:(0,eu.jsx)("div",{"aria-labelledby":y.props.id,id:y.props["aria-controls"],role:"region",className:Z.region,children:D})}))]}))});function eP(e){return(0,ei.ZP)("MuiAccordionActions",e)}var eR=(0,ea.Z)("MuiAccordionActions",["root","spacing"]);let eB=["className","disableSpacing"],eO=e=>{let{classes:t,disableSpacing:r}=e;return(0,z.Z)({root:["root",!r&&"spacing"]},eP,t)},ez=(0,W.ZP)("div",{name:"MuiAccordionActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})});var eW=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiAccordionActions"}),{className:n,disableSpacing:o=!1}=r,a=(0,P.Z)(r,eB),i=(0,R.Z)({},r,{disableSpacing:o}),l=eO(i);return(0,eu.jsx)(ez,(0,R.Z)({className:(0,O.Z)(l.root,n),ref:t,ownerState:i},a))});function e_(e){return(0,ei.ZP)("MuiAccordionDetails",e)}var eU=(0,ea.Z)("MuiAccordionDetails",["root"]);let eH=["className"],eG=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},e_,t)},eY=(0,W.ZP)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{padding:t.spacing(1,2,2)}});var eV=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiAccordionDetails"}),{className:n}=r,o=(0,P.Z)(r,eH),a=eG(r);return(0,eu.jsx)(eY,(0,R.Z)({className:(0,O.Z)(a.root,n),ref:t,ownerState:r},o))}),e$=r(11506);function eq(e){return(0,ei.ZP)("MuiAccordionSummary",e)}var eQ=(0,ea.Z)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);let eX=["children","className","expandIcon","focusVisibleClassName","onClick"],eK=e=>{let{classes:t,expanded:r,disabled:n,disableGutters:o}=e;return(0,z.Z)({root:["root",r&&"expanded",n&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},eq,t)},eJ=(0,W.ZP)(e$.Z,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t,ownerState:r}=e,n={duration:t.transitions.duration.shortest};return(0,R.Z)({display:"flex",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],n),["&.".concat(eQ.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(eQ.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["&:hover:not(.".concat(eQ.disabled,")")]:{cursor:"pointer"}},!r.disableGutters&&{["&.".concat(eQ.expanded)]:{minHeight:64}})}),e0=(0,W.ZP)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",flexGrow:1,margin:"12px 0"},!r.disableGutters&&{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),["&.".concat(eQ.expanded)]:{margin:"20px 0"}})}),e1=(0,W.ZP)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(e=>{let{theme:t}=e;return{display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),["&.".concat(eQ.expanded)]:{transform:"rotate(180deg)"}}});var e2=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiAccordionSummary"}),{children:n,className:o,expandIcon:a,focusVisibleClassName:i,onClick:l}=r,s=(0,P.Z)(r,eX),{disabled:u=!1,disableGutters:c,expanded:d,toggle:p}=B.useContext(eb),f=(0,R.Z)({},r,{expanded:d,disabled:u,disableGutters:c}),m=eK(f);return(0,eu.jsxs)(eJ,(0,R.Z)({focusRipple:!1,disableRipple:!0,disabled:u,component:"div","aria-expanded":d,className:(0,O.Z)(m.root,o),focusVisibleClassName:(0,O.Z)(m.focusVisible,i),onClick:e=>{p&&p(e),l&&l(e)},ref:t,ownerState:f},s,{children:[(0,eu.jsx)(e0,{className:m.content,ownerState:f,children:n}),a&&(0,eu.jsx)(e1,{className:m.expandIconWrapper,ownerState:f,children:a})]}))}),e4=r(6714),e3=r(20596),e5=r(36925),e8=r(65485),e6=r(75228);function e9(e){return(0,ei.ZP)("MuiAppBar",e)}var e7=(0,ea.Z)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);let te=["className","color","enableColorOnDark","position"],tt=e=>{let{color:t,position:r,classes:n}=e,o={root:["root","color".concat((0,e6.Z)(t)),"position".concat((0,e6.Z)(r))]};return(0,z.Z)(o,e9,n)},tr=(e,t)=>e?"".concat(null==e?void 0:e.replace(")",""),", ").concat(t,")"):t,tn=(0,W.ZP)(ev.Z,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["position".concat((0,e6.Z)(r.position))],t["color".concat((0,e6.Z)(r.color))]]}})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return(0,R.Z)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===r.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===r.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===r.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===r.position&&{position:"static"},"relative"===r.position&&{position:"relative"},!t.vars&&(0,R.Z)({},"default"===r.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},r.color&&"default"!==r.color&&"inherit"!==r.color&&"transparent"!==r.color&&{backgroundColor:t.palette[r.color].main,color:t.palette[r.color].contrastText},"inherit"===r.color&&{color:"inherit"},"dark"===t.palette.mode&&!r.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===r.color&&(0,R.Z)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&(0,R.Z)({},"default"===r.color&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette.AppBar.defaultBg:tr(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":r.enableColorOnDark?t.vars.palette.text.primary:tr(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},r.color&&!r.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":r.enableColorOnDark?t.vars.palette[r.color].main:tr(t.vars.palette.AppBar.darkBg,t.vars.palette[r.color].main),"--AppBar-color":r.enableColorOnDark?t.vars.palette[r.color].contrastText:tr(t.vars.palette.AppBar.darkColor,t.vars.palette[r.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===r.color?"inherit":"var(--AppBar-color)"},"transparent"===r.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))});var to=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiAppBar"}),{className:n,color:o="primary",enableColorOnDark:a=!1,position:i="fixed"}=r,l=(0,P.Z)(r,te),s=(0,R.Z)({},r,{color:o,position:i,enableColorOnDark:a}),u=tt(s);return(0,eu.jsx)(tn,(0,R.Z)({square:!0,component:"header",ownerState:s,elevation:4,className:(0,O.Z)(u.root,n,"fixed"===i&&"mui-fixed"),ref:t},l))}),ta=r(92996),ti=r(19032),tl=e=>{let t=B.useRef({});return B.useEffect(()=>{t.current=e}),t.current},ts=r(59948),tu=r(27364);function tc(e){return void 0!==e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function td(e={}){let{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:o="any",stringify:a,trim:i=!1}=e;return(e,{inputValue:l,getOptionLabel:s})=>{let u=i?l.trim():l;r&&(u=u.toLowerCase()),t&&(u=tc(u));let c=u?e.filter(e=>{let n=(a||s)(e);return r&&(n=n.toLowerCase()),t&&(n=tc(n)),"start"===o?0===n.indexOf(u):n.indexOf(u)>-1}):e;return"number"==typeof n?c.slice(0,n):c}}function tp(e,t){for(let r=0;r{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))};function th(e){let{unstable_isActiveElementInListbox:t=tm,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:i=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:s=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:f,disabledItemsFocusable:m=!1,disableListWrap:h=!1,filterOptions:g=tf,filterSelectedOptions:v=!1,freeSolo:b=!1,getOptionDisabled:y,getOptionKey:D,getOptionLabel:x=e=>{var t;return null!=(t=e.label)?t:e},groupBy:C,handleHomeEndKeys:Z=!e.freeSolo,id:w,includeInputInList:S=!1,inputValue:F,isOptionEqualToValue:k=(e,t)=>e===t,multiple:E=!1,onChange:M,onClose:I,onHighlightChange:j,onInputChange:T,onOpen:A,open:N,openOnFocus:L=!1,options:P,readOnly:O=!1,selectOnFocus:z=!e.freeSolo,value:W}=e,_=(0,ta.Z)(w),U=x;U=e=>{let t=x(e);return"string"!=typeof t?String(t):t};let H=B.useRef(!1),G=B.useRef(!0),Y=B.useRef(null),V=B.useRef(null),[$,q]=B.useState(null),[Q,X]=B.useState(-1),K=o?0:-1,J=B.useRef(K),[ee,et]=(0,ti.Z)({controlled:W,default:c,name:u}),[er,en]=(0,ti.Z)({controlled:F,default:"",name:u,state:"inputValue"}),[eo,ea]=B.useState(!1),ei=B.useCallback((e,t)=>{let r;if((E?ee.length!(v&&(E?ee:[ee]).some(t=>null!==t&&k(e,t)))),{inputValue:ed&&eu?"":er,getOptionLabel:U}):[],em=tl({filteredOptions:ef,value:ee,inputValue:er});B.useEffect(()=>{let e=ee!==em.value;(!eo||e)&&(!b||e)&&ei(null,ee)},[ee,ei,eo,em.value,b]);let eh=el&&ef.length>0&&!O,eg=(0,ts.Z)(e=>{-1===e?Y.current.focus():$.querySelector(`[data-tag-index="${e}"]`).focus()});B.useEffect(()=>{E&&Q>ee.length-1&&(X(-1),eg(-1))},[ee,E,Q,eg]);let ev=(0,ts.Z)(({event:e,index:t,reason:n="auto"})=>{if(J.current=t,-1===t?Y.current.removeAttribute("aria-activedescendant"):Y.current.setAttribute("aria-activedescendant",`${_}-option-${t}`),j&&j(e,-1===t?null:ef[t],n),!V.current)return;let o=V.current.querySelector(`[role="option"].${r}-focused`);o&&(o.classList.remove(`${r}-focused`),o.classList.remove(`${r}-focusVisible`));let a=V.current;if("listbox"!==V.current.getAttribute("role")&&(a=V.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===t){a.scrollTop=0;return}let i=V.current.querySelector(`[data-option-index="${t}"]`);if(i&&(i.classList.add(`${r}-focused`),"keyboard"===n&&i.classList.add(`${r}-focusVisible`),a.scrollHeight>a.clientHeight&&"mouse"!==n&&"touch"!==n)){let e=a.clientHeight+a.scrollTop,t=i.offsetTop+i.offsetHeight;t>e?a.scrollTop=t-a.clientHeight:i.offsetTop-i.offsetHeight*(C?1.3:0){if(!ep)return;let a=function(e,t){if(!V.current||e<0||e>=ef.length)return -1;let r=e;for(;;){let n=V.current.querySelector(`[data-option-index="${r}"]`),o=!m&&(!n||n.disabled||"true"===n.getAttribute("aria-disabled"));if(n&&n.hasAttribute("tabindex")&&!o)return r;if((r="next"===t?(r+1)%ef.length:(r-1+ef.length)%ef.length)===e)return -1}}((()=>{let e=ef.length-1;if("reset"===t)return K;if("start"===t)return 0;if("end"===t)return e;let r=J.current+t;return r<0?-1===r&&S?-1:h&&-1!==J.current||Math.abs(t)>1?0:e:r>e?r===e+1&&S?-1:h||Math.abs(t)>1?e:0:r})(),r);if(ev({index:a,reason:o,event:e}),n&&"reset"!==t){if(-1===a)Y.current.value=er;else{let e=U(ef[a]);Y.current.value=e,0===e.toLowerCase().indexOf(er.toLowerCase())&&er.length>0&&Y.current.setSelectionRange(er.length,e.length)}}}),ey=()=>{var e;if(-1!==J.current&&em.filteredOptions&&em.filteredOptions.length!==ef.length&&em.inputValue===er&&(E?ee.length===em.value.length&&em.value.every((e,t)=>U(ee[t])===U(e)):((e=em.value)?U(e):"")===(ee?U(ee):""))){let e=em.filteredOptions[J.current];if(e&&ef.some(t=>U(t)===U(e)))return!0}return!1},eD=B.useCallback(()=>{if(!ep||ey())return;let e=E?ee[0]:ee;if(0===ef.length||null==e){eb({diff:"reset"});return}if(V.current){if(null!=e){let t=ef[J.current];if(E&&t&&-1!==tp(ee,e=>k(t,e)))return;let r=tp(ef,t=>k(t,e));-1===r?eb({diff:"reset"}):ev({index:r});return}if(J.current>=ef.length-1){ev({index:ef.length-1});return}ev({index:J.current})}},[ef.length,!E&&ee,v,eb,ev,ep,er,E]),ex=(0,ts.Z)(e=>{(0,tu.Z)(V,e),e&&eD()});B.useEffect(()=>{eD()},[eD]);let eC=e=>{!el&&(es(!0),ec(!0),A&&A(e))},eZ=(e,t)=>{el&&(es(!1),I&&I(e,t))},ew=(e,t,r,n)=>{if(E){if(ee.length===t.length&&ee.every((e,r)=>e===t[r]))return}else if(ee===t)return;M&&M(e,t,r,n),et(t)},eS=B.useRef(!1),eF=(e,t,r="selectOption",n="options")=>{let o=r,a=t;if(E){let e=tp(a=Array.isArray(ee)?ee.slice():[],e=>k(t,e));-1===e?a.push(t):"freeSolo"!==n&&(a.splice(e,1),o="removeOption")}ei(e,a),ew(e,a,o,{option:t}),p||e&&(e.ctrlKey||e.metaKey)||eZ(e,o),(!0===i||"touch"===i&&eS.current||"mouse"===i&&!eS.current)&&Y.current.blur()},ek=(e,t)=>{if(!E)return;""===er&&eZ(e,"toggleInput");let r=Q;-1===Q?""===er&&"previous"===t&&(r=ee.length-1):((r+="next"===t?1:-1)<0&&(r=0),r===ee.length&&(r=-1)),X(r=function(e,t){if(-1===e)return -1;let r=e;for(;;){if("next"===t&&r===ee.length||"previous"===t&&-1===r)return -1;let e=$.querySelector(`[data-tag-index="${r}"]`);if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return r;r+="next"===t?1:-1}}(r,t)),eg(r)},eE=e=>{H.current=!0,en(""),T&&T(e,"","clear"),ew(e,E?[]:null,"clear")},eM=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Q&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(X(-1),eg(-1)),229!==t.which))switch(t.key){case"Home":ep&&Z&&(t.preventDefault(),eb({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":ep&&Z&&(t.preventDefault(),eb({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),eb({diff:-5,direction:"previous",reason:"keyboard",event:t}),eC(t);break;case"PageDown":t.preventDefault(),eb({diff:5,direction:"next",reason:"keyboard",event:t}),eC(t);break;case"ArrowDown":t.preventDefault(),eb({diff:1,direction:"next",reason:"keyboard",event:t}),eC(t);break;case"ArrowUp":t.preventDefault(),eb({diff:-1,direction:"previous",reason:"keyboard",event:t}),eC(t);break;case"ArrowLeft":ek(t,"previous");break;case"ArrowRight":ek(t,"next");break;case"Enter":if(-1!==J.current&&ep){let e=ef[J.current],r=!!y&&y(e);if(t.preventDefault(),r)return;eF(t,e,"selectOption"),n&&Y.current.setSelectionRange(Y.current.value.length,Y.current.value.length)}else b&&""!==er&&!1===ed&&(E&&t.preventDefault(),eF(t,er,"createOption","freeSolo"));break;case"Escape":ep?(t.preventDefault(),t.stopPropagation(),eZ(t,"escape")):s&&(""!==er||E&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),eE(t));break;case"Backspace":if(E&&!O&&""===er&&ee.length>0){let e=-1===Q?ee.length-1:Q,r=ee.slice();r.splice(e,1),ew(t,r,"removeOption",{option:ee[e]})}break;case"Delete":if(E&&!O&&""===er&&ee.length>0&&-1!==Q){let e=ee.slice();e.splice(Q,1),ew(t,e,"removeOption",{option:ee[Q]})}}},eI=e=>{ea(!0),L&&!H.current&&eC(e)},ej=e=>{if(t(V)){Y.current.focus();return}ea(!1),G.current=!0,H.current=!1,a&&-1!==J.current&&ep?eF(e,ef[J.current],"blur"):a&&b&&""!==er?eF(e,er,"blur","freeSolo"):l&&ei(e,ee),eZ(e,"blur")},eT=e=>{let t=e.target.value;er!==t&&(en(t),ec(!1),T&&T(e,t,"input")),""===t?d||E||ew(e,null,"clear"):eC(e)},eA=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));J.current!==t&&ev({event:e,index:t,reason:"mouse"})},eN=e=>{ev({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),eS.current=!0},eL=e=>{let t=Number(e.currentTarget.getAttribute("data-option-index"));eF(e,ef[t],"selectOption"),eS.current=!1},eP=e=>t=>{let r=ee.slice();r.splice(e,1),ew(t,r,"removeOption",{option:ee[e]})},eR=e=>{el?eZ(e,"toggleInput"):eC(e)},eB=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==_&&e.preventDefault()},eO=e=>{e.currentTarget.contains(e.target)&&(Y.current.focus(),z&&G.current&&Y.current.selectionEnd-Y.current.selectionStart==0&&Y.current.select(),G.current=!1)},ez=e=>{f||""!==er&&el||eR(e)},eW=b&&er.length>0;eW=eW||(E?ee.length>0:null!==ee);let e_=ef;return C&&(e_=ef.reduce((e,t,r)=>{let n=C(t);return e.length>0&&e[e.length-1].group===n?e[e.length-1].options.push(t):e.push({key:r,index:r,group:n,options:[t]}),e},[])),f&&eo&&ej(),{getRootProps:(e={})=>(0,R.Z)({"aria-owns":eh?`${_}-listbox`:null},e,{onKeyDown:eM(e),onMouseDown:eB,onClick:eO}),getInputLabelProps:()=>({id:`${_}-label`,htmlFor:_}),getInputProps:()=>({id:_,value:er,onBlur:ej,onFocus:eI,onChange:eT,onMouseDown:ez,"aria-activedescendant":ep?"":null,"aria-autocomplete":n?"both":"list","aria-controls":eh?`${_}-listbox`:void 0,"aria-expanded":eh,autoComplete:"off",ref:Y,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:eE}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:eR}),getTagProps:({index:e})=>(0,R.Z)({key:e,"data-tag-index":e,tabIndex:-1},!O&&{onDelete:eP(e)}),getListboxProps:()=>({role:"listbox",id:`${_}-listbox`,"aria-labelledby":`${_}-label`,ref:ex,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:({index:e,option:t})=>{var r;let n=(E?ee:[ee]).some(e=>null!=e&&k(t,e)),o=!!y&&y(t);return{key:null!=(r=null==D?void 0:D(t))?r:U(t),tabIndex:-1,role:"option",id:`${_}-option-${e}`,onMouseMove:eA,onClick:eL,onTouchStart:eN,"data-option-index":e,"aria-disabled":o,"aria-selected":n}},id:_,inputValue:er,value:ee,dirty:eW,expanded:ep&&$,popupOpen:ep,focused:eo||-1!==Q,anchorEl:$,setAnchorEl:q,focusedTag:Q,groupedOptions:e_}}var tg=r(41796),tv=r(73546),tb=r(82690),ty=r(95551);let tD=B.forwardRef(function(e,t){let{children:r,container:n,disablePortal:o=!1}=e,[a,i]=B.useState(null),l=(0,eD.Z)(B.isValidElement(r)?r.ref:null,t);return((0,tv.Z)(()=>{!o&&i(("function"==typeof n?n():n)||document.body)},[n,o]),(0,tv.Z)(()=>{if(a&&!o)return(0,tu.Z)(t,a),()=>{(0,tu.Z)(t,null)}},[t,a,o]),o)?B.isValidElement(r)?B.cloneElement(r,{ref:l}):(0,eu.jsx)(B.Fragment,{children:r}):(0,eu.jsx)(B.Fragment,{children:a?H.createPortal(r,a):a})}),tx="base";function tC(e,t){let r=ei._v[t];return r?`${tx}--${r}`:`${tx}-${e}-${t}`}let tZ="Popper";function tw(e){return tC(tZ,e)}!function(e,t){let r={};t.forEach(t=>{r[t]=tC(e,t)})}(tZ,["root"]);let tS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tF(e){var t;let{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=(0,P.Z)(e,tS),l=a?{}:ex(n,o),{props:s,internalRef:u}=ew((0,R.Z)({},i,{externalSlotProps:l})),c=(0,eD.Z)(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref);return eF(r,(0,R.Z)({},s,{ref:c}),o)}let tk=B.createContext({disableDefaultClasses:!1}),tE=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],tM=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function tI(e){return"function"==typeof e?e():e}let tj=()=>(0,z.Z)({root:["root"]},function(e){let{disableDefaultClasses:t}=B.useContext(tk);return r=>t?"":e(r)}(tw)),tT={},tA=B.forwardRef(function(e,t){var r;let{anchorEl:n,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:u,popperOptions:c,popperRef:d,slotProps:p={},slots:f={},TransitionProps:m}=e,h=(0,P.Z)(e,tE),g=B.useRef(null),v=(0,eD.Z)(g,t),b=B.useRef(null),y=(0,eD.Z)(b,d),D=B.useRef(y);(0,tv.Z)(()=>{D.current=y},[y]),B.useImperativeHandle(d,()=>b.current,[]);let x=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,a),[C,Z]=B.useState(x),[w,S]=B.useState(tI(n));B.useEffect(()=>{b.current&&b.current.forceUpdate()}),B.useEffect(()=>{n&&S(tI(n))},[n]),(0,tv.Z)(()=>{if(!w||!s)return;let e=e=>{Z(e.placement)},t=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{e(t)}}];null!=l&&(t=t.concat(l)),c&&null!=c.modifiers&&(t=t.concat(c.modifiers));let r=(0,ty.fi)(w,g.current,(0,R.Z)({placement:x},c,{modifiers:t}));return D.current(r),()=>{r.destroy(),D.current(null)}},[w,i,l,s,c,x]);let F={placement:C};null!==m&&(F.TransitionProps=m);let k=tj(),E=null!=(r=f.root)?r:"div",M=tF({elementType:E,externalSlotProps:p.root,externalForwardedProps:h,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:k.root});return(0,eu.jsx)(E,(0,R.Z)({},M,{children:"function"==typeof o?o(F):o}))}),tN=B.forwardRef(function(e,t){let r;let{anchorEl:n,children:o,container:a,direction:i="ltr",disablePortal:l=!1,keepMounted:s=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=tT,popperRef:f,style:m,transition:h=!1,slotProps:g={},slots:v={}}=e,b=(0,P.Z)(e,tM),[y,D]=B.useState(!0);if(!s&&!c&&(!h||y))return null;if(a)r=a;else if(n){let e=tI(n);r=e&&void 0!==e.nodeType?(0,tb.Z)(e).body:(0,tb.Z)(null).body}let x=!c&&s&&(!h||y)?"none":void 0,C=h?{in:c,onEnter:()=>{D(!1)},onExited:()=>{D(!0)}}:void 0;return(0,eu.jsx)(tD,{disablePortal:l,container:r,children:(0,eu.jsx)(tA,(0,R.Z)({anchorEl:n,direction:i,disablePortal:l,modifiers:u,ref:t,open:h?!y:c,placement:d,popperOptions:p,popperRef:f,slotProps:g,slots:v},b,{style:(0,R.Z)({position:"fixed",top:0,left:0,display:x},m),TransitionProps:C,children:o}))})});var tL=r(34168);let tP=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],tR=(0,W.ZP)(tN,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({});var tB=B.forwardRef(function(e,t){var r;let n=(0,tL.Z)(),o=(0,_.Z)({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:m,popperOptions:h,popperRef:g,transition:v,slots:b,slotProps:y}=o,D=(0,P.Z)(o,tP),x=null!=(r=null==b?void 0:b.root)?r:null==l?void 0:l.Root,C=(0,R.Z)({anchorEl:a,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:f,placement:m,popperOptions:h,popperRef:g,transition:v},D);return(0,eu.jsx)(tR,(0,R.Z)({as:i,direction:null==n?void 0:n.direction,slots:{root:x},slotProps:null!=y?y:s},C,{ref:t}))});function tO(e){return(0,ei.ZP)("MuiListSubheader",e)}var tz=(0,ea.Z)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);let tW=["className","color","component","disableGutters","disableSticky","inset"],t_=e=>{let{classes:t,color:r,disableGutters:n,inset:o,disableSticky:a}=e,i={root:["root","default"!==r&&"color".concat((0,e6.Z)(r)),!n&&"gutters",o&&"inset",!a&&"sticky"]};return(0,z.Z)(i,tO,t)},tU=(0,W.ZP)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"default"!==r.color&&t["color".concat((0,e6.Z)(r.color))],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===r.color&&{color:(t.vars||t).palette.primary.main},"inherit"===r.color&&{color:"inherit"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.inset&&{paddingLeft:72},!r.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})}),tH=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListSubheader"}),{className:n,color:o="default",component:a="li",disableGutters:i=!1,disableSticky:l=!1,inset:s=!1}=r,u=(0,P.Z)(r,tW),c=(0,R.Z)({},r,{color:o,component:a,disableGutters:i,disableSticky:l,inset:s}),d=t_(c);return(0,eu.jsx)(tU,(0,R.Z)({as:a,className:(0,O.Z)(d.root,n),ref:t,ownerState:c},u))});tH.muiSkipListHighlight=!0;var tG=tH,tY=r(80594),tV=r(12921),t$=(0,tV.Z)((0,eu.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function tq(e){return(0,ei.ZP)("MuiChip",e)}var tQ=(0,ea.Z)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);let tX=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],tK=e=>{let{classes:t,disabled:r,size:n,color:o,iconColor:a,onDelete:i,clickable:l,variant:s}=e,u={root:["root",s,r&&"disabled","size".concat((0,e6.Z)(n)),"color".concat((0,e6.Z)(o)),l&&"clickable",l&&"clickableColor".concat((0,e6.Z)(o)),i&&"deletable",i&&"deletableColor".concat((0,e6.Z)(o)),"".concat(s).concat((0,e6.Z)(o))],label:["label","label".concat((0,e6.Z)(n))],avatar:["avatar","avatar".concat((0,e6.Z)(n)),"avatarColor".concat((0,e6.Z)(o))],icon:["icon","icon".concat((0,e6.Z)(n)),"iconColor".concat((0,e6.Z)(a))],deleteIcon:["deleteIcon","deleteIcon".concat((0,e6.Z)(n)),"deleteIconColor".concat((0,e6.Z)(o)),"deleteIcon".concat((0,e6.Z)(s),"Color").concat((0,e6.Z)(o))]};return(0,z.Z)(u,tq,t)},tJ=(0,W.ZP)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{color:n,iconColor:o,clickable:a,onDelete:i,size:l,variant:s}=r;return[{["& .".concat(tQ.avatar)]:t.avatar},{["& .".concat(tQ.avatar)]:t["avatar".concat((0,e6.Z)(l))]},{["& .".concat(tQ.avatar)]:t["avatarColor".concat((0,e6.Z)(n))]},{["& .".concat(tQ.icon)]:t.icon},{["& .".concat(tQ.icon)]:t["icon".concat((0,e6.Z)(l))]},{["& .".concat(tQ.icon)]:t["iconColor".concat((0,e6.Z)(o))]},{["& .".concat(tQ.deleteIcon)]:t.deleteIcon},{["& .".concat(tQ.deleteIcon)]:t["deleteIcon".concat((0,e6.Z)(l))]},{["& .".concat(tQ.deleteIcon)]:t["deleteIconColor".concat((0,e6.Z)(n))]},{["& .".concat(tQ.deleteIcon)]:t["deleteIcon".concat((0,e6.Z)(s),"Color").concat((0,e6.Z)(n))]},t.root,t["size".concat((0,e6.Z)(l))],t["color".concat((0,e6.Z)(n))],a&&t.clickable,a&&"default"!==n&&t["clickableColor".concat((0,e6.Z)(n),")")],i&&t.deletable,i&&"default"!==n&&t["deletableColor".concat((0,e6.Z)(n))],t[s],t["".concat(s).concat((0,e6.Z)(n))]]}})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,R.Z)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&.".concat(tQ.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["& .".concat(tQ.avatar)]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:n,fontSize:t.typography.pxToRem(12)},["& .".concat(tQ.avatarColorPrimary)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},["& .".concat(tQ.avatarColorSecondary)]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},["& .".concat(tQ.avatarSmall)]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},["& .".concat(tQ.icon)]:(0,R.Z)({marginLeft:5,marginRight:-6},"small"===r.size&&{fontSize:18,marginLeft:4,marginRight:-4},r.iconColor===r.color&&(0,R.Z)({color:t.vars?t.vars.palette.Chip.defaultIconColor:n},"default"!==r.color&&{color:"inherit"})),["& .".concat(tQ.deleteIcon)]:(0,R.Z)({WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):(0,tg.Fq)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,tg.Fq)(t.palette.text.primary,.4)}},"small"===r.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==r.color&&{color:t.vars?"rgba(".concat(t.vars.palette[r.color].contrastTextChannel," / 0.7)"):(0,tg.Fq)(t.palette[r.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].contrastText}})},"small"===r.size&&{height:24},"default"!==r.color&&{backgroundColor:(t.vars||t).palette[r.color].main,color:(t.vars||t).palette[r.color].contrastText},r.onDelete&&{["&.".concat(tQ.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},r.onDelete&&"default"!==r.color&&{["&.".concat(tQ.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}})},e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},r.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},["&.".concat(tQ.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},r.clickable&&"default"!==r.color&&{["&:hover, &.".concat(tQ.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}})},e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},"outlined"===r.variant&&{backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]),["&.".concat(tQ.clickable,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(tQ.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["& .".concat(tQ.avatar)]:{marginLeft:4},["& .".concat(tQ.avatarSmall)]:{marginLeft:2},["& .".concat(tQ.icon)]:{marginLeft:4},["& .".concat(tQ.iconSmall)]:{marginLeft:2},["& .".concat(tQ.deleteIcon)]:{marginRight:5},["& .".concat(tQ.deleteIconSmall)]:{marginRight:3}},"outlined"===r.variant&&"default"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,tg.Fq)(t.palette[r.color].main,.7)),["&.".concat(tQ.clickable,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,tg.Fq)(t.palette[r.color].main,t.palette.action.hoverOpacity)},["&.".concat(tQ.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,tg.Fq)(t.palette[r.color].main,t.palette.action.focusOpacity)},["& .".concat(tQ.deleteIcon)]:{color:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.7)"):(0,tg.Fq)(t.palette[r.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[r.color].main}}})}),t0=(0,W.ZP)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{let{ownerState:r}=e,{size:n}=r;return[t.label,t["label".concat((0,e6.Z)(n))]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===t.variant&&{paddingLeft:11,paddingRight:11},"small"===t.size&&{paddingLeft:8,paddingRight:8},"small"===t.size&&"outlined"===t.variant&&{paddingLeft:7,paddingRight:7})});function t1(e){return"Backspace"===e.key||"Delete"===e.key}var t2=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiChip"}),{avatar:n,className:o,clickable:a,color:i="default",component:l,deleteIcon:s,disabled:u=!1,icon:c,label:d,onClick:p,onDelete:f,onKeyDown:m,onKeyUp:h,size:g="medium",variant:v="filled",tabIndex:b,skipFocusWhenDisabled:y=!1}=r,D=(0,P.Z)(r,tX),x=B.useRef(null),C=(0,eo.Z)(x,t),Z=e=>{e.stopPropagation(),f&&f(e)},w=!1!==a&&!!p||a,S=w||f?e$.Z:l||"div",F=(0,R.Z)({},r,{component:S,disabled:u,size:g,color:i,iconColor:B.isValidElement(c)&&c.props.color||i,onDelete:!!f,clickable:w,variant:v}),k=tK(F),E=S===e$.Z?(0,R.Z)({component:l||"div",focusVisibleClassName:k.focusVisible},f&&{disableRipple:!0}):{},M=null;f&&(M=s&&B.isValidElement(s)?B.cloneElement(s,{className:(0,O.Z)(s.props.className,k.deleteIcon),onClick:Z}):(0,eu.jsx)(t$,{className:(0,O.Z)(k.deleteIcon),onClick:Z}));let I=null;n&&B.isValidElement(n)&&(I=B.cloneElement(n,{className:(0,O.Z)(k.avatar,n.props.className)}));let j=null;return c&&B.isValidElement(c)&&(j=B.cloneElement(c,{className:(0,O.Z)(k.icon,c.props.className)})),(0,eu.jsxs)(tJ,(0,R.Z)({as:S,className:(0,O.Z)(k.root,o),disabled:!!w&&!!u||void 0,onClick:p,onKeyDown:e=>{e.currentTarget===e.target&&t1(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(f&&t1(e)?f(e):"Escape"===e.key&&x.current&&x.current.blur()),h&&h(e)},ref:C,tabIndex:y&&u?-1:b,ownerState:F},E,D,{children:[I||j,(0,eu.jsx)(t0,{className:(0,O.Z)(k.label),ownerState:F,children:d}),M]}))});function t4(e){return(0,ei.ZP)("MuiInputBase",e)}var t3=(0,ea.Z)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function t5(e){return(0,ei.ZP)("MuiInput",e)}var t8=(0,R.Z)({},t3,(0,ea.Z)("MuiInput",["root","underline","input"]));function t6(e){return(0,ei.ZP)("MuiOutlinedInput",e)}var t9=(0,R.Z)({},t3,(0,ea.Z)("MuiOutlinedInput",["root","notchedOutline","input"]));function t7(e){return(0,ei.ZP)("MuiFilledInput",e)}var re=(0,R.Z)({},t3,(0,ea.Z)("MuiFilledInput",["root","underline","input"])),rt=r(67178),rr=(0,tV.Z)((0,eu.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function rn(e){return(0,ei.ZP)("MuiAutocomplete",e)}var ro=(0,ea.Z)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);let ra=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],ri=["ref"],rl=["key"],rs=e=>{let{classes:t,disablePortal:r,expanded:n,focused:o,fullWidth:a,hasClearIcon:i,hasPopupIcon:l,inputFocused:s,popupOpen:u,size:c}=e,d={root:["root",n&&"expanded",o&&"focused",a&&"fullWidth",i&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",s&&"inputFocused"],tag:["tag","tagSize".concat((0,e6.Z)(c))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,z.Z)(d,rn,t)},ru=(0,W.ZP)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{fullWidth:n,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:l}=r;return[{["& .".concat(ro.tag)]:t.tag},{["& .".concat(ro.tag)]:t["tagSize".concat((0,e6.Z)(l))]},{["& .".concat(ro.inputRoot)]:t.inputRoot},{["& .".concat(ro.input)]:t.input},{["& .".concat(ro.input)]:i&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({["&.".concat(ro.focused," .").concat(ro.clearIndicator)]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover .".concat(ro.clearIndicator)]:{visibility:"visible"}}},t.fullWidth&&{width:"100%"},{["& .".concat(ro.tag)]:(0,R.Z)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===t.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),["& .".concat(ro.inputRoot)]:{flexWrap:"wrap",[".".concat(ro.hasPopupIcon,"&, .").concat(ro.hasClearIcon,"&")]:{paddingRight:30},[".".concat(ro.hasPopupIcon,".").concat(ro.hasClearIcon,"&")]:{paddingRight:56},["& .".concat(ro.input)]:{width:0,minWidth:30}},["& .".concat(t8.root)]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},["& .".concat(t8.root,".").concat(t3.sizeSmall)]:{["& .".concat(t8.input)]:{padding:"2px 4px 3px 0"}},["& .".concat(t9.root)]:{padding:9,[".".concat(ro.hasPopupIcon,"&, .").concat(ro.hasClearIcon,"&")]:{paddingRight:39},[".".concat(ro.hasPopupIcon,".").concat(ro.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(ro.input)]:{padding:"7.5px 4px 7.5px 5px"},["& .".concat(ro.endAdornment)]:{right:9}},["& .".concat(t9.root,".").concat(t3.sizeSmall)]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& .".concat(ro.input)]:{padding:"2.5px 4px 2.5px 8px"}},["& .".concat(re.root)]:{paddingTop:19,paddingLeft:8,[".".concat(ro.hasPopupIcon,"&, .").concat(ro.hasClearIcon,"&")]:{paddingRight:39},[".".concat(ro.hasPopupIcon,".").concat(ro.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(re.input)]:{padding:"7px 4px"},["& .".concat(ro.endAdornment)]:{right:9}},["& .".concat(re.root,".").concat(t3.sizeSmall)]:{paddingBottom:1,["& .".concat(re.input)]:{padding:"2.5px 4px"}},["& .".concat(t3.hiddenLabel)]:{paddingTop:8},["& .".concat(re.root,".").concat(t3.hiddenLabel)]:{paddingTop:0,paddingBottom:0,["& .".concat(ro.input)]:{paddingTop:16,paddingBottom:17}},["& .".concat(re.root,".").concat(t3.hiddenLabel,".").concat(t3.sizeSmall)]:{["& .".concat(ro.input)]:{paddingTop:8,paddingBottom:9}},["& .".concat(ro.input)]:(0,R.Z)({flexGrow:1,textOverflow:"ellipsis",opacity:0},t.inputFocused&&{opacity:1})})}),rc=(0,W.ZP)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),rd=(0,W.ZP)(tY.Z,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),rp=(0,W.ZP)(tY.Z,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,R.Z)({},t.popupIndicator,r.popupOpen&&t.popupIndicatorOpen)}})(e=>{let{ownerState:t}=e;return(0,R.Z)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})}),rf=(0,W.ZP)(tB,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(ro.option)]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({zIndex:(t.vars||t).zIndex.modal},r.disablePortal&&{position:"absolute"})}),rm=(0,W.ZP)(ev.Z,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(e=>{let{theme:t}=e;return(0,R.Z)({},t.typography.body1,{overflow:"auto"})}),rh=(0,W.ZP)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}}),rg=(0,W.ZP)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}}),rv=(0,W.ZP)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& .".concat(ro.option)]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},["&.".concat(ro.focused)]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(ro.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(ro.focused)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(ro.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}}),rb=(0,W.ZP)(tG,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}}),ry=(0,W.ZP)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& .".concat(ro.option)]:{paddingLeft:24}});var rD=B.forwardRef(function(e,t){var r,n,o,l;let s;let u=(0,_.Z)({props:e,name:"MuiAutocomplete"}),{autoComplete:c=!1,autoHighlight:d=!1,autoSelect:p=!1,blurOnSelect:f=!1,ChipProps:m,className:h,clearIcon:g=a||(a=(0,eu.jsx)(rt.Z,{fontSize:"small"})),clearOnBlur:v=!u.freeSolo,clearOnEscape:b=!1,clearText:y="Clear",closeText:D="Close",componentsProps:x={},defaultValue:C=u.multiple?[]:null,disableClearable:Z=!1,disableCloseOnSelect:w=!1,disabled:S=!1,disabledItemsFocusable:F=!1,disableListWrap:k=!1,disablePortal:E=!1,filterSelectedOptions:M=!1,forcePopupIcon:I="auto",freeSolo:j=!1,fullWidth:T=!1,getLimitTagsText:A=e=>"+".concat(e),getOptionLabel:N,groupBy:L,handleHomeEndKeys:z=!u.freeSolo,includeInputInList:W=!1,limitTags:U=-1,ListboxComponent:H="ul",ListboxProps:G,loading:Y=!1,loadingText:V="Loading…",multiple:$=!1,noOptionsText:q="No options",openOnFocus:Q=!1,openText:X="Open",PaperComponent:K=ev.Z,PopperComponent:J=tB,popupIcon:ee=i||(i=(0,eu.jsx)(rr,{})),readOnly:et=!1,renderGroup:er,renderInput:en,renderOption:ea,renderTags:ei,selectOnFocus:el=!u.freeSolo,size:es="medium",slotProps:ec={}}=u,ed=(0,P.Z)(u,ra),{getRootProps:ep,getInputProps:ef,getInputLabelProps:em,getPopupIndicatorProps:eh,getClearProps:eg,getTagProps:eb,getListboxProps:ey,getOptionProps:eD,value:ex,dirty:eC,expanded:eZ,id:ew,popupOpen:eS,focused:eF,focusedTag:ek,anchorEl:eE,setAnchorEl:eM,inputValue:eI,groupedOptions:ej}=th((0,R.Z)({},u,{componentName:"Autocomplete"})),eT=!Z&&!S&&eC&&!et,eA=(!j||!0===I)&&!1!==I,{onMouseDown:eN}=ef(),{ref:eL}=null!=G?G:{},eP=ey(),{ref:eR}=eP,eB=(0,P.Z)(eP,ri),eO=(0,eo.Z)(eR,eL),ez=N||(e=>{var t;return null!=(t=e.label)?t:e}),eW=(0,R.Z)({},u,{disablePortal:E,expanded:eZ,focused:eF,fullWidth:T,getOptionLabel:ez,hasClearIcon:eT,hasPopupIcon:eA,inputFocused:-1===ek,popupOpen:eS,size:es}),e_=rs(eW);if($&&ex.length>0){let e=e=>(0,R.Z)({className:e_.tag,disabled:S},eb(e));s=ei?ei(ex,e,eW):ex.map((t,r)=>(0,eu.jsx)(t2,(0,R.Z)({label:ez(t),size:es},e({index:r}),m)))}if(U>-1&&Array.isArray(s)){let e=s.length-U;!eF&&e>0&&(s=s.splice(0,U)).push((0,eu.jsx)("span",{className:e_.tag,children:A(e)},s.length))}let eU=er||(e=>(0,eu.jsxs)("li",{children:[(0,eu.jsx)(rb,{className:e_.groupLabel,ownerState:eW,component:"div",children:e.group}),(0,eu.jsx)(ry,{className:e_.groupUl,ownerState:eW,children:e.children})]},e.key)),eH=ea||((e,t)=>{let{key:r}=e,n=(0,P.Z)(e,rl);return(0,eu.jsx)("li",(0,R.Z)({},n,{children:ez(t)}),r)}),eG=(e,t)=>{let r=eD({option:e,index:t});return eH((0,R.Z)({},r,{className:e_.option}),e,{selected:r["aria-selected"],index:t,inputValue:eI},eW)},eY=null!=(r=ec.clearIndicator)?r:x.clearIndicator,eV=null!=(n=ec.paper)?n:x.paper,e$=null!=(o=ec.popper)?o:x.popper,eq=null!=(l=ec.popupIndicator)?l:x.popupIndicator;return(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)(ru,(0,R.Z)({ref:t,className:(0,O.Z)(e_.root,h),ownerState:eW},ep(ed),{children:en({id:ew,disabled:S,fullWidth:!0,size:"small"===es?"small":void 0,InputLabelProps:em(),InputProps:(0,R.Z)({ref:eM,className:e_.inputRoot,startAdornment:s,onClick:e=>{e.target===e.currentTarget&&eN(e)}},(eT||eA)&&{endAdornment:(0,eu.jsxs)(rc,{className:e_.endAdornment,ownerState:eW,children:[eT?(0,eu.jsx)(rd,(0,R.Z)({},eg(),{"aria-label":y,title:y,ownerState:eW},eY,{className:(0,O.Z)(e_.clearIndicator,null==eY?void 0:eY.className),children:g})):null,eA?(0,eu.jsx)(rp,(0,R.Z)({},eh(),{disabled:S,"aria-label":eS?D:X,title:eS?D:X,ownerState:eW},eq,{className:(0,O.Z)(e_.popupIndicator,null==eq?void 0:eq.className),children:ee})):null]})}),inputProps:(0,R.Z)({className:e_.input,disabled:S,readOnly:et},ef())})})),eE?(0,eu.jsx)(rf,(0,R.Z)({as:J,disablePortal:E,style:{width:eE?eE.clientWidth:null},ownerState:eW,role:"presentation",anchorEl:eE,open:eS},e$,{className:(0,O.Z)(e_.popper,null==e$?void 0:e$.className),children:(0,eu.jsxs)(rm,(0,R.Z)({ownerState:eW,as:K},eV,{className:(0,O.Z)(e_.paper,null==eV?void 0:eV.className),children:[Y&&0===ej.length?(0,eu.jsx)(rh,{className:e_.loading,ownerState:eW,children:V}):null,0!==ej.length||j||Y?null:(0,eu.jsx)(rg,{className:e_.noOptions,ownerState:eW,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:q}),ej.length>0?(0,eu.jsx)(rv,(0,R.Z)({as:H,className:e_.listbox,ownerState:eW},eB,G,{ref:eO,children:ej.map((e,t)=>L?eU({key:e.key,group:e.group,children:e.options.map((t,r)=>eG(t,e.index+r))}):eG(e,t))})):null]}))})):null]})}),rx=r(10382),rC=r(86767);function rZ(e){return(0,ei.ZP)("MuiAvatarGroup",e)}var rw=(0,ea.Z)("MuiAvatarGroup",["root","avatar"]);let rS=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],rF={small:-16,medium:null},rk=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],avatar:["avatar"]},rZ,t)},rE=(0,W.ZP)("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>(0,R.Z)({["& .".concat(rw.avatar)]:t.avatar},t.root)})(e=>{let{theme:t}=e;return{["& .".concat(rC.Z.root)]:{border:"2px solid ".concat((t.vars||t).palette.background.default),boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),rM=(0,W.ZP)(rx.Z,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})(e=>{let{theme:t}=e;return{border:"2px solid ".concat((t.vars||t).palette.background.default),boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}}});var rI=B.forwardRef(function(e,t){var r;let n=(0,_.Z)({props:e,name:"MuiAvatarGroup"}),{children:o,className:a,component:i="div",componentsProps:l={},max:s=5,renderSurplus:u,slotProps:c={},spacing:d="medium",total:p,variant:f="circular"}=n,m=(0,P.Z)(n,rS),h=s<2?2:s,g=(0,R.Z)({},n,{max:s,spacing:d,component:i,variant:f}),v=rk(g),b=B.Children.toArray(o).filter(e=>B.isValidElement(e)),y=p||b.length;y===h&&(h+=1),h=Math.min(y+1,h);let D=Math.min(b.length,h-1),x=Math.max(y-h,y-D,0),C=u?u(x):"+".concat(x),Z=d&&void 0!==rF[d]?rF[d]:-d,w=null!=(r=c.additionalAvatar)?r:l.additionalAvatar;return(0,eu.jsxs)(rE,(0,R.Z)({as:i,ownerState:g,className:(0,O.Z)(v.root,a),ref:t},m,{children:[x?(0,eu.jsx)(rM,(0,R.Z)({ownerState:g,variant:f},w,{className:(0,O.Z)(v.avatar,null==w?void 0:w.className),style:(0,R.Z)({marginLeft:Z},null==w?void 0:w.style),children:C})):null,b.slice(0,D).reverse().map((e,t)=>B.cloneElement(e,{className:(0,O.Z)(e.props.className,v.avatar),style:(0,R.Z)({marginLeft:t===D-1?void 0:Z},e.props.style),variant:e.props.variant||f}))]}))});let rj=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],rT={entering:{opacity:1},entered:{opacity:1}};var rA=B.forwardRef(function(e,t){let r=(0,en.Z)(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:v=K}=e,b=(0,P.Z)(e,rj),y=B.useRef(null),D=(0,eo.Z)(y,i.ref,t),x=e=>t=>{if(e){let r=y.current;void 0===t?e(r):e(r,t)}},C=x(d),Z=x((e,t)=>{et(e);let n=er({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)}),w=x(c),S=x(m),F=x(e=>{let t=er({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),k=x(f);return(0,eu.jsx)(v,(0,R.Z)({appear:a,in:s,nodeRef:y,onEnter:Z,onEntered:w,onEntering:C,onExit:F,onExited:k,onExiting:S,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>B.cloneElement(i,(0,R.Z)({style:(0,R.Z)({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},rT[e],h,i.props.style),ref:D},t))}))});function rN(e){return(0,ei.ZP)("MuiBackdrop",e)}var rL=(0,ea.Z)("MuiBackdrop",["root","invisible"]);let rP=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],rR=e=>{let{classes:t,invisible:r}=e;return(0,z.Z)({root:["root",r&&"invisible"]},rN,t)},rB=(0,W.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})});var rO=B.forwardRef(function(e,t){var r,n,o;let a=(0,_.Z)({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=rA,transitionDuration:g}=a,v=(0,P.Z)(a,rP),b=(0,R.Z)({},a,{component:s,invisible:d}),y=rR(b),D=null!=(r=f.root)?r:c.root;return(0,eu.jsx)(h,(0,R.Z)({in:p,timeout:g},v,{children:(0,eu.jsx)(rB,(0,R.Z)({"aria-hidden":!0},D,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:(0,O.Z)(y.root,l,null==D?void 0:D.className),ownerState:(0,R.Z)({},b,null==D?void 0:D.ownerState),classes:y,ref:t,children:i}))}))});function rz(e){return(0,ei.ZP)("MuiBadge",e)}var rW=(0,ea.Z)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);let r_=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],rU=e=>{let{color:t,anchorOrigin:r,invisible:n,overlap:o,variant:a,classes:i={}}=e,l={root:["root"],badge:["badge",a,n&&"invisible","anchorOrigin".concat((0,e6.Z)(r.vertical)).concat((0,e6.Z)(r.horizontal)),"anchorOrigin".concat((0,e6.Z)(r.vertical)).concat((0,e6.Z)(r.horizontal)).concat((0,e6.Z)(o)),"overlap".concat((0,e6.Z)(o)),"default"!==t&&"color".concat((0,e6.Z)(t))]};return(0,z.Z)(l,rz,i)},rH=(0,W.ZP)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),rG=(0,W.ZP)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.badge,t[r.variant],t["anchorOrigin".concat((0,e6.Z)(r.anchorOrigin.vertical)).concat((0,e6.Z)(r.anchorOrigin.horizontal)).concat((0,e6.Z)(r.overlap))],"default"!==r.color&&t["color".concat((0,e6.Z)(r.color))],r.invisible&&t.invisible]}})(e=>{var t;let{theme:r}=e;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:r.typography.fontFamily,fontWeight:r.typography.fontWeightMedium,fontSize:r.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:r.transitions.create("transform",{easing:r.transitions.easing.easeInOut,duration:r.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=r.vars)?t:r).palette).filter(e=>{var t,n;return(null!=(t=r.vars)?t:r).palette[e].main&&(null!=(n=r.vars)?n:r).palette[e].contrastText}).map(e=>({props:{color:e},style:{backgroundColor:(r.vars||r).palette[e].main,color:(r.vars||r).palette[e].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap},style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(50%, 50%)"}}},{props:e=>{let{ownerState:t}=e;return"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:e=>{let{ownerState:t}=e;return"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap},style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&.".concat(rW.invisible)]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:r.transitions.create("transform",{easing:r.transitions.easing.easeInOut,duration:r.transitions.duration.leavingScreen})}}]}});var rY=B.forwardRef(function(e,t){var r,n,o,a,i,l;let s=(0,_.Z)({props:e,name:"MuiBadge"}),{anchorOrigin:u={vertical:"top",horizontal:"right"},className:c,component:d,components:p={},componentsProps:f={},children:m,overlap:h="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:D,slotProps:x,showZero:C=!1,variant:Z="standard"}=s,w=(0,P.Z)(s,r_),{badgeContent:S,invisible:F,max:k,displayValue:E}=function(e){let{badgeContent:t,invisible:r=!1,max:n=99,showZero:o=!1}=e,a=tl({badgeContent:t,max:n}),i=r;!1!==r||0!==t||o||(i=!0);let{badgeContent:l,max:s=n}=i?a:e,u=l&&Number(l)>s?`${s}+`:l;return{badgeContent:l,invisible:i,max:s,displayValue:u}}({max:b,invisible:v,badgeContent:y,showZero:C}),M=tl({anchorOrigin:u,color:g,overlap:h,variant:Z,badgeContent:y}),I=F||null==S&&"dot"!==Z,{color:j=g,overlap:T=h,anchorOrigin:A=u,variant:N=Z}=I?M:s,L="dot"!==N?E:void 0,B=(0,R.Z)({},s,{badgeContent:S,invisible:I,max:k,displayValue:L,showZero:C,anchorOrigin:A,color:j,overlap:T,variant:N}),z=rU(B),W=null!=(r=null!=(n=null==D?void 0:D.root)?n:p.Root)?r:rH,U=null!=(o=null!=(a=null==D?void 0:D.badge)?a:p.Badge)?o:rG,H=null!=(i=null==x?void 0:x.root)?i:f.root,G=null!=(l=null==x?void 0:x.badge)?l:f.badge,Y=tF({elementType:W,externalSlotProps:H,externalForwardedProps:w,additionalProps:{ref:t,as:d},ownerState:B,className:(0,O.Z)(null==H?void 0:H.className,z.root,c)}),V=tF({elementType:U,externalSlotProps:G,ownerState:B,className:(0,O.Z)(z.badge,null==G?void 0:G.className)});return(0,eu.jsxs)(W,(0,R.Z)({},Y,{children:[m,(0,eu.jsx)(U,(0,R.Z)({},V,{children:L}))]}))});function rV(e){return(0,ei.ZP)("MuiBottomNavigation",e)}var r$=(0,ea.Z)("MuiBottomNavigation",["root"]);let rq=["children","className","component","onChange","showLabels","value"],rQ=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},rV,t)},rX=(0,W.ZP)("div",{name:"MuiBottomNavigation",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{display:"flex",justifyContent:"center",height:56,backgroundColor:(t.vars||t).palette.background.paper}});var rK=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiBottomNavigation"}),{children:n,className:o,component:a="div",onChange:i,showLabels:l=!1,value:s}=r,u=(0,P.Z)(r,rq),c=(0,R.Z)({},r,{component:a,showLabels:l}),d=rQ(c);return(0,eu.jsx)(rX,(0,R.Z)({as:a,className:(0,O.Z)(d.root,o),ref:t,ownerState:c},u,{children:B.Children.map(n,(e,t)=>{if(!B.isValidElement(e))return null;let r=void 0===e.props.value?t:e.props.value;return B.cloneElement(e,{selected:r===s,showLabel:void 0!==e.props.showLabel?e.props.showLabel:l,value:r,onChange:i})})}))});function rJ(e){return(0,ei.ZP)("MuiBottomNavigationAction",e)}var r0=(0,ea.Z)("MuiBottomNavigationAction",["root","iconOnly","selected","label"]);let r1=["className","icon","label","onChange","onClick","selected","showLabel","value"],r2=e=>{let{classes:t,showLabel:r,selected:n}=e;return(0,z.Z)({root:["root",!r&&!n&&"iconOnly",n&&"selected"],label:["label",!r&&!n&&"iconOnly",n&&"selected"]},rJ,t)},r4=(0,W.ZP)(e$.Z,{name:"MuiBottomNavigationAction",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.showLabel&&!r.selected&&t.iconOnly]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({transition:t.transitions.create(["color","padding-top"],{duration:t.transitions.duration.short}),padding:"0px 12px",minWidth:80,maxWidth:168,color:(t.vars||t).palette.text.secondary,flexDirection:"column",flex:"1"},!r.showLabel&&!r.selected&&{paddingTop:14},!r.showLabel&&!r.selected&&!r.label&&{paddingTop:0},{["&.".concat(r0.selected)]:{color:(t.vars||t).palette.primary.main}})}),r3=(0,W.ZP)("span",{name:"MuiBottomNavigationAction",slot:"Label",overridesResolver:(e,t)=>t.label})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s"},!r.showLabel&&!r.selected&&{opacity:0,transitionDelay:"0s"},{["&.".concat(r0.selected)]:{fontSize:t.typography.pxToRem(14)}})});var r5=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiBottomNavigationAction"}),{className:n,icon:o,label:a,onChange:i,onClick:l,value:s}=r,u=(0,P.Z)(r,r1),c=r2(r);return(0,eu.jsxs)(r4,(0,R.Z)({ref:t,className:(0,O.Z)(c.root,n),focusRipple:!0,onClick:e=>{i&&i(e,s),l&&l(e)},ownerState:r},u,{children:[o,(0,eu.jsx)(r3,{className:c.label,ownerState:r,children:a})]}))}),r8=r(53043),r6=r(4856),r9=r(58046),r7=(0,tV.Z)((0,eu.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");let ne=["slots","slotProps"],nt=(0,W.ZP)(e$.Z)(e=>{let{theme:t}=e;return(0,R.Z)({display:"flex",marginLeft:"calc(".concat(t.spacing(1)," * 0.5)"),marginRight:"calc(".concat(t.spacing(1)," * 0.5)")},"light"===t.palette.mode?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":(0,R.Z)({},"light"===t.palette.mode?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":(0,R.Z)({boxShadow:t.shadows[0]},"light"===t.palette.mode?{backgroundColor:(0,tg._4)(t.palette.grey[200],.12)}:{backgroundColor:(0,tg._4)(t.palette.grey[600],.12)})})}),nr=(0,W.ZP)(r7)({width:24,height:16});var nn=function(e){let{slots:t={},slotProps:r={}}=e,n=(0,P.Z)(e,ne);return(0,eu.jsx)("li",{children:(0,eu.jsx)(nt,(0,R.Z)({focusRipple:!0},n,{ownerState:e,children:(0,eu.jsx)(nr,(0,R.Z)({as:t.CollapsedIcon,ownerState:e},r.collapsedIcon))}))})};function no(e){return(0,ei.ZP)("MuiBreadcrumbs",e)}var na=(0,ea.Z)("MuiBreadcrumbs",["root","ol","li","separator"]);let ni=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],nl=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},no,t)},ns=(0,W.ZP)(r9.Z,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{["& .".concat(na.li)]:t.li},t.root]})({}),nu=(0,W.ZP)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),nc=(0,W.ZP)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});var nd=B.forwardRef(function(e,t){var r,n;let o=(0,_.Z)({props:e,name:"MuiBreadcrumbs"}),{children:a,className:i,component:l="nav",slots:s={},slotProps:u={},expandText:c="Show path",itemsAfterCollapse:d=1,itemsBeforeCollapse:p=1,maxItems:f=8,separator:m="/"}=o,h=(0,P.Z)(o,ni),[g,v]=B.useState(!1),b=(0,R.Z)({},o,{component:l,expanded:g,expandText:c,itemsAfterCollapse:d,itemsBeforeCollapse:p,maxItems:f,separator:m}),y=nl(b),D=tF({elementType:s.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:b}),x=B.useRef(null),C=B.Children.toArray(a).filter(e=>B.isValidElement(e)).map((e,t)=>(0,eu.jsx)("li",{className:y.li,children:e},"child-".concat(t)));return(0,eu.jsx)(ns,(0,R.Z)({ref:t,component:l,color:"text.secondary",className:(0,O.Z)(y.root,i),ownerState:b},h,{children:(0,eu.jsx)(nu,{className:y.ol,ref:x,ownerState:b,children:(r=g||f&&C.length<=f?C:p+d>=C.length?C:[...C.slice(0,p),(0,eu.jsx)(nn,{"aria-label":c,slots:{CollapsedIcon:s.CollapsedIcon},slotProps:{collapsedIcon:D},onClick:()=>{v(!0);let e=x.current.querySelector("a[href],button,[tabindex]");e&&e.focus()}},"ellipsis"),...C.slice(C.length-d,C.length)],n=y.separator,r.reduce((e,t,o)=>(oB.isValidElement(e))}function nv(e){return(0,ei.ZP)("MuiButtonGroup",e)}var nb=(0,ea.Z)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),ny=r(26855),nD=r(88980);let nx=["children","className","color","component","disabled","disableElevation","disableFocusRipple","disableRipple","fullWidth","orientation","size","variant"],nC=e=>{let{classes:t,color:r,disabled:n,disableElevation:o,fullWidth:a,orientation:i,variant:l}=e,s={root:["root",l,"vertical"===i&&"vertical",a&&"fullWidth",o&&"disableElevation"],grouped:["grouped","grouped".concat((0,e6.Z)(i)),"grouped".concat((0,e6.Z)(l)),"grouped".concat((0,e6.Z)(l)).concat((0,e6.Z)(i)),"grouped".concat((0,e6.Z)(l)).concat((0,e6.Z)(r)),n&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,z.Z)(s,nv,t)},nZ=(0,W.ZP)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(nb.grouped)]:t.grouped},{["& .".concat(nb.grouped)]:t["grouped".concat((0,e6.Z)(r.orientation))]},{["& .".concat(nb.grouped)]:t["grouped".concat((0,e6.Z)(r.variant))]},{["& .".concat(nb.grouped)]:t["grouped".concat((0,e6.Z)(r.variant)).concat((0,e6.Z)(r.orientation))]},{["& .".concat(nb.grouped)]:t["grouped".concat((0,e6.Z)(r.variant)).concat((0,e6.Z)(r.color))]},{["& .".concat(nb.firstButton)]:t.firstButton},{["& .".concat(nb.lastButton)]:t.lastButton},{["& .".concat(nb.middleButton)]:t.middleButton},t.root,t[r.variant],!0===r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth,"vertical"===r.orientation&&t.vertical]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"contained"===r.variant&&{boxShadow:(t.vars||t).shadows[2]},r.disableElevation&&{boxShadow:"none"},r.fullWidth&&{width:"100%"},"vertical"===r.orientation&&{flexDirection:"column"},{["& .".concat(nb.grouped)]:(0,R.Z)({minWidth:40,"&:hover":(0,R.Z)({},"contained"===r.variant&&{boxShadow:"none"})},"contained"===r.variant&&{boxShadow:"none"}),["& .".concat(nb.firstButton,",& .").concat(nb.middleButton)]:(0,R.Z)({},"horizontal"===r.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===r.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===r.variant&&"horizontal"===r.orientation&&{borderRight:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(nb.disabled)]:{borderRight:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"text"===r.variant&&"vertical"===r.orientation&&{borderBottom:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(nb.disabled)]:{borderBottom:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"text"===r.variant&&"inherit"!==r.color&&{borderColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):(0,tg.Fq)(t.palette[r.color].main,.5)},"outlined"===r.variant&&"horizontal"===r.orientation&&{borderRightColor:"transparent"},"outlined"===r.variant&&"vertical"===r.orientation&&{borderBottomColor:"transparent"},"contained"===r.variant&&"horizontal"===r.orientation&&{borderRight:"1px solid ".concat((t.vars||t).palette.grey[400]),["&.".concat(nb.disabled)]:{borderRight:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"contained"===r.variant&&"vertical"===r.orientation&&{borderBottom:"1px solid ".concat((t.vars||t).palette.grey[400]),["&.".concat(nb.disabled)]:{borderBottom:"1px solid ".concat((t.vars||t).palette.action.disabled)}},"contained"===r.variant&&"inherit"!==r.color&&{borderColor:(t.vars||t).palette[r.color].dark},{"&:hover":(0,R.Z)({},"outlined"===r.variant&&"horizontal"===r.orientation&&{borderRightColor:"currentColor"},"outlined"===r.variant&&"vertical"===r.orientation&&{borderBottomColor:"currentColor"})}),["& .".concat(nb.lastButton,",& .").concat(nb.middleButton)]:(0,R.Z)({},"horizontal"===r.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===r.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===r.variant&&"horizontal"===r.orientation&&{marginLeft:-1},"outlined"===r.variant&&"vertical"===r.orientation&&{marginTop:-1})})});var nw=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiButtonGroup"}),{children:n,className:o,color:a="primary",component:i="div",disabled:l=!1,disableElevation:s=!1,disableFocusRipple:u=!1,disableRipple:c=!1,fullWidth:d=!1,orientation:p="horizontal",size:f="medium",variant:m="outlined"}=r,h=(0,P.Z)(r,nx),g=(0,R.Z)({},r,{color:a,component:i,disabled:l,disableElevation:s,disableFocusRipple:u,disableRipple:c,fullWidth:d,orientation:p,size:f,variant:m}),v=nC(g),b=B.useMemo(()=>({className:v.grouped,color:a,disabled:l,disableElevation:s,disableFocusRipple:u,disableRipple:c,fullWidth:d,size:f,variant:m}),[a,l,s,u,c,d,f,m,v.grouped]),y=ng(n),D=y.length,x=e=>{let t=0===e,r=e===D-1;return t&&r?"":t?v.firstButton:r?v.lastButton:v.middleButton};return(0,eu.jsx)(nZ,(0,R.Z)({as:i,role:"group",className:(0,O.Z)(v.root,o),ref:t,ownerState:g},h,{children:(0,eu.jsx)(ny.Z.Provider,{value:b,children:y.map((e,t)=>(0,eu.jsx)(nD.Z.Provider,{value:x(t),children:e},t))})}))});function nS(e){return(0,ei.ZP)("MuiCard",e)}var nF=(0,ea.Z)("MuiCard",["root"]);let nk=["className","raised"],nE=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},nS,t)},nM=(0,W.ZP)(ev.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"}));var nI=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCard"}),{className:n,raised:o=!1}=r,a=(0,P.Z)(r,nk),i=(0,R.Z)({},r,{raised:o}),l=nE(i);return(0,eu.jsx)(nM,(0,R.Z)({className:(0,O.Z)(l.root,n),elevation:o?8:void 0,ref:t,ownerState:i},a))}),nj=r(55019),nT=r(10563);function nA(e){return(0,ei.ZP)("MuiCardActions",e)}var nN=(0,ea.Z)("MuiCardActions",["root","spacing"]);let nL=["disableSpacing","className"],nP=e=>{let{classes:t,disableSpacing:r}=e;return(0,z.Z)({root:["root",!r&&"spacing"]},nA,t)},nR=(0,W.ZP)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})});var nB=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCardActions"}),{disableSpacing:n=!1,className:o}=r,a=(0,P.Z)(r,nL),i=(0,R.Z)({},r,{disableSpacing:n}),l=nP(i);return(0,eu.jsx)(nR,(0,R.Z)({className:(0,O.Z)(l.root,o),ownerState:i,ref:t},a))}),nO=r(44282),nz=r(15672);function nW(e){return(0,ei.ZP)("MuiCardHeader",e)}var n_=(0,ea.Z)("MuiCardHeader",["root","avatar","action","content","title","subheader"]);let nU=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],nH=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},nW,t)},nG=(0,W.ZP)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>(0,R.Z)({["& .".concat(n_.title)]:t.title,["& .".concat(n_.subheader)]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),nY=(0,W.ZP)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),nV=(0,W.ZP)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),n$=(0,W.ZP)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"});var nq=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCardHeader"}),{action:n,avatar:o,className:a,component:i="div",disableTypography:l=!1,subheader:s,subheaderTypographyProps:u,title:c,titleTypographyProps:d}=r,p=(0,P.Z)(r,nU),f=(0,R.Z)({},r,{component:i,disableTypography:l}),m=nH(f),h=c;null==h||h.type===r9.Z||l||(h=(0,eu.jsx)(r9.Z,(0,R.Z)({variant:o?"body2":"h5",className:m.title,component:"span",display:"block"},d,{children:h})));let g=s;return null==g||g.type===r9.Z||l||(g=(0,eu.jsx)(r9.Z,(0,R.Z)({variant:o?"body2":"body1",className:m.subheader,color:"text.secondary",component:"span",display:"block"},u,{children:g}))),(0,eu.jsxs)(nG,(0,R.Z)({className:(0,O.Z)(m.root,a),as:i,ref:t,ownerState:f},p,{children:[o&&(0,eu.jsx)(nY,{className:m.avatar,ownerState:f,children:o}),(0,eu.jsxs)(n$,{className:m.content,ownerState:f,children:[h,g]}),n&&(0,eu.jsx)(nV,{className:m.action,ownerState:f,children:n})]}))});function nQ(e){return(0,ei.ZP)("MuiCardMedia",e)}var nX=(0,ea.Z)("MuiCardMedia",["root","media","img"]);let nK=["children","className","component","image","src","style"],nJ=e=>{let{classes:t,isMediaComponent:r,isImageComponent:n}=e;return(0,z.Z)({root:["root",r&&"media",n&&"img"]},nQ,t)},n0=(0,W.ZP)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e,{isMediaComponent:n,isImageComponent:o}=r;return[t.root,n&&t.media,o&&t.img]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},t.isMediaComponent&&{width:"100%"},t.isImageComponent&&{objectFit:"cover"})}),n1=["video","audio","picture","iframe","img"],n2=["picture","img"];var n4=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCardMedia"}),{children:n,className:o,component:a="div",image:i,src:l,style:s}=r,u=(0,P.Z)(r,nK),c=-1!==n1.indexOf(a),d=!c&&i?(0,R.Z)({backgroundImage:'url("'.concat(i,'")')},s):s,p=(0,R.Z)({},r,{component:a,isMediaComponent:c,isImageComponent:-1!==n2.indexOf(a)}),f=nJ(p);return(0,eu.jsx)(n0,(0,R.Z)({className:(0,O.Z)(f.root,o),as:a,role:!c&&i?"img":void 0,ref:t,style:d,ownerState:p,src:c?i||l:void 0},u,{children:n}))}),n3=r(93067),n5=(0,tV.Z)((0,eu.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),n8=(0,tV.Z)((0,eu.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),n6=(0,tV.Z)((0,eu.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function n9(e){return(0,ei.ZP)("MuiCheckbox",e)}var n7=(0,ea.Z)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);let oe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ot=e=>{let{classes:t,indeterminate:r,color:n,size:o}=e,a={root:["root",r&&"indeterminate","color".concat((0,e6.Z)(n)),"size".concat((0,e6.Z)(o))]},i=(0,z.Z)(a,n9,t);return(0,R.Z)({},t,i)},or=(0,W.ZP)(n3.Z,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t["size".concat((0,e6.Z)(r.size))],"default"!==r.color&&t["color".concat((0,e6.Z)(r.color))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,tg.Fq)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(n7.checked,", &.").concat(n7.indeterminate)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(n7.disabled)]:{color:(t.vars||t).palette.action.disabled}})}),on=(0,eu.jsx)(n8,{}),oo=(0,eu.jsx)(n5,{}),oa=(0,eu.jsx)(n6,{});var oi=B.forwardRef(function(e,t){var r,n;let o=(0,_.Z)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=on,color:i="primary",icon:l=oo,indeterminate:s=!1,indeterminateIcon:u=oa,inputProps:c,size:d="medium",className:p}=o,f=(0,P.Z)(o,oe),m=s?u:l,h=s?u:a,g=(0,R.Z)({},o,{color:i,indeterminate:s,size:d}),v=ot(g);return(0,eu.jsx)(or,(0,R.Z)({type:"checkbox",inputProps:(0,R.Z)({"data-indeterminate":s},c),icon:B.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),checkedIcon:B.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),ownerState:g,ref:t,className:(0,O.Z)(v.root,p)},f,{classes:v}))}),ol=r(82729),os=r(70917);function ou(e){return(0,ei.ZP)("MuiCircularProgress",e)}var oc=(0,ea.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);function od(){let e=(0,ol._)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"]);return od=function(){return e},e}function op(){let e=(0,ol._)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"]);return op=function(){return e},e}function of(){let e=(0,ol._)(["\n animation: "," 1.4s linear infinite;\n "]);return of=function(){return e},e}function om(){let e=(0,ol._)(["\n animation: "," 1.4s ease-in-out infinite;\n "]);return om=function(){return e},e}let oh=["className","color","disableShrink","size","style","thickness","value","variant"],og=e=>e,ov,ob,oy,oD,ox=(0,os.F4)(ov||(ov=og(od()))),oC=(0,os.F4)(ob||(ob=og(op()))),oZ=e=>{let{classes:t,variant:r,color:n,disableShrink:o}=e,a={root:["root",r,"color".concat((0,e6.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,e6.Z)(r)),o&&"circleDisableShrink"]};return(0,z.Z)(a,ou,t)},ow=(0,W.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["color".concat((0,e6.Z)(r.color))]]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:r.transitions.create("transform")},"inherit"!==t.color&&{color:(r.vars||r).palette[t.color].main})},e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,os.iv)(oy||(oy=og(of(),0)),ox)}),oS=(0,W.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),oF=(0,W.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,t["circle".concat((0,e6.Z)(r.variant))],r.disableShrink&&t.circleDisableShrink]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})},e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,os.iv)(oD||(oD=og(om(),0)),oC)});var ok=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiCircularProgress"}),{className:n,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:u=0,variant:c="indeterminate"}=r,d=(0,P.Z)(r,oh),p=(0,R.Z)({},r,{color:o,disableShrink:a,size:i,thickness:s,value:u,variant:c}),f=oZ(p),m={},h={},g={};if("determinate"===c){let e=2*Math.PI*((44-s)/2);m.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(u),m.strokeDashoffset="".concat(((100-u)/100*e).toFixed(3),"px"),h.transform="rotate(-90deg)"}return(0,eu.jsx)(ow,(0,R.Z)({className:(0,O.Z)(f.root,n),style:(0,R.Z)({width:i,height:i},h,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:(0,eu.jsx)(oS,{className:f.svg,ownerState:p,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44),children:(0,eu.jsx)(oF,{className:f.circle,style:m,ownerState:p,cx:44,cy:44,r:(44-s)/2,fill:"none",strokeWidth:s})})}))});function oE(e){return e.substring(2).toLowerCase()}function oM(e){let{children:t,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,i=B.useRef(!1),l=B.useRef(null),s=B.useRef(!1),u=B.useRef(!1);B.useEffect(()=>(setTimeout(()=>{s.current=!0},0),()=>{s.current=!1}),[]);let c=(0,eD.Z)(t.ref,l),d=(0,ts.Z)(e=>{let t=u.current;u.current=!1;let n=(0,tb.Z)(l.current);if(s.current&&l.current&&(!("clientX"in e)||!(n.documentElement.clientWidth-1:!n.documentElement.contains(e.target)||l.current.contains(e.target))||!r&&t||o(e)}}),p=e=>r=>{u.current=!0;let n=t.props[e];n&&n(r)},f={ref:c};return!1!==a&&(f[a]=p(a)),B.useEffect(()=>{if(!1!==a){let e=oE(a),t=(0,tb.Z)(l.current),r=()=>{i.current=!0};return t.addEventListener(e,d),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,d),t.removeEventListener("touchmove",r)}}},[d,a]),!1!==n&&(f[n]=p(n)),B.useEffect(()=>{if(!1!==n){let e=oE(n),t=(0,tb.Z)(l.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,n]),(0,eu.jsx)(B.Fragment,{children:B.cloneElement(t,f)})}var oI=r(59979);function oj(e){return(0,ei.ZP)("MuiContainer",e)}var oT=(0,ea.Z)("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]),oA=r(41234),oN=r(96682),oL=function({styles:e,themeId:t,defaultTheme:r={}}){let n=(0,oN.Z)(r),o="function"==typeof e?e(t&&n[t]||n):e;return(0,eu.jsx)(oA.Z,{styles:o})},oP=r(17854),oR=r(95038),oB=function(e){return(0,eu.jsx)(oL,(0,R.Z)({},e,{defaultTheme:oP.Z,themeId:oR.Z}))};let oO=(e,t)=>(0,R.Z)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),oz=e=>(0,R.Z)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),oW=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};r&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(t=>{var r;let[o,a]=t;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:null==(r=a.palette)?void 0:r.mode}});let o=(0,R.Z)({html:oO(e,r),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,R.Z)({margin:0},oz(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n),a=null==(t=e.components)||null==(t=t.MuiCssBaseline)?void 0:t.styleOverrides;return a&&(o=[o,a]),o};var o_=function(e){let{children:t,enableColorScheme:r=!1}=(0,_.Z)({props:e,name:"MuiCssBaseline"});return(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)(oB,{styles:e=>oW(e,r)}),t]})};let oU={track:"#2b2b2b",thumb:"#6b6b6b",active:"#959595"};function oH(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oU;return{scrollbarColor:"".concat(e.thumb," ").concat(e.track),"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:e.track},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:e.thumb,minHeight:24,border:"3px solid ".concat(e.track)},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:e.active},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:e.active},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:e.active},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:e.track}}}var oG=r(91476),oY=r(74161);function oV(e){let t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function o$(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function oq(e){return parseInt((0,oY.Z)(e).getComputedStyle(e).paddingRight,10)||0}function oQ(e,t,r,n,o){let a=[t,r,...n];[].forEach.call(e.children,e=>{let t=-1===a.indexOf(e),r=!function(e){let t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&o$(e,o)})}function oX(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}class oK{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&o$(e.modalRef,!1);let n=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);oQ(t,e.mount,e.modalRef,n,!0);let o=oX(this.containers,e=>e.container===t);return -1!==o?this.containers[o].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r}mount(e,t){let r=oX(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=function(e,t){let r=[],n=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=(0,tb.Z)(e);return t.body===e?(0,oY.Z)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){let e=oV((0,tb.Z)(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${oq(n)+e}px`;let t=(0,tb.Z)(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${oq(t)+e}px`})}if(n.parentNode instanceof DocumentFragment)e=(0,tb.Z)(n).body;else{let t=n.parentElement,r=(0,oY.Z)(n);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}(n,t))}remove(e,t=!0){let r=this.modals.indexOf(e);if(-1===r)return r;let n=oX(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&o$(e.modalRef,t),oQ(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{let e=o.modals[o.modals.length-1];e.modalRef&&o$(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}let oJ=new oK;function o0(e){let t=[],r=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,n)=>{let o=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===o||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e)||(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function o1(){return!0}function o2(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=o0,isEnabled:i=o1,open:l}=e,s=B.useRef(!1),u=B.useRef(null),c=B.useRef(null),d=B.useRef(null),p=B.useRef(null),f=B.useRef(!1),m=B.useRef(null),h=(0,eD.Z)(t.ref,m),g=B.useRef(null);B.useEffect(()=>{l&&m.current&&(f.current=!r)},[r,l]),B.useEffect(()=>{if(!l||!m.current)return;let e=(0,tb.Z)(m.current);return!m.current.contains(e.activeElement)&&(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[l]),B.useEffect(()=>{if(!l||!m.current)return;let e=(0,tb.Z)(m.current),t=t=>{g.current=t,!n&&i()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{let t=m.current;if(null===t)return;if(!e.hasFocus()||!i()||s.current){s.current=!1;return}if(t.contains(e.activeElement)||n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if((e.activeElement===u.current||e.activeElement===c.current)&&(r=a(m.current)),r.length>0){var o,l;let e=!!((null==(o=g.current)?void 0:o.shiftKey)&&(null==(l=g.current)?void 0:l.key)==="Tab"),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);let o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,i,l,a]);let v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),B.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;let r=t.props.onFocus;r&&r(e)}}),(0,eu.jsx)("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}function o4(e){return(0,ei.ZP)("MuiModal",e)}var o3=(0,ea.Z)("MuiModal",["root","hidden","backdrop"]);let o5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],o8=e=>{let{open:t,exited:r,classes:n}=e;return(0,z.Z)({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},o4,n)},o6=(0,W.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!r.open&&r.exited&&{visibility:"hidden"})}),o9=(0,W.ZP)(rO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var o7=B.forwardRef(function(e,t){var r,n,o,a,i,l;let s=(0,_.Z)({name:"MuiModal",props:e}),{BackdropComponent:u=o9,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:D=!1,disablePortal:x=!1,disableRestoreFocus:C=!1,disableScrollLock:Z=!1,hideBackdrop:w=!1,keepMounted:S=!1,onBackdropClick:F,open:k,slotProps:E,slots:M}=s,I=(0,P.Z)(s,o5),j=(0,R.Z)({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:D,disablePortal:x,disableRestoreFocus:C,disableScrollLock:Z,hideBackdrop:w,keepMounted:S}),{getRootProps:T,getBackdropProps:A,getTransitionProps:N,portalRef:L,isTopModal:z,exited:W,hasTransition:U}=function(e){let{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=oJ,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=B.useRef({}),f=B.useRef(null),m=B.useRef(null),h=(0,eD.Z)(m,d),[g,v]=B.useState(!c),b=!!s&&s.props.hasOwnProperty("in"),y=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(y=!1);let D=()=>(0,tb.Z)(f.current),x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),C=()=>{o.mount(x(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},Z=(0,ts.Z)(()=>{let e=("function"==typeof t?t():t)||D().body;o.add(x(),e),m.current&&C()}),w=B.useCallback(()=>o.isTopModal(x()),[o]),S=(0,ts.Z)(e=>{f.current=e,e&&(c&&w()?C():m.current&&o$(m.current,y))}),F=B.useCallback(()=>{o.remove(x(),y)},[y,o]);B.useEffect(()=>()=>{F()},[F]),B.useEffect(()=>{c?Z():b&&a||F()},[c,F,b,a,Z]);let k=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&!r&&(t.stopPropagation(),u&&u(t,"escapeKeyDown"))},E=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{let r=eC(e);delete r.onTransitionEnter,delete r.onTransitionExited;let n=(0,R.Z)({},r,t);return(0,R.Z)({role:"presentation"},n,{onKeyDown:k(n),ref:h})},getBackdropProps:(e={})=>(0,R.Z)({"aria-hidden":!0},e,{onClick:E(e),open:c}),getTransitionProps:()=>({onEnter:(0,oG.Z)(()=>{v(!1),i&&i()},null==s?void 0:s.props.onEnter),onExited:(0,oG.Z)(()=>{v(!0),l&&l(),a&&F()},null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:S,isTopModal:w,exited:g,hasTransition:b}}((0,R.Z)({},j,{rootRef:t})),H=(0,R.Z)({},j,{exited:W}),G=o8(H),Y={};if(void 0===f.props.tabIndex&&(Y.tabIndex="-1"),U){let{onEnter:e,onExited:t}=N();Y.onEnter=e,Y.onExited=t}let V=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:o6,$=null!=(o=null!=(a=null==M?void 0:M.backdrop)?a:g.Backdrop)?o:u,q=null!=(i=null==E?void 0:E.root)?i:v.root,Q=null!=(l=null==E?void 0:E.backdrop)?l:v.backdrop,X=tF({elementType:V,externalSlotProps:q,externalForwardedProps:I,getSlotProps:T,additionalProps:{ref:t,as:h},ownerState:H,className:(0,O.Z)(d,null==q?void 0:q.className,null==G?void 0:G.root,!H.open&&H.exited&&(null==G?void 0:G.hidden))}),K=tF({elementType:$,externalSlotProps:Q,additionalProps:c,getSlotProps:e=>A((0,R.Z)({},e,{onClick:t=>{F&&F(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,O.Z)(null==Q?void 0:Q.className,null==c?void 0:c.className,null==G?void 0:G.backdrop),ownerState:H});return S||k||U&&!W?(0,eu.jsx)(tD,{ref:L,container:m,disablePortal:x,children:(0,eu.jsxs)(V,(0,R.Z)({},X,{children:[!w&&u?(0,eu.jsx)($,(0,R.Z)({},K)):null,(0,eu.jsx)(o2,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:z,open:k,children:B.cloneElement(f,Y)})]}))}):null});function ae(e){return(0,ei.ZP)("MuiDialog",e)}var at=(0,ea.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);let ar=B.createContext({}),an=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],ao=(0,W.ZP)(rO,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),aa=e=>{let{classes:t,scroll:r,maxWidth:n,fullWidth:o,fullScreen:a}=e,i={root:["root"],container:["container","scroll".concat((0,e6.Z)(r))],paper:["paper","paperScroll".concat((0,e6.Z)(r)),"paperWidth".concat((0,e6.Z)(String(n))),o&&"paperFullWidth",a&&"paperFullScreen"]};return(0,z.Z)(i,ae,t)},ai=(0,W.ZP)(o7,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),al=(0,W.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.container,t["scroll".concat((0,e6.Z)(r.scroll))]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})}),as=(0,W.ZP)(ev.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t["scrollPaper".concat((0,e6.Z)(r.scroll))],t["paperWidth".concat((0,e6.Z)(String(r.maxWidth)))],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===r.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===r.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!r.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===r.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(at.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},r.maxWidth&&"xs"!==r.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[r.maxWidth]).concat(t.breakpoints.unit),["&.".concat(at.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[r.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},r.fullWidth&&{width:"calc(100% - 64px)"},r.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(at.paperScrollBody)]:{margin:0,maxWidth:"100%"}})});var au=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDialog"}),n=(0,en.Z)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":i,BackdropComponent:l,BackdropProps:s,children:u,className:c,disableEscapeKeyDown:d=!1,fullScreen:p=!1,fullWidth:f=!1,maxWidth:m="sm",onBackdropClick:h,onClose:g,open:v,PaperComponent:b=ev.Z,PaperProps:y={},scroll:D="paper",TransitionComponent:x=rA,transitionDuration:C=o,TransitionProps:Z}=r,w=(0,P.Z)(r,an),S=(0,R.Z)({},r,{disableEscapeKeyDown:d,fullScreen:p,fullWidth:f,maxWidth:m,scroll:D}),F=aa(S),k=B.useRef(),E=(0,ta.Z)(i),M=B.useMemo(()=>({titleId:E}),[E]);return(0,eu.jsx)(ai,(0,R.Z)({className:(0,O.Z)(F.root,c),closeAfterTransition:!0,components:{Backdrop:ao},componentsProps:{backdrop:(0,R.Z)({transitionDuration:C,as:l},s)},disableEscapeKeyDown:d,onClose:g,open:v,ref:t,onClick:e=>{k.current&&(k.current=null,h&&h(e),g&&g(e,"backdropClick"))},ownerState:S},w,{children:(0,eu.jsx)(x,(0,R.Z)({appear:!0,in:v,timeout:C,role:"presentation"},Z,{children:(0,eu.jsx)(al,{className:(0,O.Z)(F.container),onMouseDown:e=>{k.current=e.target===e.currentTarget},ownerState:S,children:(0,eu.jsx)(as,(0,R.Z)({as:b,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":E},y,{className:(0,O.Z)(F.paper,y.className),ownerState:S,children:(0,eu.jsx)(ar.Provider,{value:M,children:u})}))})}))}))});function ac(e){return(0,ei.ZP)("MuiDialogActions",e)}var ad=(0,ea.Z)("MuiDialogActions",["root","spacing"]);let ap=["className","disableSpacing"],af=e=>{let{classes:t,disableSpacing:r}=e;return(0,z.Z)({root:["root",!r&&"spacing"]},ac,t)},am=(0,W.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})});var ah=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:o=!1}=r,a=(0,P.Z)(r,ap),i=(0,R.Z)({},r,{disableSpacing:o}),l=af(i);return(0,eu.jsx)(am,(0,R.Z)({className:(0,O.Z)(l.root,n),ownerState:i,ref:t},a))});function ag(e){return(0,ei.ZP)("MuiDialogContent",e)}var av=(0,ea.Z)("MuiDialogContent",["root","dividers"]);function ab(e){return(0,ei.ZP)("MuiDialogTitle",e)}var ay=(0,ea.Z)("MuiDialogTitle",["root"]);let aD=["className","dividers"],ax=e=>{let{classes:t,dividers:r}=e;return(0,z.Z)({root:["root",r&&"dividers"]},ag,t)},aC=(0,W.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},r.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(ay.root," + &")]:{paddingTop:0}})});var aZ=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDialogContent"}),{className:n,dividers:o=!1}=r,a=(0,P.Z)(r,aD),i=(0,R.Z)({},r,{dividers:o}),l=ax(i);return(0,eu.jsx)(aC,(0,R.Z)({className:(0,O.Z)(l.root,n),ownerState:i,ref:t},a))});function aw(e){return(0,ei.ZP)("MuiDialogContentText",e)}var aS=(0,ea.Z)("MuiDialogContentText",["root"]);let aF=["children","className"],ak=e=>{let{classes:t}=e,r=(0,z.Z)({root:["root"]},aw,t);return(0,R.Z)({},t,r)},aE=(0,W.ZP)(r9.Z,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({});var aM=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDialogContentText"}),{className:n}=r,o=(0,P.Z)(r,aF),a=ak(o);return(0,eu.jsx)(aE,(0,R.Z)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:o,className:(0,O.Z)(a.root,n)},r,{classes:a}))});let aI=["className","id"],aj=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},ab,t)},aT=(0,W.ZP)(r9.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"});var aA=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDialogTitle"}),{className:n,id:o}=r,a=(0,P.Z)(r,aI),i=aj(r),{titleId:l=o}=B.useContext(ar);return(0,eu.jsx)(aT,(0,R.Z)({component:"h2",className:(0,O.Z)(i.root,n),ownerState:r,ref:t,variant:"h6",id:null!=o?o:l},a))}),aN=r(59505),aL=r(70869),aP=r(31837),aR=r(81603);let aB=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function aO(e,t,r){let n=function(e,t,r){let n;let o=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=(0,aR.Z)(t);if(t.fakeTransform)n=t.fakeTransform;else{let e=i.getComputedStyle(t);n=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let l=0,s=0;if(n&&"none"!==n&&"string"==typeof n){let e=n.split("(")[1].split(")")[0].split(",");l=parseInt(e[4],10),s=parseInt(e[5],10)}return"left"===e?a?"translateX(".concat(a.right+l-o.left,"px)"):"translateX(".concat(i.innerWidth+l-o.left,"px)"):"right"===e?a?"translateX(-".concat(o.right-a.left-l,"px)"):"translateX(-".concat(o.left+o.width-l,"px)"):"up"===e?a?"translateY(".concat(a.bottom+s-o.top,"px)"):"translateY(".concat(i.innerHeight+s-o.top,"px)"):a?"translateY(-".concat(o.top-a.top+o.height-s,"px)"):"translateY(-".concat(o.top+o.height-s,"px)")}(e,t,"function"==typeof r?r():r);n&&(t.style.webkitTransform=n,t.style.transform=n)}var az=B.forwardRef(function(e,t){let r=(0,en.Z)(),n={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:i=!0,children:l,container:s,direction:u="down",easing:c=n,in:d,onEnter:p,onEntered:f,onEntering:m,onExit:h,onExited:g,onExiting:v,style:b,timeout:y=o,TransitionComponent:D=K}=e,x=(0,P.Z)(e,aB),C=B.useRef(null),Z=(0,eo.Z)(l.ref,C,t),w=e=>t=>{e&&(void 0===t?e(C.current):e(C.current,t))},S=w((e,t)=>{aO(u,e,s),et(e),p&&p(e,t)}),F=w((e,t)=>{let n=er({timeout:y,style:b,easing:c},{mode:"enter"});e.style.webkitTransition=r.transitions.create("-webkit-transform",(0,R.Z)({},n)),e.style.transition=r.transitions.create("transform",(0,R.Z)({},n)),e.style.webkitTransform="none",e.style.transform="none",m&&m(e,t)}),k=w(f),E=w(v),M=w(e=>{let t=er({timeout:y,style:b,easing:c},{mode:"exit"});e.style.webkitTransition=r.transitions.create("-webkit-transform",t),e.style.transition=r.transitions.create("transform",t),aO(u,e,s),h&&h(e)}),I=w(e=>{e.style.webkitTransition="",e.style.transition="",g&&g(e)}),j=B.useCallback(()=>{C.current&&aO(u,C.current,s)},[u,s]);return B.useEffect(()=>{if(d||"down"===u||"right"===u)return;let e=(0,aP.Z)(()=>{C.current&&aO(u,C.current,s)}),t=(0,aR.Z)(C.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[u,d,s]),B.useEffect(()=>{d||j()},[d,j]),(0,eu.jsx)(D,(0,R.Z)({nodeRef:C,onEnter:S,onEntered:k,onEntering:F,onExit:M,onExited:I,onExiting:E,addEndListener:e=>{a&&a(C.current,e)},appear:i,in:d,timeout:y},x,{children:(e,t)=>B.cloneElement(l,(0,R.Z)({ref:Z,style:(0,R.Z)({visibility:"exited"!==e||d?void 0:"hidden"},b,l.props.style)},t))}))});function aW(e){return(0,ei.ZP)("MuiDrawer",e)}var a_=(0,ea.Z)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);let aU=["BackdropProps"],aH=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],aG=(e,t)=>{let{ownerState:r}=e;return[t.root,("permanent"===r.variant||"persistent"===r.variant)&&t.docked,t.modal]},aY=e=>{let{classes:t,anchor:r,variant:n}=e,o={root:["root"],docked:[("permanent"===n||"persistent"===n)&&"docked"],modal:["modal"],paper:["paper","paperAnchor".concat((0,e6.Z)(r)),"temporary"!==n&&"paperAnchorDocked".concat((0,e6.Z)(r))]};return(0,z.Z)(o,aW,t)},aV=(0,W.ZP)(o7,{name:"MuiDrawer",slot:"Root",overridesResolver:aG})(e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.drawer}}),a$=(0,W.ZP)("div",{shouldForwardProp:W.FO,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:aG})({flex:"0 0 auto"}),aq=(0,W.ZP)(ev.Z,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t["paperAnchor".concat((0,e6.Z)(r.anchor))],"temporary"!==r.variant&&t["paperAnchorDocked".concat((0,e6.Z)(r.anchor))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===r.anchor&&{left:0},"top"===r.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===r.anchor&&{right:0},"bottom"===r.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===r.anchor&&"temporary"!==r.variant&&{borderRight:"1px solid ".concat((t.vars||t).palette.divider)},"top"===r.anchor&&"temporary"!==r.variant&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider)},"right"===r.anchor&&"temporary"!==r.variant&&{borderLeft:"1px solid ".concat((t.vars||t).palette.divider)},"bottom"===r.anchor&&"temporary"!==r.variant&&{borderTop:"1px solid ".concat((t.vars||t).palette.divider)})}),aQ={left:"right",right:"left",top:"down",bottom:"up"};function aX(e){return -1!==["left","right"].indexOf(e)}function aK(e,t){return"rtl"===e.direction&&aX(t)?aQ[t]:t}var aJ=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiDrawer"}),n=(0,en.Z)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:i,children:l,className:s,elevation:u=16,hideBackdrop:c=!1,ModalProps:{BackdropProps:d}={},onClose:p,open:f=!1,PaperProps:m={},SlideProps:h,TransitionComponent:g=az,transitionDuration:v=o,variant:b="temporary"}=r,y=(0,P.Z)(r.ModalProps,aU),D=(0,P.Z)(r,aH),x=B.useRef(!1);B.useEffect(()=>{x.current=!0},[]);let C=aK(n,a),Z=(0,R.Z)({},r,{anchor:a,elevation:u,open:f,variant:b},D),w=aY(Z),S=(0,eu.jsx)(aq,(0,R.Z)({elevation:"temporary"===b?u:0,square:!0},m,{className:(0,O.Z)(w.paper,m.className),ownerState:Z,children:l}));if("permanent"===b)return(0,eu.jsx)(a$,(0,R.Z)({className:(0,O.Z)(w.root,w.docked,s),ownerState:Z,ref:t},D,{children:S}));let F=(0,eu.jsx)(g,(0,R.Z)({in:f,direction:aQ[C],timeout:v,appear:x.current},h,{children:S}));return"persistent"===b?(0,eu.jsx)(a$,(0,R.Z)({className:(0,O.Z)(w.root,w.docked,s),ownerState:Z,ref:t},D,{children:F})):(0,eu.jsx)(aV,(0,R.Z)({BackdropProps:(0,R.Z)({},i,d,{transitionDuration:v}),className:(0,O.Z)(w.root,w.modal,s),open:f,ownerState:Z,onClose:p,hideBackdrop:c,ref:t},D,y,{children:F}))});function a0(e){return(0,ei.ZP)("MuiFab",e)}var a1=(0,ea.Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);let a2=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],a4=e=>{let{color:t,variant:r,classes:n,size:o}=e,a={root:["root",r,"size".concat((0,e6.Z)(o)),"inherit"===t?"colorInherit":t]},i=(0,z.Z)(a,a0,n);return(0,R.Z)({},n,i)},a3=(0,W.ZP)(e$.Z,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,e6.Z)(r.size))],"inherit"===r.color&&t.colorInherit,t[(0,e6.Z)(r.size)],t[r.color]]}})(e=>{var t,r;let{theme:n,ownerState:o}=e;return(0,R.Z)({},n.typography.button,{minHeight:36,transition:n.transitions.create(["background-color","box-shadow","border-color"],{duration:n.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(n.vars||n).zIndex.fab,boxShadow:(n.vars||n).shadows[6],"&:active":{boxShadow:(n.vars||n).shadows[12]},color:n.vars?n.vars.palette.text.primary:null==(t=(r=n.palette).getContrastText)?void 0:t.call(r,n.palette.grey[300]),backgroundColor:(n.vars||n).palette.grey[300],"&:hover":{backgroundColor:(n.vars||n).palette.grey.A100,"@media (hover: none)":{backgroundColor:(n.vars||n).palette.grey[300]},textDecoration:"none"},["&.".concat(a1.focusVisible)]:{boxShadow:(n.vars||n).shadows[6]}},"small"===o.size&&{width:40,height:40},"medium"===o.size&&{width:48,height:48},"extended"===o.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===o.variant&&"small"===o.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===o.variant&&"medium"===o.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===o.color&&{color:"inherit"})},e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},"inherit"!==r.color&&"default"!==r.color&&null!=(t.vars||t).palette[r.color]&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}}})},e=>{let{theme:t}=e;return{["&.".concat(a1.disabled)]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}});var a5=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiFab"}),{children:n,className:o,color:a="default",component:i="button",disabled:l=!1,disableFocusRipple:s=!1,focusVisibleClassName:u,size:c="large",variant:d="circular"}=r,p=(0,P.Z)(r,a2),f=(0,R.Z)({},r,{color:a,component:i,disabled:l,disableFocusRipple:s,size:c,variant:d}),m=a4(f);return(0,eu.jsx)(a3,(0,R.Z)({className:(0,O.Z)(m.root,o),component:i,disabled:l,focusRipple:!s,focusVisibleClassName:(0,O.Z)(m.focusVisible,u),ownerState:f,ref:t},p,{classes:m,children:n}))}),a8=r(4953),a6=r(56535),a9=r(39336);let a7=["onChange","maxRows","minRows","style","value"];function ie(e){return parseInt(e,10)||0}let it={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ir(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}let io=B.forwardRef(function(e,t){let{onChange:r,maxRows:n,minRows:o=1,style:a,value:i}=e,l=(0,P.Z)(e,a7),{current:s}=B.useRef(null!=i),u=B.useRef(null),c=(0,eD.Z)(t,u),d=B.useRef(null),p=B.useRef(0),[f,m]=B.useState({outerHeightStyle:0}),h=B.useCallback(()=>{let t=u.current,r=(0,oY.Z)(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};let a=d.current;a.style.width=r.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");let i=r.boxSizing,l=ie(r.paddingBottom)+ie(r.paddingTop),s=ie(r.borderBottomWidth)+ie(r.borderTopWidth),c=a.scrollHeight;a.value="x";let p=a.scrollHeight,f=c;return o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),{outerHeightStyle:(f=Math.max(f,p))+("border-box"===i?l+s:0),overflow:1>=Math.abs(f-c)}},[n,o,e.placeholder]),g=(e,t)=>{let{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},v=B.useCallback(()=>{let e=h();ir(e)||m(t=>g(t,e))},[h]);return(0,tv.Z)(()=>{let e,t;let r=()=>{let e=h();ir(e)||H.flushSync(()=>{m(t=>g(t,e))})},n=()=>{p.current=0,r()},o=(0,a9.Z)(n),a=u.current,i=(0,oY.Z)(a);return i.addEventListener("resize",o),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(n)).observe(a),()=>{o.clear(),cancelAnimationFrame(e),i.removeEventListener("resize",o),t&&t.disconnect()}},[h]),(0,tv.Z)(()=>{v()}),B.useEffect(()=>{p.current=0},[i]),(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)("textarea",(0,R.Z)({value:i,onChange:e=>{p.current=0,s||v(),r&&r(e)},ref:c,rows:o,style:(0,R.Z)({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},a)},l)),(0,eu.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:(0,R.Z)({},it,a,{paddingTop:0,paddingBottom:0})})]})});var ia=r(35029),ii=r(25491),il=r(12794),is=r(23769),iu=r(22537);let ic=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],id=(e,t)=>{let{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t["color".concat((0,e6.Z)(r.color))],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ip=(e,t)=>{let{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},im=e=>{let{classes:t,color:r,disabled:n,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e,h={root:["root","color".concat((0,e6.Z)(r)),n&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&"size".concat((0,e6.Z)(p)),c&&"multiline",f&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return(0,z.Z)(h,t4,t)},ih=(0,W.ZP)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:id})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(t3.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},r.multiline&&(0,R.Z)({padding:"4px 0 5px"},"small"===r.size&&{paddingTop:1}),r.fullWidth&&{width:"100%"})}),ig=(0,W.ZP)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ip})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode,o=(0,R.Z)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),a={opacity:"0 !important"},i=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return(0,R.Z)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(t3.formControl," &")]:{"&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},["&.".concat(t3.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===r.size&&{paddingTop:1},r.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===r.type&&{MozAppearance:"textfield"})}),iv=(0,eu.jsx)(oB,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}});var ib=B.forwardRef(function(e,t){var r;let n=(0,_.Z)({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:D,multiline:x=!1,name:C,onBlur:Z,onChange:w,onClick:S,onFocus:F,onKeyDown:k,onKeyUp:E,placeholder:M,readOnly:I,renderSuffix:j,rows:T,slotProps:A={},slots:N={},startAdornment:L,type:z="text",value:W}=n,U=(0,P.Z)(n,ic),H=null!=v.value?v.value:W,{current:G}=B.useRef(null!=H),Y=B.useRef(),V=B.useCallback(e=>{},[]),$=(0,eo.Z)(Y,b,v.ref,V),[q,Q]=B.useState(!1),X=(0,il.Z)(),K=(0,ia.Z)({props:n,muiFormControl:X,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=X?X.focused:q,B.useEffect(()=>{!X&&d&&q&&(Q(!1),Z&&Z())},[X,d,q,Z]);let J=X&&X.onFilled,ee=X&&X.onEmpty,et=B.useCallback(e=>{(0,iu.vd)(e)?J&&J():ee&&ee()},[J,ee]);(0,is.Z)(()=>{G&&et({value:H})},[H,et,G]),B.useEffect(()=>{et(Y.current)},[]);let er=g,en=v;x&&"input"===er&&(en=T?(0,R.Z)({type:void 0,minRows:T,maxRows:T},en):(0,R.Z)({type:void 0,maxRows:y,minRows:D},en),er=io),B.useEffect(()=>{X&&X.setAdornedStart(!!L)},[X,L]);let ea=(0,R.Z)({},n,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:X,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:x,size:K.size,startAdornment:L,type:z}),ei=im(ea),el=N.root||s.Root||ih,es=A.root||u.root||{},ec=N.input||s.Input||ig;return en=(0,R.Z)({},en,null!=(r=A.input)?r:u.input),(0,eu.jsxs)(B.Fragment,{children:[!p&&iv,(0,eu.jsxs)(el,(0,R.Z)({},es,!eS(el)&&{ownerState:(0,R.Z)({},ea,es.ownerState)},{ref:t,onClick:e=>{Y.current&&e.currentTarget===e.target&&Y.current.focus(),S&&S(e)}},U,{className:(0,O.Z)(ei.root,es.className,l,I&&"MuiInputBase-readOnly"),children:[L,(0,eu.jsx)(ii.Z.Provider,{value:null,children:(0,eu.jsx)(ec,(0,R.Z)({ownerState:ea,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:c,disabled:K.disabled,id:h,onAnimationStart:e=>{et("mui-auto-fill-cancel"===e.animationName?Y.current:{value:"x"})},name:C,placeholder:M,readOnly:I,required:K.required,rows:T,value:H,onKeyDown:k,onKeyUp:E,type:z},en,!eS(ec)&&{as:er,ownerState:(0,R.Z)({},ea,en.ownerState)},{ref:$,className:(0,O.Z)(ei.input,en.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{Z&&Z(e),v.onBlur&&v.onBlur(e),X&&X.onBlur?X.onBlur(e):Q(!1)},onChange:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{if(K.disabled){e.stopPropagation();return}F&&F(e),v.onFocus&&v.onFocus(e),X&&X.onFocus?X.onFocus(e):Q(!0)}}))}),f,j?j((0,R.Z)({},K,{startAdornment:L})):null]}))]})});let iy=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],iD=e=>{let{classes:t,disableUnderline:r}=e,n=(0,z.Z)({root:["root",!r&&"underline"],input:["input"]},t7,t);return(0,R.Z)({},t,n)},ix=(0,W.ZP)(ih,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...id(e,t),!r.disableUnderline&&t.underline]}})(e=>{var t;let{theme:r,ownerState:n}=e,o="light"===r.palette.mode,a=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return(0,R.Z)({position:"relative",backgroundColor:r.vars?r.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(r.vars||r).shape.borderRadius,borderTopRightRadius:(r.vars||r).shape.borderRadius,transition:r.transitions.create("background-color",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),"&:hover":{backgroundColor:r.vars?r.vars.palette.FilledInput.hoverBg:o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:a}},["&.".concat(re.focused)]:{backgroundColor:r.vars?r.vars.palette.FilledInput.bg:a},["&.".concat(re.disabled)]:{backgroundColor:r.vars?r.vars.palette.FilledInput.disabledBg:o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},!n.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat(null==(t=(r.vars||r).palette[n.color||"primary"])?void 0:t.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:r.transitions.create("transform",{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(re.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(re.error)]:{"&::before, &::after":{borderBottomColor:(r.vars||r).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(r.vars?"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / ").concat(r.vars.opacity.inputUnderline,")"):o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)"),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:r.transitions.create("border-bottom-color",{duration:r.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(re.disabled,", .").concat(re.error,"):before")]:{borderBottom:"1px solid ".concat((r.vars||r).palette.text.primary)},["&.".concat(re.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,R.Z)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))}),iC=(0,W.ZP)(ig,{name:"MuiFilledInput",slot:"Input",overridesResolver:ip})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{paddingTop:21,paddingBottom:4},r.hiddenLabel&&{paddingTop:16,paddingBottom:17},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0},r.hiddenLabel&&"small"===r.size&&{paddingTop:8,paddingBottom:9},r.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})}),iZ=B.forwardRef(function(e,t){var r,n,o,a;let i=(0,_.Z)({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=i,h=(0,P.Z)(i,iy),g=(0,R.Z)({},i,{fullWidth:u,inputComponent:c,multiline:d,type:m}),v=iD(i),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?(0,a8.Z)(b,null!=p?p:s):b,D=null!=(r=null!=(n=f.root)?n:l.Root)?r:ix,x=null!=(o=null!=(a=f.input)?a:l.Input)?o:iC;return(0,eu.jsx)(ib,(0,R.Z)({slots:{root:D,input:x},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:v}))});iZ.muiName="Input";var iw=iZ,iS=r(51714),iF=r(20408),ik=r(88735),iE=r(59325),iM=r(46028),iI=r(58469);function ij(e){return(0,ei.ZP)("MuiFormHelperText",e)}var iT=(0,ea.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);let iA=["children","className","component","disabled","error","filled","focused","margin","required","variant"],iN=e=>{let{classes:t,contained:r,size:n,disabled:o,error:a,filled:i,focused:l,required:s}=e,u={root:["root",o&&"disabled",a&&"error",n&&"size".concat((0,e6.Z)(n)),r&&"contained",l&&"focused",i&&"filled",s&&"required"]};return(0,z.Z)(u,ij,t)},iL=(0,W.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.size&&t["size".concat((0,e6.Z)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(iT.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(iT.error)]:{color:(t.vars||t).palette.error.main}},"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})});var iP=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiFormHelperText"}),{children:n,className:o,component:a="p"}=r,i=(0,P.Z)(r,iA),s=(0,il.Z)(),u=(0,ia.Z)({props:r,muiFormControl:s,states:["variant","size","disabled","error","filled","focused","required"]}),c=(0,R.Z)({},r,{component:a,contained:"filled"===u.variant||"outlined"===u.variant,variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=iN(c);return(0,eu.jsx)(iL,(0,R.Z)({as:a,ownerState:c,className:(0,O.Z)(d.root,o),ref:t},i,{children:" "===n?l||(l=(0,eu.jsx)("span",{className:"notranslate",children:"​"})):n}))}),iR=r(17586),iB=r(65493),iO=r(99514),iz=r(84501),iW=r(17317),i_=r(13264),iU=r(29628),iH=r(39707),iG=r(88647);let iY=(e,t)=>e.filter(e=>t.includes(e)),iV=(e,t,r)=>{let n=e.keys[0];Array.isArray(t)?t.forEach((t,n)=>{r((t,r)=>{n<=e.keys.length-1&&(0===n?Object.assign(t,r):t[e.up(e.keys[n])]=r)},t)}):t&&"object"==typeof t?(Object.keys(t).length>e.keys.length?e.keys:iY(e.keys,Object.keys(t))).forEach(o=>{if(-1!==e.keys.indexOf(o)){let a=t[o];void 0!==a&&r((t,r)=>{n===o?Object.assign(t,r):t[e.up(o)]=r},a)}}):("number"==typeof t||"string"==typeof t)&&r((e,t)=>{Object.assign(e,t)},t)};function i$(e){return e?`Level${e}`:""}function iq(e){return e.unstable_level>0&&e.container}function iQ(e){return function(t){return`var(--Grid-${t}Spacing${i$(e.unstable_level)})`}}function iX(e){return function(t){return 0===e.unstable_level?`var(--Grid-${t}Spacing)`:`var(--Grid-${t}Spacing${i$(e.unstable_level-1)})`}}function iK(e){return 0===e.unstable_level?"var(--Grid-columns)":`var(--Grid-columns${i$(e.unstable_level-1)})`}let iJ=({theme:e,ownerState:t})=>{let r=iQ(t),n={};return iV(e.breakpoints,t.gridSize,(e,o)=>{let a={};!0===o&&(a={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===o&&(a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof o&&(a={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${o} / ${iK(t)}${iq(t)?` + ${r("column")}`:""})`}),e(n,a)}),n},i0=({theme:e,ownerState:t})=>{let r={};return iV(e.breakpoints,t.gridOffset,(e,n)=>{let o={};"auto"===n&&(o={marginLeft:"auto"}),"number"==typeof n&&(o={marginLeft:0===n?"0px":`calc(100% * ${n} / ${iK(t)})`}),e(r,o)}),r},i1=({theme:e,ownerState:t})=>{if(!t.container)return{};let r=iq(t)?{[`--Grid-columns${i$(t.unstable_level)}`]:iK(t)}:{"--Grid-columns":12};return iV(e.breakpoints,t.columns,(e,n)=>{e(r,{[`--Grid-columns${i$(t.unstable_level)}`]:n})}),r},i2=({theme:e,ownerState:t})=>{if(!t.container)return{};let r=iX(t),n=iq(t)?{[`--Grid-rowSpacing${i$(t.unstable_level)}`]:r("row")}:{};return iV(e.breakpoints,t.rowSpacing,(r,o)=>{var a;r(n,{[`--Grid-rowSpacing${i$(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})}),n},i4=({theme:e,ownerState:t})=>{if(!t.container)return{};let r=iX(t),n=iq(t)?{[`--Grid-columnSpacing${i$(t.unstable_level)}`]:r("column")}:{};return iV(e.breakpoints,t.columnSpacing,(r,o)=>{var a;r(n,{[`--Grid-columnSpacing${i$(t.unstable_level)}`]:"string"==typeof o?o:null==(a=e.spacing)?void 0:a.call(e,o)})}),n},i3=({theme:e,ownerState:t})=>{if(!t.container)return{};let r={};return iV(e.breakpoints,t.direction,(e,t)=>{e(r,{flexDirection:t})}),r},i5=({ownerState:e})=>{let t=iQ(e),r=iX(e);return(0,R.Z)({minWidth:0,boxSizing:"border-box"},e.container&&(0,R.Z)({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:`calc(${t("row")} / -2) calc(${t("column")} / -2)`},e.disableEqualOverflow&&{margin:`calc(${t("row")} * -1) 0px 0px calc(${t("column")} * -1)`}),(!e.container||iq(e))&&(0,R.Z)({padding:`calc(${r("row")} / 2) calc(${r("column")} / 2)`},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:`${r("row")} 0px 0px ${r("column")}`}))},i8=e=>{let t=[];return Object.entries(e).forEach(([e,r])=>{!1!==r&&void 0!==r&&t.push(`grid-${e}-${String(r)}`)}),t},i6=(e,t="xs")=>{function r(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(r(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,n])=>{r(n)&&t.push(`spacing-${e}-${String(n)}`)}),t}return[]},i9=e=>void 0===e?[]:"object"==typeof e?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`],i7=["className","children","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow","unstable_level"],le=(0,iG.Z)(),lt=(0,i_.Z)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function lr(e){return(0,iU.Z)({props:e,name:"MuiGrid",defaultTheme:le})}var ln=function(e={}){let{createStyledComponent:t=lt,useThemeProps:r=lr,componentName:n="MuiGrid"}=e,o=B.createContext(void 0),a=(e,t)=>{let{container:r,direction:o,spacing:a,wrap:i,gridSize:l}=e,s={root:["root",r&&"container","wrap"!==i&&`wrap-xs-${String(i)}`,...i9(o),...i8(l),...r?i6(a,t.breakpoints.keys[0]):[]]};return(0,z.Z)(s,e=>(0,ei.ZP)(n,e),{})},i=t(i1,i4,i2,iJ,i3,i5,i0),l=B.forwardRef(function(e,t){var n,l,s,u,c,d,p,f;let m=(0,oN.Z)(),h=r(e),g=(0,iH.Z)(h),v=B.useContext(o),{className:b,children:y,columns:D=12,container:x=!1,component:C="div",direction:Z="row",wrap:w="wrap",spacing:S=0,rowSpacing:F=S,columnSpacing:k=S,disableEqualOverflow:E,unstable_level:M=0}=g,I=(0,P.Z)(g,i7),j=E;M&&void 0!==E&&(j=e.disableEqualOverflow);let T={},A={},N={};Object.entries(I).forEach(([e,t])=>{void 0!==m.breakpoints.values[e]?T[e]=t:void 0!==m.breakpoints.values[e.replace("Offset","")]?A[e.replace("Offset","")]=t:N[e]=t});let L=null!=(n=e.columns)?n:M?void 0:D,z=null!=(l=e.spacing)?l:M?void 0:S,W=null!=(s=null!=(u=e.rowSpacing)?u:e.spacing)?s:M?void 0:F,_=null!=(c=null!=(d=e.columnSpacing)?d:e.spacing)?c:M?void 0:k,U=(0,R.Z)({},g,{level:M,columns:L,container:x,direction:Z,wrap:w,spacing:z,rowSpacing:W,columnSpacing:_,gridSize:T,gridOffset:A,disableEqualOverflow:null!=(p=null!=(f=j)?f:v)&&p,parentDisableEqualOverflow:v}),H=a(U,m),G=(0,eu.jsx)(i,(0,R.Z)({ref:t,as:C,ownerState:U,className:(0,O.Z)(H.root,b)},N,{children:B.Children.map(y,e=>{if(B.isValidElement(e)&&(0,iW.Z)(e,["Grid"])){var t;return B.cloneElement(e,{unstable_level:null!=(t=e.props.unstable_level)?t:M+1})}return e})}));return void 0!==j&&j!==(null!=v&&v)&&(G=(0,eu.jsx)(o.Provider,{value:j,children:G})),G});return l.muiName="Grid",l}({createStyledComponent:(0,W.ZP)("div",{name:"MuiGrid2",slot:"Root",overridesResolver:(e,t)=>t.root}),componentName:"MuiGrid2",useThemeProps:e=>(0,_.Z)({props:e,name:"MuiGrid2"})});function lo(e){return(0,ei.ZP)("MuiGrid2",e)}let la=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var li=(0,ea.Z)("MuiGrid2",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(e=>"spacing-xs-".concat(e)),...["column-reverse","column","row-reverse","row"].map(e=>"direction-xs-".concat(e)),...["nowrap","wrap-reverse","wrap"].map(e=>"wrap-xs-".concat(e)),...la.map(e=>"grid-xs-".concat(e)),...la.map(e=>"grid-sm-".concat(e)),...la.map(e=>"grid-md-".concat(e)),...la.map(e=>"grid-lg-".concat(e)),...la.map(e=>"grid-xl-".concat(e))]);let ll=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ls(e){return"scale(".concat(e,", ").concat(e**2,")")}let lu={entering:{opacity:1,transform:ls(1)},entered:{opacity:1,transform:"none"}},lc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ld=B.forwardRef(function(e,t){let{addEndListener:r,appear:n=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=K}=e,g=(0,P.Z)(e,ll),v=B.useRef(),b=B.useRef(),y=(0,en.Z)(),D=B.useRef(null),x=(0,eo.Z)(D,o.ref,t),C=e=>t=>{if(e){let r=D.current;void 0===t?e(r):e(r,t)}},Z=C(u),w=C((e,t)=>{let r;et(e);let{duration:n,delay:o,easing:i}=er({style:f,timeout:m,easing:a},{mode:"enter"});"auto"===m?(r=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=r):r=n,e.style.transition=[y.transitions.create("opacity",{duration:r,delay:o}),y.transitions.create("transform",{duration:lc?r:.666*r,delay:o,easing:i})].join(","),l&&l(e,t)}),S=C(s),F=C(p),k=C(e=>{let t;let{duration:r,delay:n,easing:o}=er({style:f,timeout:m,easing:a},{mode:"exit"});"auto"===m?(t=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=t):t=r,e.style.transition=[y.transitions.create("opacity",{duration:t,delay:n}),y.transitions.create("transform",{duration:lc?t:.666*t,delay:lc?n:n||.333*t,easing:o})].join(","),e.style.opacity=0,e.style.transform=ls(.75),c&&c(e)}),E=C(d);return B.useEffect(()=>()=>{clearTimeout(v.current)},[]),(0,eu.jsx)(h,(0,R.Z)({appear:n,in:i,nodeRef:D,onEnter:w,onEntered:S,onEntering:Z,onExit:k,onExited:E,onExiting:F,addEndListener:e=>{"auto"===m&&(v.current=setTimeout(e,b.current||0)),r&&r(D.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>B.cloneElement(o,(0,R.Z)({style:(0,R.Z)({opacity:0,transform:ls(.75),visibility:"exited"!==e||i?void 0:"hidden"},lu[e],f,o.props.style),ref:x},t))}))});ld.muiSupportAuto=!0;var lp=ld,lf=r(99900);function lm(e){return(0,ei.ZP)("MuiIcon",e)}var lh=(0,ea.Z)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);let lg=["baseClassName","className","color","component","fontSize"],lv=e=>{let{color:t,fontSize:r,classes:n}=e,o={root:["root","inherit"!==t&&"color".concat((0,e6.Z)(t)),"fontSize".concat((0,e6.Z)(r))]};return(0,z.Z)(o,lm,n)},lb=(0,W.ZP)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t["color".concat((0,e6.Z)(r.color))],t["fontSize".concat((0,e6.Z)(r.fontSize))]]}})(e=>{let{theme:t,ownerState:r}=e;return{userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:({inherit:"inherit",small:t.typography.pxToRem(20),medium:t.typography.pxToRem(24),large:t.typography.pxToRem(36)})[r.fontSize],color:({primary:(t.vars||t).palette.primary.main,secondary:(t.vars||t).palette.secondary.main,info:(t.vars||t).palette.info.main,success:(t.vars||t).palette.success.main,warning:(t.vars||t).palette.warning.main,action:(t.vars||t).palette.action.active,error:(t.vars||t).palette.error.main,disabled:(t.vars||t).palette.action.disabled,inherit:void 0})[r.color]}}),ly=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiIcon"}),{baseClassName:n="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=r,s=(0,P.Z)(r,lg),u=(0,R.Z)({},r,{baseClassName:n,color:a,component:i,fontSize:l}),c=lv(u);return(0,eu.jsx)(lb,(0,R.Z)({as:i,className:(0,O.Z)(n,"notranslate",c.root,o),ownerState:u,"aria-hidden":!0,ref:t},s))});ly.muiName="Icon";var lD=ly,lx=r(80543);function lC(e){return(0,ei.ZP)("MuiImageList",e)}var lZ=(0,ea.Z)("MuiImageList",["root","masonry","quilted","standard","woven"]);let lw=B.createContext({}),lS=["children","className","cols","component","rowHeight","gap","style","variant"],lF=e=>{let{classes:t,variant:r}=e;return(0,z.Z)({root:["root",r]},lC,t)},lk=(0,W.ZP)("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"},"masonry"===t.variant&&{display:"block"})});var lE=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiImageList"}),{children:n,className:o,cols:a=2,component:i="ul",rowHeight:l="auto",gap:s=4,style:u,variant:c="standard"}=r,d=(0,P.Z)(r,lS),p=B.useMemo(()=>({rowHeight:l,gap:s,variant:c}),[l,s,c]);B.useEffect(()=>{},[]);let f="masonry"===c?(0,R.Z)({columnCount:a,columnGap:s},u):(0,R.Z)({gridTemplateColumns:"repeat(".concat(a,", 1fr)"),gap:s},u),m=(0,R.Z)({},r,{component:i,gap:s,rowHeight:l,variant:c}),h=lF(m);return(0,eu.jsx)(lk,(0,R.Z)({as:i,className:(0,O.Z)(h.root,h[c],o),ref:t,style:f,ownerState:m},d,{children:(0,eu.jsx)(lw.Provider,{value:p,children:n})}))}),lM=r(23516);function lI(e){return(0,ei.ZP)("MuiImageListItem",e)}var lj=(0,ea.Z)("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]);let lT=["children","className","cols","component","rows","style"],lA=e=>{let{classes:t,variant:r}=e;return(0,z.Z)({root:["root",r],img:["img"]},lI,t)},lN=(0,W.ZP)("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(lj.img)]:t.img},t.root,t[r.variant]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"block",position:"relative"},"standard"===t.variant&&{display:"flex",flexDirection:"column"},"woven"===t.variant&&{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}},{["& .".concat(lj.img)]:(0,R.Z)({objectFit:"cover",width:"100%",height:"100%",display:"block"},"standard"===t.variant&&{height:"auto",flexGrow:1})})});var lL=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiImageListItem"}),{children:n,className:o,cols:a=1,component:i="li",rows:l=1,style:s}=r,u=(0,P.Z)(r,lT),{rowHeight:c="auto",gap:d,variant:p}=B.useContext(lw),f="auto";"woven"===p?f=void 0:"auto"!==c&&(f=c*l+d*(l-1));let m=(0,R.Z)({},r,{cols:a,component:i,gap:d,rowHeight:c,rows:l,variant:p}),h=lA(m);return(0,eu.jsx)(lN,(0,R.Z)({as:i,className:(0,O.Z)(h.root,h[p],o),ref:t,style:(0,R.Z)({height:f,gridColumnEnd:"masonry"!==p?"span ".concat(a):void 0,gridRowEnd:"masonry"!==p?"span ".concat(l):void 0,marginBottom:"masonry"===p?d:void 0,breakInside:"masonry"===p?"avoid":void 0},s),ownerState:m},u,{children:B.Children.map(n,e=>B.isValidElement(e)?"img"===e.type||(0,lM.Z)(e,["Image"])?B.cloneElement(e,{className:(0,O.Z)(h.img,e.props.className)}):e:null)}))});function lP(e){return(0,ei.ZP)("MuiImageListItemBar",e)}var lR=(0,ea.Z)("MuiImageListItemBar",["root","positionBottom","positionTop","positionBelow","titleWrap","titleWrapBottom","titleWrapTop","titleWrapBelow","titleWrapActionPosLeft","titleWrapActionPosRight","title","subtitle","actionIcon","actionIconActionPosLeft","actionIconActionPosRight"]);let lB=["actionIcon","actionPosition","className","subtitle","title","position"],lO=e=>{let{classes:t,position:r,actionIcon:n,actionPosition:o}=e,a={root:["root","position".concat((0,e6.Z)(r))],titleWrap:["titleWrap","titleWrap".concat((0,e6.Z)(r)),n&&"titleWrapActionPos".concat((0,e6.Z)(o))],title:["title"],subtitle:["subtitle"],actionIcon:["actionIcon","actionIconActionPos".concat((0,e6.Z)(o))]};return(0,z.Z)(a,lP,t)},lz=(0,W.ZP)("div",{name:"MuiImageListItemBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["position".concat((0,e6.Z)(r.position))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({position:"absolute",left:0,right:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:t.typography.fontFamily},"bottom"===r.position&&{bottom:0},"top"===r.position&&{top:0},"below"===r.position&&{position:"relative",background:"transparent",alignItems:"normal"})}),lW=(0,W.ZP)("div",{name:"MuiImageListItemBar",slot:"TitleWrap",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.titleWrap,t["titleWrap".concat((0,e6.Z)(r.position))],r.actionIcon&&t["titleWrapActionPos".concat((0,e6.Z)(r.actionPosition))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({flexGrow:1,padding:"12px 16px",color:(t.vars||t).palette.common.white,overflow:"hidden"},"below"===r.position&&{padding:"6px 0 12px",color:"inherit"},r.actionIcon&&"left"===r.actionPosition&&{paddingLeft:0},r.actionIcon&&"right"===r.actionPosition&&{paddingRight:0})}),l_=(0,W.ZP)("div",{name:"MuiImageListItemBar",slot:"Title",overridesResolver:(e,t)=>t.title})(e=>{let{theme:t}=e;return{fontSize:t.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}}),lU=(0,W.ZP)("div",{name:"MuiImageListItemBar",slot:"Subtitle",overridesResolver:(e,t)=>t.subtitle})(e=>{let{theme:t}=e;return{fontSize:t.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}}),lH=(0,W.ZP)("div",{name:"MuiImageListItemBar",slot:"ActionIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.actionIcon,t["actionIconActionPos".concat((0,e6.Z)(r.actionPosition))]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({},"left"===t.actionPosition&&{order:-1})});var lG=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiImageListItemBar"}),{actionIcon:n,actionPosition:o="right",className:a,subtitle:i,title:l,position:s="bottom"}=r,u=(0,P.Z)(r,lB),c=(0,R.Z)({},r,{position:s,actionPosition:o}),d=lO(c);return(0,eu.jsxs)(lz,(0,R.Z)({ownerState:c,className:(0,O.Z)(d.root,a),ref:t},u,{children:[(0,eu.jsxs)(lW,{ownerState:c,className:d.titleWrap,children:[(0,eu.jsx)(l_,{className:d.title,children:l}),i?(0,eu.jsx)(lU,{className:d.subtitle,children:i}):null]}),n?(0,eu.jsx)(lH,{ownerState:c,className:d.actionIcon,children:n}):null]}))});let lY=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],lV=e=>{let{classes:t,disableUnderline:r}=e,n=(0,z.Z)({root:["root",!r&&"underline"],input:["input"]},t5,t);return(0,R.Z)({},t,n)},l$=(0,W.ZP)(ih,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[...id(e,t),!r.disableUnderline&&t.underline]}})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,R.Z)({position:"relative"},r.formControl&&{"label + &":{marginTop:16}},!r.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[r.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(t8.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(t8.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(t8.disabled,", .").concat(t8.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(n)}},["&.".concat(t8.disabled,":before")]:{borderBottomStyle:"dotted"}})}),lq=(0,W.ZP)(ig,{name:"MuiInput",slot:"Input",overridesResolver:ip})({}),lQ=B.forwardRef(function(e,t){var r,n,o,a;let i=(0,_.Z)({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=i,g=(0,P.Z)(i,lY),v=lV(i),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?(0,a8.Z)(null!=f?f:u,b):b,D=null!=(r=null!=(n=m.root)?n:s.Root)?r:l$,x=null!=(o=null!=(a=m.input)?a:s.Input)?o:lq;return(0,eu.jsx)(ib,(0,R.Z)({slots:{root:D,input:x},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:v}))});lQ.muiName="Input";var lX=lQ;function lK(e){return(0,ei.ZP)("MuiInputAdornment",e)}var lJ=(0,ea.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);let l0=["children","className","component","disablePointerEvents","disableTypography","position","variant"],l1=e=>{let{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:a,variant:i}=e,l={root:["root",r&&"disablePointerEvents",o&&"position".concat((0,e6.Z)(o)),i,n&&"hiddenLabel",a&&"size".concat((0,e6.Z)(a))]};return(0,z.Z)(l,lK,t)},l2=(0,W.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["position".concat((0,e6.Z)(r.position))],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===r.variant&&{["&.".concat(lJ.positionStart,"&:not(.").concat(lJ.hiddenLabel,")")]:{marginTop:16}},"start"===r.position&&{marginRight:8},"end"===r.position&&{marginLeft:8},!0===r.disablePointerEvents&&{pointerEvents:"none"})});var l4=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:u,variant:c}=r,d=(0,P.Z)(r,l0),p=(0,il.Z)()||{},f=c;c&&p.variant,p&&!f&&(f=p.variant);let m=(0,R.Z)({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:i,position:u,variant:f}),h=l1(m);return(0,eu.jsx)(ii.Z.Provider,{value:null,children:(0,eu.jsx)(l2,(0,R.Z)({as:a,ownerState:m,className:(0,O.Z)(h.root,o),ref:t},d,{children:"string"!=typeof n||l?(0,eu.jsxs)(B.Fragment,{children:["start"===u?s||(s=(0,eu.jsx)("span",{className:"notranslate",children:"​"})):null,n]}):(0,eu.jsx)(r9.Z,{color:"text.secondary",children:n})}))})});function l3(e){return(0,ei.ZP)("MuiInputLabel",e)}var l5=(0,ea.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);let l8=["disableAnimation","margin","shrink","variant","className"],l6=e=>{let{classes:t,formControl:r,size:n,shrink:o,disableAnimation:a,variant:i,required:l}=e,s={root:["root",r&&"formControl",!a&&"animated",o&&"shrink",n&&"normal"!==n&&"size".concat((0,e6.Z)(n)),i],asterisk:[l&&"asterisk"]},u=(0,z.Z)(s,l3,t);return(0,R.Z)({},t,u)},l9=(0,W.ZP)(iR.Z,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(iB.Z.asterisk)]:t.asterisk},t.root,r.formControl&&t.formControl,"small"===r.size&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,r.focused&&t.focused,t[r.variant]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},r.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===r.size&&{transform:"translate(0, 17px) scale(1)"},r.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!r.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===r.variant&&(0,R.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(12px, 13px) scale(1)"},r.shrink&&(0,R.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===r.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===r.variant&&(0,R.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===r.size&&{transform:"translate(14px, 9px) scale(1)"},r.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))});var l7=B.forwardRef(function(e,t){let r=(0,_.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:n=!1,shrink:o,className:a}=r,i=(0,P.Z)(r,l8),l=(0,il.Z)(),s=o;void 0===s&&l&&(s=l.filled||l.focused||l.adornedStart);let u=(0,ia.Z)({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),c=(0,R.Z)({},r,{disableAnimation:n,formControl:l,shrink:s,size:u.size,variant:u.variant,required:u.required,focused:u.focused}),d=l6(c);return(0,eu.jsx)(l9,(0,R.Z)({"data-shrink":s,ownerState:c,ref:t,className:(0,O.Z)(d.root,a)},i,{classes:d}))});function se(e){return(0,ei.ZP)("MuiLinearProgress",e)}var st=(0,ea.Z)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);function sr(){let e=(0,ol._)(["\n 0% {\n left: -35%;\n right: 100%;\n }\n\n 60% {\n left: 100%;\n right: -90%;\n }\n\n 100% {\n left: 100%;\n right: -90%;\n }\n"]);return sr=function(){return e},e}function sn(){let e=(0,ol._)(["\n 0% {\n left: -200%;\n right: 100%;\n }\n\n 60% {\n left: 107%;\n right: -8%;\n }\n\n 100% {\n left: 107%;\n right: -8%;\n }\n"]);return sn=function(){return e},e}function so(){let e=(0,ol._)(["\n 0% {\n opacity: 1;\n background-position: 0 -23px;\n }\n\n 60% {\n opacity: 0;\n background-position: 0 -23px;\n }\n\n 100% {\n opacity: 1;\n background-position: -200px -23px;\n }\n"]);return so=function(){return e},e}function sa(){let e=(0,ol._)(["\n animation: "," 3s infinite linear;\n "]);return sa=function(){return e},e}function si(){let e=(0,ol._)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;\n "]);return si=function(){return e},e}function sl(){let e=(0,ol._)(["\n width: auto;\n animation: "," 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;\n "]);return sl=function(){return e},e}let ss=["className","color","value","valueBuffer","variant"],su=e=>e,sc,sd,sp,sf,sm,sh,sg=(0,os.F4)(sc||(sc=su(sr()))),sv=(0,os.F4)(sd||(sd=su(sn()))),sb=(0,os.F4)(sp||(sp=su(so()))),sy=e=>{let{classes:t,variant:r,color:n}=e,o={root:["root","color".concat((0,e6.Z)(n)),r],dashed:["dashed","dashedColor".concat((0,e6.Z)(n))],bar1:["bar","barColor".concat((0,e6.Z)(n)),("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&"barColor".concat((0,e6.Z)(n)),"buffer"===r&&"color".concat((0,e6.Z)(n)),("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]};return(0,z.Z)(o,se,t)},sD=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress["".concat(t,"Bg")]:"light"===e.palette.mode?(0,tg.$n)(e.palette[t].main,.62):(0,tg._j)(e.palette[t].main,.5),sx=(0,W.ZP)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["color".concat((0,e6.Z)(r.color))],t[r.variant]]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:sD(r,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})}),sC=(0,W.ZP)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.dashed,t["dashedColor".concat((0,e6.Z)(r.color))]]}})(e=>{let{ownerState:t,theme:r}=e,n=sD(r,t.color);return(0,R.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:"radial-gradient(".concat(n," 0%, ").concat(n," 16%, transparent 42%)"),backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},(0,os.iv)(sf||(sf=su(sa(),0)),sb)),sZ=(0,W.ZP)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.bar,t["barColor".concat((0,e6.Z)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .".concat(4,"s linear")},"buffer"===t.variant&&{zIndex:1,transition:"transform .".concat(4,"s linear")})},e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,os.iv)(sm||(sm=su(si(),0)),sg)}),sw=(0,W.ZP)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.bar,t["barColor".concat((0,e6.Z)(r.color))],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(r.vars||r).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:sD(r,t.color),transition:"transform .".concat(4,"s linear")})},e=>{let{ownerState:t}=e;return("indeterminate"===t.variant||"query"===t.variant)&&(0,os.iv)(sh||(sh=su(sl(),0)),sv)});var sS=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiLinearProgress"}),{className:n,color:o="primary",value:a,valueBuffer:i,variant:l="indeterminate"}=r,s=(0,P.Z)(r,ss),u=(0,R.Z)({},r,{color:o,variant:l}),c=sy(u),d=(0,en.Z)(),p={},f={bar1:{},bar2:{}};if(("determinate"===l||"buffer"===l)&&void 0!==a){p["aria-valuenow"]=Math.round(a),p["aria-valuemin"]=0,p["aria-valuemax"]=100;let e=a-100;"rtl"===d.direction&&(e=-e),f.bar1.transform="translateX(".concat(e,"%)")}if("buffer"===l&&void 0!==i){let e=(i||0)-100;"rtl"===d.direction&&(e=-e),f.bar2.transform="translateX(".concat(e,"%)")}return(0,eu.jsxs)(sx,(0,R.Z)({className:(0,O.Z)(c.root,n),ownerState:u,role:"progressbar"},p,{ref:t},s,{children:["buffer"===l?(0,eu.jsx)(sC,{className:c.dashed,ownerState:u}):null,(0,eu.jsx)(sZ,{className:c.bar1,ownerState:u,style:f.bar1}),"determinate"===l?null:(0,eu.jsx)(sw,{className:c.bar2,ownerState:u,style:f.bar2})]}))}),sF=r(77004);function sk(e){return(0,ei.ZP)("MuiLink",e)}var sE=(0,ea.Z)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),sM=r(54844);let sI={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},sj=e=>sI[e]||e;var sT=e=>{let{theme:t,ownerState:r}=e,n=sj(r.color),o=(0,sM.DW)(t,"palette.".concat(n),!1)||r.color,a=(0,sM.DW)(t,"palette.".concat(n,"Channel"));return"vars"in t&&a?"rgba(".concat(a," / 0.4)"):(0,tg.Fq)(o,.4)};let sA=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],sN=e=>{let{classes:t,component:r,focusVisible:n,underline:o}=e,a={root:["root","underline".concat((0,e6.Z)(o)),"button"===r&&"button",n&&"focusVisible"]};return(0,z.Z)(a,sk,t)},sL=(0,W.ZP)(r9.Z,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["underline".concat((0,e6.Z)(r.underline))],"button"===r.component&&t.button]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},"none"===r.underline&&{textDecoration:"none"},"hover"===r.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===r.underline&&(0,R.Z)({textDecoration:"underline"},"inherit"!==r.color&&{textDecorationColor:sT({theme:t,ownerState:r})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===r.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(sE.focusVisible)]:{outline:"auto"}})});var sP=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:a="a",onBlur:i,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=(0,P.Z)(r,sA),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=(0,sF.Z)(),[v,b]=B.useState(!1),y=(0,eo.Z)(t,g),D=(0,R.Z)({},r,{color:o,component:a,focusVisible:v,underline:u,variant:c}),x=sN(D);return(0,eu.jsx)(sL,(0,R.Z)({color:o,className:(0,O.Z)(x.root,n),classes:s,component:a,onBlur:e=>{m(e),!1===f.current&&b(!1),i&&i(e)},onFocus:e=>{h(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:D,variant:c,sx:[...Object.keys(sI).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))});let sR=B.createContext({});function sB(e){return(0,ei.ZP)("MuiList",e)}var sO=(0,ea.Z)("MuiList",["root","padding","dense","subheader"]);let sz=["children","className","component","dense","disablePadding","subheader"],sW=e=>{let{classes:t,disablePadding:r,dense:n,subheader:o}=e;return(0,z.Z)({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},sB,t)},s_=(0,W.ZP)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})});var sU=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiList"}),{children:n,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=r,u=(0,P.Z)(r,sz),c=B.useMemo(()=>({dense:i}),[i]),d=(0,R.Z)({},r,{component:a,dense:i,disablePadding:l}),p=sW(d);return(0,eu.jsx)(sR.Provider,{value:c,children:(0,eu.jsxs)(s_,(0,R.Z)({as:a,className:(0,O.Z)(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})});function sH(e){return(0,ei.ZP)("MuiListItem",e)}var sG=(0,ea.Z)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function sY(e){return(0,ei.ZP)("MuiListItemButton",e)}var sV=(0,ea.Z)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function s$(e){return(0,ei.ZP)("MuiListItemSecondaryAction",e)}var sq=(0,ea.Z)("MuiListItemSecondaryAction",["root","disableGutters"]);let sQ=["className"],sX=e=>{let{disableGutters:t,classes:r}=e;return(0,z.Z)({root:["root",t&&"disableGutters"]},s$,r)},sK=(0,W.ZP)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})}),sJ=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=(0,P.Z)(r,sQ),a=B.useContext(sR),i=(0,R.Z)({},r,{disableGutters:a.disableGutters}),l=sX(i);return(0,eu.jsx)(sK,(0,R.Z)({className:(0,O.Z)(l.root,n),ownerState:i,ref:t},o))});sJ.muiName="ListItemSecondaryAction";var s0=sJ;let s1=["className"],s2=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],s4=e=>{let{alignItems:t,button:r,classes:n,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:u,selected:c}=e;return(0,z.Z)({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},sH,n)},s3=(0,W.ZP)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!r.disablePadding&&(0,R.Z)({paddingTop:8,paddingBottom:8},r.dense&&{paddingTop:4,paddingBottom:4},!r.disableGutters&&{paddingLeft:16,paddingRight:16},!!r.secondaryAction&&{paddingRight:48}),!!r.secondaryAction&&{["& > .".concat(sV.root)]:{paddingRight:48}},{["&.".concat(sG.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(sG.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(sG.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(sG.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===r.alignItems&&{alignItems:"flex-start"},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},r.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(sG.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},r.hasSecondaryAction&&{paddingRight:48})}),s5=(0,W.ZP)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"});var s8=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:u={},componentsProps:c={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:m=!1,disableGutters:h=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:D=!1,slotProps:x={},slots:C={}}=r,Z=(0,P.Z)(r.ContainerProps,s1),w=(0,P.Z)(r,s2),S=B.useContext(sR),F=B.useMemo(()=>({dense:f||S.dense||!1,alignItems:n,disableGutters:h}),[n,S.dense,f,h]),k=B.useRef(null);(0,is.Z)(()=>{o&&k.current&&k.current.focus()},[o]);let E=B.Children.toArray(i),M=E.length&&(0,lM.Z)(E[E.length-1],["ListItemSecondaryAction"]),I=(0,R.Z)({},r,{alignItems:n,autoFocus:o,button:a,dense:F.dense,disabled:m,disableGutters:h,disablePadding:g,divider:v,hasSecondaryAction:M,selected:D}),j=s4(I),T=(0,eo.Z)(k,t),A=C.root||u.Root||s3,N=x.root||c.root||{},L=(0,R.Z)({className:(0,O.Z)(j.root,N.className,l),disabled:m},w),z=s||"li";return(a&&(L.component=s||"div",L.focusVisibleClassName=(0,O.Z)(sG.focusVisible,b),z=e$.Z),M)?(z=L.component||s?z:"div","li"===d&&("li"===z?z="div":"li"===L.component&&(L.component="div")),(0,eu.jsx)(sR.Provider,{value:F,children:(0,eu.jsxs)(s5,(0,R.Z)({as:d,className:(0,O.Z)(j.container,p),ref:T,ownerState:I},Z,{children:[(0,eu.jsx)(A,(0,R.Z)({},N,!eS(A)&&{as:z,ownerState:(0,R.Z)({},I,N.ownerState)},L,{children:E})),E.pop()]}))})):(0,eu.jsx)(sR.Provider,{value:F,children:(0,eu.jsxs)(A,(0,R.Z)({},N,{as:z,ref:T},!eS(A)&&{ownerState:(0,R.Z)({},I,N.ownerState)},L,{children:[E,y&&(0,eu.jsx)(s0,{children:y})]}))})});function s6(e){return(0,ei.ZP)("MuiListItemAvatar",e)}var s9=(0,ea.Z)("MuiListItemAvatar",["root","alignItemsFlexStart"]);let s7=["className"],ue=e=>{let{alignItems:t,classes:r}=e;return(0,z.Z)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},s6,r)},ut=(0,W.ZP)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({minWidth:56,flexShrink:0},"flex-start"===t.alignItems&&{marginTop:8})});var ur=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItemAvatar"}),{className:n}=r,o=(0,P.Z)(r,s7),a=B.useContext(sR),i=(0,R.Z)({},r,{alignItems:a.alignItems}),l=ue(i);return(0,eu.jsx)(ut,(0,R.Z)({className:(0,O.Z)(l.root,n),ownerState:i,ref:t},o))});let un=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],uo=e=>{let{alignItems:t,classes:r,dense:n,disabled:o,disableGutters:a,divider:i,selected:l}=e,s=(0,z.Z)({root:["root",n&&"dense",!a&&"gutters",i&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",l&&"selected"]},sY,r);return(0,R.Z)({},r,s)},ua=(0,W.ZP)(e$.Z,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(sV.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(sV.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(sV.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(sV.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(sV.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},"flex-start"===r.alignItems&&{alignItems:"flex-start"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.dense&&{paddingTop:4,paddingBottom:4})});var ui=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItemButton"}),{alignItems:n="center",autoFocus:o=!1,component:a="div",children:i,dense:l=!1,disableGutters:s=!1,divider:u=!1,focusVisibleClassName:c,selected:d=!1,className:p}=r,f=(0,P.Z)(r,un),m=B.useContext(sR),h=B.useMemo(()=>({dense:l||m.dense||!1,alignItems:n,disableGutters:s}),[n,m.dense,l,s]),g=B.useRef(null);(0,is.Z)(()=>{o&&g.current&&g.current.focus()},[o]);let v=(0,R.Z)({},r,{alignItems:n,dense:h.dense,disableGutters:s,divider:u,selected:d}),b=uo(v),y=(0,eo.Z)(g,t);return(0,eu.jsx)(sR.Provider,{value:h,children:(0,eu.jsx)(ua,(0,R.Z)({ref:y,href:f.href||f.to,component:(f.href||f.to)&&"div"===a?"button":a,focusVisibleClassName:(0,O.Z)(b.focusVisible,c),ownerState:v,className:(0,O.Z)(b.root,p)},f,{classes:b,children:i}))})});function ul(e){return(0,ei.ZP)("MuiListItemIcon",e)}var us=(0,ea.Z)("MuiListItemIcon",["root","alignItemsFlexStart"]);let uu=["className"],uc=e=>{let{alignItems:t,classes:r}=e;return(0,z.Z)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ul,r)},ud=(0,W.ZP)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===r.alignItems&&{marginTop:8})});var up=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=(0,P.Z)(r,uu),a=B.useContext(sR),i=(0,R.Z)({},r,{alignItems:a.alignItems}),l=uc(i);return(0,eu.jsx)(ud,(0,R.Z)({className:(0,O.Z)(l.root,n),ownerState:i,ref:t},o))});function uf(e){return(0,ei.ZP)("MuiListItemText",e)}var um=(0,ea.Z)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);let uh=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],ug=e=>{let{classes:t,inset:r,primary:n,secondary:o,dense:a}=e;return(0,z.Z)({root:["root",r&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},uf,t)},uv=(0,W.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(um.primary)]:t.primary},{["& .".concat(um.secondary)]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})});var ub=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiListItemText"}),{children:n,className:o,disableTypography:a=!1,inset:i=!1,primary:l,primaryTypographyProps:s,secondary:u,secondaryTypographyProps:c}=r,d=(0,P.Z)(r,uh),{dense:p}=B.useContext(sR),f=null!=l?l:n,m=u,h=(0,R.Z)({},r,{disableTypography:a,inset:i,primary:!!f,secondary:!!m,dense:p}),g=ug(h);return null==f||f.type===r9.Z||a||(f=(0,eu.jsx)(r9.Z,(0,R.Z)({variant:p?"body2":"body1",className:g.primary,component:null!=s&&s.variant?void 0:"span",display:"block"},s,{children:f}))),null==m||m.type===r9.Z||a||(m=(0,eu.jsx)(r9.Z,(0,R.Z)({variant:"body2",className:g.secondary,color:"text.secondary",display:"block"},c,{children:m}))),(0,eu.jsxs)(uv,(0,R.Z)({className:(0,O.Z)(g.root,o),ownerState:h,ref:t},d,{children:[f,m]}))}),uy=r(96308);let uD=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function ux(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function uC(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function uZ(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function uw(e,t,r,n,o,a){let i=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}let t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&uZ(l,a)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var uS=B.forwardRef(function(e,t){let{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=(0,P.Z)(e,uD),p=B.useRef(null),f=B.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,is.Z)(()=>{n&&p.current.focus()},[n]),B.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,t)=>{let r=!p.current.style.width;if(e.clientHeight{if(!B.isValidElement(e)){h===t&&(h+=1)>=a.length&&(h=-1);return}e.props.disabled||("selectedMenu"===c&&e.props.selected?h=t:-1!==h||(h=t)),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1)>=a.length&&(h=-1)});let g=B.Children.map(a,(e,t)=>{if(t===h){let t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),B.cloneElement(e,t)}return e});return(0,eu.jsx)(sU,(0,R.Z)({role:"menu",ref:m,className:i,onKeyDown:e=>{let t=p.current,r=e.key,n=(0,uy.Z)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),uw(t,n,s,l,ux);else if("ArrowUp"===r)e.preventDefault(),uw(t,n,s,l,uC);else if("Home"===r)e.preventDefault(),uw(t,null,s,l,ux);else if("End"===r)e.preventDefault(),uw(t,null,s,l,uC);else if(1===r.length){let o=f.current,a=r.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);let s=n&&!o.repeating&&uZ(n,o);o.previousKeyMatched&&(s||uw(t,n,!1,l,ux,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))});function uF(e){return(0,ei.ZP)("MuiPopover",e)}var uk=(0,ea.Z)("MuiPopover",["root","paper"]);let uE=["onEntering"],uM=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],uI=["slotProps"];function uj(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function uT(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function uA(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?"".concat(e,"px"):e).join(" ")}function uN(e){return"function"==typeof e?e():e}let uL=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],paper:["paper"]},uF,t)},uP=(0,W.ZP)(o7,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uR=(0,W.ZP)(ev.Z,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var uB=B.forwardRef(function(e,t){var r,n,o;let a=(0,_.Z)({props:e,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:x=lp,transitionDuration:C="auto",TransitionProps:{onEntering:Z}={},disableScrollLock:w=!1}=a,S=(0,P.Z)(a.TransitionProps,uE),F=(0,P.Z)(a,uM),k=null!=(r=null==y?void 0:y.paper)?r:v,E=B.useRef(),M=(0,eo.Z)(E,k.ref),I=(0,R.Z)({},a,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:k,transformOrigin:D,TransitionComponent:x,transitionDuration:C,TransitionProps:S}),j=uL(I),T=B.useCallback(()=>{if("anchorPosition"===c)return u;let e=uN(l),t=(e&&1===e.nodeType?e:(0,uy.Z)(E.current).body).getBoundingClientRect();return{top:t.top+uj(t,s.vertical),left:t.left+uT(t,s.horizontal)}},[l,s.horizontal,s.vertical,u,c]),A=B.useCallback(e=>({vertical:uj(e,D.vertical),horizontal:uT(e,D.horizontal)}),[D.horizontal,D.vertical]),N=B.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},r=A(t);if("none"===c)return{top:null,left:null,transformOrigin:uA(r)};let n=T(),o=n.top-r.vertical,a=n.left-r.horizontal,i=o+t.height,s=a+t.width,u=(0,aR.Z)(uN(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&od){let e=i-d;o-=e,r.vertical+=e}if(null!==h&&ap){let e=s-p;a-=e,r.horizontal+=e}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(a),"px"),transformOrigin:uA(r)}},[l,c,T,A,h]),[L,z]=B.useState(g),W=B.useCallback(()=>{let e=E.current;if(!e)return;let t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)},[N]);B.useEffect(()=>(w&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W)),[l,w,W]),B.useEffect(()=>{g&&W()}),B.useImperativeHandle(i,()=>g?{updatePosition:()=>{W()}}:null,[g,W]),B.useEffect(()=>{if(!g)return;let e=(0,aP.Z)(()=>{W()}),t=(0,aR.Z)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[l,g,W]);let U=C;"auto"!==C||x.muiSupportAuto||(U=void 0);let H=f||(l?(0,uy.Z)(uN(l)).body:void 0),G=null!=(n=null==b?void 0:b.root)?n:uP,Y=null!=(o=null==b?void 0:b.paper)?o:uR,V=tF({elementType:Y,externalSlotProps:(0,R.Z)({},k,{style:L?k.style:(0,R.Z)({},k.style,{opacity:0})}),additionalProps:{elevation:m,ref:M},ownerState:I,className:(0,O.Z)(j.paper,null==k?void 0:k.className)}),$=tF({elementType:G,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:F,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:H,open:g},ownerState:I,className:(0,O.Z)(j.root,p)}),{slotProps:q}=$,Q=(0,P.Z)($,uI);return(0,eu.jsx)(G,(0,R.Z)({},Q,!eS(G)&&{slotProps:q,disableScrollLock:w},{children:(0,eu.jsx)(x,(0,R.Z)({appear:!0,in:g,onEntering:(e,t)=>{Z&&Z(e,t),W()},onExited:()=>{z(!1)},timeout:U},S,{children:(0,eu.jsx)(Y,(0,R.Z)({},V,{children:d}))}))}))});function uO(e){return(0,ei.ZP)("MuiMenu",e)}var uz=(0,ea.Z)("MuiMenu",["root","paper","list"]);let uW=["onEntering"],u_=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],uU={vertical:"top",horizontal:"right"},uH={vertical:"top",horizontal:"left"},uG=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],paper:["paper"],list:["list"]},uO,t)},uY=(0,W.ZP)(uB,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uV=(0,W.ZP)(uR,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),u$=(0,W.ZP)(uS,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var uq=B.forwardRef(function(e,t){var r,n;let o=(0,_.Z)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:i,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:v={},slotProps:b={}}=o,y=(0,P.Z)(o.TransitionProps,uW),D=(0,P.Z)(o,u_),x=(0,en.Z)(),C="rtl"===x.direction,Z=(0,R.Z)({},o,{autoFocus:a,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=uG(Z),S=a&&!s&&d,F=B.useRef(null),k=-1;B.Children.map(i,(e,t)=>{B.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected?k=t:-1!==k||(k=t)))});let E=null!=(r=v.paper)?r:uV,M=null!=(n=b.paper)?n:p,I=tF({elementType:v.root,externalSlotProps:b.root,ownerState:Z,className:[w.root,l]}),j=tF({elementType:E,externalSlotProps:M,ownerState:Z,className:w.paper});return(0,eu.jsx)(uY,(0,R.Z)({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?uU:uH,slots:{paper:E,root:v.root},slotProps:{root:I,paper:j},open:d,ref:t,transitionDuration:m,TransitionProps:(0,R.Z)({onEntering:(e,t)=>{F.current&&F.current.adjustStyleForScrollbar(e,x),h&&h(e,t)}},y),ownerState:Z},D,{classes:f,children:(0,eu.jsx)(u$,(0,R.Z)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:F,autoFocus:a&&(-1===k||s),autoFocusItem:S,variant:g},u,{className:(0,O.Z)(w.list,u.className),children:i}))}))});function uQ(e){return(0,ei.ZP)("MuiMenuItem",e)}var uX=(0,ea.Z)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);let uK=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],uJ=e=>{let{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:i}=e,l=(0,z.Z)({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},uQ,i);return(0,R.Z)({},i,l)},u0=(0,W.ZP)(e$.Z,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!r.disableGutters&&{paddingLeft:16,paddingRight:16},r.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(uX.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(uX.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(uX.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(uX.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(uX.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(aL.Z.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(aL.Z.inset)]:{marginLeft:52},["& .".concat(um.root)]:{marginTop:0,marginBottom:0},["& .".concat(um.inset)]:{paddingLeft:36},["& .".concat(us.root)]:{minWidth:36}},!r.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},r.dense&&(0,R.Z)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(us.root," svg")]:{fontSize:"1.25rem"}}))});var u1=B.forwardRef(function(e,t){let r;let n=(0,_.Z)({props:e,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:i=!1,divider:l=!1,disableGutters:s=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p}=n,f=(0,P.Z)(n,uK),m=B.useContext(sR),h=B.useMemo(()=>({dense:i||m.dense||!1,disableGutters:s}),[m.dense,i,s]),g=B.useRef(null);(0,is.Z)(()=>{o&&g.current&&g.current.focus()},[o]);let v=(0,R.Z)({},n,{dense:h.dense,divider:l,disableGutters:s}),b=uJ(n),y=(0,eo.Z)(g,t);return n.disabled||(r=void 0!==d?d:-1),(0,eu.jsx)(sR.Provider,{value:h,children:(0,eu.jsx)(u0,(0,R.Z)({ref:y,role:c,tabIndex:r,component:a,focusVisibleClassName:(0,O.Z)(b.focusVisible,u),className:(0,O.Z)(b.root,p)},f,{ownerState:v,classes:b}))})});function u2(e){return(0,ei.ZP)("MuiMobileStepper",e)}var u4=(0,ea.Z)("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);let u3=["activeStep","backButton","className","LinearProgressProps","nextButton","position","steps","variant"],u5=e=>{let{classes:t,position:r}=e,n={root:["root","position".concat((0,e6.Z)(r))],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return(0,z.Z)(n,u2,t)},u8=(0,W.ZP)(ev.Z,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["position".concat((0,e6.Z)(r.position))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(t.vars||t).palette.background.default,padding:8},"bottom"===r.position&&{position:"fixed",bottom:0,left:0,right:0,zIndex:(t.vars||t).zIndex.mobileStepper},"top"===r.position&&{position:"fixed",top:0,left:0,right:0,zIndex:(t.vars||t).zIndex.mobileStepper})}),u6=(0,W.ZP)("div",{name:"MuiMobileStepper",slot:"Dots",overridesResolver:(e,t)=>t.dots})(e=>{let{ownerState:t}=e;return(0,R.Z)({},"dots"===t.variant&&{display:"flex",flexDirection:"row"})}),u9=(0,W.ZP)("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:e=>(0,W.Dz)(e)&&"dotActive"!==e,overridesResolver:(e,t)=>{let{dotActive:r}=e;return[t.dot,r&&t.dotActive]}})(e=>{let{theme:t,ownerState:r,dotActive:n}=e;return(0,R.Z)({},"dots"===r.variant&&(0,R.Z)({transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),backgroundColor:(t.vars||t).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},n&&{backgroundColor:(t.vars||t).palette.primary.main}))}),u7=(0,W.ZP)(sS,{name:"MuiMobileStepper",slot:"Progress",overridesResolver:(e,t)=>t.progress})(e=>{let{ownerState:t}=e;return(0,R.Z)({},"progress"===t.variant&&{width:"50%"})});var ce=B.forwardRef(function(e,t){let r;let n=(0,_.Z)({props:e,name:"MuiMobileStepper"}),{activeStep:o=0,backButton:a,className:i,LinearProgressProps:l,nextButton:s,position:u="bottom",steps:c,variant:d="dots"}=n,p=(0,P.Z)(n,u3),f=(0,R.Z)({},n,{activeStep:o,position:u,variant:d});"progress"===d&&(r=1===c?100:Math.ceil(o/(c-1)*100));let m=u5(f);return(0,eu.jsxs)(u8,(0,R.Z)({square:!0,elevation:0,className:(0,O.Z)(m.root,i),ref:t,ownerState:f},p,{children:[a,"text"===d&&(0,eu.jsxs)(B.Fragment,{children:[o+1," / ",c]}),"dots"===d&&(0,eu.jsx)(u6,{ownerState:f,className:m.dots,children:[...Array(c)].map((e,t)=>(0,eu.jsx)(u9,{className:(0,O.Z)(m.dot,t===o&&m.dotActive),ownerState:f,dotActive:t===o},t))}),"progress"===d&&(0,eu.jsx)(u7,(0,R.Z)({ownerState:f,className:m.progress,variant:"determinate",value:r},l)),s]}))});function ct(e){return(0,ei.ZP)("MuiNativeSelect",e)}var cr=(0,ea.Z)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);let cn=["className","disabled","error","IconComponent","inputRef","variant"],co=e=>{let{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon","icon".concat((0,e6.Z)(r)),a&&"iconOpen",n&&"disabled"]};return(0,z.Z)(l,ct,t)},ca=e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,R.Z)({},r.vars?{backgroundColor:"rgba(".concat(r.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===r.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(cr.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(r.vars||r).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(r.vars||r).shape.borderRadius,"&:focus":{borderRadius:(r.vars||r).shape.borderRadius},"&&&":{paddingRight:32}})},ci=(0,W.ZP)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:W.FO,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{["&.".concat(cr.multiple)]:t.multiple}]}})(ca),cl=e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(r.vars||r).palette.action.active,["&.".concat(cr.disabled)]:{color:(r.vars||r).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},cs=(0,W.ZP)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,e6.Z)(r.variant))],r.open&&t.iconOpen]}})(cl),cu=B.forwardRef(function(e,t){let{className:r,disabled:n,error:o,IconComponent:a,inputRef:i,variant:l="standard"}=e,s=(0,P.Z)(e,cn),u=(0,R.Z)({},e,{disabled:n,variant:l,error:o}),c=co(u);return(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)(ci,(0,R.Z)({ownerState:u,className:(0,O.Z)(c.select,r),disabled:n,ref:i||t},s)),e.multiple?null:(0,eu.jsx)(cs,{as:a,ownerState:u,className:c.icon})]})}),cc=["className","children","classes","IconComponent","input","inputProps","variant"],cd=["root"],cp=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},ct,t)},cf=(0,eu.jsx)(lX,{}),cm=B.forwardRef(function(e,t){let r=(0,_.Z)({name:"MuiNativeSelect",props:e}),{className:n,children:o,classes:a={},IconComponent:i=rr,input:l=cf,inputProps:s}=r,u=(0,P.Z)(r,cc),c=(0,il.Z)(),d=(0,ia.Z)({props:r,muiFormControl:c,states:["variant"]}),p=cp((0,R.Z)({},r,{classes:a})),f=(0,P.Z)(a,cd);return(0,eu.jsx)(B.Fragment,{children:B.cloneElement(l,(0,R.Z)({inputComponent:cu,inputProps:(0,R.Z)({children:o,classes:f,IconComponent:i,variant:d.variant,type:void 0},s,l?l.props.inputProps:{}),ref:t},u,{className:(0,O.Z)(p.root,l.props.className,n)}))})});cm.muiName="Select";var ch=cm;function cg(e){let{children:t,defer:r=!1,fallback:n=null}=e,[o,a]=B.useState(!1);return(0,tv.Z)(()=>{r||a(!0)},[r]),B.useEffect(()=>{r&&a(!0)},[r]),(0,eu.jsx)(B.Fragment,{children:o?t:n})}let cv=["children","classes","className","label","notched"],cb=(0,W.ZP)("fieldset",{shouldForwardProp:W.FO})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),cy=(0,W.ZP)("legend",{shouldForwardProp:W.FO})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:r.transitions.create("width",{duration:150,easing:r.transitions.easing.easeOut})},t.withLabel&&(0,R.Z)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:r.transitions.create("max-width",{duration:50,easing:r.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:r.transitions.create("max-width",{duration:100,easing:r.transitions.easing.easeOut,delay:50})}))}),cD=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],cx=e=>{let{classes:t}=e,r=(0,z.Z)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},t6,t);return(0,R.Z)({},t,r)},cC=(0,W.ZP)(ih,{shouldForwardProp:e=>(0,W.FO)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:id})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,R.Z)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(t9.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(t9.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}},["&.".concat(t9.focused," .").concat(t9.notchedOutline)]:{borderColor:(t.vars||t).palette[r.color].main,borderWidth:2},["&.".concat(t9.error," .").concat(t9.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(t9.disabled," .").concat(t9.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},r.startAdornment&&{paddingLeft:14},r.endAdornment&&{paddingRight:14},r.multiline&&(0,R.Z)({padding:"16.5px 14px"},"small"===r.size&&{padding:"8.5px 14px"}))}),cZ=(0,W.ZP)(function(e){let{className:t,label:r,notched:n}=e,o=(0,P.Z)(e,cv),a=null!=r&&""!==r,i=(0,R.Z)({},e,{notched:n,withLabel:a});return(0,eu.jsx)(cb,(0,R.Z)({"aria-hidden":!0,className:t,ownerState:i},o,{children:(0,eu.jsx)(cy,{ownerState:i,children:a?(0,eu.jsx)("span",{children:r}):u||(u=(0,eu.jsx)("span",{className:"notranslate",children:"​"}))})}))},{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(e=>{let{theme:t}=e,r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}}),cw=(0,W.ZP)(ig,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ip})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===r.size&&{padding:"8.5px 14px"},r.multiline&&{padding:0},r.startAdornment&&{paddingLeft:0},r.endAdornment&&{paddingRight:0})}),cS=B.forwardRef(function(e,t){var r,n,o,a,i;let l=(0,_.Z)({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=(0,P.Z)(l,cD),v=cx(l),b=(0,il.Z)(),y=(0,ia.Z)({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D=(0,R.Z)({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),x=null!=(r=null!=(n=m.root)?n:s.Root)?r:cC,C=null!=(o=null!=(a=m.input)?a:s.Input)?o:cw;return(0,eu.jsx)(ib,(0,R.Z)({slots:{root:x,input:C},renderSuffix:e=>(0,eu.jsx)(cZ,{ownerState:D,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?i||(i=(0,eu.jsxs)(B.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:!!(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:(0,R.Z)({},v,{notchedOutline:null})}))});cS.muiName="Input";var cF=cS;function ck(e){return(0,ei.ZP)("MuiPagination",e)}var cE=(0,ea.Z)("MuiPagination",["root","ul","outlined","text"]);let cM=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function cI(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:i=!1,hidePrevButton:l=!1,onChange:s,page:u,showFirstButton:c=!1,showLastButton:d=!1,siblingCount:p=1}=e,f=(0,P.Z)(e,cM),[m,h]=(0,ti.Z)({controlled:u,default:o,name:r,state:"page"}),g=(e,t)=>{u||h(t),s&&s(e,t)},v=(e,t)=>Array.from({length:t-e+1},(t,r)=>e+r),b=v(1,Math.min(t,n)),y=v(Math.max(n-t+1,t+1),n),D=Math.max(Math.min(m-p,n-t-2*p-1),t+2),x=Math.min(Math.max(m+p,t+2*p+2),y.length>0?y[0]-2:n-1),C=[...c?["first"]:[],...l?[]:["previous"],...b,...D>t+2?["start-ellipsis"]:t+1t?[n-t]:[],...y,...i?[]:["next"],...d?["last"]:[]],Z=e=>{switch(e){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return n;default:return null}},w=C.map(e=>"number"==typeof e?{onClick:t=>{g(t,e)},type:"page",page:e,selected:e===m,disabled:a,"aria-current":e===m?"true":void 0}:{onClick:t=>{g(t,Z(e))},type:e,page:Z(e),selected:!1,disabled:a||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?m>=n:m<=1)});return(0,R.Z)({items:w},f)}function cj(e){return(0,ei.ZP)("MuiPaginationItem",e)}var cT=(0,ea.Z)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),cA=(0,tV.Z)((0,eu.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),cN=(0,tV.Z)((0,eu.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),cL=(0,tV.Z)((0,eu.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),cP=(0,tV.Z)((0,eu.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");let cR=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],cB=(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,e6.Z)(r.size))],"text"===r.variant&&t["text".concat((0,e6.Z)(r.color))],"outlined"===r.variant&&t["outlined".concat((0,e6.Z)(r.color))],"rounded"===r.shape&&t.rounded,"page"===r.type&&t.page,("start-ellipsis"===r.type||"end-ellipsis"===r.type)&&t.ellipsis,("previous"===r.type||"next"===r.type)&&t.previousNext,("first"===r.type||"last"===r.type)&&t.firstLast]},cO=e=>{let{classes:t,color:r,disabled:n,selected:o,size:a,shape:i,type:l,variant:s}=e,u={root:["root","size".concat((0,e6.Z)(a)),s,i,"standard"!==r&&"color".concat((0,e6.Z)(r)),"standard"!==r&&"".concat(s).concat((0,e6.Z)(r)),n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]};return(0,z.Z)(u,cj,t)},cz=(0,W.ZP)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:cB})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",["&.".concat(cT.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"small"===r.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)})}),cW=(0,W.ZP)(e$.Z,{name:"MuiPaginationItem",slot:"Root",overridesResolver:cB})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,["&.".concat(cT.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(cT.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(cT.selected)]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(cT.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},["&.".concat(cT.disabled)]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},"small"===r.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===r.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)},"rounded"===r.shape&&{borderRadius:(t.vars||t).shape.borderRadius})},e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},"text"===r.variant&&{["&.".concat(cT.selected)]:(0,R.Z)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].contrastText,backgroundColor:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[r.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[r.color].main}},["&.".concat(cT.focusVisible)]:{backgroundColor:(t.vars||t).palette[r.color].dark}},{["&.".concat(cT.disabled)]:{color:(t.vars||t).palette.action.disabled}})},"outlined"===r.variant&&{border:t.vars?"1px solid rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):"1px solid ".concat("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&.".concat(cT.selected)]:(0,R.Z)({},"standard"!==r.color&&{color:(t.vars||t).palette[r.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.5)"):(0,tg.Fq)(t.palette[r.color].main,.5)),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.activatedOpacity,")"):(0,tg.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(cT.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / calc(").concat(t.vars.palette.action.activatedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,tg.Fq)(t.palette[r.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{["&.".concat(cT.disabled)]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})}),c_=(0,W.ZP)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},"small"===r.size&&{fontSize:t.typography.pxToRem(18)},"large"===r.size&&{fontSize:t.typography.pxToRem(22)})});var cU=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiPaginationItem"}),{className:n,color:o="standard",component:a,components:i={},disabled:l=!1,page:s,selected:u=!1,shape:c="circular",size:d="medium",slots:p={},type:f="page",variant:m="text"}=r,h=(0,P.Z)(r,cR),g=(0,R.Z)({},r,{color:o,disabled:l,selected:u,shape:c,size:d,type:f,variant:m}),v=(0,en.Z)(),b=cO(g),y=("rtl"===v.direction?{previous:p.next||i.next||cP,next:p.previous||i.previous||cL,last:p.first||i.first||cA,first:p.last||i.last||cN}:{previous:p.previous||i.previous||cL,next:p.next||i.next||cP,first:p.first||i.first||cA,last:p.last||i.last||cN})[f];return"start-ellipsis"===f||"end-ellipsis"===f?(0,eu.jsx)(cz,{ref:t,ownerState:g,className:(0,O.Z)(b.root,n),children:"…"}):(0,eu.jsxs)(cW,(0,R.Z)({ref:t,ownerState:g,component:a,disabled:l,className:(0,O.Z)(b.root,n)},h,{children:["page"===f&&s,y?(0,eu.jsx)(c_,{as:y,ownerState:g,className:b.icon}):null]}))});let cH=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],cG=e=>{let{classes:t,variant:r}=e;return(0,z.Z)({root:["root",r],ul:["ul"]},ck,t)},cY=(0,W.ZP)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),cV=(0,W.ZP)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function c$(e,t,r){return"page"===e?"".concat(r?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}var cq=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiPagination"}),{boundaryCount:n=1,className:o,color:a="standard",count:i=1,defaultPage:l=1,disabled:s=!1,getItemAriaLabel:u=c$,hideNextButton:c=!1,hidePrevButton:d=!1,renderItem:p=e=>(0,eu.jsx)(cU,(0,R.Z)({},e)),shape:f="circular",showFirstButton:m=!1,showLastButton:h=!1,siblingCount:g=1,size:v="medium",variant:b="text"}=r,y=(0,P.Z)(r,cH),{items:D}=cI((0,R.Z)({},r,{componentName:"Pagination"})),x=(0,R.Z)({},r,{boundaryCount:n,color:a,count:i,defaultPage:l,disabled:s,getItemAriaLabel:u,hideNextButton:c,hidePrevButton:d,renderItem:p,shape:f,showFirstButton:m,showLastButton:h,siblingCount:g,size:v,variant:b}),C=cG(x);return(0,eu.jsx)(cY,(0,R.Z)({"aria-label":"pagination navigation",className:(0,O.Z)(C.root,o),ownerState:x,ref:t},y,{children:(0,eu.jsx)(cV,{className:C.ul,ownerState:x,children:D.map((e,t)=>(0,eu.jsx)("li",{children:p((0,R.Z)({},e,{color:a,"aria-label":u(e.type,e.page,e.selected),shape:f,size:v,variant:b}))},t))})}))}),cQ=r(12241),cX=r(24562),cK=r(66950),cJ=r(60504),c0=r(92562),c1={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},c2=r(7610),c4=r(47309),c3=(0,tV.Z)((0,eu.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),c5=(0,tV.Z)((0,eu.jsx)("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function c8(e){return(0,ei.ZP)("MuiRating",e)}var c6=(0,ea.Z)("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);let c9=["value"],c7=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function de(e,t){return null==e?e:Number((Math.round(e/t)*t).toFixed(function(e){let t=e.toString().split(".")[1];return t?t.length:0}(t)))}let dt=e=>{let{classes:t,size:r,readOnly:n,disabled:o,emptyValueFocused:a,focusVisible:i}=e,l={root:["root","size".concat((0,e6.Z)(r)),o&&"disabled",i&&"focusVisible",n&&"readOnly"],label:["label","pristine"],labelEmptyValue:[a&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return(0,z.Z)(l,c8,t)},dr=(0,W.ZP)("span",{name:"MuiRating",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(c6.visuallyHidden)]:t.visuallyHidden},t.root,t["size".concat((0,e6.Z)(r.size))],r.readOnly&&t.readOnly]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"inline-flex",position:"relative",fontSize:t.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",["&.".concat(c6.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(c6.focusVisible," .").concat(c6.iconActive)]:{outline:"1px solid #999"},["& .".concat(c6.visuallyHidden)]:c1},"small"===r.size&&{fontSize:t.typography.pxToRem(18)},"large"===r.size&&{fontSize:t.typography.pxToRem(30)},r.readOnly&&{pointerEvents:"none"})}),dn=(0,W.ZP)("label",{name:"MuiRating",slot:"Label",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.label,r.emptyValueFocused&&t.labelEmptyValueActive]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({cursor:"inherit"},t.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"})}),da=(0,W.ZP)("span",{name:"MuiRating",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.iconEmpty&&t.iconEmpty,r.iconFilled&&t.iconFilled,r.iconHover&&t.iconHover,r.iconFocus&&t.iconFocus,r.iconActive&&t.iconActive]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"flex",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),pointerEvents:"none"},r.iconActive&&{transform:"scale(1.2)"},r.iconEmpty&&{color:(t.vars||t).palette.action.disabled})}),di=(0,W.ZP)("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:e=>(0,W.Dz)(e)&&"iconActive"!==e,overridesResolver:(e,t)=>{let{iconActive:r}=e;return[t.decimal,r&&t.iconActive]}})(e=>{let{iconActive:t}=e;return(0,R.Z)({position:"relative"},t&&{transform:"scale(1.2)"})});function dl(e){let t=(0,P.Z)(e,c9);return(0,eu.jsx)("span",(0,R.Z)({},t))}function ds(e){let{classes:t,disabled:r,emptyIcon:n,focus:o,getLabelText:a,highlightSelectedOnly:i,hover:l,icon:s,IconContainerComponent:u,isActive:c,itemValue:d,labelProps:p,name:f,onBlur:m,onChange:h,onClick:g,onFocus:v,readOnly:b,ownerState:y,ratingValue:D,ratingValueRounded:x}=e,C=i?d===D:d<=D,Z=d<=l,w=d<=o,S=d===x,F=(0,c4.Z)(),k=(0,eu.jsx)(da,{as:u,value:d,className:(0,O.Z)(t.icon,C?t.iconFilled:t.iconEmpty,Z&&t.iconHover,w&&t.iconFocus,c&&t.iconActive),ownerState:(0,R.Z)({},y,{iconEmpty:!C,iconFilled:C,iconHover:Z,iconFocus:w,iconActive:c}),children:n&&!C?n:s});return b?(0,eu.jsx)("span",(0,R.Z)({},p,{children:k})):(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsxs)(dn,(0,R.Z)({ownerState:(0,R.Z)({},y,{emptyValueFocused:void 0}),htmlFor:F},p,{children:[k,(0,eu.jsx)("span",{className:t.visuallyHidden,children:a(d)})]})),(0,eu.jsx)("input",{className:t.visuallyHidden,onFocus:v,onBlur:m,onChange:h,onClick:g,disabled:r,value:d,id:F,type:"radio",name:f,checked:S})]})}let du=(0,eu.jsx)(c3,{fontSize:"inherit"}),dc=(0,eu.jsx)(c5,{fontSize:"inherit"});function dd(e){return"".concat(e," Star").concat(1!==e?"s":"")}var dp=B.forwardRef(function(e,t){let r=(0,_.Z)({name:"MuiRating",props:e}),{className:n,defaultValue:o=null,disabled:a=!1,emptyIcon:i=dc,emptyLabelText:l="Empty",getLabelText:s=dd,highlightSelectedOnly:u=!1,icon:c=du,IconContainerComponent:d=dl,max:p=5,name:f,onChange:m,onChangeActive:h,onMouseLeave:g,onMouseMove:v,precision:b=1,readOnly:y=!1,size:D="medium",value:x}=r,C=(0,P.Z)(r,c7),Z=(0,c4.Z)(f),[w,S]=(0,ey.Z)({controlled:x,default:o,name:"Rating"}),F=de(w,b),k=(0,en.Z)(),[{hover:E,focus:M},I]=B.useState({hover:-1,focus:-1}),j=F;-1!==E&&(j=E),-1!==M&&(j=M);let{isFocusVisibleRef:T,onBlur:A,onFocus:N,ref:L}=(0,sF.Z)(),[z,W]=B.useState(!1),U=B.useRef(),H=(0,eo.Z)(L,U,t),G=e=>{let t=""===e.target.value?null:parseFloat(e.target.value);-1!==E&&(t=E),S(t),m&&m(e,t)},Y=e=>{(0!==e.clientX||0!==e.clientY)&&(I({hover:-1,focus:-1}),S(null),m&&parseFloat(e.target.value)===F&&m(e,null))},V=e=>{N(e),!0===T.current&&W(!0);let t=parseFloat(e.target.value);I(e=>({hover:e.hover,focus:t}))},$=e=>{-1===E&&(A(e),!1===T.current&&W(!1),I(e=>({hover:e.hover,focus:-1})))},[q,Q]=B.useState(!1),X=(0,R.Z)({},r,{defaultValue:o,disabled:a,emptyIcon:i,emptyLabelText:l,emptyValueFocused:q,focusVisible:z,getLabelText:s,icon:c,IconContainerComponent:d,max:p,precision:b,readOnly:y,size:D}),K=dt(X);return(0,eu.jsxs)(dr,(0,R.Z)({ref:H,onMouseMove:e=>{v&&v(e);let{right:t,left:r,width:n}=U.current.getBoundingClientRect(),o=de(p*("rtl"===k.direction?(t-e.clientX)/n:(e.clientX-r)/n)+b/2,b);o=(0,c2.Z)(o,b,p),I(e=>e.hover===o&&e.focus===o?e:{hover:o,focus:o}),W(!1),h&&E!==o&&h(e,o)},onMouseLeave:e=>{g&&g(e),I({hover:-1,focus:-1}),h&&-1!==E&&h(e,-1)},className:(0,O.Z)(K.root,n,y&&"MuiRating-readOnly"),ownerState:X,role:y?"img":null,"aria-label":y?s(j):null},C,{children:[Array.from(Array(p)).map((e,t)=>{let r=t+1,n={classes:K,disabled:a,emptyIcon:i,focus:M,getLabelText:s,highlightSelectedOnly:u,hover:E,icon:c,IconContainerComponent:d,name:Z,onBlur:$,onChange:G,onClick:Y,onFocus:V,ratingValue:j,ratingValueRounded:F,readOnly:y,ownerState:X},o=r===Math.ceil(j)&&(-1!==E||-1!==M);if(b<1){let e=Array.from(Array(1/b));return(0,eu.jsx)(di,{className:(0,O.Z)(K.decimal,o&&K.iconActive),ownerState:X,iconActive:o,children:e.map((t,o)=>{let a=de(r-1+(o+1)*b,b);return(0,eu.jsx)(ds,(0,R.Z)({},n,{isActive:!1,itemValue:a,labelProps:{style:e.length-1===o?{}:{width:a===j?"".concat((o+1)*b*100,"%"):"0%",overflow:"hidden",position:"absolute"}}}),a)})},r)}return(0,eu.jsx)(ds,(0,R.Z)({},n,{isActive:o,itemValue:r}),r)}),!y&&!a&&(0,eu.jsxs)(dn,{className:(0,O.Z)(K.label,K.labelEmptyValue),ownerState:X,children:[(0,eu.jsx)("input",{className:K.visuallyHidden,value:"",id:"".concat(Z,"-empty"),type:"radio",name:Z,checked:null==F,onFocus:()=>Q(!0),onBlur:()=>Q(!1),onChange:G}),(0,eu.jsx)("span",{className:K.visuallyHidden,children:l})]})]}))});function df(e){return(0,ei.ZP)("MuiScopedCssBaseline",e)}var dm=(0,ea.Z)("MuiScopedCssBaseline",["root"]);let dh=["className","component","enableColorScheme"],dg=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},df,t)},dv=(0,W.ZP)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t,ownerState:r}=e,n={};return r.enableColorScheme&&t.colorSchemes&&Object.entries(t.colorSchemes).forEach(e=>{var r;let[o,a]=e;n["&".concat(t.getColorSchemeSelector(o).replace(/\s*&/,""))]={colorScheme:null==(r=a.palette)?void 0:r.mode}}),(0,R.Z)({},oO(t,r.enableColorScheme),oz(t),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:t.typography.fontWeightBold}},n)});var db=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiScopedCssBaseline"}),{className:n,component:o="div"}=r,a=(0,P.Z)(r,dh),i=(0,R.Z)({},r,{component:o}),l=dg(i);return(0,eu.jsx)(dv,(0,R.Z)({as:o,className:(0,O.Z)(l.root,n),ref:t,ownerState:i},a))});function dy(e){return(0,ei.ZP)("MuiSelect",e)}var dD=(0,ea.Z)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);let dx=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],dC=(0,W.ZP)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["&.".concat(dD.select)]:t.select},{["&.".concat(dD.select)]:t[r.variant]},{["&.".concat(dD.error)]:t.error},{["&.".concat(dD.multiple)]:t.multiple}]}})(ca,{["&.".concat(dD.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),dZ=(0,W.ZP)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,r.variant&&t["icon".concat((0,e6.Z)(r.variant))],r.open&&t.iconOpen]}})(cl),dw=(0,W.ZP)("input",{shouldForwardProp:e=>(0,W.Dz)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function dS(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}let dF=e=>{let{classes:t,variant:r,disabled:n,multiple:o,open:a,error:i}=e,l={select:["select",r,n&&"disabled",o&&"multiple",i&&"error"],icon:["icon","icon".concat((0,e6.Z)(r)),a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return(0,z.Z)(l,dy,t)},dk=B.forwardRef(function(e,t){var r,n;let o,a,i;let{"aria-describedby":l,"aria-label":s,autoFocus:u,autoWidth:d,children:p,className:f,defaultOpen:m,defaultValue:h,disabled:g,displayEmpty:v,error:b=!1,IconComponent:y,inputRef:D,labelId:x,MenuProps:C={},multiple:Z,name:w,onBlur:S,onChange:F,onClose:k,onFocus:E,onOpen:M,open:I,readOnly:j,renderValue:T,SelectDisplayProps:A={},tabIndex:N,value:L,variant:z="standard"}=e,W=(0,P.Z)(e,dx),[_,U]=(0,ey.Z)({controlled:L,default:h,name:"Select"}),[H,G]=(0,ey.Z)({controlled:I,default:m,name:"Select"}),Y=B.useRef(null),V=B.useRef(null),[$,q]=B.useState(null),{current:Q}=B.useRef(null!=I),[X,K]=B.useState(),J=(0,eo.Z)(t,D),ee=B.useCallback(e=>{V.current=e,e&&q(e)},[]),et=null==$?void 0:$.parentNode;B.useImperativeHandle(J,()=>({focus:()=>{V.current.focus()},node:Y.current,value:_}),[_]),B.useEffect(()=>{m&&H&&$&&!Q&&(K(d?null:et.clientWidth),V.current.focus())},[$,d]),B.useEffect(()=>{u&&V.current.focus()},[u]),B.useEffect(()=>{if(!x)return;let e=(0,uy.Z)(V.current).getElementById(x);if(e){let t=()=>{getSelection().isCollapsed&&V.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[x]);let er=(e,t)=>{e?M&&M(t):k&&k(t),Q||(K(d?null:et.clientWidth),G(e))},en=B.Children.toArray(p),ea=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(Z){r=Array.isArray(_)?_.slice():[];let t=_.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),_!==r&&(U(r),F)){let n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:w}}),F(o,e)}Z||er(!1,t)}},ei=null!==$&&H;delete W["aria-invalid"];let el=[],es=!1;((0,iu.vd)({value:_})||v)&&(T?o=T(_):es=!0);let ec=en.map(e=>{let t;if(!B.isValidElement(e))return null;if(Z){if(!Array.isArray(_))throw Error((0,a6.Z)(2));(t=_.some(t=>dS(t,e.props.value)))&&es&&el.push(e.props.children)}else(t=dS(_,e.props.value))&&es&&(a=e.props.children);return B.cloneElement(e,{"aria-selected":t?"true":"false",onClick:ea(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});es&&(o=Z?0===el.length?null:el.reduce((e,t,r)=>(e.push(t),r{j||-1===[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)||(e.preventDefault(),er(!0,e))},onMouseDown:g||j?null:e=>{0===e.button&&(e.preventDefault(),V.current.focus(),er(!0,e))},onBlur:e=>{!ei&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:w}}),S(e))},onFocus:E},A,{ownerState:ef,className:(0,O.Z)(A.className,em.select,f),id:ep,children:null!=(n=o)&&("string"!=typeof n||n.trim())?o:c||(c=(0,eu.jsx)("span",{className:"notranslate",children:"​"}))})),(0,eu.jsx)(dw,(0,R.Z)({"aria-invalid":b,value:Array.isArray(_)?_.join(","):_,name:w,ref:Y,"aria-hidden":!0,onChange:e=>{let t=en.find(t=>t.props.value===e.target.value);void 0!==t&&(U(t.props.value),F&&F(e,t))},tabIndex:-1,disabled:g,className:em.nativeInput,autoFocus:u,ownerState:ef},W)),(0,eu.jsx)(dZ,{as:y,className:em.icon,ownerState:ef}),(0,eu.jsx)(uq,(0,R.Z)({id:"menu-".concat(w||""),anchorEl:et,open:ei,onClose:e=>{er(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},C,{MenuListProps:(0,R.Z)({"aria-labelledby":x,role:"listbox","aria-multiselectable":Z?"true":void 0,disableListWrap:!0,id:eg},C.MenuListProps),slotProps:(0,R.Z)({},C.slotProps,{paper:(0,R.Z)({},eh,{style:(0,R.Z)({minWidth:ed},null!=eh?eh.style:null)})}),children:ec}))]})}),dE=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],dM=["root"],dI=e=>{let{classes:t}=e;return t},dj={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,W.FO)(e)&&"variant"!==e,slot:"Root"},dT=(0,W.ZP)(lX,dj)(""),dA=(0,W.ZP)(cF,dj)(""),dN=(0,W.ZP)(iw,dj)(""),dL=B.forwardRef(function(e,t){let r=(0,_.Z)({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:a={},className:i,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=rr,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:D,renderValue:x,SelectDisplayProps:C,variant:Z="outlined"}=r,w=(0,P.Z)(r,dE),S=v?cu:dk,F=(0,il.Z)(),k=(0,ia.Z)({props:r,muiFormControl:F,states:["variant","error"]}),E=k.variant||Z,M=(0,R.Z)({},r,{variant:E,classes:a}),I=dI(M),j=(0,P.Z)(I,dM),T=d||({standard:(0,eu.jsx)(dT,{ownerState:M}),outlined:(0,eu.jsx)(dA,{label:f,ownerState:M}),filled:(0,eu.jsx)(dN,{ownerState:M})})[E],A=(0,eo.Z)(t,T.ref);return(0,eu.jsx)(B.Fragment,{children:B.cloneElement(T,(0,R.Z)({inputComponent:S,inputProps:(0,R.Z)({children:o,error:k.error,IconComponent:u,variant:E,type:void 0,multiple:g},v?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:b,onOpen:y,open:D,renderValue:x,SelectDisplayProps:(0,R.Z)({id:c},C)},p,{classes:p?(0,a8.Z)(j,p.classes):j},d?d.props.inputProps:{})},g&&v&&"outlined"===E?{notched:!0}:{},{ref:A,className:(0,O.Z)(T.props.className,i,I.root)},!d&&{variant:E},w))})});dL.muiName="Select";var dP=dL,dR=r(32626);function dB(e){return(0,ei.ZP)("MuiSkeleton",e)}var dO=(0,ea.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);function dz(){let e=(0,ol._)(["\n 0% {\n opacity: 1;\n }\n\n 50% {\n opacity: 0.4;\n }\n\n 100% {\n opacity: 1;\n }\n"]);return dz=function(){return e},e}function dW(){let e=(0,ol._)(["\n 0% {\n transform: translateX(-100%);\n }\n\n 50% {\n /* +0.5s of delay between each loop */\n transform: translateX(100%);\n }\n\n 100% {\n transform: translateX(100%);\n }\n"]);return dW=function(){return e},e}function d_(){let e=(0,ol._)(["\n animation: "," 2s ease-in-out 0.5s infinite;\n "]);return d_=function(){return e},e}function dU(){let e=(0,ol._)(["\n position: relative;\n overflow: hidden;\n\n /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */\n -webkit-mask-image: -webkit-radial-gradient(white, black);\n\n &::after {\n animation: "," 2s linear 0.5s infinite;\n background: linear-gradient(\n 90deg,\n transparent,\n ",",\n transparent\n );\n content: '';\n position: absolute;\n transform: translateX(-100%); /* Avoid flash during server-side hydration */\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n }\n "]);return dU=function(){return e},e}let dH=["animation","className","component","height","style","variant","width"],dG=e=>e,dY,dV,d$,dq,dQ=e=>{let{classes:t,variant:r,animation:n,hasChildren:o,width:a,height:i}=e;return(0,z.Z)({root:["root",r,n,o&&"withChildren",o&&!a&&"fitContent",o&&!i&&"heightAuto"]},dB,t)},dX=(0,os.F4)(dY||(dY=dG(dz()))),dK=(0,os.F4)(dV||(dV=dG(dW()))),dJ=(0,W.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})(e=>{let{theme:t,ownerState:r}=e,n=(0,dR.Wy)(t.shape.borderRadius)||"px",o=(0,dR.YL)(t.shape.borderRadius);return(0,R.Z)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:(0,tg.Fq)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===r.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:"".concat(o).concat(n,"/").concat(Math.round(o/.6*10)/10).concat(n),"&:empty:before":{content:'"\\00a0"'}},"circular"===r.variant&&{borderRadius:"50%"},"rounded"===r.variant&&{borderRadius:(t.vars||t).shape.borderRadius},r.hasChildren&&{"& > *":{visibility:"hidden"}},r.hasChildren&&!r.width&&{maxWidth:"fit-content"},r.hasChildren&&!r.height&&{height:"auto"})},e=>{let{ownerState:t}=e;return"pulse"===t.animation&&(0,os.iv)(d$||(d$=dG(d_(),0)),dX)},e=>{let{ownerState:t,theme:r}=e;return"wave"===t.animation&&(0,os.iv)(dq||(dq=dG(dU(),0,0)),dK,(r.vars||r).palette.action.hover)});var d0=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:o,component:a="span",height:i,style:l,variant:s="text",width:u}=r,c=(0,P.Z)(r,dH),d=(0,R.Z)({},r,{animation:n,component:a,variant:s,hasChildren:!!c.children}),p=dQ(d);return(0,eu.jsx)(dJ,(0,R.Z)({as:a,ref:t,className:(0,O.Z)(p.root,o),ownerState:d},c,{style:(0,R.Z)({width:u,height:i},l)}))}),d1=r(55551);function d2(e,t){return e-t}function d4(e,t){var r;let{index:n}=null!=(r=e.reduce((e,r,n)=>{let o=Math.abs(t-r);return null===e||oe===t){return e.length===t.length&&e.every((e,n)=>r(e,t[n]))}(e,t)}let d9={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},d7=e=>e;function pe(){return void 0===n&&("undefined"!=typeof CSS&&"function"==typeof CSS.supports?n=CSS.supports("touch-action","none"):n=!0),n}var pt=e=>!e||!eS(e);function pr(e){return(0,ei.ZP)("MuiSlider",e)}var pn=(0,ea.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);let po=e=>{let{open:t}=e;return{offset:(0,O.Z)(t&&pn.valueLabelOpen),circle:pn.valueLabelCircle,label:pn.valueLabelLabel}},pa=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function pi(e){return e}let pl=(0,W.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["color".concat((0,e6.Z)(r.color))],"medium"!==r.size&&t["size".concat((0,e6.Z)(r.size))],r.marked&&t.marked,"vertical"===r.orientation&&t.vertical,"inverted"===r.track&&t.trackInverted,!1===r.track&&t.trackFalse]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(t.vars||t).palette[r.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===r.orientation&&(0,R.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===r.size&&{height:2},r.marked&&{marginBottom:20}),"vertical"===r.orientation&&(0,R.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===r.size&&{width:2},r.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},["&.".concat(pn.disabled)]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},["&.".concat(pn.dragging)]:{["& .".concat(pn.thumb,", & .").concat(pn.track)]:{transition:"none"}}})}),ps=(0,W.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})}),pu=(0,W.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(e=>{let{theme:t,ownerState:r}=e,n="light"===t.palette.mode?(0,tg.$n)(t.palette[r.color].main,.62):(0,tg._j)(t.palette[r.color].main,.5);return(0,R.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===r.size&&{border:"none"},"horizontal"===r.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===r.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===r.track&&{display:"none"},"inverted"===r.track&&{backgroundColor:t.vars?t.vars.palette.Slider["".concat(r.color,"Track")]:n,borderColor:t.vars?t.vars.palette.Slider["".concat(r.color,"Track")]:n})}),pc=(0,W.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.thumb,t["thumbColor".concat((0,e6.Z)(r.color))],"medium"!==r.size&&t["thumbSize".concat((0,e6.Z)(r.size))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest})},"small"===r.size&&{width:12,height:12},"horizontal"===r.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===r.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":(0,R.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"small"===r.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},["&:hover, &.".concat(pn.focusVisible)]:{boxShadow:"0px 0px 0px 8px ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.16)"):(0,tg.Fq)(t.palette[r.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}},["&.".concat(pn.active)]:{boxShadow:"0px 0px 0px 14px ".concat(t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / 0.16)"):(0,tg.Fq)(t.palette[r.color].main,.16))},["&.".concat(pn.disabled)]:{"&:hover":{boxShadow:"none"}}})}),pd=(0,W.ZP)(function(e){let{children:t,className:r,value:n}=e,o=po(e);return t?B.cloneElement(t,{className:(0,O.Z)(t.props.className)},(0,eu.jsxs)(B.Fragment,{children:[t.props.children,(0,eu.jsx)("span",{className:(0,O.Z)(o.offset,r),"aria-hidden":!0,children:(0,eu.jsx)("span",{className:o.circle,children:(0,eu.jsx)("span",{className:o.label,children:n})})})]})):null},{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({["&.".concat(pn.valueLabelOpen)]:{transform:"".concat("vertical"===r.orientation?"translateY(-50%)":"translateY(-100%)"," scale(1)")},zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),transform:"".concat("vertical"===r.orientation?"translateY(-50%)":"translateY(-100%)"," scale(0)"),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===r.orientation&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===r.orientation&&{right:"small"===r.size?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===r.size&&{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"})}),pp=(0,W.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,W.Dz)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{let{markActive:r}=e;return[t.mark,r&&t.markActive]}})(e=>{let{theme:t,ownerState:r,markActive:n}=e;return(0,R.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===r.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===r.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})}),pf=(0,W.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,W.Dz)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})(e=>{let{theme:t,ownerState:r,markLabelActive:n}=e;return(0,R.Z)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===r.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===r.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(t.vars||t).palette.text.primary})}),pm=e=>{let{disabled:t,dragging:r,marked:n,orientation:o,track:a,classes:i,color:l,size:s}=e,u={root:["root",t&&"disabled",r&&"dragging",n&&"marked","vertical"===o&&"vertical","inverted"===a&&"trackInverted",!1===a&&"trackFalse",l&&"color".concat((0,e6.Z)(l)),s&&"size".concat((0,e6.Z)(s))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",s&&"thumbSize".concat((0,e6.Z)(s)),l&&"thumbColor".concat((0,e6.Z)(l))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,z.Z)(u,pr,i)},ph=e=>{let{children:t}=e;return t};var pg=B.forwardRef(function(e,t){var r,n,o,a,i,l,s,u,c,d,p,f,m,h,g,v,b,y,D,x,C,Z,w,S;let F=(0,_.Z)({props:e,name:"MuiSlider"}),k="rtl"===(0,en.Z)().direction,{"aria-label":E,"aria-valuetext":M,"aria-labelledby":I,component:j="span",components:T={},componentsProps:A={},color:N="primary",classes:L,className:z,disableSwap:W=!1,disabled:U=!1,getAriaLabel:H,getAriaValueText:G,marks:Y=!1,max:V=100,min:$=0,orientation:q="horizontal",size:Q="medium",step:X=1,scale:K=pi,slotProps:J,slots:ee,track:et="normal",valueLabelDisplay:er="off",valueLabelFormat:eo=pi}=F,ea=(0,P.Z)(F,pa),ei=(0,R.Z)({},F,{isRtl:k,max:V,min:$,classes:L,disabled:U,disableSwap:W,orientation:q,marks:Y,color:N,size:Q,step:X,scale:K,track:et,valueLabelDisplay:er,valueLabelFormat:eo}),{axisProps:el,getRootProps:es,getHiddenInputProps:ec,getThumbProps:ed,open:ep,active:ef,axis:em,focusedThumbIndex:eh,range:eg,dragging:ev,marks:eb,values:ey,trackOffset:ex,trackLeap:eZ,getThumbStyle:ew}=function(e){let{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:o=!1,isRtl:a=!1,marks:i=!1,max:l=100,min:s=0,name:u,onChange:c,onChangeCommitted:d,orientation:p="horizontal",rootRef:f,scale:m=d7,step:h=1,tabIndex:g,value:v}=e,b=B.useRef(),[y,D]=B.useState(-1),[x,C]=B.useState(-1),[Z,w]=B.useState(!1),S=B.useRef(0),[F,k]=(0,ti.Z)({controlled:v,default:null!=r?r:s,name:"Slider"}),E=c&&((e,t,r)=>{let n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:u}}),c(o,t,r)}),M=Array.isArray(F),I=M?F.slice().sort(d2):[F];I=I.map(e=>null==e?s:(0,c2.Z)(e,s,l));let j=!0===i&&null!==h?[...Array(Math.floor((l-s)/h)+1)].map((e,t)=>({value:s+h*t})):i||[],T=j.map(e=>e.value),{isFocusVisibleRef:A,onBlur:N,onFocus:L,ref:P}=(0,d1.Z)(),[O,z]=B.useState(-1),W=B.useRef(),_=(0,eD.Z)(P,W),U=(0,eD.Z)(f,_),H=e=>t=>{var r;let n=Number(t.currentTarget.getAttribute("data-index"));L(t),!0===A.current&&z(n),C(n),null==e||null==(r=e.onFocus)||r.call(e,t)},G=e=>t=>{var r;N(t),!1===A.current&&z(-1),C(-1),null==e||null==(r=e.onBlur)||r.call(e,t)};(0,tv.Z)(()=>{if(n&&W.current.contains(document.activeElement)){var e;null==(e=document.activeElement)||e.blur()}},[n]),n&&-1!==y&&D(-1),n&&-1!==O&&z(-1);let Y=e=>t=>{var r;null==(r=e.onChange)||r.call(e,t);let n=Number(t.currentTarget.getAttribute("data-index")),a=I[n],i=T.indexOf(a),u=t.target.valueAsNumber;if(j&&null==h){let e=T[T.length-1];u=u>e?e:u{let r,n;let{current:a}=W,{width:i,height:u,bottom:c,left:d}=a.getBoundingClientRect();if(r=0===$.indexOf("vertical")?(c-e.y)/u:(e.x-d)/i,-1!==$.indexOf("-reverse")&&(r=1-r),n=(l-s)*r+s,h)n=Number((Math.round((n-s)/h)*h+s).toFixed(function(e){if(1>Math.abs(e)){let t=e.toExponential().split("e-"),r=t[0].split(".")[1];return(r?r.length:0)+parseInt(t[1],10)}let t=e.toString().split(".")[1];return t?t.length:0}(h)));else{let e=d4(T,n);n=T[e]}n=(0,c2.Z)(n,s,l);let p=0;if(M){p=t?V.current:d4(I,n),o&&(n=(0,c2.Z)(n,I[p-1]||-1/0,I[p+1]||1/0));let e=n;n=d5({values:I,newValue:n,index:p}),o&&t||(p=n.indexOf(e),V.current=p)}return{newValue:n,activeIndex:p}},Q=(0,ts.Z)(e=>{let t=d3(e,b);if(!t)return;if(S.current+=1,"mousemove"===e.type&&0===e.buttons){X(e);return}let{newValue:r,activeIndex:n}=q({finger:t,move:!0});d8({sliderRef:W,activeIndex:n,setActive:D}),k(r),!Z&&S.current>2&&w(!0),E&&!d6(r,F)&&E(e,r,n)}),X=(0,ts.Z)(e=>{let t=d3(e,b);if(w(!1),!t)return;let{newValue:r}=q({finger:t,move:!0});D(-1),"touchend"===e.type&&C(-1),d&&d(e,r),b.current=void 0,J()}),K=(0,ts.Z)(e=>{if(n)return;pe()||e.preventDefault();let t=e.changedTouches[0];null!=t&&(b.current=t.identifier);let r=d3(e,b);if(!1!==r){let{newValue:t,activeIndex:n}=q({finger:r});d8({sliderRef:W,activeIndex:n,setActive:D}),k(t),E&&!d6(t,F)&&E(e,t,n)}S.current=0;let o=(0,tb.Z)(W.current);o.addEventListener("touchmove",Q,{passive:!0}),o.addEventListener("touchend",X,{passive:!0})}),J=B.useCallback(()=>{let e=(0,tb.Z)(W.current);e.removeEventListener("mousemove",Q),e.removeEventListener("mouseup",X),e.removeEventListener("touchmove",Q),e.removeEventListener("touchend",X)},[X,Q]);B.useEffect(()=>{let{current:e}=W;return e.addEventListener("touchstart",K,{passive:pe()}),()=>{e.removeEventListener("touchstart",K),J()}},[J,K]),B.useEffect(()=>{n&&J()},[n,J]);let ee=e=>t=>{var r;if(null==(r=e.onMouseDown)||r.call(e,t),n||t.defaultPrevented||0!==t.button)return;t.preventDefault();let o=d3(t,b);if(!1!==o){let{newValue:e,activeIndex:r}=q({finger:o});d8({sliderRef:W,activeIndex:r,setActive:D}),k(e),E&&!d6(e,F)&&E(t,e,r)}S.current=0;let a=(0,tb.Z)(W.current);a.addEventListener("mousemove",Q,{passive:!0}),a.addEventListener("mouseup",X)},et=((M?I[0]:s)-s)*100/(l-s),er=(I[I.length-1]-s)*100/(l-s)-et,en=e=>t=>{var r;null==(r=e.onMouseOver)||r.call(e,t),C(Number(t.currentTarget.getAttribute("data-index")))},eo=e=>t=>{var r;null==(r=e.onMouseLeave)||r.call(e,t),C(-1)};return{active:y,axis:$,axisProps:d9,dragging:Z,focusedThumbIndex:O,getHiddenInputProps:(r={})=>{var o;let i=eC(r),c={onChange:Y(i||{}),onFocus:H(i||{}),onBlur:G(i||{})},d=(0,R.Z)({},i,c);return(0,R.Z)({tabIndex:g,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(l),"aria-valuemin":m(s),name:u,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:n},r,d,{style:(0,R.Z)({},c1,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(e={})=>{let t=eC(e),r={onMouseDown:ee(t||{})},n=(0,R.Z)({},t,r);return(0,R.Z)({},e,{ref:U},n)},getThumbProps:(e={})=>{let t=eC(e),r={onMouseOver:en(t||{}),onMouseLeave:eo(t||{})};return(0,R.Z)({},e,t,r)},marks:j,open:x,range:M,rootRef:U,trackLeap:er,trackOffset:et,values:I,getThumbStyle:e=>({pointerEvents:-1!==y&&y!==e?"none":void 0})}}((0,R.Z)({},ei,{rootRef:t}));ei.marked=eb.length>0&&eb.some(e=>e.label),ei.dragging=ev,ei.focusedThumbIndex=eh;let eF=pm(ei),ek=null!=(r=null!=(n=null==ee?void 0:ee.root)?n:T.Root)?r:pl,eE=null!=(o=null!=(a=null==ee?void 0:ee.rail)?a:T.Rail)?o:ps,eM=null!=(i=null!=(l=null==ee?void 0:ee.track)?l:T.Track)?i:pu,eI=null!=(s=null!=(u=null==ee?void 0:ee.thumb)?u:T.Thumb)?s:pc,ej=null!=(c=null!=(d=null==ee?void 0:ee.valueLabel)?d:T.ValueLabel)?c:pd,eT=null!=(p=null!=(f=null==ee?void 0:ee.mark)?f:T.Mark)?p:pp,eA=null!=(m=null!=(h=null==ee?void 0:ee.markLabel)?h:T.MarkLabel)?m:pf,eN=null!=(g=null!=(v=null==ee?void 0:ee.input)?v:T.Input)?g:"input",eL=null!=(b=null==J?void 0:J.root)?b:A.root,eP=null!=(y=null==J?void 0:J.rail)?y:A.rail,eR=null!=(D=null==J?void 0:J.track)?D:A.track,eB=null!=(x=null==J?void 0:J.thumb)?x:A.thumb,eO=null!=(C=null==J?void 0:J.valueLabel)?C:A.valueLabel,ez=null!=(Z=null==J?void 0:J.mark)?Z:A.mark,eW=null!=(w=null==J?void 0:J.markLabel)?w:A.markLabel,e_=null!=(S=null==J?void 0:J.input)?S:A.input,eU=tF({elementType:ek,getSlotProps:es,externalSlotProps:eL,externalForwardedProps:ea,additionalProps:(0,R.Z)({},pt(ek)&&{as:j}),ownerState:(0,R.Z)({},ei,null==eL?void 0:eL.ownerState),className:[eF.root,z]}),eH=tF({elementType:eE,externalSlotProps:eP,ownerState:ei,className:eF.rail}),eG=tF({elementType:eM,externalSlotProps:eR,additionalProps:{style:(0,R.Z)({},el[em].offset(ex),el[em].leap(eZ))},ownerState:(0,R.Z)({},ei,null==eR?void 0:eR.ownerState),className:eF.track}),eY=tF({elementType:eI,getSlotProps:ed,externalSlotProps:eB,ownerState:(0,R.Z)({},ei,null==eB?void 0:eB.ownerState),className:eF.thumb}),eV=tF({elementType:ej,externalSlotProps:eO,ownerState:(0,R.Z)({},ei,null==eO?void 0:eO.ownerState),className:eF.valueLabel}),e$=tF({elementType:eT,externalSlotProps:ez,ownerState:ei,className:eF.mark}),eq=tF({elementType:eA,externalSlotProps:eW,ownerState:ei,className:eF.markLabel}),eQ=tF({elementType:eN,getSlotProps:ec,externalSlotProps:e_,ownerState:ei});return(0,eu.jsxs)(ek,(0,R.Z)({},eU,{children:[(0,eu.jsx)(eE,(0,R.Z)({},eH)),(0,eu.jsx)(eM,(0,R.Z)({},eG)),eb.filter(e=>e.value>=$&&e.value<=V).map((e,t)=>{let r;let n=(e.value-$)*100/(V-$),o=el[em].offset(n);return r=!1===et?-1!==ey.indexOf(e.value):"normal"===et&&(eg?e.value>=ey[0]&&e.value<=ey[ey.length-1]:e.value<=ey[0])||"inverted"===et&&(eg?e.value<=ey[0]||e.value>=ey[ey.length-1]:e.value>=ey[0]),(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)(eT,(0,R.Z)({"data-index":t},e$,!eS(eT)&&{markActive:r},{style:(0,R.Z)({},o,e$.style),className:(0,O.Z)(e$.className,r&&eF.markActive)})),null!=e.label?(0,eu.jsx)(eA,(0,R.Z)({"aria-hidden":!0,"data-index":t},eq,!eS(eA)&&{markLabelActive:r},{style:(0,R.Z)({},o,eq.style),className:(0,O.Z)(eF.markLabel,eq.className,r&&eF.markLabelActive),children:e.label})):null]},t)}),ey.map((e,t)=>{let r=(e-$)*100/(V-$),n=el[em].offset(r),o="off"===er?ph:ej;return(0,eu.jsx)(o,(0,R.Z)({},!eS(o)&&{valueLabelFormat:eo,valueLabelDisplay:er,value:"function"==typeof eo?eo(K(e),t):eo,index:t,open:ep===t||ef===t||"on"===er,disabled:U},eV,{children:(0,eu.jsx)(eI,(0,R.Z)({"data-index":t},eY,{className:(0,O.Z)(eF.thumb,eY.className,ef===t&&eF.active,eh===t&&eF.focusVisible),style:(0,R.Z)({},n,ew(t),eY.style),children:(0,eu.jsx)(eN,(0,R.Z)({"data-index":t,"aria-label":H?H(t):E,"aria-valuenow":K(e),"aria-labelledby":I,"aria-valuetext":G?G(K(e),t):M,value:ey[t]},eQ))}))}),t)})]}))});function pv(e){return(0,ei.ZP)("MuiSnackbarContent",e)}var pb=(0,ea.Z)("MuiSnackbarContent",["root","message","action"]);let py=["action","className","message","role"],pD=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],action:["action"],message:["message"]},pv,t)},px=(0,W.ZP)(ev.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e,r="light"===t.palette.mode?.8:.98,n=(0,tg._4)(t.palette.background.default,r);return(0,R.Z)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),pC=(0,W.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),pZ=(0,W.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8});var pw=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSnackbarContent"}),{action:n,className:o,message:a,role:i="alert"}=r,l=(0,P.Z)(r,py),s=pD(r);return(0,eu.jsxs)(px,(0,R.Z)({role:i,square:!0,elevation:6,className:(0,O.Z)(s.root,o),ownerState:r,ref:t},l,{children:[(0,eu.jsx)(pC,{className:s.message,ownerState:r,children:a}),n?(0,eu.jsx)(pZ,{className:s.action,ownerState:r,children:n}):null]}))});function pS(e){return(0,ei.ZP)("MuiSnackbar",e)}var pF=(0,ea.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let pk=["onEnter","onExited"],pE=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],pM=e=>{let{classes:t,anchorOrigin:r}=e,n={root:["root","anchorOrigin".concat((0,e6.Z)(r.vertical)).concat((0,e6.Z)(r.horizontal))]};return(0,z.Z)(n,pS,t)},pI=(0,W.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["anchorOrigin".concat((0,e6.Z)(r.anchorOrigin.vertical)).concat((0,e6.Z)(r.anchorOrigin.horizontal))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:(0,R.Z)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})})});var pj=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSnackbar"}),n=(0,en.Z)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:i,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:s=null,children:u,className:c,ClickAwayListenerProps:d,ContentProps:p,disableWindowBlurListener:f=!1,message:m,open:h,TransitionComponent:g=lp,transitionDuration:v=o,TransitionProps:{onEnter:b,onExited:y}={}}=r,D=(0,P.Z)(r.TransitionProps,pk),x=(0,P.Z)(r,pE),C=(0,R.Z)({},r,{anchorOrigin:{vertical:i,horizontal:l},autoHideDuration:s,disableWindowBlurListener:f,TransitionComponent:g,transitionDuration:v}),Z=pM(C),{getRootProps:w,onClickAway:S}=function(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:r=!1,onClose:n,open:o,resumeHideDuration:a}=e,i=B.useRef();B.useEffect(()=>{if(o)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){e.defaultPrevented||"Escape"!==e.key&&"Esc"!==e.key||null==n||n(e,"escapeKeyDown")}},[o,n]);let l=(0,ts.Z)((e,t)=>{null==n||n(e,t)}),s=(0,ts.Z)(e=>{n&&null!=e&&(clearTimeout(i.current),i.current=setTimeout(()=>{l(null,"timeout")},e))});B.useEffect(()=>(o&&s(t),()=>{clearTimeout(i.current)}),[o,t,s]);let u=()=>{clearTimeout(i.current)},c=B.useCallback(()=>{null!=t&&s(null!=a?a:.5*t)},[t,a,s]),d=e=>t=>{let r=e.onBlur;null==r||r(t),c()},p=e=>t=>{let r=e.onFocus;null==r||r(t),u()},f=e=>t=>{let r=e.onMouseEnter;null==r||r(t),u()},m=e=>t=>{let r=e.onMouseLeave;null==r||r(t),c()};return B.useEffect(()=>{if(!r&&o)return window.addEventListener("focus",c),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",c),window.removeEventListener("blur",u)}},[r,c,o]),{getRootProps:(t={})=>{let r=(0,R.Z)({},eC(e),eC(t));return(0,R.Z)({role:"presentation"},t,r,{onBlur:d(r),onFocus:p(r),onMouseEnter:f(r),onMouseLeave:m(r)})},onClickAway:e=>{null==n||n(e,"clickaway")}}}((0,R.Z)({},C)),[F,k]=B.useState(!0),E=tF({elementType:pI,getSlotProps:w,externalForwardedProps:x,ownerState:C,additionalProps:{ref:t},className:[Z.root,c]});return!h&&F?null:(0,eu.jsx)(oM,(0,R.Z)({onClickAway:S},d,{children:(0,eu.jsx)(pI,(0,R.Z)({},E,{children:(0,eu.jsx)(g,(0,R.Z)({appear:!0,in:h,timeout:v,direction:"top"===i?"down":"up",onEnter:(e,t)=>{k(!1),b&&b(e,t)},onExited:e=>{k(!0),y&&y(e)}},D,{children:u||(0,eu.jsx)(pw,(0,R.Z)({message:m,action:a},p))}))}))}))});let pT=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],pA={entering:{transform:"none"},entered:{transform:"none"}};var pN=B.forwardRef(function(e,t){let r=(0,en.Z)(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:v=K}=e,b=(0,P.Z)(e,pT),y=B.useRef(null),D=(0,eo.Z)(y,i.ref,t),x=e=>t=>{if(e){let r=y.current;void 0===t?e(r):e(r,t)}},C=x(d),Z=x((e,t)=>{et(e);let n=er({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("transform",n),e.style.transition=r.transitions.create("transform",n),u&&u(e,t)}),w=x(c),S=x(m),F=x(e=>{let t=er({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("transform",t),e.style.transition=r.transitions.create("transform",t),p&&p(e)}),k=x(f);return(0,eu.jsx)(v,(0,R.Z)({appear:a,in:s,nodeRef:y,onEnter:Z,onEntered:w,onEntering:C,onExit:F,onExited:k,onExiting:S,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>B.cloneElement(i,(0,R.Z)({style:(0,R.Z)({transform:"scale(0)",visibility:"exited"!==e||s?void 0:"hidden"},pA[e],h,i.props.style),ref:D},t))}))});function pL(e){return(0,ei.ZP)("MuiSpeedDial",e)}var pP=(0,ea.Z)("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);let pR=["ref"],pB=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],pO=["ref"],pz=e=>{let{classes:t,open:r,direction:n}=e,o={root:["root","direction".concat((0,e6.Z)(n))],fab:["fab"],actions:["actions",!r&&"actionsClosed"]};return(0,z.Z)(o,pL,t)};function pW(e){return"up"===e||"down"===e?"vertical":"right"===e||"left"===e?"horizontal":void 0}let p_=(0,W.ZP)("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["direction".concat((0,e6.Z)(r.direction))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({zIndex:(t.vars||t).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},"up"===r.direction&&{flexDirection:"column-reverse",["& .".concat(pP.actions)]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}},"down"===r.direction&&{flexDirection:"column",["& .".concat(pP.actions)]:{flexDirection:"column",marginTop:-32,paddingTop:48}},"left"===r.direction&&{flexDirection:"row-reverse",["& .".concat(pP.actions)]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}},"right"===r.direction&&{flexDirection:"row",["& .".concat(pP.actions)]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}})}),pU=(0,W.ZP)(a5,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,t)=>t.fab})(()=>({pointerEvents:"auto"})),pH=(0,W.ZP)("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.actions,!r.open&&t.actionsClosed]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",pointerEvents:"auto"},!t.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"})});var pG=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSpeedDial"}),n=(0,en.Z)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{ariaLabel:a,FabProps:{ref:i}={},children:l,className:s,direction:u="up",hidden:c=!1,icon:d,onBlur:p,onClose:f,onFocus:m,onKeyDown:h,onMouseEnter:g,onMouseLeave:v,onOpen:b,open:y,TransitionComponent:D=pN,transitionDuration:x=o,TransitionProps:C}=r,Z=(0,P.Z)(r.FabProps,pR),w=(0,P.Z)(r,pB),[S,F]=(0,ey.Z)({controlled:y,default:!1,name:"SpeedDial",state:"open"}),k=(0,R.Z)({},r,{open:S,direction:u}),E=pz(k),M=B.useRef();B.useEffect(()=>()=>{clearTimeout(M.current)},[]);let I=B.useRef(0),j=B.useRef(),T=B.useRef([]);T.current=[T.current[0]];let A=B.useCallback(e=>{T.current[0]=e},[]),N=(0,eo.Z)(i,A),L=(e,t)=>r=>{T.current[e+1]=r,t&&t(r)};B.useEffect(()=>{S||(I.current=0,j.current=void 0)},[S]);let z=e=>{"mouseleave"===e.type&&v&&v(e),"blur"===e.type&&p&&p(e),clearTimeout(M.current),"blur"===e.type?M.current=setTimeout(()=>{F(!1),f&&f(e,"blur")}):(F(!1),f&&f(e,"mouseLeave"))},W=e=>{"mouseenter"===e.type&&g&&g(e),"focus"===e.type&&m&&m(e),clearTimeout(M.current),S||(M.current=setTimeout(()=>{F(!0),b&&b(e,{focus:"focus",mouseenter:"mouseEnter"}[e.type])}))},U=a.replace(/^[^a-z]+|[^\w:.-]+/gi,""),H=B.Children.toArray(l).filter(e=>B.isValidElement(e)),G=H.map((e,t)=>{let r=e.props,{FabProps:{ref:n}={},tooltipPlacement:o}=r,a=(0,P.Z)(r.FabProps,pO),i=o||("vertical"===pW(u)?"left":"top");return B.cloneElement(e,{FabProps:(0,R.Z)({},a,{ref:L(t,n)}),delay:30*(S?t:H.length-t),open:S,tooltipPlacement:i,id:"".concat(U,"-action-").concat(t)})});return(0,eu.jsxs)(p_,(0,R.Z)({className:(0,O.Z)(E.root,s),ref:t,role:"presentation",onKeyDown:e=>{h&&h(e);let t=e.key.replace("Arrow","").toLowerCase(),{current:r=t}=j;if("Escape"===e.key){F(!1),T.current[0].focus(),f&&f(e,"escapeKeyDown");return}if(pW(t)===pW(r)&&void 0!==pW(t)){e.preventDefault();let n=t===r?1:-1,o=(0,c2.Z)(I.current+n,0,T.current.length-1);T.current[o].focus(),I.current=o,j.current=r}},onBlur:z,onFocus:W,onMouseEnter:W,onMouseLeave:z,ownerState:k},w,{children:[(0,eu.jsx)(D,(0,R.Z)({in:!c,timeout:x,unmountOnExit:!0},C,{children:(0,eu.jsx)(pU,(0,R.Z)({color:"primary","aria-label":a,"aria-haspopup":"true","aria-expanded":S,"aria-controls":"".concat(U,"-actions")},Z,{onClick:e=>{Z.onClick&&Z.onClick(e),clearTimeout(M.current),S?(F(!1),f&&f(e,"toggle")):(F(!0),b&&b(e,"toggle"))},className:(0,O.Z)(E.fab,Z.className),ref:N,ownerState:k,children:B.isValidElement(d)&&(0,lM.Z)(d,["SpeedDialIcon"])?B.cloneElement(d,{open:S}):d}))})),(0,eu.jsx)(pH,{id:"".concat(U,"-actions"),role:"menu","aria-orientation":pW(u),className:(0,O.Z)(E.actions,!S&&E.actionsClosed),ownerState:k,children:G})]}))}),pY=r(60174);function pV(e){return(0,ei.ZP)("MuiTooltip",e)}var p$=(0,ea.Z)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);let pq=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"],pQ=e=>{let{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,i={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,e6.Z)(a.split("-")[0]))],arrow:["arrow"]};return(0,z.Z)(i,pV,t)},pX=(0,W.ZP)(tB,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(e=>{let{theme:t,ownerState:r,open:n}=e;return(0,R.Z)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!r.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},r.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(p$.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(p$.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(p$.arrow)]:(0,R.Z)({},r.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(p$.arrow)]:(0,R.Z)({},r.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})}),pK=(0,W.ZP)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,e6.Z)(r.placement.split("-")[0]))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,tg.Fq)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},r.arrow&&{position:"relative",margin:0},r.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat(Math.round(16/14*1e5)/1e5,"em"),fontWeight:t.typography.fontWeightRegular},{[".".concat(p$.popper,'[data-popper-placement*="left"] &')]:(0,R.Z)({transformOrigin:"right center"},r.isRtl?(0,R.Z)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"}):(0,R.Z)({marginRight:"14px"},r.touch&&{marginRight:"24px"})),[".".concat(p$.popper,'[data-popper-placement*="right"] &')]:(0,R.Z)({transformOrigin:"left center"},r.isRtl?(0,R.Z)({marginRight:"14px"},r.touch&&{marginRight:"24px"}):(0,R.Z)({marginLeft:"14px"},r.touch&&{marginLeft:"24px"})),[".".concat(p$.popper,'[data-popper-placement*="top"] &')]:(0,R.Z)({transformOrigin:"center bottom",marginBottom:"14px"},r.touch&&{marginBottom:"24px"}),[".".concat(p$.popper,'[data-popper-placement*="bottom"] &')]:(0,R.Z)({transformOrigin:"center top",marginTop:"14px"},r.touch&&{marginTop:"24px"})})}),pJ=(0,W.ZP)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,tg.Fq)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}),p0=!1,p1=null,p2={x:0,y:0};function p4(e,t){return r=>{t&&t(r),e(r)}}var p3=B.forwardRef(function(e,t){var r,n,o,a,i,l,s,u,c,d,p,f,m,h,g,v,b,y,D;let x=(0,_.Z)({props:e,name:"MuiTooltip"}),{arrow:C=!1,children:Z,components:w={},componentsProps:S={},describeChild:F=!1,disableFocusListener:k=!1,disableHoverListener:E=!1,disableInteractive:M=!1,disableTouchListener:I=!1,enterDelay:j=100,enterNextDelay:T=0,enterTouchDelay:A=700,followCursor:N=!1,id:L,leaveDelay:z=0,leaveTouchDelay:W=1500,onClose:U,onOpen:H,open:G,placement:Y="bottom",PopperComponent:V,PopperProps:$={},slotProps:q={},slots:Q={},title:X,TransitionComponent:K=lp,TransitionProps:J}=x,ee=(0,P.Z)(x,pq),et=B.isValidElement(Z)?Z:(0,eu.jsx)("span",{children:Z}),er=(0,en.Z)(),ea="rtl"===er.direction,[ei,el]=B.useState(),[es,ec]=B.useState(null),ed=B.useRef(!1),ep=M||N,ef=B.useRef(),em=B.useRef(),eh=B.useRef(),eg=B.useRef(),[ev,eb]=(0,ey.Z)({controlled:G,default:!1,name:"Tooltip",state:"open"}),eD=ev,ex=(0,c4.Z)(L),eC=B.useRef(),eZ=B.useCallback(()=>{void 0!==eC.current&&(document.body.style.WebkitUserSelect=eC.current,eC.current=void 0),clearTimeout(eg.current)},[]);B.useEffect(()=>()=>{clearTimeout(ef.current),clearTimeout(em.current),clearTimeout(eh.current),eZ()},[eZ]);let ew=e=>{clearTimeout(p1),p0=!0,eb(!0),H&&!eD&&H(e)},eS=(0,pY.Z)(e=>{clearTimeout(p1),p1=setTimeout(()=>{p0=!1},800+z),eb(!1),U&&eD&&U(e),clearTimeout(ef.current),ef.current=setTimeout(()=>{ed.current=!1},er.transitions.duration.shortest)}),ek=e=>{ed.current&&"touchstart"!==e.type||(ei&&ei.removeAttribute("title"),clearTimeout(em.current),clearTimeout(eh.current),j||p0&&T?em.current=setTimeout(()=>{ew(e)},p0?T:j):ew(e))},eE=e=>{clearTimeout(em.current),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},z)},{isFocusVisibleRef:eM,onBlur:eI,onFocus:ej,ref:eT}=(0,sF.Z)(),[,eA]=B.useState(!1),eN=e=>{eI(e),!1===eM.current&&(eA(!1),eE(e))},eL=e=>{ei||el(e.currentTarget),ej(e),!0===eM.current&&(eA(!0),ek(e))},eP=e=>{ed.current=!0;let t=et.props;t.onTouchStart&&t.onTouchStart(e)};B.useEffect(()=>{if(eD)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){("Escape"===e.key||"Esc"===e.key)&&eS(e)}},[eS,eD]);let eR=(0,eo.Z)(et.ref,eT,el,t);X||0===X||(eD=!1);let eB=B.useRef(),eO={},ez="string"==typeof X;F?(eO.title=eD||!ez||E?null:X,eO["aria-describedby"]=eD?ex:null):(eO["aria-label"]=ez?X:null,eO["aria-labelledby"]=eD&&!ez?ex:null);let eW=(0,R.Z)({},eO,ee,et.props,{className:(0,O.Z)(ee.className,et.props.className),onTouchStart:eP,ref:eR},N?{onMouseMove:e=>{let t=et.props;t.onMouseMove&&t.onMouseMove(e),p2={x:e.clientX,y:e.clientY},eB.current&&eB.current.update()}}:{}),e_={};I||(eW.onTouchStart=e=>{eP(e),clearTimeout(eh.current),clearTimeout(ef.current),eZ(),eC.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",eg.current=setTimeout(()=>{document.body.style.WebkitUserSelect=eC.current,ek(e)},A)},eW.onTouchEnd=e=>{et.props.onTouchEnd&&et.props.onTouchEnd(e),eZ(),clearTimeout(eh.current),eh.current=setTimeout(()=>{eS(e)},W)}),E||(eW.onMouseOver=p4(ek,eW.onMouseOver),eW.onMouseLeave=p4(eE,eW.onMouseLeave),ep||(e_.onMouseOver=ek,e_.onMouseLeave=eE)),k||(eW.onFocus=p4(eL,eW.onFocus),eW.onBlur=p4(eN,eW.onBlur),ep||(e_.onFocus=eL,e_.onBlur=eN));let eU=B.useMemo(()=>{var e;let t=[{name:"arrow",enabled:!!es,options:{element:es,padding:4}}];return null!=(e=$.popperOptions)&&e.modifiers&&(t=t.concat($.popperOptions.modifiers)),(0,R.Z)({},$.popperOptions,{modifiers:t})},[es,$]),eH=(0,R.Z)({},x,{isRtl:ea,arrow:C,disableInteractive:ep,placement:Y,PopperComponentProp:V,touch:ed.current}),eG=pQ(eH),eY=null!=(r=null!=(n=Q.popper)?n:w.Popper)?r:pX,eV=null!=(o=null!=(a=null!=(i=Q.transition)?i:w.Transition)?a:K)?o:lp,e$=null!=(l=null!=(s=Q.tooltip)?s:w.Tooltip)?l:pK,eq=null!=(u=null!=(c=Q.arrow)?c:w.Arrow)?u:pJ,eQ=eF(eY,(0,R.Z)({},$,null!=(d=q.popper)?d:S.popper,{className:(0,O.Z)(eG.popper,null==$?void 0:$.className,null==(p=null!=(f=q.popper)?f:S.popper)?void 0:p.className)}),eH),eX=eF(eV,(0,R.Z)({},J,null!=(m=q.transition)?m:S.transition),eH),eK=eF(e$,(0,R.Z)({},null!=(h=q.tooltip)?h:S.tooltip,{className:(0,O.Z)(eG.tooltip,null==(g=null!=(v=q.tooltip)?v:S.tooltip)?void 0:g.className)}),eH),eJ=eF(eq,(0,R.Z)({},null!=(b=q.arrow)?b:S.arrow,{className:(0,O.Z)(eG.arrow,null==(y=null!=(D=q.arrow)?D:S.arrow)?void 0:y.className)}),eH);return(0,eu.jsxs)(B.Fragment,{children:[B.cloneElement(et,eW),(0,eu.jsx)(eY,(0,R.Z)({as:null!=V?V:tB,placement:Y,anchorEl:N?{getBoundingClientRect:()=>({top:p2.y,left:p2.x,right:p2.x,bottom:p2.y,width:0,height:0})}:ei,popperRef:eB,open:!!ei&&eD,id:ex,transition:!0},e_,eQ,{popperOptions:eU,children:e=>{let{TransitionProps:t}=e;return(0,eu.jsx)(eV,(0,R.Z)({timeout:er.transitions.duration.shorter},t,eX,{children:(0,eu.jsxs)(e$,(0,R.Z)({},eK,{children:[X,C?(0,eu.jsx)(eq,(0,R.Z)({},eJ,{ref:ec})):null]}))}))}}))]})});function p5(e){return(0,ei.ZP)("MuiSpeedDialAction",e)}var p8=(0,ea.Z)("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]);let p6=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],p9=e=>{let{open:t,tooltipPlacement:r,classes:n}=e,o={fab:["fab",!t&&"fabClosed"],staticTooltip:["staticTooltip","tooltipPlacement".concat((0,e6.Z)(r)),!t&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return(0,z.Z)(o,p5,n)},p7=(0,W.ZP)(a5,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.fab,!r.open&&t.fabClosed]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({margin:8,color:(t.vars||t).palette.text.secondary,backgroundColor:(t.vars||t).palette.background.paper,"&:hover":{backgroundColor:t.vars?t.vars.palette.SpeedDialAction.fabHoverBg:(0,tg._4)(t.palette.background.paper,.15)},transition:"".concat(t.transitions.create("transform",{duration:t.transitions.duration.shorter}),", opacity 0.8s"),opacity:1},!r.open&&{opacity:0,transform:"scale(0)"})}),fe=(0,W.ZP)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.staticTooltip,!r.open&&t.staticTooltipClosed,t["tooltipPlacement".concat((0,e6.Z)(r.tooltipPlacement))]]}})(e=>{let{theme:t,ownerState:r}=e;return{position:"relative",display:"flex",alignItems:"center",["& .".concat(p8.staticTooltipLabel)]:(0,R.Z)({transition:t.transitions.create(["transform","opacity"],{duration:t.transitions.duration.shorter}),opacity:1},!r.open&&{opacity:0,transform:"scale(0.5)"},"left"===r.tooltipPlacement&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},"right"===r.tooltipPlacement&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})}}),ft=(0,W.ZP)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(e,t)=>t.staticTooltipLabel})(e=>{let{theme:t}=e;return(0,R.Z)({position:"absolute"},t.typography.body1,{backgroundColor:(t.vars||t).palette.background.paper,borderRadius:(t.vars||t).shape.borderRadius,boxShadow:(t.vars||t).shadows[1],color:(t.vars||t).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})});var fr=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSpeedDialAction"}),{className:n,delay:o=0,FabProps:a={},icon:i,id:l,open:s,TooltipClasses:u,tooltipOpen:c=!1,tooltipPlacement:d="left",tooltipTitle:p}=r,f=(0,P.Z)(r,p6),m=(0,R.Z)({},r,{tooltipPlacement:d}),h=p9(m),[g,v]=B.useState(c),b={transitionDelay:"".concat(o,"ms")},y=(0,eu.jsx)(p7,(0,R.Z)({size:"small",className:(0,O.Z)(h.fab,n),tabIndex:-1,role:"menuitem",ownerState:m},a,{style:(0,R.Z)({},b,a.style),children:i}));return c?(0,eu.jsxs)(fe,(0,R.Z)({id:l,ref:t,className:h.staticTooltip,ownerState:m},f,{children:[(0,eu.jsx)(ft,{style:b,id:"".concat(l,"-label"),className:h.staticTooltipLabel,ownerState:m,children:p}),B.cloneElement(y,{"aria-labelledby":"".concat(l,"-label")})]})):(!s&&g&&v(!1),(0,eu.jsx)(p3,(0,R.Z)({id:l,ref:t,title:p,placement:d,onClose:()=>{v(!1)},onOpen:()=>{v(!0)},open:s&&g,classes:u},f,{children:y})))}),fn=(0,tV.Z)((0,eu.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function fo(e){return(0,ei.ZP)("MuiSpeedDialIcon",e)}var fa=(0,ea.Z)("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]);let fi=["className","icon","open","openIcon"],fl=e=>{let{classes:t,open:r,openIcon:n}=e;return(0,z.Z)({root:["root"],icon:["icon",r&&"iconOpen",n&&r&&"iconWithOpenIconOpen"],openIcon:["openIcon",r&&"openIconOpen"]},fo,t)},fs=(0,W.ZP)("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(fa.icon)]:t.icon},{["& .".concat(fa.icon)]:r.open&&t.iconOpen},{["& .".concat(fa.icon)]:r.open&&r.openIcon&&t.iconWithOpenIconOpen},{["& .".concat(fa.openIcon)]:t.openIcon},{["& .".concat(fa.openIcon)]:r.open&&t.openIconOpen},t.root]}})(e=>{let{theme:t,ownerState:r}=e;return{height:24,["& .".concat(fa.icon)]:(0,R.Z)({transition:t.transitions.create(["transform","opacity"],{duration:t.transitions.duration.short})},r.open&&(0,R.Z)({transform:"rotate(45deg)"},r.openIcon&&{opacity:0})),["& .".concat(fa.openIcon)]:(0,R.Z)({position:"absolute",transition:t.transitions.create(["transform","opacity"],{duration:t.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},r.open&&{transform:"rotate(0deg)",opacity:1})}}),fu=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiSpeedDialIcon"}),{className:n,icon:o,openIcon:a}=r,i=(0,P.Z)(r,fi),l=fl(r);function s(e,t){return B.isValidElement(e)?B.cloneElement(e,{className:t}):e}return(0,eu.jsxs)(fs,(0,R.Z)({className:(0,O.Z)(l.root,n),ref:t,ownerState:r},i,{children:[a?s(a,l.openIcon):null,o?s(o,l.icon):(0,eu.jsx)(fn,{className:l.icon})]}))});fu.muiName="SpeedDialIcon";var fc=fu,fd=r(35465),fp=(0,ea.Z)("MuiStack",["root"]);let ff=B.createContext({});function fm(){return B.useContext(ff)}var fh=ff;let fg=B.createContext({});function fv(){return B.useContext(fg)}var fb=fg;function fy(e){return(0,ei.ZP)("MuiStep",e)}var fD=(0,ea.Z)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);let fx=["active","children","className","component","completed","disabled","expanded","index","last"],fC=e=>{let{classes:t,orientation:r,alternativeLabel:n,completed:o}=e;return(0,z.Z)({root:["root",r,n&&"alternativeLabel",o&&"completed"]},fy,t)},fZ=(0,W.ZP)("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel,r.completed&&t.completed]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"})});var fw=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStep"}),{active:n,children:o,className:a,component:i="div",completed:l,disabled:s,expanded:u=!1,index:c,last:d}=r,p=(0,P.Z)(r,fx),{activeStep:f,connector:m,alternativeLabel:h,orientation:g,nonLinear:v}=B.useContext(fh),[b=!1,y=!1,D=!1]=[n,l,s];f===c?b=void 0===n||n:!v&&f>c?y=void 0===l||l:!v&&f({index:c,last:d,expanded:u,icon:c+1,active:b,completed:y,disabled:D}),[c,d,u,b,y,D]),C=(0,R.Z)({},r,{active:b,orientation:g,alternativeLabel:h,completed:y,disabled:D,expanded:u,component:i}),Z=fC(C),w=(0,eu.jsxs)(fZ,(0,R.Z)({as:i,className:(0,O.Z)(Z.root,a),ref:t,ownerState:C},p,{children:[m&&h&&0!==c?m:null,o]}));return(0,eu.jsx)(fb.Provider,{value:x,children:m&&!h&&0!==c?(0,eu.jsxs)(B.Fragment,{children:[m,w]}):w})}),fS=(0,tV.Z)((0,eu.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),fF=(0,tV.Z)((0,eu.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),fk=r(96902);function fE(e){return(0,ei.ZP)("MuiStepIcon",e)}var fM=(0,ea.Z)("MuiStepIcon",["root","active","completed","error","text"]);let fI=["active","className","completed","error","icon"],fj=e=>{let{classes:t,active:r,completed:n,error:o}=e;return(0,z.Z)({root:["root",r&&"active",n&&"completed",o&&"error"],text:["text"]},fE,t)},fT=(0,W.ZP)(fk.Z,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),color:(t.vars||t).palette.text.disabled,["&.".concat(fM.completed)]:{color:(t.vars||t).palette.primary.main},["&.".concat(fM.active)]:{color:(t.vars||t).palette.primary.main},["&.".concat(fM.error)]:{color:(t.vars||t).palette.error.main}}}),fA=(0,W.ZP)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})(e=>{let{theme:t}=e;return{fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}});var fN=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStepIcon"}),{active:n=!1,className:o,completed:a=!1,error:i=!1,icon:l}=r,s=(0,P.Z)(r,fI),u=(0,R.Z)({},r,{active:n,completed:a,error:i}),c=fj(u);if("number"==typeof l||"string"==typeof l){let e=(0,O.Z)(o,c.root);return i?(0,eu.jsx)(fT,(0,R.Z)({as:fF,className:e,ref:t,ownerState:u},s)):a?(0,eu.jsx)(fT,(0,R.Z)({as:fS,className:e,ref:t,ownerState:u},s)):(0,eu.jsxs)(fT,(0,R.Z)({className:e,ref:t,ownerState:u},s,{children:[d||(d=(0,eu.jsx)("circle",{cx:"12",cy:"12",r:"12"})),(0,eu.jsx)(fA,{className:c.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]}))}return l});function fL(e){return(0,ei.ZP)("MuiStepLabel",e)}var fP=(0,ea.Z)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]);let fR=["children","className","componentsProps","error","icon","optional","slotProps","StepIconComponent","StepIconProps"],fB=e=>{let{classes:t,orientation:r,active:n,completed:o,error:a,disabled:i,alternativeLabel:l}=e;return(0,z.Z)({root:["root",r,a&&"error",i&&"disabled",l&&"alternativeLabel"],label:["label",n&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",n&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],labelContainer:["labelContainer",l&&"alternativeLabel"]},fL,t)},fO=(0,W.ZP)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex",alignItems:"center",["&.".concat(fP.alternativeLabel)]:{flexDirection:"column"},["&.".concat(fP.disabled)]:{cursor:"default"}},"vertical"===t.orientation&&{textAlign:"left",padding:"8px 0"})}),fz=(0,W.ZP)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})(e=>{let{theme:t}=e;return(0,R.Z)({},t.typography.body2,{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),["&.".concat(fP.active)]:{color:(t.vars||t).palette.text.primary,fontWeight:500},["&.".concat(fP.completed)]:{color:(t.vars||t).palette.text.primary,fontWeight:500},["&.".concat(fP.alternativeLabel)]:{marginTop:16},["&.".concat(fP.error)]:{color:(t.vars||t).palette.error.main}})}),fW=(0,W.ZP)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,["&.".concat(fP.alternativeLabel)]:{paddingRight:0}})),f_=(0,W.ZP)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(e=>{let{theme:t}=e;return{width:"100%",color:(t.vars||t).palette.text.secondary,["&.".concat(fP.alternativeLabel)]:{textAlign:"center"}}}),fU=B.forwardRef(function(e,t){var r;let n=(0,_.Z)({props:e,name:"MuiStepLabel"}),{children:o,className:a,componentsProps:i={},error:l=!1,icon:s,optional:u,slotProps:c={},StepIconComponent:d,StepIconProps:p}=n,f=(0,P.Z)(n,fR),{alternativeLabel:m,orientation:h}=B.useContext(fh),{active:g,disabled:v,completed:b,icon:y}=B.useContext(fb),D=s||y,x=d;D&&!x&&(x=fN);let C=(0,R.Z)({},n,{active:g,alternativeLabel:m,completed:b,disabled:v,error:l,orientation:h}),Z=fB(C),w=null!=(r=c.label)?r:i.label;return(0,eu.jsxs)(fO,(0,R.Z)({className:(0,O.Z)(Z.root,a),ref:t,ownerState:C},f,{children:[D||x?(0,eu.jsx)(fW,{className:Z.iconContainer,ownerState:C,children:(0,eu.jsx)(x,(0,R.Z)({completed:b,active:g,error:l,icon:D},p))}):null,(0,eu.jsxs)(f_,{className:Z.labelContainer,ownerState:C,children:[o?(0,eu.jsx)(fz,(0,R.Z)({ownerState:C},w,{className:(0,O.Z)(Z.label,null==w?void 0:w.className),children:o})):null,u]})]}))});fU.muiName="StepLabel";var fH=fU;function fG(e){return(0,ei.ZP)("MuiStepButton",e)}var fY=(0,ea.Z)("MuiStepButton",["root","horizontal","vertical","touchRipple"]);let fV=["children","className","icon","optional"],f$=e=>{let{classes:t,orientation:r}=e;return(0,z.Z)({root:["root",r],touchRipple:["touchRipple"]},fG,t)},fq=(0,W.ZP)(e$.Z,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(fY.touchRipple)]:t.touchRipple},t.root,t[r.orientation]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},"vertical"===t.orientation&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{["& .".concat(fY.touchRipple)]:{color:"rgba(0, 0, 0, 0.3)"}})});var fQ=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStepButton"}),{children:n,className:o,icon:a,optional:i}=r,l=(0,P.Z)(r,fV),{disabled:s,active:u}=B.useContext(fb),{orientation:c}=B.useContext(fh),d=(0,R.Z)({},r,{orientation:c}),p=f$(d),f={icon:a,optional:i},m=(0,lM.Z)(n,["StepLabel"])?B.cloneElement(n,f):(0,eu.jsx)(fH,(0,R.Z)({},f,{children:n}));return(0,eu.jsx)(fq,(0,R.Z)({focusRipple:!0,disabled:s,TouchRippleProps:{className:p.touchRipple},className:(0,O.Z)(p.root,o),ref:t,ownerState:d,"aria-current":u?"step":void 0},l,{children:m}))});function fX(e){return(0,ei.ZP)("MuiStepConnector",e)}var fK=(0,ea.Z)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);let fJ=["className"],f0=e=>{let{classes:t,orientation:r,alternativeLabel:n,active:o,completed:a,disabled:i}=e,l={root:["root",r,n&&"alternativeLabel",o&&"active",a&&"completed",i&&"disabled"],line:["line","line".concat((0,e6.Z)(r))]};return(0,z.Z)(l,fX,t)},f1=(0,W.ZP)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel,r.completed&&t.completed]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({flex:"1 1 auto"},"vertical"===t.orientation&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})}),f2=(0,W.ZP)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.line,t["line".concat((0,e6.Z)(r.orientation))]]}})(e=>{let{ownerState:t,theme:r}=e,n="light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[600];return(0,R.Z)({display:"block",borderColor:r.vars?r.vars.palette.StepConnector.border:n},"horizontal"===t.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===t.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})});var f4=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStepConnector"}),{className:n}=r,o=(0,P.Z)(r,fJ),{alternativeLabel:a,orientation:i="horizontal"}=B.useContext(fh),{active:l,disabled:s,completed:u}=B.useContext(fb),c=(0,R.Z)({},r,{alternativeLabel:a,orientation:i,active:l,completed:u,disabled:s}),d=f0(c);return(0,eu.jsx)(f1,(0,R.Z)({className:(0,O.Z)(d.root,n),ref:t,ownerState:c},o,{children:(0,eu.jsx)(f2,{className:d.line,ownerState:c})}))});function f3(e){return(0,ei.ZP)("MuiStepContent",e)}var f5=(0,ea.Z)("MuiStepContent",["root","last","transition"]);let f8=["children","className","TransitionComponent","transitionDuration","TransitionProps"],f6=e=>{let{classes:t,last:r}=e;return(0,z.Z)({root:["root",r&&"last"],transition:["transition"]},f3,t)},f9=(0,W.ZP)("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.last&&t.last]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:r.vars?"1px solid ".concat(r.vars.palette.StepContent.border):"1px solid ".concat("light"===r.palette.mode?r.palette.grey[400]:r.palette.grey[600])},t.last&&{borderLeft:"none"})}),f7=(0,W.ZP)(eg,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({});var me=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStepContent"}),{children:n,className:o,TransitionComponent:a=eg,transitionDuration:i="auto",TransitionProps:l}=r,s=(0,P.Z)(r,f8),{orientation:u}=B.useContext(fh),{active:c,last:d,expanded:p}=B.useContext(fb),f=(0,R.Z)({},r,{last:d}),m=f6(f),h=i;return"auto"!==i||a.muiSupportAuto||(h=void 0),(0,eu.jsx)(f9,(0,R.Z)({className:(0,O.Z)(m.root,o),ref:t,ownerState:f},s,{children:(0,eu.jsx)(f7,(0,R.Z)({as:a,in:c||p,className:m.transition,ownerState:f,timeout:h,unmountOnExit:!0},l,{children:n}))}))});function mt(e){return(0,ei.ZP)("MuiStepper",e)}var mr=(0,ea.Z)("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);let mn=["activeStep","alternativeLabel","children","className","component","connector","nonLinear","orientation"],mo=e=>{let{orientation:t,alternativeLabel:r,classes:n}=e;return(0,z.Z)({root:["root",t,r&&"alternativeLabel"]},mt,n)},ma=(0,W.ZP)("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.orientation],r.alternativeLabel&&t.alternativeLabel]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex"},"horizontal"===t.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===t.orientation&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})}),mi=(0,eu.jsx)(f4,{});var ml=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiStepper"}),{activeStep:n=0,alternativeLabel:o=!1,children:a,className:i,component:l="div",connector:s=mi,nonLinear:u=!1,orientation:c="horizontal"}=r,d=(0,P.Z)(r,mn),p=(0,R.Z)({},r,{alternativeLabel:o,orientation:c,component:l}),f=mo(p),m=B.Children.toArray(a).filter(Boolean),h=m.map((e,t)=>B.cloneElement(e,(0,R.Z)({index:t,last:t+1===m.length},e.props))),g=B.useMemo(()=>({activeStep:n,alternativeLabel:o,connector:s,nonLinear:u,orientation:c}),[n,o,s,u,c]);return(0,eu.jsx)(fh.Provider,{value:g,children:(0,eu.jsx)(ma,(0,R.Z)({as:l,ownerState:p,className:(0,O.Z)(f.root,i),ref:t},d,{children:h}))})}),ms=r(73315);let mu=["anchor","classes","className","width","style"],mc=(0,W.ZP)("div",{shouldForwardProp:W.FO})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({position:"fixed",top:0,left:0,bottom:0,zIndex:t.zIndex.drawer-1},"left"===r.anchor&&{right:"auto"},"right"===r.anchor&&{left:"auto",right:0},"top"===r.anchor&&{bottom:"auto",right:0},"bottom"===r.anchor&&{top:"auto",bottom:0,right:0})}),md=B.forwardRef(function(e,t){let{anchor:r,classes:n={},className:o,width:a,style:i}=e,l=(0,P.Z)(e,mu);return(0,eu.jsx)(mc,(0,R.Z)({className:(0,O.Z)("PrivateSwipeArea-root",n.root,n["anchor".concat((0,e6.Z)(r))],o),ref:t,style:(0,R.Z)({[aX(r)?"width":"height"]:a},i),ownerState:e},l))}),mp=["BackdropProps"],mf=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"],mm=null;function mh(e,t,r){return"right"===e?r.body.offsetWidth-t[0].pageX:t[0].pageX}function mg(e,t,r){return"bottom"===e?r.innerHeight-t[0].clientY:t[0].clientY}function mv(e,t){return e?t.clientWidth:t.clientHeight}function mb(e,t,r,n){return Math.min(Math.max(r?t-e:n+t-e,0),n)}let my="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent);var mD=B.forwardRef(function(e,t){let r=(0,iU.Z)({name:"MuiSwipeableDrawer",props:e}),n=(0,en.Z)(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{anchor:a="left",disableBackdropTransition:i=!1,disableDiscovery:l=!1,disableSwipeToOpen:s=my,hideBackdrop:u,hysteresis:c=.52,allowSwipeInChildren:d=!1,minFlingVelocity:p=450,ModalProps:{BackdropProps:f}={},onClose:m,onOpen:h,open:g=!1,PaperProps:v={},SwipeAreaProps:b,swipeAreaWidth:y=20,transitionDuration:D=o,variant:x="temporary"}=r,C=(0,P.Z)(r.ModalProps,mp),Z=(0,P.Z)(r,mf),[w,S]=B.useState(!1),F=B.useRef({isSwiping:null}),k=B.useRef(),E=B.useRef(),M=B.useRef(),I=(0,eo.Z)(v.ref,M),j=B.useRef(!1),T=B.useRef();(0,is.Z)(()=>{T.current=null},[g]);let A=B.useCallback(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{mode:r=null,changeTransition:o=!0}=t,l=-1!==["right","bottom"].indexOf(aK(n,a))?1:-1,s=aX(a),c=s?"translate(".concat(l*e,"px, 0)"):"translate(0, ".concat(l*e,"px)"),d=M.current.style;d.webkitTransform=c,d.transform=c;let p="";if(r&&(p=n.transitions.create("all",er({easing:void 0,style:void 0,timeout:D},{mode:r}))),o&&(d.webkitTransition=p,d.transition=p),!i&&!u){let t=E.current.style;t.opacity=1-e/mv(s,M.current),o&&(t.webkitTransition=p,t.transition=p)}},[a,i,u,n,D]),N=(0,pY.Z)(e=>{let t;if(!j.current)return;if(mm=null,j.current=!1,H.flushSync(()=>{S(!1)}),!F.current.isSwiping){F.current.isSwiping=null;return}F.current.isSwiping=null;let r=aK(n,a),o=aX(a);t=o?mh(r,e.changedTouches,(0,uy.Z)(e.currentTarget)):mg(r,e.changedTouches,(0,aR.Z)(e.currentTarget));let i=o?F.current.startX:F.current.startY,l=mv(o,M.current),s=mb(t,i,g,l),u=s/l;if(Math.abs(F.current.velocity)>p&&(T.current=1e3*Math.abs((l-s)/F.current.velocity)),g){F.current.velocity>p||u>c?m():A(0,{mode:"exit"});return}F.current.velocity<-p||1-u>c?h():A(mv(o,M.current),{mode:"enter"})}),L=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!w){(e||!(l&&d))&&H.flushSync(()=>{S(!0)});let t=aX(a);!g&&M.current&&A(mv(t,M.current)+(l?15:-20),{changeTransition:!1}),F.current.velocity=0,F.current.lastTime=null,F.current.lastTranslate=null,F.current.paperHit=!1,j.current=!0}},O=(0,pY.Z)(e=>{if(!M.current||!j.current||null!==mm&&mm!==F.current)return;L(!0);let t=aK(n,a),r=aX(a),o=mh(t,e.touches,(0,uy.Z)(e.currentTarget)),i=mg(t,e.touches,(0,aR.Z)(e.currentTarget));if(g&&M.current.contains(e.target)&&null===mm){if(function(e){let{domTreeShapes:t,start:r,current:n,anchor:o}=e,a={x:"scrollLeft",y:"scrollTop"},i={x:"scrollWidth",y:"scrollHeight"},l={x:"clientWidth",y:"clientHeight"};return t.some(e=>{let t=n>=r;("top"===o||"left"===o)&&(t=!t);let s="left"===o||"right"===o?"x":"y",u=Math.round(e[a[s]]),c=u+e[l[s]]0})}({domTreeShapes:function(e,t){let r=[];for(;e&&e!==t.parentElement;){let n=(0,aR.Z)(t).getComputedStyle(e);"absolute"===n.getPropertyValue("position")||"hidden"===n.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&r.push(e),e=e.parentElement}return r}(e.target,M.current),start:r?F.current.startX:F.current.startY,current:r?o:i,anchor:a})){mm=!0;return}mm=F.current}if(null==F.current.isSwiping){let t=Math.abs(o-F.current.startX),n=Math.abs(i-F.current.startY),a=r?t>n&&t>3:n>t&&n>3;if(a&&e.cancelable&&e.preventDefault(),!0===a||(r?n>3:t>3)){if(F.current.isSwiping=a,!a){N(e);return}F.current.startX=o,F.current.startY=i,l||g||(r?F.current.startX-=20:F.current.startY-=20)}}if(!F.current.isSwiping)return;let s=mv(r,M.current),u=r?F.current.startX:F.current.startY;g&&!F.current.paperHit&&(u=Math.min(u,s));let c=mb(r?o:i,u,g,s);if(g){if(F.current.paperHit)0===c&&(F.current.startX=o,F.current.startY=i);else{if(!(r?o{if(e.defaultPrevented||e.defaultMuiPrevented||g&&(u||!E.current.contains(e.target))&&!M.current.contains(e.target))return;let t=aK(n,a),r=aX(a),o=mh(t,e.touches,(0,uy.Z)(e.currentTarget)),i=mg(t,e.touches,(0,aR.Z)(e.currentTarget));if(!g){var l;if(s||!(e.target===k.current||null!=(l=M.current)&&l.contains(e.target)&&("function"==typeof d?d(e,k.current,M.current):d)))return;if(r){if(o>y)return}else if(i>y)return}e.defaultMuiPrevented=!0,mm=null,F.current.startX=o,F.current.startY=i,L()});return B.useEffect(()=>{if("temporary"===x){let e=(0,uy.Z)(M.current);return e.addEventListener("touchstart",z),e.addEventListener("touchmove",O,{passive:!g}),e.addEventListener("touchend",N),()=>{e.removeEventListener("touchstart",z),e.removeEventListener("touchmove",O,{passive:!g}),e.removeEventListener("touchend",N)}}},[x,g,z,O,N]),B.useEffect(()=>()=>{mm===F.current&&(mm=null)},[]),B.useEffect(()=>{g||S(!1)},[g]),(0,eu.jsxs)(B.Fragment,{children:[(0,eu.jsx)(aJ,(0,R.Z)({open:"temporary"===x&&!!w||g,variant:x,ModalProps:(0,R.Z)({BackdropProps:(0,R.Z)({},f,{ref:E})},"temporary"===x&&{keepMounted:!0},C),hideBackdrop:u,PaperProps:(0,R.Z)({},v,{style:(0,R.Z)({pointerEvents:"temporary"!==x||g||d?"":"none"},v.style),ref:I}),anchor:a,transitionDuration:T.current||D,onClose:m,ref:t},Z)),!s&&"temporary"===x&&(0,eu.jsx)(cg,{children:(0,eu.jsx)(md,(0,R.Z)({anchor:a,ref:k,width:y},b))})]})}),mx=r(11901),mC=r(37649);function mZ(e){return(0,ei.ZP)("MuiTab",e)}var mw=(0,ea.Z)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);let mS=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],mF=e=>{let{classes:t,textColor:r,fullWidth:n,wrapped:o,icon:a,label:i,selected:l,disabled:s}=e,u={root:["root",a&&i&&"labelIcon","textColor".concat((0,e6.Z)(r)),n&&"fullWidth",o&&"wrapped",l&&"selected",s&&"disabled"],iconWrapper:["iconWrapper"]};return(0,z.Z)(u,mZ,t)},mk=(0,W.ZP)(e$.Z,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t["textColor".concat((0,e6.Z)(r.textColor))],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},r.label&&{flexDirection:"top"===r.iconPosition||"bottom"===r.iconPosition?"column":"row"},{lineHeight:1.25},r.icon&&r.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(mw.iconWrapper)]:(0,R.Z)({},"top"===r.iconPosition&&{marginBottom:6},"bottom"===r.iconPosition&&{marginTop:6},"start"===r.iconPosition&&{marginRight:t.spacing(1)},"end"===r.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===r.textColor&&{color:"inherit",opacity:.6,["&.".concat(mw.selected)]:{opacity:1},["&.".concat(mw.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===r.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(mw.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(mw.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===r.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(mw.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(mw.disabled)]:{color:(t.vars||t).palette.text.disabled}},r.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},r.wrapped&&{fontSize:t.typography.pxToRem(12)})});var mE=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTab"}),{className:n,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:i,icon:l,iconPosition:s="top",indicator:u,label:c,onChange:d,onClick:p,onFocus:f,selected:m,selectionFollowsFocus:h,textColor:g="inherit",value:v,wrapped:b=!1}=r,y=(0,P.Z)(r,mS),D=(0,R.Z)({},r,{disabled:o,disableFocusRipple:a,selected:m,icon:!!l,iconPosition:s,label:!!c,fullWidth:i,textColor:g,wrapped:b}),x=mF(D),C=l&&c&&B.isValidElement(l)?B.cloneElement(l,{className:(0,O.Z)(x.iconWrapper,l.props.className)}):l;return(0,eu.jsxs)(mk,(0,R.Z)({focusRipple:!a,className:(0,O.Z)(x.root,n),ref:t,role:"tab","aria-selected":m,disabled:o,onClick:e=>{!m&&d&&d(e,v),p&&p(e)},onFocus:e=>{h&&!m&&d&&d(e,v),f&&f(e)},ownerState:D,tabIndex:m?0:-1},y,{children:["top"===s||"start"===s?(0,eu.jsxs)(B.Fragment,{children:[C,c]}):(0,eu.jsxs)(B.Fragment,{children:[c,C]}),u]}))});let mM=B.createContext();function mI(e){return(0,ei.ZP)("MuiTable",e)}var mj=(0,ea.Z)("MuiTable",["root","stickyHeader"]);let mT=["className","component","padding","size","stickyHeader"],mA=e=>{let{classes:t,stickyHeader:r}=e;return(0,z.Z)({root:["root",r&&"stickyHeader"]},mI,t)},mN=(0,W.ZP)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,R.Z)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"})}),mL="table";var mP=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTable"}),{className:n,component:o=mL,padding:a="normal",size:i="medium",stickyHeader:l=!1}=r,s=(0,P.Z)(r,mT),u=(0,R.Z)({},r,{component:o,padding:a,size:i,stickyHeader:l}),c=mA(u),d=B.useMemo(()=>({padding:a,size:i,stickyHeader:l}),[a,i,l]);return(0,eu.jsx)(mM.Provider,{value:d,children:(0,eu.jsx)(mN,(0,R.Z)({as:o,role:o===mL?null:"table",ref:t,className:(0,O.Z)(c.root,n),ownerState:u},s))})});let mR=B.createContext();function mB(e){return(0,ei.ZP)("MuiTableBody",e)}var mO=(0,ea.Z)("MuiTableBody",["root"]);let mz=["className","component"],mW=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},mB,t)},m_=(0,W.ZP)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),mU={variant:"body"},mH="tbody";var mG=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableBody"}),{className:n,component:o=mH}=r,a=(0,P.Z)(r,mz),i=(0,R.Z)({},r,{component:o}),l=mW(i);return(0,eu.jsx)(mR.Provider,{value:mU,children:(0,eu.jsx)(m_,(0,R.Z)({className:(0,O.Z)(l.root,n),as:o,ref:t,role:o===mH?null:"rowgroup",ownerState:i},a))})});function mY(e){return(0,ei.ZP)("MuiTableCell",e)}var mV=(0,ea.Z)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);let m$=["align","className","component","padding","scope","size","sortDirection","variant"],mq=e=>{let{classes:t,variant:r,align:n,padding:o,size:a,stickyHeader:i}=e,l={root:["root",r,i&&"stickyHeader","inherit"!==n&&"align".concat((0,e6.Z)(n)),"normal"!==o&&"padding".concat((0,e6.Z)(o)),"size".concat((0,e6.Z)(a))]};return(0,z.Z)(l,mY,t)},mQ=(0,W.ZP)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t["size".concat((0,e6.Z)(r.size))],"normal"!==r.padding&&t["padding".concat((0,e6.Z)(r.padding))],"inherit"!==r.align&&t["align".concat((0,e6.Z)(r.align))],r.stickyHeader&&t.stickyHeader]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid ".concat(t.vars.palette.TableCell.border):"1px solid\n ".concat("light"===t.palette.mode?(0,tg.$n)((0,tg.Fq)(t.palette.divider,1),.88):(0,tg._j)((0,tg.Fq)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===r.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===r.variant&&{color:(t.vars||t).palette.text.primary},"footer"===r.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===r.size&&{padding:"6px 16px",["&.".concat(mV.paddingCheckbox)]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===r.padding&&{width:48,padding:"0 0 0 4px"},"none"===r.padding&&{padding:0},"left"===r.align&&{textAlign:"left"},"center"===r.align&&{textAlign:"center"},"right"===r.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===r.align&&{textAlign:"justify"},r.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})});var mX=B.forwardRef(function(e,t){let r;let n=(0,_.Z)({props:e,name:"MuiTableCell"}),{align:o="inherit",className:a,component:i,padding:l,scope:s,size:u,sortDirection:c,variant:d}=n,p=(0,P.Z)(n,m$),f=B.useContext(mM),m=B.useContext(mR),h=m&&"head"===m.variant,g=s;"td"===(r=i||(h?"th":"td"))?g=void 0:!g&&h&&(g="col");let v=d||m&&m.variant,b=(0,R.Z)({},n,{align:o,component:r,padding:l||(f&&f.padding?f.padding:"normal"),size:u||(f&&f.size?f.size:"medium"),sortDirection:c,stickyHeader:"head"===v&&f&&f.stickyHeader,variant:v}),y=mq(b),D=null;return c&&(D="asc"===c?"ascending":"descending"),(0,eu.jsx)(mQ,(0,R.Z)({as:r,ref:t,className:(0,O.Z)(y.root,a),"aria-sort":D,scope:g,ownerState:b},p))});function mK(e){return(0,ei.ZP)("MuiTableContainer",e)}var mJ=(0,ea.Z)("MuiTableContainer",["root"]);let m0=["className","component"],m1=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},mK,t)},m2=(0,W.ZP)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var m4=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,a=(0,P.Z)(r,m0),i=(0,R.Z)({},r,{component:o}),l=m1(i);return(0,eu.jsx)(m2,(0,R.Z)({ref:t,as:o,className:(0,O.Z)(l.root,n),ownerState:i},a))});function m3(e){return(0,ei.ZP)("MuiTableFooter",e)}var m5=(0,ea.Z)("MuiTableFooter",["root"]);let m8=["className","component"],m6=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},m3,t)},m9=(0,W.ZP)("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),m7={variant:"footer"},he="tfoot";var ht=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableFooter"}),{className:n,component:o=he}=r,a=(0,P.Z)(r,m8),i=(0,R.Z)({},r,{component:o}),l=m6(i);return(0,eu.jsx)(mR.Provider,{value:m7,children:(0,eu.jsx)(m9,(0,R.Z)({as:o,className:(0,O.Z)(l.root,n),ref:t,role:o===he?null:"rowgroup",ownerState:i},a))})});function hr(e){return(0,ei.ZP)("MuiTableHead",e)}var hn=(0,ea.Z)("MuiTableHead",["root"]);let ho=["className","component"],ha=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},hr,t)},hi=(0,W.ZP)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),hl={variant:"head"},hs="thead";var hu=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableHead"}),{className:n,component:o=hs}=r,a=(0,P.Z)(r,ho),i=(0,R.Z)({},r,{component:o}),l=ha(i);return(0,eu.jsx)(mR.Provider,{value:hl,children:(0,eu.jsx)(hi,(0,R.Z)({as:o,className:(0,O.Z)(l.root,n),ref:t,role:o===hs?null:"rowgroup",ownerState:i},a))})});function hc(e){return(0,ei.ZP)("MuiToolbar",e)}var hd=(0,ea.Z)("MuiToolbar",["root","gutters","regular","dense"]);let hp=["className","component","disableGutters","variant"],hf=e=>{let{classes:t,disableGutters:r,variant:n}=e;return(0,z.Z)({root:["root",!r&&"gutters",n]},hc,t)},hm=(0,W.ZP)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({position:"relative",display:"flex",alignItems:"center"},!r.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===r.variant&&{minHeight:48})},e=>{let{theme:t,ownerState:r}=e;return"regular"===r.variant&&t.mixins.toolbar});var hh=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiToolbar"}),{className:n,component:o="div",disableGutters:a=!1,variant:i="regular"}=r,l=(0,P.Z)(r,hp),s=(0,R.Z)({},r,{component:o,disableGutters:a,variant:i}),u=hf(s);return(0,eu.jsx)(hm,(0,R.Z)({as:o,className:(0,O.Z)(u.root,n),ref:t,ownerState:s},l))}),hg=(0,tV.Z)((0,eu.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),hv=(0,tV.Z)((0,eu.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");let hb=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],hy=B.forwardRef(function(e,t){var r,n,o,a,i,l,s,u;let{backIconButtonProps:c,count:d,disabled:p=!1,getItemAriaLabel:f,nextIconButtonProps:m,onPageChange:h,page:g,rowsPerPage:v,showFirstButton:b,showLastButton:y,slots:D={},slotProps:x={}}=e,C=(0,P.Z)(e,hb),Z=(0,en.Z)(),w=null!=(r=D.firstButton)?r:tY.Z,S=null!=(n=D.lastButton)?n:tY.Z,F=null!=(o=D.nextButton)?o:tY.Z,k=null!=(a=D.previousButton)?a:tY.Z,E=null!=(i=D.firstButtonIcon)?i:cA,M=null!=(l=D.lastButtonIcon)?l:cN,I=null!=(s=D.nextButtonIcon)?s:hv,j=null!=(u=D.previousButtonIcon)?u:hg,T="rtl"===Z.direction?S:w,A="rtl"===Z.direction?F:k,N="rtl"===Z.direction?k:F,L="rtl"===Z.direction?w:S,B="rtl"===Z.direction?x.lastButton:x.firstButton,O="rtl"===Z.direction?x.nextButton:x.previousButton,z="rtl"===Z.direction?x.previousButton:x.nextButton,W="rtl"===Z.direction?x.firstButton:x.lastButton;return(0,eu.jsxs)("div",(0,R.Z)({ref:t},C,{children:[b&&(0,eu.jsx)(T,(0,R.Z)({onClick:e=>{h(e,0)},disabled:p||0===g,"aria-label":f("first",g),title:f("first",g)},B,{children:"rtl"===Z.direction?(0,eu.jsx)(M,(0,R.Z)({},x.lastButtonIcon)):(0,eu.jsx)(E,(0,R.Z)({},x.firstButtonIcon))})),(0,eu.jsx)(A,(0,R.Z)({onClick:e=>{h(e,g-1)},disabled:p||0===g,color:"inherit","aria-label":f("previous",g),title:f("previous",g)},null!=O?O:c,{children:"rtl"===Z.direction?(0,eu.jsx)(I,(0,R.Z)({},x.nextButtonIcon)):(0,eu.jsx)(j,(0,R.Z)({},x.previousButtonIcon))})),(0,eu.jsx)(N,(0,R.Z)({onClick:e=>{h(e,g+1)},disabled:p||-1!==d&&g>=Math.ceil(d/v)-1,color:"inherit","aria-label":f("next",g),title:f("next",g)},null!=z?z:m,{children:"rtl"===Z.direction?(0,eu.jsx)(j,(0,R.Z)({},x.previousButtonIcon)):(0,eu.jsx)(I,(0,R.Z)({},x.nextButtonIcon))})),y&&(0,eu.jsx)(L,(0,R.Z)({onClick:e=>{h(e,Math.max(0,Math.ceil(d/v)-1))},disabled:p||g>=Math.ceil(d/v)-1,"aria-label":f("last",g),title:f("last",g)},W,{children:"rtl"===Z.direction?(0,eu.jsx)(E,(0,R.Z)({},x.firstButtonIcon)):(0,eu.jsx)(M,(0,R.Z)({},x.lastButtonIcon))}))]}))});function hD(e){return(0,ei.ZP)("MuiTablePagination",e)}var hx=(0,ea.Z)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);let hC=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],hZ=(0,W.ZP)(mX,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(e=>{let{theme:t}=e;return{overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}}),hw=(0,W.ZP)(hh,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>(0,R.Z)({["& .".concat(hx.actions)]:t.actions},t.toolbar)})(e=>{let{theme:t}=e;return{minHeight:52,paddingRight:2,["".concat(t.breakpoints.up("xs")," and (orientation: landscape)")]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& .".concat(hx.actions)]:{flexShrink:0,marginLeft:20}}}),hS=(0,W.ZP)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),hF=(0,W.ZP)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(e=>{let{theme:t}=e;return(0,R.Z)({},t.typography.body2,{flexShrink:0})}),hk=(0,W.ZP)(dP,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>(0,R.Z)({["& .".concat(hx.selectIcon)]:t.selectIcon,["& .".concat(hx.select)]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& .".concat(hx.select)]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),hE=(0,W.ZP)(u1,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),hM=(0,W.ZP)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(e=>{let{theme:t}=e;return(0,R.Z)({},t.typography.body2,{flexShrink:0})});function hI(e){let{from:t,to:r,count:n}=e;return"".concat(t,"–").concat(r," of ").concat(-1!==n?n:"more than ".concat(r))}function hj(e){return"Go to ".concat(e," page")}let hT=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},hD,t)};var hA=B.forwardRef(function(e,t){var r;let n;let o=(0,_.Z)({props:e,name:"MuiTablePagination"}),{ActionsComponent:a=hy,backIconButtonProps:i,className:l,colSpan:s,component:u=mX,count:c,disabled:d=!1,getItemAriaLabel:f=hj,labelDisplayedRows:m=hI,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:g,onPageChange:v,onRowsPerPageChange:b,page:y,rowsPerPage:D,rowsPerPageOptions:x=[10,25,50,100],SelectProps:C={},showFirstButton:Z=!1,showLastButton:w=!1,slotProps:S={},slots:F={}}=o,k=(0,P.Z)(o,hC),E=hT(o),M=null!=(r=null==S?void 0:S.select)?r:C,I=M.native?"option":hE;(u===mX||"td"===u)&&(n=s||1e3);let j=(0,c4.Z)(M.id),T=(0,c4.Z)(M.labelId);return(0,eu.jsx)(hZ,(0,R.Z)({colSpan:n,ref:t,as:u,ownerState:o,className:(0,O.Z)(E.root,l)},k,{children:(0,eu.jsxs)(hw,{className:E.toolbar,children:[(0,eu.jsx)(hS,{className:E.spacer}),x.length>1&&(0,eu.jsx)(hF,{className:E.selectLabel,id:T,children:h}),x.length>1&&(0,eu.jsx)(hk,(0,R.Z)({variant:"standard"},!M.variant&&{input:p||(p=(0,eu.jsx)(ib,{}))},{value:D,onChange:b,id:j,labelId:T},M,{classes:(0,R.Z)({},M.classes,{root:(0,O.Z)(E.input,E.selectRoot,(M.classes||{}).root),select:(0,O.Z)(E.select,(M.classes||{}).select),icon:(0,O.Z)(E.selectIcon,(M.classes||{}).icon)}),disabled:d,children:x.map(e=>(0,B.createElement)(I,(0,R.Z)({},!eS(I)&&{ownerState:o},{className:E.menuItem,key:e.label?e.label:e,value:e.value?e.value:e}),e.label?e.label:e))})),(0,eu.jsx)(hM,{className:E.displayedRows,children:m({from:0===c?0:y*D+1,to:-1===c?(y+1)*D:-1===D?c:Math.min(c,(y+1)*D),count:-1===c?-1:c,page:y})}),(0,eu.jsx)(a,{className:E.actions,backIconButtonProps:i,count:c,nextIconButtonProps:g,onPageChange:v,page:y,rowsPerPage:D,showFirstButton:Z,showLastButton:w,slotProps:S.actions,slots:F.actions,getItemAriaLabel:f,disabled:d})]})}))});function hN(e){return(0,ei.ZP)("MuiTableRow",e)}var hL=(0,ea.Z)("MuiTableRow",["root","selected","hover","head","footer"]);let hP=["className","component","hover","selected"],hR=e=>{let{classes:t,selected:r,hover:n,head:o,footer:a}=e;return(0,z.Z)({root:["root",r&&"selected",n&&"hover",o&&"head",a&&"footer"]},hN,t)},hB=(0,W.ZP)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(e=>{let{theme:t}=e;return{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,["&.".concat(hL.hover,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(hL.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}}});var hO=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableRow"}),{className:n,component:o="tr",hover:a=!1,selected:i=!1}=r,l=(0,P.Z)(r,hP),s=B.useContext(mR),u=(0,R.Z)({},r,{component:o,hover:a,selected:i,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=hR(u);return(0,eu.jsx)(hB,(0,R.Z)({as:o,ref:t,className:(0,O.Z)(c.root,n),role:"tr"===o?null:"row",ownerState:u},l))}),hz=(0,tV.Z)((0,eu.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function hW(e){return(0,ei.ZP)("MuiTableSortLabel",e)}var h_=(0,ea.Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]);let hU=["active","children","className","direction","hideSortIcon","IconComponent"],hH=e=>{let{classes:t,direction:r,active:n}=e,o={root:["root",n&&"active"],icon:["icon","iconDirection".concat((0,e6.Z)(r))]};return(0,z.Z)(o,hW,t)},hG=(0,W.ZP)(e$.Z,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.active&&t.active]}})(e=>{let{theme:t}=e;return{cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,["& .".concat(h_.icon)]:{opacity:.5}},["&.".concat(h_.active)]:{color:(t.vars||t).palette.text.primary,["& .".concat(h_.icon)]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}}),hY=(0,W.ZP)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,t["iconDirection".concat((0,e6.Z)(r.direction))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,R.Z)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===r.direction&&{transform:"rotate(0deg)"},"asc"===r.direction&&{transform:"rotate(180deg)"})});var hV=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTableSortLabel"}),{active:n=!1,children:o,className:a,direction:i="asc",hideSortIcon:l=!1,IconComponent:s=hz}=r,u=(0,P.Z)(r,hU),c=(0,R.Z)({},r,{active:n,direction:i,hideSortIcon:l,IconComponent:s}),d=hH(c);return(0,eu.jsxs)(hG,(0,R.Z)({className:(0,O.Z)(d.root,a),component:"span",disableRipple:!0,ownerState:c,ref:t},u,{children:[o,l&&!n?null:(0,eu.jsx)(hY,{as:s,className:(0,O.Z)(d.icon),ownerState:c})]}))});function h$(){if(o)return o;let e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),o="reverse",e.scrollLeft>0?o="default":(e.scrollLeft=1,0===e.scrollLeft&&(o="negative")),document.body.removeChild(e),o}function hq(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}let hQ=["onChange"],hX={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function hK(e){return(0,ei.ZP)("MuiTabScrollButton",e)}var hJ=(0,ea.Z)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);let h0=["className","slots","slotProps","direction","orientation","disabled"],h1=e=>{let{classes:t,orientation:r,disabled:n}=e;return(0,z.Z)({root:["root",r,n&&"disabled"]},hK,t)},h2=(0,W.ZP)(e$.Z,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({width:40,flexShrink:0,opacity:.8,["&.".concat(hJ.disabled)]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})});var h4=B.forwardRef(function(e,t){var r,n;let o=(0,_.Z)({props:e,name:"MuiTabScrollButton"}),{className:a,slots:i={},slotProps:l={},direction:s}=o,u=(0,P.Z)(o,h0),c="rtl"===(0,en.Z)().direction,d=(0,R.Z)({isRtl:c},o),p=h1(d),f=null!=(r=i.StartScrollButtonIcon)?r:hg,m=null!=(n=i.EndScrollButtonIcon)?n:hv,h=tF({elementType:f,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),g=tF({elementType:m,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,eu.jsx)(h2,(0,R.Z)({component:"div",className:(0,O.Z)(p.root,a),ref:t,role:null,ownerState:d,tabIndex:null},u,{children:"left"===s?(0,eu.jsx)(f,(0,R.Z)({},h)):(0,eu.jsx)(m,(0,R.Z)({},g))}))});function h3(e){return(0,ei.ZP)("MuiTabs",e)}var h5=(0,ea.Z)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);let h8=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],h6=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,h9=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,h7=(e,t,r)=>{let n=!1,o=r(e,t);for(;o;){if(o===e.firstChild){if(n)return;n=!0}let t=o.disabled||"true"===o.getAttribute("aria-disabled");if(!o.hasAttribute("tabindex")||t)o=r(e,o);else{o.focus();return}}},ge=e=>{let{vertical:t,fixed:r,hideScrollbar:n,scrollableX:o,scrollableY:a,centered:i,scrollButtonsHideMobile:l,classes:s}=e;return(0,z.Z)({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",o&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},h3,s)},gt=(0,W.ZP)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(h5.scrollButtons)]:t.scrollButtons},{["& .".concat(h5.scrollButtons)]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{["& .".concat(h5.scrollButtons)]:{[r.breakpoints.down("sm")]:{display:"none"}}})}),gr=(0,W.ZP)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})}),gn=(0,W.ZP)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(e=>{let{ownerState:t}=e;return(0,R.Z)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})}),go=(0,W.ZP)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({position:"absolute",height:2,bottom:0,width:"100%",transition:r.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(r.vars||r).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})}),ga=(0,W.ZP)(function(e){let{onChange:t}=e,r=(0,P.Z)(e,hQ),n=B.useRef(),o=B.useRef(null),a=()=>{n.current=o.current.offsetHeight-o.current.clientHeight};return(0,is.Z)(()=>{let e=(0,aP.Z)(()=>{let e=n.current;a(),e!==n.current&&t(n.current)}),r=(0,aR.Z)(o.current);return r.addEventListener("resize",e),()=>{e.clear(),r.removeEventListener("resize",e)}},[t]),B.useEffect(()=>{a(),t(n.current)},[t]),(0,eu.jsx)("div",(0,R.Z)({style:hX,ref:o},r))})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),gi={};var gl=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTabs"}),n=(0,en.Z)(),o="rtl"===n.direction,{"aria-label":a,"aria-labelledby":i,action:l,centered:s=!1,children:u,className:c,component:d="div",allowScrollButtonsMobile:p=!1,indicatorColor:f="primary",onChange:m,orientation:h="horizontal",ScrollButtonComponent:g=h4,scrollButtons:v="auto",selectionFollowsFocus:b,slots:y={},slotProps:D={},TabIndicatorProps:x={},TabScrollButtonProps:C={},textColor:Z="primary",value:w,variant:S="standard",visibleScrollbar:F=!1}=r,k=(0,P.Z)(r,h8),E="scrollable"===S,M="vertical"===h,I=M?"scrollTop":"scrollLeft",j=M?"top":"left",T=M?"bottom":"right",A=M?"clientHeight":"clientWidth",N=M?"height":"width",L=(0,R.Z)({},r,{component:d,allowScrollButtonsMobile:p,indicatorColor:f,orientation:h,vertical:M,scrollButtons:v,textColor:Z,variant:S,visibleScrollbar:F,fixed:!E,hideScrollbar:E&&!F,scrollableX:E&&!M,scrollableY:E&&M,centered:s&&!E,scrollButtonsHideMobile:!p}),z=ge(L),W=tF({elementType:y.StartScrollButtonIcon,externalSlotProps:D.startScrollButtonIcon,ownerState:L}),U=tF({elementType:y.EndScrollButtonIcon,externalSlotProps:D.endScrollButtonIcon,ownerState:L}),[H,G]=B.useState(!1),[Y,V]=B.useState(gi),[$,q]=B.useState(!1),[Q,X]=B.useState(!1),[K,J]=B.useState(!1),[ee,et]=B.useState({overflow:"hidden",scrollbarWidth:0}),er=new Map,eo=B.useRef(null),ea=B.useRef(null),ei=()=>{let e,t;let r=eo.current;if(r){let t=r.getBoundingClientRect();e={clientWidth:r.clientWidth,scrollLeft:r.scrollLeft,scrollTop:r.scrollTop,scrollLeftNormalized:function(e,t){let r=e.scrollLeft;if("rtl"!==t)return r;switch(h$()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}(r,n.direction),scrollWidth:r.scrollWidth,top:t.top,bottom:t.bottom,left:t.left,right:t.right}}if(r&&!1!==w){let e=ea.current.children;if(e.length>0){let r=e[er.get(w)];t=r?r.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},el=(0,pY.Z)(()=>{let e;let{tabsMeta:t,tabMeta:r}=ei(),n=0;if(M)e="top",r&&t&&(n=r.top-t.top+t.scrollTop);else if(e=o?"right":"left",r&&t){let a=o?t.scrollLeftNormalized+t.clientWidth-t.scrollWidth:t.scrollLeft;n=(o?-1:1)*(r[e]-t[e]+a)}let a={[e]:n,[N]:r?r[N]:0};if(isNaN(Y[e])||isNaN(Y[N]))V(a);else{let t=Math.abs(Y[e]-a[e]),r=Math.abs(Y[N]-a[N]);(t>=1||r>=1)&&V(a)}}),es=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{},{ease:a=hq,duration:i=300}=n,l=null,s=t[e],u=!1,c=n=>{if(u){o(Error("Animation cancelled"));return}null===l&&(l=n);let d=Math.min(1,(n-l)/i);if(t[e]=a(d)*(r-s)+s,d>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(c)};return s===r?o(Error("Element already at target position")):requestAnimationFrame(c),()=>{u=!0}}(I,eo.current,e,{duration:n.transitions.duration.standard}):eo.current[I]=e},ec=e=>{let t=eo.current[I];M?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===h$()?-1:1),es(t)},ed=()=>{let e=eo.current[A],t=0,r=Array.from(ea.current.children);for(let n=0;ne){0===n&&(t=e);break}t+=o[A]}return t},ep=()=>{ec(-1*ed())},ef=()=>{ec(ed())},em=B.useCallback(e=>{et({overflow:null,scrollbarWidth:e})},[]),eh=(0,pY.Z)(e=>{let{tabsMeta:t,tabMeta:r}=ei();r&&t&&(r[j]t[T]&&es(t[I]+(r[T]-t[T]),{animation:e}))}),eg=(0,pY.Z)(()=>{E&&!1!==v&&J(!K)});B.useEffect(()=>{let e,t;let r=(0,aP.Z)(()=>{eo.current&&el()}),n=(0,aR.Z)(eo.current);return n.addEventListener("resize",r),"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(r),Array.from(ea.current.children).forEach(t=>{e.observe(t)})),"undefined"!=typeof MutationObserver&&(t=new MutationObserver(t=>{t.forEach(t=>{t.removedNodes.forEach(t=>{var r;null==(r=e)||r.unobserve(t)}),t.addedNodes.forEach(t=>{var r;null==(r=e)||r.observe(t)})}),r(),eg()})).observe(ea.current,{childList:!0}),()=>{var o,a;r.clear(),n.removeEventListener("resize",r),null==(o=t)||o.disconnect(),null==(a=e)||a.disconnect()}},[el,eg]),B.useEffect(()=>{let e=Array.from(ea.current.children),t=e.length;if("undefined"!=typeof IntersectionObserver&&t>0&&E&&!1!==v){let r=e[0],n=e[t-1],o={root:eo.current,threshold:.99},a=new IntersectionObserver(e=>{q(!e[0].isIntersecting)},o);a.observe(r);let i=new IntersectionObserver(e=>{X(!e[0].isIntersecting)},o);return i.observe(n),()=>{a.disconnect(),i.disconnect()}}},[E,v,K,null==u?void 0:u.length]),B.useEffect(()=>{G(!0)},[]),B.useEffect(()=>{el()}),B.useEffect(()=>{eh(gi!==Y)},[eh,Y]),B.useImperativeHandle(l,()=>({updateIndicator:el,updateScrollButtons:eg}),[el,eg]);let ev=(0,eu.jsx)(go,(0,R.Z)({},x,{className:(0,O.Z)(z.indicator,x.className),ownerState:L,style:(0,R.Z)({},Y,x.style)})),eb=0,ey=B.Children.map(u,e=>{if(!B.isValidElement(e))return null;let t=void 0===e.props.value?eb:e.props.value;er.set(t,eb);let r=t===w;return eb+=1,B.cloneElement(e,(0,R.Z)({fullWidth:"fullWidth"===S,indicator:r&&!H&&ev,selected:r,selectionFollowsFocus:b,onChange:m,textColor:Z,value:t},1!==eb||!1!==w||e.props.tabIndex?{}:{tabIndex:0}))}),eD=(()=>{let e={};e.scrollbarSizeListener=E?(0,eu.jsx)(ga,{onChange:em,className:(0,O.Z)(z.scrollableX,z.hideScrollbar)}):null;let t=E&&("auto"===v&&($||Q)||!0===v);return e.scrollButtonStart=t?(0,eu.jsx)(g,(0,R.Z)({slots:{StartScrollButtonIcon:y.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:h,direction:o?"right":"left",onClick:ep,disabled:!$},C,{className:(0,O.Z)(z.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?(0,eu.jsx)(g,(0,R.Z)({slots:{EndScrollButtonIcon:y.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:U},orientation:h,direction:o?"left":"right",onClick:ef,disabled:!Q},C,{className:(0,O.Z)(z.scrollButtons,C.className)})):null,e})();return(0,eu.jsxs)(gt,(0,R.Z)({className:(0,O.Z)(z.root,c),ownerState:L,ref:t,as:d},k,{children:[eD.scrollButtonStart,eD.scrollbarSizeListener,(0,eu.jsxs)(gr,{className:z.scroller,ownerState:L,style:{overflow:ee.overflow,[M?"margin".concat(o?"Left":"Right"):"marginBottom"]:F?void 0:-ee.scrollbarWidth},ref:eo,children:[(0,eu.jsx)(gn,{"aria-label":a,"aria-labelledby":i,"aria-orientation":"vertical"===h?"vertical":null,className:z.flexContainer,ownerState:L,onKeyDown:e=>{let t=ea.current,r=(0,uy.Z)(t).activeElement;if("tab"!==r.getAttribute("role"))return;let n="horizontal"===h?"ArrowLeft":"ArrowUp",a="horizontal"===h?"ArrowRight":"ArrowDown";switch("horizontal"===h&&o&&(n="ArrowRight",a="ArrowLeft"),e.key){case n:e.preventDefault(),h7(t,r,h9);break;case a:e.preventDefault(),h7(t,r,h6);break;case"Home":e.preventDefault(),h7(t,null,h6);break;case"End":e.preventDefault(),h7(t,null,h9)}},ref:ea,role:"tablist",children:ey}),H&&ev]}),eD.scrollButtonEnd]}))});function gs(e){return(0,ei.ZP)("MuiTextField",e)}var gu=(0,ea.Z)("MuiTextField",["root"]);let gc=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],gd={standard:lX,filled:iw,outlined:cF},gp=e=>{let{classes:t}=e;return(0,z.Z)({root:["root"]},gs,t)},gf=(0,W.ZP)(iS.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});var gm=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:o=!1,children:a,className:i,color:l="primary",defaultValue:s,disabled:u=!1,error:c=!1,FormHelperTextProps:d,fullWidth:p=!1,helperText:f,id:m,InputLabelProps:h,inputProps:g,InputProps:v,inputRef:b,label:y,maxRows:D,minRows:x,multiline:C=!1,name:Z,onBlur:w,onChange:S,onFocus:F,placeholder:k,required:E=!1,rows:M,select:I=!1,SelectProps:j,type:T,value:A,variant:N="outlined"}=r,L=(0,P.Z)(r,gc),B=(0,R.Z)({},r,{autoFocus:o,color:l,disabled:u,error:c,fullWidth:p,multiline:C,required:E,select:I,variant:N}),z=gp(B),W={};"outlined"===N&&(h&&void 0!==h.shrink&&(W.notched=h.shrink),W.label=y),I&&(j&&j.native||(W.id=void 0),W["aria-describedby"]=void 0);let U=(0,ta.Z)(m),H=f&&U?"".concat(U,"-helper-text"):void 0,G=y&&U?"".concat(U,"-label"):void 0,Y=gd[N],V=(0,eu.jsx)(Y,(0,R.Z)({"aria-describedby":H,autoComplete:n,autoFocus:o,defaultValue:s,fullWidth:p,multiline:C,name:Z,rows:M,maxRows:D,minRows:x,type:T,value:A,id:U,inputRef:b,onBlur:w,onChange:S,onFocus:F,placeholder:k,inputProps:g},W,v));return(0,eu.jsxs)(gf,(0,R.Z)({className:(0,O.Z)(z.root,i),disabled:u,error:c,fullWidth:p,ref:t,required:E,color:l,variant:N,ownerState:B},L,{children:[null!=y&&""!==y&&(0,eu.jsx)(l7,(0,R.Z)({htmlFor:U,id:G},h,{children:y})),I?(0,eu.jsx)(dP,(0,R.Z)({"aria-describedby":H,id:U,labelId:G,value:A,input:V},j,{children:a})):V,f&&(0,eu.jsx)(iP,(0,R.Z)({id:H},d,{children:f}))]}))}),gh=r(35971);function gg(e){return(0,ei.ZP)("MuiToggleButton",e)}var gv=(0,ea.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]);let gb=B.createContext({}),gy=B.createContext(void 0),gD=["value"],gx=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],gC=e=>{let{classes:t,fullWidth:r,selected:n,disabled:o,size:a,color:i}=e,l={root:["root",n&&"selected",o&&"disabled",r&&"fullWidth","size".concat((0,e6.Z)(a)),i]};return(0,z.Z)(l,gg,t)},gZ=(0,W.ZP)(e$.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t["size".concat((0,e6.Z)(r.size))]]}})(e=>{let t,{theme:r,ownerState:n}=e,o="standard"===n.color?r.palette.text.primary:r.palette[n.color].main;return r.vars&&(o="standard"===n.color?r.vars.palette.text.primary:r.vars.palette[n.color].main,t="standard"===n.color?r.vars.palette.text.primaryChannel:r.vars.palette[n.color].mainChannel),(0,R.Z)({},r.typography.button,{borderRadius:(r.vars||r).shape.borderRadius,padding:11,border:"1px solid ".concat((r.vars||r).palette.divider),color:(r.vars||r).palette.action.active},n.fullWidth&&{width:"100%"},{["&.".concat(gv.disabled)]:{color:(r.vars||r).palette.action.disabled,border:"1px solid ".concat((r.vars||r).palette.action.disabledBackground)},"&:hover":{textDecoration:"none",backgroundColor:r.vars?"rgba(".concat(r.vars.palette.text.primaryChannel," / ").concat(r.vars.palette.action.hoverOpacity,")"):(0,tg.Fq)(r.palette.text.primary,r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(gv.selected)]:{color:o,backgroundColor:r.vars?"rgba(".concat(t," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(o,r.palette.action.selectedOpacity),"&:hover":{backgroundColor:r.vars?"rgba(".concat(t," / calc(").concat(r.vars.palette.action.selectedOpacity," + ").concat(r.vars.palette.action.hoverOpacity,"))"):(0,tg.Fq)(o,r.palette.action.selectedOpacity+r.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:r.vars?"rgba(".concat(t," / ").concat(r.vars.palette.action.selectedOpacity,")"):(0,tg.Fq)(o,r.palette.action.selectedOpacity)}}}},"small"===n.size&&{padding:7,fontSize:r.typography.pxToRem(13)},"large"===n.size&&{padding:15,fontSize:r.typography.pxToRem(15)})});var gw=B.forwardRef(function(e,t){var r;let n=B.useContext(gb),{value:o}=n,a=(0,P.Z)(n,gD),i=B.useContext(gy),l=(0,gh.Z)((0,R.Z)({},a,{selected:(r=e.value,void 0!==o&&void 0!==r&&(Array.isArray(o)?o.indexOf(r)>=0:r===o))}),e),s=(0,_.Z)({props:l,name:"MuiToggleButton"}),{children:u,className:c,color:d="standard",disabled:p=!1,disableFocusRipple:f=!1,fullWidth:m=!1,onChange:h,onClick:g,selected:v,size:b="medium",value:y}=s,D=(0,P.Z)(s,gx),x=(0,R.Z)({},s,{color:d,disabled:p,disableFocusRipple:f,fullWidth:m,size:b}),C=gC(x);return(0,eu.jsx)(gZ,(0,R.Z)({className:(0,O.Z)(a.className,C.root,c,i||""),disabled:p,focusRipple:!f,ref:t,onClick:e=>{g&&(g(e,y),e.defaultPrevented)||!h||h(e,y)},onChange:h,value:y,ownerState:x,"aria-pressed":v},D,{children:u}))});function gS(e){return(0,ei.ZP)("MuiToggleButtonGroup",e)}var gF=(0,ea.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]);let gk=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],gE=e=>{let{classes:t,orientation:r,fullWidth:n,disabled:o}=e,a={root:["root","vertical"===r&&"vertical",n&&"fullWidth"],grouped:["grouped","grouped".concat((0,e6.Z)(r)),o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,z.Z)(a,gS,t)},gM=(0,W.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(gF.grouped)]:t.grouped},{["& .".concat(gF.grouped)]:t["grouped".concat((0,e6.Z)(r.orientation))]},{["& .".concat(gF.firstButton)]:t.firstButton},{["& .".concat(gF.lastButton)]:t.lastButton},{["& .".concat(gF.middleButton)]:t.middleButton},t.root,"vertical"===r.orientation&&t.vertical,r.fullWidth&&t.fullWidth]}})(e=>{let{ownerState:t,theme:r}=e;return(0,R.Z)({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},"vertical"===t.orientation&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{["& .".concat(gF.grouped)]:(0,R.Z)({},"horizontal"===t.orientation?{["&.".concat(gF.selected," + .").concat(gF.grouped,".").concat(gF.selected)]:{borderLeft:0,marginLeft:0}}:{["&.".concat(gF.selected," + .").concat(gF.grouped,".").concat(gF.selected)]:{borderTop:0,marginTop:0}})},"horizontal"===t.orientation?{["& .".concat(gF.firstButton,",& .").concat(gF.middleButton)]:{borderTopRightRadius:0,borderBottomRightRadius:0},["& .".concat(gF.lastButton,",& .").concat(gF.middleButton)]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{["& .".concat(gF.firstButton,",& .").concat(gF.middleButton)]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},["& .".concat(gF.lastButton,",& .").concat(gF.middleButton)]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},"horizontal"===t.orientation?{["& .".concat(gF.lastButton,".").concat(gv.disabled,",& .").concat(gF.middleButton,".").concat(gv.disabled)]:{borderLeft:"1px solid transparent"}}:{["& .".concat(gF.lastButton,".").concat(gv.disabled,",& .").concat(gF.middleButton,".").concat(gv.disabled)]:{borderTop:"1px solid transparent"}})});var gI=B.forwardRef(function(e,t){let r=(0,_.Z)({props:e,name:"MuiToggleButtonGroup"}),{children:n,className:o,color:a="standard",disabled:i=!1,exclusive:l=!1,fullWidth:s=!1,onChange:u,orientation:c="horizontal",size:d="medium",value:p}=r,f=(0,P.Z)(r,gk),m=(0,R.Z)({},r,{disabled:i,fullWidth:s,orientation:c,size:d}),h=gE(m),g=B.useCallback((e,t)=>{let r;if(!u)return;let n=p&&p.indexOf(t);p&&n>=0?(r=p.slice()).splice(n,1):r=p?p.concat(t):[t],u(e,r)},[u,p]),v=B.useCallback((e,t)=>{u&&u(e,p===t?null:t)},[u,p]),b=B.useMemo(()=>({className:h.grouped,onChange:l?v:g,value:p,size:d,fullWidth:s,color:a,disabled:i}),[h.grouped,l,v,g,p,d,s,a,i]),y=ng(n),D=y.length,x=e=>{let t=0===e,r=e===D-1;return t&&r?"":t?h.firstButton:r?h.lastButton:h.middleButton};return(0,eu.jsx)(gM,(0,R.Z)({role:"group",className:(0,O.Z)(h.root,o),ref:t,ownerState:m},f,{children:(0,eu.jsx)(gb.Provider,{value:b,children:y.map((e,t)=>(0,eu.jsx)(gy.Provider,{value:x(t),children:e},t))})}))}),gj=r(40655),gT=r(63885);let gA=["getTrigger","target"];function gN(e,t){let{disableHysteresis:r=!1,threshold:n=100,target:o}=t,a=e.current;return o&&(e.current=void 0!==o.pageYOffset?o.pageYOffset:o.scrollTop),(!!r||void 0===a||!(e.currentn}let gL=window;function gP(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{getTrigger:t=gN,target:r=gL}=e,n=(0,P.Z)(e,gA),o=B.useRef(),[a,i]=B.useState(()=>t(o,n));return B.useEffect(()=>{let e=()=>{i(t(o,(0,R.Z)({target:r},n)))};return e(),r.addEventListener("scroll",e,{passive:!0}),()=>{r.removeEventListener("scroll",e,{passive:!0})}},[r,t,JSON.stringify(n)]),a}},32626:function(e,t,r){"use strict";function n(e){return String(parseFloat(e)).length===String(e).length}function o(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function a(e){return parseFloat(e)}function i(e){return(t,r)=>{let n=o(t);if(n===r)return t;let i=a(t);"px"!==n&&("em"===n?i=a(t)*a(e):"rem"===n&&(i=a(t)*a(e)));let l=i;if("px"!==r){if("em"===r)l=i/a(e);else{if("rem"!==r)return t;l=i/a(e)}}return parseFloat(l.toFixed(5))+r}}function l(e){let{size:t,grid:r}=e,n=t-t%r,o=n+r;return t-n{let n=r+s*e;null!==i&&(n=i(n)),l["@media (min-width:".concat(e,"px)")]={[t]:"".concat(Math.round(1e4*n)/1e4).concat(o)}}),l}r.d(t,{LV:function(){return l},Wy:function(){return o},YL:function(){return a},dA:function(){return n},vY:function(){return s},vs:function(){return i},ze:function(){return u}})},54326:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{Experimental_CssVarsProvider:function(){return ex},StyledEngineProvider:function(){return z},THEME_ID:function(){return a.Z},ThemeProvider:function(){return B},adaptV4Theme:function(){return p},alpha:function(){return f.Fq},createMuiTheme:function(){return h.A},createStyles:function(){return y},createTheme:function(){return h.Z},css:function(){return m.iv},darken:function(){return f._j},decomposeColor:function(){return f.tB},duration:function(){return C.x9},easing:function(){return C.Ui},emphasize:function(){return f._4},experimentalStyled:function(){return S.ZP},experimental_extendTheme:function(){return ev},experimental_sx:function(){return eS},getContrastRatio:function(){return f.mi},getInitColorSchemeScript:function(){return eZ},getLuminance:function(){return f.H3},getOverlayAlpha:function(){return es.Z},hexToRgb:function(){return f.oo},hslToRgb:function(){return f.ve},keyframes:function(){return m.F4},lighten:function(){return f.$n},makeStyles:function(){return W},private_createMixins:function(){return ew.Z},private_createTypography:function(){return eb.Z},private_excludeVariablesFromRoot:function(){return ey},recomposeColor:function(){return f.wy},responsiveFontSizes:function(){return x},rgbToHex:function(){return f.vq},shouldSkipGeneratingVar:function(){return el},styled:function(){return S.ZP},unstable_createMuiStrictModeTheme:function(){return v},unstable_getUnit:function(){return D.Wy},unstable_toUnitless:function(){return D.YL},useColorScheme:function(){return eC},useTheme:function(){return Z.Z},useThemeProps:function(){return w.Z},withStyles:function(){return _},withTheme:function(){return U}});var o=r(56535),a=r(95038),i=r(87462),l=r(63366),s=r(98373),u=r(41512);let c=["defaultProps","mixins","overrides","palette","props","styleOverrides"],d=["type","mode"];function p(e){let{defaultProps:t={},mixins:r={},overrides:n={},palette:o={},props:a={},styleOverrides:p={}}=e,f=(0,l.Z)(e,c),m=(0,i.Z)({},f,{components:{}});Object.keys(t).forEach(e=>{let r=m.components[e]||{};r.defaultProps=t[e],m.components[e]=r}),Object.keys(a).forEach(e=>{let t=m.components[e]||{};t.defaultProps=a[e],m.components[e]=t}),Object.keys(p).forEach(e=>{let t=m.components[e]||{};t.styleOverrides=p[e],m.components[e]=t}),Object.keys(n).forEach(e=>{let t=m.components[e]||{};t.styleOverrides=n[e],m.components[e]=t}),m.spacing=(0,s.Z)(e.spacing);let h=(0,u.Z)(e.breakpoints||{}),g=m.spacing;m.mixins=(0,i.Z)({gutters:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.Z)({paddingLeft:g(2),paddingRight:g(2)},e,{[h.up("sm")]:(0,i.Z)({paddingLeft:g(3),paddingRight:g(3)},e[h.up("sm")])})}},r);let{type:v,mode:b}=o,y=(0,l.Z)(o,d),D=b||v||"light";return m.palette=(0,i.Z)({text:{hint:"dark"===D?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:D,type:D},y),m}var f=r(41796),m=r(70917),h=r(96047),g=r(4953);function v(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n1&&void 0!==arguments[1]?arguments[1]:{},{breakpoints:r=["sm","md","lg"],disableAlign:n=!1,factor:a=2,variants:l=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=t,s=(0,i.Z)({},e);s.typography=(0,i.Z)({},s.typography);let u=s.typography,c=(0,D.vs)(u.htmlFontSize),d=r.map(e=>s.breakpoints.values[e]);return l.forEach(e=>{let t=u[e],r=parseFloat(c(t.fontSize,"rem"));if(r<=1)return;let{lineHeight:l}=t;if(!(0,D.dA)(l)&&!n)throw Error((0,o.Z)(6));(0,D.dA)(l)||(l=parseFloat(c(l,"rem"))/parseFloat(r));let s=null;n||(s=e=>(0,D.LV)({size:e,grid:(0,D.vY)({pixels:4,lineHeight:l,htmlFontSize:u.htmlFontSize})})),u[e]=(0,i.Z)({},t,(0,D.ze)({cssProperty:"fontSize",min:1+(r-1)/a,max:r,unit:"rem",breakpoints:d,transform:s}))}),s}var C=r(5713),Z=r(49360),w=r(59145),S=r(89262),F=r(67294);let k=F.createContext(null);function E(){return F.useContext(k)}var M="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",I=r(85893),j=function(e){let{children:t,theme:r}=e,n=E(),o=F.useMemo(()=>{let e=null===n?r:"function"==typeof r?r(n):(0,i.Z)({},n,r);return null!=e&&(e[M]=null!==n),e},[r,n]);return(0,I.jsx)(k.Provider,{value:o,children:t})},T=r(52443),A=r(34168);let N={};function L(e,t,r,n=!1){return F.useMemo(()=>{let o=e&&t[e]||t;if("function"==typeof r){let a=r(o),l=e?(0,i.Z)({},t,{[e]:a}):a;return n?()=>l:l}return e?(0,i.Z)({},t,{[e]:r}):(0,i.Z)({},t,r)},[e,t,r,n])}var P=function(e){let{children:t,theme:r,themeId:n}=e,o=(0,A.Z)(N),a=E()||N,i=L(n,o,r),l=L(n,a,r,!0);return(0,I.jsx)(j,{theme:l,children:(0,I.jsx)(T.T.Provider,{value:i,children:t})})};let R=["theme"];function B(e){let{theme:t}=e,r=(0,l.Z)(e,R),n=t[a.Z];return(0,I.jsx)(P,(0,i.Z)({},r,{themeId:n?a.Z:void 0,theme:n||t}))}var O=r(48711);function z(e){let{injectFirst:t,children:r}=e;return t&&n?(0,I.jsx)(T.C,{value:n,children:r}):r}function W(){throw Error((0,o.Z)(14))}function _(){throw Error((0,o.Z)(15))}function U(){throw Error((0,o.Z)(16))}"object"==typeof document&&(n=(0,O.Z)({key:"css",prepend:!0}));var H=r(41234);let G="mode",Y="color-scheme",V="data-color-scheme";function $(e){if("undefined"!=typeof window&&"system"===e)return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function q(e,t){return"light"===e.mode||"system"===e.mode&&"light"===e.systemMode?t("light"):"dark"===e.mode||"system"===e.mode&&"dark"===e.systemMode?t("dark"):void 0}function Q(e,t){let r;if("undefined"!=typeof window){try{(r=localStorage.getItem(e)||void 0)||localStorage.setItem(e,t)}catch(e){}return r||t}}let X=["colorSchemes","components","generateCssVars","cssVarPrefix"];var K=r(86523);let J=(e,t,r,n=[])=>{let o=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(o)?o[Number(e)]=r:o&&"object"==typeof o&&(o[e]=r):o&&"object"==typeof o&&(o[e]||(o[e]=n.includes(e)?[]:{}),o=o[e])})},ee=(e,t,r)=>{!function e(n,o=[],a=[]){Object.entries(n).forEach(([n,i])=>{r&&(!r||r([...o,n]))||null==i||("object"==typeof i&&Object.keys(i).length>0?e(i,[...o,n],Array.isArray(i)?[...a,n]:a):t([...o,n],i,a))})}(e)},et=(e,t)=>"number"==typeof t?["lineHeight","fontWeight","opacity","zIndex"].some(t=>e.includes(t))||e[e.length-1].toLowerCase().indexOf("opacity")>=0?t:`${t}px`:t;function er(e,t){let{prefix:r,shouldSkipGeneratingVar:n}=t||{},o={},a={},i={};return ee(e,(e,t,l)=>{if(("string"==typeof t||"number"==typeof t)&&(!n||!n(e,t))){let n=`--${r?`${r}-`:""}${e.join("-")}`;Object.assign(o,{[n]:et(e,t)}),J(a,e,`var(${n})`,l),J(i,e,`var(${n}, ${t})`,l)}},e=>"vars"===e[0]),{css:o,vars:a,varsWithDefaults:i}}let en=["colorSchemes","components"],eo=["light"];var ea=function(e,t){let{colorSchemes:r={}}=e,{vars:n,css:o,varsWithDefaults:a}=er((0,l.Z)(e,en),t),s=a,u={},{light:c}=r;if(Object.entries((0,l.Z)(r,eo)||{}).forEach(([e,r])=>{let{vars:n,css:o,varsWithDefaults:a}=er(r,t);s=(0,g.Z)(s,a),u[e]={css:o,vars:n}}),c){let{css:e,vars:r,varsWithDefaults:n}=er(c,t);s=(0,g.Z)(s,n),u.light={css:e,vars:r}}return{vars:s,generateCssVars:e=>e?{css:(0,i.Z)({},u[e].css),vars:u[e].vars}:{css:(0,i.Z)({},o),vars:n}}},ei=r(44920);function el(e){var t;return!!e[0].match(/(cssVarPrefix|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||"palette"===e[0]&&!!(null!=(t=e[1])&&t.match(/(mode|contrastThreshold|tonalOffset)/))}var es=r(45205);let eu=["colorSchemes","cssVarPrefix","shouldSkipGeneratingVar"],ec=["palette"],ed=[...Array(25)].map((e,t)=>{if(0===t)return;let r=(0,es.Z)(t);return"linear-gradient(rgba(255 255 255 / ".concat(r,"), rgba(255 255 255 / ").concat(r,"))")});function ep(e,t,r){!e[t]&&r&&(e[t]=r)}function ef(e){return e&&e.startsWith("hsl")?(0,f.ve)(e):e}function em(e,t){"".concat(t,"Channel") in e||(e["".concat(t,"Channel")]=(0,f.LR)(ef(e[t]),"MUI: Can't create `palette.".concat(t,"Channel` because `palette.").concat(t,"` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().")+"\n"+"To suppress this warning, you need to explicitly provide the `palette.".concat(t,'Channel` as a string (in rgb format, e.g. "12 12 12") or undefined if you want to remove the channel token.')))}let eh=e=>{try{return e()}catch(e){}},eg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mui";return function(e=""){return(t,...r)=>`var(--${e?`${e}-`:""}${t}${function t(...r){if(!r.length)return"";let n=r[0];return"string"!=typeof n||n.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, ${n}`:`, var(--${e?`${e}-`:""}${n}${t(...r.slice(1))})`}(...r)})`}(e)};function ev(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t,r,n,o,a,s,u=arguments.length,c=Array(u>1?u-1:0),d=1;d{let t=w.colorSchemes[e].palette,r=e=>{let r=e.split("-"),n=r[1],o=r[2];return y(e,t[n][o])};if("light"===e?(ep(t.common,"background","#fff"),ep(t.common,"onBackground","#000")):(ep(t.common,"background","#000"),ep(t.common,"onBackground","#fff")),function(e,t){t.forEach(t=>{e[t]||(e[t]={})})}(t,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),"light"===e){ep(t.Alert,"errorColor",(0,f.q8)(t.error.light,.6)),ep(t.Alert,"infoColor",(0,f.q8)(t.info.light,.6)),ep(t.Alert,"successColor",(0,f.q8)(t.success.light,.6)),ep(t.Alert,"warningColor",(0,f.q8)(t.warning.light,.6)),ep(t.Alert,"errorFilledBg",r("palette-error-main")),ep(t.Alert,"infoFilledBg",r("palette-info-main")),ep(t.Alert,"successFilledBg",r("palette-success-main")),ep(t.Alert,"warningFilledBg",r("palette-warning-main")),ep(t.Alert,"errorFilledColor",eh(()=>x.getContrastText(t.error.main))),ep(t.Alert,"infoFilledColor",eh(()=>x.getContrastText(t.info.main))),ep(t.Alert,"successFilledColor",eh(()=>x.getContrastText(t.success.main))),ep(t.Alert,"warningFilledColor",eh(()=>x.getContrastText(t.warning.main))),ep(t.Alert,"errorStandardBg",(0,f.ux)(t.error.light,.9)),ep(t.Alert,"infoStandardBg",(0,f.ux)(t.info.light,.9)),ep(t.Alert,"successStandardBg",(0,f.ux)(t.success.light,.9)),ep(t.Alert,"warningStandardBg",(0,f.ux)(t.warning.light,.9)),ep(t.Alert,"errorIconColor",r("palette-error-main")),ep(t.Alert,"infoIconColor",r("palette-info-main")),ep(t.Alert,"successIconColor",r("palette-success-main")),ep(t.Alert,"warningIconColor",r("palette-warning-main")),ep(t.AppBar,"defaultBg",r("palette-grey-100")),ep(t.Avatar,"defaultBg",r("palette-grey-400")),ep(t.Button,"inheritContainedBg",r("palette-grey-300")),ep(t.Button,"inheritContainedHoverBg",r("palette-grey-A100")),ep(t.Chip,"defaultBorder",r("palette-grey-400")),ep(t.Chip,"defaultAvatarColor",r("palette-grey-700")),ep(t.Chip,"defaultIconColor",r("palette-grey-700")),ep(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ep(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ep(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ep(t.LinearProgress,"primaryBg",(0,f.ux)(t.primary.main,.62)),ep(t.LinearProgress,"secondaryBg",(0,f.ux)(t.secondary.main,.62)),ep(t.LinearProgress,"errorBg",(0,f.ux)(t.error.main,.62)),ep(t.LinearProgress,"infoBg",(0,f.ux)(t.info.main,.62)),ep(t.LinearProgress,"successBg",(0,f.ux)(t.success.main,.62)),ep(t.LinearProgress,"warningBg",(0,f.ux)(t.warning.main,.62)),ep(t.Skeleton,"bg","rgba(".concat(r("palette-text-primaryChannel")," / 0.11)")),ep(t.Slider,"primaryTrack",(0,f.ux)(t.primary.main,.62)),ep(t.Slider,"secondaryTrack",(0,f.ux)(t.secondary.main,.62)),ep(t.Slider,"errorTrack",(0,f.ux)(t.error.main,.62)),ep(t.Slider,"infoTrack",(0,f.ux)(t.info.main,.62)),ep(t.Slider,"successTrack",(0,f.ux)(t.success.main,.62)),ep(t.Slider,"warningTrack",(0,f.ux)(t.warning.main,.62));let e=(0,f.fk)(t.background.default,.8);ep(t.SnackbarContent,"bg",e),ep(t.SnackbarContent,"color",eh(()=>x.getContrastText(e))),ep(t.SpeedDialAction,"fabHoverBg",(0,f.fk)(t.background.paper,.15)),ep(t.StepConnector,"border",r("palette-grey-400")),ep(t.StepContent,"border",r("palette-grey-400")),ep(t.Switch,"defaultColor",r("palette-common-white")),ep(t.Switch,"defaultDisabledColor",r("palette-grey-100")),ep(t.Switch,"primaryDisabledColor",(0,f.ux)(t.primary.main,.62)),ep(t.Switch,"secondaryDisabledColor",(0,f.ux)(t.secondary.main,.62)),ep(t.Switch,"errorDisabledColor",(0,f.ux)(t.error.main,.62)),ep(t.Switch,"infoDisabledColor",(0,f.ux)(t.info.main,.62)),ep(t.Switch,"successDisabledColor",(0,f.ux)(t.success.main,.62)),ep(t.Switch,"warningDisabledColor",(0,f.ux)(t.warning.main,.62)),ep(t.TableCell,"border",(0,f.ux)((0,f.zp)(t.divider,1),.88)),ep(t.Tooltip,"bg",(0,f.zp)(t.grey[700],.92))}else{ep(t.Alert,"errorColor",(0,f.ux)(t.error.light,.6)),ep(t.Alert,"infoColor",(0,f.ux)(t.info.light,.6)),ep(t.Alert,"successColor",(0,f.ux)(t.success.light,.6)),ep(t.Alert,"warningColor",(0,f.ux)(t.warning.light,.6)),ep(t.Alert,"errorFilledBg",r("palette-error-dark")),ep(t.Alert,"infoFilledBg",r("palette-info-dark")),ep(t.Alert,"successFilledBg",r("palette-success-dark")),ep(t.Alert,"warningFilledBg",r("palette-warning-dark")),ep(t.Alert,"errorFilledColor",eh(()=>Z.getContrastText(t.error.dark))),ep(t.Alert,"infoFilledColor",eh(()=>Z.getContrastText(t.info.dark))),ep(t.Alert,"successFilledColor",eh(()=>Z.getContrastText(t.success.dark))),ep(t.Alert,"warningFilledColor",eh(()=>Z.getContrastText(t.warning.dark))),ep(t.Alert,"errorStandardBg",(0,f.q8)(t.error.light,.9)),ep(t.Alert,"infoStandardBg",(0,f.q8)(t.info.light,.9)),ep(t.Alert,"successStandardBg",(0,f.q8)(t.success.light,.9)),ep(t.Alert,"warningStandardBg",(0,f.q8)(t.warning.light,.9)),ep(t.Alert,"errorIconColor",r("palette-error-main")),ep(t.Alert,"infoIconColor",r("palette-info-main")),ep(t.Alert,"successIconColor",r("palette-success-main")),ep(t.Alert,"warningIconColor",r("palette-warning-main")),ep(t.AppBar,"defaultBg",r("palette-grey-900")),ep(t.AppBar,"darkBg",r("palette-background-paper")),ep(t.AppBar,"darkColor",r("palette-text-primary")),ep(t.Avatar,"defaultBg",r("palette-grey-600")),ep(t.Button,"inheritContainedBg",r("palette-grey-800")),ep(t.Button,"inheritContainedHoverBg",r("palette-grey-700")),ep(t.Chip,"defaultBorder",r("palette-grey-700")),ep(t.Chip,"defaultAvatarColor",r("palette-grey-300")),ep(t.Chip,"defaultIconColor",r("palette-grey-300")),ep(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ep(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ep(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ep(t.LinearProgress,"primaryBg",(0,f.q8)(t.primary.main,.5)),ep(t.LinearProgress,"secondaryBg",(0,f.q8)(t.secondary.main,.5)),ep(t.LinearProgress,"errorBg",(0,f.q8)(t.error.main,.5)),ep(t.LinearProgress,"infoBg",(0,f.q8)(t.info.main,.5)),ep(t.LinearProgress,"successBg",(0,f.q8)(t.success.main,.5)),ep(t.LinearProgress,"warningBg",(0,f.q8)(t.warning.main,.5)),ep(t.Skeleton,"bg","rgba(".concat(r("palette-text-primaryChannel")," / 0.13)")),ep(t.Slider,"primaryTrack",(0,f.q8)(t.primary.main,.5)),ep(t.Slider,"secondaryTrack",(0,f.q8)(t.secondary.main,.5)),ep(t.Slider,"errorTrack",(0,f.q8)(t.error.main,.5)),ep(t.Slider,"infoTrack",(0,f.q8)(t.info.main,.5)),ep(t.Slider,"successTrack",(0,f.q8)(t.success.main,.5)),ep(t.Slider,"warningTrack",(0,f.q8)(t.warning.main,.5));let e=(0,f.fk)(t.background.default,.98);ep(t.SnackbarContent,"bg",e),ep(t.SnackbarContent,"color",eh(()=>Z.getContrastText(e))),ep(t.SpeedDialAction,"fabHoverBg",(0,f.fk)(t.background.paper,.15)),ep(t.StepConnector,"border",r("palette-grey-600")),ep(t.StepContent,"border",r("palette-grey-600")),ep(t.Switch,"defaultColor",r("palette-grey-300")),ep(t.Switch,"defaultDisabledColor",r("palette-grey-600")),ep(t.Switch,"primaryDisabledColor",(0,f.q8)(t.primary.main,.55)),ep(t.Switch,"secondaryDisabledColor",(0,f.q8)(t.secondary.main,.55)),ep(t.Switch,"errorDisabledColor",(0,f.q8)(t.error.main,.55)),ep(t.Switch,"infoDisabledColor",(0,f.q8)(t.info.main,.55)),ep(t.Switch,"successDisabledColor",(0,f.q8)(t.success.main,.55)),ep(t.Switch,"warningDisabledColor",(0,f.q8)(t.warning.main,.55)),ep(t.TableCell,"border",(0,f.q8)((0,f.zp)(t.divider,1),.68)),ep(t.Tooltip,"bg",(0,f.zp)(t.grey[700],.92))}em(t.background,"default"),em(t.common,"background"),em(t.common,"onBackground"),em(t,"divider"),Object.keys(t).forEach(e=>{let r=t[e];r&&"object"==typeof r&&(r.main&&ep(t[e],"mainChannel",(0,f.LR)(ef(r.main))),r.light&&ep(t[e],"lightChannel",(0,f.LR)(ef(r.light))),r.dark&&ep(t[e],"darkChannel",(0,f.LR)(ef(r.dark))),r.contrastText&&ep(t[e],"contrastTextChannel",(0,f.LR)(ef(r.contrastText))),"text"===e&&(em(t[e],"primary"),em(t[e],"secondary")),"action"===e&&(r.active&&em(t[e],"active"),r.selected&&em(t[e],"selected")))})});let{vars:S,generateCssVars:F}=ea(w=c.reduce((e,t)=>(0,g.Z)(e,t),w),{prefix:m,shouldSkipGeneratingVar:v});return w.vars=S,w.generateCssVars=F,w.shouldSkipGeneratingVar=v,w.unstable_sxConfig=(0,i.Z)({},ei.Z,null==b?void 0:b.unstable_sxConfig),w.unstable_sx=function(e){return(0,K.Z)({sx:e,theme:this})},w}var eb=r(97638),ey=e=>[...[...Array(24)].map((t,r)=>"--".concat(e?"".concat(e,"-"):"","overlays-").concat(r+1)),"--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkBg"),"--".concat(e?"".concat(e,"-"):"","palette-AppBar-darkColor")];let eD=ev(),{CssVarsProvider:ex,useColorScheme:eC,getInitColorSchemeScript:eZ}=function(e){let{themeId:t,theme:r={},attribute:n=V,modeStorageKey:a=G,colorSchemeStorageKey:s=Y,defaultMode:u="light",defaultColorScheme:c,disableTransitionOnChange:d=!1,resolveTheme:p,excludeVariablesFromRoot:f}=e;r.colorSchemes&&("string"!=typeof c||r.colorSchemes[c])&&("object"!=typeof c||r.colorSchemes[null==c?void 0:c.light])&&("object"!=typeof c||r.colorSchemes[null==c?void 0:c.dark])||console.error(`MUI: \`${c}\` does not exist in \`theme.colorSchemes\`.`);let m=F.createContext(void 0),h="string"==typeof c?c:c.light,v="string"==typeof c?c:c.dark;return{CssVarsProvider:function({children:e,theme:o=r,modeStorageKey:h=a,colorSchemeStorageKey:v=s,attribute:b=n,defaultMode:y=u,defaultColorScheme:D=c,disableTransitionOnChange:x=d,storageWindow:C="undefined"==typeof window?void 0:window,documentNode:Z="undefined"==typeof document?void 0:document,colorSchemeNode:w="undefined"==typeof document?void 0:document.documentElement,colorSchemeSelector:S=":root",disableNestedContext:k=!1,disableStyleSheetGeneration:M=!1}){let j=F.useRef(!1),T=E(),A=F.useContext(m),N=!!A&&!k,L=o[t],R=L||o,{colorSchemes:B={},components:O={},generateCssVars:z=()=>({vars:{},css:{}}),cssVarPrefix:W}=R,_=(0,l.Z)(R,X),U=Object.keys(B),V="string"==typeof D?D:D.light,K="string"==typeof D?D:D.dark,{mode:J,setMode:ee,systemMode:et,lightColorScheme:er,darkColorScheme:en,colorScheme:eo,setColorScheme:ea}=function(e){let{defaultMode:t="light",defaultLightColorScheme:r,defaultDarkColorScheme:n,supportedColorSchemes:o=[],modeStorageKey:a=G,colorSchemeStorageKey:l=Y,storageWindow:s="undefined"==typeof window?void 0:window}=e,u=o.join(","),[c,d]=F.useState(()=>{let e=Q(a,t),o=Q(`${l}-light`,r),i=Q(`${l}-dark`,n);return{mode:e,systemMode:$(e),lightColorScheme:o,darkColorScheme:i}}),p=q(c,e=>"light"===e?c.lightColorScheme:"dark"===e?c.darkColorScheme:void 0),f=F.useCallback(e=>{d(r=>{if(e===r.mode)return r;let n=e||t;try{localStorage.setItem(a,n)}catch(e){}return(0,i.Z)({},r,{mode:n,systemMode:$(n)})})},[a,t]),m=F.useCallback(e=>{e?"string"==typeof e?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):d(t=>{let r=(0,i.Z)({},t);return q(t,t=>{try{localStorage.setItem(`${l}-${t}`,e)}catch(e){}"light"===t&&(r.lightColorScheme=e),"dark"===t&&(r.darkColorScheme=e)}),r}):d(t=>{let o=(0,i.Z)({},t),a=null===e.light?r:e.light,s=null===e.dark?n:e.dark;if(a){if(u.includes(a)){o.lightColorScheme=a;try{localStorage.setItem(`${l}-light`,a)}catch(e){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)}if(s){if(u.includes(s)){o.darkColorScheme=s;try{localStorage.setItem(`${l}-dark`,s)}catch(e){}}else console.error(`\`${s}\` does not exist in \`theme.colorSchemes\`.`)}return o}):d(e=>{try{localStorage.setItem(`${l}-light`,r),localStorage.setItem(`${l}-dark`,n)}catch(e){}return(0,i.Z)({},e,{lightColorScheme:r,darkColorScheme:n})})},[u,l,r,n]),h=F.useCallback(e=>{"system"===c.mode&&d(t=>(0,i.Z)({},t,{systemMode:null!=e&&e.matches?"dark":"light"}))},[c.mode]),g=F.useRef(h);return g.current=h,F.useEffect(()=>{let e=(...e)=>g.current(...e),t=window.matchMedia("(prefers-color-scheme: dark)");return t.addListener(e),e(t),()=>t.removeListener(e)},[]),F.useEffect(()=>{let e=e=>{let r=e.newValue;"string"==typeof e.key&&e.key.startsWith(l)&&(!r||u.match(r))&&(e.key.endsWith("light")&&m({light:r}),e.key.endsWith("dark")&&m({dark:r})),e.key===a&&(!r||["light","dark","system"].includes(r))&&f(r||t)};if(s)return s.addEventListener("storage",e),()=>s.removeEventListener("storage",e)},[m,f,a,l,u,t,s]),(0,i.Z)({},c,{colorScheme:p,setMode:f,setColorScheme:m})}({supportedColorSchemes:U,defaultLightColorScheme:V,defaultDarkColorScheme:K,modeStorageKey:h,colorSchemeStorageKey:v,defaultMode:y,storageWindow:C}),ei=J,el=eo;N&&(ei=A.mode,el=A.colorScheme);let es=ei||("system"===y?u:y),eu=el||("dark"===es?K:V),{css:ec,vars:ed}=z(),ep=(0,i.Z)({},_,{components:O,colorSchemes:B,cssVarPrefix:W,vars:ed,getColorSchemeSelector:e=>`[${b}="${e}"] &`}),ef={},em={};Object.entries(B).forEach(([e,t])=>{let{css:r,vars:n}=z(e);if(ep.vars=(0,g.Z)(ep.vars,n),e===eu&&(Object.keys(t).forEach(e=>{t[e]&&"object"==typeof t[e]?ep[e]=(0,i.Z)({},ep[e],t[e]):ep[e]=t[e]}),ep.palette&&(ep.palette.colorScheme=e)),e===("string"==typeof D?D:"dark"===y?D.dark:D.light)){if(f){let t={};f(W).forEach(e=>{t[e]=r[e],delete r[e]}),ef[`[${b}="${e}"]`]=t}ef[`${S}, [${b}="${e}"]`]=r}else em[`${":root"===S?"":S}[${b}="${e}"]`]=r}),ep.vars=(0,g.Z)(ep.vars,ed),F.useEffect(()=>{el&&w&&w.setAttribute(b,el)},[el,b,w]),F.useEffect(()=>{let e;if(x&&j.current&&Z){let t=Z.createElement("style");t.appendChild(Z.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),Z.head.appendChild(t),window.getComputedStyle(Z.body),e=setTimeout(()=>{Z.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[el,x,Z]),F.useEffect(()=>(j.current=!0,()=>{j.current=!1}),[]);let eh=F.useMemo(()=>({mode:ei,systemMode:et,setMode:ee,lightColorScheme:er,darkColorScheme:en,colorScheme:el,setColorScheme:ea,allColorSchemes:U}),[U,el,en,er,ei,ea,ee,et]),eg=!0;(M||N&&(null==T?void 0:T.cssVarPrefix)===W)&&(eg=!1);let ev=(0,I.jsxs)(F.Fragment,{children:[eg&&(0,I.jsxs)(F.Fragment,{children:[(0,I.jsx)(H.Z,{styles:{[S]:ec}}),(0,I.jsx)(H.Z,{styles:ef}),(0,I.jsx)(H.Z,{styles:em})]}),(0,I.jsx)(P,{themeId:L?t:void 0,theme:p?p(ep):ep,children:e})]});return N?ev:(0,I.jsx)(m.Provider,{value:eh,children:ev})},useColorScheme:()=>{let e=F.useContext(m);if(!e)throw Error((0,o.Z)(19));return e},getInitColorSchemeScript:e=>(function(e){let{defaultMode:t="light",defaultLightColorScheme:r="light",defaultDarkColorScheme:n="dark",modeStorageKey:o=G,colorSchemeStorageKey:a=Y,attribute:i=V,colorSchemeNode:l="document.documentElement"}=e||{};return(0,I.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function() { -try { - var mode = localStorage.getItem('${o}') || '${t}'; - var colorScheme = ''; - if (mode === 'system') { - // handle system mode - var mql = window.matchMedia('(prefers-color-scheme: dark)'); - if (mql.matches) { - colorScheme = localStorage.getItem('${a}-dark') || '${n}'; - } else { - colorScheme = localStorage.getItem('${a}-light') || '${r}'; - } - } - if (mode === 'light') { - colorScheme = localStorage.getItem('${a}-light') || '${r}'; - } - if (mode === 'dark') { - colorScheme = localStorage.getItem('${a}-dark') || '${n}'; - } - if (colorScheme) { - ${l}.setAttribute('${i}', colorScheme); - } -} catch(e){}})();`}},"mui-color-scheme-init")})((0,i.Z)({attribute:n,colorSchemeStorageKey:s,defaultMode:u,defaultLightColorScheme:h,defaultDarkColorScheme:v,modeStorageKey:a},e))}}({themeId:a.Z,theme:eD,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>{let t=(0,i.Z)({},e,{typography:(0,eb.Z)(e.palette,e.typography)});return t.unstable_sx=function(e){return(0,K.Z)({sx:e,theme:this})},t},excludeVariablesFromRoot:ey});var ew=r(9393);function eS(){throw Error((0,o.Z)(20))}},73945:function(e){var t,r;t=function(){"use strict";let e,t;var r,n=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,l=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,u=e=>{throw TypeError(e)},c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),d=(e,t)=>{for(var r in t)o(e,r,{get:t[r],enumerable:!0})},p=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let l of i(t))s.call(e,l)||l===r||o(e,l,{get:()=>t[l],enumerable:!(n=a(t,l))||n.enumerable});return e},f=(e,t,r)=>(r=null!=e?n(l(e)):{},p(!t&&e&&e.__esModule?r:o(r,"default",{value:e,enumerable:!0}),e)),m=e=>p(o({},"__esModule",{value:!0}),e),h=(e,t,r)=>t.has(e)||u("Cannot "+r),g=(e,t,r)=>t.has(e)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),v=(e,t,r)=>(h(e,t,"access private method"),r),b=c((e,t)=>{var r=new Proxy(String,{get:()=>r});t.exports=r}),y={};d(y,{default:()=>x,shouldHighlight:()=>D});var D,x,C=(e=()=>{D=()=>!1,x=String},()=>(e&&(t=e(e=0)),t)),Z=c((e,t)=>{var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r}};t.exports=n(),t.exports.createColors=n}),w=c(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=u,e.default=function(e,t,r,n={}){if(!l){l=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";Error(e).name="DeprecationWarning",console.warn(Error(e))}return u(e,{start:{column:r=Math.max(r,0),line:t}},n)};var t=(C(),m(y)),r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&({}).hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(Z(),!0);function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}var o,a=r.default,i=(e,t)=>r=>e(t(r)),l=!1,s=/\r\n|[\n\r\u2028\u2029]/;function u(e,n,l={}){let u=(l.highlightCode||l.forceColor)&&(0,t.shouldHighlight)(l),c=l.forceColor?(null!=o||(o=(0,r.createColors)(!0)),o):a,d={gutter:c.gray,marker:i(c.red,c.bold),message:i(c.red,c.bold)},p=(e,t)=>u?e(t):t,{start:f,end:m,markerLines:h}=function(e,t,r){let n=Object.assign({column:0,line:-1},e.start),o=Object.assign({},n,e.end),{linesAbove:a=2,linesBelow:i=3}=r||{},l=n.line,s=n.column,u=o.line,c=o.column,d=Math.max(l-(a+1),0),p=Math.min(t.length,u+i);-1===l&&(d=0),-1===u&&(p=t.length);let f=u-l,m={};if(f)for(let e=0;e<=f;e++){let r=e+l;if(s){if(0===e){let e=t[r-1].length;m[r]=[s,e-s+1]}else if(e===f)m[r]=[0,c];else{let n=t[r-e].length;m[r]=[0,n]}}else m[r]=!0}else s===c?s?m[l]=[s,0]:m[l]=!0:m[l]=[s,c-s];return{start:d,end:p,markerLines:m}}(n,e.split(s),l),g=n.start&&"number"==typeof n.start.column,v=String(m).length,b=(u?(0,t.default)(e,l):e).split(s,m).slice(f,m).map((e,t)=>{let r=f+1+t,n=` ${` ${r}`.slice(-v)} |`,o=h[r],a=!h[r+1];if(!o)return` ${p(d.gutter,n)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(o)){let r=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),i=o[1]||1;t=[` - `,p(d.gutter,n.replace(/\d/g," "))," ",r,p(d.marker,"^").repeat(i)].join(""),a&&l.message&&(t+=" "+p(d.message,l.message))}return[p(d.marker,">"),p(d.gutter,n),e.length>0?` ${e}`:"",t].join("")}}).join(` -`);return l.message&&!g&&(b=`${" ".repeat(v+1)}${l.message} -${b}`),u?c.reset(b):b}}),S={};d(S,{__debug:()=>rG,check:()=>rU,doc:()=>rx,format:()=>r_,formatWithCursor:()=>rW,getSupportInfo:()=>rH,util:()=>rF,version:()=>rS});var F=(e,t,r,n)=>{if(!(e&&null==t))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)};function k(){}k.prototype={diff:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var a=this;function i(e){return o?(setTimeout(function(){o(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var l=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,c=l+s;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var d=null!==(r=n.timeout)&&void 0!==r?r:1/0,p=Date.now()+d,f=[{oldPos:-1,lastComponent:void 0}],m=this.extractCommon(f[0],t,e,0);if(f[0].oldPos+1>=s&&m+1>=l)return i([{value:this.join(t),count:t.length}]);var h=-1/0,g=1/0;function v(){for(var r=Math.max(h,-u);r<=Math.min(g,u);r+=2){var n=void 0,o=f[r-1],c=f[r+1];o&&(f[r-1]=void 0);var d=!1;if(c){var p=c.oldPos-r;d=c&&0<=p&&p=s&&m+1>=l)return i(function(e,t,r,n,o){for(var a,i=[];t;)i.push(t),a=t.previousComponent,delete t.previousComponent,t=a;i.reverse();for(var l=0,s=i.length,u=0,c=0;le.length?r:e}),d.value=e.join(f)}else d.value=e.join(r.slice(u,u+d.count));u+=d.count,d.added||(c+=d.count)}}var m=i[s-1];return s>1&&"string"==typeof m.value&&(m.added||m.removed)&&e.equals("",m.value)&&(i[s-2].value+=m.value,i.pop()),i}(a,n.lastComponent,t,e,a.useLongestToken));f[r]=n,n.oldPos+1>=s&&(g=Math.min(g,r-1)),m+1>=l&&(h=Math.max(h,r+1))}u++}if(o)!function e(){setTimeout(function(){if(u>c||Date.now()>p)return o();v()||e()},0)}();else for(;u<=c&&Date.now()<=p;){var b=v();if(b)return b}},addToPath:function(e,t,r,n){var o=e.lastComponent;return o&&o.added===t&&o.removed===r?{oldPos:e.oldPos+n,lastComponent:{count:o.count+1,added:t,removed:r,previousComponent:o.previousComponent}}:{oldPos:e.oldPos+n,lastComponent:{count:1,added:t,removed:r,previousComponent:o}}},extractCommon:function(e,t,r,n){for(var o=t.length,a=r.length,i=e.oldPos,l=i-n,s=0;l+1"u"?r:t}:n;return"string"==typeof e?e:JSON.stringify(function e(t,r,n,o,a){for(r=r||[],n=n||[],o&&(t=o(a,t)),i=0;inew Intl.ListFormat("en-US",{type:"disjunction"}).format(e),er=class extends Error{name="InvalidDocError";constructor(e){super(function(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(ee(e))throw Error("doc is valid.");let r=Object.prototype.toString.call(e);if("[object Object]"!==r)return`Unexpected doc '${r}'.`;let n=et([...J].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${n}.`}(e)),this.doc=e}},en={},eo=function(e,t,r,n){let o=[e];for(;o.length>0;){let e=o.pop();if(e===en){r(o.pop());continue}r&&o.push(e,en);let a=ee(e);if(!a)throw new er(e);if((null==t?void 0:t(e))!==!1)switch(a){case O:case G:{let t=a===O?e:e.parts;for(let e=t.length,r=e-1;r>=0;--r)o.push(t[r]);break}case Y:o.push(e.flatContents,e.breakContents);break;case H:if(n&&e.expandedStates)for(let t=e.expandedStates.length,r=t-1;r>=0;--r)o.push(e.expandedStates[r]);else o.push(e.contents);break;case _:case W:case V:case X:case $:o.push(e.contents);break;case B:case z:case U:case q:case Q:case K:break;default:throw new er(e)}}},ea=()=>{};function ei(e){return ea(e),{type:W,contents:e}}function el(e,t){return ea(t),{type:_,contents:t,n:e}}function es(e,t={}){return ea(e),ea(t.expandedStates,!0),{type:H,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function eu(e){return ea(e),{type:G,parts:e}}function ec(e){return ea(e),{type:$,contents:e}}var ed={type:K},ep={type:Q,hard:!0},ef={type:Q,hard:!0,literal:!0},em={type:Q},eh=[ep,ed],eg=[ef,ed],ev={type:z};function eb(e,t){ea(e),ea(t);let r=[];for(let n=0;n0){for(let e=0;e{if(!(e&&null==t))return Array.isArray(t)||"string"==typeof t?t[r<0?t.length+r:r]:t.at(r)},ex=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,eC=e=>{var t;return!(12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510||(t=e)>=4352&&t<=4447||8986===t||8987===t||9001===t||9002===t||t>=9193&&t<=9196||9200===t||9203===t||9725===t||9726===t||9748===t||9749===t||t>=9800&&t<=9811||9855===t||9875===t||9889===t||9898===t||9899===t||9917===t||9918===t||9924===t||9925===t||9934===t||9940===t||9962===t||9970===t||9971===t||9973===t||9978===t||9981===t||9989===t||9994===t||9995===t||10024===t||10060===t||10062===t||t>=10067&&t<=10069||10071===t||t>=10133&&t<=10135||10160===t||10175===t||11035===t||11036===t||11088===t||11093===t||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||94192===t||94193===t||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101632&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||110589===t||110590===t||t>=110592&&t<=110882||110898===t||t>=110928&&t<=110930||110933===t||t>=110948&&t<=110951||t>=110960&&t<=111355||126980===t||127183===t||127374===t||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||127568===t||127569===t||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||127988===t||t>=127992&&t<=128062||128064===t||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||128378===t||128405===t||128406===t||128420===t||t>=128507&&t<=128591||t>=128640&&t<=128709||128716===t||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||128747===t||128748===t||t>=128756&&t<=128764||t>=128992&&t<=129003||129008===t||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129672||t>=129680&&t<=129725||t>=129727&&t<=129733||t>=129742&&t<=129755||t>=129760&&t<=129768||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141)},eZ=/[^\x20-\x7F]/u,ew=function(e){if(!e)return 0;if(!eZ.test(e))return e.length;e=e.replace(ex()," ");let t=0;for(let r of e){let e=r.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=eC(e)?1:2)}return t};function eS(e,t){if("string"==typeof e)return t(e);let r=new Map;return function e(n){if(r.has(n))return r.get(n);let o=function(r){switch(ee(r)){case O:return t(r.map(e));case G:return t({...r,parts:r.parts.map(e)});case Y:return t({...r,breakContents:e(r.breakContents),flatContents:e(r.flatContents)});case H:{let{expandedStates:n,contents:o}=r;return o=n?(n=n.map(e))[0]:e(o),t({...r,contents:o,expandedStates:n})}case _:case W:case V:case X:case $:return t({...r,contents:e(r.contents)});case B:case z:case U:case q:case Q:case K:return t(r);default:throw new er(r)}}(n);return r.set(n,o),o}(e)}function eF(e,t,r){let n=r,o=!1;return eo(e,function(e){if(o)return!1;let r=t(e);void 0!==r&&(o=!0,n=r)}),n}function ek(e){if(e.type===H&&e.break||e.type===Q&&e.hard||e.type===K)return!0}function eE(e){if(e.length>0){let t=eD(!1,e,-1);t.expandedStates||t.break||(t.break="propagated")}return null}function eM(e){return e.type!==Q||e.hard?e.type===Y?e.flatContents:e:e.soft?"":" "}function eI(e){for(e=[...e];e.length>=2&&eD(!1,e,-2).type===Q&&eD(!1,e,-1).type===K;)e.length-=2;if(e.length>0){let t=ej(eD(!1,e,-1));e[e.length-1]=t}return e}function ej(e){switch(ee(e)){case W:case V:case H:case $:case X:{let t=ej(e.contents);return{...e,contents:t}}case Y:return{...e,breakContents:ej(e.breakContents),flatContents:ej(e.flatContents)};case G:return{...e,parts:eI(e.parts)};case O:return eI(e);case B:return e.replace(/[\n\r]*$/u,"");case _:case z:case U:case q:case Q:case K:break;default:throw new er(e)}return e}function eT(e){return ej(eS(e,e=>(function(e){switch(ee(e)){case G:if(e.parts.every(e=>""===e))return"";break;case H:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===H&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case _:case W:case V:case $:if(!e.contents)return"";break;case Y:if(!e.flatContents&&!e.breakContents)return"";break;case O:{let t=[];for(let r of e){if(!r)continue;let[e,...n]=Array.isArray(r)?r:[r];"string"==typeof e&&"string"==typeof eD(!1,t,-1)?t[t.length-1]+=e:t.push(e),t.push(...n)}return 0===t.length?"":1===t.length?t[0]:t}case B:case z:case U:case q:case Q:case X:case K:break;default:throw new er(e)}return e})(e)))}function eA(e){if(e.type===Q)return!0}function eN(e,t){return e.type===X?{...e,contents:t(e.contents)}:t(e)}var eL=Symbol("MODE_BREAK"),eP=Symbol("MODE_FLAT"),eR=Symbol("cursor");function eB(){return{value:"",length:0,queue:[]}}function eO(e,t,r){let n="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],o="",a=0,i=0,l=0;for(let e of n)switch(e.type){case"indent":c(),r.useTabs?s(1):u(r.tabWidth);break;case"stringAlign":c(),o+=e.n,a+=e.n.length;break;case"numberAlign":i+=1,l+=e.n;break;default:throw Error(`Unexpected type '${e.type}'`)}return d(),{...e,value:o,length:a,queue:n};function s(e){o+=" ".repeat(e),a+=r.tabWidth*e}function u(e){o+=" ".repeat(e),a+=e}function c(){r.useTabs?(i>0&&s(i),i=0,l=0):d()}function d(){l>0&&u(l),i=0,l=0}}function ez(e){let t=0,r=0,n=e.length;e:for(;n--;){let o=e[n];if(o===eR){r++;continue}for(let r=o.length-1;r>=0;r--){let a=o[r];if(" "===a||" "===a)t++;else{e[n]=o.slice(0,r+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(eR);return t}function eW(e,t,r,n,o,a){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,l=[e],s=[];for(;r>=0;){if(0===l.length){if(0===i)return!0;l.push(t[--i]);continue}let{mode:e,doc:u}=l.pop(),c=ee(u);switch(c){case B:s.push(u),r-=ew(u);break;case O:case G:{let t=c===O?u:u.parts;for(let r=t.length-1;r>=0;r--)l.push({mode:e,doc:t[r]});break}case W:case _:case V:case X:l.push({mode:e,doc:u.contents});break;case U:r+=ez(s);break;case H:{if(a&&u.break)return!1;let t=u.break?eL:e,r=u.expandedStates&&t===eL?eD(!1,u.expandedStates,-1):u.contents;l.push({mode:t,doc:r});break}case Y:{let t=(u.groupId?o[u.groupId]||eP:e)===eL?u.breakContents:u.flatContents;t&&l.push({mode:e,doc:t});break}case Q:if(e===eL||u.hard)return!0;u.soft||(s.push(" "),r--);break;case $:n=!0;break;case q:if(n)return!1}}return!1}function e_(e,t){var r;let n,o,a={},i=t.printWidth,l=P(t.endOfLine),s=0,u=[{ind:eB(),mode:eL,doc:e}],c=[],d=!1,p=[],f=0;for(n=new Set,o=[],eo(e,function(e){if(e.type===K&&eE(o),e.type===H){if(o.push(e),n.has(e))return!1;n.add(e)}},function(e){e.type===H&&o.pop().break&&eE(o)},!0);u.length>0;){let{ind:e,mode:n,doc:o}=u.pop();switch(ee(o)){case B:{let e=l!==` -`?F(!1,o,` -`,l):o;c.push(e),u.length>0&&(s+=ew(e));break}case O:for(let t=o.length-1;t>=0;t--)u.push({ind:e,mode:n,doc:o[t]});break;case z:if(f>=2)throw Error("There are too many 'cursor' in doc.");c.push(eR),f++;break;case W:u.push({ind:eO(e,{type:"indent"},t),mode:n,doc:o.contents});break;case _:u.push({ind:(r=o.n)===Number.NEGATIVE_INFINITY?e.root||eB():r<0?eO(e,{type:"dedent"},t):r?"root"===r.type?{...e,root:e}:eO(e,{type:"string"==typeof r?"stringAlign":"numberAlign",n:r},t):e,mode:n,doc:o.contents});break;case U:s-=ez(c);break;case H:switch(n){case eP:if(!d){u.push({ind:e,mode:o.break?eL:eP,doc:o.contents});break}case eL:{d=!1;let t={ind:e,mode:eP,doc:o.contents},r=i-s,n=p.length>0;if(!o.break&&eW(t,u,r,n,a))u.push(t);else if(o.expandedStates){let t=eD(!1,o.expandedStates,-1);if(o.break)u.push({ind:e,mode:eL,doc:t});else for(let i=1;i=o.expandedStates.length){u.push({ind:e,mode:eL,doc:t});break}else{let t={ind:e,mode:eP,doc:o.expandedStates[i]};if(eW(t,u,r,n,a)){u.push(t);break}}}else u.push({ind:e,mode:eL,doc:o.contents})}}o.id&&(a[o.id]=eD(!1,u,-1).mode);break;case G:{let t=i-s,{parts:r}=o;if(0===r.length)break;let[l,c]=r,d={ind:e,mode:eP,doc:l},f={ind:e,mode:eL,doc:l},m=eW(d,[],t,p.length>0,a,!0);if(1===r.length){m?u.push(d):u.push(f);break}let h={ind:e,mode:eP,doc:c},g={ind:e,mode:eL,doc:c};if(2===r.length){m?u.push(h,d):u.push(g,f);break}r.splice(0,2);let v={ind:e,mode:n,doc:eu(r)};eW({ind:e,mode:eP,doc:[l,c,r[0]]},[],t,p.length>0,a,!0)?u.push(v,h,d):m?u.push(v,g,d):u.push(v,g,f);break}case Y:case V:{let t=o.groupId?a[o.groupId]:n;if(t===eL){let t=o.type===Y?o.breakContents:o.negate?o.contents:ei(o.contents);t&&u.push({ind:e,mode:n,doc:t})}if(t===eP){let t=o.type===Y?o.flatContents:o.negate?ei(o.contents):o.contents;t&&u.push({ind:e,mode:n,doc:t})}break}case $:p.push({ind:e,mode:n,doc:o.contents});break;case q:p.length>0&&u.push({ind:e,mode:n,doc:ep});break;case Q:switch(n){case eP:if(o.hard)d=!0;else{o.soft||(c.push(" "),s+=1);break}case eL:if(p.length>0){u.push({ind:e,mode:n,doc:o},...p.reverse()),p.length=0;break}o.literal?e.root?(c.push(l,e.root.value),s=e.root.length):(c.push(l),s=0):(s-=ez(c),c.push(l+e.value),s=e.length)}break;case X:u.push({ind:e,mode:n,doc:o.contents});break;case K:break;default:throw new er(o)}0===u.length&&p.length>0&&(u.push(...p.reverse()),p.length=0)}let m=c.indexOf(eR);if(-1!==m){let e=c.indexOf(eR,m+1),t=c.slice(0,m).join(""),r=c.slice(m+1,e).join("");return{formatted:t+r+c.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:r}}return{formatted:c.join("")}}var eU,eH,eG,eY=function(e,t,r=0){let n=0;for(let o=r;o1?eD(!1,e,-2):null}getValue(){return eD(!1,this.stack,-1)}getNode(e=0){let t=v(this,eU,eH).call(this,e);return -1===t?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:r}=this,{length:n}=r,o=eD(!1,r,-1);for(let e of t)o=o[e],r.push(e,o);try{return e(this)}finally{r.length=n}}callParent(e,t=0){let r=v(this,eU,eH).call(this,t+1),n=this.stack.splice(r+1);try{return e(this)}finally{this.stack.push(...n)}}each(e,...t){let{stack:r}=this,{length:n}=r,o=eD(!1,r,-1);for(let e of t)o=o[e],r.push(e,o);try{for(let t=0;t{r[n]=e(t,n,o)},...t),r}match(...e){let t=this.stack.length-1,r=null,n=this.stack[t--];for(let o of e){if(void 0===n)return!1;let e=null;if("number"==typeof r&&(e=r,r=this.stack[t--],n=this.stack[t--]),o&&!o(n,r,e))return!1;r=this.stack[t--],n=this.stack[t--]}return!0}findAncestor(e){for(let t of v(this,eU,eG).call(this))if(e(t))return t}hasAncestor(e){for(let t of v(this,eU,eG).call(this))if(e(t))return!0;return!1}};eU=new WeakSet,eH=function(e){let{stack:t}=this;for(let r=t.length-1;r>=0;r-=2)if(!Array.isArray(t[r])&&--e<0)return r;return -1},eG=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let r=e[t];Array.isArray(r)||(yield r)}};var e$=new Proxy(()=>{},{get:()=>e$});function*eq(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,o=e=>null!==e&&"object"==typeof e&&n(e);for(let t of r(e)){let r=e[t];if(Array.isArray(r))for(let e of r)o(e)&&(yield e);else o(r)&&(yield r)}}function eQ(e){return(t,r,n)=>{let o=!!(null!=n&&n.backwards);if(!1===r)return!1;let{length:a}=t,i=r;for(;i>=0&&iObject.keys(e).filter(e=>!e4.has(e)),e5=function(e){return e?t=>e(t,e4):e3};function e8(e,t){let r,n;(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=(r=e.type||e.kind||"(unknown type)",(n=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"")).length>20&&(n=n.slice(0,19)+"…"),r+(n?" "+n:""))}function e6(e,t){t.leading=!0,t.trailing=!1,e8(e,t)}function e9(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),e8(e,t)}function e7(e,t){t.leading=!1,t.trailing=!0,e8(e,t)}var te=new WeakMap;function tt(e,t){if(te.has(e))return te.get(e);let{printer:{getCommentChildNodes:r,canAttachComment:n,getVisitorKeys:o},locStart:a,locEnd:i}=t;if(!n)return[];let l=((null==r?void 0:r(e,t))??[...eq(e,{getVisitorKeys:e5(o)})]).flatMap(e=>n(e)?[e]:tt(e,t));return l.sort((e,t)=>a(e)-a(t)||i(e)-i(t)),te.set(e,l),l}var tr=()=>!1,tn=e=>!/[\S\n\u2028\u2029]/u.test(e);function to(e,t){var r,n;let o=e.length;if(0===o)return;let{precedingNode:a,followingNode:i}=e[0],l=t.locStart(i),s;for(s=o;s>0;--s){let{comment:o,precedingNode:u,followingNode:c}=e[s-1];e$.strictEqual(u,a),e$.strictEqual(c,i);let d=t.originalText.slice(t.locEnd(o),l);if((null==(n=(r=t.printer).isGap)?void 0:n.call(r,d,t))??/^[\s(]*$/u.test(d))l=t.locStart(o);else break}for(let[t,{comment:r}]of e.entries())t1&&e.comments.sort((e,r)=>t.locStart(e)-t.locStart(r));e.length=0}function ta(e,t,r){let n=r.locStart(t)-1;for(let t=1;t"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). -The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. -The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment -in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function td({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(e=>e.languages??[]),n=[];for(let o of function(e){let t=[];for(let[r,n]of Object.entries(e)){let e={name:r,...n};Array.isArray(e.default)&&(e.default=eD(!1,e.default,-1).value),t.push(e)}return t}(Object.assign({},...e.map(({options:e})=>e),tc)))!t&&o.deprecated||(Array.isArray(o.choices)&&(t||(o.choices=o.choices.filter(e=>!e.deprecated)),"parser"===o.name&&(o.choices=[...o.choices,...function*(e,t,r){let n=new Set(e.map(e=>e.value));for(let e of t)if(e.parsers){for(let t of e.parsers)if(!n.has(t)){n.add(t);let o=r.find(e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t)),a=e.name;null!=o&&o.name&&(a+=` (plugin: ${o.name})`),yield{value:t,description:a}}}}(o.choices,r,e)])),o.pluginDefaults=Object.fromEntries(e.filter(e=>{var t;return(null==(t=e.defaultOptions)?void 0:t[o.name])!==void 0}).map(e=>[e.name,e.defaultOptions[o.name]])),n.push(o));return{languages:r,options:n}}var tp=e=>String(e).split(/[/\\]/u).pop();function tf(e,t){if(!t)return;let r=tp(t).toLowerCase();return e.find(({filenames:e})=>null==e?void 0:e.some(e=>e.toLowerCase()===r))??e.find(({extensions:e})=>null==e?void 0:e.some(e=>r.endsWith(e)))}var tm=function(e,t){let r=e.plugins.flatMap(e=>e.languages??[]),n=function(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>null==e?void 0:e.includes(t))??e.find(({extensions:e})=>null==e?void 0:e.includes(`.${t}`))}(r,t.language)??tf(r,t.physicalFile)??tf(r,t.file)??void t.physicalFile;return null==n?void 0:n.parsers[0]},th={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(e=>th.value(e)).join(", ")}]`;let t=Object.keys(e);return 0===t.length?"{}":`{ ${t.map(t=>`${th.key(t)}: ${th.value(e[t])}`).join(", ")} }`},pair:({key:e,value:t})=>th.value({[e]:t})},tg=f(b(),1),tv=f(b(),1),tb=Symbol.for("vnopts.VALUE_NOT_EXIST"),ty=Symbol.for("vnopts.VALUE_UNCHANGED"),tD=" ".repeat(2);function tx(e,t,r,n){return`Invalid ${tv.default.red(n.key(e))} value. Expected ${tv.default.blue(r)}, but received ${t===tb?tv.default.gray("nothing"):tv.default.red(n.value(t))}.`}function tC(e,t){if(1===e.length)return e[0];let[r,n]=e,[o,a]=e.map(e=>e.split(` -`,1)[0].length);return o>t&&o>a?n:r}var tZ=f(b(),1),tw=[],tS=[],tF=(e,t,{descriptor:r,logger:n,schemas:o})=>{let a=[`Ignored unknown option ${tZ.default.yellow(r.pair({key:e,value:t}))}.`],i=Object.keys(o).sort().find(t=>3>function(e,t){if(e===t)return 0;let r=e;e.length>t.length&&(e=t,t=r);let n=e.length,o=t.length;for(;n>0&&e.charCodeAt(~-n)===t.charCodeAt(~-o);)n--,o--;let a=0;for(;al?u>l?l+1:u:u>s?s+1:u;return l}(e,t));i&&a.push(`Did you mean ${tZ.default.blue(r.key(i))}?`),n.warn(a.join(" "))},tk=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],tE=class{static create(e){return function(e,t){let r=new e(t),n=Object.create(r);for(let e of tk)e in t&&(n[e]=function(e,t,r){return"function"==typeof e?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}(t[e],r,tE.prototype[e].length));return n}(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,r){return e}preprocess(e,t){return e}postprocess(e,t){return ty}},tM=class extends tE{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},tI=class extends tE{expected(){return"anything"}validate(){return!0}},tj=class extends tE{constructor({valueSchema:e,name:t=e.name,...r}){super({...r,name:t}),this._valueSchema=e}expected(e){let{text:t,list:r}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:r&&{title:"an array of the following values",values:[{list:r}]}}}validate(e,t){if(!Array.isArray(e))return!1;let r=[];for(let n of e){let e=t.normalizeValidateResult(this._valueSchema.validate(n,t),n);!0!==e&&r.push(e.value)}return 0===r.length||{value:r}}deprecated(e,t){let r=[];for(let n of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(n,t),n);!1!==e&&r.push(...e.map(({value:e})=>({value:[e]})))}return r}forward(e,t){let r=[];for(let n of e){let e=t.normalizeForwardResult(this._valueSchema.forward(n,t),n);r.push(...e.map(tT))}return r}redirect(e,t){let r=[],n=[];for(let o of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(o,t),o);"remain"in e&&r.push(e.remain),n.push(...e.redirect.map(tT))}return 0===r.length?{redirect:n}:{redirect:n,remain:r}}overlap(e,t){return e.concat(t)}};function tT({from:e,to:t}){return{from:[e],to:t}}var tA=class extends tE{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};function tN(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,o=["undefined","object","boolean","number","string"];return r!==n?o.indexOf(r)-o.indexOf(n):"string"!==r?Number(e)-Number(t):e.localeCompare(t)}function tL(e){return void 0===e?{}:e}function tP(e){if("string"==typeof e)return{text:e};let{text:t,list:r}=e;return function(e,t){if(!e)throw Error(t)}((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(tP)}}:{text:t}}function tR(e,t){return!0===e||(!1===e?{value:t}:e)}function tB(e,t,r=!1){return!1!==e&&(!0===e?!!r||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function tO(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function tz(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>tO(e,t)):[tO(e,t)]}function tW(e,t){let r=tz("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===r.length?{remain:t,redirect:r}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}var t_=class extends tE{constructor(e){super(e),this._choices=function(e,t){let r=new Map;for(let n of e){let e=n[t];if(r.has(e))throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);r.set(e,n)}return r}(e.choices.map(e=>e&&"object"==typeof e?e:{value:e}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(({hidden:e})=>!e).map(e=>e.value).sort(tN).map(e.value),r=t.slice(0,-2),n=t.slice(-2);return{text:r.concat(n.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!!t&&!!t.deprecated&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},tU=class extends tE{expected(){return"a number"}validate(e,t){return"number"==typeof e}},tH=class extends tU{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&e===Math.floor(e)}},tG=class extends tE{expected(){return"a string"}validate(e){return"string"==typeof e}},tY=(e,t,r)=>{let{text:n,list:o}=r.normalizeExpectedResult(r.schemas[e].expected(r)),a=[];return n&&a.push(tx(e,t,n,r.descriptor)),o&&a.push([tx(e,t,o.title,r.descriptor)].concat(o.values.map(e=>(function e({text:t,list:r},n){let o=[];return t&&o.push(`- ${tv.default.blue(t)}`),r&&o.push([`- ${tv.default.blue(r.title)}:`].concat(r.values.map(t=>e(t,n-tD.length).replace(/^|\n/g,`$&${tD}`))).join(` -`)),tC(o,n)})(e,r.loggerPrintWidth))).join(` -`)),tC(a,r.loggerPrintWidth)},tV=(e,t,{descriptor:r})=>{let n=[`${tg.default.yellow("string"==typeof e?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${tg.default.blue("string"==typeof t?r.key(t):r.pair(t))}`),n.join("; ")+"."},t$=class{constructor(e,t){let{logger:r=console,loggerPrintWidth:n=80,descriptor:o=th,unknown:a=tF,invalid:i=tY,deprecated:l=tV,missing:s=()=>!1,required:u=()=>!1,preprocess:c=e=>e,postprocess:d=()=>ty}=t||{};this._utils={descriptor:o,logger:r||{warn:()=>{}},loggerPrintWidth:n,schemas:function(e,t){let r=Object.create(null);for(let n of e){let e=n[t];if(r[e])throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);r[e]=n}return r}(e,"name"),normalizeDefaultResult:tL,normalizeExpectedResult:tP,normalizeDeprecatedResult:tB,normalizeForwardResult:tz,normalizeRedirectResult:tW,normalizeValidateResult:tR},this._unknownHandler=a,this._invalidHandler=(...e)=>{let t=i(...e);return"string"==typeof t?Error(t):t},this._deprecatedHandler=l,this._identifyMissing=(e,t)=>!(e in t)||s(e,t),this._identifyRequired=u,this._preprocess=c,this._postprocess=d,this.cleanHistory()}cleanHistory(){let e;this._hasDeprecationWarned=(e=Object.create(null),t=>{let r=JSON.stringify(t);return!!e[r]||(e[r]=!0,!1)})}normalize(e){let t={},r=[this._preprocess(e,this._utils)],n=()=>{for(;0!==r.length;){let e=r.shift(),n=this._applyNormalization(e,t);r.push(...n)}};for(let e of(n(),Object.keys(this._utils.schemas))){let n=this._utils.schemas[e];if(!(e in t)){let t=tL(n.default(this._utils));"value"in t&&r.push({[e]:t.value})}}for(let e of(n(),Object.keys(this._utils.schemas))){if(!(e in t))continue;let r=this._utils.schemas[e],n=t[e],o=r.postprocess(n,this._utils);o!==ty&&(this._applyValidation(o,e,r),t[e]=o)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let r=[],{knownKeys:n,unknownKeys:o}=this._partitionOptionKeys(e);for(let o of n){let n=this._utils.schemas[o],a=n.preprocess(e[o],this._utils);this._applyValidation(a,o,n);let i=({from:e,to:t})=>{r.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},l=({value:e,redirectTo:t})=>{let r=tB(n.deprecated(e,this._utils),a,!0);if(!1!==r){if(!0===r)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,t,this._utils));else for(let{value:e}of r){let r={key:o,value:e};if(!this._hasDeprecationWarned(r)){let n="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(r,n,this._utils))}}}};tz(n.forward(a,this._utils),a).forEach(i);let s=tW(n.redirect(a,this._utils),a);if(s.redirect.forEach(i),"remain"in s){let e=s.remain;t[o]=o in t?n.overlap(t[o],e,this._utils):e,l({value:e})}for(let{from:e,to:t}of s.redirect)l({value:e,redirectTo:t})}for(let n of o){let o=e[n];this._applyUnknownHandler(n,o,t,(e,t)=>{r.push({[e]:t})})}return r}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,tb,this._utils)}_partitionOptionKeys(e){let[t,r]=function(e,t){let r=[],n=[];for(let o of e)t(o)?r.push(o):n.push(o);return[r,n]}(Object.keys(e).filter(t=>!this._identifyMissing(t,e)),e=>e in this._utils.schemas);return{knownKeys:t,unknownKeys:r}}_applyValidation(e,t,r){let n=tR(r.validate(e,this._utils),e);if(!0!==n)throw this._invalidHandler(t,n.value,this._utils)}_applyUnknownHandler(e,t,r,n){let o=this._unknownHandler(e,t,this._utils);if(o)for(let e of Object.keys(o)){if(this._identifyMissing(e,o))continue;let t=o[e];e in this._utils.schemas?n(e,t):r[e]=t}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==ty){if(t.delete)for(let r of t.delete)delete e[r];if(t.override){let{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(t.override);for(let n of r){let r=t.override[n];this._applyValidation(r,n,this._utils.schemas[n]),e[n]=r}for(let r of n){let n=t.override[r];this._applyUnknownHandler(r,n,e,(t,r)=>{let n=this._utils.schemas[t];this._applyValidation(r,t,n),e[t]=r})}}}}},tq=function(e,t,{logger:n=!1,isCLI:o=!1,passThrough:a=!1,FlagSchema:i,descriptor:l}={}){if(o){if(!i)throw Error("'FlagSchema' option is required.");if(!l)throw Error("'descriptor' option is required.")}else l=th;let s=a?Array.isArray(a)?(e,t)=>a.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,r)=>{let{_:n,...o}=r.schemas;return tF(e,t,{...r,schemas:o})},u=new t$(function(e,{isCLI:t,FlagSchema:r}){let n=[];for(let o of(t&&n.push(tI.create({name:"_"})),e))n.push(function(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:o}=e,a={name:o},i,l={};switch(e.type){case"int":i=tH,t&&(a.preprocess=Number);break;case"string":case"path":i=tG;break;case"choice":i=t_,a.choices=e.choices.map(t=>null!=t&&t.redirect?{...t,redirect:{to:{key:e.name,value:t.redirect}}}:t);break;case"boolean":i=tA;break;case"flag":i=n,a.flags=r.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean));break;default:throw Error(`Unexpected type ${e.type}`)}if(e.exception?a.validate=(t,r,n)=>e.exception(t)||r.validate(t,n):a.validate=(e,t,r)=>void 0===e||t.validate(e,r),e.redirect&&(l.redirect=t=>t?{to:"string"==typeof e.redirect?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(l.deprecated=!0),t&&!e.array){let e=a.preprocess||(e=>e);a.preprocess=(t,r,n)=>r.preprocess(e(Array.isArray(t)?eD(!1,t,-1):t),n)}return e.array?tj.create({...t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},...l,valueSchema:i.create(a)}):i.create({...a,...l})}(o,{isCLI:t,optionInfos:e,FlagSchema:r})),o.alias&&t&&n.push(tM.create({name:o.alias,sourceName:o.name}));return n}(t,{isCLI:o,FlagSchema:i}),{logger:n,unknown:s,descriptor:l}),c=!1!==n;c&&r&&(u._hasDeprecationWarned=r);let d=u.normalize(e);return c&&(r=u._hasDeprecationWarned),d},tQ=(e,t,r)=>{if(!(e&&null==t)){if(t.findLast)return t.findLast(r);for(let e=t.length-1;e>=0;e--){let n=t[e];if(r(n,e,t))return n}}};function tX(e,t){if(!t)throw Error("parserName is required.");let r=tQ(!1,e,e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw new ts(n+=" Plugins must be explicitly added to the standalone bundle.")}function tK(e,t){let r=e.parsers[t];return"function"==typeof r?r():r}var tJ={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function t0(e,t={}){var r,n;let o;let a={...e};if(!a.parser){if(a.filepath){if(a.parser=tm(a,{physicalFile:a.filepath}),!a.parser)throw new tu(`No parser could be inferred for file "${a.filepath}".`)}else throw new tu("No parser and no file path given, couldn't infer a parser.")}let i=td({plugins:e.plugins,showDeprecated:!0}).options,l={...tJ,...Object.fromEntries(i.filter(e=>void 0!==e.default).map(e=>[e.name,e.default]))},s=tX(a.plugins,a.parser),u=await tK(s,a.parser);a.astFormat=u.astFormat,a.locEnd=u.locEnd,a.locStart=u.locStart;let c=null!=(r=s.printers)&&r[u.astFormat]?s:function(e,t){if(!t)throw Error("astFormat is required.");let r=tQ(!1,e,e=>e.printers&&Object.prototype.hasOwnProperty.call(e.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw new ts(n+=" Plugins must be explicitly added to the standalone bundle.")}(a.plugins,u.astFormat),d=await (n=u.astFormat,"function"==typeof(o=c.printers[n])?o():o);a.printer=d;let p=c.defaultOptions?Object.fromEntries(Object.entries(c.defaultOptions).filter(([,e])=>void 0!==e)):{};for(let[e,t]of Object.entries({...l,...p}))(null===a[e]||void 0===a[e])&&(a[e]=t);return"json"===a.parser&&(a.trailingComma="none"),tq(a,i,{passThrough:Object.keys(tJ),...t})}var t1=f(w(),1);async function t2(e,t){let r,n=await function({plugins:e,parser:t}){return tK(tX(e,t),t)}(t),o=n.preprocess?n.preprocess(e,t):e;t.originalText=o;try{r=await n.parse(o,t,t)}catch(t){(function(e,t){let{loc:r}=e;if(r){let n=(0,t1.codeFrameColumns)(t,r,{highlightCode:!0});throw e.message+=` -`+n,e.codeFrame=n,e}throw e})(t,e)}return{text:o,ast:r}}async function t4(e,t,r,n,o){let{embeddedLanguageFormatting:a,printer:{embed:i,hasPrettierIgnore:l=()=>!1,getVisitorKeys:s}}=r;if(!i||"auto"!==a)return;if(i.length>2)throw Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let u=e5(i.getVisitorKeys??s),c=[];(function t(){let{node:n}=e;if(null===n||"object"!=typeof n||l(e))return;for(let r of u(n))Array.isArray(n[r])?e.each(t,r):e.call(t,r);let a=i(e,r);if(a){if("function"==typeof a){c.push({print:a,node:n,pathStack:[...e.stack]});return}o.set(n,a)}})();let d=e.stack;for(let{print:n,node:a,pathStack:i}of c)try{e.stack=i;let l=await n(p,t,e,r);l&&o.set(a,l)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}function p(e,t){return t3(e,t,r,n)}e.stack=d}async function t3(e,t,r,n){let o=await t0({...r,...t,parentParser:r.parser,originalText:e},{passThrough:!0}),{ast:a}=await t2(e,o);return eT(await n(a,o))}var t5=function(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:o,locEnd:a,[Symbol.for("printedComments")]:i}=t,{node:l}=e,s=o(l),u=a(l);for(let e of n)o(e)>=s&&a(e)<=u&&i.add(e);return r.slice(s,u)};async function t8(e,t){({ast:e}=await t9(e,t));let r=new Map,n=new eV(e),o=()=>{},a=new Map;await t4(n,l,t,t8,a);let i=await t6(n,t,l,void 0,a);return function(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let e of t){if(!e.printed&&!r.has(e))throw Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed}}(t),i;function l(e,t){return void 0===e||e===n?s(t):Array.isArray(e)?n.call(()=>s(t),...e):n.call(()=>s(t),e)}function s(e){o(n);let i=n.node;if(null==i)return"";let s=i&&"object"==typeof i&&void 0===e;if(s&&r.has(i))return r.get(i);let u=t6(n,t,l,e,a);return s&&r.set(i,u),u}}function t6(e,t,r,n,o){var a;let{node:i}=e,{printer:l}=t,s;return s=null!=(a=l.hasPrettierIgnore)&&a.call(l,e)?t5(e,t):o.has(i)?o.get(i):l.print(e,t,r,n),i===t.cursorNode&&(s=eN(s,e=>[ev,e,ev])),!l.printComment||l.willPrintOwnComments&&l.willPrintOwnComments(e,t)||(s=function(e,t,r){let{leading:n,trailing:o}=function(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if(0===(r.comments||[]).filter(e=>!n.has(e)).length)return{leading:"",trailing:""};let o=[],a=[],i;return e.each(()=>{let r=e.node;if(null!=n&&n.has(r))return;let{leading:l,trailing:s}=r;l?o.push(function(e,t){var r;let n=e.node,o=[tl(e,t)],{printer:a,originalText:i,locStart:l,locEnd:s}=t;if(null==(r=a.isBlockComment)?void 0:r.call(a,n)){let e=e2(i,s(n))?e2(i,l(n),{backwards:!0})?eh:em:" ";o.push(e)}else o.push(eh);let u=e1(i,eK(i,s(n)));return!1!==u&&e2(i,u)&&o.push(eh),o}(e,t)):s&&(i=function(e,t,r){var n;let o=e.node,a=tl(e,t),{printer:i,originalText:l,locStart:s}=t,u=null==(n=i.isBlockComment)?void 0:n.call(i,o);return null!=r&&r.hasLineSuffix&&!(null!=r&&r.isBlock)||e2(l,s(o),{backwards:!0})?{doc:ec([eh,ti(l,s(o))?eh:"",a]),isBlock:u,hasLineSuffix:!0}:!u||null!=r&&r.hasLineSuffix?{doc:[ec([" ",a]),ed],isBlock:u,hasLineSuffix:!0}:{doc:[" ",a],isBlock:u,hasLineSuffix:!1}}(e,t,i),a.push(i.doc))},"comments"),{leading:o,trailing:a}}(e,r);return n||o?eN(t,e=>[n,e,o]):t}(e,s,t)),s}async function t9(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,function(e,t){let{comments:r}=e;if(delete e.comments,!(Array.isArray(r)&&r.length>0)||!t.printer.canAttachComment)return;let n=[],{locStart:o,locEnd:a,printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:l={}},originalText:s}=t,{ownLine:u=tr,endOfLine:c=tr,remaining:d=tr}=l,p=r.map((n,o)=>({...function e(t,r,n,o){let{locStart:a,locEnd:i}=n,l=a(r),s=i(r),u=tt(t,n),c,d,p=0,f=u.length;for(;p>1,o=u[t],m=a(o),h=i(o);if(m<=l&&s<=h)return e(o,r,n,o);if(h<=l){c=o,p=t+1;continue}if(s<=m){d=o,f=t;continue}throw Error("Comment location overlaps with node location")}if((null==o?void 0:o.type)==="TemplateLiteral"){let{quasis:e}=o,t=ta(e,r,n);c&&ta(e,c,n)!==t&&(c=null),d&&ta(e,d,n)!==t&&(d=null)}return{enclosingNode:o,precedingNode:c,followingNode:d}}(e,n,t),comment:n,text:s,options:t,ast:e,isLastComment:r.length-1===o}));for(let[e,t]of p.entries()){let r,{comment:l,precedingNode:s,enclosingNode:f,followingNode:m,text:h,options:g,ast:v,isLastComment:b}=t;if("json"===g.parser||"json5"===g.parser||"jsonc"===g.parser||"__js_expression"===g.parser||"__ts_expression"===g.parser||"__vue_expression"===g.parser||"__vue_ts_expression"===g.parser){if(o(l)-o(v)<=0){e6(v,l);continue}if(a(l)-a(v)>=0){e7(v,l);continue}}if(i?r=[t]:(l.enclosingNode=f,l.precedingNode=s,l.followingNode=m,r=[l,h,g,v,b]),function(e,t,r,n){let{comment:o,precedingNode:a}=r[n],{locStart:i,locEnd:l}=t,s=i(o);if(a)for(let t=n-1;t>=0;t--){let{comment:n,precedingNode:o}=r[t];if(o!==a||!tn(e.slice(l(n),s)))break;s=i(n)}return e2(e,s,{backwards:!0})}(h,g,p,e))l.placement="ownLine",u(...r)||(m?e6(m,l):s?e7(s,l):f?e9(f,l):e9(v,l));else if(function(e,t,r,n){let{comment:o,followingNode:a}=r[n],{locStart:i,locEnd:l}=t,s=l(o);if(a)for(let t=n+1;t0&&n[e-1].followingNode!==m&&to(n,g),n.push(t)}else s?e7(s,l):m?e6(m,l):f?e9(f,l):e9(v,l)}}if(to(n,t),!i)for(let e of r)delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}(e,t);let{printer:{preprocess:n}}=t;return{ast:e=n?await n(e,t):e,comments:r}}var t7=function(e,t){let{cursorOffset:r,locStart:n,locEnd:o}=t,a=e5(t.printer.getVisitorKeys),i=e;for(let t of function*(e,t){let r=[e];for(let e=0;en(e)<=r&&o(e)>=r}))i=t;return i},re=function(e,t){let{printer:{massageAstNode:r,getVisitorKeys:n}}=t;if(!r)return e;let o=e5(n),a=r.ignoredProperties??new Set;return function e(t,n){if(!(null!==t&&"object"==typeof t))return t;if(Array.isArray(t))return t.map(t=>e(t,n)).filter(Boolean);let i={},l=new Set(o(t));for(let r in t)!Object.prototype.hasOwnProperty.call(t,r)||a.has(r)||(l.has(r)?i[r]=e(t[r],t):i[r]=t[r]);let s=r(t,i,n);if(null!==s)return s??i}(e)},rt=(e,t,r)=>{if(!(e&&null==t)){if(t.findLastIndex)return t.findLastIndex(r);for(let e=t.length-1;e>=0;e--)if(r(t[e],e,t))return e;return -1}},rr=({parser:e})=>"json"===e||"json5"===e||"jsonc"===e||"json-stringify"===e;function rn(e){let t=rt(!1,e,e=>"Program"!==e.type&&"File"!==e.type);return -1===t?e:e.slice(0,t+1)}function ro(e,t,r,n,o=[],a){let{locStart:i,locEnd:l}=r,s=i(e),u=l(e);if(!(t>u||t=0&&(t.cursorNode=t7(n,t));let a=await t8(n,t,r);r>0&&(a=ey([eh,a],r,t.tabWidth));let i=e_(a,t);if(r>0){let e=i.formatted.trim();void 0!==i.cursorNodeStart&&(i.cursorNodeStart-=i.formatted.indexOf(e)),i.formatted=e+P(t.endOfLine)}let l=t[Symbol.for("comments")];if(t.cursorOffset>=0){let e,r,n,a,s;if(t.cursorNode&&i.cursorNodeText?(e=t.locStart(t.cursorNode),r=o.slice(e,t.locEnd(t.cursorNode)),n=t.cursorOffset-e,a=i.cursorNodeStart,s=i.cursorNodeText):(e=0,r=o,n=t.cursorOffset,a=0,s=i.formatted),r===s)return{formatted:i.formatted,cursorOffset:a+n,comments:l};let u=r.split("");u.splice(n,0,rs);let c=s.split(""),d=L.diff(u,c,void 0),p=a;for(let e of d)if(e.removed){if(e.value.includes(rs))break}else p+=e.count;return{formatted:i.formatted,cursorOffset:p,comments:l}}return{formatted:i.formatted,cursorOffset:-1,comments:l}}async function rc(e,t){let{ast:r,text:n}=await t2(e,t),{rangeStart:o,rangeEnd:a}=function(e,t,r){let n,o,{rangeStart:a,rangeEnd:i,locStart:l,locEnd:s}=t;e$.ok(i>a);let u=e.slice(a,i).search(/\S/u),c=-1===u;if(!c)for(a+=u;i>a&&!/\S/u.test(e[i-1]);--i);let d=ro(r,a,t,(e,r)=>rl(t,e,r),[],"rangeStart"),p=c?d:ro(r,i,t,e=>rl(t,e),[],"rangeEnd");if(!d||!p)return{rangeStart:0,rangeEnd:0};if(rr(t)){let e,t;let r=(e=[d.node,...d.parentNodes],t=new Set([p.node,...p.parentNodes]),e.find(e=>ra.has(e.type)&&t.has(e)));n=r,o=r}else({startNode:n,endNode:o}=function(e,t,{locStart:r,locEnd:n}){let o=e.node,a=t.node;if(o===a)return{startNode:o,endNode:a};let i=r(e.node);for(let e of rn(t.parentNodes))if(r(e)>=i)a=e;else break;let l=n(t.node);for(let t of rn(e.parentNodes)){if(n(t)<=l)o=t;else break;if(o===a)break}return{startNode:o,endNode:a}}(d,p,t));return{rangeStart:Math.min(l(n),l(o)),rangeEnd:Math.max(s(n),s(o))}}(n,t,r),i=n.slice(o,a),l=Math.min(o,n.lastIndexOf(` -`,o)+1),s=eY(n.slice(l,o).match(/^\s*/u)[0],t.tabWidth),u=await ru(i,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>o&&t.cursorOffset<=a?t.cursorOffset-o:-1,endOfLine:"lf"},s),c=u.formatted.trimEnd(),{cursorOffset:d}=t;d>a?d+=c.length-i.length:u.cursorOffset>=0&&(d=u.cursorOffset+o);let p=n.slice(0,o)+c+n.slice(a);if("lf"!==t.endOfLine){let e=P(t.endOfLine);d>=0&&e===`\r -`&&(d+=R(p.slice(0,d),` -`)),p=F(!1,p,` -`,e)}return{formatted:p,cursorOffset:d,comments:u.comments}}function rd(e,t,r){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?r:t}function rp(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:o}=t;return r=rd(e,r,-1),n=rd(e,n,0),o=rd(e,o,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:o}}function rf(e,t){var r;let n,{cursorOffset:o,rangeStart:a,rangeEnd:i,endOfLine:l}=rp(e,t),s="\uFEFF"===e.charAt(0);if(s&&(e=e.slice(1),o--,a--,i--),"auto"===l&&(l=(n=(r=e).indexOf("\r"))>=0?r.charAt(n+1)===` -`?"crlf":"cr":"lf"),e.includes("\r")){let t=t=>R(e.slice(0,Math.max(t,0)),`\r -`);o-=t(o),a-=t(a),i-=t(i),e=F(!1,e,/\r\n?/gu,` -`)}return{hasBOM:s,text:e,options:rp(e,{...t,cursorOffset:o,rangeStart:a,rangeEnd:i,endOfLine:l})}}async function rm(e,t){let r=await function({plugins:e,parser:t}){return tK(tX(e,t),t)}(t);return!r.hasPragma||r.hasPragma(e)}async function rh(e,t){let r,{hasBOM:n,text:o,options:a}=rf(e,await t0(t));return a.rangeStart>=a.rangeEnd&&""!==o||a.requirePragma&&!await rm(o,a)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(a.rangeStart>0||a.rangeEnd=0&&r.cursorOffset++),r)}async function rg(e,t,r){let{text:n,options:o}=rf(e,await t0(t)),a=await t2(n,o);return r&&(r.preprocessForPrint&&(a.ast=await t9(a.ast,o)),r.massage&&(a.ast=re(a.ast,o))),a}async function rv(e,t){return t=await t0(t),e_(await t8(e,t),t)}async function rb(e,t){let r=function(e){let t=Object.create(null),r=new Set;return function e(t,r,o){var a,i;if("string"==typeof t)return JSON.stringify(t);if(Array.isArray(t)){let r=t.map(e).filter(Boolean);return 1===r.length?r[0]:`[${r.join(", ")}]`}if(t.type===Q){let e=(null==(a=null==o?void 0:o[r+1])?void 0:a.type)===K;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if(t.type===K)return(null==(i=null==o?void 0:o[r-1])?void 0:i.type)===Q&&o[r-1].hard?void 0:"breakParent";if(t.type===U)return"trim";if(t.type===W)return"indent("+e(t.contents)+")";if(t.type===_)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if(t.type===Y)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+`, { groupId: ${n(t.groupId)} }`:"")+")";if(t.type===V){let r=[];t.negate&&r.push("negate: true"),t.groupId&&r.push(`groupId: ${n(t.groupId)}`);let o=r.length>0?`, { ${r.join(", ")} }`:"";return`indentIfBreak(${e(t.contents)}${o})`}if(t.type===H){let r=[];t.break&&"propagated"!==t.break&&r.push("shouldBreak: true"),t.id&&r.push(`id: ${n(t.id)}`);let o=r.length>0?`, { ${r.join(", ")} }`:"";return t.expandedStates?`conditionalGroup([${t.expandedStates.map(t=>e(t)).join(",")}]${o})`:`group(${e(t.contents)}${o})`}if(t.type===G)return`fill([${t.parts.map(t=>e(t)).join(", ")}])`;if(t.type===$)return"lineSuffix("+e(t.contents)+")";if(t.type===q)return"lineSuffixBoundary";if(t.type===X)return`label(${JSON.stringify(t.label)}, ${e(t.contents)})`;throw Error("Unknown doc type "+t.type)}(function e(t){var r;if(!t)return"";if(Array.isArray(t)){let r=[];for(let n of t)if(Array.isArray(n))r.push(...e(n));else{let t=e(n);""!==t&&r.push(t)}return r}return t.type===Y?{...t,breakContents:e(t.breakContents),flatContents:e(t.flatContents)}:t.type===H?{...t,contents:e(t.contents),expandedStates:null==(r=t.expandedStates)?void 0:r.map(e)}:t.type===G?{type:"fill",parts:t.parts.map(e)}:t.contents?{...t,contents:e(t.contents)}:t}(e));function n(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];let n=e.description||"symbol";for(let o=0;;o++){let a=n+(o>0?` #${o}`:"");if(!r.has(a))return r.add(a),t[e]=`Symbol.for(${JSON.stringify(a)})`}}}(e),{formatted:n}=await rh(r,{...t,parser:"__js_expression"});return n}async function ry(e,t){t=await t0(t);let{ast:r}=await t2(e,t);return t8(r,t)}async function rD(e,t){return e_(e,await t0(t))}var rx={};d(rx,{builders:()=>rC,printer:()=>rZ,utils:()=>rw});var rC={join:eb,line:em,softline:{type:Q,soft:!0},hardline:eh,literalline:eg,group:es,conditionalGroup:function(e,t){return es(e[0],{...t,expandedStates:e})},fill:eu,lineSuffix:ec,lineSuffixBoundary:{type:q},cursor:ev,breakParent:ed,ifBreak:function(e,t="",r={}){return ea(e),""!==t&&ea(t),{type:Y,breakContents:e,flatContents:t,groupId:r.groupId}},trim:{type:U},indent:ei,indentIfBreak:function(e,t){return ea(e),{type:V,contents:e,groupId:t.groupId,negate:t.negate}},align:el,addAlignmentToDoc:ey,markAsRoot:function(e){return el({type:"root"},e)},dedentToRoot:function(e){return el(Number.NEGATIVE_INFINITY,e)},dedent:function(e){return el(-1,e)},hardlineWithoutBreakParent:ep,literallineWithoutBreakParent:ef,label:function(e,t){return ea(t),e?{type:X,label:e,contents:t}:t},concat:e=>e},rZ={printDocToString:e_},rw={willBreak:function(e){return eF(e,ek,!1)},traverseDoc:eo,findInDoc:eF,mapDoc:eS,removeLines:function(e){return eS(e,eM)},stripTrailingHardline:eT,replaceEndOfLine:function(e,t=eg){return eS(e,e=>"string"==typeof e?eb(t,e.split(` -`)):e)},canBreak:function(e){return eF(e,eA,!1)}},rS="3.3.3",rF={};d(rF,{addDanglingComment:()=>e9,addLeadingComment:()=>e6,addTrailingComment:()=>e7,getAlignmentSize:()=>eY,getIndentSize:()=>rj,getMaxContinuousCount:()=>rT,getNextNonSpaceNonCommentCharacter:()=>rA,getNextNonSpaceNonCommentCharacterIndex:()=>rR,getStringWidth:()=>ew,hasNewline:()=>e2,hasNewlineInRange:()=>rN,hasSpaces:()=>rL,isNextLineEmpty:()=>rO,isNextLineEmptyAfterIndex:()=>rI,isPreviousLineEmpty:()=>rB,makeString:()=>rP,skip:()=>eQ,skipEverythingButNewLine:()=>e0,skipInlineComment:()=>rk,skipNewline:()=>e1,skipSpaces:()=>eK,skipToLineEnd:()=>eJ,skipTrailingComment:()=>rE,skipWhitespace:()=>eX});var rk=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1)){for(let r=t+2;rMath.max(e,r.length/t.length),0)},rA=function(e,t){let r=rM(e,t);return!1===r?"":e.charAt(r)},rN=function(e,t,r){for(let n=t;no===n?o:a===t?"\\"+a:a||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(o)?o:"\\"+o));return t+o+t};function rR(e,t){return 2==arguments.length||"number"==typeof t?rM(e,t):function(e,t,r){return rM(e,r(t))}(...arguments)}function rB(e,t){return 2==arguments.length||"number"==typeof t?ti(e,t):function(e,t,r){return ti(e,r(t))}(...arguments)}function rO(e,t){return 2==arguments.length||"number"==typeof t?rI(e,t):function(e,t,r){return rI(e,r(t))}(...arguments)}function rz(e,t=1){return async(...r)=>{let n=r[t]??{},o=n.plugins??[];return r[t]={...n,plugins:Array.isArray(o)?o:Object.values(o)},e(...r)}}var rW=rz(rh);async function r_(e,t){let{formatted:r}=await rW(e,{...t,cursorOffset:-1});return r}async function rU(e,t){return await r_(e,t)===e}var rH=rz(td,0),rG={parse:rz(rg),formatAST:rz(rv),formatDoc:rz(rb),printToDoc:rz(ry),printDocToString:rz(rD)};return m(S)},e.exports=(r=t()).default||r},69921:function(e,t){"use strict";Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.module.reference")},59864:function(e,t,r){"use strict";r(69921)},88385:function(e,t,r){var n;n=function(e,t,r,n,o,a,i,l){"use strict";var s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&r.size>1048576*y){var a=j||"The size of files cannot exceed ".concat(y,"Mb");return Q(a),i&&i(a)}if(T&&T.length>0&&!(-1!==T.findIndex(function(e){return e.toLowerCase()===o.toLowerCase()}))){var l="Extension .".concat(o," has been excluded");return Q(l),i&&i(l)}f||(el.push(r),es(el)),n.addEventListener("load",function(){eo.push({name:r.name,size:r.size,path:this.result,type:r.type,contentType:r.type,lastModified:r.lastModified,extension:null==o?void 0:o.toLowerCase()}),ea(u([],eo,!0))},!1),n.readAsDataURL(r)}(n);return e.target.value="",!0}catch(e){Q(e.toString())}return!1},em=function(e,t){if(Q(null),eu.current&&(eu.current.value=""),"number"!=typeof t){ea([]),es([]);return}if(t<0||t>eo.length-1)return console.error("item's index not found...");var r=s({},eo[t]);return null==eo||eo.splice(t,1),null==el||el.splice(t,1),ea(u([],eo,!0)),es(u([],el,!0)),r},eh=e.useCallback(function(e){e.preventDefault(),er(!0)},[]),eg=e.useCallback(function(e){e.stopPropagation(),e.preventDefault()},[]),ev=e.useCallback(function(e){var t;e.stopPropagation(),e.preventDefault(),er(!1),J({event:e,files:null===(t=e.dataTransfer)||void 0===t?void 0:t.files})},[]),eb=e.useCallback(function(){er(!1)},[]),ey=function(){return{addFile:ef,removeFile:em,input:eu.current,files:f?eo:el}};e.useEffect(function(){eu.current&&M&&"function"==typeof M&&M(ey())},[eu.current]),e.useEffect(function(){var e=ed.current;!e||e.ondrop||l||(e.ondrop=ev,e.ondragend=eb,e.ondragover=eg,e.ondragenter=eh)},[ed.current]),e.useEffect(function(){Z&&Z.length>0&&eo.length!==Z.length&&ea(Z)},[Z]),e.useEffect(function(){(null==K?void 0:K.event)&&(null==K?void 0:K.files)&&(ef(K.event,K.files),J(null)),w&&(w(f?eo:el),M&&M(ey()))},[eo,K]);var eD=et?z.palette.secondary.light:z.palette.primary.light;return e.createElement(e.Fragment,null,e.createElement(r.Paper,s({sx:{p:1},elevation:0,ref:ed,variant:"outlined"},_),e.createElement(r.Typography,{gutterBottom:!0,component:"div",color:"textSecondary",sx:{display:"flex"}},e.createElement(r.Box,{sx:{flexGrow:1,fontSize:12}},o),(null==eo?void 0:eo.length)>0&&e.createElement(r.Box,{sx:{fontSize:12}},eo.length,F>0&&"/".concat(F)," file",(null==eo?void 0:eo.length)>1&&"s"," joined")),e.createElement(r.Paper,s({elevation:0,sx:{p:1,transition:500,background:eD}},W),e.createElement(r.Grid,{container:!0,spacing:2,alignItems:"center",justifyContent:"center"},I&&e.createElement(r.Grid,s({item:!0,xs:12,sm:3,md:4,sx:{textAlign:"center",mt:{xs:-3,sm:2}}},L),e.createElement("img",{alt:m,src:p||"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgMzAwIiB3aWR0aD0iNDA2IiBoZWlnaHQ9IjMwNiIgY2xhc3M9ImlsbHVzdHJhdGlvbiBzdHlsZXNfaWxsdXN0cmF0aW9uVGFibGV0X18xRFdPYSI+PHRpdGxlPiMxNiBmaWxlcyBhbmQgZm9sZGVyczwvdGl0bGU+PHBhdGggZD0iTTE0Ny43MSwxNDcuN0gxNDAuOHYtMi43Nmg2LjkxYTMuNDQsMy40NCwwLDEsMCwwLTYuODhIMTQwLjhWMTM1LjNoNi45MWE2LjIsNi4yLDAsMSwxLDAsMTIuNFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMTQ3LjcxLDE0Ny43SDE0MC44di0yLjc2aDYuOTFhMy40NCwzLjQ0LDAsMSwwLDAtNi44OEgxNDAuOFYxMzUuM2g2LjkxYTYuMiw2LjIsMCwxLDEsMCwxMi40WiIgZmlsbD0iI2ZmZiIgb3BhY2l0eT0iMC42MSI+PC9wYXRoPjxlbGxpcHNlIGN4PSIxOTguNTYiIGN5PSIyNTYuOTkiIHJ4PSIxNDUuMDciIHJ5PSIyMC4xOCIgZmlsbD0iI2U2ZTZlNiIgb3BhY2l0eT0iMC40NSI+PC9lbGxpcHNlPjxwYXRoIGQ9Ik0yODguNzUsOTUuNjJjLTEuMzYsMjEuMDctMTEuNDIsNzMuNjEtNzkuNDMsNDQuMDZsMi4zNC02Ljk0czMzLjYxLDUuOTMsNDIuNS02LjU0YzcuNTItMTAuNTYsNy40LTQ1LjE5LDI0LTQzLjU0QTEyLjA5LDEyLjA5LDAsMCwxLDI4OC43NSw5NS42MloiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4Ljc1LDk1LjYyYy0xLjM2LDIxLjA3LTExLjQyLDczLjYxLTc5LjQzLDQ0LjA2bDIuMzQtNi45NHMzMy42MSw1LjkzLDQyLjUtNi41NGM3LjUyLTEwLjU2LDcuNC00NS4xOSwyNC00My41NEExMi4wOSwxMi4wOSwwLDAsMSwyODguNzUsOTUuNjJaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHBhdGggZD0iTTIyNi4xNSw1Ni4zNnMxLjM4LDcuNTksNCwxMi4xOGEzLjg3LDMuODcsMCwwLDAsNS4zLDEuNDVjMi4zLTEuMzQsNS0zLjgxLDQuNzYtOGwuNDUtNy4xMWE2LjkxLDYuOTEsMCwwLDAtNC44OS02LjMzQzIzMC43Miw0Ni43MSwyMjUuMDgsNTEuNzgsMjI2LjE1LDU2LjM2WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwb2x5Z29uIHBvaW50cz0iMjQwLjcyIDU3LjIyIDI1NS42OSA3Mi4zMyAyNDYuNzUgODIuMDQgMjM3LjM2IDYzLjk4IDI0MC43MiA1Ny4yMiIgZmlsbD0iI2Y0YTI4YyI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yMzUuOCw2MC41OHMtLjczLTIuODgsMS40OC0zLjI1LDMuMjksMy43OS40Nyw1WiIgZmlsbD0iI2Y0YTI4YyI+PC9wYXRoPjxwYXRoIGQ9Ik0yMjcuMjcsNjEuMSwyMjYsNjQuNTNhMS4yNCwxLjI0LDAsMCwwLDEuMjUsMS42N2wzLS4yNFoiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjY1LjIxLDI0OC43OXMtMiwzLjY1LTUuNTMsMy40MS01LDMtMiw0LjQxLDExLjc0LTEuNDIsMTEuNzQtMS40MmwuNTUtNS4wOFoiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMzA3LjM1LDI0NC4xNHMyLjI1LDMuNTEuMzIsNi40OS4yNiw1LjgzLDIuOTEsMy44Niw0LjQzLTExLDQuNDMtMTFsLTQuMTktMi45M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjM4Ljg3LDY2Ljg4QTE1LjU0LDE1LjU0LDAsMCwwLDI0MC4xOCw2MlMyNDYsNjcuMzgsMjQyLjEsNzMuMVoiIGZpbGw9IiNjZTgxNzIiIG9wYWNpdHk9IjAuMzEiPjwvcGF0aD48cG9seWdvbiBwb2ludHM9IjI2My40NiAxNzAuMzUgMjYzLjAzIDI1MC40NCAyNzMuMzkgMjUwLjQ0IDI4Ni42NSAxNjkuMzIgMjYzLjQ2IDE3MC4zNSIgZmlsbD0iIzI0Mjg1YiI+PC9wb2x5Z29uPjxwYXRoIGQ9Ik0yNDguNDEsNzYuNDZhMzAuNjYsMzAuNjYsMCwwLDEsMTguMzEtNi43MWMxMC44LS4xMSw0MC45MiwxLjc0LDM4Ljg2LDM4LjU4LTEuNTMsMjcuMy0yLjMxLDU3LjUtMi4zMSw1Ny41bC0zOS42Niw2LjYxUzIxNi4yNCwxMDUuNDEsMjQ4LjQxLDc2LjQ2WiIgZmlsbD0iI2ZmZmZmZiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzQuNjIsODUuNzJzLTguMzEsMTAtMy4xNywyOC4yOCwxMi4zNiw0MC4zMy0xMi40LDUxLjQxbDQuNTYsNywzOS42Ni02LjYxLjUyLTE2Ljg4LDYuMzctMzEuMjZaIiBvcGFjaXR5PSIwLjA4Ij48L3BhdGg+PHJlY3QgeD0iMTA5LjI1IiB5PSIxNTAuMzEiIHdpZHRoPSI2Ni45NyIgaGVpZ2h0PSIxMDYuNjgiIGZpbGw9IiNhNWE1YTUiIG9wYWNpdHk9IjAuNzkiPjwvcmVjdD48cmVjdCB4PSIxMzguNDgiIHk9IjE1MC4zMSIgd2lkdGg9IjU3LjkzIiBoZWlnaHQ9IjEwNi42OCIgZmlsbD0iI2U2ZTZlNiI+PC9yZWN0Pjxwb2x5Z29uIHBvaW50cz0iMTc5LjggMTU2LjU1IDE3OC43NCAxNjIuNjYgMTUwLjMgMTYyLjY2IDE1MC4zIDE4OC40NCAxOTcuNiAxODguNDQgMTk3LjYgMTY3LjQ0IDE5Ny42IDE2Mi42NiAxOTcuNiAxNTYuNTUgMTc5LjggMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxNzkuOCAxNTYuNTUgMTc4Ljc0IDE2Mi42NiAxNTAuMyAxNjIuNjYgMTUwLjMgMTg4LjQ0IDE5Ny42IDE4OC40NCAxOTcuNiAxNjcuNDQgMTk3LjYgMTYyLjY2IDE5Ny42IDE1Ni41NSAxNzkuOCAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjE4Ni43MSAxNTYuNTUgMTg1LjY1IDE2Mi42NiAxNTcuMjEgMTYyLjY2IDE1Ny4yMSAxODguNDQgMjA0LjUxIDE4OC40NCAyMDQuNTEgMTY3LjQ0IDIwNC41MSAxNjIuNjYgMjA0LjUxIDE1Ni41NSAxODYuNzEgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIyNjIuOTggMTIxLjA3IDI2NC45MiAxMjguMjggMjM4Ljc4IDEzOS40OSAyNTEuMDcgMTY4LjE0IDI5NC41NSAxNDkuNDkgMjg0LjU0IDEyNi4xNiAyODIuMjYgMTIwLjg0IDI3OS4zNCAxMTQuMDUgMjYyLjk4IDEyMS4wNyIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMjYyLjk4IDEyMS4wNyAyNjQuOTIgMTI4LjI4IDIzOC43OCAxMzkuNDkgMjUxLjA3IDE2OC4xNCAyOTQuNTUgMTQ5LjQ5IDI4NC41NCAxMjYuMTYgMjgyLjI2IDEyMC44NCAyNzkuMzQgMTE0LjA1IDI2Mi45OCAxMjEuMDciIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cG9seWdvbiBwb2ludHM9IjI2OS4zMyAxMTguMzQgMjcxLjI3IDEyNS41NiAyNDUuMTMgMTM2Ljc2IDI1Ny40MiAxNjUuNDEgMzAwLjg5IDE0Ni43NyAyOTAuODkgMTIzLjQzIDI4OC42MSAxMTguMTIgMjg1LjY5IDExMS4zMyAyNjkuMzMgMTE4LjM0IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHBvbHlnb24gcG9pbnRzPSIxOTIuNDIgMTU2LjU1IDE5MS4zNiAxNjIuNjYgMTYyLjkzIDE2Mi42NiAxNjIuOTMgMTg4LjQ0IDIxMC4yMyAxODguNDQgMjEwLjIzIDE2Ny40NCAyMTAuMjMgMTYyLjY2IDIxMC4yMyAxNTYuNTUgMTkyLjQyIDE1Ni41NSIgZmlsbD0iI2ZmZDIwMCI+PC9wb2x5Z29uPjxwb2x5Z29uIHBvaW50cz0iMTkyLjQyIDE1Ni41NSAxOTEuMzYgMTYyLjY2IDE2Mi45MyAxNjIuNjYgMTYyLjkzIDE4OC40NCAyMTAuMjMgMTg4LjQ0IDIxMC4yMyAxNjcuNDQgMjEwLjIzIDE2Mi42NiAyMTAuMjMgMTU2LjU1IDE5Mi40MiAxNTYuNTUiIG9wYWNpdHk9IjAuMDgiPjwvcG9seWdvbj48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cmVjdCB4PSIxNjQuMTIiIHk9IjE1MS41NiIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjIuMDkgMjguNjIpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMTIiPjwvcmVjdD48cmVjdCB4PSIxNjYuNDUiIHk9IjE0Ny4yMyIgd2lkdGg9IjQ0LjkxIiBoZWlnaHQ9IjMwLjU1IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMjEuNDQgMjguOTEpIHJvdGF0ZSgtOC4yOCkiIGZpbGw9IiMyNDI4NWIiPjwvcmVjdD48cG9seWdvbiBwb2ludHM9IjE5OS4zMyAxNTYuNTUgMTk4LjI3IDE2Mi42NiAxNjkuODQgMTYyLjY2IDE2OS44NCAxODguNDQgMjE3LjE0IDE4OC40NCAyMTcuMTQgMTY3LjQ0IDIxNy4xNCAxNjIuNjYgMjE3LjE0IDE1Ni41NSAxOTkuMzMgMTU2LjU1IiBmaWxsPSIjZmZkMjAwIj48L3BvbHlnb24+PHJlY3QgeD0iMTQ3LjY1IiB5PSIxNzAuMzciIHdpZHRoPSI3NC41NCIgaGVpZ2h0PSIyOS4xIiBmaWxsPSIjYTVhNWE1Ij48L3JlY3Q+PHBhdGggZD0iTTI5MS4xMywxMjRhMjEyLjI0LDIxMi4yNCwwLDAsMS0xNCwxNi4yNyw2My43OCw2My43OCwwLDAsMS0xMi42Nyw5LjkyYy0yLjY5LDEuNjUtNS41Miw0LjU5LTMuNjIsOS4xOWgxNC44MUwyOTUsMTMzLjEzWiIgb3BhY2l0eT0iMC4wOCI+PC9wYXRoPjxyZWN0IHg9IjE3MS4xNiIgeT0iMTcwLjM3IiB3aWR0aD0iNTEuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjE0Ny42NSIgeT0iMjEyLjkyIiB3aWR0aD0iNTkuMDIiIGhlaWdodD0iMjkuMSIgZmlsbD0iI2YyZjJmMiI+PC9yZWN0PjxyZWN0IHg9IjEyOC4zOCIgeT0iMTMyLjMiIHdpZHRoPSIxNi44OSIgaGVpZ2h0PSIxOC40IiBmaWxsPSIjZmZmZmZmIj48L3JlY3Q+PGNpcmNsZSBjeD0iMTk3LjU3IiBjeT0iMTgzLjc1IiByPSI0LjA5IiBmaWxsPSIjYTVhNWE1Ij48L2NpcmNsZT48Y2lyY2xlIGN4PSIxNzguMDQiIGN5PSIyMjYuMzEiIHI9IjQuMDkiIGZpbGw9IiNhNWE1YTUiPjwvY2lyY2xlPjxwYXRoIGQ9Ik0yMTEuMjMsMTM0YTIyLjE2LDIyLjE2LDAsMCwwLTguMjYsMS4yNWMtNC40MywxLjU2LTguNTMsNS41MS01LjM3LDEwLjEzLDIuNDQsMy41Niw1LjksMS43Miw3LjE5LTEuMTNzMi4wNy01LjYxLDQuNTMtNC41N1oiIGZpbGw9IiNmNGEyOGMiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmZmZmYiPjwvcGF0aD48cGF0aCBkPSJNMjg4LjQ4LDc0LjUzYTUxLjc0LDUxLjc0LDAsMCwxLDI5LDI3LjA4LDM2LjQsMzYuNCwwLDAsMS0xLjA5LDMzLjIxYy01Ljg3LDEwLjI2LTE3LjksMjEuNzctNDIuNTcsMjYuNzVsLTIuODctNy4yMSwyMy41Ni0yMC42OWExMi4xOCwxMi4xOCwwLDAsMCwuNTgtMTcuNzljLTctNy0xNS45LTE3LjMtMTkuOTEtMjguMTdBMTAuMywxMC4zLDAsMCwxLDI4OC40OCw3NC41M1oiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuMiI+PC9wYXRoPjxwYXRoIGQ9Ik0yNzEuNDUsMTU1LjdzLTExLTEuMi0xMiwzLTEuNjgsNi43NC0xLjY4LDYuNzRhMzAuMSwzMC4xLDAsMCwwLDE1LjY2LTQuODJaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTMwMy4yNywxNjUuODNhMTA0Ljc4LDEwNC43OCwwLDAsMSwuMTgsMTUuMzhjLS4yNyw2LjMxLTEuOTEsMTYuODItMy4xNSwyNC4wOUEyMy4yMiwyMy4yMiwwLDAsMCwzMDMsMjIwLjZsMTAsMTcuNzktNy4yNiw3LjI0LTExLjkxLTE1LjQ4YTY0Ljg4LDY0Ljg4LDAsMCwxLTEyLjE2LTI3bC0zLjc5LTE5LjM0LTkuNTUtMTIuMTRaIiBmaWxsPSIjMjQyODViIj48L3BhdGg+PHBhdGggZD0iTTIyMS43NSw0Ny4zM3MtMy4wOSw3LjE0LDQuMjksNy40OSw3LjI5LTEuMTUsNy4yOS0xLjE1LjQ2LDkuNTQsNi44NSw4LjM1bDIuNjUtMi42OHMzLTEyLjE3LTIuMi0xNC44NEMyNDAuNjMsNDQuNSwyMzAuMjUsMzMuODMsMjIxLjc1LDQ3LjMzWiIgZmlsbD0iIzI0Mjg1YiI+PC9wYXRoPjxwYXRoIGQ9Ik0yMzUuNjgsNjEuNzNzLjM5LTYuMjIsMy44OS00LjY3UzI0MC43Niw2NS4zOSwyMzUuNjgsNjEuNzNaIiBmaWxsPSIjZjRhMjhjIj48L3BhdGg+PHBhdGggZD0iTTE0MC44LDEzMi4zczExLjg5LTcuNjMsMC0xOC4zLTE2LjU1LDE0LTI1LjIyLTIuNjcsMTMuMzMtMzQuNjYtMTEtMzZTOTUuNDcsNTguNjIsNzQuNTIsNTYuODEsNDcuOTEsOTIuMTEsNjMuOTEsOTQuNTZzMzEuMzQsMy40NCwyNywxOC43NywxMiwxOS41LDE5LjY3LDE1Ljc1LDE3LjgsMy4yMiwxNy44LDMuMjJaIiBmaWxsPSIjZTZlNmU2IiBvcGFjaXR5PSIwLjQ1Ij48L3BhdGg+PHBhdGggZD0iTTk4LDI0MnMtMTEuODUtMy4xOC0xNC40Ny0xNC4xOGMwLDAsMTguMzItMy43OCwxOC45MiwxNS4xNFoiIGZpbGw9IiNmZmZmZmYiIG9wYWNpdHk9IjAuNTgiPjwvcGF0aD48cGF0aCBkPSJNOTkuNDYsMjQwLjc4cy04LjMyLTEzLTEuMS0yNS4yOGMwLDAsMTQsOC43OSw3Ljg2LDI1LjI4WiIgZmlsbD0iI2ZmZmZmZiIgb3BhY2l0eT0iMC43MyI+PC9wYXRoPjxwYXRoIGQ9Ik0xMDEuNTksMjQwLjc4czQuMzEtMTMuODIsMTcuNS0xNi40OWMwLDAsMi41Miw5LTguNDgsMTYuNDlaIiBmaWxsPSIjZmZmZmZmIj48L3BhdGg+PHBvbHlnb24gcG9pbnRzPSI5My4wMSAyNDAuNTEgOTUuNDggMjU2LjkxIDExMC41OCAyNTYuOTEgMTEyLjc0IDI0MC41MSA5My4wMSAyNDAuNTEiIGZpbGw9IiMyNDI4NWIiPjwvcG9seWdvbj48L3N2Zz4=",width:ep.width,height:ep.height})),e.createElement(r.Grid,s({item:!0,xs:12,sm:!0,md:!0,sx:{color:"#fff",textAlign:"center",mt:{xs:I?-4:0,sm:2}}},N),e.createElement(r.Hidden,{smDown:!0},e.createElement(r.Typography,{variant:"h5"},e.createElement("b",null,a))),e.createElement(r.Hidden,{smUp:!0},e.createElement(r.Typography,{variant:"h6"},e.createElement("b",null,a))),e.createElement(r.Typography,{variant:"caption"},g,e.createElement(r.Button,{size:"small",color:"secondary",variant:"outlined",disabled:l,onClick:function(){var e;return null===(e=eu.current)||void 0===e?void 0:e.click()},sx:{m:.5,color:z.palette.grey["50"],borderColor:z.palette.grey["50"],"&:hover":{borderColor:z.palette.grey["50"]}}},b),v),e.createElement("input",{type:"file",ref:eu,onChange:function(e){return ef(e)},multiple:h,accept:C,style:{display:"none"}})))),q&&e.createElement(r.Alert,{color:"error",severity:"error",sx:{mt:1},onClose:function(){return Q(null)}},q),(null==eo?void 0:eo.length)>0&&e.createElement(e.Fragment,null,e.createElement(d,{component:"div",sx:{overflowY:"auto",mt:2,mr:-1,pr:1,height:P,maxHeight:R}},null==eo?void 0:eo.map(function(t,r){var n=(t.size/1024).toFixed(2)+" Kb";return t.size>1048576&&(n=(t.size/1048576).toFixed(2)+" Mb"),e.createElement(c,{file:t,size:n,index:r,disabled:l,key:"upload-file--".concat(r),handleRemoveFile:em})})),e.createElement(r.Typography,{component:"div",align:"right",sx:{mt:1}},e.createElement(r.Button,{size:"small",disabled:l,onClick:em,ref:ec},A||"Remove all")))))}return p.propTypes={getBase64:t.bool,maxUploadFiles:t.number,title:t.string,header:t.string,leftLabel:t.string,rightLabel:t.string,buttonLabel:t.string,multiFile:t.bool,disabled:t.bool,defaultFiles:t.array,maxFileSize:t.number,maxFilesContainerHeight:t.number,errorSizeMessage:t.string,imageSrc:t.string,imageSrcAlt:t.string,acceptedType:t.string,bannerProps:t.object,BannerProps:t.object,containerProps:t.object,ContainerProps:t.object,allowedExtensions:t.array,onError:t.func,onContextReady:t.func,onFilesChange:t.func,showPlaceholderImage:t.bool,LabelsGridProps:t.object,PlaceholderGridProps:t.object,placeholderImageDimension:t.object,PlaceholderImageDimension:t.object},p.defaultProps={getBase64:!1,multiFile:!0,maxFileSize:0,maxUploadFiles:0,acceptedType:"*/*",defaultFiles:[],allowedExtensions:[],title:"My awesome file uploader",header:">[Drag to drop]<",leftLabel:"or",rightLabel:"to select files",buttonLabel:"click here",imageSrcAlt:"Placeholder image",maxFilesContainerHeight:300,showPlaceholderImage:!0,placeholderImageDimension:{},PlaceholderImageDimension:{},bannerProps:{},BannerProps:{},containerProps:{},ContainerProps:{},LabelsGridProps:{},PlaceholderGridProps:{}},p},e.exports=n(r(67294),r(45697),r(47367),r(54326),r(39626),r(77347),r(90645),r(48878))}}]); \ No newline at end of file diff --git a/_next/static/chunks/935-1197ed3ddf0c5832.js b/_next/static/chunks/935-1197ed3ddf0c5832.js deleted file mode 100644 index a9a2d5508..000000000 --- a/_next/static/chunks/935-1197ed3ddf0c5832.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[935],{94935:function(e,t,u){let r,n;u.d(t,{WU:function(){return uV}});var D,i=Object.create,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,f=e=>{throw TypeError(e)},d=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),F=(e,t)=>{for(var u in t)o(e,u,{get:t[u],enumerable:!0})},p=(e,t,u,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of s(t))c.call(e,n)||n===u||o(e,n,{get:()=>t[n],enumerable:!(r=a(t,n))||r.enumerable});return e},h=(e,t,u)=>(u=null!=e?i(l(e)):{},p(!t&&e&&e.__esModule?u:o(u,"default",{value:e,enumerable:!0}),e)),C=e=>p(o({},"__esModule",{value:!0}),e),g=(e,t,u)=>t.has(e)||f("Cannot "+u),E=(e,t,u)=>t.has(e)?f("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,u),m=(e,t,u)=>(g(e,t,"access private method"),u),y=d((e,t)=>{var u=new Proxy(String,{get:()=>u});t.exports=u}),b={};F(b,{default:()=>B,shouldHighlight:()=>v});var v,B,A=(r=()=>{v=()=>!1,B=String},()=>(r&&(n=r(r=0)),n)),k=d((e,t)=>{var u=String,r=function(){return{isColorSupported:!1,reset:u,bold:u,dim:u,italic:u,underline:u,inverse:u,hidden:u,strikethrough:u,black:u,red:u,green:u,yellow:u,blue:u,magenta:u,cyan:u,white:u,gray:u,bgBlack:u,bgRed:u,bgGreen:u,bgYellow:u,bgBlue:u,bgMagenta:u,bgCyan:u,bgWhite:u}};t.exports=r(),t.exports.createColors=r}),w=d(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codeFrameColumns=s,e.default=function(e,t,u,r={}){if(!o){o=!0;let e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";Error(e).name="DeprecationWarning",console.warn(Error(e))}return s(e,{start:{column:u=Math.max(u,0),line:t}},r)};var t=(A(),C(b)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var u=r(t);if(u&&u.has(e))return u.get(e);var n={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&({}).hasOwnProperty.call(e,i)){var o=D?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,u&&u.set(e,n),n}(k(),!0);function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,u=new WeakMap;return(r=function(e){return e?u:t})(e)}var n,D=u.default,i=(e,t)=>u=>e(t(u)),o=!1,a=/\r\n|[\n\r\u2028\u2029]/;function s(e,r,o={}){let s=(o.highlightCode||o.forceColor)&&(0,t.shouldHighlight)(o),l=o.forceColor?(null!=n||(n=(0,u.createColors)(!0)),n):D,c={gutter:l.gray,marker:i(l.red,l.bold),message:i(l.red,l.bold)},f=(e,t)=>s?e(t):t,{start:d,end:F,markerLines:p}=function(e,t,u){let r=Object.assign({column:0,line:-1},e.start),n=Object.assign({},r,e.end),{linesAbove:D=2,linesBelow:i=3}=u||{},o=r.line,a=r.column,s=n.line,l=n.column,c=Math.max(o-(D+1),0),f=Math.min(t.length,s+i);-1===o&&(c=0),-1===s&&(f=t.length);let d=s-o,F={};if(d)for(let e=0;e<=d;e++){let u=e+o;if(a){if(0===e){let e=t[u-1].length;F[u]=[a,e-a+1]}else if(e===d)F[u]=[0,l];else{let r=t[u-e].length;F[u]=[0,r]}}else F[u]=!0}else a===l?a?F[o]=[a,0]:F[o]=!0:F[o]=[a,l-a];return{start:c,end:f,markerLines:F}}(r,e.split(a),o),h=r.start&&"number"==typeof r.start.column,C=String(F).length,g=(s?(0,t.default)(e,o):e).split(a,F).slice(d,F).map((e,t)=>{let u=d+1+t,r=` ${` ${u}`.slice(-C)} |`,n=p[u],D=!p[u+1];if(!n)return` ${f(c.gutter,r)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(n)){let u=e.slice(0,Math.max(n[0]-1,0)).replace(/[^\t]/g," "),i=n[1]||1;t=[` - `,f(c.gutter,r.replace(/\d/g," "))," ",u,f(c.marker,"^").repeat(i)].join(""),D&&o.message&&(t+=" "+f(c.message,o.message))}return[f(c.marker,">"),f(c.gutter,r),e.length>0?` ${e}`:"",t].join("")}}).join(` -`);return o.message&&!h&&(g=`${" ".repeat(C+1)}${o.message} -${g}`),s?l.reset(g):g}});F({},{__debug:()=>uH,check:()=>uJ,doc:()=>uv,format:()=>uV,formatWithCursor:()=>uq,getSupportInfo:()=>uU,util:()=>uS,version:()=>uw});var S=(e,t,u,r)=>{if(!(e&&null==t))return t.replaceAll?t.replaceAll(u,r):u.global?t.replace(u,r):t.split(u).join(r)};function x(){}x.prototype={diff:function(e,t){var u,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.callback;"function"==typeof r&&(n=r,r={}),this.options=r;var D=this;function i(e){return n?(setTimeout(function(){n(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var o=(t=this.removeEmpty(this.tokenize(t))).length,a=e.length,s=1,l=o+a;r.maxEditLength&&(l=Math.min(l,r.maxEditLength));var c=null!==(u=r.timeout)&&void 0!==u?u:1/0,f=Date.now()+c,d=[{oldPos:-1,lastComponent:void 0}],F=this.extractCommon(d[0],t,e,0);if(d[0].oldPos+1>=a&&F+1>=o)return i([{value:this.join(t),count:t.length}]);var p=-1/0,h=1/0;function C(){for(var u=Math.max(p,-s);u<=Math.min(h,s);u+=2){var r=void 0,n=d[u-1],l=d[u+1];n&&(d[u-1]=void 0);var c=!1;if(l){var f=l.oldPos-u;c=l&&0<=f&&f=a&&F+1>=o)return i(function(e,t,u,r,n){for(var D,i=[];t;)i.push(t),D=t.previousComponent,delete t.previousComponent,t=D;i.reverse();for(var o=0,a=i.length,s=0,l=0;oe.length?u:e}),c.value=e.join(d)}else c.value=e.join(u.slice(s,s+c.count));s+=c.count,c.added||(l+=c.count)}}var F=i[a-1];return a>1&&"string"==typeof F.value&&(F.added||F.removed)&&e.equals("",F.value)&&(i[a-2].value+=F.value,i.pop()),i}(D,r.lastComponent,t,e,D.useLongestToken));d[u]=r,r.oldPos+1>=a&&(h=Math.min(h,u-1)),F+1>=o&&(p=Math.max(p,u+1))}s++}if(n)!function e(){setTimeout(function(){if(s>l||Date.now()>f)return n();C()||e()},0)}();else for(;s<=l&&Date.now()<=f;){var g=C();if(g)return g}},addToPath:function(e,t,u,r){var n=e.lastComponent;return n&&n.added===t&&n.removed===u?{oldPos:e.oldPos+r,lastComponent:{count:n.count+1,added:t,removed:u,previousComponent:n.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:u,previousComponent:n}}},extractCommon:function(e,t,u,r){for(var n=t.length,D=u.length,i=e.oldPos,o=i-r,a=0;o+1"u"?u:t}:r;return"string"==typeof e?e:JSON.stringify(function e(t,u,r,n,D){for(u=u||[],r=r||[],n&&(t=n(D,t)),i=0;inew Intl.ListFormat("en-US",{type:"disjunction"}).format(e),en=class extends Error{name="InvalidDocError";constructor(e){super(function(e){let t=null===e?"null":typeof e;if("string"!==t&&"object"!==t)return`Unexpected doc '${t}', -Expected it to be 'string' or 'object'.`;if(eu(e))throw Error("doc is valid.");let u=Object.prototype.toString.call(e);if("[object Object]"!==u)return`Unexpected doc '${u}'.`;let r=er([...et].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'. -Expected it to be ${r}.`}(e)),this.doc=e}},eD={},ei=function(e,t,u,r){let n=[e];for(;n.length>0;){let e=n.pop();if(e===eD){u(n.pop());continue}u&&n.push(e,eD);let D=eu(e);if(!D)throw new en(e);if((null==t?void 0:t(e))!==!1)switch(D){case R:case H:{let t=D===R?e:e.parts;for(let e=t.length,u=e-1;u>=0;--u)n.push(t[u]);break}case G:n.push(e.flatContents,e.breakContents);break;case U:if(r&&e.expandedStates)for(let t=e.expandedStates.length,u=t-1;u>=0;--u)n.push(e.expandedStates[u]);else n.push(e.contents);break;case V:case q:case K:case Q:case Y:n.push(e.contents);break;case W:case z:case J:case Z:case X:case ee:break;default:throw new en(e)}}},eo=()=>{};function ea(e){return eo(e),{type:q,contents:e}}function es(e,t){return eo(t),{type:V,contents:t,n:e}}function el(e,t={}){return eo(e),eo(t.expandedStates,!0),{type:U,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function ec(e){return eo(e),{type:H,parts:e}}function ef(e){return eo(e),{type:Y,contents:e}}var ed={type:ee},eF={type:X,hard:!0},ep={type:X,hard:!0,literal:!0},eh={type:X},eC=[eF,ed],eg=[ep,ed],eE={type:z};function em(e,t){eo(e),eo(t);let u=[];for(let r=0;r0){for(let e=0;e{if(!(e&&null==t))return Array.isArray(t)||"string"==typeof t?t[u<0?t.length+u:u]:t.at(u)},ev=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g,eB=e=>{var t;return!(12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510||(t=e)>=4352&&t<=4447||8986===t||8987===t||9001===t||9002===t||t>=9193&&t<=9196||9200===t||9203===t||9725===t||9726===t||9748===t||9749===t||t>=9800&&t<=9811||9855===t||9875===t||9889===t||9898===t||9899===t||9917===t||9918===t||9924===t||9925===t||9934===t||9940===t||9962===t||9970===t||9971===t||9973===t||9978===t||9981===t||9989===t||9994===t||9995===t||10024===t||10060===t||10062===t||t>=10067&&t<=10069||10071===t||t>=10133&&t<=10135||10160===t||10175===t||11035===t||11036===t||11088===t||11093===t||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12771||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=19903||t>=19968&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||94192===t||94193===t||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101632&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||110589===t||110590===t||t>=110592&&t<=110882||110898===t||t>=110928&&t<=110930||110933===t||t>=110948&&t<=110951||t>=110960&&t<=111355||126980===t||127183===t||127374===t||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||127568===t||127569===t||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||127988===t||t>=127992&&t<=128062||128064===t||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||128378===t||128405===t||128406===t||128420===t||t>=128507&&t<=128591||t>=128640&&t<=128709||128716===t||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||128747===t||128748===t||t>=128756&&t<=128764||t>=128992&&t<=129003||129008===t||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129672||t>=129680&&t<=129725||t>=129727&&t<=129733||t>=129742&&t<=129755||t>=129760&&t<=129768||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141)},eA=/[^\x20-\x7F]/u,ek=function(e){if(!e)return 0;if(!eA.test(e))return e.length;e=e.replace(ev()," ");let t=0;for(let u of e){let e=u.codePointAt(0);e<=31||e>=127&&e<=159||e>=768&&e<=879||(t+=eB(e)?1:2)}return t};function ew(e,t){if("string"==typeof e)return t(e);let u=new Map;return function e(r){if(u.has(r))return u.get(r);let n=function(u){switch(eu(u)){case R:return t(u.map(e));case H:return t({...u,parts:u.parts.map(e)});case G:return t({...u,breakContents:e(u.breakContents),flatContents:e(u.flatContents)});case U:{let{expandedStates:r,contents:n}=u;return n=r?(r=r.map(e))[0]:e(n),t({...u,contents:n,expandedStates:r})}case V:case q:case K:case Q:case Y:return t({...u,contents:e(u.contents)});case W:case z:case J:case Z:case X:case ee:return t(u);default:throw new en(u)}}(r);return u.set(r,n),n}(e)}function eS(e,t,u){let r=u,n=!1;return ei(e,function(e){if(n)return!1;let u=t(e);void 0!==u&&(n=!0,r=u)}),r}function ex(e){if(e.type===U&&e.break||e.type===X&&e.hard||e.type===ee)return!0}function eO(e){if(e.length>0){let t=eb(!1,e,-1);t.expandedStates||t.break||(t.break="propagated")}return null}function eN(e){return e.type!==X||e.hard?e.type===G?e.flatContents:e:e.soft?"":" "}function e_(e){for(e=[...e];e.length>=2&&eb(!1,e,-2).type===X&&eb(!1,e,-1).type===ee;)e.length-=2;if(e.length>0){let t=ej(eb(!1,e,-1));e[e.length-1]=t}return e}function ej(e){switch(eu(e)){case q:case K:case U:case Y:case Q:{let t=ej(e.contents);return{...e,contents:t}}case G:return{...e,breakContents:ej(e.breakContents),flatContents:ej(e.flatContents)};case H:return{...e,parts:e_(e.parts)};case R:return e_(e);case W:return e.replace(/[\n\r]*$/u,"");case V:case z:case J:case Z:case X:case ee:break;default:throw new en(e)}return e}function eP(e){return ej(ew(e,e=>(function(e){switch(eu(e)){case H:if(e.parts.every(e=>""===e))return"";break;case U:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===U&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case V:case q:case K:case Y:if(!e.contents)return"";break;case G:if(!e.flatContents&&!e.breakContents)return"";break;case R:{let t=[];for(let u of e){if(!u)continue;let[e,...r]=Array.isArray(u)?u:[u];"string"==typeof e&&"string"==typeof eb(!1,t,-1)?t[t.length-1]+=e:t.push(e),t.push(...r)}return 0===t.length?"":1===t.length?t[0]:t}case W:case z:case J:case Z:case X:case Q:case ee:break;default:throw new en(e)}return e})(e)))}function eT(e){if(e.type===X)return!0}function eI(e,t){return e.type===Q?{...e,contents:t(e.contents)}:t(e)}var e$=Symbol("MODE_BREAK"),eL=Symbol("MODE_FLAT"),eM=Symbol("cursor");function eW(){return{value:"",length:0,queue:[]}}function eR(e,t,u){let r="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t],n="",D=0,i=0,o=0;for(let e of r)switch(e.type){case"indent":l(),u.useTabs?a(1):s(u.tabWidth);break;case"stringAlign":l(),n+=e.n,D+=e.n.length;break;case"numberAlign":i+=1,o+=e.n;break;default:throw Error(`Unexpected type '${e.type}'`)}return c(),{...e,value:n,length:D,queue:r};function a(e){n+=" ".repeat(e),D+=u.tabWidth*e}function s(e){n+=" ".repeat(e),D+=e}function l(){u.useTabs?(i>0&&a(i),i=0,o=0):c()}function c(){o>0&&s(o),i=0,o=0}}function ez(e){let t=0,u=0,r=e.length;e:for(;r--;){let n=e[r];if(n===eM){u++;continue}for(let u=n.length-1;u>=0;u--){let D=n[u];if(" "===D||" "===D)t++;else{e[r]=n.slice(0,u+1);break e}}}if(t>0||u>0)for(e.length=r+1;u-- >0;)e.push(eM);return t}function eq(e,t,u,r,n,D){if(u===Number.POSITIVE_INFINITY)return!0;let i=t.length,o=[e],a=[];for(;u>=0;){if(0===o.length){if(0===i)return!0;o.push(t[--i]);continue}let{mode:e,doc:s}=o.pop(),l=eu(s);switch(l){case W:a.push(s),u-=ek(s);break;case R:case H:{let t=l===R?s:s.parts;for(let u=t.length-1;u>=0;u--)o.push({mode:e,doc:t[u]});break}case q:case V:case K:case Q:o.push({mode:e,doc:s.contents});break;case J:u+=ez(a);break;case U:{if(D&&s.break)return!1;let t=s.break?e$:e,u=s.expandedStates&&t===e$?eb(!1,s.expandedStates,-1):s.contents;o.push({mode:t,doc:u});break}case G:{let t=(s.groupId?n[s.groupId]||eL:e)===e$?s.breakContents:s.flatContents;t&&o.push({mode:e,doc:t});break}case X:if(e===e$||s.hard)return!0;s.soft||(a.push(" "),u--);break;case Y:r=!0;break;case Z:if(r)return!1}}return!1}function eV(e,t){var u;let r,n,D={},i=t.printWidth,o=L(t.endOfLine),a=0,s=[{ind:eW(),mode:e$,doc:e}],l=[],c=!1,f=[],d=0;for(r=new Set,n=[],ei(e,function(e){if(e.type===ee&&eO(n),e.type===U){if(n.push(e),r.has(e))return!1;r.add(e)}},function(e){e.type===U&&n.pop().break&&eO(n)},!0);s.length>0;){let{ind:e,mode:r,doc:n}=s.pop();switch(eu(n)){case W:{let e=o!==` -`?S(!1,n,` -`,o):n;l.push(e),s.length>0&&(a+=ek(e));break}case R:for(let t=n.length-1;t>=0;t--)s.push({ind:e,mode:r,doc:n[t]});break;case z:if(d>=2)throw Error("There are too many 'cursor' in doc.");l.push(eM),d++;break;case q:s.push({ind:eR(e,{type:"indent"},t),mode:r,doc:n.contents});break;case V:s.push({ind:(u=n.n)===Number.NEGATIVE_INFINITY?e.root||eW():u<0?eR(e,{type:"dedent"},t):u?"root"===u.type?{...e,root:e}:eR(e,{type:"string"==typeof u?"stringAlign":"numberAlign",n:u},t):e,mode:r,doc:n.contents});break;case J:a-=ez(l);break;case U:switch(r){case eL:if(!c){s.push({ind:e,mode:n.break?e$:eL,doc:n.contents});break}case e$:{c=!1;let t={ind:e,mode:eL,doc:n.contents},u=i-a,r=f.length>0;if(!n.break&&eq(t,s,u,r,D))s.push(t);else if(n.expandedStates){let t=eb(!1,n.expandedStates,-1);if(n.break)s.push({ind:e,mode:e$,doc:t});else for(let i=1;i=n.expandedStates.length){s.push({ind:e,mode:e$,doc:t});break}else{let t={ind:e,mode:eL,doc:n.expandedStates[i]};if(eq(t,s,u,r,D)){s.push(t);break}}}else s.push({ind:e,mode:e$,doc:n.contents})}}n.id&&(D[n.id]=eb(!1,s,-1).mode);break;case H:{let t=i-a,{parts:u}=n;if(0===u.length)break;let[o,l]=u,c={ind:e,mode:eL,doc:o},d={ind:e,mode:e$,doc:o},F=eq(c,[],t,f.length>0,D,!0);if(1===u.length){F?s.push(c):s.push(d);break}let p={ind:e,mode:eL,doc:l},h={ind:e,mode:e$,doc:l};if(2===u.length){F?s.push(p,c):s.push(h,d);break}u.splice(0,2);let C={ind:e,mode:r,doc:ec(u)};eq({ind:e,mode:eL,doc:[o,l,u[0]]},[],t,f.length>0,D,!0)?s.push(C,p,c):F?s.push(C,h,c):s.push(C,h,d);break}case G:case K:{let t=n.groupId?D[n.groupId]:r;if(t===e$){let t=n.type===G?n.breakContents:n.negate?n.contents:ea(n.contents);t&&s.push({ind:e,mode:r,doc:t})}if(t===eL){let t=n.type===G?n.flatContents:n.negate?ea(n.contents):n.contents;t&&s.push({ind:e,mode:r,doc:t})}break}case Y:f.push({ind:e,mode:r,doc:n.contents});break;case Z:f.length>0&&s.push({ind:e,mode:r,doc:eF});break;case X:switch(r){case eL:if(n.hard)c=!0;else{n.soft||(l.push(" "),a+=1);break}case e$:if(f.length>0){s.push({ind:e,mode:r,doc:n},...f.reverse()),f.length=0;break}n.literal?e.root?(l.push(o,e.root.value),a=e.root.length):(l.push(o),a=0):(a-=ez(l),l.push(o+e.value),a=e.length)}break;case Q:s.push({ind:e,mode:r,doc:n.contents});break;case ee:break;default:throw new en(n)}0===s.length&&f.length>0&&(s.push(...f.reverse()),f.length=0)}let F=l.indexOf(eM);if(-1!==F){let e=l.indexOf(eM,F+1),t=l.slice(0,F).join(""),u=l.slice(F+1,e).join("");return{formatted:t+u+l.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:u}}return{formatted:l.join("")}}var eJ,eU,eH,eG=function(e,t,u=0){let r=0;for(let n=u;n1?eb(!1,e,-2):null}getValue(){return eb(!1,this.stack,-1)}getNode(e=0){let t=m(this,eJ,eU).call(this,e);return -1===t?null:this.stack[t]}getParentNode(e=0){return this.getNode(e+1)}call(e,...t){let{stack:u}=this,{length:r}=u,n=eb(!1,u,-1);for(let e of t)n=n[e],u.push(e,n);try{return e(this)}finally{u.length=r}}callParent(e,t=0){let u=m(this,eJ,eU).call(this,t+1),r=this.stack.splice(u+1);try{return e(this)}finally{this.stack.push(...r)}}each(e,...t){let{stack:u}=this,{length:r}=u,n=eb(!1,u,-1);for(let e of t)n=n[e],u.push(e,n);try{for(let t=0;t{u[r]=e(t,r,n)},...t),u}match(...e){let t=this.stack.length-1,u=null,r=this.stack[t--];for(let n of e){if(void 0===r)return!1;let e=null;if("number"==typeof u&&(e=u,u=this.stack[t--],r=this.stack[t--]),n&&!n(r,u,e))return!1;u=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){for(let t of m(this,eJ,eH).call(this))if(e(t))return t}hasAncestor(e){for(let t of m(this,eJ,eH).call(this))if(e(t))return!0;return!1}};eJ=new WeakSet,eU=function(e){let{stack:t}=this;for(let u=t.length-1;u>=0;u-=2)if(!Array.isArray(t[u])&&--e<0)return u;return -1},eH=function*(){let{stack:e}=this;for(let t=e.length-3;t>=0;t-=2){let u=e[t];Array.isArray(u)||(yield u)}};var eY=new Proxy(()=>{},{get:()=>eY});function*eZ(e,t){let{getVisitorKeys:u,filter:r=()=>!0}=t,n=e=>null!==e&&"object"==typeof e&&r(e);for(let t of u(e)){let u=e[t];if(Array.isArray(u))for(let e of u)n(e)&&(yield e);else n(u)&&(yield u)}}function eX(e){return(t,u,r)=>{let n=!!(null!=r&&r.backwards);if(!1===u)return!1;let{length:D}=t,i=u;for(;i>=0&&iObject.keys(e).filter(e=>!e6.has(e)),e9=function(e){return e?t=>e(t,e6):e7};function e4(e,t){let u,r;(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=(u=e.type||e.kind||"(unknown type)",(r=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"")).length>20&&(r=r.slice(0,19)+"…"),u+(r?" "+r:""))}function e5(e,t){t.leading=!0,t.trailing=!1,e4(e,t)}function te(e,t,u){t.leading=!1,t.trailing=!1,u&&(t.marker=u),e4(e,t)}function tt(e,t){t.leading=!1,t.trailing=!0,e4(e,t)}var tu=new WeakMap;function tr(e,t){if(tu.has(e))return tu.get(e);let{printer:{getCommentChildNodes:u,canAttachComment:r,getVisitorKeys:n},locStart:D,locEnd:i}=t;if(!r)return[];let o=((null==u?void 0:u(e,t))??[...eZ(e,{getVisitorKeys:e9(n)})]).flatMap(e=>r(e)?[e]:tr(e,t));return o.sort((e,t)=>D(e)-D(t)||i(e)-i(t)),tu.set(e,o),o}var tn=()=>!1,tD=e=>!/[\S\n\u2028\u2029]/u.test(e);function ti(e,t){var u,r;let n=e.length;if(0===n)return;let{precedingNode:D,followingNode:i}=e[0],o=t.locStart(i),a;for(a=n;a>0;--a){let{comment:n,precedingNode:s,followingNode:l}=e[a-1];eY.strictEqual(s,D),eY.strictEqual(l,i);let c=t.originalText.slice(t.locEnd(n),o);if((null==(r=(u=t.printer).isGap)?void 0:r.call(u,c,t))??/^[\s(]*$/u.test(c))o=t.locStart(n);else break}for(let[t,{comment:u}]of e.entries())t1&&e.comments.sort((e,u)=>t.locStart(e)-t.locStart(u));e.length=0}function to(e,t,u){let r=u.locStart(t)-1;for(let t=1;t"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive). -The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset. -The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:`Require either '@prettier' or '@format' to be present in the file's first docblock comment -in order for it to be formatted.`,cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function td({plugins:e=[],showDeprecated:t=!1}={}){let u=e.flatMap(e=>e.languages??[]),r=[];for(let n of function(e){let t=[];for(let[u,r]of Object.entries(e)){let e={name:u,...r};Array.isArray(e.default)&&(e.default=eb(!1,e.default,-1).value),t.push(e)}return t}(Object.assign({},...e.map(({options:e})=>e),tf)))!t&&n.deprecated||(Array.isArray(n.choices)&&(t||(n.choices=n.choices.filter(e=>!e.deprecated)),"parser"===n.name&&(n.choices=[...n.choices,...function*(e,t,u){let r=new Set(e.map(e=>e.value));for(let e of t)if(e.parsers){for(let t of e.parsers)if(!r.has(t)){r.add(t);let n=u.find(e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t)),D=e.name;null!=n&&n.name&&(D+=` (plugin: ${n.name})`),yield{value:t,description:D}}}}(n.choices,u,e)])),n.pluginDefaults=Object.fromEntries(e.filter(e=>{var t;return(null==(t=e.defaultOptions)?void 0:t[n.name])!==void 0}).map(e=>[e.name,e.defaultOptions[n.name]])),r.push(n));return{languages:u,options:r}}var tF=e=>String(e).split(/[/\\]/u).pop();function tp(e,t){if(!t)return;let u=tF(t).toLowerCase();return e.find(({filenames:e})=>null==e?void 0:e.some(e=>e.toLowerCase()===u))??e.find(({extensions:e})=>null==e?void 0:e.some(e=>u.endsWith(e)))}var th=function(e,t){let u=e.plugins.flatMap(e=>e.languages??[]),r=function(e,t){if(t)return e.find(({name:e})=>e.toLowerCase()===t)??e.find(({aliases:e})=>null==e?void 0:e.includes(t))??e.find(({extensions:e})=>null==e?void 0:e.includes(`.${t}`))}(u,t.language)??tp(u,t.physicalFile)??tp(u,t.file)??void t.physicalFile;return null==r?void 0:r.parsers[0]},tC={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(e=>tC.value(e)).join(", ")}]`;let t=Object.keys(e);return 0===t.length?"{}":`{ ${t.map(t=>`${tC.key(t)}: ${tC.value(e[t])}`).join(", ")} }`},pair:({key:e,value:t})=>tC.value({[e]:t})},tg=h(y(),1),tE=h(y(),1),tm=Symbol.for("vnopts.VALUE_NOT_EXIST"),ty=Symbol.for("vnopts.VALUE_UNCHANGED"),tb=" ".repeat(2);function tv(e,t,u,r){return`Invalid ${tE.default.red(r.key(e))} value. Expected ${tE.default.blue(u)}, but received ${t===tm?tE.default.gray("nothing"):tE.default.red(r.value(t))}.`}function tB(e,t){if(1===e.length)return e[0];let[u,r]=e,[n,D]=e.map(e=>e.split(` -`,1)[0].length);return n>t&&n>D?r:u}var tA=h(y(),1),tk=[],tw=[],tS=(e,t,{descriptor:u,logger:r,schemas:n})=>{let D=[`Ignored unknown option ${tA.default.yellow(u.pair({key:e,value:t}))}.`],i=Object.keys(n).sort().find(t=>3>function(e,t){if(e===t)return 0;let u=e;e.length>t.length&&(e=t,t=u);let r=e.length,n=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-n);)r--,n--;let D=0;for(;Do?s>o?o+1:s:s>a?a+1:s;return o}(e,t));i&&D.push(`Did you mean ${tA.default.blue(u.key(i))}?`),r.warn(D.join(" "))},tx=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"],tO=class{static create(e){return function(e,t){let u=new e(t),r=Object.create(u);for(let e of tx)e in t&&(r[e]=function(e,t,u){return"function"==typeof e?(...r)=>e(...r.slice(0,u-1),t,...r.slice(u-1)):()=>e}(t[e],u,tO.prototype[e].length));return r}(this,e)}constructor(e){this.name=e.name}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,u){return e}preprocess(e,t){return e}postprocess(e,t){return ty}},tN=class extends tO{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}},t_=class extends tO{expected(){return"anything"}validate(){return!0}},tj=class extends tO{constructor({valueSchema:e,name:t=e.name,...u}){super({...u,name:t}),this._valueSchema=e}expected(e){let{text:t,list:u}=e.normalizeExpectedResult(this._valueSchema.expected(e));return{text:t&&`an array of ${t}`,list:u&&{title:"an array of the following values",values:[{list:u}]}}}validate(e,t){if(!Array.isArray(e))return!1;let u=[];for(let r of e){let e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&u.push(e.value)}return 0===u.length||{value:u}}deprecated(e,t){let u=[];for(let r of e){let e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&u.push(...e.map(({value:e})=>({value:[e]})))}return u}forward(e,t){let u=[];for(let r of e){let e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);u.push(...e.map(tP))}return u}redirect(e,t){let u=[],r=[];for(let n of e){let e=t.normalizeRedirectResult(this._valueSchema.redirect(n,t),n);"remain"in e&&u.push(e.remain),r.push(...e.redirect.map(tP))}return 0===u.length?{redirect:r}:{redirect:r,remain:u}}overlap(e,t){return e.concat(t)}};function tP({from:e,to:t}){return{from:[e],to:t}}var tT=class extends tO{expected(){return"true or false"}validate(e){return"boolean"==typeof e}};function tI(e,t){if(e===t)return 0;let u=typeof e,r=typeof t,n=["undefined","object","boolean","number","string"];return u!==r?n.indexOf(u)-n.indexOf(r):"string"!==u?Number(e)-Number(t):e.localeCompare(t)}function t$(e){return void 0===e?{}:e}function tL(e){if("string"==typeof e)return{text:e};let{text:t,list:u}=e;return function(e,t){if(!e)throw Error(t)}((t||u)!==void 0,"Unexpected `expected` result, there should be at least one field."),u?{text:t,list:{title:u.title,values:u.values.map(tL)}}:{text:t}}function tM(e,t){return!0===e||(!1===e?{value:t}:e)}function tW(e,t,u=!1){return!1!==e&&(!0===e?!!u||[{value:t}]:"value"in e?[e]:0!==e.length&&e)}function tR(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function tz(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>tR(e,t)):[tR(e,t)]}function tq(e,t){let u=tz("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===u.length?{remain:t,redirect:u}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:u}:{redirect:u}}var tV=class extends tO{constructor(e){super(e),this._choices=function(e,t){let u=new Map;for(let r of e){let e=r[t];if(u.has(e))throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);u.set(e,r)}return u}(e.choices.map(e=>e&&"object"==typeof e?e:{value:e}),"value")}expected({descriptor:e}){let t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(({hidden:e})=>!e).map(e=>e.value).sort(tI).map(e.value),u=t.slice(0,-2),r=t.slice(-2);return{text:u.concat(r.join(" or ")).join(", "),list:{title:"one of the following values",values:t}}}validate(e){return this._choices.has(e)}deprecated(e){let t=this._choices.get(e);return!!t&&!!t.deprecated&&{value:e}}forward(e){let t=this._choices.get(e);return t?t.forward:void 0}redirect(e){let t=this._choices.get(e);return t?t.redirect:void 0}},tJ=class extends tO{expected(){return"a number"}validate(e,t){return"number"==typeof e}},tU=class extends tJ{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&e===Math.floor(e)}},tH=class extends tO{expected(){return"a string"}validate(e){return"string"==typeof e}},tG=(e,t,u)=>{let{text:r,list:n}=u.normalizeExpectedResult(u.schemas[e].expected(u)),D=[];return r&&D.push(tv(e,t,r,u.descriptor)),n&&D.push([tv(e,t,n.title,u.descriptor)].concat(n.values.map(e=>(function e({text:t,list:u},r){let n=[];return t&&n.push(`- ${tE.default.blue(t)}`),u&&n.push([`- ${tE.default.blue(u.title)}:`].concat(u.values.map(t=>e(t,r-tb.length).replace(/^|\n/g,`$&${tb}`))).join(` -`)),tB(n,r)})(e,u.loggerPrintWidth))).join(` -`)),tB(D,u.loggerPrintWidth)},tK=(e,t,{descriptor:u})=>{let r=[`${tg.default.yellow("string"==typeof e?u.key(e):u.pair(e))} is deprecated`];return t&&r.push(`we now treat it as ${tg.default.blue("string"==typeof t?u.key(t):u.pair(t))}`),r.join("; ")+"."},tY=class{constructor(e,t){let{logger:u=console,loggerPrintWidth:r=80,descriptor:n=tC,unknown:D=tS,invalid:i=tG,deprecated:o=tK,missing:a=()=>!1,required:s=()=>!1,preprocess:l=e=>e,postprocess:c=()=>ty}=t||{};this._utils={descriptor:n,logger:u||{warn:()=>{}},loggerPrintWidth:r,schemas:function(e,t){let u=Object.create(null);for(let r of e){let e=r[t];if(u[e])throw Error(`Duplicate ${t} ${JSON.stringify(e)}`);u[e]=r}return u}(e,"name"),normalizeDefaultResult:t$,normalizeExpectedResult:tL,normalizeDeprecatedResult:tW,normalizeForwardResult:tz,normalizeRedirectResult:tq,normalizeValidateResult:tM},this._unknownHandler=D,this._invalidHandler=(...e)=>{let t=i(...e);return"string"==typeof t?Error(t):t},this._deprecatedHandler=o,this._identifyMissing=(e,t)=>!(e in t)||a(e,t),this._identifyRequired=s,this._preprocess=l,this._postprocess=c,this.cleanHistory()}cleanHistory(){let e;this._hasDeprecationWarned=(e=Object.create(null),t=>{let u=JSON.stringify(t);return!!e[u]||(e[u]=!0,!1)})}normalize(e){let t={},u=[this._preprocess(e,this._utils)],r=()=>{for(;0!==u.length;){let e=u.shift(),r=this._applyNormalization(e,t);u.push(...r)}};for(let e of(r(),Object.keys(this._utils.schemas))){let r=this._utils.schemas[e];if(!(e in t)){let t=t$(r.default(this._utils));"value"in t&&u.push({[e]:t.value})}}for(let e of(r(),Object.keys(this._utils.schemas))){if(!(e in t))continue;let u=this._utils.schemas[e],r=t[e],n=u.postprocess(r,this._utils);n!==ty&&(this._applyValidation(n,e,u),t[e]=n)}return this._applyPostprocess(t),this._applyRequiredCheck(t),t}_applyNormalization(e,t){let u=[],{knownKeys:r,unknownKeys:n}=this._partitionOptionKeys(e);for(let n of r){let r=this._utils.schemas[n],D=r.preprocess(e[n],this._utils);this._applyValidation(D,n,r);let i=({from:e,to:t})=>{u.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},o=({value:e,redirectTo:t})=>{let u=tW(r.deprecated(e,this._utils),D,!0);if(!1!==u){if(!0===u)this._hasDeprecationWarned(n)||this._utils.logger.warn(this._deprecatedHandler(n,t,this._utils));else for(let{value:e}of u){let u={key:n,value:e};if(!this._hasDeprecationWarned(u)){let r="string"==typeof t?{key:t,value:e}:t;this._utils.logger.warn(this._deprecatedHandler(u,r,this._utils))}}}};tz(r.forward(D,this._utils),D).forEach(i);let a=tq(r.redirect(D,this._utils),D);if(a.redirect.forEach(i),"remain"in a){let e=a.remain;t[n]=n in t?r.overlap(t[n],e,this._utils):e,o({value:e})}for(let{from:e,to:t}of a.redirect)o({value:e,redirectTo:t})}for(let r of n){let n=e[r];this._applyUnknownHandler(r,n,t,(e,t)=>{u.push({[e]:t})})}return u}_applyRequiredCheck(e){for(let t of Object.keys(this._utils.schemas))if(this._identifyMissing(t,e)&&this._identifyRequired(t))throw this._invalidHandler(t,tm,this._utils)}_partitionOptionKeys(e){let[t,u]=function(e,t){let u=[],r=[];for(let n of e)t(n)?u.push(n):r.push(n);return[u,r]}(Object.keys(e).filter(t=>!this._identifyMissing(t,e)),e=>e in this._utils.schemas);return{knownKeys:t,unknownKeys:u}}_applyValidation(e,t,u){let r=tM(u.validate(e,this._utils),e);if(!0!==r)throw this._invalidHandler(t,r.value,this._utils)}_applyUnknownHandler(e,t,u,r){let n=this._unknownHandler(e,t,this._utils);if(n)for(let e of Object.keys(n)){if(this._identifyMissing(e,n))continue;let t=n[e];e in this._utils.schemas?r(e,t):u[e]=t}}_applyPostprocess(e){let t=this._postprocess(e,this._utils);if(t!==ty){if(t.delete)for(let u of t.delete)delete e[u];if(t.override){let{knownKeys:u,unknownKeys:r}=this._partitionOptionKeys(t.override);for(let r of u){let u=t.override[r];this._applyValidation(u,r,this._utils.schemas[r]),e[r]=u}for(let u of r){let r=t.override[u];this._applyUnknownHandler(u,r,e,(t,u)=>{let r=this._utils.schemas[t];this._applyValidation(u,t,r),e[t]=u})}}}}},tZ=function(e,t,{logger:u=!1,isCLI:r=!1,passThrough:n=!1,FlagSchema:i,descriptor:o}={}){if(r){if(!i)throw Error("'FlagSchema' option is required.");if(!o)throw Error("'descriptor' option is required.")}else o=tC;let a=n?Array.isArray(n)?(e,t)=>n.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,u)=>{let{_:r,...n}=u.schemas;return tS(e,t,{...u,schemas:n})},s=new tY(function(e,{isCLI:t,FlagSchema:u}){let r=[];for(let n of(t&&r.push(t_.create({name:"_"})),e))r.push(function(e,{isCLI:t,optionInfos:u,FlagSchema:r}){let{name:n}=e,D={name:n},i,o={};switch(e.type){case"int":i=tU,t&&(D.preprocess=Number);break;case"string":case"path":i=tH;break;case"choice":i=tV,D.choices=e.choices.map(t=>null!=t&&t.redirect?{...t,redirect:{to:{key:e.name,value:t.redirect}}}:t);break;case"boolean":i=tT;break;case"flag":i=r,D.flags=u.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&`no-${e.name}`].filter(Boolean));break;default:throw Error(`Unexpected type ${e.type}`)}if(e.exception?D.validate=(t,u,r)=>e.exception(t)||u.validate(t,r):D.validate=(e,t,u)=>void 0===e||t.validate(e,u),e.redirect&&(o.redirect=t=>t?{to:"string"==typeof e.redirect?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){let e=D.preprocess||(e=>e);D.preprocess=(t,u,r)=>u.preprocess(e(Array.isArray(t)?eb(!1,t,-1):t),r)}return e.array?tj.create({...t?{preprocess:e=>Array.isArray(e)?e:[e]}:{},...o,valueSchema:i.create(D)}):i.create({...D,...o})}(n,{isCLI:t,optionInfos:e,FlagSchema:u})),n.alias&&t&&r.push(tN.create({name:n.alias,sourceName:n.name}));return r}(t,{isCLI:r,FlagSchema:i}),{logger:u,unknown:a,descriptor:o}),l=!1!==u;l&&D&&(s._hasDeprecationWarned=D);let c=s.normalize(e);return l&&(D=s._hasDeprecationWarned),c},tX=(e,t,u)=>{if(!(e&&null==t)){if(t.findLast)return t.findLast(u);for(let e=t.length-1;e>=0;e--){let r=t[e];if(u(r,e,t))return r}}};function tQ(e,t){if(!t)throw Error("parserName is required.");let u=tX(!1,e,e=>e.parsers&&Object.prototype.hasOwnProperty.call(e.parsers,t));if(u)return u;let r=`Couldn't resolve parser "${t}".`;throw new tl(r+=" Plugins must be explicitly added to the standalone bundle.")}function t0(e,t){let u=e.parsers[t];return"function"==typeof u?u():u}var t2={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};async function t1(e,t={}){var u,r;let n;let D={...e};if(!D.parser){if(D.filepath){if(D.parser=th(D,{physicalFile:D.filepath}),!D.parser)throw new tc(`No parser could be inferred for file "${D.filepath}".`)}else throw new tc("No parser and no file path given, couldn't infer a parser.")}let i=td({plugins:e.plugins,showDeprecated:!0}).options,o={...t2,...Object.fromEntries(i.filter(e=>void 0!==e.default).map(e=>[e.name,e.default]))},a=tQ(D.plugins,D.parser),s=await t0(a,D.parser);D.astFormat=s.astFormat,D.locEnd=s.locEnd,D.locStart=s.locStart;let l=null!=(u=a.printers)&&u[s.astFormat]?a:function(e,t){if(!t)throw Error("astFormat is required.");let u=tX(!1,e,e=>e.printers&&Object.prototype.hasOwnProperty.call(e.printers,t));if(u)return u;let r=`Couldn't find plugin for AST format "${t}".`;throw new tl(r+=" Plugins must be explicitly added to the standalone bundle.")}(D.plugins,s.astFormat),c=await (r=s.astFormat,"function"==typeof(n=l.printers[r])?n():n);D.printer=c;let f=l.defaultOptions?Object.fromEntries(Object.entries(l.defaultOptions).filter(([,e])=>void 0!==e)):{};for(let[e,t]of Object.entries({...o,...f}))(null===D[e]||void 0===D[e])&&(D[e]=t);return"json"===D.parser&&(D.trailingComma="none"),tZ(D,i,{passThrough:Object.keys(t2),...t})}var t8=h(w(),1);async function t3(e,t){let u,r=await function({plugins:e,parser:t}){return t0(tQ(e,t),t)}(t),n=r.preprocess?r.preprocess(e,t):e;t.originalText=n;try{u=await r.parse(n,t,t)}catch(t){!function(e,t){let{loc:u}=e;if(u){let r=(0,t8.codeFrameColumns)(t,u,{highlightCode:!0});throw e.message+=` -`+r,e.codeFrame=r,e}throw e}(t,e)}return{text:n,ast:u}}async function t6(e,t,u,r,n){let{embeddedLanguageFormatting:D,printer:{embed:i,hasPrettierIgnore:o=()=>!1,getVisitorKeys:a}}=u;if(!i||"auto"!==D)return;if(i.length>2)throw Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");let s=e9(i.getVisitorKeys??a),l=[];!function t(){let{node:r}=e;if(null===r||"object"!=typeof r||o(e))return;for(let u of s(r))Array.isArray(r[u])?e.each(t,u):e.call(t,u);let D=i(e,u);if(D){if("function"==typeof D){l.push({print:D,node:r,pathStack:[...e.stack]});return}n.set(r,D)}}();let c=e.stack;for(let{print:r,node:D,pathStack:i}of l)try{e.stack=i;let o=await r(f,t,e,u);o&&n.set(D,o)}catch(e){if(globalThis.PRETTIER_DEBUG)throw e}function f(e,t){return t7(e,t,u,r)}e.stack=c}async function t7(e,t,u,r){let n=await t1({...u,...t,parentParser:u.parser,originalText:e},{passThrough:!0}),{ast:D}=await t3(e,n);return eP(await r(D,n))}var t9=function(e,t){let{originalText:u,[Symbol.for("comments")]:r,locStart:n,locEnd:D,[Symbol.for("printedComments")]:i}=t,{node:o}=e,a=n(o),s=D(o);for(let e of r)n(e)>=a&&D(e)<=s&&i.add(e);return u.slice(a,s)};async function t4(e,t){({ast:e}=await ue(e,t));let u=new Map,r=new eK(e),n=()=>{},D=new Map;await t6(r,o,t,t4,D);let i=await t5(r,t,o,void 0,D);return function(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:u}=e;for(let e of t){if(!e.printed&&!u.has(e))throw Error('Comment "'+e.value.trim()+'" was not printed. Please report this error!');delete e.printed}}(t),i;function o(e,t){return void 0===e||e===r?a(t):Array.isArray(e)?r.call(()=>a(t),...e):r.call(()=>a(t),e)}function a(e){n(r);let i=r.node;if(null==i)return"";let a=i&&"object"==typeof i&&void 0===e;if(a&&u.has(i))return u.get(i);let s=t5(r,t,o,e,D);return a&&u.set(i,s),s}}function t5(e,t,u,r,n){var D;let{node:i}=e,{printer:o}=t,a;return a=null!=(D=o.hasPrettierIgnore)&&D.call(o,e)?t9(e,t):n.has(i)?n.get(i):o.print(e,t,u,r),i===t.cursorNode&&(a=eI(a,e=>[eE,e,eE])),!o.printComment||o.willPrintOwnComments&&o.willPrintOwnComments(e,t)||(a=function(e,t,u){let{leading:r,trailing:n}=function(e,t){let u=e.node;if(!u)return{};let r=t[Symbol.for("printedComments")];if(0===(u.comments||[]).filter(e=>!r.has(e)).length)return{leading:"",trailing:""};let n=[],D=[],i;return e.each(()=>{let u=e.node;if(null!=r&&r.has(u))return;let{leading:o,trailing:a}=u;o?n.push(function(e,t){var u;let r=e.node,n=[ts(e,t)],{printer:D,originalText:i,locStart:o,locEnd:a}=t;if(null==(u=D.isBlockComment)?void 0:u.call(D,r)){let e=e3(i,a(r))?e3(i,o(r),{backwards:!0})?eC:eh:" ";n.push(e)}else n.push(eC);let s=e8(i,e0(i,a(r)));return!1!==s&&e3(i,s)&&n.push(eC),n}(e,t)):a&&(i=function(e,t,u){var r;let n=e.node,D=ts(e,t),{printer:i,originalText:o,locStart:a}=t,s=null==(r=i.isBlockComment)?void 0:r.call(i,n);return null!=u&&u.hasLineSuffix&&!(null!=u&&u.isBlock)||e3(o,a(n),{backwards:!0})?{doc:ef([eC,ta(o,a(n))?eC:"",D]),isBlock:s,hasLineSuffix:!0}:!s||null!=u&&u.hasLineSuffix?{doc:[ef([" ",D]),ed],isBlock:s,hasLineSuffix:!0}:{doc:[" ",D],isBlock:s,hasLineSuffix:!1}}(e,t,i),D.push(i.doc))},"comments"),{leading:n,trailing:D}}(e,u);return r||n?eI(t,e=>[r,e,n]):t}(e,a,t)),a}async function ue(e,t){let u=e.comments??[];t[Symbol.for("comments")]=u,t[Symbol.for("tokens")]=e.tokens??[],t[Symbol.for("printedComments")]=new Set,function(e,t){let{comments:u}=e;if(delete e.comments,!(Array.isArray(u)&&u.length>0)||!t.printer.canAttachComment)return;let r=[],{locStart:n,locEnd:D,printer:{experimentalFeatures:{avoidAstMutation:i=!1}={},handleComments:o={}},originalText:a}=t,{ownLine:s=tn,endOfLine:l=tn,remaining:c=tn}=o,f=u.map((r,n)=>({...function e(t,u,r,n){let{locStart:D,locEnd:i}=r,o=D(u),a=i(u),s=tr(t,r),l,c,f=0,d=s.length;for(;f>1,n=s[t],F=D(n),p=i(n);if(F<=o&&a<=p)return e(n,u,r,n);if(p<=o){l=n,f=t+1;continue}if(a<=F){c=n,d=t;continue}throw Error("Comment location overlaps with node location")}if((null==n?void 0:n.type)==="TemplateLiteral"){let{quasis:e}=n,t=to(e,u,r);l&&to(e,l,r)!==t&&(l=null),c&&to(e,c,r)!==t&&(c=null)}return{enclosingNode:n,precedingNode:l,followingNode:c}}(e,r,t),comment:r,text:a,options:t,ast:e,isLastComment:u.length-1===n}));for(let[e,t]of f.entries()){let u,{comment:o,precedingNode:a,enclosingNode:d,followingNode:F,text:p,options:h,ast:C,isLastComment:g}=t;if("json"===h.parser||"json5"===h.parser||"jsonc"===h.parser||"__js_expression"===h.parser||"__ts_expression"===h.parser||"__vue_expression"===h.parser||"__vue_ts_expression"===h.parser){if(n(o)-n(C)<=0){e5(C,o);continue}if(D(o)-D(C)>=0){tt(C,o);continue}}if(i?u=[t]:(o.enclosingNode=d,o.precedingNode=a,o.followingNode=F,u=[o,p,h,C,g]),function(e,t,u,r){let{comment:n,precedingNode:D}=u[r],{locStart:i,locEnd:o}=t,a=i(n);if(D)for(let t=r-1;t>=0;t--){let{comment:r,precedingNode:n}=u[t];if(n!==D||!tD(e.slice(o(r),a)))break;a=i(r)}return e3(e,a,{backwards:!0})}(p,h,f,e))o.placement="ownLine",s(...u)||(F?e5(F,o):a?tt(a,o):d?te(d,o):te(C,o));else if(function(e,t,u,r){let{comment:n,followingNode:D}=u[r],{locStart:i,locEnd:o}=t,a=o(n);if(D)for(let t=r+1;t0&&r[e-1].followingNode!==F&&ti(r,h),r.push(t)}else a?tt(a,o):F?e5(F,o):d?te(d,o):te(C,o)}}if(ti(r,t),!i)for(let e of u)delete e.precedingNode,delete e.enclosingNode,delete e.followingNode}(e,t);let{printer:{preprocess:r}}=t;return{ast:e=r?await r(e,t):e,comments:u}}var ut=function(e,t){let{cursorOffset:u,locStart:r,locEnd:n}=t,D=e9(t.printer.getVisitorKeys),i=e;for(let t of function*(e,t){let u=[e];for(let e=0;er(e)<=u&&n(e)>=u}))i=t;return i},uu=function(e,t){let{printer:{massageAstNode:u,getVisitorKeys:r}}=t;if(!u)return e;let n=e9(r),D=u.ignoredProperties??new Set;return function e(t,r){if(!(null!==t&&"object"==typeof t))return t;if(Array.isArray(t))return t.map(t=>e(t,r)).filter(Boolean);let i={},o=new Set(n(t));for(let u in t)!Object.prototype.hasOwnProperty.call(t,u)||D.has(u)||(o.has(u)?i[u]=e(t[u],t):i[u]=t[u]);let a=u(t,i,r);if(null!==a)return a??i}(e)},ur=(e,t,u)=>{if(!(e&&null==t)){if(t.findLastIndex)return t.findLastIndex(u);for(let e=t.length-1;e>=0;e--)if(u(t[e],e,t))return e;return -1}},un=({parser:e})=>"json"===e||"json5"===e||"jsonc"===e||"json-stringify"===e;function uD(e){let t=ur(!1,e,e=>"Program"!==e.type&&"File"!==e.type);return -1===t?e:e.slice(0,t+1)}function ui(e,t,u,r,n=[],D){let{locStart:i,locEnd:o}=u,a=i(e),s=o(e);if(!(t>s||t=0&&(t.cursorNode=ut(r,t));let D=await t4(r,t,u);u>0&&(D=ey([eC,D],u,t.tabWidth));let i=eV(D,t);if(u>0){let e=i.formatted.trim();void 0!==i.cursorNodeStart&&(i.cursorNodeStart-=i.formatted.indexOf(e)),i.formatted=e+L(t.endOfLine)}let o=t[Symbol.for("comments")];if(t.cursorOffset>=0){let e,u,r,D,a;if(t.cursorNode&&i.cursorNodeText?(e=t.locStart(t.cursorNode),u=n.slice(e,t.locEnd(t.cursorNode)),r=t.cursorOffset-e,D=i.cursorNodeStart,a=i.cursorNodeText):(e=0,u=n,r=t.cursorOffset,D=0,a=i.formatted),u===a)return{formatted:i.formatted,cursorOffset:D+r,comments:o};let s=u.split("");s.splice(r,0,ul);let l=a.split(""),c=$.diff(s,l,void 0),f=D;for(let e of c)if(e.removed){if(e.value.includes(ul))break}else f+=e.count;return{formatted:i.formatted,cursorOffset:f,comments:o}}return{formatted:i.formatted,cursorOffset:-1,comments:o}}async function uf(e,t){let{ast:u,text:r}=await t3(e,t),{rangeStart:n,rangeEnd:D}=function(e,t,u){let r,n,{rangeStart:D,rangeEnd:i,locStart:o,locEnd:a}=t;eY.ok(i>D);let s=e.slice(D,i).search(/\S/u),l=-1===s;if(!l)for(D+=s;i>D&&!/\S/u.test(e[i-1]);--i);let c=ui(u,D,t,(e,u)=>us(t,e,u),[],"rangeStart"),f=l?c:ui(u,i,t,e=>us(t,e),[],"rangeEnd");if(!c||!f)return{rangeStart:0,rangeEnd:0};if(un(t)){let e,t;let u=(e=[c.node,...c.parentNodes],t=new Set([f.node,...f.parentNodes]),e.find(e=>uo.has(e.type)&&t.has(e)));r=u,n=u}else({startNode:r,endNode:n}=function(e,t,{locStart:u,locEnd:r}){let n=e.node,D=t.node;if(n===D)return{startNode:n,endNode:D};let i=u(e.node);for(let e of uD(t.parentNodes))if(u(e)>=i)D=e;else break;let o=r(t.node);for(let t of uD(e.parentNodes)){if(r(t)<=o)n=t;else break;if(n===D)break}return{startNode:n,endNode:D}}(c,f,t));return{rangeStart:Math.min(o(r),o(n)),rangeEnd:Math.max(a(r),a(n))}}(r,t,u),i=r.slice(n,D),o=Math.min(n,r.lastIndexOf(` -`,n)+1),a=eG(r.slice(o,n).match(/^\s*/u)[0],t.tabWidth),s=await uc(i,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>n&&t.cursorOffset<=D?t.cursorOffset-n:-1,endOfLine:"lf"},a),l=s.formatted.trimEnd(),{cursorOffset:c}=t;c>D?c+=l.length-i.length:s.cursorOffset>=0&&(c=s.cursorOffset+n);let f=r.slice(0,n)+l+r.slice(D);if("lf"!==t.endOfLine){let e=L(t.endOfLine);c>=0&&e===`\r -`&&(c+=M(f.slice(0,c),` -`)),f=S(!1,f,` -`,e)}return{formatted:f,cursorOffset:c,comments:s.comments}}function ud(e,t,u){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?u:t}function uF(e,t){let{cursorOffset:u,rangeStart:r,rangeEnd:n}=t;return u=ud(e,u,-1),r=ud(e,r,0),n=ud(e,n,e.length),{...t,cursorOffset:u,rangeStart:r,rangeEnd:n}}function up(e,t){var u;let r,{cursorOffset:n,rangeStart:D,rangeEnd:i,endOfLine:o}=uF(e,t),a="\uFEFF"===e.charAt(0);if(a&&(e=e.slice(1),n--,D--,i--),"auto"===o&&(o=(r=(u=e).indexOf("\r"))>=0?u.charAt(r+1)===` -`?"crlf":"cr":"lf"),e.includes("\r")){let t=t=>M(e.slice(0,Math.max(t,0)),`\r -`);n-=t(n),D-=t(D),i-=t(i),e=S(!1,e,/\r\n?/gu,` -`)}return{hasBOM:a,text:e,options:uF(e,{...t,cursorOffset:n,rangeStart:D,rangeEnd:i,endOfLine:o})}}async function uh(e,t){let u=await function({plugins:e,parser:t}){return t0(tQ(e,t),t)}(t);return!u.hasPragma||u.hasPragma(e)}async function uC(e,t){let u,{hasBOM:r,text:n,options:D}=up(e,await t1(t));return D.rangeStart>=D.rangeEnd&&""!==n||D.requirePragma&&!await uh(n,D)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(D.rangeStart>0||D.rangeEnd=0&&u.cursorOffset++),u)}async function ug(e,t,u){let{text:r,options:n}=up(e,await t1(t)),D=await t3(r,n);return u&&(u.preprocessForPrint&&(D.ast=await ue(D.ast,n)),u.massage&&(D.ast=uu(D.ast,n))),D}async function uE(e,t){return t=await t1(t),eV(await t4(e,t),t)}async function um(e,t){let u=function(e){let t=Object.create(null),u=new Set;return function e(t,u,n){var D,i;if("string"==typeof t)return JSON.stringify(t);if(Array.isArray(t)){let u=t.map(e).filter(Boolean);return 1===u.length?u[0]:`[${u.join(", ")}]`}if(t.type===X){let e=(null==(D=null==n?void 0:n[u+1])?void 0:D.type)===ee;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if(t.type===ee)return(null==(i=null==n?void 0:n[u-1])?void 0:i.type)===X&&n[u-1].hard?void 0:"breakParent";if(t.type===J)return"trim";if(t.type===q)return"indent("+e(t.contents)+")";if(t.type===V)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if(t.type===G)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+`, { groupId: ${r(t.groupId)} }`:"")+")";if(t.type===K){let u=[];t.negate&&u.push("negate: true"),t.groupId&&u.push(`groupId: ${r(t.groupId)}`);let n=u.length>0?`, { ${u.join(", ")} }`:"";return`indentIfBreak(${e(t.contents)}${n})`}if(t.type===U){let u=[];t.break&&"propagated"!==t.break&&u.push("shouldBreak: true"),t.id&&u.push(`id: ${r(t.id)}`);let n=u.length>0?`, { ${u.join(", ")} }`:"";return t.expandedStates?`conditionalGroup([${t.expandedStates.map(t=>e(t)).join(",")}]${n})`:`group(${e(t.contents)}${n})`}if(t.type===H)return`fill([${t.parts.map(t=>e(t)).join(", ")}])`;if(t.type===Y)return"lineSuffix("+e(t.contents)+")";if(t.type===Z)return"lineSuffixBoundary";if(t.type===Q)return`label(${JSON.stringify(t.label)}, ${e(t.contents)})`;throw Error("Unknown doc type "+t.type)}(function e(t){var u;if(!t)return"";if(Array.isArray(t)){let u=[];for(let r of t)if(Array.isArray(r))u.push(...e(r));else{let t=e(r);""!==t&&u.push(t)}return u}return t.type===G?{...t,breakContents:e(t.breakContents),flatContents:e(t.flatContents)}:t.type===U?{...t,contents:e(t.contents),expandedStates:null==(u=t.expandedStates)?void 0:u.map(e)}:t.type===H?{type:"fill",parts:t.parts.map(e)}:t.contents?{...t,contents:e(t.contents)}:t}(e));function r(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];let r=e.description||"symbol";for(let n=0;;n++){let D=r+(n>0?` #${n}`:"");if(!u.has(D))return u.add(D),t[e]=`Symbol.for(${JSON.stringify(D)})`}}}(e),{formatted:r}=await uC(u,{...t,parser:"__js_expression"});return r}async function uy(e,t){t=await t1(t);let{ast:u}=await t3(e,t);return t4(u,t)}async function ub(e,t){return eV(e,await t1(t))}var uv={};F(uv,{builders:()=>uB,printer:()=>uA,utils:()=>uk});var uB={join:em,line:eh,softline:{type:X,soft:!0},hardline:eC,literalline:eg,group:el,conditionalGroup:function(e,t){return el(e[0],{...t,expandedStates:e})},fill:ec,lineSuffix:ef,lineSuffixBoundary:{type:Z},cursor:eE,breakParent:ed,ifBreak:function(e,t="",u={}){return eo(e),""!==t&&eo(t),{type:G,breakContents:e,flatContents:t,groupId:u.groupId}},trim:{type:J},indent:ea,indentIfBreak:function(e,t){return eo(e),{type:K,contents:e,groupId:t.groupId,negate:t.negate}},align:es,addAlignmentToDoc:ey,markAsRoot:function(e){return es({type:"root"},e)},dedentToRoot:function(e){return es(Number.NEGATIVE_INFINITY,e)},dedent:function(e){return es(-1,e)},hardlineWithoutBreakParent:eF,literallineWithoutBreakParent:ep,label:function(e,t){return eo(t),e?{type:Q,label:e,contents:t}:t},concat:e=>e},uA={printDocToString:eV},uk={willBreak:function(e){return eS(e,ex,!1)},traverseDoc:ei,findInDoc:eS,mapDoc:ew,removeLines:function(e){return ew(e,eN)},stripTrailingHardline:eP,replaceEndOfLine:function(e,t=eg){return ew(e,e=>"string"==typeof e?em(t,e.split(` -`)):e)},canBreak:function(e){return eS(e,eT,!1)}},uw="3.3.3",uS={};F(uS,{addDanglingComment:()=>te,addLeadingComment:()=>e5,addTrailingComment:()=>tt,getAlignmentSize:()=>eG,getIndentSize:()=>uj,getMaxContinuousCount:()=>uP,getNextNonSpaceNonCommentCharacter:()=>uT,getNextNonSpaceNonCommentCharacterIndex:()=>uM,getStringWidth:()=>ek,hasNewline:()=>e3,hasNewlineInRange:()=>uI,hasSpaces:()=>u$,isNextLineEmpty:()=>uR,isNextLineEmptyAfterIndex:()=>u_,isPreviousLineEmpty:()=>uW,makeString:()=>uL,skip:()=>eX,skipEverythingButNewLine:()=>e1,skipInlineComment:()=>ux,skipNewline:()=>e8,skipSpaces:()=>e0,skipToLineEnd:()=>e2,skipTrailingComment:()=>uO,skipWhitespace:()=>eQ});var ux=function(e,t){if(!1===t)return!1;if("/"===e.charAt(t)&&"*"===e.charAt(t+1)){for(let u=t+2;uMath.max(e,u.length/t.length),0)},uT=function(e,t){let u=uN(e,t);return!1===u?"":e.charAt(u)},uI=function(e,t,u){for(let r=t;rn===r?n:D===t?"\\"+D:D||(u&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(n)?n:"\\"+n));return t+n+t};function uM(e,t){return 2==arguments.length||"number"==typeof t?uN(e,t):function(e,t,u){return uN(e,u(t))}(...arguments)}function uW(e,t){return 2==arguments.length||"number"==typeof t?ta(e,t):function(e,t,u){return ta(e,u(t))}(...arguments)}function uR(e,t){return 2==arguments.length||"number"==typeof t?u_(e,t):function(e,t,u){return u_(e,u(t))}(...arguments)}function uz(e,t=1){return async(...u)=>{let r=u[t]??{},n=r.plugins??[];return u[t]={...r,plugins:Array.isArray(n)?n:Object.values(n)},e(...u)}}var uq=uz(uC);async function uV(e,t){let{formatted:u}=await uq(e,{...t,cursorOffset:-1});return u}async function uJ(e,t){return await uV(e,t)===e}var uU=uz(td,0),uH={parse:uz(ug),formatAST:uz(uE),formatDoc:uz(um),printToDoc:uz(uy),printDocToString:uz(ub)}}}]); \ No newline at end of file diff --git a/_next/static/chunks/940-af8803efee146d6c.js b/_next/static/chunks/940-af8803efee146d6c.js deleted file mode 100644 index a869af96c..000000000 --- a/_next/static/chunks/940-af8803efee146d6c.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[940],{77347:function(e,t,r){"use strict";var o=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(47955)),a=r(85893);t.default=(0,n.default)((0,a.jsx)("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27M6.24 5h11.52l.81.97H5.44zM5 19V8h14v11zm8.45-9h-2.9v3H8l4 4 4-4h-2.55z"}),"ArchiveOutlined")},39626:function(e,t,r){"use strict";var o=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(47955)),a=r(85893);t.default=(0,n.default)((0,a.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},48878:function(e,t,r){"use strict";var o=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(47955)),a=r(85893);t.default=(0,n.default)((0,a.jsx)("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined")},90645:function(e,t,r){"use strict";var o=r(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(47955)),a=r(85893);t.default=(0,n.default)((0,a.jsx)("path",{d:"m10 16.5 6-4.5-6-4.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"PlayCircleOutline")},10382:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var o=r(63366),n=r(87462),a=r(67294),l=r(90512),i=r(94780),c=r(89262),s=r(59145),u=r(12921),d=r(85893),p=(0,u.Z)((0,d.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person"),f=r(86767);let m=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],h=e=>{let{classes:t,variant:r,colorDefault:o}=e;return(0,i.Z)({root:["root",r,o&&"colorDefault"],img:["img"],fallback:["fallback"]},f.$,t)},v=(0,c.ZP)("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],r.colorDefault&&t.colorDefault]}})(e=>{let{theme:t}=e;return{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:(0,n.Z)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:(0,n.Z)({backgroundColor:t.palette.grey[400]},t.applyDarkStyles({backgroundColor:t.palette.grey[600]})))}]}}),Z=(0,c.ZP)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),g=(0,c.ZP)(p,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});var b=a.forwardRef(function(e,t){let r=(0,s.Z)({props:e,name:"MuiAvatar"}),{alt:i,children:c,className:u,component:p="div",imgProps:f,sizes:b,src:y,srcSet:w,variant:k="circular"}=r,x=(0,o.Z)(r,m),S=null,C=function(e){let{crossOrigin:t,referrerPolicy:r,src:o,srcSet:n}=e,[l,i]=a.useState(!1);return a.useEffect(()=>{if(!o&&!n)return;i(!1);let e=!0,a=new Image;return a.onload=()=>{e&&i("loaded")},a.onerror=()=>{e&&i("error")},a.crossOrigin=t,a.referrerPolicy=r,a.src=o,n&&(a.srcset=n),()=>{e=!1}},[t,r,o,n]),l}((0,n.Z)({},f,{src:y,srcSet:w})),P=y||w,R=P&&"error"!==C,M=(0,n.Z)({},r,{colorDefault:!R,component:p,variant:k}),j=h(M);return S=R?(0,d.jsx)(Z,(0,n.Z)({alt:i,srcSet:w,src:y,sizes:b,ownerState:M,className:j.img},f)):null!=c?c:P&&i?i[0]:(0,d.jsx)(g,{ownerState:M,className:j.fallback}),(0,d.jsx)(v,(0,n.Z)({as:p,ownerState:M,className:(0,l.Z)(j.root,u),ref:t},x,{children:S}))})},86767:function(e,t,r){"use strict";r.d(t,{$:function(){return a}});var o=r(1588),n=r(34867);function a(e){return(0,n.ZP)("MuiAvatar",e)}let l=(0,o.Z)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);t.Z=l},51714:function(e,t,r){"use strict";var o=r(63366),n=r(87462),a=r(67294),l=r(90512),i=r(94780),c=r(59145),s=r(89262),u=r(22537),d=r(75228),p=r(23516),f=r(25491),m=r(20408),h=r(85893);let v=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Z=e=>{let{classes:t,margin:r,fullWidth:o}=e,n={root:["root","none"!==r&&"margin".concat((0,d.Z)(r)),o&&"fullWidth"]};return(0,i.Z)(n,m.e,t)},g=(0,s.ZP)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,n.Z)({},t.root,t["margin".concat((0,d.Z)(r.margin))],r.fullWidth&&t.fullWidth)}})(e=>{let{ownerState:t}=e;return(0,n.Z)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})}),b=a.forwardRef(function(e,t){let r;let i=(0,c.Z)({props:e,name:"MuiFormControl"}),{children:s,className:d,color:m="primary",component:b="div",disabled:y=!1,error:w=!1,focused:k,fullWidth:x=!1,hiddenLabel:S=!1,margin:C="none",required:P=!1,size:R="medium",variant:M="outlined"}=i,j=(0,o.Z)(i,v),D=(0,n.Z)({},i,{color:m,component:b,disabled:y,error:w,fullWidth:x,hiddenLabel:S,margin:C,required:P,size:R,variant:M}),F=Z(D),[z,O]=a.useState(()=>{let e=!1;return s&&a.Children.forEach(s,t=>{if(!(0,p.Z)(t,["Input","Select"]))return;let r=(0,p.Z)(t,["Select"])?t.props.input:t;r&&(0,u.B7)(r.props)&&(e=!0)}),e}),[N,L]=a.useState(()=>{let e=!1;return s&&a.Children.forEach(s,t=>{(0,p.Z)(t,["Input","Select"])&&((0,u.vd)(t.props,!0)||(0,u.vd)(t.props.inputProps,!0))&&(e=!0)}),e}),[U,B]=a.useState(!1);y&&U&&B(!1);let I=void 0===k||y?U:k,q=a.useMemo(()=>({adornedStart:z,setAdornedStart:O,color:m,disabled:y,error:w,filled:N,focused:I,fullWidth:x,hiddenLabel:S,size:R,onBlur:()=>{B(!1)},onEmpty:()=>{L(!1)},onFilled:()=>{L(!0)},onFocus:()=>{B(!0)},registerEffect:r,required:P,variant:M}),[z,m,y,w,N,I,x,S,r,P,R,M]);return(0,h.jsx)(f.Z.Provider,{value:q,children:(0,h.jsx)(g,(0,n.Z)({as:b,ownerState:D,className:(0,l.Z)(F.root,d),ref:t},j,{children:s}))})});t.Z=b},25491:function(e,t,r){"use strict";let o=r(67294).createContext(void 0);t.Z=o},20408:function(e,t,r){"use strict";r.d(t,{e:function(){return a}});var o=r(1588),n=r(34867);function a(e){return(0,n.ZP)("MuiFormControl",e)}let l=(0,o.Z)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);t.Z=l},35029:function(e,t,r){"use strict";function o(e){let{props:t,states:r,muiFormControl:o}=e;return r.reduce((e,r)=>(e[r]=t[r],o&&void 0===t[r]&&(e[r]=o[r]),e),{})}r.d(t,{Z:function(){return o}})},12794:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var o=r(67294),n=r(25491);function a(){return o.useContext(n.Z)}},88735:function(e,t,r){"use strict";var o=r(63366),n=r(87462),a=r(67294),l=r(90512),i=r(94780),c=r(12794),s=r(35465),u=r(58046),d=r(75228),p=r(89262),f=r(59145),m=r(59325),h=r(35029),v=r(85893);let Z=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],g=e=>{let{classes:t,disabled:r,labelPlacement:o,error:n,required:a}=e,l={root:["root",r&&"disabled","labelPlacement".concat((0,d.Z)(o)),n&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",n&&"error"]};return(0,i.Z)(l,m.r,t)},b=(0,p.ZP)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{["& .".concat(m.Z.label)]:t.label},t.root,t["labelPlacement".concat((0,d.Z)(r.labelPlacement))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,n.Z)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(m.Z.disabled)]:{cursor:"default"}},"start"===r.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===r.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===r.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(m.Z.label)]:{["&.".concat(m.Z.disabled)]:{color:(t.vars||t).palette.text.disabled}}})}),y=(0,p.ZP)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(e=>{let{theme:t}=e;return{["&.".concat(m.Z.error)]:{color:(t.vars||t).palette.error.main}}}),w=a.forwardRef(function(e,t){var r,i;let d=(0,f.Z)({props:e,name:"MuiFormControlLabel"}),{className:p,componentsProps:m={},control:w,disabled:k,disableTypography:x,label:S,labelPlacement:C="end",required:P,slotProps:R={}}=d,M=(0,o.Z)(d,Z),j=(0,c.Z)(),D=null!=(r=null!=k?k:w.props.disabled)?r:null==j?void 0:j.disabled,F=null!=P?P:w.props.required,z={disabled:D,required:F};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===w.props[e]&&void 0!==d[e]&&(z[e]=d[e])});let O=(0,h.Z)({props:d,muiFormControl:j,states:["error"]}),N=(0,n.Z)({},d,{disabled:D,labelPlacement:C,required:F,error:O.error}),L=g(N),U=null!=(i=R.typography)?i:m.typography,B=S;return null==B||B.type===u.Z||x||(B=(0,v.jsx)(u.Z,(0,n.Z)({component:"span"},U,{className:(0,l.Z)(L.label,null==U?void 0:U.className),children:B}))),(0,v.jsxs)(b,(0,n.Z)({className:(0,l.Z)(L.root,p),ownerState:N,ref:t},M,{children:[a.cloneElement(w,z),F?(0,v.jsxs)(s.Z,{display:"block",children:[B,(0,v.jsxs)(y,{ownerState:N,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):B]}))});t.Z=w},59325:function(e,t,r){"use strict";r.d(t,{r:function(){return a}});var o=r(1588),n=r(34867);function a(e){return(0,n.ZP)("MuiFormControlLabel",e)}let l=(0,o.Z)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);t.Z=l},46028:function(e,t,r){"use strict";var o=r(63366),n=r(87462),a=r(67294),l=r(90512),i=r(94780),c=r(89262),s=r(59145),u=r(58469),d=r(12794),p=r(35029),f=r(85893);let m=["className","row"],h=e=>{let{classes:t,row:r,error:o}=e;return(0,i.Z)({root:["root",r&&"row",o&&"error"]},u.y,t)},v=(0,c.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.row&&t.row]}})(e=>{let{ownerState:t}=e;return(0,n.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})}),Z=a.forwardRef(function(e,t){let r=(0,s.Z)({props:e,name:"MuiFormGroup"}),{className:a,row:i=!1}=r,c=(0,o.Z)(r,m),u=(0,d.Z)(),Z=(0,p.Z)({props:r,muiFormControl:u,states:["error"]}),g=(0,n.Z)({},r,{row:i,error:Z.error}),b=h(g);return(0,f.jsx)(v,(0,n.Z)({className:(0,l.Z)(b.root,a),ownerState:g,ref:t},c))});t.Z=Z},58469:function(e,t,r){"use strict";r.d(t,{y:function(){return a}});var o=r(1588),n=r(34867);function a(e){return(0,n.ZP)("MuiFormGroup",e)}let l=(0,o.Z)("MuiFormGroup",["root","row","error"]);t.Z=l},17586:function(e,t,r){"use strict";r.d(t,{D:function(){return Z}});var o=r(63366),n=r(87462),a=r(67294),l=r(90512),i=r(94780),c=r(35029),s=r(12794),u=r(75228),d=r(59145),p=r(89262),f=r(65493),m=r(85893);let h=["children","className","color","component","disabled","error","filled","focused","required"],v=e=>{let{classes:t,color:r,focused:o,disabled:n,error:a,filled:l,required:c}=e,s={root:["root","color".concat((0,u.Z)(r)),n&&"disabled",a&&"error",l&&"filled",o&&"focused",c&&"required"],asterisk:["asterisk",a&&"error"]};return(0,i.Z)(s,f.M,t)},Z=(0,p.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return(0,n.Z)({},t.root,"secondary"===r.color&&t.colorSecondary,r.filled&&t.filled)}})(e=>{let{theme:t,ownerState:r}=e;return(0,n.Z)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(f.Z.focused)]:{color:(t.vars||t).palette[r.color].main},["&.".concat(f.Z.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(f.Z.error)]:{color:(t.vars||t).palette.error.main}})}),g=(0,p.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(e=>{let{theme:t}=e;return{["&.".concat(f.Z.error)]:{color:(t.vars||t).palette.error.main}}}),b=a.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"MuiFormLabel"}),{children:a,className:i,component:u="label"}=r,p=(0,o.Z)(r,h),f=(0,s.Z)(),b=(0,c.Z)({props:r,muiFormControl:f,states:["color","required","focused","disabled","error","filled"]}),y=(0,n.Z)({},r,{color:b.color||"primary",component:u,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required}),w=v(y);return(0,m.jsxs)(Z,(0,n.Z)({as:u,ownerState:y,className:(0,l.Z)(w.root,i),ref:t},p,{children:[a,b.required&&(0,m.jsxs)(g,{ownerState:y,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}))});t.Z=b},65493:function(e,t,r){"use strict";r.d(t,{M:function(){return a}});var o=r(1588),n=r(34867);function a(e){return(0,n.ZP)("MuiFormLabel",e)}let l=(0,o.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);t.Z=l},99900:function(e,t,r){"use strict";r.d(t,{Z:function(){return M}});var o=r(87462),n=r(63366),a=r(67294),l=r(20539),i=r(49360),c=r(23769),s=r(63885),u=r(85893);let d=["initialWidth","width"],p=["xs","sm","md","lg","xl"],f=function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return r?p.indexOf(e)<=p.indexOf(t):p.indexOf(e)2&&void 0!==arguments[2]&&arguments[2];return r?p.indexOf(t)<=p.indexOf(e):p.indexOf(t)0&&void 0!==arguments[0]?arguments[0]:{};return t=>{let{withTheme:r=!1,noSSR:p=!1,initialWidth:f}=e;return function(e){let m=(0,i.Z)(),h=e.theme||m,v=(0,l.Z)({theme:h,name:"MuiWithWidth",props:e}),{initialWidth:Z,width:g}=v,b=(0,n.Z)(v,d),[y,w]=a.useState(!1);(0,c.Z)(()=>{w(!0)},[]);let k=h.breakpoints.keys.slice().reverse().reduce((e,t)=>{let r=(0,s.Z)(h.breakpoints.up(t));return!e&&r?t:e},null),x=(0,o.Z)({width:g||(y||p?k:void 0)||Z||f},r?{theme:h}:{},b);return void 0===x.width?null:(0,u.jsx)(t,(0,o.Z)({},x))}}})()(function(e){let{children:t,only:r,width:o}=e,n=(0,i.Z)(),l=!0;if(r){if(Array.isArray(r)){for(let e=0;e{let{classes:t,breakpoints:r}=e,o={root:["root",...r.map(e=>{let{breakpoint:t,dir:r}=e;return"only"===r?"".concat(r).concat((0,g.Z)(t)):"".concat(t).concat((0,g.Z)(r))})]};return(0,Z.Z)(o,k,t)},C=(0,b.ZP)("div",{name:"PrivateHiddenCss",slot:"Root"})(e=>{let{theme:t,ownerState:r}=e,n={display:"none"};return(0,o.Z)({},r.breakpoints.map(e=>{let{breakpoint:r,dir:o}=e;return"only"===o?{[t.breakpoints.only(r)]:n}:"up"===o?{[t.breakpoints.up(r)]:n}:{[t.breakpoints.down(r)]:n}}).reduce((e,t)=>(Object.keys(t).forEach(r=>{e[r]=t[r]}),e),{}))});var P=function(e){let{children:t,className:r,only:a}=e,l=(0,n.Z)(e,x),c=(0,i.Z)(),s=[];for(let e=0;e{s.push({breakpoint:e,dir:"only"})});let d=(0,o.Z)({},e,{breakpoints:s}),p=S(d);return(0,u.jsx)(C,{className:(0,v.Z)(p.root,r),ownerState:d,children:t})};let R=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];var M=function(e){let{implementation:t="js",lgDown:r=!1,lgUp:a=!1,mdDown:l=!1,mdUp:i=!1,smDown:c=!1,smUp:s=!1,xlDown:d=!1,xlUp:p=!1,xsDown:f=!1,xsUp:m=!1}=e,v=(0,n.Z)(e,R);return"js"===t?(0,u.jsx)(h,(0,o.Z)({lgDown:r,lgUp:a,mdDown:l,mdUp:i,smDown:c,smUp:s,xlDown:d,xlUp:p,xsDown:f,xsUp:m},v)):(0,u.jsx)(P,(0,o.Z)({lgDown:r,lgUp:a,mdDown:l,mdUp:i,smDown:c,smUp:s,xlDown:d,xlUp:p,xsDown:f,xsUp:m},v))}},22537:function(e,t,r){"use strict";function o(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function n(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(o(e.value)&&""!==e.value||t&&o(e.defaultValue)&&""!==e.defaultValue)}function a(e){return e.startAdornment}r.d(t,{B7:function(){return a},vd:function(){return n}})},24562:function(e,t,r){"use strict";r.d(t,{Z:function(){return j}});var o=r(63366),n=r(87462),a=r(67294),l=r(90512),i=r(94780),c=r(41796),s=r(93067),u=r(59145),d=r(12921),p=r(85893),f=(0,d.Z)((0,p.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),m=(0,d.Z)((0,p.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),h=r(89262);let v=(0,h.ZP)("span",{shouldForwardProp:h.FO})({position:"relative",display:"flex"}),Z=(0,h.ZP)(f)({transform:"scale(1)"}),g=(0,h.ZP)(m)(e=>{let{theme:t,ownerState:r}=e;return(0,n.Z)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},r.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})});var b=function(e){let{checked:t=!1,classes:r={},fontSize:o}=e,a=(0,n.Z)({},e,{checked:t});return(0,p.jsxs)(v,{className:r.root,ownerState:a,children:[(0,p.jsx)(Z,{fontSize:o,className:r.background,ownerState:a}),(0,p.jsx)(g,{fontSize:o,className:r.dot,ownerState:a})]})},y=r(75228),w=r(15368),k=r(92562),x=r(66950);let S=["checked","checkedIcon","color","icon","name","onChange","size","className"],C=e=>{let{classes:t,color:r,size:o}=e,a={root:["root","color".concat((0,y.Z)(r)),"medium"!==o&&"size".concat((0,y.Z)(o))]};return(0,n.Z)({},t,(0,i.Z)(a,x.l,t))},P=(0,h.ZP)(s.Z,{shouldForwardProp:e=>(0,h.FO)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"medium"!==r.size&&t["size".concat((0,y.Z)(r.size))],t["color".concat((0,y.Z)(r.color))]]}})(e=>{let{theme:t,ownerState:r}=e;return(0,n.Z)({color:(t.vars||t).palette.text.secondary},!r.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===r.color?t.vars.palette.action.activeChannel:t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)("default"===r.color?t.palette.action.active:t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(x.Z.checked)]:{color:(t.vars||t).palette[r.color].main}},{["&.".concat(x.Z.disabled)]:{color:(t.vars||t).palette.action.disabled}})}),R=(0,p.jsx)(b,{checked:!0}),M=(0,p.jsx)(b,{});var j=a.forwardRef(function(e,t){var r,i,c,s;let d=(0,u.Z)({props:e,name:"MuiRadio"}),{checked:f,checkedIcon:m=R,color:h="primary",icon:v=M,name:Z,onChange:g,size:b="medium",className:y}=d,x=(0,o.Z)(d,S),j=(0,n.Z)({},d,{color:h,size:b}),D=C(j),F=(0,k.Z)(),z=f,O=(0,w.Z)(g,F&&F.onChange),N=Z;return F&&(void 0===z&&(c=F.value,z="object"==typeof(s=d.value)&&null!==s?c===s:String(c)===String(s)),void 0===N&&(N=F.name)),(0,p.jsx)(P,(0,n.Z)({type:"radio",icon:a.cloneElement(v,{fontSize:null!=(r=M.props.fontSize)?r:b}),checkedIcon:a.cloneElement(m,{fontSize:null!=(i=R.props.fontSize)?i:b}),ownerState:j,classes:D,name:N,checked:z,onChange:O,ref:t,className:(0,l.Z)(D.root,y)},x))})},66950:function(e,t,r){"use strict";r.d(t,{l:function(){return a}});var o=r(1588),n=r(34867);function a(e){return(0,n.ZP)("MuiRadio",e)}let l=(0,o.Z)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);t.Z=l},60504:function(e,t,r){"use strict";var o=r(87462),n=r(63366),a=r(67294),l=r(46028),i=r(28735),c=r(61890),s=r(88505),u=r(47309),d=r(85893);let p=["actions","children","defaultValue","name","onChange","value"],f=a.forwardRef(function(e,t){let{actions:r,children:f,defaultValue:m,name:h,onChange:v,value:Z}=e,g=(0,n.Z)(e,p),b=a.useRef(null),[y,w]=(0,c.Z)({controlled:Z,default:m,name:"RadioGroup"});a.useImperativeHandle(r,()=>({focus:()=>{let e=b.current.querySelector("input:not(:disabled):checked");e||(e=b.current.querySelector("input:not(:disabled)")),e&&e.focus()}}),[]);let k=(0,i.Z)(t,b),x=(0,u.Z)(h),S=a.useMemo(()=>({name:x,onChange(e){w(e.target.value),v&&v(e,e.target.value)},value:y}),[x,v,w,y]);return(0,d.jsx)(s.Z.Provider,{value:S,children:(0,d.jsx)(l.Z,(0,o.Z)({role:"radiogroup",ref:k},g,{children:f}))})});t.Z=f},88505:function(e,t,r){"use strict";let o=r(67294).createContext(void 0);t.Z=o},92562:function(e,t,r){"use strict";r.d(t,{Z:function(){return a}});var o=r(67294),n=r(88505);function a(){return o.useContext(n.Z)}},11901:function(e,t,r){"use strict";var o=r(63366),n=r(87462),a=r(67294),l=r(90512),i=r(94780),c=r(41796),s=r(75228),u=r(93067),d=r(59145),p=r(89262),f=r(37649),m=r(85893);let h=["className","color","edge","size","sx"],v=e=>{let{classes:t,edge:r,size:o,color:a,checked:l,disabled:c}=e,u={root:["root",r&&"edge".concat((0,s.Z)(r)),"size".concat((0,s.Z)(o))],switchBase:["switchBase","color".concat((0,s.Z)(a)),l&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},d=(0,i.Z)(u,f.H,t);return(0,n.Z)({},t,d)},Z=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.edge&&t["edge".concat((0,s.Z)(r.edge))],t["size".concat((0,s.Z)(r.size))]]}})(e=>{let{ownerState:t}=e;return(0,n.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,["& .".concat(f.Z.thumb)]:{width:16,height:16},["& .".concat(f.Z.switchBase)]:{padding:4,["&.".concat(f.Z.checked)]:{transform:"translateX(16px)"}}})}),g=(0,p.ZP)(u.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.switchBase,{["& .".concat(f.Z.input)]:t.input},"default"!==r.color&&t["color".concat((0,s.Z)(r.color))]]}})(e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat(f.Z.checked)]:{transform:"translateX(20px)"},["&.".concat(f.Z.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat(f.Z.checked," + .").concat(f.Z.track)]:{opacity:.5},["&.".concat(f.Z.disabled," + .").concat(f.Z.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat(f.Z.input)]:{left:"-100%",width:"300%"}}},e=>{let{theme:t,ownerState:r}=e;return(0,n.Z)({"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==r.color&&{["&.".concat(f.Z.checked)]:{color:(t.vars||t).palette[r.color].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[r.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,c.Fq)(t.palette[r.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(f.Z.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(r.color,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,c.$n)(t.palette[r.color].main,.62):(0,c._j)(t.palette[r.color].main,.55))}},["&.".concat(f.Z.checked," + .").concat(f.Z.track)]:{backgroundColor:(t.vars||t).palette[r.color].main}})}),b=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}}),y=(0,p.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}}),w=a.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"MuiSwitch"}),{className:a,color:i="primary",edge:c=!1,size:s="medium",sx:u}=r,p=(0,o.Z)(r,h),f=(0,n.Z)({},r,{color:i,edge:c,size:s}),w=v(f),k=(0,m.jsx)(y,{className:w.thumb,ownerState:f});return(0,m.jsxs)(Z,{className:(0,l.Z)(w.root,a),sx:u,ownerState:f,children:[(0,m.jsx)(g,(0,n.Z)({type:"checkbox",icon:k,checkedIcon:k,ref:t,ownerState:f},p,{classes:(0,n.Z)({},w,{root:w.switchBase})})),(0,m.jsx)(b,{className:w.track,ownerState:f})]})});t.Z=w},37649:function(e,t,r){"use strict";r.d(t,{H:function(){return a}});var o=r(1588),n=r(34867);function a(e){return(0,n.ZP)("MuiSwitch",e)}let l=(0,o.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);t.Z=l},93067:function(e,t,r){"use strict";r.d(t,{Z:function(){return w}});var o=r(63366),n=r(87462),a=r(67294),l=r(90512),i=r(94780),c=r(75228),s=r(89262),u=r(61890),d=r(12794),p=r(11506),f=r(1588),m=r(34867);function h(e){return(0,m.ZP)("PrivateSwitchBase",e)}(0,f.Z)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var v=r(85893);let Z=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],g=e=>{let{classes:t,checked:r,disabled:o,edge:n}=e,a={root:["root",r&&"checked",o&&"disabled",n&&"edge".concat((0,c.Z)(n))],input:["input"]};return(0,i.Z)(a,h,t)},b=(0,s.ZP)(p.Z)(e=>{let{ownerState:t}=e;return(0,n.Z)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})}),y=(0,s.ZP)("input",{shouldForwardProp:s.FO})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var w=a.forwardRef(function(e,t){let{autoFocus:r,checked:a,checkedIcon:i,className:c,defaultChecked:s,disabled:p,disableFocusRipple:f=!1,edge:m=!1,icon:h,id:w,inputProps:k,inputRef:x,name:S,onBlur:C,onChange:P,onFocus:R,readOnly:M,required:j=!1,tabIndex:D,type:F,value:z}=e,O=(0,o.Z)(e,Z),[N,L]=(0,u.Z)({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),U=(0,d.Z)(),B=p;U&&void 0===B&&(B=U.disabled);let I="checkbox"===F||"radio"===F,q=(0,n.Z)({},e,{checked:N,disabled:B,disableFocusRipple:f,edge:m}),A=g(q);return(0,v.jsxs)(b,(0,n.Z)({component:"span",className:(0,l.Z)(A.root,c),centerRipple:!0,focusRipple:!f,disabled:B,tabIndex:null,role:void 0,onFocus:e=>{R&&R(e),U&&U.onFocus&&U.onFocus(e)},onBlur:e=>{C&&C(e),U&&U.onBlur&&U.onBlur(e)},ownerState:q,ref:t},O,{children:[(0,v.jsx)(y,(0,n.Z)({autoFocus:r,checked:a,defaultChecked:s,className:A.input,disabled:B,id:I?w:void 0,name:S,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;L(t),P&&P(e,t)},readOnly:M,ref:x,required:j,ownerState:q,tabIndex:D,type:F},"checkbox"===F&&void 0===z?{}:{value:z},k)),N?i:h]}))})},63885:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var o,n=r(67294),a=r(34168),l=r(20539),i=r(23769);let c=(o||(o=r.t(n,2))).useSyncExternalStore;function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,a.Z)(),o=void 0!==window.matchMedia,{defaultMatches:s=!1,matchMedia:u=o?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:p=!1}=(0,l.Z)({name:"MuiUseMediaQuery",props:t,theme:r}),f="function"==typeof e?e(r):e;return(void 0!==c?function(e,t,r,o,a){let l=n.useCallback(()=>t,[t]),i=n.useMemo(()=>{if(a&&r)return()=>r(e).matches;if(null!==o){let{matches:t}=o(e);return()=>t}return l},[l,e,o,a,r]),[s,u]=n.useMemo(()=>{if(null===r)return[l,()=>()=>{}];let t=r(e);return[()=>t.matches,e=>(t.addListener(e),()=>{t.removeListener(e)})]},[l,r,e]);return c(u,s,i)}:function(e,t,r,o,a){let[l,c]=n.useState(()=>a&&r?r(e).matches:o?o(e).matches:t);return(0,i.Z)(()=>{let t=!0;if(!r)return;let o=r(e),n=()=>{t&&c(o.matches)};return n(),o.addListener(n),()=>{t=!1,o.removeListener(n)}},[e,r]),l})(f=f.replace(/^@media( ?)/m,""),s,u,d,p)}},92703:function(e,t,r){"use strict";var o=r(50414);function n(){}function a(){}a.resetWarningCache=n,e.exports=function(){function e(e,t,r,n,a,l){if(l!==o){var i=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:n};return r.PropTypes=r,r}},45697:function(e,t,r){e.exports=r(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]); \ No newline at end of file diff --git a/_next/static/chunks/d89928ee-156d471515b864ec.js b/_next/static/chunks/d89928ee-764ce18e095101de.js similarity index 99% rename from _next/static/chunks/d89928ee-156d471515b864ec.js rename to _next/static/chunks/d89928ee-764ce18e095101de.js index 14105d4ef..4a4e213b2 100644 --- a/_next/static/chunks/d89928ee-156d471515b864ec.js +++ b/_next/static/chunks/d89928ee-764ce18e095101de.js @@ -1,4 +1,4 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[943],{28538:function(e,t,_){let n,r,a,i,o,s,l,c,p,d,u,m,f,h,y,g,b,v,x,w,T,S,k,C;_.d(t,{Z:function(){return ou}});var A,D=Object.defineProperty,E=e=>{throw TypeError(e)},P=(e,t,_)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:_}):e[t]=_,N=(e,t)=>{for(var _ in t)D(e,_,{get:t[_],enumerable:!0})},I=(e,t,_)=>P(e,"symbol"!=typeof t?t+"":t,_),F=(e,t,_)=>t.has(e)||E("Cannot "+_),j=(e,t,_)=>t.has(e)?E("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,_),M=(e,t,_)=>(F(e,t,"access private method"),_),O={};N(O,{parsers:()=>J});var J={};N(J,{typescript:()=>od});var L=()=>()=>{},R=[],q=new Map;function U(e){return e?e.length:0}function z(e,t){if(e)for(let _=0;_0;for(let _ of e)if(t(_))return!0}return!1}function Y(e,t){return Q(t)?Q(e)?[...e,...t]:t:e}function Z(e,t){return t}function ee(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function et(e,t){return t<0?e.length+t:t}function e_(e,t,_,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(_,n);_=void 0===_?0:et(t,_),n=void 0===n?t.length:et(t,n);for(let r=_;r{if(e&&(t=et(e,t))e===t),_.length||this.delete(e))}function el(e){return Array.isArray(e)}function ec(e){return el(e)?e:[e]}function ep(e,t){return void 0!==e&&t(e)?e:eS.fail(`Invalid cast. The supplied value ${e} did not pass the test '${eS.getFunctionName(t)}'.`)}function ed(e){}function eu(){return!0}function em(e){return e}function ef(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function eh(e){let t=new Map;return _=>{let n=`${typeof _}:${_}`,r=t.get(n);return void 0!==r||t.has(n)||(r=e(_),t.set(n,r)),r}}function ey(e,t){return e===t}function eg(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function eb(e,t){return e===t}function ev(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e_?i-_:1),l=Math.floor(t.length>_+i?_+i:t.length);r[0]=i;let c=i;for(let e=1;e_)return;let p=n;n=r,r=p}let i=n[t.length];return i>_?void 0:i}(e,t,r-.1);if(void 0===_)continue;eS.assert(_{var t;let _,n=0;function r(t){return e.currentLogLevel<=t}function a(t,_){e.loggingHost&&r(t)&&e.loggingHost.log(t,_)}function i(e){a(3,e)}e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=r,e.log=i,(t=i=e.log||(e.log={})).error=function(e){a(1,e)},t.warn=function(e){a(2,e)},t.log=function(e){a(3,e)},t.trace=function(e){a(4,e)};let o={};function s(t,_){return n>=t||(o[_]={level:t,assertion:e[_]},e[_]=ed,!1)}function l(e,t){let _=Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(_,t||l),_}function c(e,t,_,n){e||(t=t?`False expression: ${t}`:"False expression.",_&&(t+=`\r +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[943],{28538:function(e,t,_){let n,r,a,i,o,s,l,c,p,d,u,m,f,h,y,g,b,v,x,w,T,S,k,C;_.r(t),_.d(t,{default:function(){return ou},parsers:function(){return J}});var A,D=Object.defineProperty,E=e=>{throw TypeError(e)},P=(e,t,_)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:_}):e[t]=_,N=(e,t)=>{for(var _ in t)D(e,_,{get:t[_],enumerable:!0})},I=(e,t,_)=>P(e,"symbol"!=typeof t?t+"":t,_),F=(e,t,_)=>t.has(e)||E("Cannot "+_),j=(e,t,_)=>t.has(e)?E("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,_),M=(e,t,_)=>(F(e,t,"access private method"),_),O={};N(O,{parsers:()=>J});var J={};N(J,{typescript:()=>od});var L=()=>()=>{},R=[],q=new Map;function U(e){return e?e.length:0}function z(e,t){if(e)for(let _=0;_0;for(let _ of e)if(t(_))return!0}return!1}function Y(e,t){return Q(t)?Q(e)?[...e,...t]:t:e}function Z(e,t){return t}function ee(e,t){return void 0===t?e:void 0===e?[t]:(e.push(t),e)}function et(e,t){return t<0?e.length+t:t}function e_(e,t,_,n){if(void 0===t||0===t.length)return e;if(void 0===e)return t.slice(_,n);_=void 0===_?0:et(t,_),n=void 0===n?t.length:et(t,n);for(let r=_;r{if(e&&(t=et(e,t))e===t),_.length||this.delete(e))}function el(e){return Array.isArray(e)}function ec(e){return el(e)?e:[e]}function ep(e,t){return void 0!==e&&t(e)?e:eS.fail(`Invalid cast. The supplied value ${e} did not pass the test '${eS.getFunctionName(t)}'.`)}function ed(e){}function eu(){return!0}function em(e){return e}function ef(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function eh(e){let t=new Map;return _=>{let n=`${typeof _}:${_}`,r=t.get(n);return void 0!==r||t.has(n)||(r=e(_),t.set(n,r)),r}}function ey(e,t){return e===t}function eg(e,t){return e===t||void 0!==e&&void 0!==t&&e.toUpperCase()===t.toUpperCase()}function eb(e,t){return e===t}function ev(e,t){return e===t?0:void 0===e?-1:void 0===t?1:e_?i-_:1),l=Math.floor(t.length>_+i?_+i:t.length);r[0]=i;let c=i;for(let e=1;e_)return;let p=n;n=r,r=p}let i=n[t.length];return i>_?void 0:i}(e,t,r-.1);if(void 0===_)continue;eS.assert(_{var t;let _,n=0;function r(t){return e.currentLogLevel<=t}function a(t,_){e.loggingHost&&r(t)&&e.loggingHost.log(t,_)}function i(e){a(3,e)}e.currentLogLevel=2,e.isDebugging=!1,e.shouldLog=r,e.log=i,(t=i=e.log||(e.log={})).error=function(e){a(1,e)},t.warn=function(e){a(2,e)},t.log=function(e){a(3,e)},t.trace=function(e){a(4,e)};let o={};function s(t,_){return n>=t||(o[_]={level:t,assertion:e[_]},e[_]=ed,!1)}function l(e,t){let _=Error(e?`Debug Failure. ${e}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(_,t||l),_}function c(e,t,_,n){e||(t=t?`False expression: ${t}`:"False expression.",_&&(t+=`\r Verbose Debug Information: `+("string"==typeof _?_:_())),l(t,n||c))}function p(e,t,_){null==e&&l(t,_||p)}function d(e,t,_){for(let n of e)p(n,t,_||d)}function u(e,t="Illegal value:",_){let n="object"==typeof e&&ei(e,"kind")&&ei(e,"pos")?"SyntaxKind: "+y(e.kind):JSON.stringify(e);return l(`${t} ${n}`,_||u)}function m(e){if("function"!=typeof e)return"";if(ei(e,"name"))return e.name;{let t=Function.prototype.toString.call(e),_=/^function\s+([\w$]+)\s*\(/.exec(t);return _?_[1]:""}}function f(e=0,t,_){let n=function(e){var t;let _,n=h.get(e);if(n)return n;let r=[];for(let t in e){let _=e[t];"number"==typeof _&&r.push([_,t])}let a=(t=(e,t)=>ev(e[0],t[0]),_=r.map(Z),function(e,t,_){t.sort((t,n)=>_(e[t],e[n])||ev(t,n))}(r,_,t),_.map(e=>r[e]));return h.set(e,a),a}(t);if(0===e)return n.length>0&&0===n[0][0]?n[0][1]:"0";if(_){let t=[],_=e;for(let[r,a]of n){if(r>e)break;0!==r&&r&e&&(t.push(a),_&=~r)}if(0===_)return t.join("|")}else for(let[t,_]of n)if(t===e)return _;return e.toString()}e.getAssertionLevel=function(){return n},e.setAssertionLevel=function(t){let _=n;if(n=t,t>_)for(let _ of function(e){let t=[];for(let _ in e)ea.call(e,_)&&t.push(_);return t}(o)){let n=o[_];void 0!==n&&e[_]!==n.assertion&&t>=n.level&&(e[_]=n,o[_]=void 0)}},e.shouldAssert=function(e){return n>=e},e.fail=l,e.failBadSyntaxKind=function e(t,_,n){return l(`${_||"Unexpected node."}\r Node ${y(t.kind)} was unexpected.`,n||e)},e.assert=c,e.assertEqual=function e(t,_,n,r,a){if(t!==_){let i=n?r?`${n} ${r}`:n:"";l(`Expected ${t} === ${_}. ${i}`,a||e)}},e.assertLessThan=function e(t,_,n,r){t>=_&&l(`Expected ${t} < ${_}. ${n||""}`,r||e)},e.assertLessThanOrEqual=function e(t,_,n){t>_&&l(`Expected ${t} <= ${_}`,n||e)},e.assertGreaterThanOrEqual=function e(t,_,n){t<_&&l(`Expected ${t} >= ${_}`,n||e)},e.assertIsDefined=p,e.checkDefined=function e(t,_,n){return p(t,_,n||e),t},e.assertEachIsDefined=d,e.checkEachDefined=function e(t,_,n){return d(t,_,n||e),t},e.assertNever=u,e.assertEachNode=function e(t,_,n,r){s(1,"assertEachNode")&&c(void 0===_||K(t,_),n||"Unexpected node.",()=>`Node array did not pass test '${m(_)}'.`,r||e)},e.assertNode=function e(t,_,n,r){s(1,"assertNode")&&c(void 0!==t&&(void 0===_||_(t)),n||"Unexpected node.",()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${m(_)}'.`,r||e)},e.assertNotNode=function e(t,_,n,r){s(1,"assertNotNode")&&c(void 0===t||void 0===_||!_(t),n||"Unexpected node.",()=>`Node ${y(t.kind)} should not have passed test '${m(_)}'.`,r||e)},e.assertOptionalNode=function e(t,_,n,r){s(1,"assertOptionalNode")&&c(void 0===_||void 0===t||_(t),n||"Unexpected node.",()=>`Node ${y(null==t?void 0:t.kind)} did not pass test '${m(_)}'.`,r||e)},e.assertOptionalToken=function e(t,_,n,r){s(1,"assertOptionalToken")&&c(void 0===_||void 0===t||t.kind===_,n||"Unexpected node.",()=>`Node ${y(null==t?void 0:t.kind)} was not a '${y(_)}' token.`,r||e)},e.assertMissingNode=function e(t,_,n){s(1,"assertMissingNode")&&c(void 0===t,_||"Unexpected node.",()=>`Node ${y(t.kind)} was unexpected'.`,n||e)},e.type=function(e){},e.getFunctionName=m,e.formatSymbol=function(e){return`{ name: ${tQ(e.escapedName)}; flags: ${w(e.flags)}; declarations: ${W(e.declarations,e=>y(e.kind))} }`},e.formatEnum=f;let h=new Map;function y(e){return f(e,eE,!1)}function g(e){return f(e,eP,!0)}function b(e){return f(e,eN,!0)}function v(e){return f(e,eB,!0)}function x(e){return f(e,eV,!0)}function w(e){return f(e,ej,!0)}function T(e){return f(e,eO,!0)}function S(e){return f(e,eL,!0)}function k(e){return f(e,eJ,!0)}function C(e){return f(e,eF,!0)}e.formatSyntaxKind=y,e.formatSnippetKind=function(e){return f(e,eK,!1)},e.formatScriptKind=function(e){return f(e,eR,!1)},e.formatNodeFlags=g,e.formatNodeCheckFlags=function(e){return f(e,eM,!0)},e.formatModifierFlags=b,e.formatTransformFlags=v,e.formatEmitFlags=x,e.formatSymbolFlags=w,e.formatTypeFlags=T,e.formatSignatureFlags=S,e.formatObjectFlags=k,e.formatFlowFlags=C,e.formatRelationComparisonResult=function(e){return f(e,eI,!0)},e.formatCheckMode=function(e){return f(e,CheckMode,!0)},e.formatSignatureCheckMode=function(e){return f(e,SignatureCheckMode,!0)},e.formatTypeFacts=function(e){return f(e,TypeFacts,!0)};let A=!1,D;function E(e){"__debugFlowFlags"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value(){let e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return`${e}${t?` (${C(t)})`:""}`}},__debugFlowFlags:{get(){return f(this.flags,eF,!0)}},__debugToString:{value(){return I(this)}}})}function P(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:e=>(e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${e}`)}})}e.attachFlowNodeDebugInfo=function(e){return A&&("function"==typeof Object.setPrototypeOf?(D||E(D=Object.create(Object.prototype)),Object.setPrototypeOf(e,D)):E(e)),e},e.attachNodeArrayDebugInfo=function(e){A&&("function"==typeof Object.setPrototypeOf?(_||P(_=Object.create(Array.prototype)),Object.setPrototypeOf(e,_)):P(e))},e.enableDebugInfo=function(){if(A)return;let e=new WeakMap,t=new WeakMap;for(let _ of(Object.defineProperties(nc.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${t1(this)}'${t?` (${w(t)})`:""}`}},__debugFlags:{get(){return w(this.flags)}}}),Object.defineProperties(nc.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",t=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${t1(this.symbol)}'`:""}${t?` (${k(t)})`:""}`}},__debugFlags:{get(){return T(this.flags)}},__debugObjectFlags:{get(){return 524288&this.flags?k(this.objectFlags):""}},__debugTypeToString:{value(){let t=e.get(this);return void 0===t&&(t=this.checker.typeToString(this),e.set(this,t)),t}}}),Object.defineProperties(nc.getSignatureConstructor().prototype,{__debugFlags:{get(){return S(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}}),[nc.getNodeConstructor(),nc.getIdentifierConstructor(),nc.getTokenConstructor(),nc.getSourceFileConstructor()]))ei(_.prototype,"__debugKind")||Object.defineProperties(_.prototype,{__tsDebuggerDisplay:{value(){return`${_r(this)?"GeneratedIdentifier":nK(this)?`Identifier '${tY(this)}'`:nV(this)?`PrivateIdentifier '${tY(this)}'`:nU(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:nq(this)?`NumericLiteral ${this.text}`:10===this.kind?`BigIntLiteral ${this.text}n`:nH(this)?"TypeParameterDeclaration":nQ(this)?"ParameterDeclaration":n0(this)?"ConstructorDeclaration":n2(this)?"GetAccessorDeclaration":n6(this)?"SetAccessorDeclaration":179===this.kind?"CallSignatureDeclaration":180===this.kind?"ConstructSignatureDeclaration":n3(this)?"IndexSignatureDeclaration":182===this.kind?"TypePredicateNode":n4(this)?"TypeReferenceNode":n5(this)?"FunctionTypeNode":n8(this)?"ConstructorTypeNode":186===this.kind?"TypeQueryNode":187===this.kind?"TypeLiteralNode":188===this.kind?"ArrayTypeNode":189===this.kind?"TupleTypeNode":190===this.kind?"OptionalTypeNode":191===this.kind?"RestTypeNode":192===this.kind?"UnionTypeNode":193===this.kind?"IntersectionTypeNode":194===this.kind?"ConditionalTypeNode":195===this.kind?"InferTypeNode":196===this.kind?"ParenthesizedTypeNode":197===this.kind?"ThisTypeNode":198===this.kind?"TypeOperatorNode":199===this.kind?"IndexedAccessTypeNode":200===this.kind?"MappedTypeNode":201===this.kind?"LiteralTypeNode":202===this.kind?"NamedTupleMember":205===this.kind?"ImportTypeNode":y(this.kind)}${this.flags?` (${g(this.flags)})`:""}`}},__debugKind:{get(){return y(this.kind)}},__debugNodeFlags:{get(){return g(this.flags)}},__debugModifierFlags:{get(){return b(_4(this)|function(e){return 131071&e|(260046848&e)>>>23}(function(e){let t=0;return e.parent&&!nQ(e)&&(_L(e)&&(t7(e,rA,!0)&&(t|=8388608),t7(e,rD,!0)&&(t|=16777216),t7(e,rE,!0)&&(t|=33554432),t7(e,rP,!0)&&(t|=67108864),t7(e,rN,!0)&&(t|=134217728)),t7(e,rF,!0)&&(t|=65536)),t}(this)))}},__debugTransformFlags:{get(){return v(this.transformFlags)}},__debugIsParseTreeNode:{get(){return t$(this)}},__debugEmitFlags:{get(){return x(_N(this))}},__debugGetText:{value(e){if(_0(this))return"";let _=t.get(this);if(void 0===_){let n=function(e,t){if(void 0===e||t$(e))return e;for(e=e.original;e;){if(t$(e))return e;e=e.original}}(this),r=n&&_C(n);_=r?_E(r,n,e):"",t.set(this,_)}return _}}});A=!0},e.formatVariance=function(e){let t=7&e,_=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?_+=" (unmeasurable)":16&e&&(_+=" (unreliable)"),_};class N{__debugToString(){var e;switch(this.kind){case 3:return(null==(e=this.debugInfo)?void 0:e.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return B(this.sources,this.targets||W(this.sources,()=>"any"),(e,t)=>`${e.__debugTypeToString()} -> ${"string"==typeof t?t:t.__debugTypeToString()}`).join(", ");case 2:return B(this.sources,this.targets,(e,t)=>`${e.__debugTypeToString()} -> ${t().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` diff --git a/_next/static/chunks/nextra-data-en-US.json b/_next/static/chunks/nextra-data-en-US.json index 7c325f20a..11adfa393 100644 --- a/_next/static/chunks/nextra-data-en-US.json +++ b/_next/static/chunks/nextra-data-en-US.json @@ -1 +1 @@ -{"/docs/core/TypedException":{"title":"Typedexception","data":{"outline#Outline":"export function TypedException(\n status: number | \"2XX\" | \"3XX\" | \"4XX\" | \"5XX\",\n description?: string,\n): MethodDecorator;\nexport function TypedException(props: {\n status: : number | \"2XX\" | \"3XX\" | \"4XX\" | \"5XX\";\n description?: string;\n example?: T;\n examples?: Record;\n}): MethodDecorator;\nException decorator of HTTP responses.TypedException is a decorator function describing HTTP exception and its type which could be occured in a controller method. For reference, this decorator function does not affect to the method's behavior, but affects to the swagger documents generation, or SDK functions when propagation mode being used.","how-to-use#How to use":"import { Controller } from \"@nestjs/common\";\nimport typia, { TypeGuardError } from \"typia\";\nimport {\n TypedBody,\n TypedException,\n TypedParam,\n TypedRoute,\n} from \"@nestia/core\";\nimport { IBbsArticle } from \"@api/lib/structures/IBbsArticle\";\nimport { IInternalServerError } from \"@api/lib/structures/IInternalServerError\";\nimport { INotFound } from \"@api/lib/structures/INotFound\";\nimport { IUnprocessibleEntity } from \"@api/lib/structures/IUnprocessibleEntity\";\n@Controller(\"exception\")\nexport class ExceptionController {\n @TypedRoute.Post(\":section/typed\")\n @TypedException({\n status: 400, \n description: \"invalid request\",\n example: {\n name: \"BadRequestException\",\n method: \"TypedBody\",\n path: \"$input.title\",\n expected: \"string\",\n value: 123,\n message: \"invalid type\",\n },\n })\n @TypedException(404, \"unable to find the matched section\")\n @TypedException(428)\n @TypedException(\"5XX\", \"internal server error\")\n public async typed(\n @TypedParam(\"section\") section: string,\n @TypedBody() input: IBbsArticle.IStore,\n ): Promise {\n section;\n input;\n return typia.random();\n }\n}\nJust call TypedException() function with target type and status code.If you want to add description or example value, you also can add it as a property.For reference, swagger allows to special pattern like 2XX, 3XX, 4XX, 5XX for status code.","swagger-example#Swagger Example":"Here is an example of swagger documents utilizing the @TypedException() decorator.\n{\n \"openapi\": \"3.1.0\",\n \"servers\": [\n {\n \"url\": \"https://github.com/samchon/nestia\",\n \"description\": \"insert your server url\"\n }\n ],\n \"info\": {\n \"version\": \"3.11.1\",\n \"title\": \"@samchon/nestia-test\",\n \"description\": \"Test program of Nestia\",\n \"license\": {\n \"name\": \"MIT\"\n }\n },\n \"paths\": {\n \"/exception/{section}/typed\": {\n \"post\": {\n \"tags\": [],\n \"parameters\": [\n {\n \"name\": \"section\",\n \"in\": \"path\",\n \"schema\": {\n \"type\": \"string\"\n },\n \"required\": true\n }\n ],\n \"requestBody\": {\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"$ref\": \"#/components/schemas/IBbsArticle.IStore\"\n }\n }\n },\n \"required\": true\n },\n \"responses\": {\n \"201\": {\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"$ref\": \"#/components/schemas/IBbsArticle\"\n }\n }\n }\n },\n \"400\": {\n \"description\": \"invalid request\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"$ref\": \"#/components/schemas/TypeGuardErrorany\"\n },\n \"example\": {\n \"name\": \"BadRequestException\",\n \"method\": \"TypedBody\",\n \"path\": \"$input.title\",\n \"expected\": \"string\",\n \"value\": 123,\n \"message\": \"invalid type\"\n }\n }\n }\n },\n \"404\": {\n \"description\": \"unable to find the matched section\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"$ref\": \"#/components/schemas/INotFound\"\n }\n }\n }\n },\n \"428\": {\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"$ref\": \"#/components/schemas/IUnprocessibleEntity\"\n }\n }\n }\n },\n \"5XX\": {\n \"description\": \"internal server error\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"$ref\": \"#/components/schemas/IInternalServerError\"\n }\n }\n }\n }\n }\n }\n }\n },\n \"components\": {\n \"schemas\": {\n \"IBbsArticle\": {\n \"type\": \"object\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"format\": \"uuid\"\n },\n \"created_at\": {\n \"type\": \"string\",\n \"format\": \"date-time\"\n },\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3,\n \"maxLength\": 50\n },\n \"body\": {\n \"type\": \"string\"\n },\n \"files\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/IAttachmentFile\"\n }\n }\n },\n \"required\": [\n \"id\",\n \"created_at\",\n \"title\",\n \"body\",\n \"files\"\n ]\n },\n \"IAttachmentFile\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"oneOf\": [\n {\n \"type\": \"null\"\n },\n {\n \"type\": \"string\",\n \"maxLength\": 255\n }\n ]\n },\n \"extension\": {\n \"oneOf\": [\n {\n \"type\": \"null\"\n },\n {\n \"type\": \"string\",\n \"minLength\": 1,\n \"maxLength\": 8\n }\n ]\n },\n \"url\": {\n \"type\": \"string\",\n \"format\": \"uri\"\n }\n },\n \"required\": [\n \"name\",\n \"extension\",\n \"url\"\n ]\n },\n \"IBbsArticle.IStore\": {\n \"type\": \"object\",\n \"properties\": {\n \"title\": {\n \"type\": \"string\",\n \"minLength\": 3,\n \"maxLength\": 50\n },\n \"body\": {\n \"type\": \"string\"\n },\n \"files\": {\n \"type\": \"array\",\n \"items\": {\n \"$ref\": \"#/components/schemas/IAttachmentFile\"\n }\n }\n },\n \"required\": [\n \"title\",\n \"body\",\n \"files\"\n ]\n },\n \"TypeGuardErrorany\": {\n \"type\": \"object\",\n \"properties\": {\n \"method\": {\n \"type\": \"string\"\n },\n \"path\": {\n \"type\": \"string\"\n },\n \"expected\": {\n \"type\": \"string\"\n },\n \"value\": {},\n \"fake_expected_typed_value_\": {},\n \"name\": {\n \"type\": \"string\"\n },\n \"message\": {\n \"type\": \"string\"\n },\n \"stack\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"method\",\n \"expected\",\n \"value\",\n \"name\",\n \"message\"\n ]\n },\n \"INotFound\": {\n \"type\": \"object\",\n \"properties\": {\n \"schema\": {\n \"type\": \"string\"\n },\n \"table\": {\n \"type\": \"string\"\n },\n \"id\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"schema\",\n \"table\",\n \"id\"\n ]\n },\n \"IUnprocessibleEntity\": {\n \"type\": \"object\",\n \"properties\": {\n \"reason\": {\n \"type\": \"string\"\n }\n },\n \"required\": [\n \"reason\"\n ]\n },\n \"IInternalServerError\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"message\": {\n \"type\": \"string\"\n },\n \"stack\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n },\n \"required\": [\n \"name\",\n \"message\",\n \"stack\"\n ]\n }\n },\n \"securitySchemes\": {\n \"bearer\": {\n \"type\": \"apiKey\"\n }\n }\n },\n \"tags\": [],\n \"x-samchon-emended\": true\n}"}},"/docs/core/TypedParam":{"title":"Typedparam","data":{"outline#Outline":"export function TypedParam(name: string): ParameterDecorator;\nType safe path parameter decorator.@TypedParam() is a decorator parsing path parameter.It's almost same with original @Param() function of NestJS, however, @TypedParam() is more type safe.As @TypedParam() can anlayze source code in the compilation level, it can specify parameter type by itself. Also, while NestJS cannot distinguish nullable type and consider every parameter value as a string type, @TypedParam() can do it. Furthermore, @TypedParam() can validate special types like \"uuid\" or \"date\".Let's read below example code, and see how @TypedParam() works.\n@TypedParam() is not essential for Swagger Documents or SDK Library building.Therefore, it is not a matter to use @TypedParam() or @Param() of the original NestJS.","how-to-use#How to use":"import { TypedParam } from \"@nestia/core\";\nimport { Controller, Get } from \"@nestjs/common\";\nimport { tags } from \"typia\";\n@Controller(\"parameters\")\nexport class ParametersController {\n @Get(\"uint32/:value\")\n public async uint32(\n @TypedParam(\"value\") value: (number & tags.Type<\"uint32\">) | null,\n ): Promise<(number & tags.Type<\"uint32\">) | null> {\n return value;\n }\n @Get(\"string/:value\")\n public async string(\n @TypedParam(\"value\") value: string\n ): Promise {\n return value;\n }\n @Get(\"uuid/:value\")\n public async uuid(\n @TypedParam(\"value\") value: string & tags.Format<\"uuid\">,\n ): Promise {\n return value;\n }\n}\n\"use strict\";\nvar __decorate =\n (this && this.__decorate) ||\n function (decorators, target, key, desc) {\n var c = arguments.length,\n r =\n c < 3\n ? target\n : desc === null\n ? (desc = Object.getOwnPropertyDescriptor(target, key))\n : desc,\n d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\")\n r = Reflect.decorate(decorators, target, key, desc);\n else\n for (var i = decorators.length - 1; i >= 0; i--)\n if ((d = decorators[i]))\n r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };\nvar __metadata =\n (this && this.__metadata) ||\n function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\")\n return Reflect.metadata(k, v);\n };\nvar __param =\n (this && this.__param) ||\n function (paramIndex, decorator) {\n return function (target, key) {\n decorator(target, key, paramIndex);\n };\n };\nvar __awaiter =\n (this && this.__awaiter) ||\n function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P\n ? value\n : new P(function (resolve) {\n resolve(value);\n });\n }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n function step(result) {\n result.done\n ? resolve(result.value)\n : adopt(result.value).then(fulfilled, rejected);\n }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ParametersController = void 0;\nconst core_1 = require(\"@nestia/core\");\nconst common_1 = require(\"@nestjs/common\");\nlet ParametersController = class ParametersController {\n uint32(value) {\n return __awaiter(this, void 0, void 0, function* () {\n return value;\n });\n }\n string(value) {\n return __awaiter(this, void 0, void 0, function* () {\n return value;\n });\n }\n uuid(value) {\n return __awaiter(this, void 0, void 0, function* () {\n return value;\n });\n }\n};\nexports.ParametersController = ParametersController;\n__decorate(\n [\n (0, common_1.Get)(\"uint32/:value\"),\n __param(\n 0,\n (0, core_1.TypedParam)(\"value\", {\n name: '((number & Type<\"uint32\">) | null)',\n is: (input) => {\n return (\n null === input ||\n (\"number\" === typeof input &&\n Math.floor(input) === input &&\n 0 <= input &&\n input <= 4294967295)\n );\n },\n cast: (str) => (\"null\" === str ? null : Number(str)),\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", Promise),\n ],\n ParametersController.prototype,\n \"uint32\",\n null,\n);\n__decorate(\n [\n (0, common_1.Get)(\"string/:value\"),\n __param(\n 0,\n (0, core_1.TypedParam)(\"value\", {\n name: \"string\",\n is: (input) => {\n return \"string\" === typeof input;\n },\n cast: (str) => str,\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [String]),\n __metadata(\"design:returntype\", Promise),\n ],\n ParametersController.prototype,\n \"string\",\n null,\n);\n__decorate(\n [\n (0, common_1.Get)(\"uuid/:value\"),\n __param(\n 0,\n (0, core_1.TypedParam)(\"value\", {\n name: '(string & Format<\"uuid\">)',\n is: (input) => {\n return (\n \"string\" === typeof input &&\n /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i.test(\n input,\n )\n );\n },\n cast: (str) => str,\n }),\n ),\n __metadata(\"design:type\", Function),\n __metadata(\"design:paramtypes\", [Object]),\n __metadata(\"design:returntype\", Promise),\n ],\n ParametersController.prototype,\n \"uuid\",\n null,\n);\nexports.ParametersController = ParametersController = __decorate(\n [(0, common_1.Controller)(\"parameters\")],\n ParametersController,\n);\nJust call @TypedParam() function on the path paremeter, that's all.If you want to special parameter type like \"uint32\" or \"uuid\", utilize type tags of typia.When wrong typed value comes, 400 bad request error would be thrown.","restriction#Restriction":"@TypedParam() allows only atomic type.\nboolean\nnumber\nstring\nbigint\nAlso, @TypedParam() allows nullable like number | null, but undefindable type is not.\nnumber | null is allowed\nstring | undefined is prohibited\nIf you violate above condition, and try to declare object or union type, compilation error would be occured:\nError on nestia.core.TypedParam(): only atomic type is allowed"}},"/docs/e2e/benchmark":{"title":"Benchmark","data":{"outline#Outline":"Benchmark your backend server with e2e test functions.If you've developed e2e test functions utilizing SDK library of @nestia/sdk, you can re-use those e2e test functions in the benchmark program supported by @nestia/benchmark. The benchmark program will run these e2e test functions in parellel and randomly to measure the performance of your backend server.If you want to pre-exprience the benchmark program utliizng the e2e test functions of @nestia/sdk, visit below playground website. Also, here is the benchmark report example generated by the benchmark program of @nestia/benchmark executed in the below playgroud link.\n💻 https://stackblitz.com/~/github.com/samchon/nestia-start\n? Number of requests to make 1024\n? Number of threads to use 4\n? Number of simultaneous requests to make 32\n████████████████████████████████████████ 100% | ETA: 0s | 3654/1024","main-program#Main Program":"import { DynamicBenchmarker } from \"@nestia/benchmark\";\nimport cliProgress from \"cli-progress\";\nimport fs from \"fs\";\nimport os from \"os\";\nimport { IPointer } from \"tstl\";\nimport { MyBackend } from \"../../src/MyBackend\";\nimport { MyConfiguration } from \"../../src/MyConfiguration\";\nimport { MyGlobal } from \"../../src/MyGlobal\";\nimport { ArgumentParser } from \"../helpers/ArgumentParser\";\ninterface IOptions {\n include?: string[];\n exclude?: string[];\n count: number;\n threads: number;\n simultaneous: number;\n}\nconst getOptions = () =>\n ArgumentParser.parse(async (command, prompt, action) => {\n // command.option(\"--mode \", \"target mode\");\n // command.option(\"--reset \", \"reset local DB or not\");\n command.option(\"--include \", \"include feature files\");\n command.option(\"--exclude \", \"exclude feature files\");\n command.option(\"--count \", \"number of requests to make\");\n command.option(\"--threads \", \"number of threads to use\");\n command.option(\n \"--simultaneous \",\n \"number of simultaneous requests to make\",\n );\n return action(async (options) => {\n // if (typeof options.reset === \"string\")\n // options.reset = options.reset === \"true\";\n // options.mode ??= await prompt.select(\"mode\")(\"Select mode\")([\n // \"LOCAL\",\n // \"DEV\",\n // \"REAL\",\n // ]);\n // options.reset ??= await prompt.boolean(\"reset\")(\"Reset local DB\");\n options.count = Number(\n options.count ??\n (await prompt.number(\"count\")(\"Number of requests to make\")),\n );\n options.threads = Number(\n options.threads ??\n (await prompt.number(\"threads\")(\"Number of threads to use\")),\n );\n options.simultaneous = Number(\n options.simultaneous ??\n (await prompt.number(\"simultaneous\")(\n \"Number of simultaneous requests to make\",\n )),\n );\n return options as IOptions;\n });\n });\nconst main = async (): Promise => {\n // CONFIGURATIONS\n const options: IOptions = await getOptions();\n MyGlobal.testing = true;\n // BACKEND SERVER\n const backend: MyBackend = new MyBackend();\n await backend.open();\n // DO BENCHMARK\n const prev: IPointer = { value: 0 };\n const bar: cliProgress.SingleBar = new cliProgress.SingleBar(\n {},\n cliProgress.Presets.shades_classic,\n );\n bar.start(options.count, 0);\n const report: DynamicBenchmarker.IReport = await DynamicBenchmarker.master({\n servant: `${__dirname}/servant.js`,\n count: options.count,\n threads: options.threads,\n simultaneous: options.simultaneous,\n filter: (func) =>\n (!options.include?.length ||\n (options.include ?? []).some((str) => func.includes(str))) &&\n (!options.exclude?.length ||\n (options.exclude ?? []).every((str) => !func.includes(str))),\n progress: (value: number) => {\n if (value >= 100 + prev.value) {\n bar.update(value);\n prev.value = value;\n }\n },\n stdio: \"ignore\",\n });\n bar.stop();\n // DOCUMENTATION\n try {\n await fs.promises.mkdir(`${MyConfiguration.ROOT}/docs/benchmarks`, {\n recursive: true,\n });\n } catch {}\n await fs.promises.writeFile(\n `${MyConfiguration.ROOT}/docs/benchmarks/${os\n .cpus()[0]\n .model.trim()\n .split(\"\\\\\")\n .join(\"\")\n .split(\"/\")\n .join(\"\")}.md`,\n DynamicBenchmarker.markdown(report),\n \"utf8\",\n );\n // CLOSE\n await backend.close();\n};\nmain().catch((exp) => {\n console.error(exp);\n process.exit(-1);\n});\nimport { DynamicBenchmarker } from \"@nestia/benchmark\";\nimport { MyConfiguration } from \"../../src/MyConfiguration\";\nDynamicBenchmarker.servant({\n connection: {\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\n },\n location: `${__dirname}/../features`,\n parameters: (connection) => [connection],\n prefix: \"test_api_\",\n}).catch((exp) => {\n console.error(exp);\n process.exit(-1);\n});\nTo compose the benchmark program of @nestia/benchmark on your backend application, you have to create two executable TypeScript programs; the main program and the servant program.The main program is executed by user (npm run benchmark command in the playground project), and centralizes the benchmark progress. It creates multiple servant programs parallel, and aggregate the benchmark results from them. After the aggregation, it publishes the benchmark report with markdown format.The servant program is executed by the main program multiply in parallel, and actually runs the e2e test functions for benchmarking. Composing the servant program, you have to specify the directory where the e2e test functions are located. Also, composing the main program of benchmark, you also have to specify the file location of the servant program.If you want to see more benchmark program cases, visit below links:\nProject\tMain\tServant\tReport\tsamchon/nestia-start\tindex.ts\tservant.ts\tREPORT.md\tsamchon/backend\tindex.ts\tservant.ts\tREPORT.md","test-functions#Test Functions":"import { RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport { v4 } from \"uuid\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nexport async function test_api_bbs_article_create(\n connection: api.IConnection,\n): Promise {\n // STORE A NEW ARTICLE\n const stored: IBbsArticle = await api.functional.bbs.articles.create(\n connection,\n \"general\",\n {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [\n {\n name: \"logo\",\n extension: \"png\",\n url: \"https://somewhere.com/logo.png\",\n },\n ],\n password: v4(),\n },\n );\n // READ THE DATA AGAIN\n const read: IBbsArticle = await api.functional.bbs.articles.at(\n connection,\n stored.section,\n stored.id,\n );\n TestValidator.equals(\"created\")(stored)(read);\n}\nimport { RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport { v4 } from \"uuid\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nexport async function test_api_bbs_article_update(\n connection: api.IConnection,\n): Promise {\n // STORE A NEW ARTICLE\n const password: string = v4();\n const article: IBbsArticle = await api.functional.bbs.articles.create(\n connection,\n \"general\",\n {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [\n {\n name: \"logo\",\n extension: \"png\",\n url: \"https://somewhere.com/logo.png\",\n },\n ],\n password,\n },\n );\n // UPDATE WITH EXACT PASSWORD\n const content: IBbsArticle.ISnapshot =\n await api.functional.bbs.articles.update(\n connection,\n article.section,\n article.id,\n {\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [],\n password,\n },\n );\n article.snapshots.push(content);\n // TRY UPDATE WITH WRONG PASSWORD\n await TestValidator.error(\"update with wrong password\")(() =>\n api.functional.bbs.articles.update(\n connection,\n article.section,\n article.id,\n {\n title: RandomGenerator.paragraph(5)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [],\n password: v4(),\n },\n ),\n );\n}\nimport { ArrayUtil, RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nimport { IPage } from \"@ORGANIZATION/PROJECT-api/lib/structures/common/IPage\";\nexport async function test_api_bbs_article_index_search(\n connection: api.IConnection,\n): Promise {\n // GENERATE 100 ARTICLES\n const section: string = \"general\";\n const articles: IBbsArticle[] = await ArrayUtil.asyncRepeat(100)(() =>\n api.functional.bbs.articles.create(connection, section, {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(4)(),\n body: RandomGenerator.content(3)()(),\n format: \"txt\",\n files: [],\n password: RandomGenerator.alphabets(8),\n }),\n );\n // GET ENTIRE DATA\n const total: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n sort: [\"-created_at\"],\n });\n // PREPARE SEARCH FUNCTION\n const search = TestValidator.search(\"BbsArticleProvider.index()\")(\n async (input: IBbsArticle.IRequest.ISearch) => {\n const page: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n search: input,\n sort: [\"-created_at\"],\n });\n return page.data;\n },\n )(total.data, 10);\n // SEARCH TITLE\n await search({\n fields: [\"title\"],\n values: (article) => [article.title],\n request: ([title]) => ({ title }),\n filter: (article, [title]) => article.title.includes(title),\n });\n // SEARCH WRITER\n await search({\n fields: [\"writer\"],\n values: (article) => [article.writer],\n request: ([writer]) => ({ writer }),\n filter: (article, [writer]) => article.writer.includes(writer),\n });\n // SEARCH BOTH OF THEM\n await search({\n fields: [\"title\", \"writer\"],\n values: (article) => [article.title, article.writer],\n request: ([title, writer]) => ({ title, writer }),\n filter: (article, [title, writer]) =>\n article.title.includes(title) && article.writer.includes(writer),\n });\n}\nDeveloping e2e test functions are very easy. Just make e2e based test function utilizing @nestia/sdk generated SDK library, and exports the function with test_ prefixed name (If you've configured another prefix property in the benchmark main program, just follow the configuration).Also, make the function to have parameter(s) configured in the servant program of the benchmark. As above test functions are examples of playground project that has configured to have only one connection parameter, All of them have the only one parameter connection.After composing these e2e test functions, just execute the benchmark main program. In the playground project, it can be exeucted by npm run benchmark command. The benchmark program will run these e2e test functions in parallel and randomly, and measure the performance of your backend server.\ngit clone https://github.com/samchon/nestia-start\ncd nestia-start\nnpm install\nnpm run build:test\nnpm run benchmark"}},"/docs/e2e/development":{"title":"Development","data":{"outline#Outline":"Test your backend server with e2e test functions.If you've succeded to generate SDK library by @nestia/sdk, you can utilize the SDK library to implement e2e test functions. As the SDK library ensures types safety for remote API calls, you can develop much more efficient and safer test program than unit testing case.If you want to pre-exprience the test program utliizng the e2e test functions of @nestia/sdk, visit below playground website.💻 https://stackblitz.com/~/github.com/samchon/nestia-start\n- test_api_bbs_article_at: 149 ms\n- test_api_bbs_article_create: 30 ms\n- test_api_bbs_article_index_search: 1,312 ms\n- test_api_bbs_article_index_sort: 1,110 ms\n- test_api_bbs_article_update: 28 m","main-program#Main Program":"import { DynamicExecutor } from \"@nestia/e2e\";\nimport api from \"@ORGANIZATION/PROJECT-api\";\nimport { MyBackend } from \"../src/MyBackend\";\nimport { MyConfiguration } from \"../src/MyConfiguration\";\nimport { MyGlobal } from \"../src/MyGlobal\";\nimport { ArgumentParser } from \"./helpers/ArgumentParser\";\ninterface IOptions {\n include?: string[];\n exclude?: string[];\n}\nconst getOptions = () =>\n ArgumentParser.parse(async (command, _prompt, action) => {\n // command.option(\"--mode \", \"target mode\");\n // command.option(\"--reset \", \"reset local DB or not\");\n command.option(\"--include \", \"include feature files\");\n command.option(\"--exclude \", \"exclude feature files\");\n return action(async (options) => {\n // if (typeof options.reset === \"string\")\n // options.reset = options.reset === \"true\";\n // options.mode ??= await prompt.select(\"mode\")(\"Select mode\")([\n // \"LOCAL\",\n // \"DEV\",\n // \"REAL\",\n // ]);\n // options.reset ??= await prompt.boolean(\"reset\")(\"Reset local DB\");\n return options as IOptions;\n });\n });\nasync function main(): Promise {\n // CONFIGURATIONS\n const options: IOptions = await getOptions();\n MyGlobal.testing = true;\n // BACKEND SERVER\n const backend: MyBackend = new MyBackend();\n await backend.open();\n //----\n // CLINET CONNECTOR\n //----\n // DO TEST\n const connection: api.IConnection = {\n host: `http://127.0.0.1:${MyConfiguration.API_PORT()}`,\n };\n const report: DynamicExecutor.IReport = await DynamicExecutor.validate({\n prefix: \"test\",\n parameters: () => [{ ...connection }],\n filter: (func) =>\n (!options.include?.length ||\n (options.include ?? []).some((str) => func.includes(str))) &&\n (!options.exclude?.length ||\n (options.exclude ?? []).every((str) => !func.includes(str))),\n })(__dirname + \"/features\");\n await backend.close();\n const failures: DynamicExecutor.IReport.IExecution[] =\n report.executions.filter((exec) => exec.error !== null);\n if (failures.length === 0) {\n console.log(\"Success\");\n console.log(\"Elapsed time\", report.time.toLocaleString(), `ms`);\n } else {\n for (const f of failures) console.log(f.error);\n process.exit(-1);\n }\n console.log(\n [\n `All: #${report.executions.length}`,\n `Success: #${report.executions.length - failures.length}`,\n `Failed: #${failures.length}`,\n ].join(\"\\n\"),\n );\n}\nmain().catch((exp) => {\n console.log(exp);\n process.exit(-1);\n});\nTo compose the test program of @nestia/e2e on your backend application, you have to create one executable TypeScript program.The main program is executed by user (npm run benchmark command in the playground project), and it runs every (or some filtered) e2e test functions located in the target directory. In above case, test/features is the directory collecting e2e test functions.If you want to see more test program cases, visit below links:\nsamchon/nestia-start\nsamchon/backend","test-functions#Test Functions":"import { RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport { v4 } from \"uuid\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nexport async function test_api_bbs_article_create(\n connection: api.IConnection,\n): Promise {\n // STORE A NEW ARTICLE\n const stored: IBbsArticle = await api.functional.bbs.articles.create(\n connection,\n \"general\",\n {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [\n {\n name: \"logo\",\n extension: \"png\",\n url: \"https://somewhere.com/logo.png\",\n },\n ],\n password: v4(),\n },\n );\n // READ THE DATA AGAIN\n const read: IBbsArticle = await api.functional.bbs.articles.at(\n connection,\n stored.section,\n stored.id,\n );\n TestValidator.equals(\"created\")(stored)(read);\n}\nimport { RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport { v4 } from \"uuid\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nexport async function test_api_bbs_article_update(\n connection: api.IConnection,\n): Promise {\n // STORE A NEW ARTICLE\n const password: string = v4();\n const article: IBbsArticle = await api.functional.bbs.articles.create(\n connection,\n \"general\",\n {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [\n {\n name: \"logo\",\n extension: \"png\",\n url: \"https://somewhere.com/logo.png\",\n },\n ],\n password,\n },\n );\n // UPDATE WITH EXACT PASSWORD\n const content: IBbsArticle.ISnapshot =\n await api.functional.bbs.articles.update(\n connection,\n article.section,\n article.id,\n {\n title: RandomGenerator.paragraph(3)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [],\n password,\n },\n );\n article.snapshots.push(content);\n // TRY UPDATE WITH WRONG PASSWORD\n await TestValidator.error(\"update with wrong password\")(() =>\n api.functional.bbs.articles.update(\n connection,\n article.section,\n article.id,\n {\n title: RandomGenerator.paragraph(5)(),\n body: RandomGenerator.content(8)()(),\n format: \"txt\",\n files: [],\n password: v4(),\n },\n ),\n );\n}\nimport { ArrayUtil, RandomGenerator, TestValidator } from \"@nestia/e2e\";\nimport api from \"@ORGANIZATION/PROJECT-api/lib/index\";\nimport { IBbsArticle } from \"@ORGANIZATION/PROJECT-api/lib/structures/bbs/IBbsArticle\";\nimport { IPage } from \"@ORGANIZATION/PROJECT-api/lib/structures/common/IPage\";\nexport async function test_api_bbs_article_index_search(\n connection: api.IConnection,\n): Promise {\n // GENERATE 100 ARTICLES\n const section: string = \"general\";\n const articles: IBbsArticle[] = await ArrayUtil.asyncRepeat(100)(() =>\n api.functional.bbs.articles.create(connection, section, {\n writer: RandomGenerator.name(),\n title: RandomGenerator.paragraph(4)(),\n body: RandomGenerator.content(3)()(),\n format: \"txt\",\n files: [],\n password: RandomGenerator.alphabets(8),\n }),\n );\n // GET ENTIRE DATA\n const total: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n sort: [\"-created_at\"],\n });\n // PREPARE SEARCH FUNCTION\n const search = TestValidator.search(\"BbsArticleProvider.index()\")(\n async (input: IBbsArticle.IRequest.ISearch) => {\n const page: IPage =\n await api.functional.bbs.articles.index(connection, section, {\n limit: articles.length,\n search: input,\n sort: [\"-created_at\"],\n });\n return page.data;\n },\n )(total.data, 10);\n // SEARCH TITLE\n await search({\n fields: [\"title\"],\n values: (article) => [article.title],\n request: ([title]) => ({ title }),\n filter: (article, [title]) => article.title.includes(title),\n });\n // SEARCH WRITER\n await search({\n fields: [\"writer\"],\n values: (article) => [article.writer],\n request: ([writer]) => ({ writer }),\n filter: (article, [writer]) => article.writer.includes(writer),\n });\n // SEARCH BOTH OF THEM\n await search({\n fields: [\"title\", \"writer\"],\n values: (article) => [article.title, article.writer],\n request: ([title, writer]) => ({ title, writer }),\n filter: (article, [title, writer]) =>\n article.title.includes(title) && article.writer.includes(writer),\n });\n}\nDeveloping e2e test functions are very easy. Just make e2e based test function utilizing @nestia/sdk generated SDK library, and exports the function with test_ prefixed name (If you've configured another prefix property in the test main program, just follow the configuration).Also, make the function to have parameter(s) configured in the servant program of the benchmark. As above test functions are examples of playground project that has configured to have only one connection parameter, All of them have the only one parameter connection.After composing these e2e test functions, just execute the test main program. In the playground project, it can be exeucted by npm run test command. The test program will run these e2e test functions, and report if some bugs be occured.\ngit clone https://github.com/samchon/nestia-start\ncd nestia-start\nnpm install\nnpm run build:test\nnpm run test"}},"/docs/editor":{"title":"Editor","data":{"outline#Outline":"Swagger-UI with Cloud TypeScript Editor with embedded SDK.@nestia/editor is a combination of Swagger-UI and web-based TypeScript editor (of StackBlitz) embedding SDK (Software Development Kit) library generated by @nestia/migrate from an OpenAPI document. With the @nestia/editor, you can easily test the backend API with TypeScript code, and it is much convenient than the traditional way of using Swagger UI, due to type checking and auto-completion of the TypeScript.Also, @nestia/editor provides Mockup Simulator of the backend API functions. With the mockup simulator, you can start the frontend (or client) development even when the backend API functions have not been implemented yet. Furthermore, @nestia/editor supports automatic e2e (end-to-end) test functions' generation, so that you can easily validate the backend API functions with the automatically generated test codes.Here are the some example projects generated by @nestia/editor. Traveling those example projects, you may understand how to utilize the @nestia/editor. Let's start the type safe API interaction development with @nestia/editor!\nPut your swagger.json file, then @nestia/editor be opened.","react-library#React Library":"import { NestiaEditorIframe } from \"@nestia/editor\";\nimport { SwaggerV2, OpenApiV3, OpenApiV3_1 } from \"@samchon/openapi\";\nconst document: SwaggerV2 | OpenApiV3 | OpenApiV3_1;\n\n\nInstall @nestia/editor and import one of below components.If you've prepared the Swagger Document to serve, you can directly launch the cloud editor by using the NestiaEditorIframe component. Otherwise you want to provide a \"Swagger File Uploader\" for dynamic purpose, utilize the NestiaEditorUploader component instead.\nNestiaEditorIframe: directly launch the cloud editor by given document\nNestiaEditorUploader: upload the swagger.json file and launch the cloud editor","static-hosting#Static Hosting":"💾 https://nestia.io/downloads/editor.zip\nUnzip and place your swagger.json file into the extracted directory.Just download unzip the above editor.zip file, and place your swagger.json (or swagger.yaml) file into the extracted directory. When you open the unzipped index.html in your browser, you can see the @nestia/editor is serving the \"TypeScript Swagger Editor\" application with your swagger.json (or swagger.yaml) file.Also, if you want to activate the Mockup Simulator or automatic e2e test functions' generation, guide the users to fill the simulate and e2e query parameters with true in the URL address like http://localhost/?simulate=true&e2e=true.By the way, if you do not place the swagger.json (or swagger.yaml) file into the directory, the @nestia/editor will just show you the \"Swagger File Uploader\" (NestiaEditorUploader) instead.","iframe-embedding#\nYou also can embed the @nestia/editor with static URL address.When embedding the @nestia/editor application through the \nYou also can embed the @nestia/editor with static URL address.When embedding the @nestia/editor application through the