2022-09-15 19:59:19 +08:00

1 line
6.2 KiB
JavaScript

(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[99],{861:function(e,t,r){"use strict";r.r(t);var n=r(903),o=r(31),i=r(59),u=r(868);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}var a=(0,u.vd)({"node_modules/@babel/runtime/helpers/esm/typeof.js"(){}});function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,u.vd)({"node_modules/@babel/runtime/helpers/esm/classCallCheck.js"(){}});function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function p(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var d,b,h,v,m,y,j,g,P=(0,u.vd)({"node_modules/@babel/runtime/helpers/esm/createClass.js"(){}}),w={};function O(e){return"function"===typeof e}function x(e){return"undefined"===typeof e}function E(e){return e&&"object"===c(e)}function _(e){throw new TypeError(e)}function k(){return b.WEAPP}function T(e){var t,r=e.requestParams,n=new Promise((function(n,o){var i=setTimeout((function(){i=null,o(new Error("\u7f51\u7edc\u94fe\u63a5\u8d85\u65f6,\u8bf7\u7a0d\u540e\u518d\u8bd5\uff01"))}),r&&r.timeout||6e4);t=e.proceed(r),t.then((function(e){i&&(clearTimeout(i),n(e))})).catch((function(e){i&&clearTimeout(i),o(e)}))}));return!x(t)&&O(t.abort)&&(n.abort=t.abort),n}function I(e){var t=e.requestParams;t.method,t.data,t.url;var r=e.proceed(t),n=r.then((function(e){return e}));return O(r.abort)&&(n.abort=r.abort),n}function N(e){return e}function S(e){return function(t,r){e.preloadData=E(t)?t:(0,i.w2)({},t,r)}}function A(e){return function(t){var r=t.designWidth,n=void 0===r?y:r,o=t.deviceRatio,i=void 0===o?j:o;e.config=e.config||{},e.config.designWidth=n,e.config.deviceRatio=i}}function W(e){return function(t){var r=e.config||{},n=r.designWidth,o=void 0===n?y:n,i=r.deviceRatio,u=void 0===i?j:i;if(!(o in u))throw new Error("deviceRatio \u914d\u7f6e\u4e2d\u4e0d\u5b58\u5728 ".concat(o," \u7684\u8bbe\u7f6e\uff01"));return parseInt(t,10)*u[o]+"rpx"}}(0,u.r2)(w,{default:()=>g});var C=(0,u.vd)({"node_modules/@tarojs/taro/node_modules/@tarojs/api/dist/index.esm.js"(){a(),(0,n.Pr)(),(0,i.zx)(),f(),P(),(0,i.ux)(),d=function(e){return!E(e)},O(Object.assign)||(Object.assign=function(e){null==e&&_("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}),O(Object.defineProperties)||(Object.defineProperties=function(e,t){function r(e){function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}d(e)&&_("bad desc");var r={};if(t(e,"enumerable")&&(r.enumerable=!!e.enumerable),t(e,"configurable")&&(r.configurable=!!e.configurable),t(e,"value")&&(r.value=e.value),t(e,"writable")&&(r.writable=!!e.writable),t(e,"get")){var n=e.get;O(n)||x(n)||_("bad get"),r.get=n}if(t(e,"set")){var o=e.set;O(o)||x(o)||_("bad set"),r.set=o}return("get"in r||"set"in r)&&("value"in r||"writable"in r)&&_("identity-confused descriptor"),r}d(e)&&_("bad obj"),t=Object(t);for(var n=Object.keys(t),o=[],i=0;i<n.length;i++)o.push([n[i],r(t[n[i]])]);for(var u=0;u<o.length;u++)Object.defineProperty(e,o[u][0],o[u][1]);return e}),b={WEAPP:"WEAPP",WEB:"WEB",RN:"RN",SWAN:"SWAN",ALIPAY:"ALIPAY",TT:"TT",QQ:"QQ",JD:"JD"},h=function(){function e(t,r,n){s(this,e),this.index=n||0,this.requestParams=t,this.interceptors=r||[]}return p(e,[{key:"proceed",value:function(e){if(this.requestParams=e,this.index>=this.interceptors.length)throw new Error("chain \u53c2\u6570\u9519\u8bef, \u8bf7\u52ff\u76f4\u63a5\u4fee\u6539 request.chain");var t=this._getNextInterceptor(),r=this._getNextChain(),n=t(r),o=n.catch((function(e){return Promise.reject(e)}));return Object.keys(n).forEach((function(e){return O(n[e])&&(o[e]=n[e])})),o}},{key:"_getNextInterceptor",value:function(){return this.interceptors[this.index]}},{key:"_getNextChain",value:function(){return new e(this.requestParams,this.interceptors,this.index+1)}}]),e}(),v=function(){function e(t){s(this,e),this.taroInterceptor=t,this.chain=new h}return p(e,[{key:"request",value:function(e){var t=this.chain,r=this.taroInterceptor;return t.interceptors=t.interceptors.filter((function(e){return e!==r})).concat(r),t.proceed((0,i.F)({},e))}},{key:"addInterceptor",value:function(e){this.chain.interceptors.push(e)}},{key:"cleanInterceptors",value:function(){this.chain=new h}}]),e}(),m=Object.freeze({__proto__:null,timeoutInterceptor:T,logInterceptor:I}),y=750,j={640:1.17,750:1,828:.905},g={Behavior:N,getEnv:k,ENV_TYPE:b,Link:v,interceptors:m,Current:n.GY,getCurrentInstance:n.FN,options:n.YM,nextTick:n.Y3,eventCenter:n.td,Events:o.zW,getInitPxTransform:A},g.initPxTransform=A(g),g.preload=S(n.GY),g.pxTransform=W(g)}}),q=(0,u.Ee)({"node_modules/@tarojs/taro/index.js"(e,t){var{hooks:r}=((0,n.Pr)(),(0,u.lS)(n.xt)),o=(C(),(0,u.lS)(w)).default;r.isExist("initNativeApi")&&r.call("initNativeApi",o),t.exports=o,t.exports.default=t.exports}}),D=(0,u.Ee)({"entry:@tarojs_taro"(e,t){t.exports=q()}});t["default"]=D()},99:function(e,t,r){const n=r(861);e.exports=n.default,t["default"]=e.exports},59:function(e,t,r){"use strict";r.d(t,{F:function(){return c},ux:function(){return i},w2:function(){return o},zx:function(){return a}});var n=r(868);function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var i=(0,n.vd)({"node_modules/@babel/runtime/helpers/esm/defineProperty.js"(){}});function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){o(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var a=(0,n.vd)({"node_modules/@babel/runtime/helpers/esm/objectSpread2.js"(){i()}})}}]);