-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbbo.min.js
10 lines (9 loc) · 36.8 KB
/
bbo.min.js
1
2
3
4
5
6
7
8
9
10
/*
* bbo
* bbo is a utility library of zero dependencies for javascript.
* (c) 2011 - 2020
* https://github.com/tnfe/bbo.git
* version 1.1.23
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).bbo=t()}(this,(function(){"use strict";function e(){return(e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function t(e,t){return o(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||a(e,t)||c()}function r(e){return o(e)||i(e)||a(e)||c()}function n(e){return function(e){if(Array.isArray(e))return u(e)}(e)||i(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e){if(Array.isArray(e))return e}function i(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function a(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e){return Object.prototype.toString.call(e)}function l(e){return"[object String]"===s(e)}function f(e){return"[object Function]"===s(e)}var d=null;var h=null!==d?d:d="object"==typeof global&&global.Object===Object?global:"object"==typeof self&&self.Object===Object?self:new Function("return this")(),p=h.bbo;function v(e){return e?window.navigator.userAgent.toLowerCase():window.navigator.userAgent}function g(){return/iPad|iPhone|iPod/.test(v())}function m(){return/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(v("l"))}function y(){var e=v(),t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var r=e.indexOf("rv:");return parseInt(e.substring(r+3,e.indexOf(".",r)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(v.substring(n+5,e.indexOf(".",n)),10):""}function w(e,t,r){e.setAttribute(t,r)}function b(e,t,r,n){var o=document.createElement(e);return t&&w(o,"class",t),r&&(o.innerHTML=r),n&&w(o,"id",n),o}function x(e){return document.getElementById(e)}function S(e,t){return Array.prototype.slice.call(e,t||0)}var O={};var j={clear:()=>{for(var e in j)"log"!==e&&"clear"!==e&&delete j[e]},log:()=>{for(var e in j)"log"!==e&&"clear"!==e&&console.log("bbo.trash:: ",e,j[e])}},C=()=>{};function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function A(e,t,r){e.style[t]=r}var I=(e,t,r)=>{var n=document.createEvent(r||"HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)};function M(e){return"[object Array]"===s(e)}function T(e){return"[object Map]"===s(e)}function P(e){return"[object Set]"===s(e)}function _(e){return null==e?0:M(e)||l(e)?e.length:T(e)||P(e)?e.size:Object.keys(e).length}function k(e){var t,r=String(e),n=0;if(0===_(r))return n;for(t=0;t<r.length;t++)n=(n<<5)-n+r.charCodeAt(t),n|=0;return n}var R=(e,t)=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase()===t;function N(e,t,r){if(!R(t,"array"))return!1;for(var n in t)if(r){if(e===t[n])return!0}else if(e==t[n])return!0;return!1}function L(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function U(e,t){var r=0;if(M(e))for(;r<e.length;){if(!1===t(e[r],r,e))break;r+=1}else if(L(e))for(var n=Object.keys(e);r<n.length;){var o=n[r];if(!1===t(e[o],o,e))break;r+=1}}function D(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var $=e=>e instanceof Date;function B(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length<2)return!1;for(var n in t)if(void 0!==t[(n=Number(n))+1])if(M(t[n])){if(!q(t[n],t[n+1]))return!1}else if(L(t[n])){if(!z(t[n],t[n+1]))return!1}else if($(t[n])){if(!J(t[n],t[n+1]))return!1}else if(t[n]!==t[n+1])return!1;return!0}function F(e,t){for(var r in e){if(void 0===t[r])return!1;if(M(e[r])){if(!q(e[r],t[r]))return!1}else if(L(e[r])){if(!z(e[r],t[r]))return!1}else if($(e[r])){if(!J(e[r],t[r]))return!1}else if(e[r]!==t[r])return!1}return!0}function q(e,t){return!!M(t)&&(e.length===t.length&&F(e,t))}function z(e,t){if(!L(t))return!1;for(var r in t)if(void 0===e[r])return!1;return F(e,t)}function J(e,t){return!(!$(t)||e.getTime()!==t.getTime())}function W(e,t){var r=-1;return U(e,(e,n,o)=>{if(f(t)){if(!0===t(e,n,o))return r=n,!1}else{if(D(e,t))return r=n,!1;if(L(e)&&L(t)){var i=!0;if(U(t,(t,r)=>i=B(e[r],t)),i)return r=n,!1}}}),r}function H(){this.__events={}}var G=H.prototype;G.on=function(e,t){if(e&&t){if(!function e(t){return!!f(t)||!(!t||!L(t))&&e(t.listener)}(t))throw new TypeError("listener is a function");var r=this.__events,n=r[e]=r[e]||[],o=L(t);if(-1===W(n,t)){var i={listener:t,once:!1};n.push(o?t:i),console.log(n)}return this}},G.once=function(e,t){return this.on(e,{listener:t,once:!0})},G.off=function(e,t){var r=this.__events[e];if(r){for(var n,o=0,i=r.length;o<i;o++)if(r[o]&&r[o].listener===t){n=o;break}return void 0!==n&&r.splice(n,1,null),this}},G.emit=function(e,t){var r=this.__events[e];if(r){for(var n=0;n<r.length;n++){var o=r[n];o&&(o.listener.apply(this,t||[]),o.once&&this.off(e,o.listener))}return this}},G.allOff=function(e){e&&this.__events[e]?this.__events[e]=[]:this.__events={}};var V=e=>L(e)&&!e.hasOwnProperty?{...e}:e;function Q(e){return null===e||(M(e)||l(e)?!e.length:L(e)?!Object.keys(e).length:T(e)||P(e)?!e.size:Object(e)!==e||!Object.keys(e).length)}var X=(e,t)=>{if(e===t)return{};if(!L(e)||!L(t))return t;var r=V(e),n=V(t),o=Object.keys(r).reduce((e,t)=>n.hasOwnProperty(t)?e:{...e,[t]:void 0},{});return $(r)||$(n)?r.valueOf()==n.valueOf()?{}:n:Object.keys(n).reduce((e,t)=>{if(!r.hasOwnProperty(t))return{...e,[t]:n[t]};var o=X(r[t],n[t]);return L(o)&&Q(o)&&!$(o)?e:{...e,[t]:o}},o)},Z=(e,t)=>{if(e===t||!L(e)||!L(t))return{};var r=V(e),n=V(t);return Object.keys(n).reduce((e,t)=>{if(r.hasOwnProperty(t)){var o=Z(r[t],n[t]);return L(o)&&Q(o)?e:{...e,[t]:o}}return{...e,[t]:n[t]}},{})},K=(e,t)=>{if(e===t||!L(e)||!L(t))return{};var r=V(e),n=V(t);return Object.keys(r).reduce((e,t)=>{if(n.hasOwnProperty(t)){var o=K(r[t],n[t]);return L(o)&&Q(o)?e:{...e,[t]:o}}return{...e,[t]:void 0}},{})},Y=(e,t)=>{if(e===t)return{};if(!L(e)||!L(t))return t;var r=V(e),n=V(t);return $(r)||$(n)?r.valueOf()==n.valueOf()?{}:n:Object.keys(n).reduce((e,t)=>{if(r.hasOwnProperty(t)){var o=Y(r[t],n[t]);return L(o)&&Q(o)&&!$(o)?e:{...e,[t]:o}}return e},{})};function ee(e,t){var r=this;r.img=new Image;var n=function(){a(),console.info("onReadyStateChange"),t(r,"onReadyStateChange")},o=function(){console.info("onError"),a(),t(r,"onError")},i=function(){a(),t(r,"onload")},a=function(){r.unbind("load",i),r.unbind("readystatechange",n),r.unbind("error",o)};this.start=function(){this.bind("load",i),this.bind("readystatechange",n),this.bind("error",o),this.img.src=e,r.img.complete&&(a(),t(this,"onload"))}}ee.prototype.bind=function(e,t){this.img.addEventListener?this.img.addEventListener(e,t,!1):this.img.attachEvent&&this.img.attachEvent("on"+e,t)},ee.prototype.unbind=function(e,t){this.img.removeEventListener?this.img.removeEventListener(e,t,!1):this.img.detachEvent&&this.img.detachEvent("on"+e,t)};var te={urls:{},logs:{}},re=function(e,t){for(var r=0;r<e.length;r++)ne(e[r],o);var n=0;function o(){++n>=e.length&&t&&t()}},ne=function(e,t){var r=b("script");w(r,"type","text/javascript"),w(r,"src",e),w(r,"charset","utf-8"),document.getElementsByTagName("head")[0].appendChild(r),/msie/.test(v("l"))?r.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||t()}:/gecko/.test(v("l"))?r.onload=function(){t()}:setTimeout((function(){t()}),50)};var oe=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",r="",n=0;n<e;n++)r+=t.charAt(Math.floor(Math.random()*t.length));return r};var ie=e=>{if(!e)return null;if("string"!=typeof e)return e;try{return JSON.parse(e)}catch(t){return new Function("return "+("("+e+")"))()}};function ae(e){return"[object Number]"===s(e)}var ue=(e,t,r)=>{var n=r&&r.raw?t:encodeURIComponent(t),o=encodeURIComponent(e)+"="+n;if(r){if(r.days){var i=new Date,a=24*r.days*3600*1e3;i.setTime(i.getTime()+a),o+="; expires="+i.toGMTString()}else if(r.hour){var u=new Date,c=3600*r.hour*1e3;u.setTime(u.getTime()+c),o+="; expires="+u.toGMTString()}else{var s=new Date;s.setTime(s.getTime()+31536e7),o+="; expires="+s.toGMTString()}r.path&&(o+="; path="+r.path),r.domain&&(o+="; domain="+r.domain),r.secure&&(o+="; true")}document.cookie=o},ce=e=>{ue(e,"",{hour:-1})};function se(e,t){return-1!==String(e).indexOf(t)}var le=window.localStorage,fe=window.sessionStorage;class de{constructor(e){var t=e.type,r=void 0===t?"local":t,n=e.prefix,o=void 0===n?"bbo.storage":n,i=e.message,a=void 0===i?{setItem:"write in",getItem:"read",removeAll:"remove all",removeItem:"remove item"}:i;this.prefix=o,this.type=r,this.message=a,"local"===r?this._storage=le:"session"===r&&(this._storage=fe)}doItem(e,t){try{if(f(e))return e()}catch(e){return this._warn(t),null}return!0}setItem(e,t){L(e)?Object.keys(e).forEach((t,r)=>{this.doItem(()=>this._storage.setItem(`${this.prefix}.${t}`,JSON.stringify(e[t])),"setItem")}):this.doItem(()=>this._storage.setItem(`${this.prefix}.${e}`,JSON.stringify(t)),"setItem")}has(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every((e,t)=>this._storage.getItem(`${this.prefix}.${e}`))}get(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((t,r)=>{if(""+this._storage.getItem(`${this.prefix}.${t}`)!="null")try{e[t]=JSON.parse(this._storage.getItem(`${this.prefix}.${t}`))}catch(e){console.warn(this._warn("getItem"))}}),e}getItem(e){return this.doItem(()=>JSON.parse(this._storage.getItem(`${this.prefix}.${e}`)),"getItem")}removeAll(){Object.keys(this._storage).forEach(e=>{se(e,this.prefix)&&this._remove(""+e)})}removeItem(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];console.log(t),t.forEach((e,t)=>this.doItem(()=>this._storage.removeItem(`${this.prefix}.${e}`),"removeItem"))}_warn(e){var t=this.message;console.warn(`Unable to ${t[e]||""} ${this.type} Storage`)}_remove(e){this.doItem(()=>this._storage.removeItem(""+e),"removeItem")}}var he=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.href,r=t.split("?");if(r.length>=2){for(var n=encodeURIComponent(e)+"=",o=r[1].split(/[&;]/g),i=o.length;i-- >0;)-1!==o[i].lastIndexOf(n,0)&&o.splice(i,1);return r[0]+(o.length>0?"?"+o.join("&"):"")}return t},pe=e=>M(e)?e.map(e=>e.name+"="+e.value).join("&"):pe(ve(e)),ve=e=>{var t=[];return Object.keys(e).forEach(r=>{M(e[r])?t=t.concat(e[r].map(e=>({name:r,value:e}))):t.push({name:r,value:e[r]})}),t};function ge(e){return clearInterval(e)}function me(e){var t=parseFloat(e);return t<10?"0"+t:String(t)}var ye=setTimeout;function we(e,t){var r=t.useCachedSetTimeout?ye:setTimeout;return new Promise(t=>{r(t,e)})}function be(e,t){var r;return function(){return Promise.race([Promise.reject().catch(e),new Promise((function(e,n){r=setTimeout((function(){n("timeout.")}),t||8e3)}))]).then((function(e){return clearTimeout(r),e}),(function(e){return Promise.reject(e)}))}}var xe=(e,t,r)=>{var n=Math.random()*(t-e)+e;return r?Math.floor(n):n};var Se={enabledMaxSize:!1,enabledNatural:!1,ratio:1},Oe={enabledType:!1};function je(e){if(f(e))return e;var t=M(e)?[]:{};for(var r in e){var n=e[r],o={}.toString.call(n).slice(8,-1);t[r]="Array"==o||"Object"==o?je(n):"Date"==o?new Date(n.getTime()):"RegExp"==o?RegExp(n.source,Ce(n)):n}return t}function Ce(e){if("string"==typeof e.source.flags)return e.source.flags;var t=[];return e.global&&t.push("g"),e.ignoreCase&&t.push("i"),e.multiline&&t.push("m"),e.sticky&&t.push("y"),e.unicode&&t.push("u"),t.join("")}function Ee(e){return"[object Boolean]"===s(e)}function Ae(e){return M(e)||L(e)}function Ie(e){return!e||!L(e)&&!f(e)}function Me(e){return"[object Symbol]"===s(e)}function Te(e){return null==e||null==e}function Pe(e,t){var r=[],n=0;if(M(e))for(;n<e.length;)r.push(t(e[n],n,e)),n+=1;else if(L(e))for(var o=Object.keys(e);n<o.length;){var i=o[n];r.push(t(e[i],i,e)),n+=1}return r}var _e=".".charCodeAt(0),ke=/\\(\\)?/g,Re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g;function Ne(e){if(l(e)||Me(e))return e;var t=""+e;return"0"==t&&1/e==-1/0?"-0":t}function Le(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1_$2").toLowerCase()}var Ue={version:"1.1.23",noConflict:function(){return this===h.bbo&&(h.bbo=p),this},ua:v,isIos:g,isIOS:g,isiPhone:function(){return/iPhone/.test(v())},isIPad:function(){return/iPad/.test(v())},isAndroid:function(){return v("l").indexOf("android")>-1},isMobile:m,isPC:function(){return!m()},isWeixin:function(){return/MicroMessenger/i.test(v("l"))},isNewsApp:function(){return/qqnews/.test(v())},isQQ:function(){return/qq\//.test(v("l"))},isQQbrowser:function(){return/mqqbrowser\//.test(v("l"))},isTenvideo:function(){return/qqlivebrowser/.test(v("l"))},isWeiShi:function(){return/weishi/.test(v("l"))},isIphoneXmodel:function(){if("undefined"!=typeof window&&window){var e=window,t=e.devicePixelRatio,r=e.screen,n=r.width,o=r.height;return[{devicePixelRatio:3,width:375,height:812},{devicePixelRatio:3,width:414,height:896},{devicePixelRatio:2,width:414,height:896}].some(e=>e.devicePixelRatio===t&&e.width===n&&e.height===o)}return!1},ieVersion:y,isIE:function(){return y()>0},log:function(e,t){var r=x("_bbo_log");if(null===r&&(w(r=b("div"),"id","_bbo_log"),w(r,"style","position:fixed;left:0;top:0;z-index:9999;padding:4px;"),document.body.appendChild(r)),t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r.style[n]=t[n]);r.innerHTML=e},logs:function(){if(window.console&&window.console.log){var e=String(arguments[0]),t=parseInt(e.split("&")[1],10)||10,r=O;r[e]||(r[e]={}),r[e].once||(r[e].once=1),r[e].once<=t&&(console.log.apply(console,S(arguments,1)),r[e].once++)}},removeConsole:function(e){try{window.console||(window.console={}),window.console.log=window.console.info=window.console.dir=window.console.warn=window.console.trace=C,"clear"===e&&window.console.clear&&window.console.clear()}catch(e){}},args:S,trash:j,noop:C,merge:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return[].concat(t).reduce((e,t)=>Object.keys(t).reduce((r,n)=>(e[n]=e.hasOwnProperty(n)?[].concat(e[n]).concat(t[n]):t[n],e),{}),{})},over:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t.map(e=>e.apply(null,r))}},call:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return t=>t[e].apply(t,r)},hasOwnProperty:E,trigger:I,stopPropagation:e=>{var t=e||window.event;return t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},g:x,gc:function(e){return document.getElementsByClassName(e)},c:b,query:function(e){return document.querySelector(e)},show:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return[].concat(t).forEach(e=>{e.style.display=""})},hide:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return[].concat(t).forEach(e=>{e.style.display="none"})},elementContains:(e,t)=>e!==t&&e.contains(t),getStyle:(e,t)=>getComputedStyle(e)[t],setStyle:A,attr:w,uuid:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))},hash:k,judge:N,judgment:N,getType:e=>void 0===e?"undefined":null===e?"null":e.constructor.name.toLowerCase(),isTypeof:R,construct:function(){var e=arguments[0];return new(Function.prototype.bind.apply(e,arguments))},paramsName:function(e){return/\(\s*([\s\S]*?)\s*\)/.exec(e.toString())[1].split(/\s*,\s*/)},eventEmitter:H,properObject:V,objectDiff:X,addedDiff:Z,deletedDiff:K,updatedDiff:Y,detailedDiff:(e,t)=>({added:Z(e,t),deleted:K(e,t),updated:Y(e,t)}),loadImages:function(e){var t,r=0,n=0,o=null,i=0,a=0,u=e.data||[],c=e.step||function(){},s=e.complete||function(){},l=e.needOneStep||!1,d=e.path||!1;if(!L(u)||0===_(u))return c(100),!1;if(t=_(u),d)for(var h=t-1;h>-1;h--)u[h]=d+u[h];var p=function(){i++,c(i),i<a?o=setTimeout((function(){p()}),5):100===a&&i===a&&s&&f(s)&&s()};function v(){n++,a=Math.floor(n/t*100),l?(o&&clearTimeout(o),p()):(c(a),100===a&&s())}for(;r<t;r++){new ee(u[r],v).start()}},loadjs:function(e,t,r){var n,o;f(t)?(n=String(k(String(e))),o=t):void 0===t?(n=String(k(String(e))),o=null):(n=String(t),o=r),te.urls[n]?o&&o():(l(e)?ne:re).call(this,e,(function(){te.urls[n]=!0,o&&o()}))},loadcss:function(e,t){var r,n,o=[],i=[],a=!1,u=!1;function c(){a=!0;for(var e=0,t=o.length;e<t;e++)o[e]()}function s(){u=!0;for(var e=0,t=i.length;e<t;e++)i[e]()}n="load-css-"+oe(5),r={done:function(e){return o.push(e),a&&e(),r},fail:function(e){return i.push(e),u&&e(),r}};var l=b("link");return w(l,"id",n),w(l,"rel","stylesheet"),w(l,"type","text/css"),void 0!==l.addEventListener?(l.addEventListener("load",c,!1),l.addEventListener("error",s,!1)):void 0!==l.attachEvent&&l.attachEvent("onload",(function(){var e=document.styleSheets.length;try{for(;e--;)if(document.styleSheets[e].id===n)return void c()}catch(e){}a||s()})),document.getElementsByTagName("head")[0].appendChild(l),w(l,"href",e),r},toJson:ie,toJSON:ie,tojson:ie,jsonp:function(e,t,r){f(t)&&(r=t,t={}),t||(t={});var n,o,i=t.prefix||"bbo",a=t.name||i+oe(10),u=t.param||"callback",c=null!=t.timeout?t.timeout:6e4,s=encodeURIComponent,l=document.getElementsByTagName("script")[0]||document.head;function d(){n.parentNode&&n.parentNode.removeChild(n),window[a]=void 0,o&&clearTimeout(o)}return c&&(o=setTimeout((function(){d(),r&&r(new Error("Timeout"))}),c)),window[a]=function(e){d(),r&&r(e,null)},console.log(e),e=(e+=(~e.indexOf("?")?"&":"?")+u+"="+s(a)).replace("?&","?"),(n=document.createElement("script")).src=e,l.parentNode.insertBefore(n,l),function(){window[a]&&d()}},cookie:()=>{function e(){for(var e=0,t={};e<arguments.length;e++){var r=arguments[e];for(var n in r)E(r,n)&&(t[n]=r[n])}return t}return function t(r){function n(t,o,i){var a;if(_(arguments)>1){if(ae((i=e({path:"/"},n.defaults,i)).expires)){var u=new Date;u.setMilliseconds(u.getMilliseconds()+864e5*i.expires),i.expires=u}try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(e){}return o=r.write?r.write(o,t):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[t,"=",o,i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}t||(a={});for(var c=document.cookie?document.cookie.split("; "):[],s=/(%[0-9A-Z]{2})+/g,l=0;l<c.length;l++){var f=c[l].split("="),d=f.slice(1).join("=");'"'===d.charAt(0)&&(d=d.slice(1,-1));try{var h=f[0].replace(s,decodeURIComponent);if(d=r.read?r.read(d,h):r(d,h)||d.replace(s,decodeURIComponent),this.json)try{d=JSON.parse(d)}catch(e){}if(t===h){a=d;break}t||(a[h]=d)}catch(e){}}return a}return n.set=n,n.get=function(e){return n.call(n,e)},n.getJson=n.getJSON=function(){return n.apply({json:!0},[].slice.call(arguments))},n.defaults={},n.remove=function(t,r){n(t,"",e(r,{expires:-1}))},n.withConverter=t,n}((function(){}))},setCookie:ue,getCookie:e=>{for(var t=encodeURIComponent(e)+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(t))return decodeURIComponent(o.substring(t.length,o.length))}return null},deleteCookie:ce,delCookie:ce,parseCookie:e=>e.split(";").map(e=>e.split("=")).reduce((e,t)=>(e[decodeURIComponent(t[0].trim())]=decodeURIComponent(t[1].trim()),e),{}),storage:e=>{var t=e.type,r=e.prefix;return new de({type:t,prefix:r})},open:e=>{var t="_bbo_open_proxy",r=x(t)||b("a",t,"",t);A(r,"display","none"),w(r,"href",e),w(r,"target","_blank"),r.parentNode||document.body.appendChild(r),I(r,"click","MouseEvents")},getUrlParam:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.href;e.replace(/[\[\]]/g,"\\$&");var r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),n=r.exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},setUrlParam:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.location.href,n=new RegExp("([?&])"+e+"=.*?(&|$)","i"),o=-1!==r.indexOf("?")?"&":"?";return r.match(n)?r.replace(n,"$1"+e+"="+t+"$2"):r+o+e+"="+t},deleteUrlParam:he,delUrlParam:he,objectParam:pe,httpGet:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:console.error,n=new XMLHttpRequest;n.open("GET",e,!0),n.onload=()=>t(n.responseText),n.onerror=()=>r(n),n.send()},httpPost:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:console.error,o=new XMLHttpRequest;o.open("POST",e,!0),o.setRequestHeader("Content-type","application/json; charset=utf-8"),o.onload=()=>r(o.responseText),o.onerror=()=>n(o),o.send(t)},setTimesout:function(){var e=arguments[0],t=void 0===arguments[1]?0:parseFloat(arguments[1]),r=void 0===arguments[2]?1:parseInt(arguments[2],10),n=arguments.length>3?S(arguments,3):null,o={index:0,times:r,over:!1},i=setInterval((function(){o.index++,o.index>r?ge(i):(o.index===r&&(o.over=!0),e.apply(o,n))}),t);return i},clearTimesout:ge,getDate:(e,t)=>{var r=new Date,n=r.getDate(),o=r.getMonth()+1,i=r.getFullYear(),a=r.getHours(),u=r.getMinutes(),c=r.getSeconds();n=me(n);var s=e||"/",l=t||":";return i+s+(o=me(o))+s+n+" "+(a=me(a))+l+(u=me(u))+l+(c=me(c))},formatPassTime:e=>{var t=Math.floor((new Date-e)/1e3),r=t/31536e3;return r>1?Math.floor(r)+" years":(r=t/2592e3)>1?Math.floor(r)+" months":(r=t/86400)>1?Math.floor(r)+" days":(r=t/3600)>1?Math.floor(r)+" hours":(r=t/60)>1?Math.floor(r)+" minutes":Math.floor(t)+" seconds"},formatRemainTime:e=>{var t=new Date,r=new Date(e).getTime()-t.getTime(),n=0,o=0,i=0,a=0;return r>=0&&(n=Math.floor(r/1e3/3600/24),o=Math.floor(r/1e3/60/60%24),i=Math.floor(r/1e3/60%60),a=Math.floor(r/1e3%60)),n+"day "+o+"hour "+i+"minute "+a+"second"},formatDuration:e=>{e<0&&(e=-e);var r={day:Math.floor(e/864e5),hour:Math.floor(e/36e5)%24,minute:Math.floor(e/6e4)%60,second:Math.floor(e/1e3)%60,millisecond:Math.floor(e)%1e3};return Object.entries(r).filter(e=>0!==e[1]).map(e=>{var r=t(e,2),n=r[0],o=r[1];return`${o} ${n}${1!==o?"s":""}`}).join(", ")},sleep:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.useCachedSetTimeout,n=we(e,{useCachedSetTimeout:r});function o(e){return n.then(()=>e)}return o.then=function(){return n.then.apply(n,arguments)},o.catch=Promise.resolve().catch,o},retry:function(e,t){var r=t||{},n=r.interval||400,o=r.retries||2,i=r.timeout||8e3;function a(e){return new Promise((function(t,r){setTimeout(r.bind(null,e),n)}))}for(var u=Promise.reject(),c=0;c<o;c++)u=u.catch(be(e,i)).catch(a);return u},fill0:me,floor:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.floor(e*Math.pow(10,t))/Math.pow(10,t)},chainAsync:e=>{var t=0,r=e[e.length-1],n=()=>{var o=e[t++];o===r?o():o(n)};n()},numberFormat:(e,t,r,n)=>{var o=String(e).replace(/[^0-9+\-Ee.]/g,""),i=t,a=isFinite(Number(o))?Number(o):0,u=isFinite(Number(i))?Math.abs(i):0,c=void 0===n?",":n,s=void 0===r?".":r,l="";return(l=(u?function(e,t){if(-1===String(e).indexOf("e"))return Number(Math.round(e+"e+"+t)+"e-"+t);var r=String(e).split("e"),n="";return Number(r[1])+t>0&&(n="+"),Number(Math.round(Number(r[0])+"e"+n+(Number(r[1])+t))+"e-"+t).toFixed(t)}(a,u).toString():String(Math.round(a))).split("."))[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,c)),(l[1]||"").length<u&&(l[1]=l[1]||"",l[1]+=new Array(u-l[1].length+1).join("0")),l.join(s)},modulo:function(e,t){return 0===t?e:t<0?NaN:(e%t+t)%t},randomColor:function(){return"#"+("00000"+(16777216*Math.random()<<0).toString(16)).slice(-6)},randomA2B:xe,randomFromA2B:xe,randomKey:oe,lockTouch:()=>{function e(e,t){return e.target.tagName!==t.toUpperCase()&&e.target.tagName!==t.toLowerCase()}function t(t){e(t,"input")&&e(t,"textarea")&&e(t,"select")&&e(t,"menus")&&t.preventDefault()}document.addEventListener("touchmove",(function(e){e.preventDefault()}),!1),document.addEventListener("touchstart",t,!1),document.addEventListener("touchend",t,!1)},copyToClipboard:function(e){var t=document.createElement("textarea");t.value=e,w(t,"readonly",""),A(t,"position","absolute"),A(t,"left","-9999px"),document.body.appendChild(t);var r=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);t.select(),document.execCommand("copy"),document.body.removeChild(t),r&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r))},checkImageSize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Se,r=t.enabledMaxSize,n=t.enabledNatural,o=t.ratio,i=arguments.length>2?arguments[2]:void 0;return new Promise((t,a)=>{if(e instanceof File){var u=new FileReader;u.onload=()=>{c(u.result)},u.readAsDataURL(e)}else l(e)&&c(e);function c(e){var u=new Image;u.src=e,u.onload=()=>{var e=u.width/o,a=u.height/o;if(r){var c=Math.min(e,375);a*=c/e,e=c}n&&(e=u.naturalWidth/o,a=u.naturalHeight/o),t({width:e>>=0,height:a>>=0}),i&&i(null,{width:e,height:a})},u.onerror=e=>{a(e),i&&i(e)}}})},imageOptimization:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.9,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.maxWidth,o=void 0===n?1920:n,i=r.mimeType;return new Promise((r,n)=>{if(e instanceof File){var a=new FileReader;a.onload=function(){u(this.result)},a.readAsDataURL(e)}else l(e)&&u(e);function u(a){var u=a.match(/data:([^;,]+)/);if(Array.isArray(u)){if("image/gif"===(i||u[1]))return r(e);var c=new Image;c.src=a,c.onload=function(){var e=this.naturalWidth,n=this.naturalHeight;e>o&&(n=Math.round(o*n/e),e=o);var a=document.createElement("canvas");a.width=e,a.height=n,a.getContext("2d").drawImage(this,0,0,e,n),a.toBlob(e=>{r(e)},i||u[1],t)}}else n(new Error("Non-picture type Data URLs"))}})},toDataUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe,r=t.enabledType,n=arguments.length>2?arguments[2]:void 0;return new Promise((t,o)=>{try{var i=new XMLHttpRequest;i.onload=()=>{var e=new FileReader;e.onloadend=()=>{if(r){var o=new Image;o.crossOrigin="Anonymous",o.src=e.result,o.onload=()=>{t(o),n&&n(null,o)}}else t(e.result),n&&n(e.result)},e.readAsDataURL(i.response)},i.open("GET",e,!0),i.responseType="blob",i.send()}catch(e){o(e)}})},clone:je,deepClone:je,values:function(e){var t=[];if(M(e))return e.slice(0);if(L(e)||f(e)){for(var r=Object.keys(e),n=r.length,o=0;o<n;o++)t.push(e[r[o]]);return t}throw new Error("argument to `values` must be an object")},entries:function(e){if(!L(e)&&!f(e)||null===e)throw new Error("argument to `entries` must be an object");var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push([r,e[r]]);return t},extend:function e(){var t=[].slice.call(arguments),r=!1;Ee(t[0])&&(r=t.shift());var n=t[0];if(Ie(n))throw new Error("extendee must be an object");for(var o=t.slice(1),i=o.length,a=0;a<i;a++){var u=o[a];for(var c in u)if(u.hasOwnProperty(c)){var s=u[c];if(r&&Ae(s)){var l=M(s)?[]:{};n[c]=e(!0,n.hasOwnProperty(c)&&!Ie(n[c])?n[c]:l,s)}else n[c]=s}}return n},flush:function(e){var t,r,n;if(e){if(M(e)){for(t=[],r=e.length,n=0;n<r;n++){var o=e[n];null!=o&&t.push(o)}return t}if(L(e)){t={};var i=Object.keys(e);for(r=i.length,n=0;n<r;n++){var a=i[n],u=e[a];null!=u&&(t[a]=u)}return t}}},search:function(e,t,r){var n=!!r,o="";for(o in t)if(E(t,o)&&(n&&t[o]===e||!n&&t[o]==e))return o;return!1},size:_,getTag:s,is:D,isObject:L,isDate:$,isArray:M,isString:l,isBoolean:Ee,isNumber:ae,isMap:T,isSet:P,isSymbol:Me,isFunction:f,isEmpty:Q,isNil:Te,isShallowEqual:B,isEqual:B,has:function(e,t){return null!=e&&E(e,t)},reduce:function(e,t){var r=[o],n=2 in arguments;function o(r,o,i,a){return n||(r=e[a[0]],n=!0),t(r,o,e[o],i,a)}return n&&r.push(arguments[2]),Array.prototype.reduce.apply(Object.keys(e),r)},forEach:U,each:U,map:Pe,mapValues:function(e,t){for(var r={},n=Object.keys(e),o=n.length,i=0;i<o;i++){var a=n[i];r[a]=t(e[a],a,e)}return r},findIndex:W,find:function(e,t){var r=void 0;return U(e,(e,n,o)=>{if(f(t)){if(!0===t(e,n,o))return r=e,!1}else{if(D(e,t))return r=e,!1;if(L(e)&&L(t)){var i=!0;if(U(t,(t,r)=>i=B(e[r],t)),i)return r=e,!1}}}),r},toPath:function(e){return M(e)?Pe(e,Ne):Me(e)?[e]:je((t=String(e),r=[],t.charCodeAt(0)===_e&&r.push(""),t.replace(Re,(e,t,n,o)=>{var i=e;n?i=o.replace(ke,"$1"):t&&(i=t.trim()),r.push(i)}),r));var t,r},get:function(e,t,r){if(!e)return r;var n,o;if(Array.isArray(t)&&(n=t.slice(0)),l(t)&&(n=t.split(".")),Me(t)&&(n=[t]),!M(n))throw new Error("props arg must be an array, a string or a symbol");for(;n.length;){if(o=n.shift(),!e)return r;if(void 0===(e=e[o]))return r}return e},set:function(e,t,r){l(t)&&(t=t.split(".")),Me(t)&&(t=[t]);var n,o=t.pop();if(!o)return!1;for(;n=t.shift();)if(void 0===e[n]&&(e[n]={}),!(e=e[n])||!L(e))return!1;return e[o]=r,!0},debounce:function(e,t,r){var n;return function(){if(!t)return e.apply(this,arguments);var o=this,i=arguments,a=r&&!n;return clearTimeout(n),n=setTimeout((function(){if(n=null,!a)return e.apply(o,i)}),t),a?e.apply(this,arguments):void 0}},throttle:function(e,t,r){var n=!1,o=!1;return function(){o=r&&!n;var i=this,a=arguments;if(n||(n=!0,setTimeout((function(){if(n=!1,!r)return e.apply(i,a)}),t)),o)return o=!1,e.apply(this,arguments)}},pick:function(e,t){var r={};l(t)&&(t=[].slice.call(arguments,1));for(var n=t.length,o=0;o<n;o++){var i=t[o];i in e&&(r[i]=e[i])}return r},omit:function(e,t){var r={};for(var n in l(t)&&(t=[].slice.call(arguments,1)),e)e.hasOwnProperty&&!e.hasOwnProperty(n)||-1===t.indexOf(n)&&(r[n]=e[n]);return r},trim:function(e){return Q(e)?e:e.replace(/(^\s*)|(\s*$)/g,"")},fillZero:function(e,t){return(new Array(t).join("0")+e).slice(-t)},longUnique:function(e){for(var t={},r=0;r<e.length;r++)t[e[r]]||(t[e[r]]=-1);for(var n="",o=0;o<e.length;o++)t[e[o]]&&(t[e[o]]=0,n+=e[o]);return n},stripTags:function(e){return e.replace(/<script[^>]*>(\S\s*?)<\/script>/gim,"").replace(/<[^>]+>/g,"")},capitalize:function(e){return String(e).charAt(0).toUpperCase()+String(e).slice(1).toLowerCase()},deCapitalize:function(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Te(e)?t:l(e)?e:String(e)}(e);return""===t?"":t.substr(0,1).toLowerCase()+t.substr(1)},isAbsoluteURL:e=>/^[a-z][a-z0-9+.-]*:/.test(e),mapString:(e,t)=>e.split("").map((r,n)=>t(r,n,e)).join(""),mask:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"*";return(""+e).slice(-t).padStart((""+e).length,r)},splitLines:function(e){return e.split(/\r?\n/)},camelize:function(e){return e.indexOf("-")<0&&e.indexOf("_")<0?e:e.replace(/[-_][^-_]/g,(function(e){return e.charAt(1).toUpperCase()}))},underscored:Le,dasherize:function(e){return Le(String(e)).replace(/_/g,"-")},truncate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=_(e);return r>t?e.slice(0,t>3?t-3:t)+"...":e},byteSize:function(e){return new Blob([e]).size},byteLen:function(e,t){var r,n=0;if("utf-8"===t||"utf8"===t)for(var o=0,i=e.length;o<i;o++)(r=e.codePointAt(o))<=127?n+=1:r<=2047?n+=2:r<=65535?n+=3:(n+=4,o++);else if("utf-16"===t||"utf16"===t)for(var a=0,u=e.length;a<u;a++)(r=e.codePointAt(a))<=65535?n+=2:(n+=4,a++);else n=e.replace(/[^\x00-\xff]/g,"aa").length;return n},repeat:function(e,t){for(var r=String(e),n="";t>0&&(t%2==1&&(n+=r),1!==t);)r+=r,t>>=1;return n},endsWith:function(e,t,r){var n=e.slice(-t.length);return r?n.toLowerCase()===t.toLowerCase():n===t},startsWith:function(e,t,r){var n=String(e).slice(0,t.length);return r?n.toLowerCase()===t.toLowerCase():n===t},containsWith:se,xssFilter:function(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},effortIndex:function(e,t){return String(e).indexOf(t)},capwords:function(e){return String(e).replace(/^([a-z\u00E0-\u00FC])|\s+([a-z\u00E0-\u00FC])/g,(function(e){return e.toUpperCase()}))},unique:e=>n(new Set(e)),uniqueBy:(e,t)=>e.reduce((e,r)=>(e.some(e=>t(r,e))||e.push(r),e),[]),uniqueFrom:function(t,r){return Object.values(t.reduce((t,n)=>e(t,{[n[r]]:n}),{}))},random:e=>e[Math.floor(Math.random()*e.length)],randomSize:function(e){for(var t=r(e),n=t.slice(0),o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=n.length;i;){var a=Math.floor(Math.random()*i--),u=[n[a],n[i]];n[i]=u[0],n[a]=u[1]}return n.slice(0,o)},shuffle:function(e){for(var t=r(e).slice(0),n=t.length;n;){var o=Math.floor(Math.random()*n--),i=[t[o],t[n]];t[n]=i[0],t[o]=i[1]}return t},contains:function(e,t){return e.indexOf(t)>-1},copyArray:function(e,t){var r=-1,n=e.length;for(t||(t=new Array(n));++r<n;)t[r]=e[r];return t},includesAll:(e,t)=>t.every(t=>e.includes(t)),includesAny:(e,t)=>t.some(t=>e.includes(t)),removeAt:function(e,t){return!!e.splice(t,1).length},remove:function(e,t){if(!M(e)||!M(t))throw new Error("expected both arguments to be arrays");for(var r=[],n=e.length,o=0;o<n;o++){var i=e[o];-1===t.indexOf(i)&&r.push(i)}return r},compact:function(e){if(!M(e))throw new Error("expected an array");for(var t=[],r=e.length,n=0;n<r;n++){var o=e[n];o&&t.push(o)}return t},pluck:function(e,t){var r,n=[];return e.forEach((function(e){e[t]&&(r=e[t],n.push(r))})),n},union:(e,t)=>Array.from(new Set([].concat(n(e),n(t)))),unionBy:(e,t,r)=>{var o=new Set(e.map(r));return Array.from(new Set([].concat(n(e),n(t.filter(e=>!o.has(r(e)))))))},unionWith:(e,t,r)=>Array.from(new Set([].concat(n(e),n(t.filter(t=>-1===e.findIndex(e=>r(t,e))))))),intersect:function(e,t){var r=new Set(t);return e.filter(e=>r.has(e))},intersectBy:function(e,t,r){var n=new Set(t.map(r));return e.filter(e=>n.has(r(e)))},difference:function(e,t){var r=new Set(t);return e.filter(e=>!r.has(e))},differenceBy:function(e,t,r){var n=new Set(t.map(r));return e.map(r).filter(e=>!n.has(e))},max:function(e){return Math.max.apply(0,e)},min:function(e){return Math.min.apply(0,e)},equal:function(e,t){var r=_(e);if(r!==_(t))return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0},allEqual:e=>e.every(t=>t===e[0]),all:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Boolean;return e.every(t)},any:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Boolean;return e.some(t)},chunk:(e,t)=>Array.from({length:Math.ceil(e.length/t)},(r,n)=>e.slice(n*t,n*t+t)),countBy:(e,t)=>e.map(f(t)?t:e=>e[t]).reduce((e,t)=>(e[t]=(e[t]||0)+1,e),{}),countOccurrences:(e,t)=>e.reduce((e,r)=>r===t?e+1:e,0),drop:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.slice(t)},dropRight:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.slice(0,-t)},dropWhile:function(e,t){for(var r=e;r.length>0&&!t(r[0]);)r=r.slice(1);return r},dropRightWhile:function(e,t){for(var r=_(e);r--&&!t(e[r]););return e.slice(0,r+1)},column:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null!==t&&(L(t)||M(t))){var o=[];if(L(t)){var i=[];for(var a of Object.keys(t))i.push(t[a]);t=i}if(M(t))for(var u of t.keys())n&&t[u][n]?o[t[u][n]]=r?t[u][r]:t[u]:r?o.push(t[u][r]):o.push(t[u]);return e({},o)}throw new Error("throw an error")},split:function(e,t){if(!M(e))throw new Error("expected an array for the first argument");if(null!==t&&!ae(t))throw new Error("expected a number or null for the second argument");t=null!==t?t:e.length;for(var r=e.length,n=[],o=0;o<r;o+=t)n.push(e.slice(o,o+t));return n},unary:e=>t=>e(t),indexBy:function(e,t){if(!M(e))throw new Error("expected an array for first argument");if(!l(t))throw new Error("expected a string for second argument");for(var r={},n=e.length,o=0;o<n;o++){var i=e[o]&&e[o][t];i&&(r[i]=e[o])}return r}};function De(e,t){this._wrappedValue=e,this._explicitChain=t}function $e(e){return new De(e,!1)}return De.prototype.value=function(){return this._wrappedValue},De.prototype.valueOf=function(){return this.value()},De.prototype.toJSON=function(){return this.value()},De.prototype.toString=function(){return String(this.value())},De.prototype.chain=function(){return new De(this._wrappedValue,!0)},De.prototype.thru=function(e){return f(e)?new De(e(this._wrappedValue),this._explicitChain):this},De.prototype._explicitChain=!0,Object.keys(Ue).forEach((function(e){var t;De.prototype[e]=(t=Ue[e],function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var o=t.apply(void 0,[this._wrappedValue].concat(r));return this._explicitChain||l(o)?new De(o,this._explicitChain):o})})),e($e,Ue,{chain:function(e){return new De(e,!0)}}),$e}));
//# sourceMappingURL=bbo.min.js.map