@polyv/utils 1.8.0-rc.1 → 1.9.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/package.json +1 -1
- package/src/browser.js +1 -1
package/dist/browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports=function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=107)}([function(t,n,r){(function(n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,r(30))},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(3);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n,r){var e=r(1);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,r){var e=r(5),o=r(12),i=r(21);t.exports=e?function(t,n,r){return o.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(0),o=r(23),i=r(2),u=r(24),c=r(25),a=r(48),f=o("wks"),s=e.Symbol,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)||(c&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){var e=r(31),o=r(8);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(0),o=r(6),i=r(2),u=r(14),c=r(27),a=r(33),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,n,r,c){var a,f=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof n||i(r,"name")||o(r,"name",n),(a=s(r)).source||(a.source=l.join("string"==typeof n?n:""))),t!==e?(f?!v&&t[n]&&(p=!0):delete t[n],p?t[n]=r:o(t,n,r)):p?t[n]=r:u(n,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(5),o=r(26),i=r(4),u=r(18),c=Object.defineProperty;n.f=e?c:function(t,n,r){if(i(t),n=u(n,!0),i(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(0),o=r(6);t.exports=function(t,n){try{o(e,t,n)}catch(r){e[t]=n}return n}},function(t,n,r){var e=r(0),o=r(14),i=e["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,r){var e=r(0),o=r(20).f,i=r(6),u=r(10),c=r(14),a=r(44),f=r(37);t.exports=function(t,n){var r,s,l,p,v,d=t.target,g=t.global,x=t.stat;if(r=g?e:x?e[d]||c(d,{}):(e[d]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(r,s))&&v.value:r[s],!f(g?s:d+(x?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(r,s,p,t)}}},,function(t,n,r){var e=r(3);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(13),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n,r){var e=r(5),o=r(43),i=r(21),u=r(9),c=r(18),a=r(2),f=r(26),s=Object.getOwnPropertyDescriptor;n.f=e?s:function(t,n){if(t=u(t),n=c(n,!0),f)try{return s(t,n)}catch(t){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports={}},function(t,n,r){var e=r(40),o=r(15);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.8.1",mode:e?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+e).toString(36)}},function(t,n,r){var e=r(1);t.exports=!!Object.getOwnPropertySymbols&&!e((function(){return!String(Symbol())}))},function(t,n,r){var e=r(5),o=r(1),i=r(41);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(15),o=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(t){return o.call(t)}),t.exports=e.inspectSource},function(t,n,r){var e=r(45),o=r(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(e[t])||i(o[t]):e[t]&&e[t][n]||o[t]&&o[t][n]}},function(t,n,r){"use strict";var e,o,i=r(38),u=r(61),c=RegExp.prototype.exec,a=String.prototype.replace,f=c,s=(e=/a/,o=/b*/g,c.call(e,"a"),c.call(o,"a"),0!==e.lastIndex||0!==o.lastIndex),l=u.UNSUPPORTED_Y||u.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(s||p||l)&&(f=function(t){var n,r,e,o,u=this,f=l&&u.sticky,v=i.call(u),d=u.source,g=0,x=t;return f&&(-1===(v=v.replace("y","")).indexOf("g")&&(v+="g"),x=String(t).slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==t[u.lastIndex-1])&&(d="(?: "+d+")",x=" "+x,g++),r=new RegExp("^(?:"+d+")",v)),p&&(r=new RegExp("^"+d+"$(?!\\s)",v)),s&&(n=u.lastIndex),e=c.call(f?r:u,x),f?e?(e.input=e.input.slice(g),e[0]=e[0].slice(g),e.index=u.lastIndex,u.lastIndex+=e[0].length):u.lastIndex=0:s&&e&&(u.lastIndex=u.global?e.index+e[0].length:n),p&&e&&e.length>1&&a.call(e[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(e[o]=void 0)})),e}),t.exports=f},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){var e=r(1),o=r(11),i="".split;t.exports=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,n,r){var e=r(42),o=r(36).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e,o,i,u=r(49),c=r(0),a=r(3),f=r(6),s=r(2),l=r(15),p=r(34),v=r(22),d=c.WeakMap;if(u){var g=l.state||(l.state=new d),x=g.get,h=g.has,y=g.set;e=function(t,n){return n.facade=t,y.call(g,t,n),n},o=function(t){return x.call(g,t)||{}},i=function(t){return h.call(g,t)}}else{var b=p("state");v[b]=!0,e=function(t,n){return n.facade=t,f(t,b,n),n},o=function(t){return s(t,b)?t[b]:{}},i=function(t){return s(t,b)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(n){var r;if(!a(n)||(r=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,n,r){var e=r(23),o=r(24),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n,r){var e=r(9),o=r(19),i=r(46),u=function(t){return function(n,r,u){var c,a=e(n),f=o(a.length),s=i(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,r){var e=r(1),o=/#|\.prototype\./,i=function(t,n){var r=c[u(t)];return r==f||r!=a&&("function"==typeof n?e(n):!!n)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,n,r){"use strict";var e=r(4);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},,function(t,n){t.exports=!1},function(t,n,r){var e=r(0),o=r(3),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,n,r){var e=r(2),o=r(9),i=r(35).indexOf,u=r(22);t.exports=function(t,n){var r,c=o(t),a=0,f=[];for(r in c)!e(u,r)&&e(c,r)&&f.push(r);for(;n.length>a;)e(c,r=n[a++])&&(~i(f,r)||f.push(r));return f}},function(t,n,r){"use strict";var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:e},function(t,n,r){var e=r(2),o=r(50),i=r(20),u=r(12);t.exports=function(t,n){for(var r=o(n),c=u.f,a=i.f,f=0;f<r.length;f++){var s=r[f];e(t,s)||c(t,s,a(n,s))}}},function(t,n,r){var e=r(0);t.exports=e},function(t,n,r){var e=r(13),o=Math.max,i=Math.min;t.exports=function(t,n){var r=e(t);return r<0?o(r+n,0):i(r,n)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(25);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,r){var e=r(0),o=r(27),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,n,r){var e=r(28),o=r(32),i=r(47),u=r(4);t.exports=e("Reflect","ownKeys")||function(t){var n=o.f(u(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(8);t.exports=function(t){return Object(e(t))}},function(t,n,r){"use strict";var e=r(16),o=r(29);e({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},,function(t,n,r){"use strict";var e=r(10),o=r(4),i=r(1),u=r(38),c=RegExp.prototype,a=c.toString,f=i((function(){return"/a/b"!=a.call({source:"a",flags:"b"})})),s="toString"!=a.name;(f||s)&&e(RegExp.prototype,"toString",(function(){var t=o(this),n=String(t.source),r=t.flags;return"/"+n+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in c)?u.call(t):r)}),{unsafe:!0})},,function(t,n,r){"use strict";r(52);var e=r(10),o=r(1),i=r(7),u=r(29),c=r(6),a=i("species"),f=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),s="$0"==="a".replace(/./,"$0"),l=i("replace"),p=!!/./[l]&&""===/./[l]("a","$0"),v=!o((function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,n,r,l){var d=i(t),g=!o((function(){var n={};return n[d]=function(){return 7},7!=""[t](n)})),x=g&&!o((function(){var n=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[a]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return n=!0,null},r[d](""),!n}));if(!g||!x||"replace"===t&&(!f||!s||p)||"split"===t&&!v){var h=/./[d],y=r(d,""[t],(function(t,n,r,e,o){return n.exec===u?g&&!o?{done:!0,value:h.call(n,r,e)}:{done:!0,value:t.call(r,n,e)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=y[0],S=y[1];e(String.prototype,t,b),e(RegExp.prototype,d,2==n?function(t,n){return S.call(t,this,n)}:function(t){return S.call(t,this)})}l&&c(RegExp.prototype[d],"sham",!0)}},function(t,n,r){"use strict";var e=r(65).charAt;t.exports=function(t,n,r){return n+(r?e(t,n).length:1)}},function(t,n,r){var e=r(11),o=r(29);t.exports=function(t,n){var r=t.exec;if("function"==typeof r){var i=r.call(t,n);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==e(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},function(t,n,r){"use strict";var e=r(1);t.exports=function(t,n){var r=[][t];return!!r&&e((function(){r.call(null,n||function(){throw 1},1)}))}},function(t,n,r){var e=r(5),o=r(1),i=r(2),u=Object.defineProperty,c={},a=function(t){throw t};t.exports=function(t,n){if(i(c,t))return c[t];n||(n={});var r=[][t],f=!!i(n,"ACCESSORS")&&n.ACCESSORS,s=i(n,0)?n[0]:a,l=i(n,1)?n[1]:void 0;return c[t]=!!r&&!o((function(){if(f&&!e)return!0;var t={length:-1};f?u(t,1,{enumerable:!0,get:a}):t[1]=1,r.call(t,s,l)}))}},function(t,n,r){"use strict";var e=r(1);function o(t,n){return RegExp(t,n)}n.UNSUPPORTED_Y=e((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),n.BROKEN_CARET=e((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},,,,function(t,n,r){var e=r(13),o=r(8),i=function(t){return function(n,r){var i,u,c=String(o(n)),a=e(r),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,n,r){"use strict";var e=r(56),o=r(4),i=r(51),u=r(19),c=r(13),a=r(8),f=r(57),s=r(58),l=Math.max,p=Math.min,v=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;e("replace",2,(function(t,n,r,e){var x=e.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,h=e.REPLACE_KEEPS_$0,y=x?"$":"$0";return[function(r,e){var o=a(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,e):n.call(String(o),r,e)},function(t,e){if(!x&&h||"string"==typeof e&&-1===e.indexOf(y)){var i=r(n,t,this,e);if(i.done)return i.value}var a=o(t),v=String(this),d="function"==typeof e;d||(e=String(e));var g=a.global;if(g){var S=a.unicode;a.lastIndex=0}for(var E=[];;){var m=s(a,v);if(null===m)break;if(E.push(m),!g)break;""===String(m[0])&&(a.lastIndex=f(v,u(a.lastIndex),S))}for(var O,_="",P=0,w=0;w<E.length;w++){m=E[w];for(var R=String(m[0]),j=l(p(c(m.index),v.length),0),T=[],A=1;A<m.length;A++)T.push(void 0===(O=m[A])?O:String(O));var I=m.groups;if(d){var M=[R].concat(T,j,v);void 0!==I&&M.push(I);var C=String(e.apply(void 0,M))}else C=b(R,v,j,T,I,e);j>=P&&(_+=v.slice(P,j)+C,P=j+R.length)}return _+v.slice(P)}];function b(t,r,e,o,u,c){var a=e+t.length,f=o.length,s=g;return void 0!==u&&(u=i(u),s=d),n.call(c,s,(function(n,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,e);case"'":return r.slice(a);case"<":c=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return n;if(s>f){var l=v(s/10);return 0===l?n:l<=f?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):n}c=o[s-1]}return void 0===c?"":c}))}}))},,,,,function(t,n,r){var e=r(3),o=r(11),i=r(7)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},,,function(t,n,r){var e=r(4),o=r(79);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),n=r instanceof Array}catch(t){}return function(r,i){return e(r),o(i),n?t.call(r,i):r.__proto__=i,r}}():void 0)},,,function(t,n,r){"use strict";var e=r(16),o=r(35).indexOf,i=r(59),u=r(60),c=[].indexOf,a=!!c&&1/[1].indexOf(1,-0)<0,f=i("indexOf"),s=u("indexOf",{ACCESSORS:!0,1:0});e({target:"Array",proto:!0,forced:a||!f||!s},{indexOf:function(t){return a?c.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(3),o=r(74);t.exports=function(t,n,r){var i,u;return o&&"function"==typeof(i=n.constructor)&&i!==r&&e(u=i.prototype)&&u!==r.prototype&&o(t,u),t}},function(t,n,r){var e=r(3);t.exports=function(t){if(!e(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},,,,,,,function(t,n,r){var e=r(5),o=r(0),i=r(37),u=r(78),c=r(12).f,a=r(32).f,f=r(71),s=r(38),l=r(61),p=r(10),v=r(1),d=r(33).set,g=r(87),x=r(7)("match"),h=o.RegExp,y=h.prototype,b=/a/g,S=/a/g,E=new h(b)!==b,m=l.UNSUPPORTED_Y;if(e&&i("RegExp",!E||m||v((function(){return S[x]=!1,h(b)!=b||h(S)==S||"/a/i"!=h(b,"i")})))){for(var O=function(t,n){var r,e=this instanceof O,o=f(t),i=void 0===n;if(!e&&o&&t.constructor===O&&i)return t;E?o&&!i&&(t=t.source):t instanceof O&&(i&&(n=s.call(t)),t=t.source),m&&(r=!!n&&n.indexOf("y")>-1)&&(n=n.replace(/y/g,""));var c=u(E?new h(t,n):h(t,n),e?this:y,O);return m&&r&&d(c,{sticky:r}),c},_=function(t){t in O||c(O,t,{configurable:!0,get:function(){return h[t]},set:function(n){h[t]=n}})},P=a(h),w=0;P.length>w;)_(P[w++]);y.constructor=O,O.prototype=y,p(o,"RegExp",O)}g("RegExp")},function(t,n,r){"use strict";var e=r(28),o=r(12),i=r(7),u=r(5),c=i("species");t.exports=function(t){var n=e(t),r=o.f;u&&n&&!n[c]&&r(n,c,{configurable:!0,get:function(){return this}})}},,,,,,,,,,,,,,,,,,,,function(t,n,r){"use strict";r.r(n),r.d(n,"isMobile",(function(){return o})),r.d(n,"isWeixin",(function(){return i})),r.d(n,"weixinVersion",(function(){return u})),r.d(n,"isWorkWeixin",(function(){return c})),r.d(n,"ieVersion",(function(){return a})),r.d(n,"isAndroid",(function(){return f})),r.d(n,"isIOS",(function(){return s})),r.d(n,"iOSVersion",(function(){return l})),r.d(n,"isHuawei",(function(){return p}));r(77),r(86),r(52),r(54),r(66);function e(t){return t||"undefined"==typeof navigator||(t=navigator.userAgent),t}function o(t,n){t=e(t);var r=/mobile|android/i.test(t)||!/\b(Windows\sNT|Macintosh|Linux)\b/.test(t);return n&&"platform"in n&&(r=r||-1!==["Android","iPhone","iPad","iPod"].indexOf(n.platform),"maxTouchPoints"in n&&(r=r||"MacIntel"===n.platform&&n.maxTouchPoints>1)),r}function i(t){return t=e(t),/\bMicroMessenger\//.test(t)}function u(t){return t=e(t),/\bMicroMessenger\/([\d.]+)/.test(t)?RegExp.$1:""}function c(t){return i(t=e(t))&&/\bwxwork\b/.test(t)}function a(t){return t=e(t),/\bMSIE\s(\d+)/i.test(t)||/\bTrident\/.*;\srv:(\d+)/.test(t)?RegExp.$1:""}function f(t){return t=e(t),/\bAndroid\b/.test(t)}function s(t){return t=e(t),/\b(?:iPad|iPod|iPhone)\b/.test(t)}function l(t){return t=e(t),/\bOS(?:\s([\d_.]+))?\slike\sMac\sOS\sX\b/.test(t)?RegExp.$1.replace(/_/g,"."):""}function p(t){return t=e(t),/\b(?:huawei|honor)/i.test(t)}}]);
|
|
1
|
+
module.exports=function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,n){if(1&n&&(t=r(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(r.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)r.d(e,o,function(n){return t[n]}.bind(null,o));return e},r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,"a",n),n},r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.p="",r(r.s=107)}([function(t,n,r){(function(n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n&&n)||function(){return this}()||Function("return this")()}).call(this,r(30))},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n){var r={}.hasOwnProperty;t.exports=function(t,n){return r.call(t,n)}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,r){var e=r(3);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,n,r){var e=r(1);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,n,r){var e=r(5),o=r(12),i=r(21);t.exports=e?function(t,n,r){return o.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},function(t,n,r){var e=r(0),o=r(23),i=r(2),u=r(24),c=r(25),a=r(48),f=o("wks"),s=e.Symbol,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)||(c&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,r){var e=r(31),o=r(8);t.exports=function(t){return e(o(t))}},function(t,n,r){var e=r(0),o=r(6),i=r(2),u=r(14),c=r(27),a=r(33),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,n,r,c){var a,f=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof n||i(r,"name")||o(r,"name",n),(a=s(r)).source||(a.source=l.join("string"==typeof n?n:""))),t!==e?(f?!v&&t[n]&&(p=!0):delete t[n],p?t[n]=r:o(t,n,r)):p?t[n]=r:u(n,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},function(t,n){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,n,r){var e=r(5),o=r(26),i=r(4),u=r(18),c=Object.defineProperty;n.f=e?c:function(t,n,r){if(i(t),n=u(n,!0),i(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},function(t,n){var r=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:r)(t)}},function(t,n,r){var e=r(0),o=r(6);t.exports=function(t,n){try{o(e,t,n)}catch(r){e[t]=n}return n}},function(t,n,r){var e=r(0),o=r(14),i=e["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,n,r){var e=r(0),o=r(20).f,i=r(6),u=r(10),c=r(14),a=r(44),f=r(37);t.exports=function(t,n){var r,s,l,p,v,d=t.target,g=t.global,x=t.stat;if(r=g?e:x?e[d]||c(d,{}):(e[d]||{}).prototype)for(s in n){if(p=n[s],l=t.noTargetGet?(v=o(r,s))&&v.value:r[s],!f(g?s:d+(x?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(r,s,p,t)}}},,function(t,n,r){var e=r(3);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n,r){var e=r(13),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,n,r){var e=r(5),o=r(43),i=r(21),u=r(9),c=r(18),a=r(2),f=r(26),s=Object.getOwnPropertyDescriptor;n.f=e?s:function(t,n){if(t=u(t),n=c(n,!0),f)try{return s(t,n)}catch(t){}if(a(t,n))return i(!o.f.call(t,n),t[n])}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){t.exports={}},function(t,n,r){var e=r(40),o=r(15);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.8.1",mode:e?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n){var r=0,e=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+e).toString(36)}},function(t,n,r){var e=r(1);t.exports=!!Object.getOwnPropertySymbols&&!e((function(){return!String(Symbol())}))},function(t,n,r){var e=r(5),o=r(1),i=r(41);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,n,r){var e=r(15),o=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(t){return o.call(t)}),t.exports=e.inspectSource},function(t,n,r){var e=r(45),o=r(0),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(e[t])||i(o[t]):e[t]&&e[t][n]||o[t]&&o[t][n]}},function(t,n,r){"use strict";var e,o,i=r(38),u=r(61),c=RegExp.prototype.exec,a=String.prototype.replace,f=c,s=(e=/a/,o=/b*/g,c.call(e,"a"),c.call(o,"a"),0!==e.lastIndex||0!==o.lastIndex),l=u.UNSUPPORTED_Y||u.BROKEN_CARET,p=void 0!==/()??/.exec("")[1];(s||p||l)&&(f=function(t){var n,r,e,o,u=this,f=l&&u.sticky,v=i.call(u),d=u.source,g=0,x=t;return f&&(-1===(v=v.replace("y","")).indexOf("g")&&(v+="g"),x=String(t).slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==t[u.lastIndex-1])&&(d="(?: "+d+")",x=" "+x,g++),r=new RegExp("^(?:"+d+")",v)),p&&(r=new RegExp("^"+d+"$(?!\\s)",v)),s&&(n=u.lastIndex),e=c.call(f?r:u,x),f?e?(e.input=e.input.slice(g),e[0]=e[0].slice(g),e.index=u.lastIndex,u.lastIndex+=e[0].length):u.lastIndex=0:s&&e&&(u.lastIndex=u.global?e.index+e[0].length:n),p&&e&&e.length>1&&a.call(e[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(e[o]=void 0)})),e}),t.exports=f},function(t,n){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,n,r){var e=r(1),o=r(11),i="".split;t.exports=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,n,r){var e=r(42),o=r(36).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,n,r){var e,o,i,u=r(49),c=r(0),a=r(3),f=r(6),s=r(2),l=r(15),p=r(34),v=r(22),d=c.WeakMap;if(u){var g=l.state||(l.state=new d),x=g.get,h=g.has,y=g.set;e=function(t,n){return n.facade=t,y.call(g,t,n),n},o=function(t){return x.call(g,t)||{}},i=function(t){return h.call(g,t)}}else{var b=p("state");v[b]=!0,e=function(t,n){return n.facade=t,f(t,b,n),n},o=function(t){return s(t,b)?t[b]:{}},i=function(t){return s(t,b)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(n){var r;if(!a(n)||(r=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,n,r){var e=r(23),o=r(24),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,n,r){var e=r(9),o=r(19),i=r(46),u=function(t){return function(n,r,u){var c,a=e(n),f=o(a.length),s=i(u,f);if(t&&r!=r){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,n){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,n,r){var e=r(1),o=/#|\.prototype\./,i=function(t,n){var r=c[u(t)];return r==f||r!=a&&("function"==typeof n?e(n):!!n)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,n,r){"use strict";var e=r(4);t.exports=function(){var t=e(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},,function(t,n){t.exports=!1},function(t,n,r){var e=r(0),o=r(3),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,n,r){var e=r(2),o=r(9),i=r(35).indexOf,u=r(22);t.exports=function(t,n){var r,c=o(t),a=0,f=[];for(r in c)!e(u,r)&&e(c,r)&&f.push(r);for(;n.length>a;)e(c,r=n[a++])&&(~i(f,r)||f.push(r));return f}},function(t,n,r){"use strict";var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);n.f=i?function(t){var n=o(this,t);return!!n&&n.enumerable}:e},function(t,n,r){var e=r(2),o=r(50),i=r(20),u=r(12);t.exports=function(t,n){for(var r=o(n),c=u.f,a=i.f,f=0;f<r.length;f++){var s=r[f];e(t,s)||c(t,s,a(n,s))}}},function(t,n,r){var e=r(0);t.exports=e},function(t,n,r){var e=r(13),o=Math.max,i=Math.min;t.exports=function(t,n){var r=e(t);return r<0?o(r+n,0):i(r,n)}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,r){var e=r(25);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,n,r){var e=r(0),o=r(27),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,n,r){var e=r(28),o=r(32),i=r(47),u=r(4);t.exports=e("Reflect","ownKeys")||function(t){var n=o.f(u(t)),r=i.f;return r?n.concat(r(t)):n}},function(t,n,r){var e=r(8);t.exports=function(t){return Object(e(t))}},function(t,n,r){"use strict";var e=r(16),o=r(29);e({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},,function(t,n,r){"use strict";var e=r(10),o=r(4),i=r(1),u=r(38),c=RegExp.prototype,a=c.toString,f=i((function(){return"/a/b"!=a.call({source:"a",flags:"b"})})),s="toString"!=a.name;(f||s)&&e(RegExp.prototype,"toString",(function(){var t=o(this),n=String(t.source),r=t.flags;return"/"+n+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in c)?u.call(t):r)}),{unsafe:!0})},,function(t,n,r){"use strict";r(52);var e=r(10),o=r(1),i=r(7),u=r(29),c=r(6),a=i("species"),f=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),s="$0"==="a".replace(/./,"$0"),l=i("replace"),p=!!/./[l]&&""===/./[l]("a","$0"),v=!o((function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,n,r,l){var d=i(t),g=!o((function(){var n={};return n[d]=function(){return 7},7!=""[t](n)})),x=g&&!o((function(){var n=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[a]=function(){return r},r.flags="",r[d]=/./[d]),r.exec=function(){return n=!0,null},r[d](""),!n}));if(!g||!x||"replace"===t&&(!f||!s||p)||"split"===t&&!v){var h=/./[d],y=r(d,""[t],(function(t,n,r,e,o){return n.exec===u?g&&!o?{done:!0,value:h.call(n,r,e)}:{done:!0,value:t.call(r,n,e)}:{done:!1}}),{REPLACE_KEEPS_$0:s,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=y[0],S=y[1];e(String.prototype,t,b),e(RegExp.prototype,d,2==n?function(t,n){return S.call(t,this,n)}:function(t){return S.call(t,this)})}l&&c(RegExp.prototype[d],"sham",!0)}},function(t,n,r){"use strict";var e=r(65).charAt;t.exports=function(t,n,r){return n+(r?e(t,n).length:1)}},function(t,n,r){var e=r(11),o=r(29);t.exports=function(t,n){var r=t.exec;if("function"==typeof r){var i=r.call(t,n);if("object"!=typeof i)throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==e(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},function(t,n,r){"use strict";var e=r(1);t.exports=function(t,n){var r=[][t];return!!r&&e((function(){r.call(null,n||function(){throw 1},1)}))}},function(t,n,r){var e=r(5),o=r(1),i=r(2),u=Object.defineProperty,c={},a=function(t){throw t};t.exports=function(t,n){if(i(c,t))return c[t];n||(n={});var r=[][t],f=!!i(n,"ACCESSORS")&&n.ACCESSORS,s=i(n,0)?n[0]:a,l=i(n,1)?n[1]:void 0;return c[t]=!!r&&!o((function(){if(f&&!e)return!0;var t={length:-1};f?u(t,1,{enumerable:!0,get:a}):t[1]=1,r.call(t,s,l)}))}},function(t,n,r){"use strict";var e=r(1);function o(t,n){return RegExp(t,n)}n.UNSUPPORTED_Y=e((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),n.BROKEN_CARET=e((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},,,,function(t,n,r){var e=r(13),o=r(8),i=function(t){return function(n,r){var i,u,c=String(o(n)),a=e(r),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,n,r){"use strict";var e=r(56),o=r(4),i=r(51),u=r(19),c=r(13),a=r(8),f=r(57),s=r(58),l=Math.max,p=Math.min,v=Math.floor,d=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;e("replace",2,(function(t,n,r,e){var x=e.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,h=e.REPLACE_KEEPS_$0,y=x?"$":"$0";return[function(r,e){var o=a(this),i=null==r?void 0:r[t];return void 0!==i?i.call(r,o,e):n.call(String(o),r,e)},function(t,e){if(!x&&h||"string"==typeof e&&-1===e.indexOf(y)){var i=r(n,t,this,e);if(i.done)return i.value}var a=o(t),v=String(this),d="function"==typeof e;d||(e=String(e));var g=a.global;if(g){var S=a.unicode;a.lastIndex=0}for(var E=[];;){var m=s(a,v);if(null===m)break;if(E.push(m),!g)break;""===String(m[0])&&(a.lastIndex=f(v,u(a.lastIndex),S))}for(var O,_="",P=0,w=0;w<E.length;w++){m=E[w];for(var R=String(m[0]),j=l(p(c(m.index),v.length),0),T=[],A=1;A<m.length;A++)T.push(void 0===(O=m[A])?O:String(O));var I=m.groups;if(d){var M=[R].concat(T,j,v);void 0!==I&&M.push(I);var C=String(e.apply(void 0,M))}else C=b(R,v,j,T,I,e);j>=P&&(_+=v.slice(P,j)+C,P=j+R.length)}return _+v.slice(P)}];function b(t,r,e,o,u,c){var a=e+t.length,f=o.length,s=g;return void 0!==u&&(u=i(u),s=d),n.call(c,s,(function(n,i){var c;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,e);case"'":return r.slice(a);case"<":c=u[i.slice(1,-1)];break;default:var s=+i;if(0===s)return n;if(s>f){var l=v(s/10);return 0===l?n:l<=f?void 0===o[l-1]?i.charAt(1):o[l-1]+i.charAt(1):n}c=o[s-1]}return void 0===c?"":c}))}}))},,,,,function(t,n,r){var e=r(3),o=r(11),i=r(7)("match");t.exports=function(t){var n;return e(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},,,function(t,n,r){var e=r(4),o=r(79);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),n=r instanceof Array}catch(t){}return function(r,i){return e(r),o(i),n?t.call(r,i):r.__proto__=i,r}}():void 0)},,,function(t,n,r){"use strict";var e=r(16),o=r(35).indexOf,i=r(59),u=r(60),c=[].indexOf,a=!!c&&1/[1].indexOf(1,-0)<0,f=i("indexOf"),s=u("indexOf",{ACCESSORS:!0,1:0});e({target:"Array",proto:!0,forced:a||!f||!s},{indexOf:function(t){return a?c.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,r){var e=r(3),o=r(74);t.exports=function(t,n,r){var i,u;return o&&"function"==typeof(i=n.constructor)&&i!==r&&e(u=i.prototype)&&u!==r.prototype&&o(t,u),t}},function(t,n,r){var e=r(3);t.exports=function(t){if(!e(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},,,,,,,function(t,n,r){var e=r(5),o=r(0),i=r(37),u=r(78),c=r(12).f,a=r(32).f,f=r(71),s=r(38),l=r(61),p=r(10),v=r(1),d=r(33).set,g=r(87),x=r(7)("match"),h=o.RegExp,y=h.prototype,b=/a/g,S=/a/g,E=new h(b)!==b,m=l.UNSUPPORTED_Y;if(e&&i("RegExp",!E||m||v((function(){return S[x]=!1,h(b)!=b||h(S)==S||"/a/i"!=h(b,"i")})))){for(var O=function(t,n){var r,e=this instanceof O,o=f(t),i=void 0===n;if(!e&&o&&t.constructor===O&&i)return t;E?o&&!i&&(t=t.source):t instanceof O&&(i&&(n=s.call(t)),t=t.source),m&&(r=!!n&&n.indexOf("y")>-1)&&(n=n.replace(/y/g,""));var c=u(E?new h(t,n):h(t,n),e?this:y,O);return m&&r&&d(c,{sticky:r}),c},_=function(t){t in O||c(O,t,{configurable:!0,get:function(){return h[t]},set:function(n){h[t]=n}})},P=a(h),w=0;P.length>w;)_(P[w++]);y.constructor=O,O.prototype=y,p(o,"RegExp",O)}g("RegExp")},function(t,n,r){"use strict";var e=r(28),o=r(12),i=r(7),u=r(5),c=i("species");t.exports=function(t){var n=e(t),r=o.f;u&&n&&!n[c]&&r(n,c,{configurable:!0,get:function(){return this}})}},,,,,,,,,,,,,,,,,,,,function(t,n,r){"use strict";r.r(n),r.d(n,"isMobile",(function(){return o})),r.d(n,"isWeixin",(function(){return i})),r.d(n,"weixinVersion",(function(){return u})),r.d(n,"isWorkWeixin",(function(){return c})),r.d(n,"ieVersion",(function(){return a})),r.d(n,"isAndroid",(function(){return f})),r.d(n,"isIOS",(function(){return s})),r.d(n,"iOSVersion",(function(){return l})),r.d(n,"isHuawei",(function(){return p}));r(77),r(86),r(52),r(54),r(66);function e(t){return t||"undefined"==typeof navigator||(t=navigator.userAgent),t}function o(t,n){t=e(t);var r=/mobile|android/i.test(t)||!/\b(Windows\sNT|Macintosh|x86(_(32|64))?|amd64|i[356]86)\b/.test(t);return n&&"platform"in n&&(r=r||-1!==["Android","iPhone","iPad","iPod"].indexOf(n.platform),"maxTouchPoints"in n&&(r=r||"MacIntel"===n.platform&&n.maxTouchPoints>1)),r}function i(t){return t=e(t),/\bMicroMessenger\//.test(t)}function u(t){return t=e(t),/\bMicroMessenger\/([\d.]+)/.test(t)?RegExp.$1:""}function c(t){return i(t=e(t))&&/\bwxwork\b/.test(t)}function a(t){return t=e(t),/\bMSIE\s(\d+)/i.test(t)||/\bTrident\/.*;\srv:(\d+)/.test(t)?RegExp.$1:""}function f(t){return t=e(t),/\bAndroid\b/.test(t)}function s(t){return t=e(t),/\b(?:iPad|iPod|iPhone)\b/.test(t)}function l(t){return t=e(t),/\bOS(?:\s([\d_.]+))?\slike\sMac\sOS\sX\b/.test(t)?RegExp.$1.replace(/_/g,"."):""}function p(t){return t=e(t),/\b(?:huawei|honor)/i.test(t)}}]);
|
package/package.json
CHANGED
package/src/browser.js
CHANGED
|
@@ -29,7 +29,7 @@ function getBrowserUA(ua) {
|
|
|
29
29
|
export function isMobile(ua, features) {
|
|
30
30
|
ua = getBrowserUA(ua);
|
|
31
31
|
let result = /mobile|android/i.test(ua) ||
|
|
32
|
-
!/\b(Windows\sNT|Macintosh|
|
|
32
|
+
!/\b(Windows\sNT|Macintosh|x86(_(32|64))?|amd64|i[356]86)\b/.test(ua);
|
|
33
33
|
|
|
34
34
|
if (features && 'platform' in features) {
|
|
35
35
|
result = result || [
|