!function(t,e){"function"==typeofdefine&&define.amd?define([],e):"object"==typeofexports?module.exports=e():t.Tether=e()}(this,function(){"use strict";functiont(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functione(t){varo=t.getBoundingClientRect(),i={};for(varnino)i[n]=o[n];try{if(t.ownerDocument!==document){varr=t.ownerDocument.defaultView.frameElement;if(r){vars=e(r);i.top+=s.top,i.bottom+=s.top,i.left+=s.left,i.right+=s.left}}}catch(a){}returni}functiono(t){vare=getComputedStyle(t)||{},o=e.position,i=[];if("fixed"===o)return[t];for(varn=t;(n=n.parentNode)&&n&&1===n.nodeType;){varr=void0;try{r=getComputedStyle(n)}catch(s){}if("undefined"==typeofr||null===r)returni.push(n),i;vara=r,f=a.overflow,l=a.overflowX,h=a.overflowY;/(auto|scroll|overlay)/.test(f+h+l)&&("absolute"!==o||["relative","absolute","fixed"].indexOf(r.position)>=0)&&i.push(n)}returni.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}functioni(){O&&document.body.removeChild(O),O=null}functionn(t){varo=void0;t===document?(o=document,t=document.documentElement):o=t.ownerDocument;vari=o.documentElement,n=e(t),r=A();returnn.top-=r.top,n.left-=r.left,"undefined"==typeofn.width&&(n.width=document.body.scrollWidth-n.left-n.right),"undefined"==typeofn.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-i.clientTop,n.left=n.left-i.clientLeft,n.right=o.body.clientWidth-n.width-n.left,n.bottom=o.body.clientHeight-n.height-n.top,n}functionr(t){returnt.offsetParent||document.documentElement}functions(){if(T)returnT;vart=document.createElement("div");t.style.width="100%",t.style.height="200px";vare=document.createElement("div");a(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);varo=t.offsetWidth;e.style.overflow="scroll";vari=t.offsetWidth;o===i&&(i=e.clientWidth),document.body.removeChild(e);varn=o-i;returnT={width:n,height:n}}functiona(){vart=arguments.length<=0||void0===arguments[0]?{}:arguments[0],e=[];returnArray.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(varoine)({}).hasOwnProperty.call(e,o)&&(t[o]=e[o])}),t}functionf(t,e){if("undefined"!=typeoft.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{varo=newRegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=d(t).replace(o," ");u(t,i)}}functionl(t,e){if("undefined"!=typeoft.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{f(t,e);varo=d(t)+(" "+e);u(t,o)}}functionh(t,e){if("undefined"!=typeoft.classList)returnt.classList.contains(e);varo=d(t);returnnewRegExp("(^| )"+e+"( |$)","gi").test(o)}functiond(t){returnt.classNameinstanceoft.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}functionu(t,e){t.setAttribute("class",e)}functionp(t,e,o){o.forEach(function(o){e.indexOf(o)===-1&&h(t,o)&&f(t,o)}),e.forEach(function(e){h(t,e)||l(t,e)})}functiont(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functionc(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function, not "+typeofe);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}functiong(t,e){varo=arguments.length<=2||void0===arguments[2]?1:arguments[2];returnt+o>=e&&e>=t-o}functionm(){return"object"==typeofperformance&&"function"==typeofperformance.now?performance.now():+newDate}functionv(){for(vart={top:0,left:0},e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];returno.forEach(function(e){varo=e.top,i=e.left;"string"==typeofo&&(o=parseFloat(o,10)),"string"==typeofi&&(i=parseFloat(i,10)),t.top+=o,t.left+=i}),t}functiony(t,e){return"string"==typeoft.left&&t.left.indexOf("%")!==-1&&(t.left=parseFloat(t.left,10)/100*e.width),"s