2017-04-14 13:30:55 +02:00
|
|
|
var _Mathfloor=Math.floor,_Mathmin=Math.min,_Mathround=Math.round,_Mathmax=Math.max,_typeof='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};(function(e,t){'object'===('undefined'==typeof exports?'undefined':_typeof(exports))&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(ye,we){if(1!==ye.nodeType)return[];var xe=window.getComputedStyle(ye,null);return we?xe[we]:xe}function t(ye){return'HTML'===ye.nodeName?ye:ye.parentNode||ye.host}function o(ye){if(!ye||-1!==['HTML','BODY','#document'].indexOf(ye.nodeName))return window.document.body;var we=e(ye),xe=we.overflow,ve=we.overflowX,Oe=we.overflowY;return /(auto|scroll)/.test(xe+Oe+ve)?ye:o(t(ye))}function r(ye){return'HTML'===ye.nodeName||ye.firstElementChild.offsetParent===ye}function s(ye){return null===ye.parentNode?ye:s(ye.parentNode)}function p(ye){var we=ye&&ye.offsetParent,xe=we&&we.nodeName;return xe&&'BODY'!==xe&&'HTML'!==xe?we:window.document.documentElement}function f(ye,we){if(!ye||!ye.nodeType||!we||!we.nodeType)return window.document.documentElement;var xe=ye.compareDocumentPosition(we)&Node.DOCUMENT_POSITION_FOLLOWING,ve=xe?ye:we,Oe=xe?we:ye,Ee=document.createRange();Ee.setStart(ve,0),Ee.setEnd(Oe,0);var Se=Ee.commonAncestorContainer;if(ye!==Se&&we!==Se)return r(Se)?Se:p(Se);var Le=s(ye);return Le.host?f(Le.host,we):f(ye,s(we).host)}function d(ye){var we=1<arguments.length&&void 0!==arguments[1]?arguments[1]:'top',xe='top'===we?'scrollTop':'scrollLeft',ve=ye.nodeName;if('BODY'===ve||'HTML'===ve){var Oe=window.document.documentElement,Ee=window.document.scrollingElement||Oe;return Ee[xe]}return ye[xe]}function l(ye,we){var xe=2<arguments.length&&void 0!==arguments[2]&&arguments[2],ve=d(we,'top'),Oe=d(we,'left'),Ee=xe?-1:1;return ye.top+=ve*Ee,ye.bottom+=ve*Ee,ye.left+=Oe*Ee,ye.right+=Oe*Ee,ye}function m(ye,we){var xe='x'===we?'Left':'Top',ve='Left'==xe?'Right':'Bottom';return+ye['border'+xe+'Width'].split('px')[0]+ +ye['border'+ve+'Width'].split('px')[0]}function c(){var ye=window.document.body,we=window.document.documentElement;return{height:_Mathmax(ye.scrollHeight,ye.offsetHeight,we.clientHeight,we.scrollHeight,we.offsetHeight),width:_Mathmax(ye.scrollWidth,ye.offsetWidth,we.clientWidth,we.scrollWidth,we.offsetWidth)}}function h(ye){return re({},ye,{right:ye.left+ye.width,bottom:ye.top+ye.height})}function u(ye){var we=-1!==navigator.appVersion.indexOf('MSIE 10'),xe={};if(we){try{xe=ye.getBoundingClientRect()}catch(He){}var ve=d(ye,'top'),Oe=d(ye,'left');xe.top+=ve,xe.left+=Oe}else xe=ye.getBoundingClientRect();var Se,Le,Ee={left:xe.left,top:xe.top,width:xe.right-xe.left,height:xe.bottom-xe.top};if('HTML'===ye.nodeName){var Ne=c();Se=Ne.width,Le=Ne.height}else Se=ye.clientWidth||Ee.right-Ee.left,Le=ye.clientHeight||Ee.bottom-Ee.top;var Te=ye.offsetWidth-Se,Pe=ye.offsetHeight-Le;if(Te||Pe){var We=e(ye);Te-=m(We,'x'),Pe-=m(We,'y'),Ee.width-=Te,Ee.height-=Pe}return h(Ee)}function g(ye,we){var xe=-1!==navigator.appVersion.indexOf('MSIE 10'),ve=u(ye),Oe=u(we),Ee=o(ye),Se={top:ve.top-Oe.top,left:ve.left-Oe.left,bottom:ve.top-Oe.top+ve.height,right:ve.left-Oe.left+ve.width,width:ve.width,height:ve.height},Le='HTML'===we.nodeName;if(Le||'BODY'===we.nodeName){var Ne=e(we),Te=xe&&Le?0:+Ne.borderTopWidth.split('px')[0],Pe=xe&&Le?0:+Ne.borderLeftWidth.split('px')[0],We=xe&&Le?0:+Ne.marginTop.split('px')[0],He=xe&&Le?0:+Ne.marginLeft.split('px')[0];Se.top-=Te-We,Se.bottom-=Te-We,Se.left-=Pe-He,Se.right-=Pe-He,Se.marginTop=We,Se.marginLeft=He}return we.contains(Ee)&&(xe||'BODY'!==Ee.nodeName)&&(Se=l(Se,we)),Se}function w(ye){var we=window.document.documentElement,xe=g(ye,we),ve=_Mathmax(we.clientWidth,window.innerWidth||0),Oe=_Mathmax(we.clientHeight,window.innerHeight||0),Ee=d(we),Se=d(we,'left'),Le={top:Ee-xe.top+xe.marginTop,left:Se-xe.left+xe.marginLeft,width:ve,height:Oe};return h(Le)}function v(ye){var we=ye.nodeN
|