yuzhilin_wd

init

  1 +# 依赖目录
  2 +node_modules/
  3 +
  4 +# 构建输出
  5 +dist/
  6 +build/
  7 +
  8 +# 本地环境文件
  9 +.env
  10 +.env.local
  11 +
  12 +# 日志文件
  13 +*.log
  14 +
  15 +# 编辑器目录
  16 +.idea/
  17 +.vscode/
  18 +
  19 +# 系统文件
  20 +.DS_Store
  21 +
  22 +# 其他
  23 +*.swp
  24 +*.swo
1 -init  
  1 +网达数字人使用
  2 +1、将unity的Build代码包放进项目静态文件中,例如:assets/unity
  3 +image.png
  4 +2、在项目中引入js文件
  5 +<script src="assets/unity/build_2.loader.js"></script>
  6 +3、在需要放置数字人的位置添加一个画布,样式根据需要调整,例如:
  7 +<canvas id="unity-canvas" style="width: 300px; height: 500px;></canvas>
  8 +4、 获取 unityInstance,例如:
  9 + async function initializeUnity() {
  10 + window.unityInstance = await createUnityInstance(document.querySelector("#unity-canvas"), {
  11 + dataUrl: "assets/unity/build_2.data",
  12 + frameworkUrl: "assets/unity/build_2.framework.js",
  13 + codeUrl: "assets/unity/build_2.wasm",
  14 + streamingAssetsUrl: "StreamingAssets",
  15 + companyName: "DefaultCompany",
  16 + productName: "DianWang_HDRP",
  17 + productVersion: "0.1",
  18 + });
  19 + }
  20 +5、调用unityInstance.SendMessage("UnityReceiverFromJs", "ReceiveText", "参数"),参数为字符串
  21 +例如:
  22 + unityInstance.SendMessage('UnityReceiverFromJs', 'ReceiveText', text);
No preview for this file type
  1 +{
  2 + "name": "ai-demo",
  3 + "version": "0.0.0",
  4 + "lockfileVersion": 3,
  5 + "requires": true,
  6 + "packages": {
  7 + "": {
  8 + "name": "ai-demo",
  9 + "version": "0.0.0",
  10 + "dependencies": {
  11 + "vue": "^3.5.13"
  12 + },
  13 + "devDependencies": {
  14 + "@vitejs/plugin-vue": "^5.2.2",
  15 + "vite": "^6.3.1"
  16 + }
  17 + },
  18 + "node_modules/@babel/helper-string-parser": {
  19 + "version": "7.27.1",
  20 + "resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
  21 + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
  22 + "license": "MIT",
  23 + "engines": {
  24 + "node": ">=6.9.0"
  25 + }
  26 + },
  27 + "node_modules/@babel/helper-validator-identifier": {
  28 + "version": "7.27.1",
  29 + "resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz",
  30 + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==",
  31 + "license": "MIT",
  32 + "engines": {
  33 + "node": ">=6.9.0"
  34 + }
  35 + },
  36 + "node_modules/@babel/parser": {
  37 + "version": "7.27.2",
  38 + "resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.27.2.tgz",
  39 + "integrity": "sha512-QYLs8299NA7WM/bZAdp+CviYYkVoYXlDW2rzliy3chxd1PQjej7JORuMJDJXJUb9g0TT+B99EwaVLKmX+sPXWw==",
  40 + "license": "MIT",
  41 + "dependencies": {
  42 + "@babel/types": "^7.27.1"
  43 + },
  44 + "bin": {
  45 + "parser": "bin/babel-parser.js"
  46 + },
  47 + "engines": {
  48 + "node": ">=6.0.0"
  49 + }
  50 + },
  51 + "node_modules/@babel/types": {
  52 + "version": "7.27.1",
  53 + "resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.27.1.tgz",
  54 + "integrity": "sha512-+EzkxvLNfiUeKMgy/3luqfsCWFRXLb7U6wNQTk60tovuckwB15B191tJWvpp4HjiQWdJkCxO3Wbvc6jlk3Xb2Q==",
  55 + "license": "MIT",
  56 + "dependencies": {
  57 + "@babel/helper-string-parser": "^7.27.1",
  58 + "@babel/helper-validator-identifier": "^7.27.1"
  59 + },
  60 + "engines": {
  61 + "node": ">=6.9.0"
  62 + }
  63 + },
  64 + "node_modules/@esbuild/aix-ppc64": {
  65 + "version": "0.25.4",
  66 + "resolved": "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.25.4.tgz",
  67 + "integrity": "sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q==",
  68 + "cpu": [
  69 + "ppc64"
  70 + ],
  71 + "dev": true,
  72 + "license": "MIT",
  73 + "optional": true,
  74 + "os": [
  75 + "aix"
  76 + ],
  77 + "engines": {
  78 + "node": ">=18"
  79 + }
  80 + },
  81 + "node_modules/@esbuild/android-arm": {
  82 + "version": "0.25.4",
  83 + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.25.4.tgz",
  84 + "integrity": "sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==",
  85 + "cpu": [
  86 + "arm"
  87 + ],
  88 + "dev": true,
  89 + "license": "MIT",
  90 + "optional": true,
  91 + "os": [
  92 + "android"
  93 + ],
  94 + "engines": {
  95 + "node": ">=18"
  96 + }
  97 + },
  98 + "node_modules/@esbuild/android-arm64": {
  99 + "version": "0.25.4",
  100 + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.25.4.tgz",
  101 + "integrity": "sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==",
  102 + "cpu": [
  103 + "arm64"
  104 + ],
  105 + "dev": true,
  106 + "license": "MIT",
  107 + "optional": true,
  108 + "os": [
  109 + "android"
  110 + ],
  111 + "engines": {
  112 + "node": ">=18"
  113 + }
  114 + },
  115 + "node_modules/@esbuild/android-x64": {
  116 + "version": "0.25.4",
  117 + "resolved": "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.25.4.tgz",
  118 + "integrity": "sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==",
  119 + "cpu": [
  120 + "x64"
  121 + ],
  122 + "dev": true,
  123 + "license": "MIT",
  124 + "optional": true,
  125 + "os": [
  126 + "android"
  127 + ],
  128 + "engines": {
  129 + "node": ">=18"
  130 + }
  131 + },
  132 + "node_modules/@esbuild/darwin-arm64": {
  133 + "version": "0.25.4",
  134 + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.25.4.tgz",
  135 + "integrity": "sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==",
  136 + "cpu": [
  137 + "arm64"
  138 + ],
  139 + "dev": true,
  140 + "license": "MIT",
  141 + "optional": true,
  142 + "os": [
  143 + "darwin"
  144 + ],
  145 + "engines": {
  146 + "node": ">=18"
  147 + }
  148 + },
  149 + "node_modules/@esbuild/darwin-x64": {
  150 + "version": "0.25.4",
  151 + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.25.4.tgz",
  152 + "integrity": "sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==",
  153 + "cpu": [
  154 + "x64"
  155 + ],
  156 + "dev": true,
  157 + "license": "MIT",
  158 + "optional": true,
  159 + "os": [
  160 + "darwin"
  161 + ],
  162 + "engines": {
  163 + "node": ">=18"
  164 + }
  165 + },
  166 + "node_modules/@esbuild/freebsd-arm64": {
  167 + "version": "0.25.4",
  168 + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.4.tgz",
  169 + "integrity": "sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==",
  170 + "cpu": [
  171 + "arm64"
  172 + ],
  173 + "dev": true,
  174 + "license": "MIT",
  175 + "optional": true,
  176 + "os": [
  177 + "freebsd"
  178 + ],
  179 + "engines": {
  180 + "node": ">=18"
  181 + }
  182 + },
  183 + "node_modules/@esbuild/freebsd-x64": {
  184 + "version": "0.25.4",
  185 + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.25.4.tgz",
  186 + "integrity": "sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==",
  187 + "cpu": [
  188 + "x64"
  189 + ],
  190 + "dev": true,
  191 + "license": "MIT",
  192 + "optional": true,
  193 + "os": [
  194 + "freebsd"
  195 + ],
  196 + "engines": {
  197 + "node": ">=18"
  198 + }
  199 + },
  200 + "node_modules/@esbuild/linux-arm": {
  201 + "version": "0.25.4",
  202 + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.25.4.tgz",
  203 + "integrity": "sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==",
  204 + "cpu": [
  205 + "arm"
  206 + ],
  207 + "dev": true,
  208 + "license": "MIT",
  209 + "optional": true,
  210 + "os": [
  211 + "linux"
  212 + ],
  213 + "engines": {
  214 + "node": ">=18"
  215 + }
  216 + },
  217 + "node_modules/@esbuild/linux-arm64": {
  218 + "version": "0.25.4",
  219 + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.25.4.tgz",
  220 + "integrity": "sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==",
  221 + "cpu": [
  222 + "arm64"
  223 + ],
  224 + "dev": true,
  225 + "license": "MIT",
  226 + "optional": true,
  227 + "os": [
  228 + "linux"
  229 + ],
  230 + "engines": {
  231 + "node": ">=18"
  232 + }
  233 + },
  234 + "node_modules/@esbuild/linux-ia32": {
  235 + "version": "0.25.4",
  236 + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.25.4.tgz",
  237 + "integrity": "sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==",
  238 + "cpu": [
  239 + "ia32"
  240 + ],
  241 + "dev": true,
  242 + "license": "MIT",
  243 + "optional": true,
  244 + "os": [
  245 + "linux"
  246 + ],
  247 + "engines": {
  248 + "node": ">=18"
  249 + }
  250 + },
  251 + "node_modules/@esbuild/linux-loong64": {
  252 + "version": "0.25.4",
  253 + "resolved": "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.25.4.tgz",
  254 + "integrity": "sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==",
  255 + "cpu": [
  256 + "loong64"
  257 + ],
  258 + "dev": true,
  259 + "license": "MIT",
  260 + "optional": true,
  261 + "os": [
  262 + "linux"
  263 + ],
  264 + "engines": {
  265 + "node": ">=18"
  266 + }
  267 + },
  268 + "node_modules/@esbuild/linux-mips64el": {
  269 + "version": "0.25.4",
  270 + "resolved": "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.25.4.tgz",
  271 + "integrity": "sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==",
  272 + "cpu": [
  273 + "mips64el"
  274 + ],
  275 + "dev": true,
  276 + "license": "MIT",
  277 + "optional": true,
  278 + "os": [
  279 + "linux"
  280 + ],
  281 + "engines": {
  282 + "node": ">=18"
  283 + }
  284 + },
  285 + "node_modules/@esbuild/linux-ppc64": {
  286 + "version": "0.25.4",
  287 + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.25.4.tgz",
  288 + "integrity": "sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==",
  289 + "cpu": [
  290 + "ppc64"
  291 + ],
  292 + "dev": true,
  293 + "license": "MIT",
  294 + "optional": true,
  295 + "os": [
  296 + "linux"
  297 + ],
  298 + "engines": {
  299 + "node": ">=18"
  300 + }
  301 + },
  302 + "node_modules/@esbuild/linux-riscv64": {
  303 + "version": "0.25.4",
  304 + "resolved": "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.25.4.tgz",
  305 + "integrity": "sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==",
  306 + "cpu": [
  307 + "riscv64"
  308 + ],
  309 + "dev": true,
  310 + "license": "MIT",
  311 + "optional": true,
  312 + "os": [
  313 + "linux"
  314 + ],
  315 + "engines": {
  316 + "node": ">=18"
  317 + }
  318 + },
  319 + "node_modules/@esbuild/linux-s390x": {
  320 + "version": "0.25.4",
  321 + "resolved": "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.25.4.tgz",
  322 + "integrity": "sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==",
  323 + "cpu": [
  324 + "s390x"
  325 + ],
  326 + "dev": true,
  327 + "license": "MIT",
  328 + "optional": true,
  329 + "os": [
  330 + "linux"
  331 + ],
  332 + "engines": {
  333 + "node": ">=18"
  334 + }
  335 + },
  336 + "node_modules/@esbuild/linux-x64": {
  337 + "version": "0.25.4",
  338 + "resolved": "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.25.4.tgz",
  339 + "integrity": "sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==",
  340 + "cpu": [
  341 + "x64"
  342 + ],
  343 + "dev": true,
  344 + "license": "MIT",
  345 + "optional": true,
  346 + "os": [
  347 + "linux"
  348 + ],
  349 + "engines": {
  350 + "node": ">=18"
  351 + }
  352 + },
  353 + "node_modules/@esbuild/netbsd-arm64": {
  354 + "version": "0.25.4",
  355 + "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.4.tgz",
  356 + "integrity": "sha512-vUnkBYxZW4hL/ie91hSqaSNjulOnYXE1VSLusnvHg2u3jewJBz3YzB9+oCw8DABeVqZGg94t9tyZFoHma8gWZQ==",
  357 + "cpu": [
  358 + "arm64"
  359 + ],
  360 + "dev": true,
  361 + "license": "MIT",
  362 + "optional": true,
  363 + "os": [
  364 + "netbsd"
  365 + ],
  366 + "engines": {
  367 + "node": ">=18"
  368 + }
  369 + },
  370 + "node_modules/@esbuild/netbsd-x64": {
  371 + "version": "0.25.4",
  372 + "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.25.4.tgz",
  373 + "integrity": "sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==",
  374 + "cpu": [
  375 + "x64"
  376 + ],
  377 + "dev": true,
  378 + "license": "MIT",
  379 + "optional": true,
  380 + "os": [
  381 + "netbsd"
  382 + ],
  383 + "engines": {
  384 + "node": ">=18"
  385 + }
  386 + },
  387 + "node_modules/@esbuild/openbsd-arm64": {
  388 + "version": "0.25.4",
  389 + "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.4.tgz",
  390 + "integrity": "sha512-Ct2WcFEANlFDtp1nVAXSNBPDxyU+j7+tId//iHXU2f/lN5AmO4zLyhDcpR5Cz1r08mVxzt3Jpyt4PmXQ1O6+7A==",
  391 + "cpu": [
  392 + "arm64"
  393 + ],
  394 + "dev": true,
  395 + "license": "MIT",
  396 + "optional": true,
  397 + "os": [
  398 + "openbsd"
  399 + ],
  400 + "engines": {
  401 + "node": ">=18"
  402 + }
  403 + },
  404 + "node_modules/@esbuild/openbsd-x64": {
  405 + "version": "0.25.4",
  406 + "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.25.4.tgz",
  407 + "integrity": "sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==",
  408 + "cpu": [
  409 + "x64"
  410 + ],
  411 + "dev": true,
  412 + "license": "MIT",
  413 + "optional": true,
  414 + "os": [
  415 + "openbsd"
  416 + ],
  417 + "engines": {
  418 + "node": ">=18"
  419 + }
  420 + },
  421 + "node_modules/@esbuild/sunos-x64": {
  422 + "version": "0.25.4",
  423 + "resolved": "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.25.4.tgz",
  424 + "integrity": "sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==",
  425 + "cpu": [
  426 + "x64"
  427 + ],
  428 + "dev": true,
  429 + "license": "MIT",
  430 + "optional": true,
  431 + "os": [
  432 + "sunos"
  433 + ],
  434 + "engines": {
  435 + "node": ">=18"
  436 + }
  437 + },
  438 + "node_modules/@esbuild/win32-arm64": {
  439 + "version": "0.25.4",
  440 + "resolved": "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.25.4.tgz",
  441 + "integrity": "sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==",
  442 + "cpu": [
  443 + "arm64"
  444 + ],
  445 + "dev": true,
  446 + "license": "MIT",
  447 + "optional": true,
  448 + "os": [
  449 + "win32"
  450 + ],
  451 + "engines": {
  452 + "node": ">=18"
  453 + }
  454 + },
  455 + "node_modules/@esbuild/win32-ia32": {
  456 + "version": "0.25.4",
  457 + "resolved": "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.25.4.tgz",
  458 + "integrity": "sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==",
  459 + "cpu": [
  460 + "ia32"
  461 + ],
  462 + "dev": true,
  463 + "license": "MIT",
  464 + "optional": true,
  465 + "os": [
  466 + "win32"
  467 + ],
  468 + "engines": {
  469 + "node": ">=18"
  470 + }
  471 + },
  472 + "node_modules/@esbuild/win32-x64": {
  473 + "version": "0.25.4",
  474 + "resolved": "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.25.4.tgz",
  475 + "integrity": "sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==",
  476 + "cpu": [
  477 + "x64"
  478 + ],
  479 + "dev": true,
  480 + "license": "MIT",
  481 + "optional": true,
  482 + "os": [
  483 + "win32"
  484 + ],
  485 + "engines": {
  486 + "node": ">=18"
  487 + }
  488 + },
  489 + "node_modules/@jridgewell/sourcemap-codec": {
  490 + "version": "1.5.0",
  491 + "resolved": "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
  492 + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",
  493 + "license": "MIT"
  494 + },
  495 + "node_modules/@rollup/rollup-android-arm-eabi": {
  496 + "version": "4.41.0",
  497 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.41.0.tgz",
  498 + "integrity": "sha512-KxN+zCjOYHGwCl4UCtSfZ6jrq/qi88JDUtiEFk8LELEHq2Egfc/FgW+jItZiOLRuQfb/3xJSgFuNPC9jzggX+A==",
  499 + "cpu": [
  500 + "arm"
  501 + ],
  502 + "dev": true,
  503 + "license": "MIT",
  504 + "optional": true,
  505 + "os": [
  506 + "android"
  507 + ]
  508 + },
  509 + "node_modules/@rollup/rollup-android-arm64": {
  510 + "version": "4.41.0",
  511 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.41.0.tgz",
  512 + "integrity": "sha512-yDvqx3lWlcugozax3DItKJI5j05B0d4Kvnjx+5mwiUpWramVvmAByYigMplaoAQ3pvdprGCTCE03eduqE/8mPQ==",
  513 + "cpu": [
  514 + "arm64"
  515 + ],
  516 + "dev": true,
  517 + "license": "MIT",
  518 + "optional": true,
  519 + "os": [
  520 + "android"
  521 + ]
  522 + },
  523 + "node_modules/@rollup/rollup-darwin-arm64": {
  524 + "version": "4.41.0",
  525 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.41.0.tgz",
  526 + "integrity": "sha512-2KOU574vD3gzcPSjxO0eyR5iWlnxxtmW1F5CkNOHmMlueKNCQkxR6+ekgWyVnz6zaZihpUNkGxjsYrkTJKhkaw==",
  527 + "cpu": [
  528 + "arm64"
  529 + ],
  530 + "dev": true,
  531 + "license": "MIT",
  532 + "optional": true,
  533 + "os": [
  534 + "darwin"
  535 + ]
  536 + },
  537 + "node_modules/@rollup/rollup-darwin-x64": {
  538 + "version": "4.41.0",
  539 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.41.0.tgz",
  540 + "integrity": "sha512-gE5ACNSxHcEZyP2BA9TuTakfZvULEW4YAOtxl/A/YDbIir/wPKukde0BNPlnBiP88ecaN4BJI2TtAd+HKuZPQQ==",
  541 + "cpu": [
  542 + "x64"
  543 + ],
  544 + "dev": true,
  545 + "license": "MIT",
  546 + "optional": true,
  547 + "os": [
  548 + "darwin"
  549 + ]
  550 + },
  551 + "node_modules/@rollup/rollup-freebsd-arm64": {
  552 + "version": "4.41.0",
  553 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.41.0.tgz",
  554 + "integrity": "sha512-GSxU6r5HnWij7FoSo7cZg3l5GPg4HFLkzsFFh0N/b16q5buW1NAWuCJ+HMtIdUEi6XF0qH+hN0TEd78laRp7Dg==",
  555 + "cpu": [
  556 + "arm64"
  557 + ],
  558 + "dev": true,
  559 + "license": "MIT",
  560 + "optional": true,
  561 + "os": [
  562 + "freebsd"
  563 + ]
  564 + },
  565 + "node_modules/@rollup/rollup-freebsd-x64": {
  566 + "version": "4.41.0",
  567 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.41.0.tgz",
  568 + "integrity": "sha512-KGiGKGDg8qLRyOWmk6IeiHJzsN/OYxO6nSbT0Vj4MwjS2XQy/5emsmtoqLAabqrohbgLWJ5GV3s/ljdrIr8Qjg==",
  569 + "cpu": [
  570 + "x64"
  571 + ],
  572 + "dev": true,
  573 + "license": "MIT",
  574 + "optional": true,
  575 + "os": [
  576 + "freebsd"
  577 + ]
  578 + },
  579 + "node_modules/@rollup/rollup-linux-arm-gnueabihf": {
  580 + "version": "4.41.0",
  581 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.41.0.tgz",
  582 + "integrity": "sha512-46OzWeqEVQyX3N2/QdiU/CMXYDH/lSHpgfBkuhl3igpZiaB3ZIfSjKuOnybFVBQzjsLwkus2mjaESy8H41SzvA==",
  583 + "cpu": [
  584 + "arm"
  585 + ],
  586 + "dev": true,
  587 + "license": "MIT",
  588 + "optional": true,
  589 + "os": [
  590 + "linux"
  591 + ]
  592 + },
  593 + "node_modules/@rollup/rollup-linux-arm-musleabihf": {
  594 + "version": "4.41.0",
  595 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.41.0.tgz",
  596 + "integrity": "sha512-lfgW3KtQP4YauqdPpcUZHPcqQXmTmH4nYU0cplNeW583CMkAGjtImw4PKli09NFi2iQgChk4e9erkwlfYem6Lg==",
  597 + "cpu": [
  598 + "arm"
  599 + ],
  600 + "dev": true,
  601 + "license": "MIT",
  602 + "optional": true,
  603 + "os": [
  604 + "linux"
  605 + ]
  606 + },
  607 + "node_modules/@rollup/rollup-linux-arm64-gnu": {
  608 + "version": "4.41.0",
  609 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.41.0.tgz",
  610 + "integrity": "sha512-nn8mEyzMbdEJzT7cwxgObuwviMx6kPRxzYiOl6o/o+ChQq23gfdlZcUNnt89lPhhz3BYsZ72rp0rxNqBSfqlqw==",
  611 + "cpu": [
  612 + "arm64"
  613 + ],
  614 + "dev": true,
  615 + "license": "MIT",
  616 + "optional": true,
  617 + "os": [
  618 + "linux"
  619 + ]
  620 + },
  621 + "node_modules/@rollup/rollup-linux-arm64-musl": {
  622 + "version": "4.41.0",
  623 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.41.0.tgz",
  624 + "integrity": "sha512-l+QK99je2zUKGd31Gh+45c4pGDAqZSuWQiuRFCdHYC2CSiO47qUWsCcenrI6p22hvHZrDje9QjwSMAFL3iwXwQ==",
  625 + "cpu": [
  626 + "arm64"
  627 + ],
  628 + "dev": true,
  629 + "license": "MIT",
  630 + "optional": true,
  631 + "os": [
  632 + "linux"
  633 + ]
  634 + },
  635 + "node_modules/@rollup/rollup-linux-loongarch64-gnu": {
  636 + "version": "4.41.0",
  637 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loongarch64-gnu/-/rollup-linux-loongarch64-gnu-4.41.0.tgz",
  638 + "integrity": "sha512-WbnJaxPv1gPIm6S8O/Wg+wfE/OzGSXlBMbOe4ie+zMyykMOeqmgD1BhPxZQuDqwUN+0T/xOFtL2RUWBspnZj3w==",
  639 + "cpu": [
  640 + "loong64"
  641 + ],
  642 + "dev": true,
  643 + "license": "MIT",
  644 + "optional": true,
  645 + "os": [
  646 + "linux"
  647 + ]
  648 + },
  649 + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": {
  650 + "version": "4.41.0",
  651 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.41.0.tgz",
  652 + "integrity": "sha512-eRDWR5t67/b2g8Q/S8XPi0YdbKcCs4WQ8vklNnUYLaSWF+Cbv2axZsp4jni6/j7eKvMLYCYdcsv8dcU+a6QNFg==",
  653 + "cpu": [
  654 + "ppc64"
  655 + ],
  656 + "dev": true,
  657 + "license": "MIT",
  658 + "optional": true,
  659 + "os": [
  660 + "linux"
  661 + ]
  662 + },
  663 + "node_modules/@rollup/rollup-linux-riscv64-gnu": {
  664 + "version": "4.41.0",
  665 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.41.0.tgz",
  666 + "integrity": "sha512-TWrZb6GF5jsEKG7T1IHwlLMDRy2f3DPqYldmIhnA2DVqvvhY2Ai184vZGgahRrg8k9UBWoSlHv+suRfTN7Ua4A==",
  667 + "cpu": [
  668 + "riscv64"
  669 + ],
  670 + "dev": true,
  671 + "license": "MIT",
  672 + "optional": true,
  673 + "os": [
  674 + "linux"
  675 + ]
  676 + },
  677 + "node_modules/@rollup/rollup-linux-riscv64-musl": {
  678 + "version": "4.41.0",
  679 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.41.0.tgz",
  680 + "integrity": "sha512-ieQljaZKuJpmWvd8gW87ZmSFwid6AxMDk5bhONJ57U8zT77zpZ/TPKkU9HpnnFrM4zsgr4kiGuzbIbZTGi7u9A==",
  681 + "cpu": [
  682 + "riscv64"
  683 + ],
  684 + "dev": true,
  685 + "license": "MIT",
  686 + "optional": true,
  687 + "os": [
  688 + "linux"
  689 + ]
  690 + },
  691 + "node_modules/@rollup/rollup-linux-s390x-gnu": {
  692 + "version": "4.41.0",
  693 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.41.0.tgz",
  694 + "integrity": "sha512-/L3pW48SxrWAlVsKCN0dGLB2bi8Nv8pr5S5ocSM+S0XCn5RCVCXqi8GVtHFsOBBCSeR+u9brV2zno5+mg3S4Aw==",
  695 + "cpu": [
  696 + "s390x"
  697 + ],
  698 + "dev": true,
  699 + "license": "MIT",
  700 + "optional": true,
  701 + "os": [
  702 + "linux"
  703 + ]
  704 + },
  705 + "node_modules/@rollup/rollup-linux-x64-gnu": {
  706 + "version": "4.41.0",
  707 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.41.0.tgz",
  708 + "integrity": "sha512-XMLeKjyH8NsEDCRptf6LO8lJk23o9wvB+dJwcXMaH6ZQbbkHu2dbGIUindbMtRN6ux1xKi16iXWu6q9mu7gDhQ==",
  709 + "cpu": [
  710 + "x64"
  711 + ],
  712 + "dev": true,
  713 + "license": "MIT",
  714 + "optional": true,
  715 + "os": [
  716 + "linux"
  717 + ]
  718 + },
  719 + "node_modules/@rollup/rollup-linux-x64-musl": {
  720 + "version": "4.41.0",
  721 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.41.0.tgz",
  722 + "integrity": "sha512-m/P7LycHZTvSQeXhFmgmdqEiTqSV80zn6xHaQ1JSqwCtD1YGtwEK515Qmy9DcB2HK4dOUVypQxvhVSy06cJPEg==",
  723 + "cpu": [
  724 + "x64"
  725 + ],
  726 + "dev": true,
  727 + "license": "MIT",
  728 + "optional": true,
  729 + "os": [
  730 + "linux"
  731 + ]
  732 + },
  733 + "node_modules/@rollup/rollup-win32-arm64-msvc": {
  734 + "version": "4.41.0",
  735 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.41.0.tgz",
  736 + "integrity": "sha512-4yodtcOrFHpbomJGVEqZ8fzD4kfBeCbpsUy5Pqk4RluXOdsWdjLnjhiKy2w3qzcASWd04fp52Xz7JKarVJ5BTg==",
  737 + "cpu": [
  738 + "arm64"
  739 + ],
  740 + "dev": true,
  741 + "license": "MIT",
  742 + "optional": true,
  743 + "os": [
  744 + "win32"
  745 + ]
  746 + },
  747 + "node_modules/@rollup/rollup-win32-ia32-msvc": {
  748 + "version": "4.41.0",
  749 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.41.0.tgz",
  750 + "integrity": "sha512-tmazCrAsKzdkXssEc65zIE1oC6xPHwfy9d5Ta25SRCDOZS+I6RypVVShWALNuU9bxIfGA0aqrmzlzoM5wO5SPQ==",
  751 + "cpu": [
  752 + "ia32"
  753 + ],
  754 + "dev": true,
  755 + "license": "MIT",
  756 + "optional": true,
  757 + "os": [
  758 + "win32"
  759 + ]
  760 + },
  761 + "node_modules/@rollup/rollup-win32-x64-msvc": {
  762 + "version": "4.41.0",
  763 + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.41.0.tgz",
  764 + "integrity": "sha512-h1J+Yzjo/X+0EAvR2kIXJDuTuyT7drc+t2ALY0nIcGPbTatNOf0VWdhEA2Z4AAjv6X1NJV7SYo5oCTYRJhSlVA==",
  765 + "cpu": [
  766 + "x64"
  767 + ],
  768 + "dev": true,
  769 + "license": "MIT",
  770 + "optional": true,
  771 + "os": [
  772 + "win32"
  773 + ]
  774 + },
  775 + "node_modules/@types/estree": {
  776 + "version": "1.0.7",
  777 + "resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.7.tgz",
  778 + "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==",
  779 + "dev": true,
  780 + "license": "MIT"
  781 + },
  782 + "node_modules/@vitejs/plugin-vue": {
  783 + "version": "5.2.4",
  784 + "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-5.2.4.tgz",
  785 + "integrity": "sha512-7Yx/SXSOcQq5HiiV3orevHUFn+pmMB4cgbEkDYgnkUWb0WfeQ/wa2yFv6D5ICiCQOVpjA7vYDXrC7AGO8yjDHA==",
  786 + "dev": true,
  787 + "license": "MIT",
  788 + "engines": {
  789 + "node": "^18.0.0 || >=20.0.0"
  790 + },
  791 + "peerDependencies": {
  792 + "vite": "^5.0.0 || ^6.0.0",
  793 + "vue": "^3.2.25"
  794 + }
  795 + },
  796 + "node_modules/@vue/compiler-core": {
  797 + "version": "3.5.14",
  798 + "resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.14.tgz",
  799 + "integrity": "sha512-k7qMHMbKvoCXIxPhquKQVw3Twid3Kg4s7+oYURxLGRd56LiuHJVrvFKI4fm2AM3c8apqODPfVJGoh8nePbXMRA==",
  800 + "license": "MIT",
  801 + "dependencies": {
  802 + "@babel/parser": "^7.27.2",
  803 + "@vue/shared": "3.5.14",
  804 + "entities": "^4.5.0",
  805 + "estree-walker": "^2.0.2",
  806 + "source-map-js": "^1.2.1"
  807 + }
  808 + },
  809 + "node_modules/@vue/compiler-dom": {
  810 + "version": "3.5.14",
  811 + "resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.14.tgz",
  812 + "integrity": "sha512-1aOCSqxGOea5I80U2hQJvXYpPm/aXo95xL/m/mMhgyPUsKe9jhjwWpziNAw7tYRnbz1I61rd9Mld4W9KmmRoug==",
  813 + "license": "MIT",
  814 + "dependencies": {
  815 + "@vue/compiler-core": "3.5.14",
  816 + "@vue/shared": "3.5.14"
  817 + }
  818 + },
  819 + "node_modules/@vue/compiler-sfc": {
  820 + "version": "3.5.14",
  821 + "resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.14.tgz",
  822 + "integrity": "sha512-9T6m/9mMr81Lj58JpzsiSIjBgv2LiVoWjIVa7kuXHICUi8LiDSIotMpPRXYJsXKqyARrzjT24NAwttrMnMaCXA==",
  823 + "license": "MIT",
  824 + "dependencies": {
  825 + "@babel/parser": "^7.27.2",
  826 + "@vue/compiler-core": "3.5.14",
  827 + "@vue/compiler-dom": "3.5.14",
  828 + "@vue/compiler-ssr": "3.5.14",
  829 + "@vue/shared": "3.5.14",
  830 + "estree-walker": "^2.0.2",
  831 + "magic-string": "^0.30.17",
  832 + "postcss": "^8.5.3",
  833 + "source-map-js": "^1.2.1"
  834 + }
  835 + },
  836 + "node_modules/@vue/compiler-ssr": {
  837 + "version": "3.5.14",
  838 + "resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.14.tgz",
  839 + "integrity": "sha512-Y0G7PcBxr1yllnHuS/NxNCSPWnRGH4Ogrp0tsLA5QemDZuJLs99YjAKQ7KqkHE0vCg4QTKlQzXLKCMF7WPSl7Q==",
  840 + "license": "MIT",
  841 + "dependencies": {
  842 + "@vue/compiler-dom": "3.5.14",
  843 + "@vue/shared": "3.5.14"
  844 + }
  845 + },
  846 + "node_modules/@vue/reactivity": {
  847 + "version": "3.5.14",
  848 + "resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.14.tgz",
  849 + "integrity": "sha512-7cK1Hp343Fu/SUCCO52vCabjvsYu7ZkOqyYu7bXV9P2yyfjUMUXHZafEbq244sP7gf+EZEz+77QixBTuEqkQQw==",
  850 + "license": "MIT",
  851 + "dependencies": {
  852 + "@vue/shared": "3.5.14"
  853 + }
  854 + },
  855 + "node_modules/@vue/runtime-core": {
  856 + "version": "3.5.14",
  857 + "resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.14.tgz",
  858 + "integrity": "sha512-w9JWEANwHXNgieAhxPpEpJa+0V5G0hz3NmjAZwlOebtfKyp2hKxKF0+qSh0Xs6/PhfGihuSdqMprMVcQU/E6ag==",
  859 + "license": "MIT",
  860 + "dependencies": {
  861 + "@vue/reactivity": "3.5.14",
  862 + "@vue/shared": "3.5.14"
  863 + }
  864 + },
  865 + "node_modules/@vue/runtime-dom": {
  866 + "version": "3.5.14",
  867 + "resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.14.tgz",
  868 + "integrity": "sha512-lCfR++IakeI35TVR80QgOelsUIdcKjd65rWAMfdSlCYnaEY5t3hYwru7vvcWaqmrK+LpI7ZDDYiGU5V3xjMacw==",
  869 + "license": "MIT",
  870 + "dependencies": {
  871 + "@vue/reactivity": "3.5.14",
  872 + "@vue/runtime-core": "3.5.14",
  873 + "@vue/shared": "3.5.14",
  874 + "csstype": "^3.1.3"
  875 + }
  876 + },
  877 + "node_modules/@vue/server-renderer": {
  878 + "version": "3.5.14",
  879 + "resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.14.tgz",
  880 + "integrity": "sha512-Rf/ISLqokIvcySIYnv3tNWq40PLpNLDLSJwwVWzG6MNtyIhfbcrAxo5ZL9nARJhqjZyWWa40oRb2IDuejeuv6w==",
  881 + "license": "MIT",
  882 + "dependencies": {
  883 + "@vue/compiler-ssr": "3.5.14",
  884 + "@vue/shared": "3.5.14"
  885 + },
  886 + "peerDependencies": {
  887 + "vue": "3.5.14"
  888 + }
  889 + },
  890 + "node_modules/@vue/shared": {
  891 + "version": "3.5.14",
  892 + "resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.14.tgz",
  893 + "integrity": "sha512-oXTwNxVfc9EtP1zzXAlSlgARLXNC84frFYkS0HHz0h3E4WZSP9sywqjqzGCP9Y34M8ipNmd380pVgmMuwELDyQ==",
  894 + "license": "MIT"
  895 + },
  896 + "node_modules/csstype": {
  897 + "version": "3.1.3",
  898 + "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.1.3.tgz",
  899 + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
  900 + "license": "MIT"
  901 + },
  902 + "node_modules/entities": {
  903 + "version": "4.5.0",
  904 + "resolved": "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz",
  905 + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
  906 + "license": "BSD-2-Clause",
  907 + "engines": {
  908 + "node": ">=0.12"
  909 + },
  910 + "funding": {
  911 + "url": "https://github.com/fb55/entities?sponsor=1"
  912 + }
  913 + },
  914 + "node_modules/esbuild": {
  915 + "version": "0.25.4",
  916 + "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.25.4.tgz",
  917 + "integrity": "sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==",
  918 + "dev": true,
  919 + "hasInstallScript": true,
  920 + "license": "MIT",
  921 + "bin": {
  922 + "esbuild": "bin/esbuild"
  923 + },
  924 + "engines": {
  925 + "node": ">=18"
  926 + },
  927 + "optionalDependencies": {
  928 + "@esbuild/aix-ppc64": "0.25.4",
  929 + "@esbuild/android-arm": "0.25.4",
  930 + "@esbuild/android-arm64": "0.25.4",
  931 + "@esbuild/android-x64": "0.25.4",
  932 + "@esbuild/darwin-arm64": "0.25.4",
  933 + "@esbuild/darwin-x64": "0.25.4",
  934 + "@esbuild/freebsd-arm64": "0.25.4",
  935 + "@esbuild/freebsd-x64": "0.25.4",
  936 + "@esbuild/linux-arm": "0.25.4",
  937 + "@esbuild/linux-arm64": "0.25.4",
  938 + "@esbuild/linux-ia32": "0.25.4",
  939 + "@esbuild/linux-loong64": "0.25.4",
  940 + "@esbuild/linux-mips64el": "0.25.4",
  941 + "@esbuild/linux-ppc64": "0.25.4",
  942 + "@esbuild/linux-riscv64": "0.25.4",
  943 + "@esbuild/linux-s390x": "0.25.4",
  944 + "@esbuild/linux-x64": "0.25.4",
  945 + "@esbuild/netbsd-arm64": "0.25.4",
  946 + "@esbuild/netbsd-x64": "0.25.4",
  947 + "@esbuild/openbsd-arm64": "0.25.4",
  948 + "@esbuild/openbsd-x64": "0.25.4",
  949 + "@esbuild/sunos-x64": "0.25.4",
  950 + "@esbuild/win32-arm64": "0.25.4",
  951 + "@esbuild/win32-ia32": "0.25.4",
  952 + "@esbuild/win32-x64": "0.25.4"
  953 + }
  954 + },
  955 + "node_modules/estree-walker": {
  956 + "version": "2.0.2",
  957 + "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-2.0.2.tgz",
  958 + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==",
  959 + "license": "MIT"
  960 + },
  961 + "node_modules/fdir": {
  962 + "version": "6.4.4",
  963 + "resolved": "https://registry.npmmirror.com/fdir/-/fdir-6.4.4.tgz",
  964 + "integrity": "sha512-1NZP+GK4GfuAv3PqKvxQRDMjdSRZjnkq7KfhlNrCNNlZ0ygQFpebfrnfnq/W7fpUnAv9aGWmY1zKx7FYL3gwhg==",
  965 + "dev": true,
  966 + "license": "MIT",
  967 + "peerDependencies": {
  968 + "picomatch": "^3 || ^4"
  969 + },
  970 + "peerDependenciesMeta": {
  971 + "picomatch": {
  972 + "optional": true
  973 + }
  974 + }
  975 + },
  976 + "node_modules/fsevents": {
  977 + "version": "2.3.3",
  978 + "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz",
  979 + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
  980 + "dev": true,
  981 + "hasInstallScript": true,
  982 + "license": "MIT",
  983 + "optional": true,
  984 + "os": [
  985 + "darwin"
  986 + ],
  987 + "engines": {
  988 + "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
  989 + }
  990 + },
  991 + "node_modules/magic-string": {
  992 + "version": "0.30.17",
  993 + "resolved": "https://registry.npmmirror.com/magic-string/-/magic-string-0.30.17.tgz",
  994 + "integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==",
  995 + "license": "MIT",
  996 + "dependencies": {
  997 + "@jridgewell/sourcemap-codec": "^1.5.0"
  998 + }
  999 + },
  1000 + "node_modules/nanoid": {
  1001 + "version": "3.3.11",
  1002 + "resolved": "https://registry.npmmirror.com/nanoid/-/nanoid-3.3.11.tgz",
  1003 + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",
  1004 + "funding": [
  1005 + {
  1006 + "type": "github",
  1007 + "url": "https://github.com/sponsors/ai"
  1008 + }
  1009 + ],
  1010 + "license": "MIT",
  1011 + "bin": {
  1012 + "nanoid": "bin/nanoid.cjs"
  1013 + },
  1014 + "engines": {
  1015 + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
  1016 + }
  1017 + },
  1018 + "node_modules/picocolors": {
  1019 + "version": "1.1.1",
  1020 + "resolved": "https://registry.npmmirror.com/picocolors/-/picocolors-1.1.1.tgz",
  1021 + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
  1022 + "license": "ISC"
  1023 + },
  1024 + "node_modules/picomatch": {
  1025 + "version": "4.0.2",
  1026 + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.2.tgz",
  1027 + "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==",
  1028 + "dev": true,
  1029 + "license": "MIT",
  1030 + "engines": {
  1031 + "node": ">=12"
  1032 + },
  1033 + "funding": {
  1034 + "url": "https://github.com/sponsors/jonschlinkert"
  1035 + }
  1036 + },
  1037 + "node_modules/postcss": {
  1038 + "version": "8.5.3",
  1039 + "resolved": "https://registry.npmmirror.com/postcss/-/postcss-8.5.3.tgz",
  1040 + "integrity": "sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==",
  1041 + "funding": [
  1042 + {
  1043 + "type": "opencollective",
  1044 + "url": "https://opencollective.com/postcss/"
  1045 + },
  1046 + {
  1047 + "type": "tidelift",
  1048 + "url": "https://tidelift.com/funding/github/npm/postcss"
  1049 + },
  1050 + {
  1051 + "type": "github",
  1052 + "url": "https://github.com/sponsors/ai"
  1053 + }
  1054 + ],
  1055 + "license": "MIT",
  1056 + "dependencies": {
  1057 + "nanoid": "^3.3.8",
  1058 + "picocolors": "^1.1.1",
  1059 + "source-map-js": "^1.2.1"
  1060 + },
  1061 + "engines": {
  1062 + "node": "^10 || ^12 || >=14"
  1063 + }
  1064 + },
  1065 + "node_modules/rollup": {
  1066 + "version": "4.41.0",
  1067 + "resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.41.0.tgz",
  1068 + "integrity": "sha512-HqMFpUbWlf/tvcxBFNKnJyzc7Lk+XO3FGc3pbNBLqEbOz0gPLRgcrlS3UF4MfUrVlstOaP/q0kM6GVvi+LrLRg==",
  1069 + "dev": true,
  1070 + "license": "MIT",
  1071 + "dependencies": {
  1072 + "@types/estree": "1.0.7"
  1073 + },
  1074 + "bin": {
  1075 + "rollup": "dist/bin/rollup"
  1076 + },
  1077 + "engines": {
  1078 + "node": ">=18.0.0",
  1079 + "npm": ">=8.0.0"
  1080 + },
  1081 + "optionalDependencies": {
  1082 + "@rollup/rollup-android-arm-eabi": "4.41.0",
  1083 + "@rollup/rollup-android-arm64": "4.41.0",
  1084 + "@rollup/rollup-darwin-arm64": "4.41.0",
  1085 + "@rollup/rollup-darwin-x64": "4.41.0",
  1086 + "@rollup/rollup-freebsd-arm64": "4.41.0",
  1087 + "@rollup/rollup-freebsd-x64": "4.41.0",
  1088 + "@rollup/rollup-linux-arm-gnueabihf": "4.41.0",
  1089 + "@rollup/rollup-linux-arm-musleabihf": "4.41.0",
  1090 + "@rollup/rollup-linux-arm64-gnu": "4.41.0",
  1091 + "@rollup/rollup-linux-arm64-musl": "4.41.0",
  1092 + "@rollup/rollup-linux-loongarch64-gnu": "4.41.0",
  1093 + "@rollup/rollup-linux-powerpc64le-gnu": "4.41.0",
  1094 + "@rollup/rollup-linux-riscv64-gnu": "4.41.0",
  1095 + "@rollup/rollup-linux-riscv64-musl": "4.41.0",
  1096 + "@rollup/rollup-linux-s390x-gnu": "4.41.0",
  1097 + "@rollup/rollup-linux-x64-gnu": "4.41.0",
  1098 + "@rollup/rollup-linux-x64-musl": "4.41.0",
  1099 + "@rollup/rollup-win32-arm64-msvc": "4.41.0",
  1100 + "@rollup/rollup-win32-ia32-msvc": "4.41.0",
  1101 + "@rollup/rollup-win32-x64-msvc": "4.41.0",
  1102 + "fsevents": "~2.3.2"
  1103 + }
  1104 + },
  1105 + "node_modules/source-map-js": {
  1106 + "version": "1.2.1",
  1107 + "resolved": "https://registry.npmmirror.com/source-map-js/-/source-map-js-1.2.1.tgz",
  1108 + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",
  1109 + "license": "BSD-3-Clause",
  1110 + "engines": {
  1111 + "node": ">=0.10.0"
  1112 + }
  1113 + },
  1114 + "node_modules/tinyglobby": {
  1115 + "version": "0.2.13",
  1116 + "resolved": "https://registry.npmmirror.com/tinyglobby/-/tinyglobby-0.2.13.tgz",
  1117 + "integrity": "sha512-mEwzpUgrLySlveBwEVDMKk5B57bhLPYovRfPAXD5gA/98Opn0rCDj3GtLwFvCvH5RK9uPCExUROW5NjDwvqkxw==",
  1118 + "dev": true,
  1119 + "license": "MIT",
  1120 + "dependencies": {
  1121 + "fdir": "^6.4.4",
  1122 + "picomatch": "^4.0.2"
  1123 + },
  1124 + "engines": {
  1125 + "node": ">=12.0.0"
  1126 + },
  1127 + "funding": {
  1128 + "url": "https://github.com/sponsors/SuperchupuDev"
  1129 + }
  1130 + },
  1131 + "node_modules/vite": {
  1132 + "version": "6.3.5",
  1133 + "resolved": "https://registry.npmmirror.com/vite/-/vite-6.3.5.tgz",
  1134 + "integrity": "sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==",
  1135 + "dev": true,
  1136 + "license": "MIT",
  1137 + "dependencies": {
  1138 + "esbuild": "^0.25.0",
  1139 + "fdir": "^6.4.4",
  1140 + "picomatch": "^4.0.2",
  1141 + "postcss": "^8.5.3",
  1142 + "rollup": "^4.34.9",
  1143 + "tinyglobby": "^0.2.13"
  1144 + },
  1145 + "bin": {
  1146 + "vite": "bin/vite.js"
  1147 + },
  1148 + "engines": {
  1149 + "node": "^18.0.0 || ^20.0.0 || >=22.0.0"
  1150 + },
  1151 + "funding": {
  1152 + "url": "https://github.com/vitejs/vite?sponsor=1"
  1153 + },
  1154 + "optionalDependencies": {
  1155 + "fsevents": "~2.3.3"
  1156 + },
  1157 + "peerDependencies": {
  1158 + "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",
  1159 + "jiti": ">=1.21.0",
  1160 + "less": "*",
  1161 + "lightningcss": "^1.21.0",
  1162 + "sass": "*",
  1163 + "sass-embedded": "*",
  1164 + "stylus": "*",
  1165 + "sugarss": "*",
  1166 + "terser": "^5.16.0",
  1167 + "tsx": "^4.8.1",
  1168 + "yaml": "^2.4.2"
  1169 + },
  1170 + "peerDependenciesMeta": {
  1171 + "@types/node": {
  1172 + "optional": true
  1173 + },
  1174 + "jiti": {
  1175 + "optional": true
  1176 + },
  1177 + "less": {
  1178 + "optional": true
  1179 + },
  1180 + "lightningcss": {
  1181 + "optional": true
  1182 + },
  1183 + "sass": {
  1184 + "optional": true
  1185 + },
  1186 + "sass-embedded": {
  1187 + "optional": true
  1188 + },
  1189 + "stylus": {
  1190 + "optional": true
  1191 + },
  1192 + "sugarss": {
  1193 + "optional": true
  1194 + },
  1195 + "terser": {
  1196 + "optional": true
  1197 + },
  1198 + "tsx": {
  1199 + "optional": true
  1200 + },
  1201 + "yaml": {
  1202 + "optional": true
  1203 + }
  1204 + }
  1205 + },
  1206 + "node_modules/vue": {
  1207 + "version": "3.5.14",
  1208 + "resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.14.tgz",
  1209 + "integrity": "sha512-LbOm50/vZFG6Mhy6KscQYXZMQ0LMCC/y40HDJPPvGFQ+i/lUH+PJHR6C3assgOQiXdl6tAfsXHbXYVBZZu65ew==",
  1210 + "license": "MIT",
  1211 + "dependencies": {
  1212 + "@vue/compiler-dom": "3.5.14",
  1213 + "@vue/compiler-sfc": "3.5.14",
  1214 + "@vue/runtime-dom": "3.5.14",
  1215 + "@vue/server-renderer": "3.5.14",
  1216 + "@vue/shared": "3.5.14"
  1217 + },
  1218 + "peerDependencies": {
  1219 + "typescript": "*"
  1220 + },
  1221 + "peerDependenciesMeta": {
  1222 + "typescript": {
  1223 + "optional": true
  1224 + }
  1225 + }
  1226 + }
  1227 + }
  1228 +}
  1 +{
  2 + "name": "ai-demo",
  3 + "private": true,
  4 + "version": "0.0.0",
  5 + "type": "module",
  6 + "scripts": {
  7 + "dev": "vite",
  8 + "build": "vite build",
  9 + "preview": "vite preview"
  10 + },
  11 + "dependencies": {
  12 + "vue": "^3.5.13"
  13 + },
  14 + "devDependencies": {
  15 + "@vitejs/plugin-vue": "^5.2.2",
  16 + "vite": "^6.3.1"
  17 + }
  18 +}
  1 +<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
  1 +<script setup>
  2 +</script>
  3 +
  4 +<template>
  5 + <div>
  6 +
  7 + </div>
  8 +</template>
  9 +
  10 +<style scoped>
  11 +
  12 +</style>
  1 +import { createApp } from 'vue'
  2 +import './style.css'
  3 +import App from './App.vue'
  4 +
  5 +createApp(App).mount('#app')
  1 +:root {
  2 + font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  3 + line-height: 1.5;
  4 + font-weight: 400;
  5 +
  6 + color-scheme: light dark;
  7 + color: rgba(255, 255, 255, 0.87);
  8 + background-color: #242424;
  9 +
  10 + font-synthesis: none;
  11 + text-rendering: optimizeLegibility;
  12 + -webkit-font-smoothing: antialiased;
  13 + -moz-osx-font-smoothing: grayscale;
  14 +}
  15 +
  16 +a {
  17 + font-weight: 500;
  18 + color: #646cff;
  19 + text-decoration: inherit;
  20 +}
  21 +a:hover {
  22 + color: #535bf2;
  23 +}
  24 +
  25 +body {
  26 + margin: 0;
  27 + display: flex;
  28 + place-items: center;
  29 + min-width: 320px;
  30 + min-height: 100vh;
  31 +}
  32 +
  33 +h1 {
  34 + font-size: 3.2em;
  35 + line-height: 1.1;
  36 +}
  37 +
  38 +button {
  39 + border-radius: 8px;
  40 + border: 1px solid transparent;
  41 + padding: 0.6em 1.2em;
  42 + font-size: 1em;
  43 + font-weight: 500;
  44 + font-family: inherit;
  45 + background-color: #1a1a1a;
  46 + cursor: pointer;
  47 + transition: border-color 0.25s;
  48 +}
  49 +button:hover {
  50 + border-color: #646cff;
  51 +}
  52 +button:focus,
  53 +button:focus-visible {
  54 + outline: 4px auto -webkit-focus-ring-color;
  55 +}
  56 +
  57 +.card {
  58 + padding: 2em;
  59 +}
  60 +
  61 +#app {
  62 + max-width: 1280px;
  63 + margin: 0 auto;
  64 + padding: 2rem;
  65 + text-align: center;
  66 +}
  67 +
  68 +@media (prefers-color-scheme: light) {
  69 + :root {
  70 + color: #213547;
  71 + background-color: #ffffff;
  72 + }
  73 + a:hover {
  74 + color: #747bff;
  75 + }
  76 + button {
  77 + background-color: #f9f9f9;
  78 + }
  79 +}
  1 +import { defineConfig } from 'vite'
  2 +import vue from '@vitejs/plugin-vue'
  3 +
  4 +// https://vite.dev/config/
  5 +export default defineConfig({
  6 + plugins: [vue()],
  7 + server: {
  8 + host: '0.0.0.0', // 关键配置:允许内网访问
  9 + port: 5173 // 默认端口,可根据需要修改
  10 + }
  11 +})
This file is too large to display.
This file is too large to display.
This diff could not be displayed because it is too large.
  1 +function createUnityInstance(t,n,c){function s(e,t){if(!s.aborted&&n.showBanner)return"error"==t&&(s.aborted=!0),n.showBanner(e,t);switch(t){case"error":console.error(e);break;case"warning":console.warn(e);break;default:console.log(e)}}function r(e){var t=e.reason||e.error,n=t?t.toString():e.message||e.reason||"",r=t&&t.stack?t.stack.toString():"";(n+="\n"+(r=r.startsWith(n)?r.substring(n.length):r).trim())&&l.stackTraceRegExp&&l.stackTraceRegExp.test(n)&&D(n,e.filename||t&&(t.fileName||t.sourceURL)||"",e.lineno||t&&(t.lineNumber||t.line)||0)}function e(e,t,n){var r=e[t];void 0!==r&&r||(console.warn('Config option "'+t+'" is missing or empty. Falling back to default value: "'+n+'". Consider updating your WebGL template to include the missing config option.'),e[t]=n)}c=c||function(){};var o,l={canvas:t,webglContextAttributes:{preserveDrawingBuffer:!1,powerPreference:2},cacheControl:function(e){return e==l.dataUrl||e.match(/\.bundle/)?"must-revalidate":"no-store"},streamingAssetsUrl:"StreamingAssets",downloadProgress:{},deinitializers:[],intervals:{},setInterval:function(e,t){e=window.setInterval(e,t);return this.intervals[e]=!0,e},clearInterval:function(e){delete this.intervals[e],window.clearInterval(e)},preRun:[],postRun:[],print:function(e){console.log(e)},printErr:function(e){console.error(e),"string"==typeof e&&-1!=e.indexOf("wasm streaming compile failed")&&(-1!=e.toLowerCase().indexOf("mime")?s('HTTP Response Header "Content-Type" configured incorrectly on the server for file '+l.codeUrl+' , should be "application/wasm". Startup time performance will suffer.',"warning"):s('WebAssembly streaming compilation failed! This can happen for example if "Content-Encoding" HTTP header is incorrectly enabled on the server for file '+l.codeUrl+", but the file is not pre-compressed on disk (or vice versa). Check the Network tab in browser Devtools to debug server header configuration.","warning"))},locateFile:function(e){return"build.wasm"==e?this.codeUrl:e},disabledCanvasEvents:["contextmenu","dragstart"]};for(o in e(n,"companyName","Unity"),e(n,"productName","WebGL Player"),e(n,"productVersion","1.0"),n)l[o]=n[o];l.streamingAssetsUrl=new URL(l.streamingAssetsUrl,document.URL).href;var a=l.disabledCanvasEvents.slice();function i(e){e.preventDefault()}a.forEach(function(e){t.addEventListener(e,i)}),window.addEventListener("error",r),window.addEventListener("unhandledrejection",r);var u="",d="";function h(e){document.webkitCurrentFullScreenElement===t?t.style.width&&(u=t.style.width,d=t.style.height,t.style.width="100%",t.style.height="100%"):u&&(t.style.width=u,t.style.height=d,d=u="")}document.addEventListener("webkitfullscreenchange",h),l.deinitializers.push(function(){for(var e in l.disableAccessToMediaDevices(),a.forEach(function(e){t.removeEventListener(e,i)}),window.removeEventListener("error",r),window.removeEventListener("unhandledrejection",r),document.removeEventListener("webkitfullscreenchange",h),l.intervals)window.clearInterval(e);l.intervals={}}),l.QuitCleanup=function(){for(var e=0;e<l.deinitializers.length;e++)l.deinitializers[e]();l.deinitializers=[],"function"==typeof l.onQuit&&l.onQuit()};var f,p,m,g,b,v,w,y,S,C={Module:l,SetFullscreen:function(){if(l.SetFullscreen)return l.SetFullscreen.apply(l,arguments);l.print("Failed to set Fullscreen mode: Player not loaded yet.")},SendMessage:function(){if(l.SendMessage)return l.SendMessage.apply(l,arguments);l.print("Failed to execute SendMessage: Player not loaded yet.")},Quit:function(){return new Promise(function(e,t){l.shouldQuit=!0,l.onQuit=e})},GetMemoryInfo:function(){var e=l._getMemInfo();return{totalWASMHeapSize:l.HEAPU32[e>>2],usedWASMHeapSize:l.HEAPU32[1+(e>>2)],totalJSHeapSize:l.HEAPF64[1+(e>>3)],usedJSHeapSize:l.HEAPF64[2+(e>>3)]}}};function D(e,t,n){-1==e.indexOf("fullscreen error")&&(l.startupErrorHandler?l.startupErrorHandler(e,t,n):l.errorHandler&&l.errorHandler(e,t,n)||(console.log("Invoking error handler due to\n"+e),"function"==typeof dump&&dump("Invoking error handler due to\n"+e),D.didShowErrorMessage||(-1!=(e="An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:\n"+e).indexOf("DISABLE_EXCEPTION_CATCHING")?e="An exception has occurred, but exception handling has been disabled in this build. If you are the developer of this content, enable exceptions in your project WebGL player settings to be able to catch the exception or see the stack trace.":-1!=e.indexOf("Cannot enlarge memory arrays")?e="Out of memory. If you are the developer of this content, try allocating more memory to your WebGL build in the WebGL player settings.":-1==e.indexOf("Invalid array buffer length")&&-1==e.indexOf("Invalid typed array length")&&-1==e.indexOf("out of memory")&&-1==e.indexOf("could not allocate memory")||(e="The browser could not allocate enough memory for the WebGL content. If you are the developer of this content, try allocating less memory to your WebGL build in the WebGL player settings."),alert(e),D.didShowErrorMessage=!0)))}function P(e,t){if("symbolsUrl"!=e){var n=l.downloadProgress[e],r=(n=n||(l.downloadProgress[e]={started:!1,finished:!1,lengthComputable:!1,total:0,loaded:0}),"object"!=typeof t||"progress"!=t.type&&"load"!=t.type||(n.started||(n.started=!0,n.lengthComputable=t.lengthComputable),n.total=t.total,n.loaded=t.loaded,"load"==t.type&&(n.finished=!0)),0),o=0,a=0,i=0,s=0;for(e in l.downloadProgress){if(!(n=l.downloadProgress[e]).started)return;a++,n.lengthComputable?(r+=n.loaded,o+=n.total,i++):n.finished||s++}c(.9*(a?(a-s-(o?i*(o-r)/o:0))/a:0))}}function x(){var e=this;this.isConnected=this.connect().then(function(){return e.cleanUpCache()}),this.isConnected.catch(function(e){e="Error when initializing cache: "+e,console.log("[UnityCache] "+e)})}function E(e){console.log("[UnityCache] "+e)}function U(e){return U.link=U.link||document.createElement("a"),U.link.href=e,U.link.href}function T(){new Promise(function(a,e){var i=document.createElement("script");i.src=l.frameworkUrl,i.onload=function(){if("undefined"==typeof unityFramework||!unityFramework){var e,t=[["br","br"],["gz","gzip"]];for(e in t){var n,r=t[e];if(l.frameworkUrl.endsWith("."+r[0]))return n="Unable to parse "+l.frameworkUrl+"!","file:"==location.protocol?void s(n+" Loading pre-compressed (brotli or gzip) content via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host compressed Unity content, or use the Unity Build and Run option.","error"):(n+=' This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: '+r[1]+'" present. Check browser Console and Devtools Network tab to debug.',"br"==r[0]&&"http:"==location.protocol&&(r=-1!=["localhost","127.0.0.1"].indexOf(location.hostname)?"":"Migrate your server to use HTTPS.",n=/Firefox/.test(navigator.userAgent)?"Unable to parse "+l.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported in Firefox over HTTP connections. '+r+' See <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1670675">https://bugzilla.mozilla.org/show_bug.cgi?id=1670675</a> for more information.':"Unable to parse "+l.frameworkUrl+'!<br>If using custom web server, verify that web server is sending .br files with HTTP Response Header "Content-Encoding: br". Brotli compression may not be supported over HTTP connections. Migrate your server to use HTTPS.'),void s(n,"error"))}s("Unable to parse "+l.frameworkUrl+"! The file is corrupt, or compression was misconfigured? (check Content-Encoding HTTP Response Header on web server)","error")}var o=unityFramework;unityFramework=null,i.onload=null,a(o)},i.onerror=function(e){s("Unable to load file "+l.frameworkUrl+"! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)","error")},document.body.appendChild(i),l.deinitializers.push(function(){document.body.removeChild(i)})}).then(function(e){e(l)});P(n="dataUrl"),e=l.cacheControl(l[n]),t=l.companyName&&l.productName?l.cachedFetch:l.fetchWithProgress,r=l[n],r=/file:\/\//.exec(r)?"same-origin":void 0;var n,e,t,r,o=t(l[n],{method:"GET",companyName:l.companyName,productName:l.productName,productVersion:l.productVersion,control:e,mode:r,onProgress:function(e){P(n,e)}}).then(function(e){return e.parsedBody}).catch(function(e){var t="Failed to download file "+l[n];"file:"==location.protocol?s(t+". Loading web pages via a file:// URL without a web server is not supported by this browser. Please use a local development web server to host Unity content, or use the Unity Build and Run option.","error"):console.error(t)});l.preRun.push(function(){l.addRunDependency("dataUrl"),o.then(function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=0,r="UnityWebData1.0\0";if(!String.fromCharCode.apply(null,e.subarray(n,n+r.length))==r)throw"unknown data format";var o=t.getUint32(n+=r.length,!0);for(n+=4;n<o;){var a=t.getUint32(n,!0),i=(n+=4,t.getUint32(n,!0)),s=(n+=4,t.getUint32(n,!0)),c=(n+=4,String.fromCharCode.apply(null,e.subarray(n,n+s)));n+=s;for(var u=0,d=c.indexOf("/",u)+1;0<d;u=d,d=c.indexOf("/",u)+1)l.FS_createPath(c.substring(0,u),c.substring(u,d-1),!0,!0);l.FS_createDataFile(c,null,e.subarray(a,a+i),!0,!0,!0)}l.removeRunDependency("dataUrl")})})}return l.SystemInfo=function(){var e,t,n,r,o=navigator.userAgent+" ",a=[["Firefox","Firefox"],["OPR","Opera"],["Edg","Edge"],["SamsungBrowser","Samsung Browser"],["Trident","Internet Explorer"],["MSIE","Internet Explorer"],["Chrome","Chrome"],["CriOS","Chrome on iOS Safari"],["FxiOS","Firefox on iOS Safari"],["Safari","Safari"]];function i(e,t,n){return(e=RegExp(e,"i").exec(t))&&e[n]}for(var s=0;s<a.length;++s)if(t=i(a[s][0]+"[/ ](.*?)[ \\)]",o,1)){e=a[s][1];break}"Safari"==e&&(t=i("Version/(.*?) ",o,1)),"Internet Explorer"==e&&(t=i("rv:(.*?)\\)? ",o,1)||t);for(var c=[["Windows (.*?)[;)]","Windows"],["Android ([0-9_.]+)","Android"],["iPhone OS ([0-9_.]+)","iPhoneOS"],["iPad.*? OS ([0-9_.]+)","iPadOS"],["FreeBSD( )","FreeBSD"],["OpenBSD( )","OpenBSD"],["Linux|X11()","Linux"],["Mac OS X ([0-9_\\.]+)","MacOS"],["bot|google|baidu|bing|msn|teoma|slurp|yandex","Search Bot"]],u=0;u<c.length;++u)if(d=i(c[u][0],o,1)){n=c[u][1],d=d.replace(/_/g,".");break}var d={"NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"Server 2003","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 10.0":"10"}[d]||d,l=((l=document.createElement("canvas"))&&(gl=l.getContext("webgl2"),glVersion=gl?2:0,gl||(gl=l&&l.getContext("webgl"))&&(glVersion=1),gl&&(r=gl.getExtension("WEBGL_debug_renderer_info")&&gl.getParameter(37446)||gl.getParameter(7937))),"undefined"!=typeof SharedArrayBuffer),h="object"==typeof WebAssembly&&"function"==typeof WebAssembly.compile;return{width:screen.width,height:screen.height,userAgent:o.trim(),browser:e||"Unknown browser",browserVersion:t||"Unknown version",mobile:/Mobile|Android|iP(ad|hone)/.test(navigator.appVersion),os:n||"Unknown OS",osVersion:d||"Unknown OS Version",gpu:r||"Unknown GPU",language:navigator.userLanguage||navigator.language,hasWebGL:glVersion,hasCursorLock:!!document.body.requestPointerLock,hasFullscreen:!!document.body.requestFullscreen||!!document.body.webkitRequestFullscreen,hasThreads:l,hasWasm:h,hasWasmThreads:!1}}(),l.abortHandler=function(e){return D(e,"",0),!0},Error.stackTraceLimit=Math.max(Error.stackTraceLimit||0,50),l.readBodyWithProgress=function(a,i,s){var e=a.body?a.body.getReader():void 0,c=void 0!==a.headers.get("Content-Length"),u=function(e,t){if(!t)return 0;var t=e.headers.get("Content-Encoding"),n=parseInt(e.headers.get("Content-Length"));switch(t){case"br":return Math.round(5*n);case"gzip":return Math.round(4*n);default:return n}}(a,c),d=new Uint8Array(u),l=[],h=0,f=0;return c||console.warn("[UnityCache] Response is served without Content-Length header. Please reconfigure server to include valid Content-Length for better download performance."),function o(){return void 0===e?a.arrayBuffer().then(function(e){var t=new Uint8Array(e);return i({type:"progress",response:a,total:e.length,loaded:0,lengthComputable:c,chunk:s?t:null}),t}):e.read().then(function(e){if(e.done){if(h===u)return d;if(h<u)return d.slice(0,h);for(var t=new Uint8Array(h),n=(t.set(d,0),f),r=0;r<l.length;++r)t.set(l[r],n),n+=l[r].length;return t}return h+e.value.length<=d.length?(d.set(e.value,h),f=h+e.value.length):l.push(e.value),h+=e.value.length,i({type:"progress",response:a,total:Math.max(u,h),loaded:h,lengthComputable:c,chunk:s?e.value:null}),o()})}().then(function(e){return i({type:"load",response:a,total:e.length,loaded:e.length,lengthComputable:c,chunk:null}),a.parsedBody=e,a})},l.fetchWithProgress=function(e,t){var n=function(){};return t&&t.onProgress&&(n=t.onProgress),fetch(e,t).then(function(e){return l.readBodyWithProgress(e,n,t.enableStreamingDownload)})},l.UnityCache=(f={name:"UnityCache",version:4},p={name:"RequestMetaDataStore",version:1},m="RequestStore",g="WebAssembly",b=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,v=null,x.getInstance=function(){return v=v||new x},x.destroyInstance=function(){return v?v.close().then(function(){v=null}):Promise.resolve()},x.prototype.clearCache=function(){var r=this;return this.isConnected.then(function(){return r.execute(p.name,"clear",[])}).then(function(){return r.cache.keys()}).then(function e(t){var n;return 0===t.length?Promise.resolve():(n=t.pop(),r.cache.delete(n).then(function(){return e(t)}))})},x.UnityCacheDatabase=f,x.RequestMetaDataStore=p,x.MaximumCacheSize=1073741824,x.prototype.loadRequest=function(e){var t=this;return t.isConnected.then(function(){return Promise.all([t.cache.match(e),t.loadRequestMetaData(e)])}).then(function(e){if(void 0!==e[0]&&void 0!==e[1])return{response:e[0],metaData:e[1]}})},x.prototype.loadRequestMetaData=function(e){e="string"==typeof e?e:e.url;return this.execute(p.name,"get",[e])},x.prototype.updateRequestMetaData=function(e){return this.execute(p.name,"put",[e])},x.prototype.storeRequest=function(e,t){var n=this;return n.isConnected.then(function(){return n.cache.put(e,t)})},x.prototype.close=function(){return this.isConnected.then(function(){this.database&&(this.database.close(),this.database=null),this.cache&&(this.cache=null)}.bind(this))},x.prototype.connect=function(){var o=this;return void 0===b?Promise.reject(new Error("Could not connect to cache: IndexedDB is not supported.")):void 0===window.caches?Promise.reject(new Error("Could not connect to cache: Cache API is not supported.")):new Promise(function(t,n){try{function r(){o.openDBTimeout&&(clearTimeout(o.openDBTimeout),o.openDBTimeout=null)}o.openDBTimeout=setTimeout(function(){void 0===o.database&&n(new Error("Could not connect to cache: Database timeout."))},2e4);var e=b.open(f.name,f.version);e.onupgradeneeded=o.upgradeDatabase.bind(o),e.onsuccess=function(e){r(),o.database=e.target.result,t()},e.onerror=function(e){r(),o.database=null,n(new Error("Could not connect to database."))}}catch(e){r(),o.database=null,o.cache=null,n(new Error("Could not connect to cache: Could not connect to database."))}}).then(function(){var e=f.name+"_"+l.companyName+"_"+l.productName;return caches.open(e)}).then(function(e){o.cache=e})},x.prototype.upgradeDatabase=function(e){var t,e=e.target.result;e.objectStoreNames.contains(p.name)||(t=e.createObjectStore(p.name,{keyPath:"url"}),["accessedAt","updatedAt"].forEach(function(e){t.createIndex(e,e)})),e.objectStoreNames.contains(m)&&e.deleteObjectStore(m),e.objectStoreNames.contains(g)&&e.deleteObjectStore(g)},x.prototype.execute=function(a,i,s){return this.isConnected.then(function(){return new Promise(function(t,n){try{var e,r,o;null===this.database?n(new Error("indexedDB access denied")):(e=-1!=["put","delete","clear"].indexOf(i)?"readwrite":"readonly",r=this.database.transaction([a],e).objectStore(a),"openKeyCursor"==i&&(r=r.index(s[0]),s=s.slice(1)),(o=r[i].apply(r,s)).onsuccess=function(e){t(e.target.result)},o.onerror=function(e){n(e)})}catch(e){n(e)}}.bind(this))}.bind(this))},x.prototype.getMetaDataEntries=function(){var r=this,o=0,a=[];return new Promise(function(t,n){var e=r.database.transaction([p.name],"readonly").objectStore(p.name).openCursor();e.onsuccess=function(e){e=e.target.result;e?(o+=e.value.size,a.push(e.value),e.continue()):t({metaDataEntries:a,cacheSize:o})},e.onerror=function(e){n(e)}})},x.prototype.cleanUpCache=function(){var i=this;return this.getMetaDataEntries().then(function(e){for(var t=e.metaDataEntries,n=e.cacheSize,r=[],o=[],a=0;a<t.length;++a)t[a].version==l.productVersion?o.push(t[a]):(r.push(t[a]),n-=t[a].size);o.sort(function(e,t){return e.accessedAt-t.accessedAt});for(a=0;a<o.length&&!(n<x.MaximumCacheSize);++a)r.push(o[a]),n-=o[a].size;return function e(){var t;return 0===r.length?Promise.resolve():(t=r.pop(),i.cache.delete(t.url).then(function(e){if(e)return r=t.url,new Promise(function(e,t){var n=i.database.transaction([p.name],"readwrite");n.objectStore(p.name).delete(r),n.oncomplete=e,n.onerror=t});var r}).then(e))}()})},x),l.cachedFetch=(w=l.UnityCache,y=l.fetchWithProgress,S=l.readBodyWithProgress,function(o,a){var e,t,i=w.getInstance(),s=U("string"==typeof o?o:o.url),c={enabled:(e=s,(!(t=a)||!t.method||"GET"===t.method)&&((!t||-1!=["must-revalidate","immutable"].indexOf(t.control))&&!!e.match("^https?://")))};function u(n,r){return fetch(n,r).then(function(e){var t;return!c.enabled||c.revalidated?e:304===e.status?(c.revalidated=!0,i.updateRequestMetaData(c.metaData).then(function(){E("'"+c.metaData.url+"' successfully revalidated and served from the indexedDB cache")}).catch(function(e){E("'"+c.metaData.url+"' successfully revalidated but not stored in the indexedDB cache due to the error: "+e)}),S(c.response,r.onProgress,r.enableStreamingDownload)):200==e.status?(c.response=e,c.metaData.updatedAt=c.metaData.accessedAt,c.revalidated=!0,t=e.clone(),S(e,r.onProgress,r.enableStreamingDownload).then(function(e){return c.metaData.size=e.parsedBody.length,Promise.all([i.storeRequest(n,t),i.updateRequestMetaData(c.metaData)]).then(function(){E("'"+s+"' successfully downloaded and stored in the indexedDB cache")}).catch(function(e){E("'"+s+"' successfully downloaded but not stored in the indexedDB cache due to the error: "+e)}),e})):(E("'"+s+"' request failed with status: "+e.status+" "+e.statusText),S(e,r.onProgress,r.enableStreamingDownload))})}return a&&(c.control=a.control,c.companyName=a.companyName,c.productName=a.productName,c.productVersion=a.productVersion),c.revalidated=!1,c.metaData={url:s,accessedAt:Date.now(),version:c.productVersion},c.response=null,c.enabled?i.loadRequest(s).then(function(e){var n,r,t;return e?(n=e.response,r=e.metaData,c.response=n,c.metaData.size=r.size,c.metaData.updatedAt=r.updatedAt,"immutable"==c.control?(c.revalidated=!0,i.updateRequestMetaData(r).then(function(){E("'"+c.metaData.url+"' served from the indexedDB cache without revalidation")}),S(n,a.onProgress,a.enableStreamingDownload)):(e=s,(t=window.location.href.match(/^[a-z]+:\/\/[^\/]+/))&&!e.lastIndexOf(t[0],0)||!n.headers.get("Last-Modified")&&!n.headers.get("ETag")?(e=(a=a||{}).headers||{},a.headers=e,n.headers.get("Last-Modified")?(e["If-Modified-Since"]=n.headers.get("Last-Modified"),e["Cache-Control"]="no-cache"):n.headers.get("ETag")&&(e["If-None-Match"]=n.headers.get("ETag"),e["Cache-Control"]="no-cache"),u(o,a)):fetch(s,{method:"HEAD"}).then(function(t){return c.revalidated=["Last-Modified","ETag"].every(function(e){return!n.headers.get(e)||n.headers.get(e)==t.headers.get(e)}),c.revalidated?(i.updateRequestMetaData(r).then(function(){E("'"+c.metaData.url+"' successfully revalidated and served from the indexedDB cache")}),S(c.response,a.onProgress,a.enableStreamingDownload)):u(o,a)}))):u(o,a)}).catch(function(e){return E("Failed to load '"+c.metaData.url+"' from indexedDB cache due to the error: "+e),y(o,a)}):y(o,a)}),new Promise(function(e,t){var n;l.SystemInfo.hasWebGL?1==l.SystemInfo.hasWebGL?(n='Your browser does not support graphics API "WebGL 2" which is required for this content.',"Safari"==l.SystemInfo.browser&&parseInt(l.SystemInfo.browserVersion)<15&&(l.SystemInfo.mobile||1<navigator.maxTouchPoints?n+="\nUpgrade to iOS 15 or later.":n+="\nUpgrade to Safari 15 or later."),t(n)):l.SystemInfo.hasWasm?(l.startupErrorHandler=t,c(0),l.postRun.push(function(){c(1),delete l.startupErrorHandler,e(C)}),T()):t("Your browser does not support WebAssembly."):t("Your browser does not support WebGL.")})}
This file is too large to display.
  1 +<!DOCTYPE html>
  2 +<html lang="en-us">
  3 +
  4 +<head>
  5 + <meta charset="utf-8">
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7 + <title>chat</title>
  8 + <style>
  9 + * {
  10 + box-sizing: border-box;
  11 + margin: 0;
  12 + padding: 0;
  13 + }
  14 +
  15 + body {
  16 + min-height: 100vh;
  17 + background: #f0f2f5;
  18 + display: flex;
  19 + flex-direction: column;
  20 + align-items: center;
  21 + padding: 20px;
  22 + gap: 20px;
  23 + }
  24 +
  25 + .container {
  26 + display: flex;
  27 + align-items: center;
  28 + gap: 20px;
  29 + }
  30 +
  31 + .input-container {
  32 + width: 100%;
  33 + max-width: 320px;
  34 + background: white;
  35 + padding: 15px;
  36 + border-radius: 12px;
  37 + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  38 + display: flex;
  39 + align-items: center;
  40 + gap: 8px;
  41 + }
  42 +
  43 + input {
  44 + flex: 1;
  45 + padding: 8px 12px;
  46 + border: 1px solid #ddd;
  47 + border-radius: 6px;
  48 + font-size: 14px;
  49 + }
  50 +
  51 + button {
  52 + white-space: nowrap;
  53 + padding: 8px 12px;
  54 + background: #1890ff;
  55 + color: white;
  56 + border: none;
  57 + border-radius: 6px;
  58 + cursor: pointer;
  59 + transition: all 0.3s;
  60 + }
  61 +
  62 + button:hover {
  63 + background: #40a9ff;
  64 + }
  65 +
  66 + #unity-canvas {
  67 + width: 320px;
  68 + height: 480px;
  69 + border-radius: 12px;
  70 + box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  71 + }
  72 +
  73 + /* 新增聊天窗口样式 */
  74 + .chat-container {
  75 + width: 550px;
  76 + height: 550px;
  77 + background: white;
  78 + border-radius: 12px;
  79 + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  80 + display: flex;
  81 + flex-direction: column;
  82 + gap: 10px;
  83 + padding: 15px;
  84 + }
  85 +
  86 + .chat-messages {
  87 + flex: 1;
  88 + height: 300px;
  89 + overflow-y: auto;
  90 + display: flex;
  91 + flex-direction: column;
  92 + gap: 12px;
  93 + padding: 0 5px;
  94 + }
  95 +
  96 + .chat-message {
  97 + max-width: 70%;
  98 + padding: 8px 12px;
  99 + border-radius: 8px;
  100 + font-size: 14px;
  101 + line-height: 1.4;
  102 + }
  103 +
  104 + .chat-message.user {
  105 + background: #1890ff;
  106 + color: white;
  107 + align-self: flex-end;
  108 + }
  109 +
  110 + .chat-message.bot {
  111 + background: #f0f2f5;
  112 + color: #333;
  113 + align-self: flex-start;
  114 + }
  115 +
  116 + .chat-input {
  117 + display: flex;
  118 + gap: 8px;
  119 + }
  120 + </style>
  121 +</head>
  122 +
  123 +<body>
  124 + <div class="container">
  125 + <div>
  126 + <canvas id="unity-canvas" tabindex="-1" style="background: #231F20"></canvas>
  127 + <div class="input-container">
  128 + <input type="text" placeholder="输入要朗读的文字">
  129 + <button>朗读</button>
  130 + </div>
  131 + </div>
  132 + <!-- 新增聊天窗口结构 -->
  133 + <div class="chat-container">
  134 + <div class="chat-messages" id="chat-messages"></div>
  135 + <div class="chat-input">
  136 + <input type="text" id="chat-input" placeholder="输入聊天消息">
  137 + <button id="send-btn">发送</button>
  138 + </div>
  139 + </div>
  140 + </div>
  141 + <script src="assets/unity/build_web.loader.js"></script>
  142 + <script>
  143 + function initInput(canvas, config, progress) {
  144 + let inputField = document.querySelector('input');
  145 + let speakButton = document.querySelector('button');
  146 + speakButton.addEventListener('click', () => {
  147 + const text = inputField.value;
  148 + if (text) {
  149 + console.log('text', text);
  150 + window.unityInstance.SendMessage('UnityReceiverFromJs', 'ReceiveText', text);
  151 + inputField.value = '';
  152 + }
  153 + });
  154 + }
  155 +
  156 + // 聊天功能初始化函数
  157 + function initChat() {
  158 + const chatInput = document.querySelector('#chat-input');
  159 + const sendBtn = document.querySelector('#send-btn');
  160 + const chatMessages = document.querySelector('#chat-messages');
  161 + const fixedReplies = [
  162 + "你好呀!有什么可以帮你的吗?",
  163 + "今天天气不错呢~",
  164 + "我收到你的消息啦!",
  165 + "稍后我会仔细看看的~",
  166 + "最近我学习了很多新知识,比如如何识别不同的天气模式,你想了解一下吗?",
  167 + "用户的需求是我们最关注的,如果你有任何建议或问题,都可以随时告诉我,我会尽力帮你解决的~",
  168 + "今天看到一个有趣的故事,说的是一只小松鼠如何在冬天储存足够的坚果,你想听我详细讲讲吗?"
  169 + ];
  170 +
  171 + function addMessage(text, isUser) {
  172 + const messageDiv = document.createElement('div');
  173 + messageDiv.className = `chat-message ${isUser ? 'user' : 'bot'}`;
  174 + messageDiv.textContent = text;
  175 + chatMessages.appendChild(messageDiv);
  176 + chatMessages.scrollTop = chatMessages.scrollHeight;
  177 + }
  178 +
  179 + sendBtn.addEventListener('click', () => {
  180 + const text = chatInput.value.trim();
  181 + if (text) {
  182 + addMessage(text, true);
  183 + chatInput.value = '';
  184 + // 模拟1秒后回复固定消息(新增语音调用)
  185 + setTimeout(() => {
  186 + const randomIndex = Math.floor(Math.random() * fixedReplies.length);
  187 + const botText = fixedReplies[randomIndex];
  188 + addMessage(botText, false);
  189 + // 调用Unity语音朗读能力
  190 + window.unityInstance.SendMessage('UnityReceiverFromJs', 'ReceiveText', botText);
  191 + }, 1000);
  192 + }
  193 + });
  194 +
  195 + // 支持回车键发送
  196 + chatInput.addEventListener('keypress', (e) => {
  197 + if (e.key === 'Enter') sendBtn.click();
  198 + });
  199 + }
  200 +
  201 + async function initializeUnity() {
  202 + window.unityInstance = await createUnityInstance(document.querySelector("#unity-canvas"), {
  203 + dataUrl: "assets/unity/build_web.data",
  204 + frameworkUrl: "assets/unity/build_web.framework.js",
  205 + codeUrl: "assets/unity/build_web.wasm",
  206 + streamingAssetsUrl: "StreamingAssets",
  207 + companyName: "DefaultCompany",
  208 + productName: "DianWang_HDRP",
  209 + productVersion: "0.1",
  210 + });
  211 + }
  212 + initializeUnity();
  213 + initInput();
  214 + initChat();
  215 + </script>
  216 +</body>
  217 +
  218 +</html>
  1 +<!DOCTYPE html>
  2 +<html lang="en-us">
  3 +
  4 +<head>
  5 + <meta charset="utf-8">
  6 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  7 + <title>自助报警系统</title>
  8 + <style>
  9 + body {
  10 + margin: 0;
  11 + padding: 0;
  12 + background-image: url('assets/image/bg.png');
  13 + background-size: cover;
  14 + background-position: center;
  15 + background-repeat: no-repeat;
  16 + min-height: 100vh;
  17 + display: flex;
  18 + justify-content: center;
  19 + align-items: center;
  20 + }
  21 +
  22 + .content-wrapper {
  23 + display: flex;
  24 + align-items: center;
  25 + gap: 40px;
  26 + position: relative;
  27 + }
  28 +
  29 + .container {
  30 + background-color: rgba(255, 255, 255, 0.85);
  31 + padding: 30px;
  32 + border-radius: 15px;
  33 + width: 500px;
  34 + height: 400px;
  35 + text-align: center;
  36 + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  37 + display: flex;
  38 + flex-direction: column;
  39 + justify-content: center;
  40 + align-items: center;
  41 + }
  42 +
  43 + .image-container {
  44 + width: 320px;
  45 + height: 672px;
  46 + border-radius: 15px;
  47 + overflow: hidden;
  48 + position: absolute;
  49 + left: -320px;
  50 + top: 50%;
  51 + transform: translateY(-50%);
  52 + }
  53 +
  54 + .image-container img {
  55 + width: 100%;
  56 + }
  57 +
  58 + h1 {
  59 + color: #2175df;
  60 + margin-bottom: 30px;
  61 + font-size: 48px;
  62 + }
  63 +
  64 + .alarm-btn {
  65 + background-color: #2175df;
  66 + color: white;
  67 + border: none;
  68 + padding: 25px 30px;
  69 + font-size: 32px;
  70 + cursor: pointer;
  71 + margin-top: 20px;
  72 + transition: all 0.3s;
  73 + }
  74 +
  75 + .alarm-btn:hover {
  76 + transform: scale(1.05);
  77 + }
  78 + </style>
  79 +</head>
  80 +
  81 +<body>
  82 + <div class="content-wrapper">
  83 + <div class="container">
  84 + <h1>自助报警系统</h1>
  85 + <button class="alarm-btn" onclick="window.location.href='chat.html'">我要报案</button>
  86 + <div class="image-container">
  87 + <img src="assets/image/output.webp" alt="示例图片">
  88 + </div>
  89 + </div>
  90 + </div>
  91 +</body>
  92 +
  93 +</html>