@ssports_fe/ssutils
Version:
1 lines • 19.9 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ssutils=e():t.ssutils=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([function(t,e,n){"use strict";var r=function(t){var e=Object.prototype.toString;return{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[e.call(t)]};t.exports=r},function(t,e,n){"use strict";var r={},o=n(4);o.keys().forEach(function(t){var e=t.substring(t.lastIndexOf("/")+1,t.lastIndexOf("."));r[e]=o(t)}),t.exports=r},function(t,e,n){"use strict";function r(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function o(t,e){if("undefined"!=typeof document){for(var n={},o=document.cookie?document.cookie.split("; "):[],i=0;i<o.length;i++){var s=o[i].split("="),a=s.slice(1).join("=");e||'"'!==a.charAt(0)||(a=a.slice(1,-1));try{var c=r(s[0]);if(a=r(a),e)try{a=JSON.parse(a)}catch(t){}if(n[c]=a,t===c)break}catch(t){}}return t?n[t]:n}}t.exports=o},function(t,e,n){"use strict";function r(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}function o(t,e,n){if("undefined"!=typeof document){n=r({path:"/"},n),"number"==typeof n.expires&&(n.expires=new Date(Number(new Date)+864e5*n.expires)),n.expires=n.expires?n.expires.toUTCString():"";try{var o=JSON.stringify(e);/^[\{\[]/.test(o)&&(e=o)}catch(t){}e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var i="";for(var s in n)n[s]&&(i+="; "+s,!0!==n[s]&&(i+="="+n[s].split(";")[0]));return document.cookie=t+"="+e+i}}t.exports=o},function(t,e,n){function r(t){return n(o(t))}function o(t){var e=i[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var i={"./addClass.js":5,"./arrayEqual.js":6,"./browserRedirect.js":7,"./deepClone.js":8,"./digitLength.js":9,"./digitUppercase.js":10,"./divide.js":11,"./extend.js":12,"./getBrowser.js":13,"./getCookie.js":2,"./getExplore.js":14,"./getHash.js":15,"./getIqiyiAppVersion.js":16,"./getKeyName.js":17,"./getNewApiUrl.js":18,"./getOS.js":19,"./getPageName.js":20,"./getQueryString.js":21,"./getScrollPos.js":22,"./getStyle.js":23,"./getUUID.js":24,"./guid.js":25,"./hasClass.js":26,"./index.js":1,"./isArrayLike.js":27,"./isEmail.js":28,"./isEmptyObject.js":29,"./isIdCard.js":30,"./isIqiyiApp.js":31,"./isPhoneNum.js":32,"./isSupportWebP.js":33,"./isUrl.js":34,"./local.js":35,"./minus.js":36,"./off.js":37,"./offset.js":38,"./on.js":39,"./parseQueryString.js":40,"./plus.js":41,"./randomColor.js":42,"./randomNum.js":43,"./reloadIframeUrl.js":44,"./removeClass.js":45,"./removeCookie.js":46,"./round.js":47,"./scrollTo.js":48,"./session.js":49,"./setCookie.js":3,"./setPageMeta.js":50,"./setPageTitle.js":51,"./setParentMeta.js":52,"./setParentTitle.js":53,"./stringfyQueryString.js":54,"./strip.js":55,"./times.js":56,"./uuid.js":57};r.keys=function(){return Object.keys(i)},r.resolve=o,t.exports=r,r.id=4},function(t,e,n){"use strict";var r=function(t,e){if(t){for(var n=t.className,r=(e||"").split(" "),o=0,i=r.length;o<i;o++){var s=r[o];s&&(t.classList?t.classList.add(s):hasClass(t,s)||(n+=" "+s))}t.classList||(t.className=n)}};t.exports=r},function(t,e,n){"use strict";var r=function(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(t[n]!==e[n])return!1;return!0};t.exports=r},function(t,e,n){"use strict";var r=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=navigator.userAgent.toLowerCase(),r="ipad"===n.match(/ipad/i);e&&(r=!1);var o=!!n.match(/iPhone/i),i=!!n.match(/Android/i);(r||o||i)&&(window.location.href=t)};t.exports=r},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function t(e){var n=void 0;if(null==e||"object"!==(void 0===e?"undefined":r(e)))return e;if(e instanceof Date)return n=new Date,n.setTime(e.getTime()),n;if(e instanceof Array){n=[];for(var o=e,i=Array.isArray(o),s=0,o=i?o:o[Symbol.iterator]();;){var a;if(i){if(s>=o.length)break;a=o[s++]}else{if(s=o.next(),s.done)break;a=s.value}var c=a;n[c]=t(c)}return n}if(e instanceof Object){n={};for(var u in e)e.hasOwnProperty(u)&&(n[u]=t(e[u]));return n}throw new Error("Unable to copy values! Its type isn't supported.")};t.exports=o},function(t,e,n){"use strict";var r=function(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-Number(e[1]||0);return n>0?n:0};t.exports=r},function(t,e,n){"use strict";var r=function(t){var e=void 0;if(t&&"number"==typeof t){var n=["角","分"],r=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],o=[["元","万","亿"],["","拾","佰","仟"]],i=t<0?"欠":"";e=Math.abs(t);for(var s="",a=0;a<n.length;a++)s+=(r[Math.floor(10*e*Math.pow(10,a))%10]+n[a]).replace(/零./,"");s=s||"整",e=Math.floor(t);for(var c=0;c<o[0].length&&e>0;c++){for(var u="",f=0;f<o[1].length&&e>0;f++)u=r[e%10]+o[1][f]+u,e=Math.floor(e/10);s=u.replace(/(零.)*零$/,"").replace(/^$/,"零")+o[0][c]+s}return i+s.replace(/(零.)*零元/,"元").replace(/(零.)+/g,"零").replace(/^整$/,"零元整")}throw new Error("请输入要转换的金额, 金额类型必须为数字类型")};t.exports=r},function(t,e,n){"use strict";var r=function(t,e){var n=Number(t.toString().replace(".","")),r=Number(e.toString().replace(".",""));return times(n/r,Math.pow(10,digitLength(e)-digitLength(t)))};t.exports=r},function(t,e,n){"use strict";var r=n(0),o=function t(e,n){var o=e||{};for(var i in n)"object"===r(n[i])?o[i]=t(o[i],n[i]):o[i]=n[i];return o};t.exports=o},function(t,e,n){"use strict";var r=function(){var t=navigator.userAgent||"",e=function(){return!!t.match(/Android/i)}(),n=function(){return/(iPad|iPhone|iPod).*? (IPad)?QQ\/([\d.]+)/.test(t)||/\bV1_AND_SQI?_([\d.]+)(.*? QQ\/([\d.]+))?/.test(t)}(),r=function(){return!!t.match(/iPhone|iPad|iPod/i)||/Macintosh/.test(navigator.userAgent)&&"ontouchend"in document}(),o=function(){return!!t.match(/iPhone/i)}(),i=function(){return!!t.match(/iPad|iPod/i)||/Macintosh/.test(navigator.userAgent)&&"ontouchend"in document}(),s=function(){return/iPhone|iPad|iPod\/([\w.]+).*(safari).*/i.test(t)}(),a=function(){return!!t.match(/micromessenger/i)}(),c=function(){return!!t.match(/weibo/i)}(),u=function(){return(t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/))&&e&&!n}(),f=function(){return-1!==t.indexOf("Qzone/")}();return{isAndroid:e,isIOS:r,isIphone:o,isIpad:i,isSafari:s,isQQ:n,isWb:c,isWx:a,isQZ:f,isAndroidChrome:u}};t.exports=r},function(t,e,n){"use strict";var r=function(){var t={},e=navigator.userAgent.toLowerCase();return e.match(/rv:([\d.]+)\) like gecko/)?t.ie=e.match(/rv:([\d.]+)\) like gecko/)[1]:e.match(/msie ([\d.]+)/)?t.ie=e.match(/msie ([\d.]+)/)[1]:e.match(/edge\/([\d.]+)/)?t.edge=e.match(/edge\/([\d.]+)/)[1]:e.match(/firefox\/([\d.]+)/)?t.firefox=e.match(/firefox\/([\d.]+)/)[1]:e.match(/(?:opera|opr).([\d.]+)/)?t.opera=e.match(/(?:opera|opr).([\d.]+)/)[1]:e.match(/chrome\/([\d.]+)/)?t.chrome=e.match(/chrome\/([\d.]+)/)[1]:e.match(/version\/([\d.]+).*safari/)&&(t.safari=e.match(/version\/([\d.]+).*safari/)[1]),t.ie?"IE: "+t.ie:t.edge?"EDGE: "+t.edge:t.firefox?"Firefox: "+t.firefox:t.chrome?"Chrome: "+t.chrome:t.opera?"Opera: "+t.opera:t.safari?"Safari: "+t.safari:"Unkonwn"};t.exports=r},function(t,e,n){"use strict";var r=function(t){var e=window.location.hash.slice(1),n=new RegExp(t+"=([^&\\s+]+)"),r=e.match(n),o=r?r[1]:"";return""===o||isNaN(o)?o:o-0};t.exports=r},function(t,e,n){"use strict";var r=function(){var t=navigator.userAgent||"";return/iqiyiversion/i.test(t)&&t.replace(/(.*)iqiyiversion\/([\d|\.]*)(.*)/i,"$2")||""};t.exports=r},function(t,e,n){"use strict";var r={8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"Caps Lock",27:"Escape",32:"Space",33:"Page Up",34:"Page Down",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",42:"Print Screen",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Windows",93:"Right Click",96:"Numpad 0",97:"Numpad 1",98:"Numpad 2",99:"Numpad 3",100:"Numpad 4",101:"Numpad 5",102:"Numpad 6",103:"Numpad 7",104:"Numpad 8",105:"Numpad 9",106:"Numpad *",107:"Numpad +",109:"Numpad -",110:"Numpad .",111:"Numpad /",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Num Lock",145:"Scroll Lock",182:"My Computer",183:"My Calculator",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o=function(t){return r[t]?r[t]:(console.log("Unknow Key(Key Code:"+t+")"),"")};t.exports=o},function(t,e,n){"use strict";var r=function(t){var e=window.location.host;return-1===e.indexOf("www")?t+"."+e:e.replace("www",t)};t.exports=r},function(t,e,n){"use strict";var r=function(){var t="navigator"in window&&"userAgent"in navigator&&navigator.userAgent.toLowerCase()||"",e="navigator"in window&&"appVersion"in navigator&&navigator.appVersion.toLowerCase()||"";return/iphone/i.test(t)||/ipad/i.test(t)||/ipod/i.test(t)?"ios":/android/i.test(t)?"android":/win/i.test(e)&&/phone/i.test(t)?"windowsPhone":/mac/i.test(e)?"MacOSX":/win/i.test(e)?"windows":/linux/i.test(e)?"linux":void 0};t.exports=r},function(t,e,n){"use strict";var r=function(){var t=window.location.pathname,e=t.split(/\//),n=e.pop().match(/(?:^|\/)($|[^.]+)/);return n[1]?n[1]:"index"};t.exports=r},function(t,e,n){"use strict";var r=function(t){var e=window.location.search.slice(1),n=new RegExp(t+"=([^&\\s+]+)"),r=e.match(n),o=r?r[1]:"";return""===o||isNaN(o)?o:o-0};t.exports=r},function(t,e,n){"use strict";var r=function(t){var e="undefined"!==t.pageXOffset,n="CSS1Compat"===(t.document.compatMode||"");return{X:e?t.pageXOffset:n?t.document.documentElement.scrollLeft:t.document.body.scrollLeft,Y:e?t.pageYOffset:n?t.document.documentElement.scrollTop:t.document.body.scrollTop}};t.exports=r},function(t,e,n){"use strict";var r=function(t,e){if(!t||!e)return null;"float"===(e=camelCase(e))&&(e="cssFloat");try{var n=document.defaultView.getComputedStyle(t,"");return t.style[e]||n?n[e]:null}catch(n){return t.style[e]}};t.exports=r},function(t,e,n){"use strict";function r(t){var e=!0;return t&&void 0!==t&&null!==t&&"null"!==t&&"undefined"!==t&&""!==t&&"0"!==t&&(e=!1),e}var o=n(2),i=n(3),s=function(){var t=o("cuuid");if(r(t)){for(var e=[],n="0123456789abcdef",s=0;s<36;s++)e[s]=n.substr(Math.floor(16*Math.random()),1);e[14]="4",e[19]=n.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",t=e.join(""),t=t.replace(/-/g,""),i("cuuid",t,{path:"/",expires:365})}return t};t.exports=s},function(t,e,n){"use strict";var r=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})};t.exports=r},function(t,e,n){"use strict";var r=function(t,e){if(!t||!e)return!1;if(-1!==e.indexOf(" "))throw new Error("className should not contain space.");return t.classList?t.classList.contains(e):(" "+t.className+" ").indexOf(" "+e+" ")>-1};t.exports=r},function(t,e,n){"use strict";function r(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function o(t){return null!==t&&"function"!=typeof t&&r(t.length)}t.exports=o},function(t,e,n){"use strict";var r=function(t){return/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(t)};t.exports=r},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t){return!(!t||"object"!==(void 0===t?"undefined":r(t))||Array.isArray(t))&&!Object.keys(t).length};t.exports=o},function(t,e,n){"use strict";var r=function(t){return/^(^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$)|(^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])((\d{4})|\d{3}[Xx])$)$/.test(t)};t.exports=r},function(t,e,n){"use strict";var r=function(){return/iqiyi/i.test(navigator.userAgent||"")};t.exports=r},function(t,e,n){"use strict";var r=function(t){return/^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/.test(t)};t.exports=r},function(t,e,n){"use strict";function r(){return!![].map&&0===document.createElement("canvas").toDataURL("image/webp").indexOf("data:image/webp")}t.exports=r},function(t,e,n){"use strict";var r=function(t){return/[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&\/\/=]*)/i.test(t)};t.exports=r},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=["sessionStorage","localStorage"],i=function(t){if(-1===o.indexOf(t))throw new Error("storeType is not supported!");return{get:function(e){var n=window[t].getItem(e);try{n=JSON.parse(n)}catch(t){}return n},set:function(e,n){var o=n;if("object"===(void 0===n?"undefined":r(n)))try{o=JSON.stringify(o)}catch(t){}return window[t].setItem(e,o)},remove:function(e){return window[t].removeItem(e)}}}("localStorage");t.exports=i},function(t,e,n){"use strict";var r=function(t,e){var n=Math.pow(10,Math.max(digitLength(t),digitLength(e)));return(times(t,n)-times(e,n))/n};t.exports=r},function(t,e,n){"use strict";var r=function(){return document.removeEventListener?function(t,e,n){t&&e&&t.removeEventListener(e,n,!1)}:function(t,e,n){t&&e&&t.detachEvent("on"+e,n)}}();t.exports=r},function(t,e,n){"use strict";var r=function(t){for(var e=t,n={left:0,top:0};e;)n.left+=t.offsetLeft,n.top+=t.offsetTop,e=t.offsetParent;return n};t.exports=r},function(t,e,n){"use strict";var r=function(){return document.addEventListener?function(t,e,n){t&&e&&n&&t.addEventListener(e,n,!1)}:function(t,e,n){t&&e&&n&&t.attachEvent("on"+e,n)}}();t.exports=r},function(t,e,n){"use strict";var r=function(t){var e=void 0;e=null==t?window.location.href:t;var n="?"===e[0]?e.substr(1):e.substring(e.lastIndexOf("?")+1);if(""===n)return{};n=n.split("&");for(var r={},o=0;o<n.length;o++){var i=n[o].split("=");r[decodeURIComponent(i[0])]=decodeURIComponent(i[1]||"")}return r};t.exports=r},function(t,e,n){"use strict";var r=function(t,e){var n=Math.pow(10,Math.max(digitLength(t),digitLength(e)));return(times(t,n)+times(e,n))/n};t.exports=r},function(t,e,n){"use strict";var r=function(){return"#"+("00000"+(16777216*Math.random()<<0).toString(16)).slice(-6)};t.exports=r},function(t,e,n){"use strict";var r=function(t,e){return Math.floor(Math.random()*(e-t+1))+t};t.exports=r},function(t,e,n){"use strict";var r=n(0),o=function(t){t&&"string"===r(t)?window.top!==window.self?window.top.location.href=t:window.location.href=t:console.error("请检查参数,参数必须为字符串!")};t.exports=o},function(t,e,n){"use strict";var r=function(t,e){if(t&&e){for(var n=e.split(" "),r=" "+t.className+" ",o=0,i=n.length;o<i;o++){var s=n[o];s&&(t.classList?t.classList.remove(s):hasClass(t,s)&&(r=r.replace(" "+s+" "," ")))}t.classList||(t.className=trim(r))}};t.exports=r},function(t,e,n){"use strict";function r(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)n.hasOwnProperty(r)&&(e[r]=n[r])}return e}function o(t,e){set(t,"",r(e,{expires:-1}))}t.exports=o},function(t,e,n){"use strict";var r=function(t,e){var n=Math.pow(10,e);return divide(Math.round(times(t,n)),n)};t.exports=r},function(t,e,n){"use strict";var r=function(){return document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop},o=function(t){return window.scrollTo(0,t),t},i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}(),s=function t(e,n){if(n<0)return void o(e);var s=e-r();if(0!==s){var a=s/n*10;i(function(){if(Math.abs(a)>Math.abs(s))return void o(r()+s);o(r()+a),s>0&&r()>=e||s<0&&r()<=e||t(e,n-16)})}};t.exports=s},function(t,e,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=["sessionStorage","localStorage"],i=function(t){if(-1===o.indexOf(t))throw new Error("storeType is not supported!");return{get:function(e){var n=window[t].getItem(e);try{n=JSON.parse(n)}catch(t){}return n},set:function(e,n){var o=n;if("object"===(void 0===n?"undefined":r(n)))try{o=JSON.stringify(o)}catch(t){}return window[t].setItem(e,o)},remove:function(e){return window[t].removeItem(e)}}}("sessionStorage");t.exports=i},function(t,e,n){"use strict";var r=n(0),o=function(t,e){if(t&&e&&"string"===r(t)&&"string"===r(e)){var n=document.getElementsByTagName("meta")[t];n?n.setAttribute("content",e):console.error("未找到name为%s的meta节点",t)}else console.error("输入的参数有误,name和content都是字符串类型")};t.exports=o},function(t,e,n){"use strict";var r=n(0),o=function(t){"string"===r(t)?window.document.title=t:console.error("设置页面标题参数必须为字符串类型")};t.exports=o},function(t,e,n){"use strict";var r=function(t,e){if(window.top!==window.self)if(t&&e&&"string"===typeOf(t)&&"string"===typeOf(e)){var n=window.top.document.getElementsByTagName("meta")[t];n?n.setAttribute("content",e):console.error("未找到name为%s的meta节点",t)}else console.error("输入的参数有误,name和content都是字符串类型");else console.error("当前页面没有作为iframe嵌入其他页面!")};t.exports=r},function(t,e,n){"use strict";var r=function(t){window.top!==window.self?window.top.document.title=t:console.error("当前页面没有作为iframe嵌入其他页面!")};t.exports=r},function(t,e,n){"use strict";var r=function(t){if(!t)return"";var e=[];for(var n in t)if({}.hasOwnProperty.call(t,n)){var r=t[n];if(r instanceof Array){for(var o=0;o<r.length;++o)e.push(encodeURIComponent(n+"["+o+"]")+"="+encodeURIComponent(r[o]));continue}e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]))}return e.join("&")};t.exports=r},function(t,e,n){"use strict";var r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:12;return+parseFloat(t.toPrecision(e))};t.exports=r},function(t,e,n){"use strict";var r=function(t,e){var n=Number(t.toString().replace(".","")),r=Number(e.toString().replace(".","")),o=digitLength(t)+digitLength(e);return n*r/Math.pow(10,o)};t.exports=r},function(t,e,n){"use strict";var r=function(t,e){var n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[],o=void 0;if(e=e||n.length,t)for(o=0;o<t;o++)r[o]=n[0|Math.random()*e];else{var i=void 0;for(r[8]=r[13]=r[18]=r[23]="-",r[14]="4",o=0;o<36;o++)r[o]||(i=0|16*Math.random(),r[o]=n[19===o?3&i|8:i])}return r.join("")};t.exports=r}])});