WXL
7 小时以前 d79ce11fcd47db138764557d214f4ea2169fb90a
1
2
3
/*! For license information please see 627.7b8c376692b5736fa802.js.LICENSE.txt */
"use strict";(self.webpackChunkhunyuan_bot=self.webpackChunkhunyuan_bot||[]).push([[627],{5245:(t,e,r)=>{r.d(e,{EE:()=>m,Iv:()=>g,Mz:()=>_,Z_:()=>E,_T:()=>b,ao:()=>S,eI:()=>L,j8:()=>w,nO:()=>P});var n=r(84367),o=r(68244),i=r(8687),a=r(66031),u=r(83739),c=r(46091),l=r(25570),s=r(80628);function f(t){return f="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},f(t)}function h(){h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),u=new x(n||[]);return o(a,"_invoke",{value:T(t,r,u)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function E(){}function S(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(j([])));O&&O!==r&&n.call(O,a)&&(w=O);var I=S.prototype=b.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,u){var c=d(t[o],t,i);if("throw"!==c.type){var l=c.arg,s=l.value;return s&&"object"==f(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,r,n){var o=p;return function(i,a){if(o===v)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=C(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===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=d(e,r,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 C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(f(e)+" is not iterable")}return E.prototype=S,o(I,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:E,configurable:!0}),E.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,l(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},P(L.prototype),l(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(I),l(I,c,"Generator"),l(I,a,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=j,x.prototype={constructor:x,reset:function(e){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),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.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,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){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&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function d(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){d(i,n,o,a,u,"next",t)}function u(t){d(i,n,o,a,u,"throw",t)}a(void 0)}))}}function y(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return v(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);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(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var m=function(t){var e=t.modelId,r=t.modelList;if(!e||r.length<=0)return null;var n,o=[],i=y(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.chatModelId===e){o.push(a);break}if(a.subModelList){var u,c=y(a.subModelList);try{for(c.s();!(u=c.n()).done;){var l=u.value;if(l.chatModelId===e){o.push(a,l);break}}}catch(t){c.e(t)}finally{c.f()}}}}catch(t){i.e(t)}finally{i.f()}return 0===o.length?null:{currentModel:o[1]||o[0],hierarchy:{model:o[0],subModel:o[1]||null}}},g=(0,n.eU)(null,(function(t,e,r){e(o.aq,(null==r?void 0:r.targetModelId)||""),null!=r&&r.reserveUserFunctions||e(o.W8,[])})),b=(0,n.eU)(null,(function(t,e){var r,n,a,c=t(o.aq),s=t(o.W8),f=t(l.Vs);e(o.Ll,{modelId:c,userFunctions:s});var h=s.find((function(t){return t===u.AH.OPEN_INTERENT_SEARCH||t===u.AH.CLOSE_INTERENT_SEARCH}));h&&e(o.MT,h);var d=t(o.bV);if("hasData"===d.state){var p=m({modelId:c,modelList:d.data.modelList});if(p){var y={modelId:p.hierarchy.model.chatModelId,subModelId:(null===(r=p.hierarchy.subModel)||void 0===r?void 0:r.chatModelId)||""},v=t(l.$B),g={};if(v.length>0){var b;if(null!=f&&null!==(b=f.internetSearch)&&void 0!==b&&b.functionList){var E=v.find((function(t){return Object.values(u.AH).includes(t)}));E?g.internetSearch=E:v.includes(u.vb.INTERENT_SEARCH)&&(g.internetSearch=u.AH.AUTO_INTERENT_SEARCH)}v.forEach((function(t){Object.values(u.AH).includes(t)||(g[t]=!0)}))}y.supportFunctions=g,e(o.hl,y);var S={source:"web",chatModelId:p.hierarchy.model.chatModelId,chatSubModelId:(null===(n=p.hierarchy.subModel)||void 0===n?void 0:n.chatModelId)||"",supportInternetSearch:s.some((function(t){return t===u.vb.INTERENT_SEARCH||t===u.AH.OPEN_INTERENT_SEARCH||t===u.AH.AUTO_INTERENT_SEARCH}))};if(null!=f&&null!==(a=f.internetSearch)&&void 0!==a&&a.functionList){var w=v.find((function(t){return Object.values(u.AH).includes(t)}));w?S.internetSearch=w:v.includes(u.vb.INTERENT_SEARCH)&&(S.internetSearch=u.AH.AUTO_INTERENT_SEARCH)}else v.includes(u.vb.INTERENT_SEARCH)?S.internetSearch=u.vb.INTERENT_SEARCH:S.internetSearch=void 0;(0,i.Em)({url:"/api/userinfo/updateuserdefautmodelconf",data:S})}}})),E=(0,n.eU)(null,(function(t,e,r){var n,a,s,f=r.modelId,h=r.updateServer,d=void 0===h||h,p=r.skipLinkage,y=void 0!==p&&p,v=t(o.Pt),g=t(o.bV);if("hasData"===g.state){var E=m({modelId:f,modelList:g.data.modelList});if(E){e(o.aq,f);var S=E.currentModel,w=t(c.w);if("default"===(null===(n=w.appBaseConfig)||void 0===n?void 0:n.internetSeekState)&&!y){var _=[];S.internetSearch?_=[S.internetSearch.chooseDefault]:S.supportFunctions&&(_=S.supportFunctions.filter((function(t){return t.chooseDefault})).map((function(t){return t.functionId}))),e(o.W8,_)}var O={modelId:E.hierarchy.model.chatModelId,subModelId:(null===(a=E.hierarchy.subModel)||void 0===a?void 0:a.chatModelId)||""},I=t(l.$B);if("session"===(null===(s=w.appBaseConfig)||void 0===s?void 0:s.internetSeekState)){var P,L={};if(I.length>0)if(null!==(P=S.internetSearch)&&void 0!==P&&P.functionList){var T=I.find((function(t){return Object.values(u.AH).includes(t)}));T?L.internetSearch=T:I.includes(u.vb.INTERENT_SEARCH)&&(L.internetSearch=u.AH.AUTO_INTERENT_SEARCH)}else I.forEach((function(t){Object.values(u.AH).includes(t)||(L[t]=!0)})),I.includes(u.vb.INTERENT_SEARCH)&&(L.internetSearch=u.vb.INTERENT_SEARCH);O.supportFunctions=L}e(b),v&&d&&(0,i.Em)({url:"/api/user/agent/conversation/updateModel",data:{cid:v,chatModelId:f,chatModelExtInfo:JSON.stringify(O)}})}}})),S=(0,n.eU)(null,(function(t,e,r){var n,a,l=r.userFunctions,s=t(o.aq),f=t(o.Pt),h=t(o.bV);if("hasData"===h.state){var d=m({modelId:s,modelList:h.data.modelList});if(d){var p=t(c.w);e(o.W8,l);var y={modelId:d.hierarchy.model.chatModelId,subModelId:(null===(n=d.hierarchy.subModel)||void 0===n?void 0:n.chatModelId)||""};if(e(b),"session"===(null===(a=p.appBaseConfig)||void 0===a?void 0:a.internetSeekState)){var v,g={};if(null!==(v=d.currentModel.internetSearch)&&void 0!==v&&v.functionList){var E=l.find((function(t){return Object.values(u.AH).includes(t)}));E?g.internetSearch=E:l.includes(u.vb.INTERENT_SEARCH)&&(g.internetSearch=u.AH.AUTO_INTERENT_SEARCH)}else l.forEach((function(t){Object.values(u.AH).includes(t)||(g[t]=!0)})),l.includes(u.vb.INTERENT_SEARCH)&&(g.internetSearch=u.vb.INTERENT_SEARCH);if(y.supportFunctions=g,!f)return;(0,i.Em)({url:"/api/user/agent/conversation/updateModel",data:{cid:f,chatModelId:d.currentModel.chatModelId,chatModelExtInfo:JSON.stringify(y)}})}}}})),w=(0,n.eU)(null,(function(t,e,r){var n,i,a=r.modelId,u=r.chatModelExtInfo,l=t(o.bV);if("hasData"===l.state){var s=m({modelId:a,modelList:l.data.modelList});if(!s)return null;var f=t(c.w);if("session"===(null===(n=f.appBaseConfig)||void 0===n?void 0:n.internetSeekState)&&u){var h=JSON.parse(u),d=[];return h.supportFunctions&&Object.keys(h.supportFunctions).forEach((function(t){"internetSearch"===t?h.supportFunctions[t]&&d.push(h.supportFunctions[t]):h.supportFunctions[t]&&d.push(t)})),void e(o.W8,d)}if("default"===(null===(i=f.appBaseConfig)||void 0===i?void 0:i.internetSeekState)||!u){var p=s.currentModel,y=[];p.internetSearch?y=[p.internetSearch.chooseDefault]:p.supportFunctions&&(y=p.supportFunctions.filter((function(t){return t.chooseDefault})).map((function(t){return t.functionId}))),e(o.W8,y)}}})),_=(0,n.eU)(null,(function(t,e){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).ignoreLastSelect,n=void 0!==r&&r,i=t(o.Ll),a=t(l.I0),u="",c=[];i&&!n?(u=i.modelId,c=i.userFunctions):a&&(u=a.chatModelId,c=(a.supportFunctions||[]).filter((function(t){return t.chooseDefault})).map((function(t){return t.functionId}))),e(o.aq,u),e(o.W8,c)})),O=function(){var t=p(h().mark((function t(){var e,r,n,o=arguments;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.length>0&&void 0!==o[0]&&o[0],t.prev=1,t.next=4,(0,i.Em)({apiType:a.Bd.GET_USER_CONFIG,data:{scene:e?1:0}});case 4:return n=t.sent,t.abrupt("return",(null==n||null===(r=n.userConfig)||void 0===r||null===(r=r.modelFunctionConfig)||void 0===r||null===(r=r.configMap)||void 0===r?void 0:r.web)||void 0);case 8:return t.prev=8,t.t0=t.catch(1),t.abrupt("return",void 0);case 11:case"end":return t.stop()}}),t,null,[[1,8]])})));return function(){return t.apply(this,arguments)}}(),I=null,P=(0,n.eU)(null,function(){var t=p(h().mark((function t(e,r,n){var i,a,c,l,f,d,p,y,v,m,g,b,E;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.isColdStart,a=void 0!==i&&i,c=n.useCache,l=void 0!==c&&c,f="",d="",e(s.bk)){t.next=6;break}return t.abrupt("return",{modelId:f,modelExtInfo:d});case 6:if(!l||!I){t.next=8;break}return t.abrupt("return",I);case 8:return t.next=10,O(a);case 10:return p=t.sent,y=e(o.hl),v=[],null!=p&&p.chatModelId?(f=p.chatSubModelId?p.chatSubModelId:p.chatModelId,m={modelId:p.chatModelId,subModelId:p.chatSubModelId||""},g={},!0===p.supportInternetSearch&&(g.supportInternetSearch=!0,v.push("supportInternetSearch")),p.internetSearch&&(g.internetSearch=p.internetSearch,v.push(p.internetSearch)),m.supportFunctions=g,d=JSON.stringify(m),b=null!=p&&p.previousInternetSearch&&Object.values(u.AH).includes(p.previousInternetSearch)?p.previousInternetSearch:null,r(o.MT,b)):null!=y&&y.modelId&&((E=y.supportFunctions)&&Object.keys(E).forEach((function(t){t===u.AH.AUTO_INTERENT_SEARCH||t===u.AH.OPEN_INTERENT_SEARCH||u.AH.CLOSE_INTERENT_SEARCH,E[t]&&v.push(t)})),f=null!=y&&y.subModelId?null==y?void 0:y.subModelId:null==y?void 0:y.modelId,d=JSON.stringify(y)),r(o.Ll,{modelId:f,userFunctions:v}),I=Promise.resolve({modelId:f,modelExtInfo:d}),t.abrupt("return",{modelId:f,modelExtInfo:d});case 17:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()),L=(0,n.eU)(null,(function(t,e,r){var n=r.id;e(o.Mm,n)}))},6683:(t,e,r)=>{r.d(e,{GQ:()=>v,IQ:()=>d,Jn:()=>E,NQ:()=>g,_Z:()=>b,ax:()=>m,ie:()=>S,jT:()=>y,qd:()=>w,rk:()=>_});var n=r(84367),o=r(97741),i=r(5775),a=r(43721),u=r(46091),c=r(80628);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,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d=function(t){return t.citation_region="citation_region",t.main_region="main_region",t}({}),p=112;function y(){var t,e=(0,i.YW)("/:path(chat|deepsearch-subpage)/:agentId/:chatId?")(location.pathname),r=(0,n.zp)().get(u.w),o=(0,n.zp)().get(c.bk);return e&&e.params.agentId===a.kv&&null!==(t=r.appBaseConfig)&&void 0!==t&&t.enableTempConv&&null!=o&&o.auth?p:68}var v={drawerAppEntry:!1,meCreateAgentEntry:!0,meDigitalCloneEntry:!0,searchEntry:!1,sessionAiDrawPicEntry:!0,sessionAiGalleryEntry:!0,sessionSearchPicEntry:!0,useAgentListEntry:!1,agentSkillsNewUser:!1,userWebFavorite:!1,sessionDeepSearchEntry:!1,sessionAiWritingEntry:!1,sessionEditTencentDocEntry:!1,sessionImageAiEditEntry:!1},m=(0,n.eU)({navMode:g(),navOpened:!0,noMainAgentSession:!1,finalAiAppSwitch:v});function g(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.innerWidth)<768?"overlay":"push"}var b=(0,n.eU)(null,(function(t,e,r){e(m,(function(t){return f(f({},t),{},{navOpened:r})}))})),E=(0,o.tG)("atom_layout_last_opened_for_pc",!0),S=(0,n.eU)(!1),w=(0,n.eU)(!1),_=(0,n.eU)(void 0)},8491:(t,e,r)=>{r.d(e,{s:()=>n});var n=function(t){return t.EXPOSE_GENERAL_CHAT="EXPOSE_GENERAL_CHAT",t.EXPOSE_INSPIRE_CHAT="EXPOSE_INSPIRE_CHAT",t.EXPOSE_INSPIRE_CHAT_SCENE="EXPOSE_INSPIRE_CHAT_SCENE",t.EXPOSE_INSPIRE_CHAT_TEMPLATE="EXPOSE_INSPIRE_CHAT_TEMPLATE",t.CLICK_INSPIRE_TAB="CLICK_INSPIRE_TAB",t.CLICK_INSPIRE_TOPIC="CLICK_INSPIRE_TOPIC",t.CLICK_INSPIRE_SCENE="CLICK_INSPIRE_SCENE",t.CLICK_INSPIRE_CARD_PROMPT="CLICK_INSPIRE_CARD_PROMPT",t.CLICK_INSPIRE_CARD_EXPAND="CLICK_INSPIRE_CARD_EXPAND",t.CLICK_INSPIRE_CARD_COPY="CLICK_INSPIRE_CARD_COPY",t.CLICK_INSPIRE_NEW_SESSION="CLICK_INSPIRE_NEW_SESSION",t.INSPIRE_SESSION_ASK="INSPIRE_SESSION_ASK",t.SESSION_ASK="SESSION_ASK",t.CLICK_CHAT_STOP="CLICK_CHAT_STOP",t.CLICK_CHAT_REPEAT="CLICK_CHAT_REPEAT",t.CLICK_CHAT_CONTINUE="CLICK_CHAT_CONTINUE",t.CLICK_COPY="CLICK_COPY",t.CLICK_CLEAR_CONTEXT="CLICK_CLEAR_CONTEXT",t.CLICK_LIKE="CLICK_LIKE",t.CLICK_DISLIKE="CLICK_DISLIKE",t.SHOW_RECOMMEND_PROMPT="SHOW_RECOMMEND_PROMPT",t.CLICK_RECOMMEND_PROMPT="CLICK_RECOMMEND_PROMPT",t.SHOW_EXAMPLE_PROMPT="SHOW_EXAMPLE_PROMPT",t.CLICK_EXAMPLE_SWITCH="CLICK_EXAMPLE_SWITCH",t.CLICK_EXAMPLE_PROMPT="CLICK_EXAMPLE_PROMPT",t.SHOW_INSPIRATION_RECOMMEND="SHOW_INSPIRATION_RECOMMEND",t.CLICK_INSPIRATION_RECOMMEND="CLICK_INSPIRATION_RECOMMEND",t.CLICK_ADD_CUSTOM_PROMPT="CLICK_ADD_CUSTOM_PROMPT",t.ADD_CUSTOM_PROMPT="ADD_CUSTOM_PROMPT",t.INPUT_CUSTOM_PROMPT="INPUT_CUSTOM_PROMPT",t.CLICK_SAVE_CUSTOM_PROMPT="CLICK_SAVE_CUSTOM_PROMPT",t.SAVE_CUSTOM_PROMPT="SAVE_CUSTOM_PROMPT",t.CLICK_SHARE="CLICK_SHARE",t.CLICK_COPY_SHARE_LINK="CLICK_COPY_SHARE_LINK",t.SHOW_SHARE="SHOW_SHARE",t.CLICK_SHARE_TO_IMAGE="CLICK_SHARE_TO_IMAGE",t.CLICK_PLUGIN="CLICK_PLUGIN",t.CLICK_PLUGIN_DIALOG="CLICK_PLUGIN_DIALOG",t.CLICK_CUSTOM_PROMPT="CLICK_CUSTOM_PROMPT",t.PV="PV",t.OnView="OnView",t.OnClick="OnClick",t.OnPageClick="OnPageClick",t}({})},10551:(t,e,r)=>{r.d(e,{a:()=>n});r(91207),r(31519),r(85803),r(43099);var n={defaults:{headers:{"X-Requested-With":"XMLHttpRequest",chat_version:"v1"}}}},11079:(t,e,r)=>{r.d(e,{E:()=>v});var n=r(40929),o=r(59123),i=r(34302),a=r(44706),u=r(43572);function c(t){return c="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},c(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){f(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(){h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),u=new x(n||[]);return o(a,"_invoke",{value:T(t,r,u)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function E(){}function S(){}var w={};s(w,a,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(j([])));O&&O!==r&&n.call(O,a)&&(w=O);var I=S.prototype=b.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,u){var l=d(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==c(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,r,n){var o=p;return function(i,a){if(o===v)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=C(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===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=d(e,r,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 C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(c(e)+" is not iterable")}return E.prototype=S,o(I,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:E,configurable:!0}),E.displayName=s(S,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,s(t,l,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},P(L.prototype),s(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(I),s(I,l,"Generator"),s(I,a,(function(){return this})),s(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=j,x.prototype={constructor:x,reset:function(e){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),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.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,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){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&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function d(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){d(i,n,o,a,u,"next",t)}function u(t){d(i,n,o,a,u,"throw",t)}a(void 0)}))}}var y=(0,n.qN)({headers:{"X-Requested-With":"XMLHttpRequest"}});y.interceptors.request.use(function(){var t=p(h().mark((function t(e){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,a.d)(e);case 2:return t.abrupt("return",e);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),y.interceptors.response.use(function(){var t=p(h().mark((function t(e){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,i.Vd)(e));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(t){return Promise.reject(t)}));var v=function(){var t=p(h().mark((function t(e){var r,n,i,a;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.apiType,n=e.method,i=void 0===n?"POST":n,a=(null==e?void 0:e.url)||"",r&&(a=o.y[r]),t.abrupt("return",y.request(s(s({},e),{},{method:i,headers:{"X-Language":(0,u.getLangForRequestHeader)()},url:a})));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},14205:(t,e,r)=>{r.d(e,{m:()=>n});var n=function(t){return t.Default="web",t.OfficialWeb="official_web",t.ShareWeb="share_web",t.OfficialWebNotlogin="official_web_not_login",t.OfficialWebNotloginModal="official_web_not_login_modal",t}({})},21768:(t,e,r)=>{r.d(e,{d:()=>n});r(85428);var n=function(){return new Promise((function(t){requestAnimationFrame((function(){requestAnimationFrame((function(){return t()}))}))}))}},22901:(t,e,r)=>{r.d(e,{Ay:()=>l,LQ:()=>c,et:()=>a});var n=r(80628),o=r(42239),i=r(84367),a=function(){sessionStorage.setItem("PAGE_STAY_START_TIME",String(Date.now()))},u=function(){return sessionStorage.getItem("PAGE_STAY_START_TIME")},c=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(u()){var e=(0,i.zp)().get(n.bk);if(null!=e&&e.auth){var r=Date.now()-Number(u());r<0||((0,o.Ay)("AppOut",{HY58:r},t),sessionStorage.removeItem("PAGE_STAY_START_TIME"))}}};const l=function(){a();document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState?c():a()}));window.addEventListener("beforeunload",(function(){c(!0)}))}},23670:t=>{t.exports=n;var e,r=/\/|\./;function n(t,e){r.test(t)||(t="google/protobuf/"+t+".proto",e={nested:{google:{nested:{protobuf:{nested:e}}}}}),n[t]=e}n("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),n("duration",{Duration:e={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),n("timestamp",{Timestamp:e}),n("empty",{Empty:{fields:{}}}),n("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),n("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),n("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),n.get=function(t){return n[t]||null}},25570:(t,e,r)=>{r.d(e,{$B:()=>b,AX:()=>I,I0:()=>w,IJ:()=>m,KO:()=>E,Vs:()=>v,Y0:()=>S,h1:()=>P,q:()=>_,qt:()=>L,w8:()=>g});var n=r(43721),o=r(75e3),i=r(84367),a=r(68244),u=r(83739),c=r(37984);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,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return p(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);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(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(u)throw i}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var y=[n.kv],v=(0,i.eU)((function(t){var e=t(a.aq),r=t(a.bV),n=t(a.aU),i=(0,o.cP)().show_model_selector;if("hasData"!==r.state||!e)return null;if(!i.visible)return null;if(!y.includes(n))return null;var u,l=d(r.data.modelList);try{for(l.s();!(u=l.n()).done;){var s=u.value;if(s.chatModelId===e)return(0,c.Mo)()?f(f({},s),{},{internetSearch:void 0}):s;if(s.subModelList){var h,p=d(s.subModelList);try{for(p.s();!(h=p.n()).done;){var v=h.value;if(v.chatModelId===e)return(0,c.Mo)()?f(f({},v),{},{internetSearch:void 0}):v}}catch(t){p.e(t)}finally{p.f()}}}}catch(t){l.e(t)}finally{l.f()}return null})),m=(0,i.eU)((function(t){var e=t(v),r=t(a.aU),i=(0,o.cP)().show_model_selector;return!e||(!y.includes(r)||(!i.visible||e.chatModelId===n.VP))})),g=(0,i.eU)((function(t){var e=t(a.bV),r=t(a.aU),n=t(a.nO),i=(0,o.cP)().show_model_selector;return"hasData"===e.state&&(!n&&(!!y.includes(r)&&(!!i.visible&&e.data.modelList.length>1)))})),b=(0,i.eU)((function(t){var e,r=t(v),n=t(a.W8);return r&&n.length>0?null!==(e=r.internetSearch)&&void 0!==e&&e.functionList?n.filter((function(t){var e;return null===(e=r.internetSearch)||void 0===e?void 0:e.functionList.some((function(e){return e.functionId===t}))})):n.filter((function(t){var e;return null===(e=r.supportFunctions)||void 0===e?void 0:e.some((function(e){return e.functionId===t}))})):[]})),E=(0,i.eU)((function(t){var e=t(v),r=t(a.aU),n=(0,o.cP)().show_model_selector;return y.includes(r)&&n.visible&&(null==e?void 0:e.chatModelId)||""})),S=(0,i.eU)((function(t){var e=t(v),r=t(a.bV);if(!e||"hasData"!==r.state)return null;var n,o=d(r.data.modelList);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.chatModelId===e.chatModelId)return i;if(i.subModelList){var u,c=d(i.subModelList);try{for(c.s();!(u=c.n()).done;){if(u.value.chatModelId===e.chatModelId)return i}}catch(t){c.e(t)}finally{c.f()}}}}catch(t){o.e(t)}finally{o.f()}return null})),w=(0,i.eU)((function(t){var e=t(a.bV);if("hasData"!==e.state)return null;var r,n=d(e.data.modelList);try{for(n.s();!(r=n.n()).done;){var o=r.value;if(o.subModelList){var i,u=d(o.subModelList);try{for(u.s();!(i=u.n()).done;){var c=i.value;if(c.chooseDefault)return c}}catch(t){u.e(t)}finally{u.f()}}if(o.chooseDefault)return o}}catch(t){n.e(t)}finally{n.f()}return null})),_=(0,i.eU)((function(t){var e=t(v),r=t(b);return e?0===r.length?[{id:e.chatModelId,name:e.modelName,notSupportInputControl:e.notSupportInputControl}]:r.reduce((function(t,r){var n=(e.internetSearch?e.internetSearch.functionList||[]:e.supportFunctions||[]).find((function(t){return t.functionId===r}));return n&&n.functionId!==u.vb.INTERENT_SEARCH&&n.functionId!==u.AH.OPEN_INTERENT_SEARCH&&n.functionId!==u.AH.AUTO_INTERENT_SEARCH&&n.functionId!==u.AH.CLOSE_INTERENT_SEARCH?t.concat({id:n.functionId,name:n.functionName,notSupportInputControl:n.notSupportInputControl}):t}),[]):[]})),O=[],I=(0,i.eU)((function(t){var e=t(v),r=t(a.W8);return r.length&&(null!=e&&e.supportFunctions||null!=e&&e.internetSearch)?(e.internetSearch?e.internetSearch.functionList||[]:e.supportFunctions||[]).filter((function(t){return r.includes(t.functionId)})):O})),P=(0,i.eU)((function(t){var e=t(w);return(null==e?void 0:e.chatModelId)||n.VP})),L=(0,i.eU)(!1);(0,i.eU)(!1)},28104:(t,e,r)=>{r.d(e,{Q:()=>h});var n=r(68330),o=r.n(n),i=r(28496),a=r(22448),u=r(37984);function c(t){return c="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},c(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f=(0,i.lQ)()===i.bM.PROD,h={ins:null,init:function(){var t,e,r,n=(0,u.Mo)()?(0,a.lZ)()===i.bM.PROD?"SDK-28aaae6fc067892fc48e":"SDK-4210e5790d107914b3c3":f?"SDK-7afc7ffe481ccff27ae6":"SDK-886d05beea17e0644be7",c=JSON.stringify({browserWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,browserHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,onLine:navigator.onLine,effectiveType:null===(t=navigator)||void 0===t||null===(t=t.connection)||void 0===t?void 0:t.effectiveType,rtt:null===(e=navigator)||void 0===e||null===(e=e.connection)||void 0===e?void 0:e.rtt,downlink:null===(r=navigator)||void 0===r||null===(r=r.connection)||void 0===r?void 0:r.downlink}),h=new(o())({id:n,hostUrl:{url:"https://galileotelemetry.tencent.com/collect"},plugin:{pv:!0,aid:!0,error:!0,device:!0,close:!0,pagePerformance:!0,webVitals:!0,fId:!0,ie:!0,spa:!0,session:!0,api:{apiDetail:!0,retCodeHandler:function(t,e,r){var n=r.status;return{isErr:200!==n,code:n}},resHeaders:["X-Traceid"],reqHeaders:["X-Token","X-Source"]},apiSpeed:!0,assetSpeed:!0},extField:{ext3:c},reportImmediately:!0}),d=h.reportEvent.bind(h);return h.reportEvent=function(t){return d(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t))},this.ins=h,this.ins}}},31739:(t,e,r)=>{r.d(e,{MY:()=>n});var n=function(t){return t[t.DEFAULT=0]="DEFAULT",t[t.NEW=1]="NEW",t}({})},35299:(t,e,r)=>{r.d(e,{_:()=>n});var n={coolingPeriodInconsistent:"40003"}},46091:(t,e,r)=>{r.d(e,{w:()=>u});var n=r(84367),o=r(52338),i=r(56301),a=r(31739),u=(0,n.eU)({plugins:[],promptExamples:[],feedbackCodeConfig:(0,o.kE)(),messageText:{imgGenerating:""},inspiration:{inspirations:[],inspirationTags:[],group:[]},competitionModelMetaInfo:[],greetings:i.GQ,guidance:i.GQ,multimodalExamples:[],privilege:null,platformProduction:[],newyear_promotion_status:0,maxConvRound:{default:30},citationStyle:a.MY.DEFAULT,appBaseConfig:{citationStyle:a.MY.DEFAULT,disableUserAvatar:!1,internetSeekState:"default",conversationModelSwitchGuide:{rules:[]},appTipRound:10,showAppDownloadTips:0,downloadHint:{downloadContent:"如需更快的回答体验,App专属优化已准备就绪",downloadButton:"下载App",downloadButtonH5:"点击下载"},modelSwitchTip:{},enableTempConv:!1,tempConvNotice:""},interestTags:[]})},52338:(t,e,r)=>{r.d(e,{HO:()=>P,Hy:()=>I,kE:()=>_});var n=r(66031),o=r(31519),i=r(71406),a=r(8687),u=r(10551),c=r(77014),l=r(85803);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 f=["feedbackCodeConfig","plugins","inspirationTags","inspirations","competitionModelMetaInfo","multimodalExamples","feedbackCodeConfigV2"];function h(){h=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),u=new x(n||[]);return o(a,"_invoke",{value:T(t,r,u)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function E(){}function S(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(j([])));O&&O!==r&&n.call(O,a)&&(w=O);var I=S.prototype=b.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,u){var c=d(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==s(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,r,n){var o=p;return function(i,a){if(o===v)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=C(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===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=d(e,r,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 C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(s(e)+" is not iterable")}return E.prototype=S,o(I,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:E,configurable:!0}),E.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,l(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},P(L.prototype),l(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(I),l(I,c,"Generator"),l(I,a,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=j,x.prototype={constructor:x,reset:function(e){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),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.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,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){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&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function d(t){return function(t){if(Array.isArray(t))return w(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||S(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(-1!==e.indexOf(n))continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],-1===e.indexOf(r)&&{}.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function y(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function v(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);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)}))}}function m(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?m(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||S(t,e)||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 S(t,e){if(t){if("string"==typeof t)return w(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w(t,e):void 0}}function w(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}Object.keys(a.qY).forEach((function(t){u.a.defaults.headers[t]=a.qY[t],c.B.defaults.headers[t]=a.qY[t]}));var _=function(){return{imageWithText:{likeDts:[],dislikeDts:[]},general:{likeDts:[],dislikeDts:[]},feedbackCode:{}}},O=function(t,e){for(var r=_(),n=function(){var t=E(i[o],2),e=t[0];t[1].forEach((function(t){var n={title:t.title,dts:[]};Object.entries(t.code).forEach((function(e){var o=E(e,2),i=o[0],a=o[1];n.dts.push({id:Number(i),title:a}),r.feedbackCode[i]="".concat(t.title," - ").concat(a)})),"text2imageFeedbackCode"===e?-1===t.type?r.imageWithText.dislikeDts.push(n):1===t.type&&r.imageWithText.likeDts.push(n):"text2textFeedbackCode"===e&&(-1===t.type?r.general.dislikeDts.push(n):1===t.type&&r.general.likeDts.push(n))}))},o=0,i=Object.entries(t);o<i.length;o++)n();return r.feedbackCode=g(g({},r.feedbackCode),e),r},I=function(t,e){t&&(a.KJ.defaults.headers["T-UserID"]=t,u.a.defaults.headers["T-UserID"]=t,a.KJ.defaults.headers["X-ID"]=t,u.a.defaults.headers["X-ID"]=t),a.KJ.defaults.headers["X-Source"]=e?"h5":"web",c.B.defaults.headers["X-Source"]=e?"h5":"web"},P=function(){var t=v(h().mark((function t(){var e,r,u,c,s,y,v,m,b,E,S,w,_,I,P,L,T,C,A,N,x,j,R,M,k,D,H;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=null,r=Date.now(),t.prev=2,null===(u=l.fQ.ins)||void 0===u||u.infoAll({type:"api_start",url:"/api/info/general",timestamp:r}),t.next=6,(0,a.Em)({apiType:n.Bd.API_INFO_GENERAL,method:"get",errorMessage:"拉取配置信息失败,请稍后重试"});case 6:e=t.sent,null===(c=l.fQ.ins)||void 0===c||c.infoAll({type:"api_finish",url:"/api/info/general",timestamp:Date.now(),duration:Date.now()-r}),t.next=14;break;case 10:throw t.prev=10,t.t0=t.catch(2),null===(s=l.fQ.ins)||void 0===s||s.error({type:"api_error",url:"/api/info/general",timestamp:Date.now(),duration:Date.now()-r,error:t.t0}),t.t0;case 14:if(v=(y=e).feedbackCodeConfig,m=y.plugins,b=y.inspirationTags,E=y.inspirations,S=y.competitionModelMetaInfo,w=void 0===S?[]:S,_=y.multimodalExamples,I=y.feedbackCodeConfigV2,P=p(y,f),L=d(b),T=d(E),C={},T.forEach((function(t){C[t.tag]=C[t.tag]||[],C[t.tag].push(t)})),A=(A=L.map((function(t){return{tag:t,children:(C[t].sort((function(t,e){return t.idx-e.idx}))||[]).filter((function(t){return t.visible}))}}))).filter((function(t){return t.children.length>0})),N=m.filter((function(t){return"all"===t.show||"web"===t.show})),x=d(w),j=x.findIndex((function(t){return t.modelId===o.Sk})),!(x.length>0&&-1===j)){t.next=26;break}throw new Error("服务异常,请稍后重试");case 26:return R=x.splice(j,1)[0],x.unshift(R),M=(_||[]).reduce((function(t,e){var r=e.content,n=(0,i.u9)(r);return"image"===n.type||"video"===n.type?t.concat(n):t}),[]),k=g(g({},P),{},{plugins:N,feedbackCodeConfig:O(I,v),inspiration:{inspirations:E,inspirationTags:L,group:A},competitionModelMetaInfo:x,multimodalExamples:M,platformProduction:P.platformProduction||[],maxConvRound:P.maxConvRound||{default:30}}),D=N.find((function(t){return t.default})),H={id:"",default:""},D&&(H={default:D.id,id:D.id}),t.abrupt("return",{generalInfo:k,pluginValue:H});case 34:case"end":return t.stop()}}),t,null,[[2,10]])})));return function(){return t.apply(this,arguments)}}()},53550:(t,e,r)=>{r.d(e,{em:()=>w,EX:()=>_,G_:()=>E});var n=r(28496),o=r(26093),i=r(4306),a=r(30225);const u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.isEqual,n=void 0===r?a.A:r,o=e.cachePromiseRejection,i=void 0===o||o,u=null;function c(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if(u&&u.lastThis===this&&n(r,u.lastArgs))return u.lastResult;var a,c=t.apply(this,r);return i||(a=null==c?void 0:c.catch,"[object Function]"!==Object.prototype.toString.call(a))||c.catch((function(){u=null})),u={lastResult:c,lastArgs:r,lastThis:this},c}return c.clear=function(){u=null},c};function c(t){return c="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},c(t)}function l(){l=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),u=new x(n||[]);return o(a,"_invoke",{value:T(t,r,u)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function E(){}function S(){}var w={};f(w,a,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(j([])));O&&O!==r&&n.call(O,a)&&(w=O);var I=S.prototype=b.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,a,u){var l=d(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==c(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,r,n){var o=p;return function(i,a){if(o===v)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=C(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===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=d(e,r,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 C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(c(e)+" is not iterable")}return E.prototype=S,o(I,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:E,configurable:!0}),E.displayName=f(S,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,f(t,s,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},P(L.prototype),f(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(I),f(I,s,"Generator"),f(I,a,(function(){return this})),f(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=j,x.prototype={constructor:x,reset:function(e){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),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.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,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){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&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function p(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){d(i,n,o,a,u,"next",t)}function u(t){d(i,n,o,a,u,"throw",t)}a(void 0)}))}}var y="d82d203512",v="31e82e99-df5c-4c16-a2c9-0ab5df513821",m=(0,n._$)(),g={systemType:i.uu.CONFIG,appID:y,appToken:v,env:"test"===m?i.o9.TEST:"prerelease"===m?"101293":i.o9.PROD,target:i.We.PROJECT,guid:"",usePolaris:!1},b=new i.pk(g),E=function(){var t=p(l().mark((function t(e,r){var n,a;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=3,b.pull(f({pullType:i.su.SINGLE,customProperties:{clientLang:(0,o.qA)()},properties:{appVersion:"0.0.0",guid:r},guid:r},e));case 3:if(0!==(null==(n=t.sent)?void 0:n.code)){t.next=7;break}return t.abrupt("return",null==n||null===(a=n.configs)||void 0===a?void 0:a.map((function(t){var e;return t.value=JSON.parse(null!==(e=null==t?void 0:t.value)&&void 0!==e?e:"{}"),t})));case 7:return t.abrupt("return",[]);case 8:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),S=function(t,e,r){var n,o,i=null==t?void 0:t.find((function(t){return t.key===e}));return(null==i||null===(n=i.value)||void 0===n?void 0:n.config_value)===r&&1===(null==i||null===(o=i.value)||void 0===o?void 0:o.switch_state)},w=function(){var t=p(l().mark((function t(e,r,n){var o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,E({key:e},n).catch((function(){return null}));case 2:return o=t.sent,t.abrupt("return",S(o,e,r));case 4:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),_=u(w)},59677:(t,e,r)=>{r.d(e,{_:()=>n,r:()=>o});var n=function(t){return t[t.AUDITING=1]="AUDITING",t[t.PASS=2]="PASS",t[t.REJECT=3]="REJECT",t[t.SEAL=4]="SEAL",t}({}),o=function(t){return t.INTERNAL="internal",t.EXTERNAL="external",t.TEAM="team",t}({})},63457:(t,e,r)=>{r.d(e,{DI:()=>c,MQ:()=>i,a8:()=>o,gl:()=>a,jq:()=>u});var n=r(84367),o=function(t){return t.HANDSHARE="get-handshake",t.JOINTEAM="join-team",t.CREATE_TEAM_TIPS="create-team-tips",t.TEAM_GUID="team-guide",t.EMPTY="empty",t}({}),i=(0,n.eU)(!1),a=(0,n.eU)(new Map),u=(0,n.eU)(o.EMPTY),c=(0,n.eU)(!1)},65026:(t,e,r)=>{r.d(e,{V:()=>c});r(7378);var n=r(85428);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,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function c(t){var e=t.type,r=t.style,o=t.onClick,i=t.size,u=t.classNames;return(0,n.jsx)("span",{style:a(a({},r),i?{fontSize:i}:{}),className:"yb-icon iconfont-yb icon-yb-".concat(e," ").concat(null==u?void 0:u.join(" ")),onClick:o})}},65706:(t,e,r)=>{r.d(e,{a:()=>i,g:()=>a});var n=r(84367),o=r(63457),i=(0,n.eU)(null,(function(t,e,r){void 0!==(null==r?void 0:r.drawerAvatarRedDotSwitch)&&e(o.MQ,!(null==r||!r.drawerAvatarRedDotSwitch)&&r.drawerAvatarRedDotSwitch),void 0!==(null==r?void 0:r.createTeamRedDotSwitch)&&e(o.DI,!(null==r||!r.createTeamRedDotSwitch)&&r.createTeamRedDotSwitch),null!=r&&r.teamAccountRedDotMap&&e(o.gl,(function(){var t=new Map;return r.teamAccountRedDotMap.forEach((function(e,r){!0===e&&t.set(r,!0)})),t})),null!=r&&r.teamTips&&e(o.jq,null==r?void 0:r.teamTips)})),a=(0,n.eU)((function(t){return Array.from(t(o.gl).keys())}))},68244:(t,e,r)=>{r.d(e,{E$:()=>M,Gw:()=>A,I8:()=>T,LU:()=>H,Ll:()=>L,MT:()=>k,Mm:()=>U,On:()=>C,Pt:()=>g,TY:()=>x,W8:()=>_,X:()=>D,aU:()=>b,aq:()=>m,bV:()=>P,hl:()=>I,lT:()=>S,nG:()=>j,nO:()=>E,op:()=>w,ot:()=>N,pG:()=>R});var n=r(97741),o=r(84367),i=r(66031),a=r(8687),u=r(83739),c=r(43721),l=r(80628),s=r(22448),f=r(85803);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 d(){d=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),u=new x(n||[]);return o(a,"_invoke",{value:T(t,r,u)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function E(){}function S(){}var w={};l(w,a,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(j([])));O&&O!==r&&n.call(O,a)&&(w=O);var I=S.prototype=b.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(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"==h(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(s).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,r,n){var o=p;return function(i,a){if(o===v)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=C(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===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=f(e,r,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 C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(h(e)+" is not iterable")}return E.prototype=S,o(I,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:E,configurable:!0}),E.displayName=l(S,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,l(t,c,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},P(L.prototype),l(L.prototype,u,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(I),l(I,c,"Generator"),l(I,a,(function(){return this})),l(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=j,x.prototype={constructor:x,reset:function(e){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),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.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,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){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&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function p(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}var y=function(){var t,e=(t=d().mark((function t(e){var r,n;return d().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e(l.bk)){t.next=3;break}return t.abrupt("return",{modelList:[]});case 3:return t.prev=3,t.next=6,(0,a.Em)({apiType:i.Bd.GET_MODEL_LIST,data:{agentId:(0,s.Ww)()?"naQivTmsDa_2.14.0":c.kv},hideTip:!0});case 6:return r=t.sent,n=u.PV.safeParse(r),t.abrupt("return",n.success?r:{modelList:[]});case 11:return t.prev=11,t.t0=t.catch(3),t.abrupt("return",{modelList:[]});case 14:case"end":return t.stop()}}),t,null,[[3,11]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){p(i,n,o,a,u,"next",t)}function u(t){p(i,n,o,a,u,"throw",t)}a(void 0)}))});return function(t){return e.apply(this,arguments)}}(),v=(0,o.eU)(y),m=(0,o.eU)(""),g=(0,o.eU)(""),b=(0,o.eU)(""),E=(0,o.eU)(!1),S=((0,n.tG)("isNotFirstTimeChooseT1",!1),(0,o.eU)("")),w=(0,o.eU)(!1),_=(0,n.tG)("userFunctions",[]),O=(0,o.eU)(Date.now()),I=(0,o.eU)((function(t){var e=t(l.bk);if(!e)return null;t(O);var r="".concat(e.userId,"_chatModelExtInfo"),n=localStorage.getItem(r);if(!n)return null;try{return JSON.parse(n)}catch(t){var o;return null===(o=f.fQ.ins)||void 0===o||o.error({type:"modelExtInfo_local_parse_error",payload:{data:n},error:t}),null}}),(function(t,e,r){var n=t(l.bk);if(n){var o="".concat(n.userId,"_chatModelExtInfo");localStorage.setItem(o,r?JSON.stringify(r):""),e(O,Date.now())}})),P=(0,n.Rq)(v),L=(0,o.eU)(null),T=(0,o.eU)(void 0),C=(0,n.tG)("modelSelectGuideUserStatus",null),A=(0,o.eU)(!1),N=(0,o.eU)(!0),x=(0,n.tG)("IsModelDropDownFirstShow",localStorage.IsModelDropDownFirstShow||"1"),j=(0,n.tG)("IsInternetSearchDropDownFirstShow",localStorage.IsInternetSearchDropDownFirstShow||"1"),R=(0,n.tG)("IsInternetSearchDropDownFirstManualShow",localStorage.IsInternetSearchDropDownFirstManualShow||"1"),M=(0,o.eU)(!1),k=((0,n.tG)("userInternetSearch",null),(0,n.tG)("UserInternetSearchLastManual","undefined"!=typeof localStorage&&localStorage.UserInternetSearchLastManual||null)),D=(0,o.eU)(!1),H=(0,o.eU)(!1),U=(0,o.eU)(null)},68402:(t,e,r)=>{r.d(e,{X:()=>w});var n=r(85803),o=r(78677),i=r(33363),a=r(45042),u=r(75e3),c=r(28104),l=r(22448),s=r(36288),f=r(68330),h=r.n(f);function d(t){return d="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},d(t)}function p(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}function y(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}var v,m,g,b=0,E=function(){return(new Date).getTime()},S=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return e=t,f=[{key:"init",value:function(){var e;if(!t.context.initialized){t.context.initialized=!0;var r=null===(e=performance)||void 0===e||null===(e=e.timing)||void 0===e?void 0:e.domContentLoadedEventEnd;if(t.context.timestamp.start=r||E(),!location.pathname.match("/bot/shareToImage")){n.fQ.init({uin:"no-auth"});var o=window.location.href;if(null==o||!o.includes("thirdParty"))try{var i;c.Q.init(),null===(i=c.Q.ins)||void 0===i||i.report({msg:"GALIO_REPORT_INIT"}),(0,l.YB)()&&(window.HYJSBridge.ready((function(){window.HYJSBridge.getUserInfo({success:function(t){try{var e,r=JSON.parse(null==t?void 0:t.data);null===(e=c.Q.ins)||void 0===e||e.setConfig({uid:r.uid||""}),n.fQ.init({uin:r.uid||""})}catch(t){}},fail:function(){}})})),(0,s.Wi)((function(t){try{var e,r;null===(e=c.Q.ins)||void 0===e||e.report({level:h().logLevel.REPORT,type:"api",msg:"APP_REQUEST",ext1:JSON.stringify(t),url:null==t||null===(r=t.options)||void 0===r?void 0:r.path})}catch(t){}}),(function(t){try{var e,r;null===(e=c.Q.ins)||void 0===e||e.report({msg:"APP_REQUEST_FAIL",type:"api",level:h().logLevel.AJAX_ERROR,ext1:JSON.stringify(t),url:null==t||null===(r=t.options)||void 0===r?void 0:r.path})}catch(t){}})))}catch(t){}}}}},{key:"start",value:function(){t.context.timestamp.start=E(),t.context.duration=0,t.report(),t.ticker(),t.context.started=!0}},{key:"stop",value:function(){t.context.started=!1,window.clearTimeout(b)}},{key:"report",value:function(){var e;if(null===(e=(0,u.cP)())||void 0===e||null===(e=e.disable_heart_beat)||void 0===e||!e.visible){var r,c,l,s,f,h,d,p=E();r={duration:p-t.context.timestamp.start,timestamp:p},l=r.duration,s=r.timestamp,f=(0,i.c)(),h=f?"".concat(f.name," ").concat(f.version):"",d=(0,a.RS)(),null===(c=n.fQ.ins)||void 0===c||c.reportEvent({name:o.Xe.HEARTBEAT,ext3:JSON.stringify({HY62:"web",HY63:h,HY20:d,duration:l,timestamp:s})})}}},{key:"ticker",value:function(){var e;if(null===(e=(0,u.cP)())||void 0===e||null===(e=e.disable_heart_beat)||void 0===e||!e.visible){var r,n=Number((t.context.duration+.1).toFixed(1));t.context.duration=n,r=t.ticker,b=window.setTimeout(r,100),t.context.started&&(n>=1&&n<=60&&n%10==0||n>60&&n<=300&&n%30==0||n%60==0)&&t.report()}}}],(r=null)&&p(e.prototype,r),f&&p(e,f),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,f}();v=S,m="context",g={timestamp:{start:E()},initialized:!1,duration:0,started:!1},(m=y(m))in v?Object.defineProperty(v,m,{value:g,enumerable:!0,configurable:!0,writable:!0}):v[m]=g;var w=window.HY_PAGE_HEARTBEAT?window.HY_PAGE_HEARTBEAT:("loading"===document.readyState?window.addEventListener("DOMContentLoaded",(function(){setTimeout((function(){S.init()}),0)})):S.init(),window.HY_PAGE_HEARTBEAT=S,S)},74938:(t,e,r)=>{r.d(e,{W8:()=>n.W8,aq:()=>n.aq,bV:()=>n.bV});var n=r(68244)},78677:(t,e,r)=>{r.d(e,{FF:()=>l,Xe:()=>u,Zd:()=>c,uq:()=>a});var n=r(603);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,e,r){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=function(t){return t.CHAT_LIST_DISPLAY_ERROR="CHAT_LIST_DISPLAY_ERROR",t.CHAT_CONV_AI_DISPLAY_ERROR="CHAT_CONV_AI_DISPLAY_ERROR",t}({}),u=function(t){return t.HEARTBEAT="OnHyHeartbeat",t.PAGE_CLICK="OnPageClick",t.PAGE_MOD="OnPageMod",t.CLICK="OnClick",t.OLD_SESSION_ENTER="OnOldSessionEnter",t.OLD_SESSION_CHAT="OnOldSessionChat",t.VIEW="OnView",t.PAGE_ENTER="OnPageEnter",t.PAGE_LEAVE="OnPageLeave",t}({}),c=i(i(i({},n.Gb.phone,1),n.Gb.wechat,2),n.Gb.qq,3),l=i(i(i({},n.Gb.phone,"phone_login"),n.Gb.wechat,"wx_login"),n.Gb.qq,"qq_login")},80088:(t,e,r)=>{r.d(e,{$3:()=>v,A:()=>_,D8:()=>O,EQ:()=>g,I_:()=>P,R:()=>y,S1:()=>w,a:()=>E,bW:()=>S,bd:()=>T,gP:()=>m,o7:()=>L,um:()=>I,yi:()=>b});var n=r(603),o=r(78677),i=r(43721),a=r(24417),u=r(42239),c=r(22448),l=r(27991),s=r(97037);function f(t){return f="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},f(t)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=f(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==f(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var p=function(){return(0,c.Ik)()?"1":(0,c.hL)()?"2":"3"},y=function(){(0,u.Ay)(a.Qy.OnPageMod,{page_id:"LoginPage",mod_id:"main_mod",ext5:p()})},v=function(t){t&&(0,u.Ay)(a.Qy.OnPageMod,{page_id:"LoginPage",mod_id:"privacy_notice",ext5:p()})},m=function(t){t&&(0,u.Ay)(a.Qy.OnPageClick,{page_id:"LoginPage",mod_id:"privacy_notice",button_id:"agree",ext5:p()})},g=function(t){t&&(0,u.Ay)(a.Qy.OnPageClick,{page_id:"LoginPage",mod_id:"privacy_notice",button_id:"cancel",ext5:p()})},b=function(){(0,u.Ay)(a.Qy.OnPageMod,{page_id:"LoginPage",mod_id:"toast_mod",ext5:p()})},E=function(t){(0,u.Ay)(a.Qy.OnPageClick,{page_id:"LoginPage",mod_id:"main_mod",button_id:"".concat(o.FF[t]),ext5:p()})},S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t===n.Gb.wechat?l.M.reportLoginStep({HY501:0,HY502:s.b.StepAuth,HY503:s.S.Wechat,HY505:"用户打开微信扫码登录弹窗",HY504:"10017"}):t===n.Gb.qq?l.M.reportLoginStep({HY501:0,HY502:s.b.StepAuth,HY503:s.S.QQ,HY505:"用户主动打开QQ认证弹窗",HY504:"10016"}):t===n.Gb.phone&&l.M.reportLoginStep({HY501:0,HY502:s.b.StepAuth,HY503:s.S.Phone,HY505:"用户点击手机号登陆弹窗",HY504:"10019"}),(0,u.Ay)(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach((function(e){d(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({hyrptClickEventCode:o.Xe.PAGE_MOD,hyrptPageId:"LoginPage",hyrptModId:"main_mod",hyrptExt2:"".concat(o.Zd[t]),hyrptRefer:"YuanAgentPage"},e),"click"),(0,u.Ay)({hyrptClickEventCode:o.Xe.VIEW,hyrptPageId:"YuanAgentPage",hyrptModId:"login_dialog_mod",hyrptAgentId:i.kv},"click")},w=function(){l.M.reportLoginStep({HY501:0,HY502:s.b.Bind,HY503:s.S.Phone,HY505:"手机号绑定成功",HY504:"0"}),(0,u.Ay)({hyrptImpressionEventCode:o.Xe.PAGE_MOD,hyrptPageId:"PhoneNumberPage",hyrptModId:"main_mod"},"impression")},_=function(t){t&&(0,u.Ay)(a.Qy.OnPageClick,{page_id:"LoginPage",mod_id:"main_mod",button_id:"ver_code",ext5:p()})},O=function(){(0,u.Ay)(a.Qy.OnPageClick,{page_id:"LoginPage",mod_id:"main_mod",button_id:"login",ext5:p()}),(0,u.Ay)({hyrptClickEventCode:o.Xe.PAGE_CLICK,hyrptPageId:"PhoneNumberPage",hyrptModId:"main_mod",hyrptButtonId:"confirm"},"click"),(0,u.Ay)({hyrptClickEventCode:o.Xe.PAGE_CLICK,hyrptPageId:"PhoneNumberPage",hyrptModId:"main_mod",hyrptButtonId:"bind_phone"},"click")},I=function(){(0,u.Ay)({hyrptClickEventCode:o.Xe.PAGE_CLICK,hyrptPageId:"PhoneNumberPage",hyrptModId:"main_mod",hyrptButtonId:"skip"},"click"),(0,u.Ay)({hyrptClickEventCode:o.Xe.PAGE_CLICK,hyrptPageId:"PhoneNumberPage",hyrptModId:"main_mod",hyrptButtonId:"bind_later"},"click")},P=function(){l.M.reportLoginStep({HY501:0,HY502:s.b.Bind,HY503:s.S.Wechat,HY505:"微信绑定成功",HY504:"0"}),(0,u.Ay)({hyrptImpressionEventCode:o.Xe.PAGE_MOD,hyrptPageId:"WeixinPage",hyrptModId:"main_mod"},"impression"),(0,u.Ay)({hyrptImpressionEventCode:o.Xe.PAGE_ENTER,hyrptPageId:"WeixinPage",hyrptModId:"main_mod"},"impression")},L=function(){(0,u.Ay)({hyrptClickEventCode:o.Xe.PAGE_CLICK,hyrptPageId:"WeixinPage",hyrptModId:"main_mod",hyrptButtonId:"skip"},"click")},T=function(t){(0,u.Ay)({hyrptClickEventCode:"OnLogin",hyrptExt1:"".concat(t?1:2),hyrptExt2:"1"},"click"),(0,u.Ay)({hyrptClickEventCode:o.Xe.PAGE_MOD,hyrptPageId:"YuanAgentPage",hyrptModId:"login_dialog_mod",hyrptButtonId:"login_success",hyrptAgentId:i.kv},"click")}},80246:(t,e,r)=>{r.d(e,{SK:()=>s,VH:()=>f,re:()=>l});var n=r(83739),o=r(43721),i=r(4859),a=r(25570),u=r(84367),c=r(31519);function l(t){var e=t.agentId,r=(0,u.zp)().get(a.KO);return e!==o.kv?"":r}function s(t){var e=t.agentId,r=t.functions||(0,u.zp)().get(a.$B);return e!==o.kv?"0":r.some((function(t){return t===n.AH.OPEN_INTERENT_SEARCH}))?"1":r.some((function(t){return t===n.AH.CLOSE_INTERENT_SEARCH}))?"2":r.some((function(t){return t===n.AH.AUTO_INTERENT_SEARCH}))?"3":r.some((function(t){return t===n.vb.INTERENT_SEARCH}))?"1":"2"}function f(t){var e,r,n=t.requestUrl,a=t.requestData,u=t.inputSkillType,l=t.agentId;return(null===(e=a.multimedia)||void 0===e||null===(e=e[0])||void 0===e?void 0:e.fileName)===c.Y2?"19":n.includes("/api/chat/repeat")?"17":a.hintPromptTraceId?"16":l===o.kv&&u!==i.l.default?"15":(null===(r=a.multimedia)||void 0===r?void 0:r.length)>0?"14":"11"}},80628:(t,e,r)=>{r.d(e,{Do:()=>d,RX:()=>v,Wc:()=>f,bk:()=>s,mz:()=>m});var n=r(8687),o=r(84367),i=r(97741);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 e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),u=new x(n||[]);return o(a,"_invoke",{value:T(t,r,u)}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function E(){}function S(){}var w={};f(w,c,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(j([])));O&&O!==r&&n.call(O,c)&&(w=O);var I=S.prototype=b.prototype=Object.create(w);function P(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(o,i,u,c){var l=d(t[o],t,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==a(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(f).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,r,n){var o=p;return function(i,a){if(o===v)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=C(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===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var l=d(e,r,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 C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(a(e)+" is not iterable")}return E.prototype=S,o(I,"constructor",{value:S,configurable:!0}),o(S,"constructor",{value:E,configurable:!0}),E.displayName=f(S,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===E||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,S):(t.__proto__=S,f(t,s,"GeneratorFunction")),t.prototype=Object.create(I),t},e.awrap=function(t){return{__await:t}},P(L.prototype),f(L.prototype,l,(function(){return this})),e.AsyncIterator=L,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new L(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},P(I),f(I,s,"Generator"),f(I,c,(function(){return this})),f(I,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=j,x.prototype={constructor:x,reset:function(e){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),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return u.type="throw",u.arg=e,r.next=n,o&&(r.method="next",r.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,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){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&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function c(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);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=(0,o.eU)(),f=(0,o.eU)(!1),h=(0,o.eU)(1),d=function(){var t=l(u().mark((function t(){var e,r;return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,n.Em)({url:"/api/v5/accountLogic/checkBindWechat",method:"POST",hideTip:!0,data:{scene:1}});case 3:return r=t.sent,t.abrupt("return",2===(null==r||null===(e=r.data)||void 0===e?void 0:e.status));case 7:return t.prev=7,t.t0=t.catch(0),t.abrupt("return",!1);case 10:case"end":return t.stop()}}),t,null,[[0,7]])})));return function(){return t.apply(this,arguments)}}(),p=(0,o.eU)(function(){var t=l(u().mark((function t(e){return u().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e(h),e(f)){t.next=4;break}return t.abrupt("return",!1);case 4:return t.next=7,d();case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),y=(0,i.Rq)(p),v=(0,o.eU)(null,(function(t,e){e(h,(function(t){return t+1}))})),m=(0,o.eU)((function(t){var e=t(y);return"hasData"===e.state&&e.data}))},83739:(t,e,r)=>{r.d(e,{AH:()=>a,IW:()=>o,PV:()=>l,vb:()=>i});var n=r(3761),o=function(t){return t.AUTO="auto",t.MANUAL="manual",t}({}),i=function(t){return t.INTERENT_SEARCH="supportInternetSearch",t}({}),a=function(t){return t.OPEN_INTERENT_SEARCH="openInternetSearch",t.AUTO_INTERENT_SEARCH="autoInternetSearch",t.CLOSE_INTERENT_SEARCH="closeInternetSearch",t}({}),u=n.z.object({functionId:n.z.string(),functionName:n.z.string(),icon:n.z.string().optional(),notSupportInputControl:n.z.array(n.z.string()).optional()}),c=n.z.object({chatModelId:n.z.string(),chooseDefault:n.z.boolean().optional(),displaySkillPanel:n.z.boolean().optional(),icon:n.z.string().optional(),modelDesc:n.z.string(),modelName:n.z.string(),notSupportInputControl:n.z.array(n.z.string()).optional(),notSupportPluginList:n.z.array(n.z.string()).optional(),supportFunctions:n.z.array(u).optional()}),l=n.z.object({modelList:n.z.array(c)})},85111:(t,e,r)=>{r.d(e,{Ks:()=>i,by:()=>n,iR:()=>o});var n=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];window.postMessage({event:"loginSuccess",data:{needClose:t}},"*")},o=function(){window.postMessage({event:"logOut"},"*")},i=function(){window.postMessage({event:"useInfoChange",data:{}},"*")}},91207:(t,e,r)=>{r.d(e,{bo:()=>p,fH:()=>d,y1:()=>y});var n=r(45042),o=r(85803),i=r(75e3),a=r(25221),u=r(22448),c=r(26796);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,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d=["[DONE]","[SENSITIVE]"],p=function(t){return t[t.NETWORK=80001]="NETWORK",t[t.CHAT_INCOMPLETE=80002]="CHAT_INCOMPLETE",t[t.UNKNOWN=80003]="UNKNOWN",t[t.TIMEOUT=80004]="TIMEOUT",t[t.CHAR_DELETE=21e3]="CHAR_DELETE",t[t.CHAT_BANNED=21005]="CHAT_BANNED",t[t.CHAT_EDIT=21006]="CHAT_EDIT",t}({}),y=function(t,e){if(!(this instanceof y))return new y(t,e);this.INITIALIZING=-1,this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,this.url=t,e=e||{},(0,u.Ww)()&&(this.url="".concat((0,u.jp)()).concat(this.url)),this.headers=f(f(f({},(0,a.n)()),e.headers||{}),(0,i.i7)()),this.payload=void 0!==e.payload?e.payload:"",this.method=e.method||this.payload&&"POST"||"GET",this.withCredentials=!!e.withCredentials,this.traceId=e.traceId,this.FIELD_SEPARATOR=":",this.listeners={},this.xhr=null,this.readyState=this.INITIALIZING,this.progress=0,this.chunk="",this.timeout=e.timeout||0,this.continuousTimeout=e.continuousTimeout||this.timeout,this.timer=0,this.addEventListener=function(t,e){void 0===this.listeners[t]&&(this.listeners[t]=[]),-1===this.listeners[t].indexOf(e)&&this.listeners[t].push(e)},this.removeEventListener=function(t,e){if(void 0!==this.listeners[t]){var r=[];this.listeners[t].forEach((function(t){t!==e&&r.push(t)})),0===r.length?delete this.listeners[t]:this.listeners[t]=r}},this.dispatchEvent=function(t){if(!t)return!0;t.source=this;var e="on".concat(t.type);return(!{}.hasOwnProperty.call(this,e)||(this[e].call(this,t),!t.defaultPrevented))&&(!this.listeners[t.type]||this.listeners[t.type].every((function(e){return e(t),!t.defaultPrevented})))},this._getCommonResponseHeader=function(){return{traceId:this.xhr.getResponseHeader("x-traceid")||"",msgId:this.xhr.getResponseHeader("x-answer-msgid")||"",replyId:this.xhr.getResponseHeader("x-query-msgid")||""}},this._setReadyState=function(t){var e=new CustomEvent("readystatechange");e.readyState=t,this.readyState=t,this.dispatchEvent(e)},this._onStreamFailure=function(t){try{(0,n.DW)(t.currentTarget?{status:t.currentTarget.status,config:{url:t.currentTarget.responseURL}}:null)}catch(t){}finally{var e,r=new CustomEvent("error");null===(e=o.fQ.ins)||void 0===e||e.error({type:o.Ku.SSE_REQUEST_FAIL,payload:{traceId:this.traceId},error:t});var i=JSON.stringify({code:p.NETWORK,msg:"请求异常"});try{JSON.parse(t.currentTarget.response),i=t.currentTarget.response}catch(t){}r.data=i,r.status=t.currentTarget.status,Object.assign(r,this._getCommonResponseHeader()),this.dispatchEvent(r),this.close(),this._cancelTimeout()}},this._onStreamAbort=function(){this.dispatchEvent(new CustomEvent("abort")),this.close(),this._cancelTimeout()},this._onStreamProgress=function(t){var e=this;if(this.xhr){var r;if(200!==this.xhr.status)return null===(r=o.fQ.ins)||void 0===r||r.error({type:o.Ku.SSE_PROGRESS_FAIL,payload:{traceId:this.traceId},error:t}),void this._onStreamFailure(t);this.readyState===this.CONNECTING&&(this.dispatchEvent(new CustomEvent("open")),this._setReadyState(this.OPEN));var n=this.xhr.responseText.substring(this.progress);this.progress+=n.length,n.split(/(\r\n|\r|\n){2}/g).forEach((function(t){0===t.trim().length?(e.dispatchEvent(e._parseEventChunk(e.chunk)),e.chunk=""):e.chunk+=t})),this._cancelTimeout(),this._startTimeout(this.continuousTimeout)}},this._onStreamLoaded=function(t){var e=this;if(this._onStreamProgress(t),d.some((function(t){return e.xhr.responseText.includes(t)})))this.dispatchEvent(this._parseEventChunk(this.chunk)),this.chunk="";else{var r=new CustomEvent("error");r.data=JSON.stringify({code:p.CHAT_INCOMPLETE,msg:"内容异常"}),Object.assign(r,this._getCommonResponseHeader()),this.dispatchEvent(r)}this._cancelTimeout()},this._parseEventChunk=function(t){var e=this;if(!t||0===t.length)return null;var r={id:null,retry:null,data:"",event:"message"};t.split(/\n|\r\n|\r/).forEach((function(t){var n=t.indexOf(e.FIELD_SEPARATOR);if(!(n<=0)){var o=t.substring(0,n);if(o in r){var i=t.substring(n+1).slice(1);"data"===o?r[o]+=i:r[o]=i}}}));var n=new CustomEvent(r.event);return n.data=r.data,n.id=r.id,Object.assign(n,this._getCommonResponseHeader()),n},this._checkStreamClosed=function(){this.xhr&&this.xhr.readyState===XMLHttpRequest.DONE&&this._setReadyState(this.CLOSED)},this._startTimeout=function(t){var e=this;t&&(this.timer=window.setTimeout((function(){var t=new CustomEvent("timeout");t.data=JSON.stringify({code:p.TIMEOUT,msg:"请求超时"}),Object.assign(t,e._getCommonResponseHeader()),e.dispatchEvent(t),e.close()}),t))},this._cancelTimeout=function(){this.timer&&(window.clearTimeout(this.timer),this.timer=0)},this.stream=function(){var t;this._setReadyState(this.CONNECTING);var e="";try{var r=JSON.parse(localStorage.getItem("oneIDAuthInfo_".concat(c.ud.docs))||"[]");r.length>0&&(e=r[0].openID||"")}catch(t){}if(e)if("string"==typeof this.payload)try{var n=JSON.parse(this.payload);n.docOpenid=e,this.payload=JSON.stringify(n)}catch(t){}else"object"===l(this.payload)&&(this.payload.docOpenid=e);var o=(null===(t=(0,i.cP)().custom_sse_xhr_instance.props)||void 0===t?void 0:t.instance)||XMLHttpRequest;for(var a in this.xhr=new o,this.xhr.addEventListener("progress",this._onStreamProgress.bind(this)),this.xhr.addEventListener("load",this._onStreamLoaded.bind(this)),this.xhr.addEventListener("readystatechange",this._checkStreamClosed.bind(this)),this.xhr.addEventListener("error",this._onStreamFailure.bind(this)),this.xhr.addEventListener("abort",this._onStreamAbort.bind(this)),this.xhr.open(this.method,this.url),this.headers)this.xhr.setRequestHeader(a,this.headers[a]);this.xhr.withCredentials=this.withCredentials,this.xhr.send(this.payload),this._cancelTimeout(),this._startTimeout(this.timeout)},this.close=function(){this.readyState!==this.CLOSED&&(this.xhr.abort(),this.xhr=null,this._setReadyState(this.CLOSED))}}},97037:(t,e,r)=>{r.d(e,{S:()=>o,b:()=>n});var n=function(t){return t[t.StepAll=-1]="StepAll",t[t.StepAuth=1]="StepAuth",t[t.StepLogin=2]="StepLogin",t[t.StepRegister=3]="StepRegister",t[t.Bind=6]="Bind",t}({}),o=function(t){return t.QQ="qq",t.Wechat="wechat",t.Phone="phone",t}({})},99060:(t,e,r)=>{function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t,e)||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,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{P:()=>a,j:()=>i});var i=function(t,e){try{localStorage.setItem("visitor_number","".concat(t,"::").concat(e))}catch(t){}},a=function(t){if(!t)return null;try{var e=localStorage.getItem("visitor_number"),r=n((null==e?void 0:e.split("::"))||[],2),o=r[0],i=r[1];return o!==t?null:Number(i)}catch(t){return null}}}}]);
//# sourceMappingURL=sourcemap/627.7b8c376692b5736fa802.js.map