@genesislcap/foundation-shell 14.226.0 → 14.226.2-alpha-bcda968.0

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.
@@ -1,5 +1,5 @@
1
1
  import type { StoreRoot } from '@genesislcap/foundation-store';
2
- import type { FoundationRoute, FoundationRouteCollection } from '@genesislcap/foundation-ui';
2
+ import type { FoundationAppContext, FoundationRoute, FoundationRouteCollection } from '@genesislcap/foundation-ui';
3
3
  import type { DesignSystemModule } from '@genesislcap/foundation-utils';
4
4
  import type { Behavior, ComposableStyles, HasElement, HasTitle, RepeatOptions, ViewTemplate } from '@genesislcap/web-core';
5
5
  /**
@@ -10,16 +10,7 @@ import type { Behavior, ComposableStyles, HasElement, HasTitle, RepeatOptions, V
10
10
  *
11
11
  * @public
12
12
  */
13
- export type AppContext = {
14
- env?: string;
15
- domain?: string;
16
- user?: {};
17
- answers?: {
18
- framework: string;
19
- [key: string]: any;
20
- };
21
- featureFlags?: {};
22
- };
13
+ export type AppContext = FoundationAppContext;
23
14
  /**
24
15
  * Context used during component registration.
25
16
  *
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/app/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAC7F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,QAAQ,EACR,aAAa,EACb,YAAY,EACb,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,EAAE,CAAC;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F;;GAEG;AACH,eAAO,MAAM,cAAc,UAAW,YAAY,WAAW,UAAU,YACE,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,8BAC3B,GAAG,aACA,qBAAqB,QAoBjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"pbc.d.ts","sourceRoot":"","sources":["../../../src/pbc/pbc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAKnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,SAAS,CAAC,CAU1D"}
1
+ {"version":3,"file":"pbc.d.ts","sourceRoot":"","sources":["../../../src/pbc/pbc.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAGnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,SAAS,CAAC,CAU1D"}
@@ -14,13 +14,13 @@ export declare const routes: AppRoute[];
14
14
  /**
15
15
  * @public
16
16
  */
17
- export declare const elements: AppElement[];
17
+ export declare const elements: AppElement<any, any, string>[];
18
18
  /**
19
19
  * @public
20
20
  */
21
- export declare const styles: AppStyle[];
21
+ export declare const styles: AppStyle<string>[];
22
22
  /**
23
23
  * @public
24
24
  */
25
- export declare const stores: AppStore[];
25
+ export declare const stores: AppStore<any>[];
26
26
  //# sourceMappingURL=exports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../src/pbc/vite/exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACT,MAAM,iBAAiB,CAAC;AAWzB;;GAEG;AACH,eAAO,MAAM,QAAQ,eAKpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,mBAKzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,YAKlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,cAKpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,YAKlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,YAKlB,CAAC"}
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../src/pbc/vite/exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACT,MAAM,iBAAiB,CAAC;AAWzB;;GAEG;AACH,eAAO,MAAM,QAAQ,eAKpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,mBAKzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,YAKlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,gCAKpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,oBAKlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,iBAKlB,CAAC"}
@@ -14,13 +14,13 @@ export declare const routes: AppRoute[];
14
14
  /**
15
15
  * @public
16
16
  */
17
- export declare const elements: AppElement[];
17
+ export declare const elements: AppElement<any, any, string>[];
18
18
  /**
19
19
  * @public
20
20
  */
21
- export declare const styles: AppStyle[];
21
+ export declare const styles: AppStyle<string>[];
22
22
  /**
23
23
  * @public
24
24
  */
25
- export declare const stores: AppStore[];
25
+ export declare const stores: AppStore<any>[];
26
26
  //# sourceMappingURL=exports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../src/pbc/webpack/exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACT,MAAM,iBAAiB,CAAC;AAWzB;;GAEG;AACH,eAAO,MAAM,QAAQ,eAMpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,mBAMzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,YAMlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,cAMpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,YAMlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,YAMlB,CAAC"}
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../../../../src/pbc/webpack/exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,WAAW,EACX,eAAe,EACf,QAAQ,EACR,QAAQ,EACR,QAAQ,EACT,MAAM,iBAAiB,CAAC;AAWzB;;GAEG;AACH,eAAO,MAAM,QAAQ,eAMpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,mBAMzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,YAMlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,gCAMpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,oBAMlB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,iBAMlB,CAAC"}
@@ -1,9 +1,3 @@
1
- declare global {
2
- interface NotificationOptions {
3
- renotify?: boolean;
4
- vibrate?: VibratePattern;
5
- }
6
- }
7
1
  /**
8
2
  * Message handling
9
3
  *
@@ -1 +1 @@
1
- {"version":3,"file":"serviceWorker.d.ts","sourceRoot":"","sources":["../../../src/serviceWorker/serviceWorker.ts"],"names":[],"mappings":"AAiBA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,mBAAmB;QAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,OAAO,CAAC,EAAE,cAAc,CAAC;KAC1B;CACF;AAgED;;;;GAIG;AACH,oBAAY,wBAAwB;IAClC,WAAW,gBAAgB;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,wBAAwB,CAAC;CAChC"}
1
+ {"version":3,"file":"serviceWorker.d.ts","sourceRoot":"","sources":["../../../src/serviceWorker/serviceWorker.ts"],"names":[],"mappings":"AA+EA;;;;GAIG;AACH,oBAAY,wBAAwB;IAClC,WAAW,gBAAgB;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,wBAAwB,CAAC;CAChC"}
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.48.0"
8
+ "packageVersion": "7.34.9"
9
9
  }
10
10
  ]
11
11
  }
@@ -1,4 +1,5 @@
1
1
  import { __awaiter } from "tslib";
2
+ import { BUILDER } from '@genesislcap/foundation-utils';
2
3
  import { logger } from '../utils';
3
4
  /**
4
5
  * A utility for importing PBC assets that have been added to the application's src/pbc directory via genx add.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.48.0",
4
+ "toolVersion": "7.34.9",
5
5
  "schemaVersion": 1011,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -667,8 +667,9 @@
667
667
  "text": "export type AppContext = "
668
668
  },
669
669
  {
670
- "kind": "Content",
671
- "text": "{\n env?: string;\n domain?: string;\n user?: {};\n answers?: {\n framework: string;\n [key: string]: any;\n };\n featureFlags?: {};\n}"
670
+ "kind": "Reference",
671
+ "text": "FoundationAppContext",
672
+ "canonicalReference": "@genesislcap/foundation-ui!FoundationAppContext:type"
672
673
  },
673
674
  {
674
675
  "kind": "Content",
@@ -2026,22 +2027,17 @@
2026
2027
  }
2027
2028
  },
2028
2029
  {
2029
- "kind": "Function",
2030
- "canonicalReference": "@genesislcap/foundation-shell!assetPredicate:function(1)",
2031
- "docComment": "/**\n * @public\n */\n",
2030
+ "kind": "TypeAlias",
2031
+ "canonicalReference": "@genesislcap/foundation-shell!AssetPredicate:type",
2032
+ "docComment": "/**\n * Asset runtime predicate function.\n *\n * @param context - {@link AppContext}.\n *\n * @public\n */\n",
2032
2033
  "excerptTokens": [
2033
2034
  {
2034
2035
  "kind": "Content",
2035
- "text": "assetPredicate: (asset: "
2036
- },
2037
- {
2038
- "kind": "Reference",
2039
- "text": "HasPredicate",
2040
- "canonicalReference": "@genesislcap/foundation-shell!HasPredicate:type"
2036
+ "text": "export type AssetPredicate = "
2041
2037
  },
2042
2038
  {
2043
2039
  "kind": "Content",
2044
- "text": ", context: "
2040
+ "text": "(context?: "
2045
2041
  },
2046
2042
  {
2047
2043
  "kind": "Reference",
@@ -2050,73 +2046,60 @@
2050
2046
  },
2051
2047
  {
2052
2048
  "kind": "Content",
2053
- "text": ") => "
2049
+ "text": ") => boolean"
2054
2050
  },
2055
2051
  {
2056
2052
  "kind": "Content",
2057
- "text": "boolean"
2053
+ "text": ";"
2058
2054
  }
2059
2055
  ],
2060
- "fileUrlPath": "src/app/utils.ts",
2061
- "returnTypeTokenRange": {
2062
- "startIndex": 5,
2063
- "endIndex": 6
2064
- },
2056
+ "fileUrlPath": "src/app/types.ts",
2065
2057
  "releaseTag": "Public",
2066
- "overloadIndex": 1,
2067
- "parameters": [
2068
- {
2069
- "parameterName": "asset",
2070
- "parameterTypeTokenRange": {
2071
- "startIndex": 1,
2072
- "endIndex": 2
2073
- },
2074
- "isOptional": false
2075
- },
2076
- {
2077
- "parameterName": "context",
2078
- "parameterTypeTokenRange": {
2079
- "startIndex": 3,
2080
- "endIndex": 4
2081
- },
2082
- "isOptional": false
2083
- }
2084
- ],
2085
- "name": "assetPredicate"
2058
+ "name": "AssetPredicate",
2059
+ "typeTokenRange": {
2060
+ "startIndex": 1,
2061
+ "endIndex": 4
2062
+ }
2086
2063
  },
2087
2064
  {
2088
- "kind": "TypeAlias",
2089
- "canonicalReference": "@genesislcap/foundation-shell!AssetPredicate:type",
2090
- "docComment": "/**\n * Asset runtime predicate function.\n *\n * @param context - {@link AppContext}.\n *\n * @public\n */\n",
2065
+ "kind": "Variable",
2066
+ "canonicalReference": "@genesislcap/foundation-shell!assetPredicate:var",
2067
+ "docComment": "/**\n * @public\n */\n",
2091
2068
  "excerptTokens": [
2092
2069
  {
2093
2070
  "kind": "Content",
2094
- "text": "export type AssetPredicate = "
2071
+ "text": "assetPredicate: "
2095
2072
  },
2096
2073
  {
2097
2074
  "kind": "Content",
2098
- "text": "(context?: "
2075
+ "text": "(asset: "
2099
2076
  },
2100
2077
  {
2101
2078
  "kind": "Reference",
2102
- "text": "AppContext",
2103
- "canonicalReference": "@genesislcap/foundation-shell!AppContext:type"
2079
+ "text": "HasPredicate",
2080
+ "canonicalReference": "@genesislcap/foundation-shell!HasPredicate:type"
2104
2081
  },
2105
2082
  {
2106
2083
  "kind": "Content",
2107
- "text": ") => boolean"
2084
+ "text": ", context: "
2085
+ },
2086
+ {
2087
+ "kind": "Reference",
2088
+ "text": "AppContext",
2089
+ "canonicalReference": "@genesislcap/foundation-shell!AppContext:type"
2108
2090
  },
2109
2091
  {
2110
2092
  "kind": "Content",
2111
- "text": ";"
2093
+ "text": ") => boolean"
2112
2094
  }
2113
2095
  ],
2114
- "fileUrlPath": "src/app/types.ts",
2096
+ "fileUrlPath": "src/app/utils.ts",
2097
+ "isReadonly": true,
2115
2098
  "releaseTag": "Public",
2116
- "name": "AssetPredicate",
2117
- "typeTokenRange": {
2099
+ "name": "assetPredicate",
2100
+ "variableTypeTokenRange": {
2118
2101
  "startIndex": 1,
2119
- "endIndex": 4
2102
+ "endIndex": 6
2120
2103
  }
2121
2104
  },
2122
2105
  {
@@ -3334,29 +3317,17 @@
3334
3317
  "name": "getApp"
3335
3318
  },
3336
3319
  {
3337
- "kind": "Function",
3338
- "canonicalReference": "@genesislcap/foundation-shell!getQualifiedModuleTokens:function(1)",
3320
+ "kind": "Variable",
3321
+ "canonicalReference": "@genesislcap/foundation-shell!getQualifiedModuleTokens:var",
3339
3322
  "docComment": "/**\n * @param module - An imported module.\n *\n * @param predicate - Token type predicate.\n *\n * @public\n */\n",
3340
3323
  "excerptTokens": [
3341
3324
  {
3342
3325
  "kind": "Content",
3343
- "text": "getQualifiedModuleTokens: <T extends "
3344
- },
3345
- {
3346
- "kind": "Content",
3347
- "text": "unknown"
3326
+ "text": "getQualifiedModuleTokens: "
3348
3327
  },
3349
3328
  {
3350
3329
  "kind": "Content",
3351
- "text": ">(module: "
3352
- },
3353
- {
3354
- "kind": "Content",
3355
- "text": "any"
3356
- },
3357
- {
3358
- "kind": "Content",
3359
- "text": ", predicate: "
3330
+ "text": "<T extends unknown>(module: any, predicate: "
3360
3331
  },
3361
3332
  {
3362
3333
  "kind": "Reference",
@@ -3365,52 +3336,17 @@
3365
3336
  },
3366
3337
  {
3367
3338
  "kind": "Content",
3368
- "text": ") => "
3369
- },
3370
- {
3371
- "kind": "Content",
3372
- "text": "T[]"
3339
+ "text": ") => T[]"
3373
3340
  }
3374
3341
  ],
3375
3342
  "fileUrlPath": "src/app/utils.ts",
3376
- "returnTypeTokenRange": {
3377
- "startIndex": 7,
3378
- "endIndex": 8
3379
- },
3343
+ "isReadonly": true,
3380
3344
  "releaseTag": "Public",
3381
- "overloadIndex": 1,
3382
- "parameters": [
3383
- {
3384
- "parameterName": "module",
3385
- "parameterTypeTokenRange": {
3386
- "startIndex": 3,
3387
- "endIndex": 4
3388
- },
3389
- "isOptional": false
3390
- },
3391
- {
3392
- "parameterName": "predicate",
3393
- "parameterTypeTokenRange": {
3394
- "startIndex": 5,
3395
- "endIndex": 6
3396
- },
3397
- "isOptional": false
3398
- }
3399
- ],
3400
- "typeParameters": [
3401
- {
3402
- "typeParameterName": "T",
3403
- "constraintTokenRange": {
3404
- "startIndex": 1,
3405
- "endIndex": 2
3406
- },
3407
- "defaultTypeTokenRange": {
3408
- "startIndex": 0,
3409
- "endIndex": 0
3410
- }
3411
- }
3412
- ],
3413
- "name": "getQualifiedModuleTokens"
3345
+ "name": "getQualifiedModuleTokens",
3346
+ "variableTypeTokenRange": {
3347
+ "startIndex": 1,
3348
+ "endIndex": 4
3349
+ }
3414
3350
  },
3415
3351
  {
3416
3352
  "kind": "TypeAlias",
@@ -4451,29 +4387,17 @@
4451
4387
  }
4452
4388
  },
4453
4389
  {
4454
- "kind": "Function",
4455
- "canonicalReference": "@genesislcap/foundation-shell!registrationPredicate:function(1)",
4390
+ "kind": "Variable",
4391
+ "canonicalReference": "@genesislcap/foundation-shell!registrationPredicate:var",
4456
4392
  "docComment": "/**\n * @public\n */\n",
4457
4393
  "excerptTokens": [
4458
4394
  {
4459
4395
  "kind": "Content",
4460
- "text": "registrationPredicate: <A, P>(asset: "
4461
- },
4462
- {
4463
- "kind": "Content",
4464
- "text": "A"
4465
- },
4466
- {
4467
- "kind": "Content",
4468
- "text": ", predicate: "
4396
+ "text": "registrationPredicate: "
4469
4397
  },
4470
4398
  {
4471
4399
  "kind": "Content",
4472
- "text": "P"
4473
- },
4474
- {
4475
- "kind": "Content",
4476
- "text": ", context: "
4400
+ "text": "<A, P>(asset: A, predicate: P, context: "
4477
4401
  },
4478
4402
  {
4479
4403
  "kind": "Reference",
@@ -4482,80 +4406,30 @@
4482
4406
  },
4483
4407
  {
4484
4408
  "kind": "Content",
4485
- "text": ") => "
4486
- },
4487
- {
4488
- "kind": "Content",
4489
- "text": "boolean"
4409
+ "text": ") => boolean"
4490
4410
  }
4491
4411
  ],
4492
4412
  "fileUrlPath": "src/app/utils.ts",
4493
- "returnTypeTokenRange": {
4494
- "startIndex": 7,
4495
- "endIndex": 8
4496
- },
4413
+ "isReadonly": true,
4497
4414
  "releaseTag": "Public",
4498
- "overloadIndex": 1,
4499
- "parameters": [
4500
- {
4501
- "parameterName": "asset",
4502
- "parameterTypeTokenRange": {
4503
- "startIndex": 1,
4504
- "endIndex": 2
4505
- },
4506
- "isOptional": false
4507
- },
4508
- {
4509
- "parameterName": "predicate",
4510
- "parameterTypeTokenRange": {
4511
- "startIndex": 3,
4512
- "endIndex": 4
4513
- },
4514
- "isOptional": false
4515
- },
4516
- {
4517
- "parameterName": "context",
4518
- "parameterTypeTokenRange": {
4519
- "startIndex": 5,
4520
- "endIndex": 6
4521
- },
4522
- "isOptional": false
4523
- }
4524
- ],
4525
- "typeParameters": [
4526
- {
4527
- "typeParameterName": "A",
4528
- "constraintTokenRange": {
4529
- "startIndex": 0,
4530
- "endIndex": 0
4531
- },
4532
- "defaultTypeTokenRange": {
4533
- "startIndex": 0,
4534
- "endIndex": 0
4535
- }
4536
- },
4537
- {
4538
- "typeParameterName": "P",
4539
- "constraintTokenRange": {
4540
- "startIndex": 0,
4541
- "endIndex": 0
4542
- },
4543
- "defaultTypeTokenRange": {
4544
- "startIndex": 0,
4545
- "endIndex": 0
4546
- }
4547
- }
4548
- ],
4549
- "name": "registrationPredicate"
4415
+ "name": "registrationPredicate",
4416
+ "variableTypeTokenRange": {
4417
+ "startIndex": 1,
4418
+ "endIndex": 4
4419
+ }
4550
4420
  },
4551
4421
  {
4552
- "kind": "Function",
4553
- "canonicalReference": "@genesislcap/foundation-shell!targetIdPredicate:function(1)",
4422
+ "kind": "Variable",
4423
+ "canonicalReference": "@genesislcap/foundation-shell!targetIdPredicate:var",
4554
4424
  "docComment": "/**\n * @public\n */\n",
4555
4425
  "excerptTokens": [
4556
4426
  {
4557
4427
  "kind": "Content",
4558
- "text": "targetIdPredicate: (asset: "
4428
+ "text": "targetIdPredicate: "
4429
+ },
4430
+ {
4431
+ "kind": "Content",
4432
+ "text": "(asset: "
4559
4433
  },
4560
4434
  {
4561
4435
  "kind": "Reference",
@@ -4573,39 +4447,17 @@
4573
4447
  },
4574
4448
  {
4575
4449
  "kind": "Content",
4576
- "text": ") => "
4577
- },
4578
- {
4579
- "kind": "Content",
4580
- "text": "boolean"
4450
+ "text": ") => boolean"
4581
4451
  }
4582
4452
  ],
4583
4453
  "fileUrlPath": "src/app/utils.ts",
4584
- "returnTypeTokenRange": {
4585
- "startIndex": 5,
4586
- "endIndex": 6
4587
- },
4454
+ "isReadonly": true,
4588
4455
  "releaseTag": "Public",
4589
- "overloadIndex": 1,
4590
- "parameters": [
4591
- {
4592
- "parameterName": "asset",
4593
- "parameterTypeTokenRange": {
4594
- "startIndex": 1,
4595
- "endIndex": 2
4596
- },
4597
- "isOptional": false
4598
- },
4599
- {
4600
- "parameterName": "targetId",
4601
- "parameterTypeTokenRange": {
4602
- "startIndex": 3,
4603
- "endIndex": 4
4604
- },
4605
- "isOptional": false
4606
- }
4607
- ],
4608
- "name": "targetIdPredicate"
4456
+ "name": "targetIdPredicate",
4457
+ "variableTypeTokenRange": {
4458
+ "startIndex": 1,
4459
+ "endIndex": 6
4460
+ }
4609
4461
  }
4610
4462
  ]
4611
4463
  }
@@ -3,6 +3,7 @@ import { ComposableStyles } from '@genesislcap/web-core';
3
3
  import type { DesignSystemModule } from '@genesislcap/foundation-utils';
4
4
  import { ElementStyles } from '@genesislcap/web-core';
5
5
  import { FASTElement } from '@genesislcap/web-core';
6
+ import type { FoundationAppContext } from '@genesislcap/foundation-ui';
6
7
  import type { FoundationRoute } from '@genesislcap/foundation-ui';
7
8
  import type { FoundationRouteCollection } from '@genesislcap/foundation-ui';
8
9
  import type { HasElement } from '@genesislcap/web-core';
@@ -153,16 +154,7 @@ export declare const AppConfig: InterfaceSymbol<AppConfig>;
153
154
  *
154
155
  * @public
155
156
  */
156
- export declare type AppContext = {
157
- env?: string;
158
- domain?: string;
159
- user?: {};
160
- answers?: {
161
- framework: string;
162
- [key: string]: any;
163
- };
164
- featureFlags?: {};
165
- };
157
+ export declare type AppContext = FoundationAppContext;
166
158
 
167
159
  /**
168
160
  * A record of app dependencies.
package/dist/index.html CHANGED
@@ -16,7 +16,7 @@
16
16
  visibility: hidden;
17
17
  }
18
18
  </style>
19
- <script defer src="/npm.microsoft.2b4627a0e71ac31258b5.js"></script><script defer src="/npm.consola.e1392c750470ff16d0ad.js"></script><script defer src="/main.fe4e5011b19da05ecbb8.js"></script><script defer src="/swRegistration.6c147e22477e9a69d536.js"></script><link rel="manifest" href="/manifest.a631028cd4532aac9bb58674c9048651.json" crossorigin="use-credentials" /><link rel="mask-icon" href="/icon_512x512.5c035540edea453294160c87b69d6efc.svg" /></head>
19
+ <base href="/"><script defer src="/npm.microsoft.2b4627a0e71ac31258b5.js"></script><script defer src="/npm.consola.e1392c750470ff16d0ad.js"></script><script defer src="/main.fe4e5011b19da05ecbb8.js"></script><script defer src="/swRegistration.6c147e22477e9a69d536.js"></script><link rel="manifest" href="/manifest.a631028cd4532aac9bb58674c9048651.json" crossorigin="use-credentials" /><link rel="mask-icon" href="/icon_512x512.5c035540edea453294160c87b69d6efc.svg" /></head>
20
20
  <body>
21
21
  <foundation-shell></foundation-shell>
22
22
  </body>
package/dist/sw.js CHANGED
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e={733:()=>{try{self["workbox:cacheable-response:6.5.4"]&&_()}catch(e){}},114:()=>{try{self["workbox:core:6.5.4"]&&_()}catch(e){}},876:()=>{try{self["workbox:expiration:6.5.4"]&&_()}catch(e){}},665:()=>{try{self["workbox:precaching:6.5.4"]&&_()}catch(e){}},205:()=>{try{self["workbox:routing:6.5.4"]&&_()}catch(e){}},484:()=>{try{self["workbox:strategies:6.5.4"]&&_()}catch(e){}}},t={};function s(n){var a=t[n];if(void 0!==a){if(void 0!==a.error)throw a.error;return a.exports}var r=t[n]={exports:{}},i=!0;try{e[n](r,r.exports,s),i=!1}finally{i&&delete t[n]}return r.exports}(()=>{function e(e,t,s,n){return new(s||(s=Promise))((function(a,r){function i(e){try{c(n.next(e))}catch(e){r(e)}}function o(e){try{c(n.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(i,o)}c((n=n.apply(e,t||[])).next())}))}s(114);const t=(e,...t)=>{let s=e;return t.length>0&&(s+=` :: ${JSON.stringify(t)}`),s};class n extends Error{constructor(e,s){super(t(e,s)),this.name=e,this.details=s}}const a=e=>new URL(String(e),location.href).href.replace(new RegExp(`^${location.origin}`),"");s(733);class r{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some((t=>e.headers.get(t)===this._headers[t]))),t}}class i{constructor(e){this.cacheWillUpdate=async({response:e})=>this._cacheableResponse.isResponseCacheable(e)?e:null,this._cacheableResponse=new r(e)}}const o=new Set;const c={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},h=e=>[c.prefix,e,c.suffix].filter((e=>e&&e.length>0)).join("-"),l=e=>e||h(c.precache),u=e=>e||h(c.runtime);function d(e,t){const s=new URL(e);for(const e of t)s.searchParams.delete(e);return s.href}let f;function p(e){e.then((()=>{}))}class g{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}function w(e){return new Promise((t=>setTimeout(t,e)))}function m(e,t){const s=t();return e.waitUntil(s),s}async function y(e,t){let s=null;if(e.url){s=new URL(e.url).origin}if(s!==self.location.origin)throw new n("cross-origin-copy-response",{origin:s});const a=e.clone(),r={headers:new Headers(a.headers),status:a.status,statusText:a.statusText},i=t?t(r):r,o=function(){if(void 0===f){const e=new Response("");if("body"in e)try{new Response(e.body),f=!0}catch(e){f=!1}f=!1}return f}()?a.body:await a.blob();return new Response(o,i)}const _=(e,t)=>t.some((t=>e instanceof t));let v,b;const R=new WeakMap,x=new WeakMap,C=new WeakMap,E=new WeakMap,q=new WeakMap;let L={get(e,t,s){if(e instanceof IDBTransaction){if("done"===t)return x.get(e);if("objectStoreNames"===t)return e.objectStoreNames||C.get(e);if("store"===t)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return T(e[t])},set:(e,t,s)=>(e[t]=s,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function k(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(b||(b=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(D(this),t),T(R.get(this))}:function(...t){return T(e.apply(D(this),t))}:function(t,...s){const n=e.call(D(this),t,...s);return C.set(n,t.sort?t.sort():[t]),T(n)}}function U(e){return"function"==typeof e?k(e):(e instanceof IDBTransaction&&function(e){if(x.has(e))return;const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",r),e.removeEventListener("abort",r)},a=()=>{t(),n()},r=()=>{s(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",r),e.addEventListener("abort",r)}));x.set(e,t)}(e),_(e,v||(v=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,L):e)}function T(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",r)},a=()=>{t(T(e.result)),n()},r=()=>{s(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",r)}));return t.then((t=>{t instanceof IDBCursor&&R.set(t,e)})).catch((()=>{})),q.set(t,e),t}(e);if(E.has(e))return E.get(e);const t=U(e);return t!==e&&(E.set(e,t),q.set(t,e)),t}const D=e=>q.get(e);const N=["get","getKey","getAll","getAllKeys","count"],P=["put","add","delete","clear"],M=new Map;function I(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(M.get(t))return M.get(t);const s=t.replace(/FromIndex$/,""),n=t!==s,a=P.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!N.includes(s))return;const r=async function(e,...t){const r=this.transaction(e,a?"readwrite":"readonly");let i=r.store;return n&&(i=i.index(t.shift())),(await Promise.all([i[s](...t),a&&r.done]))[0]};return M.set(t,r),r}L=(e=>({...e,get:(t,s,n)=>I(t,s)||e.get(t,s,n),has:(t,s)=>!!I(t,s)||e.has(t,s)}))(L);s(876);const S="cache-entries",K=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class O{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(S,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e,{blocked:t}={}){const s=indexedDB.deleteDatabase(e);t&&s.addEventListener("blocked",(e=>t(e.oldVersion,e))),T(s).then((()=>{}))}(this._cacheName)}async setTimestamp(e,t){const s={url:e=K(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(S,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(e){const t=await this.getDb(),s=await t.get(S,this._getId(e));return null==s?void 0:s.timestamp}async expireEntries(e,t){const s=await this.getDb();let n=await s.transaction(S).store.index("timestamp").openCursor(null,"prev");const a=[];let r=0;for(;n;){const s=n.value;s.cacheName===this._cacheName&&(e&&s.timestamp<e||t&&r>=t?a.push(n.value):r++),n=await n.continue()}const i=[];for(const e of a)await s.delete(S,e.id),i.push(e.url);return i}_getId(e){return this._cacheName+"|"+K(e)}async getDb(){return this._db||(this._db=await function(e,t,{blocked:s,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(e,t),o=T(i);return n&&i.addEventListener("upgradeneeded",(e=>{n(T(i.result),e.oldVersion,e.newVersion,T(i.transaction),e)})),s&&i.addEventListener("blocked",(e=>s(e.oldVersion,e.newVersion,e))),o.then((e=>{r&&e.addEventListener("close",(()=>r())),a&&e.addEventListener("versionchange",(e=>a(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class W{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new O(e)}async expireEntries(){if(this._isRunning)return void(this._rerunRequested=!0);this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),s=await self.caches.open(this._cacheName);for(const e of t)await s.delete(e,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,p(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),s=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||t<s}return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}s(665);function A(e){if(!e)throw new n("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:t,url:s}=e;if(!s)throw new n("add-to-cache-list-unexpected-type",{entry:e});if(!t){const e=new URL(s,location.href);return{cacheKey:e.href,url:e.href}}const a=new URL(s,location.href),r=new URL(s,location.href);return a.searchParams.set("__WB_REVISION__",t),{cacheKey:a.href,url:r.href}}class j{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if("install"===e.type&&t&&t.originalRequest&&t.originalRequest instanceof Request){const e=t.originalRequest.url;s?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return s}}}class B{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{const s=(null==t?void 0:t.cacheKey)||this._precacheController.getCacheKeyForURL(e.url);return s?new Request(s,{headers:e.headers}):e},this._precacheController=e}}s(484);function H(e){return"string"==typeof e?new Request(e):e}class F{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new g,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let s=H(e);if("navigate"===s.mode&&t instanceof FetchEvent&&t.preloadResponse){const e=await t.preloadResponse;if(e)return e}const a=this.hasCallback("fetchDidFail")?s.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))s=await e({request:s.clone(),event:t})}catch(e){if(e instanceof Error)throw new n("plugin-error-request-will-fetch",{thrownErrorMessage:e.message})}const r=s.clone();try{let e;e=await fetch(s,"navigate"===s.mode?void 0:this._strategy.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))e=await s({event:t,request:r,response:e});return e}catch(e){throw a&&await this.runCallbacks("fetchDidFail",{error:e,event:t,originalRequest:a.clone(),request:r.clone()}),e}}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}async cacheMatch(e){const t=H(e);let s;const{cacheName:n,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),i=Object.assign(Object.assign({},a),{cacheName:n});s=await caches.match(r,i);for(const e of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await e({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(e,t){const s=H(e);await w(0);const r=await this.getCacheKey(s,"write");if(!t)throw new n("cache-put-with-no-response",{url:a(r.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:c,matchOptions:h}=this._strategy,l=await self.caches.open(c),u=this.hasCallback("cacheDidUpdate"),f=u?await async function(e,t,s,n){const a=d(t.url,s);if(t.url===a)return e.match(t,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await e.keys(t,r);for(const t of i)if(a===d(t.url,s))return e.match(t,n)}(l,r.clone(),["__WB_REVISION__"],h):null;try{await l.put(r,u?i.clone():i)}catch(e){if(e instanceof Error)throw"QuotaExceededError"===e.name&&await async function(){for(const e of o)await e()}(),e}for(const e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:c,oldResponse:f,newResponse:i.clone(),request:r,event:this.event});return!0}async getCacheKey(e,t){const s=`${e.url} | ${t}`;if(!this._cacheKeys[s]){let n=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))n=H(await e({mode:t,request:n,event:this.event,params:this.params}));this._cacheKeys[s]=n}return this._cacheKeys[s]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"==typeof t[e]){const s=this._pluginStateMap.get(t),n=n=>{const a=Object.assign(Object.assign({},n),{state:s});return t[e](a)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}class V{constructor(e={}){this.cacheName=u(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,s="string"==typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new F(this,{event:t,request:s,params:n}),r=this._getResponse(a,s,t);return[r,this._awaitComplete(r,a,s,t)]}async _getResponse(e,t,s){let a;await e.runCallbacks("handlerWillStart",{event:s,request:t});try{if(a=await this._handle(t,e),!a||"error"===a.type)throw new n("no-response",{url:t.url})}catch(n){if(n instanceof Error)for(const r of e.iterateCallbacks("handlerDidError"))if(a=await r({error:n,event:s,request:t}),a)break;if(!a)throw n}for(const n of e.iterateCallbacks("handlerWillRespond"))a=await n({event:s,request:t,response:a});return a}async _awaitComplete(e,t,s,n){let a,r;try{a=await e}catch(r){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:a}),await t.doneWaiting()}catch(e){e instanceof Error&&(r=e)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}class $ extends V{constructor(e={}){e.cacheName=l(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push($.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let s;const a=t.params||{};if(!this._fallbackToNetwork)throw new n("missing-precache-entry",{cacheName:this.cacheName,url:e.url});{0;const n=a.integrity,r=e.integrity,i=!r||r===n;if(s=await t.fetch(new Request(e,{integrity:"no-cors"!==e.mode?r||n:void 0})),n&&i&&"no-cors"!==e.mode){this._useDefaultCacheabilityPluginIfNeeded();await t.cachePut(e,s.clone());0}}return s}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const s=await t.fetch(e);if(!await t.cachePut(e,s.clone()))throw new n("bad-precaching-response",{url:e.url,status:s.status});return s}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[s,n]of this.plugins.entries())n!==$.copyRedirectedCacheableResponsesPlugin&&(n===$.defaultPrecacheCacheabilityPlugin&&(e=s),n.cacheWillUpdate&&t++);0===t?this.plugins.push($.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}$.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:e})=>!e||e.status>=400?null:e},$.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:e})=>e.redirected?await y(e):e};class Q{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new $({cacheName:l(e),plugins:[...t,new B({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const s of e){"string"==typeof s?t.push(s):s&&void 0===s.revision&&t.push(s.url);const{cacheKey:e,url:a}=A(s),r="string"!=typeof s&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==e)throw new n("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:e});if("string"!=typeof s&&s.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==s.integrity)throw new n("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(e,s.integrity)}if(this._urlsToCacheKeys.set(a,e),this._urlsToCacheModes.set(a,r),t.length>0){const e=`Workbox is precaching URLs without revision info: ${t.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return m(e,(async()=>{const t=new j;this.strategy.plugins.push(t);for(const[t,s]of this._urlsToCacheKeys){const n=this._cacheKeysToIntegrities.get(s),a=this._urlsToCacheModes.get(t),r=new Request(t,{integrity:n,cache:a,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(e){return m(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),n=[];for(const a of t)s.has(a.url)||(await e.delete(a),n.push(a.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new n("non-precached-url",{url:e});return s=>(s.request=new Request(e),s.params=Object.assign({cacheKey:t},s.params),this.strategy.handle(s))}}let Y;const G=()=>(Y||(Y=new Q),Y);s(205);const J=e=>e&&"object"==typeof e?e:{handle:e};class Z{constructor(e,t,s="GET"){this.handler=J(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=J(e)}}class z extends Z{constructor(e,t,s){super((({url:t})=>{const s=e.exec(t.href);if(s&&(t.origin===location.origin||0===s.index))return s.slice(1)}),t,s)}}class X{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const s=Promise.all(t.urlsToCache.map((t=>{"string"==typeof t&&(t=[t]);const s=new Request(...t);return this.handleRequest({request:s,event:e})})));e.waitUntil(s),e.ports&&e.ports[0]&&s.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest({request:e,event:t}){const s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return void 0;const n=s.origin===location.origin,{params:a,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:n,url:s});let i=r&&r.handler;const o=e.method;if(!i&&this._defaultHandlerMap.has(o)&&(i=this._defaultHandlerMap.get(o)),!i)return void 0;let c;try{c=i.handle({url:s,request:e,event:t,params:a})}catch(e){c=Promise.reject(e)}const h=r&&r.catchHandler;return c instanceof Promise&&(this._catchHandler||h)&&(c=c.catch((async n=>{if(h){0;try{return await h.handle({url:s,request:e,event:t,params:a})}catch(e){e instanceof Error&&(n=e)}}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw n}))),c}findMatchingRoute({url:e,sameOrigin:t,request:s,event:n}){const a=this._routes.get(s.method)||[];for(const r of a){let a;const i=r.match({url:e,sameOrigin:t,request:s,event:n});if(i)return a=i,(Array.isArray(a)&&0===a.length||i.constructor===Object&&0===Object.keys(i).length||"boolean"==typeof i)&&(a=void 0),{route:r,params:a}}return{}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,J(e))}setCatchHandler(e){this._catchHandler=J(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new n("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new n("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}let ee;const te=()=>(ee||(ee=new X,ee.addFetchListener(),ee.addCacheListener()),ee);function se(e,t,s){let a;if("string"==typeof e){const n=new URL(e,location.href);0;a=new Z((({url:e})=>e.href===n.href),t,s)}else if(e instanceof RegExp)a=new z(e,t,s);else if("function"==typeof e)a=new Z(e,t,s);else{if(!(e instanceof Z))throw new n("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=e}return te().registerRoute(a),a}class ne extends Z{constructor(e,t){super((({request:s})=>{const n=e.getURLsToCacheKeys();for(const a of function*(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e,t=[]){for(const s of[...e.searchParams.keys()])t.some((e=>e.test(s)))&&e.searchParams.delete(s);return e}(r,t);if(yield i.href,s&&i.pathname.endsWith("/")){const e=new URL(i.href);e.pathname+=s,yield e.href}if(n){const e=new URL(i.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:r});for(const t of e)yield t.href}}(s.url,t)){const t=n.get(a);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}}),e.strategy)}}const ae={cacheWillUpdate:async({response:e})=>200===e.status||0===e.status?e:null};var re,ie;console.log("Hello from sw.js v0.0.1"),self.addEventListener("activate",(()=>self.clients.claim())),function(e){G().precache(e)}([{'revision':'5c035540edea453294160c87b69d6efc','url':'/assets/icon.svg'},{'revision':'968c9b1e3aec8f497ac498d6ee3ff3ae','url':'/dts/app/app.d.ts'},{'revision':'078b6a5c77374f3e6010259f49de61c3','url':'/dts/app/behaviors.d.ts'},{'revision':'75ba0437a002fa52f35a11c6e031fb83','url':'/dts/app/config.d.ts'},{'revision':'15fd8d96dc0bb0147a927cd655991d61','url':'/dts/app/index.d.ts'},{'revision':'cec57cbbee9f1d99e4db496de3d6e722','url':'/dts/app/types.d.ts'},{'revision':'fab333a799c73864a775733433c0fe3d','url':'/dts/app/utils.d.ts'},{'revision':'d8c2f99b493635c8c25ff0a01b297da5','url':'/dts/index.d.ts'},{'revision':'2057a4ce7f492309ceb05c78e1abf2f8','url':'/dts/index.docs.d.ts'},{'revision':'5d05b2cca398071e8b7bd80f8a37ff80','url':'/dts/main/index.d.ts'},{'revision':'127ad4e70d39a7beb238977a6ad7790c','url':'/dts/main/main.d.ts'},{'revision':'5ce23c1e29e802698be958444fcac33a','url':'/dts/main/main.styles.d.ts'},{'revision':'5a9c7f1e56b35773b19ea8fc6fd779d1','url':'/dts/main/main.template.d.ts'},{'revision':'a4a585ff72bb0a204cfe49b476bd9b80','url':'/dts/pbc/index.d.ts'},{'revision':'36878d18600216555e06ab792adc10eb','url':'/dts/pbc/pbc.d.ts'},{'revision':'ddd7a8ed096a3139c726dc3a1c606f78','url':'/dts/pbc/vite/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/vite/index.d.ts'},{'revision':'e372dabcf39748888ec80c9849ba7265','url':'/dts/pbc/vite/utils.d.ts'},{'revision':'ddd7a8ed096a3139c726dc3a1c606f78','url':'/dts/pbc/webpack/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/webpack/index.d.ts'},{'revision':'8979ecaa984fead1c6adea7bd8fd941f','url':'/dts/pbc/webpack/utils.d.ts'},{'revision':'1d6bffdf6619ff38e64181ac26bf4297','url':'/dts/serviceWorker/registration.d.ts'},{'revision':'7557f8dcc4acaa80d9af7ed2e62b8233','url':'/dts/serviceWorker/serviceWorker.d.ts'},{'revision':'65230a59ca53b222394cb29719af898c','url':'/dts/utils/index.d.ts'},{'revision':'dc36fe29c255f4306be90d0f53681e24','url':'/dts/utils/logger.d.ts'},{'revision':'d4f850463f4df51860be6f46b599e7ce','url':'/favicon.ico'},{'revision':'fc823c15fb9d650f5d1c8f5a81710185','url':'/index.html'},{'revision':null,'url':'/main.fe4e5011b19da05ecbb8.js'},{'revision':null,'url':'/npm.consola.e1392c750470ff16d0ad.js'},{'revision':null,'url':'/npm.microsoft.2b4627a0e71ac31258b5.js'},{'revision':null,'url':'/swRegistration.6c147e22477e9a69d536.js'}]||[]),function(e){const t=G();se(new ne(t,e))}(re),se((({request:e})=>"navigate"===e.mode),new class extends V{constructor(e={}){super(e),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(ae),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){const s=[];const a=[];let r;if(this._networkTimeoutSeconds){const{id:n,promise:i}=this._getTimeoutPromise({request:e,logs:s,handler:t});r=n,a.push(i)}const i=this._getNetworkPromise({timeoutId:r,request:e,logs:s,handler:t});a.push(i);const o=await t.waitUntil((async()=>await t.waitUntil(Promise.race(a))||await i)());if(!o)throw new n("no-response",{url:e.url});return o}_getTimeoutPromise({request:e,logs:t,handler:s}){let n;return{promise:new Promise((t=>{n=setTimeout((async()=>{t(await s.cacheMatch(e))}),1e3*this._networkTimeoutSeconds)})),id:n}}async _getNetworkPromise({timeoutId:e,request:t,logs:s,handler:n}){let a,r;try{r=await n.fetchAndCachePut(t)}catch(e){e instanceof Error&&(a=e)}return e&&clearTimeout(e),!a&&r||(r=await n.cacheMatch(t)),r}}({cacheName:"pages",plugins:[new i({statuses:[200]})]})),se((({request:e})=>"style"===e.destination||"script"===e.destination||"worker"===e.destination),new class extends V{constructor(e={}){super(e),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(ae)}async _handle(e,t){const s=t.fetchAndCachePut(e).catch((()=>{}));t.waitUntil(s);let a,r=await t.cacheMatch(e);if(r)0;else{0;try{r=await s}catch(e){e instanceof Error&&(a=e)}}if(!r)throw new n("no-response",{url:e.url,error:a});return r}}({cacheName:"assets",plugins:[new i({statuses:[200]})]})),se((({request:e})=>"image"===e.destination),new class extends V{async _handle(e,t){let s,a=await t.cacheMatch(e);if(a)0;else{0;try{a=await t.fetchAndCachePut(e)}catch(e){e instanceof Error&&(s=e)}0}if(!a)throw new n("no-response",{url:e.url,error:s});return a}}({cacheName:"images",plugins:[new i({statuses:[200]}),new class{constructor(e={}){this.cachedResponseWillBeUsed=async({event:e,request:t,cacheName:s,cachedResponse:n})=>{if(!n)return null;const a=this._isResponseDateFresh(n),r=this._getCacheExpiration(s);p(r.expireEntries());const i=r.updateTimestamp(t.url);if(e)try{e.waitUntil(i)}catch(e){0}return a?n:null},this.cacheDidUpdate=async({cacheName:e,request:t})=>{const s=this._getCacheExpiration(e);await s.updateTimestamp(t.url),await s.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&function(e){o.add(e)}((()=>this.deleteCacheAndMetadata()))}_getCacheExpiration(e){if(e===u())throw new n("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new W(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(null===t)return!0;return t>=Date.now()-1e3*this._maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),s=new Date(t).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}({maxEntries:50,maxAgeSeconds:2592e3})]})),function(e){e.skipWaiting="skipWaiting"}(ie||(ie={})),self.addEventListener("message",(e=>{if(e.data&&e.data.type===ie.skipWaiting)self.skipWaiting()}));const oe={applicationServerKey:(e=>{const t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),s=self.atob(t),n=new Uint8Array(s.length);for(let e=0;e<s.length;e+=1)n[e]=s.charCodeAt(e);return n})("BHjc7KuOaU4j6MNOs_Mm90By-mPPUqn8Y94I0yv-aYP03ip2nfq8ti_n1mH01QxW9mWtjY8d2-VdcblQYl1Zq-M"),userVisibleOnly:!0};self.addEventListener("activate",(()=>e(void 0,void 0,void 0,(function*(){try{const t=yield self.registration.pushManager.subscribe(oe),s=yield(t=>e(void 0,void 0,void 0,(function*(){return(yield fetch("http://localhost:6050/push/save",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()})))(t);console.log(s)}catch(e){console.error("SW activate error",e)}})))),self.addEventListener("push",(e=>{console.log("SW received a push message",e);const{data:t}=e;if(!t)return void console.error("no data in message");const s=t.text()||"Push Message Title";e.waitUntil(self.registration.showNotification(s,{tag:"genesis-global-notification-tag",renotify:!0,body:t.text(),vibrate:[500,100,500]}))})),self.addEventListener("notificationclose",(({notification:e})=>{const t=e.data;console.log("SW notification close",t)})),self.addEventListener("notificationclick",(({action:e,notification:t})=>{const s=t.data;console.log("SW notification click",s,e),"close"!==e||t.close()}))})()})();
1
+ (()=>{"use strict";var e={733:()=>{try{self["workbox:cacheable-response:6.5.4"]&&_()}catch(e){}},114:()=>{try{self["workbox:core:6.5.4"]&&_()}catch(e){}},876:()=>{try{self["workbox:expiration:6.5.4"]&&_()}catch(e){}},665:()=>{try{self["workbox:precaching:6.5.4"]&&_()}catch(e){}},205:()=>{try{self["workbox:routing:6.5.4"]&&_()}catch(e){}},484:()=>{try{self["workbox:strategies:6.5.4"]&&_()}catch(e){}}},t={};function s(n){var a=t[n];if(void 0!==a){if(void 0!==a.error)throw a.error;return a.exports}var r=t[n]={exports:{}},i=!0;try{e[n](r,r.exports,s),i=!1}finally{i&&delete t[n]}return r.exports}(()=>{function e(e,t,s,n){return new(s||(s=Promise))((function(a,r){function i(e){try{c(n.next(e))}catch(e){r(e)}}function o(e){try{c(n.throw(e))}catch(e){r(e)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof s?t:new s((function(e){e(t)}))).then(i,o)}c((n=n.apply(e,t||[])).next())}))}s(114);const t=(e,...t)=>{let s=e;return t.length>0&&(s+=` :: ${JSON.stringify(t)}`),s};class n extends Error{constructor(e,s){super(t(e,s)),this.name=e,this.details=s}}const a=e=>new URL(String(e),location.href).href.replace(new RegExp(`^${location.origin}`),"");s(733);class r{constructor(e={}){this._statuses=e.statuses,this._headers=e.headers}isResponseCacheable(e){let t=!0;return this._statuses&&(t=this._statuses.includes(e.status)),this._headers&&t&&(t=Object.keys(this._headers).some((t=>e.headers.get(t)===this._headers[t]))),t}}class i{constructor(e){this.cacheWillUpdate=async({response:e})=>this._cacheableResponse.isResponseCacheable(e)?e:null,this._cacheableResponse=new r(e)}}const o=new Set;const c={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},h=e=>[c.prefix,e,c.suffix].filter((e=>e&&e.length>0)).join("-"),l=e=>e||h(c.precache),u=e=>e||h(c.runtime);function d(e,t){const s=new URL(e);for(const e of t)s.searchParams.delete(e);return s.href}let f;function p(e){e.then((()=>{}))}class g{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}function w(e){return new Promise((t=>setTimeout(t,e)))}function m(e,t){const s=t();return e.waitUntil(s),s}async function y(e,t){let s=null;if(e.url){s=new URL(e.url).origin}if(s!==self.location.origin)throw new n("cross-origin-copy-response",{origin:s});const a=e.clone(),r={headers:new Headers(a.headers),status:a.status,statusText:a.statusText},i=t?t(r):r,o=function(){if(void 0===f){const e=new Response("");if("body"in e)try{new Response(e.body),f=!0}catch(e){f=!1}f=!1}return f}()?a.body:await a.blob();return new Response(o,i)}const _=(e,t)=>t.some((t=>e instanceof t));let v,b;const R=new WeakMap,x=new WeakMap,C=new WeakMap,E=new WeakMap,q=new WeakMap;let L={get(e,t,s){if(e instanceof IDBTransaction){if("done"===t)return x.get(e);if("objectStoreNames"===t)return e.objectStoreNames||C.get(e);if("store"===t)return s.objectStoreNames[1]?void 0:s.objectStore(s.objectStoreNames[0])}return T(e[t])},set:(e,t,s)=>(e[t]=s,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function k(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(b||(b=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(D(this),t),T(R.get(this))}:function(...t){return T(e.apply(D(this),t))}:function(t,...s){const n=e.call(D(this),t,...s);return C.set(n,t.sort?t.sort():[t]),T(n)}}function U(e){return"function"==typeof e?k(e):(e instanceof IDBTransaction&&function(e){if(x.has(e))return;const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("complete",a),e.removeEventListener("error",r),e.removeEventListener("abort",r)},a=()=>{t(),n()},r=()=>{s(e.error||new DOMException("AbortError","AbortError")),n()};e.addEventListener("complete",a),e.addEventListener("error",r),e.addEventListener("abort",r)}));x.set(e,t)}(e),_(e,v||(v=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,L):e)}function T(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,s)=>{const n=()=>{e.removeEventListener("success",a),e.removeEventListener("error",r)},a=()=>{t(T(e.result)),n()},r=()=>{s(e.error),n()};e.addEventListener("success",a),e.addEventListener("error",r)}));return t.then((t=>{t instanceof IDBCursor&&R.set(t,e)})).catch((()=>{})),q.set(t,e),t}(e);if(E.has(e))return E.get(e);const t=U(e);return t!==e&&(E.set(e,t),q.set(t,e)),t}const D=e=>q.get(e);const N=["get","getKey","getAll","getAllKeys","count"],P=["put","add","delete","clear"],M=new Map;function I(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(M.get(t))return M.get(t);const s=t.replace(/FromIndex$/,""),n=t!==s,a=P.includes(s);if(!(s in(n?IDBIndex:IDBObjectStore).prototype)||!a&&!N.includes(s))return;const r=async function(e,...t){const r=this.transaction(e,a?"readwrite":"readonly");let i=r.store;return n&&(i=i.index(t.shift())),(await Promise.all([i[s](...t),a&&r.done]))[0]};return M.set(t,r),r}L=(e=>({...e,get:(t,s,n)=>I(t,s)||e.get(t,s,n),has:(t,s)=>!!I(t,s)||e.has(t,s)}))(L);s(876);const S="cache-entries",K=e=>{const t=new URL(e,location.href);return t.hash="",t.href};class O{constructor(e){this._db=null,this._cacheName=e}_upgradeDb(e){const t=e.createObjectStore(S,{keyPath:"id"});t.createIndex("cacheName","cacheName",{unique:!1}),t.createIndex("timestamp","timestamp",{unique:!1})}_upgradeDbAndDeleteOldDbs(e){this._upgradeDb(e),this._cacheName&&function(e,{blocked:t}={}){const s=indexedDB.deleteDatabase(e);t&&s.addEventListener("blocked",(e=>t(e.oldVersion,e))),T(s).then((()=>{}))}(this._cacheName)}async setTimestamp(e,t){const s={url:e=K(e),timestamp:t,cacheName:this._cacheName,id:this._getId(e)},n=(await this.getDb()).transaction(S,"readwrite",{durability:"relaxed"});await n.store.put(s),await n.done}async getTimestamp(e){const t=await this.getDb(),s=await t.get(S,this._getId(e));return null==s?void 0:s.timestamp}async expireEntries(e,t){const s=await this.getDb();let n=await s.transaction(S).store.index("timestamp").openCursor(null,"prev");const a=[];let r=0;for(;n;){const s=n.value;s.cacheName===this._cacheName&&(e&&s.timestamp<e||t&&r>=t?a.push(n.value):r++),n=await n.continue()}const i=[];for(const e of a)await s.delete(S,e.id),i.push(e.url);return i}_getId(e){return this._cacheName+"|"+K(e)}async getDb(){return this._db||(this._db=await function(e,t,{blocked:s,upgrade:n,blocking:a,terminated:r}={}){const i=indexedDB.open(e,t),o=T(i);return n&&i.addEventListener("upgradeneeded",(e=>{n(T(i.result),e.oldVersion,e.newVersion,T(i.transaction),e)})),s&&i.addEventListener("blocked",(e=>s(e.oldVersion,e.newVersion,e))),o.then((e=>{r&&e.addEventListener("close",(()=>r())),a&&e.addEventListener("versionchange",(e=>a(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),o}("workbox-expiration",1,{upgrade:this._upgradeDbAndDeleteOldDbs.bind(this)})),this._db}}class W{constructor(e,t={}){this._isRunning=!1,this._rerunRequested=!1,this._maxEntries=t.maxEntries,this._maxAgeSeconds=t.maxAgeSeconds,this._matchOptions=t.matchOptions,this._cacheName=e,this._timestampModel=new O(e)}async expireEntries(){if(this._isRunning)return void(this._rerunRequested=!0);this._isRunning=!0;const e=this._maxAgeSeconds?Date.now()-1e3*this._maxAgeSeconds:0,t=await this._timestampModel.expireEntries(e,this._maxEntries),s=await self.caches.open(this._cacheName);for(const e of t)await s.delete(e,this._matchOptions);this._isRunning=!1,this._rerunRequested&&(this._rerunRequested=!1,p(this.expireEntries()))}async updateTimestamp(e){await this._timestampModel.setTimestamp(e,Date.now())}async isURLExpired(e){if(this._maxAgeSeconds){const t=await this._timestampModel.getTimestamp(e),s=Date.now()-1e3*this._maxAgeSeconds;return void 0===t||t<s}return!1}async delete(){this._rerunRequested=!1,await this._timestampModel.expireEntries(1/0)}}s(665);function A(e){if(!e)throw new n("add-to-cache-list-unexpected-type",{entry:e});if("string"==typeof e){const t=new URL(e,location.href);return{cacheKey:t.href,url:t.href}}const{revision:t,url:s}=e;if(!s)throw new n("add-to-cache-list-unexpected-type",{entry:e});if(!t){const e=new URL(s,location.href);return{cacheKey:e.href,url:e.href}}const a=new URL(s,location.href),r=new URL(s,location.href);return a.searchParams.set("__WB_REVISION__",t),{cacheKey:a.href,url:r.href}}class j{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:e,state:t})=>{t&&(t.originalRequest=e)},this.cachedResponseWillBeUsed=async({event:e,state:t,cachedResponse:s})=>{if("install"===e.type&&t&&t.originalRequest&&t.originalRequest instanceof Request){const e=t.originalRequest.url;s?this.notUpdatedURLs.push(e):this.updatedURLs.push(e)}return s}}}class B{constructor({precacheController:e}){this.cacheKeyWillBeUsed=async({request:e,params:t})=>{const s=(null==t?void 0:t.cacheKey)||this._precacheController.getCacheKeyForURL(e.url);return s?new Request(s,{headers:e.headers}):e},this._precacheController=e}}s(484);function H(e){return"string"==typeof e?new Request(e):e}class F{constructor(e,t){this._cacheKeys={},Object.assign(this,t),this.event=t.event,this._strategy=e,this._handlerDeferred=new g,this._extendLifetimePromises=[],this._plugins=[...e.plugins],this._pluginStateMap=new Map;for(const e of this._plugins)this._pluginStateMap.set(e,{});this.event.waitUntil(this._handlerDeferred.promise)}async fetch(e){const{event:t}=this;let s=H(e);if("navigate"===s.mode&&t instanceof FetchEvent&&t.preloadResponse){const e=await t.preloadResponse;if(e)return e}const a=this.hasCallback("fetchDidFail")?s.clone():null;try{for(const e of this.iterateCallbacks("requestWillFetch"))s=await e({request:s.clone(),event:t})}catch(e){if(e instanceof Error)throw new n("plugin-error-request-will-fetch",{thrownErrorMessage:e.message})}const r=s.clone();try{let e;e=await fetch(s,"navigate"===s.mode?void 0:this._strategy.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))e=await s({event:t,request:r,response:e});return e}catch(e){throw a&&await this.runCallbacks("fetchDidFail",{error:e,event:t,originalRequest:a.clone(),request:r.clone()}),e}}async fetchAndCachePut(e){const t=await this.fetch(e),s=t.clone();return this.waitUntil(this.cachePut(e,s)),t}async cacheMatch(e){const t=H(e);let s;const{cacheName:n,matchOptions:a}=this._strategy,r=await this.getCacheKey(t,"read"),i=Object.assign(Object.assign({},a),{cacheName:n});s=await caches.match(r,i);for(const e of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await e({cacheName:n,matchOptions:a,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(e,t){const s=H(e);await w(0);const r=await this.getCacheKey(s,"write");if(!t)throw new n("cache-put-with-no-response",{url:a(r.url)});const i=await this._ensureResponseSafeToCache(t);if(!i)return!1;const{cacheName:c,matchOptions:h}=this._strategy,l=await self.caches.open(c),u=this.hasCallback("cacheDidUpdate"),f=u?await async function(e,t,s,n){const a=d(t.url,s);if(t.url===a)return e.match(t,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),i=await e.keys(t,r);for(const t of i)if(a===d(t.url,s))return e.match(t,n)}(l,r.clone(),["__WB_REVISION__"],h):null;try{await l.put(r,u?i.clone():i)}catch(e){if(e instanceof Error)throw"QuotaExceededError"===e.name&&await async function(){for(const e of o)await e()}(),e}for(const e of this.iterateCallbacks("cacheDidUpdate"))await e({cacheName:c,oldResponse:f,newResponse:i.clone(),request:r,event:this.event});return!0}async getCacheKey(e,t){const s=`${e.url} | ${t}`;if(!this._cacheKeys[s]){let n=e;for(const e of this.iterateCallbacks("cacheKeyWillBeUsed"))n=H(await e({mode:t,request:n,event:this.event,params:this.params}));this._cacheKeys[s]=n}return this._cacheKeys[s]}hasCallback(e){for(const t of this._strategy.plugins)if(e in t)return!0;return!1}async runCallbacks(e,t){for(const s of this.iterateCallbacks(e))await s(t)}*iterateCallbacks(e){for(const t of this._strategy.plugins)if("function"==typeof t[e]){const s=this._pluginStateMap.get(t),n=n=>{const a=Object.assign(Object.assign({},n),{state:s});return t[e](a)};yield n}}waitUntil(e){return this._extendLifetimePromises.push(e),e}async doneWaiting(){let e;for(;e=this._extendLifetimePromises.shift();)await e}destroy(){this._handlerDeferred.resolve(null)}async _ensureResponseSafeToCache(e){let t=e,s=!1;for(const e of this.iterateCallbacks("cacheWillUpdate"))if(t=await e({request:this.request,response:t,event:this.event})||void 0,s=!0,!t)break;return s||t&&200!==t.status&&(t=void 0),t}}class V{constructor(e={}){this.cacheName=u(e.cacheName),this.plugins=e.plugins||[],this.fetchOptions=e.fetchOptions,this.matchOptions=e.matchOptions}handle(e){const[t]=this.handleAll(e);return t}handleAll(e){e instanceof FetchEvent&&(e={event:e,request:e.request});const t=e.event,s="string"==typeof e.request?new Request(e.request):e.request,n="params"in e?e.params:void 0,a=new F(this,{event:t,request:s,params:n}),r=this._getResponse(a,s,t);return[r,this._awaitComplete(r,a,s,t)]}async _getResponse(e,t,s){let a;await e.runCallbacks("handlerWillStart",{event:s,request:t});try{if(a=await this._handle(t,e),!a||"error"===a.type)throw new n("no-response",{url:t.url})}catch(n){if(n instanceof Error)for(const r of e.iterateCallbacks("handlerDidError"))if(a=await r({error:n,event:s,request:t}),a)break;if(!a)throw n}for(const n of e.iterateCallbacks("handlerWillRespond"))a=await n({event:s,request:t,response:a});return a}async _awaitComplete(e,t,s,n){let a,r;try{a=await e}catch(r){}try{await t.runCallbacks("handlerDidRespond",{event:n,request:s,response:a}),await t.doneWaiting()}catch(e){e instanceof Error&&(r=e)}if(await t.runCallbacks("handlerDidComplete",{event:n,request:s,response:a,error:r}),t.destroy(),r)throw r}}class $ extends V{constructor(e={}){e.cacheName=l(e.cacheName),super(e),this._fallbackToNetwork=!1!==e.fallbackToNetwork,this.plugins.push($.copyRedirectedCacheableResponsesPlugin)}async _handle(e,t){const s=await t.cacheMatch(e);return s||(t.event&&"install"===t.event.type?await this._handleInstall(e,t):await this._handleFetch(e,t))}async _handleFetch(e,t){let s;const a=t.params||{};if(!this._fallbackToNetwork)throw new n("missing-precache-entry",{cacheName:this.cacheName,url:e.url});{0;const n=a.integrity,r=e.integrity,i=!r||r===n;if(s=await t.fetch(new Request(e,{integrity:"no-cors"!==e.mode?r||n:void 0})),n&&i&&"no-cors"!==e.mode){this._useDefaultCacheabilityPluginIfNeeded();await t.cachePut(e,s.clone());0}}return s}async _handleInstall(e,t){this._useDefaultCacheabilityPluginIfNeeded();const s=await t.fetch(e);if(!await t.cachePut(e,s.clone()))throw new n("bad-precaching-response",{url:e.url,status:s.status});return s}_useDefaultCacheabilityPluginIfNeeded(){let e=null,t=0;for(const[s,n]of this.plugins.entries())n!==$.copyRedirectedCacheableResponsesPlugin&&(n===$.defaultPrecacheCacheabilityPlugin&&(e=s),n.cacheWillUpdate&&t++);0===t?this.plugins.push($.defaultPrecacheCacheabilityPlugin):t>1&&null!==e&&this.plugins.splice(e,1)}}$.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:e})=>!e||e.status>=400?null:e},$.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:e})=>e.redirected?await y(e):e};class Q{constructor({cacheName:e,plugins:t=[],fallbackToNetwork:s=!0}={}){this._urlsToCacheKeys=new Map,this._urlsToCacheModes=new Map,this._cacheKeysToIntegrities=new Map,this._strategy=new $({cacheName:l(e),plugins:[...t,new B({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this._strategy}precache(e){this.addToCacheList(e),this._installAndActiveListenersAdded||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this._installAndActiveListenersAdded=!0)}addToCacheList(e){const t=[];for(const s of e){"string"==typeof s?t.push(s):s&&void 0===s.revision&&t.push(s.url);const{cacheKey:e,url:a}=A(s),r="string"!=typeof s&&s.revision?"reload":"default";if(this._urlsToCacheKeys.has(a)&&this._urlsToCacheKeys.get(a)!==e)throw new n("add-to-cache-list-conflicting-entries",{firstEntry:this._urlsToCacheKeys.get(a),secondEntry:e});if("string"!=typeof s&&s.integrity){if(this._cacheKeysToIntegrities.has(e)&&this._cacheKeysToIntegrities.get(e)!==s.integrity)throw new n("add-to-cache-list-conflicting-integrities",{url:a});this._cacheKeysToIntegrities.set(e,s.integrity)}if(this._urlsToCacheKeys.set(a,e),this._urlsToCacheModes.set(a,r),t.length>0){const e=`Workbox is precaching URLs without revision info: ${t.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(e)}}}install(e){return m(e,(async()=>{const t=new j;this.strategy.plugins.push(t);for(const[t,s]of this._urlsToCacheKeys){const n=this._cacheKeysToIntegrities.get(s),a=this._urlsToCacheModes.get(t),r=new Request(t,{integrity:n,cache:a,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:e}))}const{updatedURLs:s,notUpdatedURLs:n}=t;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(e){return m(e,(async()=>{const e=await self.caches.open(this.strategy.cacheName),t=await e.keys(),s=new Set(this._urlsToCacheKeys.values()),n=[];for(const a of t)s.has(a.url)||(await e.delete(a),n.push(a.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this._urlsToCacheKeys}getCachedURLs(){return[...this._urlsToCacheKeys.keys()]}getCacheKeyForURL(e){const t=new URL(e,location.href);return this._urlsToCacheKeys.get(t.href)}getIntegrityForCacheKey(e){return this._cacheKeysToIntegrities.get(e)}async matchPrecache(e){const t=e instanceof Request?e.url:e,s=this.getCacheKeyForURL(t);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(e){const t=this.getCacheKeyForURL(e);if(!t)throw new n("non-precached-url",{url:e});return s=>(s.request=new Request(e),s.params=Object.assign({cacheKey:t},s.params),this.strategy.handle(s))}}let Y;const G=()=>(Y||(Y=new Q),Y);s(205);const J=e=>e&&"object"==typeof e?e:{handle:e};class Z{constructor(e,t,s="GET"){this.handler=J(t),this.match=e,this.method=s}setCatchHandler(e){this.catchHandler=J(e)}}class z extends Z{constructor(e,t,s){super((({url:t})=>{const s=e.exec(t.href);if(s&&(t.origin===location.origin||0===s.index))return s.slice(1)}),t,s)}}class X{constructor(){this._routes=new Map,this._defaultHandlerMap=new Map}get routes(){return this._routes}addFetchListener(){self.addEventListener("fetch",(e=>{const{request:t}=e,s=this.handleRequest({request:t,event:e});s&&e.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(e=>{if(e.data&&"CACHE_URLS"===e.data.type){const{payload:t}=e.data;0;const s=Promise.all(t.urlsToCache.map((t=>{"string"==typeof t&&(t=[t]);const s=new Request(...t);return this.handleRequest({request:s,event:e})})));e.waitUntil(s),e.ports&&e.ports[0]&&s.then((()=>e.ports[0].postMessage(!0)))}}))}handleRequest({request:e,event:t}){const s=new URL(e.url,location.href);if(!s.protocol.startsWith("http"))return void 0;const n=s.origin===location.origin,{params:a,route:r}=this.findMatchingRoute({event:t,request:e,sameOrigin:n,url:s});let i=r&&r.handler;const o=e.method;if(!i&&this._defaultHandlerMap.has(o)&&(i=this._defaultHandlerMap.get(o)),!i)return void 0;let c;try{c=i.handle({url:s,request:e,event:t,params:a})}catch(e){c=Promise.reject(e)}const h=r&&r.catchHandler;return c instanceof Promise&&(this._catchHandler||h)&&(c=c.catch((async n=>{if(h){0;try{return await h.handle({url:s,request:e,event:t,params:a})}catch(e){e instanceof Error&&(n=e)}}if(this._catchHandler)return this._catchHandler.handle({url:s,request:e,event:t});throw n}))),c}findMatchingRoute({url:e,sameOrigin:t,request:s,event:n}){const a=this._routes.get(s.method)||[];for(const r of a){let a;const i=r.match({url:e,sameOrigin:t,request:s,event:n});if(i)return a=i,(Array.isArray(a)&&0===a.length||i.constructor===Object&&0===Object.keys(i).length||"boolean"==typeof i)&&(a=void 0),{route:r,params:a}}return{}}setDefaultHandler(e,t="GET"){this._defaultHandlerMap.set(t,J(e))}setCatchHandler(e){this._catchHandler=J(e)}registerRoute(e){this._routes.has(e.method)||this._routes.set(e.method,[]),this._routes.get(e.method).push(e)}unregisterRoute(e){if(!this._routes.has(e.method))throw new n("unregister-route-but-not-found-with-method",{method:e.method});const t=this._routes.get(e.method).indexOf(e);if(!(t>-1))throw new n("unregister-route-route-not-registered");this._routes.get(e.method).splice(t,1)}}let ee;const te=()=>(ee||(ee=new X,ee.addFetchListener(),ee.addCacheListener()),ee);function se(e,t,s){let a;if("string"==typeof e){const n=new URL(e,location.href);0;a=new Z((({url:e})=>e.href===n.href),t,s)}else if(e instanceof RegExp)a=new z(e,t,s);else if("function"==typeof e)a=new Z(e,t,s);else{if(!(e instanceof Z))throw new n("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});a=e}return te().registerRoute(a),a}class ne extends Z{constructor(e,t){super((({request:s})=>{const n=e.getURLsToCacheKeys();for(const a of function*(e,{ignoreURLParametersMatching:t=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:a}={}){const r=new URL(e,location.href);r.hash="",yield r.href;const i=function(e,t=[]){for(const s of[...e.searchParams.keys()])t.some((e=>e.test(s)))&&e.searchParams.delete(s);return e}(r,t);if(yield i.href,s&&i.pathname.endsWith("/")){const e=new URL(i.href);e.pathname+=s,yield e.href}if(n){const e=new URL(i.href);e.pathname+=".html",yield e.href}if(a){const e=a({url:r});for(const t of e)yield t.href}}(s.url,t)){const t=n.get(a);if(t){return{cacheKey:t,integrity:e.getIntegrityForCacheKey(t)}}}}),e.strategy)}}const ae={cacheWillUpdate:async({response:e})=>200===e.status||0===e.status?e:null};var re,ie;console.log("Hello from sw.js v0.0.1"),self.addEventListener("activate",(()=>self.clients.claim())),function(e){G().precache(e)}([{'revision':'5c035540edea453294160c87b69d6efc','url':'/assets/icon.svg'},{'revision':'968c9b1e3aec8f497ac498d6ee3ff3ae','url':'/dts/app/app.d.ts'},{'revision':'078b6a5c77374f3e6010259f49de61c3','url':'/dts/app/behaviors.d.ts'},{'revision':'75ba0437a002fa52f35a11c6e031fb83','url':'/dts/app/config.d.ts'},{'revision':'15fd8d96dc0bb0147a927cd655991d61','url':'/dts/app/index.d.ts'},{'revision':'75b251d8772324af462b31c734091efe','url':'/dts/app/types.d.ts'},{'revision':'fab333a799c73864a775733433c0fe3d','url':'/dts/app/utils.d.ts'},{'revision':'d8c2f99b493635c8c25ff0a01b297da5','url':'/dts/index.d.ts'},{'revision':'2057a4ce7f492309ceb05c78e1abf2f8','url':'/dts/index.docs.d.ts'},{'revision':'5d05b2cca398071e8b7bd80f8a37ff80','url':'/dts/main/index.d.ts'},{'revision':'127ad4e70d39a7beb238977a6ad7790c','url':'/dts/main/main.d.ts'},{'revision':'5ce23c1e29e802698be958444fcac33a','url':'/dts/main/main.styles.d.ts'},{'revision':'5a9c7f1e56b35773b19ea8fc6fd779d1','url':'/dts/main/main.template.d.ts'},{'revision':'a4a585ff72bb0a204cfe49b476bd9b80','url':'/dts/pbc/index.d.ts'},{'revision':'36878d18600216555e06ab792adc10eb','url':'/dts/pbc/pbc.d.ts'},{'revision':'48006c4dd8006dc5b51028ba56498fa3','url':'/dts/pbc/vite/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/vite/index.d.ts'},{'revision':'e372dabcf39748888ec80c9849ba7265','url':'/dts/pbc/vite/utils.d.ts'},{'revision':'48006c4dd8006dc5b51028ba56498fa3','url':'/dts/pbc/webpack/exports.d.ts'},{'revision':'d6e2176ecbaafe1bc42b9f15136946d0','url':'/dts/pbc/webpack/index.d.ts'},{'revision':'8979ecaa984fead1c6adea7bd8fd941f','url':'/dts/pbc/webpack/utils.d.ts'},{'revision':'1d6bffdf6619ff38e64181ac26bf4297','url':'/dts/serviceWorker/registration.d.ts'},{'revision':'0ab8d9f2503966e9295ae54cc6f64a4a','url':'/dts/serviceWorker/serviceWorker.d.ts'},{'revision':'65230a59ca53b222394cb29719af898c','url':'/dts/utils/index.d.ts'},{'revision':'dc36fe29c255f4306be90d0f53681e24','url':'/dts/utils/logger.d.ts'},{'revision':'d4f850463f4df51860be6f46b599e7ce','url':'/favicon.ico'},{'revision':'637d8467e5ef17e7b5bea25d1cbc3c0f','url':'/index.html'},{'revision':null,'url':'/main.fe4e5011b19da05ecbb8.js'},{'revision':null,'url':'/npm.consola.e1392c750470ff16d0ad.js'},{'revision':null,'url':'/npm.microsoft.2b4627a0e71ac31258b5.js'},{'revision':null,'url':'/swRegistration.6c147e22477e9a69d536.js'}]||[]),function(e){const t=G();se(new ne(t,e))}(re),se((({request:e})=>"navigate"===e.mode),new class extends V{constructor(e={}){super(e),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(ae),this._networkTimeoutSeconds=e.networkTimeoutSeconds||0}async _handle(e,t){const s=[];const a=[];let r;if(this._networkTimeoutSeconds){const{id:n,promise:i}=this._getTimeoutPromise({request:e,logs:s,handler:t});r=n,a.push(i)}const i=this._getNetworkPromise({timeoutId:r,request:e,logs:s,handler:t});a.push(i);const o=await t.waitUntil((async()=>await t.waitUntil(Promise.race(a))||await i)());if(!o)throw new n("no-response",{url:e.url});return o}_getTimeoutPromise({request:e,logs:t,handler:s}){let n;return{promise:new Promise((t=>{n=setTimeout((async()=>{t(await s.cacheMatch(e))}),1e3*this._networkTimeoutSeconds)})),id:n}}async _getNetworkPromise({timeoutId:e,request:t,logs:s,handler:n}){let a,r;try{r=await n.fetchAndCachePut(t)}catch(e){e instanceof Error&&(a=e)}return e&&clearTimeout(e),!a&&r||(r=await n.cacheMatch(t)),r}}({cacheName:"pages",plugins:[new i({statuses:[200]})]})),se((({request:e})=>"style"===e.destination||"script"===e.destination||"worker"===e.destination),new class extends V{constructor(e={}){super(e),this.plugins.some((e=>"cacheWillUpdate"in e))||this.plugins.unshift(ae)}async _handle(e,t){const s=t.fetchAndCachePut(e).catch((()=>{}));t.waitUntil(s);let a,r=await t.cacheMatch(e);if(r)0;else{0;try{r=await s}catch(e){e instanceof Error&&(a=e)}}if(!r)throw new n("no-response",{url:e.url,error:a});return r}}({cacheName:"assets",plugins:[new i({statuses:[200]})]})),se((({request:e})=>"image"===e.destination),new class extends V{async _handle(e,t){let s,a=await t.cacheMatch(e);if(a)0;else{0;try{a=await t.fetchAndCachePut(e)}catch(e){e instanceof Error&&(s=e)}0}if(!a)throw new n("no-response",{url:e.url,error:s});return a}}({cacheName:"images",plugins:[new i({statuses:[200]}),new class{constructor(e={}){this.cachedResponseWillBeUsed=async({event:e,request:t,cacheName:s,cachedResponse:n})=>{if(!n)return null;const a=this._isResponseDateFresh(n),r=this._getCacheExpiration(s);p(r.expireEntries());const i=r.updateTimestamp(t.url);if(e)try{e.waitUntil(i)}catch(e){0}return a?n:null},this.cacheDidUpdate=async({cacheName:e,request:t})=>{const s=this._getCacheExpiration(e);await s.updateTimestamp(t.url),await s.expireEntries()},this._config=e,this._maxAgeSeconds=e.maxAgeSeconds,this._cacheExpirations=new Map,e.purgeOnQuotaError&&function(e){o.add(e)}((()=>this.deleteCacheAndMetadata()))}_getCacheExpiration(e){if(e===u())throw new n("expire-custom-caches-only");let t=this._cacheExpirations.get(e);return t||(t=new W(e,this._config),this._cacheExpirations.set(e,t)),t}_isResponseDateFresh(e){if(!this._maxAgeSeconds)return!0;const t=this._getDateHeaderTimestamp(e);if(null===t)return!0;return t>=Date.now()-1e3*this._maxAgeSeconds}_getDateHeaderTimestamp(e){if(!e.headers.has("date"))return null;const t=e.headers.get("date"),s=new Date(t).getTime();return isNaN(s)?null:s}async deleteCacheAndMetadata(){for(const[e,t]of this._cacheExpirations)await self.caches.delete(e),await t.delete();this._cacheExpirations=new Map}}({maxEntries:50,maxAgeSeconds:2592e3})]})),function(e){e.skipWaiting="skipWaiting"}(ie||(ie={})),self.addEventListener("message",(e=>{if(e.data&&e.data.type===ie.skipWaiting)self.skipWaiting()}));const oe={applicationServerKey:(e=>{const t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),s=self.atob(t),n=new Uint8Array(s.length);for(let e=0;e<s.length;e+=1)n[e]=s.charCodeAt(e);return n})("BHjc7KuOaU4j6MNOs_Mm90By-mPPUqn8Y94I0yv-aYP03ip2nfq8ti_n1mH01QxW9mWtjY8d2-VdcblQYl1Zq-M"),userVisibleOnly:!0};self.addEventListener("activate",(()=>e(void 0,void 0,void 0,(function*(){try{const t=yield self.registration.pushManager.subscribe(oe),s=yield(t=>e(void 0,void 0,void 0,(function*(){return(yield fetch("http://localhost:6050/push/save",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)})).json()})))(t);console.log(s)}catch(e){console.error("SW activate error",e)}})))),self.addEventListener("push",(e=>{console.log("SW received a push message",e);const{data:t}=e;if(!t)return void console.error("no data in message");const s=t.text()||"Push Message Title";e.waitUntil(self.registration.showNotification(s,{tag:"genesis-global-notification-tag",renotify:!0,body:t.text(),vibrate:[500,100,500]}))})),self.addEventListener("notificationclose",(({notification:e})=>{const t=e.data;console.log("SW notification close",t)})),self.addEventListener("notificationclick",(({action:e,notification:t})=>{const s=t.data;console.log("SW notification click",s,e),"close"!==e||t.close()}))})()})();
2
2
  //# sourceMappingURL=InjectManifest.6ed0133479e74098b8726af1c4afda83.js.map
@@ -9,14 +9,5 @@ Context passed to predicate functions and other utilities.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export type AppContext = {
13
- env?: string;
14
- domain?: string;
15
- user?: {};
16
- answers?: {
17
- framework: string;
18
- [key: string]: any;
19
- };
20
- featureFlags?: {};
21
- };
12
+ export type AppContext = FoundationAppContext;
22
13
  ```
@@ -1,15 +1,12 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [AssetPredicate](./foundation-shell.assetpredicate.md)
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [assetPredicate](./foundation-shell.assetpredicate.md)
4
4
 
5
- ## AssetPredicate type
5
+ ## assetPredicate variable
6
6
 
7
- Asset runtime predicate function.
8
7
 
9
8
  **Signature:**
10
9
 
11
10
  ```typescript
12
- export type AssetPredicate = (context?: AppContext) => boolean;
11
+ assetPredicate: (asset: HasPredicate, context: AppContext) => boolean
13
12
  ```
14
- **References:** [AppContext](./foundation-shell.appcontext.md)
15
-
@@ -2,22 +2,10 @@
2
2
 
3
3
  [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [getQualifiedModuleTokens](./foundation-shell.getqualifiedmoduletokens.md)
4
4
 
5
- ## getQualifiedModuleTokens() function
5
+ ## getQualifiedModuleTokens variable
6
6
 
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
10
  getQualifiedModuleTokens: <T extends unknown>(module: any, predicate: AppTokenTypePredicate) => T[]
11
11
  ```
12
-
13
- ## Parameters
14
-
15
- | Parameter | Type | Description |
16
- | --- | --- | --- |
17
- | module | any | An imported module. |
18
- | predicate | [AppTokenTypePredicate](./foundation-shell.apptokentypepredicate.md) | Token type predicate. |
19
-
20
- **Returns:**
21
-
22
- T\[\]
23
-
@@ -15,9 +15,7 @@
15
15
 
16
16
  | Function | Description |
17
17
  | --- | --- |
18
- | [assetPredicate(asset, context)](./foundation-shell.assetpredicate.md) | |
19
18
  | [getApp()](./foundation-shell.getapp.md) | Gets App from the DI container. |
20
- | [getQualifiedModuleTokens(module, predicate)](./foundation-shell.getqualifiedmoduletokens.md) | |
21
19
  | [importPBCAssets()](./foundation-shell.importpbcassets.md) | <p>A utility for importing PBC assets that have been added to the application's src/pbc directory via genx add.</p><p>The <code>genx</code> builder (webpack or vite) will attempt to dynamically load all PBC assets from the application's <code>src/pbc</code> directory by default. The returned AppAssets can then be applied to the App. Please note that <code>app.registerAssets</code> is a one-time operation, intended for upfront bulk registration. After this point, you must use the single asset APIs of the <code>App</code> for lazy asset registration or deregistration.</p> |
22
20
  | [isAppElement(token)](./foundation-shell.isappelement.md) | |
23
21
  | [isAppMetadata(token)](./foundation-shell.isappmetadata.md) | |
@@ -27,8 +25,6 @@
27
25
  | [isAppStyle(token)](./foundation-shell.isappstyle.md) | |
28
26
  | [isComposableStyles(token)](./foundation-shell.iscomposablestyles.md) | |
29
27
  | [isViewTemplate(token)](./foundation-shell.isviewtemplate.md) | |
30
- | [registrationPredicate(asset, predicate, context)](./foundation-shell.registrationpredicate.md) | |
31
- | [targetIdPredicate(asset, targetId)](./foundation-shell.targetidpredicate.md) | |
32
28
 
33
29
  ## Interfaces
34
30
 
@@ -44,11 +40,15 @@
44
40
 
45
41
  | Variable | Description |
46
42
  | --- | --- |
43
+ | [assetPredicate](./foundation-shell.assetpredicate.md) | |
47
44
  | [defaultAppConfig](./foundation-shell.defaultappconfig.md) | Default AppConfig DI implementation. |
48
45
  | [DynamicTemplate](./foundation-shell.dynamictemplate.md) | |
46
+ | [getQualifiedModuleTokens](./foundation-shell.getqualifiedmoduletokens.md) | |
49
47
  | [LoadingTemplate](./foundation-shell.loadingtemplate.md) | |
50
48
  | [logger](./foundation-shell.logger.md) | Logger for the foundation-shell package |
51
49
  | [MainTemplate](./foundation-shell.maintemplate.md) | |
50
+ | [registrationPredicate](./foundation-shell.registrationpredicate.md) | |
51
+ | [targetIdPredicate](./foundation-shell.targetidpredicate.md) | |
52
52
 
53
53
  ## Type Aliases
54
54
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [registrationPredicate](./foundation-shell.registrationpredicate.md)
4
4
 
5
- ## registrationPredicate() function
5
+ ## registrationPredicate variable
6
6
 
7
7
 
8
8
  **Signature:**
@@ -10,16 +10,3 @@
10
10
  ```typescript
11
11
  registrationPredicate: <A, P>(asset: A, predicate: P, context: AppContext) => boolean
12
12
  ```
13
-
14
- ## Parameters
15
-
16
- | Parameter | Type | Description |
17
- | --- | --- | --- |
18
- | asset | A | |
19
- | predicate | P | |
20
- | context | [AppContext](./foundation-shell.appcontext.md) | |
21
-
22
- **Returns:**
23
-
24
- boolean
25
-
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Home](./index.md) &gt; [@genesislcap/foundation-shell](./foundation-shell.md) &gt; [targetIdPredicate](./foundation-shell.targetidpredicate.md)
4
4
 
5
- ## targetIdPredicate() function
5
+ ## targetIdPredicate variable
6
6
 
7
7
 
8
8
  **Signature:**
@@ -10,15 +10,3 @@
10
10
  ```typescript
11
11
  targetIdPredicate: (asset: HasTarget, targetId: AppTargetId) => boolean
12
12
  ```
13
-
14
- ## Parameters
15
-
16
- | Parameter | Type | Description |
17
- | --- | --- | --- |
18
- | asset | [HasTarget](./foundation-shell.hastarget.md) | |
19
- | targetId | [AppTargetId](./foundation-shell.apptargetid.md) | |
20
-
21
- **Returns:**
22
-
23
- boolean
24
-
@@ -9,6 +9,7 @@ import { ComposableStyles } from '@genesislcap/web-core';
9
9
  import type { DesignSystemModule } from '@genesislcap/foundation-utils';
10
10
  import { ElementStyles } from '@genesislcap/web-core';
11
11
  import { FASTElement } from '@genesislcap/web-core';
12
+ import type { FoundationAppContext } from '@genesislcap/foundation-ui';
12
13
  import type { FoundationRoute } from '@genesislcap/foundation-ui';
13
14
  import type { FoundationRouteCollection } from '@genesislcap/foundation-ui';
14
15
  import type { HasElement } from '@genesislcap/web-core';
@@ -58,16 +59,7 @@ export interface AppConfig {
58
59
  export const AppConfig: InterfaceSymbol<AppConfig>;
59
60
 
60
61
  // @public
61
- export type AppContext = {
62
- env?: string;
63
- domain?: string;
64
- user?: {};
65
- answers?: {
66
- framework: string;
67
- [key: string]: any;
68
- };
69
- featureFlags?: {};
70
- };
62
+ export type AppContext = FoundationAppContext;
71
63
 
72
64
  // @public
73
65
  export type AppDependencies = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-shell",
3
3
  "description": "Genesis Foundation Shell",
4
- "version": "14.226.0",
4
+ "version": "14.226.2-alpha-bcda968.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/dts/index.d.ts",
@@ -67,21 +67,21 @@
67
67
  }
68
68
  },
69
69
  "devDependencies": {
70
- "@genesislcap/foundation-testing": "14.226.0",
71
- "@genesislcap/genx": "14.226.0",
72
- "@genesislcap/rollup-builder": "14.226.0",
73
- "@genesislcap/ts-builder": "14.226.0",
74
- "@genesislcap/uvu-playwright-builder": "14.226.0",
75
- "@genesislcap/vite-builder": "14.226.0",
76
- "@genesislcap/webpack-builder": "14.226.0",
70
+ "@genesislcap/foundation-testing": "14.226.2-alpha-bcda968.0",
71
+ "@genesislcap/genx": "14.226.2-alpha-bcda968.0",
72
+ "@genesislcap/rollup-builder": "14.226.2-alpha-bcda968.0",
73
+ "@genesislcap/ts-builder": "14.226.2-alpha-bcda968.0",
74
+ "@genesislcap/uvu-playwright-builder": "14.226.2-alpha-bcda968.0",
75
+ "@genesislcap/vite-builder": "14.226.2-alpha-bcda968.0",
76
+ "@genesislcap/webpack-builder": "14.226.2-alpha-bcda968.0",
77
77
  "rimraf": "^5.0.0"
78
78
  },
79
79
  "dependencies": {
80
- "@genesislcap/foundation-logger": "14.226.0",
81
- "@genesislcap/foundation-store": "14.226.0",
82
- "@genesislcap/foundation-ui": "14.226.0",
83
- "@genesislcap/foundation-utils": "14.226.0",
84
- "@genesislcap/web-core": "14.226.0",
80
+ "@genesislcap/foundation-logger": "14.226.2-alpha-bcda968.0",
81
+ "@genesislcap/foundation-store": "14.226.2-alpha-bcda968.0",
82
+ "@genesislcap/foundation-ui": "14.226.2-alpha-bcda968.0",
83
+ "@genesislcap/foundation-utils": "14.226.2-alpha-bcda968.0",
84
+ "@genesislcap/web-core": "14.226.2-alpha-bcda968.0",
85
85
  "workbox-cacheable-response": "^6.5.4",
86
86
  "workbox-core": "^6.5.4",
87
87
  "workbox-expiration": "^6.5.4",
@@ -97,5 +97,5 @@
97
97
  "publishConfig": {
98
98
  "access": "public"
99
99
  },
100
- "gitHead": "92b4d205bf702945dbed4e9c998c4fd000d99e4b"
100
+ "gitHead": "9af9df8ba21d267f9bb916dcdc29796cd9f3e007"
101
101
  }