@techdocs/cli 0.0.0-nightly-20260204030923 → 0.0.0-nightly-20260206031025

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # @techdocs/cli
2
2
 
3
- ## 0.0.0-nightly-20260204030923
3
+ ## 0.0.0-nightly-20260206031025
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - 7455dae: Use node prefix on native imports
8
8
  - Updated dependencies
9
- - @backstage/backend-defaults@0.0.0-nightly-20260204030923
10
- - @backstage/plugin-techdocs-node@0.0.0-nightly-20260204030923
11
- - @backstage/cli-common@0.0.0-nightly-20260204030923
9
+ - @backstage/backend-defaults@0.0.0-nightly-20260206031025
10
+ - @backstage/plugin-techdocs-node@0.0.0-nightly-20260206031025
11
+ - @backstage/cli-common@0.0.0-nightly-20260206031025
12
12
  - @backstage/catalog-model@1.7.6
13
13
  - @backstage/config@1.3.6
14
14
 
@@ -1239,6 +1239,25 @@
1239
1239
  },
1240
1240
  "packageName": "@backstage/plugin-catalog"
1241
1241
  },
1242
+ {
1243
+ "path": "../backend-plugin-api/config.d.ts",
1244
+ "value": {
1245
+ "type": "object",
1246
+ "properties": {
1247
+ "backend": {
1248
+ "type": "object",
1249
+ "properties": {
1250
+ "workingDirectory": {
1251
+ "description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
1252
+ "type": "string"
1253
+ }
1254
+ }
1255
+ }
1256
+ },
1257
+ "$schema": "http://json-schema.org/draft-07/schema#"
1258
+ },
1259
+ "packageName": "@backstage/backend-plugin-api"
1260
+ },
1242
1261
  {
1243
1262
  "path": "../../plugins/auth-backend/config.d.ts",
1244
1263
  "value": {
@@ -1440,124 +1459,6 @@
1440
1459
  },
1441
1460
  "packageName": "@backstage/plugin-auth-backend-module-guest-provider"
1442
1461
  },
1443
- {
1444
- "path": "../backend-plugin-api/config.d.ts",
1445
- "value": {
1446
- "type": "object",
1447
- "properties": {
1448
- "backend": {
1449
- "type": "object",
1450
- "properties": {
1451
- "workingDirectory": {
1452
- "description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
1453
- "type": "string"
1454
- }
1455
- }
1456
- }
1457
- },
1458
- "$schema": "http://json-schema.org/draft-07/schema#"
1459
- },
1460
- "packageName": "@backstage/backend-plugin-api"
1461
- },
1462
- {
1463
- "path": "../backend-app-api/config.d.ts",
1464
- "value": {
1465
- "type": "object",
1466
- "properties": {
1467
- "backend": {
1468
- "type": "object",
1469
- "properties": {
1470
- "packages": {
1471
- "description": "Used by the feature discovery service",
1472
- "anyOf": [
1473
- {
1474
- "type": "object",
1475
- "properties": {
1476
- "include": {
1477
- "type": "array",
1478
- "items": {
1479
- "type": "string"
1480
- }
1481
- },
1482
- "exclude": {
1483
- "type": "array",
1484
- "items": {
1485
- "type": "string"
1486
- }
1487
- }
1488
- }
1489
- },
1490
- {
1491
- "const": "all",
1492
- "type": "string"
1493
- }
1494
- ]
1495
- },
1496
- "startup": {
1497
- "type": "object",
1498
- "properties": {
1499
- "default": {
1500
- "type": "object",
1501
- "properties": {
1502
- "onPluginBootFailure": {
1503
- "description": "The default value for `onPluginBootFailure` if not specified for a particular plugin.\nThis defaults to 'abort', which means `onPluginBootFailure: continue` must be specified\nfor backend startup to continue on plugin boot failure. This can also be set to\n'continue', which flips the logic for individual plugins so that they must be set to\n`onPluginBootFailure: abort` to be required.",
1504
- "enum": [
1505
- "abort",
1506
- "continue"
1507
- ],
1508
- "type": "string"
1509
- },
1510
- "onPluginModuleBootFailure": {
1511
- "description": "The default value for `onPluginModuleBootFailure` if not specified for a particular plugin module.\nThis defaults to 'abort', which means `onPluginModuleBootFailure: continue` must be specified\nfor backend startup to continue on plugin module boot failure. This can also be set to\n'continue', which flips the logic for individual plugin modules so that they must be set to\n`onPluginModuleBootFailure: abort` to be required.",
1512
- "enum": [
1513
- "abort",
1514
- "continue"
1515
- ],
1516
- "type": "string"
1517
- }
1518
- }
1519
- },
1520
- "plugins": {
1521
- "type": "object",
1522
- "additionalProperties": {
1523
- "type": "object",
1524
- "properties": {
1525
- "onPluginBootFailure": {
1526
- "description": "Used to control backend startup behavior when this plugin fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nfails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin failures for plugins\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
1527
- "enum": [
1528
- "abort",
1529
- "continue"
1530
- ],
1531
- "type": "string"
1532
- },
1533
- "modules": {
1534
- "type": "object",
1535
- "additionalProperties": {
1536
- "type": "object",
1537
- "properties": {
1538
- "onPluginModuleBootFailure": {
1539
- "description": "Used to control backend startup behavior when this plugin module fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nmodule fails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin module failures for plugin modules\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
1540
- "enum": [
1541
- "abort",
1542
- "continue"
1543
- ],
1544
- "type": "string"
1545
- }
1546
- }
1547
- }
1548
- }
1549
- }
1550
- }
1551
- }
1552
- }
1553
- }
1554
- }
1555
- }
1556
- },
1557
- "$schema": "http://json-schema.org/draft-07/schema#"
1558
- },
1559
- "packageName": "@backstage/backend-app-api"
1560
- },
1561
1462
  {
1562
1463
  "path": "../backend-defaults/config.d.ts",
1563
1464
  "value": {
@@ -3229,30 +3130,6 @@
3229
3130
  },
3230
3131
  "packageName": "@backstage/backend-defaults"
3231
3132
  },
3232
- {
3233
- "path": "../../plugins/events-node/config.d.ts",
3234
- "value": {
3235
- "type": "object",
3236
- "properties": {
3237
- "events": {
3238
- "type": "object",
3239
- "properties": {
3240
- "useEventBus": {
3241
- "description": "Whether to use the event bus API in the events plugin backend to\ndistribute events across multiple instances when publishing and\nsubscribing to events.\n\nThe default is 'auto', which means means that the event bus API will be\nused if it's available, but will be disabled if the events backend\nreturns a 404.\n\nIf set to 'never', the events service will only ever publish events\nlocally to the same instance, while if set to 'always', the event bus API\nwill never be disabled, even if the events backend returns a 404.",
3242
- "enum": [
3243
- "always",
3244
- "auto",
3245
- "never"
3246
- ],
3247
- "type": "string"
3248
- }
3249
- }
3250
- }
3251
- },
3252
- "$schema": "http://json-schema.org/draft-07/schema#"
3253
- },
3254
- "packageName": "@backstage/plugin-events-node"
3255
- },
3256
3133
  {
3257
3134
  "path": "../../plugins/auth-backend-module-google-provider/config.d.ts",
3258
3135
  "value": {
@@ -3377,6 +3254,129 @@
3377
3254
  },
3378
3255
  "packageName": "@backstage/plugin-auth-backend-module-google-provider"
3379
3256
  },
3257
+ {
3258
+ "path": "../backend-app-api/config.d.ts",
3259
+ "value": {
3260
+ "type": "object",
3261
+ "properties": {
3262
+ "backend": {
3263
+ "type": "object",
3264
+ "properties": {
3265
+ "packages": {
3266
+ "description": "Used by the feature discovery service",
3267
+ "anyOf": [
3268
+ {
3269
+ "type": "object",
3270
+ "properties": {
3271
+ "include": {
3272
+ "type": "array",
3273
+ "items": {
3274
+ "type": "string"
3275
+ }
3276
+ },
3277
+ "exclude": {
3278
+ "type": "array",
3279
+ "items": {
3280
+ "type": "string"
3281
+ }
3282
+ }
3283
+ }
3284
+ },
3285
+ {
3286
+ "const": "all",
3287
+ "type": "string"
3288
+ }
3289
+ ]
3290
+ },
3291
+ "startup": {
3292
+ "type": "object",
3293
+ "properties": {
3294
+ "default": {
3295
+ "type": "object",
3296
+ "properties": {
3297
+ "onPluginBootFailure": {
3298
+ "description": "The default value for `onPluginBootFailure` if not specified for a particular plugin.\nThis defaults to 'abort', which means `onPluginBootFailure: continue` must be specified\nfor backend startup to continue on plugin boot failure. This can also be set to\n'continue', which flips the logic for individual plugins so that they must be set to\n`onPluginBootFailure: abort` to be required.",
3299
+ "enum": [
3300
+ "abort",
3301
+ "continue"
3302
+ ],
3303
+ "type": "string"
3304
+ },
3305
+ "onPluginModuleBootFailure": {
3306
+ "description": "The default value for `onPluginModuleBootFailure` if not specified for a particular plugin module.\nThis defaults to 'abort', which means `onPluginModuleBootFailure: continue` must be specified\nfor backend startup to continue on plugin module boot failure. This can also be set to\n'continue', which flips the logic for individual plugin modules so that they must be set to\n`onPluginModuleBootFailure: abort` to be required.",
3307
+ "enum": [
3308
+ "abort",
3309
+ "continue"
3310
+ ],
3311
+ "type": "string"
3312
+ }
3313
+ }
3314
+ },
3315
+ "plugins": {
3316
+ "type": "object",
3317
+ "additionalProperties": {
3318
+ "type": "object",
3319
+ "properties": {
3320
+ "onPluginBootFailure": {
3321
+ "description": "Used to control backend startup behavior when this plugin fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nfails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin failures for plugins\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
3322
+ "enum": [
3323
+ "abort",
3324
+ "continue"
3325
+ ],
3326
+ "type": "string"
3327
+ },
3328
+ "modules": {
3329
+ "type": "object",
3330
+ "additionalProperties": {
3331
+ "type": "object",
3332
+ "properties": {
3333
+ "onPluginModuleBootFailure": {
3334
+ "description": "Used to control backend startup behavior when this plugin module fails to boot up. Setting\nthis to `continue` allows the backend to continue starting up, even if this plugin\nmodule fails. This can enable leaving a crashing plugin installed, but still permit backend\nstartup, which may help troubleshoot data-dependent issues. Plugin module failures for plugin modules\nset to `abort` are fatal (this is the default unless overridden by the `default`\nsetting).",
3335
+ "enum": [
3336
+ "abort",
3337
+ "continue"
3338
+ ],
3339
+ "type": "string"
3340
+ }
3341
+ }
3342
+ }
3343
+ }
3344
+ }
3345
+ }
3346
+ }
3347
+ }
3348
+ }
3349
+ }
3350
+ }
3351
+ },
3352
+ "$schema": "http://json-schema.org/draft-07/schema#"
3353
+ },
3354
+ "packageName": "@backstage/backend-app-api"
3355
+ },
3356
+ {
3357
+ "path": "../../plugins/events-node/config.d.ts",
3358
+ "value": {
3359
+ "type": "object",
3360
+ "properties": {
3361
+ "events": {
3362
+ "type": "object",
3363
+ "properties": {
3364
+ "useEventBus": {
3365
+ "description": "Whether to use the event bus API in the events plugin backend to\ndistribute events across multiple instances when publishing and\nsubscribing to events.\n\nThe default is 'auto', which means means that the event bus API will be\nused if it's available, but will be disabled if the events backend\nreturns a 404.\n\nIf set to 'never', the events service will only ever publish events\nlocally to the same instance, while if set to 'always', the event bus API\nwill never be disabled, even if the events backend returns a 404.",
3366
+ "enum": [
3367
+ "always",
3368
+ "auto",
3369
+ "never"
3370
+ ],
3371
+ "type": "string"
3372
+ }
3373
+ }
3374
+ }
3375
+ },
3376
+ "$schema": "http://json-schema.org/draft-07/schema#"
3377
+ },
3378
+ "packageName": "@backstage/plugin-events-node"
3379
+ },
3380
3380
  {
3381
3381
  "path": "../integration-aws-node/config.d.ts",
3382
3382
  "value": {
@@ -1,4 +1,4 @@
1
- <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="color-scheme" content="light dark"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.c6a145a1.js"></script><script defer="defer" src="/static/module-material-ui.3c48b777.js"></script><script defer="defer" src="/static/module-lodash.c50623b1.js"></script><script defer="defer" src="/static/module-date-fns.bfd1b82f.js"></script><script defer="defer" src="/static/module-mui.c5efba64.js"></script><script defer="defer" src="/static/module-material-table.40a11f4e.js"></script><script defer="defer" src="/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer="defer" src="/static/module-parse5.94980036.js"></script><script defer="defer" src="/static/module-zod.c31bff05.js"></script><script defer="defer" src="/static/module-react-dom.c631e87d.js"></script><script defer="defer" src="/static/module-i18next.c154323c.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.6e061f96.js"></script><script defer="defer" src="/static/module-remix-run.d87774b0.js"></script><script defer="defer" src="/static/vendor.e4357869.js"></script><script defer="defer" src="/static/main.158546ef.js"></script><link href="/static/main.1ffe7072.css" rel="stylesheet"><script type="backstage.io/config">[
1
+ <!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="color-scheme" content="light dark"/><meta name="description" content="Backstage is an open source framework for building developer portals"/><link rel="manifest" href="/manifest.json" crossorigin="use-credentials"/><link rel="icon" href="/favicon.ico"/><link rel="shortcut icon" href="/favicon.ico"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"/><title>Techdocs Preview App</title><meta name="backstage-app-mode" content="public"><script defer="defer" src="/static/runtime.8a17bb78.js"></script><script defer="defer" src="/static/module-material-ui.3c48b777.js"></script><script defer="defer" src="/static/module-lodash.c50623b1.js"></script><script defer="defer" src="/static/module-date-fns.bfd1b82f.js"></script><script defer="defer" src="/static/module-mui.c5efba64.js"></script><script defer="defer" src="/static/module-material-table.40a11f4e.js"></script><script defer="defer" src="/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer="defer" src="/static/module-parse5.94980036.js"></script><script defer="defer" src="/static/module-zod.c31bff05.js"></script><script defer="defer" src="/static/module-react-dom.c631e87d.js"></script><script defer="defer" src="/static/module-i18next.c154323c.js"></script><script defer="defer" src="/static/module-react-beautiful-dnd.6e061f96.js"></script><script defer="defer" src="/static/module-remix-run.d87774b0.js"></script><script defer="defer" src="/static/vendor.e4357869.js"></script><script defer="defer" src="/static/main.5c38fdff.js"></script><link href="/static/main.1ffe7072.css" rel="stylesheet"><script type="backstage.io/config">[
2
2
  {
3
3
  "context": "app-config.yaml",
4
4
  "data": {
@@ -43,7 +43,7 @@
43
43
  color="#5bbad5"
44
44
  />
45
45
  <title><%= config.getString('app.title') %></title>
46
- <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.c6a145a1.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.3c48b777.js"></script><script defer src="<%= publicPath %>/static/module-lodash.c50623b1.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.bfd1b82f.js"></script><script defer src="<%= publicPath %>/static/module-mui.c5efba64.js"></script><script defer src="<%= publicPath %>/static/module-material-table.40a11f4e.js"></script><script defer src="<%= publicPath %>/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer src="<%= publicPath %>/static/module-parse5.94980036.js"></script><script defer src="<%= publicPath %>/static/module-zod.c31bff05.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.c631e87d.js"></script><script defer src="<%= publicPath %>/static/module-i18next.c154323c.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.6e061f96.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.d87774b0.js"></script><script defer src="<%= publicPath %>/static/vendor.e4357869.js"></script><script defer src="<%= publicPath %>/static/main.158546ef.js"></script><link href="<%= publicPath %>/static/main.1ffe7072.css" rel="stylesheet"></head>
46
+ <meta name="backstage-app-mode" content="public"><meta name="backstage-public-path" content="<%= publicPath %>/"><script defer src="<%= publicPath %>/static/runtime.8a17bb78.js"></script><script defer src="<%= publicPath %>/static/module-material-ui.3c48b777.js"></script><script defer src="<%= publicPath %>/static/module-lodash.c50623b1.js"></script><script defer src="<%= publicPath %>/static/module-date-fns.bfd1b82f.js"></script><script defer src="<%= publicPath %>/static/module-mui.c5efba64.js"></script><script defer src="<%= publicPath %>/static/module-material-table.40a11f4e.js"></script><script defer src="<%= publicPath %>/static/module-micromark-core-commonmark.909b7d4e.js"></script><script defer src="<%= publicPath %>/static/module-parse5.94980036.js"></script><script defer src="<%= publicPath %>/static/module-zod.c31bff05.js"></script><script defer src="<%= publicPath %>/static/module-react-dom.c631e87d.js"></script><script defer src="<%= publicPath %>/static/module-i18next.c154323c.js"></script><script defer src="<%= publicPath %>/static/module-react-beautiful-dnd.6e061f96.js"></script><script defer src="<%= publicPath %>/static/module-remix-run.d87774b0.js"></script><script defer src="<%= publicPath %>/static/vendor.e4357869.js"></script><script defer src="<%= publicPath %>/static/main.5c38fdff.js"></script><link href="<%= publicPath %>/static/main.1ffe7072.css" rel="stylesheet"></head>
47
47
  <body>
48
48
  <noscript>You need to enable JavaScript to run this app.</noscript>
49
49
  <div id="root"></div>
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["7174"],{25534(e,t,r){var n=r(4293),i=r(78920);t.default=void 0;var a=i(r(14041));t.default=(0,n(r(74044)).default)(a.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline")},93296(e,t,r){var n=r(14041),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,u=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var s="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return o(function(){i.value=r,i.getSnapshot=t,c(i)&&s({inst:i})},[e,r,t]),u(function(){return c(i)&&s({inst:i}),e(function(){c(i)&&s({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:s},58139(e,t,r){e.exports=r(93296)},22766(e,t,r){let n;r.d(t,{Ay:()=>Q});var i=r(14041),a=r(58139),u=Object.prototype.hasOwnProperty;let o=new WeakMap,l=()=>{},c=l(),s=Object,d=e=>e===c,f=(e,t)=>({...e,...t}),g={},p={},h="undefined",v=typeof window!=h,y=typeof document!=h,w=v&&"Deno"in window,b=(e,t)=>{let r=o.get(e);return[()=>!d(t)&&e.get(t)||g,n=>{if(!d(t)){let i=e.get(t);t in p||(p[t]=i),r[5](t,f(i,n),i||g)}},r[6],()=>!d(t)&&t in p?p[t]:!d(t)&&e.get(t)||g]},m=!0,[S,O]=v&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],E={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),O("focus",e)}),initReconnect:e=>{let t=()=>{m=!0,e()},r=()=>{m=!1};return S("online",t),S("offline",r),()=>{O("online",t),O("offline",r)}}},_=!i.useId,R=!v||w,k=R?i.useEffect:i.useLayoutEffect,L="u">typeof navigator&&navigator.connection,T=!R&&L&&(["slow-2g","2g"].includes(L.effectiveType)||L.saveData),V=new WeakMap,C=(e,t)=>e===`[object ${t}]`,D=0,j=e=>{let t,r,n=typeof e,i=s.prototype.toString.call(e),a=C(i,"Date"),u=C(i,"RegExp"),o=C(i,"Object");if(s(e)!==e||a||u)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=V.get(e))return t;if(t=++D+"~",V.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=j(e[r])+",";V.set(e,t)}if(o){t="#";let n=s.keys(e).sort();for(;!d(r=n.pop());)d(e[r])||(t+=r+":"+j(e[r])+",");V.set(e,t)}}return t},x=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},P=0,M=()=>++P;async function A(...e){let[t,r,n,i]=e,a=f({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),u=a.populateCache,l=a.rollbackOnError,s=a.optimisticData,g=a.throwOnError;if("function"==typeof r){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(p))}return p(r);async function p(r){let i,[f]=x(r);if(!f)return;let[p,h]=b(t,f),[v,y,w,m]=o.get(t),S=()=>{let e=v[f];return("function"==typeof a.revalidate?a.revalidate(p().data,r):!1!==a.revalidate)&&(delete w[f],delete m[f],e&&e[0])?e[0](2).then(()=>p().data):p().data};if(e.length<3)return S();let O=n,E=!1,_=M();y[f]=[_,0];let R=!d(s),k=p(),L=k.data,T=k._c,V=d(T)?L:T;if(R&&h({data:s="function"==typeof s?s(V,L):s,_c:V}),"function"==typeof O)try{O=O(V)}catch(e){i=e,E=!0}if(O&&"function"==typeof O.then){let e;if(O=await O.catch(e=>{i=e,E=!0}),_!==y[f][0]){if(E)throw i;return O}E&&R&&(e=i,"function"==typeof l?l(e):!1!==l)&&(u=!0,h({data:V,_c:c}))}if(u&&!E&&("function"==typeof u?h({data:u(O,V),error:c,_c:c}):h({data:O,error:c,_c:c})),y[f][1]=M(),Promise.resolve(S()).then(()=>{h({_c:c})}),E){if(g)throw i;return}return O}}let F=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},I=(e,t)=>{if(!o.has(e)){let r=f(E,t),n=Object.create(null),i=A.bind(c,e),a=l,u=Object.create(null),s=(e,t)=>{let r=u[e]||[];return u[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=u[t];if(i)for(let e of i)e(r,n)},g=()=>{if(!o.has(e)&&(o.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,d,s]),!R)){let t=r.initFocus(setTimeout.bind(c,F.bind(c,n,0))),i=r.initReconnect(setTimeout.bind(c,F.bind(c,n,1)));a=()=>{t&&t(),i&&i(),o.delete(e)}}};return g(),[e,i,g,a]}return[e,o.get(e)[4]]},[W,$]=I(new Map),z=f({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,u=i.retryCount,o=~~((Math.random()+.5)*(1<<(u<8?u:8)))*r.errorRetryInterval;(d(a)||!(u>a))&&setTimeout(n,o,i)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(u.call(t,n)&&++i&&!u.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:W,mutate:$,fallback:{}},{isOnline:()=>m,isVisible:()=>{let e=y&&document.visibilityState;return d(e)||"hidden"!==e}}),q=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:u}=t;n&&a&&(r.use=n.concat(a)),i&&u&&(r.fallback=f(i,u))}return r},J=(0,i.createContext)({}),N=v&&window.__SWR_DEVTOOLS_USE__,U=(N?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=x(t),[,,,i]=o.get(W);if(n.startsWith("$inf$"))return r(...e);let a=i[n];return d(a)?r(...e):(delete i[n],a)});return e(t,i,n)});N&&(window.__SWR_DEVTOOLS_REACT__=i);let H=()=>{},Y=H(),B=(new WeakMap,i.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),G={dedupe:!0},K=Promise.resolve(c);s.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)(J),n="function"==typeof t,a=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),u=(0,i.useMemo)(()=>n?a:q(r,a),[n,r,a]),o=a&&a.provider,l=(0,i.useRef)(c);o&&!l.current&&(l.current=I(o(u.cache||W),a));let s=l.current;return s&&(u.cache=s[0],u.mutate=s[1]),k(()=>{if(s)return s[2]&&s[2](),s[3]},[]),(0,i.createElement)(J.Provider,f(e,{value:u}))},"defaultValue",{value:z});let Q=(n=(e,t,r)=>{let{cache:n,compare:u,suspense:s,fallbackData:g,revalidateOnMount:p,revalidateIfStale:y,refreshInterval:w,refreshWhenHidden:m,refreshWhenOffline:S,keepPreviousData:O,strictServerPrefetchWarning:E}=r,[L,T,V,C]=o.get(n),[D,j]=x(e),P=(0,i.useRef)(!1),F=(0,i.useRef)(!1),I=(0,i.useRef)(D),W=(0,i.useRef)(t),$=(0,i.useRef)(r),z=()=>$.current.isVisible()&&$.current.isOnline(),[q,J,N,U]=b(n,D),H=(0,i.useRef)({}).current,Y=d(g)?d(r.fallback)?c:r.fallback[D]:g,Q=(e,t)=>{for(let r in H)if("data"===r){if(!u(e[r],t[r])&&(!d(e[r])||!u(eu,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},X=(0,i.useMemo)(()=>{let e=!!D&&!!t&&(d(p)?!$.current.isPaused()&&!s&&!1!==y:p),r=t=>{let r=f(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=q(),i=U(),a=r(n),u=n===i?a:r(i),o=a;return[()=>{let e=r(q());return Q(e,o)?(o.data=e.data,o.isLoading=e.isLoading,o.isValidating=e.isValidating,o.error=e.error,o):(o=e,e)},()=>u]},[n,D]),Z=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>N(D,(t,r)=>{Q(r,t)||e()}),[n,D]),X[0],X[1]),ee=!P.current,et=L[D]&&L[D].length>0,er=Z.data,en=d(er)?Y&&"function"==typeof Y.then?B(Y):Y:er,ei=Z.error,ea=(0,i.useRef)(en),eu=O?d(er)?d(ea.current)?en:ea.current:er:en,eo=D&&d(en),el=!R&&(0,a.useSyncExternalStore)(()=>l,()=>!1,()=>!0);E&&el&&!s&&eo&&console.warn(`Missing pre-initiated data for serialized key "${D}" during server-side rendering. Data fethcing should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ec=(!et||!!d(ei))&&(ee&&!d(p)?p:!$.current.isPaused()&&(s?!d(en)&&y:d(en)||y)),es=!!(D&&t&&ee&&ec),ed=d(Z.isValidating)?es:Z.isValidating,ef=d(Z.isLoading)?es:Z.isLoading,eg=(0,i.useCallback)(async e=>{let t,n,i=W.current;if(!D||!i||F.current||$.current.isPaused())return!1;let a=!0,o=e||{},l=!V[D]||!o.dedupe,s=()=>_?!F.current&&D===I.current&&P.current:D===I.current,f={isValidating:!1,isLoading:!1},g=()=>{J(f)},p=()=>{let e=V[D];e&&e[1]===n&&delete V[D]},h={isValidating:!0};d(q().data)&&(h.isLoading=!0);try{if(l&&(J(h),r.loadingTimeout&&d(q().data)&&setTimeout(()=>{a&&s()&&$.current.onLoadingSlow(D,r)},r.loadingTimeout),V[D]=[i(j),M()]),[t,n]=V[D],t=await t,l&&setTimeout(p,r.dedupingInterval),!V[D]||V[D][1]!==n)return l&&s()&&$.current.onDiscarded(D),!1;f.error=c;let e=T[D];if(!d(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return g(),l&&s()&&$.current.onDiscarded(D),!1;let o=q().data;f.data=u(o,t)?o:t,l&&s()&&$.current.onSuccess(t,D,r)}catch(r){p();let e=$.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,l&&s())&&(e.onError(r,D,e),(!0===t||"function"==typeof t&&t(r))&&(!$.current.revalidateOnFocus||!$.current.revalidateOnReconnect||z())&&e.onErrorRetry(r,D,e,e=>{let t=L[D];t&&t[0]&&t[0](3,e)},{retryCount:(o.retryCount||0)+1,dedupe:!0}))}return a=!1,g(),!0},[D,n]),ep=(0,i.useCallback)((...e)=>A(n,I.current,...e),[]);if(k(()=>{W.current=t,$.current=r,d(er)||(ea.current=er)}),k(()=>{var e;let t;if(!D)return;let r=eg.bind(c,G),n=0;$.current.revalidateOnFocus&&(n=Date.now()+$.current.focusThrottleInterval);let i=(e=(e,t={})=>{if(0==e){let e=Date.now();$.current.revalidateOnFocus&&e>n&&z()&&(n=e+$.current.focusThrottleInterval,r())}else if(1==e)$.current.revalidateOnReconnect&&z()&&r();else if(2==e)return eg();else if(3==e)return eg(t)},(t=L[D]||(L[D]=[])).push(e),()=>{let r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.pop())});if(F.current=!1,I.current=D,P.current=!0,J({_k:j}),ec&&!V[D])if(d(en)||R)r();else v&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(r):setTimeout(r,1);return()=>{F.current=!0,i()}},[D]),k(()=>{let e;function t(){let t="function"==typeof w?w(q().data):w;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!q().error&&(m||$.current.isVisible())&&(S||$.current.isOnline())?eg(G).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[w,m,S,D]),(0,i.useDebugValue)(eu),s){if(!_&&R&&eo)throw Error("Fallback data is required when using Suspense in SSR.");eo&&(W.current=t,$.current=r,F.current=!1);let e=C[D];if(B(!d(e)&&eo?ep(e):K),!d(ei)&&eo)throw ei;let n=eo?eg(G):K;!d(eu)&&eo&&(n.status="fulfilled",n.value=!0),B(n)}return{mutate:ep,get data(){return H.data=!0,eu},get error(){return H.error=!0,ei},get isValidating(){return H.isValidating=!0,ed},get isLoading(){return H.isLoading=!0,ef}}},function(...e){let t,r=(t=(0,i.useContext)(J),(0,i.useMemo)(()=>f(z,t),[t])),[a,u,o]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],l=q(r,o),c=n,{use:s}=l,d=(s||[]).concat(U);for(let e=d.length;e--;)c=d[e](c);return c(a,u||l.fetcher||null,l)})}}]);
2
- //# sourceMappingURL=7174.820ed772.chunk.js.map
1
+ "use strict";(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([["5495"],{25534(e,t,r){var n=r(4293),i=r(78920);t.default=void 0;var a=i(r(14041));t.default=(0,n(r(74044)).default)(a.createElement("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"AddCircleOutline")},93296(e,t,r){var n=r(14041),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,u=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var s="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return o(function(){i.value=r,i.getSnapshot=t,c(i)&&s({inst:i})},[e,r,t]),u(function(){return c(i)&&s({inst:i}),e(function(){c(i)&&s({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:s},58139(e,t,r){e.exports=r(93296)},39245(e,t,r){let n;r.d(t,{Ay:()=>X});var i=r(14041),a=r(58139),u=Object.prototype.hasOwnProperty;let o=new WeakMap,l=()=>{},c=l(),s=Object,d=e=>e===c,f=(e,t)=>({...e,...t}),g={},p={},h="undefined",v=typeof window!=h,y=typeof document!=h,w=v&&"Deno"in window,b=(e,t)=>{let r=o.get(e);return[()=>!d(t)&&e.get(t)||g,n=>{if(!d(t)){let i=e.get(t);t in p||(p[t]=i),r[5](t,f(i,n),i||g)}},r[6],()=>!d(t)&&t in p?p[t]:!d(t)&&e.get(t)||g]},m=!0,[S,O]=v&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],E={initFocus:e=>(y&&document.addEventListener("visibilitychange",e),S("focus",e),()=>{y&&document.removeEventListener("visibilitychange",e),O("focus",e)}),initReconnect:e=>{let t=()=>{m=!0,e()},r=()=>{m=!1};return S("online",t),S("offline",r),()=>{O("online",t),O("offline",r)}}},_=!i.useId,R=!v||w,k=R?i.useEffect:i.useLayoutEffect,L="u">typeof navigator&&navigator.connection,T=!R&&L&&(["slow-2g","2g"].includes(L.effectiveType)||L.saveData),V=new WeakMap,C=(e,t)=>e===`[object ${t}]`,D=0,j=e=>{let t,r,n=typeof e,i=s.prototype.toString.call(e),a=C(i,"Date"),u=C(i,"RegExp"),o=C(i,"Object");if(s(e)!==e||a||u)t=a?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=V.get(e))return t;if(t=++D+"~",V.set(e,t),Array.isArray(e)){for(r=0,t="@";r<e.length;r++)t+=j(e[r])+",";V.set(e,t)}if(o){t="#";let n=s.keys(e).sort();for(;!d(r=n.pop());)d(e[r])||(t+=r+":"+j(e[r])+",");V.set(e,t)}}return t},x=e=>{if("function"==typeof e)try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?j(e):"",t]},P=0,M=()=>++P;async function A(...e){let[t,r,n,i]=e,a=f({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),u=a.populateCache,l=a.rollbackOnError,s=a.optimisticData,g=a.throwOnError;if("function"==typeof r){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(p))}return p(r);async function p(r){let i,[f]=x(r);if(!f)return;let[p,h]=b(t,f),[v,y,w,m]=o.get(t),S=()=>{let e=v[f];return("function"==typeof a.revalidate?a.revalidate(p().data,r):!1!==a.revalidate)&&(delete w[f],delete m[f],e&&e[0])?e[0](2).then(()=>p().data):p().data};if(e.length<3)return S();let O=n,E=!1,_=M();y[f]=[_,0];let R=!d(s),k=p(),L=k.data,T=k._c,V=d(T)?L:T;if(R&&h({data:s="function"==typeof s?s(V,L):s,_c:V}),"function"==typeof O)try{O=O(V)}catch(e){i=e,E=!0}if(O&&"function"==typeof O.then){let e;if(O=await O.catch(e=>{i=e,E=!0}),_!==y[f][0]){if(E)throw i;return O}E&&R&&(e=i,"function"==typeof l?l(e):!1!==l)&&(u=!0,h({data:V,_c:c}))}if(u&&!E&&("function"==typeof u?h({data:u(O,V),error:c,_c:c}):h({data:O,error:c,_c:c})),y[f][1]=M(),Promise.resolve(S()).then(()=>{h({_c:c})}),E){if(g)throw i;return}return O}}let F=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},I=(e,t)=>{if(!o.has(e)){let r=f(E,t),n=Object.create(null),i=A.bind(c,e),a=l,u=Object.create(null),s=(e,t)=>{let r=u[e]||[];return u[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},d=(t,r,n)=>{e.set(t,r);let i=u[t];if(i)for(let e of i)e(r,n)},g=()=>{if(!o.has(e)&&(o.set(e,[n,Object.create(null),Object.create(null),Object.create(null),i,d,s]),!R)){let t=r.initFocus(setTimeout.bind(c,F.bind(c,n,0))),i=r.initReconnect(setTimeout.bind(c,F.bind(c,n,1)));a=()=>{t&&t(),i&&i(),o.delete(e)}}};return g(),[e,i,g,a]}return[e,o.get(e)[4]]},[W,$]=I(new Map),z=f({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(e,t,r,n,i)=>{let a=r.errorRetryCount,u=i.retryCount,o=~~((Math.random()+.5)*(1<<(u<8?u:8)))*r.errorRetryInterval;(d(a)||!(u>a))&&setTimeout(n,o,i)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:T?5e3:3e3,compare:function e(t,r){var n,i;if(t===r)return!0;if(t&&r&&(n=t.constructor)===r.constructor){if(n===Date)return t.getTime()===r.getTime();if(n===RegExp)return t.toString()===r.toString();if(n===Array){if((i=t.length)===r.length)for(;i--&&e(t[i],r[i]););return -1===i}if(!n||"object"==typeof t){for(n in i=0,t)if(u.call(t,n)&&++i&&!u.call(r,n)||!(n in r)||!e(t[n],r[n]))return!1;return Object.keys(r).length===i}}return t!=t&&r!=r},isPaused:()=>!1,cache:W,mutate:$,fallback:{}},{isOnline:()=>m,isVisible:()=>{let e=y&&document.visibilityState;return d(e)||"hidden"!==e}}),q=(e,t)=>{let r=f(e,t);if(t){let{use:n,fallback:i}=e,{use:a,fallback:u}=t;n&&a&&(r.use=n.concat(a)),i&&u&&(r.fallback=f(i,u))}return r},J=(0,i.createContext)({}),N=v&&window.__SWR_DEVTOOLS_USE__,U=(N?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,r,n)=>{let i=r&&((...e)=>{let[n]=x(t),[,,,i]=o.get(W);if(n.startsWith("$inf$"))return r(...e);let a=i[n];return d(a)?r(...e):(delete i[n],a)});return e(t,i,n)});N&&(window.__SWR_DEVTOOLS_REACT__=i);let H=()=>{},Y=H(),B=(new WeakMap,i.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}})),G={dedupe:!0},K=Promise.resolve(c),Q=()=>l;s.defineProperty(e=>{let{value:t}=e,r=(0,i.useContext)(J),n="function"==typeof t,a=(0,i.useMemo)(()=>n?t(r):t,[n,r,t]),u=(0,i.useMemo)(()=>n?a:q(r,a),[n,r,a]),o=a&&a.provider,l=(0,i.useRef)(c);o&&!l.current&&(l.current=I(o(u.cache||W),a));let s=l.current;return s&&(u.cache=s[0],u.mutate=s[1]),k(()=>{if(s)return s[2]&&s[2](),s[3]},[]),(0,i.createElement)(J.Provider,f(e,{value:u}))},"defaultValue",{value:z});let X=(n=(e,t,r)=>{let{cache:n,compare:u,suspense:l,fallbackData:s,revalidateOnMount:g,revalidateIfStale:p,refreshInterval:y,refreshWhenHidden:w,refreshWhenOffline:m,keepPreviousData:S,strictServerPrefetchWarning:O}=r,[E,L,T,V]=o.get(n),[C,D]=x(e),j=(0,i.useRef)(!1),P=(0,i.useRef)(!1),F=(0,i.useRef)(C),I=(0,i.useRef)(t),W=(0,i.useRef)(r),$=()=>W.current.isVisible()&&W.current.isOnline(),[z,q,J,N]=b(n,C),U=(0,i.useRef)({}).current,H=d(s)?d(r.fallback)?c:r.fallback[C]:s,Y=(e,t)=>{for(let r in U)if("data"===r){if(!u(e[r],t[r])&&(!d(e[r])||!u(eu,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},X=!j.current,Z=(0,i.useMemo)(()=>{let e=z(),r=N(),n=e=>{let r=f(e);return(delete r._k,(()=>{if(!C||!t||W.current.isPaused())return!1;if(X&&!d(g))return g;let e=d(H)?r.data:H;return d(e)||p})())?{isValidating:!0,isLoading:!0,...r}:r},i=n(e),a=e===r?i:n(r),u=i;return[()=>{let e=n(z());return Y(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>a]},[n,C]),ee=(0,a.useSyncExternalStore)((0,i.useCallback)(e=>J(C,(t,r)=>{Y(r,t)||e()}),[n,C]),Z[0],Z[1]),et=E[C]&&E[C].length>0,er=ee.data,en=d(er)?H&&"function"==typeof H.then?B(H):H:er,ei=ee.error,ea=(0,i.useRef)(en),eu=S?d(er)?d(ea.current)?en:ea.current:er:en,eo=C&&d(en),el=(0,i.useRef)(null);R||(0,a.useSyncExternalStore)(Q,()=>(el.current=!1,el),()=>(el.current=!0,el));let ec=el.current;O&&ec&&!l&&eo&&console.warn(`Missing pre-initiated data for serialized key "${C}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let es=!(!C||!t||W.current.isPaused())&&(!et||!!d(ei))&&(X&&!d(g)?g:l?!d(en)&&p:d(en)||p),ed=d(ee.isValidating)?es:ee.isValidating,ef=d(ee.isLoading)?es:ee.isLoading,eg=(0,i.useCallback)(async e=>{let t,n,i=I.current;if(!C||!i||P.current||W.current.isPaused())return!1;let a=!0,o=e||{},l=!T[C]||!o.dedupe,s=()=>_?!P.current&&C===F.current&&j.current:C===F.current,f={isValidating:!1,isLoading:!1},g=()=>{q(f)},p=()=>{let e=T[C];e&&e[1]===n&&delete T[C]},h={isValidating:!0};d(z().data)&&(h.isLoading=!0);try{if(l&&(q(h),r.loadingTimeout&&d(z().data)&&setTimeout(()=>{a&&s()&&W.current.onLoadingSlow(C,r)},r.loadingTimeout),T[C]=[i(D),M()]),[t,n]=T[C],t=await t,l&&setTimeout(p,r.dedupingInterval),!T[C]||T[C][1]!==n)return l&&s()&&W.current.onDiscarded(C),!1;f.error=c;let e=L[C];if(!d(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return g(),l&&s()&&W.current.onDiscarded(C),!1;let o=z().data;f.data=u(o,t)?o:t,l&&s()&&W.current.onSuccess(t,C,r)}catch(r){p();let e=W.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,l&&s())&&(e.onError(r,C,e),(!0===t||"function"==typeof t&&t(r))&&(!W.current.revalidateOnFocus||!W.current.revalidateOnReconnect||$())&&e.onErrorRetry(r,C,e,e=>{let t=E[C];t&&t[0]&&t[0](3,e)},{retryCount:(o.retryCount||0)+1,dedupe:!0}))}return a=!1,g(),!0},[C,n]),ep=(0,i.useCallback)((...e)=>A(n,F.current,...e),[]);if(k(()=>{I.current=t,W.current=r,d(er)||(ea.current=er)}),k(()=>{var e;let t;if(!C)return;let r=eg.bind(c,G),n=0;W.current.revalidateOnFocus&&(n=Date.now()+W.current.focusThrottleInterval);let i=(e=(e,t={})=>{if(0==e){let e=Date.now();W.current.revalidateOnFocus&&e>n&&$()&&(n=e+W.current.focusThrottleInterval,r())}else if(1==e)W.current.revalidateOnReconnect&&$()&&r();else if(2==e)return eg();else if(3==e)return eg(t)},(t=E[C]||(E[C]=[])).push(e),()=>{let r=t.indexOf(e);r>=0&&(t[r]=t[t.length-1],t.pop())});if(P.current=!1,F.current=C,j.current=!0,q({_k:D}),es&&!T[C])if(d(en)||R)r();else v&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(r):setTimeout(r,1);return()=>{P.current=!0,i()}},[C]),k(()=>{let e;function t(){let t="function"==typeof y?y(z().data):y;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!z().error&&(w||W.current.isVisible())&&(m||W.current.isOnline())?eg(G).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[y,w,m,C]),(0,i.useDebugValue)(eu),l){if(!_&&R&&eo)throw Error("Fallback data is required when using Suspense in SSR.");eo&&(I.current=t,W.current=r,P.current=!1);let e=V[C];if(B(!d(e)&&eo?ep(e):K),!d(ei)&&eo)throw ei;let n=eo?eg(G):K;!d(eu)&&eo&&(n.status="fulfilled",n.value=!0),B(n)}return{mutate:ep,get data(){return U.data=!0,eu},get error(){return U.error=!0,ei},get isValidating(){return U.isValidating=!0,ed},get isLoading(){return U.isLoading=!0,ef}}},function(...e){let t,r=(t=(0,i.useContext)(J),(0,i.useMemo)(()=>f(z,t),[t])),[a,u,o]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],l=q(r,o),c=n,{use:s}=l,d=(s||[]).concat(U);for(let e=d.length;e--;)c=d[e](c);return c(a,u||l.fetcher||null,l)})}}]);
2
+ //# sourceMappingURL=5495.2e93b457.chunk.js.map