seeddms-code/styles/bootstrap/cytoscape/cytoscape.min.js

24 lines
322 KiB
JavaScript
Raw Normal View History

2019-01-15 12:56:31 +00:00
/**
* Copyright (c) 2016-2019, The Cytoscape Consortium.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the Software), to deal in
* the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
* of the Software, and to permit persons to whom the Software is furnished to do
* so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
2016-08-31 06:44:45 +00:00
2019-01-15 12:56:31 +00:00
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.cytoscape=t()}(this,function(){"use strict";function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var w="undefined"==typeof window?null:window,k=w?w.navigator:null,n=(w&&w.document,E("")),a=E({}),o=E(function(){}),l="undefined"==typeof HTMLElement?"undefined":E(HTMLElement),u=function(e){return e&&e.instanceString&&X(e.instanceString)?e.instanceString():null},K=function(e){return null!=e&&E(e)==n},X=function(e){return null!=e&&E(e)===o},G=function(e){return Array.isArray?Array.isArray(e):null!=e&&e instanceof Array},B=function(e){return null!=e&&E(e)===a&&!G(e)&&e.constructor===Object},$t=function(e){return null!=e&&E(e)===E(1)&&!isNaN(e)},c=function(e){return"undefined"===l?void 0:null!=e&&e instanceof HTMLElement},Z=function(e){return v(e)||h(e)},v=function(e){return"collection"===u(e)&&e._private.single},h=function(e){return"collection"===u(e)&&!e._private.single},y=function(e){return"core"===u(e)},d=function(e){return"stylesheet"===u(e)},L=function(e){return null==e||!(""!==e&&!e.match(/^\s+$/))},p=function(e){return null!=(t=e)&&E(t)===a&&X(e.then);var t},m=function(a,o){o||(o=function(){if(1===arguments.length)return arguments[0];if(0===arguments.length)return"undefined";for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);return e.join("$")});var e=function e(){var t,n=arguments,r=o.apply(this,n),i=e.cache;return(t=i[r])||(t=i[r]=a.apply(this,n)),t};return e.cache={},e},j=m(function(e){return e.replace(/([A-Z])/g,function(e){return"-"+e.toLowerCase()})}),C=m(function(e){return e.replace(/(-\w)/g,function(e){return e[1].toUpperCase()})}),f=m(function(e,t){return e+t[0].toUpperCase()+t.substring(1)},function(e,t){return e+"$"+t}),e=function(e){return L(e)?e:e.charAt(0).toUpperCase()+e.substring(1)},W="(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))",U=function(e,t){return e<t?-1:t<e?1:0},S=null!=Object.assign?Object.assign.bind(Object):function(e){for(var t=arguments,n=1;n<t.length;n++){var r=t[n];if(null!=r)for(var i=Object.keys(r),a=0;a<i.length;a++){var o=i[a];e[o]=r[o]}}return e},H=function(e){return(G(e)?e:null)||g[e.toLowerCase()]||function(e){if((4===e.length||7===e.length)&&"#"===e[0]){var t,n,r;return r=4===e.length?(t=parseInt(e[1]+e[1],16),n=parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)):(t=parseInt(e[1]+e[2],16),n=parseInt(e[3]+e[4],16),parseInt(e[5]+e[6],16)),[t,n,r]}}(e)||function(e){var t,n=new RegExp("^rgb[a]?\\(((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))[%]?)(?:\\s*,\\s*((?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))))?\\)$").exec(e);if(n){t=[];for(var r=[],i=1;i<=3;i++){var a=n[i];if("%"===a[a.length-1]&&(r[i]=!0),a=parseFloat(a),r[i]&&(a=a/100*255),a<0||255<a)return;t.push(Math.floor(a))}var o=r[1]||r[2]||r[3],s=r[1]&&r[2]&&r[3];if(o&&!s)return;var l=n[4];if(void 0!==l){if((l=parseFloat(l))<0||1<l)return;t.push(l)}}return t}(e)||function(e){var t,n,r,i,a,o,s,l;function u(e,t,n){return n<0&&(n+=1),1<n&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5