@vc-shell/framework 2.0.0-alpha.2 → 2.0.0-alpha.3
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/dist/assets/042c75b764bc78a7.svg +1 -0
- package/dist/assets/0ba156439a339f2a.svg +1 -0
- package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
- package/dist/assets/0d67e9e056b4c500.woff +0 -0
- package/dist/assets/0f590f8a94577092.svg +1 -0
- package/dist/assets/0fc5820f8be53a1b.svg +1 -0
- package/dist/assets/105efd028edc1dfe.woff +0 -0
- package/dist/assets/10768e2cc79fc60b.svg +1 -0
- package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
- package/dist/assets/131b34336aedaf47.woff +0 -0
- package/dist/assets/154365acf3010d96.woff2 +0 -0
- package/dist/assets/157b8721e0600ea8.svg +1 -0
- package/dist/assets/15e91cdd649cde9a.svg +1 -0
- package/dist/assets/19275e398ae57130.woff2 +0 -0
- package/dist/assets/19bb1c668a5db39f.woff2 +0 -0
- package/dist/assets/1a3e84b2457f709a.woff +0 -0
- package/dist/assets/1de63eb118636cce.svg +1 -0
- package/dist/assets/1ea01de36eb5491b.svg +1 -0
- package/dist/assets/2010ada3e82156ed.woff +0 -0
- package/dist/assets/204eaf512fde2023.svg +1 -0
- package/dist/assets/2088983edf42e153.svg +1 -0
- package/dist/assets/208f810a9321a327.svg +1 -0
- package/dist/assets/21220a9d10e6c558.svg +1 -0
- package/dist/assets/220db345a102045d.woff2 +0 -0
- package/dist/assets/225da11d23968333.svg +1 -0
- package/dist/assets/226f862dd81bdc13.woff2 +0 -0
- package/dist/assets/23a2d53395ddb14f.woff +0 -0
- package/dist/assets/259e6ad461a52ad7.svg +1 -0
- package/dist/assets/261e6dec4d53b9ac.woff +0 -0
- package/dist/assets/262f46a0b6d94bb6.svg +1 -0
- package/dist/assets/2857c513073467da.svg +1 -0
- package/dist/assets/2b3be7889467d98f.woff +0 -0
- package/dist/assets/2d4e6190eec72737.svg +1 -0
- package/dist/assets/2eba973185078bc8.woff +0 -0
- package/dist/assets/334d3f6bc766c516.woff +0 -0
- package/dist/assets/34ff7dd0c2285956.svg +1 -0
- package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
- package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
- package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
- package/dist/assets/3fc09a6113184f16.woff +0 -0
- package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
- package/dist/assets/41275bcb979cb650.svg +1 -0
- package/dist/assets/434f7982590e462f.woff +0 -0
- package/dist/assets/475937116ee3314a.woff2 +0 -0
- package/dist/assets/477e1881a0394cc5.woff +0 -0
- package/dist/assets/489710fb710e73f0.woff +0 -0
- package/dist/assets/49791943b3872376.woff2 +0 -0
- package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
- package/dist/assets/4d7a77b0e5373992.svg +1 -0
- package/dist/assets/4e43c74354534fb3.svg +1 -0
- package/dist/assets/4fe75f5117100705.svg +1 -0
- package/dist/assets/52e261a005074e1b.woff +0 -0
- package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
- package/dist/assets/54cda5482c6c9218.woff +0 -0
- package/dist/assets/550f52072e8ccafe.woff2 +0 -0
- package/dist/assets/572bb1bb4156a9c1.svg +1 -0
- package/dist/assets/6075995d7e74da46.woff2 +0 -0
- package/dist/assets/617c4736236e199e.woff +0 -0
- package/dist/assets/67230f05dc94a265.svg +1 -0
- package/dist/assets/6798e4dd4add9b48.svg +1 -0
- package/dist/assets/686d4077c1e26876.woff2 +0 -0
- package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
- package/dist/assets/6a3e73faf406cf33.svg +1 -0
- package/dist/assets/72de3a63bc0b70dd.svg +1 -0
- package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
- package/dist/assets/74ed5f8a78e71106.svg +1 -0
- package/dist/assets/7a5aa5abd625137f.ttf +0 -0
- package/dist/assets/7ce0c166fd6a1204.woff +0 -0
- package/dist/assets/7d55399c2a7bc985.svg +1 -0
- package/dist/assets/7d970675c69fca1d.woff +0 -0
- package/dist/assets/7eda727273fd98d3.svg +1 -0
- package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
- package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
- package/dist/assets/861e6b7192b3b6c7.woff +0 -0
- package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
- package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
- package/dist/assets/910b0d99b9e26568.svg +1 -0
- package/dist/assets/91fe94e424323d61.woff +0 -0
- package/dist/assets/92508f8707159b51.svg +1 -0
- package/dist/assets/9392bf1d591e1abb.svg +1 -0
- package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
- package/dist/assets/9cb83236f6bb7ab1.svg +1 -0
- package/dist/assets/9d37314695c0b68d.woff +0 -0
- package/dist/assets/a03cdcd8da5bb987.woff +0 -0
- package/dist/assets/a18404194e3f9047.svg +1 -0
- package/dist/assets/a2017fe7f0a26510.svg +1 -0
- package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
- package/dist/assets/abf88f301a0730f4.svg +1 -0
- package/dist/assets/ac1a99b3d05d8232.woff +0 -0
- package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
- package/dist/assets/b1a596e31ad1185a.svg +1 -0
- package/dist/assets/b27767411c8427be.woff +0 -0
- package/dist/assets/b325adcae33bbe7a.svg +1 -0
- package/dist/assets/b372390551ca2fa1.svg +1 -0
- package/dist/assets/b5bb1e8fc975decd.svg +1 -0
- package/dist/assets/b645a4a2181b9dc1.svg +1 -0
- package/dist/assets/b6499ddce0a4ef7d.svg +1 -0
- package/dist/assets/b7ffde2383bb16ba.woff2 +0 -0
- package/dist/assets/b94421fadd23b0f2.svg +1 -0
- package/dist/assets/bb28fb0f27f1c11b.svg +1 -0
- package/dist/assets/c5195215cb712e9c.woff2 +0 -0
- package/dist/assets/c9191b638a10f67b.woff2 +0 -0
- package/dist/assets/c97328b91ac5cc66.woff +0 -0
- package/dist/assets/ca791c5ca5848a03.svg +1 -0
- package/dist/assets/cb32840ce330103f.woff +0 -0
- package/dist/assets/ccc878931d74181b.woff2 +0 -0
- package/dist/assets/cdc69f8b549c866d.woff2 +0 -0
- package/dist/assets/d084bda16abe8a56.svg +1 -0
- package/dist/assets/d32b129cae2fffd6.svg +1 -0
- package/dist/assets/d35a4c7113315758.woff2 +0 -0
- package/dist/assets/d3f792f54ae4c307.svg +1 -0
- package/dist/assets/d5a5b8630120073d.svg +1 -0
- package/dist/assets/d5eb20bcdcf5616a.woff2 +0 -0
- package/dist/assets/d5f9664ebbfb104b.svg +1 -0
- package/dist/assets/d84247b59449dd88.woff2 +0 -0
- package/dist/assets/da4b7f5883fe7743.woff2 +0 -0
- package/dist/assets/dceaf3b39091e6a4.woff +0 -0
- package/dist/assets/dd05d43ff0df2fc7.svg +1 -0
- package/dist/assets/e2ad5b3428289141.woff +0 -0
- package/dist/assets/e38acaa1757232e0.svg +1 -0
- package/dist/assets/e4a8550f1c7ffe36.svg +1 -0
- package/dist/assets/e5adb5ae3a3698f6.svg +1 -0
- package/dist/assets/e61a1889bac955f4.woff2 +0 -0
- package/dist/assets/e72bb11356af94c7.svg +1 -0
- package/dist/assets/e98196a9f8dcb2f0.svg +1 -0
- package/dist/assets/ebec912a42ad49ff.woff +0 -0
- package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
- package/dist/assets/f09d89268e4c0317.svg +1 -0
- package/dist/assets/f239394367fcf005.woff2 +0 -0
- package/dist/assets/f5722262b6e7214e.woff2 +0 -0
- package/dist/assets/f7fc8bf46089d8b2.svg +1 -0
- package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
- package/dist/assets/fe141d99763f5d2b.woff +0 -0
- package/dist/assets/fed13b0d59903483.svg +1 -0
- package/dist/assets/fed757d2c2344ead.woff2 +0 -0
- package/dist/assets/ffc438f20e79ce73.woff +0 -0
- package/dist/framework.css +9 -0
- package/dist/framework.js +36471 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vendor-boolbase-D2i1C8XR.js +18 -0
- package/dist/vendor-cheerio-DrsWhxJH.js +1053 -0
- package/dist/vendor-cheerio-select-jw4C2SiT.js +191 -0
- package/dist/vendor-core-js-Do_NZFHx.js +880 -0
- package/dist/vendor-css-select-BwGMmTuc.js +622 -0
- package/dist/vendor-css-what-CZZaquJM.js +267 -0
- package/dist/vendor-cypress-signalr-mock-itnm2wpA.js +781 -0
- package/dist/vendor-d3-array-9cpTrqlO.js +149 -0
- package/dist/vendor-d3-axis-D1_DbKLz.js +74 -0
- package/dist/vendor-d3-brush-CcKeJp9e.js +1 -0
- package/dist/vendor-d3-color-BOYE6h_9.js +306 -0
- package/dist/vendor-d3-dispatch-fx-WMg0D.js +64 -0
- package/dist/vendor-d3-ease-Cr34gv04.js +8 -0
- package/dist/vendor-d3-format-DaIwZvFc.js +182 -0
- package/dist/vendor-d3-interpolate-BYG2gvO4.js +177 -0
- package/dist/vendor-d3-interpolate-path-CpGLvKgS.js +299 -0
- package/dist/vendor-d3-path-DJOTitNW.js +64 -0
- package/dist/vendor-d3-scale-CC5rtdt5.js +561 -0
- package/dist/vendor-d3-selection-CNMxsYiL.js +603 -0
- package/dist/vendor-d3-shape-DBhCDMiV.js +925 -0
- package/dist/vendor-d3-time-DAPP210_.js +212 -0
- package/dist/vendor-d3-time-format-hD7iE2WG.js +491 -0
- package/dist/vendor-d3-timer-C1cUWKPz.js +67 -0
- package/dist/vendor-d3-transition-BbNQT7qF.js +524 -0
- package/dist/vendor-d3-zoom-CcKeJp9e.js +1 -0
- package/dist/vendor-date-fns-BKO3x1R1.js +3102 -0
- package/dist/vendor-dom-serializer-BbVuF1MQ.js +213 -0
- package/dist/vendor-domelementtype-B3sFIGaC.js +21 -0
- package/dist/vendor-domhandler-Kufn9M_V.js +311 -0
- package/dist/vendor-dompurify-M2Bspgo5.js +553 -0
- package/dist/vendor-domutils-DDRq_ial.js +386 -0
- package/dist/vendor-emotion-cache-eEZT5l-Q.js +274 -0
- package/dist/vendor-emotion-hash-DImMRhyK.js +22 -0
- package/dist/vendor-emotion-memoize-BcEUCz8q.js +9 -0
- package/dist/vendor-emotion-serialize-BSDW8NwU.js +123 -0
- package/dist/vendor-emotion-sheet-CS8ZBl9s.js +44 -0
- package/dist/vendor-emotion-unitless-B7u1PU6w.js +53 -0
- package/dist/vendor-emotion-utils-D7refZTM.js +28 -0
- package/dist/vendor-entities-J86Og8IU.js +364 -0
- package/dist/vendor-floating-ui-core-BoHdh92a.js +432 -0
- package/dist/vendor-floating-ui-dom-BvVXFZ4B.js +398 -0
- package/dist/vendor-floating-ui-utils-CidJRIm2.js +257 -0
- package/dist/vendor-floating-ui-vue-sCrhit51.js +121 -0
- package/dist/vendor-gridstack-Dkfw452e.js +3390 -0
- package/dist/vendor-headlessui-vue-Cn-RMs4E.js +961 -0
- package/dist/vendor-htmlparser2-BxKKzWLL.js +735 -0
- package/dist/vendor-internmap-Q5729_cS.js +35 -0
- package/dist/vendor-intlify-core-base-BmIo1dK4.js +1141 -0
- package/dist/vendor-intlify-message-compiler-D9VOavkL.js +960 -0
- package/dist/vendor-intlify-shared-SCAs3ybf.js +144 -0
- package/dist/vendor-iso-639-1-rPqx9HMT.js +786 -0
- package/dist/vendor-juggle-resize-observer-DiSiNbbT.js +286 -0
- package/dist/vendor-linkify-it-LzoUhj6C.js +199 -0
- package/dist/vendor-linkifyjs-dCH9UYes.js +701 -0
- package/dist/vendor-lodash-es-BtnfG6xF.js +4829 -0
- package/dist/vendor-lucide-vue-next-CPgeDcFj.js +33093 -0
- package/dist/vendor-markdown-it-Bs9KEWkF.js +2266 -0
- package/dist/vendor-markdown-it-task-lists-CHCnS7dl.js +69 -0
- package/dist/vendor-mdurl-DZFDNdqC.js +192 -0
- package/dist/vendor-microsoft-applicationinsights-analytics-js-DFu_cVaY.js +1207 -0
- package/dist/vendor-microsoft-applicationinsights-cfgsync-js-DRQLN2Ue.js +261 -0
- package/dist/vendor-microsoft-applicationinsights-channel-js-BIJDcP3D.js +1822 -0
- package/dist/vendor-microsoft-applicationinsights-common-CJjmnDMb.js +1921 -0
- package/dist/vendor-microsoft-applicationinsights-core-js-BOc_o46i.js +4276 -0
- package/dist/vendor-microsoft-applicationinsights-dependencies-js-DDz502id.js +1407 -0
- package/dist/vendor-microsoft-applicationinsights-properties-js-9aDWHwXJ.js +572 -0
- package/dist/vendor-microsoft-applicationinsights-shims-Dton8Vqy.js +43 -0
- package/dist/vendor-microsoft-applicationinsights-web-DTa5YN-h.js +487 -0
- package/dist/vendor-microsoft-dynamicproto-js-89GEKjvR.js +147 -0
- package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +1761 -0
- package/dist/vendor-module-federation-enhanced-CV1CNdJy.js +22 -0
- package/dist/vendor-module-federation-error-codes-DdVwX11j.js +55 -0
- package/dist/vendor-module-federation-runtime-CVH_lWgu.js +91 -0
- package/dist/vendor-module-federation-runtime-core-D5G-s9nP.js +2202 -0
- package/dist/vendor-module-federation-runtime-tools-CQbtw-RJ.js +18 -0
- package/dist/vendor-module-federation-sdk-DM4AJRa7.js +683 -0
- package/dist/vendor-nevware21-ts-async-D4qa7g-U.js +261 -0
- package/dist/vendor-nevware21-ts-utils-DII8jruI.js +853 -0
- package/dist/vendor-nth-check-CGMdQf59.js +45 -0
- package/dist/vendor-orderedmap-B3SOk52B.js +103 -0
- package/dist/vendor-parse5-htmlparser2-tree-adapter-BUDJ887-.js +143 -0
- package/dist/vendor-parse5-zq5Hn0y9.js +5749 -0
- package/dist/vendor-prettier-CoRReRqw.js +5215 -0
- package/dist/vendor-prosemirror-commands-Bv4ChObl.js +385 -0
- package/dist/vendor-prosemirror-dropcursor-kF5UKNFM.js +86 -0
- package/dist/vendor-prosemirror-gapcursor-S3ikcYX6.js +203 -0
- package/dist/vendor-prosemirror-history-CQYKHz3u.js +248 -0
- package/dist/vendor-prosemirror-keymap-CAfQyvJ7.js +62 -0
- package/dist/vendor-prosemirror-markdown-rpUTSG_Q.js +663 -0
- package/dist/vendor-prosemirror-model-DAA3avbR.js +2730 -0
- package/dist/vendor-prosemirror-schema-list-BNJkECdS.js +87 -0
- package/dist/vendor-prosemirror-state-IeimrELV.js +821 -0
- package/dist/vendor-prosemirror-tables-zVUKdbdQ.js +1414 -0
- package/dist/vendor-prosemirror-transform-BUjWd5Tb.js +1525 -0
- package/dist/vendor-prosemirror-view-DFpBkGRq.js +3794 -0
- package/dist/vendor-punycode-js-CgGegfA_.js +133 -0
- package/dist/vendor-rope-sequence-BWC2FSrq.js +100 -0
- package/dist/vendor-semver-Dar8oU3V.js +1023 -0
- package/dist/vendor-striptags-BrHtQQiF.js +120 -0
- package/dist/vendor-stylis-ClfDrgKE.js +334 -0
- package/dist/vendor-swiper-1bp0oJwt.js +3387 -0
- package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
- package/dist/vendor-throttle-debounce-CX0imT7m.js +28 -0
- package/dist/vendor-tiptap-core-CDScflP1.js +3921 -0
- package/dist/vendor-tiptap-extension-blockquote-ChRAwuus.js +55 -0
- package/dist/vendor-tiptap-extension-bold-BwoVpOFS.js +74 -0
- package/dist/vendor-tiptap-extension-code-DOlgG3ih.js +52 -0
- package/dist/vendor-tiptap-extension-code-block-CMeTs87s.js +215 -0
- package/dist/vendor-tiptap-extension-document-DO8oly70.js +12 -0
- package/dist/vendor-tiptap-extension-hard-break-BgDl2sHf.js +59 -0
- package/dist/vendor-tiptap-extension-heading-DFuYlwHi.js +63 -0
- package/dist/vendor-tiptap-extension-horizontal-rule-uyfttMp9.js +56 -0
- package/dist/vendor-tiptap-extension-image-DPeBaTE3.js +128 -0
- package/dist/vendor-tiptap-extension-italic-C9-3jNxO.js +73 -0
- package/dist/vendor-tiptap-extension-link-B57VzStq.js +312 -0
- package/dist/vendor-tiptap-extension-list-spvOF7Mz.js +722 -0
- package/dist/vendor-tiptap-extension-paragraph-Cj7auQB7.js +44 -0
- package/dist/vendor-tiptap-extension-placeholder-DhwvmZ6Y.js +1 -0
- package/dist/vendor-tiptap-extension-strike-yj6UvnkO.js +64 -0
- package/dist/vendor-tiptap-extension-table-cell-CQpTPSvF.js +1 -0
- package/dist/vendor-tiptap-extension-table-ex1kZQ-9.js +374 -0
- package/dist/vendor-tiptap-extension-table-header-CQpTPSvF.js +1 -0
- package/dist/vendor-tiptap-extension-table-row-CQpTPSvF.js +1 -0
- package/dist/vendor-tiptap-extension-text-C8FG4KnI.js +13 -0
- package/dist/vendor-tiptap-extension-text-style-DsQDXowp.js +235 -0
- package/dist/vendor-tiptap-extension-underline-HB3fg6Dc.js +65 -0
- package/dist/vendor-tiptap-extensions-CUGwjzl5.js +296 -0
- package/dist/vendor-tiptap-markdown-DLzeP3KU.js +826 -0
- package/dist/vendor-tiptap-pm-DSHuSumV.js +1 -0
- package/dist/vendor-tiptap-starter-kit-C42PcJ7J.js +28 -0
- package/dist/vendor-tiptap-vue-3-BxWCzu9Z.js +157 -0
- package/dist/vendor-truncate-html-r2r8GKvW.js +145 -0
- package/dist/vendor-uc-micro-4lbSaZOs.js +17 -0
- package/dist/vendor-unovis-ts-Bue71Kwt.js +2382 -0
- package/dist/vendor-unovis-vue-C_K1g5KH.js +446 -0
- package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +93 -0
- package/dist/vendor-vee-validate-rules-4oWUZPpG.js +316 -0
- package/dist/vendor-vue-currency-input-CckB4kjx.js +317 -0
- package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
- package/dist/vendor-vue-devtools-api-aVYGocXp.js +93 -0
- package/dist/vendor-vue-i18n-DeO9Fa9I.js +1387 -0
- package/dist/vendor-vue-router-R3V0tq8_.js +6 -0
- package/dist/vendor-vue3-application-insights-BmJCYUcp.js +69 -0
- package/dist/vendor-vue3-touch-events-DqysuuWh.js +169 -0
- package/dist/vendor-vuepic-vue-datepicker-CaZ_qpJp.js +4998 -0
- package/dist/vendor-vueuse-components-Be490f6P.js +542 -0
- package/dist/vendor-vueuse-core-BW8bO6-j.js +5135 -0
- package/dist/vendor-vueuse-shared-bmkWEEYZ.js +1169 -0
- package/dist/vendor-w3c-keyname-CLxH8j-f.js +92 -0
- package/dist/vendor-web-vitals-vrpLO1bu.js +207 -0
- package/package.json +5 -8
|
@@ -0,0 +1,781 @@
|
|
|
1
|
+
var B = Object.defineProperty, J = (r, t, e) => t in r ? B(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, h = (r, t, e) => J(r, typeof t != "symbol" ? t + "" : t, e);
|
|
2
|
+
class c {
|
|
3
|
+
static debug(t) {
|
|
4
|
+
this._logLevel >= 4 && console.debug(this._prefix + t);
|
|
5
|
+
}
|
|
6
|
+
static info(t, e) {
|
|
7
|
+
this._logLevel >= 3 && (e !== void 0 ? console.info(this._prefix + t, e) : console.info(this._prefix + t));
|
|
8
|
+
}
|
|
9
|
+
static warn(t) {
|
|
10
|
+
this._logLevel >= 1 && console.warn(this._prefix + t);
|
|
11
|
+
}
|
|
12
|
+
static error(t, e = !0) {
|
|
13
|
+
if (this._logLevel >= 0) {
|
|
14
|
+
if (e)
|
|
15
|
+
throw new Error(this._prefix + t);
|
|
16
|
+
console.error(this._prefix + t);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
static setLogLevel(t) {
|
|
20
|
+
this._logLevel = t;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
h(c, "_prefix", "[Cypress-SignalR-Mock] - "), h(c, "_logLevel", 3);
|
|
24
|
+
var k = function(r, t) {
|
|
25
|
+
return k = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
|
|
26
|
+
e.__proto__ = n;
|
|
27
|
+
} || function(e, n) {
|
|
28
|
+
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
29
|
+
}, k(r, t);
|
|
30
|
+
};
|
|
31
|
+
function y(r, t) {
|
|
32
|
+
if (typeof t != "function" && t !== null)
|
|
33
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
34
|
+
k(r, t);
|
|
35
|
+
function e() {
|
|
36
|
+
this.constructor = r;
|
|
37
|
+
}
|
|
38
|
+
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
39
|
+
}
|
|
40
|
+
function S(r) {
|
|
41
|
+
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
|
|
42
|
+
if (e) return e.call(r);
|
|
43
|
+
if (r && typeof r.length == "number") return {
|
|
44
|
+
next: function() {
|
|
45
|
+
return r && n >= r.length && (r = void 0), { value: r && r[n++], done: !r };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
49
|
+
}
|
|
50
|
+
function x(r, t) {
|
|
51
|
+
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
|
52
|
+
if (!e) return r;
|
|
53
|
+
var n = e.call(r), o, i = [], s;
|
|
54
|
+
try {
|
|
55
|
+
for (; (t === void 0 || t-- > 0) && !(o = n.next()).done; ) i.push(o.value);
|
|
56
|
+
} catch (u) {
|
|
57
|
+
s = { error: u };
|
|
58
|
+
} finally {
|
|
59
|
+
try {
|
|
60
|
+
o && !o.done && (e = n.return) && e.call(n);
|
|
61
|
+
} finally {
|
|
62
|
+
if (s) throw s.error;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return i;
|
|
66
|
+
}
|
|
67
|
+
function O(r, t, e) {
|
|
68
|
+
if (arguments.length === 2) for (var n = 0, o = t.length, i; n < o; n++)
|
|
69
|
+
(i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
|
|
70
|
+
return r.concat(i || Array.prototype.slice.call(t));
|
|
71
|
+
}
|
|
72
|
+
function f(r) {
|
|
73
|
+
return typeof r == "function";
|
|
74
|
+
}
|
|
75
|
+
function V(r) {
|
|
76
|
+
var t = function(n) {
|
|
77
|
+
Error.call(n), n.stack = new Error().stack;
|
|
78
|
+
}, e = r(t);
|
|
79
|
+
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
80
|
+
}
|
|
81
|
+
var C = V(function(r) {
|
|
82
|
+
return function(t) {
|
|
83
|
+
r(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
84
|
+
` + t.map(function(e, n) {
|
|
85
|
+
return n + 1 + ") " + e.toString();
|
|
86
|
+
}).join(`
|
|
87
|
+
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
function P(r, t) {
|
|
91
|
+
if (r) {
|
|
92
|
+
var e = r.indexOf(t);
|
|
93
|
+
0 <= e && r.splice(e, 1);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
var m = (function() {
|
|
97
|
+
function r(t) {
|
|
98
|
+
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
99
|
+
}
|
|
100
|
+
return r.prototype.unsubscribe = function() {
|
|
101
|
+
var t, e, n, o, i;
|
|
102
|
+
if (!this.closed) {
|
|
103
|
+
this.closed = !0;
|
|
104
|
+
var s = this._parentage;
|
|
105
|
+
if (s)
|
|
106
|
+
if (this._parentage = null, Array.isArray(s))
|
|
107
|
+
try {
|
|
108
|
+
for (var u = S(s), a = u.next(); !a.done; a = u.next()) {
|
|
109
|
+
var g = a.value;
|
|
110
|
+
g.remove(this);
|
|
111
|
+
}
|
|
112
|
+
} catch (l) {
|
|
113
|
+
t = { error: l };
|
|
114
|
+
} finally {
|
|
115
|
+
try {
|
|
116
|
+
a && !a.done && (e = u.return) && e.call(u);
|
|
117
|
+
} finally {
|
|
118
|
+
if (t) throw t.error;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
else
|
|
122
|
+
s.remove(this);
|
|
123
|
+
var L = this.initialTeardown;
|
|
124
|
+
if (f(L))
|
|
125
|
+
try {
|
|
126
|
+
L();
|
|
127
|
+
} catch (l) {
|
|
128
|
+
i = l instanceof C ? l.errors : [l];
|
|
129
|
+
}
|
|
130
|
+
var j = this._finalizers;
|
|
131
|
+
if (j) {
|
|
132
|
+
this._finalizers = null;
|
|
133
|
+
try {
|
|
134
|
+
for (var d = S(j), p = d.next(); !p.done; p = d.next()) {
|
|
135
|
+
var q = p.value;
|
|
136
|
+
try {
|
|
137
|
+
D(q);
|
|
138
|
+
} catch (l) {
|
|
139
|
+
i = i ?? [], l instanceof C ? i = O(O([], x(i)), x(l.errors)) : i.push(l);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
} catch (l) {
|
|
143
|
+
n = { error: l };
|
|
144
|
+
} finally {
|
|
145
|
+
try {
|
|
146
|
+
p && !p.done && (o = d.return) && o.call(d);
|
|
147
|
+
} finally {
|
|
148
|
+
if (n) throw n.error;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
if (i)
|
|
153
|
+
throw new C(i);
|
|
154
|
+
}
|
|
155
|
+
}, r.prototype.add = function(t) {
|
|
156
|
+
var e;
|
|
157
|
+
if (t && t !== this)
|
|
158
|
+
if (this.closed)
|
|
159
|
+
D(t);
|
|
160
|
+
else {
|
|
161
|
+
if (t instanceof r) {
|
|
162
|
+
if (t.closed || t._hasParent(this))
|
|
163
|
+
return;
|
|
164
|
+
t._addParent(this);
|
|
165
|
+
}
|
|
166
|
+
(this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
|
|
167
|
+
}
|
|
168
|
+
}, r.prototype._hasParent = function(t) {
|
|
169
|
+
var e = this._parentage;
|
|
170
|
+
return e === t || Array.isArray(e) && e.includes(t);
|
|
171
|
+
}, r.prototype._addParent = function(t) {
|
|
172
|
+
var e = this._parentage;
|
|
173
|
+
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
174
|
+
}, r.prototype._removeParent = function(t) {
|
|
175
|
+
var e = this._parentage;
|
|
176
|
+
e === t ? this._parentage = null : Array.isArray(e) && P(e, t);
|
|
177
|
+
}, r.prototype.remove = function(t) {
|
|
178
|
+
var e = this._finalizers;
|
|
179
|
+
e && P(e, t), t instanceof r && t._removeParent(this);
|
|
180
|
+
}, r.EMPTY = (function() {
|
|
181
|
+
var t = new r();
|
|
182
|
+
return t.closed = !0, t;
|
|
183
|
+
})(), r;
|
|
184
|
+
})(), F = m.EMPTY;
|
|
185
|
+
function H(r) {
|
|
186
|
+
return r instanceof m || r && "closed" in r && f(r.remove) && f(r.add) && f(r.unsubscribe);
|
|
187
|
+
}
|
|
188
|
+
function D(r) {
|
|
189
|
+
f(r) ? r() : r.unsubscribe();
|
|
190
|
+
}
|
|
191
|
+
var K = {
|
|
192
|
+
Promise: void 0
|
|
193
|
+
}, Q = {
|
|
194
|
+
setTimeout: function(r, t) {
|
|
195
|
+
for (var e = [], n = 2; n < arguments.length; n++)
|
|
196
|
+
e[n - 2] = arguments[n];
|
|
197
|
+
return setTimeout.apply(void 0, O([r, t], x(e)));
|
|
198
|
+
},
|
|
199
|
+
clearTimeout: function(r) {
|
|
200
|
+
return clearTimeout(r);
|
|
201
|
+
},
|
|
202
|
+
delegate: void 0
|
|
203
|
+
};
|
|
204
|
+
function W(r) {
|
|
205
|
+
Q.setTimeout(function() {
|
|
206
|
+
throw r;
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
function A() {
|
|
210
|
+
}
|
|
211
|
+
function v(r) {
|
|
212
|
+
r();
|
|
213
|
+
}
|
|
214
|
+
var U = (function(r) {
|
|
215
|
+
y(t, r);
|
|
216
|
+
function t(e) {
|
|
217
|
+
var n = r.call(this) || this;
|
|
218
|
+
return n.isStopped = !1, e ? (n.destination = e, H(e) && e.add(n)) : n.destination = G, n;
|
|
219
|
+
}
|
|
220
|
+
return t.create = function(e, n, o) {
|
|
221
|
+
return new T(e, n, o);
|
|
222
|
+
}, t.prototype.next = function(e) {
|
|
223
|
+
this.isStopped || this._next(e);
|
|
224
|
+
}, t.prototype.error = function(e) {
|
|
225
|
+
this.isStopped || (this.isStopped = !0, this._error(e));
|
|
226
|
+
}, t.prototype.complete = function() {
|
|
227
|
+
this.isStopped || (this.isStopped = !0, this._complete());
|
|
228
|
+
}, t.prototype.unsubscribe = function() {
|
|
229
|
+
this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
|
|
230
|
+
}, t.prototype._next = function(e) {
|
|
231
|
+
this.destination.next(e);
|
|
232
|
+
}, t.prototype._error = function(e) {
|
|
233
|
+
try {
|
|
234
|
+
this.destination.error(e);
|
|
235
|
+
} finally {
|
|
236
|
+
this.unsubscribe();
|
|
237
|
+
}
|
|
238
|
+
}, t.prototype._complete = function() {
|
|
239
|
+
try {
|
|
240
|
+
this.destination.complete();
|
|
241
|
+
} finally {
|
|
242
|
+
this.unsubscribe();
|
|
243
|
+
}
|
|
244
|
+
}, t;
|
|
245
|
+
})(m), X = (function() {
|
|
246
|
+
function r(t) {
|
|
247
|
+
this.partialObserver = t;
|
|
248
|
+
}
|
|
249
|
+
return r.prototype.next = function(t) {
|
|
250
|
+
var e = this.partialObserver;
|
|
251
|
+
if (e.next)
|
|
252
|
+
try {
|
|
253
|
+
e.next(t);
|
|
254
|
+
} catch (n) {
|
|
255
|
+
b(n);
|
|
256
|
+
}
|
|
257
|
+
}, r.prototype.error = function(t) {
|
|
258
|
+
var e = this.partialObserver;
|
|
259
|
+
if (e.error)
|
|
260
|
+
try {
|
|
261
|
+
e.error(t);
|
|
262
|
+
} catch (n) {
|
|
263
|
+
b(n);
|
|
264
|
+
}
|
|
265
|
+
else
|
|
266
|
+
b(t);
|
|
267
|
+
}, r.prototype.complete = function() {
|
|
268
|
+
var t = this.partialObserver;
|
|
269
|
+
if (t.complete)
|
|
270
|
+
try {
|
|
271
|
+
t.complete();
|
|
272
|
+
} catch (e) {
|
|
273
|
+
b(e);
|
|
274
|
+
}
|
|
275
|
+
}, r;
|
|
276
|
+
})(), T = (function(r) {
|
|
277
|
+
y(t, r);
|
|
278
|
+
function t(e, n, o) {
|
|
279
|
+
var i = r.call(this) || this, s;
|
|
280
|
+
return f(e) || !e ? s = {
|
|
281
|
+
next: e ?? void 0,
|
|
282
|
+
error: n ?? void 0,
|
|
283
|
+
complete: o ?? void 0
|
|
284
|
+
} : s = e, i.destination = new X(s), i;
|
|
285
|
+
}
|
|
286
|
+
return t;
|
|
287
|
+
})(U);
|
|
288
|
+
function b(r) {
|
|
289
|
+
W(r);
|
|
290
|
+
}
|
|
291
|
+
function Z(r) {
|
|
292
|
+
throw r;
|
|
293
|
+
}
|
|
294
|
+
var G = {
|
|
295
|
+
closed: !0,
|
|
296
|
+
next: A,
|
|
297
|
+
error: Z,
|
|
298
|
+
complete: A
|
|
299
|
+
}, tt = (function() {
|
|
300
|
+
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
301
|
+
})();
|
|
302
|
+
function et(r) {
|
|
303
|
+
return r;
|
|
304
|
+
}
|
|
305
|
+
function rt(r) {
|
|
306
|
+
return r.length === 0 ? et : r.length === 1 ? r[0] : function(t) {
|
|
307
|
+
return r.reduce(function(e, n) {
|
|
308
|
+
return n(e);
|
|
309
|
+
}, t);
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
var M = (function() {
|
|
313
|
+
function r(t) {
|
|
314
|
+
t && (this._subscribe = t);
|
|
315
|
+
}
|
|
316
|
+
return r.prototype.lift = function(t) {
|
|
317
|
+
var e = new r();
|
|
318
|
+
return e.source = this, e.operator = t, e;
|
|
319
|
+
}, r.prototype.subscribe = function(t, e, n) {
|
|
320
|
+
var o = this, i = ot(t) ? t : new T(t, e, n);
|
|
321
|
+
return v(function() {
|
|
322
|
+
var s = o, u = s.operator, a = s.source;
|
|
323
|
+
i.add(u ? u.call(i, a) : a ? o._subscribe(i) : o._trySubscribe(i));
|
|
324
|
+
}), i;
|
|
325
|
+
}, r.prototype._trySubscribe = function(t) {
|
|
326
|
+
try {
|
|
327
|
+
return this._subscribe(t);
|
|
328
|
+
} catch (e) {
|
|
329
|
+
t.error(e);
|
|
330
|
+
}
|
|
331
|
+
}, r.prototype.forEach = function(t, e) {
|
|
332
|
+
var n = this;
|
|
333
|
+
return e = $(e), new e(function(o, i) {
|
|
334
|
+
var s = new T({
|
|
335
|
+
next: function(u) {
|
|
336
|
+
try {
|
|
337
|
+
t(u);
|
|
338
|
+
} catch (a) {
|
|
339
|
+
i(a), s.unsubscribe();
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
error: i,
|
|
343
|
+
complete: o
|
|
344
|
+
});
|
|
345
|
+
n.subscribe(s);
|
|
346
|
+
});
|
|
347
|
+
}, r.prototype._subscribe = function(t) {
|
|
348
|
+
var e;
|
|
349
|
+
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
350
|
+
}, r.prototype[tt] = function() {
|
|
351
|
+
return this;
|
|
352
|
+
}, r.prototype.pipe = function() {
|
|
353
|
+
for (var t = [], e = 0; e < arguments.length; e++)
|
|
354
|
+
t[e] = arguments[e];
|
|
355
|
+
return rt(t)(this);
|
|
356
|
+
}, r.prototype.toPromise = function(t) {
|
|
357
|
+
var e = this;
|
|
358
|
+
return t = $(t), new t(function(n, o) {
|
|
359
|
+
var i;
|
|
360
|
+
e.subscribe(function(s) {
|
|
361
|
+
return i = s;
|
|
362
|
+
}, function(s) {
|
|
363
|
+
return o(s);
|
|
364
|
+
}, function() {
|
|
365
|
+
return n(i);
|
|
366
|
+
});
|
|
367
|
+
});
|
|
368
|
+
}, r.create = function(t) {
|
|
369
|
+
return new r(t);
|
|
370
|
+
}, r;
|
|
371
|
+
})();
|
|
372
|
+
function $(r) {
|
|
373
|
+
var t;
|
|
374
|
+
return (t = r ?? K.Promise) !== null && t !== void 0 ? t : Promise;
|
|
375
|
+
}
|
|
376
|
+
function nt(r) {
|
|
377
|
+
return r && f(r.next) && f(r.error) && f(r.complete);
|
|
378
|
+
}
|
|
379
|
+
function ot(r) {
|
|
380
|
+
return r && r instanceof U || nt(r) && H(r);
|
|
381
|
+
}
|
|
382
|
+
var it = V(function(r) {
|
|
383
|
+
return function() {
|
|
384
|
+
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
385
|
+
};
|
|
386
|
+
}), E = (function(r) {
|
|
387
|
+
y(t, r);
|
|
388
|
+
function t() {
|
|
389
|
+
var e = r.call(this) || this;
|
|
390
|
+
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
391
|
+
}
|
|
392
|
+
return t.prototype.lift = function(e) {
|
|
393
|
+
var n = new z(this, this);
|
|
394
|
+
return n.operator = e, n;
|
|
395
|
+
}, t.prototype._throwIfClosed = function() {
|
|
396
|
+
if (this.closed)
|
|
397
|
+
throw new it();
|
|
398
|
+
}, t.prototype.next = function(e) {
|
|
399
|
+
var n = this;
|
|
400
|
+
v(function() {
|
|
401
|
+
var o, i;
|
|
402
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
403
|
+
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
404
|
+
try {
|
|
405
|
+
for (var s = S(n.currentObservers), u = s.next(); !u.done; u = s.next()) {
|
|
406
|
+
var a = u.value;
|
|
407
|
+
a.next(e);
|
|
408
|
+
}
|
|
409
|
+
} catch (g) {
|
|
410
|
+
o = { error: g };
|
|
411
|
+
} finally {
|
|
412
|
+
try {
|
|
413
|
+
u && !u.done && (i = s.return) && i.call(s);
|
|
414
|
+
} finally {
|
|
415
|
+
if (o) throw o.error;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
}, t.prototype.error = function(e) {
|
|
421
|
+
var n = this;
|
|
422
|
+
v(function() {
|
|
423
|
+
if (n._throwIfClosed(), !n.isStopped) {
|
|
424
|
+
n.hasError = n.isStopped = !0, n.thrownError = e;
|
|
425
|
+
for (var o = n.observers; o.length; )
|
|
426
|
+
o.shift().error(e);
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
}, t.prototype.complete = function() {
|
|
430
|
+
var e = this;
|
|
431
|
+
v(function() {
|
|
432
|
+
if (e._throwIfClosed(), !e.isStopped) {
|
|
433
|
+
e.isStopped = !0;
|
|
434
|
+
for (var n = e.observers; n.length; )
|
|
435
|
+
n.shift().complete();
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
}, t.prototype.unsubscribe = function() {
|
|
439
|
+
this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
|
|
440
|
+
}, Object.defineProperty(t.prototype, "observed", {
|
|
441
|
+
get: function() {
|
|
442
|
+
var e;
|
|
443
|
+
return ((e = this.observers) === null || e === void 0 ? void 0 : e.length) > 0;
|
|
444
|
+
},
|
|
445
|
+
enumerable: !1,
|
|
446
|
+
configurable: !0
|
|
447
|
+
}), t.prototype._trySubscribe = function(e) {
|
|
448
|
+
return this._throwIfClosed(), r.prototype._trySubscribe.call(this, e);
|
|
449
|
+
}, t.prototype._subscribe = function(e) {
|
|
450
|
+
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
451
|
+
}, t.prototype._innerSubscribe = function(e) {
|
|
452
|
+
var n = this, o = this, i = o.hasError, s = o.isStopped, u = o.observers;
|
|
453
|
+
return i || s ? F : (this.currentObservers = null, u.push(e), new m(function() {
|
|
454
|
+
n.currentObservers = null, P(u, e);
|
|
455
|
+
}));
|
|
456
|
+
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
457
|
+
var n = this, o = n.hasError, i = n.thrownError, s = n.isStopped;
|
|
458
|
+
o ? e.error(i) : s && e.complete();
|
|
459
|
+
}, t.prototype.asObservable = function() {
|
|
460
|
+
var e = new M();
|
|
461
|
+
return e.source = this, e;
|
|
462
|
+
}, t.create = function(e, n) {
|
|
463
|
+
return new z(e, n);
|
|
464
|
+
}, t;
|
|
465
|
+
})(M), z = (function(r) {
|
|
466
|
+
y(t, r);
|
|
467
|
+
function t(e, n) {
|
|
468
|
+
var o = r.call(this) || this;
|
|
469
|
+
return o.destination = e, o.source = n, o;
|
|
470
|
+
}
|
|
471
|
+
return t.prototype.next = function(e) {
|
|
472
|
+
var n, o;
|
|
473
|
+
(o = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || o === void 0 || o.call(n, e);
|
|
474
|
+
}, t.prototype.error = function(e) {
|
|
475
|
+
var n, o;
|
|
476
|
+
(o = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || o === void 0 || o.call(n, e);
|
|
477
|
+
}, t.prototype.complete = function() {
|
|
478
|
+
var e, n;
|
|
479
|
+
(n = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || n === void 0 || n.call(e);
|
|
480
|
+
}, t.prototype._subscribe = function(e) {
|
|
481
|
+
var n, o;
|
|
482
|
+
return (o = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e)) !== null && o !== void 0 ? o : F;
|
|
483
|
+
}, t;
|
|
484
|
+
})(E);
|
|
485
|
+
class st {
|
|
486
|
+
constructor(t, e) {
|
|
487
|
+
this._subject = t, this._observer = e;
|
|
488
|
+
}
|
|
489
|
+
dispose() {
|
|
490
|
+
const t = this._subject.observers.indexOf(this._observer);
|
|
491
|
+
t > -1 && this._subject.observers.splice(t, 1), this._subject.observers.length === 0 && this._subject.cancelCallback && this._subject.cancelCallback().catch((e) => {
|
|
492
|
+
});
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
class ut {
|
|
496
|
+
constructor() {
|
|
497
|
+
this.observers = [];
|
|
498
|
+
}
|
|
499
|
+
next(t) {
|
|
500
|
+
for (const e of this.observers)
|
|
501
|
+
e.next(t);
|
|
502
|
+
}
|
|
503
|
+
error(t) {
|
|
504
|
+
for (const e of this.observers)
|
|
505
|
+
e.error && e.error(t);
|
|
506
|
+
}
|
|
507
|
+
complete() {
|
|
508
|
+
for (const t of this.observers)
|
|
509
|
+
t.complete && t.complete();
|
|
510
|
+
}
|
|
511
|
+
subscribe(t) {
|
|
512
|
+
return this.observers.push(t), new st(this, t);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
class ct {
|
|
516
|
+
constructor(t) {
|
|
517
|
+
h(this, "_hubConnectionData", []), h(this, "_serverInvokes", []), h(this, "_invokeResponses", {}), h(this, "name"), this.name = t;
|
|
518
|
+
}
|
|
519
|
+
publish(t, ...e) {
|
|
520
|
+
t = t.toLowerCase();
|
|
521
|
+
const n = this._hubConnectionData.filter(
|
|
522
|
+
(o) => o.messageType === t
|
|
523
|
+
);
|
|
524
|
+
if (n.length === 0) {
|
|
525
|
+
c.warn(`No subscribers for ${t}`);
|
|
526
|
+
return;
|
|
527
|
+
}
|
|
528
|
+
c.debug(
|
|
529
|
+
`Publishing action: ${t} to ${n.length} subscribers`
|
|
530
|
+
), n.forEach((o) => {
|
|
531
|
+
o.channel.next({ name: t, values: e });
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
verify(t, e) {
|
|
535
|
+
t = t.toLowerCase();
|
|
536
|
+
const n = this._serverInvokes.filter(
|
|
537
|
+
(o) => o.action === t
|
|
538
|
+
);
|
|
539
|
+
e && e(n);
|
|
540
|
+
}
|
|
541
|
+
mockInvoke(t, e) {
|
|
542
|
+
this._invokeResponses[t] = e;
|
|
543
|
+
}
|
|
544
|
+
unmockInvoke(t) {
|
|
545
|
+
delete this._invokeResponses[t];
|
|
546
|
+
}
|
|
547
|
+
on(t, e) {
|
|
548
|
+
t = t.toLowerCase(), this._hubConnectionData.some((i) => i.messageType === t) || this._hubConnectionData.push({
|
|
549
|
+
messageType: t,
|
|
550
|
+
isStream: !1,
|
|
551
|
+
channel: new E(),
|
|
552
|
+
subscriptions: []
|
|
553
|
+
});
|
|
554
|
+
let n = this._hubConnectionData.find(
|
|
555
|
+
(i) => i.messageType === t
|
|
556
|
+
);
|
|
557
|
+
if (!n)
|
|
558
|
+
throw new Error(`Could not find connection data for ${t}`);
|
|
559
|
+
let o = n.channel.subscribe((i) => {
|
|
560
|
+
e(...i.values);
|
|
561
|
+
});
|
|
562
|
+
n.subscriptions.push({
|
|
563
|
+
handler: e,
|
|
564
|
+
subscription: o
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
/** Invokes a streaming hub method on the server using the specified name and arguments.
|
|
568
|
+
*
|
|
569
|
+
* @typeparam T The type of the items returned by the server.
|
|
570
|
+
* @param {string} methodName The name of the server method to invoke.
|
|
571
|
+
* @param {any[]} args The arguments used to invoke the server method.
|
|
572
|
+
* @returns {IStreamResult<T>} An object that yields results from the server as they are received.
|
|
573
|
+
*/
|
|
574
|
+
// @ts-ignore
|
|
575
|
+
stream(t, ...e) {
|
|
576
|
+
t = t.toLowerCase(), this._hubConnectionData.some((i) => i.messageType === t) || this._hubConnectionData.push({
|
|
577
|
+
messageType: t,
|
|
578
|
+
isStream: !0,
|
|
579
|
+
channel: new E(),
|
|
580
|
+
subscriptions: []
|
|
581
|
+
});
|
|
582
|
+
let n = this._hubConnectionData.find(
|
|
583
|
+
(i) => i.messageType === t
|
|
584
|
+
);
|
|
585
|
+
if (!n)
|
|
586
|
+
throw new Error(`Could not find connection data for ${t}`);
|
|
587
|
+
const o = new ut();
|
|
588
|
+
return n.channel.subscribe({
|
|
589
|
+
next: (i) => o.next(i),
|
|
590
|
+
error: (i) => o.error(i),
|
|
591
|
+
complete: () => o.complete()
|
|
592
|
+
}), o;
|
|
593
|
+
}
|
|
594
|
+
/** Invokes a hub method on the server using the specified name and arguments.
|
|
595
|
+
*
|
|
596
|
+
* The Promise returned by this method resolves when the server indicates it has finished invoking the method. When the promise
|
|
597
|
+
* resolves, the server has finished invoking the method. If the server method returns a result, it is produced as the result of
|
|
598
|
+
* resolving the Promise.
|
|
599
|
+
*
|
|
600
|
+
* @typeparam T The expected return type.
|
|
601
|
+
* @param {string} methodName The name of the server method to invoke.
|
|
602
|
+
* @param {any[]} args The arguments used to invoke the server method.
|
|
603
|
+
* @returns {Promise<T>} A Promise that resolves with the result of the server method (if any), or rejects with an error.
|
|
604
|
+
*/
|
|
605
|
+
invoke(t, ...e) {
|
|
606
|
+
return new Promise((n) => {
|
|
607
|
+
this._serverInvokes.push({
|
|
608
|
+
action: t,
|
|
609
|
+
args: e
|
|
610
|
+
});
|
|
611
|
+
const o = this._invokeResponses[t];
|
|
612
|
+
n(o !== void 0 ? o : 0);
|
|
613
|
+
});
|
|
614
|
+
}
|
|
615
|
+
off(t, e) {
|
|
616
|
+
t = t.toLowerCase();
|
|
617
|
+
const n = this._hubConnectionData.findIndex(
|
|
618
|
+
(o) => o.messageType === t
|
|
619
|
+
);
|
|
620
|
+
if (n == -1) {
|
|
621
|
+
c.warn(`No channels registered for action name: ${t}`);
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
if (e) {
|
|
625
|
+
const o = this._hubConnectionData[n].subscriptions.findIndex((i) => i.handler === e);
|
|
626
|
+
if (o == -1) {
|
|
627
|
+
c.warn(
|
|
628
|
+
`Could not find the handler to delete for action name: ${t}`
|
|
629
|
+
);
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
this._hubConnectionData[n].subscriptions.splice(o, 1), this._hubConnectionData[n].subscriptions.length === 0 && this._hubConnectionData.splice(n, 1);
|
|
633
|
+
} else
|
|
634
|
+
this._hubConnectionData.splice(n, 1);
|
|
635
|
+
}
|
|
636
|
+
/** Registers a handler that will be invoked when the connection is closed.
|
|
637
|
+
*
|
|
638
|
+
* @param {Function} callback The handler that will be invoked when the connection is closed. Optionally receives a single argument containing the error that caused the connection to close (if any).
|
|
639
|
+
*/
|
|
640
|
+
// @ts-ignore
|
|
641
|
+
onclose(t) {
|
|
642
|
+
}
|
|
643
|
+
/** Starts the connection.
|
|
644
|
+
*
|
|
645
|
+
* @returns {Promise<void>} A Promise that resolves when the connection has been successfully established, or rejects with an error.
|
|
646
|
+
*/
|
|
647
|
+
start() {
|
|
648
|
+
return Promise.resolve();
|
|
649
|
+
}
|
|
650
|
+
/** Stops the connection.
|
|
651
|
+
*
|
|
652
|
+
* @returns {Promise<void>} A Promise that resolves when the connection has been successfully terminated, or rejects with an error.
|
|
653
|
+
*/
|
|
654
|
+
async stop() {
|
|
655
|
+
return Promise.resolve();
|
|
656
|
+
}
|
|
657
|
+
/** Registers a handler that will be invoked when the connection starts reconnecting.
|
|
658
|
+
*
|
|
659
|
+
* @param {Function} callback The handler that will be invoked when the connection starts reconnecting. Optionally receives a single argument containing the error that caused the connection to start reconnecting (if any).
|
|
660
|
+
*/
|
|
661
|
+
// @ts-ignore
|
|
662
|
+
onreconnecting(t) {
|
|
663
|
+
}
|
|
664
|
+
/** Registers a handler that will be invoked when the connection successfully reconnects.
|
|
665
|
+
*
|
|
666
|
+
* @param {Function} callback The handler that will be invoked when the connection successfully reconnects.
|
|
667
|
+
*/
|
|
668
|
+
// @ts-ignore
|
|
669
|
+
onreconnected(t) {
|
|
670
|
+
}
|
|
671
|
+
/** Invokes a hub method on the server using the specified name and arguments. Does not wait for a response from the receiver.
|
|
672
|
+
*
|
|
673
|
+
* The Promise returned by this method resolves when the client has sent the invocation to the server. The server may still
|
|
674
|
+
* be processing the invocation.
|
|
675
|
+
*
|
|
676
|
+
* @param {string} methodName The name of the server method to invoke.
|
|
677
|
+
* @param {any[]} args The arguments used to invoke the server method.
|
|
678
|
+
* @returns {Promise<void>} A Promise that resolves when the invocation has been successfully sent, or rejects with an error.
|
|
679
|
+
*/
|
|
680
|
+
// @ts-ignore
|
|
681
|
+
send(t, ...e) {
|
|
682
|
+
return Promise.resolve();
|
|
683
|
+
}
|
|
684
|
+
// endregion
|
|
685
|
+
}
|
|
686
|
+
function N() {
|
|
687
|
+
return I() ? !1 : !!window.Cypress;
|
|
688
|
+
}
|
|
689
|
+
function _() {
|
|
690
|
+
return !I() && window["cypress-signalr-mock"] ? window["cypress-signalr-mock"] : (Y(), _());
|
|
691
|
+
}
|
|
692
|
+
function at(r) {
|
|
693
|
+
I() || (window["cypress-signalr-mock"] = r);
|
|
694
|
+
}
|
|
695
|
+
function Y() {
|
|
696
|
+
at(lt());
|
|
697
|
+
}
|
|
698
|
+
function lt() {
|
|
699
|
+
return {
|
|
700
|
+
mocks: []
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
function w(r) {
|
|
704
|
+
return _().mocks.find((t) => t.name === r) ?? null;
|
|
705
|
+
}
|
|
706
|
+
function I() {
|
|
707
|
+
return typeof window > "u" ? (c.error(
|
|
708
|
+
"window is not defined. This most likely happens during SSR, which is not supported",
|
|
709
|
+
!1
|
|
710
|
+
), !0) : !1;
|
|
711
|
+
}
|
|
712
|
+
function R() {
|
|
713
|
+
var r;
|
|
714
|
+
return typeof process < "u" && ((r = process == null ? void 0 : process.env) == null ? void 0 : r.hasOwnProperty("VITEST")) && process.env.VITEST === "true";
|
|
715
|
+
}
|
|
716
|
+
function ft() {
|
|
717
|
+
if (!N()) {
|
|
718
|
+
c.debug("Cypress is not running, skipping setup of Cypress commands");
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
const r = window.Cypress;
|
|
722
|
+
r.Commands.add("hubMockInvoke", ht), r.Commands.add("hubUnmockInvoke", pt), r.Commands.add("hubPublish", dt), r.Commands.add("hubVerifyInvokes", bt), r.Commands.add("hubClear", yt), r.Commands.add("hubPrintData", vt);
|
|
723
|
+
}
|
|
724
|
+
function ht(r, t, e) {
|
|
725
|
+
const n = w(r);
|
|
726
|
+
if (!n) {
|
|
727
|
+
c.error(`[cy.hubMockInvoke] - HubConnectionMock not found for ${r}`);
|
|
728
|
+
return;
|
|
729
|
+
}
|
|
730
|
+
n.mockInvoke(t, e);
|
|
731
|
+
}
|
|
732
|
+
function pt(r, t) {
|
|
733
|
+
const e = w(r);
|
|
734
|
+
if (!e) {
|
|
735
|
+
c.error(`[cy.hubUnmockInvoke] - HubConnectionMock not found for ${r}`);
|
|
736
|
+
return;
|
|
737
|
+
}
|
|
738
|
+
e.unmockInvoke(t);
|
|
739
|
+
}
|
|
740
|
+
function dt(r, t, ...e) {
|
|
741
|
+
const n = w(r);
|
|
742
|
+
if (!n) {
|
|
743
|
+
c.error(`[cy.hubPublish] - HubConnectionMock not found for ${r}`);
|
|
744
|
+
return;
|
|
745
|
+
}
|
|
746
|
+
n.publish(t, ...e);
|
|
747
|
+
}
|
|
748
|
+
function bt(r, t, e) {
|
|
749
|
+
const n = w(r);
|
|
750
|
+
if (!n) {
|
|
751
|
+
c.error(
|
|
752
|
+
`[cy.hubVerify] - HubConnectionMock not found for hub with name: ${r}`
|
|
753
|
+
);
|
|
754
|
+
return;
|
|
755
|
+
}
|
|
756
|
+
n.verify(t, e);
|
|
757
|
+
}
|
|
758
|
+
function vt() {
|
|
759
|
+
c.info(
|
|
760
|
+
'Current window["cypress-signalr-mock"] data:',
|
|
761
|
+
_()
|
|
762
|
+
);
|
|
763
|
+
}
|
|
764
|
+
function yt() {
|
|
765
|
+
Y();
|
|
766
|
+
}
|
|
767
|
+
ft();
|
|
768
|
+
mt("default");
|
|
769
|
+
function mt(r, t) {
|
|
770
|
+
const { debug: e, enableForVitest: n } = t ?? {};
|
|
771
|
+
if (e && c.setLogLevel(4), !n && R() && c.info(
|
|
772
|
+
"Vitest detected. To enable CypressSignalRMock in Vitest, pass { enableForVitest: true } to useCypressSignalRMock(). Skipping..."
|
|
773
|
+
), N() || n && R()) {
|
|
774
|
+
const o = new ct(r);
|
|
775
|
+
return _().mocks.push(o), o;
|
|
776
|
+
}
|
|
777
|
+
return null;
|
|
778
|
+
}
|
|
779
|
+
export {
|
|
780
|
+
mt as _
|
|
781
|
+
};
|