System.register(["./index-legacy-c607a020.js"],(function(e,t){"use strict";var n,o,r,i,a,s,c,l,u,d,p,m,h,f,w,y,g,v,E,b,T,A,C,k,K,L,X,x,Y=document.createElement("style");return Y.textContent='body{user-select:none}:root{--van-primary-color: #1CACF1;--color-primary: #1CACF1;--active-stave-box: rgba(25, 140, 254, .2)}.center-closeBtn>.van-icon-cross{background:linear-gradient(90deg,#5BECFF,#259CFE);color:#fff;border-radius:50%;top:0;right:0;transform:translate(20%,-40%);width:.66667rem;height:.66667rem}.center-closeBtn>.van-icon-cross:before,.center-closeBtn>.van-icon-cross:after{content:"";position:absolute;height:.37333rem;width:.02667rem;top:.13333rem;right:.32rem;background:#fff}.center-closeBtn>.van-icon-cross:before{transform:rotate(45deg)}.center-closeBtn>.van-icon-cross:after{transform:rotate(-45deg)}.shiyiBox>.van-icon-cross{display:none!important}.normal-close>.van-icon-cross{width:.4rem;height:.4rem;cursor:pointer}.normal-close>.van-icon-cross:before,.normal-close>.van-icon-cross:after{content:"";position:absolute;height:.4rem;width:.04rem;top:.10667rem;right:.24rem;background:rgba(255,255,255,.8)}.normal-close>.van-icon-cross:before{transform:rotate(45deg)}.normal-close>.van-icon-cross:after{transform:rotate(-45deg)}\n',document.head.appendChild(Y),{setters:[e=>{n=e.d,o=e.g,r=e.o,i=e.s,a=e.b1,s=e.bw,c=e.f,l=e.a,u=e.c,d=e.ae,p=e.e,m=e.h,h=e.T,f=e.R,w=e.F,y=e.x,g=e.q,v=e.i,E=e.aH,b=e.j,T=e.bx,A=e.aJ,C=e.aK,k=e.by,K=e.bz,L=e.aL,X=e.aM,x=e.aN}],execute:function(){!function(){if("undefined"!=typeof window){var e,t="ontouchstart"in window;document.createTouch||(document.createTouch=function(e,t,o,r,i,a,s){return new n(t,o,{pageX:r,pageY:i,screenX:a,screenY:s,clientX:r-window.pageXOffset,clientY:i-window.pageYOffset},0,0)}),document.createTouchList||(document.createTouchList=function(){for(var e=r(),t=0;t{try{const t=e.isCbs||window.location.href.includes("simple-detail")?{code:200,data:{}}:await(async()=>await T())();if(5e3===(null==t?void 0:t.code)){const e=y();if(g(t.message),e.isApp)postMessage({api:"login"});else{if(/(192|localhost)/.test(location.origin))return;window.parent.postMessage({api:"onLogin"},"*"),setTimeout((()=>{window.location.href=`${location.origin}/classroom`}),500)}return}const n=(null==t?void 0:t.data)||{};v(n),c.platformType="STUDENT"===n.clientType?"STUDENT":""}catch(t){c.status="error",E(),console.log("🚀 ~ error:",t)}};r((async()=>{if(e.Authorization&&i(e.Authorization),window.location.href.includes("simple-detail"));else{if(!a()){const e=await s();if(null!=e&&e.content){const t=e.content,n=t.tokenType+" "+t.accessToken;i(n)}}if(e.productXmlImg)return void(c.status="login")}t(),l(b())}));const n=e=>{"ArrowUp"===e.code?window.parent.postMessage({api:"documentBodyKeyup",code:"ArrowUp"},"*"):"ArrowDown"===e.code&&window.parent.postMessage({api:"documentBodyKeyup",code:"ArrowDown"},"*")};u((()=>{const t=document.getElementById("loading");t&&document.body.removeChild(t),"pc"==e.platform&&document.body.addEventListener("keyup",(e=>n(e))),document.addEventListener("contextmenu",(function(e){})),document.addEventListener("keydown",(function(e){("F12"===e.key||e.ctrlKey&&e.shiftKey&&"I"===e.key||e.metaKey&&e.altKey&&"I"===e.key)&&e.preventDefault()}))})),d((()=>{"pc"==e.platform&&document.body.removeEventListener("keyup",n)}));const A=p((()=>"login"===c.status));return()=>m(w,null,["error"===c.status?m(h,null,null):A.value?m(f,null,null):null])}}),Y=[{path:"/",component:k},{path:"/product-img",component:()=>K((()=>t.import("./index-legacy-bd6e7b45.js")),void 0,t.meta.url)},{path:"/evaluat-report",component:()=>K((()=>t.import("./index-legacy-95f6acf4.js")),void 0,t.meta.url)},{path:"/preview",component:()=>K((()=>t.import("./index-legacy-fa9ea2b1.js")),void 0,t.meta.url)},{path:"/view-figner",component:()=>K((()=>t.import("./index-legacy-c607a020.js").then((e=>e.bO))),void 0,t.meta.url)},{path:"/simple-detail",component:()=>K((()=>t.import("./index-legacy-8c8bab33.js")),void 0,t.meta.url)},{path:"/:pathMatch(.*)*",component:L,meta:{title:"404 Not Fund"}}],B=A({history:C(),routes:Y});B.beforeEach(((e,t,n)=>{e.meta.title&&(document.title=e.meta.title),n()})),function(){var e,t,n,r,i,a;const s=o(),c=navigator.userAgent,l=window.DAYA||(null===(e=window.webkit)||void 0===e||null===(t=e.messageHandlers)||void 0===t?void 0:t.DAYA)||window.COLEXIU||(null===(n=window.webkit)||void 0===n||null===(r=n.messageHandlers)||void 0===r?void 0:r.COLEXIU)||window.ORCHESTRA||(null===(i=window.webkit)||void 0===i||null===(a=i.messageHandlers)||void 0===a?void 0:a.ORCHESTRA),u=s.isCbs?"/cbs-app":(c.includes("COLEXIUSTUDENT"),"/edu-app");X({isApp:!!l,platformApi:u,platformType:(c.includes("COLEXIUSTUDENT"),""),proxy:""})}(),x(e).use(B).mount("#app")}}}));