vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
34 KiB

  1. /*!
  2. * https://github.com/paulmillr/es6-shim
  3. * @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com)
  4. * and contributors, MIT License
  5. * es6-shim: v0.25.3
  6. * see https://github.com/paulmillr/es6-shim/blob/0.25.3/LICENSE
  7. * Details and documentation:
  8. * https://github.com/paulmillr/es6-shim/
  9. */
  10. (function(e,t){if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){"use strict";var e=function(e){try{e()}catch(t){return false}return true};var t=function(e,t){try{var r=function(){e.apply(this,arguments)};if(!r.__proto__){return false}Object.setPrototypeOf(r,e);r.prototype=Object.create(e.prototype,{constructor:{value:e}});return t(r)}catch(n){return false}};var r=function(){try{Object.defineProperty({},"x",{});return true}catch(e){return false}};var n=function(){var e=false;if(String.prototype.startsWith){try{"/a/".startsWith(/a/)}catch(t){e=true}}return e};var i=new Function("return this;");var o=i();var a=o.isFinite;var u=!!Object.defineProperty&&r();var s=n();var f=Function.call.bind(String.prototype.indexOf);var c=Function.call.bind(Object.prototype.toString);var l=Function.call.bind(Object.prototype.hasOwnProperty);var h;var p=function(){};var v=o.Symbol||{};var y=v.species||"@@species";var b={string:function(e){return c(e)==="[object String]"},regex:function(e){return c(e)==="[object RegExp]"},symbol:function(e){return typeof o.Symbol==="function"&&typeof e==="symbol"}};var g=function(e,t,r,n){if(!n&&t in e){return}if(u){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var d={getter:function(e,t,r){if(!u){throw new TypeError("getters require true ES5 support")}Object.defineProperty(e,t,{configurable:true,enumerable:false,get:r})},proxy:function(e,t,r){if(!u){throw new TypeError("getters require true ES5 support")}var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,{configurable:n.configurable,enumerable:n.enumerable,get:function i(){return e[t]},set:function o(r){e[t]=r}})},redefine:function(e,t,r){if(u){var n=Object.getOwnPropertyDescriptor(e,t);n.value=r;Object.defineProperty(e,t,n)}else{e[t]=r}}};var m=function(e,t){Object.keys(t).forEach(function(r){var n=t[r];g(e,r,n,false)})};var w=Object.create||function(e,t){function r(){}r.prototype=e;var n=new r;if(typeof t!=="undefined"){m(n,t)}return n};var O=b.symbol(v.iterator)?v.iterator:"_es6-shim iterator_";if(o.Set&&typeof(new o.Set)["@@iterator"]==="function"){O="@@iterator"}var j=function(e,t){if(!t){t=function n(){return this}}var r={};r[O]=t;m(e,r);if(!e[O]&&b.symbol(O)){e[O]=t}};var I=function Ot(e){var t=c(e);var r=t==="[object Arguments]";if(!r){r=t!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&c(e.callee)==="[object Function]"}return r};var T=Function.call.bind(Function.apply);var M={Call:function jt(e,t){var r=arguments.length>2?arguments[2]:[];if(!M.IsCallable(e)){throw new TypeError(e+" is not a function")}return T(e,t,r)},RequireObjectCoercible:function(e,t){if(e==null){throw new TypeError(t||"Cannot call method on "+e)}},TypeIsObject:function(e){return e!=null&&Object(e)===e},ToObject:function(e,t){M.RequireObjectCoercible(e,t);return Object(e)},IsCallable:function(e){return typeof e==="function"&&c(e)==="[object Function]"},ToInt32:function(e){return M.ToNumber(e)>>0},ToUint32:function(e){return M.ToNumber(e)>>>0},ToNumber:function(e){if(c(e)==="[object Symbol]"){throw new TypeError("Cannot convert a Symbol value to a number")}return+e},ToInteger:function(e){var t=M.ToNumber(e);if(Number.isNaN(t)){return 0}if(t===0||!Number.isFinite(t)){return t}return(t>0?1:-1)*Math.floor(Math.abs(t))},ToLength:function(e){var t=M.ToInteger(e);if(t<=0){return 0}if(t>Number.MAX_SAFE_INTEGER){return Number.MAX_SAFE_INTEGER}return t},SameValue:function(e,t){if(e===t){if(e===0){return 1/e===1/t}return true}return Number.isNaN(e)&&Number.isNaN(t)},SameValueZero:function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)},IsIterable:function(e){return M.TypeIsObject(e)&&(typeof e[O]!=="undefined"||I(e))},GetIterator:function(e){if(I(e)){return new h(e,"value")}var t=e[O];if(!M.IsCallable(t)){throw new TypeError("value is not an iterable")}var r=t.call(e);if(!M.TypeIsObject(r)){throw new TypeError("bad iterator")}return r},IteratorNext:function(e){var t=argum
  11. }else{return lt.defineProperty(n,t,{value:r,writable:true,enumerable:true,configurable:true})}}if(i.set){i.set.call(n,r);return true}return false};var yt=function Kt(e){try{e()}catch(t){return false}return true};m(o.Reflect,{defineProperty:function Bt(e,t,r){ht(e);return yt(function(){Object.defineProperty(e,t,r)})},getOwnPropertyDescriptor:function Jt(e,t){ht(e);return Object.getOwnPropertyDescriptor(e,t)},get:function Qt(e,t){ht(e);var r=arguments.length>2?arguments[2]:e;return pt(e,t,r)},set:function Yt(e,t,r){ht(e);var n=arguments.length>3?arguments[3]:e;return vt(e,t,r,n)}})}if(Object.getPrototypeOf){var bt=Object.getPrototypeOf;m(o.Reflect,{getPrototypeOf:function er(e){ht(e);return bt(e)}})}if(Object.setPrototypeOf){var gt=function(e,t){while(t){if(e===t){return true}t=lt.getPrototypeOf(t)}return false};m(o.Reflect,{setPrototypeOf:function tr(e,t){ht(e);if(t!==null&&!M.TypeIsObject(t)){throw new TypeError("proto must be an object or null")}if(t===lt.getPrototypeOf(e)){return true}if(lt.isExtensible&&!lt.isExtensible(e)){return false}if(gt(e,t)){return false}Object.setPrototypeOf(e,t);return true}})}if(String(new Date(NaN))!=="Invalid Date"){var dt=Date.prototype.toString;var mt=function rr(){var e=+this;if(e!==e){return"Invalid Date"}return dt.call(this)};g(mt,"toString",dt.toString,true);g(Date.prototype,"toString",mt,true)}var wt={anchor:function nr(e){return M.CreateHTML(this,"a","name",e)},big:function ir(){return M.CreateHTML(this,"big","","")},blink:function or(){return M.CreateHTML(this,"blink","","")},bold:function ar(){return M.CreateHTML(this,"b","","")},fixed:function ur(){return M.CreateHTML(this,"tt","","")},fontcolor:function sr(e){return M.CreateHTML(this,"font","color",e)},fontsize:function fr(e){return M.CreateHTML(this,"font","size",e)},italics:function cr(){return M.CreateHTML(this,"i","","")},link:function lr(e){return M.CreateHTML(this,"a","href",e)},small:function hr(){return M.CreateHTML(this,"small","","")},strike:function pr(){return M.CreateHTML(this,"strike","","")},sub:function vr(){return M.CreateHTML(this,"sub","","")},sup:function yr(){return M.CreateHTML(this,"sup","","")}};m(String.prototype,wt);Object.keys(wt).forEach(function(e){var t=String.prototype[e];var r=false;if(M.IsCallable(t)){var n=t.call("",' " ');var i=[].concat(n.match(/"/g)).length;r=n!==n.toLowerCase()||i>2}else{r=true}if(r){g(String.prototype,e,wt[e],true)}});return o});
  12. //# sourceMappingURL=es6-shim.map