ai-question-pro 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/components/demo/api/index.js +18 -0
- package/components/demo/index.js +7 -0
- package/components/demo/plugins/cache.js +77 -0
- package/components/demo/src/CyTreeSelect.vue +209 -0
- package/components/demo/src/main.vue +536 -0
- package/components/demo/src/questionItem.vue +146 -0
- package/components/demo/static/addQuesTitBg.png +0 -0
- package/components/demo/static/robot.png +0 -0
- package/components/demo/static/unzan_bg.png +0 -0
- package/components/demo/static/unzan_plain.png +0 -0
- package/components/demo/static/zan_bg.png +0 -0
- package/components/demo/static/zan_plain.png +0 -0
- package/components/demo/utils/request.js +76 -0
- package/components/index.js +15 -0
- package/dist/ai-question.common.js +5468 -0
- package/dist/ai-question.common.js.map +1 -0
- package/dist/ai-question.umd.js +5479 -0
- package/dist/ai-question.umd.js.map +1 -0
- package/dist/ai-question.umd.min.js +4 -0
- package/dist/ai-question.umd.min.js.map +1 -0
- package/dist/demo.html +1 -0
- package/package.json +37 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["ai-question"]=t():e["ai-question"]=t()})("undefined"!==typeof self?self:this,(function(){return function(){var e={763:function(e,t,n){"use strict";n.r(t);var i=n(601),o=n.n(i),r=n(314),s=n.n(r),a=s()(o());a.push([e.id,".tree-select__option.el-select-dropdown__item{height:auto;line-height:1;padding:0;background-color:#fff}.tree-select__tree{padding:4px 20px;font-weight:400}.tree-select__tree.tree-select__tree--radio .el-tree-node.is-current>.el-tree-node__content{color:#000;font-weight:700}",""]),t["default"]=a},897:function(e,t,n){"use strict";n.r(t);var i=n(601),o=n.n(i),r=n(314),s=n.n(r),a=n(417),l=n.n(a),c=new URL(n(240),n.b),u=s()(o()),d=l()(c);u.push([e.id,"[data-v-39454ba6].ai_contain{display:inline-block}[data-v-39454ba6].ai_contain .el-drawer__header{padding-top:0;height:80px;background-image:url("+d+");background-size:100% 100%}[data-v-39454ba6].ai_contain .el-drawer__body{padding:0 20px}[data-v-39454ba6].ai_contain .el-drawer__body{display:flex;flex-direction:column;justify-content:space-between}[data-v-39454ba6].ai_contain .el-form-item__label{font-weight:700}[data-v-39454ba6].ai_contain .el-input__inner{padding-right:0}[data-v-39454ba6].ai_contain .el-cascader{width:100%}[data-v-39454ba6].ai_contain .ai_button{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:9px 6px;position:relative;color:#fff;background-color:#456bea;border-radius:4px;border:1px solid #456bea}[data-v-39454ba6].ai_contain .add_question_title{display:flex;align-items:center;font-size:23px;color:#333}[data-v-39454ba6].ai_contain .add_question_body .remind{font-size:14px;color:#9ba1ae}[data-v-39454ba6].ai_contain .add_question_footer{padding:20px 0;border-top:1px solid #e6e6e6;display:flex;justify-content:center;align-items:center}[data-v-39454ba6].ai_contain .el-loading-mask{border-radius:8px}[data-v-39454ba6].ai_contain .el-dialog{background:linear-gradient(327deg,#dbecfe,#f9fcff);border-radius:8px}[data-v-39454ba6].ai_contain .el-dialog .question_title{display:flex;align-items:center;font-weight:700;font-size:23px;color:#333}[data-v-39454ba6].ai_contain .el-dialog .question_title img{margin-right:10px;width:35px;height:40px}[data-v-39454ba6].ai_contain .el-dialog .question_body{padding:10px;min-height:500px;max-height:500px;overflow:auto}[data-v-39454ba6].ai_contain .el-dialog .question_body::-webkit-scrollbar{width:4px}[data-v-39454ba6].ai_contain .el-dialog .question_body::-webkit-scrollbar-button{display:none}[data-v-39454ba6].ai_contain .el-dialog .question_body::-webkit-scrollbar-track-piece{background-color:transparent}[data-v-39454ba6].ai_contain .el-dialog .question_body::-webkit-scrollbar-thumb{border-radius:3px;background:rgba(0,0,0,.5)}[data-v-39454ba6].ai_contain .el-dialog .question_footer{display:flex;justify-content:space-between}[data-v-39454ba6].ai_contain .el-dialog .question_footer .question_remind{align-self:flex-end;font-size:14px;color:#9ba1ae}",""]),t["default"]=u},406:function(e,t,n){"use strict";n.r(t);var i=n(601),o=n.n(i),r=n(314),s=n.n(r),a=s()(o());a.push([e.id,".ai_question_contain[data-v-a8488d3c]{margin-bottom:10px;padding:10px;border-radius:8px;background:hsla(0,0%,100%,.6)}.ai_question_contain .question_contain_title[data-v-a8488d3c]{margin-bottom:16px;display:flex;justify-content:space-between}.ai_question_contain .question_contain_title .question_contain_title_left[data-v-a8488d3c]{color:#333;font-weight:600;font-size:14px;width:80%}.ai_question_contain .question_contain_title .question_contain_title_left .difficult[data-v-a8488d3c]{margin:0 6px;font-weight:400;padding:2px 4px;color:#fff;background:#3e7bfa;font-size:10px;border-radius:2px}.ai_question_contain .question_contain_title .question_contain_title_reght[data-v-a8488d3c]{display:flex;align-items:center}.ai_question_contain .question_contain_title .question_contain_title_reght img[data-v-a8488d3c]{margin:0 5px;cursor:pointer}.ai_question_contain .question_contain_question[data-v-a8488d3c]{margin-bottom:16px}.ai_question_contain .question_contain_question div[data-v-a8488d3c]{margin:5px 0}.ai_question_contain .question_contain_answer[data-v-a8488d3c]{margin-bottom:16px}.ai_question_contain .question_contain_parse[data-v-a8488d3c]{margin-bottom:16px;display:flex;justify-content:space-between}.ai_question_contain .question_contain_parse .question_contain_parse_analysis[data-v-a8488d3c]{width:80%}.ai_question_contain .question_contain_parse .join[data-v-a8488d3c]{align-self:self-end;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;color:#3e7bfa}",""]),t["default"]=a},314:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i="undefined"!==typeof t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,o,r){"string"===typeof e&&(e=[[null,e,void 0]]);var s={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(s[l]=!0)}for(var c=0;c<e.length;c++){var u=[].concat(e[c]);i&&s[u[0]]||("undefined"!==typeof r&&("undefined"===typeof u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},417:function(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},601:function(e){"use strict";e.exports=function(e){return e[1]}},738:function(e,t,n){var i=n(763);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var o=n(292).A;o("1afc7d1a",i,!0,{sourceMap:!1,shadowMode:!1})},948:function(e,t,n){var i=n(897);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var o=n(292).A;o("37ab879b",i,!0,{sourceMap:!1,shadowMode:!1})},27:function(e,t,n){var i=n(406);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var o=n(292).A;o("1148f6c8",i,!0,{sourceMap:!1,shadowMode:!1})},292:function(e,t,n){"use strict";function i(e,t){for(var n=[],i={},o=0;o<t.length;o++){var r=t[o],s=r[0],a=r[1],l=r[2],c=r[3],u={id:e+":"+o,css:a,media:l,sourceMap:c};i[s]?i[s].parts.push(u):n.push(i[s]={id:s,parts:[u]})}return n}n.d(t,{A:function(){return h}});var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},s=o&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,u=function(){},d=null,f="data-vue-ssr-id",p="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){c=n,d=o||{};var s=i(e,t);return m(s),function(t){for(var n=[],o=0;o<s.length;o++){var a=s[o],l=r[a.id];l.refs--,n.push(l)}t?(s=i(e,t),m(s)):s=[];for(o=0;o<n.length;o++){l=n[o];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete r[l.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],i=r[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(b(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(b(n.parts[o]));r[n.id]={id:n.id,refs:1,parts:s}}}}function g(){var e=document.createElement("style");return e.type="text/css",s.appendChild(e),e}function b(e){var t,n,i=document.querySelector("style["+f+'~="'+e.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(p){var o=l++;i=a||(a=g()),t=A.bind(null,i,o,!1),n=A.bind(null,i,o,!0)}else i=g(),t=w.bind(null,i),n=function(){i.parentNode.removeChild(i)};return t(e),function(i){if(i){if(i.css===e.css&&i.media===e.media&&i.sourceMap===e.sourceMap)return;t(e=i)}else n()}}var y=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function A(e,t,n,i){var o=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=y(t,o);else{var r=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function w(e,t){var n=t.css,i=t.media,o=t.sourceMap;if(i&&e.setAttribute("media",i),d.ssrId&&e.setAttribute(f,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},240:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAAAoCAYAAAAYEYTzAAAAAXNSR0IArs4c6QAABFpJREFUeF7tnVt7mzAMhtH//4k7n7p2TXrI1q1XYQ9gIBjLkmzT8MDHXYKw4LX8WRZOS6fXuq6quro8iKj92Jzpjun5ibHpQ9fu/IB/8B8JIP6uN/7o9Hquq6ofqLqB71txV3PDfy4I8G8RXvCfRhDiLxw9KeOPnhtB0EaYP5JdJnGRSnQWYg95BvCvi3Dw9zi5OBpTWcRf5vijp398hkBuZM8Vw7ROGBSCnPLM85CwgsC/Sx2zl2xdO+DfRR7ibzazuC/qygmCdYDDHgRAYIsE6LHNEAaBiD/jsCjhUjUhhZMISiUM+HcEwb+b6r2AkZawiL84gaaa+PD3XEvFB26c+tepx7OnP/Av9lPQAPynWBB/yvk8Mv5aQZCEE+dBAAT2QYCOAUFQF/N6KXFTle3lIQ8Y/pXFRPDvggjxd4khqwRNx5dzbdyGUF4qSylJ6p3Bf0fuWrki+K+GPx0aQcABAiAAAk2ydf8yFhW5oq1EittXxF3H7kNiisbwbys6Wou0wwQN/hPQ/UuLPcUf3f95wwwBqeFqUkMpyBc5j/5fff/TrwRBkHYmp+5E1gYh/IfjyspFy9u3s/oprQPwv1z/JwlCaiDhOhAAgXUToLsmQ7hWWbH01GFlDf+rT2GtXWqyR//P+p/ufss1BO9198Bc+r43lIpcUidKfqQde/AvEdYVLTnO4D/lZy2yS73zlvFPtwpBkG4Y50EABLZBgH6e5hmCNpPifksiohEcwL8ukwd/x8m65EX8sQEWFARxQMMABEBg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nmdximIFzPuZyDmHKodzvB6NHglgsWMRL/zAHTAjijjwu5PnRDN9YK1neK3wqEf3+fPdsZWgLAAOrsZIP1gAwtnUkT6cBHOlI7tsDQFda1TbsAYyejmTdGsAMjiMpTA/C8QuBLz7j26kQYy6500o2CsBaa+jBcT3TIzigbIEYAYDlEsZ4yoTYM29OXNe977bJ9OCnabRefUc4N5OyAZTomjuHNmVf9b8CTENH1wCtTwzvaVq/PZztVQb4B+kWcXZZGijzdGfmuTIAYGqG43MGNgk40Urufl/3zxWqpPEBUMWCERMCTlcAAAAASUVORK5CYII="},342:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAXhJREFUOE+lk79Lw0AUx9+71NK5/qAVREToXyAu4qBuUsFZTEoXcycFBRXX+wccBJsmLRTaVCo4OrnpZosOukoXB83iIDiINHmStF20lRq/w/GF4z733r3vIfxT6J8vFKq3jGHS90QwiQjPg7ie5++gFGKzFDh/MU2bOFd/+H6QfL48pSiRB8dxk1JmP/4M6F54R+QJITLNsIAKkXctRKYcCmAY9iEijQuh7YcCFAqVNGNsW9fV1VCAUqk647p4xbk6HQogpWSJxOwn52qkB3gDgLPu2LaI8Igx71zXtUbn1atrAJjujZUIRgEgKYS6EACKxUrKdZVUEAxEhYgmEOmg3SY1l9MapllbASCDCPc6EHqPxdo32Ww3B/0CYxj2ImNw7DituXh8fiQafX1xnNaYlDLIYk9BBYNkmvYlAJ1wrl1Yln0PQGu6rj0NDbAse93zaFcIdck0a02A9gbn2cehAUSElnVaJ/KWAaAuhLbzvdpfWxjmp38BKRvIESbEF9cAAAAASUVORK5CYII="},356:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAASFJREFUOE+l0r1KxEAUBeBzJ+MoNlYK2qw2eQWLNSktBMFnsLC10GaTLbZIAhY+gYJ22lmK3TpREfEJtFvYzkYIuD9xrhhjEIUYslPNMOd+U5whTLiofJ7J9cdnDGwScKxDtfs7Xwo47XSL2FwUQ2RsHcw8/0RKAdcfXgG0/j3wnqaN24PZXiWg2XpzLGFdA8gfoURPyTl0yPwB1loDG5a0Py+IYYHMAjE8AMtFmPFkhNj7OnMipbzvdmiQ6Y4/fiXweR7eqVjMnQ5VMwNcf8Q6VMW+CsAMjiMlJgF6caQatQGAL3U4vVEfYBzqSO3XBgyJ7ZtAntQGGFiNQ/VQF0hEvz/fPV3J/4E3fCSIxaw+4qV/anxhghcH6iiLV+m8LPMBU6CEEQ0lMS4AAAAASUVORK5CYII="},89:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAWtJREFUOE+l0zFLw0AUAOD3Lm3pXFTagggK/QXiIg7qJi04i4lkMXdSUFBxvT/gILTJBaHSptDB0clJR1t00FW6OGgWF3EQqXlqLCiWFk1vevDufcfjvUMY8uCgeiJC1/UaRLAAAA0hjM3f9wcCrustBwFtCaHPK1VvAXRWODdvfyIDAaW8UwAqcW6cuK53DUAFyzLu/gTYtjfHGBz4fns6lZqJJxKPD77fHpFSBj1AqVTNaZqW+0wgokZEY4i02+mQXiwaTaXqiwBkE+H2VzE9J5OdC9M0X8IWlKo9AWCjK68T4T5jwbFlGc1uvgCA+e+XMUVEWSH02S7gEed6T9xvQlJKlk5PvXKuxyIBtl2ZZCx+xrk+EQlwnHoegDaE0JciAbbt7SHSqBDGTiRAKa8KAOcfLRxFBa6IAiHEWuvfQLlcGde02I3vv2Wk7O6B49QuGcNMuCIEWUS47zfCINxDlEKsHobRkL8Z3gGP/MIR9xXEfwAAAABJRU5ErkJggg=="}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={id:i,exports:{}};return e[i](r,r.exports,n),r.exports}n.m=e,function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.p=""}(),function(){n.b=document.baseURI||self.location.href}();var i={};return function(){"use strict";n.r(i),n.d(i,{default:function(){return Yn}});var e={};if(n.r(e),n.d(e,{hasBrowserEnv:function(){return Xe},hasStandardBrowserEnv:function(){return $e},hasStandardBrowserWebWorkerEnv:function(){return et},origin:function(){return tt}}),"undefined"!==typeof window){var t=window.document.currentScript,o=t&&t.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ai_contain"},[e._t("default",(function(){return[t("span",{staticClass:"ai_button",on:{click:e.showAddQuestion}},[e._v("AI出题")])]})),t("el-drawer",{attrs:{visible:e.addShow,direction:e.direction,wrapperClosable:!1,"destroy-on-close":""},on:{"update:visible":function(t){e.addShow=t}}},[t("template",{slot:"title"},[t("div",{staticClass:"add_question_title"},[t("span",[e._v("AI出题")]),t("img",{attrs:{src:n(931)}})])]),t("div",{staticClass:"add_question_body"},[t("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"100px","label-position":"left"}},[t("el-form-item",{attrs:{label:"题型",prop:"questionType"}},[t("el-radio-group",{attrs:{size:"medium"},model:{value:e.form.questionType,callback:function(t){e.$set(e.form,"questionType",t)},expression:"form.questionType"}},e._l(e.quesTypeList,(function(n){return t("el-radio-button",{key:n.id,attrs:{label:n.id}},[e._v(e._s(n.name))])})),1)],1),t("el-form-item",{attrs:{label:"题目数量",prop:"count"}},[t("el-input",{staticClass:"number_input",staticStyle:{width:"20%"},attrs:{min:"1",max:"10",type:"number"},on:{input:e.handleInput},model:{value:e.form.count,callback:function(t){e.$set(e.form,"count",t)},expression:"form.count"}}),t("div",{staticClass:"remind"},[e._v("(为避免您等待时间过长,一次性最多生成10道题)")])],1),t("el-form-item",{attrs:{label:"关联知识点",prop:"knowledgeIds"}},[t("cy-tree-select",{attrs:{filterable:"",data:e.knowledgeList},model:{value:e.form.knowledgeIds,callback:function(t){e.$set(e.form,"knowledgeIds",t)},expression:"form.knowledgeIds"}})],1),t("el-form-item",{attrs:{label:"难度",prop:"difficulty"}},[t("el-radio-group",{attrs:{size:"medium"},model:{value:e.form.difficulty,callback:function(t){e.$set(e.form,"difficulty",t)},expression:"form.difficulty"}},e._l(e.difficultyList,(function(n){return t("el-radio-button",{key:n.id,attrs:{label:n.id}},[e._v(e._s(n.name))])})),1)],1),t("el-form-item",{attrs:{label:"自定义提示语"}},[t("el-input",{attrs:{autosize:"",placeholder:"请输入",type:"textarea"},model:{value:e.form.prompt,callback:function(t){e.$set(e.form,"prompt",t)},expression:"form.prompt"}})],1)],1)],1),t("div",{staticClass:"add_question_footer"},[t("el-button",{staticStyle:{"background-color":"#3E7BFA",border:"none"},attrs:{type:"primary"},on:{click:e.generate}},[e._v("生成题目")]),t("el-button",{on:{click:function(t){e.addShow=!1}}},[e._v("取 消")])],1)],2),t("el-dialog",{attrs:{visible:e.showQues,"close-on-click-modal":!1},on:{"update:visible":function(t){e.showQues=t}}},[t("template",{slot:"title"},[t("div",{staticClass:"question_title"},[t("img",{attrs:{src:n(931)}}),t("span",[e._v(e._s(e.title))])])]),t("div",{ref:"generateDiv",staticClass:"question_body"},e._l(e.aiResponse.questions,(function(n,i){return e.aiResponse.questions&&e.aiResponse.questions.length>0?t("questionItem",{key:i,attrs:{detail:n,index:i},on:{agree:e.agree,join:e.join}}):e._e()})),1),t("div",{staticClass:"question_footer",attrs:{slot:"footer"},slot:"footer"},[t("span",{staticClass:"question_remind"},[e._v("题目内容由人工智能大模型生成,请您审慎核查,确认内容准确,无不妥后再使用")]),t("el-button",{staticStyle:{"background-color":"#3E7BFA",border:"none"},attrs:{type:"primary"},on:{click:e.rebuild}},[e._v("重新生成")])],1)],2)],2)},s=[],a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"ai_question_contain"},[t("div",{staticClass:"question_contain_title"},[t("span",{staticClass:"question_contain_title_left"},[t("span",[e._v(e._s(e.index+1)+".")]),t("span",{staticClass:"difficult"},[e._v(e._s(e.difficultyList.find((t=>t.id==e.detail.difficulty)).name))]),t("span",[e._v(e._s(e.detail.title))])]),t("span",{staticClass:"question_contain_title_reght"},[0==e.detail.evaluate||2==e.detail.evaluate?t("img",{attrs:{src:n(89)},on:{click:function(t){return e.agree(1)}}}):e._e(),1==e.detail.evaluate?t("img",{attrs:{src:n(356)}}):e._e(),0==e.detail.evaluate||1==e.detail.evaluate?t("img",{attrs:{src:n(342)},on:{click:function(t){return e.agree(2)}}}):e._e(),2==e.detail.evaluate?t("img",{attrs:{src:n(17)}}):e._e()])]),"single"==e.detail.type||"multiple"==e.detail.type?t("div",{staticClass:"question_contain_question"},e._l(e.detail.options,(function(n,i){return t("div",{key:i},[t("span",[e._v(e._s(n))])])})),0):e._e(),t("div",{staticClass:"question_contain_answer"},[e._v("参考答案: "),t("span",{domProps:{innerHTML:e._s(e.detail.answer)}})]),t("div",{staticClass:"question_contain_parse"},[t("span",{staticClass:"question_contain_parse_analysis"},[e._v("题目解析: "+e._s(e.detail.analysis))]),t("span",{staticClass:"join",on:{click:e.join}},[e._v("加入题库")])])])},l=[],c={name:"questionItem",props:{detail:{type:Object,default:()=>{}},index:{type:Number}},data(){return{difficultyList:[{name:"非常简单",id:0},{name:"简单",id:1},{name:"一般",id:2},{name:"困难",id:3},{name:"非常困难",id:4}],options:[{name:"A",id:0},{name:"B",id:1},{name:"C",id:2},{name:"D",id:3},{name:"E",id:4},{name:"F",id:5},{name:"G",id:6},{name:"H",id:7},{name:"I",id:8}]}},methods:{agree(e){this.$emit("agree",this.index,e)},join(e){this.$emit("join",this.detail)}}},u=c;n(27);function d(e,t,n,i,o,r,s,a){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),s?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):o&&(l=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}var f=d(u,a,l,!1,null,"a8488d3c",null),p=f.exports,h=function(){var e=this,t=e._self._c;return t("el-select",{ref:"select",staticStyle:{width:"100%"},attrs:{title:e.multiple?e.optionData.name:"",value:e.value,placeholder:"请选择",size:"medium",clearable:"",disabled:e.disabled,filterable:e.filterable,"filter-method":e.filterMethod},on:{clear:e.clear,"visible-change":e.visibleChange}},[t("el-option",{ref:"option",staticClass:"tree-select__option",attrs:{value:e.optionData.id,label:e.optionData.name}},[t("el-tree",{ref:"tree",staticClass:"tree-select__tree",class:"tree-select__tree--"+(e.multiple?"checked":"radio"),attrs:{"node-key":e.nodeKey,data:e.data,props:e.props,"default-expanded-keys":[e.value],"show-checkbox":e.multiple,"highlight-current":!e.multiple,"expand-on-click-node":e.multiple,"filter-node-method":e.filterNode},on:{"node-click":e.handleNodeClick,"check-change":e.handleCheckChange}})],1)],1)},m=[],g={name:"TreeSelect",props:{value:{type:[String,Number],default:""},multiple:{type:Boolean,default:!1},data:{type:Array,default:function(){return[]}},nodeKey:{type:[String,Number],default:"id"},filterable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},props:{type:Object,default:function(){return{label:"label",children:"children"}}}},data(){return{optionData:{id:"",name:""},filterFlag:!1}},watch:{value:{handler(e){this.isEmpty(this.data)||this.init(e)},immediate:!0},data:function(e){this.isEmpty(e)||this.init(this.value)}},created(){},methods:{isEmpty(e){for(let t in e)return!1;return!0},handleNodeClick(e){this.multiple||(this.$emit("input",e[this.nodeKey]),this.$refs.select.visible=!1)},handleCheckChange(){const e=this.$refs.tree.getCheckedNodes(),t=e.map((e=>e[this.nodeKey])).join(",");this.$emit("input",t)},init(e){if(this.multiple){const t=e.toString().split(",");this.$nextTick((()=>{this.$refs.tree.setCheckedKeys(t);const n=this.$refs.tree.getCheckedNodes();this.optionData.id=e,this.optionData.name=n.map((e=>e[this.props.label])).join(",")}))}else e=""===e?null:e,this.$nextTick((()=>{if(this.$refs.tree.setCurrentKey(e),null===e)return;const t=this.$refs.tree.getNode(e);this.optionData.id=e,this.optionData.name=t.label}))},visibleChange(e){if(e){const e=this.$refs.tree;this.filterFlag&&e.filter(""),this.filterFlag=!1;let t=null;t=this.multiple?e.$el.querySelector(".el-tree-node.is-checked"):e.$el.querySelector(".is-current"),setTimeout((()=>{this.$refs.select.scrollToOption({$el:t})}),0)}},clear(){this.$emit("input","")},filterMethod(e){this.filterFlag=!0,this.$refs.tree.filter(e)},filterNode(e,t){if(!e)return!0;const n=this.props.label||"name";return-1!==t[n].indexOf(e)}}},b=g,y=(n(738),d(b,h,m,!1,null,null,null)),A=y.exports;function w(e,t){return function(){return e.apply(t,arguments)}}const{toString:v}=Object.prototype,{getPrototypeOf:E}=Object,R=(e=>t=>{const n=v.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),S=e=>(e=e.toLowerCase(),t=>R(t)===e),x=e=>t=>typeof t===e,{isArray:C}=Array,O=x("undefined");function T(e){return null!==e&&!O(e)&&null!==e.constructor&&!O(e.constructor)&&B(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const k=S("ArrayBuffer");function q(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&k(e.buffer),t}const j=x("string"),B=x("function"),U=x("number"),_=e=>null!==e&&"object"===typeof e,I=e=>!0===e||!1===e,N=e=>{if("object"!==R(e))return!1;const t=E(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},F=S("Date"),L=S("File"),P=S("Blob"),D=S("FileList"),M=e=>_(e)&&B(e.pipe),J=e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||B(e.append)&&("formdata"===(t=R(e))||"object"===t&&B(e.toString)&&"[object FormData]"===e.toString()))},Q=S("URLSearchParams"),[K,H,G,z]=["ReadableStream","Request","Response","Headers"].map(S),V=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Y(e,t,{allOwnKeys:n=!1}={}){if(null===e||"undefined"===typeof e)return;let i,o;if("object"!==typeof e&&(e=[e]),C(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),r=o.length;let s;for(i=0;i<r;i++)s=o[i],t.call(null,e[s],s,e)}}function W(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,o=n.length;while(o-- >0)if(i=n[o],t===i.toLowerCase())return i;return null}const Z=(()=>"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global)(),X=e=>!O(e)&&e!==Z;function $(){const{caseless:e}=X(this)&&this||{},t={},n=(n,i)=>{const o=e&&W(t,i)||i;N(t[o])&&N(n)?t[o]=$(t[o],n):N(n)?t[o]=$({},n):C(n)?t[o]=n.slice():t[o]=n};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Y(arguments[i],n);return t}const ee=(e,t,n,{allOwnKeys:i}={})=>(Y(t,((t,i)=>{n&&B(t)?e[i]=w(t,n):e[i]=t}),{allOwnKeys:i}),e),te=e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),ne=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ie=(e,t,n,i)=>{let o,r,s;const a={};if(t=t||{},null==e)return t;do{o=Object.getOwnPropertyNames(e),r=o.length;while(r-- >0)s=o[r],i&&!i(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&E(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},oe=(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},re=e=>{if(!e)return null;if(C(e))return e;let t=e.length;if(!U(t))return null;const n=new Array(t);while(t-- >0)n[t]=e[t];return n},se=(e=>t=>e&&t instanceof e)("undefined"!==typeof Uint8Array&&E(Uint8Array)),ae=(e,t)=>{const n=e&&e[Symbol.iterator],i=n.call(e);let o;while((o=i.next())&&!o.done){const n=o.value;t.call(e,n[0],n[1])}},le=(e,t)=>{let n;const i=[];while(null!==(n=e.exec(t)))i.push(n);return i},ce=S("HTMLFormElement"),ue=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),de=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),fe=S("RegExp"),pe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Y(n,((n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)})),Object.defineProperties(e,i)},he=e=>{pe(e,((t,n)=>{if(B(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];B(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},me=(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return C(e)?i(e):i(String(e).split(t)),n},ge=()=>{},be=(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,ye="abcdefghijklmnopqrstuvwxyz",Ae="0123456789",we={DIGIT:Ae,ALPHA:ye,ALPHA_DIGIT:ye+ye.toUpperCase()+Ae},ve=(e=16,t=we.ALPHA_DIGIT)=>{let n="";const{length:i}=t;while(e--)n+=t[Math.random()*i|0];return n};function Ee(e){return!!(e&&B(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])}const Re=e=>{const t=new Array(10),n=(e,i)=>{if(_(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const o=C(e)?[]:{};return Y(e,((e,t)=>{const r=n(e,i+1);!O(r)&&(o[t]=r)})),t[i]=void 0,o}}return e};return n(e,0)},Se=S("AsyncFunction"),xe=e=>e&&(_(e)||B(e))&&B(e.then)&&B(e.catch);var Ce={isArray:C,isArrayBuffer:k,isBuffer:T,isFormData:J,isArrayBufferView:q,isString:j,isNumber:U,isBoolean:I,isObject:_,isPlainObject:N,isReadableStream:K,isRequest:H,isResponse:G,isHeaders:z,isUndefined:O,isDate:F,isFile:L,isBlob:P,isRegExp:fe,isFunction:B,isStream:M,isURLSearchParams:Q,isTypedArray:se,isFileList:D,forEach:Y,merge:$,extend:ee,trim:V,stripBOM:te,inherits:ne,toFlatObject:ie,kindOf:R,kindOfTest:S,endsWith:oe,toArray:re,forEachEntry:ae,matchAll:le,isHTMLForm:ce,hasOwnProperty:de,hasOwnProp:de,reduceDescriptors:pe,freezeMethods:he,toObjectSet:me,toCamelCase:ue,noop:ge,toFiniteNumber:be,findKey:W,global:Z,isContextDefined:X,ALPHABET:we,generateString:ve,isSpecCompliantForm:Ee,toJSONObject:Re,isAsyncFn:Se,isThenable:xe};function Oe(e,t,n,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o)}Ce.inherits(Oe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ce.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Te=Oe.prototype,ke={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ke[e]={value:e}})),Object.defineProperties(Oe,ke),Object.defineProperty(Te,"isAxiosError",{value:!0}),Oe.from=(e,t,n,i,o,r)=>{const s=Object.create(Te);return Ce.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Oe.call(s,e.message,t,n,i,o),s.cause=e,s.name=e.name,r&&Object.assign(s,r),s};var qe=Oe,je=null;function Be(e){return Ce.isPlainObject(e)||Ce.isArray(e)}function Ue(e){return Ce.endsWith(e,"[]")?e.slice(0,-2):e}function _e(e,t,n){return e?e.concat(t).map((function(e,t){return e=Ue(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}function Ie(e){return Ce.isArray(e)&&!e.some(Be)}const Ne=Ce.toFlatObject(Ce,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Fe(e,t,n){if(!Ce.isObject(e))throw new TypeError("target must be an object");t=t||new(je||FormData),n=Ce.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ce.isUndefined(t[e])}));const i=n.metaTokens,o=n.visitor||u,r=n.dots,s=n.indexes,a=n.Blob||"undefined"!==typeof Blob&&Blob,l=a&&Ce.isSpecCompliantForm(t);if(!Ce.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Ce.isDate(e))return e.toISOString();if(!l&&Ce.isBlob(e))throw new qe("Blob is not supported. Use a Buffer instead.");return Ce.isArrayBuffer(e)||Ce.isTypedArray(e)?l&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"===typeof e)if(Ce.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ce.isArray(e)&&Ie(e)||(Ce.isFileList(e)||Ce.endsWith(n,"[]"))&&(a=Ce.toArray(e)))return n=Ue(n),a.forEach((function(e,i){!Ce.isUndefined(e)&&null!==e&&t.append(!0===s?_e([n],i,r):null===s?n:n+"[]",c(e))})),!1;return!!Be(e)||(t.append(_e(o,n,r),c(e)),!1)}const d=[],f=Object.assign(Ne,{defaultVisitor:u,convertValue:c,isVisitable:Be});function p(e,n){if(!Ce.isUndefined(e)){if(-1!==d.indexOf(e))throw Error("Circular reference detected in "+n.join("."));d.push(e),Ce.forEach(e,(function(e,i){const r=!(Ce.isUndefined(e)||null===e)&&o.call(t,e,Ce.isString(i)?i.trim():i,n,f);!0===r&&p(e,n?n.concat(i):[i])})),d.pop()}}if(!Ce.isObject(e))throw new TypeError("data must be an object");return p(e),t}var Le=Fe;function Pe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function De(e,t){this._pairs=[],e&&Le(e,this,t)}const Me=De.prototype;Me.append=function(e,t){this._pairs.push([e,t])},Me.toString=function(e){const t=e?function(t){return e.call(this,t,Pe)}:Pe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Je=De;function Qe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ke(e,t,n){if(!t)return e;const i=n&&n.encode||Qe,o=n&&n.serialize;let r;if(r=o?o(t,n):Ce.isURLSearchParams(t)?t.toString():new Je(t,n).toString(i),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}class He{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ce.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}var Ge=He,ze={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ve="undefined"!==typeof URLSearchParams?URLSearchParams:Je,Ye="undefined"!==typeof FormData?FormData:null,We="undefined"!==typeof Blob?Blob:null,Ze={isBrowser:!0,classes:{URLSearchParams:Ve,FormData:Ye,Blob:We},protocols:["http","https","file","blob","url","data"]};const Xe="undefined"!==typeof window&&"undefined"!==typeof document,$e=(e=>Xe&&["ReactNative","NativeScript","NS"].indexOf(e)<0)("undefined"!==typeof navigator&&navigator.product),et=(()=>"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts)(),tt=Xe&&window.location.href||"http://localhost";var nt={...e,...Ze};function it(e,t){return Le(e,new nt.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return nt.isNode&&Ce.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function ot(e){return Ce.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}function rt(e){const t={},n=Object.keys(e);let i;const o=n.length;let r;for(i=0;i<o;i++)r=n[i],t[r]=e[r];return t}function st(e){function t(e,n,i,o){let r=e[o++];if("__proto__"===r)return!0;const s=Number.isFinite(+r),a=o>=e.length;if(r=!r&&Ce.isArray(i)?i.length:r,a)return Ce.hasOwnProp(i,r)?i[r]=[i[r],n]:i[r]=n,!s;i[r]&&Ce.isObject(i[r])||(i[r]=[]);const l=t(e,n,i[r],o);return l&&Ce.isArray(i[r])&&(i[r]=rt(i[r])),!s}if(Ce.isFormData(e)&&Ce.isFunction(e.entries)){const n={};return Ce.forEachEntry(e,((e,i)=>{t(ot(e),i,n,0)})),n}return null}var at=st;function lt(e,t,n){if(Ce.isString(e))try{return(t||JSON.parse)(e),Ce.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}const ct={transitional:ze,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,o=Ce.isObject(e);o&&Ce.isHTMLForm(e)&&(e=new FormData(e));const r=Ce.isFormData(e);if(r)return i?JSON.stringify(at(e)):e;if(Ce.isArrayBuffer(e)||Ce.isBuffer(e)||Ce.isStream(e)||Ce.isFile(e)||Ce.isBlob(e)||Ce.isReadableStream(e))return e;if(Ce.isArrayBufferView(e))return e.buffer;if(Ce.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return it(e,this.formSerializer).toString();if((s=Ce.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Le(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),lt(e)):e}],transformResponse:[function(e){const t=this.transitional||ct.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(Ce.isResponse(e)||Ce.isReadableStream(e))return e;if(e&&Ce.isString(e)&&(n&&!this.responseType||i)){const n=t&&t.silentJSONParsing,r=!n&&i;try{return JSON.parse(e)}catch(o){if(r){if("SyntaxError"===o.name)throw qe.from(o,qe.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nt.classes.FormData,Blob:nt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ce.forEach(["delete","get","head","post","put","patch"],(e=>{ct.headers[e]={}}));var ut=ct;const dt=Ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var ft=e=>{const t={};let n,i,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim(),!n||t[n]&&dt[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t};const pt=Symbol("internals");function ht(e){return e&&String(e).trim().toLowerCase()}function mt(e){return!1===e||null==e?e:Ce.isArray(e)?e.map(mt):String(e)}function gt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;while(i=n.exec(e))t[i[1]]=i[2];return t}const bt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yt(e,t,n,i,o){return Ce.isFunction(i)?i.call(this,t,n):(o&&(t=n),Ce.isString(t)?Ce.isString(i)?-1!==t.indexOf(i):Ce.isRegExp(i)?i.test(t):void 0:void 0)}function At(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function wt(e,t){const n=Ce.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,o){return this[i].call(this,t,e,n,o)},configurable:!0})}))}class vt{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function o(e,t,n){const o=ht(t);if(!o)throw new Error("header name must be a non-empty string");const r=Ce.findKey(i,o);(!r||void 0===i[r]||!0===n||void 0===n&&!1!==i[r])&&(i[r||t]=mt(e))}const r=(e,t)=>Ce.forEach(e,((e,n)=>o(e,n,t)));if(Ce.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if(Ce.isString(e)&&(e=e.trim())&&!bt(e))r(ft(e),t);else if(Ce.isHeaders(e))for(const[s,a]of e.entries())o(a,s,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=ht(e),e){const n=Ce.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return gt(e);if(Ce.isFunction(t))return t.call(this,e,n);if(Ce.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ht(e),e){const n=Ce.findKey(this,e);return!(!n||void 0===this[n]||t&&!yt(this,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function o(e){if(e=ht(e),e){const o=Ce.findKey(n,e);!o||t&&!yt(n,n[o],o,t)||(delete n[o],i=!0)}}return Ce.isArray(e)?e.forEach(o):o(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;while(n--){const o=t[n];e&&!yt(this,this[o],o,e,!0)||(delete this[o],i=!0)}return i}normalize(e){const t=this,n={};return Ce.forEach(this,((i,o)=>{const r=Ce.findKey(n,o);if(r)return t[r]=mt(i),void delete t[o];const s=e?At(o):String(o).trim();s!==o&&delete t[o],t[s]=mt(i),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ce.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&Ce.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=this[pt]=this[pt]={accessors:{}},n=t.accessors,i=this.prototype;function o(e){const t=ht(e);n[t]||(wt(i,e),n[t]=!0)}return Ce.isArray(e)?e.forEach(o):o(e),this}}vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ce.reduceDescriptors(vt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ce.freezeMethods(vt);var Et=vt;function Rt(e,t){const n=this||ut,i=t||n,o=Et.from(i.headers);let r=i.data;return Ce.forEach(e,(function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)})),o.normalize(),r}function St(e){return!(!e||!e.__CANCEL__)}function xt(e,t,n){qe.call(this,null==e?"canceled":e,qe.ERR_CANCELED,t,n),this.name="CanceledError"}Ce.inherits(xt,qe,{__CANCEL__:!0});var Ct=xt;function Ot(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new qe("Request failed with status code "+n.status,[qe.ERR_BAD_REQUEST,qe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function Tt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function kt(e,t){e=e||10;const n=new Array(e),i=new Array(e);let o,r=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=i[s];o||(o=l),n[r]=a,i[r]=l;let u=s,d=0;while(u!==r)d+=n[u++],u%=e;if(r=(r+1)%e,r===s&&(s=(s+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}var qt=kt;function jt(e,t){let n=0;const i=1e3/t;let o=null;return function(){const t=!0===this,r=Date.now();if(t||r-n>i)return o&&(clearTimeout(o),o=null),n=r,e.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,arguments))),i-(r-n)))}}var Bt=jt,Ut=(e,t,n=3)=>{let i=0;const o=qt(50,250);return Bt((n=>{const r=n.loaded,s=n.lengthComputable?n.total:void 0,a=r-i,l=o(a),c=r<=s;i=r;const u={loaded:r,total:s,progress:s?r/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&c?(s-r)/l:void 0,event:n,lengthComputable:null!=s};u[t?"download":"upload"]=!0,e(u)}),n)},_t=nt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=Ce.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),It=nt.hasStandardBrowserEnv?{write(e,t,n,i,o,r){const s=[e+"="+encodeURIComponent(t)];Ce.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Ce.isString(i)&&s.push("path="+i),Ce.isString(o)&&s.push("domain="+o),!0===r&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Nt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ft(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Lt(e,t){return e&&!Nt(t)?Ft(e,t):t}const Pt=e=>e instanceof Et?{...e}:e;function Dt(e,t){t=t||{};const n={};function i(e,t,n){return Ce.isPlainObject(e)&&Ce.isPlainObject(t)?Ce.merge.call({caseless:n},e,t):Ce.isPlainObject(t)?Ce.merge({},t):Ce.isArray(t)?t.slice():t}function o(e,t,n){return Ce.isUndefined(t)?Ce.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function r(e,t){if(!Ce.isUndefined(t))return i(void 0,t)}function s(e,t){return Ce.isUndefined(t)?Ce.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n,o,r){return r in t?i(n,o):r in e?i(void 0,n):void 0}const l={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(Pt(e),Pt(t),!0)};return Ce.forEach(Object.keys(Object.assign({},e,t)),(function(i){const r=l[i]||o,s=r(e[i],t[i],i);Ce.isUndefined(s)&&r!==a||(n[i]=s)})),n}var Mt=e=>{const t=Dt({},e);let n,{data:i,withXSRFToken:o,xsrfHeaderName:r,xsrfCookieName:s,headers:a,auth:l}=t;if(t.headers=a=Et.from(a),t.url=Ke(Lt(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Ce.isFormData(i))if(nt.hasStandardBrowserEnv||nt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(nt.hasStandardBrowserEnv&&(o&&Ce.isFunction(o)&&(o=o(t)),o||!1!==o&&_t(t.url))){const e=r&&s&&It.read(s);e&&a.set(r,e)}return t};const Jt="undefined"!==typeof XMLHttpRequest;var Qt=Jt&&function(e){return new Promise((function(t,n){const i=Mt(e);let o=i.data;const r=Et.from(i.headers).normalize();let s,{responseType:a}=i;function l(){i.cancelToken&&i.cancelToken.unsubscribe(s),i.signal&&i.signal.removeEventListener("abort",s)}let c=new XMLHttpRequest;function u(){if(!c)return;const i=Et.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),o=a&&"text"!==a&&"json"!==a?c.response:c.responseText,r={data:o,status:c.status,statusText:c.statusText,headers:i,config:e,request:c};Ot((function(e){t(e),l()}),(function(e){n(e),l()}),r),c=null}c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(n(new qe("Request aborted",qe.ECONNABORTED,i,c)),c=null)},c.onerror=function(){n(new qe("Network Error",qe.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let e=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const t=i.transitional||ze;i.timeoutErrorMessage&&(e=i.timeoutErrorMessage),n(new qe(e,t.clarifyTimeoutError?qe.ETIMEDOUT:qe.ECONNABORTED,i,c)),c=null},void 0===o&&r.setContentType(null),"setRequestHeader"in c&&Ce.forEach(r.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),Ce.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),a&&"json"!==a&&(c.responseType=i.responseType),"function"===typeof i.onDownloadProgress&&c.addEventListener("progress",Ut(i.onDownloadProgress,!0)),"function"===typeof i.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Ut(i.onUploadProgress)),(i.cancelToken||i.signal)&&(s=t=>{c&&(n(!t||t.type?new Ct(null,e,c):t),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(s),i.signal&&(i.signal.aborted?s():i.signal.addEventListener("abort",s)));const d=Tt(i.url);d&&-1===nt.protocols.indexOf(d)?n(new qe("Unsupported protocol "+d+":",qe.ERR_BAD_REQUEST,e)):c.send(o||null)}))};const Kt=(e,t)=>{let n,i=new AbortController;const o=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;i.abort(t instanceof qe?t:new Ct(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{o(new qe(`timeout ${t} of ms exceeded`,qe.ETIMEDOUT))}),t);const s=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:a}=i;return a.unsubscribe=s,[a,()=>{r&&clearTimeout(r),r=null}]};var Ht=Kt;const Gt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,o=0;while(o<n)i=o+t,yield e.slice(o,i),o=i},zt=async function*(e,t,n){for await(const i of e)yield*Gt(ArrayBuffer.isView(i)?i:await n(String(i)),t)},Vt=(e,t,n,i,o)=>{const r=zt(e,t,o);let s=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:o}=await r.next();if(t)return e.close(),void i();let a=o.byteLength;n&&n(s+=a),e.enqueue(new Uint8Array(o))},cancel(e){return i(e),r.return()}},{highWaterMark:2})},Yt=(e,t)=>{const n=null!=e;return i=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:i})))},Wt="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,Zt=Wt&&"function"===typeof ReadableStream,Xt=Wt&&("function"===typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$t=Zt&&(()=>{let e=!1;const t=new Request(nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),en=65536,tn=Zt&&!!(()=>{try{return Ce.isReadableStream(new Response("").body)}catch(e){}})(),nn={stream:tn&&(e=>e.body)};Wt&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!nn[t]&&(nn[t]=Ce.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new qe(`Response type '${t}' is not supported`,qe.ERR_NOT_SUPPORT,n)})}))})(new Response);const on=async e=>null==e?0:Ce.isBlob(e)?e.size:Ce.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Ce.isArrayBufferView(e)?e.byteLength:(Ce.isURLSearchParams(e)&&(e+=""),Ce.isString(e)?(await Xt(e)).byteLength:void 0),rn=async(e,t)=>{const n=Ce.toFiniteNumber(e.getContentLength());return null==n?on(t):n};var sn=Wt&&(async e=>{let{url:t,method:n,data:i,signal:o,cancelToken:r,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Mt(e);c=c?(c+"").toLowerCase():"text";let p,h,[m,g]=o||r||s?Ht([o,r],s):[];const b=()=>{!p&&setTimeout((()=>{m&&m.unsubscribe()})),p=!0};let y;try{if(l&&$t&&"get"!==n&&"head"!==n&&0!==(y=await rn(u,i))){let e,n=new Request(t,{method:"POST",body:i,duplex:"half"});Ce.isFormData(i)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body&&(i=Vt(n.body,en,Yt(y,Ut(l)),null,Xt))}Ce.isString(d)||(d=d?"cors":"omit"),h=new Request(t,{...f,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:i,duplex:"half",withCredentials:d});let o=await fetch(h);const r=tn&&("stream"===c||"response"===c);if(tn&&(a||r)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Ce.toFiniteNumber(o.headers.get("content-length"));o=new Response(Vt(o.body,en,a&&Yt(t,Ut(a,!0)),r&&b,Xt),e)}c=c||"text";let s=await nn[Ce.findKey(nn,c)||"text"](o,e);return!r&&b(),g&&g(),await new Promise(((t,n)=>{Ot(t,n,{data:s,headers:Et.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:h})}))}catch(A){if(b(),A&&"TypeError"===A.name&&/fetch/i.test(A.message))throw Object.assign(new qe("Network Error",qe.ERR_NETWORK,e,h),{cause:A.cause||A});throw qe.from(A,A&&A.code,e,h)}});const an={http:je,xhr:Qt,fetch:sn};Ce.forEach(an,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const ln=e=>`- ${e}`,cn=e=>Ce.isFunction(e)||null===e||!1===e;var un={getAdapter:e=>{e=Ce.isArray(e)?e:[e];const{length:t}=e;let n,i;const o={};for(let r=0;r<t;r++){let t;if(n=e[r],i=n,!cn(n)&&(i=an[(t=String(n)).toLowerCase()],void 0===i))throw new qe(`Unknown adapter '${t}'`);if(i)break;o[t||"#"+r]=i}if(!i){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(ln).join("\n"):" "+ln(e[0]):"as no adapter specified";throw new qe("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return i},adapters:an};function dn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ct(null,e)}function fn(e){dn(e),e.headers=Et.from(e.headers),e.data=Rt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);const t=un.getAdapter(e.adapter||ut.adapter);return t(e).then((function(t){return dn(e),t.data=Rt.call(e,e.transformResponse,t),t.headers=Et.from(t.headers),t}),(function(t){return St(t)||(dn(e),t&&t.response&&(t.response.data=Rt.call(e,e.transformResponse,t.response),t.response.headers=Et.from(t.response.headers))),Promise.reject(t)}))}const pn="1.7.2",hn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{hn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const mn={};function gn(e,t,n){if("object"!==typeof e)throw new qe("options must be an object",qe.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let o=i.length;while(o-- >0){const r=i[o],s=t[r];if(s){const t=e[r],n=void 0===t||s(t,r,e);if(!0!==n)throw new qe("option "+r+" must be "+n,qe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new qe("Unknown option "+r,qe.ERR_BAD_OPTION)}}hn.transitional=function(e,t,n){function i(e,t){return"[Axios v"+pn+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new qe(i(o," has been removed"+(t?" in "+t:"")),qe.ERR_DEPRECATED);return t&&!mn[o]&&(mn[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,r)}};var bn={assertOptions:gn,validators:hn};const yn=bn.validators;class An{constructor(e){this.defaults=e,this.interceptors={request:new Ge,response:new Ge}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(i){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{},t.url=e):t=e||{},t=Dt(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:o}=t;void 0!==n&&bn.assertOptions(n,{silentJSONParsing:yn.transitional(yn.boolean),forcedJSONParsing:yn.transitional(yn.boolean),clarifyTimeoutError:yn.transitional(yn.boolean)},!1),null!=i&&(Ce.isFunction(i)?t.paramsSerializer={serialize:i}:bn.assertOptions(i,{encode:yn.function,serialize:yn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=o&&Ce.merge(o.common,o[t.method]);o&&Ce.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Et.concat(r,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[fn.bind(this),void 0];e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);while(d<u)c=c.then(e[d++],e[d++]);return c}u=s.length;let f=t;d=0;while(d<u){const e=s[d++],t=s[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=fn.call(this,f)}catch(p){return Promise.reject(p)}d=0,u=l.length;while(d<u)c=c.then(l[d++],l[d++]);return c}getUri(e){e=Dt(this.defaults,e);const t=Lt(e.baseURL,e.url);return Ke(t,e.params,e.paramsSerializer)}}Ce.forEach(["delete","get","head","options"],(function(e){An.prototype[e]=function(t,n){return this.request(Dt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ce.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,o){return this.request(Dt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}An.prototype[e]=t(),An.prototype[e+"Form"]=t(!0)}));var wn=An;class vn{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,o){n.reason||(n.reason=new Ct(e,i,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new vn((function(t){e=t}));return{token:t,cancel:e}}}var En=vn;function Rn(e){return function(t){return e.apply(null,t)}}function Sn(e){return Ce.isObject(e)&&!0===e.isAxiosError}const xn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(xn).forEach((([e,t])=>{xn[t]=e}));var Cn=xn;function On(e){const t=new wn(e),n=w(wn.prototype.request,t);return Ce.extend(n,wn.prototype,t,{allOwnKeys:!0}),Ce.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return On(Dt(e,t))},n}const Tn=On(ut);Tn.Axios=wn,Tn.CanceledError=Ct,Tn.CancelToken=En,Tn.isCancel=St,Tn.VERSION=pn,Tn.toFormData=Le,Tn.AxiosError=qe,Tn.Cancel=Tn.CanceledError,Tn.all=function(e){return Promise.all(e)},Tn.spread=Rn,Tn.isAxiosError=Sn,Tn.mergeConfig=Dt,Tn.AxiosHeaders=Et,Tn.formToJSON=e=>at(Ce.isHTMLForm(e)?new FormData(e):e),Tn.getAdapter=un.getAdapter,Tn.HttpStatusCode=Cn,Tn.default=Tn;var kn=Tn;
|
|
2
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
3
|
+
function qn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var jn={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Bn(e,t){function n(n,i,o){if("undefined"!==typeof document){o=qn({},t,o),"number"===typeof o.expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var s in o)o[s]&&(r+="; "+s,!0!==o[s]&&(r+="="+o[s].split(";")[0]));return document.cookie=n+"="+e.write(i,n)+r}}function i(t){if("undefined"!==typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],i={},o=0;o<n.length;o++){var r=n[o].split("="),s=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(i[a]=e.read(s,a),t===a)break}catch(l){}}return t?i[t]:i}}return Object.create({set:n,get:i,remove:function(e,t){n(e,"",qn({},t,{expires:-1}))},withAttributes:function(e){return Bn(this.converter,qn({},this.attributes,e))},withConverter:function(e){return Bn(qn({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Un=Bn(jn,{path:"/"});const _n={set(e,t){sessionStorage&&null!=e&&null!=t&&sessionStorage.setItem(e,t)},get(e){return sessionStorage?null==e?null:sessionStorage.getItem(e):null},setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(null!=t)return JSON.parse(t)},remove(e){sessionStorage.removeItem(e)}},In={set(e,t){localStorage&&null!=e&&null!=t&&localStorage.setItem(e,t)},get(e){return localStorage?null==e?null:localStorage.getItem(e):null},setJSON(e,t){null!=t&&this.set(e,JSON.stringify(t))},getJSON(e){const t=this.get(e);if(null!=t)return JSON.parse(t)},remove(e){localStorage.removeItem(e)}};var Nn={session:_n,local:In};kn.defaults.headers["Content-Type"]="application/json;charset=utf-8";const Fn=kn.create({baseURL:"https://zjyw.icve.com.cn/ai-api",timeout:8e4});Fn.interceptors.request.use((e=>{(e.headers||{}).isToken;const t=!1===(e.headers||{}).repeatSubmit;if(Un.get("AiToken")&&(e.headers["Authorization"]="Bearer "+Un.get("AiToken")),"get"===e.method&&e.params){let t=e.url+"?"+tansParams(e.params);t=t.slice(0,-1),e.params={},e.url=t}if(!t&&("post"===e.method||"put"===e.method)){const t={url:e.url,data:"object"===typeof e.data?JSON.stringify(e.data):e.data,time:(new Date).getTime()},n=Nn.session.getJSON("sessionObj");if(void 0===n||null===n||""===n)Nn.session.setJSON("sessionObj",t);else{const e=n.url,i=n.data,o=n.time,r=100;i===t.data&&t.time-o<r&&e===t.url||Nn.session.setJSON("sessionObj",t)}}return e}),(e=>{Promise.reject(e)})),Fn.interceptors.response.use((e=>"blob"===e.request.responseType||"arraybuffer"===e.request.responseType?e.data:(e.data.code,e.data.success?e.data:void 0)));var Ln=Fn;const Pn=e=>Ln({url:"/xh/aiQuestion",method:"post",data:e}),Dn=e=>Ln({url:"/xh/evaluateQuestion",method:"post",data:e});var Mn={name:"aiQuestion",components:{questionItem:p,CyTreeSelect:A},props:{top:{type:[String,Number],default:0},knowledgeList:{type:Array,default:()=>[{id:"1",label:"大学英语",children:[{id:"1-1",label:"用英语打招呼"}]},{id:"2",label:"大学物理",children:[{id:"2-1",label:"结构力学",children:[{id:"2-1-1",label:"力的构成"}]},{id:"2-2",label:"流体力学"}]},{id:"3",label:"高数"}]},propFormat:{type:Object,default:()=>({id:"id",label:"label",children:"children"})}},data(){return{showQues:!1,addShow:!1,generateCount:0,direction:"rtl",form:{questionTypes:[],questionType:null,count:1,knowledgeId:[],knowledgeIds:"",difficultys:[],difficulty:null,knowledge:[]},quesTypeList:[{name:"单选题",id:"single"},{name:"多选题",id:"multiple"},{name:"判断题",id:"judge"},{name:"填空题",id:"gapfilling"},{name:"简答题",id:"shortanswer"}],difficultyList:[{name:"非常简单",id:0},{name:"简单",id:1},{name:"一般",id:2},{name:"困难",id:3},{name:"非常困难",id:4}],rules:{questionTypes:[{required:!0,message:"此项必填",trigger:"change"}],questionType:[{required:!0,message:"此项必填",trigger:"change"}],count:[{required:!0,message:"此项必填",trigger:"blur"}],knowledgeIds:[{required:!0,message:"此项必填",trigger:"change"}],difficultys:[{required:!0,message:"此项必填",trigger:"change"}],difficulty:[{required:!0,message:"此项必填",trigger:"change"}]},loading:null,aiResponse:{},title:"单选题"}},watch:{showQues(e){e||(this.aiResponse={})}},mounted(){let e=document.getElementsByClassName("rtl")[0];this.top&&(e.style.top=this.top+"px",e.style.height=`calc( 100% - ${this.top}px)`)},methods:{handleInput(e){e=parseFloat(e),this.form.count=e<1?1:e>10?10:e},closeDrowdown(e){this.$nextTick((()=>{this.$refs.cascader.dropDownVisible=!1}))},showAddQuestion(){if(!Un.get("AiToken"))return this.$message.warning("未获取到登录信息,请重新登录");this.form={questionTypes:[],questionType:null,count:1,knowledgeId:[],knowledgeIds:"",difficultys:[],difficulty:null,knowledge:[]},this.addShow=!this.addShow},generate(){this.$refs.form.validate((e=>{e&&(this.form.knowledgeId=this.form.knowledgeIds.split(","),this.form.knowledgeId.forEach((e=>{this.getKnowledgeName(e,this.knowledgeList)})),this.form.questionTypes.push(this.form.questionType),this.form.difficultys.push(this.form.difficulty),this.form.questionTypes.length>1?this.title="多类题":this.title=this.quesTypeList.find((e=>e.id==this.form.questionTypes[0])).name,this.showQues=!0,this.addShow=!this.addShow,this.sendPost())}))},rebuild(){this.sendPost()},showGenerateResult(){this.generateCount++,this.generateCount==this.form.count?this.$message.success("题目("+this.form.count+"道)全部生成完毕!"):this.$message.success("生成"+this.generateCount+"道题目成功"),this.$nextTick((()=>{const e=this.$refs.generateDiv;e.scrollTop=e.scrollHeight}))},reSend(){this.loading&&this.loading.close(),this.loading=this.$loading({target:".el-dialog",text:"ai生成中..."});let e={modelType:"aliyun",questionAddCmd:{questionTypes:this.form.questionTypes,count:1,knowledge:this.form.knowledge.join(" "),knowledgeId:this.form.knowledgeId[this.form.knowledgeId.length-1],difficultys:this.form.difficultys,prompt:this.form.prompt},sessionId:this.aiResponse.sessionId?this.aiResponse.sessionId:""};Pn(e).then((e=>{if(e.success){if(this.loading&&this.loading.close(),!(e.data&&e.data.questions&&e.data.questions.length>0))return this.$message.warning("生成"+this.generateCount+"道题目获取失败,重新生成中..."),this.reSend();this.aiResponse.questions&&this.aiResponse.questions.length>0?this.aiResponse.questions.push(e.data.questions[0]):this.aiResponse=e.data,this.$set(e.data.questions[0],"evaluate",0),this.showGenerateResult()}else this.loading&&this.loading.close(),this.$message.warning("生成"+this.generateCount+"道题目获取失败")})).catch((e=>{console.log("error:"+e),this.loading&&this.loading.close(),this.$message.warning("生成"+this.generateCount+"道题目获取失败")}))},sendPost(){this.generateCount=0,this.aiResponse={},this.loading&&this.loading.close(),this.loading=this.$loading({target:".el-dialog",text:"ai生成中..."});for(let e=0;e<this.form.count;e++){let e={modelType:"aliyun",questionAddCmd:{questionTypes:this.form.questionTypes,count:1,knowledge:this.form.knowledge.join(" "),knowledgeId:this.form.knowledgeId[this.form.knowledgeId.length-1],difficultys:this.form.difficultys,prompt:this.form.prompt},sessionId:this.aiResponse.sessionId?this.aiResponse.sessionId:""};Pn(e).then((e=>{if(e.success){if(this.loading&&this.loading.close(),!(e.data&&e.data.questions&&e.data.questions.length>0))return this.$message.warning("生成"+this.generateCount+"道题目获取失败"),this.reSend();this.aiResponse.questions&&this.aiResponse.questions.length>0?this.aiResponse.questions.push(e.data.questions[0]):this.aiResponse=e.data,this.$set(e.data.questions[0],"evaluate",0),this.showGenerateResult()}else this.loading&&this.loading.close(),this.$message.warning("生成"+this.generateCount+"道题目获取失败")})).catch((e=>{console.log("error:"+e),this.loading&&this.loading.close(),this.$message.warning("生成"+this.generateCount+"道题目获取失败")}))}},getKnowledgeName(e,t){t.forEach((t=>{if(e==t.id)return this.form.knowledge.push(t.label);t.children&&t.children.length>0&&this.getKnowledgeName(e,t.children)}))},agree(e,t){this.aiResponse.questions[e].evaluate=t;let n={modelType:"aliyun",...this.aiResponse};Dn(n).then((e=>{})).catch((e=>{console.log(e)}))},join(e){this.$emit("joinQuestionBank",{...e,knowledgePointsId:this.form.knowledgeId[this.form.knowledgeId.length-1]})}}},Jn=Mn,Qn=(n(948),d(Jn,r,s,!1,null,"39454ba6",null)),Kn=Qn.exports;Kn.install=function(e){e.component(Kn.name,Kn)};var Hn=Kn;const Gn={aiQuestion:Hn},zn=function(e){zn.installed||Object.keys(Gn).forEach((t=>{e.component(Gn[t].name,Gn[t])}))};var Vn={install:zn},Yn=Vn}(),i}()}));
|
|
4
|
+
//# sourceMappingURL=ai-question.umd.min.js.map
|