Oviya commited on
Commit ·
6534ea1
1
Parent(s): 2434088
add staticchat
Browse filesFiles changed (14)
- dist/gramm-ai/3rdpartylicenses.txt+14
- dist/gramm-ai/browser/index.html+1-1
- dist/gramm-ai/browser/main-OWHUQN5B.jsAdded
- dist/gramm-ai/browser/main-P2CB6RHX.jsDeleted
- package-lock.json+37-65
- package.json+1
- src/app/app-routing.module.ts+21-13
- src/app/app.module.ts+5-2
- src/app/chat/api.service.ts+1-1
- src/app/pronunciation/pronunciation.service.ts+1-1
- src/app/staticchat/staticchat.component.cssAdded+495
- src/app/staticchat/staticchat.component.htmlAdded+115
- src/app/staticchat/staticchat.component.tsAdded+756
- src/app/staticchat/staticchat.service.tsAdded+155
303 unmodified lines304305306307308309303 unmodified linesLicense: "MIT"--------------------------------------------------------------------------------Package: zone.jsLicense: "MIT"303 unmodified lines304305306307308309310311312313314315316317318319320321322323303 unmodified linesLicense: "MIT"--------------------------------------------------------------------------------Package: uuidLicense: "MIT"The MIT License (MIT)Copyright (c) 2010-2020 Robert Kieffer and other contributorsPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.--------------------------------------------------------------------------------Package: zone.jsLicense: "MIT"
15 unmodified lines161718192015 unmodified lines</style><link rel="stylesheet" href="styles-TX4PRGSR.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-TX4PRGSR.css"></noscript></head><body><app-root></app-root><script src="polyfills-FFHMD2TL.js" type="module"></script><script src="main-P2CB6RHX.js" type="module"></script></body></html>15 unmodified lines161718192015 unmodified lines</style><link rel="stylesheet" href="styles-TX4PRGSR.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-TX4PRGSR.css"></noscript></head><body><app-root></app-root><script src="polyfills-FFHMD2TL.js" type="module"></script><script src="main-OWHUQN5B.js" type="module"></script></body></html>
26 unmodified lines272829303132238 unmodified lines27127227327427527627777 unmodified lines35535635735835936036160 unmodified lines4224234244254264274289 unmodified lines43843944044144244344414 unmodified lines45946046146246346446566 unmodified lines5325335345355365375389 unmodified lines54854955055155255355476 unmodified lines63163263363463563663770 unmodified lines7087097107117127137144628 unmodified lines534353445345534653475348534964 unmodified lines5414541554165417541854195420477 unmodified lines58985899590059015902590359042991 unmodified lines88968897889888998900890189028903703 unmodified lines9607960896099610961196129613200 unmodified lines98149815981698179818981998201608 unmodified lines11429114301143111432114331143411435825 unmodified lines1226112262122631226412265122661226752 unmodified lines12320123211232212323123241232512326569 unmodified lines128961289712898128991290012901536 unmodified lines13438134391344013441134421344313444232 unmodified lines13677136781367913680136811368213683186 unmodified lines13870138711387213873138741387513876138771387813879138801388129 unmodified lines13911139121391313914139151391613917509 unmodified lines1442714428144291443014431144321443368 unmodified lines14502145031450414505145061450714508120 unmodified lines14629146301463114632146331463414635245 unmodified lines1488114882148831488414885148861488714888112 unmodified lines1500115002150031500415005150061500749 unmodified lines1505715058150591506015061150621506338 unmodified lines151021510315104151051510615107151082 unmodified lines151111511215113151141511515116151173 unmodified lines1512115122151231512415125151261512748 unmodified lines151761517715178151791518015181151822 unmodified lines1518515186151871518815189151901519157 unmodified lines1524915250152511525215253152541525533 unmodified lines152891529015291152921529315294152953453 unmodified lines187491875018751187521875318754187551875646 unmodified lines18803188041880518806188071880818809338 unmodified lines191481914919150191511915219153191542191 unmodified lines2134621347213482134921350213512135221353536 unmodified lines21890218912189221893218942189521896161 unmodified lines220582205922060220612206222063220641168 unmodified lines23233232342323523236232372323823239566 unmodified lines2380623807238082380923810238112381231 unmodified lines23844238452384623847238482384923850415 unmodified lines242662426724268242692427024271414 unmodified lines24686246872468824689246902469124692161 unmodified lines2485424855248562485724858248592486024861108 unmodified lines2497024971249722497324974249752497624977249782497922 unmodified lines25002250032500425005250062500725008247 unmodified lines2525625257252582525925260252612526225 unmodified lines2528825289252902529125292252932529461 unmodified lines25356253572535825359253602536125362195 unmodified lines255582555925560255612556225563255642556526 unmodified lines"rxjs": "~7.8.0","tailwindcss": "^3.4.17","tslib": "^2.3.0","wavesurfer.js": "^7.11.1","zone.js": "~0.14.3"},238 unmodified lines"url": "https://github.com/sponsors/ai"}],"peer": true,"dependencies": {"nanoid": "^3.3.7","picocolors": "^1.0.0",77 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/animations/-/animations-17.3.12.tgz","integrity": "sha512-9hsdWF4gRRcVJtPcCcYLaX1CIyM9wUu6r+xRl6zU5hq8qhl35hig6ounz7CXFAzLf0WDBdM16bPHouVGaG76lg==","peer": true,"dependencies": {"tslib": "^2.3.0"},60 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/common/-/common-17.3.12.tgz","integrity": "sha512-vabJzvrx76XXFrm1RJZ6o/CyG32piTB/1sfFfKHdlH1QrmArb8It4gyk9oEjZ1IkAD0HvBWlfWmn+T6Vx3pdUw==","peer": true,"dependencies": {"tslib": "^2.3.0"},9 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-17.3.12.tgz","integrity": "sha512-vwI8oOL/gM+wPnptOVeBbMfZYwzRxQsovojZf+Zol9szl0k3SZ3FycWlxxXZGFu3VIEfrP6pXplTmyODS/Lt1w==","peer": true,"dependencies": {"tslib": "^2.3.0"},14 unmodified lines"resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-17.3.12.tgz","integrity": "sha512-1F8M7nWfChzurb7obbvuE7mJXlHtY1UG58pcwcomVtpPb+kPavgAO8OEvJHYBMV+bzSxkXt5UIwL9lt9jHUxZA==","dev": true,"peer": true,"dependencies": {"@babel/core": "7.23.9","@jridgewell/sourcemap-codec": "^1.4.14",66 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/core/-/core-17.3.12.tgz","integrity": "sha512-MuFt5yKi161JmauUta4Dh0m8ofwoq6Ino+KoOtkYMBGsSx+A7dSm+DUxxNwdj7+DNyg3LjVGCFgBFnq4g8z06A==","peer": true,"dependencies": {"tslib": "^2.3.0"},9 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/forms/-/forms-17.3.12.tgz","integrity": "sha512-tV6r12Q3yEUlXwpVko4E+XscunTIpPkLbaiDn/MTL3Vxi2LZnsLgHyd/i38HaHN+e/H3B0a1ToSOhV5wf3ay4Q==","peer": true,"dependencies": {"tslib": "^2.3.0"},76 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-17.3.12.tgz","integrity": "sha512-DYY04ptWh/ulMHzd+y52WCE8QnEYGeIiW3hEIFjCN8z0kbIdFdUtEB0IK5vjNL3ejyhUmphcpeT5PYf3YXtqWQ==","peer": true,"dependencies": {"tslib": "^2.3.0"},70 unmodified lines"version": "7.24.0","resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.0.tgz","integrity": "sha512-fQfkg0Gjkza3nf0c7/w6Xf34BW4YvzNfACRLmmb7XRLa6XHdR+K9AlJlxneFfWYf6uhOzuzZVTjF/8KfndZANw==","peer": true,"dependencies": {"@ampproject/remapping": "^2.2.0","@babel/code-frame": "^7.23.5",4628 unmodified lines"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz","integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==","dev": true,"peer": true,"bin": {"acorn": "bin/acorn"},64 unmodified lines"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz","integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==","dev": true,"peer": true,"dependencies": {"fast-deep-equal": "^3.1.1","json-schema-traverse": "^1.0.0",477 unmodified lines"url": "https://github.com/sponsors/ai"}],"peer": true,"dependencies": {"caniuse-lite": "^1.0.30001688","electron-to-chromium": "^1.5.73",2991 unmodified lines"version": "5.1.2","resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-5.1.2.tgz","integrity": "sha512-2oIUMGn00FdUiqz6epiiJr7xcFyNYj3rDcfmnzfkBnHyBQ3cBQUs4mmyGsOb7TTLb9kxk7dBcmEmqhDKkBoDyA==","dev": true,"peer": true},"node_modules/jest-diff": {"version": "30.0.0-alpha.6",703 unmodified lines"resolved": "https://registry.npmjs.org/karma/-/karma-6.4.4.tgz","integrity": "sha512-LrtUxbdvt1gOpo3gxG+VAJlJAEMhbWlM4YrFQgql98FwF7+K8K12LYO4hnDdUkNjeztYrOXEMqgTajSWgmtI/w==","dev": true,"peer": true,"dependencies": {"@colors/colors": "1.5.0","body-parser": "^1.19.0",200 unmodified lines"resolved": "https://registry.npmjs.org/less/-/less-4.2.0.tgz","integrity": "sha512-P3b3HJDBtSzsXUl0im2L7gTO5Ubg8mEN6G8qoTS77iXxXX4Hvu4Qj540PZDvQ8V6DmX6iXo98k7Md0Cm1PrLaA==","dev": true,"peer": true,"dependencies": {"copy-anything": "^2.0.1","parse-node-version": "^1.0.1",1608 unmodified lines"url": "https://github.com/sponsors/ai"}],"peer": true,"dependencies": {"nanoid": "^3.3.7","picocolors": "^1.1.1",825 unmodified lines"version": "7.8.1","resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz","integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==","peer": true,"dependencies": {"tslib": "^2.1.0"}52 unmodified lines"resolved": "https://registry.npmjs.org/sass/-/sass-1.71.1.tgz","integrity": "sha512-wovtnV2PxzteLlfNzbgm1tFXPLoZILYAMJtvoXXkD7/+1uP41eKkIt1ypWq5/q2uT94qHjXehEYfmjKOvjL9sg==","dev": true,"peer": true,"dependencies": {"chokidar": ">=3.0.0 <4.0.0","immutable": "^4.0.0",569 unmodified lines"websocket-driver": "^0.7.4"}},"node_modules/socks": {"version": "2.8.3","resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz",536 unmodified lines"resolved": "https://registry.npmjs.org/terser/-/terser-5.29.1.tgz","integrity": "sha512-lZQ/fyaIGxsbGxApKmoPTODIzELy3++mXhS5hOqaAWZjQtpq/hFHAc+rm29NND1rYRxRWKcjuARNwULNXa5RtQ==","dev": true,"peer": true,"dependencies": {"@jridgewell/source-map": "^0.3.3","acorn": "^8.8.2",232 unmodified lines"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz","integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==","dev": true,"peer": true,"bin": {"tsc": "bin/tsc","tsserver": "bin/tsserver"186 unmodified lines}},"node_modules/uuid": {"version": "8.3.2","resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz","integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==","dev": true,"bin": {"uuid": "dist/bin/uuid"}},"node_modules/validate-npm-package-license": {29 unmodified lines"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.8.tgz","integrity": "sha512-mB8ToUuSmzODSpENgvpFk2fTiU/YQ1tmcVJJ4WZbq4fPdGJkFNVcmVL5k7iDug6xzWjjuGDKAuSievIsD6H7Xw==","dev": true,"peer": true,"dependencies": {"esbuild": "^0.19.3","postcss": "^8.4.35",509 unmodified lines"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.94.0.tgz","integrity": "sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg==","dev": true,"peer": true,"dependencies": {"@types/estree": "^1.0.5","@webassemblyjs/ast": "^1.12.1",68 unmodified lines"resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.1.tgz","integrity": "sha512-5hbAst3h3C3L8w6W4P96L5vaV0PxSmJhxZvWKYIdgxOQm8pNZ5dEOmmSLBVpP85ReeyRt6AS1QJNyo/oFFPeVA==","dev": true,"peer": true,"dependencies": {"@types/bonjour": "^3.5.9","@types/connect-history-api-fallback": "^1.3.5",120 unmodified lines"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz","integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==","dev": true,"peer": true,"dependencies": {"fast-deep-equal": "^3.1.1","fast-json-stable-stringify": "^2.0.0",245 unmodified lines"node_modules/zone.js": {"version": "0.14.10","resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz","integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ==","peer": true}},"dependencies": {112 unmodified lines"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz","integrity": "sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==","dev": true,"peer": true,"requires": {"nanoid": "^3.3.7","picocolors": "^1.0.0",49 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/animations/-/animations-17.3.12.tgz","integrity": "sha512-9hsdWF4gRRcVJtPcCcYLaX1CIyM9wUu6r+xRl6zU5hq8qhl35hig6ounz7CXFAzLf0WDBdM16bPHouVGaG76lg==","peer": true,"requires": {"tslib": "^2.3.0"}38 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/common/-/common-17.3.12.tgz","integrity": "sha512-vabJzvrx76XXFrm1RJZ6o/CyG32piTB/1sfFfKHdlH1QrmArb8It4gyk9oEjZ1IkAD0HvBWlfWmn+T6Vx3pdUw==","peer": true,"requires": {"tslib": "^2.3.0"}2 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-17.3.12.tgz","integrity": "sha512-vwI8oOL/gM+wPnptOVeBbMfZYwzRxQsovojZf+Zol9szl0k3SZ3FycWlxxXZGFu3VIEfrP6pXplTmyODS/Lt1w==","peer": true,"requires": {"tslib": "^2.3.0"}3 unmodified lines"resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-17.3.12.tgz","integrity": "sha512-1F8M7nWfChzurb7obbvuE7mJXlHtY1UG58pcwcomVtpPb+kPavgAO8OEvJHYBMV+bzSxkXt5UIwL9lt9jHUxZA==","dev": true,"peer": true,"requires": {"@babel/core": "7.23.9","@jridgewell/sourcemap-codec": "^1.4.14",48 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/core/-/core-17.3.12.tgz","integrity": "sha512-MuFt5yKi161JmauUta4Dh0m8ofwoq6Ino+KoOtkYMBGsSx+A7dSm+DUxxNwdj7+DNyg3LjVGCFgBFnq4g8z06A==","peer": true,"requires": {"tslib": "^2.3.0"}2 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/forms/-/forms-17.3.12.tgz","integrity": "sha512-tV6r12Q3yEUlXwpVko4E+XscunTIpPkLbaiDn/MTL3Vxi2LZnsLgHyd/i38HaHN+e/H3B0a1ToSOhV5wf3ay4Q==","peer": true,"requires": {"tslib": "^2.3.0"}57 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-17.3.12.tgz","integrity": "sha512-DYY04ptWh/ulMHzd+y52WCE8QnEYGeIiW3hEIFjCN8z0kbIdFdUtEB0IK5vjNL3ejyhUmphcpeT5PYf3YXtqWQ==","peer": true,"requires": {"tslib": "^2.3.0"}33 unmodified lines"version": "7.24.0","resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.0.tgz","integrity": "sha512-fQfkg0Gjkza3nf0c7/w6Xf34BW4YvzNfACRLmmb7XRLa6XHdR+K9AlJlxneFfWYf6uhOzuzZVTjF/8KfndZANw==","peer": true,"requires": {"@ampproject/remapping": "^2.2.0","@babel/code-frame": "^7.23.5",3453 unmodified lines"version": "8.14.0","resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz","integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==","dev": true,"peer": true},"acorn-import-attributes": {"version": "1.9.5",46 unmodified lines"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz","integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==","dev": true,"peer": true,"requires": {"fast-deep-equal": "^3.1.1","json-schema-traverse": "^1.0.0",338 unmodified lines"version": "4.24.3","resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.3.tgz","integrity": "sha512-1CPmv8iobE2fyRMV97dAcMVegvvWKxmq94hkLiAkUGwKVTyDLw33K+ZxiFrREKmmps4rIw6grcCFCnTMSZ/YiA==","peer": true,"requires": {"caniuse-lite": "^1.0.30001688","electron-to-chromium": "^1.5.73",2191 unmodified lines"version": "5.1.2","resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-5.1.2.tgz","integrity": "sha512-2oIUMGn00FdUiqz6epiiJr7xcFyNYj3rDcfmnzfkBnHyBQ3cBQUs4mmyGsOb7TTLb9kxk7dBcmEmqhDKkBoDyA==","dev": true,"peer": true},"jest-diff": {"version": "30.0.0-alpha.6",536 unmodified lines"resolved": "https://registry.npmjs.org/karma/-/karma-6.4.4.tgz","integrity": "sha512-LrtUxbdvt1gOpo3gxG+VAJlJAEMhbWlM4YrFQgql98FwF7+K8K12LYO4hnDdUkNjeztYrOXEMqgTajSWgmtI/w==","dev": true,"peer": true,"requires": {"@colors/colors": "1.5.0","body-parser": "^1.19.0",161 unmodified lines"resolved": "https://registry.npmjs.org/less/-/less-4.2.0.tgz","integrity": "sha512-P3b3HJDBtSzsXUl0im2L7gTO5Ubg8mEN6G8qoTS77iXxXX4Hvu4Qj540PZDvQ8V6DmX6iXo98k7Md0Cm1PrLaA==","dev": true,"peer": true,"requires": {"copy-anything": "^2.0.1","errno": "^0.1.1",1168 unmodified lines"version": "8.4.49","resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz","integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==","peer": true,"requires": {"nanoid": "^3.3.7","picocolors": "^1.1.1",566 unmodified lines"version": "7.8.1","resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz","integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==","peer": true,"requires": {"tslib": "^2.1.0"}31 unmodified lines"resolved": "https://registry.npmjs.org/sass/-/sass-1.71.1.tgz","integrity": "sha512-wovtnV2PxzteLlfNzbgm1tFXPLoZILYAMJtvoXXkD7/+1uP41eKkIt1ypWq5/q2uT94qHjXehEYfmjKOvjL9sg==","dev": true,"peer": true,"requires": {"chokidar": ">=3.0.0 <4.0.0","immutable": "^4.0.0",415 unmodified lines"faye-websocket": "^0.11.3","uuid": "^8.3.2","websocket-driver": "^0.7.4"}},"socks": {414 unmodified lines"resolved": "https://registry.npmjs.org/terser/-/terser-5.29.1.tgz","integrity": "sha512-lZQ/fyaIGxsbGxApKmoPTODIzELy3++mXhS5hOqaAWZjQtpq/hFHAc+rm29NND1rYRxRWKcjuARNwULNXa5RtQ==","dev": true,"peer": true,"requires": {"@jridgewell/source-map": "^0.3.3","acorn": "^8.8.2",161 unmodified lines"version": "5.3.3","resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz","integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==","dev": true,"peer": true},"ua-parser-js": {"version": "0.7.40",108 unmodified lines"dev": true},"uuid": {"version": "8.3.2","resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz","integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==","dev": true},"validate-npm-package-license": {"version": "3.0.4",22 unmodified lines"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.8.tgz","integrity": "sha512-mB8ToUuSmzODSpENgvpFk2fTiU/YQ1tmcVJJ4WZbq4fPdGJkFNVcmVL5k7iDug6xzWjjuGDKAuSievIsD6H7Xw==","dev": true,"peer": true,"requires": {"esbuild": "^0.19.3","fsevents": "~2.3.3",247 unmodified lines"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.94.0.tgz","integrity": "sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg==","dev": true,"peer": true,"requires": {"@types/estree": "^1.0.5","@webassemblyjs/ast": "^1.12.1",25 unmodified lines"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz","integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==","dev": true,"peer": true,"requires": {"fast-deep-equal": "^3.1.1","fast-json-stable-stringify": "^2.0.0",61 unmodified lines"resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.1.tgz","integrity": "sha512-5hbAst3h3C3L8w6W4P96L5vaV0PxSmJhxZvWKYIdgxOQm8pNZ5dEOmmSLBVpP85ReeyRt6AS1QJNyo/oFFPeVA==","dev": true,"peer": true,"requires": {"@types/bonjour": "^3.5.9","@types/connect-history-api-fallback": "^1.3.5",195 unmodified lines"zone.js": {"version": "0.14.10","resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz","integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ==","peer": true}}}26 unmodified lines27282930313233238 unmodified lines27227327427527627777 unmodified lines35535635735835936060 unmodified lines4214224234244254269 unmodified lines43643743843944044114 unmodified lines45645745845946046166 unmodified lines5285295305315325339 unmodified lines54354454554654754876 unmodified lines62562662762862963070 unmodified lines7017027037047057064628 unmodified lines53355336533753385339534064 unmodified lines540554065407540854095410477 unmodified lines5888588958905891589258932991 unmodified lines8885888688878888888988908891703 unmodified lines959595969597959895999600200 unmodified lines9801980298039804980598061608 unmodified lines114151141611417114181141911420825 unmodified lines12246122471224812249122501225152 unmodified lines123041230512306123071230812309569 unmodified lines12879128801288112882128831288412885128861288712888128891289012891128921289312894536 unmodified lines134311343213433134341343513436232 unmodified lines136691367013671136721367313674186 unmodified lines1386113862138631386413865138661386713868138691387013871138721387313874138751387629 unmodified lines139061390713908139091391013911509 unmodified lines14421144221442314424144251442668 unmodified lines144951449614497144981449914500120 unmodified lines146211462214623146241462514626245 unmodified lines14872148731487414875148761487714878112 unmodified lines14991149921499314994149951499649 unmodified lines15046150471504815049150501505138 unmodified lines1509015091150921509315094150952 unmodified lines1509815099151001510115102151033 unmodified lines15107151081510915110151111511248 unmodified lines1516115162151631516415165151662 unmodified lines15169151701517115172151731517457 unmodified lines15232152331523415235152361523733 unmodified lines1527115272152731527415275152763453 unmodified lines1873018731187321873318734187351873646 unmodified lines187831878418785187861878718788338 unmodified lines1912719128191291913019131191322191 unmodified lines21324213252132621327213282132921330536 unmodified lines218672186821869218702187121872161 unmodified lines2203422035220362203722038220391168 unmodified lines232082320923210232112321223213566 unmodified lines23780237812378223783237842378531 unmodified lines238172381823819238202382123822415 unmodified lines2423824239242402424124242242432424424245242462424724248242492425024251414 unmodified lines246662466724668246692467024671161 unmodified lines24833248342483524836248372483824839108 unmodified lines24948249492495024951249522495324954249552495622 unmodified lines249792498024981249822498324984247 unmodified lines25232252332523425235252362523725 unmodified lines25263252642526525266252672526861 unmodified lines253302533125332253332533425335195 unmodified lines2553125532255332553425535255362553726 unmodified lines"rxjs": "~7.8.0","tailwindcss": "^3.4.17","tslib": "^2.3.0","uuid": "^13.0.0","wavesurfer.js": "^7.11.1","zone.js": "~0.14.3"},238 unmodified lines"url": "https://github.com/sponsors/ai"}],"dependencies": {"nanoid": "^3.3.7","picocolors": "^1.0.0",77 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/animations/-/animations-17.3.12.tgz","integrity": "sha512-9hsdWF4gRRcVJtPcCcYLaX1CIyM9wUu6r+xRl6zU5hq8qhl35hig6ounz7CXFAzLf0WDBdM16bPHouVGaG76lg==","dependencies": {"tslib": "^2.3.0"},60 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/common/-/common-17.3.12.tgz","integrity": "sha512-vabJzvrx76XXFrm1RJZ6o/CyG32piTB/1sfFfKHdlH1QrmArb8It4gyk9oEjZ1IkAD0HvBWlfWmn+T6Vx3pdUw==","dependencies": {"tslib": "^2.3.0"},9 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-17.3.12.tgz","integrity": "sha512-vwI8oOL/gM+wPnptOVeBbMfZYwzRxQsovojZf+Zol9szl0k3SZ3FycWlxxXZGFu3VIEfrP6pXplTmyODS/Lt1w==","dependencies": {"tslib": "^2.3.0"},14 unmodified lines"resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-17.3.12.tgz","integrity": "sha512-1F8M7nWfChzurb7obbvuE7mJXlHtY1UG58pcwcomVtpPb+kPavgAO8OEvJHYBMV+bzSxkXt5UIwL9lt9jHUxZA==","dev": true,"dependencies": {"@babel/core": "7.23.9","@jridgewell/sourcemap-codec": "^1.4.14",66 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/core/-/core-17.3.12.tgz","integrity": "sha512-MuFt5yKi161JmauUta4Dh0m8ofwoq6Ino+KoOtkYMBGsSx+A7dSm+DUxxNwdj7+DNyg3LjVGCFgBFnq4g8z06A==","dependencies": {"tslib": "^2.3.0"},9 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/forms/-/forms-17.3.12.tgz","integrity": "sha512-tV6r12Q3yEUlXwpVko4E+XscunTIpPkLbaiDn/MTL3Vxi2LZnsLgHyd/i38HaHN+e/H3B0a1ToSOhV5wf3ay4Q==","dependencies": {"tslib": "^2.3.0"},76 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-17.3.12.tgz","integrity": "sha512-DYY04ptWh/ulMHzd+y52WCE8QnEYGeIiW3hEIFjCN8z0kbIdFdUtEB0IK5vjNL3ejyhUmphcpeT5PYf3YXtqWQ==","dependencies": {"tslib": "^2.3.0"},70 unmodified lines"version": "7.24.0","resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.0.tgz","integrity": "sha512-fQfkg0Gjkza3nf0c7/w6Xf34BW4YvzNfACRLmmb7XRLa6XHdR+K9AlJlxneFfWYf6uhOzuzZVTjF/8KfndZANw==","dependencies": {"@ampproject/remapping": "^2.2.0","@babel/code-frame": "^7.23.5",4628 unmodified lines"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz","integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==","dev": true,"bin": {"acorn": "bin/acorn"},64 unmodified lines"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz","integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==","dev": true,"dependencies": {"fast-deep-equal": "^3.1.1","json-schema-traverse": "^1.0.0",477 unmodified lines"url": "https://github.com/sponsors/ai"}],"dependencies": {"caniuse-lite": "^1.0.30001688","electron-to-chromium": "^1.5.73",2991 unmodified lines"version": "5.1.2","resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-5.1.2.tgz","integrity": "sha512-2oIUMGn00FdUiqz6epiiJr7xcFyNYj3rDcfmnzfkBnHyBQ3cBQUs4mmyGsOb7TTLb9kxk7dBcmEmqhDKkBoDyA==","dev": true},"node_modules/jest-diff": {"version": "30.0.0-alpha.6",703 unmodified lines"resolved": "https://registry.npmjs.org/karma/-/karma-6.4.4.tgz","integrity": "sha512-LrtUxbdvt1gOpo3gxG+VAJlJAEMhbWlM4YrFQgql98FwF7+K8K12LYO4hnDdUkNjeztYrOXEMqgTajSWgmtI/w==","dev": true,"dependencies": {"@colors/colors": "1.5.0","body-parser": "^1.19.0",200 unmodified lines"resolved": "https://registry.npmjs.org/less/-/less-4.2.0.tgz","integrity": "sha512-P3b3HJDBtSzsXUl0im2L7gTO5Ubg8mEN6G8qoTS77iXxXX4Hvu4Qj540PZDvQ8V6DmX6iXo98k7Md0Cm1PrLaA==","dev": true,"dependencies": {"copy-anything": "^2.0.1","parse-node-version": "^1.0.1",1608 unmodified lines"url": "https://github.com/sponsors/ai"}],"dependencies": {"nanoid": "^3.3.7","picocolors": "^1.1.1",825 unmodified lines"version": "7.8.1","resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz","integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==","dependencies": {"tslib": "^2.1.0"}52 unmodified lines"resolved": "https://registry.npmjs.org/sass/-/sass-1.71.1.tgz","integrity": "sha512-wovtnV2PxzteLlfNzbgm1tFXPLoZILYAMJtvoXXkD7/+1uP41eKkIt1ypWq5/q2uT94qHjXehEYfmjKOvjL9sg==","dev": true,"dependencies": {"chokidar": ">=3.0.0 <4.0.0","immutable": "^4.0.0",569 unmodified lines"websocket-driver": "^0.7.4"}},"node_modules/sockjs/node_modules/uuid": {"version": "8.3.2","resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz","integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==","dev": true,"license": "MIT","bin": {"uuid": "dist/bin/uuid"}},"node_modules/socks": {"version": "2.8.3","resolved": "https://registry.npmjs.org/socks/-/socks-2.8.3.tgz",536 unmodified lines"resolved": "https://registry.npmjs.org/terser/-/terser-5.29.1.tgz","integrity": "sha512-lZQ/fyaIGxsbGxApKmoPTODIzELy3++mXhS5hOqaAWZjQtpq/hFHAc+rm29NND1rYRxRWKcjuARNwULNXa5RtQ==","dev": true,"dependencies": {"@jridgewell/source-map": "^0.3.3","acorn": "^8.8.2",232 unmodified lines"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz","integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==","dev": true,"bin": {"tsc": "bin/tsc","tsserver": "bin/tsserver"186 unmodified lines}},"node_modules/uuid": {"version": "13.0.0","resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz","integrity": "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==","funding": ["https://github.com/sponsors/broofa","https://github.com/sponsors/ctavan"],"license": "MIT","bin": {"uuid": "dist-node/bin/uuid"}},"node_modules/validate-npm-package-license": {29 unmodified lines"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.8.tgz","integrity": "sha512-mB8ToUuSmzODSpENgvpFk2fTiU/YQ1tmcVJJ4WZbq4fPdGJkFNVcmVL5k7iDug6xzWjjuGDKAuSievIsD6H7Xw==","dev": true,"dependencies": {"esbuild": "^0.19.3","postcss": "^8.4.35",509 unmodified lines"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.94.0.tgz","integrity": "sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg==","dev": true,"dependencies": {"@types/estree": "^1.0.5","@webassemblyjs/ast": "^1.12.1",68 unmodified lines"resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.1.tgz","integrity": "sha512-5hbAst3h3C3L8w6W4P96L5vaV0PxSmJhxZvWKYIdgxOQm8pNZ5dEOmmSLBVpP85ReeyRt6AS1QJNyo/oFFPeVA==","dev": true,"dependencies": {"@types/bonjour": "^3.5.9","@types/connect-history-api-fallback": "^1.3.5",120 unmodified lines"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz","integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==","dev": true,"dependencies": {"fast-deep-equal": "^3.1.1","fast-json-stable-stringify": "^2.0.0",245 unmodified lines"node_modules/zone.js": {"version": "0.14.10","resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz","integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ=="}},"dependencies": {112 unmodified lines"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.35.tgz","integrity": "sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA==","dev": true,"requires": {"nanoid": "^3.3.7","picocolors": "^1.0.0",49 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/animations/-/animations-17.3.12.tgz","integrity": "sha512-9hsdWF4gRRcVJtPcCcYLaX1CIyM9wUu6r+xRl6zU5hq8qhl35hig6ounz7CXFAzLf0WDBdM16bPHouVGaG76lg==","requires": {"tslib": "^2.3.0"}38 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/common/-/common-17.3.12.tgz","integrity": "sha512-vabJzvrx76XXFrm1RJZ6o/CyG32piTB/1sfFfKHdlH1QrmArb8It4gyk9oEjZ1IkAD0HvBWlfWmn+T6Vx3pdUw==","requires": {"tslib": "^2.3.0"}2 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-17.3.12.tgz","integrity": "sha512-vwI8oOL/gM+wPnptOVeBbMfZYwzRxQsovojZf+Zol9szl0k3SZ3FycWlxxXZGFu3VIEfrP6pXplTmyODS/Lt1w==","requires": {"tslib": "^2.3.0"}3 unmodified lines"resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-17.3.12.tgz","integrity": "sha512-1F8M7nWfChzurb7obbvuE7mJXlHtY1UG58pcwcomVtpPb+kPavgAO8OEvJHYBMV+bzSxkXt5UIwL9lt9jHUxZA==","dev": true,"requires": {"@babel/core": "7.23.9","@jridgewell/sourcemap-codec": "^1.4.14",48 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/core/-/core-17.3.12.tgz","integrity": "sha512-MuFt5yKi161JmauUta4Dh0m8ofwoq6Ino+KoOtkYMBGsSx+A7dSm+DUxxNwdj7+DNyg3LjVGCFgBFnq4g8z06A==","requires": {"tslib": "^2.3.0"}2 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/forms/-/forms-17.3.12.tgz","integrity": "sha512-tV6r12Q3yEUlXwpVko4E+XscunTIpPkLbaiDn/MTL3Vxi2LZnsLgHyd/i38HaHN+e/H3B0a1ToSOhV5wf3ay4Q==","requires": {"tslib": "^2.3.0"}57 unmodified lines"version": "17.3.12","resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-17.3.12.tgz","integrity": "sha512-DYY04ptWh/ulMHzd+y52WCE8QnEYGeIiW3hEIFjCN8z0kbIdFdUtEB0IK5vjNL3ejyhUmphcpeT5PYf3YXtqWQ==","requires": {"tslib": "^2.3.0"}33 unmodified lines"version": "7.24.0","resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.0.tgz","integrity": "sha512-fQfkg0Gjkza3nf0c7/w6Xf34BW4YvzNfACRLmmb7XRLa6XHdR+K9AlJlxneFfWYf6uhOzuzZVTjF/8KfndZANw==","requires": {"@ampproject/remapping": "^2.2.0","@babel/code-frame": "^7.23.5",3453 unmodified lines"version": "8.14.0","resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz","integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==","dev": true},"acorn-import-attributes": {"version": "1.9.5",46 unmodified lines"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.12.0.tgz","integrity": "sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA==","dev": true,"requires": {"fast-deep-equal": "^3.1.1","json-schema-traverse": "^1.0.0",338 unmodified lines"version": "4.24.3","resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.3.tgz","integrity": "sha512-1CPmv8iobE2fyRMV97dAcMVegvvWKxmq94hkLiAkUGwKVTyDLw33K+ZxiFrREKmmps4rIw6grcCFCnTMSZ/YiA==","requires": {"caniuse-lite": "^1.0.30001688","electron-to-chromium": "^1.5.73",2191 unmodified lines"version": "5.1.2","resolved": "https://registry.npmjs.org/jasmine-core/-/jasmine-core-5.1.2.tgz","integrity": "sha512-2oIUMGn00FdUiqz6epiiJr7xcFyNYj3rDcfmnzfkBnHyBQ3cBQUs4mmyGsOb7TTLb9kxk7dBcmEmqhDKkBoDyA==","dev": true},"jest-diff": {"version": "30.0.0-alpha.6",536 unmodified lines"resolved": "https://registry.npmjs.org/karma/-/karma-6.4.4.tgz","integrity": "sha512-LrtUxbdvt1gOpo3gxG+VAJlJAEMhbWlM4YrFQgql98FwF7+K8K12LYO4hnDdUkNjeztYrOXEMqgTajSWgmtI/w==","dev": true,"requires": {"@colors/colors": "1.5.0","body-parser": "^1.19.0",161 unmodified lines"resolved": "https://registry.npmjs.org/less/-/less-4.2.0.tgz","integrity": "sha512-P3b3HJDBtSzsXUl0im2L7gTO5Ubg8mEN6G8qoTS77iXxXX4Hvu4Qj540PZDvQ8V6DmX6iXo98k7Md0Cm1PrLaA==","dev": true,"requires": {"copy-anything": "^2.0.1","errno": "^0.1.1",1168 unmodified lines"version": "8.4.49","resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.49.tgz","integrity": "sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==","requires": {"nanoid": "^3.3.7","picocolors": "^1.1.1",566 unmodified lines"version": "7.8.1","resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz","integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==","requires": {"tslib": "^2.1.0"}31 unmodified lines"resolved": "https://registry.npmjs.org/sass/-/sass-1.71.1.tgz","integrity": "sha512-wovtnV2PxzteLlfNzbgm1tFXPLoZILYAMJtvoXXkD7/+1uP41eKkIt1ypWq5/q2uT94qHjXehEYfmjKOvjL9sg==","dev": true,"requires": {"chokidar": ">=3.0.0 <4.0.0","immutable": "^4.0.0",415 unmodified lines"faye-websocket": "^0.11.3","uuid": "^8.3.2","websocket-driver": "^0.7.4"},"dependencies": {"uuid": {"version": "8.3.2","resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz","integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==","dev": true}}},"socks": {414 unmodified lines"resolved": "https://registry.npmjs.org/terser/-/terser-5.29.1.tgz","integrity": "sha512-lZQ/fyaIGxsbGxApKmoPTODIzELy3++mXhS5hOqaAWZjQtpq/hFHAc+rm29NND1rYRxRWKcjuARNwULNXa5RtQ==","dev": true,"requires": {"@jridgewell/source-map": "^0.3.3","acorn": "^8.8.2",161 unmodified lines"version": "5.3.3","resolved": "https://registry.npmjs.org/typescript/-/typescript-5.3.3.tgz","integrity": "sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==","dev": true},"ua-parser-js": {"version": "0.7.40",108 unmodified lines"dev": true},"uuid": {"version": "13.0.0","resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz","integrity": "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w=="},"validate-npm-package-license": {"version": "3.0.4",22 unmodified lines"resolved": "https://registry.npmjs.org/vite/-/vite-5.1.8.tgz","integrity": "sha512-mB8ToUuSmzODSpENgvpFk2fTiU/YQ1tmcVJJ4WZbq4fPdGJkFNVcmVL5k7iDug6xzWjjuGDKAuSievIsD6H7Xw==","dev": true,"requires": {"esbuild": "^0.19.3","fsevents": "~2.3.3",247 unmodified lines"resolved": "https://registry.npmjs.org/webpack/-/webpack-5.94.0.tgz","integrity": "sha512-KcsGn50VT+06JH/iunZJedYGUJS5FGjow8wb9c0v5n1Om8O1g4L6LjtfxwlXIATopoQu+vOXXa7gYisWxCoPyg==","dev": true,"requires": {"@types/estree": "^1.0.5","@webassemblyjs/ast": "^1.12.1",25 unmodified lines"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz","integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==","dev": true,"requires": {"fast-deep-equal": "^3.1.1","fast-json-stable-stringify": "^2.0.0",61 unmodified lines"resolved": "https://registry.npmjs.org/webpack-dev-server/-/webpack-dev-server-4.15.1.tgz","integrity": "sha512-5hbAst3h3C3L8w6W4P96L5vaV0PxSmJhxZvWKYIdgxOQm8pNZ5dEOmmSLBVpP85ReeyRt6AS1QJNyo/oFFPeVA==","dev": true,"requires": {"@types/bonjour": "^3.5.9","@types/connect-history-api-fallback": "^1.3.5",195 unmodified lines"zone.js": {"version": "0.14.10","resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.14.10.tgz","integrity": "sha512-YGAhaO7J5ywOXW6InXNlLmfU194F8lVgu7bRntUF3TiG8Y3nBK0x1UJJuHUP/e8IyihkjCYqhCScpSwnlaSRkQ=="}}}
29 unmodified lines30313233343529 unmodified lines"rxjs": "~7.8.0","tailwindcss": "^3.4.17","tslib": "^2.3.0","wavesurfer.js": "^7.11.1","zone.js": "~0.14.3"},29 unmodified lines3031323334353629 unmodified lines"rxjs": "~7.8.0","tailwindcss": "^3.4.17","tslib": "^2.3.0","uuid": "^13.0.0","wavesurfer.js": "^7.11.1","zone.js": "~0.14.3"},
3 unmodified lines4567894 unmodified lines14151617181920212223242526272829303132333435363738394041424344454647484950513 unmodified linesimport { HomeComponent } from './home/home.component';import { SignInComponent } from './sign-in/sign-in.component';import { authGuard } from './core/guards/auth.guard';/*** Application routing configuration4 unmodified lines*/export const routes: Routes = [// Public routes{path: '',component: HomeComponent,pathMatch: 'full',data: { title: 'Home' }},{path: 'home',component: HomeComponent,data: { title: 'Home' }},{path: 'login',component: SignInComponent,data: { title: 'Sign In' }},// Chat routes{path: 'chat',component: ChatComponent,data: { title: 'Chat' }},{path: 'chat/:id',component: ChatComponent,data: { title: 'Chat' }},// Fallback route{path: '**',redirectTo: '',data: { title: 'Page Not Found' }}3 unmodified lines456789104 unmodified lines1516171819202122232425262728293031323334353637383940414243444546474849505152535455565758593 unmodified linesimport { HomeComponent } from './home/home.component';import { SignInComponent } from './sign-in/sign-in.component';import { authGuard } from './core/guards/auth.guard';import { StaticChatComponent } from './staticchat/staticchat.component';/*** Application routing configuration4 unmodified lines*/export const routes: Routes = [// Public routes{path: '',component: HomeComponent,pathMatch: 'full',data: { title: 'Home' }},{path: 'home',component: HomeComponent,data: { title: 'Home' }},{path: 'login',component: SignInComponent,data: { title: 'Sign In' }},// Chat routes{path: 'chat',component: ChatComponent,data: { title: 'Chat' }},{path: 'chat/:id',component: ChatComponent,data: { title: 'Chat' }},{path: 'mj-chat',component: StaticChatComponent,data: { title: 'MJ-CHAT' }},// Fallback route{path: '**',redirectTo: '',data: { title: 'Page Not Found' }}
12345612 unmodified lines192021222324252627282930313233343536import { NgModule } from '@angular/core';import { BrowserModule } from '@angular/platform-browser';import { FormsModule } from '@angular/forms';import { HttpClientModule } from '@angular/common/http';import { CommonModule } from '@angular/common';import { AppRoutingModule } from './app-routing.module';12 unmodified linesimport { PronunciationComponent } from './pronunciation/pronunciation.component';import { FooterComponent } from './footer/footer.component';import { ButtonComponent } from './shared/button/button.component';@NgModule({declarations: [AppComponent,HomeComponent,PronunciationComponent],imports: [BrowserModule,AppRoutingModule,FormsModule,HttpClientModule,CommonModule,MatDialogModule,12345612 unmodified lines192021222324252627282930313233343536373839import { NgModule } from '@angular/core';import { BrowserModule } from '@angular/platform-browser';import { FormsModule, ReactiveFormsModule } from '@angular/forms';import { HttpClientModule } from '@angular/common/http';import { CommonModule } from '@angular/common';import { AppRoutingModule } from './app-routing.module';12 unmodified linesimport { PronunciationComponent } from './pronunciation/pronunciation.component';import { FooterComponent } from './footer/footer.component';import { ButtonComponent } from './shared/button/button.component';import { StaticChatComponent } from './staticchat/staticchat.component';@NgModule({declarations: [AppComponent,HomeComponent,PronunciationComponent,StaticChatComponent],imports: [BrowserModule,AppRoutingModule,FormsModule,ReactiveFormsModule,HttpClientModule,CommonModule,MatDialogModule,
6 unmodified lines789101112136 unmodified linesfunction resolveBaseUrl(): string {const isHF = location.hostname.endsWith('hf.space');if (isHF) return 'https://majemaai-mj-learn-backend.hf.space/rag';if (location.hostname === 'localhost' || location.hostname === '127.0.0.1') return 'http://localhost:5000/rag';return '/rag';}6 unmodified lines789101112136 unmodified linesfunction resolveBaseUrl(): string {const isHF = location.hostname.endsWith('hf.space');if (isHF) return 'https://pykara-py-learn-backend.hf.space/rag';if (location.hostname === 'localhost' || location.hostname === '127.0.0.1') return 'http://localhost:5000/rag';return '/rag';}
12 unmodified lines1314151617181912 unmodified linesexport class PronunciationService {private readonly apiBase =location.hostname.endsWith('hf.space')? 'https://majemaai-mj-learn-backend.hf.space': 'http://localhost:5000';private readonly scoreEndpoint = `${this.apiBase}/pronunciation/score`;12 unmodified lines1314151617181912 unmodified linesexport class PronunciationService {private readonly apiBase =location.hostname.endsWith('hf.space')? 'https://pykara-py-learn-backend.hf.space': 'http://localhost:5000';private readonly scoreEndpoint = `${this.apiBase}/pronunciation/score`;
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495/* ===== GLOBAL FONT FOR ENTIRE CHAT ===== */.chat-container,.chat-container * { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif !important;}
/* ===== MAIN CONTAINER ===== */.chat-container { display: flex; justify-content: center; align-items: center; height: 91vh; padding: 2vw; gap: 2vw;}
.chat-window { width: 100%; max-width: 1000px; height: 80vh; display: flex; flex-direction: column; border-radius: 20px; backdrop-filter: blur(20px); background: rgba(255,255,255,0.08); box-shadow: 0 10px 40px rgba(0,0,0,0.4); overflow: hidden;}
/* ===== MESSAGES AREA ===== */.chat-messages { flex: 1; /* padding: 25px;*/ /* prevent input overlap: keep some bottom padding */ /*padding-bottom: 120px;*/ overflow-y: auto; display: flex; flex-direction: column; gap: 7vw;}
/* ===== MESSAGE ROW (AVATAR + BUBBLE) ===== */.message-row { display: flex; align-items: flex-end; gap: 10px;}
.user-row { justify-content: flex-end;}
.bot-row { justify-content: flex-start;}
/* ===== AVATAR ===== */.avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,0.3);}
/* ===== MESSAGE BUBBLE ===== */.message-bubble { max-width: 60%; padding: 14px 18px 8px 18px; border-radius: 18px; font-size: clamp(14px, 1vw, 18px); line-height: 1.6; display: flex; flex-direction: column;}
/* User bubble */.user-message { background: linear-gradient(135deg, #0099ff, #0066ff); color: white; border-bottom-right-radius: 6px;}
/* Bot bubble */.bot-message { background: rgba(255,255,255,0.95); color: #333; border-bottom-left-radius: 6px;}
/* ===== MESSAGE TIME (BOTTOM RIGHT) ===== */.message-time { font-size: clamp(10px, 0.7vw, 12px); opacity: 0.6; margin-top: 6px; align-self: flex-end;}
/* ===== TYPING INDICATOR ===== */.typing-indicator { display: flex; gap: 5px; align-items: center; color: white; padding-left: 50px;}
.dot { width: 6px; height: 6px; background: #ccc; border-radius: 50%; animation: blink 1.4s infinite both;}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0% { opacity: .2; }
20% { opacity: 1; }
100% { opacity: .2; }}
/* ===== SUGGESTIONS DROPDOWN ===== */.suggestions-box { /* background: rgba(0,0,0,0.75);*/ background: linear-gradient(135deg, #0072ff, #00c6ff ); max-height: 250px; overflow-y: auto; border-radius: 12px; margin: 0 20px 10px 20px; width: 47vw;}
.suggestion-item { padding: 10px 14px; cursor: pointer; color: white; font-size:1vw; font-weight:bold; border-bottom: 1px solid rgba(255,255,255,0.1); transition: background 0.2s ease;}
.suggestion-item:hover { background: rgba(255,255,255,0.15); }
/* ===== INPUT BAR ===== */.chat-input { display: flex; padding: 16px; background: rgba(255,255,255,0.15); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.2);}
.chat-input input { flex: 1; padding: 12px 16px; border-radius: 25px; border: none; outline: none; font-size: 14px; }
.chat-input button { margin-left: 10px; width: 48px; height: 48px; border-radius: 50%; border: none; background: linear-gradient(135deg, #00c6ff, #0072ff); color: white; font-size: 30px; cursor: pointer; transition: transform 0.2s ease; }
.chat-input button:hover { transform: scale(1.08); }
.chat-input button:disabled { opacity: 0.5; cursor: not-allowed; }
/* ===== SCROLLBAR ===== */.chat-messages::-webkit-scrollbar { width: 6px;}
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 10px;}
.video-window { width: 100%; max-width: 640px; height: 80vh; margin-left: 20px; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); display: flex; flex-direction: column; align-items: center; gap: 2vw;}
/* Video fills top area */ .video-window video { width: 100%; height: 100%; flex: 1; object-fit: cover; background: black; }
.play-pause-btn { position: relative; top: -1vw; width: 4vw; min-width: 40px; height: 4vw; min-height: 40px; cursor: pointer; border: 2px solid #3f61ad; border-radius: 50px; box-shadow: 0 8px 20px rgba(63,97,173,0.18), 0 2px 6px rgba(0,0,0,0.25); transition: transform 160ms ease, box-shadow 160ms ease; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.03));}
.play-pause-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(63,97,173,0.22), 0 6px 12px rgba(0,0,0,0.28); }
.play-pause-btn:active { transform: translateY(0); box-shadow: 0 6px 12px rgba(0,0,0,0.22); }
.bot-answer { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif !important; font-size: clamp(14px, 1vw, 18px); line-height: 1.6;}
.micBtn { width: 44px; height: 44px; border: 0; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; background: #f3f4f6; font-size: 30px !important;}
.micBtn:disabled { opacity: 0.5; cursor: not-allowed; }
.micBtn.active { background: #111827; }
.micIcon { width: 22px; height: 22px; fill: #111827;}
.micBtn.active .micIcon { fill: #ffffff;}
.actions { display: inline-flex; gap: 8px; margin-left: 8px; align-items: center;}
.okBtn, .noBtn { font-size: 18px; width: 38px; height: 38px; border-radius: 999px; border: 0; cursor: pointer; background: #f3f4f6;}
.okBtn:disabled { opacity: 0.5; cursor: not-allowed; }
.okBtn:hover, .noBtn:hover { background: #e5e7eb; }
.mediaRow { display: flex; gap: 1vw; font-size: 1vw; padding-top: 2vw;}
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; height: clamp(30px, 2vw, 36px); padding: 0 12px; background: linear-gradient(135deg, #00c6ff, #0072ff); color: #ffffff; font-weight: 600; font-size: 0.9rem; border: none; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 114, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.25); cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease; user-select: none;}
.chip:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 114, 255, 0.20), 0 4px 10px rgba(0, 0, 0, 0.28); }
.chip:active { transform: translateY(0); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22); opacity: 0.98; }
.chip:focus { outline: 3px solid rgba(0, 114, 255, 0.18); outline-offset: 3px; }
.arrow-btn { position: fixed; right: 16px; width: 51px; height: 51px; border-radius: 50%; border: none; background: linear-gradient(135deg, #00c6ff, #0072ff); /* background: #56cdc2;*/ color: #fff; font-size: 31px; box-shadow: 0 6px 16px #00000040; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease; z-index: 20;}
.up { top: 1vw;}
.down { bottom: 5vw;}
/* Add scroll-snap behavior so each pair fills the visible area and scrolls one-by-one */.chat-messages { overflow-y: auto; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch;}
/* Each pair is treated as a snap point *//* Use 100% of the messages area so one pair is visible at a time; align content start so user appears at top */.pair { scroll-snap-align: start; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-start; padding: 4.5rem 1rem; box-sizing: border-box; gap: 2vw;}
/* small visual spacing between pairs */ .pair + .pair { margin-top: 8px; }
/* preserve existing message-row styling assumed by template; adjust these rules if your project already defines them */.message-row { display: flex; align-items: flex-end; gap: 0.6rem;}
.bot-row { justify-content: flex-start;}
.user-row { justify-content: flex-end;}
.avatar { width: 3.2rem; height: 3.2rem; border-radius: 50%; object-fit: cover;}
.message-bubble { max-width: 70%; padding: 0.6rem 0.8rem; border-radius: 0.6rem; position: relative;}
.bot-message { background: #f1f1f1; color: #111;}
.user-message { /* background: #4caf50;*/ color: #fff; background: linear-gradient(135deg, #00c6ff, #0072ff);}
.message-time { font-size: 0.7rem; color: rgba(0,0,0,1); margin-top: 6px; text-align: right;}
/* typing indicator stays at the end of the list */.typing-indicator { display: flex; gap: 0.4rem; padding: 0.5rem; align-items: center;}
.typing-indicator .dot { width: 8px; height: 8px; border-radius: 50%; background: #bbb; animation: blink 1.2s infinite; }
@keyframes blink { 0% { opacity: 0.2; }
50% { opacity: 1; }
100% { opacity: 0.2; }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115<div class="chat-container"> <div class="chat-window"> <button class="arrow-btn up" title="Prev message" (click)="showPreviousPair()">↑</button>
<!-- MESSAGES --> <div class="chat-messages" #chatContainer> <div *ngFor="let pair of pairedMessages; let i = index" class="pair" [attr.data-index]="i">
<!-- If user exists in pair (now shown first/top) --> <div *ngIf="pair.user" class="message-row user-row"> <div class="message-bubble user-message"> <span style="font-size:1.5vw;">{{ pair.user.text }}</span> <div class="message-time"> {{ pair.user.timestamp | date:'shortTime' }} </div> </div> <img src="assets/staticchat/student.png" class="avatar" /> </div>
<!-- If bot exists in pair (now shown below user) --> <div *ngIf="pair.bot" class="message-row bot-row"> <img src="assets/staticchat/teacher.png" class="avatar" /> <div class="message-bubble bot-message"> <span style="font-size:1.5vw;">{{ pair.bot.text }}</span>
<div class="mediaRow" *ngIf="pair.bot.rawData && (pair.bot.rawData?.audio_url || pair.bot.rawData?.video_url)"> <button class="chip" *ngIf="pair.bot.rawData?.audio_url" (click)="playAudio(pair.bot.rawData?.audio_url)"> 🔊 Audio </button> <button class="chip" *ngIf="pair.bot.rawData?.video_url" (click)="playResponseVideo(pair.bot.rawData?.video_url)"> 🎬 Video </button> <button class="chip" *ngIf="pair.bot.rawData?.detail_url" (click)="playResponseVideo(pair.bot.rawData?.detail_url)"> 💡 Detail </button> <button class="chip" *ngIf="pair.bot.rawData?.story_url" (click)="playResponseVideo(pair.bot.rawData?.story_url)"> 📖 Story </button> <button class="chip" *ngIf="pair.bot.rawData?.example_url" (click)="playResponseVideo(pair.bot.rawData?.example_url)"> 🧪 Example </button> </div>
<div class="message-time"> {{ pair.bot.timestamp | date:'shortTime' }} </div> </div> </div>
</div>
<!-- Typing indicator --> <div *ngIf="isTyping" class="typing-indicator"> <div class="dot"></div> <div class="dot"></div> <div class="dot"></div> </div> </div> <button class="arrow-btn down" title="Next message" (click)="showNextPair()">↓</button>
<!-- SUGGESTIONS DROPDOWN --> <div *ngIf="showSuggestions && suggestedQuestions.length > 0" class="suggestions-box"> <div *ngFor="let question of suggestedQuestions" class="suggestion-item" (click)="selectQuestion(question)"> {{ question }} </div> </div>
<!-- INPUT BAR --> <form [formGroup]="chatForm" (ngSubmit)="sendMessage()" class="chat-input"> <!--<input type="text" formControlName="message" #messageInput placeholder="Type your message..." (focus)="onInputFocus()" (input)="onInputChange()" [readonly]="isSpeechProcessing" />--> <input type="text" formControlName="message" #messageInput [placeholder]="isListening ? '⏺ Listening...' : 'Type your message...'" (focus)="onInputFocus()" (input)="onInputChange()" [readonly]="isSpeechProcessing || isListening" />
<button type="button" class="micBtn" [disabled]="!supported || isListening" (click)="toggleMic()"> 🎤 </button>
<div class="actions" *ngIf="showActions"> <button class="reject" (click)="reject()">❌</button> <button class="accept" (click)="accept()">✅</button>
</div>
<button type="submit" [disabled]="!chatForm.valid"> ➤ </button> </form>
</div>
<div class="video-window">
<video #videoPlayer autoplay muted playsinline></video> <img class="play-pause-btn" [src]="(currentVideoType !== 'blink' && isVideoPlaying) ? 'assets/staticchat/pause.png' : 'assets/staticchat/play.png'" (click)="togglePlayPause()" /> </div></div>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756// (file header unchanged)import { Component, OnInit, ViewChild, ElementRef, HostListener, AfterViewInit } from '@angular/core';import { FormBuilder, FormGroup, Validators } from '@angular/forms';import { ChatService, ChatMessage, SearchResponse, Question } from './staticchat.service';import { Subject } from 'rxjs';import { debounceTime, distinctUntilChanged } from 'rxjs/operators';import { isPlatformBrowser } from '@angular/common';import { Inject, NgZone, PLATFORM_ID,} from '@angular/core';
@Component({ selector: 'app-staticchat', templateUrl: './staticchat.component.html', styleUrls: ['./staticchat.component.css']})export class StaticChatComponent implements OnInit, AfterViewInit {
@ViewChild('chatContainer') private chatContainer!: ElementRef; @ViewChild('messageInput') private messageInput!: ElementRef; @ViewChild('videoPlayer') videoRef!: ElementRef<HTMLVideoElement>;
chatForm: FormGroup; messages: (ChatMessage & { suggestions?: string[] })[] = []; isTyping = false; suggestedQuestions: string[] = []; showSuggestions = false; allQuestions: Question[] = []; searchQuery = new Subject<string>(); selectedQuestions: Set<string> = new Set();
// navigation index for pair view currentPairIndex = 0;
// 🎬 Video sources blinkVideoSrc = 'assets/staticchat/blink.mp4'; introVideoSrc = 'assets/staticchat/intro.mp4';
// Video state // 'blink' | 'intro' | 'response' to indicate currently loaded video type currentVideoType: 'blink' | 'intro' | 'response' = 'blink'; currentResponseVideoUrl: string | null = null; // whether the currently loaded non-idle video is playing isVideoPlaying = false;
// audio player for response audio private audioPlayer: HTMLAudioElement | null = null; hasChatStarted = false; lastResponseVideoUrl: string | null = null;
supported = false; isListening = false; // we will treat this as "isRecording" showActions = false;
private isBrowser = false;
private mediaStream: MediaStream | null = null; private recorder: MediaRecorder | null = null; private chunks: BlobPart[] = [];
private uploadInProgress = false; isSpeechProcessing = false;
constructor( private fb: FormBuilder, private chatService: ChatService, @Inject(PLATFORM_ID) platformId: object, private zone: NgZone ) { this.chatForm = this.fb.group({ message: ['', Validators.required] });
this.searchQuery.pipe( debounceTime(300), distinctUntilChanged() ).subscribe(query => { this.searchQuestions(query); }); this.isBrowser = isPlatformBrowser(platformId); }
ngOnInit() { this.messages.push({ id: 1, text: 'Hello children! Today we will learn tenses in a simple and fun way.', sender: 'bot', timestamp: new Date() });
if (!this.isBrowser) return;
const hasGetUserMedia = !!navigator.mediaDevices?.getUserMedia; const hasMediaRecorder = typeof (window as any).MediaRecorder !== 'undefined'; this.supported = hasGetUserMedia && hasMediaRecorder;
this.loadAllQuestions();
// start at last pair by default setTimeout(() => this.scrollToLastPair(), 0); }
ngAfterViewInit() { this.playBlinkVideo(); }
/* ================= VIDEO CONTROL HELPERS ================= */
private safeVideo(): HTMLVideoElement | null { try { return this.videoRef.nativeElement; } catch { return null; } }
// Idle blink loop — keep playing but show PLAY icon in UI playBlinkVideo() { const video = this.safeVideo(); if (!video) return;
video.onended = null; video.src = this.blinkVideoSrc; video.loop = true; video.muted = true; video.currentTime = 0; video.play().catch(() => { /* ignore autoplay failure for idle */ });
this.currentVideoType = 'blink'; this.currentResponseVideoUrl = null; // For blink we show the Play icon, so set isVideoPlaying = false this.isVideoPlaying = false; }
// Load and start intro (user intends to watch intro) playIntroVideo() { const video = this.safeVideo(); if (!video) return;
// stop any audio if (this.audioPlayer && !this.audioPlayer.paused) { this.audioPlayer.pause(); }
video.onended = () => { this.playBlinkVideo(); };
video.src = this.introVideoSrc; video.loop = false; video.muted = false; video.currentTime = 0; video.play().catch(() => { // fallback muted play if autoplay blocked video.muted = true; video.play().catch(() => { /* ignore */ }); });
this.currentVideoType = 'intro'; this.currentResponseVideoUrl = null; this.isVideoPlaying = true; }
// Play a response video (from chat) in the same player. // After the response ends return to blink. playResponseVideo(url?: string) { if (!url) return; const video = this.safeVideo(); if (!video) return;
// stop any audio if (this.audioPlayer && !this.audioPlayer.paused) { this.audioPlayer.pause(); }
video.onended = () => { this.playBlinkVideo(); };
this.currentResponseVideoUrl = url; this.currentVideoType = 'response';
video.src = url; video.loop = false; video.muted = false; video.currentTime = 0; video.play().then(() => { this.isVideoPlaying = true; }).catch(() => { // If autoplay blocked, try muted play as fallback video.muted = true; video.play().catch(() => { /* ignore */ }); // set state according to actual playing state this.isVideoPlaying = !video.paused; }); }
// Top-right button behavior: // - If blink is running → start intro. // - If intro/response loaded → toggle play/pause for that loaded video. togglePlayPause() { const video = this.safeVideo(); if (!video) return;
if (this.currentVideoType === 'blink') { // Before first question → intro if (!this.hasChatStarted) { this.playIntroVideo(); return; }
// After chat started → do NOT play intro again // Replay last response video if available if (this.lastResponseVideoUrl) { this.playResponseVideo(this.lastResponseVideoUrl); } return; }
// If user is starting/resuming a video, pause any playing audio first if (video.paused) { if (this.audioPlayer && !this.audioPlayer.paused) { this.audioPlayer.pause(); } video.play().catch(() => { /* ignore */ }); this.isVideoPlaying = true; } else { video.pause(); this.isVideoPlaying = false; } }
/* ================= CHAT SYSTEM ================= */
loadAllQuestions() { this.chatService.getAllQuestions().subscribe({ next: (response) => { if (response.success) { this.allQuestions = response.questions; } }, error: (error) => console.error('Error loading questions:', error) }); }
onInputFocus() { this.showQuestionSuggestions(); } onInputClick() { this.showQuestionSuggestions(); }
showQuestionSuggestions() { if (this.allQuestions.length === 0) { this.loadAllQuestions(); return; }
if (this.messages.length <= 1) { this.suggestedQuestions = this.allQuestions.slice(0, 5).map(q => q.question); this.showSuggestions = true; return; }
const unselected = this.allQuestions.filter(q => !this.selectedQuestions.has(q.question));
if (unselected.length === 0) { const shuffled = [...this.allQuestions].sort(() => 0.5 - Math.random()); this.suggestedQuestions = shuffled.slice(0, 5).map(q => q.question); } else { this.suggestedQuestions = unselected.slice(0, 5).map(q => q.question); }
this.showSuggestions = true; }
searchQuestions(query: string) { if (query.length > 0) { const filtered = this.allQuestions .filter(q => q.question.toLowerCase().includes(query.toLowerCase())) .slice(0, 5);
this.suggestedQuestions = filtered.map(q => q.question); this.showSuggestions = this.suggestedQuestions.length > 0; } else { this.showQuestionSuggestions(); } }
onInputChange() { const query = this.chatForm.get('message')?.value; query ? this.searchQuery.next(query) : this.showQuestionSuggestions(); }
selectQuestion(question: string) { this.selectedQuestions.add(question); this.chatForm.get('message')?.setValue(question); this.showSuggestions = false; this.suggestedQuestions = this.suggestedQuestions.filter(q => q !== question); this.sendMessage(); }
sendMessage() { const message = this.chatForm.get('message')?.value.trim(); if (!message) return;
this.messages.push({ id: this.messages.length + 1, text: message, sender: 'user', timestamp: new Date() }); this.hasChatStarted = true; this.chatForm.reset(); this.showSuggestions = false; this.isTyping = true;
// show the pair containing this user message (may be a user-only pair until bot replies) setTimeout(() => this.scrollToLastPair(), 50);
this.chatService.searchQuestion(message).subscribe({ next: (response: SearchResponse) => { this.isTyping = false;
const botText = response.answer ? response.answer.replace(/\n/g, ' ') : (response.message || 'Sorry, I could not find an answer.');
this.messages.push({ id: this.messages.length + 1, text: botText, sender: 'bot', timestamp: new Date(), rawData: response });
// scroll to the new pair (user+bot) setTimeout(() => this.scrollToLastPair(), 50);
// Play audio/video returned by the response if (response.audio_url) { this.playAudio(response.audio_url); } if (response.video_url) { this.lastResponseVideoUrl = response.video_url; // ✅ remember it this.playResponseVideo(response.video_url); }
}, error: () => { this.isTyping = false; this.messages.push({ id: this.messages.length + 1, text: 'Sorry, I encountered an error. Please try again.', sender: 'bot', timestamp: new Date() }); setTimeout(() => this.scrollToLastPair(), 50); } }); }
// Play audio directly (uses a single HTMLAudioElement instance) playAudio(url?: string) { if (!url) return; try { const video = this.safeVideo(); // If a non-idle video is currently playing, pause it before starting audio if (video && this.currentVideoType !== 'blink' && !video.paused) { video.pause(); this.isVideoPlaying = false; }
if (!this.audioPlayer) { this.audioPlayer = new Audio(); } else { this.audioPlayer.pause(); } this.audioPlayer.src = url; this.audioPlayer.currentTime = 0; this.audioPlayer.play().catch(() => { /* ignore autoplay errors */ }); } catch (e) { console.error('Audio play failed', e); } }
// helper used by template to play video for a chat item playVideoFromChat(url?: string) { if (!url) return; this.playResponseVideo(url); }
formatAnswer(response: SearchResponse): string { let html = '';
const answerText = response.answer?.replace(/\n/g, '<br>') ?? 'No answer available.'; html += `<div class="bot-answer">${answerText}</div>`;
if (response.audio_url || response.video_url) { html += `<div class="media-row">`;
if (response.audio_url) { html += ` <span class="media-icon" onclick="window.dispatchEvent(new CustomEvent('playAudio', { detail: '${response.audio_url}' }))"> 🎧 </span>`; }
if (response.video_url) { html += ` <span class="media-icon" onclick="window.dispatchEvent(new CustomEvent('playVideo', { detail: '${response.video_url}' }))"> 📺 </span>`; }
html += `</div>`; }
return html; }
formatErrorMessage(response: SearchResponse): string { let message = response.message || "I couldn't find an exact match.";
if (response.sample_questions?.length) { message += '<br><br><strong>Try asking:</strong><ul>'; response.sample_questions.forEach(q => message += `<li>${q}</li>`); message += '</ul>'; }
return message; }
// Build pairs: each pair is { user?: ChatMessage, bot?: ChatMessage } get pairedMessages(): Array<{ user?: ChatMessage, bot?: ChatMessage }> { const pairs: Array<{ user?: ChatMessage, bot?: ChatMessage }> = []; const msgs = this.messages || []; let i = 0; while (i < msgs.length) { const current = msgs[i]; if (current.sender === 'user') { const pair: { user?: ChatMessage, bot?: ChatMessage } = { user: current }; const next = msgs[i + 1]; if (next && next.sender === 'bot') { pair.bot = next; i += 2; } else { i += 1; } pairs.push(pair); } else if (current.sender === 'bot') { // bot message without preceding user (welcome message, errors, etc.) pairs.push({ bot: current }); i += 1; } else { // fallback: add as single pairs.push({ bot: current }); i += 1; } } return pairs; }
// Scroll helpers for pair navigation showNextPair() { const total = this.pairedMessages.length; if (total === 0) return; const next = Math.min(this.currentPairIndex + 1, total - 1); this.scrollToPair(next); }
showPreviousPair() { const total = this.pairedMessages.length; if (total === 0) return; const prev = Math.max(this.currentPairIndex - 1, 0); this.scrollToPair(prev); }
private scrollToPair(index: number) { setTimeout(() => { try { const container = this.chatContainer.nativeElement as HTMLElement; const pairs = container.querySelectorAll('.pair'); if (!pairs || pairs.length === 0) return; if (index < 0) index = 0; if (index >= pairs.length) index = pairs.length - 1; const target = pairs[index] as HTMLElement; if (!target) return; container.scrollTo({ top: target.offsetTop, behavior: 'smooth' }); this.currentPairIndex = index; } catch (e) { // fallback: scroll to bottom/top try { const container = this.chatContainer.nativeElement as HTMLElement; if (index === 0) container.scrollTop = 0; else container.scrollTop = container.scrollHeight; } catch { } } }, 50); }
private scrollToLastPair(): void { setTimeout(() => { try { const total = this.pairedMessages.length; if (total === 0) return; this.scrollToPair(total - 1); } catch { } }, 50); }
scrollToTop(): void { setTimeout(() => { try { const el = this.chatContainer.nativeElement as HTMLElement; // Use smooth scroll if supported, otherwise fall back to direct assignment if (typeof el.scrollTo === 'function') { el.scrollTo({ top: 0, behavior: 'smooth' }); } else { el.scrollTop = 0; } } catch { } }, 100); }
clearChat() { this.messages = []; this.selectedQuestions.clear();
this.hasChatStarted = false; this.lastResponseVideoUrl = null;
this.ngOnInit(); this.playBlinkVideo(); }
private pickMimeType(): string { const w: any = window;
// Try in order. Different browsers support different types. const types = [ 'audio/webm;codecs=opus', // Chrome/Edge/Firefox (best) 'audio/webm', 'audio/mp4', // Safari (sometimes) 'audio/m4a', ];
if (!w.MediaRecorder?.isTypeSupported) return ''; for (const t of types) { if (w.MediaRecorder.isTypeSupported(t)) return t; } return ''; }
async toggleMic() { if (!this.supported || this.isListening || this.uploadInProgress) return;
try { this.mediaStream = await navigator.mediaDevices.getUserMedia({ audio: { echoCancellation: true, noiseSuppression: true, }, });
const mimeType = this.pickMimeType(); this.chunks = [];
this.recorder = mimeType ? new MediaRecorder(this.mediaStream, { mimeType }) : new MediaRecorder(this.mediaStream);
this.recorder.ondataavailable = (e: BlobEvent) => { if (e.data && e.data.size > 0) this.chunks.push(e.data); };
this.recorder.onerror = () => { this.zone.run(() => { this.handleTranscriptionError('Audio recording error.'); this.cleanupRecorder(); }); };
this.zone.run(() => { this.isListening = true; this.showActions = true; });
this.recorder.start(); } catch (e: any) { this.zone.run(() => { this.handleTranscriptionError('Microphone permission denied or not available.'); this.cleanupRecorder(); }); } }
// ✅ Stop + transcribe accept() { if (!this.recorder || this.uploadInProgress) return;
this.uploadInProgress = true;
// We need the blob only after "stop" finishes this.recorder.onstop = async () => { try { const mime = this.recorder?.mimeType || 'audio/webm'; const blob = new Blob(this.chunks, { type: mime });
// 🔄 Show loading state in input this.zone.run(() => { this.isSpeechProcessing = true; this.showActions = false; this.isListening = false; this.chatForm.get('message')?.setValue('⏳ Converting speech to text...'); });
const text = await this.sendToBackendForTranscription(blob);
this.zone.run(() => { this.isSpeechProcessing = false; if (text && text.trim()) { this.handleTranscriptionAccepted(text.trim()); } else { this.chatForm.get('message')?.setValue(''); } });
} catch (err: any) { this.zone.run(() => { this.handleTranscriptionError( typeof err?.message === 'string' ? err.message : 'Transcription failed.' ); this.showActions = false; this.isListening = false; }); } finally { this.uploadInProgress = false; this.cleanupRecorder(); } };
try { this.recorder.stop(); } catch { // If stop fails, still cleanup this.uploadInProgress = false; this.cleanupRecorder(); } }
// ❌ Stop + discard reject() { if (this.uploadInProgress) return;
try { this.recorder?.stop(); } catch { }
this.zone.run(() => { this.handleTranscriptionRejected(); this.showActions = false; this.isListening = false; });
this.cleanupRecorder(); }
private async sendToBackendForTranscription(blob: Blob): Promise<string> { // Change this URL if your backend route is different const url = 'http://localhost:5000/api/transcribe';
const form = new FormData(); // Keep extension generic; backend can read mimetype form.append('file', blob, 'speech.webm');
const res = await fetch(url, { method: 'POST', body: form, });
if (!res.ok) { const msg = await res.text().catch(() => ''); throw new Error(msg || `Transcribe API failed (${res.status}).`); }
const data = await res.json(); // Expect { text: "..." } return (data?.text || '').toString(); }
private cleanupRecorder() { try { this.recorder?.removeEventListener?.('dataavailable', () => { }); } catch { }
this.recorder = null; this.chunks = [];
if (this.mediaStream) { try { this.mediaStream.getTracks().forEach((t) => t.stop()); } catch { } this.mediaStream = null; } }
@HostListener('document:click', ['$event']) handleClickOutside(event: Event) { if (this.showSuggestions && this.messageInput) { const clickedInside = this.messageInput.nativeElement.contains(event.target); if (!clickedInside) this.showSuggestions = false; } }
/* ========== Internal handlers (replace Outputs) ========== */
private handleTranscriptionAccepted(text: string) { try { // Put recognized text into input field ONLY this.chatForm.get('message')?.setValue(text);
// Keep cursor at end (optional but good UX) setTimeout(() => { this.messageInput?.nativeElement.focus(); }, 0);
} catch (e) { console.error('handleTranscriptionAccepted error', e); } }
private handleTranscriptionRejected() { // Clear input and keep UI consistent try { this.chatForm.get('message')?.setValue(''); } catch (e) { console.error('handleTranscriptionRejected error', e); } }
private handleTranscriptionError(msg: string) { try { this.isSpeechProcessing = false; this.chatForm.get('message')?.setValue('');
this.messages.push({ id: this.messages.length + 1, text: `Transcription error: ${msg}`, sender: 'bot', timestamp: new Date() }); setTimeout(() => this.scrollToLastPair(), 50); } catch (e) { console.error('handleTranscriptionError error', e); } }
}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155import { Injectable } from '@angular/core';import { HttpClient } from '@angular/common/http';import { Observable } from 'rxjs';import { v4 as uuidv4 } from 'uuid';
export interface ChatMessage { id?: number; text: string; sender: 'user' | 'bot'; timestamp: Date; isTyping?: boolean; rawData?: any;}
export interface SearchResponse { success: boolean; matched_question?: string; answer?: string; sno?: number; audio_url?: string; video_url?: string; story_url?: string; detail_url?: string; example_url?: string; confidence_score?: number; user_question?: string; message?: string; suggestion?: string; sample_questions?: string[]; total_questions_available?: number; matching_method?: string; is_follow_up?: boolean; enhanced_question?: string; scenario?: string; context_info?: { current_topic: string | null; current_intent: string | null; has_context: boolean; history_length: number; };}
export interface Question { sno: number; question: string;}
@Injectable({ providedIn: 'root'})export class ChatService {
private readonly apiBase = location.hostname.endsWith('hf.space') ? 'https://pykara-py-learn-backend.hf.space' : 'http://localhost:5000/staticchat';
// ===================================================== // Static user_id: generated once per browser session. // Persists across page navigations within the same tab, // but resets when the tab/browser is closed. // // Options: // sessionStorage — resets when tab closes (recommended) // localStorage — persists even after browser restart // ===================================================== private userId: string;
constructor(private http: HttpClient) { // Try to restore existing session ID const stored = sessionStorage.getItem('chat_user_id'); if (stored) { this.userId = stored; } else { // Generate a new one for this session this.userId = uuidv4(); sessionStorage.setItem('chat_user_id', this.userId); } console.log('Chat session user_id:', this.userId); }
/** * Get the current user ID (useful for context endpoints) */ getUserId(): string { return this.userId; }
/** * Reset the session — clears context on backend and generates a new user_id */ resetSession(): Observable<{ success: boolean; message: string }> { const oldUserId = this.userId;
// Generate new user_id this.userId = uuidv4(); sessionStorage.setItem('chat_user_id', this.userId); console.log('Session reset. New user_id:', this.userId);
// Clear old context on the backend return this.http.post<{ success: boolean; message: string }>( `${this.apiBase}/context/${oldUserId}/clear`, {} ); }
/** * Search — sends user_id with every request for context carry-forward */ searchQuestion(question: string): Observable<SearchResponse> { return this.http.post<SearchResponse>( `${this.apiBase}/search`, { question, user_id: this.userId // <-- This is the key fix } ); }
/** * Get all questions for reference / autocomplete */ getAllQuestions(): Observable<{ success: boolean; questions: Question[]; count: number }> { return this.http.get<{ success: boolean; questions: Question[]; count: number }>( `${this.apiBase}/questions` ); }
/** * Get random suggestions */ getRandomSuggestions(count: number = 5): Observable<{ success: boolean; suggestions: string[] }> { return this.http.get<{ success: boolean; suggestions: string[] }>( `${this.apiBase}/suggestions`, { params: { count: count.toString() } } ); }
/** * Get context-aware follow-up suggestions based on conversation history */ getContextSuggestions(): Observable<{ success: boolean; suggestions: string[]; current_topic: string | null }> { return this.http.get<{ success: boolean; suggestions: string[]; current_topic: string | null }>( `${this.apiBase}/context/suggestions/${this.userId}` ); }
/** * Get current conversation context (for debugging or UI display) */ getContext(): Observable<any> { return this.http.get(`${this.apiBase}/context/${this.userId}`); }}dist/gramm-ai/3rdpartylicenses.txt+14
dist/gramm-ai/browser/index.html+1-1
dist/gramm-ai/browser/main-OWHUQN5B.jsAdded
dist/gramm-ai/browser/main-P2CB6RHX.jsDeleted
package-lock.json+37-65
package.json+1
src/app/app-routing.module.ts+21-13
src/app/app.module.ts+5-2
src/app/chat/api.service.ts+1-1
src/app/pronunciation/pronunciation.service.ts+1-1
src/app/staticchat/staticchat.component.cssAdded+495
src/app/staticchat/staticchat.component.htmlAdded+115
src/app/staticchat/staticchat.component.tsAdded+756
src/app/staticchat/staticchat.service.tsAdded+155