test-d9aacc2c.js 16 KB

12
  1. import{n as Ee}from"./vue-router.esm-37ab4cfb.js";var I={exports:{}},oe=function(e,t){return function(){for(var n=new Array(arguments.length),a=0;a<n.length;a++)n[a]=arguments[a];return e.apply(t,n)}},Se=oe,w=Object.prototype.toString;function M(r){return w.call(r)==="[object Array]"}function k(r){return typeof r=="undefined"}function Ce(r){return r!==null&&!k(r)&&r.constructor!==null&&!k(r.constructor)&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function Re(r){return w.call(r)==="[object ArrayBuffer]"}function xe(r){return typeof FormData!="undefined"&&r instanceof FormData}function Oe(r){var e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&r.buffer instanceof ArrayBuffer,e}function _e(r){return typeof r=="string"}function Ae(r){return typeof r=="number"}function ue(r){return r!==null&&typeof r=="object"}function N(r){if(w.call(r)!=="[object Object]")return!1;var e=Object.getPrototypeOf(r);return e===null||e===Object.prototype}function Ne(r){return w.call(r)==="[object Date]"}function $e(r){return w.call(r)==="[object File]"}function ge(r){return w.call(r)==="[object Blob]"}function fe(r){return w.call(r)==="[object Function]"}function Pe(r){return ue(r)&&fe(r.pipe)}function Te(r){return typeof URLSearchParams!="undefined"&&r instanceof URLSearchParams}function Ue(r){return r.trim?r.trim():r.replace(/^\s+|\s+$/g,"")}function Le(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function J(r,e){if(!(r===null||typeof r=="undefined"))if(typeof r!="object"&&(r=[r]),M(r))for(var t=0,s=r.length;t<s;t++)e.call(null,r[t],t,r);else for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.call(null,r[n],n,r)}function H(){var r={};function e(n,a){N(r[a])&&N(n)?r[a]=H(r[a],n):N(n)?r[a]=H({},n):M(n)?r[a]=n.slice():r[a]=n}for(var t=0,s=arguments.length;t<s;t++)J(arguments[t],e);return r}function je(r,e,t){return J(e,function(n,a){t&&typeof n=="function"?r[a]=Se(n,t):r[a]=n}),r}function Be(r){return r.charCodeAt(0)===65279&&(r=r.slice(1)),r}var p={isArray:M,isArrayBuffer:Re,isBuffer:Ce,isFormData:xe,isArrayBufferView:Oe,isString:_e,isNumber:Ae,isObject:ue,isPlainObject:N,isUndefined:k,isDate:Ne,isFile:$e,isBlob:ge,isFunction:fe,isStream:Pe,isURLSearchParams:Te,isStandardBrowserEnv:Le,forEach:J,merge:H,extend:je,trim:Ue,stripBOM:Be},S=p;function G(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var le=function(e,t,s){if(!t)return e;var n;if(s)n=s(t);else if(S.isURLSearchParams(t))n=t.toString();else{var a=[];S.forEach(t,function(f,v){f===null||typeof f=="undefined"||(S.isArray(f)?v=v+"[]":f=[f],S.forEach(f,function(l){S.isDate(l)?l=l.toISOString():S.isObject(l)&&(l=JSON.stringify(l)),a.push(G(v)+"="+G(l))}))}),n=a.join("&")}if(n){var o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e},De=p;function g(){this.handlers=[]}g.prototype.use=function(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1};g.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)};g.prototype.forEach=function(e){De.forEach(this.handlers,function(s){s!==null&&e(s)})};var qe=g,Fe=p,ke=function(e,t){Fe.forEach(e,function(n,a){a!==t&&a.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[a])})},ce=function(e,t,s,n,a){return e.config=t,s&&(e.code=s),e.request=n,e.response=a,e.isAxiosError=!0,e.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},e},He=ce,de=function(e,t,s,n,a){var o=new Error(e);return He(o,t,s,n,a)},Ie=de,Me=function(e,t,s){var n=s.config.validateStatus;!s.status||!n||n(s.status)?e(s):t(Ie("Request failed with status code "+s.status,s.config,null,s.request,s))},_=p,Je=_.isStandardBrowserEnv()?function(){return{write:function(t,s,n,a,o,u){var f=[];f.push(t+"="+encodeURIComponent(s)),_.isNumber(n)&&f.push("expires="+new Date(n).toGMTString()),_.isString(a)&&f.push("path="+a),_.isString(o)&&f.push("domain="+o),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(t){var s=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ze=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)},Ve=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e},We=ze,Xe=Ve,Ke=function(e,t){return e&&!We(t)?Xe(e,t):t},B=p,Ge=["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"],Ye=function(e){var t={},s,n,a;return e&&B.forEach(e.split(`
  2. `),function(u){if(a=u.indexOf(":"),s=B.trim(u.substr(0,a)).toLowerCase(),n=B.trim(u.substr(a+1)),s){if(t[s]&&Ge.indexOf(s)>=0)return;s==="set-cookie"?t[s]=(t[s]?t[s]:[]).concat([n]):t[s]=t[s]?t[s]+", "+n:n}}),t},Y=p,Qe=Y.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a"),s;function n(a){var o=a;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{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 s=n(window.location.href),function(o){var u=Y.isString(o)?n(o):o;return u.protocol===s.protocol&&u.host===s.host}}():function(){return function(){return!0}}();function z(r){this.message=r}z.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};z.prototype.__CANCEL__=!0;var P=z,A=p,Ze=Me,er=Je,rr=le,tr=Ke,nr=Ye,sr=Qe,D=de,ar=U,ir=P,Q=function(e){return new Promise(function(s,n){var a=e.data,o=e.headers,u=e.responseType,f;function v(){e.cancelToken&&e.cancelToken.unsubscribe(f),e.signal&&e.signal.removeEventListener("abort",f)}A.isFormData(a)&&delete o["Content-Type"];var i=new XMLHttpRequest;if(e.auth){var l=e.auth.username||"",d=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.Authorization="Basic "+btoa(l+":"+d)}var x=tr(e.baseURL,e.url);i.open(e.method.toUpperCase(),rr(x,e.params,e.paramsSerializer),!0),i.timeout=e.timeout;function X(){if(!!i){var m="getAllResponseHeaders"in i?nr(i.getAllResponseHeaders()):null,E=!u||u==="text"||u==="json"?i.responseText:i.response,b={data:E,status:i.status,statusText:i.statusText,headers:m,config:e,request:i};Ze(function(j){s(j),v()},function(j){n(j),v()},b),i=null}}if("onloadend"in i?i.onloadend=X:i.onreadystatechange=function(){!i||i.readyState!==4||i.status===0&&!(i.responseURL&&i.responseURL.indexOf("file:")===0)||setTimeout(X)},i.onabort=function(){!i||(n(D("Request aborted",e,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(D("Network Error",e,null,i)),i=null},i.ontimeout=function(){var E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",b=e.transitional||ar.transitional;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),n(D(E,e,b.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",i)),i=null},A.isStandardBrowserEnv()){var K=(e.withCredentials||sr(x))&&e.xsrfCookieName?er.read(e.xsrfCookieName):void 0;K&&(o[e.xsrfHeaderName]=K)}"setRequestHeader"in i&&A.forEach(o,function(E,b){typeof a=="undefined"&&b.toLowerCase()==="content-type"?delete o[b]:i.setRequestHeader(b,E)}),A.isUndefined(e.withCredentials)||(i.withCredentials=!!e.withCredentials),u&&u!=="json"&&(i.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&i.addEventListener("progress",e.onDownloadProgress),typeof e.onUploadProgress=="function"&&i.upload&&i.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(f=function(m){!i||(n(!m||m&&m.type?new ir("canceled"):m),i.abort(),i=null)},e.cancelToken&&e.cancelToken.subscribe(f),e.signal&&(e.signal.aborted?f():e.signal.addEventListener("abort",f))),a||(a=null),i.send(a)})},c=p,Z=ke,or=ce,ur={"Content-Type":"application/x-www-form-urlencoded"};function ee(r,e){!c.isUndefined(r)&&c.isUndefined(r["Content-Type"])&&(r["Content-Type"]=e)}function fr(){var r;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(r=Q),r}function lr(r,e,t){if(c.isString(r))try{return(e||JSON.parse)(r),c.trim(r)}catch(s){if(s.name!=="SyntaxError")throw s}return(t||JSON.stringify)(r)}var T={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:fr(),transformRequest:[function(e,t){return Z(t,"Accept"),Z(t,"Content-Type"),c.isFormData(e)||c.isArrayBuffer(e)||c.isBuffer(e)||c.isStream(e)||c.isFile(e)||c.isBlob(e)?e:c.isArrayBufferView(e)?e.buffer:c.isURLSearchParams(e)?(ee(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):c.isObject(e)||t&&t["Content-Type"]==="application/json"?(ee(t,"application/json"),lr(e)):e}],transformResponse:[function(e){var t=this.transitional||T.transitional,s=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,a=!s&&this.responseType==="json";if(a||n&&c.isString(e)&&e.length)try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?or(o,this,"E_JSON_PARSE"):o}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};c.forEach(["delete","get","head"],function(e){T.headers[e]={}});c.forEach(["post","put","patch"],function(e){T.headers[e]=c.merge(ur)});var U=T,cr=p,dr=U,hr=function(e,t,s){var n=this||dr;return cr.forEach(s,function(o){e=o.call(n,e,t)}),e},he=function(e){return!!(e&&e.__CANCEL__)},re=p,q=hr,pr=he,mr=U,vr=P;function F(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new vr("canceled")}var yr=function(e){F(e),e.headers=e.headers||{},e.data=q.call(e,e.data,e.headers,e.transformRequest),e.headers=re.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),re.forEach(["delete","get","head","post","put","patch","common"],function(n){delete e.headers[n]});var t=e.adapter||mr.adapter;return t(e).then(function(n){return F(e),n.data=q.call(e,n.data,n.headers,e.transformResponse),n},function(n){return pr(n)||(F(e),n&&n.response&&(n.response.data=q.call(e,n.response.data,n.response.headers,e.transformResponse))),Promise.reject(n)})},h=p,pe=function(e,t){t=t||{};var s={};function n(i,l){return h.isPlainObject(i)&&h.isPlainObject(l)?h.merge(i,l):h.isPlainObject(l)?h.merge({},l):h.isArray(l)?l.slice():l}function a(i){if(h.isUndefined(t[i])){if(!h.isUndefined(e[i]))return n(void 0,e[i])}else return n(e[i],t[i])}function o(i){if(!h.isUndefined(t[i]))return n(void 0,t[i])}function u(i){if(h.isUndefined(t[i])){if(!h.isUndefined(e[i]))return n(void 0,e[i])}else return n(void 0,t[i])}function f(i){if(i in t)return n(e[i],t[i]);if(i in e)return n(void 0,e[i])}var v={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f};return h.forEach(Object.keys(e).concat(Object.keys(t)),function(l){var d=v[l]||a,x=d(l);h.isUndefined(x)&&d!==f||(s[l]=x)}),s},me={version:"0.24.0"},br=me.version,V={};["object","boolean","number","function","string","symbol"].forEach(function(r,e){V[r]=function(s){return typeof s===r||"a"+(e<1?"n ":" ")+r}});var te={};V.transitional=function(e,t,s){function n(a,o){return"[Axios v"+br+"] Transitional option '"+a+"'"+o+(s?". "+s:"")}return function(a,o,u){if(e===!1)throw new Error(n(o," has been removed"+(t?" in "+t:"")));return t&&!te[o]&&(te[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,o,u):!0}};function wr(r,e,t){if(typeof r!="object")throw new TypeError("options must be an object");for(var s=Object.keys(r),n=s.length;n-- >0;){var a=s[n],o=e[a];if(o){var u=r[a],f=u===void 0||o(u,a,r);if(f!==!0)throw new TypeError("option "+a+" must be "+f);continue}if(t!==!0)throw Error("Unknown option "+a)}}var Er={assertOptions:wr,validators:V},ve=p,Sr=le,ne=qe,se=yr,L=pe,ye=Er,C=ye.validators;function O(r){this.defaults=r,this.interceptors={request:new ne,response:new ne}}O.prototype.request=function(e){typeof e=="string"?(e=arguments[1]||{},e.url=arguments[0]):e=e||{},e=L(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;t!==void 0&&ye.assertOptions(t,{silentJSONParsing:C.transitional(C.boolean),forcedJSONParsing:C.transitional(C.boolean),clarifyTimeoutError:C.transitional(C.boolean)},!1);var s=[],n=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(e)===!1||(n=n&&d.synchronous,s.unshift(d.fulfilled,d.rejected))});var a=[];this.interceptors.response.forEach(function(d){a.push(d.fulfilled,d.rejected)});var o;if(!n){var u=[se,void 0];for(Array.prototype.unshift.apply(u,s),u=u.concat(a),o=Promise.resolve(e);u.length;)o=o.then(u.shift(),u.shift());return o}for(var f=e;s.length;){var v=s.shift(),i=s.shift();try{f=v(f)}catch(l){i(l);break}}try{o=se(f)}catch(l){return Promise.reject(l)}for(;a.length;)o=o.then(a.shift(),a.shift());return o};O.prototype.getUri=function(e){return e=L(this.defaults,e),Sr(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")};ve.forEach(["delete","get","head","options"],function(e){O.prototype[e]=function(t,s){return this.request(L(s||{},{method:e,url:t,data:(s||{}).data}))}});ve.forEach(["post","put","patch"],function(e){O.prototype[e]=function(t,s,n){return this.request(L(n||{},{method:e,url:t,data:s}))}});var Cr=O,Rr=P;function R(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(n){e=n});var t=this;this.promise.then(function(s){if(!!t._listeners){var n,a=t._listeners.length;for(n=0;n<a;n++)t._listeners[n](s);t._listeners=null}}),this.promise.then=function(s){var n,a=new Promise(function(o){t.subscribe(o),n=o}).then(s);return a.cancel=function(){t.unsubscribe(n)},a},r(function(n){t.reason||(t.reason=new Rr(n),e(t.reason))})}R.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};R.prototype.subscribe=function(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]};R.prototype.unsubscribe=function(e){if(!!this._listeners){var t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}};R.source=function(){var e,t=new R(function(n){e=n});return{token:t,cancel:e}};var xr=R,Or=function(e){return function(s){return e.apply(null,s)}},_r=function(e){return typeof e=="object"&&e.isAxiosError===!0},ae=p,Ar=oe,$=Cr,Nr=pe,$r=U;function be(r){var e=new $(r),t=Ar($.prototype.request,e);return ae.extend(t,$.prototype,e),ae.extend(t,e),t.create=function(n){return be(Nr(r,n))},t}var y=be($r);y.Axios=$;y.Cancel=P;y.CancelToken=xr;y.isCancel=he;y.VERSION=me.version;y.all=function(e){return Promise.all(e)};y.spread=Or;y.isAxiosError=_r;I.exports=y;I.exports.default=y;var W=I.exports;W.interceptors.request.use(r=>(r.baseURL="",r),r=>Promise.reject(r));W.interceptors.response.use(r=>r.data,r=>Promise.reject(r));var gr=function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("div",{staticClass:"test"},[r._v(" "+r._s(r.test)+" ")])},Pr=[];const Tr={data(){return{test:"55555555555"}},async mounted(){const r=await W.get("https://www.baidu.com");console.log(666,r)}},ie={};var Ur=Ee(Tr,gr,Pr,!1,Lr,"3e776953",null,null);function Lr(r){for(let e in ie)this[e]=ie[e]}var Br=function(){return Ur.exports}();export{Br as default};