PageSourceSearch

https://fe-static-yuketang.yuketang.cn/fe/static/web/1.2.315/js/12626.64c6d18c.js

js yuketang.cn collected 2026-09-28 09:24:27 UTC 61,034 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkrainweb=self.webpackChunkrainweb||[]).push([["12626"],{64264:function(t,e,n){n.d(e,{Z:function(){return a}}),n(35350);var i=n(18108),a=(0,n(81049).Z)({__name:"textEllipsisShow",props:{content:{type:String,default:""},html:{type:String,default:""},line_clamp:{type:Number,default:1},visible_arrow:{type:Boolean,default:!0},isHtml:{type:Boolean,default:!1},popperClass:{type:String,default:""},placement:{type:String,default:null}},setup:function(t){var e=(0,i.ref)(!1),n=null;function a(){n&&(clearTimeout(n),n=null)}return(0,i.onBeforeUnmount)(function(){a(),n=null}),{__sfc:!0,props:t,visible:e,hideTimer:n,mouseenter:function(t){a();var n=t.target;n.scrollHeight>n.clientHeight&&(e.value=!0)},showPopover:function(){a(),e.value=!0},mouseleave:function(){a(),n=setTimeout(function(){e.value=!1},150)},clearHideTimer:a}}},function(){var t=this._self._c,e=this._self._setupProxy;return t("div",[t("el-popover",{attrs:{"popper-class":"text-ellipsis-popover "+this.popperClass,placement:this.placement||"top-start","visible-arrow":this.visible_arrow,trigger:"manual"},model:{value:e.visible,callback:function(t){e.visible=t},expression:"visible"}},[this.isHtml?[t("p",{staticClass:"content",domProps:{innerHTML:this._s(this.content)},on:{mouseenter:e.showPopover,mouseleave:e.mouseleave}}),this._v(" "),t("p",{staticClass:"ellipse",style:{"--line_clamp":this.line_clamp},attrs:{slot:"reference"},domProps:{innerHTML:this._s(this.content)},on:{mouseenter:e.mouseenter,mouseleave:e.mouseleave},slot:"reference"})]:[t("p",{staticClass:"content",on:{mouseenter:e.showPopover,mouseleave:e.mouseleave}},[this._v("\n        "+this._s(this.content)+"\n      ")]),this._v(" "),t("p",{staticClass:"ellipse",style:{"--line_clamp":this.line_clamp},attrs:{slot:"reference"},on:{mouseenter:e.mouseenter,mouseleave:e.mouseleave},slot:"reference"},[this._v("\n        "+this._s(this.content)+"\n      ")])]],2)],1)},[],!1,null,"1917dd92",null).exports},83059:function(t,e,n){n.r(e),n.d(e,{default:function(){return O}}),n(83765),n(63649),n(80764);var i=n(18108),a=n(12884),r=n(47827);n(80287),n(63064),n(42463);var o=n(40859),l=n(25253),s=n(81049),c=(0,s.Z)({__name:"WikiCategoryNav",props:{activeCategory:{type:String,default:""},toolbarState:{type:Object,default:function(){return{viewMode:"markdown",keyword:"",filter1:"",filter2:""}}},knowledgeList:{type:Array,default:function(){return[]}},categoryList:{type:Array,default:function(){return[]}},navList:{type:Array,default:function(){return[]}},showCount:{type:Boolean,default:!1}},emits:["change","toolbar-change","nav-click"],setup:function(t,e){var n=e.emit,a=(0,i.ref)(""),r=(0,i.ref)(null);(0,i.watch)(function(){return t.toolbarState.filter2},function(t){a.value=t||""},{immediate:!0});var s=function(){var t=r.value;t&&t.toggleDropDownVisible(!1)};return{__sfc:!0,props:t,emit:n,categoryValue:a,cascaderRef:r,categoryProps:{checkStrictly:!0,emitPath:!1,value:"id",label:"name",children:"children"},getCategoryOptions:function(){var e=JSON.parse(JSON.stringify(t.categoryList||[]));return e.forEach(function(t){if(t.name=t.category_name||t.name,!t.children||0===t.children.length)return void delete t.children;t.children.forEach(function(t){t.name=t.category_name||t.name})}),e},closeCategoryMenus:s,handleCategoryChange:function(t){n("toolbar-change",{filter2:t||""}),(0,i.nextTick)(function(){s()})},handleCategoryNodeClick:function(t,e){if(e){if(!e.isLeaf){null==(l=r.value)||null==(o=l.panel)||o.handleExpand(e);return}var n,i,o,l,s=null==(i=t.currentTarget)||null==(n=i.closest(".el-cascader-node"))?void 0:n.querySelector(".el-radio__original");if(s)return void s.click();a.value=e.getValueByOption(),r.value.panel.handleCheckChange(a.value)}},clearFilters:function(){t.toolbarState.keyword="",t.toolbarState.filter1="",t.toolbarState.filter2="",n("toolbar-change",t.toolbarState)},labelInput:o.Z,labelSelect:l.Z}}},function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"subject-wiki-show-screen__nav-wrap",on:{click:function(e){return t.$emit("nav-click")}}},[e("div",{staticClass:"subject-wiki-show-screen__nav"},t._l(t.navList,function(n){return e("button",{key:n.key,staticClass:"nav-pill box-center",class:[n.tone,{active:t.activeCategory===n.key}],attrs:{type:"button"},on:{click:function(e){return t.$emit("change",n.key)}}},[e("span",{staticClass:"nav-pill__label"},[t._v(t._s(n.label))]),t._v(" "),t.showCount?e("span",{staticClass:"nav-pill__count"},[t._v("("+t._s(n.count)+")")]):t._e()])}),0),t._v(" "),"mcp"!==t.activeCategory?e("div",{staticClass:"subject-wiki-panel nav-toolbar-card box-between",on:{click:function(t){t.stopPropagation()}}},[e("div",{staticClass:"nav-toolbar-card__filter"},[e(n.labelInput,{attrs:{"input-value":t.toolbarState.keyword,placeholder:"interactive"===t.activeCategory?"搜索标题/说明/关键词":"teaching"===t.activeCategory?"请搜索":"请输入关键词",width:"260px"},on:{change:function(e){return t.$emit("toolbar-change",{keyword:e})}}}),t._v(" "),"teaching"!==t.activeCategory?[e(n.labelSelect,{attrs:{value:t.toolbarState.filter1,options:t.knowledgeList,label:"知识点","options-label":"name","options-value":"id",width:"240px"},on:{change:function(e){return t.$emit("toolbar-change",{filter1:e||""})}}}),t._v(" "),e("div",{staticClass:"nav-toolbar-card__category",class:{active:n.categoryValue}},[e("div",{staticClass:"nav-toolbar-card__category-label f13"},[t._v("分类")]),t._v(" "),e("el-cascader",{ref:"cascaderRef",staticClass:"nav-toolbar-card__category-cascader",attrs:{"popper-class":"nav-toolbar-card__category-cascader-popper",options:n.getCategoryOptions(),props:n.categoryProps,clearable:"",filterable:"",placeholder:"请选择"},on:{change:n.handleCategoryChange},scopedSlots:t._u([{key:"default",fn:function(i){var a=i.node,r=i.data;return[e("span",{staticClass:"nav-toolbar-card__category-node",on:{click:function(t){return t.stopPropagation(),n.handleCategoryNodeClick(t,a)}}},[t._v("\n                "+t._s(r.name)+"\n              ")])]}}],null,!1,0x718795a1),model:{value:n.categoryValue,callback:function(t){n.categoryValue=t},expression:"categoryValue"}})],1),t._v(" "),e("p",{staticClass:"nav-toolbar-card__filter-clear f15",on:{click:n.clearFilters}},[t._v("\n        清除筛选\n      ")])]:t._e()],2),t._v(" "),e("div",{staticClass:"nav-toolbar-card__mode"},[e("button",{staticClass:"nav-toolbar-card__switch-item",class:{active:"common"===t.toolbarState.viewMode},attrs:{type:"button"},on:{click:function(e){return t.$emit("toolbar-change",{viewMode:"common"})}}},[t._v("\n        常规显示\n      ")]),t._v(" "),e("button",{staticClass:"nav-toolbar-card__switch-item",class:{active:"markdown"===t.toolbarState.viewMode},attrs:{type:"button"},on:{click:function(e){return t.$emit("toolbar-change",{viewMode:"markdown"})}}},[t._v("\n        Markdown\n      ")])])]):t._e()])},[],!1,null,"4b5fd447",null).exports,u=(0,s.Z)({__name:"WikiHero",props:{summaryList:{type:Array,default:function(){return[]}}},setup:function(t){return{__sfc:!0}}},function(){var t=this,e=t._self._c;return t._self._setupProxy,e("section",{staticClass:"subject-wiki-show-screen__hero"},[t._m(0),t._v(" "),e("div",{staticClass:"hero-summary-box box-start"},t._l(t.summaryList,function(n,i){return e("article",{key:i,staticClass:"summary-card box-start"},[e("img",{attrs:{src:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/ai-subject-wiki-icon".concat(i+1,".png"),alt:""}}),t._v(" "),e("div",[e("div",{staticClass:"summary-card__count"},[t._v(t._s(n.count))]),t._v(" "),e("div",{staticClass:"summary-card__label"},[t._v(t._s(n.label))])])])}),0)])},[function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"hero-title-block box-start"},[t("p",{staticClass:"line"}),this._v(" "),t("h1",{staticClass:"hero-title"},[this._v("学科 Wiki")])])}],!1,null,"06dd373c",null).exports;n(27281);var v=n(48493),f=n(92511),d=n(51808),p=n(21373),_=n(64264);function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function g(t,e,n,i,a,r,o){try{var l=t[r](o),s=l.value}catch(t){n(t);return}l.done?e(s):Promise.resolve(s).then(i,a)}var b=(0,s.Z)({__name:"WikiImageSection",props:{toolbarState:{type:Object,default:function(){return{viewMode:"markdown",keyword:"",filter1:"",filter2:""}}}},setup:function(t){var e=(0,a._p)("aiSubjectStore").useState,n=e(["subjectInfo"]).subjectInfo,r=(0,i.ref)(null),o=(0,i.ref)(!1),l=(0,i.ref)(!1),s=(0,i.ref)([]),c=(0,i.ref)(1),u=(0,i.ref)(21),b=(0,i.ref)(!1),h=(0,i.ref)(!0),y=(0,i.ref)(!1),w=(0,i.ref)(null),k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(t)?t.length?t.join(","):"":"".concat(t)},C=function(){var e;return(e=function(){var e,i,a,r,l,v,f;return function(t,e){var n,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(a=2&c[0]?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(!(a=(a=r.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){r=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(6===c[0]&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(t){c=[6,t],i=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(d){switch(d.label){case 0:if(!(null==(e=n.value)?void 0:e.agent_id))return s.value=[],[2];1===c.value&&(o.value=!0),i=API.ai_subject_display.get_subject_wiki_image_chunks,a={agent_id:n.value.agent_id,query:t.toolbarState.keyword||"",category:k(t.toolbarState.filter2),knowledge_node:k(t.toolbarState.filter1),sort:"modified",page:c.value,page_size:u.value,uv_id:n.value.university_id||0,platform_id:n.value.platform_id},d.label=1;case 1:return d.trys.push([1,3,,4]),[4,request.get(i,a)];case 2:return v=(null==(l=d.sent().data)?void 0:l.result)||[],(r=s.value).push.apply(r,function(t){if(Array.isArray(t))return m(t)}(v)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(v)||function(t,e){if(t){if("string"==typeof t)return m(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}}(v)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v.length||(h.value=!1),o.value=!1,b.value=!1,[3,4];case 3:return f=d.sent(),o.value=!1,b.value=!1,console.error("getList",f),[3,4];case 4:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(i,a){var r=e.apply(t,n);function o(t){g(r,i,a,o,l,"next",t)}function l(t){g(r,i,a,o,l,"throw",t)}o(void 0)})})()},x=function(){c.value=1,s.value=[],h.value=!0,l.value=!1,b.value=!1},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map(function(t){return t.name}).join("、")||"--"},j=function(){var t=r.value;if(t){var e=t.scrollTop,n=t.scrollHeight,i=t.offsetHeight;l.value=e+i+1>=n,e+i+1>=n&&!b.value&&h.value&&(b.value=!0,c.value++,C())}};return(0,i.watch)(function(){var e;return[null==(e=n.value)?void 0:e.agent_id,t.toolbarState.keyword,t.toolbarState.filter1,t.toolbarState.filter2]},function(){x(),C(),r.value&&(r.value.scrollTop=0)},{immediate:!0}),(0,i.watch)(function(){return r.value},function(t,e){null==e||e.removeEventListener("scroll",j),null==t||t.addEventListener("scroll",j)},{immediate:!0}),(0,i.onUnmounted)(function(){var t;null==(t=r.value)||t.removeEventListener("scroll",j)}),{__sfc:!0,useState:e,subjectInfo:n,props:t,scrollRef:r,isLoading:o,showLoading:l,list:s,page:c,pageSize:u,loadingMore:b,more:h,dialogVisible:y,activeItem:w,getFilterValue:k,getList:C,resetList:x,getNames:S,renderMarkdown:function(t){return(0,v.w)(t)},buildMarkdown:function(t){return["**标题**:".concat(t.chunk_name),"**描述**:".concat(t.text||""),"**知识点**:".concat(S(t.knowledge_nodes)),"**分类**:".concat(S(t.categories))].join("\n\n")},scrollLoadData:j,openItem:function(t){w.value=t,y.value=!0},closeDialog:function(){y.value=!1,w.value=null},empty:f.Z,loading:d.Z,loadingMoreCom:p.Z,textEllipsis:_.Z}}},function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"wiki-image-section"},[n.isLoading?e("div",{staticClass:"loading-box"},[e(n.loading)],1):[n.list.length?e("div",{ref:"scrollRef",staticClass:"wiki-section__scroll"},[e("div",{staticClass:"subject-wiki-grid"},t._l(n.list,function(i){return e("div",{key:i.chunk_id,staticClass:"subject-wiki-card wiki-card flex flex-col justify-between",on:{click:function(t){return n.openItem(i)}}},[e("div",[e("div",{staticClass:"wiki-card__head box-start"},[e("i",{staticClass:"iconfont icon-tupian"}),t._v(" "),e("h3",{staticClass:"wiki-card__title"},[t._v(t._s(i.chunk_name))])]),t._v(" "),e("div",["common"===t.toolbarState.viewMode?e("div",{staticClass:"wiki-card__preview"},[e("img",{attrs:{src:i.preview,alt:""}})]):e("div",{staticClass:"subject-wiki-markdown"},[e("pre",{staticClass:"wiki-card__source"},[e("code",[t._v(t._s(n.buildMarkdown(i)))])])])])]),t._v(" "),"common"===t.toolbarState.viewMode?e("div",{staticClass:"wiki-card__meta box-start"},[e("p",{staticClass:"subject-wiki-meta-pill box-start"},[t._m(0,!0),t._v(" "),e(n.textEllipsis,{attrs:{"is-html":!1,line_clamp:1,visible_arrow:!0,content:n.getNames(i.knowledge_nodes)}})],1),t._v(" "),e("p",{staticClass:"subject-wiki-meta-pill box-start"},[t._m(1,!0),t._v(" "),e(n.textEllipsis,{attrs:{"is-html":!1,line_clamp:1,visible_arrow:!0,content:n.getNames(i.categories)}})],1)]):t._e()])}),0),t._v(" "),n.showLoading?e(n.loadingMoreCom,{attrs:{list_length:n.list.length,loading_more:n.loadingMore,more:n.more}}):t._e()],1):e(n.empty,{attrs:{text:"暂无数据"}})],t._v(" "),e("el-dialog",{attrs:{visible:n.dialogVisible,"custom-class":"subject-wiki-markdown-dialog","append-to-body":""},on:{"update:visible":function(t){n.dialogVisible=t}}},[n.activeItem?[e("div",{staticClass:"wiki-dialog-header"},[e("div",{staticClass:"flex justify-between items-center"},[e("p",{staticClass:"wiki-dialog-title"},[t._v("\n            "+t._s(n.activeItem.chunk_name)+"\n          ")]),t._v(" "),e("p",{staticClass:"wiki-dialog-close box-center",on:{click:n.closeDialog}},[e("i",{staticClass:"iconfont icon-cu-cha"})])]),t._v(" "),"common"===t.toolbarState.viewMode?e("div",{staticClass:"wiki-card__meta flex"},[e("p",{staticClass:"subject-wiki-meta-pill box-start"},[e("span",{staticClass:"meta-item-title box-start"},[e("i",{staticClass:"iconfont icon-tishi"}),t._v("知识点:")]),t._v(" "),e("span",[t._v(t._s(n.getNames(n.activeItem.knowledge_nodes)))])]),t._v(" "),e("p",{staticClass:"subject-wiki-meta-pill box-start"},[e("span",{staticClass:"meta-item-title box-start"},[e("i",{staticClass:"iconfont icon-xuexineirong"}),t._v("分类:")]),t._v(" "),e("span",[t._v(t._s(n.getNames(n.activeItem.categories)))])])]):t._e()]),t._v(" "),e("div",{staticClass:"wiki-dialog-content"},["common"===t.toolbarState.viewMode?e("div",{staticClass:"mdit",domProps:{innerHTML:t._s(n.renderMarkdown(n.activeItem.text||""))}}):e("pre",{staticClass:"wiki-card__source"},[e("code",[t._v(t._s(n.buildMarkdown(n.activeItem)))])])])]:t._e()],2)],2)},[function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"meta-item-title box-start"},[t("i",{staticClass:"iconfont icon-tishi"}),this._v("知识点:")])},function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"meta-item-title box-start"},[t("i",{staticClass:"iconfont icon-xuexineirong"}),this._v("分类:")])}],!1,null,"970
1b733c",null).exports;function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function y(t,e,n,i,a,r,o){try{var l=t[r](o),s=l.value}catch(t){n(t);return}l.done?e(s):Promise.resolve(s).then(i,a)}var w=(0,s.Z)({__name:"WikiInteractiveSection",props:{toolbarState:{type:Object,default:function(){return{viewMode:"markdown",keyword:"",filter1:"",filter2:""}}}},setup:function(t){var e=(0,a._p)("aiSubjectStore").useState,n=e(["subjectInfo"]).subjectInfo,r=(0,i.ref)(null),o=(0,i.ref)(!1),l=(0,i.ref)(!1),s=(0,i.ref)([]),c=(0,i.ref)(1),u=(0,i.ref)(21),v=(0,i.ref)(!1),m=(0,i.ref)(!0),g=(0,i.ref)(!1),b=(0,i.ref)(null),w=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(t)?t.length?t.join(","):"":""===t||null==t?"":"".concat(t)},k=function(){var e;return(e=function(){var e,i,a,r,l,f,d;return function(t,e){var n,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(a=2&c[0]?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(!(a=(a=r.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){r=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(6===c[0]&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(t){c=[6,t],i=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(p){switch(p.label){case 0:if(!(null==(e=n.value)?void 0:e.agent_id))return s.value=[],[2];1===c.value&&(o.value=!0),i=API.ai_subject_display.get_subject_wiki_interactive_resources,a={agent_id:n.value.agent_id,query:t.toolbarState.keyword||"",category:w(t.toolbarState.filter2),knowledge_node:w(t.toolbarState.filter1),sort:"modified",page:c.value,page_size:u.value,uv_id:n.value.university_id||0,platform_id:n.value.platform_id},p.label=1;case 1:return p.trys.push([1,3,,4]),[4,request.get(i,a)];case 2:return f=(null==(l=p.sent().data)?void 0:l.result)||[],(r=s.value).push.apply(r,function(t){if(Array.isArray(t))return h(t)}(f)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(f)||function(t,e){if(t){if("string"==typeof t)return h(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}}(f)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f.length||(m.value=!1),o.value=!1,v.value=!1,[3,4];case 3:return d=p.sent(),o.value=!1,v.value=!1,console.error("getList",d),[3,4];case 4:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(i,a){var r=e.apply(t,n);function o(t){y(r,i,a,o,l,"next",t)}function l(t){y(r,i,a,o,l,"throw",t)}o(void 0)})})()},C=function(){c.value=1,s.value=[],m.value=!0,l.value=!1,v.value=!1},x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map(function(t){return t.name}).join("、")||"--"},S=function(){var t=r.value;if(t){var e=t.scrollTop,n=t.scrollHeight,i=t.offsetHeight;l.value=e+i+1>=n,e+i+1>=n&&!v.value&&m.value&&(v.value=!0,c.value++,k())}};return(0,i.watch)(function(){var t;return[null==(t=n.value)?void 0:t.agent_id]},function(){C(),k(),r.value&&(r.value.scrollTop=0)},{immediate:!0}),(0,i.watch)(function(){return[t.toolbarState.keyword,t.toolbarState.viewMode,t.toolbarState.filter1,t.toolbarState.filter2]},function(){C(),k(),r.value&&(r.value.scrollTop=0)}),(0,i.watch)(function(){return r.value},function(t,e){null==e||e.removeEventListener("scroll",S),null==t||t.addEventListener("scroll",S)},{immediate:!0}),(0,i.onUnmounted)(function(){var t;null==(t=r.value)||t.removeEventListener("scroll",S)}),{__sfc:!0,useState:e,subjectInfo:n,props:t,scrollRef:r,isLoading:o,showLoading:l,list:s,page:c,pageSize:u,loadingMore:v,more:m,dialogVisible:g,activeItem:b,getFilterValue:w,getList:k,resetList:C,openItem:function(t){b.value=t,g.value=!0},closeDialog:function(){g.value=!1,b.value=null},getNames:x,buildMarkdown:function(t){var e;return["**HTML**:".concat(t.url),"**标题**:".concat(t.title),"**说明**:".concat(t.desc||""),"**关键词**:".concat((null==(e=t.keywords)?void 0:e.join("、"))||""),"**知识点**:".concat(x(t.knowledge_nodes)),"**分类**:".concat(x(t.categories))].join("\n\n")},scrollLoadData:S,empty:f.Z,loading:d.Z,loadingMoreCom:p.Z,textEllipsis:_.Z}}},function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"wiki-interactive-section"},[n.isLoading?e("div",{staticClass:"loading-box"},[e(n.loading)],1):[n.list.length?e("div",{ref:"scrollRef",staticClass:"wiki-section__scroll"},[e("div",{staticClass:"subject-wiki-grid"},t._l(n.list,function(i){var a;return e("div",{key:i.id,staticClass:"subject-wiki-card wiki-card",on:{click:function(t){return n.openItem(i)}}},[e("div",[e("div",{staticClass:"wiki-card__head box-start"},[e("i",{staticClass:"iconfont icon-duihua1"}),t._v(" "),e("h3",{staticClass:"wiki-card__title"},[t._v(t._s(i.title))])]),t._v(" "),"common"===t.toolbarState.viewMode?e("div",{staticClass:"interactive-card"},[e("div",{staticClass:"interactive-card__body"},[e("div",{staticClass:"card-content"},[e("iframe",{staticClass:"card-iframe",attrs:{src:i.url,frameborder:"0",scrolling:"no"}})]),t._v(" "),(null==i||null==(a=i.keywords)?void 0:a.length)?e("div",{staticClass:"interactive-card__keywords"},t._l(i.keywords,function(n){return e("span",{key:n,staticClass:"interactive-card__keyword"},[t._v("\n                    "+t._s(n)+"\n                  ")])}),0):t._e(),t._v(" "),e("p",{staticClass:"interactive-card__note"},[t._v(t._s(i.desc||"--"))])])]):e("pre",{staticClass:"subject-wiki-markdown wiki-card__source"},[e("code",[t._v(t._s(n.buildMarkdown(i)))])])]),t._v(" "),"common"===t.toolbarState.viewMode?e("div",{staticClass:"wiki-card__meta box-start"},[e("p",{staticClass:"subject-wiki-meta-pill box-start"},[t._m(0,!0),t._v(" "),e(n.textEllipsis,{attrs:{"is-html":!1,line_clamp:1,visible_arrow:!0,content:n.getNames(i.knowledge_nodes)}})],1),t._v(" "),e("p",{staticClass:"subject-wiki-meta-pill box-start"},[t._m(1,!0),t._v(" "),e(n.textEllipsis,{attrs:{"is-html":!1,line_clamp:1,visible_arrow:!0,content:n.getNames(i.categories)}})],1)]):t._e()])}),0),t._v(" "),n.showLoading?e(n.loadingMoreCom,{attrs:{list_length:n.list.length,loading_more:n.loadingMore,more:n.more}}):t._e()],1):e(n.empty,{attrs:{text:"暂无数据"}})],t._v(" "),e("el-dialog",{staticClass:"loading-box",attrs:{visible:n.dialogVisible,"custom-class":"common"===t.toolbarState.viewMode?"wiki-interactive-dialog":"subject-wiki-markdown-dialog","append-to-body":""},on:{"update:visible":function(t){n.dialogVisible=t}}},[n.activeItem?["common"===t.toolbarState.viewMode?e("div",{staticClass:"interactive-dialog"},[e("iframe",{staticClass:"interactive-dialog__iframe",attrs:{src:n.activeItem.url,frameborder:"0"}})]):[e("div",{staticClass:"wiki-dialog-header"},[e("div",{staticClass:"flex justify-between items-center"},[e("p",{staticClass:"wiki-dialog-title"},[t._v("\n              "+t._s(n.activeItem.chunk_name)+"\n            ")]),t._v(" "),e("p",{staticClass:"wiki-dialog-close box-center",on:{click:n.closeDialog}},[e("i",{staticClass:"iconfont icon-cu-cha"})])])]),t._v(" "),e("div",{staticClass:"wiki-dialog-content"},[e("pre",{staticClass:"wiki-card__source"},[e("code",[t._v(t._s(n.buildMarkdown(n.activeItem)))])])])]]:t._e()],2)],2)},[function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"meta-item-title box-start"},[t("i",{staticClass:"iconfont icon-tishi"}),this._v("知识点:")])},function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"meta-item-title box-start"},[t("i",{staticClass:"iconfont icon-xuexineirong"}),this._v("分类:")])}],!1,null,"4ab123bc",null).exports;function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function C(t,e,n,i,a,r,o){try{var l=t[r](o),s=l.value}catch(t){n(t);return}l.done?e(s):Promise.resolve(s).then(i,a)}var x=(0,s.Z)({__name:"WikiLlmSection",props:{toolbarState:{type:Object,default:function(){return{viewMode:"markdown",keyword:"",filter1:"",filter2:""}}}},setup:function(t){var e=(0,a._p)("aiSubjectStore").useState,n=e(["subjectInfo"]).subjectInfo,r=(0,i.ref)(null),o=(0,i.ref)(!1),l=(0,i.ref)(!1),s=(0,i.ref)([]),c=(0,i.ref)(1),u=(0,i.ref)(21),m=(0,i.ref)(!1),g=(0,i.ref)(!0),b=(0,i.ref)(!1),h=(0,i.ref)(null),y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Array.isArray(t)?t.length?t.join(","):"":""===t||null==t?"":"".concat(t)},w=function(){var e;return(e=function(){var e,i,a,r,l,v,f;return function(t,e){var n,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(a=2&c[0]?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(!(a=(a=r.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){r=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(6===c[0]&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(t){c=[6,t],i=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}(this,function(d){switch(d.label){case 0:if(!(null==(e=n.value)?void 0:e.agent_id))return s.value=[],[2];1===c.value&&(o.value=!0),i=API.ai_subject_display.get_subject_wiki_llm_chunks,a={agent_id:n.value.agent_id,query:t.toolbarState.keyword||"",category:y(t.toolbarState.filter2),knowledge_node:y(t.toolbarState.filter1),sort:"modified",page:c.value,page_size:u.value,uv_id:n.value.university_id||0,platform_id:n.value.platform_id},d.label=1;case 1:return d.trys.push([1,3,,4]),[4,request.get(i,a)];case 2:return v=(null==(l=d.sent().data)?void 0:l.result)||[],(r=s.value).push.apply(r,function(t){if(Array.isArray(t))return k(t)}(v)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(v)||function(t,e){if(t){if("string"==typeof t)return k(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(t,e)}}(v)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),v.length||(g.value=!1),o.value=!1,m.value=!1,[3,4];case 3:return f=d.sent(),o.value=!1,m.value=!1,console.error("getList",f),[3,4];case 4:return[2]}})},function(){var t=this,n=arguments;return new Promise(function(i,a){var r=e.apply(t,n);function o(t){C(r,i,a,o,l,"next",t)}
1function l(t){C(r,i,a,o,l,"throw",t)}o(void 0)})})()},x=function(){c.value=1,s.value=[],g.value=!0,l.value=!1,m.value=!1},S=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map(function(t){return t.name}).join("、")||"--"},j=function(){var t=r.value;if(t){var e=t.scrollTop,n=t.scrollHeight,i=t.offsetHeight;l.value=e+i+1>=n,e+i+1>=n&&!m.value&&g.value&&(m.value=!0,c.value++,w())}};return(0,i.watch)(function(){var e;return[null==(e=n.value)?void 0:e.agent_id,t.toolbarState.keyword,t.toolbarState.filter1,t.toolbarState.filter2]},function(){x(),w(),r.value&&(r.value.scrollTop=0)},{immediate:!0}),(0,i.watch)(function(){return r.value},function(t,e){null==e||e.removeEventListener("scroll",j),null==t||t.addEventListener("scroll",j)},{immediate:!0}),(0,i.onUnmounted)(function(){var t;null==(t=r.value)||t.removeEventListener("scroll",j)}),{__sfc:!0,useState:e,subjectInfo:n,props:t,scrollRef:r,isLoading:o,showLoading:l,list:s,page:c,pageSize:u,loadingMore:m,more:g,dialogVisible:b,activeItem:h,getFilterValue:y,getList:w,resetList:x,getNames:S,renderMarkdown:function(t){return(0,v.w)(t)},buildMarkdown:function(t){return["**标题**:".concat(t.chunk_name),"**描述**:".concat(t.text||""),"**知识点**:".concat(S(t.knowledge_nodes)),"**分类**:".concat(S(t.categories))].join("\n\n")},scrollLoadData:j,openItem:function(t){h.value=t,b.value=!0},closeDialog:function(){b.value=!1,h.value=null},empty:f.Z,loading:d.Z,loadingMoreCom:p.Z,textEllipsis:_.Z}}},function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"wiki-llm-section"},[n.isLoading?e("div",{staticClass:"loading-box"},[e(n.loading)],1):[n.list.length?e("div",{ref:"scrollRef",staticClass:"wiki-section__scroll"},[e("div",{staticClass:"subject-wiki-grid"},t._l(n.list,function(i){return e("div",{key:i.chunk_id,staticClass:"subject-wiki-card wiki-card flex flex-col justify-between",on:{click:function(t){return n.openItem(i)}}},[e("div",[e("div",{staticClass:"wiki-card__head box-start"},[e("i",{staticClass:"iconfont icon-wenzhang"}),t._v(" "),e("h3",{staticClass:"wiki-card__title"},[t._v(t._s(i.chunk_name))])]),t._v(" "),e("div",{staticClass:"subject-wiki-markdown",style:{height:"common"===t.toolbarState.viewMode?"282px":"360px"}},["common"===t.toolbarState.viewMode?e("div",{staticClass:"mdit",domProps:{innerHTML:t._s(n.renderMarkdown(i.text||""))}}):e("pre",{staticClass:"wiki-card__source"},[e("code",[t._v(t._s(n.buildMarkdown(i)))])])])]),t._v(" "),"common"===t.toolbarState.viewMode?e("div",{staticClass:"wiki-card__meta box-start"},[e("p",{staticClass:"subject-wiki-meta-pill box-start"},[t._m(0,!0),t._v(" "),e(n.textEllipsis,{attrs:{"is-html":!1,line_clamp:1,visible_arrow:!0,content:n.getNames(i.knowledge_nodes)}})],1),t._v(" "),e("p",{staticClass:"subject-wiki-meta-pill box-start"},[t._m(1,!0),t._v(" "),e(n.textEllipsis,{attrs:{"is-html":!1,line_clamp:1,visible_arrow:!0,content:n.getNames(i.categories)}})],1)]):t._e()])}),0),t._v(" "),n.showLoading?e(n.loadingMoreCom,{attrs:{list_length:n.list.length,loading_more:n.loadingMore,more:n.more}}):t._e()],1):e(n.empty,{attrs:{text:"暂无数据"}})],t._v(" "),e("el-dialog",{attrs:{visible:n.dialogVisible,"custom-class":"subject-wiki-markdown-dialog","append-to-body":""},on:{"update:visible":function(t){n.dialogVisible=t}}},[n.activeItem?[e("div",{staticClass:"wiki-dialog-header"},[e("div",{staticClass:"flex justify-between items-center"},[e("p",{staticClass:"wiki-dialog-title"},[t._v("\n            "+t._s(n.activeItem.chunk_name)+"\n          ")]),t._v(" "),e("p",{staticClass:"wiki-dialog-close box-center",on:{click:n.closeDialog}},[e("i",{staticClass:"iconfont icon-cu-cha"})])]),t._v(" "),"common"===t.toolbarState.viewMode?e("div",{staticClass:"wiki-card__meta flex"},[e("p",{staticClass:"subject-wiki-meta-pill box-start"},[e("span",{staticClass:"meta-item-title box-start"},[e("i",{staticClass:"iconfont icon-tishi"}),t._v("知识点:")]),t._v(" "),e("span",[t._v(t._s(n.getNames(n.activeItem.knowledge_nodes)))])]),t._v(" "),e("p",{staticClass:"subject-wiki-meta-pill box-start"},[e("span",{staticClass:"meta-item-title box-start"},[e("i",{staticClass:"iconfont icon-xuexineirong"}),t._v("分类:")]),t._v(" "),e("span",[t._v(t._s(n.getNames(n.activeItem.categories)))])])]):t._e()]),t._v(" "),e("div",{staticClass:"wiki-dialog-content"},["common"===t.toolbarState.viewMode?e("div",{staticClass:"mdit",domProps:{innerHTML:t._s(n.renderMarkdown(n.activeItem.text||""))}}):e("pre",{staticClass:"wiki-card__source"},[e("code",[t._v(t._s(n.buildMarkdown(n.activeItem)))])])])]:t._e()],2)],2)},[function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"meta-item-title box-start"},[t("i",{staticClass:"iconfont icon-tishi"}),this._v("知识点:")])},function(){var t=this._self._c;return this._self._setupProxy,t("span",{staticClass:"meta-item-title box-start"},[t("i",{staticClass:"iconfont icon-xuexineirong"}),this._v("分类:")])}],!1,null,null,null).exports;n(56325),n(61657);var S=(0,s.Z)({__name:"WikiMcpSection",emits:["go-interactive"],setup:function(t,e){var n=e.emit;
1return{__sfc:!0,emit:n,list:[{title:"解剖图学习互动",description:"基于解剖图的交互式学习工具,支持人体各组织器官连线配对,强化解剖空间记忆;",source:"学堂在线",tags:["教学互动","自研 MCP"]}],goInteractive:function(){n("go-interactive")},empty:f.Z}}},function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"wiki-mcp-section"},[e("div",{ref:"scrollRef",staticClass:"wiki-section__scroll"},[n.list.length?e("div",{staticClass:"subject-wiki-grid"},t._l(n.list,function(i){return e("div",{key:i.title,staticClass:"subject-wiki-card tool-card",on:{click:n.goInteractive}},[e("div",{staticClass:"wiki-card__head box-start"},[e("i",{staticClass:"iconfont icon-diannao"}),t._v(" "),e("h3",{staticClass:"wiki-card__title"},[t._v(t._s(i.title))])]),t._v(" "),e("p",{staticClass:"tool-card__desc"},[t._v(t._s(i.description))]),t._v(" "),e("div",{staticClass:"tool-card__source"},[t._v(t._s(i.source))]),t._v(" "),e("div",{staticClass:"tool-card__tags box-start"},[e("i",{staticClass:"iconfont icon-tishi"}),t._v("\n          "+t._s(i.tags.join("、")||[])+"\n        ")])])}),0):e(n.empty,{attrs:{text:"暂无数据"}})],1)])},[],!1,null,"068df517",null).exports;function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function M(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return j(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n(44959),n(72775),n(32927),n(35130);var I=(0,s.Z)({__name:"WikiTeachingSection",props:{toolbarState:{type:Object,default:function(){return{viewMode:"markdown",keyword:"",filter1:"",filter2:""}}}},setup:function(t){var e=(0,i.ref)(null),n=(0,i.ref)(!1),a=(0,i.ref)(null),r=[{title:"引导式教学",scene:"概念理解",type:"教学策略",sections:[{title:"核心目标",content:"引导你独立思考,而非直接给出答案。所有概念、推理类问题,我都将通过反问、追问和类比,帮你自己发现关键逻辑。"},{title:"工作方式",content:"- 提问代替回答:当你提出疑问时,我不会直接解释,而是抛出引导性问题(如“你观察过什么类似现象?”),让你先表达自己的理解。\n- 追踪思维链:我会关注你的推理路径,在关键节点给予提示,但不会代替你完成推理。\n- 矛盾揭示:若你的推理有误,我会用问题暴露矛盾(如“如果按这个逻辑,后面会出现什么结果?”),而不是直接纠正。\n- 巩固确认:当你接近正确答案时,我会用肯定性问题(如“这个结论能解释前面的现象吗?”)帮你巩固理解。"},{title:"参与方式",content:"- 主动提出你的问题或推理过程。\n- 认真思考每个引导性问题,尝试自己得出结论。\n- 不必担心答错,每一个错误都是进一步引导的起点。"},{title:"适用场景",content:"适合需要深入理解机制、锻炼逻辑推理的知识点,如病理生理、药理机制、诊断推理等。"}]},{title:"临床思维训练",scene:"临床思维",type:"技能训练",sections:[{title:"核心目标",content:"围绕你指定的疾病,构建典型病例,分阶段引导你像住院医师一样完成从诊断到治疗的全过程推理。"},{title:"标准流程",content:"1. 病例信息:先给出主诉、现病史、既往史、体格检查等初始资料。\n2. 临床思维问题:针对当前资料,提出一个开放性问题(例如“诊断考虑什么?依据是什么?还需要哪些检查?”)。\n3. 你的作答:请基于现有信息给出你的分析和判断。\n4. 反馈与解析:我会先评价你的回答,指出正确点和遗漏点,再给出完整的答案和解析(含具体依据,如指南标准、量化分级)。\n5. 进入下一阶段:补充新的检查结果或治疗反应,引出下一个问题,循环推进(通常覆盖诊断、严重程度判断、治疗决策、长期管理等)。"},{title:"关键原则",content:"- 每个阶段只提一个问题,不会提前透露后续信息。\n- 若你的回答方向错误ï¼
1Œæˆ‘会先给一层提示,让你有机会自行修正。\n- 解析会结合具体机制和依据,帮助形成可迁移的判断标准。"},{title:"适用场景",content:"巩固临床诊疗思路,提升从症状、体征到决策的实战能力。"}]},{title:"习题解析教学",scene:"课后巩固",type:"反思复习",sections:[{title:"核心目标",content:"针对执业医考题目,先让你自主作答,再通过四步精讲,彻底搞懂题目背后的逻辑,并串联基础与临床。"},{title:"互动顺序",content:"- 你提供题目后,请先说出你的选择及理由,我才会进入解析。\n- 若你明确放弃作答,则直接讲解;否则我会等待你的尝试。"},{title:"四步精讲结构",content:"1. 考点定位:按“学科/章节/知识点”精确到具体考点(如“运动系统/骨学/骨的分类”)。\n2. 掌握层次:根据布鲁姆分类,判定为记忆、理解、应用或分析。\n3. 解析:\n   - 先总述核心知识点。\n   - 分析正确选项为何正确。\n   - 逐一分析错误选项,指出具体错在哪里,并给出对应的正确知识点。\n4. 拓展内容:将基础医学与临床串联,帮助举一反三,不重复解析。"},{title:"反馈衔接",content:"进入解析前,我会明确回应你的答案。选对了指出依据,选错了指明具体知识盲区(如“混淆了XX与XX的机制”),而非简单归为“不熟悉”。"},{title:"适用场景",content:"刷题巩固、考前冲刺,尤其适合错题复盘。"}]},{title:"器官匹配练习",scene:"课堂互动",type:"互动引导",sections:[{title:"核心目标",content:"通过图片拖拽匹配练习,帮助你在视觉上准确识别器官位置,强化解剖空间记忆。"},{title:"交互流程",content:"1. 确认范围:你需明确说出想练习的器官或系统(如“心脏”“消化系统”),我才推送对应练习;若只说“想练习”,我会先询问具体范围。\n2. 热身引导:推送前,我会给一句简短线索(如“回想一下胃在腹部的哪个象限?”),但绝不直接说出图片中的位置答案。\n3. 调用工具:推送练习工具,生成匹配题目,你开始在图片上拖拽。\n4. 练习中的帮助:你若在过程中有疑惑(如“肝和胰腺总是分不清”),我会用知识点提示、类比或反问(如“胰腺和十二指肠关系紧密,顺着这个线索再看看”)引导你自行判断,而不是直接告诉位置。\n5. 练习后反馈:你反馈完成情况后,我会针对薄弱点做简要巩固,并询问是否继续其他器官。"},{title:"重要规则",content:"- 同一器官在同一会话中不重复推送,除非你明确要求“再来一次”。\n- 若你描述身体不适等严肃话题,我会暂停练习,转为正常对话。\n- 全程不替代你完成拖拽,只做引导。"},{title:"适用场景",content:"解剖学基础学习、图像记忆强化、考前快速定位复习。"}]}],o=(0,i.ref)(M(r)),l=function(){var e=(t.toolbarState.keyword||"").trim().toLowerCase();o.value=r.filter(function(n){var i=!e||[n.title,n.scene,n.type].concat(M(n.sections.map(function(t){return"".concat(t.title," ").concat(t.content)}))).join(" ").toLowerCase().includes(e),a=!t.toolbarState.filter1||n.scene===t.toolbarState.filter1,r=!t.toolbarState.filter2||n.type===t.toolbarState.filter2;return i&&a&&r})};return(0,i.watch)(function(){return[t.toolbarState.keyword,t.toolbarState.filter1,t.toolbarState.filter2]},function(){l(),e.value&&(e.value.scrollTop=0)},{immediate:!0}),{__sfc:!0,props:t,scrollRef:e,dialogVisible:n,activeItem:a,teachingList:r,list:o,setList:l,openItem:function(t){a.value=t,n.value=!0},closeDialog:function(){n.value=!1,a.value=null},renderMarkdown:function(t){return(0,v.w)(t)},buildMarkdown:function(t){var e=t.sections.map(function(t){return"**".concat(t.title,"**\n").concat(t.content)});return e.push("**教学场景**\n".concat(t.scene)),e.push("**类型**\n".concat(t.type)),e.join("\n\n")},buildRenderMarkdown:function(t){return t.sections.map(function(t){return"**".concat(t.title,"**\n\n").concat(t.content)}).join("\n\n")}}}},function(){var t=this,e=t._self._c,n=t._self._setupProxy;return e("div",{staticClass:"wiki-teaching-section"},[e("div",{ref:"scrollRef",staticClass:"wiki-section__scroll"},[e("div",{staticClass:"subject-wiki-grid"},t._l(n.list,function(i){return e("div",{key:i.title,staticClass:"subject-wiki-card wiki-card flex flex-col justify-between",on:{click:function(t){return n.openItem(i)}}},[e("div",[e("div",{staticClass:"wiki-card__head box-start"},[e("i",{staticClass:"iconfont icon-jiaoxuefazhan1"}),t._v(" "),e("h3",{staticClass:"wiki-card__title"},[t._v(t._s(i.title))])]),t._v(" "),"common"===t.toolbarState.viewMode?e("div",{staticClass:"subject-wiki-markdown teaching-card__content",domProps:{innerHTML:t._s(n.renderMarkdown(n.buildRenderMarkdown(i)))}}):e("pre",{staticClass:"subject-wiki-markdown wiki-card__source"},[e("code",[t._v(t._s(n.buildMarkdown(i)))])])])])}),0)]),t._v(" "),e("el-dialog",{attrs:{visible:n.dialogVisible,"custom-class":"subject-wiki-markdown-dialog","append-to-body":""},on:{"update:visible":function(t){n.dialogVisible=t}}},[n.activeItem?[e("div",{staticClass:"wiki-dialog-header"},[e("div",{staticClass:"flex justify-between items-center"},[e("p",{staticClass:"wiki-dialog-title"},[t._v("\n            "+t._s(n.activeItem.title)+"\n          ")]),t._v(" "),e("p",{staticClass:"wiki-dialog-close box-center",on:{click:n.closeDialog}},[e("i",{staticClass:"iconfont icon-cu-cha"})])])]),t._v(" "),e("div",{staticClass:"wiki-dialog-content"},["common"===t.toolbarState.viewMode?e("div",{staticClass:"mdit teaching-dialog__content",domProps:{innerHTML:t._s(n.renderMarkdown(n.buildRenderMarkdown(n.activeItem)))}}):e("pre",{staticClass:"wiki-card__source"},[e("code",[t._v(t._s(n.buildMarkdown(n.activeItem)))])])])]:t._e()],2)],1)},[],!1,null,"758f3e04",null).exports;function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function P(t,e,n,i,a,r,o){try{var l=t[r](o),s=l.value}catch(t){n(t);return}l.done?e(s):Promise.resolve(s).then(i,a)}function $(t){return function(){var e=this,n=arguments;return new Promise(function(i,a){var r=t.apply(e,n);function o(t){P(r,i,a,o,l,"next",t)}function l(t){P(r,i,a,o,l,"throw",t)}o(void 0)})}}function A(t){return function(t){if(Array.isArray(t))return L(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return L(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(t,e)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){var n,i,a,r={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=l(0),o.throw=l(1),o.return=l(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(l){return function(s){var c=[l,s];if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(a=2&c[0]?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[2&c[0],a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(!(a=(a=r.trys).length>0&&a[a.length-1])&&(6===c[0]||2===c[0])){r=0;continue}if(3===c[0]&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(6===c[0]&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(t){c=[6,t],i=0}finally{n=a=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}}var O=(0,s.Z)({__name:"index",setup:function(t){var e=(0,a._p)("aiSubjectStore").useState,n=e(["subjectInfo","userInfo"]),o=n.subjectInfo,l=n.userInfo,s=(0,i.ref)({}),v=(0,i.ref)(null),f=(0,i.ref)(null),d=(0,i.ref)("llm"),p=(0,i.ref)(null),_=(0,i.ref)(!1),m=(0,i.ref)([{name:"无知识点",id:"-2"}]),g=(0,i.ref)([{name:"未分类",id:"-2"}]),h=(0,i.ref)({llm:{viewMode:"markdown",keyword:"",filter1:"",filter2:""},image:{viewMode:"markdown",keyword:"",filter1:"",filter2:""},interactive:{viewMode:"markdown",keyword:"",filter1:"",filter2:""},teaching:{viewMode:"markdown",keyword:"",filter1:"",filter2:""}}),y=(0,i.computed)(function(){var t,e,n,i,a;return[{key:"llm",label:"LLM Wiki",count:(null==(t=s.value)?void 0:t.total_llm_wiki_chunk)||0},{key:"image",label:"图文资源",count:(null==(e=s.value)?void 0:e.total_image_text_chunk)||0},{key:"interactive",label:"互动资源",count:(null==(n=s.value)?void 0:n.total_interactive_resource)||0},{key:"mcp",label:"MCP工具",count:+(null!=(i=l.value)&&!!i.user_id
1)},{key:"teaching",label:"教学模式",count:4*(null!=(a=l.value)&&!!a.user_id)}]}),k=(0,i.computed)(function(){if(!l.value)return!1;var t=l.value,e=t.is_super_role,n=t.is_agent_member,i=t.is_aipm_role;return e||n||i}),C=function(){return $(function(){var t,e;return E(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),t=API.ai_subject_display.get_subject_wiki_overview,e={agent_id:o.value.agent_id,uv_id:o.value.university_id||0,platform_id:o.value.platform_id},[4,request.get(t,e)];case 1:return s.value=n.sent().data||{},[3,3];case 2:return console.error("getOverview",n.sent()),[3,3];case 3:return[2]}})})()},j=function(){return $(function(){var t,e,n;return E(this,function(i){switch(i.label){case 0:m.value=[{name:"无知识点",id:"-2"}],t=API.ai_subject_display.get_subject_wiki_knowledge_points,e={agent_id:o.value.agent_id,query:""},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,request.get(t,e)];case 2:return n=i.sent().data,m.value=A(m.value).concat(A(n||[])),[3,4];case 3:return console.error("getKnowledgeList",i.sent()),[3,4];case 4:return[2]}})})()},M=function(){return $(function(){var t,e,n;return E(this,function(i){switch(i.label){case 0:g.value=[{name:"未分类",id:"-2"}],t=API.ai_subject_display.get_subject_wiki_category,e={system_category_from:"chunk",agent_id:o.value.agent_id},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,request.get(t,e)];case 2:return n=(i.sent().data||[]).map(function(t){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(e){var i;i=n[e],e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i})}return t}({name:t.category_name},t)}),g.value=A(g.value).concat(A(n)),[3,4];case 3:return console.error("getCategoryList",i.sent()),[3,4];case 4:return[2]}})})()},L=function(){return $(function(){return E(this,function(t){switch(t.label){case 0:return[4,j()];case 1:return t.sent(),[4,M()];case 2:return t.sent(),[2]}})})()},P=function(){v.value&&v.value.scrollTo({top:v.value.scrollHeight,behavior:"smooth"})},O=function(){P()},T=function(){if(!v.value){_.value=!1;return}var t,e=null==(t=f.value)?void 0:t.querySelector(".subject-wiki-show-screen__hero");if(!e){_.value=!1;return}_.value=v.value.scrollTop>=e.offsetHeight},Z=function(){T()},N=function(){var t,e,n;null==(t=p.value)||t.removeEventListener("scroll",O),p.value=(null==(e=f.value)?void 0:e.querySelector(".wiki-section__scroll"))||null,null==(n=p.value)||n.addEventListener("scroll",O)},V=function(){var t,e;null==(t=v.value)||t.removeEventListener("scroll",Z),null==(e=v.value)||e.addEventListener("scroll",Z)};return(0,i.watch)(function(){var t;return null==(t=o.value)?void 0:t.agent_id},function(){L(),C()},{immediate:!0}),(0,i.watch)(function(){return d.value},function(){return $(function(){return E(this,function(t){switch(t.label){case 0:return[4,(0,i.nextTick)()];case 1:return t.sent(),N(),V(),T(),[2]}})})()},{immediate:!0}),(0,i.onMounted)(function(){var t;(null==(t=l.value)?void 0:t.user_id)||(0,r.Z)({isOpen:!0})}),(0,i.onUnmounted)(function(){var t,e;null==(t=p.value)||t.removeEventListener("scroll",O),null==(e=v.value)||e.removeEventListener("scroll",Z)}),{__sfc:!0,useState:e,subjectInfo:o,userInfo:l,overview:s,subjectWikiScrollScrollRef:v,screenRef:f,activeCategory:d,sectionScrollRef:p,showCount:_,knowledgeList:m,categoryList:g,toolbarStateMap:h,summaryList:y,isPermission:k,getOverview:C,getKnowledgeList:j,getCategoryList:M,getFilterList:L,changeCategory:function(t){d.value=t,h.value[t]&&(h.value[t].keyword="",h.value[t].filter1="",h.value[t].filter2="")},scrollToBottom:P,handleSectionScroll:O,updateShowCount:T,handlePageScroll:Z,bindSectionScroll:N,bindPageScroll:V,WikiCategoryNav:c,WikiHero:u,WikiImageSection:b,WikiInteractiveSection:w,WikiLlmSection:x,WikiMcpSection:S,WikiTeachingSection:I}}},function(){var t=this._self._c,e=this._self._setupProxy;return t("div",{ref:"subjectWikiScrollScrollRef",staticClass:"subject-wiki-scroll"},[e.isPermission?t("div",{ref:"screenRef",staticClass:"subject-wiki-show-screen",class:{"theme-light":"light"===e.subjectInfo.name_info.theme}},[t(e.WikiHero,{attrs:{"summary-list":e.summaryList}}),this._v(" "),t(e.WikiCategoryNav,{attrs:{"show-count":e.showCount,"active-category":e.activeCategory,"toolbar-state":e.toolbarStateMap[e.activeCategory],"knowledge-list":e.knowledgeList,"category-list":e.categoryList,"nav-list":e.summaryList},on:{change:e.changeCategory,"nav-click":e.scrollToBottom,"toolbar-change":function(t){return Object.assign(e.toolbarStateMap[e.activeCategory],t)}}}),this._v(" "),t("section",{staticClass:"subject-wiki-show-screen__content"},["llm"===e.activeCategory?t(e.WikiLlmSection,{attrs:{"toolbar-state":e.toolbarStateMap.llm}}):"image"===e.activeCategory?t(e.WikiImageSection,{attrs:{"toolbar-state":e.toolbarStateMap.image}}):"interactive"===e.activeCategory?t(e.WikiInteractiveSection,{attrs:{"toolbar-state":e.toolbarStateMap.interactive}}):"mcp"===e.activeCategory?t(e.WikiMcpSection,{on:{"go-interactive":function(t){return e.changeCategory("interactive")}}}):"teaching"===e.activeCategory?t(e.WikiTeachingSection,{attrs:{"toolbar-state":e.toolbarStateMap.teaching}}):this._e()],1)],1):t("div",[this._m(0)])])},[function(){var t=this._self._c;return this._self._setupProxy,t("div",{staticClass:"no-permission flex flex-col items-center"},[t("img",{attrs:{src:"https://qn-sfe.yuketang.cn/o_1hate1uva1ib617g91u3d1h2t1l669.png",alt:""}}),this._v("\n      暂无查看权限\n    ")])}],!1,null,"1b4df194",null).exports},92511:function(t,e,n){n.d(e,{Z:function(){return r}}),n(35350);var i=n(18108),a={__name:"empty",props:{text:{type:String,default:i18n.t("DecisionCenter.NoResults")},imgType:{type:Number,default:1},textList:{type:Array,default:function(){return[]}}},setup:function(t){return{__sfc:!0,props:t,imgObj:(0,i.ref)({1:"https://qn-c27.xuetangx.com/17211102761989.png",2:"https://fe-static-yuketang.yuketang.cn/fe/static/assets/rainweb/empty-20250425.png"})}}},r=(0,n(81049).Z)(a,function(){var t=this,e=t._self._c;return e("div",{staticClass:"empty-wrapper"},[e("img",{attrs:{src:t._self._setupProxy.imgObj[t.imgType],alt:""}}),t._v(" "),t.textList.length?e("div",[e("p",{staticClass:"bold f16 no-data-tips"},[t._v(t._s(t.$t("DecisionCenter.NoDataTips")))]),t._v(" "),e("div",{staticClass:"tips-box text-gray-015"},t._l(t.textList,function(n,i){return e("p",{key:i},[e("span",[t._v(t._s(i+1)+".")]),t._v(t._s(n)+"\n      ")])}),0)]):e("p",{staticClass:"text"},[t._v(t._s(t.text))])])},[],!1,null,"a498979a",null).exports},40859:function(t,e,n){n.d(e,{Z:function(){return r}});var i=n(18108),a={__name:"label-input",props:{inputValue:"",label:{type:String,default:i18n.t("DecisionCenter.Search")},placeholder:{type:String,default:i18n.t("DecisionCenter.SearchQuestioner")},width:{type:String,default:"30%"}},emits:["change"],setup:function(t,e){var n=e.emit,a=(0,i.ref)(""),r=(0,i.ref)(null);return(0,i.watch)(function(){return t.inputValue},function(t){a.value=t}),{__sfc:!0,props:t,inputValueData:a,inputRef:r,emits:n,changeFun:function(){n("change",a.value)},clear:function(){a.value=""}}}},r=(0,n(81049).Z)(a,function(){var t=this._self._c,e=this._self._setupProxy;return t("div",{staticClass:"label-select-wrapper label-select-wrapper-new",style:{width:this.width}},[t("i",{staticClass:"iconfont icon-sousuo"}),this._v(" "),t("div",{staticClass:"select-input-wrapper"},[t("el-input",{ref:"inputRef",attrs:{clearable:"",placeholder:this.placeholder},on:{clear:e.clear,change:e.changeFun},model:{value:e.inputValueData,callback:function(t){e.inputValueData=t},expression:"inputValueData"}})],1)])}
1,[],!1,null,"6e46ccba",null).exports},21373:function(t,e,n){n.d(e,{Z:function(){return r}}),n(35350);var i=n(18108),a={__name:"loading-more",props:{list_length:{type:Number,default:0},loading_more:{type:Boolean,default:!0},more:{type:Boolean,default:!0},loading_more_text:{type:String,default:i18n.t("DecisionCenter.LoadingMore")+"..."},not_more_text:{type:String,default:"—— "+i18n.t("DecisionCenter.NoMore")+" ——"}},setup:function(t){var e=(0,i.computed)(function(){return t.list_length&&!t.loading_more&&!t.more});return{__sfc:!0,props:t,noMore:e}}},r=(0,n(81049).Z)(a,function(){var t=this._self._c,e=this._self._setupProxy;return t("div",{staticClass:"loading-more-box",class:{"no-more":e.noMore,"loading-more":this.loading_more}},[this.loading_more?[t("span",{staticClass:"text"},[this._v(this._s(this.loading_more_text))])]:this._e(),this._v(" "),e.noMore?[t("span",{staticClass:"text"},[this._v(this._s(this.not_more_text))])]:this._e()],2)},[],!1,null,"fc4e9970",null).exports},51808:function(t,e,n){n.d(e,{Z:function(){return i}});var i=(0,n(81049).Z)({},function(){var t=this._self._c;return t("div",{staticClass:"loading-wrapper"},[t("img",{attrs:{src:"https://qn-c27.xuetangx.com/17211095503089.png",alt:""}}),this._v(" "),t("p",{staticClass:"loading-text"},[this._v(this._s(this.$t("DecisionCenter.NowLoading"))+"...")])])},[],!1,null,"b85b0f70",null).exports},64101:function(t,e,n){n.d(e,{ol:function(){return _},eJ:function(){return f},Z7:function(){return p},Ab:function(){return d}});var i=n(18108);function a(t,e,n,i){return 3===t.length?t(e,n,i):t(e,n?`${n}/${i}`:i)}function r(t,e){return(0,i.computed)(()=>t.getters[e])}function o(t,e){return function(){return t.commit.apply(t,[e,...arguments])}}function l(t,e){return function(){return t.dispatch.apply(t,[e,...arguments])}}function s(t,e,n,i){if(!n)return{};if(n instanceof Array)return n.reduce((n,r)=>(n[r]=a(i,t,e,r),n),{});let r={};for(let o in n)n.hasOwnProperty(o)&&(r[o]=a(i,t,e,n[o]));return r}function c(){let t=(0,i.getCurrentInstance)();if(!t)throw Error('You must use this function within the "setup()" method, or insert the store as first argument.');let{$store:e}="proxy"in t?t.proxy:t;return e}function u(t,e){return(0,i.computed)(()=>t.state[e])}function v(t,e,n){let a=e.split("/").reduce((t,e)=>t[e],t.state);return(0,i.computed)(()=>a[n])}function f(t,e,n){let i,a,r;return arguments.length>=3?(i=t||c(),a=e||null,r=n||null):2==arguments.length?("string"==typeof t?(i=c(),a=t||null):(i=t||c(),a=null),r=e||null):(i=c(),a=null,r=t||null),s(i,a,r,a?v:u)}function d(t,e,n){let i,a,o;return arguments.length>=3?(i=t||c(),a=e||null,o=n||null):2==arguments.length?("string"==typeof t?(i=c(),a=t||null):(i=t||c(),a=null),o=e||null):(i=c(),a=null,o=t||null),s(i,a,o,r)}function p(t,e,n){let i,a,r;return arguments.length>=3?(i=t||c(),a=e||null,r=n||null):2==arguments.length?("string"==typeof t?(i=c(),a=t||null):(i=t||c(),a=null),r=e||null):(i=c(),a=null,r=t||null),s(i,a,r,o)}function _(t,e,n){let i,a,r;return arguments.length>=3?(i=t||c(),a=e||null,r=n||null):2==arguments.length?("string"==typeof t?(i=c(),a=t||null):(i=t||c(),a=null),r=e||null):(i=c(),a=null,r=t||null),s(i,a,r,l)}},12884:function(t,e,n){n.d(e,{_p:function(){return a}});var i=n(64101);function a(t,e){let n;if(1==arguments.length)e=t;else if(n=t,!e)throw Error("Namespace is missing to provide namespaced helpers");return{useState:t=>(0,i.eJ)(n,e,t),useGetters:t=>(0,i.Ab)(n,e,t),useMutations:t=>(0,i.Z7)(n,e,t),useActions:t=>(0,i.ol)(n,e,t)}}},47827:function(t,e,n){n.d(e,{Z:function(){return a}});var i=n(71778);function a(t){var e=(0,i.S4)()?"yth_login_dialog":"ykt_login_dialog";window.dispatchEvent(new CustomEvent(e,{detail:t}))}},48493:function(t,e,n){n.d(e,{w:function(){return u}}),n(63649),n(44959),n(92287),n(87481),n(42682),n(13794);var i=n(5789),a=n.n(i),r=n(52271),o=n(3055),l=n(96774);function s(t,e){return'<pre class="code-block-wrapper">'+'<code class="hljs code-block-body '.concat(e,'">').concat(t,"</code>")+"</pre>"}var c=new o.Z({html:!0,highlight:function(t,e){if(e&&r.Z.getLanguage(e)){var n=null!=e?e:"";return s(r.Z.highlight(t,{language:n}).value,n)}return s(r.Z.highlightAuto(t).value,"")}});c.use(a(),{blockClass:"katexmath-block rounded-md p10",errorColor:" #cc0000",delimiters:[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!1}],throwOnError:!0}),c.renderer.rules.html_block=function(t,e,n,i,a){var r=t[e].content.trim(),o=RegExp("<span\\s+class=[\"']math\\s+display[\"']>(.*?)<\\/span>","gs");return r.replace(o,function(t,e){return c.render(e)})};var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return null===t?"":c.render((0,l.MB)(t))}},96774:function(t,e,n){n.d(e,{MB:function(){return r},bm:function(){return a},e5:function(){return o},zz:function(){return i}}),n(32927),n(35130),n(13794),n(87481),n(92287),n(42682),n(63649);var i=["mp4","wmv","m4v","flv","rmvb","mov","mkv","webm","avo","mpeg","3gp","mp3","wav","m4a","wma","aac","ogg","amr","flac","aiff","leaf_video","leaf_audio","avi"];function a(t){return i.includes(t)||"leaf_live"==t}function r(t){var e=RegExp("\\$\\\\\\[\\s*(.*?)\\s*\\\\\\]\\$","gs");return t&&(t=(t=(t=(t=(t=(t=(t=t.replace(/\\begin\{(equation|align|alignat|gather|CD)\}([\s\S]*?)\\end\{\1\}/g,"\n\n$$$$$2$$$$\n\n")).replace(e,"\n\n$$$$$1$$$$\n\n")).replace(/\\\(\s*(.*?)\s*\\\)/g,"$$$1$$")).replace(/\$\s*(.*?)\s*\$/g,"$$$1$$")).replace(/\mspace/g," ")).replace(/\*\*(.*)\*\*/g,"**$1** ")).replace(/(\$\$)(.+?)(\$\$)|(\$)(.+?)(\$)/g,function(t,e,n,i,a,r,o){return e&&i?"".concat(e).concat(n).concat(i):a&&o?"".concat(a).concat(r).concat(o," "):t})),t}var o=["jpg","jpeg","png","bmp","tif","gif"]}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.