genesys-cloud-client-auth 0.0.2-build.37 → 0.0.2
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/LICENSE +2 -2
- package/dist/asset-manifest.json +209 -162
- package/dist/deploy-info.json +22 -0
- package/dist/genesys-cloud-client-auth.browser.min.js +1 -1
- package/dist/genesys-cloud-client-auth.browser.min.js.map +1 -1
- package/dist/index.html +1 -1
- package/dist/lib/cjs/authenticator.js +3 -3
- package/dist/lib/cjs/authenticator.js.map +1 -1
- package/dist/lib/cjs/parse-redirect.js +5 -5
- package/dist/lib/cjs/parse-redirect.js.map +1 -1
- package/dist/lib/cjs/types.d.ts +1 -1
- package/dist/lib/cjs/utils.d.ts +1 -1
- package/dist/lib/cjs/utils.js +2 -2
- package/dist/lib/cjs/utils.js.map +1 -1
- package/dist/lib/es/types.d.ts +1 -1
- package/dist/lib/es/utils.d.ts +1 -1
- package/dist/static/js/0.edb27f5c.chunk.js +3 -0
- package/dist/static/js/0.edb27f5c.chunk.js.map +1 -0
- package/dist/static/js/1.fb8750f9.chunk.js +2 -0
- package/dist/static/js/1.fb8750f9.chunk.js.map +1 -0
- package/dist/static/js/10.b5f91110.chunk.js +2 -0
- package/dist/static/js/10.b5f91110.chunk.js.map +1 -0
- package/dist/static/js/11.af6f8d77.chunk.js +2 -0
- package/dist/static/js/11.af6f8d77.chunk.js.map +1 -0
- package/dist/static/js/12.e8b2c21a.chunk.js +2 -0
- package/dist/static/js/12.e8b2c21a.chunk.js.map +1 -0
- package/dist/static/js/13.765af38c.chunk.js +2 -0
- package/dist/static/js/13.765af38c.chunk.js.map +1 -0
- package/dist/static/js/14.dc24fa84.chunk.js +2 -0
- package/dist/static/js/14.dc24fa84.chunk.js.map +1 -0
- package/dist/static/js/15.9d3c5e92.chunk.js +2 -0
- package/dist/static/js/15.9d3c5e92.chunk.js.map +1 -0
- package/dist/static/js/16.17cae18f.chunk.js +2 -0
- package/dist/static/js/16.17cae18f.chunk.js.map +1 -0
- package/dist/static/js/17.37a7bd60.chunk.js +2 -0
- package/dist/static/js/17.37a7bd60.chunk.js.map +1 -0
- package/dist/static/js/18.b3d93d8e.chunk.js +2 -0
- package/dist/static/js/18.b3d93d8e.chunk.js.map +1 -0
- package/dist/static/js/19.73f2c078.chunk.js +2 -0
- package/dist/static/js/19.73f2c078.chunk.js.map +1 -0
- package/dist/static/js/20.2dc963f0.chunk.js +2 -0
- package/dist/static/js/20.2dc963f0.chunk.js.map +1 -0
- package/dist/static/js/21.4d3fc628.chunk.js +2 -0
- package/dist/static/js/21.4d3fc628.chunk.js.map +1 -0
- package/dist/static/js/22.9d2a52b5.chunk.js +2 -0
- package/dist/static/js/22.9d2a52b5.chunk.js.map +1 -0
- package/dist/static/js/23.117d10f2.chunk.js +2 -0
- package/dist/static/js/23.117d10f2.chunk.js.map +1 -0
- package/dist/static/js/24.944f1f9b.chunk.js +2 -0
- package/dist/static/js/24.944f1f9b.chunk.js.map +1 -0
- package/dist/static/js/25.8522d872.chunk.js +2 -0
- package/dist/static/js/25.8522d872.chunk.js.map +1 -0
- package/dist/static/js/26.0bd957a1.chunk.js +2 -0
- package/dist/static/js/26.0bd957a1.chunk.js.map +1 -0
- package/dist/static/js/27.887ba6f3.chunk.js +2 -0
- package/dist/static/js/27.887ba6f3.chunk.js.map +1 -0
- package/dist/static/js/28.8b92091f.chunk.js +2 -0
- package/dist/static/js/28.8b92091f.chunk.js.map +1 -0
- package/dist/static/js/29.b0a5348a.chunk.js +2 -0
- package/dist/static/js/29.b0a5348a.chunk.js.map +1 -0
- package/dist/static/js/30.d58aa4bd.chunk.js +2 -0
- package/dist/static/js/30.d58aa4bd.chunk.js.map +1 -0
- package/dist/static/js/31.8bc6fb16.chunk.js +2 -0
- package/dist/static/js/31.8bc6fb16.chunk.js.map +1 -0
- package/dist/static/js/32.a6a85c40.chunk.js +2 -0
- package/dist/static/js/32.a6a85c40.chunk.js.map +1 -0
- package/dist/static/js/33.aa473951.chunk.js +2 -0
- package/dist/static/js/33.aa473951.chunk.js.map +1 -0
- package/dist/static/js/34.dbc7a54d.chunk.js +2 -0
- package/dist/static/js/34.dbc7a54d.chunk.js.map +1 -0
- package/dist/static/js/35.2b41332a.chunk.js +2 -0
- package/dist/static/js/35.2b41332a.chunk.js.map +1 -0
- package/dist/static/js/36.66a918eb.chunk.js +2 -0
- package/dist/static/js/36.66a918eb.chunk.js.map +1 -0
- package/dist/static/js/37.880d376e.chunk.js +3 -0
- package/dist/static/js/{20.2be3997f.chunk.js.LICENSE.txt → 37.880d376e.chunk.js.LICENSE.txt} +1 -1
- package/dist/static/js/37.880d376e.chunk.js.map +1 -0
- package/dist/static/js/38.3d8185bb.chunk.js +2 -0
- package/dist/static/js/38.3d8185bb.chunk.js.map +1 -0
- package/dist/static/js/39.754ffdce.chunk.js +2 -0
- package/dist/static/js/39.754ffdce.chunk.js.map +1 -0
- package/dist/static/js/40.8d53c8c4.chunk.js +2 -0
- package/dist/static/js/40.8d53c8c4.chunk.js.map +1 -0
- package/dist/static/js/41.4a3fc180.chunk.js +2 -0
- package/dist/static/js/41.4a3fc180.chunk.js.map +1 -0
- package/dist/static/js/42.adeca90f.chunk.js +2 -0
- package/dist/static/js/42.adeca90f.chunk.js.map +1 -0
- package/dist/static/js/43.36f67f1b.chunk.js +2 -0
- package/dist/static/js/43.36f67f1b.chunk.js.map +1 -0
- package/dist/static/js/44.4d96c33b.chunk.js +2 -0
- package/dist/static/js/44.4d96c33b.chunk.js.map +1 -0
- package/dist/static/js/45.02626866.chunk.js +2 -0
- package/dist/static/js/45.02626866.chunk.js.map +1 -0
- package/dist/static/js/46.0f08377a.chunk.js +2 -0
- package/dist/static/js/46.0f08377a.chunk.js.map +1 -0
- package/dist/static/js/47.7d7da0af.chunk.js +2 -0
- package/dist/static/js/47.7d7da0af.chunk.js.map +1 -0
- package/dist/static/js/48.26d10dc3.chunk.js +2 -0
- package/dist/static/js/48.26d10dc3.chunk.js.map +1 -0
- package/dist/static/js/49.f966b1fc.chunk.js +2 -0
- package/dist/static/js/49.f966b1fc.chunk.js.map +1 -0
- package/dist/static/js/5.c9623f8e.chunk.js +3 -0
- package/dist/static/js/5.c9623f8e.chunk.js.map +1 -0
- package/dist/static/js/50.c95c6a30.chunk.js +2 -0
- package/dist/static/js/50.c95c6a30.chunk.js.map +1 -0
- package/dist/static/js/51.09c99283.chunk.js +2 -0
- package/dist/static/js/51.09c99283.chunk.js.map +1 -0
- package/dist/static/js/52.b612edf1.chunk.js +2 -0
- package/dist/static/js/52.b612edf1.chunk.js.map +1 -0
- package/dist/static/js/53.fb38f8b2.chunk.js +2 -0
- package/dist/static/js/53.fb38f8b2.chunk.js.map +1 -0
- package/dist/static/js/54.940ea13b.chunk.js +2 -0
- package/dist/static/js/54.940ea13b.chunk.js.map +1 -0
- package/dist/static/js/55.0f323a4c.chunk.js +2 -0
- package/dist/static/js/55.0f323a4c.chunk.js.map +1 -0
- package/dist/static/js/56.9d5b8236.chunk.js +2 -0
- package/dist/static/js/56.9d5b8236.chunk.js.map +1 -0
- package/dist/static/js/57.883726f5.chunk.js +2 -0
- package/dist/static/js/57.883726f5.chunk.js.map +1 -0
- package/dist/static/js/58.0b33271d.chunk.js +2 -0
- package/dist/static/js/58.0b33271d.chunk.js.map +1 -0
- package/dist/static/js/59.8c50590b.chunk.js +2 -0
- package/dist/static/js/59.8c50590b.chunk.js.map +1 -0
- package/dist/static/js/6.e61fa6f6.chunk.js +2 -0
- package/dist/static/js/6.e61fa6f6.chunk.js.map +1 -0
- package/dist/static/js/60.a9da135f.chunk.js +2 -0
- package/dist/static/js/60.a9da135f.chunk.js.map +1 -0
- package/dist/static/js/61.fdec801b.chunk.js +2 -0
- package/dist/static/js/61.fdec801b.chunk.js.map +1 -0
- package/dist/static/js/62.bd5c9b92.chunk.js +2 -0
- package/dist/static/js/62.bd5c9b92.chunk.js.map +1 -0
- package/dist/static/js/63.51b2a768.chunk.js +2 -0
- package/dist/static/js/63.51b2a768.chunk.js.map +1 -0
- package/dist/static/js/64.ce04e880.chunk.js +2 -0
- package/dist/static/js/64.ce04e880.chunk.js.map +1 -0
- package/dist/static/js/65.b0dee0e4.chunk.js +2 -0
- package/dist/static/js/65.b0dee0e4.chunk.js.map +1 -0
- package/dist/static/js/66.ff9acb3c.chunk.js +2 -0
- package/dist/static/js/66.ff9acb3c.chunk.js.map +1 -0
- package/dist/static/js/67.2c3abbd0.chunk.js +2 -0
- package/dist/static/js/67.2c3abbd0.chunk.js.map +1 -0
- package/dist/static/js/68.e910f9bf.chunk.js +2 -0
- package/dist/static/js/68.e910f9bf.chunk.js.map +1 -0
- package/dist/static/js/69.d7127e9a.chunk.js +2 -0
- package/dist/static/js/69.d7127e9a.chunk.js.map +1 -0
- package/dist/static/js/7.5f708a6d.chunk.js +2 -0
- package/dist/static/js/7.5f708a6d.chunk.js.map +1 -0
- package/dist/static/js/70.e309686b.chunk.js +2 -0
- package/dist/static/js/70.e309686b.chunk.js.map +1 -0
- package/dist/static/js/71.6dddd458.chunk.js +2 -0
- package/dist/static/js/71.6dddd458.chunk.js.map +1 -0
- package/dist/static/js/72.c4e0c62d.chunk.js +2 -0
- package/dist/static/js/72.c4e0c62d.chunk.js.map +1 -0
- package/dist/static/js/73.5ab9be33.chunk.js +2 -0
- package/dist/static/js/73.5ab9be33.chunk.js.map +1 -0
- package/dist/static/js/74.eec26242.chunk.js +2 -0
- package/dist/static/js/74.eec26242.chunk.js.map +1 -0
- package/dist/static/js/75.574bcc06.chunk.js +2 -0
- package/dist/static/js/75.574bcc06.chunk.js.map +1 -0
- package/dist/static/js/76.a384ac81.chunk.js +2 -0
- package/dist/static/js/76.a384ac81.chunk.js.map +1 -0
- package/dist/static/js/77.2600e3ed.chunk.js +2 -0
- package/dist/static/js/77.2600e3ed.chunk.js.map +1 -0
- package/dist/static/js/78.9189f5ca.chunk.js +2 -0
- package/dist/static/js/78.9189f5ca.chunk.js.map +1 -0
- package/dist/static/js/79.0380c00b.chunk.js +2 -0
- package/dist/static/js/79.0380c00b.chunk.js.map +1 -0
- package/dist/static/js/8.62d1b039.chunk.js +2 -0
- package/dist/static/js/8.62d1b039.chunk.js.map +1 -0
- package/dist/static/js/80.4846f70b.chunk.js +2 -0
- package/dist/static/js/80.4846f70b.chunk.js.map +1 -0
- package/dist/static/js/81.4802c507.chunk.js +2 -0
- package/dist/static/js/81.4802c507.chunk.js.map +1 -0
- package/dist/static/js/82.56954654.chunk.js +2 -0
- package/dist/static/js/82.56954654.chunk.js.map +1 -0
- package/dist/static/js/83.8922d346.chunk.js +2 -0
- package/dist/static/js/83.8922d346.chunk.js.map +1 -0
- package/dist/static/js/84.d55272b0.chunk.js +2 -0
- package/dist/static/js/84.d55272b0.chunk.js.map +1 -0
- package/dist/static/js/85.7dd389fe.chunk.js +2 -0
- package/dist/static/js/85.7dd389fe.chunk.js.map +1 -0
- package/dist/static/js/86.e44f1414.chunk.js +2 -0
- package/dist/static/js/86.e44f1414.chunk.js.map +1 -0
- package/dist/static/js/87.b32bf884.chunk.js +2 -0
- package/dist/static/js/87.b32bf884.chunk.js.map +1 -0
- package/dist/static/js/88.362f1612.chunk.js +2 -0
- package/dist/static/js/88.362f1612.chunk.js.map +1 -0
- package/dist/static/js/89.b1afb0d8.chunk.js +2 -0
- package/dist/static/js/89.b1afb0d8.chunk.js.map +1 -0
- package/dist/static/js/9.9d6f0e1b.chunk.js +2 -0
- package/dist/static/js/9.9d6f0e1b.chunk.js.map +1 -0
- package/dist/static/js/90.22a231ad.chunk.js +2 -0
- package/dist/static/js/90.22a231ad.chunk.js.map +1 -0
- package/dist/static/js/91.0160e95d.chunk.js +2 -0
- package/dist/static/js/91.0160e95d.chunk.js.map +1 -0
- package/dist/static/js/92.ff5bae9a.chunk.js +2 -0
- package/dist/static/js/92.ff5bae9a.chunk.js.map +1 -0
- package/dist/static/js/93.982b5c40.chunk.js +2 -0
- package/dist/static/js/93.982b5c40.chunk.js.map +1 -0
- package/dist/static/js/94.74a0f47b.chunk.js +2 -0
- package/dist/static/js/94.74a0f47b.chunk.js.map +1 -0
- package/dist/static/js/95.8657b1a8.chunk.js +2 -0
- package/dist/static/js/95.8657b1a8.chunk.js.map +1 -0
- package/dist/static/js/96.b1ce4c6c.chunk.js +2 -0
- package/dist/static/js/96.b1ce4c6c.chunk.js.map +1 -0
- package/dist/static/js/97.ad09ed1c.chunk.js +2 -0
- package/dist/static/js/97.ad09ed1c.chunk.js.map +1 -0
- package/dist/static/js/98.79852574.chunk.js +2 -0
- package/dist/static/js/98.79852574.chunk.js.map +1 -0
- package/dist/static/js/main.8646e136.chunk.js +2 -0
- package/dist/static/js/main.8646e136.chunk.js.map +1 -0
- package/dist/static/js/polyfills-dom.c60c028d.chunk.js +3 -0
- package/dist/static/js/polyfills-dom.c60c028d.chunk.js.map +1 -0
- package/dist/static/js/runtime-main.c5235a78.js +2 -0
- package/dist/static/js/runtime-main.c5235a78.js.map +1 -0
- package/dist/static/media/getFetch.5fde86e3.cjs +1 -0
- package/package.json +4 -4
- package/CHANGELOG.md +0 -8
- package/dist/static/js/0.71c0b4a8.chunk.js +0 -3
- package/dist/static/js/0.71c0b4a8.chunk.js.map +0 -1
- package/dist/static/js/1.8399f811.chunk.js +0 -2
- package/dist/static/js/1.8399f811.chunk.js.map +0 -1
- package/dist/static/js/10.8fb6019a.chunk.js +0 -2
- package/dist/static/js/10.8fb6019a.chunk.js.map +0 -1
- package/dist/static/js/11.aa22b687.chunk.js +0 -2
- package/dist/static/js/11.aa22b687.chunk.js.map +0 -1
- package/dist/static/js/12.586642ff.chunk.js +0 -2
- package/dist/static/js/12.586642ff.chunk.js.map +0 -1
- package/dist/static/js/13.c0c5fd67.chunk.js +0 -2
- package/dist/static/js/13.c0c5fd67.chunk.js.map +0 -1
- package/dist/static/js/14.c3e0d008.chunk.js +0 -2
- package/dist/static/js/14.c3e0d008.chunk.js.map +0 -1
- package/dist/static/js/15.20587752.chunk.js +0 -2
- package/dist/static/js/15.20587752.chunk.js.map +0 -1
- package/dist/static/js/16.c19b0b1c.chunk.js +0 -2
- package/dist/static/js/16.c19b0b1c.chunk.js.map +0 -1
- package/dist/static/js/17.06cd7ac8.chunk.js +0 -2
- package/dist/static/js/17.06cd7ac8.chunk.js.map +0 -1
- package/dist/static/js/18.e02b6cd8.chunk.js +0 -2
- package/dist/static/js/18.e02b6cd8.chunk.js.map +0 -1
- package/dist/static/js/19.2d45340c.chunk.js +0 -2
- package/dist/static/js/19.2d45340c.chunk.js.map +0 -1
- package/dist/static/js/20.2be3997f.chunk.js +0 -3
- package/dist/static/js/20.2be3997f.chunk.js.map +0 -1
- package/dist/static/js/21.90337a55.chunk.js +0 -2
- package/dist/static/js/21.90337a55.chunk.js.map +0 -1
- package/dist/static/js/22.0c42f6ee.chunk.js +0 -2
- package/dist/static/js/22.0c42f6ee.chunk.js.map +0 -1
- package/dist/static/js/23.96d71d61.chunk.js +0 -3
- package/dist/static/js/23.96d71d61.chunk.js.map +0 -1
- package/dist/static/js/24.c8a6aef1.chunk.js +0 -2
- package/dist/static/js/24.c8a6aef1.chunk.js.map +0 -1
- package/dist/static/js/25.1549af44.chunk.js +0 -2
- package/dist/static/js/25.1549af44.chunk.js.map +0 -1
- package/dist/static/js/26.f5920959.chunk.js +0 -2
- package/dist/static/js/26.f5920959.chunk.js.map +0 -1
- package/dist/static/js/27.4c4b5337.chunk.js +0 -2
- package/dist/static/js/27.4c4b5337.chunk.js.map +0 -1
- package/dist/static/js/28.e4ae1c5b.chunk.js +0 -2
- package/dist/static/js/28.e4ae1c5b.chunk.js.map +0 -1
- package/dist/static/js/29.c8bcd088.chunk.js +0 -2
- package/dist/static/js/29.c8bcd088.chunk.js.map +0 -1
- package/dist/static/js/30.3f776fe2.chunk.js +0 -2
- package/dist/static/js/30.3f776fe2.chunk.js.map +0 -1
- package/dist/static/js/31.295a0045.chunk.js +0 -2
- package/dist/static/js/31.295a0045.chunk.js.map +0 -1
- package/dist/static/js/32.c6495395.chunk.js +0 -2
- package/dist/static/js/32.c6495395.chunk.js.map +0 -1
- package/dist/static/js/33.bc3f2778.chunk.js +0 -2
- package/dist/static/js/33.bc3f2778.chunk.js.map +0 -1
- package/dist/static/js/34.9c6f42a2.chunk.js +0 -2
- package/dist/static/js/34.9c6f42a2.chunk.js.map +0 -1
- package/dist/static/js/35.080ac296.chunk.js +0 -2
- package/dist/static/js/35.080ac296.chunk.js.map +0 -1
- package/dist/static/js/36.30926ca6.chunk.js +0 -2
- package/dist/static/js/36.30926ca6.chunk.js.map +0 -1
- package/dist/static/js/37.535e0baf.chunk.js +0 -2
- package/dist/static/js/37.535e0baf.chunk.js.map +0 -1
- package/dist/static/js/38.c6142d9d.chunk.js +0 -2
- package/dist/static/js/38.c6142d9d.chunk.js.map +0 -1
- package/dist/static/js/39.4e5e9e70.chunk.js +0 -2
- package/dist/static/js/39.4e5e9e70.chunk.js.map +0 -1
- package/dist/static/js/40.67f8a4cc.chunk.js +0 -2
- package/dist/static/js/40.67f8a4cc.chunk.js.map +0 -1
- package/dist/static/js/41.8dc69989.chunk.js +0 -2
- package/dist/static/js/41.8dc69989.chunk.js.map +0 -1
- package/dist/static/js/42.a8312848.chunk.js +0 -2
- package/dist/static/js/42.a8312848.chunk.js.map +0 -1
- package/dist/static/js/43.ce512d00.chunk.js +0 -2
- package/dist/static/js/43.ce512d00.chunk.js.map +0 -1
- package/dist/static/js/44.197bff30.chunk.js +0 -2
- package/dist/static/js/44.197bff30.chunk.js.map +0 -1
- package/dist/static/js/45.9c281539.chunk.js +0 -2
- package/dist/static/js/45.9c281539.chunk.js.map +0 -1
- package/dist/static/js/46.8625525a.chunk.js +0 -2
- package/dist/static/js/46.8625525a.chunk.js.map +0 -1
- package/dist/static/js/47.89e00f8b.chunk.js +0 -2
- package/dist/static/js/47.89e00f8b.chunk.js.map +0 -1
- package/dist/static/js/48.1150630c.chunk.js +0 -2
- package/dist/static/js/48.1150630c.chunk.js.map +0 -1
- package/dist/static/js/49.d628f230.chunk.js +0 -2
- package/dist/static/js/49.d628f230.chunk.js.map +0 -1
- package/dist/static/js/5.8b318946.chunk.js +0 -3
- package/dist/static/js/5.8b318946.chunk.js.map +0 -1
- package/dist/static/js/50.f54ba3ed.chunk.js +0 -2
- package/dist/static/js/50.f54ba3ed.chunk.js.map +0 -1
- package/dist/static/js/51.b1d2a0f9.chunk.js +0 -2
- package/dist/static/js/51.b1d2a0f9.chunk.js.map +0 -1
- package/dist/static/js/52.d9cdf428.chunk.js +0 -2
- package/dist/static/js/52.d9cdf428.chunk.js.map +0 -1
- package/dist/static/js/53.eb9374c8.chunk.js +0 -2
- package/dist/static/js/53.eb9374c8.chunk.js.map +0 -1
- package/dist/static/js/54.0246cd90.chunk.js +0 -2
- package/dist/static/js/54.0246cd90.chunk.js.map +0 -1
- package/dist/static/js/55.f6407d07.chunk.js +0 -2
- package/dist/static/js/55.f6407d07.chunk.js.map +0 -1
- package/dist/static/js/56.030f4c2c.chunk.js +0 -2
- package/dist/static/js/56.030f4c2c.chunk.js.map +0 -1
- package/dist/static/js/57.106fdb37.chunk.js +0 -2
- package/dist/static/js/57.106fdb37.chunk.js.map +0 -1
- package/dist/static/js/58.9efa9671.chunk.js +0 -2
- package/dist/static/js/58.9efa9671.chunk.js.map +0 -1
- package/dist/static/js/59.3b47d57a.chunk.js +0 -2
- package/dist/static/js/59.3b47d57a.chunk.js.map +0 -1
- package/dist/static/js/6.8ac679aa.chunk.js +0 -2
- package/dist/static/js/6.8ac679aa.chunk.js.map +0 -1
- package/dist/static/js/60.0335fabd.chunk.js +0 -2
- package/dist/static/js/60.0335fabd.chunk.js.map +0 -1
- package/dist/static/js/61.cf7f57fc.chunk.js +0 -2
- package/dist/static/js/61.cf7f57fc.chunk.js.map +0 -1
- package/dist/static/js/62.bb858ee5.chunk.js +0 -2
- package/dist/static/js/62.bb858ee5.chunk.js.map +0 -1
- package/dist/static/js/63.107ffad7.chunk.js +0 -2
- package/dist/static/js/63.107ffad7.chunk.js.map +0 -1
- package/dist/static/js/64.a485a8c8.chunk.js +0 -2
- package/dist/static/js/64.a485a8c8.chunk.js.map +0 -1
- package/dist/static/js/65.3593d4bb.chunk.js +0 -2
- package/dist/static/js/65.3593d4bb.chunk.js.map +0 -1
- package/dist/static/js/66.9202016a.chunk.js +0 -2
- package/dist/static/js/66.9202016a.chunk.js.map +0 -1
- package/dist/static/js/67.45ef3717.chunk.js +0 -2
- package/dist/static/js/67.45ef3717.chunk.js.map +0 -1
- package/dist/static/js/68.e638cd4b.chunk.js +0 -2
- package/dist/static/js/68.e638cd4b.chunk.js.map +0 -1
- package/dist/static/js/69.b404f87e.chunk.js +0 -2
- package/dist/static/js/69.b404f87e.chunk.js.map +0 -1
- package/dist/static/js/7.a488d90e.chunk.js +0 -2
- package/dist/static/js/7.a488d90e.chunk.js.map +0 -1
- package/dist/static/js/70.32ae1b4a.chunk.js +0 -2
- package/dist/static/js/70.32ae1b4a.chunk.js.map +0 -1
- package/dist/static/js/71.14e7b1f4.chunk.js +0 -2
- package/dist/static/js/71.14e7b1f4.chunk.js.map +0 -1
- package/dist/static/js/72.6f860cde.chunk.js +0 -2
- package/dist/static/js/72.6f860cde.chunk.js.map +0 -1
- package/dist/static/js/73.8839e5fd.chunk.js +0 -3
- package/dist/static/js/73.8839e5fd.chunk.js.LICENSE.txt +0 -11
- package/dist/static/js/73.8839e5fd.chunk.js.map +0 -1
- package/dist/static/js/74.da2b0a38.chunk.js +0 -2
- package/dist/static/js/74.da2b0a38.chunk.js.map +0 -1
- package/dist/static/js/8.ab0b80c1.chunk.js +0 -2
- package/dist/static/js/8.ab0b80c1.chunk.js.map +0 -1
- package/dist/static/js/9.12e26806.chunk.js +0 -2
- package/dist/static/js/9.12e26806.chunk.js.map +0 -1
- package/dist/static/js/main.4aab9f6d.chunk.js +0 -2
- package/dist/static/js/main.4aab9f6d.chunk.js.map +0 -1
- package/dist/static/js/polyfills-css-shim.4a931322.chunk.js +0 -2
- package/dist/static/js/polyfills-css-shim.4a931322.chunk.js.map +0 -1
- package/dist/static/js/runtime-main.847af914.js +0 -2
- package/dist/static/js/runtime-main.847af914.js.map +0 -1
- package/dist/static/media/getFetch.582d29c4.cjs +0 -1
- /package/dist/static/js/{0.71c0b4a8.chunk.js.LICENSE.txt → 0.edb27f5c.chunk.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{5.8b318946.chunk.js.LICENSE.txt → 5.c9623f8e.chunk.js.LICENSE.txt} +0 -0
- /package/dist/static/js/{23.96d71d61.chunk.js.LICENSE.txt → polyfills-dom.c60c028d.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
window.GenesysCloudClientAuth=function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=24)}([function(t,e,r){"use strict";var o=SyntaxError,n=Function,i=TypeError,a=function(t){try{return n('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new i},c=s?function(){try{return u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,p=r(11)(),l=Object.getPrototypeOf||function(t){return t.__proto__},f={},y="undefined"==typeof Uint8Array?void 0:l(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":p?l([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":f,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?l(l([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?l((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?l((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?l(""[Symbol.iterator]()):void 0,"%Symbol%":p?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":y,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},d={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},m=r(1),g=r(14),b=m.call(Function.call,Array.prototype.concat),v=m.call(Function.apply,Array.prototype.splice),w=m.call(Function.call,String.prototype.replace),S=m.call(Function.call,String.prototype.slice),_=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O=/\\(\\)?/g,j=function(t){var e=S(t,0,1),r=S(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return w(t,_,(function(t,e,r,o){n[n.length]=r?w(o,O,"$1"):e||t})),n},A=function(t,e){var r,n=t;if(g(d,n)&&(n="%"+(r=d[n])[0]+"%"),g(h,n)){var s=h[n];if(s===f&&(s=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&(r=l(n.prototype))}return h[e]=r,r}(n)),void 0===s&&!e)throw new i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new i('"allowMissing" argument must be a boolean');var r=j(t),n=r.length>0?r[0]:"",a=A("%"+n+"%",e),u=a.name,c=a.value,p=!1,l=a.alias;l&&(n=l[0],v(r,b([0,1],l)));for(var f=1,y=!0;f<r.length;f+=1){var d=r[f],m=S(d,0,1),w=S(d,-1);if(('"'===m||"'"===m||"`"===m||'"'===w||"'"===w||"`"===w)&&m!==w)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&y||(p=!0),g(h,u="%"+(n+="."+d)+"%"))c=h[u];else if(null!=c){if(!(d in c)){if(!e)throw new i("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&f+1>=r.length){var _=s(c,d);c=(y=!!_)&&"get"in _&&!("originalValue"in _.get)?_.get:c[d]}else y=g(c,d),c=c[d];y&&!p&&(h[u]=c)}}return c}},function(t,e,r){"use strict";var o=r(13);t.exports=Function.prototype.bind||o},function(t,e,r){"use strict";var o=String.prototype.replace,n=/%20/g,i="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(t){return o.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:a}},function(t,e,r){"use strict";var o=r(2),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],a=n.obj[n.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],p=a[c];"object"==typeof p&&null!==p&&-1===r.indexOf(p)&&(e.push({obj:a,prop:c}),r.push(p))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var p=s.charCodeAt(c);45===p||46===p||95===p||126===p||p>=48&&p<=57||p>=65&&p<=90||p>=97&&p<=122||i===o.RFC1738&&(40===p||41===p)?u+=s.charAt(c):p<128?u+=a[p]:p<2048?u+=a[192|p>>6]+a[128|63&p]:p<55296||p>=57344?u+=a[224|p>>12]+a[128|p>>6&63]+a[128|63&p]:(c+=1,p=65536+((1023&p)<<10|1023&s.charCodeAt(c)),u+=a[240|p>>18]+a[128|p>>12&63]+a[128|p>>6&63]+a[128|63&p])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=s(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),a)}}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!==t&&"object"===o(t)}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;"undefined"!=typeof window?n=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),n=void 0):n=self;var i=r(6),a=r(7),s=r(8),u=r(20),c=r(4),p=r(21),l=r(23);function f(){}t.exports=function(t,r){return"function"==typeof r?new e.Request("GET",t).end(r):1===arguments.length?new e.Request("GET",t):new e.Request(t,r)};var y=e=t.exports;e.Request=w,y.getXHR=function(){if(n.XMLHttpRequest&&(!n.location||"file:"!==n.location.protocol||!n.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var h="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function d(t){if(!c(t))return t;var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&m(e,r,t[r]);return e.join("&")}function m(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r))r.forEach((function(r){m(t,e,r)}));else if(c(r))for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&m(t,"".concat(e,"[").concat(o,"]"),r[o]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function g(t){for(var e,r,o={},n=t.split("&"),i=0,a=n.length;i<a;++i)-1===(r=(e=n[i]).indexOf("="))?o[decodeURIComponent(e)]="":o[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return o}function b(t){return/[/+]json($|[^-\w])/i.test(t)}function v(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,o,n,i=t.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(e=(r=i[s]).indexOf(":"))&&(o=r.slice(0,e).toLowerCase(),n=h(r.slice(e+1)),a[o]=n);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function w(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,o=null;try{o=new v(r)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",o);try{r._isResponseOK(o)||(t=new Error(o.statusText||o.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=o,t.status=o.status,r.callback(t,o)):r.callback(null,o)}))}function S(t,e,r){var o=y("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}y.serializeObject=d,y.parseString=g,y.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},y.serialize={"application/x-www-form-urlencoded":s.stringify,"application/json":a},y.parse={"application/x-www-form-urlencoded":g,"application/json":JSON.parse},p(v.prototype),v.prototype._parseBody=function(t){var e=y.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&b(this.type)&&(e=y.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},v.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,o="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),n=new Error(o);return n.status=this.status,n.method=e,n.url=r,n},y.Response=v,i(w.prototype),u(w.prototype),w.prototype.type=function(t){return this.set("Content-Type",y.types[t]||t),this},w.prototype.accept=function(t){return this.set("Accept",y.types[t]||t),this},w.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"===o(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var n=function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,n)},w.prototype.query=function(t){return"string"!=typeof t&&(t=d(t)),t&&this._query.push(t),this},w.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},w.prototype._getFormData=function(){return this._formData||(this._formData=new n.FormData),this._formData},w.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},w.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},w.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},w.prototype.ca=w.prototype.agent,w.prototype.buffer=w.prototype.ca,w.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},w.prototype.pipe=w.prototype.write,w.prototype._isHost=function(t){return t&&"object"===o(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},w.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||f,this._finalizeQueryString(),this._end()},w.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},w.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=y.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.onreadystatechange=function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var o;try{o=e.status}catch(t){o=0}if(!o){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}};var o=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",o.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",o.bind(null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var n=this._header["content-type"],i=this._serializer||y.serialize[n?n.split(";")[0]:""];!i&&b(n)&&(i=y.serialize["application/json"]),i&&(r=i(r))}for(var a in this.header)null!==this.header[a]&&Object.prototype.hasOwnProperty.call(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},y.agent=function(){return new l},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach((function(t){l.prototype[t.toLowerCase()]=function(e,r){var o=new y.Request(t,e);return this._setDefaults(o),r&&o.end(r),o}})),l.prototype.del=l.prototype.delete,y.get=function(t,e,r){var o=y("GET",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},y.head=function(t,e,r){var o=y("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},y.options=function(t,e,r){var o=y("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.del=S,y.delete=S,y.patch=function(t,e,r){var o=y("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.post=function(t,e,r){var o=y("POST",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},y.put=function(t,e,r){var o=y("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}},function(t,e,r){function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}t.exports=o,o.prototype.on=o.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},o.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((r=o[n])===e||r.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},o.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,e)}return this},o.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},o.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e){t.exports=n,n.default=n,n.stable=a,n.stableStringify=a;var r=[],o=[];function n(t,e,n){var i;for(!function t(e,n,i,a){var s;if("object"==typeof e&&null!==e){for(s=0;s<i.length;s++)if(i[s]===e){var u=Object.getOwnPropertyDescriptor(a,n);return void(void 0!==u.get?u.configurable?(Object.defineProperty(a,n,{value:"[Circular]"}),r.push([a,n,e,u])):o.push([e,n]):(a[n]="[Circular]",r.push([a,n,e])))}if(i.push(e),Array.isArray(e))for(s=0;s<e.length;s++)t(e[s],s,i,e);else{var c=Object.keys(e);for(s=0;s<c.length;s++){var p=c[s];t(e[p],p,i,e)}}i.pop()}}(t,"",[],void 0),i=0===o.length?JSON.stringify(t,e,n):JSON.stringify(t,s(e),n);0!==r.length;){var a=r.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return i}function i(t,e){return t<e?-1:t>e?1:0}function a(t,e,n){var a,u=function t(e,n,a,s){var u;if("object"==typeof e&&null!==e){for(u=0;u<a.length;u++)if(a[u]===e){var c=Object.getOwnPropertyDescriptor(s,n);return void(void 0!==c.get?c.configurable?(Object.defineProperty(s,n,{value:"[Circular]"}),r.push([s,n,e,c])):o.push([e,n]):(s[n]="[Circular]",r.push([s,n,e])))}if("function"==typeof e.toJSON)return;if(a.push(e),Array.isArray(e))for(u=0;u<e.length;u++)t(e[u],u,a,e);else{var p={},l=Object.keys(e).sort(i);for(u=0;u<l.length;u++){var f=l[u];t(e[f],f,a,e),p[f]=e[f]}if(void 0===s)return p;r.push([s,n,e]),s[n]=p}a.pop()}}(t,"",[],void 0)||t;for(a=0===o.length?JSON.stringify(u,e,n):JSON.stringify(u,s(e),n);0!==r.length;){var c=r.pop();4===c.length?Object.defineProperty(c[0],c[1],c[3]):c[0][c[1]]=c[2]}return a}function s(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(o.length>0)for(var n=0;n<o.length;n++){var i=o[n];if(i[1]===e&&i[0]===r){r="[Circular]",o.splice(n,1);break}}return t.call(this,e,r)}}},function(t,e,r){"use strict";var o=r(9),n=r(19),i=r(2);t.exports={formats:i,parse:n,stringify:o}},function(t,e,r){"use strict";var o=r(10),n=r(3),i=r(2),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,p=function(t,e){c.apply(t,u(e)?e:[e])},l=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},h=function t(e,r,i,a,s,c,l,f,h,d,m,g,b,v,w){var S,_=e;if(w.has(e))throw new RangeError("Cyclic object value");if("function"==typeof l?_=l(r,_):_ instanceof Date?_=d(_):"comma"===i&&u(_)&&(_=n.maybeMap(_,(function(t){return t instanceof Date?d(t):t}))),null===_){if(a)return c&&!b?c(r,y.encoder,v,"key",m):r;_=""}if("string"==typeof(S=_)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||n.isBuffer(_))return c?[g(b?r:c(r,y.encoder,v,"key",m))+"="+g(c(_,y.encoder,v,"value",m))]:[g(r)+"="+g(String(_))];var O,j=[];if(void 0===_)return j;if("comma"===i&&u(_))O=[{value:_.length>0?_.join(",")||null:void 0}];else if(u(l))O=l;else{var A=Object.keys(_);O=f?A.sort(f):A}for(var E=0;E<O.length;++E){var T=O[E],x="object"==typeof T&&void 0!==T.value?T.value:_[T];if(!s||null!==x){var P=u(_)?"function"==typeof i?i(r,T):r:r+(h?"."+T:"["+T+"]");w.set(e,!0);var k=o();p(j,t(x,P,i,a,s,c,l,f,h,d,m,g,b,v,k))}}return j};t.exports=function(t,e){var r,n=t,c=function(t){if(!t)return y;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=i.formatters[r],n=y.filter;return("function"==typeof t.filter||u(t.filter))&&(n=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===t.allowDots?y.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof c.filter?n=(0,c.filter)("",n):u(c.filter)&&(r=c.filter);var l,f=[];if("object"!=typeof n||null===n)return"";l=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var d=s[l];r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var m=o(),g=0;g<r.length;++g){var b=r[g];c.skipNulls&&null===n[b]||p(f,h(n[b],b,d,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,m))}var v=f.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B&":w+="utf8=%E2%9C%93&"),v.length>0?w+v:""}},function(t,e,r){"use strict";var o=r(0),n=r(15),i=r(17),a=o("%TypeError%"),s=o("%WeakMap%",!0),u=o("%Map%",!0),c=n("WeakMap.prototype.get",!0),p=n("WeakMap.prototype.set",!0),l=n("WeakMap.prototype.has",!0),f=n("Map.prototype.get",!0),y=n("Map.prototype.set",!0),h=n("Map.prototype.has",!0),d=function(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new a("Side channel does not contain "+i(t))},get:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return c(t,o)}else if(u){if(e)return f(e,o)}else if(r)return function(t,e){var r=d(t,e);return r&&r.value}(r,o)},has:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return l(t,o)}else if(u){if(e)return h(e,o)}else if(r)return function(t,e){return!!d(t,e)}(r,o);return!1},set:function(o,n){s&&o&&("object"==typeof o||"function"==typeof o)?(t||(t=new s),p(t,o,n)):u?(e||(e=new u),y(e,o,n)):(r||(r={key:{},next:null}),function(t,e,r){var o=d(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(r,o,n))}};return o}},function(t,e,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(12);t.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&n())))}},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},function(t,e,r){"use strict";var o="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,i=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==i.call(e))throw new TypeError(o+e);for(var r,a=n.call(arguments,1),s=function(){if(this instanceof r){var o=e.apply(this,a.concat(n.call(arguments)));return Object(o)===o?o:this}return e.apply(t,a.concat(n.call(arguments)))},u=Math.max(0,e.length-a.length),c=[],p=0;p<u;p++)c.push("$"+p);if(r=Function("binder","return function ("+c.join(",")+"){ return binder.apply(this,arguments); }")(s),e.prototype){var l=function(){};l.prototype=e.prototype,r.prototype=new l,l.prototype=null}return r}},function(t,e,r){"use strict";var o=r(1);t.exports=o.call(Function.call,Object.prototype.hasOwnProperty)},function(t,e,r){"use strict";var o=r(0),n=r(16),i=n(o("String.prototype.indexOf"));t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n(r):r}},function(t,e,r){"use strict";var o=r(1),n=r(0),i=n("%Function.prototype.apply%"),a=n("%Function.prototype.call%"),s=n("%Reflect.apply%",!0)||o.call(a,i),u=n("%Object.getOwnPropertyDescriptor%",!0),c=n("%Object.defineProperty%",!0),p=n("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(o,a,arguments);if(u&&c){var r=u(e,"length");r.configurable&&c(e,"length",{value:1+p(0,t.length-(arguments.length-1))})}return e};var l=function(){return s(o,i,arguments)};c?c(t.exports,"apply",{value:l}):t.exports.apply=l},function(t,e,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,p=s&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,d=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b="function"==typeof BigInt?BigInt.prototype.valueOf:null,v=Object.getOwnPropertySymbols,w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_=Object.prototype.propertyIsEnumerable,O=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null),j=r(18).custom,A=j&&k(j)?j:null,E="function"==typeof Symbol&&void 0!==Symbol.toStringTag?Symbol.toStringTag:null;function T(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function x(t){return String(t).replace(/"/g,""")}function P(t){return!("[object Array]"!==C(t)||E&&"object"==typeof t&&E in t)}function k(t){if(S)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!w)return!1;try{return w.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,o,n){var s=r||{};if(I(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(I(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!I(s,"customInspect")||s.customInspect;if("boolean"!=typeof u)throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(I(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength,n="... "+o+" more character"+(o>1?"s":"");return t(e.slice(0,r.maxStringLength),r)+n}return T(e.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,N),"single",r)}(e,s);if("number"==typeof e)return 0===e?1/0/e>0?"0":"-0":String(e);if("bigint"==typeof e)return String(e)+"n";var d=void 0===s.depth?5:s.depth;if(void 0===o&&(o=0),o>=d&&d>0&&"object"==typeof e)return P(e)?"[Array]":"[Object]";var v=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=Array(t.indent+1).join(" ")}return{base:r,prev:Array(e+1).join(r)}}(s,o);if(void 0===n)n=[];else if(D(n,e)>=0)return"[Circular]";function _(e,r,i){if(r&&(n=n.slice()).push(r),i){var a={depth:s.depth};return I(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,o+1,n)}return t(e,s,o+1,n)}if("function"==typeof e){var j=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(e),R=q(e,_);return"[Function"+(j?": "+j:" (anonymous)")+"]"+(R.length>0?" { "+R.join(", ")+" }":"")}if(k(e)){var H=S?String(e).replace(/^(Symbol\(.*\))_[^)]*$/,"$1"):w.call(e);return"object"!=typeof e||S?H:U(H)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(e)){for(var W="<"+String(e.nodeName).toLowerCase(),$=e.attributes||[],B=0;B<$.length;B++)W+=" "+$[B].name+"="+T(x($[B].value),"double",s);return W+=">",e.childNodes&&e.childNodes.length&&(W+="..."),W+="</"+String(e.nodeName).toLowerCase()+">"}if(P(e)){if(0===e.length)return"[]";var z=q(e,_);return v&&!function(t){for(var e=0;e<t.length;e++)if(D(t[e],"\n")>=0)return!1;return!0}(z)?"["+L(z,v)+"]":"[ "+z.join(", ")+" ]"}if(function(t){return!("[object Error]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)){var G=q(e,_);return 0===G.length?"["+String(e)+"]":"{ ["+String(e)+"] "+G.join(", ")+" }"}if("object"==typeof e&&u){if(A&&"function"==typeof e[A])return e[A]();if("function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var V=[];return a.call(e,(function(t,r){V.push(_(r,e,!0)+" => "+_(t,e))})),M("Map",i.call(e),V,v)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var J=[];return p.call(e,(function(t){J.push(_(t,e))})),M("Set",c.call(e),J,v)}if(function(t){if(!l||!t||"object"!=typeof t)return!1;try{l.call(t,l);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return F("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{l.call(t,l)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return F("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return F("WeakRef");if(function(t){return!("[object Number]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(_(Number(e)));if(function(t){if(!t||"object"!=typeof t||!b)return!1;try{return b.call(t),!0}catch(t){}return!1}(e))return U(_(b.call(e)));if(function(t){return!("[object Boolean]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(h.call(e));if(function(t){return!("[object String]"!==C(t)||E&&"object"==typeof t&&E in t)}(e))return U(_(String(e)));if(!function(t){return!("[object Date]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)&&!function(t){return!("[object RegExp]"!==C(t)||E&&"object"==typeof t&&E in t)}(e)){var Q=q(e,_),X=O?O(e)===Object.prototype:e instanceof Object||e.constructor===Object,K=e instanceof Object?"":"null prototype",Y=!X&&E&&Object(e)===e&&E in e?C(e).slice(8,-1):K?"Object":"",Z=(X||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(Y||K?"["+[].concat(Y||[],K||[]).join(": ")+"] ":"");return 0===Q.length?Z+"{}":v?Z+"{"+L(Q,v)+"}":Z+"{ "+Q.join(", ")+" }"}return String(e)};var R=Object.prototype.hasOwnProperty||function(t){return t in this};function I(t,e){return R.call(t,e)}function C(t){return d.call(t)}function D(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function N(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function U(t){return"Object("+t+")"}function F(t){return t+" { ? }"}function M(t,e,r,o){return t+" ("+e+") {"+(o?L(r,o):r.join(", "))+"}"}function L(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+t.join(","+r)+"\n"+e.prev}function q(t,e){var r=P(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=I(t,n)?e(t[n],t):""}var i,a="function"==typeof v?v(t):[];if(S){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)I(t,u)&&(r&&String(Number(u))===u&&u<t.length||S&&i["$"+u]instanceof Symbol||(/[^\w$]/.test(u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if("function"==typeof v)for(var c=0;c<a.length;c++)_.call(t,a[c])&&o.push("["+e(a[c])+"]: "+e(t[a[c]],t));return o}},function(t,e){},function(t,e,r){"use strict";var o=r(3),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,p=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;p.push(c)}for(var l=0;r.depth>0&&null!==(s=a.exec(i))&&l<r.depth;){if(l+=1,!r.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;p.push(s[1])}return s&&p.push("["+i.slice(s.index)+"]"),function(t,e,r,o){for(var n=o?e:u(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(c,10);r.parseArrays||""!==c?!isNaN(p)&&s!==c&&String(p)===c&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(a=[])[p]=n:a[c]=n:a={0:n}}n=a}return n}(p,e,r,o)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var p="string"==typeof t?function(t,e){var r,c={},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,f=p.split(e.delimiter,l),y=-1,h=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?h="utf-8":"utf8=%26%2310003%3B"===f[r]&&(h="iso-8859-1"),y=r,r=f.length);for(r=0;r<f.length;++r)if(r!==y){var d,m,g=f[r],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(d=e.decoder(g,a.decoder,h,"key"),m=e.strictNullHandling?null:""):(d=e.decoder(g.slice(0,v),a.decoder,h,"key"),m=o.maybeMap(u(g.slice(v+1),e),(function(t){return e.decoder(t,a.decoder,h,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===h&&(m=s(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),n.call(c,d)?c[d]=o.combine(c[d],m):c[d]=m}return c}(t,r):t,l=r.plainObjects?Object.create(null):{},f=Object.keys(p),y=0;y<f.length;++y){var h=f[y],d=c(h,p[h],r,"string"==typeof t);l=o.merge(l,d,r)}return!0===r.allowSparse?l:o.compact(l)}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=r(4);function i(t){if(t)return function(t){for(var e in i.prototype)Object.prototype.hasOwnProperty.call(i.prototype,e)&&(t[e]=i.prototype[e]);return t}(t)}t.exports=i,i.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},i.prototype.parse=function(t){return this._parser=t,this},i.prototype.responseType=function(t){return this._responseType=t,this},i.prototype.serialize=function(t){return this._serializer=t,this},i.prototype.timeout=function(t){if(!t||"object"!==o(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},i.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var a=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),s=new Set([408,413,429,500,502,503,504,521,522,524]);i.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&s.has(e.status))return!0;if(t){if(t.code&&a.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},i.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},i.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var o=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){o.on("abort",(function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)e(r.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}})),o.end((function(r,o){r?e(r):t(o)}))}))}return this._fullfilledPromise.then(t,e)},i.prototype.catch=function(t){return this.then(void 0,t)},i.prototype.use=function(t){return t(this),this},i.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},i.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},i.prototype.get=function(t){return this._header[t.toLowerCase()]},i.prototype.getHeader=i.prototype.get,i.prototype.set=function(t,e){if(n(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},i.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},i.prototype.field=function(t,e){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(n(t)){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&this.field(r,t[r]);return this}if(Array.isArray(e)){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&this.field(t,e[o]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),this._getFormData().append(t,e),this},i.prototype.abort=function(){return this._aborted||(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort")),this},i.prototype._auth=function(t,e,r,o){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(o("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},i.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},i.prototype.redirects=function(t){return this._maxRedirects=t,this},i.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},i.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},i.prototype.send=function(t){var e=n(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&n(this._data))for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(this._data[o]=t[o]);else"string"==typeof t?(r||this.type("form"),(r=this._header["content-type"])&&(r=r.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||r||this.type("json"),this},i.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},i.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.slice(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+"?"+r.join("&")}}},i.prototype._appendQueryString=function(){console.warn("Unsupported")},i.prototype._timeoutError=function(t,e,r){if(!this._aborted){var o=new Error("".concat(t+e,"ms exceeded"));o.timeout=e,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.timedoutError=o,this.abort(),this.callback(o)}},i.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}},function(t,e,r){"use strict";var o=r(22);function n(t){if(t)return function(t){for(var e in n.prototype)Object.prototype.hasOwnProperty.call(n.prototype,e)&&(t[e]=n.prototype[e]);return t}(t)}t.exports=n,n.prototype.get=function(t){return this.header[t.toLowerCase()]},n.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=o.type(e);var r=o.params(e);for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},n.prototype._setStatusProperties=function(t){var e=t/100|0;this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},function(t,e,r){"use strict";function o(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){var e,r={},n=o(t.split(/ *; */));try{for(n.s();!(e=n.n()).done;){var i=e.value.split(/ *= */),a=i.shift(),s=i.shift();a&&s&&(r[a]=s)}}catch(t){n.e(t)}finally{n.f()}return r},e.parseLinks=function(t){var e,r={},n=o(t.split(/ *, */));try{for(n.s();!(e=n.n()).done;){var i=e.value.split(/ *; */),a=i[0].slice(1,-1);r[i[1].split(/ *= */)[1].slice(1,-1)]=a}}catch(t){n.e(t)}finally{n.f()}return r},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t}},function(t,e,r){"use strict";function o(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function i(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach((function(t){i.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return this._defaults.push({fn:t,args:r}),this}})),i.prototype._setDefaults=function(t){this._defaults.forEach((function(e){t[e.fn].apply(t,o(e.args))}))},t.exports=i},function(t,e,r){"use strict";r.r(e),r.d(e,"GenesysCloudClientAuthenticator",(function(){return O})),r.d(e,"authenticatorFactory",(function(){return E})),r.d(e,"handleRedirectFromLogin",(function(){return j})),r.d(e,"isIssuedTimeWithinTimeframe",(function(){return w})),r.d(e,"isIssuedTimeWithinWindow",(function(){return S})),r.d(e,"tokenWasIssuedAt",(function(){return _})),r.d(e,"parseOauthParams",(function(){return b})),r.d(e,"TimeoutError",(function(){return m})),r.d(e,"VERSION",(function(){return d}));function o(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function s(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((o=o.apply(t,e||[])).next())}))}Object.create;Object.create;var n,i=r(5),a=r.n(i),s=new Uint8Array(16);function u(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(s)}var c=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var p=function(t){return"string"==typeof t&&c.test(t)},l=[],f=0;f<256;++f)l.push((f+256).toString(16).substr(1));var y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]).toLowerCase();if(!p(r))throw TypeError("Stringified UUID is invalid");return r};var h=function(t,e,r){var o=(t=t||{}).random||(t.rng||u)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){r=r||0;for(var n=0;n<16;++n)e[r+n]=o[n];return e}return y(o)};var d="0.0.2";class m extends Error{constructor(){super(...arguments),this.name="TIMEOUT_ERROR"}}class g extends Error{constructor(t,e){const r=e&&e instanceof Error;super(r?e.message:e),r&&(this.name=e.name),this.translationKey=t}}const b=(t=window.location.hash)=>{const e={},r={},o=new RegExp("^#*(.+?)=(.+?)$","i");if(t.split("&").forEach(t=>{const r=o.exec(t);r&&(e[r[1]]=decodeURIComponent(decodeURIComponent(r[2].replace(/\+/g,"%20"))))}),e.error)return e;if(e.access_token){if(e.state&&(r.state=e.state),e.expires_in){const t=1e3*parseInt(e.expires_in.replace(/\+/g,"%20"));r.tokenExpiryTime=Date.now()+t,r.tokenExpiryTimeString=new Date(r.tokenExpiryTime).toISOString()}r.accessToken=e.access_token.replace(/\+/g,"%20")}return r},v=(t,e)=>{e?(console.log(`%c [DEBUG:gc-client-auth:${d}] ${t}`,"color: #f29f2c",e),"object"==typeof e&&console.log(`%c [DEBUG:gc-client-auth:${d}] ^ stringified: ${JSON.stringify(e)}`,"color: #f29f2c")):console.log(`%c [DEBUG:gc-client-auth:${d}] ${t}`,"color: #f29f2c")},w=(t,e=691199e3,r=168e4,o=Date.now())=>o-_(t,e)<r,S=(t,e,r)=>w(t,e,r),_=(t,e)=>t-e;class O{constructor(t,e={}){this.VERSION=d,this.clientId=t,e.storageKey||(e.storageKey="gc_client_auth_data"),"boolean"!=typeof e.persist&&(e.persist=!1),this.config=Object.assign({},e),this.setEnvironment(e.environment),this.timeout=16e3,this.authData={},this.authentications={"PureCloud OAuth":{type:"oauth2"}};try{localStorage.setItem("genesys_cloud_local_storage_test","genesys_cloud_local_storage_test"),localStorage.removeItem("genesys_cloud_local_storage_test"),this.hasLocalStorage=!0}catch(t){this.hasLocalStorage=!1}this._loadSettings()}loginImplicitGrant(t={},e){const r=e||b();return new Promise((e,o)=>{t.org&&!t.provider?o(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org?o(new Error("opts.org must be set if opts.provider is set")):t.redirectUri||t.usePopupAuth||o(new Error("redirectUri must be provided for implicit grant and not utilizing client-auth app for popup auth")),r&&r.error&&(r.accessToken=void 0,this._saveSettings(r),o(new Error(`[${r.error}] ${r.error_description}`))),r.accessToken&&this._saveSettings(r),this._testTokenAccess().then(()=>(!this.authData.state&&t.state&&(this.authData.state=t.state),e(this.authData))).catch(r=>{this._debug("Error encountered during login. This is normal if the application has not yet been authorized.",r);const n={client_id:encodeURIComponent(this.clientId),response_type:"token"};if(t.redirectUri&&(n.redirect_uri=encodeURIComponent(t.redirectUri)),t.state&&(n.state=encodeURIComponent(t.state)),t.org&&(n.org=encodeURIComponent(t.org)),t.provider&&(n.provider=encodeURIComponent(t.provider)),t.usePopupAuth){if(!this.hasLocalStorage)return o(new Error("localStorage is unavailable. Cannot authenticate via popup window."));this._debug("using popup auth – adding listener"),this._authenticateViaPopup(n,t.popupTimeout||15e3).then(t=>{this._saveSettings(t),e(t)}).catch(o)}else{const t=this._buildAuthUrl("oauth/authorize",n);this._debug("Implicit grant: redirecting to: "+t),window.location.replace(t),o(new Error(`Routing to login: "${t}"`))}})})}setEnvironment(t){t||(t="mypurecloud.com"),(t=t.replace(/\/+$/,"")).startsWith("https://")&&(t=t.substring(8)),t.startsWith("http://")&&(t=t.substring(7)),t.startsWith("api.")&&(t=t.substring(4)),this.environment=t,this.basePath="https://api."+t,this.authUrl="https://login."+t}clearAuthData(){this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0})}logout(t){this.clearAuthData();const e={client_id:encodeURIComponent(this.clientId)};t&&(e.redirect_uri=encodeURIComponent(t));const r=this._buildAuthUrl("logout",e);window.location.replace(r)}setAccessToken(t){this._saveSettings({accessToken:t})}testAccessToken(t){return this.callApi("/api/v2/tokens/me","get",t)}parseDate(t){return new Date(t.replace(/T/i," "))}paramToString(t){return t?t instanceof Date?t.toJSON():t.toString():""}buildUrl(t,e={}){t.match(/^\//)||(t="/"+t);return(this.basePath+t).replace(/\{([\w-]+)\}/g,(t,r)=>{let o;return o=Object.getOwnPropertyDescriptor(e,r)?this.paramToString(e[r]):t,encodeURIComponent(o)})}callApi(t,e,r){var o;const n=this.buildUrl(t);return a.a[e](n).type("application/json").timeout(this.timeout).set("Authorization","Bearer "+(r||(null===(o=this.authData)||void 0===o?void 0:o.accessToken))).send()}_debug(t,e){this.config.debugMode&&v(t,e)}_saveSettings(t){try{if(this.authData.accessToken=t.accessToken,this.authentications["PureCloud OAuth"].accessToken=t.accessToken,t.state&&(this.authData.state=t.state),this.authData.error=t.error,this.authData.error_description=t.error_description,t.tokenExpiryTime&&(this.authData.tokenExpiryTime=t.tokenExpiryTime,this.authData.tokenExpiryTimeString=t.tokenExpiryTimeString),!this.config.persist)return void this._debug("persist is not true. Settings will not be saved.");if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be saved.");const e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(this.config.storageKey,JSON.stringify(e)),this._debug("Auth data saved to local storage",e)}catch(t){console.error(t)}}_getId(t){return"gc-ca_"+(t=t||h())}_authenticateViaPopup(t,e){const r=this._getId(),o=Object.assign(Object.assign({},t),{storageKey:this.config.storageKey});this.config.debugMode&&(o.debug=!0),localStorage.setItem(r,JSON.stringify(o)),t.state=r,t.redirect_uri||(t.redirect_uri=encodeURIComponent(`https://apps.${this.environment}/client-auth`));const n=this._buildAuthUrl("oauth/authorize",t);return new Promise((o,i)=>{this._debug("Implicit grant: opening new window: "+n),window.open(n,"_blank","width=500px,height=500px,noreferrer,noopener,resizable,scrollbars,status");const a=setTimeout(()=>{this._debug("timeout for loginImplicitGrant using popup",t);const e=new m("Popup authentation timeout. It is possible that the popup was blocked or the login page encountered an error");i(e)},e),s=t=>{if(this._debug("value was just written to storage by another app",{key:t.key,newValue:t.newValue,oldValue:t.oldValue}),t.key===this.config.storageKey){this._debug("keys matched. resolving value",{key:t.key,value:t.newValue}),window.removeEventListener("storage",s),clearTimeout(a);const e=JSON.parse(t.newValue);localStorage.removeItem(r),o(e)}};window.addEventListener("storage",s)})}_testTokenAccess(){return o(this,void 0,void 0,(function*(){if(this._loadSettings(),!this.authentications["PureCloud OAuth"].accessToken)throw new g("errorTokenNotSet","No access token provided.");try{yield this.callApi("/api/v2/tokens/me","get")}catch(t){throw this._saveSettings({accessToken:void 0}),t}}))}_loadSettings(){if(!this.config.persist)return;if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be loaded.");const t=this.authData.state,e=localStorage.getItem(this.config.storageKey);this.authData=e?JSON.parse(e):{},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=t}_buildAuthUrl(t,e={}){return Object.keys(e).reduce((t,r)=>e[r]?`${t}&${r}=${e[r]}`:t,`${this.authUrl}/${t}?`)}}const j=()=>{const t=b();if(t.error)throw new Error(`[${t.error}]: ${t.error_description}`);if(!t.accessToken)throw new g("errorToken","No access token provided.");const e=t.state;if(!e)throw new g("errorStateParam","No state param on redirect. Unable to determine location to save auth data.");const r=JSON.parse(localStorage.getItem(e)||"false");if(!r||!r.storageKey)throw new g("errorParse","Unable to parse information from localStorage.");r.state?t.state=r.state:delete t.state,v("setting auth data to key: "+r.storageKey,t),localStorage.setItem(r.storageKey,JSON.stringify(t)),r.debug?v("In debug mode. Not closing window or removing storageId",{storageId:e,authData:t,href:window.location.href}):(v("removing temp storage key: "+e),localStorage.removeItem(e),v("closing window"),window.close())},A=new Map,E=(t,e)=>{let r=A.get(t);return r||(r=new O(t,e),A.set(t,r)),r};e.default=E}]);
|
|
1
|
+
window.GenesysCloudClientAuth=function(t){var e={};function r(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return t[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)r.d(o,n,function(e){return t[e]}.bind(null,n));return o},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=31)}([function(t,e,r){"use strict";var o=SyntaxError,n=Function,i=TypeError,a=function(t){try{return n('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new i},c=s?function(){try{return u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,l=r(13)(),p=r(15)(),f=Object.getPrototypeOf||(p?function(t){return t.__proto__}:null),y={},h="undefined"!=typeof Uint8Array&&f?f(Uint8Array):void 0,d={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l&&f?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":n,"%GeneratorFunction%":y,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l&&f?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l&&f?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l&&f?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l&&f?f(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":o,"%ThrowTypeError%":c,"%TypedArray%":h,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(f)try{null.error}catch(t){var m=f(f(t));d["%Error.prototype%"]=m}var g={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=r(1),v=r(17),w=b.call(Function.call,Array.prototype.concat),S=b.call(Function.apply,Array.prototype.splice),_=b.call(Function.call,String.prototype.replace),O=b.call(Function.call,String.prototype.slice),A=b.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T=/\\(\\)?/g,j=function(t){var e=O(t,0,1),r=O(t,-1);if("%"===e&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return _(t,E,(function(t,e,r,o){n[n.length]=r?_(o,T,"$1"):e||t})),n},x=function(t,e){var r,n=t;if(v(g,n)&&(n="%"+(r=g[n])[0]+"%"),v(d,n)){var s=d[n];if(s===y&&(s=function t(e){var r;if("%AsyncFunction%"===e)r=a("async function () {}");else if("%GeneratorFunction%"===e)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=a("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&f&&(r=f(n.prototype))}return d[e]=r,r}(n)),void 0===s&&!e)throw new i("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new o("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new i('"allowMissing" argument must be a boolean');if(null===A(/^%?[^%]*%?$/,t))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=j(t),n=r.length>0?r[0]:"",a=x("%"+n+"%",e),u=a.name,c=a.value,l=!1,p=a.alias;p&&(n=p[0],S(r,w([0,1],p)));for(var f=1,y=!0;f<r.length;f+=1){var h=r[f],m=O(h,0,1),g=O(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new o("property names with quotes must have matching quotes");if("constructor"!==h&&y||(l=!0),v(d,u="%"+(n+="."+h)+"%"))c=d[u];else if(null!=c){if(!(h in c)){if(!e)throw new i("base intrinsic for "+t+" exists, but the property is not available.");return}if(s&&f+1>=r.length){var b=s(c,h);c=(y=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[h]}else y=v(c,h),c=c[h];y&&!l&&(d[u]=c)}}return c}},function(t,e,r){"use strict";var o=r(16);t.exports=Function.prototype.bind||o},function(t,e,r){"use strict";var o=String.prototype.replace,n=/%20/g,i="RFC1738",a="RFC3986";t.exports={default:a,formatters:{RFC1738:function(t){return o.call(t,n,"+")},RFC3986:function(t){return String(t)}},RFC1738:i,RFC3986:a}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}e.type=function(t){return t.split(/ *; */).shift()},e.params=function(t){var e,r={},o=n(t.split(/ *; */));try{for(o.s();!(e=o.n()).done;){var i=e.value.split(/ *= */),a=i.shift(),s=i.shift();a&&s&&(r[a]=s)}}catch(t){o.e(t)}finally{o.f()}return r},e.parseLinks=function(t){var e,r={},o=n(t.split(/ *, */));try{for(o.s();!(e=o.n()).done;){var i=e.value.split(/ *; */),a=i[0].slice(1,-1);r[i[1].split(/ *= */)[1].slice(1,-1)]=a}}catch(t){o.e(t)}finally{o.f()}return r},e.cleanHeader=function(t,e){return delete t["content-type"],delete t["content-length"],delete t["transfer-encoding"],delete t.host,e&&(delete t.authorization,delete t.cookie),t},e.isObject=function(t){return null!==t&&"object"===o(t)},e.hasOwn=Object.hasOwn||function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(new Object(t),e)},e.mixin=function(t,r){for(var o in r)e.hasOwn(r,o)&&(t[o]=r[o])}},function(t,e,r){"use strict";var o=r(0)("%Object.defineProperty%",!0),n=function(){if(o)try{return o({},"a",{value:1}),!0}catch(t){return!1}return!1};n.hasArrayLengthDefineBug=function(){if(!n())return null;try{return 1!==o([],"length",{value:1}).length}catch(t){return!0}},t.exports=n},function(t,e,r){"use strict";var o=r(0)("%Object.getOwnPropertyDescriptor%",!0);if(o)try{o([],"length")}catch(t){o=null}t.exports=o},function(t,e,r){"use strict";var o=r(2),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var r=e&&e.plainObjects?Object.create(null):{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r};t.exports={arrayToObject:s,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],a=n.obj[n.prop],s=Object.keys(a),u=0;u<s.length;++u){var c=s[u],l=a[c];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(e.push({obj:a,prop:c}),r.push(l))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var s=t;if("symbol"==typeof t?s=Symbol.prototype.toString.call(t):"string"!=typeof t&&(s=String(t)),"iso-8859-1"===r)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var u="",c=0;c<s.length;++c){var l=s.charCodeAt(c);45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===o.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=s(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),a)}}},function(t,e,r){"use strict";function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}var a;"undefined"!=typeof window?a=window:"undefined"==typeof self?(console.warn("Using browser-only version of superagent in non-browser environment"),a=void 0):a=self;var s=r(8),u=r(9),c=r(10),l=r(26),p=r(3),f=p.isObject,y=p.mixin,h=p.hasOwn,d=r(29),m=r(30);function g(){}t.exports=function(t,r){return"function"==typeof r?new e.Request("GET",t).end(r):1===arguments.length?new e.Request("GET",t):new e.Request(t,r)};var b=e=t.exports;e.Request=E,b.getXHR=function(){if(a.XMLHttpRequest&&(!a.location||"file:"!==a.location.protocol||!a.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(t){}throw new Error("Browser-only version of superagent could not find XHR")};var v="".trim?function(t){return t.trim()}:function(t){return t.replace(/(^\s*|\s*$)/g,"")};function w(t){if(!f(t))return t;var e=[];for(var r in t)h(t,r)&&S(e,r,t[r]);return e.join("&")}function S(t,e,r){if(void 0!==r)if(null!==r)if(Array.isArray(r)){var o,i=n(r);try{for(i.s();!(o=i.n()).done;){S(t,e,o.value)}}catch(t){i.e(t)}finally{i.f()}}else if(f(r))for(var a in r)h(r,a)&&S(t,"".concat(e,"[").concat(a,"]"),r[a]);else t.push(encodeURI(e)+"="+encodeURIComponent(r));else t.push(encodeURI(e))}function _(t){for(var e,r,o={},n=t.split("&"),i=0,a=n.length;i<a;++i)-1===(r=(e=n[i]).indexOf("="))?o[decodeURIComponent(e)]="":o[decodeURIComponent(e.slice(0,r))]=decodeURIComponent(e.slice(r+1));return o}function O(t){return/[/+]json($|[^-\w])/i.test(t)}function A(t){this.req=t,this.xhr=this.req.xhr,this.text="HEAD"!==this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var e=this.xhr.status;1223===e&&(e=204),this._setStatusProperties(e),this.headers=function(t){for(var e,r,o,n,i=t.split(/\r?\n/),a={},s=0,u=i.length;s<u;++s)-1!==(e=(r=i[s]).indexOf(":"))&&(o=r.slice(0,e).toLowerCase(),n=v(r.slice(e+1)),a[o]=n);return a}(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),null===this.text&&t._responseType?this.body=this.xhr.response:this.body="HEAD"===this.req.method?null:this._parseBody(this.text?this.text:this.xhr.response)}function E(t,e){var r=this;this._query=this._query||[],this.method=t,this.url=e,this.header={},this._header={},this.on("end",(function(){var t,e=null,o=null;try{o=new A(r)}catch(t){return(e=new Error("Parser is unable to parse the response")).parse=!0,e.original=t,r.xhr?(e.rawResponse=void 0===r.xhr.responseType?r.xhr.responseText:r.xhr.response,e.status=r.xhr.status?r.xhr.status:null,e.statusCode=e.status):(e.rawResponse=null,e.status=null),r.callback(e)}r.emit("response",o);try{r._isResponseOK(o)||(t=new Error(o.statusText||o.text||"Unsuccessful HTTP response"))}catch(e){t=e}t?(t.original=e,t.response=o,t.status=o.status,r.callback(t,o)):r.callback(null,o)}))}b.serializeObject=w,b.parseString=_,b.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},b.serialize={"application/x-www-form-urlencoded":c.stringify,"application/json":u},b.parse={"application/x-www-form-urlencoded":_,"application/json":JSON.parse},y(A.prototype,d.prototype),A.prototype._parseBody=function(t){var e=b.parse[this.type];return this.req._parser?this.req._parser(this,t):(!e&&O(this.type)&&(e=b.parse["application/json"]),e&&t&&(t.length>0||t instanceof Object)?e(t):null)},A.prototype.toError=function(){var t=this.req,e=t.method,r=t.url,o="cannot ".concat(e," ").concat(r," (").concat(this.status,")"),n=new Error(o);return n.status=this.status,n.method=e,n.url=r,n},b.Response=A,s(E.prototype),y(E.prototype,l.prototype),E.prototype.type=function(t){return this.set("Content-Type",b.types[t]||t),this},E.prototype.accept=function(t){return this.set("Accept",b.types[t]||t),this},E.prototype.auth=function(t,e,r){1===arguments.length&&(e=""),"object"===o(e)&&null!==e&&(r=e,e=""),r||(r={type:"function"==typeof btoa?"basic":"auto"});var n=r.encoder?r.encoder:function(t){if("function"==typeof btoa)return btoa(t);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(t,e,r,n)},E.prototype.query=function(t){return"string"!=typeof t&&(t=w(t)),t&&this._query.push(t),this},E.prototype.attach=function(t,e,r){if(e){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(t,e,r||e.name)}return this},E.prototype._getFormData=function(){return this._formData||(this._formData=new a.FormData),this._formData},E.prototype.callback=function(t,e){if(this._shouldRetry(t,e))return this._retry();var r=this._callback;this.clearTimeout(),t&&(this._maxRetries&&(t.retries=this._retries-1),this.emit("error",t)),r(t,e)},E.prototype.crossDomainError=function(){var t=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");t.crossDomain=!0,t.status=this.status,t.method=this.method,t.url=this.url,this.callback(t)},E.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},E.prototype.ca=E.prototype.agent,E.prototype.buffer=E.prototype.ca,E.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},E.prototype.pipe=E.prototype.write,E.prototype._isHost=function(t){return t&&"object"===o(t)&&!Array.isArray(t)&&"[object Object]"!==Object.prototype.toString.call(t)},E.prototype.end=function(t){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=t||g,this._finalizeQueryString(),this._end()},E.prototype._setUploadTimeout=function(){var t=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout((function(){t._timeoutError("Upload timeout of ",t._uploadTimeout,"ETIMEDOUT")}),this._uploadTimeout))},E.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var t=this;this.xhr=b.getXHR();var e=this.xhr,r=this._formData||this._data;this._setTimeouts(),e.addEventListener("readystatechange",(function(){var r=e.readyState;if(r>=2&&t._responseTimeoutTimer&&clearTimeout(t._responseTimeoutTimer),4===r){var o;try{o=e.status}catch(t){o=0}if(!o){if(t.timedout||t._aborted)return;return t.crossDomainError()}t.emit("end")}}));var o=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100,100===r.percent&&clearTimeout(t._uploadTimeoutTimer)),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{e.addEventListener("progress",o.bind(null,"download")),e.upload&&e.upload.addEventListener("progress",o.bind(null,"upload"))}catch(t){}e.upload&&this._setUploadTimeout();try{this.username&&this.password?e.open(this.method,this.url,!0,this.username,this.password):e.open(this.method,this.url,!0)}catch(t){return this.callback(t)}if(this._withCredentials&&(e.withCredentials=!0),!this._formData&&"GET"!==this.method&&"HEAD"!==this.method&&"string"!=typeof r&&!this._isHost(r)){var n=this._header["content-type"],i=this._serializer||b.serialize[n?n.split(";")[0]:""];!i&&O(n)&&(i=b.serialize["application/json"]),i&&(r=i(r))}for(var a in this.header)null!==this.header[a]&&h(this.header,a)&&e.setRequestHeader(a,this.header[a]);this._responseType&&(e.responseType=this._responseType),this.emit("request",this),e.send(void 0===r?null:r)},b.agent=function(){return new m};for(var T=function(){var t=x[j];m.prototype[t.toLowerCase()]=function(e,r){var o=new b.Request(t,e);return this._setDefaults(o),r&&o.end(r),o}},j=0,x=["GET","POST","OPTIONS","PATCH","PUT","DELETE"];j<x.length;j++)T();function k(t,e,r){var o=b("DELETE",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}m.prototype.del=m.prototype.delete,b.get=function(t,e,r){var o=b("GET",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},b.head=function(t,e,r){var o=b("HEAD",t);return"function"==typeof e&&(r=e,e=null),e&&o.query(e),r&&o.end(r),o},b.options=function(t,e,r){var o=b("OPTIONS",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},b.del=k,b.delete=k,b.patch=function(t,e,r){var o=b("PATCH",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},b.post=function(t,e,r){var o=b("POST",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o},b.put=function(t,e,r){var o=b("PUT",t);return"function"==typeof e&&(r=e,e=null),e&&o.send(e),r&&o.end(r),o}},function(t,e,r){function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}t.exports=o,o.prototype.on=o.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},o.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,o=this._callbacks["$"+t];if(!o)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var n=0;n<o.length;n++)if((r=o[n])===e||r.fn===e){o.splice(n,1);break}return 0===o.length&&delete this._callbacks["$"+t],this},o.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],o=1;o<arguments.length;o++)e[o-1]=arguments[o];if(r){o=0;for(var n=(r=r.slice(0)).length;o<n;++o)r[o].apply(this,e)}return this},o.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},o.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e){t.exports=i,i.default=i,i.stable=u,i.stableStringify=u;var r=[],o=[];function n(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(t,e,i,s){var u;void 0===s&&(s=n()),function t(e,r,o,n,i,s,u){var c;if(s+=1,"object"==typeof e&&null!==e){for(c=0;c<n.length;c++)if(n[c]===e)return void a("[Circular]",e,r,i);if(void 0!==u.depthLimit&&s>u.depthLimit)return void a("[...]",e,r,i);if(void 0!==u.edgesLimit&&o+1>u.edgesLimit)return void a("[...]",e,r,i);if(n.push(e),Array.isArray(e))for(c=0;c<e.length;c++)t(e[c],c,c,n,e,s,u);else{var l=Object.keys(e);for(c=0;c<l.length;c++){var p=l[c];t(e[p],p,c,n,e,s,u)}}n.pop()}}(t,"",0,[],void 0,0,s);try{u=0===o.length?JSON.stringify(t,e,i):JSON.stringify(t,c(e),i)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var l=r.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return u}function a(t,e,n,i){var a=Object.getOwnPropertyDescriptor(i,n);void 0!==a.get?a.configurable?(Object.defineProperty(i,n,{value:t}),r.push([i,n,e,a])):o.push([e,n,t]):(i[n]=t,r.push([i,n,e]))}function s(t,e){return t<e?-1:t>e?1:0}function u(t,e,i,u){void 0===u&&(u=n());var l,p=function t(e,o,n,i,u,c,l){var p;if(c+=1,"object"==typeof e&&null!==e){for(p=0;p<i.length;p++)if(i[p]===e)return void a("[Circular]",e,o,u);try{if("function"==typeof e.toJSON)return}catch(t){return}if(void 0!==l.depthLimit&&c>l.depthLimit)return void a("[...]",e,o,u);if(void 0!==l.edgesLimit&&n+1>l.edgesLimit)return void a("[...]",e,o,u);if(i.push(e),Array.isArray(e))for(p=0;p<e.length;p++)t(e[p],p,p,i,e,c,l);else{var f={},y=Object.keys(e).sort(s);for(p=0;p<y.length;p++){var h=y[p];t(e[h],h,p,i,e,c,l),f[h]=e[h]}if(void 0===u)return f;r.push([u,o,e]),u[o]=f}i.pop()}}(t,"",0,[],void 0,0,u)||t;try{l=0===o.length?JSON.stringify(p,e,i):JSON.stringify(p,c(e),i)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var f=r.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return l}function c(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(o.length>0)for(var n=0;n<o.length;n++){var i=o[n];if(i[1]===e&&i[0]===r){r=i[2],o.splice(n,1);break}}return t.call(this,e,r)}}},function(t,e,r){"use strict";var o=r(11),n=r(25),i=r(2);t.exports={formats:i,parse:n,stringify:o}},function(t,e,r){"use strict";var o=r(12),n=r(6),i=r(2),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,l=function(t,e){c.apply(t,u(e)?e:[e])},p=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return p.call(t)},skipNulls:!1,strictNullHandling:!1},h={},d=function t(e,r,i,a,s,c,p,f,d,m,g,b,v,w,S,_){for(var O,A=e,E=_,T=0,j=!1;void 0!==(E=E.get(h))&&!j;){var x=E.get(e);if(T+=1,void 0!==x){if(x===T)throw new RangeError("Cyclic object value");j=!0}void 0===E.get(h)&&(T=0)}if("function"==typeof f?A=f(r,A):A instanceof Date?A=g(A):"comma"===i&&u(A)&&(A=n.maybeMap(A,(function(t){return t instanceof Date?g(t):t}))),null===A){if(s)return p&&!w?p(r,y.encoder,S,"key",b):r;A=""}if("string"==typeof(O=A)||"number"==typeof O||"boolean"==typeof O||"symbol"==typeof O||"bigint"==typeof O||n.isBuffer(A))return p?[v(w?r:p(r,y.encoder,S,"key",b))+"="+v(p(A,y.encoder,S,"value",b))]:[v(r)+"="+v(String(A))];var k,P=[];if(void 0===A)return P;if("comma"===i&&u(A))w&&p&&(A=n.maybeMap(A,p)),k=[{value:A.length>0?A.join(",")||null:void 0}];else if(u(f))k=f;else{var I=Object.keys(A);k=d?I.sort(d):I}for(var R=a&&u(A)&&1===A.length?r+"[]":r,D=0;D<k.length;++D){var U=k[D],N="object"==typeof U&&void 0!==U.value?U.value:A[U];if(!c||null!==N){var C=u(A)?"function"==typeof i?i(R,U):R:R+(m?"."+U:"["+U+"]");_.set(e,T);var L=o();L.set(h,_),l(P,t(N,C,i,a,s,c,"comma"===i&&w&&u(A)?null:p,f,d,m,g,b,v,w,S,L))}}return P};t.exports=function(t,e){var r,n=t,c=function(t){if(!t)return y;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=i.formatters[r],n=y.filter;return("function"==typeof t.filter||u(t.filter))&&(n=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===t.allowDots?y.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:n,format:r,formatter:o,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof c.filter?n=(0,c.filter)("",n):u(c.filter)&&(r=c.filter);var p,f=[];if("object"!=typeof n||null===n)return"";p=e&&e.arrayFormat in s?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var h=s[p];if(e&&"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var m="comma"===h&&e&&e.commaRoundTrip;r||(r=Object.keys(n)),c.sort&&r.sort(c.sort);for(var g=o(),b=0;b<r.length;++b){var v=r[b];c.skipNulls&&null===n[v]||l(f,d(n[v],v,h,m,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,g))}var w=f.join(c.delimiter),S=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),w.length>0?S+w:""}},function(t,e,r){"use strict";var o=r(0),n=r(18),i=r(22),a=o("%TypeError%"),s=o("%WeakMap%",!0),u=o("%Map%",!0),c=n("WeakMap.prototype.get",!0),l=n("WeakMap.prototype.set",!0),p=n("WeakMap.prototype.has",!0),f=n("Map.prototype.get",!0),y=n("Map.prototype.set",!0),h=n("Map.prototype.has",!0),d=function(t,e){for(var r,o=t;null!==(r=o.next);o=r)if(r.key===e)return o.next=r.next,r.next=t.next,t.next=r,r};t.exports=function(){var t,e,r,o={assert:function(t){if(!o.has(t))throw new a("Side channel does not contain "+i(t))},get:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return c(t,o)}else if(u){if(e)return f(e,o)}else if(r)return function(t,e){var r=d(t,e);return r&&r.value}(r,o)},has:function(o){if(s&&o&&("object"==typeof o||"function"==typeof o)){if(t)return p(t,o)}else if(u){if(e)return h(e,o)}else if(r)return function(t,e){return!!d(t,e)}(r,o);return!1},set:function(o,n){s&&o&&("object"==typeof o||"function"==typeof o)?(t||(t=new s),l(t,o,n)):u?(e||(e=new u),y(e,o,n)):(r||(r={key:{},next:null}),function(t,e,r){var o=d(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(r,o,n))}};return o}},function(t,e,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(14);t.exports=function(){return"function"==typeof o&&("function"==typeof Symbol&&("symbol"==typeof o("foo")&&("symbol"==typeof Symbol("bar")&&n())))}},function(t,e,r){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var o=Object.getOwnPropertySymbols(t);if(1!==o.length||o[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},function(t,e,r){"use strict";var o={foo:{}},n=Object;t.exports=function(){return{__proto__:o}.foo===o.foo&&!({__proto__:null}instanceof n)}},function(t,e,r){"use strict";var o="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,i=Math.max,a=function(t,e){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var n=0;n<e.length;n+=1)r[n+t.length]=e[n];return r},s=function(t,e){for(var r=[],o=e||0,n=0;o<t.length;o+=1,n+=1)r[n]=t[o];return r},u=function(t,e){for(var r="",o=0;o<t.length;o+=1)r+=t[o],o+1<t.length&&(r+=e);return r};t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==n.apply(e))throw new TypeError(o+e);for(var r,c=s(arguments,1),l=function(){if(this instanceof r){var o=e.apply(this,a(c,arguments));return Object(o)===o?o:this}return e.apply(t,a(c,arguments))},p=i(0,e.length-c.length),f=[],y=0;y<p;y++)f[y]="$"+y;if(r=Function("binder","return function ("+u(f,",")+"){ return binder.apply(this,arguments); }")(l),e.prototype){var h=function(){};h.prototype=e.prototype,r.prototype=new h,h.prototype=null}return r}},function(t,e,r){"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(1);t.exports=i.call(o,n)},function(t,e,r){"use strict";var o=r(0),n=r(19),i=n(o("String.prototype.indexOf"));t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n(r):r}},function(t,e,r){"use strict";var o=r(1),n=r(0),i=r(20),a=n("%TypeError%"),s=n("%Function.prototype.apply%"),u=n("%Function.prototype.call%"),c=n("%Reflect.apply%",!0)||o.call(u,s),l=n("%Object.defineProperty%",!0),p=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch(t){l=null}t.exports=function(t){if("function"!=typeof t)throw new a("a function is required");var e=c(o,u,arguments);return i(e,1+p(0,t.length-(arguments.length-1)),!0)};var f=function(){return c(o,s,arguments)};l?l(t.exports,"apply",{value:f}):t.exports.apply=f},function(t,e,r){"use strict";var o=r(0),n=r(21),i=r(4)(),a=r(5),s=o("%TypeError%"),u=o("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new s("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||u(e)!==e)throw new s("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,c=!0;if("length"in t&&a){var l=a(t,"length");l&&!l.configurable&&(o=!1),l&&!l.writable&&(c=!1)}return(o||c||!r)&&(i?n(t,"length",e,!0,!0):n(t,"length",e)),t}},function(t,e,r){"use strict";var o=r(4)(),n=r(0),i=o&&n("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(t){i=!1}var a=n("%SyntaxError%"),s=n("%TypeError%"),u=r(5);t.exports=function(t,e,r){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new s("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,n=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,l=arguments.length>6&&arguments[6],p=!!u&&u(t,e);if(i)i(t,e,{configurable:null===c&&p?p.configurable:!c,enumerable:null===o&&p?p.enumerable:!o,value:r,writable:null===n&&p?p.writable:!n});else{if(!l&&(o||n||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=r}}},function(t,e,r){(function(e){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,d=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,_=RegExp.prototype.test,O=Array.prototype.concat,A=Array.prototype.join,E=Array.prototype.slice,T=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,x=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,P="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===P||"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function U(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||_.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-T(-t):T(t);if(o!==t){var n=String(o),i=b.call(e,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var N=r(24),C=N.custom,L=$(C)?C:null;function M(t,e,r){var o="double"===(r.quoteStyle||e)?'"':"'";return o+t+o}function F(t){return v.call(String(t),/"/g,""")}function q(t){return!("[object Array]"!==z(t)||I&&"object"==typeof t&&I in t)}function B(t){return!("[object RegExp]"!==z(t)||I&&"object"==typeof t&&I in t)}function $(t){if(P)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}t.exports=function t(r,o,n,s){var u=o||{};if(W(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(W(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!W(u,"customInspect")||u.customInspect;if("boolean"!=typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(W(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=u.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return function t(e,r){if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength,n="... "+o+" more character"+(o>1?"s":"");return t(b.call(e,0,r.maxStringLength),r)+n}return M(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,J),"single",r)}(r,u);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var _=String(r);return w?U(r,_):_}if("bigint"==typeof r){var T=String(r)+"n";return w?U(r,T):T}var x=void 0===u.depth?5:u.depth;if(void 0===n&&(n=0),n>=x&&x>0&&"object"==typeof r)return q(r)?"[Array]":"[Object]";var C=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=A.call(Array(t.indent+1)," ")}return{base:r,prev:A.call(Array(e+1),r)}}(u,n);if(void 0===s)s=[];else if(G(s,r)>=0)return"[Circular]";function H(e,r,o){if(r&&(s=E.call(s)).push(r),o){var i={depth:u.depth};return W(u,"quoteStyle")&&(i.quoteStyle=u.quoteStyle),t(e,i,n+1,s)}return t(e,u,n+1,s)}if("function"==typeof r&&!B(r)){var Z=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);if(e)return e[1];return null}(r),tt=Y(r,H);return"[Function"+(Z?": "+Z:" (anonymous)")+"]"+(tt.length>0?" { "+A.call(tt,", ")+" }":"")}if($(r)){var et=P?v.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(r);return"object"!=typeof r||P?et:V(et)}if(function(t){if(!t||"object"!=typeof t)return!1;if("undefined"!=typeof HTMLElement&&t instanceof HTMLElement)return!0;return"string"==typeof t.nodeName&&"function"==typeof t.getAttribute}(r)){for(var rt="<"+S.call(String(r.nodeName)),ot=r.attributes||[],nt=0;nt<ot.length;nt++)rt+=" "+ot[nt].name+"="+M(F(ot[nt].value),"double",u);return rt+=">",r.childNodes&&r.childNodes.length&&(rt+="..."),rt+="</"+S.call(String(r.nodeName))+">"}if(q(r)){if(0===r.length)return"[]";var it=Y(r,H);return C&&!function(t){for(var e=0;e<t.length;e++)if(G(t[e],"\n")>=0)return!1;return!0}(it)?"["+K(it,C)+"]":"[ "+A.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==z(t)||I&&"object"==typeof t&&I in t)}(r)){var at=Y(r,H);return"cause"in Error.prototype||!("cause"in r)||R.call(r,"cause")?0===at.length?"["+String(r)+"]":"{ ["+String(r)+"] "+A.call(at,", ")+" }":"{ ["+String(r)+"] "+A.call(O.call("[cause]: "+H(r.cause),at),", ")+" }"}if("object"==typeof r&&d){if(L&&"function"==typeof r[L]&&N)return N(r,{depth:x-n});if("symbol"!==d&&"function"==typeof r.inspect)return r.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(r)){var st=[];return a&&a.call(r,(function(t,e){st.push(H(e,r,!0)+" => "+H(t,r))})),Q("Map",i.call(r),st,C)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(r)){var ut=[];return l&&l.call(r,(function(t){ut.push(H(t,r))})),Q("Set",c.call(r),ut,C)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t,p);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(r))return X("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{p.call(t,p)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(r))return X("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(r))return X("WeakRef");if(function(t){return!("[object Number]"!==z(t)||I&&"object"==typeof t&&I in t)}(r))return V(H(Number(r)));if(function(t){if(!t||"object"!=typeof t||!j)return!1;try{return j.call(t),!0}catch(t){}return!1}(r))return V(H(j.call(r)));if(function(t){return!("[object Boolean]"!==z(t)||I&&"object"==typeof t&&I in t)}(r))return V(h.call(r));if(function(t){return!("[object String]"!==z(t)||I&&"object"==typeof t&&I in t)}(r))return V(H(String(r)));if("undefined"!=typeof window&&r===window)return"{ [object Window] }";if(r===e)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==z(t)||I&&"object"==typeof t&&I in t)}(r)&&!B(r)){var ct=Y(r,H),lt=D?D(r)===Object.prototype:r instanceof Object||r.constructor===Object,pt=r instanceof Object?"":"null prototype",ft=!lt&&I&&Object(r)===r&&I in r?b.call(z(r),8,-1):pt?"Object":"",yt=(lt||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(ft||pt?"["+A.call(O.call([],ft||[],pt||[]),": ")+"] ":"");return 0===ct.length?yt+"{}":C?yt+"{"+K(ct,C)+"}":yt+"{ "+A.call(ct,", ")+" }"}return String(r)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function W(t,e){return H.call(t,e)}function z(t){return d.call(t)}function G(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function J(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function V(t){return"Object("+t+")"}function X(t){return t+" { ? }"}function Q(t,e,r,o){return t+" ("+e+") {"+(o?K(r,o):A.call(r,", "))+"}"}function K(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+A.call(t,","+r)+"\n"+e.prev}function Y(t,e){var r=q(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=W(t,n)?e(t[n],t):""}var i,a="function"==typeof x?x(t):[];if(P){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var u in t)W(t,u)&&(r&&String(Number(u))===u&&u<t.length||P&&i["$"+u]instanceof Symbol||(_.call(/[^\w$]/,u)?o.push(e(u,t)+": "+e(t[u],t)):o.push(u+": "+e(t[u],t))));if("function"==typeof x)for(var c=0;c<a.length;c++)R.call(t,a[c])&&o.push("["+e(a[c])+"]: "+e(t[a[c]],t));return o}}).call(this,r(23))},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){},function(t,e,r){"use strict";var o=r(6),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:o.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},s=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},u=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},c=function(t,e,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=r.depth>0&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,l=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var p=0;r.depth>0&&null!==(s=a.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&n.call(Object.prototype,s[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(s[1])}return s&&l.push("["+i.slice(s.index)+"]"),function(t,e,r,o){for(var n=o?e:u(e,r),i=t.length-1;i>=0;--i){var a,s=t[i];if("[]"===s&&r.parseArrays)a=[].concat(n);else{a=r.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);r.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[])[l]=n:"__proto__"!==c&&(a[c]=n):a={0:n}}n=a}return n}(l,e,r,o)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var r,c={__proto__:null},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,f=l.split(e.delimiter,p),y=-1,h=e.charset;if(e.charsetSentinel)for(r=0;r<f.length;++r)0===f[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[r]?h="utf-8":"utf8=%26%2310003%3B"===f[r]&&(h="iso-8859-1"),y=r,r=f.length);for(r=0;r<f.length;++r)if(r!==y){var d,m,g=f[r],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(d=e.decoder(g,a.decoder,h,"key"),m=e.strictNullHandling?null:""):(d=e.decoder(g.slice(0,v),a.decoder,h,"key"),m=o.maybeMap(u(g.slice(v+1),e),(function(t){return e.decoder(t,a.decoder,h,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===h&&(m=s(m)),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),n.call(c,d)?c[d]=o.combine(c[d],m):c[d]=m}return c}(t,r):t,p=r.plainObjects?Object.create(null):{},f=Object.keys(l),y=0;y<f.length;++y){var h=f[y],d=c(h,l[h],r,"string"==typeof t);p=o.merge(p,d,r)}return!0===r.allowSparse?p:o.compact(p)}},function(t,e,r){"use strict";(function(e){function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=r(28),i=r(3),a=i.isObject,s=i.hasOwn;function u(){}t.exports=u,u.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},u.prototype.parse=function(t){return this._parser=t,this},u.prototype.responseType=function(t){return this._responseType=t,this},u.prototype.serialize=function(t){return this._serializer=t,this},u.prototype.timeout=function(t){if(!t||"object"!==o(t))return this._timeout=t,this._responseTimeout=0,this._uploadTimeout=0,this;for(var e in t)if(s(t,e))switch(e){case"deadline":this._timeout=t.deadline;break;case"response":this._responseTimeout=t.response;break;case"upload":this._uploadTimeout=t.upload;break;default:console.warn("Unknown timeout option",e)}return this},u.prototype.retry=function(t,e){return 0!==arguments.length&&!0!==t||(t=1),t<=0&&(t=0),this._maxRetries=t,this._retries=0,this._retryCallback=e,this};var c=new Set(["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"]),l=new Set([408,413,429,500,502,503,504,521,522,524]);u.prototype._shouldRetry=function(t,e){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var r=this._retryCallback(t,e);if(!0===r)return!0;if(!1===r)return!1}catch(t){console.error(t)}if(e&&e.status&&l.has(e.status))return!0;if(t){if(t.code&&c.has(t.code))return!0;if(t.timeout&&"ECONNABORTED"===t.code)return!0;if(t.crossDomain)return!0}return!1},u.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},u.prototype.then=function(t,e){var r=this;if(!this._fullfilledPromise){var o=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise((function(t,e){o.on("abort",(function(){if(!(r._maxRetries&&r._maxRetries>r._retries))if(r.timedout&&r.timedoutError)e(r.timedoutError);else{var t=new Error("Aborted");t.code="ABORTED",t.status=r.status,t.method=r.method,t.url=r.url,e(t)}})),o.end((function(r,o){r?e(r):t(o)}))}))}return this._fullfilledPromise.then(t,e)},u.prototype.catch=function(t){return this.then(void 0,t)},u.prototype.use=function(t){return t(this),this},u.prototype.ok=function(t){if("function"!=typeof t)throw new Error("Callback required");return this._okCallback=t,this},u.prototype._isResponseOK=function(t){return!!t&&(this._okCallback?this._okCallback(t):t.status>=200&&t.status<300)},u.prototype.get=function(t){return this._header[t.toLowerCase()]},u.prototype.getHeader=u.prototype.get,u.prototype.set=function(t,e){if(a(t)){for(var r in t)s(t,r)&&this.set(r,t[r]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},u.prototype.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},u.prototype.field=function(t,e,r){if(null==t)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(a(t)){for(var o in t)s(t,o)&&this.field(o,t[o]);return this}if(Array.isArray(e)){for(var n in e)s(e,n)&&this.field(t,e[n]);return this}if(null==e)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof e&&(e=String(e)),r?this._getFormData().append(t,e,r):this._getFormData().append(t,e),this},u.prototype.abort=function(){if(this._aborted)return this;if(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req){if(n.gte(e.version,"v13.0.0")&&n.lt(e.version,"v14.0.0"))throw new Error("Superagent does not work in v13 properly with abort() due to Node.js core changes");n.gte(e.version,"v14.0.0")&&(this.req.destroyed=!0),this.req.abort()}return this.clearTimeout(),this.emit("abort"),this},u.prototype._auth=function(t,e,r,o){switch(r.type){case"basic":this.set("Authorization","Basic ".concat(o("".concat(t,":").concat(e))));break;case"auto":this.username=t,this.password=e;break;case"bearer":this.set("Authorization","Bearer ".concat(t))}return this},u.prototype.withCredentials=function(t){return void 0===t&&(t=!0),this._withCredentials=t,this},u.prototype.redirects=function(t){return this._maxRedirects=t,this},u.prototype.maxResponseSize=function(t){if("number"!=typeof t)throw new TypeError("Invalid argument");return this._maxResponseSize=t,this},u.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},u.prototype.send=function(t){var e=a(t),r=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(e&&!this._data)Array.isArray(t)?this._data=[]:this._isHost(t)||(this._data={});else if(t&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(e&&a(this._data))for(var o in t)s(t,o)&&(this._data[o]=t[o]);else"string"==typeof t?(r||this.type("form"),(r=this._header["content-type"])&&(r=r.toLowerCase().trim()),this._data="application/x-www-form-urlencoded"===r?this._data?"".concat(this._data,"&").concat(t):t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)||r||this.type("json"),this},u.prototype.sortQuery=function(t){return this._sort=void 0===t||t,this},u.prototype._finalizeQueryString=function(){var t=this._query.join("&");if(t&&(this.url+=(this.url.includes("?")?"&":"?")+t),this._query.length=0,this._sort){var e=this.url.indexOf("?");if(e>=0){var r=this.url.slice(e+1).split("&");"function"==typeof this._sort?r.sort(this._sort):r.sort(),this.url=this.url.slice(0,e)+"?"+r.join("&")}}},u.prototype._appendQueryString=function(){console.warn("Unsupported")},u.prototype._timeoutError=function(t,e,r){if(!this._aborted){var o=new Error("".concat(t+e,"ms exceeded"));o.timeout=e,o.code="ECONNABORTED",o.errno=r,this.timedout=!0,this.timedoutError=o,this.abort(),this.callback(o)}},u.prototype._setTimeouts=function(){var t=this;this._timeout&&!this._timer&&(this._timer=setTimeout((function(){t._timeoutError("Timeout of ",t._timeout,"ETIME")}),this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout((function(){t._timeoutError("Response timeout of ",t._responseTimeout,"ETIMEDOUT")}),this._responseTimeout))}}).call(this,r(27))},function(t,e){var r,o,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{o="function"==typeof clearTimeout?clearTimeout:a}catch(t){o=a}}();var u,c=[],l=!1,p=-1;function f(){l&&u&&(l=!1,u.length?c=u.concat(c):p=-1,c.length&&y())}function y(){if(!l){var t=s(f);l=!0;for(var e=c.length;e;){for(u=c,c=[];++p<e;)u&&u[p].run();p=-1,e=c.length}u=null,l=!1,function(t){if(o===clearTimeout)return clearTimeout(t);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(t);try{o(t)}catch(e){try{return o.call(null,t)}catch(e){return o.call(this,t)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function d(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];c.push(new h(t,e)),1!==c.length||l||s(y)},h.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=d,n.addListener=d,n.once=d,n.off=d,n.removeListener=d,n.removeAllListeners=d,n.emit=d,n.prependListener=d,n.prependOnceListener=d,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},function(t,e){},function(t,e,r){"use strict";var o=r(3);function n(){}t.exports=n,n.prototype.get=function(t){return this.header[t.toLowerCase()]},n.prototype._setHeaderProperties=function(t){var e=t["content-type"]||"";this.type=o.type(e);var r=o.params(e);for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(this[n]=r[n]);this.links={};try{t.link&&(this.links=o.parseLinks(t.link))}catch(t){}},n.prototype._setStatusProperties=function(t){var e=Math.trunc(t/100);this.statusCode=t,this.status=this.statusCode,this.statusType=e,this.info=1===e,this.ok=2===e,this.redirect=3===e,this.clientError=4===e,this.serverError=5===e,this.error=(4===e||5===e)&&this.toError(),this.created=201===t,this.accepted=202===t,this.noContent=204===t,this.badRequest=400===t,this.unauthorized=401===t,this.notAcceptable=406===t,this.forbidden=403===t,this.notFound=404===t,this.unprocessableEntity=422===t}},function(t,e,r){"use strict";function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function a(){this._defaults=[]}for(var s=function(){var t=c[u];a.prototype[t]=function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return this._defaults.push({fn:t,args:r}),this}},u=0,c=["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"];u<c.length;u++)s();a.prototype._setDefaults=function(t){var e,r=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(this._defaults);try{for(r.s();!(e=r.n()).done;){var i=e.value;t[i.fn].apply(t,o(i.args))}}catch(t){r.e(t)}finally{r.f()}},t.exports=a},function(t,e,r){"use strict";r.r(e),r.d(e,"GenesysCloudClientAuthenticator",(function(){return S})),r.d(e,"authenticatorFactory",(function(){return A})),r.d(e,"handleRedirectFromLogin",(function(){return _})),r.d(e,"isIssuedTimeWithinTimeframe",(function(){return b})),r.d(e,"isIssuedTimeWithinWindow",(function(){return v})),r.d(e,"tokenWasIssuedAt",(function(){return w})),r.d(e,"parseOauthParams",(function(){return m})),r.d(e,"TimeoutError",(function(){return h})),r.d(e,"VERSION",(function(){return y}));function o(t,e,r,o){return new(r||(r=Promise))((function(n,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function s(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?n(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}u((o=o.apply(t,e||[])).next())}))}Object.create;Object.create;"function"==typeof SuppressedError&&SuppressedError;var n=r(7),i=r.n(n);var a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let s;const u=new Uint8Array(16);function c(){if(!s&&(s="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!s))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(u)}const l=[];for(let t=0;t<256;++t)l.push((t+256).toString(16).slice(1));function p(t,e=0){return l[t[e+0]]+l[t[e+1]]+l[t[e+2]]+l[t[e+3]]+"-"+l[t[e+4]]+l[t[e+5]]+"-"+l[t[e+6]]+l[t[e+7]]+"-"+l[t[e+8]]+l[t[e+9]]+"-"+l[t[e+10]]+l[t[e+11]]+l[t[e+12]]+l[t[e+13]]+l[t[e+14]]+l[t[e+15]]}var f=function(t,e,r){if(a.randomUUID&&!e&&!t)return a.randomUUID();const o=(t=t||{}).random||(t.rng||c)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=o[t];return e}return p(o)};var y="0.0.2";class h extends Error{constructor(){super(...arguments),this.name="TIMEOUT_ERROR"}}class d extends Error{constructor(t,e){const r=e&&e instanceof Error;super(r?e.message:e),r&&(this.name=e.name),this.translationKey=t}}const m=(t=window.location.hash)=>{const e={},r={},o=new RegExp("^#*(.+?)=(.+?)$","i");if(t.split("&").forEach(t=>{const r=o.exec(t);r&&(e[r[1]]=decodeURIComponent(decodeURIComponent(r[2].replace(/\+/g,"%20"))))}),e.error)return e;if(e.access_token){if(e.state&&(r.state=e.state),e.expires_in){const t=1e3*parseInt(e.expires_in.replace(/\+/g,"%20"));r.tokenExpiryTime=Date.now()+t,r.tokenExpiryTimeString=new Date(r.tokenExpiryTime).toISOString()}r.accessToken=e.access_token.replace(/\+/g,"%20")}return r},g=(t,e)=>{e?(console.log(`%c [DEBUG:gc-client-auth:${y}] ${t}`,"color: #f29f2c",e),"object"==typeof e&&console.log(`%c [DEBUG:gc-client-auth:${y}] ^ stringified: ${JSON.stringify(e)}`,"color: #f29f2c")):console.log(`%c [DEBUG:gc-client-auth:${y}] ${t}`,"color: #f29f2c")},b=(t,e=691199e3,r=168e4,o=Date.now())=>o-w(t,e)<r,v=(t,e,r)=>b(t,e,r),w=(t,e)=>t-e;class S{constructor(t,e={}){this.VERSION=y,this.clientId=t,e.storageKey||(e.storageKey="gc_client_auth_data"),"boolean"!=typeof e.persist&&(e.persist=!1),this.config=Object.assign({},e),this.setEnvironment(e.environment),this.timeout=16e3,this.authData={},this.authentications={"PureCloud OAuth":{type:"oauth2"}};try{localStorage.setItem("genesys_cloud_local_storage_test","genesys_cloud_local_storage_test"),localStorage.removeItem("genesys_cloud_local_storage_test"),this.hasLocalStorage=!0}catch(t){this.hasLocalStorage=!1}this._loadSettings()}loginImplicitGrant(t={},e){const r=e||m();return new Promise((e,o)=>{t.org&&!t.provider?o(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org?o(new Error("opts.org must be set if opts.provider is set")):t.redirectUri||t.usePopupAuth||o(new Error("redirectUri must be provided for implicit grant and not utilizing client-auth app for popup auth")),r&&r.error&&(r.accessToken=void 0,this._saveSettings(r),o(new Error(`[${r.error}] ${r.error_description}`))),r.accessToken&&this._saveSettings(r),this._testTokenAccess().then(()=>(!this.authData.state&&t.state&&(this.authData.state=t.state),e(this.authData))).catch(r=>{this._debug("Error encountered during login. This is normal if the application has not yet been authorized.",r);const n={client_id:encodeURIComponent(this.clientId),response_type:"token"};if(t.redirectUri&&(n.redirect_uri=encodeURIComponent(t.redirectUri)),t.state&&(n.state=encodeURIComponent(t.state)),t.org&&(n.org=encodeURIComponent(t.org)),t.provider&&(n.provider=encodeURIComponent(t.provider)),t.usePopupAuth){if(!this.hasLocalStorage)return o(new Error("localStorage is unavailable. Cannot authenticate via popup window."));this._debug("using popup auth – adding listener"),this._authenticateViaPopup(n,t.popupTimeout||15e3).then(t=>{this._saveSettings(t),e(t)}).catch(o)}else{const t=this._buildAuthUrl("oauth/authorize",n);this._debug("Implicit grant: redirecting to: "+t),window.location.replace(t),o(new Error(`Routing to login: "${t}"`))}})})}setEnvironment(t){t||(t="mypurecloud.com"),(t=t.replace(/\/+$/,"")).startsWith("https://")&&(t=t.substring(8)),t.startsWith("http://")&&(t=t.substring(7)),t.startsWith("api.")&&(t=t.substring(4)),this.environment=t,this.basePath="https://api."+t,this.authUrl="https://login."+t}clearAuthData(){this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0})}logout(t){this.clearAuthData();const e={client_id:encodeURIComponent(this.clientId)};t&&(e.redirect_uri=encodeURIComponent(t));const r=this._buildAuthUrl("logout",e);window.location.replace(r)}setAccessToken(t){this._saveSettings({accessToken:t})}testAccessToken(t){return this.callApi("/api/v2/tokens/me","get",t)}parseDate(t){return new Date(t.replace(/T/i," "))}paramToString(t){return t?t instanceof Date?t.toJSON():t.toString():""}buildUrl(t,e={}){t.match(/^\//)||(t="/"+t);return(this.basePath+t).replace(/\{([\w-]+)\}/g,(t,r)=>{let o;return o=Object.getOwnPropertyDescriptor(e,r)?this.paramToString(e[r]):t,encodeURIComponent(o)})}callApi(t,e,r){var o;const n=this.buildUrl(t);return i.a[e](n).type("application/json").timeout(this.timeout).set("Authorization","Bearer "+(r||(null===(o=this.authData)||void 0===o?void 0:o.accessToken))).send()}_debug(t,e){this.config.debugMode&&g(t,e)}_saveSettings(t){try{if(this.authData.accessToken=t.accessToken,this.authentications["PureCloud OAuth"].accessToken=t.accessToken,t.state&&(this.authData.state=t.state),this.authData.error=t.error,this.authData.error_description=t.error_description,t.tokenExpiryTime&&(this.authData.tokenExpiryTime=t.tokenExpiryTime,this.authData.tokenExpiryTimeString=t.tokenExpiryTimeString),!this.config.persist)return void this._debug("persist is not true. Settings will not be saved.");if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be saved.");const e=JSON.parse(JSON.stringify(this.authData));delete e.state,localStorage.setItem(this.config.storageKey,JSON.stringify(e)),this._debug("Auth data saved to local storage",e)}catch(t){console.error(t)}}_getId(t){return"gc-ca_"+(t=t||f())}_authenticateViaPopup(t,e){const r=this._getId(),o=Object.assign(Object.assign({},t),{storageKey:this.config.storageKey});this.config.debugMode&&(o.debug=!0),localStorage.setItem(r,JSON.stringify(o)),t.state=r,t.redirect_uri||(t.redirect_uri=encodeURIComponent(`https://apps.${this.environment}/client-auth`));const n=this._buildAuthUrl("oauth/authorize",t);return new Promise((o,i)=>{this._debug("Implicit grant: opening new window: "+n),window.open(n,"_blank","width=500px,height=500px,noreferrer,noopener,resizable,scrollbars,status");const a=setTimeout(()=>{this._debug("timeout for loginImplicitGrant using popup",t);const e=new h("Popup authentation timeout. It is possible that the popup was blocked or the login page encountered an error");i(e)},e),s=t=>{if(this._debug("value was just written to storage by another app",{key:t.key,newValue:t.newValue,oldValue:t.oldValue}),t.key===this.config.storageKey){this._debug("keys matched. resolving value",{key:t.key,value:t.newValue}),window.removeEventListener("storage",s),clearTimeout(a);const e=JSON.parse(t.newValue);localStorage.removeItem(r),o(e)}};window.addEventListener("storage",s)})}_testTokenAccess(){return o(this,void 0,void 0,(function*(){if(this._loadSettings(),!this.authentications["PureCloud OAuth"].accessToken)throw new d("errorTokenNotSet","No access token provided.");try{yield this.callApi("/api/v2/tokens/me","get")}catch(t){throw this._saveSettings({accessToken:void 0}),t}}))}_loadSettings(){if(!this.config.persist)return;if(!this.hasLocalStorage)return void this._debug("Warning: Cannot access local storage. Settings will not be loaded.");const t=this.authData.state,e=localStorage.getItem(this.config.storageKey);this.authData=e?JSON.parse(e):{},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=t}_buildAuthUrl(t,e={}){return Object.keys(e).reduce((t,r)=>e[r]?`${t}&${r}=${e[r]}`:t,`${this.authUrl}/${t}?`)}}const _=()=>{const t=m();if(t.error)throw new Error(`[${t.error}]: ${t.error_description}`);if(!t.accessToken)throw new d("errorToken","No access token provided.");const e=t.state;if(!e)throw new d("errorStateParam","No state param on redirect. Unable to determine location to save auth data.");const r=JSON.parse(localStorage.getItem(e)||"false");if(!r||!r.storageKey)throw new d("errorParse","Unable to parse information from localStorage.");r.state?t.state=r.state:delete t.state,g("setting auth data to key: "+r.storageKey,t),localStorage.setItem(r.storageKey,JSON.stringify(t)),r.debug?g("In debug mode. Not closing window or removing storageId",{storageId:e,authData:t,href:window.location.href}):(g("removing temp storage key: "+e),localStorage.removeItem(e),g("closing window"),window.close())},O=new Map,A=(t,e)=>{let r=O.get(t);return r||(r=new S(t,e),O.set(t,r)),r};e.default=A}]);
|
|
2
2
|
//# sourceMappingURL=genesys-cloud-client-auth.browser.min.js.map
|