@teleporthq/teleport-plugin-next-static-props 0.43.61 → 0.43.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,174 @@
1
+ import generator from '@babel/generator'
2
+ import * as types from '@babel/types'
3
+ import { ComponentStructure } from '@teleporthq/teleport-types'
4
+ import { createStaticPropsPlugin } from '../src/index'
5
+
6
+ // Entity-level redirects (`initialPropsData.redirect`): a details page whose
7
+ // fetched row carries a destination answers with an HTTP redirect instead of
8
+ // rendering. Two invariants matter beyond the emitted shape:
9
+ // - the redirect must live INSIDE an IfStatement — several later plugins
10
+ // (addDynamicSeoPropsToGetStaticProps, the parallel/inline-fetch plugins)
11
+ // locate the props return via `.find((s) => s.type === 'ReturnStatement')`
12
+ // on the try block, so a second top-level return would derail them;
13
+ // - `statusCode` (not `permanent`) is emitted, because Next.js maps
14
+ // `permanent: true/false` to 308/307 while the feature promises 301/302.
15
+
16
+ const RESOURCE_ID = 'fetch-blog-post'
17
+
18
+ const makeStructure = (params: {
19
+ redirect?: { destinationField: string; typeField?: string }
20
+ skipI18n?: boolean
21
+ revalidate?: number
22
+ }): ComponentStructure => {
23
+ const { redirect, skipI18n, revalidate } = params
24
+ return {
25
+ uidl: {
26
+ name: 'BlogPostDetails',
27
+ node: { type: 'element', content: { elementType: 'container' } },
28
+ outputOptions: {
29
+ pageId: 'page-blog-post-details',
30
+ folderPath: ['blog'],
31
+ fileName: '[slug]',
32
+ initialPropsData: {
33
+ exposeAs: { name: 'blogPost', valuePath: ['data', '0'] },
34
+ resource: { id: RESOURCE_ID, params: {} },
35
+ ...(revalidate ? { cache: { revalidate } } : {}),
36
+ ...(redirect ? { redirect } : {}),
37
+ },
38
+ },
39
+ },
40
+ chunks: [],
41
+ dependencies: {},
42
+ options: {
43
+ skipI18n,
44
+ resources: {
45
+ items: {
46
+ [RESOURCE_ID]: { id: RESOURCE_ID, name: 'blog-post' },
47
+ },
48
+ path: ['utils', 'data-sources'],
49
+ },
50
+ },
51
+ } as unknown as ComponentStructure
52
+ }
53
+
54
+ const generateCode = async (structure: ComponentStructure): Promise<string> => {
55
+ const plugin = createStaticPropsPlugin()
56
+ const result = await plugin(structure)
57
+ const chunk = result.chunks.find((c) => c.name === 'getStaticProps')
58
+ expect(chunk).toBeDefined()
59
+ return generator(chunk?.content as types.Node).code
60
+ }
61
+
62
+ describe('teleport-plugin-next-static-props: entity redirect', () => {
63
+ it('emits a statusCode redirect between the notFound check and the props return', async () => {
64
+ const code = await generateCode(
65
+ makeStructure({ redirect: { destinationField: 'redirectUrl', typeField: 'redirectType' } })
66
+ )
67
+
68
+ expect(code).toContain('const entityRedirectUrl = response?.data?.[0]?.redirectUrl')
69
+ expect(code).toContain('if (entityRedirectUrl)')
70
+ expect(code).toContain('statusCode: response?.data?.[0]?.redirectType === "302" ? 302 : 301')
71
+ expect(code).not.toContain('permanent')
72
+
73
+ // The 404 for a missing row must win over the redirect check.
74
+ expect(code.indexOf('notFound')).toBeLessThan(code.indexOf('entityRedirectUrl'))
75
+ expect(code.indexOf('entityRedirectUrl')).toBeLessThan(code.indexOf('props:'))
76
+ })
77
+
78
+ /*
79
+ Without `revalidate`, an ISR entry has NO expiry: Next.js caches the branch
80
+ it took and never runs getStaticProps for that path again. A page that
81
+ redirected once would redirect for ever — clearing `redirect_url` in the
82
+ admin would change the row and change nothing a visitor sees — and a row
83
+ that 404'd would stay 404 after being published. Every branch carries the
84
+ window, not just the one that renders.
85
+ */
86
+ it('gives the redirect and the notFound the same revalidate window as the props', async () => {
87
+ const code = await generateCode(
88
+ makeStructure({
89
+ redirect: { destinationField: 'redirectUrl', typeField: 'redirectType' },
90
+ revalidate: 60,
91
+ })
92
+ )
93
+
94
+ expect(code.match(/revalidate: 60/g)).toHaveLength(3)
95
+ const redirectAt = code.indexOf('if (entityRedirectUrl)')
96
+ const propsAt = code.indexOf('props:')
97
+ // The one between the redirect check and the props return is the redirect's.
98
+ expect(code.indexOf('revalidate: 60', redirectAt)).toBeLessThan(propsAt)
99
+ })
100
+
101
+ it('emits no revalidate anywhere when the page has no cache window', async () => {
102
+ const code = await generateCode(
103
+ makeStructure({ redirect: { destinationField: 'redirectUrl', typeField: 'redirectType' } })
104
+ )
105
+ expect(code).not.toContain('revalidate')
106
+ })
107
+
108
+ it('keeps the props return as the ONLY top-level ReturnStatement in the try block', async () => {
109
+ const plugin = createStaticPropsPlugin()
110
+ const result = await plugin(
111
+ makeStructure({ redirect: { destinationField: 'redirectUrl', typeField: 'redirectType' } })
112
+ )
113
+ const chunk = result.chunks.find((c) => c.name === 'getStaticProps')
114
+ const exportDecl = chunk?.content as types.ExportNamedDeclaration
115
+ const fn = exportDecl.declaration as types.FunctionDeclaration
116
+ const tryStmt = fn.body.body.find(
117
+ (statement): statement is types.TryStatement => statement.type === 'TryStatement'
118
+ )
119
+ expect(tryStmt).toBeDefined()
120
+
121
+ const topLevelReturns = tryStmt!.block.body.filter(
122
+ (statement) => statement.type === 'ReturnStatement'
123
+ )
124
+ expect(topLevelReturns).toHaveLength(1)
125
+
126
+ // And the one `.find(ReturnStatement)` later plugins run must land on the
127
+ // props return, not the redirect.
128
+ const found = tryStmt!.block.body.find(
129
+ (statement) => statement.type === 'ReturnStatement'
130
+ ) as types.ReturnStatement
131
+ const foundCode = generator(found).code
132
+ expect(foundCode).toContain('props:')
133
+ })
134
+
135
+ it('prefixes internal destinations with the active non-default locale when i18n is on', async () => {
136
+ const code = await generateCode(
137
+ makeStructure({ redirect: { destinationField: 'redirectUrl', typeField: 'redirectType' } })
138
+ )
139
+
140
+ expect(code).toContain('context?.locale')
141
+ expect(code).toContain('context?.defaultLocale')
142
+ expect(code).toContain('entityRedirectUrl.startsWith("/")')
143
+ // tslint:disable-next-line:no-invalid-template-strings
144
+ expect(code).toContain('`/${context.locale}${entityRedirectUrl}`')
145
+ })
146
+
147
+ it('uses the destination as-is when i18n is skipped', async () => {
148
+ const code = await generateCode(
149
+ makeStructure({
150
+ redirect: { destinationField: 'redirectUrl', typeField: 'redirectType' },
151
+ skipI18n: true,
152
+ })
153
+ )
154
+
155
+ expect(code).toContain('destination: entityRedirectUrl')
156
+ expect(code).not.toContain('entityRedirectUrl.startsWith')
157
+ })
158
+
159
+ it('defaults to a permanent 301 when no typeField is configured', async () => {
160
+ const code = await generateCode(
161
+ makeStructure({ redirect: { destinationField: 'redirectUrl' } })
162
+ )
163
+
164
+ expect(code).toContain('statusCode: 301')
165
+ expect(code).not.toContain('redirectType')
166
+ })
167
+
168
+ it('emits no redirect code at all without a redirect config (regression guard)', async () => {
169
+ const code = await generateCode(makeStructure({}))
170
+
171
+ expect(code).not.toContain('entityRedirectUrl')
172
+ expect(code).not.toContain('redirect')
173
+ })
174
+ })
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/utils/local-imports.d.ts","../../../teleport-shared/dist/cjs/utils/js-identifiers.d.ts","../../../teleport-shared/dist/cjs/utils/ast-scope.d.ts","../../../teleport-shared/dist/cjs/utils/ast-statement-order.d.ts","../../../teleport-shared/dist/cjs/utils/ast-effect-cleanup.d.ts","../../../teleport-shared/dist/cjs/utils/route-paths.d.ts","../../../teleport-shared/dist/cjs/utils/layout-topology.d.ts","../../../teleport-shared/dist/cjs/utils/html-content-model.d.ts","../../../teleport-shared/dist/cjs/utils/style-declarations.d.ts","../../../teleport-shared/dist/cjs/utils/storefront-tax.d.ts","../../../teleport-shared/dist/cjs/utils/product-discounts.d.ts","../../../teleport-shared/dist/cjs/utils/email-date.d.ts","../../../teleport-shared/dist/cjs/cache/constants.d.ts","../../../teleport-shared/dist/cjs/cache/client-runtime.d.ts","../../../teleport-shared/dist/cjs/cache/server-runtime.d.ts","../../../teleport-shared/dist/cjs/cache/version-store.d.ts","../../../teleport-shared/dist/cjs/cache/api-routes.d.ts","../../../teleport-shared/dist/cjs/cache/index.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/types.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/url-search-param-sync.d.ts","../../../teleport-plugin-common/dist/cjs/utils/url-query-writer.d.ts","../../../teleport-plugin-common/dist/cjs/utils/route-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","b42584f9282882a4c3e388b5c9ef8d78b007540795dfd6ea2421dd28d2e1564f","8d27e5f73b75340198b2df36f39326f693743e64006bd7b88a925a5f285df628","b89124f3badfae5989afdc5c92193da02dee7dbea1b0f265794521bb02ddbe74","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","d9118ed71b9968fea213b070209081a1b1c378b55ddcd026fb1ae8a7f52c15b7","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","2151c15cf44957b985572346813bd65fba324d8f9422ad7aacdcacbd78dc2d5f","016e13cb6b202723f41294ea8028ae51ab987e847808c6f637d5a890954a943c","03eba7f46dd2b83498cad321b675dbeb75aaaf905e142dfa200e396cc2bb34b6","9700893324b247e73746e2ad65cd540f34d25221beca55e2bfe3cc441c1b9331","ef444c3abed06ad312847e29b4ba4432f7c195314c4bb82a25ce95f95c778a5b","1b162486fa280dbee48fc4c144654d5f55efcc37b7fee14d797abfbdad9a949c","ac38f9ccc10049dd76ddfb68a4ac6647d36656d62d4c01cd32ce1386e6e56758","210a682e78eed1c7aae6824de615032daaf3fc60c2b0cd3720200b6d61f9fd19","3e39c53f8d84f8cab50817a177664b09180a2d7eebac4583789268f9fd589b84","ab05daec0e36402aa878f9e6bce5bbb4ca1766771a40287cc253744045349777","ecfca193bd5f4c5a96cdca608fcc5bdec30439d0648bc90795cabbe07927b777","26b70c898ac9086bfb061fa451c96bf0e67e0281cb8404c72bc4b8bed45670af","152038e0f63f7fc9fd01dda2cd7e6d2a702841959b9a81c8c0d412947615d145","50d566d584d04608d6e06d8c544c234253af732c73f998363ddb3a04a2df4e05","85c1a4cf9f573ed7cb65596d82d315157ac03ff6914f578e6f0fdbca356557c7","a38a716bf00f98c44b63ea11a8f02dd1d7cc33deb445db79dd48f6ea50a93faf","2c010aad4ced0c836ea0c5d8b0465afe128c6dfab0fc0486df89e01d831128bf","4e6ff96a2db4fd3831ff16dc907e51fa41c417c57771712ab528db763eefc30d","e421033924a00045db6c0f30c05c1c008077828a39530fb5c742179eb56c28ed","33cae5e413c0ce1edeffeb0657a12b37e123a0eac472717561412d262f01f796","7864d42f488cf277d879b29b952dec989e11b02b4c04cf99595cbfafaf4a3775","a537ec71bb4e20603795c6ca99b3fdde1f10481e982ee202cccde153a20fda6a","b7f5a08a542459965e03364a10ce321d28eb5dc96c7cef00a48cb89e455f8532","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","d350fc146b46550e424850ab9f7e7d8951156584dbd27bf493e37d7d2300af87","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","10b2bb0a74b12ecbab5003ff91aa8b3da674f81a5d72fdd6f998bfaf664948c8","c5517fd5758cee081b157b90a8d1bd3f300e366d0597270ed30e9c0d72125c2d","3f4fe2fe5f1425cb3e04f5c898d990a1925a7c8a84548a4804f831cfaa2194cb","6ff754e93a1ef94f7a92e7f6f9b67357f3b25836ab36d66202d1d07343186ab7","504f64fcde588e7650963530c4108c700d2bf56e7c381a713e09c106987e9e3c","2ead83b6c419298ed2162580de49d95ea821f323ce5c9ea852b5d48c24b213a3","0f8a91a725deb2bc4f3d64760262135d51a7f5b27e0749424ea90218b719461c","bbcd30d53884212c228ff7e76c17ac9b1a928cdf5b8f427a71194c811a5d714d","1fe41493efdde00b7f7b326310cba7ea78bb55ff75ade0f21f788e1cda8fe9ed","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","fc5a1e87e350e2e8be13fb933ab2b992b1191adaa9e7c5c5cbeb324ddf735130",{"version":"9f4bbc32c9be86461cde904beb6ea1f50bbe8424193dabe55b51a83c6c172941","signature":"c4349257ab2094bd3448392031912d513766e22172ea8e747f1428031ba7aa89"},{"version":"12ae015fc120e78e95fcda667f9ffc6acfaff891c81b3136b898d552afa39028","signature":"72f9a2b79827a336cfe6c13bc11a7b7c0e4e8a9991d06dfa1ad1963682307c5c"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[183,185],[179,180],[179,180,181,182],[184],[186],[92],[128],[129,134,162],[130,141,142,149,159,170],[130,131,141,149],[132,171],[133,134,142,150],[134,159,167],[135,137,141,149],[128,136],[137,138],[141],[139,141],[128,141],[141,142,143,159,170],[141,142,143,156,159,162],[126,175],[137,141,144,149,159,170],[141,142,144,145,149,159,167,170],[144,146,159,167,170],[92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177],[141,147],[148,170,175],[137,141,149,159],[150],[151],[128,152],[153,169,175],[154],[155],[141,156,157],[156,158,171,173],[129,141,159,160,161,162],[129,159,161],[159,160],[162],[163],[128,159],[141,165,166],[165,166],[134,149,159,167],[168],[149,169],[129,144,155,170],[134,171],[159,172],[148,173],[174],[129,134,141,143,152,159,170,173,175],[159,176],[103,107,170],[103,159,170],[98],[100,103,167,170],[149,167],[178],[98,178],[100,103,149,170],[95,96,99,102,129,141,159,170],[95,101],[99,103,129,162,170,178],[129,178],[119,129,178],[97,98,178],[103],[97,98,99,100,101,102,103,104,105,107,108,109,110,111,112,113,114,115,116,117,118,120,121,122,123,124,125],[103,110,111],[101,103,111,112],[102],[95,98,103],[103,107,111,112],[107],[101,103,106,170],[95,100,101,103,107,110],[129,159],[98,103,119,129,175,178],[45,49],[49],[45,49,74],[73,74,75,76,78,79,80,81,82,83,84,85,86,87,88],[49,86],[45,49,84],[45,49,74,77],[45],[49,72,89,90],[45,49,72,89],[66,67,68,69,70],[50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,71],[44,45],[44,46,47,48],[43],[43,44]],"referencedMap":[[186,1],[181,2],[183,3],[182,2],[185,4],[187,5],[92,6],[93,6],[128,7],[129,8],[130,9],[131,10],[132,11],[133,12],[134,13],[135,14],[136,15],[137,16],[138,16],[140,17],[139,18],[141,19],[142,20],[143,21],[127,22],[144,23],[145,24],[146,25],[178,26],[147,27],[148,28],[149,29],[150,30],[151,31],[152,32],[153,33],[154,34],[155,35],[156,36],[157,36],[158,37],[159,38],[161,39],[160,40],[162,41],[163,42],[164,43],[165,44],[166,45],[167,46],[168,47],[169,48],[170,49],[171,50],[172,51],[173,52],[174,53],[175,54],[176,55],[110,56],[117,57],[109,56],[124,58],[101,59],[100,60],[123,61],[118,62],[121,63],[103,64],[102,65],[98,66],[97,67],[120,68],[99,69],[104,70],[108,70],[126,71],[125,70],[112,72],[113,73],[115,74],[111,75],[114,76],[119,61],[106,77],[107,78],[116,79],[96,80],[122,81],[73,82],[76,83],[75,84],[89,85],[87,86],[86,83],[88,87],[84,82],[85,87],[78,88],[80,82],[83,83],[79,83],[82,89],[81,89],[91,90],[90,91],[71,92],[50,83],[72,93],[58,89],[56,89],[57,89],[53,83],[60,83],[54,83],[63,83],[62,83],[52,83],[46,94],[49,95],[44,96],[48,97]],"exportedModulesMap":[[186,1],[181,2],[183,3],[182,2],[185,4],[187,5],[92,6],[93,6],[128,7],[129,8],[130,9],[131,10],[132,11],[133,12],[134,13],[135,14],[136,15],[137,16],[138,16],[140,17],[139,18],[141,19],[142,20],[143,21],[127,22],[144,23],[145,24],[146,25],[178,26],[147,27],[148,28],[149,29],[150,30],[151,31],[152,32],[153,33],[154,34],[155,35],[156,36],[157,36],[158,37],[159,38],[161,39],[160,40],[162,41],[163,42],[164,43],[165,44],[166,45],[167,46],[168,47],[169,48],[170,49],[171,50],[172,51],[173,52],[174,53],[175,54],[176,55],[110,56],[117,57],[109,56],[124,58],[101,59],[100,60],[123,61],[118,62],[121,63],[103,64],[102,65],[98,66],[97,67],[120,68],[99,69],[104,70],[108,70],[126,71],[125,70],[112,72],[113,73],[115,74],[111,75],[114,76],[119,61],[106,77],[107,78],[116,79],[96,80],[122,81],[73,82],[76,83],[75,84],[89,85],[87,86],[86,83],[88,87],[84,82],[85,87],[78,88],[80,82],[83,83],[79,83],[82,89],[81,89],[91,83],[90,82],[71,92],[50,83],[72,93],[58,89],[56,89],[57,89],[53,83],[60,83],[54,83],[63,83],[62,83],[52,83],[46,94],[49,95],[44,96],[48,97]],"semanticDiagnosticsPerFile":[45,186,179,181,183,182,180,185,184,187,92,93,128,129,130,131,132,133,134,135,136,137,138,140,139,141,142,143,127,177,144,145,146,178,147,148,149,150,151,152,153,154,155,156,157,158,159,161,160,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,94,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,110,117,109,124,101,100,123,118,121,103,102,98,97,120,99,104,105,108,95,126,125,112,113,115,111,114,119,106,107,116,96,122,73,76,75,89,87,86,88,84,85,78,80,74,83,79,77,82,81,91,90,70,67,66,71,68,69,50,72,58,56,57,65,53,61,55,60,54,64,59,63,51,62,52,47,46,43,49,44,48]},"version":"4.9.5"}
1
+ {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/utils/local-imports.d.ts","../../../teleport-shared/dist/cjs/utils/js-identifiers.d.ts","../../../teleport-shared/dist/cjs/utils/ast-scope.d.ts","../../../teleport-shared/dist/cjs/utils/ast-statement-order.d.ts","../../../teleport-shared/dist/cjs/utils/ast-effect-cleanup.d.ts","../../../teleport-shared/dist/cjs/utils/route-paths.d.ts","../../../teleport-shared/dist/cjs/utils/layout-topology.d.ts","../../../teleport-shared/dist/cjs/utils/html-content-model.d.ts","../../../teleport-shared/dist/cjs/utils/style-declarations.d.ts","../../../teleport-shared/dist/cjs/utils/storefront-tax.d.ts","../../../teleport-shared/dist/cjs/utils/product-discounts.d.ts","../../../teleport-shared/dist/cjs/utils/product-ratings.d.ts","../../../teleport-shared/dist/cjs/utils/font-preconnect.d.ts","../../../teleport-shared/dist/cjs/utils/email-date.d.ts","../../../teleport-shared/dist/cjs/utils/rich-text-embeds.d.ts","../../../teleport-shared/dist/cjs/utils/rich-text-embeds-codegen.d.ts","../../../teleport-shared/dist/cjs/cache/constants.d.ts","../../../teleport-shared/dist/cjs/cache/client-runtime.d.ts","../../../teleport-shared/dist/cjs/cache/server-runtime.d.ts","../../../teleport-shared/dist/cjs/cache/version-store.d.ts","../../../teleport-shared/dist/cjs/cache/api-routes.d.ts","../../../teleport-shared/dist/cjs/cache/index.d.ts","../../../teleport-shared/dist/cjs/page-revalidate/constants.d.ts","../../../teleport-shared/dist/cjs/page-revalidate/api-route.d.ts","../../../teleport-shared/dist/cjs/page-revalidate/index.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/types.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/url-search-param-sync.d.ts","../../../teleport-plugin-common/dist/cjs/utils/url-query-writer.d.ts","../../../teleport-plugin-common/dist/cjs/utils/route-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","dfdb483de9b11a6a4b821c95b90b899c1db51423f0cd014ea936a048d3ffe8de","8d27e5f73b75340198b2df36f39326f693743e64006bd7b88a925a5f285df628","1adf52df4f197a19525caa1722d6bfd30a883dba759598a24d75c4239c84619f","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","d9118ed71b9968fea213b070209081a1b1c378b55ddcd026fb1ae8a7f52c15b7","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","2151c15cf44957b985572346813bd65fba324d8f9422ad7aacdcacbd78dc2d5f","016e13cb6b202723f41294ea8028ae51ab987e847808c6f637d5a890954a943c","03eba7f46dd2b83498cad321b675dbeb75aaaf905e142dfa200e396cc2bb34b6","9700893324b247e73746e2ad65cd540f34d25221beca55e2bfe3cc441c1b9331","ef444c3abed06ad312847e29b4ba4432f7c195314c4bb82a25ce95f95c778a5b","1b162486fa280dbee48fc4c144654d5f55efcc37b7fee14d797abfbdad9a949c","ac38f9ccc10049dd76ddfb68a4ac6647d36656d62d4c01cd32ce1386e6e56758","210a682e78eed1c7aae6824de615032daaf3fc60c2b0cd3720200b6d61f9fd19","3e39c53f8d84f8cab50817a177664b09180a2d7eebac4583789268f9fd589b84","ab05daec0e36402aa878f9e6bce5bbb4ca1766771a40287cc253744045349777","ecfca193bd5f4c5a96cdca608fcc5bdec30439d0648bc90795cabbe07927b777","26b70c898ac9086bfb061fa451c96bf0e67e0281cb8404c72bc4b8bed45670af","152038e0f63f7fc9fd01dda2cd7e6d2a702841959b9a81c8c0d412947615d145","50d566d584d04608d6e06d8c544c234253af732c73f998363ddb3a04a2df4e05","c5d4917e7d140434d0bdc89fe47a55cf9afbd86cdb8e9f477d9b34334cb3cb61","06b5e5cc740d5f6a42bfa15b647d03f1d265c237274e3ae240fa735467fe3773","85c1a4cf9f573ed7cb65596d82d315157ac03ff6914f578e6f0fdbca356557c7","e07cc59642b0f0355143ba30ec2b85aac0c4fa001d44518d749a847b5637102b","2f11bed57a25403ac109f9cd5c67759ba5f5734119ae355de3a83ac035aa66dd","a38a716bf00f98c44b63ea11a8f02dd1d7cc33deb445db79dd48f6ea50a93faf","2c010aad4ced0c836ea0c5d8b0465afe128c6dfab0fc0486df89e01d831128bf","4e6ff96a2db4fd3831ff16dc907e51fa41c417c57771712ab528db763eefc30d","e421033924a00045db6c0f30c05c1c008077828a39530fb5c742179eb56c28ed","33cae5e413c0ce1edeffeb0657a12b37e123a0eac472717561412d262f01f796","7864d42f488cf277d879b29b952dec989e11b02b4c04cf99595cbfafaf4a3775","9e3175e934351ab697ce308ec3d17814753ef7b5d6353d9ddccad2717fb2d6c1","b759b887b371b187d895e327f123947fe3eb06c84b2d44ec5b78d3c1414db867","ffc0b613a409eef6b3b31e2d62de2d2ac02af9d069873cf8d1e00523fde77953","6340acfdc9ecb6dcdd0cca25024393e0f190c2e30b809e51c49e75fe4a3703a0","b7f5a08a542459965e03364a10ce321d28eb5dc96c7cef00a48cb89e455f8532","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","d350fc146b46550e424850ab9f7e7d8951156584dbd27bf493e37d7d2300af87","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","10b2bb0a74b12ecbab5003ff91aa8b3da674f81a5d72fdd6f998bfaf664948c8","c5517fd5758cee081b157b90a8d1bd3f300e366d0597270ed30e9c0d72125c2d","3f4fe2fe5f1425cb3e04f5c898d990a1925a7c8a84548a4804f831cfaa2194cb","6ff754e93a1ef94f7a92e7f6f9b67357f3b25836ab36d66202d1d07343186ab7","504f64fcde588e7650963530c4108c700d2bf56e7c381a713e09c106987e9e3c","2ead83b6c419298ed2162580de49d95ea821f323ce5c9ea852b5d48c24b213a3","0f8a91a725deb2bc4f3d64760262135d51a7f5b27e0749424ea90218b719461c","c5a688cd5edf1ae69f5c8f00b4ff311e10b68292fbe0adce6c1c95e961071faf","727d55976417f93cfc46d5e4b0dbd1f0127983595b02282c1a7879187d6b222c","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","fc5a1e87e350e2e8be13fb933ab2b992b1191adaa9e7c5c5cbeb324ddf735130",{"version":"4e27f1f6d72109e369d5d6bff1655dbc2144a561b05e1cb92ded2e33fea4d16b","signature":"c4349257ab2094bd3448392031912d513766e22172ea8e747f1428031ba7aa89"},{"version":"12ae015fc120e78e95fcda667f9ffc6acfaff891c81b3136b898d552afa39028","signature":"72f9a2b79827a336cfe6c13bc11a7b7c0e4e8a9991d06dfa1ad1963682307c5c"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[190,192],[186,187],[186,187,188,189],[191],[193],[99],[135],[136,141,169],[137,148,149,156,166,177],[137,138,148,156],[139,178],[140,141,149,157],[141,166,174],[142,144,148,156],[135,143],[144,145],[148],[146,148],[135,148],[148,149,150,166,177],[148,149,150,163,166,169],[133,182],[144,148,151,156,166,177],[148,149,151,152,156,166,174,177],[151,153,166,174,177],[99,100,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184],[148,154],[155,177,182],[144,148,156,166],[157],[158],[135,159],[160,176,182],[161],[162],[148,163,164],[163,165,178,180],[136,148,166,167,168,169],[136,166,168],[166,167],[169],[170],[135,166],[148,172,173],[172,173],[141,156,166,174],[175],[156,176],[136,151,162,177],[141,178],[166,179],[155,180],[181],[136,141,148,150,159,166,177,180,182],[166,183],[110,114,177],[110,166,177],[105],[107,110,174,177],[156,174],[185],[105,185],[107,110,156,177],[102,103,106,109,136,148,166,177],[102,108],[106,110,136,169,177,185],[136,185],[126,136,185],[104,105,185],[110],[104,105,106,107,108,109,110,111,112,114,115,116,117,118,119,120,121,122,123,124,125,127,128,129,130,131,132],[110,117,118],[108,110,118,119],[109],[102,105,110],[110,114,118,119],[114],[108,110,113,177],[102,107,108,110,114,117],[136,166],[105,110,126,136,182,185],[45,49],[49],[45,49,81],[80,81,82,83,85,86,87,88,89,90,91,92,93,94,95],[49,93],[45,49,91],[45,49,81,84],[45],[49,79,96,97],[45,49,79,96],[70,71,72,73,74],[50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,75,78],[76,77],[44,45],[44,46,47,48],[43],[43,44]],"referencedMap":[[193,1],[188,2],[190,3],[189,2],[192,4],[194,5],[99,6],[100,6],[135,7],[136,8],[137,9],[138,10],[139,11],[140,12],[141,13],[142,14],[143,15],[144,16],[145,16],[147,17],[146,18],[148,19],[149,20],[150,21],[134,22],[151,23],[152,24],[153,25],[185,26],[154,27],[155,28],[156,29],[157,30],[158,31],[159,32],[160,33],[161,34],[162,35],[163,36],[164,36],[165,37],[166,38],[168,39],[167,40],[169,41],[170,42],[171,43],[172,44],[173,45],[174,46],[175,47],[176,48],[177,49],[178,50],[179,51],[180,52],[181,53],[182,54],[183,55],[117,56],[124,57],[116,56],[131,58],[108,59],[107,60],[130,61],[125,62],[128,63],[110,64],[109,65],[105,66],[104,67],[127,68],[106,69],[111,70],[115,70],[133,71],[132,70],[119,72],[120,73],[122,74],[118,75],[121,76],[126,61],[113,77],[114,78],[123,79],[103,80],[129,81],[80,82],[83,83],[82,84],[96,85],[94,86],[93,83],[95,87],[91,82],[92,87],[85,88],[87,82],[90,83],[86,83],[89,89],[88,89],[98,90],[97,91],[75,92],[50,83],[79,93],[78,94],[58,89],[56,89],[57,89],[53,83],[60,83],[54,83],[63,83],[62,83],[52,83],[46,95],[49,96],[44,97],[48,98]],"exportedModulesMap":[[193,1],[188,2],[190,3],[189,2],[192,4],[194,5],[99,6],[100,6],[135,7],[136,8],[137,9],[138,10],[139,11],[140,12],[141,13],[142,14],[143,15],[144,16],[145,16],[147,17],[146,18],[148,19],[149,20],[150,21],[134,22],[151,23],[152,24],[153,25],[185,26],[154,27],[155,28],[156,29],[157,30],[158,31],[159,32],[160,33],[161,34],[162,35],[163,36],[164,36],[165,37],[166,38],[168,39],[167,40],[169,41],[170,42],[171,43],[172,44],[173,45],[174,46],[175,47],[176,48],[177,49],[178,50],[179,51],[180,52],[181,53],[182,54],[183,55],[117,56],[124,57],[116,56],[131,58],[108,59],[107,60],[130,61],[125,62],[128,63],[110,64],[109,65],[105,66],[104,67],[127,68],[106,69],[111,70],[115,70],[133,71],[132,70],[119,72],[120,73],[122,74],[118,75],[121,76],[126,61],[113,77],[114,78],[123,79],[103,80],[129,81],[80,82],[83,83],[82,84],[96,85],[94,86],[93,83],[95,87],[91,82],[92,87],[85,88],[87,82],[90,83],[86,83],[89,89],[88,89],[98,83],[97,82],[75,92],[50,83],[79,93],[78,94],[58,89],[56,89],[57,89],[53,83],[60,83],[54,83],[63,83],[62,83],[52,83],[46,95],[49,96],[44,97],[48,98]],"semanticDiagnosticsPerFile":[45,193,186,188,190,189,187,192,191,194,99,100,135,136,137,138,139,140,141,142,143,144,145,147,146,148,149,150,134,184,151,152,153,185,154,155,156,157,158,159,160,161,162,163,164,165,166,168,167,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,101,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,117,124,116,131,108,107,130,125,128,110,109,105,104,127,106,111,112,115,102,133,132,119,120,122,118,121,126,113,114,123,103,129,80,83,82,96,94,93,95,91,92,85,87,81,90,86,84,89,88,98,97,74,71,70,75,72,73,50,79,77,76,78,58,56,57,67,66,53,61,55,60,54,64,65,69,68,59,63,51,62,52,47,46,43,49,44,48]},"version":"4.9.5"}
package/dist/cjs/utils.js CHANGED
@@ -91,17 +91,39 @@ var computePropsAST = function (initialPropsData, resourceImportName, globalCach
91
91
  - /blog-posts/page/${id}
92
92
  */
93
93
  var perPageCache = initialPropsData.cache;
94
- var cachePropertyAST = null;
94
+ var revalidateSeconds = null;
95
95
  // getServerSideProps re-runs on every request — there is no revalidate
96
96
  // window to configure, and Next.js errors if the prop is present.
97
97
  if (!useServerSideProps) {
98
98
  if ((globalCache === null || globalCache === void 0 ? void 0 : globalCache.revalidate) && !(perPageCache === null || perPageCache === void 0 ? void 0 : perPageCache.revalidate)) {
99
- cachePropertyAST = types.objectProperty(types.identifier('revalidate'), types.numericLiteral(globalCache.revalidate));
99
+ revalidateSeconds = globalCache.revalidate;
100
100
  }
101
101
  if (perPageCache === null || perPageCache === void 0 ? void 0 : perPageCache.revalidate) {
102
- cachePropertyAST = types.objectProperty(types.identifier('revalidate'), types.numericLiteral(perPageCache.revalidate));
102
+ revalidateSeconds = perPageCache.revalidate;
103
103
  }
104
104
  }
105
+ /*
106
+ A FRESH node per return: `revalidate` belongs on every branch of
107
+ getStaticProps, not only the one that renders.
108
+
109
+ `notFound` and `redirect` are cached exactly like props are, and a branch
110
+ that omits `revalidate` is cached with no expiry at all — Next.js never
111
+ re-runs getStaticProps for it. A page that redirected once then redirects
112
+ for ever: clearing `redirect_url` in the admin changes the database and
113
+ changes nothing a visitor sees, because the ISR entry is never revisited.
114
+ The same freeze turns an unpublished row's 404 permanent, so publishing it
115
+ later has no effect either.
116
+
117
+ On-demand revalidation (the `page-revalidate` node the admin's save runs)
118
+ is what makes the change appear immediately; this is the floor it falls
119
+ back to when that call cannot be made or fails, and the reason a redirect
120
+ is never permanent by accident.
121
+ */
122
+ var revalidateProperty = function () {
123
+ return revalidateSeconds === null
124
+ ? null
125
+ : types.objectProperty(types.identifier('revalidate'), types.numericLiteral(revalidateSeconds));
126
+ };
105
127
  var localeAST = skipI18n
106
128
  ? []
107
129
  : [
@@ -122,15 +144,78 @@ var computePropsAST = function (initialPropsData, resourceImportName, globalCach
122
144
  var notFoundAST = types.ifStatement(types.unaryExpression('!', responseMemberAST), types.blockStatement([
123
145
  types.returnStatement(types.objectExpression([
124
146
  types.objectProperty(types.identifier('notFound'), types.booleanLiteral(true)),
125
- ])),
147
+ revalidateProperty(),
148
+ ].filter(Boolean))),
126
149
  ]));
127
150
  var returnAST = types.returnStatement(types.objectExpression([
128
151
  types.objectProperty(types.identifier('props'), types.objectExpression([
129
152
  types.objectProperty(types.identifier(teleport_shared_1.StringUtils.createStateOrPropStoringValue(initialPropsData.exposeAs.name)), responseMemberAST, false, false),
130
153
  types.spreadElement(types.optionalMemberExpression(types.identifier('response'), types.identifier('meta'), false, true)),
131
154
  ]), false, false),
132
- cachePropertyAST,
155
+ revalidateProperty(),
156
+ ].filter(Boolean)));
157
+ return __spreadArray(__spreadArray([
158
+ declarationAST,
159
+ notFoundAST
160
+ ], computeEntityRedirectAST(initialPropsData, skipI18n, revalidateProperty), true), [
161
+ returnAST,
162
+ ], false);
163
+ };
164
+ /**
165
+ * Entity-level redirect for details pages (`initialPropsData.redirect`): when
166
+ * the fetched row's destination field holds a value, the page answers with an
167
+ * HTTP redirect instead of rendering. Placed AFTER the notFound check (a
168
+ * missing row still 404s) and emitted as an IfStatement wrapping its return —
169
+ * several downstream plugins (`addDynamicSeoPropsToGetStaticProps`, the
170
+ * parallel/inline-fetch plugins) locate the props return via
171
+ * `.find((s) => s.type === 'ReturnStatement')` on the try block, so this must
172
+ * never introduce another top-level ReturnStatement.
173
+ */
174
+ var computeEntityRedirectAST = function (initialPropsData, skipI18n, revalidateProperty) {
175
+ var redirect = initialPropsData.redirect;
176
+ if (!(redirect === null || redirect === void 0 ? void 0 : redirect.destinationField)) {
177
+ return [];
178
+ }
179
+ var rowPath = __spreadArray([
180
+ 'response'
181
+ ], teleport_plugin_common_1.ASTUtils.parseValuePath(initialPropsData.exposeAs.valuePath || []), true);
182
+ var destinationAST = teleport_plugin_common_1.ASTUtils.generateMemberExpressionASTFromPath(__spreadArray(__spreadArray([], rowPath, true), [
183
+ redirect.destinationField,
184
+ ], false));
185
+ // const entityRedirectUrl = response?.data?.[0]?.<destinationField>
186
+ var destinationDeclarationAST = types.variableDeclaration('const', [
187
+ types.variableDeclarator(types.identifier('entityRedirectUrl'), destinationAST),
188
+ ]);
189
+ // Site-internal destinations must keep the visitor's locale: next.config.js
190
+ // redirects are locale-aware, data-fetching redirects are not, so a `/`
191
+ // destination is prefixed with the active non-default locale by hand.
192
+ var localeAwareDestinationAST = skipI18n
193
+ ? types.identifier('entityRedirectUrl')
194
+ : types.conditionalExpression(types.logicalExpression('&&', types.logicalExpression('&&', types.optionalMemberExpression(types.identifier('context'), types.identifier('locale'), false, true), types.binaryExpression('!==', types.memberExpression(types.identifier('context'), types.identifier('locale')), types.optionalMemberExpression(types.identifier('context'), types.identifier('defaultLocale'), false, true))), types.callExpression(types.memberExpression(types.identifier('entityRedirectUrl'), types.identifier('startsWith')), [types.stringLiteral('/')])), types.templateLiteral([
195
+ types.templateElement({ raw: '/', cooked: '/' }, false),
196
+ types.templateElement({ raw: '', cooked: '' }, false),
197
+ types.templateElement({ raw: '', cooked: '' }, true),
198
+ ], [
199
+ types.memberExpression(types.identifier('context'), types.identifier('locale')),
200
+ types.identifier('entityRedirectUrl'),
201
+ ]), types.identifier('entityRedirectUrl'));
202
+ // statusCode: real 301/302 — `permanent: true/false` would answer 308/307.
203
+ var statusCodeAST = redirect.typeField
204
+ ? types.conditionalExpression(types.binaryExpression('===', teleport_plugin_common_1.ASTUtils.generateMemberExpressionASTFromPath(__spreadArray(__spreadArray([], rowPath, true), [redirect.typeField], false)), types.stringLiteral('302')), types.numericLiteral(302), types.numericLiteral(301))
205
+ : types.numericLiteral(301);
206
+ var redirectReturnAST = types.returnStatement(types.objectExpression([
207
+ types.objectProperty(types.identifier('redirect'), types.objectExpression([
208
+ types.objectProperty(types.identifier('destination'), localeAwareDestinationAST),
209
+ types.objectProperty(types.identifier('statusCode'), statusCodeAST),
210
+ ])),
211
+ // Without this the redirect is cached with no expiry — see
212
+ // `revalidateProperty`. A redirect an editor can switch off must not
213
+ // outlive the row that asked for it.
214
+ revalidateProperty(),
133
215
  ].filter(Boolean)));
134
- return [declarationAST, notFoundAST, returnAST];
216
+ return [
217
+ destinationDeclarationAST,
218
+ types.ifStatement(types.identifier('entityRedirectUrl'), types.blockStatement([redirectReturnAST])),
219
+ ];
135
220
  };
136
221
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources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,CAAC;YACrB,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,yBAAyB,CAAC;YAChF,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC;SACpE,CAAC,CACH;QACD,2DAA2D;QAC3D,qEAAqE;QACrE,qCAAqC;QACrC,kBAAkB,EAAE;KACrB,CAAC,MAAM,CAAC,OAAO,CAAC,CAClB,CACF,CAAA;IAED,OAAO;QACL,yBAAyB;QACzB,KAAK,CAAC,WAAW,CACf,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,EACrC,KAAK,CAAC,cAAc,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAC1C;KACF,CAAA;AACH,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/utils/local-imports.d.ts","../../../teleport-shared/dist/cjs/utils/js-identifiers.d.ts","../../../teleport-shared/dist/cjs/utils/ast-scope.d.ts","../../../teleport-shared/dist/cjs/utils/ast-statement-order.d.ts","../../../teleport-shared/dist/cjs/utils/ast-effect-cleanup.d.ts","../../../teleport-shared/dist/cjs/utils/route-paths.d.ts","../../../teleport-shared/dist/cjs/utils/layout-topology.d.ts","../../../teleport-shared/dist/cjs/utils/html-content-model.d.ts","../../../teleport-shared/dist/cjs/utils/style-declarations.d.ts","../../../teleport-shared/dist/cjs/utils/storefront-tax.d.ts","../../../teleport-shared/dist/cjs/utils/product-discounts.d.ts","../../../teleport-shared/dist/cjs/utils/email-date.d.ts","../../../teleport-shared/dist/cjs/cache/constants.d.ts","../../../teleport-shared/dist/cjs/cache/client-runtime.d.ts","../../../teleport-shared/dist/cjs/cache/server-runtime.d.ts","../../../teleport-shared/dist/cjs/cache/version-store.d.ts","../../../teleport-shared/dist/cjs/cache/api-routes.d.ts","../../../teleport-shared/dist/cjs/cache/index.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/types.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/url-search-param-sync.d.ts","../../../teleport-plugin-common/dist/cjs/utils/url-query-writer.d.ts","../../../teleport-plugin-common/dist/cjs/utils/route-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","b42584f9282882a4c3e388b5c9ef8d78b007540795dfd6ea2421dd28d2e1564f","8d27e5f73b75340198b2df36f39326f693743e64006bd7b88a925a5f285df628","b89124f3badfae5989afdc5c92193da02dee7dbea1b0f265794521bb02ddbe74","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","d9118ed71b9968fea213b070209081a1b1c378b55ddcd026fb1ae8a7f52c15b7","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","2151c15cf44957b985572346813bd65fba324d8f9422ad7aacdcacbd78dc2d5f","016e13cb6b202723f41294ea8028ae51ab987e847808c6f637d5a890954a943c","03eba7f46dd2b83498cad321b675dbeb75aaaf905e142dfa200e396cc2bb34b6","9700893324b247e73746e2ad65cd540f34d25221beca55e2bfe3cc441c1b9331","ef444c3abed06ad312847e29b4ba4432f7c195314c4bb82a25ce95f95c778a5b","1b162486fa280dbee48fc4c144654d5f55efcc37b7fee14d797abfbdad9a949c","ac38f9ccc10049dd76ddfb68a4ac6647d36656d62d4c01cd32ce1386e6e56758","210a682e78eed1c7aae6824de615032daaf3fc60c2b0cd3720200b6d61f9fd19","3e39c53f8d84f8cab50817a177664b09180a2d7eebac4583789268f9fd589b84","ab05daec0e36402aa878f9e6bce5bbb4ca1766771a40287cc253744045349777","ecfca193bd5f4c5a96cdca608fcc5bdec30439d0648bc90795cabbe07927b777","26b70c898ac9086bfb061fa451c96bf0e67e0281cb8404c72bc4b8bed45670af","152038e0f63f7fc9fd01dda2cd7e6d2a702841959b9a81c8c0d412947615d145","50d566d584d04608d6e06d8c544c234253af732c73f998363ddb3a04a2df4e05","85c1a4cf9f573ed7cb65596d82d315157ac03ff6914f578e6f0fdbca356557c7","a38a716bf00f98c44b63ea11a8f02dd1d7cc33deb445db79dd48f6ea50a93faf","2c010aad4ced0c836ea0c5d8b0465afe128c6dfab0fc0486df89e01d831128bf","4e6ff96a2db4fd3831ff16dc907e51fa41c417c57771712ab528db763eefc30d","e421033924a00045db6c0f30c05c1c008077828a39530fb5c742179eb56c28ed","33cae5e413c0ce1edeffeb0657a12b37e123a0eac472717561412d262f01f796","7864d42f488cf277d879b29b952dec989e11b02b4c04cf99595cbfafaf4a3775","a537ec71bb4e20603795c6ca99b3fdde1f10481e982ee202cccde153a20fda6a","b7f5a08a542459965e03364a10ce321d28eb5dc96c7cef00a48cb89e455f8532","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","d350fc146b46550e424850ab9f7e7d8951156584dbd27bf493e37d7d2300af87","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","10b2bb0a74b12ecbab5003ff91aa8b3da674f81a5d72fdd6f998bfaf664948c8","c5517fd5758cee081b157b90a8d1bd3f300e366d0597270ed30e9c0d72125c2d","3f4fe2fe5f1425cb3e04f5c898d990a1925a7c8a84548a4804f831cfaa2194cb","6ff754e93a1ef94f7a92e7f6f9b67357f3b25836ab36d66202d1d07343186ab7","504f64fcde588e7650963530c4108c700d2bf56e7c381a713e09c106987e9e3c","2ead83b6c419298ed2162580de49d95ea821f323ce5c9ea852b5d48c24b213a3","0f8a91a725deb2bc4f3d64760262135d51a7f5b27e0749424ea90218b719461c","bbcd30d53884212c228ff7e76c17ac9b1a928cdf5b8f427a71194c811a5d714d","1fe41493efdde00b7f7b326310cba7ea78bb55ff75ade0f21f788e1cda8fe9ed","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","fc5a1e87e350e2e8be13fb933ab2b992b1191adaa9e7c5c5cbeb324ddf735130",{"version":"9f4bbc32c9be86461cde904beb6ea1f50bbe8424193dabe55b51a83c6c172941","signature":"c4349257ab2094bd3448392031912d513766e22172ea8e747f1428031ba7aa89"},{"version":"12ae015fc120e78e95fcda667f9ffc6acfaff891c81b3136b898d552afa39028","signature":"72f9a2b79827a336cfe6c13bc11a7b7c0e4e8a9991d06dfa1ad1963682307c5c"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[183,185],[179,180],[179,180,181,182],[184],[186],[92],[128],[129,134,162],[130,141,142,149,159,170],[130,131,141,149],[132,171],[133,134,142,150],[134,159,167],[135,137,141,149],[128,136],[137,138],[141],[139,141],[128,141],[141,142,143,159,170],[141,142,143,156,159,162],[126,175],[137,141,144,149,159,170],[141,142,144,145,149,159,167,170],[144,146,159,167,170],[92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177],[141,147],[148,170,175],[137,141,149,159],[150],[151],[128,152],[153,169,175],[154],[155],[141,156,157],[156,158,171,173],[129,141,159,160,161,162],[129,159,161],[159,160],[162],[163],[128,159],[141,165,166],[165,166],[134,149,159,167],[168],[149,169],[129,144,155,170],[134,171],[159,172],[148,173],[174],[129,134,141,143,152,159,170,173,175],[159,176],[103,107,170],[103,159,170],[98],[100,103,167,170],[149,167],[178],[98,178],[100,103,149,170],[95,96,99,102,129,141,159,170],[95,101],[99,103,129,162,170,178],[129,178],[119,129,178],[97,98,178],[103],[97,98,99,100,101,102,103,104,105,107,108,109,110,111,112,113,114,115,116,117,118,120,121,122,123,124,125],[103,110,111],[101,103,111,112],[102],[95,98,103],[103,107,111,112],[107],[101,103,106,170],[95,100,101,103,107,110],[129,159],[98,103,119,129,175,178],[45,49],[49],[45,49,74],[73,74,75,76,78,79,80,81,82,83,84,85,86,87,88],[49,86],[45,49,84],[45,49,74,77],[45],[49,72,89,90],[45,49,72,89],[66,67,68,69,70],[50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,71],[44,45],[44,46,47,48],[43],[43,44]],"referencedMap":[[186,1],[181,2],[183,3],[182,2],[185,4],[187,5],[92,6],[93,6],[128,7],[129,8],[130,9],[131,10],[132,11],[133,12],[134,13],[135,14],[136,15],[137,16],[138,16],[140,17],[139,18],[141,19],[142,20],[143,21],[127,22],[144,23],[145,24],[146,25],[178,26],[147,27],[148,28],[149,29],[150,30],[151,31],[152,32],[153,33],[154,34],[155,35],[156,36],[157,36],[158,37],[159,38],[161,39],[160,40],[162,41],[163,42],[164,43],[165,44],[166,45],[167,46],[168,47],[169,48],[170,49],[171,50],[172,51],[173,52],[174,53],[175,54],[176,55],[110,56],[117,57],[109,56],[124,58],[101,59],[100,60],[123,61],[118,62],[121,63],[103,64],[102,65],[98,66],[97,67],[120,68],[99,69],[104,70],[108,70],[126,71],[125,70],[112,72],[113,73],[115,74],[111,75],[114,76],[119,61],[106,77],[107,78],[116,79],[96,80],[122,81],[73,82],[76,83],[75,84],[89,85],[87,86],[86,83],[88,87],[84,82],[85,87],[78,88],[80,82],[83,83],[79,83],[82,89],[81,89],[91,90],[90,91],[71,92],[50,83],[72,93],[58,89],[56,89],[57,89],[53,83],[60,83],[54,83],[63,83],[62,83],[52,83],[46,94],[49,95],[44,96],[48,97]],"exportedModulesMap":[[186,1],[181,2],[183,3],[182,2],[185,4],[187,5],[92,6],[93,6],[128,7],[129,8],[130,9],[131,10],[132,11],[133,12],[134,13],[135,14],[136,15],[137,16],[138,16],[140,17],[139,18],[141,19],[142,20],[143,21],[127,22],[144,23],[145,24],[146,25],[178,26],[147,27],[148,28],[149,29],[150,30],[151,31],[152,32],[153,33],[154,34],[155,35],[156,36],[157,36],[158,37],[159,38],[161,39],[160,40],[162,41],[163,42],[164,43],[165,44],[166,45],[167,46],[168,47],[169,48],[170,49],[171,50],[172,51],[173,52],[174,53],[175,54],[176,55],[110,56],[117,57],[109,56],[124,58],[101,59],[100,60],[123,61],[118,62],[121,63],[103,64],[102,65],[98,66],[97,67],[120,68],[99,69],[104,70],[108,70],[126,71],[125,70],[112,72],[113,73],[115,74],[111,75],[114,76],[119,61],[106,77],[107,78],[116,79],[96,80],[122,81],[73,82],[76,83],[75,84],[89,85],[87,86],[86,83],[88,87],[84,82],[85,87],[78,88],[80,82],[83,83],[79,83],[82,89],[81,89],[91,83],[90,82],[71,92],[50,83],[72,93],[58,89],[56,89],[57,89],[53,83],[60,83],[54,83],[63,83],[62,83],[52,83],[46,94],[49,95],[44,96],[48,97]],"semanticDiagnosticsPerFile":[45,186,179,181,183,182,180,185,184,187,92,93,128,129,130,131,132,133,134,135,136,137,138,140,139,141,142,143,127,177,144,145,146,178,147,148,149,150,151,152,153,154,155,156,157,158,159,161,160,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,94,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,110,117,109,124,101,100,123,118,121,103,102,98,97,120,99,104,105,108,95,126,125,112,113,115,111,114,119,106,107,116,96,122,73,76,75,89,87,86,88,84,85,78,80,74,83,79,77,82,81,91,90,70,67,66,71,68,69,50,72,58,56,57,65,53,61,55,60,54,64,59,63,51,62,52,47,46,43,49,44,48]},"version":"4.9.5"}
1
+ {"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.dom.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../teleport-types/dist/cjs/helper.d.ts","../../../teleport-types/dist/cjs/uidl.d.ts","../../../../node_modules/@babel/types/lib/index.d.ts","../../../teleport-types/dist/cjs/generators.d.ts","../../../teleport-types/dist/cjs/errors.d.ts","../../../teleport-types/dist/cjs/vuidl.d.ts","../../../teleport-types/dist/cjs/index.d.ts","../../../teleport-shared/dist/cjs/constants/index.d.ts","../../../teleport-shared/dist/cjs/utils/string-utils.d.ts","../../../teleport-shared/dist/cjs/utils/uidl-utils.d.ts","../../../teleport-shared/dist/cjs/utils/generic.d.ts","../../../teleport-shared/dist/cjs/utils/local-imports.d.ts","../../../teleport-shared/dist/cjs/utils/js-identifiers.d.ts","../../../teleport-shared/dist/cjs/utils/ast-scope.d.ts","../../../teleport-shared/dist/cjs/utils/ast-statement-order.d.ts","../../../teleport-shared/dist/cjs/utils/ast-effect-cleanup.d.ts","../../../teleport-shared/dist/cjs/utils/route-paths.d.ts","../../../teleport-shared/dist/cjs/utils/layout-topology.d.ts","../../../teleport-shared/dist/cjs/utils/html-content-model.d.ts","../../../teleport-shared/dist/cjs/utils/style-declarations.d.ts","../../../teleport-shared/dist/cjs/utils/storefront-tax.d.ts","../../../teleport-shared/dist/cjs/utils/product-discounts.d.ts","../../../teleport-shared/dist/cjs/utils/product-ratings.d.ts","../../../teleport-shared/dist/cjs/utils/font-preconnect.d.ts","../../../teleport-shared/dist/cjs/utils/email-date.d.ts","../../../teleport-shared/dist/cjs/utils/rich-text-embeds.d.ts","../../../teleport-shared/dist/cjs/utils/rich-text-embeds-codegen.d.ts","../../../teleport-shared/dist/cjs/cache/constants.d.ts","../../../teleport-shared/dist/cjs/cache/client-runtime.d.ts","../../../teleport-shared/dist/cjs/cache/server-runtime.d.ts","../../../teleport-shared/dist/cjs/cache/version-store.d.ts","../../../teleport-shared/dist/cjs/cache/api-routes.d.ts","../../../teleport-shared/dist/cjs/cache/index.d.ts","../../../teleport-shared/dist/cjs/page-revalidate/constants.d.ts","../../../teleport-shared/dist/cjs/page-revalidate/api-route.d.ts","../../../teleport-shared/dist/cjs/page-revalidate/index.d.ts","../../../teleport-shared/dist/cjs/index.d.ts","../../../teleport-plugin-common/dist/cjs/builders/ast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/parsed-ast.d.ts","../../../teleport-plugin-common/dist/cjs/builders/style-builders.d.ts","../../../teleport-plugin-common/dist/cjs/builders/hast-builders.d.ts","../../../teleport-plugin-common/dist/cjs/utils/types.d.ts","../../../teleport-plugin-common/dist/cjs/utils/ast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/style-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/hast-utils.d.ts","../../../teleport-plugin-common/dist/cjs/utils/url-search-param-sync.d.ts","../../../teleport-plugin-common/dist/cjs/utils/url-query-writer.d.ts","../../../teleport-plugin-common/dist/cjs/utils/route-utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/utils.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/types.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-html/index.d.ts","../../../teleport-plugin-common/dist/cjs/node-handlers/node-to-jsx/index.d.ts","../../../teleport-plugin-common/dist/cjs/index.d.ts","../../src/utils.ts","../../src/index.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/undici-types/header.d.ts","../../../../node_modules/undici-types/readable.d.ts","../../../../node_modules/undici-types/file.d.ts","../../../../node_modules/undici-types/fetch.d.ts","../../../../node_modules/undici-types/formdata.d.ts","../../../../node_modules/undici-types/connector.d.ts","../../../../node_modules/undici-types/client.d.ts","../../../../node_modules/undici-types/errors.d.ts","../../../../node_modules/undici-types/dispatcher.d.ts","../../../../node_modules/undici-types/global-dispatcher.d.ts","../../../../node_modules/undici-types/global-origin.d.ts","../../../../node_modules/undici-types/pool-stats.d.ts","../../../../node_modules/undici-types/pool.d.ts","../../../../node_modules/undici-types/handlers.d.ts","../../../../node_modules/undici-types/balanced-pool.d.ts","../../../../node_modules/undici-types/agent.d.ts","../../../../node_modules/undici-types/mock-interceptor.d.ts","../../../../node_modules/undici-types/mock-agent.d.ts","../../../../node_modules/undici-types/mock-client.d.ts","../../../../node_modules/undici-types/mock-pool.d.ts","../../../../node_modules/undici-types/mock-errors.d.ts","../../../../node_modules/undici-types/proxy-agent.d.ts","../../../../node_modules/undici-types/api.d.ts","../../../../node_modules/undici-types/cookies.d.ts","../../../../node_modules/undici-types/patch.d.ts","../../../../node_modules/undici-types/filereader.d.ts","../../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../../node_modules/undici-types/websocket.d.ts","../../../../node_modules/undici-types/content-type.d.ts","../../../../node_modules/undici-types/cache.d.ts","../../../../node_modules/undici-types/interceptors.d.ts","../../../../node_modules/undici-types/index.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/dom-events.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/readline/promises.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/test.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/diffLines.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/printDiffs.d.ts","../../../../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../../../../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../../../../node_modules/@types/jest/index.d.ts","../../../../node_modules/@types/jest/ts3.2/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"14fc7efae8b184b18019a5906c6f6de752823b44ff1acf7924bbdc8877ded21b","dfdb483de9b11a6a4b821c95b90b899c1db51423f0cd014ea936a048d3ffe8de","8d27e5f73b75340198b2df36f39326f693743e64006bd7b88a925a5f285df628","1adf52df4f197a19525caa1722d6bfd30a883dba759598a24d75c4239c84619f","71a689048584cde03cb508408ae7c3b04ad8f10af887865e8b65c27ed9d91488","d9118ed71b9968fea213b070209081a1b1c378b55ddcd026fb1ae8a7f52c15b7","6ba1631f84ef4507073189c4ada06d6de8bac89375ea3b49e34e49006cc44a3f","afa9397f3aa80897cec3ddec1dd6f7c8741106ce96090f74df790a474b114ed6","2151c15cf44957b985572346813bd65fba324d8f9422ad7aacdcacbd78dc2d5f","016e13cb6b202723f41294ea8028ae51ab987e847808c6f637d5a890954a943c","03eba7f46dd2b83498cad321b675dbeb75aaaf905e142dfa200e396cc2bb34b6","9700893324b247e73746e2ad65cd540f34d25221beca55e2bfe3cc441c1b9331","ef444c3abed06ad312847e29b4ba4432f7c195314c4bb82a25ce95f95c778a5b","1b162486fa280dbee48fc4c144654d5f55efcc37b7fee14d797abfbdad9a949c","ac38f9ccc10049dd76ddfb68a4ac6647d36656d62d4c01cd32ce1386e6e56758","210a682e78eed1c7aae6824de615032daaf3fc60c2b0cd3720200b6d61f9fd19","3e39c53f8d84f8cab50817a177664b09180a2d7eebac4583789268f9fd589b84","ab05daec0e36402aa878f9e6bce5bbb4ca1766771a40287cc253744045349777","ecfca193bd5f4c5a96cdca608fcc5bdec30439d0648bc90795cabbe07927b777","26b70c898ac9086bfb061fa451c96bf0e67e0281cb8404c72bc4b8bed45670af","152038e0f63f7fc9fd01dda2cd7e6d2a702841959b9a81c8c0d412947615d145","50d566d584d04608d6e06d8c544c234253af732c73f998363ddb3a04a2df4e05","c5d4917e7d140434d0bdc89fe47a55cf9afbd86cdb8e9f477d9b34334cb3cb61","06b5e5cc740d5f6a42bfa15b647d03f1d265c237274e3ae240fa735467fe3773","85c1a4cf9f573ed7cb65596d82d315157ac03ff6914f578e6f0fdbca356557c7","e07cc59642b0f0355143ba30ec2b85aac0c4fa001d44518d749a847b5637102b","2f11bed57a25403ac109f9cd5c67759ba5f5734119ae355de3a83ac035aa66dd","a38a716bf00f98c44b63ea11a8f02dd1d7cc33deb445db79dd48f6ea50a93faf","2c010aad4ced0c836ea0c5d8b0465afe128c6dfab0fc0486df89e01d831128bf","4e6ff96a2db4fd3831ff16dc907e51fa41c417c57771712ab528db763eefc30d","e421033924a00045db6c0f30c05c1c008077828a39530fb5c742179eb56c28ed","33cae5e413c0ce1edeffeb0657a12b37e123a0eac472717561412d262f01f796","7864d42f488cf277d879b29b952dec989e11b02b4c04cf99595cbfafaf4a3775","9e3175e934351ab697ce308ec3d17814753ef7b5d6353d9ddccad2717fb2d6c1","b759b887b371b187d895e327f123947fe3eb06c84b2d44ec5b78d3c1414db867","ffc0b613a409eef6b3b31e2d62de2d2ac02af9d069873cf8d1e00523fde77953","6340acfdc9ecb6dcdd0cca25024393e0f190c2e30b809e51c49e75fe4a3703a0","b7f5a08a542459965e03364a10ce321d28eb5dc96c7cef00a48cb89e455f8532","7d69ac79c9de7620a1bdd926fd4b20b8e968d6467a220eac2a836988ab47c933","d350fc146b46550e424850ab9f7e7d8951156584dbd27bf493e37d7d2300af87","51df45d44f1a2052bd14063736f385bfbdcfee3759fa5597c89f62b3bbdb02e5","10b2bb0a74b12ecbab5003ff91aa8b3da674f81a5d72fdd6f998bfaf664948c8","c5517fd5758cee081b157b90a8d1bd3f300e366d0597270ed30e9c0d72125c2d","3f4fe2fe5f1425cb3e04f5c898d990a1925a7c8a84548a4804f831cfaa2194cb","6ff754e93a1ef94f7a92e7f6f9b67357f3b25836ab36d66202d1d07343186ab7","504f64fcde588e7650963530c4108c700d2bf56e7c381a713e09c106987e9e3c","2ead83b6c419298ed2162580de49d95ea821f323ce5c9ea852b5d48c24b213a3","0f8a91a725deb2bc4f3d64760262135d51a7f5b27e0749424ea90218b719461c","c5a688cd5edf1ae69f5c8f00b4ff311e10b68292fbe0adce6c1c95e961071faf","727d55976417f93cfc46d5e4b0dbd1f0127983595b02282c1a7879187d6b222c","48533e135178c91d9abe0789d1c09802696a42985217396ccfcfd1034a099a0e","dcaef7f7c1f0cb2dba19a1a70cc8d5276faa68e50bc69d6a006d3aaaaa9f7aa7","ffd67adf9464cf9bcddc3954fcd27d59b60e85acb02101fefe8b0eb642a2be2f","fc5a1e87e350e2e8be13fb933ab2b992b1191adaa9e7c5c5cbeb324ddf735130",{"version":"4e27f1f6d72109e369d5d6bff1655dbc2144a561b05e1cb92ded2e33fea4d16b","signature":"c4349257ab2094bd3448392031912d513766e22172ea8e747f1428031ba7aa89"},{"version":"12ae015fc120e78e95fcda667f9ffc6acfaff891c81b3136b898d552afa39028","signature":"72f9a2b79827a336cfe6c13bc11a7b7c0e4e8a9991d06dfa1ad1963682307c5c"},"0b4bc32128fda7bb0752cf284730dd3a817aae04a3d7f92e3b2d54bd61362fe1","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"5f290ea7efbe9d8431e10df12c0d5672b67988e7c171c2d356749fac70347a55","affectsGlobalScope":true},"39b1a50d543770780b0409a4caacb87f3ff1d510aedfeb7dc06ed44188256f89",{"version":"49c89f8fa09d21c161e6a367448639e032f42d77cc2ec8ab54ecb8fa9a3ad59f","affectsGlobalScope":true},"e4b50850c2a62c7750428e452ee24b167180104d514d5e5c0ca691753365f610","304504c854c47a55ab4a89111a27a2daf8a3614740bd787cc1f2c51e5574239c",{"version":"95f9129a37dcace36e17b061a8484952586ecfe928c9c8ce526de1a2f4aaefa7","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","0f9061846236850a872cb44097d071631e93c8749a8b16c191fe3c2a48faede4","e46fa644658c2d6e5c85e954ea76b92c97d63f0851d3ccdab8c2a80d5962aaa9","1c611ff373ce1958aafc40b328048ac2540ba5c7f373cf2897e0d9aeaabe90a0","a307d22a0130ac94c1a17fffa6d57ac272deb5838cb966a9420911d259cdf1be","d2e415abf6cb81ac9e2700b4db5ea7be76b997e812285b8e5e1e414eb2750b6e","09d6cebdced6aa1181ac1523c8f22a133f5ed80589678b64051f0602f0518374",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"7c35691dc3972ff1507d8dd279d833f540973d0917bde22e191cf7a8feaac29f","affectsGlobalScope":true},"62662d7a886e5cfa870685720fd27b763743ca4d2cf29326f75d76606a64eadd","b8c670688bd228d3cc9c169690b09b687188c50ff263a94df63b207701105ad9","d8e16905907111390d5a943816306ae997dfe56476f14142166f8b13ee322eea","8068c911a1c40bc6c5ffc58c625b21d807778f6aa6d63a73e6f04f88bcac5b79","a1dbce56ad5f3a37caafb9033c9d190a199217d673f5fa099c8968d471a2fdaa","c6f77efcc19f51c8759779b6b6ee0d88046c15c15dadac8ffed729a6620daf39",{"version":"089867511b37a534ae71f3d9bc97acc0b925b7f5dbec113f98c4b49224c694eb","affectsGlobalScope":true},"269d0ea3202820c29a32c1f2a357837a4f1918426844f7e7c90af15ec40d1dc1","66432f885e30cf471573de22a5af5eca9ab46b37b122aec98beadf77e9b7df24","323506ce173f7f865f42f493885ee3dacd18db6359ea1141d57676d3781ce10c",{"version":"034e635df3c014df1d6b1110b724ca0c4d2d324b45a84974c7d6931f9cf95ea7","affectsGlobalScope":true},{"version":"87f9456115554cb0f78f098ddbd585096871c19d2d05274c1b1b4ade3151da78","affectsGlobalScope":true},"ea3ab3727cd6c222d94003ecafa30e8550c61eadcdabbf59514aee76e86211a5","d3cdd41693c5ed6bec4f1a1c399d9501372b14bd341bc46eedacf2854c5df5a7","2de7a21c92226fb8abbeed7a0a9bd8aa6d37e4c68a8c7ff7938c644267e9fcc1","6d6070c5c81ba0bfe58988c69e3ba3149fc86421fd383f253aeb071cbf29cd41","da618f0ea09d95c3b51514de43bf97dab008c85bede58aa57cf95e4984c7c957","48a35b181ecf47dbbc0a7ab4b5ba778d91eaa838ba42bf4aaaead42be77ef39a","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","5195aeb0de306d1c5ca8033457fbcab5987657112fa6d4971cfeb7644493a369","c5dbf0003bc9f0f643e54cd00a3868d1afe85497fecb56be6f2373dc85102924",{"version":"ce73eb199c4bf96c015f069aac161488ed73ebeaea3d87b6d5aa9a968a7b38d4","affectsGlobalScope":true},{"version":"300f8e9de0b0c3482be3e749462b6ebc3dab8a316801f1da0def94aed0cd2018","affectsGlobalScope":true},"4e228e78c1e9b0a75c70588d59288f63a6258e8b1fe4a67b0c53fe03461421d9","962f105729d5b888c8b70e193f6020ee92c6c8144c827de40f80d65dd188ad7f","ac74e2b754fba690036f8221d978f6debb867462b87af254f24e924b677395d0","80858f6de9af22e53aff221fe3590215ea544c2aeb2cc60cf8e08a9c785c8fef",{"version":"068b8ee5c2cd90d7a50f2efadbbe353cb10196a41189a48bf4b2a867363012b4","affectsGlobalScope":true},{"version":"340659b96782f5813aad6c1f89ea1b83b2f3fa993115c7b30366375d9bae5a4e","affectsGlobalScope":true},"6f44a190351ab5e1811abebe007cf60518044772ccc08244f9f241706afa767f","fecdf44bec4ee9c5188e5f2f58c292c9689c02520900dceaaa6e76594de6da90","cf45d0510b661f1da461479851ff902f188edb111777c37055eff12fa986a23a",{"version":"895ca532c15c77cbb6a871af1870b57bcd0ca4f38a1bd69669dd0e95bb58565a","affectsGlobalScope":true},"f2b9440f98d6f94c8105883a2b65aee2fce0248f71f41beafd0a80636f3a565d",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationMap":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"noImplicitAny":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"target":1},"fileIdsList":[[190,192],[186,187],[186,187,188,189],[191],[193],[99],[135],[136,141,169],[137,148,149,156,166,177],[137,138,148,156],[139,178],[140,141,149,157],[141,166,174],[142,144,148,156],[135,143],[144,145],[148],[146,148],[135,148],[148,149,150,166,177],[148,149,150,163,166,169],[133,182],[144,148,151,156,166,177],[148,149,151,152,156,166,174,177],[151,153,166,174,177],[99,100,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184],[148,154],[155,177,182],[144,148,156,166],[157],[158],[135,159],[160,176,182],[161],[162],[148,163,164],[163,165,178,180],[136,148,166,167,168,169],[136,166,168],[166,167],[169],[170],[135,166],[148,172,173],[172,173],[141,156,166,174],[175],[156,176],[136,151,162,177],[141,178],[166,179],[155,180],[181],[136,141,148,150,159,166,177,180,182],[166,183],[110,114,177],[110,166,177],[105],[107,110,174,177],[156,174],[185],[105,185],[107,110,156,177],[102,103,106,109,136,148,166,177],[102,108],[106,110,136,169,177,185],[136,185],[126,136,185],[104,105,185],[110],[104,105,106,107,108,109,110,111,112,114,115,116,117,118,119,120,121,122,123,124,125,127,128,129,130,131,132],[110,117,118],[108,110,118,119],[109],[102,105,110],[110,114,118,119],[114],[108,110,113,177],[102,107,108,110,114,117],[136,166],[105,110,126,136,182,185],[45,49],[49],[45,49,81],[80,81,82,83,85,86,87,88,89,90,91,92,93,94,95],[49,93],[45,49,91],[45,49,81,84],[45],[49,79,96,97],[45,49,79,96],[70,71,72,73,74],[50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,75,78],[76,77],[44,45],[44,46,47,48],[43],[43,44]],"referencedMap":[[193,1],[188,2],[190,3],[189,2],[192,4],[194,5],[99,6],[100,6],[135,7],[136,8],[137,9],[138,10],[139,11],[140,12],[141,13],[142,14],[143,15],[144,16],[145,16],[147,17],[146,18],[148,19],[149,20],[150,21],[134,22],[151,23],[152,24],[153,25],[185,26],[154,27],[155,28],[156,29],[157,30],[158,31],[159,32],[160,33],[161,34],[162,35],[163,36],[164,36],[165,37],[166,38],[168,39],[167,40],[169,41],[170,42],[171,43],[172,44],[173,45],[174,46],[175,47],[176,48],[177,49],[178,50],[179,51],[180,52],[181,53],[182,54],[183,55],[117,56],[124,57],[116,56],[131,58],[108,59],[107,60],[130,61],[125,62],[128,63],[110,64],[109,65],[105,66],[104,67],[127,68],[106,69],[111,70],[115,70],[133,71],[132,70],[119,72],[120,73],[122,74],[118,75],[121,76],[126,61],[113,77],[114,78],[123,79],[103,80],[129,81],[80,82],[83,83],[82,84],[96,85],[94,86],[93,83],[95,87],[91,82],[92,87],[85,88],[87,82],[90,83],[86,83],[89,89],[88,89],[98,90],[97,91],[75,92],[50,83],[79,93],[78,94],[58,89],[56,89],[57,89],[53,83],[60,83],[54,83],[63,83],[62,83],[52,83],[46,95],[49,96],[44,97],[48,98]],"exportedModulesMap":[[193,1],[188,2],[190,3],[189,2],[192,4],[194,5],[99,6],[100,6],[135,7],[136,8],[137,9],[138,10],[139,11],[140,12],[141,13],[142,14],[143,15],[144,16],[145,16],[147,17],[146,18],[148,19],[149,20],[150,21],[134,22],[151,23],[152,24],[153,25],[185,26],[154,27],[155,28],[156,29],[157,30],[158,31],[159,32],[160,33],[161,34],[162,35],[163,36],[164,36],[165,37],[166,38],[168,39],[167,40],[169,41],[170,42],[171,43],[172,44],[173,45],[174,46],[175,47],[176,48],[177,49],[178,50],[179,51],[180,52],[181,53],[182,54],[183,55],[117,56],[124,57],[116,56],[131,58],[108,59],[107,60],[130,61],[125,62],[128,63],[110,64],[109,65],[105,66],[104,67],[127,68],[106,69],[111,70],[115,70],[133,71],[132,70],[119,72],[120,73],[122,74],[118,75],[121,76],[126,61],[113,77],[114,78],[123,79],[103,80],[129,81],[80,82],[83,83],[82,84],[96,85],[94,86],[93,83],[95,87],[91,82],[92,87],[85,88],[87,82],[90,83],[86,83],[89,89],[88,89],[98,83],[97,82],[75,92],[50,83],[79,93],[78,94],[58,89],[56,89],[57,89],[53,83],[60,83],[54,83],[63,83],[62,83],[52,83],[46,95],[49,96],[44,97],[48,98]],"semanticDiagnosticsPerFile":[45,193,186,188,190,189,187,192,191,194,99,100,135,136,137,138,139,140,141,142,143,144,145,147,146,148,149,150,134,184,151,152,153,185,154,155,156,157,158,159,160,161,162,163,164,165,166,168,167,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,101,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,117,124,116,131,108,107,130,125,128,110,109,105,104,127,106,111,112,115,102,133,132,119,120,122,118,121,126,113,114,123,103,129,80,83,82,96,94,93,95,91,92,85,87,81,90,86,84,89,88,98,97,74,71,70,75,72,73,50,79,77,76,78,58,56,57,67,66,53,61,55,60,54,64,65,69,68,59,63,51,62,52,47,46,43,49,44,48]},"version":"4.9.5"}
package/dist/esm/utils.js CHANGED
@@ -64,17 +64,39 @@ var computePropsAST = function (initialPropsData, resourceImportName, globalCach
64
64
  - /blog-posts/page/${id}
65
65
  */
66
66
  var perPageCache = initialPropsData.cache;
67
- var cachePropertyAST = null;
67
+ var revalidateSeconds = null;
68
68
  // getServerSideProps re-runs on every request — there is no revalidate
69
69
  // window to configure, and Next.js errors if the prop is present.
70
70
  if (!useServerSideProps) {
71
71
  if ((globalCache === null || globalCache === void 0 ? void 0 : globalCache.revalidate) && !(perPageCache === null || perPageCache === void 0 ? void 0 : perPageCache.revalidate)) {
72
- cachePropertyAST = types.objectProperty(types.identifier('revalidate'), types.numericLiteral(globalCache.revalidate));
72
+ revalidateSeconds = globalCache.revalidate;
73
73
  }
74
74
  if (perPageCache === null || perPageCache === void 0 ? void 0 : perPageCache.revalidate) {
75
- cachePropertyAST = types.objectProperty(types.identifier('revalidate'), types.numericLiteral(perPageCache.revalidate));
75
+ revalidateSeconds = perPageCache.revalidate;
76
76
  }
77
77
  }
78
+ /*
79
+ A FRESH node per return: `revalidate` belongs on every branch of
80
+ getStaticProps, not only the one that renders.
81
+
82
+ `notFound` and `redirect` are cached exactly like props are, and a branch
83
+ that omits `revalidate` is cached with no expiry at all — Next.js never
84
+ re-runs getStaticProps for it. A page that redirected once then redirects
85
+ for ever: clearing `redirect_url` in the admin changes the database and
86
+ changes nothing a visitor sees, because the ISR entry is never revisited.
87
+ The same freeze turns an unpublished row's 404 permanent, so publishing it
88
+ later has no effect either.
89
+
90
+ On-demand revalidation (the `page-revalidate` node the admin's save runs)
91
+ is what makes the change appear immediately; this is the floor it falls
92
+ back to when that call cannot be made or fails, and the reason a redirect
93
+ is never permanent by accident.
94
+ */
95
+ var revalidateProperty = function () {
96
+ return revalidateSeconds === null
97
+ ? null
98
+ : types.objectProperty(types.identifier('revalidate'), types.numericLiteral(revalidateSeconds));
99
+ };
78
100
  var localeAST = skipI18n
79
101
  ? []
80
102
  : [
@@ -95,15 +117,78 @@ var computePropsAST = function (initialPropsData, resourceImportName, globalCach
95
117
  var notFoundAST = types.ifStatement(types.unaryExpression('!', responseMemberAST), types.blockStatement([
96
118
  types.returnStatement(types.objectExpression([
97
119
  types.objectProperty(types.identifier('notFound'), types.booleanLiteral(true)),
98
- ])),
120
+ revalidateProperty(),
121
+ ].filter(Boolean))),
99
122
  ]));
100
123
  var returnAST = types.returnStatement(types.objectExpression([
101
124
  types.objectProperty(types.identifier('props'), types.objectExpression([
102
125
  types.objectProperty(types.identifier(StringUtils.createStateOrPropStoringValue(initialPropsData.exposeAs.name)), responseMemberAST, false, false),
103
126
  types.spreadElement(types.optionalMemberExpression(types.identifier('response'), types.identifier('meta'), false, true)),
104
127
  ]), false, false),
105
- cachePropertyAST,
128
+ revalidateProperty(),
129
+ ].filter(Boolean)));
130
+ return __spreadArray(__spreadArray([
131
+ declarationAST,
132
+ notFoundAST
133
+ ], computeEntityRedirectAST(initialPropsData, skipI18n, revalidateProperty), true), [
134
+ returnAST,
135
+ ], false);
136
+ };
137
+ /**
138
+ * Entity-level redirect for details pages (`initialPropsData.redirect`): when
139
+ * the fetched row's destination field holds a value, the page answers with an
140
+ * HTTP redirect instead of rendering. Placed AFTER the notFound check (a
141
+ * missing row still 404s) and emitted as an IfStatement wrapping its return —
142
+ * several downstream plugins (`addDynamicSeoPropsToGetStaticProps`, the
143
+ * parallel/inline-fetch plugins) locate the props return via
144
+ * `.find((s) => s.type === 'ReturnStatement')` on the try block, so this must
145
+ * never introduce another top-level ReturnStatement.
146
+ */
147
+ var computeEntityRedirectAST = function (initialPropsData, skipI18n, revalidateProperty) {
148
+ var redirect = initialPropsData.redirect;
149
+ if (!(redirect === null || redirect === void 0 ? void 0 : redirect.destinationField)) {
150
+ return [];
151
+ }
152
+ var rowPath = __spreadArray([
153
+ 'response'
154
+ ], ASTUtils.parseValuePath(initialPropsData.exposeAs.valuePath || []), true);
155
+ var destinationAST = ASTUtils.generateMemberExpressionASTFromPath(__spreadArray(__spreadArray([], rowPath, true), [
156
+ redirect.destinationField,
157
+ ], false));
158
+ // const entityRedirectUrl = response?.data?.[0]?.<destinationField>
159
+ var destinationDeclarationAST = types.variableDeclaration('const', [
160
+ types.variableDeclarator(types.identifier('entityRedirectUrl'), destinationAST),
161
+ ]);
162
+ // Site-internal destinations must keep the visitor's locale: next.config.js
163
+ // redirects are locale-aware, data-fetching redirects are not, so a `/`
164
+ // destination is prefixed with the active non-default locale by hand.
165
+ var localeAwareDestinationAST = skipI18n
166
+ ? types.identifier('entityRedirectUrl')
167
+ : types.conditionalExpression(types.logicalExpression('&&', types.logicalExpression('&&', types.optionalMemberExpression(types.identifier('context'), types.identifier('locale'), false, true), types.binaryExpression('!==', types.memberExpression(types.identifier('context'), types.identifier('locale')), types.optionalMemberExpression(types.identifier('context'), types.identifier('defaultLocale'), false, true))), types.callExpression(types.memberExpression(types.identifier('entityRedirectUrl'), types.identifier('startsWith')), [types.stringLiteral('/')])), types.templateLiteral([
168
+ types.templateElement({ raw: '/', cooked: '/' }, false),
169
+ types.templateElement({ raw: '', cooked: '' }, false),
170
+ types.templateElement({ raw: '', cooked: '' }, true),
171
+ ], [
172
+ types.memberExpression(types.identifier('context'), types.identifier('locale')),
173
+ types.identifier('entityRedirectUrl'),
174
+ ]), types.identifier('entityRedirectUrl'));
175
+ // statusCode: real 301/302 — `permanent: true/false` would answer 308/307.
176
+ var statusCodeAST = redirect.typeField
177
+ ? types.conditionalExpression(types.binaryExpression('===', ASTUtils.generateMemberExpressionASTFromPath(__spreadArray(__spreadArray([], rowPath, true), [redirect.typeField], false)), types.stringLiteral('302')), types.numericLiteral(302), types.numericLiteral(301))
178
+ : types.numericLiteral(301);
179
+ var redirectReturnAST = types.returnStatement(types.objectExpression([
180
+ types.objectProperty(types.identifier('redirect'), types.objectExpression([
181
+ types.objectProperty(types.identifier('destination'), localeAwareDestinationAST),
182
+ types.objectProperty(types.identifier('statusCode'), statusCodeAST),
183
+ ])),
184
+ // Without this the redirect is cached with no expiry — see
185
+ // `revalidateProperty`. A redirect an editor can switch off must not
186
+ // outlive the row that asked for it.
187
+ revalidateProperty(),
106
188
  ].filter(Boolean)));
107
- return [declarationAST, notFoundAST, returnAST];
189
+ return [
190
+ destinationDeclarationAST,
191
+ types.ifStatement(types.identifier('entityRedirectUrl'), types.blockStatement([redirectReturnAST])),
192
+ ];
108
193
  };
109
194
  //# sourceMappingURL=utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],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cAAc,CAClB,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,EAC5B,KAAK,CAAC,gBAAgB,CAAC;YACrB,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,yBAAyB,CAAC;YAChF,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,aAAa,CAAC;SACpE,CAAC,CACH;QACD,2DAA2D;QAC3D,qEAAqE;QACrE,qCAAqC;QACrC,kBAAkB,EAAE;KACrB,CAAC,MAAM,CAAC,OAAO,CAAC,CAClB,CACF,CAAA;IAED,OAAO;QACL,yBAAyB;QACzB,KAAK,CAAC,WAAW,CACf,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,EACrC,KAAK,CAAC,cAAc,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAC1C;KACF,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teleporthq/teleport-plugin-next-static-props",
3
- "version": "0.43.61",
3
+ "version": "0.43.63",
4
4
  "description": "A plugin for adding getStaticProps inside a nextjs page",
5
5
  "author": "teleportHQ",
6
6
  "license": "MIT",
@@ -25,8 +25,8 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@babel/types": "^7.5.5",
28
- "@teleporthq/teleport-plugin-common": "^0.43.61",
29
- "@teleporthq/teleport-types": "^0.43.61"
28
+ "@teleporthq/teleport-plugin-common": "^0.43.63",
29
+ "@teleporthq/teleport-types": "^0.43.63"
30
30
  },
31
- "gitHead": "6a1dad51b4b659ffdd5002095c3e81d94427c422"
31
+ "gitHead": "2c7a1001dd77ae05f54ff41f44acfa9f89a156b4"
32
32
  }
package/src/utils.ts CHANGED
@@ -112,26 +112,45 @@ const computePropsAST = (
112
112
  - /blog-posts/page/${id}
113
113
  */
114
114
  const perPageCache = initialPropsData.cache
115
- let cachePropertyAST: types.ObjectProperty | null = null
115
+ let revalidateSeconds: number | null = null
116
116
 
117
117
  // getServerSideProps re-runs on every request — there is no revalidate
118
118
  // window to configure, and Next.js errors if the prop is present.
119
119
  if (!useServerSideProps) {
120
120
  if (globalCache?.revalidate && !perPageCache?.revalidate) {
121
- cachePropertyAST = types.objectProperty(
122
- types.identifier('revalidate'),
123
- types.numericLiteral(globalCache.revalidate)
124
- )
121
+ revalidateSeconds = globalCache.revalidate
125
122
  }
126
123
 
127
124
  if (perPageCache?.revalidate) {
128
- cachePropertyAST = types.objectProperty(
129
- types.identifier('revalidate'),
130
- types.numericLiteral(perPageCache.revalidate)
131
- )
125
+ revalidateSeconds = perPageCache.revalidate
132
126
  }
133
127
  }
134
128
 
129
+ /*
130
+ A FRESH node per return: `revalidate` belongs on every branch of
131
+ getStaticProps, not only the one that renders.
132
+
133
+ `notFound` and `redirect` are cached exactly like props are, and a branch
134
+ that omits `revalidate` is cached with no expiry at all — Next.js never
135
+ re-runs getStaticProps for it. A page that redirected once then redirects
136
+ for ever: clearing `redirect_url` in the admin changes the database and
137
+ changes nothing a visitor sees, because the ISR entry is never revisited.
138
+ The same freeze turns an unpublished row's 404 permanent, so publishing it
139
+ later has no effect either.
140
+
141
+ On-demand revalidation (the `page-revalidate` node the admin's save runs)
142
+ is what makes the change appear immediately; this is the floor it falls
143
+ back to when that call cannot be made or fails, and the reason a redirect
144
+ is never permanent by accident.
145
+ */
146
+ const revalidateProperty = (): types.ObjectProperty | null =>
147
+ revalidateSeconds === null
148
+ ? null
149
+ : types.objectProperty(
150
+ types.identifier('revalidate'),
151
+ types.numericLiteral(revalidateSeconds)
152
+ )
153
+
135
154
  const localeAST = skipI18n
136
155
  ? []
137
156
  : [
@@ -185,9 +204,12 @@ const computePropsAST = (
185
204
  types.unaryExpression('!', responseMemberAST),
186
205
  types.blockStatement([
187
206
  types.returnStatement(
188
- types.objectExpression([
189
- types.objectProperty(types.identifier('notFound'), types.booleanLiteral(true)),
190
- ])
207
+ types.objectExpression(
208
+ [
209
+ types.objectProperty(types.identifier('notFound'), types.booleanLiteral(true)),
210
+ revalidateProperty(),
211
+ ].filter(Boolean)
212
+ )
191
213
  ),
192
214
  ])
193
215
  )
@@ -218,10 +240,138 @@ const computePropsAST = (
218
240
  false,
219
241
  false
220
242
  ),
221
- cachePropertyAST,
243
+ revalidateProperty(),
222
244
  ].filter(Boolean)
223
245
  )
224
246
  )
225
247
 
226
- return [declarationAST, notFoundAST, returnAST]
248
+ return [
249
+ declarationAST,
250
+ notFoundAST,
251
+ ...computeEntityRedirectAST(initialPropsData, skipI18n, revalidateProperty),
252
+ returnAST,
253
+ ]
254
+ }
255
+
256
+ /**
257
+ * Entity-level redirect for details pages (`initialPropsData.redirect`): when
258
+ * the fetched row's destination field holds a value, the page answers with an
259
+ * HTTP redirect instead of rendering. Placed AFTER the notFound check (a
260
+ * missing row still 404s) and emitted as an IfStatement wrapping its return —
261
+ * several downstream plugins (`addDynamicSeoPropsToGetStaticProps`, the
262
+ * parallel/inline-fetch plugins) locate the props return via
263
+ * `.find((s) => s.type === 'ReturnStatement')` on the try block, so this must
264
+ * never introduce another top-level ReturnStatement.
265
+ */
266
+ const computeEntityRedirectAST = (
267
+ initialPropsData: UIDLInitialPropsData,
268
+ skipI18n: boolean | undefined,
269
+ revalidateProperty: () => types.ObjectProperty | null
270
+ ): types.Statement[] => {
271
+ const redirect = initialPropsData.redirect
272
+ if (!redirect?.destinationField) {
273
+ return []
274
+ }
275
+
276
+ const rowPath = [
277
+ 'response',
278
+ ...ASTUtils.parseValuePath(initialPropsData.exposeAs.valuePath || []),
279
+ ]
280
+ const destinationAST = ASTUtils.generateMemberExpressionASTFromPath([
281
+ ...rowPath,
282
+ redirect.destinationField,
283
+ ])
284
+
285
+ // const entityRedirectUrl = response?.data?.[0]?.<destinationField>
286
+ const destinationDeclarationAST = types.variableDeclaration('const', [
287
+ types.variableDeclarator(types.identifier('entityRedirectUrl'), destinationAST),
288
+ ])
289
+
290
+ // Site-internal destinations must keep the visitor's locale: next.config.js
291
+ // redirects are locale-aware, data-fetching redirects are not, so a `/`
292
+ // destination is prefixed with the active non-default locale by hand.
293
+ const localeAwareDestinationAST = skipI18n
294
+ ? types.identifier('entityRedirectUrl')
295
+ : types.conditionalExpression(
296
+ types.logicalExpression(
297
+ '&&',
298
+ types.logicalExpression(
299
+ '&&',
300
+ types.optionalMemberExpression(
301
+ types.identifier('context'),
302
+ types.identifier('locale'),
303
+ false,
304
+ true
305
+ ),
306
+ types.binaryExpression(
307
+ '!==',
308
+ types.memberExpression(types.identifier('context'), types.identifier('locale')),
309
+ types.optionalMemberExpression(
310
+ types.identifier('context'),
311
+ types.identifier('defaultLocale'),
312
+ false,
313
+ true
314
+ )
315
+ )
316
+ ),
317
+ types.callExpression(
318
+ types.memberExpression(
319
+ types.identifier('entityRedirectUrl'),
320
+ types.identifier('startsWith')
321
+ ),
322
+ [types.stringLiteral('/')]
323
+ )
324
+ ),
325
+ types.templateLiteral(
326
+ [
327
+ types.templateElement({ raw: '/', cooked: '/' }, false),
328
+ types.templateElement({ raw: '', cooked: '' }, false),
329
+ types.templateElement({ raw: '', cooked: '' }, true),
330
+ ],
331
+ [
332
+ types.memberExpression(types.identifier('context'), types.identifier('locale')),
333
+ types.identifier('entityRedirectUrl'),
334
+ ]
335
+ ),
336
+ types.identifier('entityRedirectUrl')
337
+ )
338
+
339
+ // statusCode: real 301/302 — `permanent: true/false` would answer 308/307.
340
+ const statusCodeAST = redirect.typeField
341
+ ? types.conditionalExpression(
342
+ types.binaryExpression(
343
+ '===',
344
+ ASTUtils.generateMemberExpressionASTFromPath([...rowPath, redirect.typeField]),
345
+ types.stringLiteral('302')
346
+ ),
347
+ types.numericLiteral(302),
348
+ types.numericLiteral(301)
349
+ )
350
+ : types.numericLiteral(301)
351
+
352
+ const redirectReturnAST = types.returnStatement(
353
+ types.objectExpression(
354
+ [
355
+ types.objectProperty(
356
+ types.identifier('redirect'),
357
+ types.objectExpression([
358
+ types.objectProperty(types.identifier('destination'), localeAwareDestinationAST),
359
+ types.objectProperty(types.identifier('statusCode'), statusCodeAST),
360
+ ])
361
+ ),
362
+ // Without this the redirect is cached with no expiry — see
363
+ // `revalidateProperty`. A redirect an editor can switch off must not
364
+ // outlive the row that asked for it.
365
+ revalidateProperty(),
366
+ ].filter(Boolean)
367
+ )
368
+ )
369
+
370
+ return [
371
+ destinationDeclarationAST,
372
+ types.ifStatement(
373
+ types.identifier('entityRedirectUrl'),
374
+ types.blockStatement([redirectReturnAST])
375
+ ),
376
+ ]
227
377
  }