System.register(["./index-legacy-Yo-NYFcD.js"],(function(e,t){"use strict";var r,s;return{setters:[e=>{r=e.aA,s=e.aP}],execute:function(){var t,o;const a=(null===(t=r.value)||void 0===t?void 0:t.token)||(null===(o=r.value)||void 0===o?void 0:o.last_token),n=window.GLOBAL_CONFIG.api,i=e("R",s.create({baseURL:n,method:"post",timeout:6e4,headers:{"Content-Type":"application/x-www-form-urlencoded"}}));i.interceptors.request.use((e=>(e.data=Object.assign({token:a,api:"json",site:"aimk",issubmit:1},e.data||{}),"get"===e.method&&(e.params=Object.assign({token:a,api:"json",fake:1},e.params||{})),e)),(e=>(console.error("request error: ",e),Promise.reject(e)))),i.interceptors.response.use((e=>e.data),(e=>(console.error("response error: "+e),Promise.reject(e))))}}}));
