index-legacy-0ed9d0ff.js 16 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 r};var r={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(A){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),c=new O(n||[]);return i(a,"_invoke",{value:N(t,r,c)}),a}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(A){return{type:"throw",arg:A}}}r.wrap=f;var g={};function h(){}function d(){}function v(){}var y={};s(y,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(k([])));w&&w!==n&&o.call(w,c)&&(y=w);var b=v.prototype=h.prototype=Object.create(y);function j(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,r){function n(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")?r.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,u)}))}u(l.arg)}var a;i(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return a=a?a.then(o,o):o()}})}function N(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=_(a,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=p(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function _(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=p(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,g;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,g):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function E(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function k(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 r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=v,i(b,"constructor",{value:v,configurable:!0}),i(v,"constructor",{value:d,configurable:!0}),d.displayName=s(v,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},j(x.prototype),s(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(f(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(b),s(b,l,"Generator"),s(b,c,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=k,O.prototype={constructor:O,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(S),!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 r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("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 r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),g}},r}function r(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(l){return void r(l)}c.done?e(u):Promise.resolve(u).then(n,o)}function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function i(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}System.register(["./index-legacy-61fa3446.js","./index-legacy-6bf0821c.js","./index-legacy-b510466b.js","./index-legacy-eac1e2ef.js"],(function(t,n){"use strict";var i,a,c,u,l,s,f,p,g,h,d,v,y,m,w,b,j,x,N,_,E;return{setters:[function(t){i=t.d,a=t.x,c=t.r,u=t.y,l=t.af,s=t.a,f=t.V,p=t.A,g=t.F,h=t.C,d=t.q,v=t.S,y=t.R,m=t.a5,w=t.h,b=t.D,j=t.E},function(t){x=t.M},function(t){N=t.g,_=t.s},function(t){E=t.I}],execute:function(){var S=document.createElement("style");S.textContent="._woringBook_uv0qg_1{min-height:100vh;background:url("+new URL("woring-bg-f6d25b0e.png",n.meta.url).href+') no-repeat top center;background-size:contain}._woringHeader_uv0qg_6{display:flex;align-items:center;height:var(--van-nav-bar-height)}._woringHeader_uv0qg_6 ._leftArrow_uv0qg_11{padding:0 var(--k-padding-md)}._woringHeader_uv0qg_6 ._title_uv0qg_14{position:relative;z-index:1}._woringHeader_uv0qg_6 ._title_uv0qg_14 i{width:1.6rem;height:.53333rem;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAAoCAMAAAACNM4XAAAAkFBMVEUAAAA4NjY4NjY4NjY6MzM4NjY2NjY4NjY4Nzc4NjY3Nzc4Nzc5NTU4NjY4NjY4NjY4NjY3NTU3NjY4NjY2NDQ4NjY4NTU3NzcrKys4NjY3Nzc0NDQ4NjY3NjY4NjY3NTU4NTU4NjY4NjY4NjY3MzM3NjY4NjY4NjY3NjY4NjY3NTU2NjY4NjY4NjY4NjY4NjbZy1a/AAAAL3RSTlMAjuGEHsI9Ua3MZqOY1vZ6RlwztxTs+igHYRIN8vCo59Pas20YnHZ0WEs4LsiBQHq7RwoAAANQSURBVFjD5ZfbeqIwFEYDAV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uDJoILMWPhPw3/ALfNqFjdLNr1QAAAABJRU5ErkJggg==) no-repeat center;background-size:contain}._woringHeader_uv0qg_6 ._title_uv0qg_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_uv0qg_37{min-height:calc(100vh - var(--header-height) - 2.93333rem);margin-top:2.93333rem;background:#FFFFFF;border-radius:.42667rem .42667rem 0 0;padding:.53333rem .37333rem}._woringSecgtion_uv0qg_37 ._woringImg_uv0qg_44{margin-bottom:.42667rem;width:100%}\n',document.head.appendChild(S);var O="_woringBook_uv0qg_1",k="_woringHeader_uv0qg_6",L="_leftArrow_uv0qg_11",A="_title_uv0qg_14",Y="_woringSecgtion_uv0qg_37",R="_woringImg_uv0qg_44",P=""+new URL("ai-exam-ac155650.png",n.meta.url).href,C=""+new URL("woring-practice-5f4735ad.png",n.meta.url).href,U=""+new URL("woring-stat-fe2f9a06.png",n.meta.url).href,q=i({name:"woring",emits:["close"],setup:function(t,e){e.emit;var r=a({box:{height:""},show:!1,steps:[{ele:"",eleRect:{},img:N("woring1.png"),handStyle:{left:"4.5rem"},imgStyle:{width:"8.19rem",height:"3.9rem",top:"0.6rem",left:"0.8rem"},btnsStyle:{top:"5.8rem",left:"3.5rem"},type:"bottom"},{ele:"",eleRect:{},img:N("woring2.png"),handStyle:{left:"4.5rem"},imgStyle:{width:"8.19rem",height:"3.9rem",top:"0.6rem",left:"0.8rem"},btnsStyle:{top:"5.8rem",left:"3.5rem"},type:"bottom"},{ele:"",img:N("woring3.png"),handStyle:{top:"-1.39rem",left:"4.5rem",transform:"rotate(180deg)"},imgStyle:{width:"8.19rem",height:"3.9rem",top:"-7.4rem",left:"0.8rem"},btnsStyle:{top:"-2.4rem",left:"2.5rem"}}],step:0}),n=c(!1),i=c(!0),d=function(){var t=document.getElementById("woring-".concat(r.step));if(t){var e,n=t.getBoundingClientRect();r.box={left:n.x+"px",top:n.y+"px",width:n.width+"px",height:n.height+"px"},console.log(null===(e=r.box)||void 0===e?void 0:e.height)}else y()};u((function(){setTimeout((function(){var t=localStorage.getItem("guideInfo");t&&JSON.parse(t).woring?n.value=!1:n.value=!0,document.documentElement.clientWidth>750?(console.log("PAD"),i.value=!0):(i.value=!1,console.log("PHONE")),d()}),500),window.addEventListener("resize",v)}));var v=function(){d()};l((function(){window.removeEventListener("resize",v)}));var y=function(){r.step>=3?m():(r.step=r.step+1,d())},m=function(){var t=JSON.parse(localStorage.getItem("guideInfo")||"{}");t?t.woring=!0:t={woring:!0},localStorage.setItem("guideInfo",JSON.stringify(t)),n.value=!1};return function(){return s(f,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",_.guidePopup],show:n.value,"onUpdate:show":function(t){return n.value=t}},{default:function(){return[s("div",{class:_.content,onClick:function(){return y()}},[r.step!=r.steps.length-1&&s("div",{class:[_.backBtn,_.right],onClick:function(t){t.stopPropagation(),m()}},[p("跳过")]),s("div",{class:[_.box,_.noscalc],style:o({},r.box),id:"modeType-".concat(r.step)},[r.steps.map((function(t,e){var n,o,i,a;return s("div",{onClick:function(t){return t.stopPropagation()},class:_.item,style:"bottom"==t.type?{display:e===r.step?"":"none",left:"".concat(null===(n=t.eleRect)||void 0===n?void 0:n.left,"px"),top:"".concat(null===(o=r.box)||void 0===o?void 0:o.height)}:{display:e===r.step?"":"none",left:"".concat(null===(i=t.eleRect)||void 0===i?void 0:i.left,"px"),top:"".concat(null===(a=t.eleRect)||void 0===a?void 0:a.top,"px")}},[s("img",{class:_.img,style:t.imgStyle,src:t.img},null),s("img",{class:_.iconHead,style:t.handStyle,src:N("indexDot.png")},null),s("div",{class:_.btns,style:t.btnsStyle},[r.step+1==r.steps.length?s(g,null,[s(h,{class:_.btn,round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:function(){r.step=0,d()}},{default:function(){return[p("再看一遍")]}}),s(h,{class:[_.btn,_.endBtn],round:!0,type:"primary",onClick:function(){return m()}},{default:function(){return[p("完成")]}})]):s(h,{class:_.btn,round:!0,type:"primary",onClick:function(){return y()}},{default:function(){return[p("下一步 ("),r.step+1,p("/"),r.steps.length,p(")")]}})])])}))])])]}})}}});t("default",i({name:"wroing-book",setup:function(){var t=d(),n=function(){var n,o=(n=e().mark((function r(){var n;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,b.post("/edu-app/studentUnitExamination/errorEdition",{hideLoading:!1,data:{page:1,rows:50}});case 3:n=e.sent,(n.data||{}).total>0?t.push({path:"/error-question-mode"}):setTimeout((function(){j("暂无错题")}),100),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),r,null,[[0,9]])})),function(){var t=this,e=arguments;return new Promise((function(o,i){var a=n.apply(t,e);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))});return function(){return o.apply(this,arguments)}}();return function(){return s("div",{class:O},[s(x,{position:"top"},{default:function(){return[s(v,{border:!1,background:"transparent"},{content:function(){return s("div",{class:k},[s("i",{onClick:function(){y().isApp?m({api:"goBack"}):t.back()},class:["van-badge__wrapper van-icon van-icon-arrow-left van-nav-bar__arrow",L]},null),s("span",{class:A},[s("i",null,null)])])}})]}}),s("div",{class:Y},[s(E,w({id:"woring-0"},{lazyLoad:!0,src:U,class:R,onClick:function(){return t.push("wroing-stat")}}),null),s(E,w({id:"woring-1"},{lazyLoad:!0,src:C,class:R,onClick:n}),null),s(E,w({id:"woring-2"},{lazyLoad:!0,src:P,class:R,onClick:function(){return t.push("ai-exam")}}),null)]),s(q,null,null)])}}}))}}}))}();