0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-04 16:24:22 +01:00
Bootstrap/docs/assets/js/vendor/popper.min.js

3 lines
18 KiB
JavaScript
Raw Normal View History

var _Mathfloor=Math.floor,_Mathmin=Math.min,_Mathround=Math.round,_Mathmax=Math.max;(function(c,d){'object'==typeof exports&&'undefined'!=typeof module?module.exports=d():'function'==typeof define&&define.amd?define(d):c.Popper=d()})(this,function(){'use strict';function e(wa){return''!==wa&&!isNaN(parseFloat(wa))&&isFinite(wa)}function f(wa,xa){Object.keys(xa).forEach(function(ya){var za='';-1!==['width','height','top','right','bottom','left'].indexOf(ya)&&e(xa[ya])&&(za='px'),wa.style[ya]=xa[ya]+za})}function g(wa){for(var xa=[!1,'ms','webkit','moz','o'],ya=wa.charAt(0).toUpperCase()+wa.slice(1),za=0;za<xa.length-1;za++){var Aa=xa[za],Ba=Aa?''+Aa+ya:wa;if('undefined'!=typeof window.document.body.style[Ba])return Ba}return null}function h(wa){var xa=wa.nodeName;return'BODY'!==xa&&('HTML'===xa||wa.firstElementChild.offsetParent===wa)}function j(wa){return null===wa.parentNode?wa:j(wa.parentNode)}function k(wa){var xa=wa&&wa.offsetParent,ya=xa&&xa.nodeName;return ya&&'BODY'!==ya&&'HTML'!==ya?xa:window.document.documentElement}function l(wa,xa){if(!wa||!wa.nodeType||!xa||!xa.nodeType)return window.document.documentElement;var ya=wa.compareDocumentPosition(xa)&Node.DOCUMENT_POSITION_FOLLOWING,za=ya?wa:xa,Aa=ya?xa:wa,Ba=document.createRange();Ba.setStart(za,0),Ba.setEnd(Aa,0);var Ca=Ba.commonAncestorContainer;if(wa!==Ca&&xa!==Ca)return h(Ca)?Ca:k(Ca);var Da=j(wa);return Da.host?l(Da.host,xa):l(wa,j(xa).host)}function m(wa,xa){if(1!==wa.nodeType)return[];var ya=window.getComputedStyle(wa,null);return xa?ya[xa]:ya}function o(wa){var xa=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',ya='top'===xa?'scrollTop':'scrollLeft',za=wa.nodeName;if('BODY'===za||'HTML'===za){var Aa=window.document.documentElement,Ba=window.document.scrollingElement||Aa;return Ba[ya]}return wa[ya]}function p(wa,xa){var ya=2<arguments.length&&void 0!==arguments[2]&&arguments[2],za=o(xa,'top'),Aa=o(xa,'left'),Ba=ya?-1:1;return wa.top+=za*Ba,wa.bottom+=za*Ba,wa.left+=Aa*Ba,wa.right+=Aa*Ba,wa}function q(wa){return'HTML'===wa.nodeName?wa:wa.parentNode||wa.host}function r(wa){if(!wa||-1!==['HTML','BODY','#document'].indexOf(wa.nodeName))return window.document.body;var xa=m(wa),ya=xa.overflow,za=xa.overflowX,Aa=xa.overflowY;return /(auto|scroll)/.test(ya+Aa+za)?wa:r(q(wa))}function s(wa,xa){var ya='x'===xa?'Left':'Top',za='Left'==ya?'Right':'Bottom';return+wa['border'+ya+'Width'].split('px')[0]+ +wa['border'+za+'Width'].split('px')[0]}function t(){var wa=window.document.body,xa=window.document.documentElement;return{height:_Mathmax(wa.scrollHeight,wa.offsetHeight,xa.clientHeight,xa.scrollHeight,xa.offsetHeight),width:_Mathmax(wa.scrollWidth,wa.offsetWidth,xa.clientWidth,xa.scrollWidth,xa.offsetWidth)}}function u(wa){return ma({},wa,{right:wa.left+wa.width,bottom:wa.top+wa.height})}function v(wa){var xa={};if(oa){try{xa=wa.getBoundingClientRect()}catch(Ha){}var ya=o(wa,'top'),za=o(wa,'left');xa.top+=ya,xa.left+=za}else xa=wa.getBoundingClientRect();var Aa={left:xa.left,top:xa.top,width:xa.right-xa.left,height:xa.bottom-xa.top},Ba='HTML'===wa.nodeName?t():{},Ca=Ba.width||wa.clientWidth||Aa.right-Aa.left,Da=Ba.height||wa.clientHeight||Aa.bottom-Aa.top,Ea=wa.offsetWidth-Ca,Fa=wa.offsetHeight-Da;if(Ea||Fa){var Ga=m(wa);Ea-=s(Ga,'x'),Fa-=s(Ga,'y'),Aa.width-=Ea,Aa.height-=Fa}return u(Aa)}function w(wa,xa){var ya='HTML'===xa.nodeName,za=v(wa),Aa=v(xa),Ba=r(wa),Ca=u({top:za.top-Aa.top,left:za.left-Aa.left,width:za.width,height:za.height});if(ya||'BODY'===xa.nodeName){var Da=m(xa),Ea=pa&&ya?0:+Da.borderTopWidth.split('px')[0],Fa=pa&&ya?0:+Da.borderLeftWidth.split('px')[0],Ga=pa&&ya?0:+Da.marginTop.split('px')[0],Ha=pa&&ya?0:+Da.marginLeft.split('px')[0];Ca.top-=Ea-Ga,Ca.bottom-=Ea-Ga,Ca.left-=Fa-Ha,Ca.right-=Fa-Ha,Ca.marginTop=Ga,Ca.marginLeft=Ha}return xa.contains(Ba)&&(pa||'BODY'!==Ba.nodeName)&&(Ca=p(Ca,xa)),Ca}function z(wa,xa,ya){var za=l(xa,ya);return w(ya,za)}function A(wa){var xa=window.getComputedStyle(wa),ya=parseFloat(xa.marginTop)+parseFloat(xa.marginBottom),za=parseFloat(xa.marginLeft)+parseFloat(xa.marginRight),Aa={width:wa.offsetWidth+za,heigh
2017-04-06 23:16:07 +02:00
//# sourceMappingURL=popper.es5.min.js.map