index-legacy-eb4af10f.js 14 KB

1
  1. !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(A){s=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof d?e:d,a=Object.create(o.prototype),c=new L(r||[]);return i(a,"_invoke",{value:N(t,n,c)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(A){return{type:"throw",arg:A}}}n.wrap=f;var h={};function d(){}function g(){}function v(){}var y={};s(y,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(S([])));w&&w!==r&&o.call(w,c)&&(y=w);var b=v.prototype=d.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(e,n){function r(i,a,c,u){var l=p(e[i],e,a);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&o.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,c,u)}),(function(t){r("throw",t,c,u)})):n.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return a=a?a.then(o,o):o()}})}function N(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return z()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=_(a,n);if(c){if(c===h)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=p(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function _(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=p(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function S(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:z}}function z(){return{value:void 0,done:!0}}return g.prototype=v,i(b,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:g,configurable:!0}),g.displayName=s(v,l,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},n.awrap=function(t){return{__await:t}},x(k.prototype),s(k.prototype,u,(function(){return this})),n.AsyncIterator=k,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new k(f(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),s(b,l,"Generator"),s(b,c,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),n.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},n.values=S,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},n}function n(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void n(l)}c.done?e(u):Promise.resolve(u).then(r,o)}System.register(["./index-legacy-d8ca04f1.js","./index-legacy-c5b52584.js","./index-legacy-ec312598.js","./index-legacy-d56e1bc5.js"],(function(t,r){"use strict";var o,i,a,c,u,l,s,f,p,h,d,g,v,y,m,w,b,x,k,N,_;return{setters:[function(t){o=t.d,i=t.x,a=t.r,c=t.y,u=t.af,l=t.a,s=t.V,f=t.A,p=t.F,h=t.C,d=t.q,g=t.S,v=t.R,y=t.a5,m=t.h,w=t.D,b=t.E},function(t){x=t.M},function(t){k=t.g,N=t.s},function(t){_=t.I}],execute:function(){var j=document.createElement("style");j.textContent="._woringBook_k99iz_1{min-height:100vh;background:url("+new URL("woring-bg-f6d25b0e.png",r.meta.url).href+') no-repeat top center;background-size:contain}._woringHeader_k99iz_6{display:flex;align-items:center;height:var(--van-nav-bar-height)}._woringHeader_k99iz_6 ._leftArrow_k99iz_11{padding:0 var(--k-padding-md)}._woringHeader_k99iz_6 ._title_k99iz_14{position:relative;z-index:1}._woringHeader_k99iz_6 ._title_k99iz_14 i{width:1.6rem;height:.53333rem;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAoCAMAAAACNM4XAAAAkFBMVEUAAAA4NjY4NjY4NjY6MzM4NjY2NjY4NjY4Nzc4NjY3Nzc4Nzc5NTU4NjY4NjY4NjY4NjY3NTU3NjY4NjY2NDQ4NjY4NTU3NzcrKys4NjY3Nzc0NDQ4NjY3NjY4NjY3NTU4NTU4NjY4NjY4NjY3MzM3NjY4NjY4NjY3NjY4NjY3NTU2NjY4NjY4NjY4NjY4NjbZy1a/AAAAL3RSTlMAjuGEHsI9Ua3MZqOY1vZ6RlwztxTs+igHYRIN8vCo59Pas20YnHZ0WEs4LsiBQHq7RwoAAANQSURBVFjD5ZfbeqIwFEYDAVQ8IaKCqGit5yrv/3aT/KmEJIiTma83M+uibCJxUbL3JpJ/l2vIuJJGtiXjozrt8tMOC8Y8GFfjJ0fhRE59HY8YOCXDaRavSsbgrbhXKvTItNSJrcRLzDkivlBKh/y0ywKfBz4L4p8RX+XECS4zCG3EaUfhA+uojqUEhDbicMLI2sRJ+ZaEgIGNGHNSIY4jDkWGRCC3En/ZiF0gxMTjYEqGMCc24nzO4/mIc/aCIPCRzCw48ODAgs/mNfZKDWolviDek7ZyshEvXbDmAyPXRa2uXHfEj2sXLGW+l7d2sZlczWJJ/7uMnPqxT2rscGsTThR1GQUf+GIBOtqWDy305HovdnH7UtxBhhBJXEr8sGwm0JNLindT4GviBeZ9SvEnBhakglqJzTUek4iReJo4w00RKRZPNqvdWjz8SzFPm44u7qO66+KBsci9nxBjNc518VlfZLKnMxQspWHuNZOSJkyxtsRJXZyoiwyGos+2Q3WiFvERBaG+nVAkx1dixzcRzaXUoS1iv9I5auQ3ijHDxGkXz03xEm04UsURWvOyynvWokvOiEH/QIy/h4UinuALU1WcwjMh34SKokU8+wb/zJoFYyHe45pCEW/kLk6KCfYEmzax23tSmBuXbvUU85ARuCWY3UhFukZb18VQrdMW8USmck3cGTIuUgxSfgoKWSkd0S91seiaHWtxiGlCfGc7J4/XK66fr/BeIU824lQXiy3HpiWr/f6TbW0aFvMCMQjj/XSOaHwr6jWaj8Q7GKz0eJRblJNsClFNPMUBtRlz1yyvcpqxLhXk0MRWTLFhMMVd7jvVNg0Y94elwRDfPrUV95ExungkbGlRvQKSOT5tEofIiOSl+IM+8WtixIEQh4vFYsnEK5qQ2ib5yqOT6FBNYtHRTqo422+KoC2rRcF+bKtyovQhX1u3MQPiHZ4/iQOwQSaLOBZ3vVPEoEWs7rDu0SMwwT74gQsu5m8nuaV9vBLP3CdrOe1cvidEEWO1TbF8bBtT3JJcg98Ti2W8vxLfRQLYiAteiNO34szleK/EHj7OFPHukOWvxZHYq92cXpvY5vcxxNvB2UNIuya4v0PV4JfX8/HuDJoILMWPhPw3/ALfNqFjdLNr1QAAAABJRU5ErkJggg==) no-repeat center;background-size:contain}._woringHeader_k99iz_6 ._title_k99iz_14:after{content:" ";display:inline-block;position:absolute;left:0;bottom:-.05333rem;width:1.28rem;height:.16rem;background:linear-gradient(270deg,rgba(119,255,239,.59) 0%,#42CDFF 100%);opacity:.5;z-index:-1}._woringSecgtion_k99iz_37{min-height:calc(100vh - var(--header-height) - 3.2rem);margin-top:3.2rem;background:#FFFFFF;border-radius:.42667rem .42667rem 0 0;padding:.53333rem .37333rem}._woringSecgtion_k99iz_37 ._woringImg_k99iz_44{margin-bottom:.42667rem;width:100%}\n',document.head.appendChild(j);var E="_woringBook_k99iz_1",L="_woringHeader_k99iz_6",S="_leftArrow_k99iz_11",z="_title_k99iz_14",A="_woringSecgtion_k99iz_37",Y="_woringImg_k99iz_44",R=""+new URL("ai-exam-ac155650.png",r.meta.url).href,O=""+new URL("woring-practice-5f4735ad.png",r.meta.url).href,C=""+new URL("woring-stat-fe2f9a06.png",r.meta.url).href,U=o({name:"woring",emits:["close"],setup:function(t,e){e.emit;var n=i({box:{},show:!1,steps:[{ele:"",eleRect:{},img:k("woring1.png"),handStyle:{top:"2.7rem",left:"4.5rem"},imgStyle:{top:"3.3rem",left:"2.1rem"},btnsStyle:{top:"6.2rem",left:"3.5rem"}},{ele:"",eleRect:{},img:k("woring2.png"),handStyle:{top:"2.7rem",left:"4.5rem"},imgStyle:{top:"3.3rem",left:"2.1rem"},btnsStyle:{top:"6.2rem",left:"3.5rem"}},{ele:"",img:k("woring3.png"),handStyle:{top:"-1.43rem",left:"4.5rem",transform:"rotate(180deg)"},imgStyle:{top:"-5.4rem",left:"2.1rem"},btnsStyle:{top:"-2.4rem",left:"2.5rem"}}],step:0}),r=a(!1),o=function(){var t=document.getElementById("woring-".concat(n.step));if(t){var e=t.getBoundingClientRect();n.box={left:e.x+"px",top:e.y+"px",width:e.width+"px",height:e.height+"px"}}else g()};c((function(){setTimeout((function(){var t=localStorage.getItem("guideInfo");t&&JSON.parse(t).woring?r.value=!1:r.value=!0,o()}),300),window.addEventListener("resize",d)}));var d=function(){o()};u((function(){window.removeEventListener("resize",d)}));var g=function(){n.step>=3?v():(n.step=n.step+1,o())},v=function(){var t=JSON.parse(localStorage.getItem("guideInfo")||"{}");t?t.woring=!0:t={woring:!0},localStorage.setItem("guideInfo",JSON.stringify(t)),r.value=!1};return function(){return l(s,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",N.guidePopup],show:r.value,"onUpdate:show":function(t){return r.value=t}},{default:function(){return[l("div",{class:N.content,onClick:function(){return g()}},[l("div",{class:[N.backBtn,N.right],onClick:function(t){t.stopPropagation(),v()}},[f("跳过")]),l("div",{class:N.box,style:n.box,id:"modeType-".concat(n.step)},[n.steps.map((function(t,e){var r,i;return l("div",{onClick:function(t){return t.stopPropagation()},class:N.item,style:{display:e===n.step?"":"none",left:"".concat(null===(r=t.eleRect)||void 0===r?void 0:r.left,"px"),top:"".concat(null===(i=t.eleRect)||void 0===i?void 0:i.top,"px")}},[l("img",{class:N.img,style:t.imgStyle,src:t.img},null),l("img",{class:N.iconHead,style:t.handStyle,src:k("indexDot.png")},null),l("div",{class:N.btns,style:t.btnsStyle},[n.step+1==n.steps.length?l(p,null,[l(h,{class:N.btn,round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:function(){n.step=0,o()}},{default:function(){return[f("再看一遍")]}}),l(h,{class:[N.btn,N.endBtn],round:!0,type:"primary",onClick:function(){return v()}},{default:function(){return[f("完成")]}})]):l(h,{class:N.btn,round:!0,type:"primary",onClick:function(){return g()}},{default:function(){return[f("下一步 ("),n.step+1,f("/"),n.steps.length,f(")")]}})])])}))])])]}})}}});t("default",o({name:"wroing-book",setup:function(){var t=d(),r=function(){var r,o=(r=e().mark((function n(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,w.post("/edu-app/studentUnitExamination/errorEdition",{hideLoading:!1,data:{page:1,rows:50}});case 3:r=e.sent,(r.data||{}).total>0?t.push({path:"/error-question-mode"}):setTimeout((function(){b("暂无错题")}),100),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),n,null,[[0,9]])})),function(){var t=this,e=arguments;return new Promise((function(o,i){var a=r.apply(t,e);function c(t){n(a,o,i,c,u,"next",t)}function u(t){n(a,o,i,c,u,"throw",t)}c(void 0)}))});return function(){return o.apply(this,arguments)}}();return function(){return l("div",{class:E},[l(x,{position:"top"},{default:function(){return[l(g,{border:!1,background:"transparent"},{content:function(){return l("div",{class:L},[l("i",{onClick:function(){v().isApp?y({api:"goBack"}):t.back()},class:["van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow",S]},null),l("span",{class:z},[l("i",null,null)])])}})]}}),l("div",{class:A},[l(_,m({id:"woring-0"},{lazyLoad:!0,src:C,class:Y,onClick:function(){return t.push("wroing-stat")}}),null),l(_,m({id:"woring-1"},{lazyLoad:!0,src:O,class:Y,onClick:r}),null),l(_,m({id:"woring-2"},{lazyLoad:!0,src:R,class:Y,onClick:function(){return t.push("ai-exam")}}),null)]),l(U,null,null)])}}}))}}}))}();