byt-lingxiao-ai 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ChatWindow.vue +247 -42
- package/components/assets/arrow.png +0 -0
- package/components/assets/logo.png +0 -0
- package/components/assets/think.png +0 -0
- package/dist/demo.html +1 -0
- package/dist/index.common.js +9 -12
- package/dist/index.common.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.umd.js +9 -12
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["index"]=e():t["index"]=e()})("undefined"!==typeof self?self:this,function(){return function(){"use strict";var t={34:function(t,e,n){var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},81:function(t,e,n){var r=n(9565),o=n(9306),i=n(8551),a=n(6823),s=n(851),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(o(n))return i(r(n,t));throw new c(a(t)+" is not iterable")}},283:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),a=n(9297),s=n(3724),c=n(350).CONFIGURABLE,u=n(3706),f=n(1181),p=f.enforce,l=f.get,h=String,d=Object.defineProperty,y=r("".slice),v=r("".replace),g=r([].join),w=s&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),m=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===y(h(e),0,7)&&(e="["+v(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),w&&n&&a(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=p(t);return a(r,"source")||(r.source=g(m,"string"==typeof e?e:"")),t};Function.prototype.toString=b(function(){return i(this)&&l(this).source||u(this)},"toString")},350:function(t,e,n){var r=n(3724),o=n(9297),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},397:function(t,e,n){var r=n(7751);t.exports=r("document","documentElement")},421:function(t){t.exports={}},507:function(t,e,n){var r=n(9565);t.exports=function(t,e,n){var o,i,a=n?t:t.iterator,s=t.next;while(!(o=r(s,a)).done)if(i=e(o.value),void 0!==i)return i}},616:function(t,e,n){var r=n(9039);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},679:function(t,e,n){var r=n(1625),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},757:function(t,e,n){var r=n(7751),o=n(4901),i=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},851:function(t,e,n){var r=n(6955),o=n(5966),i=n(4117),a=n(6269),s=n(8227),c=s("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||a[r(t)]}},1072:function(t,e,n){var r=n(1828),o=n(8727);t.exports=Object.keys||function(t){return r(t,o)}},1108:function(t,e,n){var r=n(6955);t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},1181:function(t,e,n){var r,o,i,a=n(8622),s=n(4576),c=n(34),u=n(6699),f=n(9297),p=n(7629),l=n(6119),h=n(421),d="Object already initialized",y=s.TypeError,v=s.WeakMap,g=function(t){return i(t)?o(t):r(t,{})},w=function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw new y("Incompatible receiver, "+t+" required");return n}};if(a||p.state){var m=p.state||(p.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw new y(d);return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var b=l("state");h[b]=!0,r=function(t,e){if(f(t,b))throw new y(d);return e.facade=t,u(t,b,e),e},o=function(t){return f(t,b)?t[b]:{}},i=function(t){return f(t,b)}}t.exports={set:r,get:o,has:i,enforce:g,getterFor:w}},1291:function(t,e,n){var r=n(741);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},1548:function(t,e,n){var r=n(4576),o=n(9039),i=n(9519),a=n(4215),s=r.structuredClone;t.exports=!!s&&!o(function(){if("DENO"===a&&i>92||"NODE"===a&&i>94||"BROWSER"===a&&i>97)return!1;var t=new ArrayBuffer(8),e=s(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength})},1625:function(t,e,n){var r=n(9504);t.exports=r({}.isPrototypeOf)},1698:function(t,e,n){var r=n(6518),o=n(4204),i=n(9835),a=n(4916),s=!a("union")||!i("union");r({target:"Set",proto:!0,real:!0,forced:s},{union:o})},1767:function(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1828:function(t,e,n){var r=n(9504),o=n(9297),i=n(5397),a=n(9617).indexOf,s=n(421),c=r([].push);t.exports=function(t,e){var n,r=i(t),u=0,f=[];for(n in r)!o(s,n)&&o(r,n)&&c(f,n);while(e.length>u)o(r,n=e[u++])&&(~a(f,n)||c(f,n));return f}},2106:function(t,e,n){var r=n(283),o=n(4913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}},2140:function(t,e,n){var r=n(8227),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},2195:function(t,e,n){var r=n(9504),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},2211:function(t,e,n){var r=n(9039);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2360:function(t,e,n){var r,o=n(8551),i=n(6801),a=n(8727),s=n(421),c=n(397),u=n(4055),f=n(6119),p=">",l="<",h="prototype",d="script",y=f("IE_PROTO"),v=function(){},g=function(t){return l+d+p+t+l+"/"+d+p},w=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){var t,e=u("iframe"),n="java"+d+":";return e.style.display="none",c.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&r?w(r):m():w(r);var t=a.length;while(t--)delete b[h][a[t]];return b()};s[y]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[h]=o(t),n=new v,v[h]=null,n[y]=t):n=b(),void 0===e?n:i.f(n,e)}},2475:function(t,e,n){var r=n(6518),o=n(8527),i=n(4916),a=!i("isSupersetOf",function(t){return!t});r({target:"Set",proto:!0,real:!0,forced:a},{isSupersetOf:o})},2652:function(t,e,n){var r=n(6080),o=n(9565),i=n(8551),a=n(6823),s=n(4209),c=n(6198),u=n(1625),f=n(81),p=n(851),l=n(9539),h=TypeError,d=function(t,e){this.stopped=t,this.result=e},y=d.prototype;t.exports=function(t,e,n){var v,g,w,m,b,x,S,C=n&&n.that,O=!(!n||!n.AS_ENTRIES),A=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),j=r(e,C),_=function(t){return v&&l(v,"normal"),new d(!0,t)},P=function(t){return O?(i(t),E?j(t[0],t[1],_):j(t[0],t[1])):E?j(t,_):j(t)};if(A)v=t.iterator;else if(T)v=t;else{if(g=p(t),!g)throw new h(a(t)+" is not iterable");if(s(g)){for(w=0,m=c(t);m>w;w++)if(b=P(t[w]),b&&u(y,b))return b;return new d(!1)}v=f(t,g)}x=A?t.next:v.next;while(!(S=o(x,v)).done){try{b=P(S.value)}catch(I){l(v,"throw",I)}if("object"==typeof b&&b&&u(y,b))return b}return new d(!1)}},2777:function(t,e,n){var r=n(9565),o=n(34),i=n(757),a=n(5966),s=n(4270),c=n(8227),u=TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,c=a(t,f);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!o(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},2787:function(t,e,n){var r=n(9297),o=n(4901),i=n(8981),a=n(6119),s=n(2211),c=a("IE_PROTO"),u=Object,f=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=i(t);if(r(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof u?f:null}},2796:function(t,e,n){var r=n(9039),o=n(4901),i=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n===f||n!==u&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},2839:function(t,e,n){var r=n(4576),o=r.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},2967:function(t,e,n){var r=n(6706),o=n(34),i=n(7750),a=n(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(s){}return function(n,r){return i(n),a(r),o(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},3238:function(t,e,n){var r=n(4576),o=n(7811),i=n(7394),a=r.DataView;t.exports=function(t){if(!o||0!==i(t))return!1;try{return new a(t),!1}catch(e){return!0}}},3392:function(t,e,n){var r=n(9504),o=0,i=Math.random(),a=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},3440:function(t,e,n){var r=n(7080),o=n(4402),i=n(9286),a=n(5170),s=n(3789),c=n(8469),u=n(507),f=o.has,p=o.remove;t.exports=function(t){var e=r(this),n=s(t),o=i(e);return a(e)<=n.size?c(e,function(t){n.includes(t)&&p(o,t)}):u(n.getIterator(),function(t){f(o,t)&&p(o,t)}),o}},3506:function(t,e,n){var r=n(3925),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},3650:function(t,e,n){var r=n(7080),o=n(4402),i=n(9286),a=n(3789),s=n(507),c=o.add,u=o.has,f=o.remove;t.exports=function(t){var e=r(this),n=a(t).getIterator(),o=i(e);return s(n,function(t){u(e,t)?f(o,t):c(o,t)}),o}},3706:function(t,e,n){var r=n(9504),o=n(4901),i=n(7629),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},3717:function(t,e){e.f=Object.getOwnPropertySymbols},3724:function(t,e,n){var r=n(9039);t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3789:function(t,e,n){var r=n(9306),o=n(8551),i=n(9565),a=n(1291),s=n(1767),c="Invalid size",u=RangeError,f=TypeError,p=Math.max,l=function(t,e){this.set=t,this.size=p(e,0),this.has=r(t.has),this.keys=r(t.keys)};l.prototype={getIterator:function(){return s(o(i(this.keys,this.set)))},includes:function(t){return i(this.has,this.set,t)}},t.exports=function(t){o(t);var e=+t.size;if(e!==e)throw new f(c);var n=a(e);if(n<0)throw new u(c);return new l(t,n)}},3838:function(t,e,n){var r=n(7080),o=n(5170),i=n(8469),a=n(3789);t.exports=function(t){var e=r(this),n=a(t);return!(o(e)>n.size)&&!1!==i(e,function(t){if(!n.includes(t))return!1},!0)}},3853:function(t,e,n){var r=n(6518),o=n(4449),i=n(4916),a=!i("isDisjointFrom",function(t){return!t});r({target:"Set",proto:!0,real:!0,forced:a},{isDisjointFrom:o})},3925:function(t,e,n){var r=n(34);t.exports=function(t){return r(t)||null===t}},4055:function(t,e,n){var r=n(4576),o=n(34),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},4114:function(t,e,n){var r=n(6518),o=n(8981),i=n(6198),a=n(4527),s=n(6837),c=n(9039),u=c(function(){return 4294967297!==[].push.call({length:4294967296},1)}),f=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},p=u||!f();r({target:"Array",proto:!0,arity:1,forced:p},{push:function(t){var e=o(this),n=i(e),r=arguments.length;s(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return a(e,n),n}})},4117:function(t){t.exports=function(t){return null===t||void 0===t}},4204:function(t,e,n){var r=n(7080),o=n(4402).add,i=n(9286),a=n(3789),s=n(507);t.exports=function(t){var e=r(this),n=a(t).getIterator(),c=i(e);return s(n,function(t){o(c,t)}),c}},4209:function(t,e,n){var r=n(8227),o=n(6269),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},4215:function(t,e,n){var r=n(4576),o=n(2839),i=n(2195),a=function(t){return o.slice(0,t.length)===t};t.exports=function(){return a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},4270:function(t,e,n){var r=n(9565),o=n(4901),i=n(34),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},4376:function(t,e,n){var r=n(2195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4402:function(t,e,n){var r=n(9504),o=Set.prototype;t.exports={Set:Set,add:r(o.add),has:r(o.has),remove:r(o["delete"]),proto:o}},4449:function(t,e,n){var r=n(7080),o=n(4402).has,i=n(5170),a=n(3789),s=n(8469),c=n(507),u=n(9539);t.exports=function(t){var e=r(this),n=a(t);if(i(e)<=n.size)return!1!==s(e,function(t){if(n.includes(t))return!1},!0);var f=n.getIterator();return!1!==c(f,function(t){if(o(e,t))return u(f,"normal",!1)})}},4483:function(t,e,n){var r,o,i,a,s=n(4576),c=n(9429),u=n(1548),f=s.structuredClone,p=s.ArrayBuffer,l=s.MessageChannel,h=!1;if(u)h=function(t){f(t,{transfer:[t]})};else if(p)try{l||(r=c("worker_threads"),r&&(l=r.MessageChannel)),l&&(o=new l,i=new p(2),a=function(t){o.port1.postMessage(null,[t])},2===i.byteLength&&(a(i),0===i.byteLength&&(h=a)))}catch(d){}t.exports=h},4495:function(t,e,n){var r=n(9519),o=n(9039),i=n(4576),a=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},4527:function(t,e,n){var r=n(3724),o=n(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4549:function(t,e,n){var r=n(4576);t.exports=function(t,e){var n=r.Iterator,o=n&&n.prototype,i=o&&o[t],a=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(s){s instanceof e||(a=!1)}if(!a)return i}},4576:function(t,e,n){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4644:function(t,e,n){var r,o,i,a=n(7811),s=n(3724),c=n(4576),u=n(4901),f=n(34),p=n(9297),l=n(6955),h=n(6823),d=n(6699),y=n(6840),v=n(2106),g=n(1625),w=n(2787),m=n(2967),b=n(8227),x=n(3392),S=n(1181),C=S.enforce,O=S.get,A=c.Int8Array,T=A&&A.prototype,E=c.Uint8ClampedArray,j=E&&E.prototype,_=A&&w(A),P=T&&w(T),I=Object.prototype,R=c.TypeError,B=b("toStringTag"),k=x("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",L=a&&!!m&&"Opera"!==l(c.opera),D=!1,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},$=function(t){if(!f(t))return!1;var e=l(t);return"DataView"===e||p(z,e)||p(F,e)},N=function(t){var e=w(t);if(f(e)){var n=O(e);return n&&p(n,M)?n[M]:N(e)}},W=function(t){if(!f(t))return!1;var e=l(t);return p(z,e)||p(F,e)},U=function(t){if(W(t))return t;throw new R("Target is not a typed array")},V=function(t){if(u(t)&&(!m||g(_,t)))return t;throw new R(h(t)+" is not a typed array constructor")},Y=function(t,e,n,r){if(s){if(n)for(var o in z){var i=c[o];if(i&&p(i.prototype,t))try{delete i.prototype[t]}catch(a){try{i.prototype[t]=e}catch(u){}}}P[t]&&!n||y(P,t,n?e:L&&T[t]||e,r)}},G=function(t,e,n){var r,o;if(s){if(m){if(n)for(r in z)if(o=c[r],o&&p(o,t))try{delete o[t]}catch(i){}if(_[t]&&!n)return;try{return y(_,t,n?e:L&&_[t]||e)}catch(i){}}for(r in z)o=c[r],!o||o[t]&&!n||y(o,t,e)}};for(r in z)o=c[r],i=o&&o.prototype,i?C(i)[M]=o:L=!1;for(r in F)o=c[r],i=o&&o.prototype,i&&(C(i)[M]=o);if((!L||!u(_)||_===Function.prototype)&&(_=function(){throw new R("Incorrect invocation")},L))for(r in z)c[r]&&m(c[r],_);if((!L||!P||P===I)&&(P=_.prototype,L))for(r in z)c[r]&&m(c[r].prototype,P);if(L&&w(j)!==P&&m(j,P),s&&!p(P,B))for(r in D=!0,v(P,B,{configurable:!0,get:function(){return f(this)?this[k]:void 0}}),z)c[r]&&d(c[r],k,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:D&&k,aTypedArray:U,aTypedArrayConstructor:V,exportTypedArrayMethod:Y,exportTypedArrayStaticMethod:G,getTypedArrayConstructor:N,isView:$,isTypedArray:W,TypedArray:_,TypedArrayPrototype:P}},4659:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=function(t,e,n){r?o.f(t,e,i(0,n)):t[e]=n}},4901:function(t){var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},4913:function(t,e,n){var r=n(3724),o=n(5917),i=n(8686),a=n(8551),s=n(6969),c=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",h="writable";e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var r=f(t,e);r&&r[h]&&(t[e]=n.value,n={configurable:l in n?n[l]:r[l],enumerable:p in n?n[p]:r[p],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},4916:function(t,e,n){var r=n(7751),o=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(t){return{size:t,has:function(){return!0},keys:function(){throw new Error("e")}}};t.exports=function(t,e){var n=r("Set");try{(new n)[t](o(0));try{return(new n)[t](o(-1)),!1}catch(s){if(!e)return!0;try{return(new n)[t](i(-1/0)),!1}catch(c){var a=new n;return a.add(1),a.add(2),e(a[t](i(1/0)))}}}catch(c){return!1}}},5024:function(t,e,n){var r=n(6518),o=n(3650),i=n(9835),a=n(4916),s=!a("symmetricDifference")||!i("symmetricDifference");r({target:"Set",proto:!0,real:!0,forced:s},{symmetricDifference:o})},5031:function(t,e,n){var r=n(7751),o=n(9504),i=n(8480),a=n(3717),s=n(8551),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?c(e,n(t)):e}},5169:function(t,e,n){var r=n(3238),o=TypeError;t.exports=function(t){if(r(t))throw new o("ArrayBuffer is detached");return t}},5170:function(t,e,n){var r=n(6706),o=n(4402);t.exports=r(o.proto,"size","get")||function(t){return t.size}},5397:function(t,e,n){var r=n(7055),o=n(7750);t.exports=function(t){return r(o(t))}},5610:function(t,e,n){var r=n(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5636:function(t,e,n){var r=n(4576),o=n(9504),i=n(6706),a=n(7696),s=n(5169),c=n(7394),u=n(4483),f=n(1548),p=r.structuredClone,l=r.ArrayBuffer,h=r.DataView,d=Math.min,y=l.prototype,v=h.prototype,g=o(y.slice),w=i(y,"resizable","get"),m=i(y,"maxByteLength","get"),b=o(v.getInt8),x=o(v.setInt8);t.exports=(f||u)&&function(t,e,n){var r,o=c(t),i=void 0===e?o:a(e),y=!w||!w(t);if(s(t),f&&(t=p(t,{transfer:[t]}),o===i&&(n||y)))return t;if(o>=i&&(!n||y))r=g(t,0,i);else{var v=n&&!y&&m?{maxByteLength:m(t)}:void 0;r=new l(i,v);for(var S=new h(t),C=new h(r),O=d(i,o),A=0;A<O;A++)x(C,A,b(S,A))}return f||u(t),r}},5745:function(t,e,n){var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},5854:function(t,e,n){var r=n(2777),o=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new o("Can't convert number to bigint");return BigInt(e)}},5876:function(t,e,n){var r=n(6518),o=n(3838),i=n(4916),a=!i("isSubsetOf",function(t){return t});r({target:"Set",proto:!0,real:!0,forced:a},{isSubsetOf:o})},5917:function(t,e,n){var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},5966:function(t,e,n){var r=n(9306),o=n(4117);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},6080:function(t,e,n){var r=n(7476),o=n(9306),i=n(616),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},6119:function(t,e,n){var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},6193:function(t,e,n){var r=n(4215);t.exports="NODE"===r},6198:function(t,e,n){var r=n(8014);t.exports=function(t){return r(t.length)}},6269:function(t){t.exports={}},6395:function(t){t.exports=!1},6518:function(t,e,n){var r=n(4576),o=n(7347).f,i=n(6699),a=n(6840),s=n(9433),c=n(7740),u=n(2796);t.exports=function(t,e){var n,f,p,l,h,d,y=t.target,v=t.global,g=t.stat;if(f=v?r:g?r[y]||s(y,{}):r[y]&&r[y].prototype,f)for(p in e){if(h=e[p],t.dontCallGetSet?(d=o(f,p),l=d&&d.value):l=f[p],n=u(v?p:y+(g?".":"#")+p,t.forced),!n&&void 0!==l){if(typeof h==typeof l)continue;c(h,l)}(t.sham||l&&l.sham)&&i(h,"sham",!0),a(f,p,h,t)}}},6573:function(t,e,n){var r=n(3724),o=n(2106),i=n(3238),a=ArrayBuffer.prototype;r&&!("detached"in a)&&o(a,"detached",{configurable:!0,get:function(){return i(this)}})},6699:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6706:function(t,e,n){var r=n(9504),o=n(9306);t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(i){}}},6801:function(t,e,n){var r=n(3724),o=n(8686),i=n(4913),a=n(8551),s=n(5397),c=n(1072);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);var n,r=s(e),o=c(e),u=o.length,f=0;while(u>f)i.f(t,n=o[f++],r[n]);return t}},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},6837:function(t){var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},6840:function(t,e,n){var r=n(4901),o=n(4913),i=n(283),a=n(9433);t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&i(n,u,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(f){}c?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},6955:function(t,e,n){var r=n(2140),o=n(4901),i=n(2195),a=n(8227),s=a("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}()),f=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=f(e=c(t),s))?n:u?i(e):"Object"===(r=i(e))&&o(e.callee)?"Arguments":r}},6969:function(t,e,n){var r=n(2777),o=n(757);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},6980:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7040:function(t,e,n){var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:function(t,e,n){var r=n(9504),o=n(9039),i=n(2195),a=Object,s=r("".split);t.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?s(t,""):a(t)}:a},7080:function(t,e,n){var r=n(4402).has;t.exports=function(t){return r(t),t}},7347:function(t,e,n){var r=n(3724),o=n(9565),i=n(8773),a=n(6980),s=n(5397),c=n(6969),u=n(9297),f=n(5917),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=s(t),e=c(e),f)try{return p(t,e)}catch(n){}if(u(t,e))return a(!o(i.f,t,e),t[e])}},7394:function(t,e,n){var r=n(4576),o=n(6706),i=n(2195),a=r.ArrayBuffer,s=r.TypeError;t.exports=a&&o(a.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==i(t))throw new s("ArrayBuffer expected");return t.byteLength}},7476:function(t,e,n){var r=n(2195),o=n(9504);t.exports=function(t){if("Function"===r(t))return o(t)}},7588:function(t,e,n){var r=n(6518),o=n(9565),i=n(2652),a=n(9306),s=n(8551),c=n(1767),u=n(9539),f=n(4549),p=f("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:p},{forEach:function(t){s(this);try{a(t)}catch(r){u(this,"throw",r)}if(p)return o(p,this,t);var e=c(this),n=0;i(e,function(e){t(e,n++)},{IS_RECORD:!0})}})},7629:function(t,e,n){var r=n(6395),o=n(4576),i=n(9433),a="__core-js_shared__",s=t.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.46.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7642:function(t,e,n){var r=n(6518),o=n(3440),i=n(9039),a=n(4916),s=!a("difference",function(t){return 0===t.size}),c=s||i(function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var n=t++>1;return e.has(1)&&e.clear(),{done:n,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size});r({target:"Set",proto:!0,real:!0,forced:c},{difference:o})},7657:function(t,e,n){var r,o,i,a=n(9039),s=n(4901),c=n(34),u=n(2360),f=n(2787),p=n(6840),l=n(8227),h=n(6395),d=l("iterator"),y=!1;[].keys&&(i=[].keys(),"next"in i?(o=f(f(i)),o!==Object.prototype&&(r=o)):y=!0);var v=!c(r)||a(function(){var t={};return r[d].call(t)!==t});v?r={}:h&&(r=u(r)),s(r[d])||p(r,d,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}},7696:function(t,e,n){var r=n(1291),o=n(8014),i=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw new i("Wrong length or index");return n}},7740:function(t,e,n){var r=n(9297),o=n(5031),i=n(7347),a=n(4913);t.exports=function(t,e,n){for(var s=o(e),c=a.f,u=i.f,f=0;f<s.length;f++){var p=s[f];r(t,p)||n&&r(n,p)||c(t,p,u(e,p))}}},7750:function(t,e,n){var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},7751:function(t,e,n){var r=n(4576),o=n(4901),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},7811:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7936:function(t,e,n){var r=n(6518),o=n(5636);o&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},8004:function(t,e,n){var r=n(6518),o=n(9039),i=n(8750),a=n(4916),s=!a("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2)})||o(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))});r({target:"Set",proto:!0,real:!0,forced:s},{intersection:i})},8014:function(t,e,n){var r=n(1291),o=Math.min;t.exports=function(t){var e=r(t);return e>0?o(e,9007199254740991):0}},8100:function(t,e,n){var r=n(6518),o=n(5636);o&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},8111:function(t,e,n){var r=n(6518),o=n(4576),i=n(679),a=n(8551),s=n(4901),c=n(2787),u=n(2106),f=n(4659),p=n(9039),l=n(9297),h=n(8227),d=n(7657).IteratorPrototype,y=n(3724),v=n(6395),g="constructor",w="Iterator",m=h("toStringTag"),b=TypeError,x=o[w],S=v||!s(x)||x.prototype!==d||!p(function(){x({})}),C=function(){if(i(this,d),c(this)===d)throw new b("Abstract class Iterator not directly constructable")},O=function(t,e){y?u(d,t,{configurable:!0,get:function(){return e},set:function(e){if(a(this),this===d)throw new b("You can't redefine this property");l(this,t)?this[t]=e:f(this,t,e)}}):d[t]=e};l(d,m)||O(m,w),!S&&l(d,g)&&d[g]!==Object||O(g,C),C.prototype=d,r({global:!0,constructor:!0,forced:S},{Iterator:C})},8227:function(t,e,n){var r=n(4576),o=n(5745),i=n(9297),a=n(3392),s=n(4495),c=n(7040),u=r.Symbol,f=o("wks"),p=c?u["for"]||u:u&&u.withoutSetter||a;t.exports=function(t){return i(f,t)||(f[t]=s&&i(u,t)?u[t]:p("Symbol."+t)),f[t]}},8469:function(t,e,n){var r=n(9504),o=n(507),i=n(4402),a=i.Set,s=i.proto,c=r(s.forEach),u=r(s.keys),f=u(new a).next;t.exports=function(t,e,n){return n?o({iterator:u(t),next:f},e):c(t,e)}},8480:function(t,e,n){var r=n(1828),o=n(8727),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},8527:function(t,e,n){var r=n(7080),o=n(4402).has,i=n(5170),a=n(3789),s=n(507),c=n(9539);t.exports=function(t){var e=r(this),n=a(t);if(i(e)<n.size)return!1;var u=n.getIterator();return!1!==s(u,function(t){if(!o(e,t))return c(u,"normal",!1)})}},8551:function(t,e,n){var r=n(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},8622:function(t,e,n){var r=n(4576),o=n(4901),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8686:function(t,e,n){var r=n(3724),o=n(9039);t.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8750:function(t,e,n){var r=n(7080),o=n(4402),i=n(5170),a=n(3789),s=n(8469),c=n(507),u=o.Set,f=o.add,p=o.has;t.exports=function(t){var e=r(this),n=a(t),o=new u;return i(e)>n.size?c(n.getIterator(),function(t){p(e,t)&&f(o,t)}):s(e,function(t){n.includes(t)&&f(o,t)}),o}},8773:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},8981:function(t,e,n){var r=n(7750),o=Object;t.exports=function(t){return o(r(t))}},9039:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},9286:function(t,e,n){var r=n(4402),o=n(8469),i=r.Set,a=r.add;t.exports=function(t){var e=new i;return o(t,function(t){a(e,t)}),e}},9297:function(t,e,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},9306:function(t,e,n){var r=n(4901),o=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},9429:function(t,e,n){var r=n(4576),o=n(6193);t.exports=function(t){if(o){try{return r.process.getBuiltinModule(t)}catch(e){}try{return Function('return require("'+t+'")')()}catch(e){}}}},9433:function(t,e,n){var r=n(4576),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9504:function(t,e,n){var r=n(616),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}}},9519:function(t,e,n){var r,o,i=n(4576),a=n(2839),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,f=u&&u.v8;f&&(r=f.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},9539:function(t,e,n){var r=n(9565),o=n(8551),i=n(5966);t.exports=function(t,e,n){var a,s;o(t);try{if(a=i(t,"return"),!a){if("throw"===e)throw n;return n}a=r(a,t)}catch(c){s=!0,a=c}if("throw"===e)throw n;if(s)throw a;return o(a),n}},9565:function(t,e,n){var r=n(616),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},9577:function(t,e,n){var r=n(9928),o=n(4644),i=n(1108),a=n(1291),s=n(5854),c=o.aTypedArray,u=o.getTypedArrayConstructor,f=o.exportTypedArrayMethod,p=function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}(),l=p&&function(){try{new Int8Array(1)["with"](-.5,1)}catch(t){return!0}}();f("with",{with:function(t,e){var n=c(this),o=a(t),f=i(n)?s(e):+e;return r(n,u(n),o,f)}}["with"],!p||l)},9617:function(t,e,n){var r=n(5397),o=n(5610),i=n(6198),a=function(t){return function(e,n,a){var s=r(e),c=i(s);if(0===c)return!t&&-1;var u,f=o(a,c);if(t&&n!==n){while(c>f)if(u=s[f++],u!==u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9835:function(t){t.exports=function(t){try{var e=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},r=e[t](n);return 1===r.size&&4===r.values().next().value}catch(o){return!1}}},9928:function(t,e,n){var r=n(6198),o=n(1291),i=RangeError;t.exports=function(t,e,n,a){var s=r(t),c=o(n),u=c<0?s+c:c;if(u>=s||u<0)throw new i("Incorrect index");for(var f=new e(s),p=0;p<s;p++)f[p]=p===u?a:t[p];return f}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}!function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p=""}();var r={};if(n.r(r),n.d(r,{ChatWindow:function(){return d},default:function(){return w}}),"undefined"!==typeof window){var o=window.document.currentScript,i=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n(8111),n(7588);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"chat"},[e("audio",{ref:"audioPlayer",staticClass:"hidden-audio",on:{timeupdate:t.onTimeUpdate,ended:t.onAudioEnded}},[e("source",{attrs:{src:t.audioSrc,type:"audio/mpeg"}}),t._v(" 您的浏览器不支持音频元素。 ")]),"leaving"!==t.robotStatus?e("div",{class:["chat-robot",t.robotStatus]}):e("div",{staticClass:"chat-ai",on:{click:t.toggleWindow}},[e("div",{staticClass:"chat-ai-avater"}),e("div",{staticClass:"chat-ai-text"},[t._v("凌霄AI")])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"chat-overlay",on:{click:t.handleOverlayClick}},[e("div",{staticClass:"chat-window",on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"chat-window-header"},[e("div",{staticClass:"chat-window-header-title"},[t._v("凌霄大模型AI对话")]),e("div",{staticClass:"chat-window-header-close",on:{click:function(e){t.visible=!1}}},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[e("path",{attrs:{d:"M5.50002 5.5L18.5 18.5",stroke:"#4E5969","stroke-width":"1.89404","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M5.50002 18.5L18.5 5.5",stroke:"#4E5969","stroke-width":"1.89404","stroke-linecap":"round","stroke-linejoin":"round"}})])])]),e("div",{ref:"chatArea",staticClass:"chat-window-content scrollbar-hide"},t._l(t.messages,function(n){return e("div",{key:n.id,staticClass:"chat-window-message"},["user"===n.type?e("div",{staticClass:"chat-window-message-user"},[e("div",{staticClass:"user-message"},[t._v(t._s(n.content))])]):e("div",{staticClass:"chat-window-message-ai"},[e("div",{staticClass:"ai-message"},[t._v(t._s(n.content))])])])}),0),e("div",{staticClass:"chat-window-footer"},[e("div",{staticClass:"chat-window-textarea"},[e("el-input",{staticClass:"chat-window-input",attrs:{type:"textarea",placeholder:"有什么我能帮您的吗?",rows:"2",resize:"none"},on:{keydown:t.handleKeyDown},model:{value:t.inputMessage,callback:function(e){t.inputMessage=e},expression:"inputMessage"}}),e("div",{staticClass:"chat-window-bar"},[e("div",{staticClass:"chat-window-send",on:{click:t.handleSend}},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"}},[e("g",{attrs:{"clip-path":"url(#clip0_640_2107)"}},[e("path",{attrs:{d:"M18.6427 2.37822C19.3253 2.47432 19.8025 3.10738 19.7065 3.79002C19.6871 3.97072 19.5381 4.41327 19.5403 4.41161L14.9673 17.8079L14.9632 17.8093C14.7858 18.3838 14.212 18.7607 13.5971 18.6744C13.4173 18.6492 13.2504 18.5862 13.1055 18.4949L13.0973 18.4977L9.83449 16.3686C9.58371 16.2584 9.4276 15.9939 9.46729 15.7115C9.5154 15.3691 9.83278 15.1317 10.1751 15.1798C10.293 15.1964 10.3988 15.2448 10.4853 15.3161L13.4054 17.2314L13.4073 17.2317C13.4452 17.2566 13.4882 17.2746 13.5364 17.2814C13.6911 17.3029 13.8371 17.2052 13.8793 17.0593L18.0469 4.89796L8.27396 14.3367L7.77435 17.8916C7.72706 18.2281 7.41369 18.464 7.07727 18.4169C6.74073 18.3696 6.50469 18.0564 6.55198 17.7198L7.07633 13.9889C7.08231 13.9464 7.09382 13.9066 7.10727 13.867C7.13549 13.7645 7.19079 13.6657 7.27291 13.5866L17.0754 4.12041L2.68514 8.17767L2.68487 8.1796C2.58481 8.21873 2.50686 8.31058 2.49042 8.42643C2.47412 8.5424 2.52417 8.65007 2.6093 8.71729L2.60903 8.71922L3.28261 9.16101L3.28013 9.16461C3.47505 9.29254 3.58819 9.52563 3.55386 9.77111C3.50575 10.1134 3.18836 10.3509 2.84602 10.3028C2.75512 10.29 2.6708 10.2584 2.59833 10.2127L2.59806 10.2147L1.37843 9.42001L1.37951 9.41227C1.02215 9.14901 0.816644 8.70195 0.882687 8.23203C0.951867 7.74096 1.29791 7.35545 1.73968 7.21445L1.73995 7.21251L17.7833 2.57104C18.0287 2.41036 18.3294 2.3342 18.6427 2.37822Z",fill:"#013378"}}),e("path",{attrs:{d:"M3.1309 10.9936C3.2178 10.5684 3.82528 10.5684 3.91218 10.9936C4.10411 11.9326 4.83794 12.6664 5.77697 12.8584C6.20213 12.9453 6.20213 13.5527 5.77697 13.6397C4.83794 13.8316 4.10411 14.5654 3.91218 15.5044C3.82528 15.9296 3.2178 15.9296 3.1309 15.5044C2.93897 14.5654 2.20513 13.8316 1.26611 13.6397C0.840944 13.5527 0.840944 12.9453 1.26611 12.8584C2.20513 12.6664 2.93897 11.9326 3.1309 10.9936Z",fill:"#2B80F6"}}),e("path",{attrs:{d:"M6.20382 8.56242C6.25596 8.30732 6.62045 8.30732 6.67259 8.56242C6.78775 9.12583 7.22805 9.56613 7.79146 9.68129C8.04656 9.73343 8.04656 10.0979 7.79146 10.1501C7.22805 10.2652 6.78775 10.7055 6.67259 11.2689C6.62045 11.524 6.25596 11.524 6.20382 11.2689C6.08866 10.7055 5.64836 10.2652 5.08495 10.1501C4.82985 10.0979 4.82985 9.73343 5.08495 9.68129C5.64836 9.56613 6.08866 9.12583 6.20382 8.56242Z",fill:"#2B80F6"}})]),e("defs",[e("clipPath",{attrs:{id:"clip0_640_2107"}},[e("rect",{attrs:{width:"20",height:"20",fill:"white"}})])])])])])],1)])])])])},s=[];n(4114),n(6573),n(8100),n(7936),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(9577);const c=16e3,u=512;var f={name:"ChatWindow",props:{appendToBody:{type:Boolean,default:!0}},data(){return{audioSrc:"/minio/lingxiaoai/byt.mp3",inputMessage:"",visible:!1,messages:[{id:1,type:"user",sender:"",time:"",content:"你好,欢迎来到凌霄大模型AI对话。"},{id:2,type:"ai",sender:"AI",time:"",content:"欢迎来到凌霄大模型AI对话。"},{id:3,type:"ai",sender:"AI",time:"",content:"请输入您的问题。"},{id:4,type:"user",sender:"用户",time:"",content:"你好,欢迎来到凌霄大模型AI对话。"}],isRecording:!1,isMicAvailable:!1,mediaRecorder:null,ws:null,wsUrl:"ws://192.168.8.9:9999/ai_model/ws/voice-stream",isConnected:!1,audioContext:null,microphone:null,processor:null,robotStatus:"leaving",audioBuffer:new Float32Array(0)}},mounted(){this.initWebSocket(),this.appendToBody&&this.appendToBodyHandler()},unmounted(){this.closeWebSocket(),this.stopRecording()},beforeDestroy(){this.appendToBody&&this.$el.parentElement===document.body&&document.body.removeChild(this.$el),this.closeWebSocket(),this.stopRecording()},methods:{onAudioEnded(){this.robotStatus="leaving"},onTimeUpdate(){const t=this.$refs.audioPlayer,e=t.currentTime;this.jumpedTimePoints||(this.jumpedTimePoints=new Set);const n=[{time:30,url:"/permission/user",name:"permission_user",title:"用户管理"},{time:50,url:"/permission/menu",name:"permission_menu",title:"菜单管理"},{time:60,url:"/permission/role",name:"permission_role",title:"角色管理"},{time:70,url:"/permission/dept",name:"permission_dept",title:"部门管理"}];n.forEach(t=>{e>=t.time&&e<t.time+.5&&!this.jumpedTimePoints.has(t.time)&&(this.jumpedTimePoints.add(t.time),console.log(`到达时间点 ${t.time} 秒,跳转到 ${t.title}`),this.$appOptions.store.dispatch("tags/addTagview",{path:t.url,fullPath:t.url,label:t.title,name:t.title,meta:{title:t.title},query:{},params:{}}),this.$appOptions.router.push({path:t.url}))}),console.log("当前播放时间:",e)},play(){this.robotStatus="speaking",this.$refs.audioPlayer.play()},pause(){this.robotStatus="waiting",this.$refs.audioPlayer.pause()},stop(){this.robotStatus="leaving",this.$refs.audioPlayer.pause(),this.$refs.audioPlayer.currentTime=0},initWebSocket(){try{this.ws=new WebSocket(this.wsUrl),this.ws.binaryType="arraybuffer",this.ws.onopen=async()=>{console.log("连接成功"),this.isConnected=!0,this.initAudio()},this.ws.onmessage=t=>{try{if(console.log("收到原始消息:",t.data),t.data instanceof ArrayBuffer)return void console.log("收到二进制音频数据");const e=JSON.parse(t.data);console.log("解析后的数据:",e),"config"===e.type?console.log("配置信息:",e):0===e.code?"detection"===e.data.type?console.log("检测到唤醒词..."):"Collecting"===e.data.type?console.log("状态: 采集中..."):"command"===e.data.type?(console.log("状态: 处理中..."),this.analyzeAudioCommand(e.data.category)):console.log("状态: 其他..."):console.error("服务器返回错误:",e.msg)}catch(e){console.error("消息解析错误:",e)}},this.ws.onclose=()=>{console.log("连接关闭"),this.isConnected=!1,this.isRecording&&this.stopRecording(),setTimeout(()=>{console.log("尝试重新建立连接"),this.isConnected||this.initWebSocket()},3e3)}}catch(t){console.error("WebSocket连接失败:",t)}},closeWebSocket(){this.ws&&this.ws.close()},async initAudio(){if(!this.isRecording)try{this.isMicAvailable=!0;const t=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:c,channelCount:1,noiseSuppression:!0,echoCancellation:!0}});this.audioContext=new AudioContext({sampleRate:c});const e=this.audioContext.sampleRate;this.microphone=this.audioContext.createMediaStreamSource(t),this.processor=this.audioContext.createScriptProcessor(u,1,1),this.processor.onaudioprocess=this.processAudio,this.microphone.connect(this.processor),this.processor.connect(this.audioContext.destination),this.isRecording=!0,console.log(`状态: 录音中 (采样率: ${e}Hz)`)}catch(t){console.error("音频初始化失败:",t),this.isRecording=!1,this.isMicAvailable=!1}},async handleSend(){if(!this.inputMessage.trim())return;const t=this.inputMessage.trim();this.messages.push({id:this.messages.length+1,type:"user",sender:"用户",time:(new Date).toLocaleTimeString(),content:this.inputMessage}),this.inputMessage="";try{const e="Bearer 24ab99b4-4b59-42a0-84df-1d73a96e70cd",n=await fetch("/bytserver/api-model/chat/stream",{timeout:3e4,method:"POST",headers:{"Content-Type":"application/json",Authorization:e},body:JSON.stringify({content:t})});if(!n.ok)throw new Error(`${n.status}`);console.log("响应状态:",n.status),this.parseResponseStream(n.body)}catch(e){console.error("发送消息失败:",e)}},analyzeAudioCommand(t){console.log("分析音频命令:",t),"C5"===t?(this.robotStatus="entering",setTimeout(()=>{this.robotStatus="speaking",this.play()},3e3)):"C8"===t?(this.robotStatus="speaking",this.play()):"C7"===t?(this.robotStatus="waiting",this.pause()):"C6"===t&&(this.robotStatus="leaving",this.stop())},parseResponseStream(t){console.log(t)},processAudio(t){if(!this.isRecording)return;const e=t.inputBuffer.getChannelData(0),n=new Float32Array(this.audioBuffer.length+e.length);n.set(this.audioBuffer,0),n.set(e,this.audioBuffer.length),this.audioBuffer=n;while(this.audioBuffer.length>=u){const t=this.audioBuffer.slice(0,u);this.audioBuffer=this.audioBuffer.slice(u);const e=this.floatTo16BitPCM(t);this.ws&&this.ws.readyState===this.ws.OPEN&&this.ws.send(e)}},floatTo16BitPCM(t){const e=new Int16Array(t.length);for(let n=0;n<t.length;n++){const r=Math.max(-1,Math.min(1,t[n]));e[n]=r<0?32768*r:32767*r}return e.buffer},toggleWindow(){this.visible=!this.visible},showWindow(){this.visible=!0},hideWindow(){this.visible=!1},scrollToBottom(){this.$nextTick(()=>{const t=this.$refs.chatArea;t&&(t.scrollTop=t.scrollHeight)})},handleKeyDown(t){"Enter"!==t.key||t.shiftKey||(t.preventDefault(),this.handleSend())},stopRecording(){this.isRecording&&(this.microphone&&this.microphone.disconnect(),this.processor&&this.processor.disconnect(),this.analyser&&this.analyser.disconnect(),this.audioContext&&this.audioContext.close().catch(t=>{console.error("关闭音频上下文失败:",t)}),this.isRecording=!1)},appendToBodyHandler(){this.$nextTick(()=>{this.$el.parentElement!==document.body&&document.body.appendChild(this.$el)})},handleOverlayClick(){this.visible=!1}},watch:{messages:{handler(){this.scrollToBottom()},deep:!0}}},p=f;function l(t,e,n,r,o,i,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(t,e){return c.call(e),f(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:u}}var h=l(p,a,s,!1,null,"6cc1c97f",null),d=h.exports;const y={ChatWindow:d},v=function(t,e={}){v.installed||(v.installed=!0,t.prototype.$appOptions=e,Object.keys(y).forEach(e=>{t.component(e,y[e])}))};"undefined"!==typeof window&&window.Vue&&v(window.Vue);var g={install:v,...y},w=g;return r}()});
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["index"]=e():t["index"]=e()})("undefined"!==typeof self?self:this,function(){return function(){"use strict";var t={34:function(t,e,n){var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},81:function(t,e,n){var r=n(9565),o=n(9306),i=n(8551),a=n(6823),s=n(851),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?s(t):e;if(o(n))return i(r(n,t));throw new c(a(t)+" is not iterable")}},283:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),a=n(9297),s=n(3724),c=n(350).CONFIGURABLE,u=n(3706),f=n(1181),p=f.enforce,l=f.get,h=String,d=Object.defineProperty,y=r("".slice),v=r("".replace),g=r([].join),w=s&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),m=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===y(h(e),0,7)&&(e="["+v(h(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?d(t,"name",{value:e,configurable:!0}):t.name=e),w&&n&&a(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(o){}var r=p(t);return a(r,"source")||(r.source=g(m,"string"==typeof e?e:"")),t};Function.prototype.toString=b(function(){return i(this)&&l(this).source||u(this)},"toString")},350:function(t,e,n){var r=n(3724),o=n(9297),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},397:function(t,e,n){var r=n(7751);t.exports=r("document","documentElement")},421:function(t){t.exports={}},507:function(t,e,n){var r=n(9565);t.exports=function(t,e,n){var o,i,a=n?t:t.iterator,s=t.next;while(!(o=r(s,a)).done)if(i=e(o.value),void 0!==i)return i}},616:function(t,e,n){var r=n(9039);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},679:function(t,e,n){var r=n(1625),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw new o("Incorrect invocation")}},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},757:function(t,e,n){var r=n(7751),o=n(4901),i=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,s(t))}},851:function(t,e,n){var r=n(6955),o=n(5966),i=n(4117),a=n(6269),s=n(8227),c=s("iterator");t.exports=function(t){if(!i(t))return o(t,c)||o(t,"@@iterator")||a[r(t)]}},1072:function(t,e,n){var r=n(1828),o=n(8727);t.exports=Object.keys||function(t){return r(t,o)}},1108:function(t,e,n){var r=n(6955);t.exports=function(t){var e=r(t);return"BigInt64Array"===e||"BigUint64Array"===e}},1181:function(t,e,n){var r,o,i,a=n(8622),s=n(4576),c=n(34),u=n(6699),f=n(9297),p=n(7629),l=n(6119),h=n(421),d="Object already initialized",y=s.TypeError,v=s.WeakMap,g=function(t){return i(t)?o(t):r(t,{})},w=function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw new y("Incompatible receiver, "+t+" required");return n}};if(a||p.state){var m=p.state||(p.state=new v);m.get=m.get,m.has=m.has,m.set=m.set,r=function(t,e){if(m.has(t))throw new y(d);return e.facade=t,m.set(t,e),e},o=function(t){return m.get(t)||{}},i=function(t){return m.has(t)}}else{var b=l("state");h[b]=!0,r=function(t,e){if(f(t,b))throw new y(d);return e.facade=t,u(t,b,e),e},o=function(t){return f(t,b)?t[b]:{}},i=function(t){return f(t,b)}}t.exports={set:r,get:o,has:i,enforce:g,getterFor:w}},1291:function(t,e,n){var r=n(741);t.exports=function(t){var e=+t;return e!==e||0===e?0:r(e)}},1548:function(t,e,n){var r=n(4576),o=n(9039),i=n(9519),a=n(4215),s=r.structuredClone;t.exports=!!s&&!o(function(){if("DENO"===a&&i>92||"NODE"===a&&i>94||"BROWSER"===a&&i>97)return!1;var t=new ArrayBuffer(8),e=s(t,{transfer:[t]});return 0!==t.byteLength||8!==e.byteLength})},1625:function(t,e,n){var r=n(9504);t.exports=r({}.isPrototypeOf)},1698:function(t,e,n){var r=n(6518),o=n(4204),i=n(9835),a=n(4916),s=!a("union")||!i("union");r({target:"Set",proto:!0,real:!0,forced:s},{union:o})},1767:function(t){t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},1828:function(t,e,n){var r=n(9504),o=n(9297),i=n(5397),a=n(9617).indexOf,s=n(421),c=r([].push);t.exports=function(t,e){var n,r=i(t),u=0,f=[];for(n in r)!o(s,n)&&o(r,n)&&c(f,n);while(e.length>u)o(r,n=e[u++])&&(~a(f,n)||c(f,n));return f}},2106:function(t,e,n){var r=n(283),o=n(4913);t.exports=function(t,e,n){return n.get&&r(n.get,e,{getter:!0}),n.set&&r(n.set,e,{setter:!0}),o.f(t,e,n)}},2140:function(t,e,n){var r=n(8227),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},2195:function(t,e,n){var r=n(9504),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},2211:function(t,e,n){var r=n(9039);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},2360:function(t,e,n){var r,o=n(8551),i=n(6801),a=n(8727),s=n(421),c=n(397),u=n(4055),f=n(6119),p=">",l="<",h="prototype",d="script",y=f("IE_PROTO"),v=function(){},g=function(t){return l+d+p+t+l+"/"+d+p},w=function(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e},m=function(){var t,e=u("iframe"),n="java"+d+":";return e.style.display="none",c.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(g("document.F=Object")),t.close(),t.F},b=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}b="undefined"!=typeof document?document.domain&&r?w(r):m():w(r);var t=a.length;while(t--)delete b[h][a[t]];return b()};s[y]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(v[h]=o(t),n=new v,v[h]=null,n[y]=t):n=b(),void 0===e?n:i.f(n,e)}},2475:function(t,e,n){var r=n(6518),o=n(8527),i=n(4916),a=!i("isSupersetOf",function(t){return!t});r({target:"Set",proto:!0,real:!0,forced:a},{isSupersetOf:o})},2652:function(t,e,n){var r=n(6080),o=n(9565),i=n(8551),a=n(6823),s=n(4209),c=n(6198),u=n(1625),f=n(81),p=n(851),l=n(9539),h=TypeError,d=function(t,e){this.stopped=t,this.result=e},y=d.prototype;t.exports=function(t,e,n){var v,g,w,m,b,x,S,C=n&&n.that,O=!(!n||!n.AS_ENTRIES),A=!(!n||!n.IS_RECORD),T=!(!n||!n.IS_ITERATOR),E=!(!n||!n.INTERRUPTED),j=r(e,C),_=function(t){return v&&l(v,"normal"),new d(!0,t)},P=function(t){return O?(i(t),E?j(t[0],t[1],_):j(t[0],t[1])):E?j(t,_):j(t)};if(A)v=t.iterator;else if(T)v=t;else{if(g=p(t),!g)throw new h(a(t)+" is not iterable");if(s(g)){for(w=0,m=c(t);m>w;w++)if(b=P(t[w]),b&&u(y,b))return b;return new d(!1)}v=f(t,g)}x=A?t.next:v.next;while(!(S=o(x,v)).done){try{b=P(S.value)}catch(I){l(v,"throw",I)}if("object"==typeof b&&b&&u(y,b))return b}return new d(!1)}},2777:function(t,e,n){var r=n(9565),o=n(34),i=n(757),a=n(5966),s=n(4270),c=n(8227),u=TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,c=a(t,f);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!o(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},2787:function(t,e,n){var r=n(9297),o=n(4901),i=n(8981),a=n(6119),s=n(2211),c=a("IE_PROTO"),u=Object,f=u.prototype;t.exports=s?u.getPrototypeOf:function(t){var e=i(t);if(r(e,c))return e[c];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof u?f:null}},2796:function(t,e,n){var r=n(9039),o=n(4901),i=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n===f||n!==u&&(o(e)?r(e):!!e)},s=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},2839:function(t,e,n){var r=n(4576),o=r.navigator,i=o&&o.userAgent;t.exports=i?String(i):""},2967:function(t,e,n){var r=n(6706),o=n(34),i=n(7750),a=n(3506);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=r(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(s){}return function(n,r){return i(n),a(r),o(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)},3238:function(t,e,n){var r=n(4576),o=n(7811),i=n(7394),a=r.DataView;t.exports=function(t){if(!o||0!==i(t))return!1;try{return new a(t),!1}catch(e){return!0}}},3392:function(t,e,n){var r=n(9504),o=0,i=Math.random(),a=r(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},3440:function(t,e,n){var r=n(7080),o=n(4402),i=n(9286),a=n(5170),s=n(3789),c=n(8469),u=n(507),f=o.has,p=o.remove;t.exports=function(t){var e=r(this),n=s(t),o=i(e);return a(e)<=n.size?c(e,function(t){n.includes(t)&&p(o,t)}):u(n.getIterator(),function(t){f(o,t)&&p(o,t)}),o}},3506:function(t,e,n){var r=n(3925),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},3650:function(t,e,n){var r=n(7080),o=n(4402),i=n(9286),a=n(3789),s=n(507),c=o.add,u=o.has,f=o.remove;t.exports=function(t){var e=r(this),n=a(t).getIterator(),o=i(e);return s(n,function(t){u(e,t)?f(o,t):c(o,t)}),o}},3706:function(t,e,n){var r=n(9504),o=n(4901),i=n(7629),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},3717:function(t,e){e.f=Object.getOwnPropertySymbols},3724:function(t,e,n){var r=n(9039);t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},3789:function(t,e,n){var r=n(9306),o=n(8551),i=n(9565),a=n(1291),s=n(1767),c="Invalid size",u=RangeError,f=TypeError,p=Math.max,l=function(t,e){this.set=t,this.size=p(e,0),this.has=r(t.has),this.keys=r(t.keys)};l.prototype={getIterator:function(){return s(o(i(this.keys,this.set)))},includes:function(t){return i(this.has,this.set,t)}},t.exports=function(t){o(t);var e=+t.size;if(e!==e)throw new f(c);var n=a(e);if(n<0)throw new u(c);return new l(t,n)}},3838:function(t,e,n){var r=n(7080),o=n(5170),i=n(8469),a=n(3789);t.exports=function(t){var e=r(this),n=a(t);return!(o(e)>n.size)&&!1!==i(e,function(t){if(!n.includes(t))return!1},!0)}},3853:function(t,e,n){var r=n(6518),o=n(4449),i=n(4916),a=!i("isDisjointFrom",function(t){return!t});r({target:"Set",proto:!0,real:!0,forced:a},{isDisjointFrom:o})},3925:function(t,e,n){var r=n(34);t.exports=function(t){return r(t)||null===t}},4055:function(t,e,n){var r=n(4576),o=n(34),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},4114:function(t,e,n){var r=n(6518),o=n(8981),i=n(6198),a=n(4527),s=n(6837),c=n(9039),u=c(function(){return 4294967297!==[].push.call({length:4294967296},1)}),f=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},p=u||!f();r({target:"Array",proto:!0,arity:1,forced:p},{push:function(t){var e=o(this),n=i(e),r=arguments.length;s(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return a(e,n),n}})},4117:function(t){t.exports=function(t){return null===t||void 0===t}},4204:function(t,e,n){var r=n(7080),o=n(4402).add,i=n(9286),a=n(3789),s=n(507);t.exports=function(t){var e=r(this),n=a(t).getIterator(),c=i(e);return s(n,function(t){o(c,t)}),c}},4209:function(t,e,n){var r=n(8227),o=n(6269),i=r("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},4215:function(t,e,n){var r=n(4576),o=n(2839),i=n(2195),a=function(t){return o.slice(0,t.length)===t};t.exports=function(){return a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("Node.js/")?"NODE":r.Bun&&"string"==typeof Bun.version?"BUN":r.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(r.process)?"NODE":r.window&&r.document?"BROWSER":"REST"}()},4270:function(t,e,n){var r=n(9565),o=n(4901),i=n(34),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!i(s=r(n,t)))return s;if(o(n=t.valueOf)&&!i(s=r(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!i(s=r(n,t)))return s;throw new a("Can't convert object to primitive value")}},4376:function(t,e,n){var r=n(2195);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4402:function(t,e,n){var r=n(9504),o=Set.prototype;t.exports={Set:Set,add:r(o.add),has:r(o.has),remove:r(o["delete"]),proto:o}},4449:function(t,e,n){var r=n(7080),o=n(4402).has,i=n(5170),a=n(3789),s=n(8469),c=n(507),u=n(9539);t.exports=function(t){var e=r(this),n=a(t);if(i(e)<=n.size)return!1!==s(e,function(t){if(n.includes(t))return!1},!0);var f=n.getIterator();return!1!==c(f,function(t){if(o(e,t))return u(f,"normal",!1)})}},4483:function(t,e,n){var r,o,i,a,s=n(4576),c=n(9429),u=n(1548),f=s.structuredClone,p=s.ArrayBuffer,l=s.MessageChannel,h=!1;if(u)h=function(t){f(t,{transfer:[t]})};else if(p)try{l||(r=c("worker_threads"),r&&(l=r.MessageChannel)),l&&(o=new l,i=new p(2),a=function(t){o.port1.postMessage(null,[t])},2===i.byteLength&&(a(i),0===i.byteLength&&(h=a)))}catch(d){}t.exports=h},4495:function(t,e,n){var r=n(9519),o=n(9039),i=n(4576),a=i.String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},4527:function(t,e,n){var r=n(3724),o=n(4376),i=TypeError,a=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4549:function(t,e,n){var r=n(4576);t.exports=function(t,e){var n=r.Iterator,o=n&&n.prototype,i=o&&o[t],a=!1;if(i)try{i.call({next:function(){return{done:!0}},return:function(){a=!0}},-1)}catch(s){s instanceof e||(a=!1)}if(!a)return i}},4576:function(t,e,n){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4644:function(t,e,n){var r,o,i,a=n(7811),s=n(3724),c=n(4576),u=n(4901),f=n(34),p=n(9297),l=n(6955),h=n(6823),d=n(6699),y=n(6840),v=n(2106),g=n(1625),w=n(2787),m=n(2967),b=n(8227),x=n(3392),S=n(1181),C=S.enforce,O=S.get,A=c.Int8Array,T=A&&A.prototype,E=c.Uint8ClampedArray,j=E&&E.prototype,_=A&&w(A),P=T&&w(T),I=Object.prototype,R=c.TypeError,B=b("toStringTag"),k=x("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",L=a&&!!m&&"Opera"!==l(c.opera),D=!1,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},$=function(t){if(!f(t))return!1;var e=l(t);return"DataView"===e||p(z,e)||p(F,e)},N=function(t){var e=w(t);if(f(e)){var n=O(e);return n&&p(n,M)?n[M]:N(e)}},W=function(t){if(!f(t))return!1;var e=l(t);return p(z,e)||p(F,e)},U=function(t){if(W(t))return t;throw new R("Target is not a typed array")},V=function(t){if(u(t)&&(!m||g(_,t)))return t;throw new R(h(t)+" is not a typed array constructor")},Y=function(t,e,n,r){if(s){if(n)for(var o in z){var i=c[o];if(i&&p(i.prototype,t))try{delete i.prototype[t]}catch(a){try{i.prototype[t]=e}catch(u){}}}P[t]&&!n||y(P,t,n?e:L&&T[t]||e,r)}},G=function(t,e,n){var r,o;if(s){if(m){if(n)for(r in z)if(o=c[r],o&&p(o,t))try{delete o[t]}catch(i){}if(_[t]&&!n)return;try{return y(_,t,n?e:L&&_[t]||e)}catch(i){}}for(r in z)o=c[r],!o||o[t]&&!n||y(o,t,e)}};for(r in z)o=c[r],i=o&&o.prototype,i?C(i)[M]=o:L=!1;for(r in F)o=c[r],i=o&&o.prototype,i&&(C(i)[M]=o);if((!L||!u(_)||_===Function.prototype)&&(_=function(){throw new R("Incorrect invocation")},L))for(r in z)c[r]&&m(c[r],_);if((!L||!P||P===I)&&(P=_.prototype,L))for(r in z)c[r]&&m(c[r].prototype,P);if(L&&w(j)!==P&&m(j,P),s&&!p(P,B))for(r in D=!0,v(P,B,{configurable:!0,get:function(){return f(this)?this[k]:void 0}}),z)c[r]&&d(c[r],k,r);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:L,TYPED_ARRAY_TAG:D&&k,aTypedArray:U,aTypedArrayConstructor:V,exportTypedArrayMethod:Y,exportTypedArrayStaticMethod:G,getTypedArrayConstructor:N,isView:$,isTypedArray:W,TypedArray:_,TypedArrayPrototype:P}},4659:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=function(t,e,n){r?o.f(t,e,i(0,n)):t[e]=n}},4901:function(t){var e="object"==typeof document&&document.all;t.exports="undefined"==typeof e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},4913:function(t,e,n){var r=n(3724),o=n(5917),i=n(8686),a=n(8551),s=n(6969),c=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",h="writable";e.f=r?i?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var r=f(t,e);r&&r[h]&&(t[e]=n.value,n={configurable:l in n?n[l]:r[l],enumerable:p in n?n[p]:r[p],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return u(t,e,n)}catch(r){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},4916:function(t,e,n){var r=n(7751),o=function(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(t){return{size:t,has:function(){return!0},keys:function(){throw new Error("e")}}};t.exports=function(t,e){var n=r("Set");try{(new n)[t](o(0));try{return(new n)[t](o(-1)),!1}catch(s){if(!e)return!0;try{return(new n)[t](i(-1/0)),!1}catch(c){var a=new n;return a.add(1),a.add(2),e(a[t](i(1/0)))}}}catch(c){return!1}}},5024:function(t,e,n){var r=n(6518),o=n(3650),i=n(9835),a=n(4916),s=!a("symmetricDifference")||!i("symmetricDifference");r({target:"Set",proto:!0,real:!0,forced:s},{symmetricDifference:o})},5031:function(t,e,n){var r=n(7751),o=n(9504),i=n(8480),a=n(3717),s=n(8551),c=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(s(t)),n=a.f;return n?c(e,n(t)):e}},5169:function(t,e,n){var r=n(3238),o=TypeError;t.exports=function(t){if(r(t))throw new o("ArrayBuffer is detached");return t}},5170:function(t,e,n){var r=n(6706),o=n(4402);t.exports=r(o.proto,"size","get")||function(t){return t.size}},5397:function(t,e,n){var r=n(7055),o=n(7750);t.exports=function(t){return r(o(t))}},5610:function(t,e,n){var r=n(1291),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},5636:function(t,e,n){var r=n(4576),o=n(9504),i=n(6706),a=n(7696),s=n(5169),c=n(7394),u=n(4483),f=n(1548),p=r.structuredClone,l=r.ArrayBuffer,h=r.DataView,d=Math.min,y=l.prototype,v=h.prototype,g=o(y.slice),w=i(y,"resizable","get"),m=i(y,"maxByteLength","get"),b=o(v.getInt8),x=o(v.setInt8);t.exports=(f||u)&&function(t,e,n){var r,o=c(t),i=void 0===e?o:a(e),y=!w||!w(t);if(s(t),f&&(t=p(t,{transfer:[t]}),o===i&&(n||y)))return t;if(o>=i&&(!n||y))r=g(t,0,i);else{var v=n&&!y&&m?{maxByteLength:m(t)}:void 0;r=new l(i,v);for(var S=new h(t),C=new h(r),O=d(i,o),A=0;A<O;A++)x(C,A,b(S,A))}return f||u(t),r}},5745:function(t,e,n){var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},5854:function(t,e,n){var r=n(2777),o=TypeError;t.exports=function(t){var e=r(t,"number");if("number"==typeof e)throw new o("Can't convert number to bigint");return BigInt(e)}},5876:function(t,e,n){var r=n(6518),o=n(3838),i=n(4916),a=!i("isSubsetOf",function(t){return t});r({target:"Set",proto:!0,real:!0,forced:a},{isSubsetOf:o})},5917:function(t,e,n){var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},5966:function(t,e,n){var r=n(9306),o=n(4117);t.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}},6080:function(t,e,n){var r=n(7476),o=n(9306),i=n(616),a=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}},6119:function(t,e,n){var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},6193:function(t,e,n){var r=n(4215);t.exports="NODE"===r},6198:function(t,e,n){var r=n(8014);t.exports=function(t){return r(t.length)}},6269:function(t){t.exports={}},6395:function(t){t.exports=!1},6518:function(t,e,n){var r=n(4576),o=n(7347).f,i=n(6699),a=n(6840),s=n(9433),c=n(7740),u=n(2796);t.exports=function(t,e){var n,f,p,l,h,d,y=t.target,v=t.global,g=t.stat;if(f=v?r:g?r[y]||s(y,{}):r[y]&&r[y].prototype,f)for(p in e){if(h=e[p],t.dontCallGetSet?(d=o(f,p),l=d&&d.value):l=f[p],n=u(v?p:y+(g?".":"#")+p,t.forced),!n&&void 0!==l){if(typeof h==typeof l)continue;c(h,l)}(t.sham||l&&l.sham)&&i(h,"sham",!0),a(f,p,h,t)}}},6573:function(t,e,n){var r=n(3724),o=n(2106),i=n(3238),a=ArrayBuffer.prototype;r&&!("detached"in a)&&o(a,"detached",{configurable:!0,get:function(){return i(this)}})},6699:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6706:function(t,e,n){var r=n(9504),o=n(9306);t.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(i){}}},6801:function(t,e,n){var r=n(3724),o=n(8686),i=n(4913),a=n(8551),s=n(5397),c=n(1072);e.f=r&&!o?Object.defineProperties:function(t,e){a(t);var n,r=s(e),o=c(e),u=o.length,f=0;while(u>f)i.f(t,n=o[f++],r[n]);return t}},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},6837:function(t){var e=TypeError,n=9007199254740991;t.exports=function(t){if(t>n)throw e("Maximum allowed index exceeded");return t}},6840:function(t,e,n){var r=n(4901),o=n(4913),i=n(283),a=n(9433);t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(r(n)&&i(n,u,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(f){}c?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},6955:function(t,e,n){var r=n(2140),o=n(4901),i=n(2195),a=n(8227),s=a("toStringTag"),c=Object,u="Arguments"===i(function(){return arguments}()),f=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=f(e=c(t),s))?n:u?i(e):"Object"===(r=i(e))&&o(e.callee)?"Arguments":r}},6969:function(t,e,n){var r=n(2777),o=n(757);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},6980:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7040:function(t,e,n){var r=n(4495);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:function(t,e,n){var r=n(9504),o=n(9039),i=n(2195),a=Object,s=r("".split);t.exports=o(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?s(t,""):a(t)}:a},7080:function(t,e,n){var r=n(4402).has;t.exports=function(t){return r(t),t}},7347:function(t,e,n){var r=n(3724),o=n(9565),i=n(8773),a=n(6980),s=n(5397),c=n(6969),u=n(9297),f=n(5917),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=s(t),e=c(e),f)try{return p(t,e)}catch(n){}if(u(t,e))return a(!o(i.f,t,e),t[e])}},7394:function(t,e,n){var r=n(4576),o=n(6706),i=n(2195),a=r.ArrayBuffer,s=r.TypeError;t.exports=a&&o(a.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==i(t))throw new s("ArrayBuffer expected");return t.byteLength}},7476:function(t,e,n){var r=n(2195),o=n(9504);t.exports=function(t){if("Function"===r(t))return o(t)}},7588:function(t,e,n){var r=n(6518),o=n(9565),i=n(2652),a=n(9306),s=n(8551),c=n(1767),u=n(9539),f=n(4549),p=f("forEach",TypeError);r({target:"Iterator",proto:!0,real:!0,forced:p},{forEach:function(t){s(this);try{a(t)}catch(r){u(this,"throw",r)}if(p)return o(p,this,t);var e=c(this),n=0;i(e,function(e){t(e,n++)},{IS_RECORD:!0})}})},7629:function(t,e,n){var r=n(6395),o=n(4576),i=n(9433),a="__core-js_shared__",s=t.exports=o[a]||i(a,{});(s.versions||(s.versions=[])).push({version:"3.46.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7642:function(t,e,n){var r=n(6518),o=n(3440),i=n(9039),a=n(4916),s=!a("difference",function(t){return 0===t.size}),c=s||i(function(){var t={size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var n=t++>1;return e.has(1)&&e.clear(),{done:n,value:2}}}}},e=new Set([1,2,3,4]);return 3!==e.difference(t).size});r({target:"Set",proto:!0,real:!0,forced:c},{difference:o})},7657:function(t,e,n){var r,o,i,a=n(9039),s=n(4901),c=n(34),u=n(2360),f=n(2787),p=n(6840),l=n(8227),h=n(6395),d=l("iterator"),y=!1;[].keys&&(i=[].keys(),"next"in i?(o=f(f(i)),o!==Object.prototype&&(r=o)):y=!0);var v=!c(r)||a(function(){var t={};return r[d].call(t)!==t});v?r={}:h&&(r=u(r)),s(r[d])||p(r,d,function(){return this}),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:y}},7696:function(t,e,n){var r=n(1291),o=n(8014),i=RangeError;t.exports=function(t){if(void 0===t)return 0;var e=r(t),n=o(e);if(e!==n)throw new i("Wrong length or index");return n}},7740:function(t,e,n){var r=n(9297),o=n(5031),i=n(7347),a=n(4913);t.exports=function(t,e,n){for(var s=o(e),c=a.f,u=i.f,f=0;f<s.length;f++){var p=s[f];r(t,p)||n&&r(n,p)||c(t,p,u(e,p))}}},7750:function(t,e,n){var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},7751:function(t,e,n){var r=n(4576),o=n(4901),i=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t]):r[t]&&r[t][e]}},7811:function(t){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},7936:function(t,e,n){var r=n(6518),o=n(5636);o&&r({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},8004:function(t,e,n){var r=n(6518),o=n(9039),i=n(8750),a=n(4916),s=!a("intersection",function(t){return 2===t.size&&t.has(1)&&t.has(2)})||o(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))});r({target:"Set",proto:!0,real:!0,forced:s},{intersection:i})},8014:function(t,e,n){var r=n(1291),o=Math.min;t.exports=function(t){var e=r(t);return e>0?o(e,9007199254740991):0}},8100:function(t,e,n){var r=n(6518),o=n(5636);o&&r({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},8111:function(t,e,n){var r=n(6518),o=n(4576),i=n(679),a=n(8551),s=n(4901),c=n(2787),u=n(2106),f=n(4659),p=n(9039),l=n(9297),h=n(8227),d=n(7657).IteratorPrototype,y=n(3724),v=n(6395),g="constructor",w="Iterator",m=h("toStringTag"),b=TypeError,x=o[w],S=v||!s(x)||x.prototype!==d||!p(function(){x({})}),C=function(){if(i(this,d),c(this)===d)throw new b("Abstract class Iterator not directly constructable")},O=function(t,e){y?u(d,t,{configurable:!0,get:function(){return e},set:function(e){if(a(this),this===d)throw new b("You can't redefine this property");l(this,t)?this[t]=e:f(this,t,e)}}):d[t]=e};l(d,m)||O(m,w),!S&&l(d,g)&&d[g]!==Object||O(g,C),C.prototype=d,r({global:!0,constructor:!0,forced:S},{Iterator:C})},8227:function(t,e,n){var r=n(4576),o=n(5745),i=n(9297),a=n(3392),s=n(4495),c=n(7040),u=r.Symbol,f=o("wks"),p=c?u["for"]||u:u&&u.withoutSetter||a;t.exports=function(t){return i(f,t)||(f[t]=s&&i(u,t)?u[t]:p("Symbol."+t)),f[t]}},8469:function(t,e,n){var r=n(9504),o=n(507),i=n(4402),a=i.Set,s=i.proto,c=r(s.forEach),u=r(s.keys),f=u(new a).next;t.exports=function(t,e,n){return n?o({iterator:u(t),next:f},e):c(t,e)}},8480:function(t,e,n){var r=n(1828),o=n(8727),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},8527:function(t,e,n){var r=n(7080),o=n(4402).has,i=n(5170),a=n(3789),s=n(507),c=n(9539);t.exports=function(t){var e=r(this),n=a(t);if(i(e)<n.size)return!1;var u=n.getIterator();return!1!==s(u,function(t){if(!o(e,t))return c(u,"normal",!1)})}},8551:function(t,e,n){var r=n(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},8622:function(t,e,n){var r=n(4576),o=n(4901),i=r.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},8686:function(t,e,n){var r=n(3724),o=n(9039);t.exports=r&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8750:function(t,e,n){var r=n(7080),o=n(4402),i=n(5170),a=n(3789),s=n(8469),c=n(507),u=o.Set,f=o.add,p=o.has;t.exports=function(t){var e=r(this),n=a(t),o=new u;return i(e)>n.size?c(n.getIterator(),function(t){p(e,t)&&f(o,t)}):s(e,function(t){n.includes(t)&&f(o,t)}),o}},8773:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},8981:function(t,e,n){var r=n(7750),o=Object;t.exports=function(t){return o(r(t))}},9039:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},9286:function(t,e,n){var r=n(4402),o=n(8469),i=r.Set,a=r.add;t.exports=function(t){var e=new i;return o(t,function(t){a(e,t)}),e}},9297:function(t,e,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},9306:function(t,e,n){var r=n(4901),o=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},9429:function(t,e,n){var r=n(4576),o=n(6193);t.exports=function(t){if(o){try{return r.process.getBuiltinModule(t)}catch(e){}try{return Function('return require("'+t+'")')()}catch(e){}}}},9433:function(t,e,n){var r=n(4576),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9504:function(t,e,n){var r=n(616),o=Function.prototype,i=o.call,a=r&&o.bind.bind(i,i);t.exports=r?a:function(t){return function(){return i.apply(t,arguments)}}},9519:function(t,e,n){var r,o,i=n(4576),a=n(2839),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,f=u&&u.v8;f&&(r=f.split("."),o=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=+r[1]))),t.exports=o},9539:function(t,e,n){var r=n(9565),o=n(8551),i=n(5966);t.exports=function(t,e,n){var a,s;o(t);try{if(a=i(t,"return"),!a){if("throw"===e)throw n;return n}a=r(a,t)}catch(c){s=!0,a=c}if("throw"===e)throw n;if(s)throw a;return o(a),n}},9565:function(t,e,n){var r=n(616),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},9577:function(t,e,n){var r=n(9928),o=n(4644),i=n(1108),a=n(1291),s=n(5854),c=o.aTypedArray,u=o.getTypedArrayConstructor,f=o.exportTypedArrayMethod,p=function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}(),l=p&&function(){try{new Int8Array(1)["with"](-.5,1)}catch(t){return!0}}();f("with",{with:function(t,e){var n=c(this),o=a(t),f=i(n)?s(e):+e;return r(n,u(n),o,f)}}["with"],!p||l)},9617:function(t,e,n){var r=n(5397),o=n(5610),i=n(6198),a=function(t){return function(e,n,a){var s=r(e),c=i(s);if(0===c)return!t&&-1;var u,f=o(a,c);if(t&&n!==n){while(c>f)if(u=s[f++],u!==u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9835:function(t){t.exports=function(t){try{var e=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},r=e[t](n);return 1===r.size&&4===r.values().next().value}catch(o){return!1}}},9928:function(t,e,n){var r=n(6198),o=n(1291),i=RangeError;t.exports=function(t,e,n,a){var s=r(t),c=o(n),u=c<0?s+c:c;if(u>=s||u<0)throw new i("Incorrect index");for(var f=new e(s),p=0;p<s;p++)f[p]=p===u?a:t[p];return f}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}!function(){n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.p=""}();var r={};if(n.r(r),n.d(r,{ChatWindow:function(){return d},default:function(){return w}}),"undefined"!==typeof window){var o=window.document.currentScript,i=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n(8111),n(7588);var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"chat"},[e("audio",{ref:"audioPlayer",staticClass:"hidden-audio",on:{timeupdate:t.onTimeUpdate,ended:t.onAudioEnded}},[e("source",{attrs:{src:t.audioSrc,type:"audio/mpeg"}}),t._v(" 您的浏览器不支持音频元素。 ")]),"leaving"!==t.robotStatus?e("div",{class:["chat-robot",t.robotStatus]}):e("div",{staticClass:"chat-ai",on:{click:t.toggleWindow}},[e("div",{staticClass:"chat-ai-avater"}),e("div",{staticClass:"chat-ai-text"},[t._v("凌霄AI")])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],staticClass:"chat-overlay",on:{click:t.handleOverlayClick}},[e("div",{staticClass:"chat-window",on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"chat-window-header"},[e("div",{staticClass:"chat-window-header-title"},[t._v("凌霄大模型AI对话")]),e("div",{staticClass:"chat-window-header-close",on:{click:function(e){t.visible=!1}}},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"}},[e("path",{attrs:{d:"M5.50002 5.5L18.5 18.5",stroke:"#4E5969","stroke-width":"1.89404","stroke-linecap":"round","stroke-linejoin":"round"}}),e("path",{attrs:{d:"M5.50002 18.5L18.5 5.5",stroke:"#4E5969","stroke-width":"1.89404","stroke-linecap":"round","stroke-linejoin":"round"}})])])]),e("div",{ref:"chatArea",staticClass:"chat-window-content scrollbar-hide"},t._l(t.messages,function(n){return e("div",{key:n.id,staticClass:"chat-window-message"},["user"===n.type?e("div",{staticClass:"chat-window-message-user"},[e("div",{staticClass:"user-message"},[t._v(t._s(n.content))])]):e("div",{staticClass:"chat-window-message-ai"},[e("div",{staticClass:"ai-message"},[t._v(t._s(n.content))])])])}),0),e("div",{staticClass:"chat-window-footer"},[e("div",{staticClass:"chat-window-textarea"},[e("el-input",{staticClass:"chat-window-input",attrs:{type:"textarea",placeholder:"有什么我能帮您的吗?",rows:"2",resize:"none"},on:{keydown:t.handleKeyDown},model:{value:t.inputMessage,callback:function(e){t.inputMessage=e},expression:"inputMessage"}}),e("div",{staticClass:"chat-window-bar"},[e("div",{staticClass:"chat-window-send",on:{click:t.handleSend}},[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"}},[e("g",{attrs:{"clip-path":"url(#clip0_640_2107)"}},[e("path",{attrs:{d:"M18.6427 2.37822C19.3253 2.47432 19.8025 3.10738 19.7065 3.79002C19.6871 3.97072 19.5381 4.41327 19.5403 4.41161L14.9673 17.8079L14.9632 17.8093C14.7858 18.3838 14.212 18.7607 13.5971 18.6744C13.4173 18.6492 13.2504 18.5862 13.1055 18.4949L13.0973 18.4977L9.83449 16.3686C9.58371 16.2584 9.4276 15.9939 9.46729 15.7115C9.5154 15.3691 9.83278 15.1317 10.1751 15.1798C10.293 15.1964 10.3988 15.2448 10.4853 15.3161L13.4054 17.2314L13.4073 17.2317C13.4452 17.2566 13.4882 17.2746 13.5364 17.2814C13.6911 17.3029 13.8371 17.2052 13.8793 17.0593L18.0469 4.89796L8.27396 14.3367L7.77435 17.8916C7.72706 18.2281 7.41369 18.464 7.07727 18.4169C6.74073 18.3696 6.50469 18.0564 6.55198 17.7198L7.07633 13.9889C7.08231 13.9464 7.09382 13.9066 7.10727 13.867C7.13549 13.7645 7.19079 13.6657 7.27291 13.5866L17.0754 4.12041L2.68514 8.17767L2.68487 8.1796C2.58481 8.21873 2.50686 8.31058 2.49042 8.42643C2.47412 8.5424 2.52417 8.65007 2.6093 8.71729L2.60903 8.71922L3.28261 9.16101L3.28013 9.16461C3.47505 9.29254 3.58819 9.52563 3.55386 9.77111C3.50575 10.1134 3.18836 10.3509 2.84602 10.3028C2.75512 10.29 2.6708 10.2584 2.59833 10.2127L2.59806 10.2147L1.37843 9.42001L1.37951 9.41227C1.02215 9.14901 0.816644 8.70195 0.882687 8.23203C0.951867 7.74096 1.29791 7.35545 1.73968 7.21445L1.73995 7.21251L17.7833 2.57104C18.0287 2.41036 18.3294 2.3342 18.6427 2.37822Z",fill:"#013378"}}),e("path",{attrs:{d:"M3.1309 10.9936C3.2178 10.5684 3.82528 10.5684 3.91218 10.9936C4.10411 11.9326 4.83794 12.6664 5.77697 12.8584C6.20213 12.9453 6.20213 13.5527 5.77697 13.6397C4.83794 13.8316 4.10411 14.5654 3.91218 15.5044C3.82528 15.9296 3.2178 15.9296 3.1309 15.5044C2.93897 14.5654 2.20513 13.8316 1.26611 13.6397C0.840944 13.5527 0.840944 12.9453 1.26611 12.8584C2.20513 12.6664 2.93897 11.9326 3.1309 10.9936Z",fill:"#2B80F6"}}),e("path",{attrs:{d:"M6.20382 8.56242C6.25596 8.30732 6.62045 8.30732 6.67259 8.56242C6.78775 9.12583 7.22805 9.56613 7.79146 9.68129C8.04656 9.73343 8.04656 10.0979 7.79146 10.1501C7.22805 10.2652 6.78775 10.7055 6.67259 11.2689C6.62045 11.524 6.25596 11.524 6.20382 11.2689C6.08866 10.7055 5.64836 10.2652 5.08495 10.1501C4.82985 10.0979 4.82985 9.73343 5.08495 9.68129C5.64836 9.56613 6.08866 9.12583 6.20382 8.56242Z",fill:"#2B80F6"}})]),e("defs",[e("clipPath",{attrs:{id:"clip0_640_2107"}},[e("rect",{attrs:{width:"20",height:"20",fill:"white"}})])])])])])],1)])])])])},s=[];n(4114),n(6573),n(8100),n(7936),n(7642),n(8004),n(3853),n(5876),n(2475),n(5024),n(1698),n(9577);const c=16e3,u=512;var f={name:"ChatWindow",props:{appendToBody:{type:Boolean,default:!0}},data(){return{audioSrc:"/minio/lingxiaoai/byt.mp3",inputMessage:"",visible:!1,messages:[{id:1,type:"user",sender:"",time:"",content:"你好,欢迎来到凌霄大模型AI对话。"},{id:2,type:"ai",sender:"AI",time:"",content:"欢迎来到凌霄大模型AI对话。"},{id:3,type:"ai",sender:"AI",time:"",content:"请输入您的问题。"},{id:4,type:"user",sender:"用户",time:"",content:"你好,欢迎来到凌霄大模型AI对话。"}],isRecording:!1,isMicAvailable:!1,mediaRecorder:null,ws:null,wsUrl:"ws://192.168.8.9:9999/ai_model/ws/voice-stream",isConnected:!1,audioContext:null,microphone:null,processor:null,robotStatus:"leaving",audioBuffer:new Float32Array(0)}},mounted(){this.initWebSocket(),this.appendToBody&&this.appendToBodyHandler()},unmounted(){this.closeWebSocket(),this.stopRecording()},beforeDestroy(){this.appendToBody&&this.$el.parentElement===document.body&&document.body.removeChild(this.$el),this.closeWebSocket(),this.stopRecording()},methods:{onAudioEnded(){this.robotStatus="leaving",this.jumpedTimePoints.clear()},onTimeUpdate(){const t=this.$refs.audioPlayer,e=t.currentTime;this.jumpedTimePoints||(this.jumpedTimePoints=new Set);const n=[{time:40,url:"/permission/user",name:"permission_user",title:"用户管理"},{time:65,url:"/permission/menu",name:"permission_menu",title:"菜单管理"},{time:75,url:"/permission/role",name:"permission_role",title:"角色管理"}];n.forEach(t=>{e>=t.time&&e<t.time+.5&&!this.jumpedTimePoints.has(t.time)&&(this.jumpedTimePoints.add(t.time),console.log(`到达时间点 ${t.time} 秒,跳转到 ${t.title}`),this.$appOptions.store.dispatch("tags/addTagview",{path:t.url,fullPath:t.url,label:t.title,name:t.title,meta:{title:t.title},query:{},params:{}}),this.$appOptions.router.push({path:t.url}))}),console.log("当前播放时间:",e)},play(){this.robotStatus="speaking",this.$refs.audioPlayer.play()},pause(){this.robotStatus="waiting",this.$refs.audioPlayer.pause()},stop(){this.robotStatus="leaving",this.$refs.audioPlayer.pause(),this.$refs.audioPlayer.currentTime=0,this.jumpedTimePoints.clear()},initWebSocket(){try{this.ws=new WebSocket(this.wsUrl),this.ws.binaryType="arraybuffer",this.ws.onopen=async()=>{console.log("连接成功"),this.isConnected=!0,this.initAudio()},this.ws.onmessage=t=>{try{if(console.log("收到原始消息:",t.data),t.data instanceof ArrayBuffer)return void console.log("收到二进制音频数据");const e=JSON.parse(t.data);console.log("解析后的数据:",e),"config"===e.type?console.log("配置信息:",e):0===e.code?"detection"===e.data.type?console.log("检测到唤醒词..."):"Collecting"===e.data.type?console.log("状态: 采集中..."):"command"===e.data.type?(console.log("状态: 处理中..."),this.analyzeAudioCommand(e.data.category)):console.log("状态: 其他..."):console.error("服务器返回错误:",e.msg)}catch(e){console.error("消息解析错误:",e)}},this.ws.onclose=()=>{console.log("连接关闭"),this.isConnected=!1,this.isRecording&&this.stopRecording(),setTimeout(()=>{console.log("尝试重新建立连接"),this.isConnected||this.initWebSocket()},3e3)}}catch(t){console.error("WebSocket连接失败:",t)}},closeWebSocket(){this.ws&&this.ws.close()},async initAudio(){if(!this.isRecording)try{this.isMicAvailable=!0;const t=await navigator.mediaDevices.getUserMedia({audio:{sampleRate:c,channelCount:1,noiseSuppression:!0,echoCancellation:!0}});this.audioContext=new AudioContext({sampleRate:c});const e=this.audioContext.sampleRate;this.microphone=this.audioContext.createMediaStreamSource(t),this.processor=this.audioContext.createScriptProcessor(u,1,1),this.processor.onaudioprocess=this.processAudio,this.microphone.connect(this.processor),this.processor.connect(this.audioContext.destination),this.isRecording=!0,console.log(`状态: 录音中 (采样率: ${e}Hz)`)}catch(t){console.error("音频初始化失败:",t),this.isRecording=!1,this.isMicAvailable=!1}},async handleSend(){if(!this.inputMessage.trim())return;const t=this.inputMessage.trim();this.messages.push({id:this.messages.length+1,type:"user",sender:"用户",time:(new Date).toLocaleTimeString(),content:this.inputMessage}),this.inputMessage="";try{const e="Bearer 24ab99b4-4b59-42a0-84df-1d73a96e70cd",n=await fetch("/bytserver/api-model/chat/stream",{timeout:3e4,method:"POST",headers:{"Content-Type":"application/json",Authorization:e},body:JSON.stringify({content:t})});if(!n.ok)throw new Error(`${n.status}`);console.log("响应状态:",n.status),this.parseResponseStream(n.body)}catch(e){console.error("发送消息失败:",e)}},analyzeAudioCommand(t){console.log("分析音频命令:",t),"C5"===t?(this.robotStatus="entering",setTimeout(()=>{this.robotStatus="speaking",this.play()},3e3)):"C8"===t?(this.robotStatus="speaking",this.play()):"C7"===t?(this.robotStatus="waiting",this.pause()):"C6"===t&&(this.robotStatus="leaving",this.stop())},parseResponseStream(t){console.log(t)},processAudio(t){if(!this.isRecording)return;const e=t.inputBuffer.getChannelData(0),n=new Float32Array(this.audioBuffer.length+e.length);n.set(this.audioBuffer,0),n.set(e,this.audioBuffer.length),this.audioBuffer=n;while(this.audioBuffer.length>=u){const t=this.audioBuffer.slice(0,u);this.audioBuffer=this.audioBuffer.slice(u);const e=this.floatTo16BitPCM(t);this.ws&&this.ws.readyState===this.ws.OPEN&&this.ws.send(e)}},floatTo16BitPCM(t){const e=new Int16Array(t.length);for(let n=0;n<t.length;n++){const r=Math.max(-1,Math.min(1,t[n]));e[n]=r<0?32768*r:32767*r}return e.buffer},toggleWindow(){this.visible=!this.visible},showWindow(){this.visible=!0},hideWindow(){this.visible=!1},scrollToBottom(){this.$nextTick(()=>{const t=this.$refs.chatArea;t&&(t.scrollTop=t.scrollHeight)})},handleKeyDown(t){"Enter"!==t.key||t.shiftKey||(t.preventDefault(),this.handleSend())},stopRecording(){this.isRecording&&(this.microphone&&this.microphone.disconnect(),this.processor&&this.processor.disconnect(),this.analyser&&this.analyser.disconnect(),this.audioContext&&this.audioContext.close().catch(t=>{console.error("关闭音频上下文失败:",t)}),this.isRecording=!1)},appendToBodyHandler(){this.$nextTick(()=>{this.$el.parentElement!==document.body&&document.body.appendChild(this.$el)})},handleOverlayClick(){this.visible=!1}},watch:{messages:{handler(){this.scrollToBottom()},deep:!0}}},p=f;function l(t,e,n,r,o,i,a,s){var c,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var f=u.render;u.render=function(t,e){return c.call(e),f(t,e)}}else{var p=u.beforeCreate;u.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:u}}var h=l(p,a,s,!1,null,"43521054",null),d=h.exports;const y={ChatWindow:d},v=function(t,e={}){v.installed||(v.installed=!0,t.prototype.$appOptions=e,Object.keys(y).forEach(e=>{t.component(e,y[e])}))};"undefined"!==typeof window&&window.Vue&&v(window.Vue);var g={install:v,...y},w=g;return r}()});
|
|
2
2
|
//# sourceMappingURL=index.umd.min.js.map
|