"use strict";(self.webpackChunkhunyuan_bot=self.webpackChunkhunyuan_bot||[]).push([[1566],{3168:(t,r,e)=>{t.exports=e.p+"assets/3dba866a2d602f79a93d.png"},8687:(t,r,e)=>{e.d(r,{Em:()=>D,KJ:()=>I,XV:()=>Y,qY:()=>N});var n=e(18025),o=e(72320),i=e(66031),a=e(31519),u=e(79815),c=e(45042),l=e(36288),s=e(22448),f=e(26900),p=e(56261),h=e(45718),v=e(79589),y=e(36280),d=e(25221),m=e(26093),g=e(27991),b=e(40929),w=e(44706),O=e(34302);function j(t){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},j(t)}function E(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,r){if(t){if("string"==typeof t)return S(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?S(t,r):void 0}}(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function S(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function P(){P=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var i=r&&r.prototype instanceof m?r:m,a=Object.create(i.prototype),u=new I(n||[]);return o(a,"_invoke",{value:_(t,e,u)}),a}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=s;var p="suspendedStart",h="suspendedYield",v="executing",y="completed",d={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(A([])));E&&E!==e&&n.call(E,a)&&(w=E);var S=b.prototype=m.prototype=Object.create(w);function x(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function L(t,r){function e(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==j(s)&&n.call(s,"__await")?r.resolve(s.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):r.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function _(r,e,n){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=f(r,e,n);if("normal"===l.type){if(o=n.done?y:h,l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function k(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,k(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=f(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function T(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function N(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function A(r){if(r||""===r){var e=r[a];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(j(r)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(S),t},r.awrap=function(t){return{__await:t}},x(L.prototype),l(L.prototype,u,(function(){return this})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new L(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(S),l(S,c,"Generator"),l(S,a,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=A,I.prototype={constructor:I,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return u.type="throw",u.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),d},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),N(e),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;N(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:A(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),d}},r}function x(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function L(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){x(i,n,o,a,u,"next",t)}function u(t){x(i,n,o,a,u,"throw",t)}a(void 0)}))}}function _(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function k(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?_(Object(e),!0).forEach((function(r){T(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function T(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=j(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=j(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==j(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var N=w.q||{},I=(0,b.qN)({headers:k({"X-Requested-With":"XMLHttpRequest"},N),withCredentials:!0});function A(t){var r,e=E([].concat(["/api/conversations/share/","/api/share/status/","/api/v5/share/detail/","/api/url/check/","/api/stop/chat/","/api/stop/conversation/","/api/ai/complaint/","/api/ai/suitable/","/api/user/agent/doc/translate/share/","/api/user/agent/doc/mindMap/share/","/api/image/intention/generate/","/api/prettyimg/share/","https://hy-contact-prod-1258344703.cos.ap","https://hunyuan-prod-1258344703.cos.ap","/api/user/agent/imageGenerate/getImage/"]).sort((function(t,r){return r.length-t.length})));try{for(e.s();!(r=e.n()).done;){var n=r.value;if(t.includes(n))return n}}catch(t){e.e(t)}finally{e.f()}return t}function D(t){return U.apply(this,arguments)}function U(){return(U=L(P().mark((function t(r){var e,n,o,a,u,c,f,p,y;return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=r.apiType,n=r.method,o=void 0===n?"POST":n,a=r.noBridge,!(0,s.YB)()||a){t.next=11;break}return u=i.yl[e]||r.url.slice(1),c=u.startsWith("/")?u.slice(1):u,t.next=7,(0,l.Ji)({path:c,data:r.data||{},method:o.toUpperCase(),header:k(k(k({},(0,h.NU)()),r.headers||{}),(0,v.i7)())});case 7:if(f=t.sent,!r.returnHeaders){t.next=10;break}return t.abrupt("return",{data:f.data,headers:{},traceId:""});case 10:return t.abrupt("return",f.data);case 11:if(p=r,(0,s.Ww)()&&(p=k(k({},r),{},{baseURL:(0,s.jp)()})),!e){t.next=16;break}return y=i.yl[e],t.abrupt("return",I.request(k(k({},p),{},{method:o,url:y})));case 16:return t.abrupt("return",I.request(k(k({},p),{},{method:o})));case 17:case"end":return t.stop()}}),t)})))).apply(this,arguments)}n.A.interceptors.request.use(function(){var t=L(P().mark((function t(r){return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.d)(r);case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),(function(t){return Promise.reject(t)})),I.interceptors.request.use(function(){var t=L(P().mark((function t(r){return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,w.d)(r);case 2:return t.abrupt("return",r);case 3:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),(function(t){return Promise.reject(t)})),I.interceptors.request.use((function(t){var r;if(window.location.pathname.startsWith("/evt")&&Object.assign(t.headers,(0,h.NU)()),window.location.pathname.startsWith("/evt/qyn")&&(t.headers["x-route-env"]="release-20240516-qingyunian",(0,s.hL)()&&(0,s.fx)())){var e=(0,f.VZ)(),n=e.token,o=e.userId;t.headers["X-ID"]=o,t.headers["X-Token"]=n,t.headers["X-Source"]="event_h5"}if(window.location.pathname.startsWith("/evt/cxs")&&Object.assign(t.headers,(0,p.kG)()),null!=t&&null!==(r=t.url)&&void 0!==r&&r.startsWith("/openapi")&&Object.assign(t.headers,{Authorization:"Bearer ".concat(t.headers["X-Token"])}),window.location.pathname.startsWith("/chat")){var i=window.location.pathname.match(/\/chat\/(.*)/);i&&(t.headers["X-AgentID"]=i[1])}return(0,y.Kw)()&&(t.headers["X-Source"]="web"),t.headers["x-commit-tag"]="7dfca61f",t.headers["X-WebVersion"]="2.26.0",(0,h.f8)(t.url,t.headers),t.headers=k(k(k({},(0,d.n)()),t.headers),(0,v.i7)()),t.metadata={startTime:performance.now()},t})),I.interceptors.response.use(function(){var t=L(P().mark((function t(r){var e,n,o,i,a,u,c,l,s,f,p,h,v;return P().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=performance.now(),v=h-r.config.metadata.startTime,g.M.report("api_request_qua",{HY503:A(r.config.url||""),HY504:null!==(e=null==r||null===(n=r.data)||void 0===n?void 0:n.agentId)&&void 0!==e?e:"",HY508:null!==(o=null!==(i=null==r||null===(a=r.data)||void 0===a?void 0:a.errMessage)&&void 0!==i?i:null==r||null===(u=r.data)||void 0===u||null===(u=u.error)||void 0===u?void 0:u.message)&&void 0!==o?o:"",HY505:v,HY506:(null==r?void 0:r.status)||0,HY507:null!==(c=null!==(l=null!==(s=null==r||null===(f=r.data)||void 0===f?void 0:f.code)&&void 0!==s?s:null==r||null===(p=r.data)||void 0===p||null===(p=p.error)||void 0===p?void 0:p.code)&&void 0!==l?l:r.status)&&void 0!==c?c:""}),t.abrupt("return",(0,O.Vd)(r));case 4:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),(function(t){var r,e,n,i,l,f,p,h,v,y,d,b,w,j,E,S;null===(r=t.config)||void 0===r||null===(e=r.customResponseErrorHandler)||void 0===e||e.call(r,t);var P=(null==t||null===(n=t.response)||void 0===n?void 0:n.status)||-1,x=A(null==t||null===(i=t.config)||void 0===i?void 0:i.url),L=!0;-1===P&&["/api/getuserinfo"].includes(x)&&(L=!1);var _=performance.now()-(null==t||null===(l=t.config)||void 0===l?void 0:l.metadata.startTime);if(L&&g.M.report("api_request_qua",{HY503:x,HY504:null!==(f=null==t||null===(p=t.config)||void 0===p||null===(p=p.data)||void 0===p?void 0:p.agentId)&&void 0!==f?f:"",HY508:null!==(h=null!==(v=null==t||null===(y=t.response)||void 0===y||null===(y=y.data)||void 0===y||null===(y=y.error)||void 0===y?void 0:y.message)&&void 0!==v?v:null==t||null===(d=t.response)||void 0===d||null===(d=d.data)||void 0===d?void 0:d.errMessage)&&void 0!==h?h:"",HY505:_,HY506:P,HY507:null!==(b=null!==(w=null==t||null===(j=t.response)||void 0===j||null===(j=j.data)||void 0===j||null===(j=j.error)||void 0===j?void 0:j.code)&&void 0!==w?w:null==t||null===(E=t.response)||void 0===E||null===(E=E.data)||void 0===E?void 0:E.code)&&void 0!==b?b:""}),(0,o.FZ)(t))throw(0,O.C9)(t,null);try{(0,c.DW)(t.response)}catch(r){throw(0,O.Aj)(r,t.response)}if(null===(S=t.config)||void 0===S||!S.hideTip){var k,T,N,I=(null===(k=t.config)||void 0===k?void 0:k.errorMessage)||(null==t?void 0:t.message)||"服务异常";if("Network Error"===I){var D=(0,m.qA)();I=D===m.TM.English?"Network error, please try again later":D===m.TM.TraditionalChinese?"網絡異常,請稍後重試":a.jo}var U=(0,s.Ww)()&&401===(null===(T=t.response)||void 0===T?void 0:T.status);401===(null===(N=t.response)||void 0===N?void 0:N.status)&&a.zB.some((function(r){var e;return(null===(e=t.config)||void 0===e?void 0:e.url)&&t.config.url.includes(r)}))||!window.navigator.onLine||U||(0,u.Ax)(I)}throw(0,O.C9)(t,t.response)}));var C,G,H=(0,s.XM)()?"https://jsonproxy.3g.qq.com/data":"https://jprx.sparta.html5.qq.com/data",Y=n.A.create({baseURL:H,timeout:1e4,timeoutErrorMessage:(C=(0,m.qA)(),G=a.jo,C===m.TM.English?G="Network error, please try again later":C===m.TM.TraditionalChinese&&(G="網絡異常,請稍後重試"),G)})},17251:(t,r,e)=>{e.d(r,{A:()=>o});var n=e(19341);function o(){var t=(0,n.P)();return"development"===t.NEXT_PUBLIC_MODE||"development"===t.NODE_ENV}},19341:(t,r,e)=>{e.d(r,{P:()=>n});var n=function(){var t={NODE_ENV:void 0,NEXT_PUBLIC_MODE:void 0,NEXT_PUBLIC_RUNTIME_ENV:void 0};try{t={NODE_ENV:"production",NEXT_PUBLIC_MODE:"",NEXT_PUBLIC_RUNTIME_ENV:"web"}}catch(t){}return t}},27991:(t,r,e)=>{e.d(r,{M:()=>d});var n=e(49102),o=e.n(n),i=e(45042),a=e(30525),u=e(53837),c=e(22448);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(){s=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,e){return t[r]=e}}function p(t,r,e,n){var i=r&&r.prototype instanceof b?r:b,a=Object.create(i.prototype),u=new I(n||[]);return o(a,"_invoke",{value:_(t,e,u)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var v="suspendedStart",y="suspendedYield",d="executing",m="completed",g={};function b(){}function w(){}function O(){}var j={};f(j,a,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(A([])));S&&S!==e&&n.call(S,a)&&(j=S);var P=O.prototype=b.prototype=Object.create(j);function x(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function L(t,r){function e(o,i,a,u){var c=h(t[o],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):r.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function _(r,e,n){var o=v;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=h(r,e,n);if("normal"===l.type){if(o=n.done?m:y,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function k(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,k(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=h(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function T(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function N(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function A(r){if(r||""===r){var e=r[a];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(l(r)+" is not iterable")}return w.prototype=O,o(P,"constructor",{value:O,configurable:!0}),o(O,"constructor",{value:w,configurable:!0}),w.displayName=f(O,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===w||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,f(t,c,"GeneratorFunction")),t.prototype=Object.create(P),t},r.awrap=function(t){return{__await:t}},x(L.prototype),f(L.prototype,u,(function(){return this})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new L(p(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(P),f(P,c,"Generator"),f(P,a,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=A,I.prototype={constructor:I,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return u.type="throw",u.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),g},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),N(e),g}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;N(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:A(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}function f(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function p(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){f(i,n,o,a,u,"next",t)}function u(t){f(i,n,o,a,u,"throw",t)}a(void 0)}))}}function h(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}function v(t,r,e){return(r=y(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function y(t){var r=function(t,r){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==l(r)?r:r+""}var d=new(function(){return t=function t(){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),v(this,"instance",null),v(this,"isInitializing",!1),v(this,"appKey",null)},r=[{key:"init",value:(y=p(s().mark((function t(r){var e,n,l,f,p;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(c.iW||this.isInitializing||this.instance)){t.next=2;break}return t.abrupt("return");case 2:return this.appKey=r.appKey,this.isInitializing=!0,t.prev=4,this.instance=new(o())({appkey:this.appKey,strictMode:!1,delay:1e3,sessionDuration:6e4,needInitQimei:!1,needQueryConfig:!0,needReportRqdEvent:!1}),e=new u.A({appKey:this.appKey,disableDebugger:!0,disableConsoleDetection:!0}),t.next=9,e.getQimei36();case 9:n=t.sent,l=(0,i.VK)(),f=l.name,p=l.version,this.instance.addAdditionalParams({package_type:(0,i.Cu)()?"dev_release":"publish_release",HY98:(0,i.Cu)()?"dev_release":"publish_release",A2:n,A153:n,HY997:(0,a.Z)()?"win":"mac",HY998:"Web",HY999:"".concat(f," ").concat(p),HY103:"7dfca61f"}),t.next=18;break;case 14:throw t.prev=14,t.t0=t.catch(4),t.t0;case 18:return t.prev=18,this.isInitializing=!1,t.finish(18);case 21:case"end":return t.stop()}}),t,this,[[4,14,18,21]])}))),function(t){return y.apply(this,arguments)})},{key:"report",value:(f=p(s().mark((function t(r,e){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null===(n=this.instance)||void 0===n||n.onUserAction(r,e);case 1:case"end":return t.stop()}}),t,this)}))),function(t,r){return f.apply(this,arguments)})},{key:"reportLoginStep",value:(l=p(s().mark((function t(r){return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.report("login_qua",r);case 2:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"updateParams",value:(n=p(s().mark((function t(r){var e;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:null===(e=this.instance)||void 0===e||e.addAdditionalParams(r);case 1:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})}],r&&h(t.prototype,r),e&&h(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,e,n,l,f,y}())},33363:(t,r,e)=>{function n(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=i.call(e)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,r)||function(t,r){if(t){if("string"==typeof t)return o(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}e.d(r,{c:()=>a});var i=[["edge",/Edge\/([0-9._]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9.]+)(?:\s|$)/],["safari",/Version\/([0-9._]+).*Safari/]];function a(){var t,r,e=window.navigator.userAgent,o=!!(r=e)&&i.reduce((function(t,e){var o=n(e,2),i=o[0],a=o[1];if(t)return t;var u=a.exec(r);return!!u&&[i,u]}),!1);if(!o)return null;var a=n(o,2),u=a[0],c=null===(t=a[1][1])||void 0===t?void 0:t.split(".").join("_").split("_").slice(0,3);return c||(c=[]),{name:u,version:c.join(".")}}},34302:(t,r,e)=>{e.d(r,{Aj:()=>l,C9:()=>s,Vd:()=>f});var n=e(72320),o=e(59123);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function u(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?a(Object(e),!0).forEach((function(r){c(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):a(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function c(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==i(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function l(t,r){var e,n,o;return null!=r&&null!==(e=r.config)&&void 0!==e&&e.returnHeaders?{data:t,headers:(null==r?void 0:r.headers)||{},traceId:(null==r||null===(o=r.headers)||void 0===o?void 0:o["x-traceid"])||""}:null!=r&&null!==(n=r.config)&&void 0!==n&&n.returnResponseWhenError?u(u({},t||{}),{},{response:r}):t}function s(t,r){var e,n;return null!=r&&null!==(e=r.config)&&void 0!==e&&e.returnHeaders?{error:t,headers:(null==r?void 0:r.headers)||{},traceId:(null==r||null===(n=r.headers)||void 0===n?void 0:n["x-traceid"])||""}:t}var f=function(t){var r;if((0,n.FZ)(t))throw t;if("blob"===t.config.responseType)try{return t.config.returnResponse?l(t,t):l(t.data,t)}catch(t){}if(404===t.status)throw new Error("不存在!");if(415===t.status)throw new Error("报文格式不支持");return sessionStorage.removeItem("jumpLogin"),null!==(r=t.config.url)&&void 0!==r&&r.includes(o.y[o.B.API_LOGIN])?l(t.data,t):t.config.returnResponse?l(t,t):l(t.data,t)}},36288:(t,r,e)=>{e.d(r,{Ji:()=>S,VJ:()=>_,Wi:()=>E,ik:()=>T,tB:()=>x,ug:()=>b,vF:()=>I});e(87665);var n=e(22448),o=e(72512),i=e(48335),a=e(66220),u=e(85803),c=e(18410),l=e.n(c);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(){f=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function p(t,r,e,n){var i=r&&r.prototype instanceof b?r:b,a=Object.create(i.prototype),u=new I(n||[]);return o(a,"_invoke",{value:_(t,e,u)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var v="suspendedStart",y="suspendedYield",d="executing",m="completed",g={};function b(){}function w(){}function O(){}var j={};l(j,a,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(A([])));S&&S!==e&&n.call(S,a)&&(j=S);var P=O.prototype=b.prototype=Object.create(j);function x(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function L(t,r){function e(o,i,a,u){var c=h(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==s(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):r.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function _(r,e,n){var o=v;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=h(r,e,n);if("normal"===l.type){if(o=n.done?m:y,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function k(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,k(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=h(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function T(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function N(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function A(r){if(r||""===r){var e=r[a];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(s(r)+" is not iterable")}return w.prototype=O,o(P,"constructor",{value:O,configurable:!0}),o(O,"constructor",{value:w,configurable:!0}),w.displayName=l(O,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===w||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,l(t,c,"GeneratorFunction")),t.prototype=Object.create(P),t},r.awrap=function(t){return{__await:t}},x(L.prototype),l(L.prototype,u,(function(){return this})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new L(p(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(P),l(P,c,"Generator"),l(P,a,(function(){return this})),l(P,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=A,I.prototype={constructor:I,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return u.type="throw",u.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),g},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),N(e),g}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;N(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:A(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}function p(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function h(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?p(Object(e),!0).forEach((function(r){v(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):p(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function v(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==s(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function y(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function d(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){y(i,n,o,a,u,"next",t)}function u(t){y(i,n,o,a,u,"throw",t)}a(void 0)}))}}var m=function(t){return t.webview="web",t.conversation="conversation",t}({}),g=function(t){var r=[];return Object.keys(t).forEach((function(e){return r.push("".concat(e,"=").concat(t[e]))})),r.join("&")};function b(){return w.apply(this,arguments)}function w(){return(w=d(f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,r){(0,n.YB)()?window.HYJSBridge.ready((function(){window.HYJSBridge.getUserInfo({success:function(r){try{t(JSON.parse(r.data))}catch(r){t({uid:"",name:"",avatar:""})}},fail:function(t,e){r(new Error(e))}})})):t({uid:"",name:"",avatar:""})})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var O=null,j=null;function E(t,r){O=t,j=r}var S=function(t){return new Promise((function(r,e){window.HYJSBridge.ready((function(){window.HYJSBridge.request({path:t.path,data:JSON.stringify(t.data),method:t.method||"POST",header:JSON.stringify(t.header||{}),success:function(e){var n,o,i=JSON.parse(e.data);r(h(h({code:0,error:""},e),{},{data:i})),null===(n=u.fQ.ins)||void 0===n||n.report({msg:"APP_REQUEST",level:l().logType.API_RESPONSE,ext1:JSON.stringify(h({res:e},t))}),null===(o=O)||void 0===o||o({res:e,options:t})},fail:function(r,n){var o,i;null===(o=u.fQ.ins)||void 0===o||o.report({msg:"APP_REQUEST_FAIL",level:l().logType.AJAX_ERROR,ext1:JSON.stringify(h({error:n},t))}),null===(i=j)||void 0===i||i({code:r,error:n,options:t});var a=new Error(n,{cause:r});a.cause=r,e(a)}})}))}))},P=!1;function x(t,r){return L.apply(this,arguments)}function L(){return(L=d(f().mark((function t(r,e){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!P){t.next=3;break}return t.abrupt("return");case 3:return t.abrupt("return",_({target:m.conversation,data:{agentId:r,extendConfig:e}}));case 4:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function _(t){return k.apply(this,arguments)}function k(){return(k=d(f().mark((function t(r){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!P){t.next=3;break}return t.abrupt("return");case 3:return P=!0,setTimeout((function(){P=!1}),600),t.abrupt("return",new Promise((function(t,e){var i=r.data||{};!r.unsafeUrl||(0,n.jJ)(n.S8.SUPPORT_NAV_UNSAFE_URL)?!r.url||(0,n.jJ)(n.S8.SUPPORT_NAV_FULL_URL_N_SHARE_N_SAVE_IMG)?window.HYJSBridge.navigateTo({page:r.target||m.webview,title:r.title||"",hideNavBar:r.hideNavBar||!1,data:r.url?JSON.stringify(r.url?h(h({},i),{},{url:r.url}):i):r.unsafeUrl?JSON.stringify(r.unsafeUrl?h(h({},i),{},{unsafeUrl:r.unsafeUrl}):i):JSON.stringify(r.path?h(h({},i),{},{path:r.path}):i),success:function(){P=!1,t()},fail:function(t){P=!1,e(t)}}):o.iU.error("!"):o.iU.error("不支持跳转的版本,请升级到至少: ".concat(n.S8.SUPPORT_NAV_UNSAFE_URL))})));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(t){return N.apply(this,arguments)}function N(){return(N=d(f().mark((function t(r){var e;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e="".concat((0,i.e9)(a.s.GET_CHAT_LIST).slice(1),"?").concat(g(r)),t.abrupt("return",S({path:e,data:r,method:"GET"}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function I(t){return A.apply(this,arguments)}function A(){return(A=d(f().mark((function t(r){var e;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e="".concat((0,i.e9)(a.s.GET_CHAT_DETAIL).slice(1),"/").concat(null==r?void 0:r.id),t.abrupt("return",S({path:e,data:r,method:"GET"}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},40929:(t,r,e)=>{e.d(r,{qN:()=>O});var n=e(18025),o=e(43572),i=e(64155),a=e(17251),u=e(54929);var c=e(19341);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==l(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var f="https://yuanbao.tencent.com",p=function(t){return t.Test="1",t.Pre="3",t.Prod="0",t}({}),h=s(s(s({},p.Test,"https://yuanbao.test.hunyuan.woa.com"),p.Pre,"https://yuanbao.pre.hunyuan.woa.com"),p.Prod,f);function v(){var t;return null===(t=function(t){return i.A?t||"":t||window.navigator.userAgent||""}().match(/env_type\/([^ ]+)/))||void 0===t?void 0:t[1]}var y=function(t){return t.theme="theme",t.DevToolsBaseUrl="DevToolsBaseUrl",t}({}),d=function(){var t,r,e=(0,c.P)();if((0,u.X)()||(0,a.A)()&&"pc"===e.NEXT_PUBLIC_RUNTIME_ENV){if(i.A)return f;if(!i.A&&(null===(r=window.navigator.userAgent)||void 0===r?void 0:r.includes("has_devtools/1")))return t=v(),h[t]||"";if((0,a.A)()){var n=window.localStorage.getItem(y.DevToolsBaseUrl);if(n)return n}return f}return""};e(59123);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function g(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function b(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?g(Object(e),!0).forEach((function(r){w(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):g(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function w(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=m(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==m(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var O=function(t){var r,e;return n.A.create(b(b({},t),{},{baseURL:d(),timeout:1e4,timeoutErrorMessage:(r=(0,o.getCurrentLang)(),e="网络异常,请稍后重试",r===o.Language.English?e="Network error, please try again later":r===o.Language.TraditionalChinese&&(e="網絡異常,請稍後重試"),e)}))}},44706:(t,r,e)=>{e.d(r,{q:()=>G,d:()=>H});var n=e(54929),o=e(64155),i=e(17251),a=e(19341),u=e(50951),c=function(t,r){var e,n,a;if(!o.A&&null!==(e=window)&&void 0!==e&&e.nextAegis&&!(0,i.A)()){var c="";if(!(0,u.A)(r))try{c=JSON.stringify(r,null,2)}catch(t){}null===(n=window.nextAegis)||void 0===n||null===(a=n.report)||void 0===a||a.call(n,{msg:"[".concat(t,"] ").concat(c),level:"-1",trace:"trace"})}},l=e(35385);const s=e.p+"assets/a2caadcd330a4cdb9e19.png",f=e.p+"assets/40a1f7596042cbb36ba6.png";var p=e(85428);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function v(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function y(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?v(Object(e),!0).forEach((function(r){d(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):v(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function d(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=h(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==h(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var m={width:16,height:16,marginRight:8};function g(t,r){var e={icon:void 0};switch(t){case"success":O(r,e);break;case"info":w(r,e);break;case"error":b(r,e);break;case"warning":j(r,e)}}var b=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l.xT.closeAll(),l.iU.error(y({content:t,placement:"center",zIndex:7e3,duration:1e3},r))},w=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l.xT.closeAll(),l.iU.info(y({content:t,placement:"center",zIndex:7e3,duration:1e3},r))},O=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l.xT.closeAll(),l.iU.success(y({icon:(0,p.jsx)("img",{src:s,style:m,alt:""}),content:t,placement:"center",zIndex:7e3,duration:1e3},r))},j=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};l.xT.closeAll(),l.iU.warning(y({icon:(0,p.jsx)("img",{src:f,style:m,alt:""}),content:t,placement:"center",zIndex:7e3,duration:1e3},r))};function E(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=S(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==S(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function S(t){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(t)}var P="HYC_PAGE_TOOLS_CONFIG",x=function(t){return t.customizeHeaders="customizeHeaders",t.customizeCookie="customizeCookie",t.customizeEvtCookie="customizeEvtCookie",t.customizeDebugTools="customizeDebugTools",t}({}),L={_get:function(t){if(!o.A){var r=window.localStorage.getItem(t);return null===r?void 0:r}},get:function(t){if(!o.A){var r=L._get(P);if(r)try{var e=JSON.parse(r);return"object"===S(e)?t?e[t]:e:void 0}catch(t){return}}},set:function(t,r){if(o.A)return!1;var e=L.get();try{return e?(void 0!==r?e[t]=r:delete e[t],window.localStorage.setItem(P,JSON.stringify(e))):void 0!==r&&window.localStorage.setItem(P,JSON.stringify(E({},t,r))),!0}catch(t){return g("error",JSON.stringify(t)),!1}},clear:function(t){if(o.A)return!1;if(t)return L.set(t,void 0);try{return window.localStorage.clear(),!0}catch(t){return g("error",JSON.stringify(t)),!1}}};function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function k(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=_(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==_(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function N(){N=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(t){l=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var i=r&&r.prototype instanceof m?r:m,a=Object.create(i.prototype),u=new I(n||[]);return o(a,"_invoke",{value:x(t,e,u)}),a}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=s;var p="suspendedStart",h="suspendedYield",v="executing",y="completed",d={};function m(){}function g(){}function b(){}var w={};l(w,a,(function(){return this}));var O=Object.getPrototypeOf,j=O&&O(O(A([])));j&&j!==e&&n.call(j,a)&&(w=j);var E=b.prototype=m.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(r){l(t,r,(function(t){return this._invoke(r,t)}))}))}function P(t,r){function e(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==T(s)&&n.call(s,"__await")?r.resolve(s.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):r.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return e("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function x(r,e,n){var o=p;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=L(u,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=f(r,e,n);if("normal"===l.type){if(o=n.done?y:h,l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=y,n.method="throw",n.arg=l.arg)}}}function L(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,L(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=f(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function _(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function k(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function A(r){if(r||""===r){var e=r[a];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(T(r)+" is not iterable")}return g.prototype=b,o(E,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=l(b,c,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===g||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(E),t},r.awrap=function(t){return{__await:t}},S(P.prototype),l(P.prototype,u,(function(){return this})),r.AsyncIterator=P,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new P(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(E),l(E,c,"Generator"),l(E,a,(function(){return this})),l(E,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=A,I.prototype={constructor:I,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return u.type="throw",u.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),d},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),k(e),d}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;k(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:A(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),d}},r}function I(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function A(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?I(Object(e),!0).forEach((function(r){D(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):I(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function D(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=T(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==T(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function U(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}var C,G=(C=k(k(k(k({},x.customizeHeaders,{}),x.customizeCookie,{}),x.customizeEvtCookie,{}),x.customizeDebugTools,{}),Object.keys(x).forEach((function(t){C[t]=L.get(t)})),C).customizeHeaders||{},H=function(){var t,r=(t=N().mark((function t(r){var e,u,l,s,f;return N().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=(0,a.P)(),!((0,n.X)()||(0,i.A)()&&"pc"===e.NEXT_PUBLIC_RUNTIME_ENV)){t.next=11;break}if(l={},o.A||null===(u=window)||void 0===u||null===(u=u.$pcApi)||void 0===u||!u.getRequestHeader){t.next=7;break}return t.next=6,null===(s=window)||void 0===s||null===(s=s.$pcApi)||void 0===s?void 0:s.getRequestHeader({url:r.url});case 6:l=t.sent;case 7:r.headers=A(A({},l),r.headers),r.metadata={startTime:performance.now()},t.next=12;break;case 11:null!==(f=r.url)&&void 0!==f&&f.startsWith("/")&&Object.keys(G).forEach((function(t){r.headers[t]=G[t]}));case 12:return c("yb-common request",{url:r.url,headers:r.headers,data:r.data}),t.abrupt("return",r);case 14:case"end":return t.stop()}}),t)})),function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){U(i,n,o,a,u,"next",t)}function u(t){U(i,n,o,a,u,"throw",t)}a(void 0)}))});return function(t){return r.apply(this,arguments)}}()},45718:(t,r,e)=>{e.d(r,{NU:()=>v,f8:()=>y});var n=e(26900),o=e(22448),i=e(11401),a=e(24994),u=e(90460),c=e(1421),l=e.n(c);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function p(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?f(Object(e),!0).forEach((function(r){h(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function h(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=s(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==s(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var v=function(){var t=(0,a.kX)();if((0,o.YB)())return t;if((0,o.Y6)()||(0,o.Qm)()||(0,o.W9)()){var r,e,u=i.gE.getAuthInfo()||{};return p(p({},t),{},h(h({},"X-ID",(null===(r=u.result)||void 0===r?void 0:r.userId)||void 0),"X-Token",(null===(e=u.result)||void 0===e?void 0:e.token)||void 0))}var c=(0,n.VZ)(),l=c.token,s=c.userId;return p(p({},t),{},h(h({},"X-ID",s),"X-Token",l))},y=function(t,r){var e,n=u.PU;null!==(e=window.location.pathname)&&void 0!==e&&e.includes("/evt")&&(n=u.Ye);var o=function(t){try{var r=(0,u.I5)(t),e=((null==r?void 0:r.getLocalQimei36())||{}).h38,n=Date.now(),o="h38=".concat(e,"×tamp=").concat(n,"&platform=web"),i=e?null==r?void 0:r.getUSKeySync("7800385",e,o):"";return h(h(h({},"X-Uskey",i?encodeURIComponent(i):""),"X-Bus-Params-Md5",l().MD5(o)),"X-Timestamp",n)}catch(t){}return null}(n);n&&o&&function(t){return(null==t?void 0:t.startsWith("/api"))&&["/user/agent/conversation/create","/chat/","/joint/login","/joint/register","/login/rapidPhoneLogin"].some((function(r){return null==t?void 0:t.includes(r)}))}(t)&&Object.assign(r,o)}},54929:(t,r,e)=>{e.d(r,{X:()=>a});var n=e(64155),o=e(17251),i=e(19341);var a=function(t){var r;if(n.A)return!1;var e=(0,i.P)();return"web"!==e.NEXT_PUBLIC_RUNTIME_ENV&&(!(0,o.A)()&&"pc"===e.NEXT_PUBLIC_RUNTIME_ENV||(!(null===(r=window)||void 0===r||!r.__TAURI__)||(t||(t=navigator.userAgent),/app\/tencent_yuanbao/i.test(t.toLowerCase()))))}},56261:(t,r,e)=>{e.d(r,{kG:()=>f});var n=e(26900),o=(e(69906),e(22448)),i=e(18025);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function c(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?u(Object(e),!0).forEach((function(r){l(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):u(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function l(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==a(r)?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}var s={"Content-Type":"application/json",withCredentials:!0,"X-Source":"event_h5"},f=function(){if((0,o.Y6)()){var t=p()||{},r=t.userId,e=t.token;return c(c({},s),{},l(l({},"X-ID",r),"X-Token",e))}if((0,o.YB)())return{"Content-Type":"application/json",withCredentials:!0};var i=(0,n.VZ)(),a=i.token,u=i.userId;return c(c({},s),{},l(l({"X-H5-AppId":"wxb308df07bbaf96e8"},"X-ID",u),"X-Token",a))},p=function(){try{var t=localStorage.getItem("cxs-token"),r=localStorage.getItem("cxs-user-id");if(t&&r)return{token:t,userId:r}}catch(t){return null}return null};i.A.create({baseURL:"",withCredentials:!0,headers:c(c({},s),{},{"X-H5-Scene":"tencent_video"}),timeout:1e4,timeoutErrorMessage:"网络异常,请稍后重试"})},64155:(t,r,e)=>{e.d(r,{A:()=>n});const n="undefined"==typeof window},69687:(t,r,e)=>{e.d(r,{B4:()=>c,Hv:()=>s,ek:()=>l,pK:()=>u});e(4795);var n=e(31519);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var r=function(t,r){if("object"!=o(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==o(r)?r:r+""}var u=function(t,r){try{t&&window.localStorage.setItem(n.D4,t),r&&window.localStorage.setItem(n.gw,r)}catch(t){}},c=function(){return{userId:window.localStorage.getItem(n.D4),token:window.localStorage.getItem(n.gw)}},l=function(){try{window.localStorage.removeItem(n.D4),window.localStorage.removeItem(n.gw)}catch(t){}},s=new(function(){return t=function t(){var r=this;!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.authPromise=new Promise((function(t,e){r.resolve=t,r.reject=e}))},(r=[{key:"waitAuth",value:function(){return this.authPromise}},{key:"setAuth",value:function(t){this.resolve(t)}},{key:"reset",value:function(){var t=this;this.authPromise=new Promise((function(r,e){t.resolve=r,t.reject=e}))}}])&&i(t.prototype,r),e&&i(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,e}())},95442:(t,r,e)=>{e.d(r,{e:()=>b,r:()=>g});var n=e(70632),o=e(70814),i=e(8687);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(){u=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(t){f=function(t,r,e){return t[r]=e}}function p(t,r,e,n){var i=r&&r.prototype instanceof b?r:b,a=Object.create(i.prototype),u=new I(n||[]);return o(a,"_invoke",{value:_(t,e,u)}),a}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var v="suspendedStart",y="suspendedYield",d="executing",m="completed",g={};function b(){}function w(){}function O(){}var j={};f(j,c,(function(){return this}));var E=Object.getPrototypeOf,S=E&&E(E(A([])));S&&S!==e&&n.call(S,c)&&(j=S);var P=O.prototype=b.prototype=Object.create(j);function x(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function L(t,r){function e(o,i,u,c){var l=h(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==a(f)&&n.call(f,"__await")?r.resolve(f.__await).then((function(t){e("next",t,u,c)}),(function(t){e("throw",t,u,c)})):r.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return e("throw",t,u,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function _(r,e,n){var o=v;return function(i,a){if(o===d)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var c=k(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=h(r,e,n);if("normal"===l.type){if(o=n.done?m:y,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}function k(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,k(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=h(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function T(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function N(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function A(r){if(r||""===r){var e=r[c];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(a(r)+" is not iterable")}return w.prototype=O,o(P,"constructor",{value:O,configurable:!0}),o(O,"constructor",{value:w,configurable:!0}),w.displayName=f(O,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===w||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,O):(t.__proto__=O,f(t,s,"GeneratorFunction")),t.prototype=Object.create(P),t},r.awrap=function(t){return{__await:t}},x(L.prototype),f(L.prototype,l,(function(){return this})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new L(p(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(P),f(P,s,"Generator"),f(P,c,(function(){return this})),f(P,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=A,I.prototype={constructor:I,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return u.type="throw",u.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),g},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),N(e),g}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;N(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:A(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}function c(t,r,e,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void e(t)}u.done?r(c):Promise.resolve(c).then(n,o)}function l(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){c(i,n,o,a,u,"next",t)}function u(t){c(i,n,o,a,u,"throw",t)}a(void 0)}))}}var s=!1,f={},p=["askChat","summaryPage"],h=new n.v,v={},y=function(){var t=l(u().mark((function t(r,e){var n,a;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n="".concat(r,"-").concat(e),!v[n]){t.next=5;break}if("pending"!==v[n].result){t.next=4;break}return t.abrupt("return",v[n].action);case 4:return t.abrupt("return","success"===v[n].result);case 5:return a=function(){var t=l(u().mark((function t(){var a;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,i.Em)({url:o.s.OPEN_CHECK_SDK_APPID,method:"POST",hideTip:!0,data:{openAppId:r,openAppUrl:e.replace(/^https?:\/\//,"")}});case 3:case 12:return v[n].result="success",t.abrupt("return",!0);case 7:if(t.prev=7,t.t0=t.catch(0),400!==(null===t.t0||void 0===t.t0||null===(a=t.t0.response)||void 0===a?void 0:a.status)){t.next=12;break}return v[n].result="fail",t.abrupt("return",!1);case 14:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}(),v[n]={action:a(),result:"pending"},t.next=9,v[n].action;case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t)})));return function(r,e){return t.apply(this,arguments)}}();function d(t){return m.apply(this,arguments)}function m(){return(m=l(u().mark((function t(r){var e,n;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("string"==typeof(n=r.data))try{n=JSON.parse(n)}catch(t){}if(null===(e=n)||void 0===e||!e.event){t.next=10;break}if(!p.includes(n.event)){t.next=9;break}return t.next=6,y(n.appid,r.origin);case 6:if(t.sent){t.next=9;break}return t.abrupt("return");case 9:h.emit(n.event,n.options||{});case 10:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var g=function(t,r){return s||(s=!0,window.addEventListener("message",d)),h.addListener(t,r),function(){h.removeListener(t,r)}};function b(t){var r=f[t.rawId];if(!r)return null;if("text/plain"===t.type){var e=new Blob(r,{type:"text/plain"}),n=new File([e],t.name,{type:"text/plain"});return delete f[t.rawId],n}return null}g("splitFile",(function(t){f[t.id]||(f[t.id]=[]),f[t.id].push(t.raw)}))}}]);
|