vendor: 22,881 bytes, lines 1-2
1/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 2!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}
vendor: 1,967 bytes, line 2
2return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||
vendor: 9,546 bytes, line 2
2ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||
vendor: 8,814 bytes, line 2
2(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);
vendor: 14,182 bytes, line 2
2n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;
vendor: 4,590 bytes, line 2
2return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1)
vendor: 13,972 bytes, line 2
2);!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);
vendor: 9,033 bytes, line 2
2if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return
vendor: 4,527 bytes, lines 2-47
2M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce}); 3 4/**! 5 * @fileOverview Kickass library to create and place poppers near their reference elements. 6 * @version 1.16.1 7 * @license 8 * Copyright (c) 2016 Federico Zivolo and contributors 9 * 10 * Permission is hereby granted, free of charge, to any person obtaining a copy 11 * of this software and associated documentation files (the "Software"), to deal 12 * in the Software without restriction, including without limitation the rights 13 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 * copies of the Software, and to permit persons to whom the Software is 15 * furnished to do so, subject to the following conditions: 16 * 17 * The above copyright notice and this permission notice shall be included in all 18 * copies or substantial portions of the Software. 19 * 20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 * SOFTWARE. 27 */ 28(function (global, factory) { 29 typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : 30 typeof define === 'function' && define.amd ? define(factory) : 31 (global.Popper = factory()); 32}(this, (function () { 'use strict'; 33 34var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined'; 35 36var timeoutDuration = function () { 37 var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox']; 38 for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) { 39 if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) { 40 return 1; 41 } 42 } 43 return 0; 44}(); 45 46function microtaskDebounce(fn) { 47 var called = false;
vendor: 3,141 bytes, lines 48-173
48 return function () { 49 if (called) { 50 return; 51 } 52 called = true; 53 window.Promise.resolve().then(function () { 54 called = false; 55 fn(); 56 }); 57 }; 58} 59 60function taskDebounce(fn) { 61 var scheduled = false; 62 return function () { 63 if (!scheduled) { 64 scheduled = true; 65 setTimeout(function () { 66 scheduled = false; 67 fn(); 68 }, timeoutDuration); 69 } 70 }; 71} 72 73var supportsMicroTasks = isBrowser && window.Promise; 74 75/** 76* Create a debounced version of a method, that's asynchronously deferred 77* but called in the minimum time possible. 78* 79* @method 80* @memberof Popper.Utils 81* @argument {Function} fn 82* @returns {Function} 83*/ 84var debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce; 85 86/** 87 * Check if the given variable is a function 88 * @method 89 * @memberof Popper.Utils 90 * @argument {Any} functionToCheck - variable to check 91 * @returns {Boolean} answer to: is a function? 92 */ 93function isFunction(functionToCheck) { 94 var getType = {}; 95 return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; 96} 97 98/** 99 * Get CSS computed property of the given element 100 * @method 101 * @memberof Popper.Utils 102 * @argument {Eement} element 103 * @argument {String} property 104 */ 105function getStyleComputedProperty(element, property) { 106 if (element.nodeType !== 1) { 107 return []; 108 } 109 // NOTE: 1 DOM access here 110 var window = element.ownerDocument.defaultView; 111 var css = window.getComputedStyle(element, null); 112 return property ? css[property] : css; 113} 114 115/** 116 * Returns the parentNode or the host of the element 117 * @method 118 * @memberof Popper.Utils 119 * @argument {Element} element 120 * @returns {Element} parent 121 */ 122function getParentNode(element) { 123 if (element.nodeName === 'HTML') { 124 return element; 125 } 126 return element.parentNode || element.host; 127} 128 129/** 130 * Returns the scrolling parent of the given element 131 * @method 132 * @memberof Popper.Utils 133 * @argument {Element} element 134 * @returns {Element} scroll parent 135 */ 136function getScrollParent(element) { 137 // Return body, `getScroll` will take care to get the correct `scrollTop` from it 138 if (!element) { 139 return document.body; 140 } 141 142 switch (element.nodeName) { 143 case 'HTML': 144 case 'BODY': 145 return element.ownerDocument.body; 146 case '#document': 147 return element.body; 148 } 149 150 // Firefox want us to check `-x` and `-y` variations as well 151 152 var _getStyleComputedProp = getStyleComputedProperty(element), 153 overflow = _getStyleComputedProp.overflow, 154 overflowX = _getStyleComputedProp.overflowX, 155 overflowY = _getStyleComputedProp.overflowY; 156 157 if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) { 158 return element; 159 } 160 161 return getScrollParent(getParentNode(element)); 162} 163 164/** 165 * Returns the reference node of the reference object, or the reference object itself. 166 * @method 167 * @memberof Popper.Utils 168 * @param {Element|Object} reference - the reference element (the popper will be relative to this) 169 * @returns {Element} parent 170 */ 171function getReferenceNode(reference) { 172 return reference && reference.referenceNode ? reference.referenceNode : reference; 173}
vendor: 3,047 bytes, lines 173-279
173 174 175var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode); 176var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent); 177 178/** 179 * Determines if the browser is Internet Explorer 180 * @method 181 * @memberof Popper.Utils 182 * @param {Number} version to check 183 * @returns {Boolean} isIE 184 */ 185function isIE(version) { 186 if (version === 11) { 187 return isIE11; 188 } 189 if (version === 10) { 190 return isIE10; 191 } 192 return isIE11 || isIE10; 193} 194 195/** 196 * Returns the offset parent of the given element 197 * @method 198 * @memberof Popper.Utils 199 * @argument {Element} element 200 * @returns {Element} offset parent 201 */ 202function getOffsetParent(element) { 203 if (!element) { 204 return document.documentElement; 205 } 206 207 var noOffsetParent = isIE(10) ? document.body : null; 208 209 // NOTE: 1 DOM access here 210 var offsetParent = element.offsetParent || null; 211 // Skip hidden elements which don't have an offsetParent 212 while (offsetParent === noOffsetParent && element.nextElementSibling) { 213 offsetParent = (element = element.nextElementSibling).offsetParent; 214 } 215 216 var nodeName = offsetParent && offsetParent.nodeName; 217 218 if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') { 219 return element ? element.ownerDocument.documentElement : document.documentElement; 220 } 221 222 // .offsetParent will return the closest TH, TD or TABLE in case 223 // no offsetParent is present, I hate this job... 224 if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') { 225 return getOffsetParent(offsetParent); 226 } 227 228 return offsetParent; 229} 230 231function isOffsetContainer(element) { 232 var nodeName = element.nodeName; 233 234 if (nodeName === 'BODY') { 235 return false; 236 } 237 return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element; 238} 239 240/** 241 * Finds the root node (document, shadowDOM root) of the given element 242 * @method 243 * @memberof Popper.Utils 244 * @argument {Element} node 245 * @returns {Element} root node 246 */ 247function getRoot(node) { 248 if (node.parentNode !== null) { 249 return getRoot(node.parentNode); 250 } 251 252 return node; 253} 254 255/** 256 * Finds the offset parent common to the two provided nodes 257 * @method 258 * @memberof Popper.Utils 259 * @argument {Element} element1 260 * @argument {Element} element2 261 * @returns {Element} common offset parent 262 */ 263function findCommonOffsetParent(element1, element2) { 264 // This check is needed to avoid errors in case one of the elements isn't defined for any reason 265 if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) { 266 return document.documentElement; 267 } 268 269 // Here we make sure to give as "start" the element that comes first in the DOM 270 var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING; 271 var start = order ? element1 : element2; 272 var end = order ? element2 : element1; 273 274 // Get common ancestor container 275 var range = document.createRange(); 276 range.setStart(start, 0); 277 range.setEnd(end, 0); 278 var commonAncestorContainer = range.commonAncestorContainer; 279
vendor: 5,354 bytes, lines 280-457
280 // Both nodes are inside #document 281 282 if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) { 283 if (isOffsetContainer(commonAncestorContainer)) { 284 return commonAncestorContainer; 285 } 286 287 return getOffsetParent(commonAncestorContainer); 288 } 289 290 // one of the nodes is inside shadowDOM, find which one 291 var element1root = getRoot(element1); 292 if (element1root.host) { 293 return findCommonOffsetParent(element1root.host, element2); 294 } else { 295 return findCommonOffsetParent(element1, getRoot(element2).host); 296 } 297} 298 299/** 300 * Gets the scroll value of the given element in the given side (top and left) 301 * @method 302 * @memberof Popper.Utils 303 * @argument {Element} element 304 * @argument {String} side `top` or `left` 305 * @returns {number} amount of scrolled pixels 306 */ 307function getScroll(element) { 308 var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top'; 309 310 var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft'; 311 var nodeName = element.nodeName; 312 313 if (nodeName === 'BODY' || nodeName === 'HTML') { 314 var html = element.ownerDocument.documentElement; 315 var scrollingElement = element.ownerDocument.scrollingElement || html; 316 return scrollingElement[upperSide]; 317 } 318 319 return element[upperSide]; 320} 321 322/* 323 * Sum or subtract the element scroll values (left and top) from a given rect object 324 * @method 325 * @memberof Popper.Utils 326 * @param {Object} rect - Rect object you want to change 327 * @param {HTMLElement} element - The element from the function reads the scroll values 328 * @param {Boolean} subtract - set to true if you want to subtract the scroll values 329 * @return {Object} rect - The modifier rect object 330 */ 331function includeScroll(rect, element) { 332 var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; 333 334 var scrollTop = getScroll(element, 'top'); 335 var scrollLeft = getScroll(element, 'left'); 336 var modifier = subtract ? -1 : 1; 337 rect.top += scrollTop * modifier; 338 rect.bottom += scrollTop * modifier; 339 rect.left += scrollLeft * modifier; 340 rect.right += scrollLeft * modifier; 341 return rect; 342} 343 344/* 345 * Helper to detect borders of a given element 346 * @method 347 * @memberof Popper.Utils 348 * @param {CSSStyleDeclaration} styles 349 * Result of `getStyleComputedProperty` on the given element 350 * @param {String} axis - `x` or `y` 351 * @return {number} borders - The borders size of the given axis 352 */ 353 354function getBordersSize(styles, axis) { 355 var sideA = axis === 'x' ? 'Left' : 'Top'; 356 var sideB = sideA === 'Left' ? 'Right' : 'Bottom'; 357 358 return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']); 359} 360 361function getSize(axis, body, html, computedStyle) { 362 return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0); 363} 364 365function getWindowSizes(document) { 366 var body = document.body; 367 var html = document.documentElement; 368 var computedStyle = isIE(10) && getComputedStyle(html); 369 370 return { 371 height: getSize('Height', body, html, computedStyle), 372 width: getSize('Width', body, html, computedStyle) 373 }; 374} 375 376var classCallCheck = function (instance, Constructor) { 377 if (!(instance instanceof Constructor)) { 378 throw new TypeError("Cannot call a class as a function"); 379 } 380}; 381 382var createClass = function () { 383 function defineProperties(target, props) { 384 for (var i = 0; i < props.length; i++) { 385 var descriptor = props[i]; 386 descriptor.enumerable = descriptor.enumerable || false; 387 descriptor.configurable = true; 388 if ("value" in descriptor) descriptor.writable = true; 389 Object.defineProperty(target, descriptor.key, descriptor); 390 } 391 } 392 393 return function (Constructor, protoProps, staticProps) { 394 if (protoProps) defineProperties(Constructor.prototype, protoProps); 395 if (staticProps) defineProperties(Constructor, staticProps); 396 return Constructor; 397 }; 398}(); 399 400 401 402 403 404var defineProperty = function (obj, key, value) { 405 if (key in obj) { 406 Object.defineProperty(obj, key, { 407 value: value, 408 enumerable: true, 409 configurable: true, 410 writable: true 411 }); 412 } else { 413 obj[key] = value; 414 } 415 416 return obj; 417}; 418 419var _extends = Object.assign || function (target) { 420 for (var i = 1; i < arguments.length; i++) { 421 var source = arguments[i]; 422 423 for (var key in source) { 424 if (Object.prototype.hasOwnProperty.call(source, key)) { 425 target[key] = source[key]; 426 } 427 } 428 } 429 430 return target; 431}; 432 433/** 434 * Given element offsets, generate an output similar to getBoundingClientRect 435 * @method 436 * @memberof Popper.Utils 437 * @argument {Object} offsets 438 * @returns {Object} ClientRect like output 439 */ 440function getClientRect(offsets) { 441 return _extends({}, offsets, { 442 right: offsets.left + offsets.width, 443 bottom: offsets.top + offsets.height 444 }); 445} 446 447/** 448 * Get bounding client rect of given element 449 * @method 450 * @memberof Popper.Utils 451 * @param {HTMLElement} element 452 * @return {Object} client rect 453 */ 454function getBoundingClientRect(element) { 455 var rect = {}; 456 457 // IE10 10 FIX: Please, don't ask, the element isn't
vendor: 4,625 bytes, lines 458-587
458 // considered in DOM in some circumstances... 459 // This isn't reproducible in IE10 compatibility mode of IE11 460 try { 461 if (isIE(10)) { 462 rect = element.getBoundingClientRect(); 463 var scrollTop = getScroll(element, 'top'); 464 var scrollLeft = getScroll(element, 'left'); 465 rect.top += scrollTop; 466 rect.left += scrollLeft; 467 rect.bottom += scrollTop; 468 rect.right += scrollLeft; 469 } else { 470 rect = element.getBoundingClientRect(); 471 } 472 } catch (e) {} 473 474 var result = { 475 left: rect.left, 476 top: rect.top, 477 width: rect.right - rect.left, 478 height: rect.bottom - rect.top 479 }; 480 481 // subtract scrollbar size from sizes 482 var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {}; 483 var width = sizes.width || element.clientWidth || result.width; 484 var height = sizes.height || element.clientHeight || result.height; 485 486 var horizScrollbar = element.offsetWidth - width; 487 var vertScrollbar = element.offsetHeight - height; 488 489 // if an hypothetical scrollbar is detected, we must be sure it's not a `border` 490 // we make this check conditional for performance reasons 491 if (horizScrollbar || vertScrollbar) { 492 var styles = getStyleComputedProperty(element); 493 horizScrollbar -= getBordersSize(styles, 'x'); 494 vertScrollbar -= getBordersSize(styles, 'y'); 495 496 result.width -= horizScrollbar; 497 result.height -= vertScrollbar; 498 } 499 500 return getClientRect(result); 501} 502 503function getOffsetRectRelativeToArbitraryNode(children, parent) { 504 var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false; 505 506 var isIE10 = isIE(10); 507 var isHTML = parent.nodeName === 'HTML'; 508 var childrenRect = getBoundingClientRect(children); 509 var parentRect = getBoundingClientRect(parent); 510 var scrollParent = getScrollParent(children); 511 512 var styles = getStyleComputedProperty(parent); 513 var borderTopWidth = parseFloat(styles.borderTopWidth); 514 var borderLeftWidth = parseFloat(styles.borderLeftWidth); 515 516 // In cases where the parent is fixed, we must ignore negative scroll in offset calc 517 if (fixedPosition && isHTML) { 518 parentRect.top = Math.max(parentRect.top, 0); 519 parentRect.left = Math.max(parentRect.left, 0); 520 } 521 var offsets = getClientRect({ 522 top: childrenRect.top - parentRect.top - borderTopWidth, 523 left: childrenRect.left - parentRect.left - borderLeftWidth, 524 width: childrenRect.width, 525 height: childrenRect.height 526 }); 527 offsets.marginTop = 0; 528 offsets.marginLeft = 0; 529 530 // Subtract margins of documentElement in case it's being used as parent 531 // we do this only on HTML because it's the only element that behaves 532 // differently when margins are applied to it. The margins are included in 533 // the box of the documentElement, in the other cases not. 534 if (!isIE10 && isHTML) { 535 var marginTop = parseFloat(styles.marginTop); 536 var marginLeft = parseFloat(styles.marginLeft); 537 538 offsets.top -= borderTopWidth - marginTop; 539 offsets.bottom -= borderTopWidth - marginTop; 540 offsets.left -= borderLeftWidth - marginLeft; 541 offsets.right -= borderLeftWidth - marginLeft; 542 543 // Attach marginTop and marginLeft because in some circumstances we may need them 544 offsets.marginTop = marginTop; 545 offsets.marginLeft = marginLeft; 546 } 547 548 if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') { 549 offsets = includeScroll(offsets, parent); 550 } 551 552 return offsets; 553} 554 555function getViewportOffsetRectRelativeToArtbitraryNode(element) { 556 var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; 557 558 var html = element.ownerDocument.documentElement; 559 var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html); 560 var width = Math.max(html.clientWidth, window.innerWidth || 0); 561 var height = Math.max(html.clientHeight, window.innerHeight || 0); 562 563 var scrollTop = !excludeScroll ? getScroll(html) : 0; 564 var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0; 565 566 var offset = { 567 top: scrollTop - relativeOffset.top + relativeOffset.marginTop, 568 left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft, 569 width: width, 570 height: height 571 }; 572 573 return getClientRect(offset); 574} 575 576/** 577 * Check if the given element is fixed or is inside a fixed parent 578 * @method 579 * @memberof Popper.Utils 580 * @argument {Element} element 581 * @argument {Element} customContainer 582 * @returns {Boolean} answer to "isFixed?" 583 */ 584function isFixed(element) { 585 var nodeName = element.nodeName; 586 if (nodeName === 'BODY' || nodeName === 'HTML') { 587 return false;
vendor: 16,186 bytes, lines 588-1097
588 } 589 if (getStyleComputedProperty(element, 'position') === 'fixed') { 590 return true; 591 } 592 var parentNode = getParentNode(element); 593 if (!parentNode) { 594 return false; 595 } 596 return isFixed(parentNode); 597} 598 599/** 600 * Finds the first parent of an element that has a transformed property defined 601 * @method 602 * @memberof Popper.Utils 603 * @argument {Element} element 604 * @returns {Element} first transformed parent or documentElement 605 */ 606 607function getFixedPositionOffsetParent(element) { 608 // This check is needed to avoid errors in case one of the elements isn't defined for any reason 609 if (!element || !element.parentElement || isIE()) { 610 return document.documentElement; 611 } 612 var el = element.parentElement; 613 while (el && getStyleComputedProperty(el, 'transform') === 'none') { 614 el = el.parentElement; 615 } 616 return el || document.documentElement; 617} 618 619/** 620 * Computed the boundaries limits and return them 621 * @method 622 * @memberof Popper.Utils 623 * @param {HTMLElement} popper 624 * @param {HTMLElement} reference 625 * @param {number} padding 626 * @param {HTMLElement} boundariesElement - Element used to define the boundaries 627 * @param {Boolean} fixedPosition - Is in fixed position mode 628 * @returns {Object} Coordinates of the boundaries 629 */ 630function getBoundaries(popper, reference, padding, boundariesElement) { 631 var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false; 632 633 // NOTE: 1 DOM access here 634 635 var boundaries = { top: 0, left: 0 }; 636 var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); 637 638 // Handle viewport case 639 if (boundariesElement === 'viewport') { 640 boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition); 641 } else { 642 // Handle other cases based on DOM element used as boundaries 643 var boundariesNode = void 0; 644 if (boundariesElement === 'scrollParent') { 645 boundariesNode = getScrollParent(getParentNode(reference)); 646 if (boundariesNode.nodeName === 'BODY') { 647 boundariesNode = popper.ownerDocument.documentElement; 648 } 649 } else if (boundariesElement === 'window') { 650 boundariesNode = popper.ownerDocument.documentElement; 651 } else { 652 boundariesNode = boundariesElement; 653 } 654 655 var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition); 656 657 // In case of HTML, we need a different computation 658 if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) { 659 var _getWindowSizes = getWindowSizes(popper.ownerDocument), 660 height = _getWindowSizes.height, 661 width = _getWindowSizes.width; 662 663 boundaries.top += offsets.top - offsets.marginTop; 664 boundaries.bottom = height + offsets.top; 665 boundaries.left += offsets.left - offsets.marginLeft; 666 boundaries.right = width + offsets.left; 667 } else { 668 // for all the other DOM elements, this one is good 669 boundaries = offsets; 670 } 671 } 672 673 // Add paddings 674 padding = padding || 0; 675 var isPaddingNumber = typeof padding === 'number'; 676 boundaries.left += isPaddingNumber ? padding : padding.left || 0; 677 boundaries.top += isPaddingNumber ? padding : padding.top || 0; 678 boundaries.right -= isPaddingNumber ? padding : padding.right || 0; 679 boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0; 680 681 return boundaries; 682} 683 684function getArea(_ref) { 685 var width = _ref.width, 686 height = _ref.height; 687 688 return width * height; 689} 690 691/** 692 * Utility used to transform the `auto` placement to the placement with more 693 * available space. 694 * @method 695 * @memberof Popper.Utils 696 * @argument {Object} data - The data object generated by update method 697 * @argument {Object} options - Modifiers configuration and options 698 * @returns {Object} The data object, properly modified 699 */ 700function computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) { 701 var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0; 702 703 if (placement.indexOf('auto') === -1) { 704 return placement; 705 } 706 707 var boundaries = getBoundaries(popper, reference, padding, boundariesElement); 708 709 var rects = { 710 top: { 711 width: boundaries.width, 712 height: refRect.top - boundaries.top 713 }, 714 right: { 715 width: boundaries.right - refRect.right, 716 height: boundaries.height 717 }, 718 bottom: { 719 width: boundaries.width, 720 height: boundaries.bottom - refRect.bottom 721 }, 722 left: { 723 width: refRect.left - boundaries.left, 724 height: boundaries.height 725 } 726 }; 727 728 var sortedAreas = Object.keys(rects).map(function (key) { 729 return _extends({ 730 key: key 731 }, rects[key], { 732 area: getArea(rects[key]) 733 }); 734 }).sort(function (a, b) { 735 return b.area - a.area; 736 }); 737 738 var filteredAreas = sortedAreas.filter(function (_ref2) { 739 var width = _ref2.width, 740 height = _ref2.height; 741 return width >= popper.clientWidth && height >= popper.clientHeight; 742 }); 743 744 var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key; 745 746 var variation = placement.split('-')[1]; 747 748 return computedPlacement + (variation ? '-' + variation : ''); 749} 750 751/** 752 * Get offsets to the reference element 753 * @method 754 * @memberof Popper.Utils 755 * @param {Object} state 756 * @param {Element} popper - the popper element 757 * @param {Element} reference - the reference element (the popper will be relative to this) 758 * @param {Element} fixedPosition - is in fixed position mode 759 * @returns {Object} An object containing the offsets which will be applied to the popper 760 */ 761function getReferenceOffsets(state, popper, reference) { 762 var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null; 763 764 var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference)); 765 return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition); 766} 767 768/** 769 * Get the outer sizes of the given element (offset size + margins) 770 * @method 771 * @memberof Popper.Utils 772 * @argument {Element} element 773 * @returns {Object} object containing width and height properties 774 */ 775function getOuterSizes(element) { 776 var window = element.ownerDocument.defaultView; 777 var styles = window.getComputedStyle(element); 778 var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0); 779 var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0); 780 var result = { 781 width: element.offsetWidth + y, 782 height: element.offsetHeight + x 783 }; 784 return result; 785} 786 787/** 788 * Get the opposite placement of the given one 789 * @method 790 * @memberof Popper.Utils 791 * @argument {String} placement 792 * @returns {String} flipped placement 793 */ 794function getOppositePlacement(placement) { 795 var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; 796 return placement.replace(/left|right|bottom|top/g, function (matched) { 797 return hash[matched]; 798 }); 799} 800 801/** 802 * Get offsets to the popper 803 * @method 804 * @memberof Popper.Utils 805 * @param {Object} position - CSS position the Popper will get applied 806 * @param {HTMLElement} popper - the popper element 807 * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this) 808 * @param {String} placement - one of the valid placement options 809 * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper 810 */ 811function getPopperOffsets(popper, referenceOffsets, placement) { 812 placement = placement.split('-')[0]; 813 814 // Get popper node sizes 815 var popperRect = getOuterSizes(popper); 816 817 // Add position, width and height to our offsets object 818 var popperOffsets = { 819 width: popperRect.width, 820 height: popperRect.height 821 }; 822 823 // depending by the popper placement we have to compute its offsets slightly differently 824 var isHoriz = ['right', 'left'].indexOf(placement) !== -1; 825 var mainSide = isHoriz ? 'top' : 'left'; 826 var secondarySide = isHoriz ? 'left' : 'top'; 827 var measurement = isHoriz ? 'height' : 'width'; 828 var secondaryMeasurement = !isHoriz ? 'height' : 'width'; 829 830 popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2; 831 if (placement === secondarySide) { 832 popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement]; 833 } else { 834 popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)]; 835 } 836 837 return popperOffsets; 838} 839 840/** 841 * Mimics the `find` method of Array 842 * @method 843 * @memberof Popper.Utils 844 * @argument {Array} arr 845 * @argument prop 846 * @argument value 847 * @returns index or -1 848 */ 849function find(arr, check) { 850 // use native find if supported 851 if (Array.prototype.find) { 852 return arr.find(check); 853 } 854 855 // use `filter` to obtain the same behavior of `find` 856 return arr.filter(check)[0]; 857} 858 859/** 860 * Return the index of the matching object 861 * @method 862 * @memberof Popper.Utils 863 * @argument {Array} arr 864 * @argument prop 865 * @argument value 866 * @returns index or -1 867 */ 868function findIndex(arr, prop, value) { 869 // use native findIndex if supported 870 if (Array.prototype.findIndex) { 871 return arr.findIndex(function (cur) { 872 return cur[prop] === value; 873 }); 874 } 875 876 // use `find` + `indexOf` if `findIndex` isn't supported 877 var match = find(arr, function (obj) { 878 return obj[prop] === value; 879 }); 880 return arr.indexOf(match); 881} 882 883/** 884 * Loop trough the list of modifiers and run them in order, 885 * each of them will then edit the data object. 886 * @method 887 * @memberof Popper.Utils 888 * @param {dataObject} data 889 * @param {Array} modifiers 890 * @param {String} ends - Optional modifier name used as stopper 891 * @returns {dataObject} 892 */ 893function runModifiers(modifiers, data, ends) { 894 var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends)); 895 896 modifiersToRun.forEach(function (modifier) { 897 if (modifier['function']) { 898 // eslint-disable-line dot-notation 899 console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); 900 } 901 var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation 902 if (modifier.enabled && isFunction(fn)) { 903 // Add properties to offsets to make them a complete clientRect object 904 // we do this before each modifier to make sure the previous one doesn't 905 // mess with these values 906 data.offsets.popper = getClientRect(data.offsets.popper); 907 data.offsets.reference = getClientRect(data.offsets.reference); 908 909 data = fn(data, modifier); 910 } 911 }); 912 913 return data; 914} 915 916/** 917 * Updates the position of the popper, computing the new offsets and applying 918 * the new style.<br /> 919 * Prefer `scheduleUpdate` over `update` because of performance reasons. 920 * @method 921 * @memberof Popper 922 */ 923function update() { 924 // if popper is destroyed, don't perform any further update 925 if (this.state.isDestroyed) { 926 return; 927 } 928 929 var data = { 930 instance: this, 931 styles: {}, 932 arrowStyles: {}, 933 attributes: {}, 934 flipped: false, 935 offsets: {} 936 }; 937 938 // compute reference element offsets 939 data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed); 940 941 // compute auto placement, store placement inside the data object, 942 // modifiers will be able to edit `placement` if needed 943 // and refer to originalPlacement to know the original value 944 data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding); 945 946 // store the computed placement inside `originalPlacement` 947 data.originalPlacement = data.placement; 948 949 data.positionFixed = this.options.positionFixed; 950 951 // compute the popper offsets 952 data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement); 953 954 data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute'; 955 956 // run the modifiers 957 data = runModifiers(this.modifiers, data); 958 959 // the first `update` will call `onCreate` callback 960 // the other ones will call `onUpdate` callback 961 if (!this.state.isCreated) { 962 this.state.isCreated = true; 963 this.options.onCreate(data); 964 } else { 965 this.options.onUpdate(data); 966 } 967} 968 969/** 970 * Helper used to know if the given modifier is enabled. 971 * @method 972 * @memberof Popper.Utils 973 * @returns {Boolean} 974 */ 975function isModifierEnabled(modifiers, modifierName) { 976 return modifiers.some(function (_ref) { 977 var name = _ref.name, 978 enabled = _ref.enabled; 979 return enabled && name === modifierName; 980 }); 981} 982 983/** 984 * Get the prefixed supported property name 985 * @method 986 * @memberof Popper.Utils 987 * @argument {String} property (camelCase) 988 * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix) 989 */ 990function getSupportedPropertyName(property) { 991 var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O']; 992 var upperProp = property.charAt(0).toUpperCase() + property.slice(1); 993 994 for (var i = 0; i < prefixes.length; i++) { 995 var prefix = prefixes[i]; 996 var toCheck = prefix ? '' + prefix + upperProp : property; 997 if (typeof document.body.style[toCheck] !== 'undefined') { 998 return toCheck; 999 } 1000 } 1001 return null; 1002} 1003 1004/** 1005 * Destroys the popper. 1006 * @method 1007 * @memberof Popper 1008 */ 1009function destroy() { 1010 this.state.isDestroyed = true; 1011 1012 // touch DOM only if `applyStyle` modifier is enabled 1013 if (isModifierEnabled(this.modifiers, 'applyStyle')) { 1014 this.popper.removeAttribute('x-placement'); 1015 this.popper.style.position = ''; 1016 this.popper.style.top = ''; 1017 this.popper.style.left = ''; 1018 this.popper.style.right = ''; 1019 this.popper.style.bottom = ''; 1020 this.popper.style.willChange = ''; 1021 this.popper.style[getSupportedPropertyName('transform')] = ''; 1022 } 1023 1024 this.disableEventListeners(); 1025 1026 // remove the popper if user explicitly asked for the deletion on destroy 1027 // do not use `remove` because IE11 doesn't support it 1028 if (this.options.removeOnDestroy) { 1029 this.popper.parentNode.removeChild(this.popper); 1030 } 1031 return this; 1032} 1033 1034/** 1035 * Get the window associated with the element 1036 * @argument {Element} element 1037 * @returns {Window} 1038 */ 1039function getWindow(element) { 1040 var ownerDocument = element.ownerDocument; 1041 return ownerDocument ? ownerDocument.defaultView : window; 1042} 1043 1044function attachToScrollParents(scrollParent, event, callback, scrollParents) { 1045 var isBody = scrollParent.nodeName === 'BODY'; 1046 var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent; 1047 target.addEventListener(event, callback, { passive: true }); 1048 1049 if (!isBody) { 1050 attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents); 1051 } 1052 scrollParents.push(target); 1053} 1054 1055/** 1056 * Setup needed event listeners used to update the popper position 1057 * @method 1058 * @memberof Popper.Utils 1059 * @private 1060 */ 1061function setupEventListeners(reference, options, state, updateBound) { 1062 // Resize event listener on window 1063 state.updateBound = updateBound; 1064 getWindow(reference).addEventListener('resize', state.updateBound, { passive: true }); 1065 1066 // Scroll event listener on scroll parents 1067 var scrollElement = getScrollParent(reference); 1068 attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents); 1069 state.scrollElement = scrollElement; 1070 state.eventsEnabled = true; 1071 1072 return state; 1073} 1074 1075/** 1076 * It will add resize/scroll events and start recalculating 1077 * position of the popper element when they are triggered. 1078 * @method 1079 * @memberof Popper 1080 */ 1081function enableEventListeners() { 1082 if (!this.state.eventsEnabled) { 1083 this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate); 1084 } 1085} 1086 1087/** 1088 * Remove event listeners used to update the popper position 1089 * @method 1090 * @memberof Popper.Utils 1091 * @private 1092 */ 1093function removeEventListeners(reference, state) { 1094 // Remove resize event listener on window 1095 getWindow(reference).removeEventListener('resize', state.updateBound); 1096 1097 // Remove scroll event listener on scroll parents
vendor: 12,824 bytes, lines 1098-1459
1098 state.scrollParents.forEach(function (target) { 1099 target.removeEventListener('scroll', state.updateBound); 1100 }); 1101 1102 // Reset state 1103 state.updateBound = null; 1104 state.scrollParents = []; 1105 state.scrollElement = null; 1106 state.eventsEnabled = false; 1107 return state; 1108} 1109 1110/** 1111 * It will remove resize/scroll events and won't recalculate popper position 1112 * when they are triggered. It also won't trigger `onUpdate` callback anymore, 1113 * unless you call `update` method manually. 1114 * @method 1115 * @memberof Popper 1116 */ 1117function disableEventListeners() { 1118 if (this.state.eventsEnabled) { 1119 cancelAnimationFrame(this.scheduleUpdate); 1120 this.state = removeEventListeners(this.reference, this.state); 1121 } 1122} 1123 1124/** 1125 * Tells if a given input is a number 1126 * @method 1127 * @memberof Popper.Utils 1128 * @param {*} input to check 1129 * @return {Boolean} 1130 */ 1131function isNumeric(n) { 1132 return n !== '' && !isNaN(parseFloat(n)) && isFinite(n); 1133} 1134 1135/** 1136 * Set the style to the given popper 1137 * @method 1138 * @memberof Popper.Utils 1139 * @argument {Element} element - Element to apply the style to 1140 * @argument {Object} styles 1141 * Object with a list of properties and values which will be applied to the element 1142 */ 1143function setStyles(element, styles) { 1144 Object.keys(styles).forEach(function (prop) { 1145 var unit = ''; 1146 // add unit if the value is numeric and is one of the following 1147 if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) { 1148 unit = 'px'; 1149 } 1150 element.style[prop] = styles[prop] + unit; 1151 }); 1152} 1153 1154/** 1155 * Set the attributes to the given popper 1156 * @method 1157 * @memberof Popper.Utils 1158 * @argument {Element} element - Element to apply the attributes to 1159 * @argument {Object} styles 1160 * Object with a list of properties and values which will be applied to the element 1161 */ 1162function setAttributes(element, attributes) { 1163 Object.keys(attributes).forEach(function (prop) { 1164 var value = attributes[prop]; 1165 if (value !== false) { 1166 element.setAttribute(prop, attributes[prop]); 1167 } else { 1168 element.removeAttribute(prop); 1169 } 1170 }); 1171} 1172 1173/** 1174 * @function 1175 * @memberof Modifiers 1176 * @argument {Object} data - The data object generated by `update` method 1177 * @argument {Object} data.styles - List of style properties - values to apply to popper element 1178 * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element 1179 * @argument {Object} options - Modifiers configuration and options 1180 * @returns {Object} The same data object 1181 */ 1182function applyStyle(data) { 1183 // any property present in `data.styles` will be applied to the popper, 1184 // in this way we can make the 3rd party modifiers add custom styles to it 1185 // Be aware, modifiers could override the properties defined in the previous 1186 // lines of this modifier! 1187 setStyles(data.instance.popper, data.styles); 1188 1189 // any property present in `data.attributes` will be applied to the popper, 1190 // they will be set as HTML attributes of the element 1191 setAttributes(data.instance.popper, data.attributes); 1192 1193 // if arrowElement is defined and arrowStyles has some properties 1194 if (data.arrowElement && Object.keys(data.arrowStyles).length) { 1195 setStyles(data.arrowElement, data.arrowStyles); 1196 } 1197 1198 return data; 1199} 1200 1201/** 1202 * Set the x-placement attribute before everything else because it could be used 1203 * to add margins to the popper margins needs to be calculated to get the 1204 * correct popper offsets. 1205 * @method 1206 * @memberof Popper.modifiers 1207 * @param {HTMLElement} reference - The reference element used to position the popper 1208 * @param {HTMLElement} popper - The HTML element used as popper 1209 * @param {Object} options - Popper.js options 1210 */ 1211function applyStyleOnLoad(reference, popper, options, modifierOptions, state) { 1212 // compute reference element offsets 1213 var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed); 1214 1215 // compute auto placement, store placement inside the data object, 1216 // modifiers will be able to edit `placement` if needed 1217 // and refer to originalPlacement to know the original value 1218 var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding); 1219 1220 popper.setAttribute('x-placement', placement); 1221 1222 // Apply `position` to popper before anything else because 1223 // without the position applied we can't guarantee correct computations 1224 setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' }); 1225 1226 return options; 1227} 1228 1229/** 1230 * @function 1231 * @memberof Popper.Utils 1232 * @argument {Object} data - The data object generated by `update` method 1233 * @argument {Boolean} shouldRound - If the offsets should be rounded at all 1234 * @returns {Object} The popper's position offsets rounded 1235 * 1236 * The tale of pixel-perfect positioning. It's still not 100% perfect, but as 1237 * good as it can be within reason. 1238 * Discussion here: https://github.com/FezVrasta/popper.js/pull/715 1239 * 1240 * Low DPI screens cause a popper to be blurry if not using full pixels (Safari 1241 * as well on High DPI screens). 1242 * 1243 * Firefox prefers no rounding for positioning and does not have blurriness on 1244 * high DPI screens. 1245 * 1246 * Only horizontal placement and left/right values need to be considered. 1247 */ 1248function getRoundedOffsets(data, shouldRound) { 1249 var _data$offsets = data.offsets, 1250 popper = _data$offsets.popper, 1251 reference = _data$offsets.reference; 1252 var round = Math.round, 1253 floor = Math.floor; 1254 1255 var noRound = function noRound(v) { 1256 return v; 1257 }; 1258 1259 var referenceWidth = round(reference.width); 1260 var popperWidth = round(popper.width); 1261 1262 var isVertical = ['left', 'right'].indexOf(data.placement) !== -1; 1263 var isVariation = data.placement.indexOf('-') !== -1; 1264 var sameWidthParity = referenceWidth % 2 === popperWidth % 2; 1265 var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1; 1266 1267 var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor; 1268 var verticalToInteger = !shouldRound ? noRound : round; 1269 1270 return { 1271 left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left), 1272 top: verticalToInteger(popper.top), 1273 bottom: verticalToInteger(popper.bottom), 1274 right: horizontalToInteger(popper.right) 1275 }; 1276} 1277 1278var isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent); 1279 1280/** 1281 * @function 1282 * @memberof Modifiers 1283 * @argument {Object} data - The data object generated by `update` method 1284 * @argument {Object} options - Modifiers configuration and options 1285 * @returns {Object} The data object, properly modified 1286 */ 1287function computeStyle(data, options) { 1288 var x = options.x, 1289 y = options.y; 1290 var popper = data.offsets.popper; 1291 1292 // Remove this legacy support in Popper.js v2 1293 1294 var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) { 1295 return modifier.name === 'applyStyle'; 1296 }).gpuAcceleration; 1297 if (legacyGpuAccelerationOption !== undefined) { 1298 console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); 1299 } 1300 var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration; 1301 1302 var offsetParent = getOffsetParent(data.instance.popper); 1303 var offsetParentRect = getBoundingClientRect(offsetParent); 1304 1305 // Styles 1306 var styles = { 1307 position: popper.position 1308 }; 1309 1310 var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox); 1311 1312 var sideA = x === 'bottom' ? 'top' : 'bottom'; 1313 var sideB = y === 'right' ? 'left' : 'right'; 1314 1315 // if gpuAcceleration is set to `true` and transform is supported, 1316 // we use `translate3d` to apply the position to the popper we 1317 // automatically use the supported prefixed version if needed 1318 var prefixedProperty = getSupportedPropertyName('transform'); 1319 1320 // now, let's make a step back and look at this code closely (wtf?) 1321 // If the content of the popper grows once it's been positioned, it 1322 // may happen that the popper gets misplaced because of the new content 1323 // overflowing its reference element 1324 // To avoid this problem, we provide two options (x and y), which allow 1325 // the consumer to define the offset origin. 1326 // If we position a popper on top of a reference element, we can set 1327 // `x` to `top` to make the popper grow towards its top instead of 1328 // its bottom. 1329 var left = void 0, 1330 top = void 0; 1331 if (sideA === 'bottom') { 1332 // when offsetParent is <html> the positioning is relative to the bottom of the screen (excluding the scrollbar) 1333 // and not the bottom of the html element 1334 if (offsetParent.nodeName === 'HTML') { 1335 top = -offsetParent.clientHeight + offsets.bottom; 1336 } else { 1337 top = -offsetParentRect.height + offsets.bottom; 1338 } 1339 } else { 1340 top = offsets.top; 1341 } 1342 if (sideB === 'right') { 1343 if (offsetParent.nodeName === 'HTML') { 1344 left = -offsetParent.clientWidth + offsets.right; 1345 } else { 1346 left = -offsetParentRect.width + offsets.right; 1347 } 1348 } else { 1349 left = offsets.left; 1350 } 1351 if (gpuAcceleration && prefixedProperty) { 1352 styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)'; 1353 styles[sideA] = 0; 1354 styles[sideB] = 0; 1355 styles.willChange = 'transform'; 1356 } else { 1357 // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties 1358 var invertTop = sideA === 'bottom' ? -1 : 1; 1359 var invertLeft = sideB === 'right' ? -1 : 1; 1360 styles[sideA] = top * invertTop; 1361 styles[sideB] = left * invertLeft; 1362 styles.willChange = sideA + ', ' + sideB; 1363 } 1364 1365 // Attributes 1366 var attributes = { 1367 'x-placement': data.placement 1368 }; 1369 1370 // Update `data` attributes, styles and arrowStyles 1371 data.attributes = _extends({}, attributes, data.attributes); 1372 data.styles = _extends({}, styles, data.styles); 1373 data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles); 1374 1375 return data; 1376} 1377 1378/** 1379 * Helper used to know if the given modifier depends from another one.<br /> 1380 * It checks if the needed modifier is listed and enabled. 1381 * @method 1382 * @memberof Popper.Utils 1383 * @param {Array} modifiers - list of modifiers 1384 * @param {String} requestingName - name of requesting modifier 1385 * @param {String} requestedName - name of requested modifier 1386 * @returns {Boolean} 1387 */ 1388function isModifierRequired(modifiers, requestingName, requestedName) { 1389 var requesting = find(modifiers, function (_ref) { 1390 var name = _ref.name; 1391 return name === requestingName; 1392 }); 1393 1394 var isRequired = !!requesting && modifiers.some(function (modifier) { 1395 return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order; 1396 }); 1397 1398 if (!isRequired) { 1399 var _requesting = '`' + requestingName + '`'; 1400 var requested = '`' + requestedName + '`'; 1401 console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!'); 1402 } 1403 return isRequired; 1404} 1405 1406/** 1407 * @function 1408 * @memberof Modifiers 1409 * @argument {Object} data - The data object generated by update method 1410 * @argument {Object} options - Modifiers configuration and options 1411 * @returns {Object} The data object, properly modified 1412 */ 1413function arrow(data, options) { 1414 var _data$offsets$arrow; 1415 1416 // arrow depends on keepTogether in order to work 1417 if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) { 1418 return data; 1419 } 1420 1421 var arrowElement = options.element; 1422 1423 // if arrowElement is a string, suppose it's a CSS selector 1424 if (typeof arrowElement === 'string') { 1425 arrowElement = data.instance.popper.querySelector(arrowElement); 1426 1427 // if arrowElement is not found, don't run the modifier 1428 if (!arrowElement) { 1429 return data; 1430 } 1431 } else { 1432 // if the arrowElement isn't a query selector we must check that the 1433 // provided DOM node is child of its popper node 1434 if (!data.instance.popper.contains(arrowElement)) { 1435 console.warn('WARNING: `arrow.element` must be child of its popper element!'); 1436 return data; 1437 } 1438 } 1439 1440 var placement = data.placement.split('-')[0]; 1441 var _data$offsets = data.offsets, 1442 popper = _data$offsets.popper, 1443 reference = _data$offsets.reference; 1444 1445 var isVertical = ['left', 'right'].indexOf(placement) !== -1; 1446 1447 var len = isVertical ? 'height' : 'width'; 1448 var sideCapitalized = isVertical ? 'Top' : 'Left'; 1449 var side = sideCapitalized.toLowerCase(); 1450 var altSide = isVertical ? 'left' : 'top'; 1451 var opSide = isVertical ? 'bottom' : 'right'; 1452 var arrowElementSize = getOuterSizes(arrowElement)[len]; 1453 1454 // 1455 // extends keepTogether behavior making sure the popper and its 1456 // reference have enough pixels in conjunction 1457 // 1458 1459 // top/left side
vendor: 5,392 bytes, lines 1460-1615
1460 if (reference[opSide] - arrowElementSize < popper[side]) { 1461 data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize); 1462 } 1463 // bottom/right side 1464 if (reference[side] + arrowElementSize > popper[opSide]) { 1465 data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide]; 1466 } 1467 data.offsets.popper = getClientRect(data.offsets.popper); 1468 1469 // compute center of the popper 1470 var center = reference[side] + reference[len] / 2 - arrowElementSize / 2; 1471 1472 // Compute the sideValue using the updated popper offsets 1473 // take popper margin in account because we don't have this info available 1474 var css = getStyleComputedProperty(data.instance.popper); 1475 var popperMarginSide = parseFloat(css['margin' + sideCapitalized]); 1476 var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']); 1477 var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide; 1478 1479 // prevent arrowElement from being placed not contiguously to its popper 1480 sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0); 1481 1482 data.arrowElement = arrowElement; 1483 data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow); 1484 1485 return data; 1486} 1487 1488/** 1489 * Get the opposite placement variation of the given one 1490 * @method 1491 * @memberof Popper.Utils 1492 * @argument {String} placement variation 1493 * @returns {String} flipped placement variation 1494 */ 1495function getOppositeVariation(variation) { 1496 if (variation === 'end') { 1497 return 'start'; 1498 } else if (variation === 'start') { 1499 return 'end'; 1500 } 1501 return variation; 1502} 1503 1504/** 1505 * List of accepted placements to use as values of the `placement` option.<br /> 1506 * Valid placements are: 1507 * - `auto` 1508 * - `top` 1509 * - `right` 1510 * - `bottom` 1511 * - `left` 1512 * 1513 * Each placement can have a variation from this list: 1514 * - `-start` 1515 * - `-end` 1516 * 1517 * Variations are interpreted easily if you think of them as the left to right 1518 * written languages. Horizontally (`top` and `bottom`), `start` is left and `end` 1519 * is right.<br /> 1520 * Vertically (`left` and `right`), `start` is top and `end` is bottom. 1521 * 1522 * Some valid examples are: 1523 * - `top-end` (on top of reference, right aligned) 1524 * - `right-start` (on right of reference, top aligned) 1525 * - `bottom` (on bottom, centered) 1526 * - `auto-end` (on the side with more space available, alignment depends by placement) 1527 * 1528 * @static 1529 * @type {Array} 1530 * @enum {String} 1531 * @readonly 1532 * @method placements 1533 * @memberof Popper 1534 */ 1535var placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']; 1536 1537// Get rid of `auto` `auto-start` and `auto-end` 1538var validPlacements = placements.slice(3); 1539 1540/** 1541 * Given an initial placement, returns all the subsequent placements 1542 * clockwise (or counter-clockwise). 1543 * 1544 * @method 1545 * @memberof Popper.Utils 1546 * @argument {String} placement - A valid placement (it accepts variations) 1547 * @argument {Boolean} counter - Set to true to walk the placements counterclockwise 1548 * @returns {Array} placements including their variations 1549 */ 1550function clockwise(placement) { 1551 var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; 1552 1553 var index = validPlacements.indexOf(placement); 1554 var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index)); 1555 return counter ? arr.reverse() : arr; 1556} 1557 1558var BEHAVIORS = { 1559 FLIP: 'flip', 1560 CLOCKWISE: 'clockwise', 1561 COUNTERCLOCKWISE: 'counterclockwise' 1562}; 1563 1564/** 1565 * @function 1566 * @memberof Modifiers 1567 * @argument {Object} data - The data object generated by update method 1568 * @argument {Object} options - Modifiers configuration and options 1569 * @returns {Object} The data object, properly modified 1570 */ 1571function flip(data, options) { 1572 // if `inner` modifier is enabled, we can't use the `flip` modifier 1573 if (isModifierEnabled(data.instance.modifiers, 'inner')) { 1574 return data; 1575 } 1576 1577 if (data.flipped && data.placement === data.originalPlacement) { 1578 // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides 1579 return data; 1580 } 1581 1582 var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed); 1583 1584 var placement = data.placement.split('-')[0]; 1585 var placementOpposite = getOppositePlacement(placement); 1586 var variation = data.placement.split('-')[1] || ''; 1587 1588 var flipOrder = []; 1589 1590 switch (options.behavior) { 1591 case BEHAVIORS.FLIP: 1592 flipOrder = [placement, placementOpposite]; 1593 break; 1594 case BEHAVIORS.CLOCKWISE: 1595 flipOrder = clockwise(placement); 1596 break; 1597 case BEHAVIORS.COUNTERCLOCKWISE: 1598 flipOrder = clockwise(placement, true); 1599 break; 1600 default: 1601 flipOrder = options.behavior; 1602 } 1603 1604 flipOrder.forEach(function (step, index) { 1605 if (placement !== step || flipOrder.length === index + 1) { 1606 return data; 1607 } 1608 1609 placement = data.placement.split('-')[0]; 1610 placementOpposite = getOppositePlacement(placement); 1611 1612 var popperOffsets = data.offsets.popper; 1613 var refOffsets = data.offsets.reference; 1614 1615 // using floor because the reference offsets may contain decimals we are not going to consider here
vendor: 36,192 bytes, lines 1616-2629
1616 var floor = Math.floor; 1617 var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom); 1618 1619 var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left); 1620 var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right); 1621 var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top); 1622 var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom); 1623 1624 var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom; 1625 1626 // flip the variation if required 1627 var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; 1628 1629 // flips variation if reference element overflows boundaries 1630 var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom); 1631 1632 // flips variation if popper content overflows boundaries 1633 var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop); 1634 1635 var flippedVariation = flippedVariationByRef || flippedVariationByContent; 1636 1637 if (overlapsRef || overflowsBoundaries || flippedVariation) { 1638 // this boolean to detect any flip loop 1639 data.flipped = true; 1640 1641 if (overlapsRef || overflowsBoundaries) { 1642 placement = flipOrder[index + 1]; 1643 } 1644 1645 if (flippedVariation) { 1646 variation = getOppositeVariation(variation); 1647 } 1648 1649 data.placement = placement + (variation ? '-' + variation : ''); 1650 1651 // this object contains `position`, we want to preserve it along with 1652 // any additional property we may add in the future 1653 data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement)); 1654 1655 data = runModifiers(data.instance.modifiers, data, 'flip'); 1656 } 1657 }); 1658 return data; 1659} 1660 1661/** 1662 * @function 1663 * @memberof Modifiers 1664 * @argument {Object} data - The data object generated by update method 1665 * @argument {Object} options - Modifiers configuration and options 1666 * @returns {Object} The data object, properly modified 1667 */ 1668function keepTogether(data) { 1669 var _data$offsets = data.offsets, 1670 popper = _data$offsets.popper, 1671 reference = _data$offsets.reference; 1672 1673 var placement = data.placement.split('-')[0]; 1674 var floor = Math.floor; 1675 var isVertical = ['top', 'bottom'].indexOf(placement) !== -1; 1676 var side = isVertical ? 'right' : 'bottom'; 1677 var opSide = isVertical ? 'left' : 'top'; 1678 var measurement = isVertical ? 'width' : 'height'; 1679 1680 if (popper[side] < floor(reference[opSide])) { 1681 data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement]; 1682 } 1683 if (popper[opSide] > floor(reference[side])) { 1684 data.offsets.popper[opSide] = floor(reference[side]); 1685 } 1686 1687 return data; 1688} 1689 1690/** 1691 * Converts a string containing value + unit into a px value number 1692 * @function 1693 * @memberof {modifiers~offset} 1694 * @private 1695 * @argument {String} str - Value + unit string 1696 * @argument {String} measurement - `height` or `width` 1697 * @argument {Object} popperOffsets 1698 * @argument {Object} referenceOffsets 1699 * @returns {Number|String} 1700 * Value in pixels, or original string if no values were extracted 1701 */ 1702function toValue(str, measurement, popperOffsets, referenceOffsets) { 1703 // separate value from unit 1704 var split = str.match(/((?:\-|\+)?\d*\.?\d*)(.*)/); 1705 var value = +split[1]; 1706 var unit = split[2]; 1707 1708 // If it's not a number it's an operator, I guess 1709 if (!value) { 1710 return str; 1711 } 1712 1713 if (unit.indexOf('%') === 0) { 1714 var element = void 0; 1715 switch (unit) { 1716 case '%p': 1717 element = popperOffsets; 1718 break; 1719 case '%': 1720 case '%r': 1721 default: 1722 element = referenceOffsets; 1723 } 1724 1725 var rect = getClientRect(element); 1726 return rect[measurement] / 100 * value; 1727 } else if (unit === 'vh' || unit === 'vw') { 1728 // if is a vh or vw, we calculate the size based on the viewport 1729 var size = void 0; 1730 if (unit === 'vh') { 1731 size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0); 1732 } else { 1733 size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0); 1734 } 1735 return size / 100 * value; 1736 } else { 1737 // if is an explicit pixel unit, we get rid of the unit and keep the value 1738 // if is an implicit unit, it's px, and we return just the value 1739 return value; 1740 } 1741} 1742 1743/** 1744 * Parse an `offset` string to extrapolate `x` and `y` numeric offsets. 1745 * @function 1746 * @memberof {modifiers~offset} 1747 * @private 1748 * @argument {String} offset 1749 * @argument {Object} popperOffsets 1750 * @argument {Object} referenceOffsets 1751 * @argument {String} basePlacement 1752 * @returns {Array} a two cells array with x and y offsets in numbers 1753 */ 1754function parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) { 1755 var offsets = [0, 0]; 1756 1757 // Use height if placement is left or right and index is 0 otherwise use width 1758 // in this way the first offset will use an axis and the second one 1759 // will use the other one 1760 var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1; 1761 1762 // Split the offset string to obtain a list of values and operands 1763 // The regex addresses values with the plus or minus sign in front (+10, -20, etc) 1764 var fragments = offset.split(/(\+|\-)/).map(function (frag) { 1765 return frag.trim(); 1766 }); 1767 1768 // Detect if the offset string contains a pair of values or a single one 1769 // they could be separated by comma or space 1770 var divider = fragments.indexOf(find(fragments, function (frag) { 1771 return frag.search(/,|\s/) !== -1; 1772 })); 1773 1774 if (fragments[divider] && fragments[divider].indexOf(',') === -1) { 1775 console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); 1776 } 1777 1778 // If divider is found, we divide the list of values and operands to divide 1779 // them by ofset X and Y. 1780 var splitRegex = /\s*,\s*|\s+/; 1781 var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; 1782 1783 // Convert the values with units to absolute pixels to allow our computations 1784 ops = ops.map(function (op, index) { 1785 // Most of the units rely on the orientation of the popper 1786 var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width'; 1787 var mergeWithPrevious = false; 1788 return op 1789 // This aggregates any `+` or `-` sign that aren't considered operators 1790 // e.g.: 10 + +5 => [10, +, +5] 1791 .reduce(function (a, b) { 1792 if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) { 1793 a[a.length - 1] = b; 1794 mergeWithPrevious = true; 1795 return a; 1796 } else if (mergeWithPrevious) { 1797 a[a.length - 1] += b; 1798 mergeWithPrevious = false; 1799 return a; 1800 } else { 1801 return a.concat(b); 1802 } 1803 }, []) 1804 // Here we convert the string values into number values (in px) 1805 .map(function (str) { 1806 return toValue(str, measurement, popperOffsets, referenceOffsets); 1807 }); 1808 }); 1809 1810 // Loop trough the offsets arrays and execute the operations 1811 ops.forEach(function (op, index) { 1812 op.forEach(function (frag, index2) { 1813 if (isNumeric(frag)) { 1814 offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1); 1815 } 1816 }); 1817 }); 1818 return offsets; 1819} 1820 1821/** 1822 * @function 1823 * @memberof Modifiers 1824 * @argument {Object} data - The data object generated by update method 1825 * @argument {Object} options - Modifiers configuration and options 1826 * @argument {Number|String} options.offset=0 1827 * The offset value as described in the modifier description 1828 * @returns {Object} The data object, properly modified 1829 */ 1830function offset(data, _ref) { 1831 var offset = _ref.offset; 1832 var placement = data.placement, 1833 _data$offsets = data.offsets, 1834 popper = _data$offsets.popper, 1835 reference = _data$offsets.reference; 1836 1837 var basePlacement = placement.split('-')[0]; 1838 1839 var offsets = void 0; 1840 if (isNumeric(+offset)) { 1841 offsets = [+offset, 0]; 1842 } else { 1843 offsets = parseOffset(offset, popper, reference, basePlacement); 1844 } 1845 1846 if (basePlacement === 'left') { 1847 popper.top += offsets[0]; 1848 popper.left -= offsets[1]; 1849 } else if (basePlacement === 'right') { 1850 popper.top += offsets[0]; 1851 popper.left += offsets[1]; 1852 } else if (basePlacement === 'top') { 1853 popper.left += offsets[0]; 1854 popper.top -= offsets[1]; 1855 } else if (basePlacement === 'bottom') { 1856 popper.left += offsets[0]; 1857 popper.top += offsets[1]; 1858 } 1859 1860 data.popper = popper; 1861 return data; 1862} 1863 1864/** 1865 * @function 1866 * @memberof Modifiers 1867 * @argument {Object} data - The data object generated by `update` method 1868 * @argument {Object} options - Modifiers configuration and options 1869 * @returns {Object} The data object, properly modified 1870 */ 1871function preventOverflow(data, options) { 1872 var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper); 1873 1874 // If offsetParent is the reference element, we really want to 1875 // go one step up and use the next offsetParent as reference to 1876 // avoid to make this modifier completely useless and look like broken 1877 if (data.instance.reference === boundariesElement) { 1878 boundariesElement = getOffsetParent(boundariesElement); 1879 } 1880 1881 // NOTE: DOM access here 1882 // resets the popper's position so that the document size can be calculated excluding 1883 // the size of the popper element itself 1884 var transformProp = getSupportedPropertyName('transform'); 1885 var popperStyles = data.instance.popper.style; // assignment to help minification 1886 var top = popperStyles.top, 1887 left = popperStyles.left, 1888 transform = popperStyles[transformProp]; 1889 1890 popperStyles.top = ''; 1891 popperStyles.left = ''; 1892 popperStyles[transformProp] = ''; 1893 1894 var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed); 1895 1896 // NOTE: DOM access here 1897 // restores the original style properties after the offsets have been computed 1898 popperStyles.top = top; 1899 popperStyles.left = left; 1900 popperStyles[transformProp] = transform; 1901 1902 options.boundaries = boundaries; 1903 1904 var order = options.priority; 1905 var popper = data.offsets.popper; 1906 1907 var check = { 1908 primary: function primary(placement) { 1909 var value = popper[placement]; 1910 if (popper[placement] < boundaries[placement] && !options.escapeWithReference) { 1911 value = Math.max(popper[placement], boundaries[placement]); 1912 } 1913 return defineProperty({}, placement, value); 1914 }, 1915 secondary: function secondary(placement) { 1916 var mainSide = placement === 'right' ? 'left' : 'top'; 1917 var value = popper[mainSide]; 1918 if (popper[placement] > boundaries[placement] && !options.escapeWithReference) { 1919 value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height)); 1920 } 1921 return defineProperty({}, mainSide, value); 1922 } 1923 }; 1924 1925 order.forEach(function (placement) { 1926 var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary'; 1927 popper = _extends({}, popper, check[side](placement)); 1928 }); 1929 1930 data.offsets.popper = popper; 1931 1932 return data; 1933} 1934 1935/** 1936 * @function 1937 * @memberof Modifiers 1938 * @argument {Object} data - The data object generated by `update` method 1939 * @argument {Object} options - Modifiers configuration and options 1940 * @returns {Object} The data object, properly modified 1941 */ 1942function shift(data) { 1943 var placement = data.placement; 1944 var basePlacement = placement.split('-')[0]; 1945 var shiftvariation = placement.split('-')[1]; 1946 1947 // if shift shiftvariation is specified, run the modifier 1948 if (shiftvariation) { 1949 var _data$offsets = data.offsets, 1950 reference = _data$offsets.reference, 1951 popper = _data$offsets.popper; 1952 1953 var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1; 1954 var side = isVertical ? 'left' : 'top'; 1955 var measurement = isVertical ? 'width' : 'height'; 1956 1957 var shiftOffsets = { 1958 start: defineProperty({}, side, reference[side]), 1959 end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement]) 1960 }; 1961 1962 data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]); 1963 } 1964 1965 return data; 1966} 1967 1968/** 1969 * @function 1970 * @memberof Modifiers 1971 * @argument {Object} data - The data object generated by update method 1972 * @argument {Object} options - Modifiers configuration and options 1973 * @returns {Object} The data object, properly modified 1974 */ 1975function hide(data) { 1976 if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) { 1977 return data; 1978 } 1979 1980 var refRect = data.offsets.reference; 1981 var bound = find(data.instance.modifiers, function (modifier) { 1982 return modifier.name === 'preventOverflow'; 1983 }).boundaries; 1984 1985 if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) { 1986 // Avoid unnecessary DOM access if visibility hasn't changed 1987 if (data.hide === true) { 1988 return data; 1989 } 1990 1991 data.hide = true; 1992 data.attributes['x-out-of-boundaries'] = ''; 1993 } else { 1994 // Avoid unnecessary DOM access if visibility hasn't changed 1995 if (data.hide === false) { 1996 return data; 1997 } 1998 1999 data.hide = false; 2000 data.attributes['x-out-of-boundaries'] = false; 2001 } 2002 2003 return data; 2004} 2005 2006/** 2007 * @function 2008 * @memberof Modifiers 2009 * @argument {Object} data - The data object generated by `update` method 2010 * @argument {Object} options - Modifiers configuration and options 2011 * @returns {Object} The data object, properly modified 2012 */ 2013function inner(data) { 2014 var placement = data.placement; 2015 var basePlacement = placement.split('-')[0]; 2016 var _data$offsets = data.offsets, 2017 popper = _data$offsets.popper, 2018 reference = _data$offsets.reference; 2019 2020 var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1; 2021 2022 var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1; 2023 2024 popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0); 2025 2026 data.placement = getOppositePlacement(placement); 2027 data.offsets.popper = getClientRect(popper); 2028 2029 return data; 2030} 2031 2032/** 2033 * Modifier function, each modifier can have a function of this type assigned 2034 * to its `fn` property.<br /> 2035 * These functions will be called on each update, this means that you must 2036 * make sure they are performant enough to avoid performance bottlenecks. 2037 * 2038 * @function ModifierFn 2039 * @argument {dataObject} data - The data object generated by `update` method 2040 * @argument {Object} options - Modifiers configuration and options 2041 * @returns {dataObject} The data object, properly modified 2042 */ 2043 2044/** 2045 * Modifiers are plugins used to alter the behavior of your poppers.<br /> 2046 * Popper.js uses a set of 9 modifiers to provide all the basic functionalities 2047 * needed by the library. 2048 * 2049 * Usually you don't want to override the `order`, `fn` and `onLoad` props. 2050 * All the other properties are configurations that could be tweaked. 2051 * @namespace modifiers 2052 */ 2053var modifiers = { 2054 /** 2055 * Modifier used to shift the popper on the start or end of its reference 2056 * element.<br /> 2057 * It will read the variation of the `placement` property.<br /> 2058 * It can be one either `-end` or `-start`. 2059 * @memberof modifiers 2060 * @inner 2061 */ 2062 shift: { 2063 /** @prop {number} order=100 - Index used to define the order of execution */ 2064 order: 100, 2065 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2066 enabled: true, 2067 /** @prop {ModifierFn} */ 2068 fn: shift 2069 }, 2070 2071 /** 2072 * The `offset` modifier can shift your popper on both its axis. 2073 * 2074 * It accepts the following units: 2075 * - `px` or unit-less, interpreted as pixels 2076 * - `%` or `%r`, percentage relative to the length of the reference element 2077 * - `%p`, percentage relative to the length of the popper element 2078 * - `vw`, CSS viewport width unit 2079 * - `vh`, CSS viewport height unit 2080 * 2081 * For length is intended the main axis relative to the placement of the popper.<br /> 2082 * This means that if the placement is `top` or `bottom`, the length will be the 2083 * `width`. In case of `left` or `right`, it will be the `height`. 2084 * 2085 * You can provide a single value (as `Number` or `String`), or a pair of values 2086 * as `String` divided by a comma or one (or more) white spaces.<br /> 2087 * The latter is a deprecated method because it leads to confusion and will be 2088 * removed in v2.<br /> 2089 * Additionally, it accepts additions and subtractions between different units. 2090 * Note that multiplications and divisions aren't supported. 2091 * 2092 * Valid examples are: 2093 * ``` 2094 * 10 2095 * '10%' 2096 * '10, 10' 2097 * '10%, 10' 2098 * '10 + 10%' 2099 * '10 - 5vh + 3%' 2100 * '-10px + 5vh, 5px - 6%' 2101 * ``` 2102 * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap 2103 * > with their reference element, unfortunately, you will have to disable the `flip` modifier. 2104 * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373). 2105 * 2106 * @memberof modifiers 2107 * @inner 2108 */ 2109 offset: { 2110 /** @prop {number} order=200 - Index used to define the order of execution */ 2111 order: 200, 2112 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2113 enabled: true, 2114 /** @prop {ModifierFn} */ 2115 fn: offset, 2116 /** @prop {Number|String} offset=0 2117 * The offset value as described in the modifier description 2118 */ 2119 offset: 0 2120 }, 2121 2122 /** 2123 * Modifier used to prevent the popper from being positioned outside the boundary. 2124 * 2125 * A scenario exists where the reference itself is not within the boundaries.<br /> 2126 * We can say it has "escaped the boundaries" â or just "escaped".<br /> 2127 * In this case we need to decide whether the popper should either: 2128 * 2129 * - detach from the reference and remain "trapped" in the boundaries, or 2130 * - if it should ignore the boundary and "escape with its reference" 2131 * 2132 * When `escapeWithReference` is set to`true` and reference is completely 2133 * outside its boundaries, the popper will overflow (or completely leave) 2134 * the boundaries in order to remain attached to the edge of the reference. 2135 * 2136 * @memberof modifiers 2137 * @inner 2138 */ 2139 preventOverflow: { 2140 /** @prop {number} order=300 - Index used to define the order of execution */ 2141 order: 300, 2142 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2143 enabled: true, 2144 /** @prop {ModifierFn} */ 2145 fn: preventOverflow, 2146 /** 2147 * @prop {Array} [priority=['left','right','top','bottom']] 2148 * Popper will try to prevent overflow following these priorities by default, 2149 * then, it could overflow on the left and on top of the `boundariesElement` 2150 */ 2151 priority: ['left', 'right', 'top', 'bottom'], 2152 /** 2153 * @prop {number} padding=5 2154 * Amount of pixel used to define a minimum distance between the boundaries 2155 * and the popper. This makes sure the popper always has a little padding 2156 * between the edges of its container 2157 */ 2158 padding: 5, 2159 /** 2160 * @prop {String|HTMLElement} boundariesElement='scrollParent' 2161 * Boundaries used by the modifier. Can be `scrollParent`, `window`, 2162 * `viewport` or any DOM element. 2163 */ 2164 boundariesElement: 'scrollParent' 2165 }, 2166 2167 /** 2168 * Modifier used to make sure the reference and its popper stay near each other 2169 * without leaving any gap between the two. Especially useful when the arrow is 2170 * enabled and you want to ensure that it points to its reference element. 2171 * It cares only about the first axis. You can still have poppers with margin 2172 * between the popper and its reference element. 2173 * @memberof modifiers 2174 * @inner 2175 */ 2176 keepTogether: { 2177 /** @prop {number} order=400 - Index used to define the order of execution */ 2178 order: 400, 2179 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2180 enabled: true, 2181 /** @prop {ModifierFn} */ 2182 fn: keepTogether 2183 }, 2184 2185 /** 2186 * This modifier is used to move the `arrowElement` of the popper to make 2187 * sure it is positioned between the reference element and its popper element. 2188 * It will read the outer size of the `arrowElement` node to detect how many 2189 * pixels of conjunction are needed. 2190 * 2191 * It has no effect if no `arrowElement` is provided. 2192 * @memberof modifiers 2193 * @inner 2194 */ 2195 arrow: { 2196 /** @prop {number} order=500 - Index used to define the order of execution */ 2197 order: 500, 2198 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2199 enabled: true, 2200 /** @prop {ModifierFn} */ 2201 fn: arrow, 2202 /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */ 2203 element: '[x-arrow]' 2204 }, 2205 2206 /** 2207 * Modifier used to flip the popper's placement when it starts to overlap its 2208 * reference element. 2209 * 2210 * Requires the `preventOverflow` modifier before it in order to work. 2211 * 2212 * **NOTE:** this modifier will interrupt the current update cycle and will 2213 * restart it if it detects the need to flip the placement. 2214 * @memberof modifiers 2215 * @inner 2216 */ 2217 flip: { 2218 /** @prop {number} order=600 - Index used to define the order of execution */ 2219 order: 600, 2220 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2221 enabled: true, 2222 /** @prop {ModifierFn} */ 2223 fn: flip, 2224 /** 2225 * @prop {String|Array} behavior='flip' 2226 * The behavior used to change the popper's placement. It can be one of 2227 * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid 2228 * placements (with optional variations) 2229 */ 2230 behavior: 'flip', 2231 /** 2232 * @prop {number} padding=5 2233 * The popper will flip if it hits the edges of the `boundariesElement` 2234 */ 2235 padding: 5, 2236 /** 2237 * @prop {String|HTMLElement} boundariesElement='viewport' 2238 * The element which will define the boundaries of the popper position. 2239 * The popper will never be placed outside of the defined boundaries 2240 * (except if `keepTogether` is enabled) 2241 */ 2242 boundariesElement: 'viewport', 2243 /** 2244 * @prop {Boolean} flipVariations=false 2245 * The popper will switch placement variation between `-start` and `-end` when 2246 * the reference element overlaps its boundaries. 2247 * 2248 * The original placement should have a set variation. 2249 */ 2250 flipVariations: false, 2251 /** 2252 * @prop {Boolean} flipVariationsByContent=false 2253 * The popper will switch placement variation between `-start` and `-end` when 2254 * the popper element overlaps its reference boundaries. 2255 * 2256 * The original placement should have a set variation. 2257 */ 2258 flipVariationsByContent: false 2259 }, 2260 2261 /** 2262 * Modifier used to make the popper flow toward the inner of the reference element. 2263 * By default, when this modifier is disabled, the popper will be placed outside 2264 * the reference element. 2265 * @memberof modifiers 2266 * @inner 2267 */ 2268 inner: { 2269 /** @prop {number} order=700 - Index used to define the order of execution */ 2270 order: 700, 2271 /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */ 2272 enabled: false, 2273 /** @prop {ModifierFn} */ 2274 fn: inner 2275 }, 2276 2277 /** 2278 * Modifier used to hide the popper when its reference element is outside of the 2279 * popper boundaries. It will set a `x-out-of-boundaries` attribute which can 2280 * be used to hide with a CSS selector the popper when its reference is 2281 * out of boundaries. 2282 * 2283 * Requires the `preventOverflow` modifier before it in order to work. 2284 * @memberof modifiers 2285 * @inner 2286 */ 2287 hide: { 2288 /** @prop {number} order=800 - Index used to define the order of execution */ 2289 order: 800, 2290 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2291 enabled: true, 2292 /** @prop {ModifierFn} */ 2293 fn: hide 2294 }, 2295 2296 /** 2297 * Computes the style that will be applied to the popper element to gets 2298 * properly positioned. 2299 * 2300 * Note that this modifier will not touch the DOM, it just prepares the styles 2301 * so that `applyStyle` modifier can apply it. This separation is useful 2302 * in case you need to replace `applyStyle` with a custom implementation. 2303 * 2304 * This modifier has `850` as `order` value to maintain backward compatibility 2305 * with previous versions of Popper.js. Expect the modifiers ordering method 2306 * to change in future major versions of the library. 2307 * 2308 * @memberof modifiers 2309 * @inner 2310 */ 2311 computeStyle: { 2312 /** @prop {number} order=850 - Index used to define the order of execution */ 2313 order: 850, 2314 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2315 enabled: true, 2316 /** @prop {ModifierFn} */ 2317 fn: computeStyle, 2318 /** 2319 * @prop {Boolean} gpuAcceleration=true 2320 * If true, it uses the CSS 3D transformation to position the popper. 2321 * Otherwise, it will use the `top` and `left` properties 2322 */ 2323 gpuAcceleration: true, 2324 /** 2325 * @prop {string} [x='bottom'] 2326 * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin. 2327 * Change this if your popper should grow in a direction different from `bottom` 2328 */ 2329 x: 'bottom', 2330 /** 2331 * @prop {string} [x='left'] 2332 * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin. 2333 * Change this if your popper should grow in a direction different from `right` 2334 */ 2335 y: 'right' 2336 }, 2337 2338 /** 2339 * Applies the computed styles to the popper element. 2340 * 2341 * All the DOM manipulations are limited to this modifier. This is useful in case 2342 * you want to integrate Popper.js inside a framework or view library and you 2343 * want to delegate all the DOM manipulations to it. 2344 * 2345 * Note that if you disable this modifier, you must make sure the popper element 2346 * has its position set to `absolute` before Popper.js can do its work! 2347 * 2348 * Just disable this modifier and define your own to achieve the desired effect. 2349 * 2350 * @memberof modifiers 2351 * @inner 2352 */ 2353 applyStyle: { 2354 /** @prop {number} order=900 - Index used to define the order of execution */ 2355 order: 900, 2356 /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */ 2357 enabled: true, 2358 /** @prop {ModifierFn} */ 2359 fn: applyStyle, 2360 /** @prop {Function} */ 2361 onLoad: applyStyleOnLoad, 2362 /** 2363 * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier 2364 * @prop {Boolean} gpuAcceleration=true 2365 * If true, it uses the CSS 3D transformation to position the popper. 2366 * Otherwise, it will use the `top` and `left` properties 2367 */ 2368 gpuAcceleration: undefined 2369 } 2370}; 2371 2372/** 2373 * The `dataObject` is an object containing all the information used by Popper.js. 2374 * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks. 2375 * @name dataObject 2376 * @property {Object} data.instance The Popper.js instance 2377 * @property {String} data.placement Placement applied to popper 2378 * @property {String} data.originalPlacement Placement originally defined on init 2379 * @property {Boolean} data.flipped True if popper has been flipped by flip modifier 2380 * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper 2381 * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier 2382 * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`) 2383 * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`) 2384 * @property {Object} data.boundaries Offsets of the popper boundaries 2385 * @property {Object} data.offsets The measurements of popper, reference and arrow elements 2386 * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values 2387 * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values 2388 * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0 2389 */ 2390 2391/** 2392 * Default options provided to Popper.js constructor.<br /> 2393 * These can be overridden using the `options` argument of Popper.js.<br /> 2394 * To override an option, simply pass an object with the same 2395 * structure of the `options` object, as the 3rd argument. For example: 2396 * ``` 2397 * new Popper(ref, pop, { 2398 * modifiers: { 2399 * preventOverflow: { enabled: false } 2400 * } 2401 * }) 2402 * ``` 2403 * @type {Object} 2404 * @static 2405 * @memberof Popper 2406 */ 2407var Defaults = { 2408 /** 2409 * Popper's placement. 2410 * @prop {Popper.placements} placement='bottom' 2411 */ 2412 placement: 'bottom', 2413 2414 /** 2415 * Set this to true if you want popper to position it self in 'fixed' mode 2416 * @prop {Boolean} positionFixed=false 2417 */ 2418 positionFixed: false, 2419 2420 /** 2421 * Whether events (resize, scroll) are initially enabled. 2422 * @prop {Boolean} eventsEnabled=true 2423 */ 2424 eventsEnabled: true, 2425 2426 /** 2427 * Set to true if you want to automatically remove the popper when 2428 * you call the `destroy` method. 2429 * @prop {Boolean} removeOnDestroy=false 2430 */ 2431 removeOnDestroy: false, 2432 2433 /** 2434 * Callback called when the popper is created.<br /> 2435 * By default, it is set to no-op.<br /> 2436 * Access Popper.js instance with `data.instance`. 2437 * @prop {onCreate} 2438 */ 2439 onCreate: function onCreate() {}, 2440 2441 /** 2442 * Callback called when the popper is updated. This callback is not called 2443 * on the initialization/creation of the popper, but only on subsequent 2444 * updates.<br /> 2445 * By default, it is set to no-op.<br /> 2446 * Access Popper.js instance with `data.instance`. 2447 * @prop {onUpdate} 2448 */ 2449 onUpdate: function onUpdate() {}, 2450 2451 /** 2452 * List of modifiers used to modify the offsets before they are applied to the popper. 2453 * They provide most of the functionalities of Popper.js. 2454 * @prop {modifiers} 2455 */ 2456 modifiers: modifiers 2457}; 2458 2459/** 2460 * @callback onCreate 2461 * @param {dataObject} data 2462 */ 2463 2464/** 2465 * @callback onUpdate 2466 * @param {dataObject} data 2467 */ 2468 2469// Utils 2470// Methods 2471var Popper = function () { 2472 /** 2473 * Creates a new Popper.js instance. 2474 * @class Popper 2475 * @param {Element|referenceObject} reference - The reference element used to position the popper 2476 * @param {Element} popper - The HTML / XML element used as the popper 2477 * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults) 2478 * @return {Object} instance - The generated Popper.js instance 2479 */ 2480 function Popper(reference, popper) { 2481 var _this = this; 2482 2483 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; 2484 classCallCheck(this, Popper); 2485 2486 this.scheduleUpdate = function () { 2487 return requestAnimationFrame(_this.update); 2488 }; 2489 2490 // make update() debounced, so that it only runs at most once-per-tick 2491 this.update = debounce(this.update.bind(this)); 2492 2493 // with {} we create a new object with the options inside it 2494 this.options = _extends({}, Popper.Defaults, options); 2495 2496 // init state 2497 this.state = { 2498 isDestroyed: false, 2499 isCreated: false, 2500 scrollParents: [] 2501 }; 2502 2503 // get reference and popper elements (allow jQuery wrappers) 2504 this.reference = reference && reference.jquery ? reference[0] : reference; 2505 this.popper = popper && popper.jquery ? popper[0] : popper; 2506 2507 // Deep merge modifiers options 2508 this.options.modifiers = {}; 2509 Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) { 2510 _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {}); 2511 }); 2512 2513 // Refactoring modifiers' list (Object => Array) 2514 this.modifiers = Object.keys(this.options.modifiers).map(function (name) { 2515 return _extends({ 2516 name: name 2517 }, _this.options.modifiers[name]); 2518 }) 2519 // sort the modifiers by order 2520 .sort(function (a, b) { 2521 return a.order - b.order; 2522 }); 2523 2524 // modifiers have the ability to execute arbitrary code when Popper.js get inited 2525 // such code is executed in the same order of its modifier 2526 // they could add new properties to their options configuration 2527 // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`! 2528 this.modifiers.forEach(function (modifierOptions) { 2529 if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) { 2530 modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state); 2531 } 2532 }); 2533 2534 // fire the first update to position the popper in the right place 2535 this.update(); 2536 2537 var eventsEnabled = this.options.eventsEnabled; 2538 if (eventsEnabled) { 2539 // setup event listeners, they will take care of update the position in specific situations 2540 this.enableEventListeners(); 2541 } 2542 2543 this.state.eventsEnabled = eventsEnabled; 2544 } 2545 2546 // We can't use class properties because they don't get listed in the 2547 // class prototype and break stuff like Sinon stubs 2548 2549 2550 createClass(Popper, [{ 2551 key: 'update', 2552 value: function update$$1() { 2553 return update.call(this); 2554 } 2555 }, { 2556 key: 'destroy', 2557 value: function destroy$$1() { 2558 return destroy.call(this); 2559 } 2560 }, { 2561 key: 'enableEventListeners', 2562 value: function enableEventListeners$$1() { 2563 return enableEventListeners.call(this); 2564 } 2565 }, { 2566 key: 'disableEventListeners', 2567 value: function disableEventListeners$$1() { 2568 return disableEventListeners.call(this); 2569 } 2570 2571 /** 2572 * Schedules an update. It will run on the next UI update available. 2573 * @method scheduleUpdate 2574 * @memberof Popper 2575 */ 2576 2577 2578 /** 2579 * Collection of utilities useful when writing custom modifiers. 2580 * Starting from version 1.7, this method is available only if you 2581 * include `popper-utils.js` before `popper.js`. 2582 * 2583 * **DEPRECATION**: This way to access PopperUtils is deprecated 2584 * and will be removed in v2! Use the PopperUtils module directly instead. 2585 * Due to the high instability of the methods contained in Utils, we can't 2586 * guarantee them to follow semver. Use them at your own risk! 2587 * @static 2588 * @private 2589 * @type {Object} 2590 * @deprecated since version 1.8 2591 * @member Utils 2592 * @memberof Popper 2593 */ 2594 2595 }]); 2596 return Popper; 2597}(); 2598 2599/** 2600 * The `referenceObject` is an object that provides an interface compatible with Popper.js 2601 * and lets you use it as replacement of a real DOM node.<br /> 2602 * You can use this method to position a popper relatively to a set of coordinates 2603 * in case you don't have a DOM node to use as reference. 2604 * 2605 * ``` 2606 * new Popper(referenceObject, popperNode); 2607 * ``` 2608 * 2609 * NB: This feature isn't supported in Internet Explorer 10. 2610 * @name referenceObject 2611 * @property {Function} data.getBoundingClientRect 2612 * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method. 2613 * @property {number} data.clientWidth 2614 * An ES6 getter that will return the width of the virtual reference element. 2615 * @property {number} data.clientHeight 2616 * An ES6 getter that will return the height of the virtual reference element. 2617 */ 2618 2619 2620Popper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils; 2621Popper.placements = placements; 2622Popper.Defaults = Defaults; 2623 2624return Popper; 2625 2626}))); 2627//# sourceMappingURL=popper.js.map 2628 2629/*
2629! 2630 * Bootstrap v4.5.2 (https://getbootstrap.com/) 2631 * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 2632 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) 2633 */ 2634!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}
vendor: 4,495 bytes, line 2634
2634e=e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n;function r(t){var n=this,i=!1;return e(this).one(a.TRANSITION_END,(function(){i=!0})),setTimeout((function(){i||a.triggerTransitionEnd(n)}),t),this}var a={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var n=e(t).css("transition-duration"),i=e(t).css("transition-delay"),o=parseFloat(n),s=parseFloat(i);return o||s?(n=n.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(n)+parseFloat(i))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],s=e[i],r=s&&a.isElement(s)?"element":null===(l=s)||"undefined"==typeof l?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(r))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+r+'" but expected type "'+o+'".')}var l},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?a.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if("undefined"==typeof e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};a.jQueryDetection(),e.fn.emulateTransitionEnd=r,e.event.special[a.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var l="alert",c=e.fn[l],h=function(){function t(t){this._element=t}var n=t.prototype;return n.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},n.dispose=function(){e.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(t){var n=a.getSelectorFromElement(t),i=!1;return n&&(i=document.querySelector(n)),i||(i=e(t).closest(".alert")[0]),i},n._triggerCloseEvent=function(t){var n=e.Event("close.bs.alert");return e(t).trigger(n),n},n._removeElement=function(t){var n=this;if(e(t).removeClass("show"),e(t).hasClass("fade")){var i=a.getTransitionDurationFromElement(t);e(t).one(a.TRANSITION_END,(function(e){return n._destroyElement(t,e)})).emulateTransitionEnd(i)}else this._destroyElement(t)},n._destroyElement=function(t){e(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.alert");o||(o=new t(this),i.data("bs.alert",o)),"close"===n&&o[n](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},o(t,null,[{key:"VERSION",get:function(){return"4.5.2"}}]),t}();e(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',h._handleDismiss(new h)),e.fn[l]=h._jQueryInterface,e.fn[l].Constructor=h,e.fn[l].noConflict=function(){return e.fn[l]=c,h._jQueryInterface};var u=e.fn.button,d=function(){function t(t){this._element=t}var n=t.prototype;return n.toggle=function(){var t=!0,n=!0,i=e(this._element).closest('[data-toggle="buttons"]')[0];if(i){var o=this._element.querySelector('input:not([type="hidden"])');if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains("active"))t=!1;else{var s=i.querySelector(".active");s&&e(s).removeClass("active")}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains("active")),e(o).trigger("change")),o.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&e(this._element).toggleClass("active"))}
2634,n.dispose=function(){e.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.button");i||(i=new t(this),e(this).data("bs.button",i)),"toggle"===n&&i[n]()}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.2"}}]),t}();e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=t.target,i=n;if(e(n).hasClass("btn")||(n=e(n).closest(".btn")[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))t.preventDefault();else{var o=n.querySelector('input:not([type="hidden"])');if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();("LABEL"!==i.tagName||o&&"checkbox"!==o.type)&&d._jQueryInterface.call(e(n),"toggle")}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=e(t.target).closest(".btn")[0];e(n).toggleClass("focus",/^focus(in)?$/.test(t.type))})),e(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e<n;e++){var i=t[e],o=i.querySelector('input:not([type="hidden"])');o.checked||o.hasAttribute("checked")?i.classList.add("active"):i.classList.remove("active")}for(var s=0,r=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;s<r;s++){var a=t[s];"true"===a.getAttribute("aria-pressed")?a.classList.add("active"):a.classList.remove("active")}})),e.fn.button=d._jQueryInterface,e.fn.button.Constructor=d,e.fn.button.noConflict=function(){return e.fn.button=u,d._jQueryInterface};var f="carousel",g=".bs.carousel",m=e.fn[f],p={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},_={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},v={TOUCH:"touch",PEN:"pen"},b=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=t.prototype;return n.next=function(){this._isSliding||this._slide("next")},n.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide("prev")},n.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(a.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var n=this;this._activeElement=this._element.querySelector(".active.carousel-item");var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)e(this._element).one("slid.bs.carousel",(function(){return n.to(t)}));else{if(i===t)return this.pause(),void this.cycle();var o=t>i?"next":"prev";this._slide(o,this._items[t])}},n.dispose=function(){e(this._element).off(g),e.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=s({},p,t),a.typeCheckConfig(f,t,_),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},n._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&e(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var n=function(e){t._pointerEvent&&v[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},i=function(e){t._pointerEvent&&v[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};e(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.c
2634arousel",(function(t){return t.preventDefault()})),this._pointerEvent?(e(this._element).on("pointerdown.bs.carousel",(function(t){return n(t)})),e(this._element).on("pointerup.bs.carousel",(function(t){return i(t)})),this._element.classList.add("pointer-event")):(e(this._element).on("touchstart.bs.carousel",(function(t){return n(t)})),e(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),e(this._element).on("touchend.bs.carousel",(function(t){return i(t)})))}},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),s=this._items.length-1;if((i&&0===o||n&&o===s)&&!this._config.wrap)return e;var r=(o+("prev"===t?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},n._triggerSlideEvent=function(t,n){var i=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(".active.carousel-item")),s=e.Event("slide.bs.carousel",{relatedTarget:t,direction:n,from:o,to:i});return e(this._element).trigger(s),s},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));e(n).removeClass("active");var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&e(i).addClass("active")}},n._slide=function(t,n){var i,o,s,r=this,l=this._element.querySelector(".active.carousel-item"),c=this._getItemIndex(l),h=n||l&&this._getItemByDirection(t,l),u=this._getItemIndex(h),d=Boolean(this._interval);if("next"===t?(i="carousel-item-left",o="carousel-item-next",s="left"):(i="carousel-item-right",o="carousel-item-prev",s="right"),h&&e(h).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(h,s).isDefaultPrevented()&&l&&h){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(h);var f=e.Event("slid.bs.carousel",{relatedTarget:h,direction:s,from:c,to:u});if(e(this._element).hasClass("slide")){e(h).addClass(o),a.reflow(h),e(l).addClass(i),e(h).addClass(i);var g=parseInt(h.getAttribute("data-interval"),10);g?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=g):this._config.interval=this._config.defaultInterval||this._config.interval;var m=a.getTransitionDurationFromElement(l);e(l).one(a.TRANSITION_END,(function(){e(h).removeClass(i+" "+o).addClass("active"),e(l).removeClass("active "+o+" "+i),r._isSliding=!1,setTimeout((function(){return e(r._element).trigger(f)}),0)})).emulateTransitionEnd(m)}else e(l).removeClass("active"),e(h).addClass("active"),this._isSliding=!1,e(this._element).trigger(f);d&&this.cycle()}},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.carousel"),o=s({},p,e(this).data());"object"==typeof n&&(o=s({},o,n));var r="string"==typeof n?n:o.slide;if(i||(i=new t(this,o),e(this).data("bs.carousel",i)),"number"==typeof n)i.to(n);else if("string"==typeof r){if("undefined"==typeof i[r])throw new TypeError('No method named "'+r+'"');i[r]()}else o.interval&&o.ride&&(i.pause(),i.cycle())}))},t._dataApiClickHandler=function(n){var i=a.getSelectorFromElement(this);if(i){var o=e(i)[0];if(o&&e(o).hasClass("carousel")){var r=s({},e(o).data(),e(this).data()),l=this.getAttribute("data-slide-to");l&&(r.interval=!1),t._jQueryInterface.call(e(o),r),l&&e(o).data("bs.carousel").to(l),n.preventDefault()}}},o(t,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return p}}]),t}();e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",b._dataApiClickHandler),e(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),n=0,i=t.length;n<i;n++){var o=e(t[n]);b._jQueryInterface.call(o,o.data())}})),e.fn[f]=b._jQueryInterface,e.fn[f].Constructor=b,e.fn[f].noConflict=function(){return e.fn[f]=m,b._jQueryInterface};var y="collapse",E=e.fn[y],w={toggle:!0,parent:""},T={toggle:"boolean",parent:"(string|element)"},C=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),i=0,o=n.length;i<o;i++){var s=n[i],r=a.getSelectorFromElement(s),l=[].slice.call(document.querySelectorAll(r)).filter((function(e){return e===t}));null!==r&&l.length>0&&(this._selector=r,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=t.prototype;return n.toggle=function(){e(this._element).hasClass("show")?this.hide():this.show()},n.show=function(){var n,i,o=this;if(!this._isTransitioning&&!e(this._element).hasClass("show")&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains("collapse")}))).length&&(n=null),!(n&&(i=e(n).not(this._selector).data("bs.collapse"))&&i._isTransitioning))){var s=e.Event("show.bs.collapse");if(e(this._element).trigger(s),!s.isDefaultPrevented()){n&&(t._jQueryInterface.call(e(n).not(this._selector),"hide"),i||e(n).data("bs.collapse",null));var r=this._getDimension();e(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[r]=0,this._triggerArray.length&&e(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var l="scroll"+(r[0].toUpperCase()+r.slice(1)),c=a.getTransitionDurationFromElement(this._element);e(this._element).one(a.TRANSITION_END,(function(){e(o._element).removeClass("collapsing").addClass("collapse show"),o._element.style[r]="",o.setTransitioning(!1),e(o._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(c),this._element.style[r]=this._element[l]+"px"}}},n.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass("show")){var n=e.Event("hide.bs.collapse");if(e(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",a.reflow(this._element),e(this._element).addClass("collapsing").removeClass("collapse show");var o=this._triggerArray.length;if(o>0)for(var s=0;s<o;s++){var r=this._triggerArray[s],l=a.getSelectorFromElement(r);if(null!==l)e([].slice.call(document.querySelectorAll(l))).hasClass("show")||e(r).addClass("collapsed").attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[i]="";var c=a.getTransitionDurationFromElement(this._element);e(this._element).one(a.TRANSITION_END,(function(){t.setTransitioning(!1),e(t._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(c)}}},n.setTransitioning=function(t){this._isTransitioning=t}
2634,n.dispose=function(){e.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(t){return(t=s({},w,t)).toggle=Boolean(t.toggle),a.typeCheckConfig(y,t,T),t},n._getDimension=function(){return e(this._element).hasClass("width")?"width":"height"},n._getParent=function(){var n,i=this;a.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',s=[].slice.call(n.querySelectorAll(o));return e(s).each((function(e,n){i._addAriaAndCollapsedClass(t._getTargetFromElement(n),[n])})),n},n._addAriaAndCollapsedClass=function(t,n){var i=e(t).hasClass("show");n.length&&e(n).toggleClass("collapsed",!i).attr("aria-expanded",i)},t._getTargetFromElement=function(t){var e=a.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.collapse"),r=s({},w,i.data(),"object"==typeof n&&n?n:{});if(!o&&r.toggle&&"string"==typeof n&&/show|hide/.test(n)&&(r.toggle=!1),o||(o=new t(this,r),i.data("bs.collapse",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n]()}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return w}}]),t}();e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=e(this),i=a.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(i));e(o).each((function(){var t=e(this),i=t.data("bs.collapse")?"toggle":n.data();C._jQueryInterface.call(t,i)}))})),e.fn[y]=C._jQueryInterface,e.fn[y].Constructor=C,e.fn[y].noConflict=function(){return e.fn[y]=E,C._jQueryInterface};var S="dropdown",k=e.fn[S],D=new RegExp("38|40|27"),N={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},A={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},I=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var i=t.prototype;return i.toggle=function(){if(!this._element.disabled&&!e(this._element).hasClass("disabled")){var n=e(this._menu).hasClass("show");t._clearMenus(),n||this.show(!0)}},i.show=function(i){if(void 0===i&&(i=!1),!(this._element.disabled||e(this._element).hasClass("disabled")||e(this._menu).hasClass("show"))){var o={relatedTarget:this._element},s=e.Event("show.bs.dropdown",o),r=t._getParentFromElement(this._element);if(e(r).trigger(s),!s.isDefaultPrevented()){if(!this._inNavbar&&i){if("undefined"==typeof n)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var l=this._element;"parent"===this._config.reference?l=r:a.isElement(this._config.reference)&&(l=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(l=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(r).addClass("position-static"),this._popper=new n(l,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(r).closest(".navbar-nav").length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass("show"),e(r).toggleClass("show").trigger(e.Event("shown.bs.dropdown",o))}}},i.hide=function(){if(!this._element.disabled&&!e(this._element).hasClass("disabled")&&e(this._menu).hasClass("show")){var n={relatedTarget:this._element},i=e.Event("hide.bs.dropdown",n),o=t._getParentFromElement(this._element);e(o).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),e(this._menu).toggleClass("show"),e(o).toggleClass("show").trigger(e.Event("hidden.bs.dropdown",n)))}}
2634,i.dispose=function(){e.removeData(this._element,"bs.dropdown"),e(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},i.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},i._addEventListeners=function(){var t=this;e(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},i._getConfig=function(t){return t=s({},this.constructor.Default,e(this._element).data(),t),a.typeCheckConfig(S,t,this.constructor.DefaultType),t},i._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},i._getPlacement=function(){var t=e(this._element.parentNode),n="bottom-start";return t.hasClass("dropup")?n=e(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?n="right-start":t.hasClass("dropleft")?n="left-start":e(this._menu).hasClass("dropdown-menu-right")&&(n="bottom-end"),n},i._detectNavbar=function(){return e(this._element).closest(".navbar").length>0},i._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},i._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),s({},t,this._config.popperConfig)},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.dropdown");if(i||(i=new t(this,"object"==typeof n?n:null),e(this).data("bs.dropdown",i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},t._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var i=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),o=0,s=i.length;o<s;o++){var r=t._getParentFromElement(i[o]),a=e(i[o]).data("bs.dropdown"),l={relatedTarget:i[o]};if(n&&"click"===n.type&&(l.clickEvent=n),a){var c=a._menu;if(e(r).hasClass("show")&&!(n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"keyup"===n.type&&9===n.which)&&e.contains(r,n.target))){var h=e.Event("hide.bs.dropdown",l);e(r).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),i[o].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),e(c).removeClass("show"),e(r).removeClass("show").trigger(e.Event("hidden.bs.dropdown",l)))}}}},t._getParentFromElement=function(t){var e,n=a.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(n){if(!(/input|textarea/i.test(n.target.tagName)?32===n.which||27!==n.which&&(40!==n.which&&38!==n.which||e(n.target).closest(".dropdown-menu").length):!D.test(n.which))&&!this.disabled&&!e(this).hasClass("disabled")){var i=t._getParentFromElement(this),o=e(i).hasClass("show");if(o||27!==n.which){if(n.preventDefault(),n.stopPropagation(),!o||o&&(27===n.which||32===n.which))return 27===n.which&&e(i.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void e(this).trigger("click");var s=[].slice.call(i.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return e(t).is(":visible")}));if(0!==s.length){var r=s.indexOf(n.target);38===n.which&&r>0&&r--,40===n.which&&r<s.length-1&&r++,r<0&&(r=0),s[r].focus()}}}},o(t,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return N}},{key:"DefaultType",get:function(){return A}}]),t}();e(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',I._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",I._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",I._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(t){t.preventDefault(),t.stopPropagation(),I._jQueryInterface.call(e(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})),e.fn[S]=I._jQueryInterface,e.fn[S].Constructor=I,e.fn[S].noConflict=function(){return e.fn[S]=k,I._jQueryInterface};var O=e.fn.modal,j={backdrop:!0,keyboard:!0,focus:!0,show:!0},x={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},P=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var n=t.prototype;return n.toggle=function(t){return this._isShown?this.hide():this.show(t)},n.show=function(t){var n=this;if(!this._isShown&&!this._isTransitioning){e(this._element).hasClass("fade")&&(this._isTransitioning=!0);var i=e.Event("show.bs.modal",{relatedTarget:t});e(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(t){return n.hide(t)})),e(this._dialog).on("mousedown.dismiss.bs.modal",(function(){e(n._element).one("mouseup.dismiss.bs.modal",(function(t){e(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return n._showElement(t)})))}},n.hide=function(t){var n=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var i=e.Event("hide.bs.modal");if(e(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var o=e(this._element).hasClass("fade");if(o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off("focusin.bs.modal"),e(this._element).removeClass("show"),e(this._element).off("
2634click.dismiss.bs.modal"),e(this._dialog).off("mousedown.dismiss.bs.modal"),o){var s=a.getTransitionDurationFromElement(this._element);e(this._element).one(a.TRANSITION_END,(function(t){return n._hideModal(t)})).emulateTransitionEnd(s)}else this._hideModal()}}},n.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return e(t).off(".bs.modal")})),e(document).off("focusin.bs.modal"),e.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(t){return t=s({},j,t),a.typeCheckConfig("modal",t,x),t},n._triggerBackdropTransition=function(){var t=this;if("static"===this._config.backdrop){var n=e.Event("hidePrevented.bs.modal");if(e(this._element).trigger(n),n.defaultPrevented)return;var i=this._element.scrollHeight>document.documentElement.clientHeight;i||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var o=a.getTransitionDurationFromElement(this._dialog);e(this._element).off(a.TRANSITION_END),e(this._element).one(a.TRANSITION_END,(function(){t._element.classList.remove("modal-static"),i||e(t._element).one(a.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,o)})).emulateTransitionEnd(o),this._element.focus()}else this.hide()},n._showElement=function(t){var n=this,i=e(this._element).hasClass("fade"),o=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),e(this._dialog).hasClass("modal-dialog-scrollable")&&o?o.scrollTop=0:this._element.scrollTop=0,i&&a.reflow(this._element),e(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var s=e.Event("shown.bs.modal",{relatedTarget:t}),r=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,e(n._element).trigger(s)};if(i){var l=a.getTransitionDurationFromElement(this._dialog);e(this._dialog).one(a.TRANSITION_END,r).emulateTransitionEnd(l)}else r()},n._enforceFocus=function(){var t=this;e(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(n){document!==n.target&&t._element!==n.target&&0===e(t._element).has(n.target).length&&t._element.focus()}))},n._setEscapeEvent=function(){var t=this;this._isShown?e(this._element).on("keydown.dismiss.bs.modal",(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||e(this._element).off("keydown.dismiss.bs.modal")},n._setResizeEvent=function(){var t=this;this._isShown?e(window).on("resize.bs.modal",(function(e){return t.handleUpdate(e)})):e(window).off("resize.bs.modal")},n._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){e(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger("hidden.bs.modal")}))},n._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(t){var n=this,i=e(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),e(this._backdrop).appendTo(document.body),e(this._element).on("click.dismiss.bs.modal",(function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&n._triggerBackdropTransition()})),i&&a.reflow(this._backdrop),e(this._backdrop).addClass("show"),!t)return;if(!i)return void t();var o=a.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(a.TRANSITION_END,t).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass("show");var s=function(){n._removeBackdrop(),t&&t()};if(e(this._element).hasClass("fade")){var r=a.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(a.TRANSITION_END,s).emulateTransitionEnd(r)}else s()}else t&&t()},n._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),i=[].slice.call(document.querySelectorAll(".sticky-top"));e(n).each((function(n,i){var o=i.style.paddingRight,s=e(i).css("padding-right");e(i).data("padding-right",o).css("padding-right",parseFloat(s)+t._scrollbarWidth+"px")})),e(i).each((function(n,i){var o=i.style.marginRight,s=e(i).css("margin-right");e(i).data("margin-right",o).css("margin-right",parseFloat(s)-t._scrollbarWidth+"px")}));var o=document.body.style.paddingRight,s=e(document.body).css("padding-right");e(document.body).data("padding-right",o).css("padding-right",parseFloat(s)+this._scrollbarWidth+"px")}e(document.body).addClass("modal-open")},n._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));e(t).each((function(t,n){var i=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=i||""}));var n=[].slice.call(document.querySelectorAll(".sticky-top"));e(n).each((function(t,n){var i=e(n).data("margin-right");"undefined"!=typeof i&&e(n).css("margin-right",i).removeData("margin-right")}));
2634var i=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},n._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(n,i){return this.each((function(){var o=e(this).data("bs.modal"),r=s({},j,e(this).data(),"object"==typeof n&&n?n:{});if(o||(o=new t(this,r),e(this).data("bs.modal",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n](i)}else r.show&&o.show(i)}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return j}}]),t}();e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var n,i=this,o=a.getSelectorFromElement(this);o&&(n=document.querySelector(o));var r=e(n).data("bs.modal")?"toggle":s({},e(n).data(),e(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var l=e(n).one("show.bs.modal",(function(t){t.isDefaultPrevented()||l.one("hidden.bs.modal",(function(){e(i).is(":visible")&&i.focus()}))}));P._jQueryInterface.call(e(n),r,this)})),e.fn.modal=P._jQueryInterface,e.fn.modal.Constructor=P,e.fn.modal.noConflict=function(){return e.fn.modal=O,P._jQueryInterface};var R=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],L={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},q=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,F=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function Q(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var i=(new window.DOMParser).parseFromString(t,"text/html"),o=Object.keys(e),s=[].slice.call(i.body.querySelectorAll("*")),r=function(t,n){var i=s[t],r=i.nodeName.toLowerCase();if(-1===o.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var a=[].slice.call(i.attributes),l=[].concat(e["*"]||[],e[r]||[]);a.forEach((function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===R.indexOf(n)||Boolean(t.nodeValue.match(q)||t.nodeValue.match(F));for(var i=e.filter((function(t){return t instanceof RegExp})),o=0,s=i.length;o<s;o++)if(n.match(i[o]))return!0;return!1})(t,l)||i.removeAttribute(t.nodeName)}))},a=0,l=s.length;a<l;a++)r(a);return i.body.innerHTML}var B="tooltip",H=e.fn[B],U=new RegExp("(^|\\s)bs-tooltip\\S+","g"),M=["sanitize","whiteList","sanitizeFn"],W={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},V={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},z={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:L,popperConfig:null},K={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},X=function(){function t(t,e){if("undefined"==typeof n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var i=t.prototype;return i.enable=function(){this._isEnabled=!0},i.disable=function(){this._isEnabled=!1},i.toggleEnabled=function(){this._isEnabled=!this._isEnabled},i.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},i.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},i.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var i=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(i);var o=a.findShadowRoot(this.element),s=e.contains(null!==o?o:this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!s)return;var r=this.getTipElement(),l=a.getUID(this.constructor.NAME);r.setAttribute("id",l),this.element.setAttribute("aria-describedby",l),this.setContent(),this.config.animation&&e(r).addClass("fade");var c="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,h=this._getAttachment(c);this.addAttachmentClass(h);var u=this._getContainer();e(r).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(r).appendTo(u),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,r,this._getPopperConfig(h)),e(r).addClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var d=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),"out"===n&&t._leave(null,t)};if(e(this.tip).hasClass("fade")){var f=a.getTransitionDurationFromElement(this.tip);e(this.tip).one(a.TRANSITION_END,d).emulateTransitionEnd(f)}else d()}},i.hide=function(t){var n=this,i=this.getTipElement(),o=e.Event(this.constructor.Event.HIDE),s=function(){"show"!==n._hoverState&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};
2634if(e(this.element).trigger(o),!o.isDefaultPrevented()){if(e(i).removeClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,e(this.tip).hasClass("fade")){var r=a.getTransitionDurationFromElement(i);e(i).one(a.TRANSITION_END,s).emulateTransitionEnd(r)}else s();this._hoverState=""}},i.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},i.isWithContent=function(){return Boolean(this.getTitle())},i.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-tooltip-"+t)},i.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},i.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(".tooltip-inner")),this.getTitle()),e(t).removeClass("fade show")},i.setElementContent=function(t,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=Q(n,this.config.whiteList,this.config.sanitizeFn)),t.html(n)):t.text(n):this.config.html?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text())},i.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},i._getPopperConfig=function(t){var e=this;return s({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},i._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},i._getContainer=function(){return!1===this.config.container?document.body:a.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)},i._getAttachment=function(t){return V[t.toUpperCase()]},i._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==n){var i="hover"===n?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o="hover"===n?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(i,t.config.selector,(function(e){return t._enter(e)})).on(o,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},i._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},i._enter=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e(n.getTipElement()).hasClass("show")||"show"===n._hoverState?n._hoverState="show":(clearTimeout(n._timeout),n._hoverState="show",n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){"show"===n._hoverState&&n.show()}),n.config.delay.show):n.show())},i._leave=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState="out",n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){"out"===n._hoverState&&n.hide()}),n.config.delay.hide):n.hide())},i._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},i._getConfig=function(t){var n=e(this.element).data();
vendor: 5,378 bytes, line 2634
2634return Object.keys(n).forEach((function(t){-1!==M.indexOf(t)&&delete n[t]})),"number"==typeof(t=s({},this.constructor.Default,n,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),a.typeCheckConfig(B,t,this.constructor.DefaultType),t.sanitize&&(t.template=Q(t.template,t.whiteList,t.sanitizeFn)),t},i._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},i._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(U);null!==n&&n.length&&t.removeClass(n.join(""))},i._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},i._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.tooltip"),o="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new t(this,o),e(this).data("bs.tooltip",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return z}},{key:"NAME",get:function(){return B}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return K}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return W}}]),t}();e.fn[B]=X._jQueryInterface,e.fn[B].Constructor=X,e.fn[B].noConflict=function(){return e.fn[B]=H,X._jQueryInterface};var Y="popover",$=e.fn[Y],J=new RegExp("(^|\\s)bs-popover\\S+","g"),G=s({},X.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Z=s({},X.DefaultType,{content:"(string|element|function)"}),tt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},et=function(t){var n,i;function s(){return t.apply(this,arguments)||this}i=t,(n=s).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i;var r=s.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-popover-"+t)},r.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},r.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(".popover-body"),n),t.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(J);null!==n&&n.length>0&&t.removeClass(n.join(""))},s._jQueryInterface=function(t){return this.each((function(){var n=e(this).data("bs.popover"),i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new s(this,i),e(this).data("bs.popover",n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},o(s,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return G}},{key:"NAME",get:function(){return Y}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return tt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Z}}]),s}(X);e.fn[Y]=et._jQueryInterface,e.fn[Y].Constructor=et,e.fn[Y].noConflict=function(){return e.fn[Y]=$,et._jQueryInterface};var nt="scrollspy",it=e.fn[nt],ot={offset:10,method:"auto",target:""},st={offset:"number",method:"string",target:"(string|element)"},rt=function(){function t(t,n){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return i._process(t)})),this.refresh(),this._process()}var n=t.prototype;return n.refresh=function(){var t=this,n=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?n:this._config.method,o="position"===i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var n,s=a.getSelectorFromElement(t);if(s&&(n=document.querySelector(s)),n){var r=n.getBoundingClientRect();if(r.width||r.height)return[e(n)[i]().top+o,s]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]}
2634)).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},n.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){if("string"!=typeof(t=s({},ot,"object"==typeof t&&t?t:{})).target&&a.isElement(t.target)){var n=e(t.target).attr("id");n||(n=a.getUID(nt),e(t.target).attr("id",n)),t.target="#"+n}return a.typeCheckConfig(nt,t,st),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}}},n._activate=function(t){this._activeTarget=t,this._clear();var n=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),i=e([].slice.call(document.querySelectorAll(n.join(","))));i.hasClass("dropdown-item")?(i.closest(".dropdown").find(".dropdown-toggle").addClass("active"),i.addClass("active")):(i.addClass("active"),i.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),i.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),e(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:t})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains("active")})).forEach((function(t){return t.classList.remove("active")}))},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.scrollspy");if(i||(i=new t(this,"object"==typeof n&&n),e(this).data("bs.scrollspy",i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"Default",get:function(){return ot}}]),t}();e(window).on("load.bs.scrollspy.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),n=t.length;n--;){var i=e(t[n]);rt._jQueryInterface.call(i,i.data())}})),e.fn[nt]=rt._jQueryInterface,e.fn[nt].Constructor=rt,e.fn[nt].noConflict=function(){return e.fn[nt]=it,rt._jQueryInterface};var at=e.fn.tab,lt=function(){function t(t){this._element=t}var n=t.prototype;return n.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass("active")||e(this._element).hasClass("disabled"))){var n,i,o=e(this._element).closest(".nav, .list-group")[0],s=a.getSelectorFromElement(this._element);if(o){var r="UL"===o.nodeName||"OL"===o.nodeName?"> li > .active":".active";i=(i=e.makeArray(e(o).find(r)))[i.length-1]}var l=e.Event("hide.bs.tab",{relatedTarget:this._element}),c=e.Event("show.bs.tab",{relatedTarget:i});if(i&&e(i).trigger(l),e(this._element).trigger(c),!c.isDefaultPrevented()&&!l.isDefaultPrevented()){s&&(n=document.querySelector(s)),this._activate(this._element,o);var h=function(){var n=e.Event("hidden.bs.tab",{relatedTarget:t._element}),o=e.Event("shown.bs.tab",{relatedTarget:i});e(i).trigger(n),e(t._element).trigger(o)};n?this._activate(n,n.parentNode,h):h()}}}
2634,n.dispose=function(){e.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(t,n,i){var o=this,s=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?e(n).children(".active"):e(n).find("> li > .active"))[0],r=i&&s&&e(s).hasClass("fade"),l=function(){return o._transitionComplete(t,s,i)};if(s&&r){var c=a.getTransitionDurationFromElement(s);e(s).removeClass("show").one(a.TRANSITION_END,l).emulateTransitionEnd(c)}else l()},n._transitionComplete=function(t,n,i){if(n){e(n).removeClass("active");var o=e(n.parentNode).find("> .dropdown-menu .active")[0];o&&e(o).removeClass("active"),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),a.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&e(t.parentNode).hasClass("dropdown-menu")){var s=e(t).closest(".dropdown")[0];if(s){var r=[].slice.call(s.querySelectorAll(".dropdown-toggle"));e(r).addClass("active")}t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.tab");if(o||(o=new t(this),i.data("bs.tab",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n]()}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.2"}}]),t}();e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),lt._jQueryInterface.call(e(this),"show")})),e.fn.tab=lt._jQueryInterface,e.fn.tab.Constructor=lt,e.fn.tab.noConflict=function(){return e.fn.tab=at,lt._jQueryInterface};var ct=e.fn.toast,ht={animation:"boolean",autohide:"boolean",delay:"number"},ut={animation:!0,autohide:!0,delay:500},dt=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var n=t.prototype;return n.show=function(){var t=this,n=e.Event("show.bs.toast");if(e(this._element).trigger(n),!n.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var i=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),e(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),a.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var o=a.getTransitionDurationFromElement(this._element);e(this._element).one(a.TRANSITION_END,i).emulateTransitionEnd(o)}else i()}},n.hide=function(){if(this._element.classList.contains("show")){var t=e.Event("hide.bs.toast");e(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},n.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),e(this._element).off("click.dismiss.bs.toast"),e.removeData(this._element,"bs.toast"),this._element=null,this._config=null},n._getConfig=function(t){return t=s({},ut,e(this._element).data(),"object"==typeof t&&t?t:{}),a.typeCheckConfig("toast",t,this.constructor.DefaultType),t},n._setListeners=function(){var t=this;e(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},n._close=function(){var t=this,n=function(){t._element.classList.add("hide"),e(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var i=a.getTransitionDurationFromElement(this._element);e(this._element).one(a.TRANSITION_END,n).emulateTransitionEnd(i)}else n()},n._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.toast");if(o||(o=new t(this,"object"==typeof n&&n),i.data("bs.toast",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n](this)}}))},o(t,null,[{key:"VERSION",get:function(){return"4.5.2"}},{key:"DefaultType",get:function(){return ht}},{key:"Default",get:function(){return ut}}]),t}();e.fn.toast=dt._jQueryInterface,e.fn.toast.Constructor=dt,e.fn.toast.noConflict=function(){return e.fn.toast=ct,dt._jQueryInterface},t.Alert=h,t.Button=d,t.Carousel=b,t.Collapse=C,t.Dropdown=I,t.Modal=P,t.Popover=et,t.Scrollspy=rt,t.Tab=lt,t.Toast=dt,t.Tooltip=X,t.Util=a,Object.defineProperty(t,"__esMo
2634dule",{value:!0})})); 2635//# sourceMappingURL=bootstrap.min.js.map
vendor: 36,085 bytes, lines 2636-2642
2636/** 2637 * Owl Carousel v2.3.4 2638 * Copyright 2013-2018 David Deutsch 2639 * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE 2640 */ 2641!function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a.charAt(0).toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g>0;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i,g-=1;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;c<d;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],e.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(a("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},e.prototype.initializeItems=function(){var b=this.$element.find(".owl-item");if(b.length)return this._items=b.get().map(function(b){return a(b)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var a,b,c;a=this.$element.find("img"),b=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,c=this.$element.children(b).width(),a.length&&c<=0&&this.preloadAutoWidthImages(a)}this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){a<=b&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),"function"==typeof e.stagePadding&&(e.stagePadding=e.stagePadding()),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};b<c;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),c=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var e=-1,f=30,g=this.width(),h=this.coordinates();return this.settings.freeDrag||a.each(h,a.proxy(function(a,i){return"left"===c&&b>i-f&&b<i+f?e=a:"right"===c&&b>i-g-f&&b<i-g+f?e=a+1:this.op(b,"<",i)&&this.op(b,">",h[a+1]!==d?h[a+1]:i-g)&&(e="left"===c?a+1:a),-1===e},this)),this.settings.loop||(this.op(b,">",h[this.minimum()])?e=b=this.minimum():this.op(b,"<",h[this.maximum()])&&(e=b=this.maximum())),e},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){(a=this.normalize(a))!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(a,b){var c=this._items.length,e=b?0:this._clones.length;return!this.isNumeric(a)||c<1?a=d:(a<0||a>=c+e)&&(a=((a-e/2)%c+c)%c+e/2),a},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c,d,e=this.settings,f=this._coordinates.length;if(e.loop)f=this._clones.length/2+this._items.length-1;else if(e.autoWidth||e.merge){if(b=this._items.length)for(c=this._items[--b].width(),d=this.$element.width();b--&&!((c+=this._items[b].width()+this.settings.margin)>d););f=b+1}else f=e.center?this._items.length-1:this._items.length-e.items;return a&&(f-=this._clones.length/2),Math.max(f,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2==0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c,e=1,f=b-1;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(this.settings.rtl&&(e=-1,f=b+1),c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[f]||0))/2*e):c=this._coordinates[f]||0,c=Math.ceil(c))},e.prototype.duration=function(a,b,c){return 0===c?0:Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(e<0),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,(d=((a-h)%g+g)%g+h)!==a&&d-e<=i&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.isVisible()&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){if(a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},e.prototype.viewport=function(){var d;return this.options.responsiveBaseElement!==b?d=a(this.options.responsiveBaseElement).width():b.innerWidth?d=b.innerWidth:c.documentElement&&c.documentElement.clientWidth?d=c.documentElement.clientWidth:console.warn("Can not detect viewport width."),d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)},this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){(a=this.normalize(a,!0))!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),!1!==this.settings.responsive&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:a<c;case">":return d?a<c:a>c;case">=":return d?a<=c:a>=c;case"<=":return d?a>=c:a<=c}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d,f,g){var h={item:{count:this._items.length,index:this.current()}},i=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),j=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},h,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(j)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(j),this.settings&&"function"==typeof this.settings[i]&&this.settings[i].call(this,j)),j},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf("owl")?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]?this._states.tags[b.name]=this._states.tags[b.name].concat(b.tags):this._states.tags[b.name]=b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.isNumeric=function(a){return!isNaN(parseFloat(a))},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={autoRefresh:!0,autoRefreshInterval:500},e.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},e.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},e.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":a.proxy(function(b){if(b.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(b.property&&"position"==b.property.name||"initialized"==b.type)){var c=this._core.settings,e=c.center&&Math.ceil(c.items/2)||c.items,f=c.center&&-1*e||0,g=(b.property&&b.property.value!==d?b.property.value:this._core.current())+f,h=this._core.clones().length,i=a.proxy(function(a,b){this.load(b)},this);for(c.lazyLoadEager>0&&(e+=c.lazyLoadEager,c.loop&&(g-=c.lazyLoadEager,e++));f++<e;)this.load(h/2+this._core.relative(g)),h&&a.each(this._core.clones(this._core.relative(g)),i),g++}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1,lazyLoadEager:0},e.prototype.load=function(c){var d=this._core.$stage.children().eq(c),e=d&&d.find(".owl-lazy");!e||a.inArray(d.get(0),this._loaded)>-1||(e.each(a.proxy(function(c,d){var e,f=a(d),g=b.devicePixelRatio>1&&f.attr("data-src-retina")||f.attr("data-src")||f.attr("data-srcset");this._core.trigger("load",{element:f,url:g},"lazy"),f.is("img")?f.one("load.owl.lazy",a.proxy(function(){f.css("opacity",1),this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("src",g):f.is("source")?f.one("load.owl.lazy",a.proxy(function(){this._core.trigger("loaded",{element:f,url:g},"lazy")},this)).attr("srcset",g):(e=new Image,e.onload=a.proxy(function(){f.css({"background-image":'url("'+g+'")',opacity:"1"}),this._core.trigger("loaded",{element:f,url:g},"lazy")},this),e.src=g)},this)),this._loaded.push(d.get(0)))},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this._core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(c){this._core=c,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"===a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var d=this;a(b).on("load",function(){d._core.settings.autoHeight&&d.update()}),a(b).resize(function(){d._core.settings.autoHeight&&(null!=d._intervalId&&clearTimeout(d._intervalId),d._intervalId=setTimeout(function(){d.update()},250))})};e.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},e.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.settings.lazyLoad,e=this._core.$stage.children().toArray().slice(b,c),f=[],g=0;a.each(e,function(b,c){f.push(a(c).height())}),g=Math.max.apply(null,f),g<=1&&d&&this._previousHeight&&(g=this._previousHeight),this._previousHeight=g,this._core.$stage.parent().height(g).addClass(this._core.settings.autoHeightClass)},e.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})},this),"resize.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.video&&this.isInFullScreen()&&a.preventDefault()},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"===a.property.name&&this._playing&&this.stop()},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find(".owl-video");c.length&&(c.css("display","none"),this.fetch(c,a(b.content)))}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",a.proxy(function(a){this.play(a)},this))};e.Defaults={video:!1,videoHeight:!1,videoWidth:!1},e.prototype.fetch=function(a,b){var c=function(){return a.attr("data-vimeo-id")?"vimeo":a.attr("data-vzaar-id")?"vzaar":"youtube"}(),d=a.attr("data-vimeo-id")||a.attr("data-youtube-id")||a.attr("data-vzaar-id"),e=a.attr("data-width")||this._core.settings.videoWidth,f=a.attr("data-height")||this._core.settings.videoHeight,g=a.attr("href");if(!g)throw new Error("Missing video URL.");if(d=g.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),d[3].indexOf("youtu")>-1)c="youtube";else if(d[3].indexOf("vimeo")>-1)c="vimeo";else{if(!(d[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");c="vzaar"}d=d[6],this._videos[g]={type:c,id:d,width:e,height:f},b.attr("data-video",g),this.thumbnail(a,this._videos[g])},e.prototype.thumbnail=function(b,c){var d,e,f,g=c.width&&c.height?"width:"+c.width+"px;height:"+c.height+"px;":"",h=b.find("img"),i="src",j="",k=this._core.settings,l=function(c){e='<div class="owl-video-play-icon"></div>',d=k.lazyLoad?a("<div/>",{class:"owl-video-tn "+j,srcType:c}):a("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+c+")"}),b.after(d),b.after(e)};if(b.wrap(a("<div/>",{class:"owl-video-wrapper",style:g})),this._core.settings.lazyLoad&&(i="data-src",j="owl-lazy"),h.length)return l(h.attr(i)),h.remove(),!1;"youtube"===c.type?(f="//img.youtube.com/vi/"+c.id+"/hqdefault.jpg",l(f)):"vimeo"===c.type?a.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a[0].thumbnail_large,l(f)}}):"vzaar"===c.type&&a.ajax({type:"GET",url:"//vzaar.com/api/videos/"+c.id+".json",jsonp:"callback",dataType:"jsonp",success:function(a){f=a.framegrab_url,l(f)}})},e.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},e.prototype.play=function(b){var c,d=a(b.target),e=d.closest("."+this._core.settings.itemClass),f=this._videos[e.attr("data-video")],g=f.width||"100%",h=f.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),e=this._core.items(this._core.relative(e.index())),this._core.reset(e.index()),c=a('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>'),c.attr("height",h),c.attr("width",g),"youtube"===f.type?c.attr("src","//www.youtube.com/embed/"+f.id+"?autoplay=1&rel=0&v="+f.id):"vimeo"===f.type?c.attr("src","//player.vimeo.com/video/"+f.id+"?autoplay=1"):"vzaar"===f.type&&c.attr("src","//view.vzaar.com/"+f.id+"/player?autoplay=true"),a(c).wrap('<div class="owl-video-frame" />').insertAfter(e.find(".owl-video")),this._playing=e.addClass("owl-video-playing"))},e.prototype.isInFullScreen=function(){var b=c.fullscreenElement||c.mozFullScreenElement||c.webkitFullscreenElement;return b&&a(b).parent().hasClass("owl-video-frame")},e.prototype.destroy=function(){var a,b;this._core.$element.off("click.owl.video");for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Video=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1, 2642animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this._core=b,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name?this._core.settings.autoplay?this.play():this.stop():a.namespace&&"position"===a.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":a.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},e.Defaults,this._core.options)};e.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},e.prototype._next=function(d){this._call=b.setTimeout(a.proxy(this._next,this,d),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||c.hidden||this._core.next(d||this._core.settings.autoplaySpeed)},e.prototype.read=function(){return(new Date).getTime()-this._time},e.prototype.play=function(c,d){var e;this._core.is("rotating")||this._core.enter("rotating"),c=c||this._core.settings.autoplayTimeout,e=Math.min(this._time%(this._timeout||c),c),this._paused?(this._time=this.read(),this._paused=!1):b.clearTimeout(this._call),this._time+=this.read()%c-e,this._timeout=c,this._call=b.setTimeout(a.proxy(this._next,this,d),c-e)},e.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,b.clearTimeout(this._call),this._core.leave("rotating"))},e.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,b.clearTimeout(this._call))},e.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(b){this._core=b,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to}
vendor: 5,569 bytes, line 2642
2642,this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label="Previous">‹</span>','<span aria-label="Next">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(a){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(a){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a('<button role="button">').addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},e.prototype.destroy=function(){var a,b,c,d,e;e=this._core.settings;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)"$relative"===b&&e.navContainer?this._controls[b].html(""):this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},e.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;a<e;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},e.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):b<0&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},e.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a,c){return a.start<=b&&a.end>=b},this)).pop()},e.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},e.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},e.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},e.prototype.to=function(b,c,d){var e;!d&&this._pages.length?(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c)):a.proxy(this._overrides.to,this._core)(b,c)},a.fn.owlCarousel.Constructor.Plugins.Navigation=e}(
vendor: 2,689 bytes, line 2642
2642window.Zepto||window.jQuery,window,document),function(a,b,c,d){"use strict";var e=function(c){this._core=c,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":a.proxy(function(c){c.namespace&&"URLHash"===this._core.settings.startPosition&&a(b).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":a.proxy(function(b){if(b.namespace){var c=a(b.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!c)return;this._hashes[c]=b.content}},this),"changed.owl.carousel":a.proxy(function(c){if(c.namespace&&"position"===c.property.name){var d=this._core.items(this._core.relative(this._core.current())),e=a.map(this._hashes,function(a,b){return a===d?b:null}).join();if(!e||b.location.hash.slice(1)===e)return;b.location.hash=e}},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),a(b).on("hashchange.owl.navigation",a.proxy(function(a){var c=b.location.hash.substring(1),e=this._core.$stage.children(),f=this._hashes[c]&&e.index(this._hashes[c]);f!==d&&f!==this._core.current()&&this._core.to(this._core.relative(f),!1,!0)},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var c,d;a(b).off("hashchange.owl.navigation");for(c in this._handlers)this._core.$element.off(c,this._handlers[c]);for(d in Object.getOwnPropertyNames(this))"function"!=typeof this[d]&&(this[d]=null)},a.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){function e(b,c){var e=!1,f=b.charAt(0).toUpperCase()+b.slice(1);return a.each((b+" "+h.join(f+" ")+f).split(" "),function(a,b){if(g[b]!==d)return e=!c||b,!1}),e}function f(a){return e(a,!0)}var g=a("<support>").get(0).style,h="Webkit Moz O ms".split(" "),i={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},j={csstransforms:function(){return!!e("transform")},csstransforms3d:function(){return!!e("perspective")},csstransitions:function(){return!!e("transition")},cssanimations:function(){return!!e("animation")}};j.csstransitions()&&(a.support.transition=new String(f("transition")),a.support.transition.end=i.transition.end[a.support.transition]),j.cssanimations()&&(a.support.animation=new String(f("animation")),a.support.animation.end=i.animation.end[a.support.animation]),j.csstransforms()&&(a.support.transform=new String(f("transform")),a.support.transform3d=j.csstransforms3d())}(window.Zepto||window.jQuery,window,document);
vendor: 68,253 bytes, lines 2643-2655
2643// ================================================== 2644// fancyBox v3.5.7 2645// 2646// Licensed GPLv3 for open source use 2647// or fancyBox Commercial License for commercial use 2648// 2649// http://fancyapps.com/fancybox/ 2650// Copyright 2019 fancyApps 2651// 2652// ================================================== 2653!function(t,e,n,o){"use strict";function i(t,e){var o,i,a,s=[],r=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=h(t.data.options,e)),o=e.$target||n(t.currentTarget).trigger("blur"),(a=n.fancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(e.selector?s=n(e.selector):(i=o.attr("data-fancybox")||"",i?(s=t.data?t.data.items:[],s=s.length?s.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]')):s=[o]),r=n(s).index(o),r<0&&(r=0),a=n.fancybox.open(s,e,r),a.$trigger=o))}if(t.console=t.console||{info:function(t){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var a={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),f=function(){var t,n=e.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(void 0!==n.style[t])return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){n.isArray(e)&&(o[t]=e)}),o},g=function(t){var o,i;return!(!t||t.ownerDocument!==e)&&(n(".fancybox-container").css("pointer-events","none"),o={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},i=e.elementFromPoint(o.x,o.y)===t,n(".fancybox-container").css("pointer-events",""),i)},b=function(t,e,o){var i=this;i.opts=h({index:o},n.fancybox.defaults),n.isPlainObject(e)&&(i.opts=h(i.opts,e)),n.fancybox.isMobile&&(i.opts=h(i.opts,i.opts.mobile)),i.id=i.opts.id||++c,i.currIndex=parseInt(i.opts.index,10)||0,i.prevIndex=null,i.prevPos=null,i.currPos=0,i.firstRun=!0,i.group=[],i.slides={},i.addContent(t),i.group.length&&i.init()};n.extend(b.prototype,{init:function(){var o,i,a=this,s=a.group[a.currIndex],r=s.opts;r.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==r.hideScrollbar&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("compensate-for-scrollbar")),i="",n.each(r.buttons,function(t,e){i+=r.btnTpl[e]||""}),o=n(a.translate(a,r.baseTpl.replace("{{buttons}}",i).replace("{{arrows}}",r.btnTpl.arrowLeft+r.btnTpl.arrowRight))).attr("id","fancybox-container-"+a.id).addClass(r.baseClass).data("FancyBox",a).appendTo(r.parentEl),a.$refs={container:o},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){a.$refs[t]=o.find(".fancybox-"+t)}),a.trigger("onInit"),a.activate(),a.jumpTo(a.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return void 0===n[e]?t:n[e]})},addContent:function(t){var e,o=this,i=n.makeArray(t);n.each(i,function(t,e){var i,a,s,r,c,l={},d={};n.isPlainObject(e)?(l=e,d=e.opts||e):"object"===n.type(e)&&n(e).length?(i=n(e),d=i.data()||{},d=n.extend(!0,{},d,d.options),d.$orig=i,l.src=o.opts.src||d.src||i.attr("href"),l.type||l.src||(l.type="inline",l.src=e)):l={type:"html",src:e+""},l.opts=n.extend(!0,{},o.opts,d),n.isArray(d.buttons)&&(l.opts.buttons=d.buttons),n.fancybox.isMobile&&l.opts.mobile&&(l.opts=h(l.opts,l.opts.mobile)),a=l.type||l.opts.type,r=l.src||"",!a&&r&&((s=r.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(a="video",l.opts.video.format||(l.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":r.match(/\.(pdf)((\?|#).*)?$/i)?(a="iframe",l=n.extend(!0,l,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===r.charAt(0)&&(a="inline")),a?l.type=a:o.trigger("objectNeedsType",l),l.contentType||(l.contentType=n.inArray(l.type,["html","inline","ajax"])>-1?"html":l.type),l.index=o.group.length,"auto"==l.opts.smallBtn&&(l.opts.smallBtn=n.inArray(l.type,["html","inline","ajax"])>-1),"auto"===l.opts.toolbar&&(l.opts.toolbar=!l.opts.smallBtn),l.$thumb=l.opts.$thumb||null,l.opts.$trigger&&l.index===o.opts.index&&(l.$thumb=l.opts.$trigger.find("img:first"),l.$thumb.length&&(l.opts.$orig=l.opts.$trigger)),l.$thumb&&l.$thumb.length||!l.opts.$orig||(l.$thumb=l.opts.$orig.find("img:first")),l.$thumb&&!l.$thumb.length&&(l.$thumb=null),l.thumb=l.opts.thumb||(l.$thumb?l.$thumb[0].src:null),"function"===n.type(l.opts.caption)&&(l.opts.caption=l.opts.caption.apply(e,[o,l])),"function"===n.type(o.opts.caption)&&(l.opts.caption=o.opts.caption.apply(e,[o,l])),l.opts.caption instanceof n||(l.opts.caption=void 0===l.opts.caption?"":l.opts.caption+""),"ajax"===l.type&&(c=r.split(/\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.filter=c.shift())),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),o.group.push(l)}),Object.keys(o.slides).length&&(o.updateControls(),(e=o.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}).on("click.fb","[data-fancybox-zoom]",function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&u(e.requestId),e.requestId=d(function(){e.update(t)})):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout(function(){e.$refs.stage.show(),e.update(t)},n.fancybox.isMobile?600:250))}),r.on("keydown.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null,i=o.current,a=t.keyCode||t.which;if(9==a)return void(i.opts.trapFocus&&e.focus(t));if(!(!i.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input,textarea,video,audio,select")))return 8===a||27===a?(t.preventDefault(),void e.close(t)):37===a||38===a?(t.preventDefault(),void e.previous()):39===a||40===a?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,a)}),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1}),e.idleInterval=t.setInterval(function(){++e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var o,i,a,s,r,c,l,d,u,f=this,h=f.group.length;if(!(f.isDragging||f.isClosing||f.isAnimating&&f.firstRun)){if(t=parseInt(t,10),!(a=f.current?f.current.opts.loop:f.opts.loop)&&(t<0||t>=h))return!1;if(o=f.firstRun=!Object.keys(f.slides).length,r=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,s=f.createSlide(t),h>1&&((a||s.index<h-1)&&f.createSlide(t+1),(a||s.index>0)&&f.createSlide(t-1)),f.current=s,f.currIndex=s.index,f.currPos=s.pos,f.trigger("beforeShow",o),f.updateControls(),s.forcedDuration=void 0,n.isNumeric(e)?s.forcedDuration=e:e=s.opts[o?"animationDuration":"transitionDuration"],e=parseInt(e,10),i=f.isMoved(s),s.$slide.addClass("fancybox-slide--current"),o)return s.opts.animationEffect&&e&&f.$refs.container.css("transition-duration",e+"ms"),f.$refs.container.addClass("fancybox-is-open").trigger("focus"),f.loadSlide(s),void f.preload("image");c=n.fancybox.getTranslate(r.$slide),l=n.fancybox.getTranslate(f.$refs.stage),n.each(f.slides,function(t,e){n.fancybox.stop(e.$slide,!0)}),r.pos!==s.pos&&(r.isComplete=!1),r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),i?(u=c.left-(r.pos*c.width+r.pos*r.opts.gutter),n.each(f.slides,function(t,o){o.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var i=o.pos*c.width+o.pos*o.opts.gutter;n.fancybox.setTranslate(o.$slide,{top:0,left:i-l.left+u}),o.pos!==s.pos&&o.$slide.addClass("fancybox-slide--"+(o.pos>s.pos?"next":"previous")),p(o.$slide),n.fancybox.animate(o.$slide,{top:0,left:(o.pos-s.pos)*c.width+(o.pos-s.pos)*o.opts.gutter},e,function(){o.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===f.currPos&&f.complete()})})):e&&s.opts.transitionEffect&&(d="fancybox-animated fancybox-fx-"+s.opts.transitionEffect,r.$slide.addClass("fancybox-slide--"+(r.pos>s.pos?"next":"previous")),n.fancybox.animate(r.$slide,d,e,function(){r.$slide.removeClass(d).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),s.isLoaded?f.revealContent(s):f.loadSlide(s),f.preload("image")}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,o){var i,a,s,r,c,l=this,d=l.current,u=d.$content,f=n.fancybox.getTranslate(d.$slide).width,p=n.fancybox.getTranslate(d.$slide).height,h=d.width,g=d.height;l.isAnimating||l.isMoved()||!u||"image"!=d.type||!d.isLoaded||d.hasError||(l.isAnimating=!0,n.fancybox.stop(u),t=void 0===t?.5*f:t,e=void 0===e?.5*p:e,i=n.fancybox.getTranslate(u),i.top-=n.fancybox.getTranslate(d.$slide).top,i.left-=n.fancybox.getTranslate(d.$slide).left,r=h/i.width,c=g/i.height,a=.5*f-.5*h,s=.5*p-.5*g,h>f&&(a=i.left*r-(t*r-t),a>0&&(a=0),a<f-h&&(a=f-h)),g>p&&(s=i.top*c-(e*c-e),s>0&&(s=0),s<p-g&&(s=p-g)),l.updateCursor(h,g),n.fancybox.animate(u,{top:s,left:a,scaleX:r,scaleY:c},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,a=i.$content;o.isAnimating||o.isMoved()||!a||"image"!=i.type||!i.isLoaded||i.hasError||(o.isAnimating=!0,n.fancybox.stop(a),e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,i,a,s=this,r=t.$content,c=t.$slide,l=t.width||t.opts.width,d=t.height||t.opts.height,u={};return!!(t.isLoaded&&r&&r.length)&&(e=n.fancybox.getTranslate(s.$refs.stage).width,o=n.fancybox.getTranslate(s.$refs.stage).height,e-=parseFloat(c.css("paddingLeft"))+parseFloat(c.css("paddingRight"))+parseFloat(r.css("marginLeft"))+parseFloat(r.css("marginRight")),o-=parseFloat(c.css("paddingTop"))+parseFloat(c.css("paddingBottom"))+parseFloat(r.css("marginTop"))+parseFloat(r.css("marginBottom")),l&&d||(l=e,d=o),i=Math.min(1,e/l,o/d),l*=i,d*=i,l>e-.5&&(l=e),d>o-.5&&(d=o),"image"===t.type?(u.top=Math.floor(.5*(o-d))+parseFloat(c.css("paddingTop")),u.left=Math.floor(.5*(e-l))+parseFloat(c.css("paddingLeft"))):"video"===t.contentType&&(a=t.opts.width&&t.opts.height?l/d:t.opts.ratio||16/9,d>l/a?d=l/a:l>d*a&&(l=d*a)),u.width=l,u.height=d,u)},update:function(t){var e=this;n.each(e.slides,function(n,o){e.updateSlide(o,t)})},updateSlide:function(t,e){var o=this,i=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height,r=t.$slide;o.adjustCaption(t),i&&(a||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(i),n.fancybox.setTranslate(i,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),r.length&&(r.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",r.get(0).scrollHeight>r.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,i=o.$slide;!e.isClosing&&o&&(i.siblings().css({transform:"",opacity:""}),i.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(i,{top:0,left:0,opacity:1},void 0===t?0:t,function(){i.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,i=t||this.current;return!!i&&(o=n.fancybox.getTranslate(this.$refs.stage),e=n.fancybox.getTranslate(i.$slide),!i.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-o.top)>.5||Math.abs(e.left-o.left)>.5))},updateCursor:function(t,e){var o,i,a=this,s=a.current,r=a.$refs.container;s&&!a.isClosing&&a.Guestures&&(r.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=a.canPan(t,e),i=!!o||a.isZoomable(),r.toggleClass("fancybox-is-zoomable",i),n("[data-fancybox-zoom]").prop("disabled",!i),o?r.addClass("fancybox-can-pan"):i&&("zoom"===s.opts.clickContent||n.isFunction(s.opts.clickContent)&&"zoom"==s.opts.clickContent(s))?r.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||a.group.length>1)&&"video"!==s.contentType&&r.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((t=e.getFitPos(n))&&(n.width>t.width||n.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=this,i=!1,a=o.current,s=a.$content;return void 0!==t&&void 0!==e?i=t<a.width&&e<a.height:s&&(i=n.fancybox.getTranslate(s),i=i.width<a.width&&i.height<a.height),i},canPan:function(t,e){var o=this,i=o.current,a=null,s=!1;return"image"===i.type&&(i.isComplete||t&&e)&&!i.hasError&&(s=o.getFitPos(i),void 0!==t&&void 0!==e?a={width:t,height:e}:i.isComplete&&(a=n.fancybox.getTranslate(i.$content)),a&&s&&(s=Math.abs(a.width-s.width)>1.5||Math.abs(a.height-s.height)>1.5)),s},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,!1===a.trigger("beforeLoad",t))return t.isLoading=!1,!1;switch(e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&a.setError(t)}})),o.one("onReset",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(t){var o,i=this;setTimeout(function(){var e=t.$image;i.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||i.showLoading(t)},50),i.checkSrcset(t),t.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,o=e.createElement("img"),o.onerror=function(){n(this).remove(),t.$ghost=null},o.onload=function(){i.afterLoad(t)},t.$ghost=n(o).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),i.setBigImage(t)},checkSrcset:function(e){var n,o,i,a,s=e.opts.srcset||e.opts.image.srcset;if(s){i=t.devicePixelRatio||1,a=t.innerWidth*i,o=s.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);if(0===n)return e.url=t;o&&(e.value=o,e.postfix=t[t.length-1])}),e}),o.sort(function(t,e){return t.value-e.value});for(var r=0;r<o.length;r++){var c=o[r];if("w"===c.postfix&&c.value>=a||"x"===c.postfix&&c.value>=i){n=c;break}}!n&&o.length&&(n=o[o.length-1]),n&&(e.src=n.url,e.width&&e.height&&"w"==n.postfix&&(e.height=e.width/e.height*n.value,e.width=n.value),e.opts.srcset=s)}},setBigImage:function(t){var o=this,i=e.createElement("img"),a=n(i);t.$image=a.one("error",function(){o.setError(t)}).one("load",function(){var e;t.$ghost||(o.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),o.afterLoad(t)),o.isClosing||(t.opts.srcset&&(e=t.opts.sizes,e&&"auto"!==e||(e=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),a.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!o.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),o.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(i.complete||"complete"==i.readyState)&&a.naturalWidth&&a.naturalHeight?a.trigger("load"):i.error&&a.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),i=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),i>0&&(t.width=Math.floor(i*e/n),t.height=i)},setIframe:function(t){var e,o=this,i=t.opts.iframe,a=t.$slide;t.$content=n('<div class="fancybox-content'+(i.preload?" fancybox-is-hidden":"")+'"></div>').css(i.css).appendTo(a),a.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(i.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(i.attr).appendTo(t.$content),i.preload?(o.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),o.afterLoad(t)}),a.on("refresh.fb",function(){var n,o,s=t.$content,r=i.css.width,c=i.css.height;if(1===e[0].isReady){try{n=e.contents(),o=n.find("body")}catch(t){}o&&o.length&&o.children().length&&(a.css("overflow","visible"),s.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===r&&(r=Math.ceil(Math.max(o[0].clientWidth,o.outerWidth(!0)))),s.css("width",r||"").css("max-width",""),void 0===c&&(c=Math.ceil(Math.max(o[0].clientHeight,o.outerHeight(!0)))),s.css("height",c||""),a.css("overflow","auto")),s.removeClass("fancybox-is-hidden")}})):o.afterLoad(t),e.attr("src",t.src),a.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),l(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("<div>").append(n.trim(e)).contents()),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),o.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){var e=this;(t=t||e.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,n=this,o=t||n.current,i=o.opts.caption,a=o.opts.preventCaptionOverlap,s=n.$refs.caption,r=!1;s.toggleClass("fancybox-caption--separate",a),a&&i&&i.length&&(o.pos!==n.currPos?(e=s.clone().appendTo(s.parent()),e.children().eq(0).empty().html(i),r=e.outerHeight(!0),e.empty().remove()):n.$caption&&(r=n.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,n,o,i,a=this,s=t||a.current;s.isLoaded&&!0!==s.opts.disableLayoutFix&&(s.$content.css("margin-bottom",""),s.$content.outerHeight()>s.$slide.height()+.5&&(o=s.$slide[0].style["padding-bottom"],i=s.$slide.css("padding-bottom"),parseFloat(i)>0&&(e=s.$slide[0].scrollHeight,s.$slide.css("padding-bottom",0),Math.abs(e-s.$slide[0].scrollHeight)<1&&(n=i),s.$slide.css("padding-bottom",o))),s.$content.css("margin-bottom",n))},revealContent:function(t){var e,o,i,a,s=this,r=t.$slide,c=!1,l=!1,d=s.isMoved(t),u=t.isRevealed;return t.isRevealed=!0,e=t.opts[s.firstRun?"animationEffect":"transitionEffect"],i=t.opts[s.firstRun?"animationDuration":"transitionDuration"],i=parseInt(void 0===t.forcedDuration?i:t.forcedDuration,10),!d&&t.pos===s.currPos&&i||(e=!1),"zoom"===e&&(t.pos===s.currPos&&i&&"image"===t.type&&!t.hasError&&(l=s.getThumbPos(t))?c=s.getFitPos(t):e="fade"),"zoom"===e?(s.isAnimating=!0,c.scaleX=c.width/l.width,c.scaleY=c.height/l.height,a=t.opts.zoomOpacity,"auto"==a&&(a=Math.abs(t.width/t.height-l.width/l.height)>.1),a&&(l.opacity=.1,c.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),l),p(t.$content),void n.fancybox.animate(t.$content,c,i,function(){s.isAnimating=!1,s.complete()})):(s.updateSlide(t),e?(n.fancybox.stop(r),o="fancybox-slide--"+(t.pos>=s.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,r.addClass(o).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),p(r),"image"!==t.type&&t.$content.hide().show(0),void n.fancybox.animate(r,"fancybox-slide--current",i,function(){r.removeClass(o).css({transform:"",opacity:""}),t.pos===s.currPos&&s.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===s.currPos&&s.complete())))},getThumbPos:function(t){var e,o,i,a,s,r=!1,c=t.$thumb;return!(!c||!g(c[0]))&&(e=n.fancybox.getTranslate(c),o=parseFloat(c.css("border-top-width")||0),i=parseFloat(c.css("border-right-width")||0),a=parseFloat(c.css("border-bottom-width")||0),s=parseFloat(c.css("border-left-width")||0),r={top:e.top+o,left:e.left+s,width:e.width-i-s,height:e.height-o-a,scaleX:1,scaleY:1},e.width>0&&e.height>0&&r)},complete:function(){var t,e=this,o=e.current,i={};!e.isMoved()&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),e.preload("inline"),p(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(e.slides,function(t,o){o.pos>=e.currPos-1&&o.pos<=e.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),e.slides=i),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),o.opts.video.autoStart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()}),o.opts.autoFocus&&"html"===o.contentType&&(t=o.$content.find("input[autofocus]:enabled:visible:first"),t.length?t.trigger("focus"):e.focus(null,!0)),o.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,n,o=this;o.group.length<2||(n=o.slides[o.currPos+1],e=o.slides[o.currPos-1],e&&e.type===t&&o.loadSlide(e),n&&n.type===t&&o.loadSlide(n))},focus:function(t,o){var i,a,s=this,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isClosing||(i=!t&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible"),i=i.filter(r).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")}),i.length?(a=i.index(e.activeElement),t&&t.shiftKey?(a<0||0==a)&&(t.preventDefault(),i.eq(i.length-1).trigger("focus")):(a<0||a==i.length-1)&&(t&&t.preventDefault(),i.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l,u=this,f=u.current,h=function(){u.cleanUp(t)};return!u.isClosing&&(u.isClosing=!0,!1===u.trigger("beforeClose",t)?(u.isClosing=!1,d(function(){u.update()}),!1):(u.removeEvents(),a=f.$content,o=f.opts.animationEffect,i=n.isNumeric(e)?e:o?f.opts.animationDuration:0,f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?n.fancybox.stop(f.$slide):o=!1,f.$slide.siblings().trigger("onReset").remove(),i&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",i+"ms"),u.hideLoading(f),u.hideControls(!0),u.updateCursor(),"zoom"!==o||a&&i&&"image"===f.type&&!u.isMoved()&&!f.hasError&&(l=u.getThumbPos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.getTranslate(a),c={top:s.top,left:s.left,scaleX:s.width/l.width,scaleY:s.height/l.height,width:l.width,height:l.height},r=f.opts.zoomOpacity, 2654"auto"==r&&(r=Math.abs(f.width/f.height-l.width/l.height)>.1),r&&(l.opacity=0),n.fancybox.setTranslate(a,c),p(a),n.fancybox.animate(a,l,i,h),!0):(o&&i?n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+o,i,h):!0===t?setTimeout(h,i):h(),!0)))},cleanUp:function(e){var o,i,a,s=this,r=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",e),s.current.opts.backFocus&&(r&&r.length&&r.is(":visible")||(r=s.$trigger),r&&r.length&&(i=t.scrollX,a=t.scrollY,r.trigger("focus"),n("html, body").scrollTop(a).scrollLeft(i))),s.current=null,o=n.fancybox.getInstance(),o?o.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=Array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;if(s?i.unshift(s):s=a,i.unshift(a),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),!1===o)return o;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",i):r.trigger(t+".fb",i)},updateControls:function(){var t=this,o=t.current,i=o.index,a=t.$refs.container,s=t.$refs.caption,r=o.opts.caption;o.$slide.trigger("refresh"),r&&r.length?(t.$caption=s,s.children().eq(0).html(r)):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),a.find("[data-fancybox-count]").html(t.group.length),a.find("[data-fancybox-index]").html(i+1),a.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&i<=0),a.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&i>=t.group.length-1),"image"===o.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(e.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=this,n=["infobar","toolbar","nav"];!t&&e.current.opts.preventCaptionOverlap||n.push("caption"),this.$refs.container.removeClass(n.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.7",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof b&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new b(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getBoundingClientRect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))})},setTranslate:function(t,e){var n="",o={};if(t&&e)return void 0===e.left&&void 0===e.top||(n=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==e.scaleX&&void 0!==e.scaleY?n+=" scale("+e.scaleX+", "+e.scaleY+")":void 0!==e.scaleX&&(n+=" scaleX("+e.scaleX+")"),n.length&&(o.transform=n),void 0!==e.opacity&&(o.opacity=e.opacity),void 0!==e.width&&(o.width=e.width),void 0!==e.height&&(o.height=e.height),t.css(o)},animate:function(t,e,o,i,a){var s,r=this;n.isFunction(o)&&(i=o,o=null),r.stop(t),s=r.getTranslate(t),t.on(f,function(c){(!c||!c.originalEvent||t.is(c.originalEvent.target)&&"z-index"!=c.originalEvent.propertyName)&&(r.stop(t),n.isNumeric(o)&&t.css("transition-duration",""),n.isPlainObject(e)?void 0!==e.scaleX&&void 0!==e.scaleY&&r.setTranslate(t,{top:e.top,left:e.left,width:s.width*e.scaleX,height:s.height*e.scaleY,scaleX:1,scaleY:1}):!0!==a&&t.removeClass(e),n.isFunction(i)&&i(c))}),n.isNumeric(o)&&t.css("transition-duration",o+"ms"),n.isPlainObject(e)?(void 0!==e.scaleX&&void 0!==e.scaleY&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger(f)},o+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(f),t.off(f).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i),r.on("click.fb-start","[data-fancybox-trigger]",function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var t=null;r.on("mousedown mouseup focus blur",".fancybox-button",function(e){switch(e.type){case"mousedown":t=n(this);break;case"mouseup":t=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(t)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e};t(document).on("objectNeedsType.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},e,a.opts.media),t.each(s,function(e,o){if(c=p.match(o.matcher)){if(h=o.type,f=e,u={},o.paramPlace&&c[o.paramPlace]){d=c[o.paramPlace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i<d.length;++i){var s=d[i].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return l=t.extend(!0,{},o.params,a.opts[e],u),p="function"===t.type(o.url)?o.url.call(this,c,l,a):n(o.url,c,l),r="function"===t.type(o.thumb)?o.thumb.call(this,c,l,a):n(o.thumb,c),"youtube"===e?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===e&&(p=p.replace("&%23","#")),!1}}),h?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=r),"iframe"===h&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:h,src:p,origSrc:a.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(a.type=a.opts.defaultType)});var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,n=this;if(this[t].loaded)return void setTimeout(function(){n.done(t)});this[t].loading||(this[t].loading=!0,e=document.createElement("script"),e.type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){n[t].loaded=!0,n.done(t)}:e.onload=function(){n[t].loaded=!0,n.done(t)},document.body.appendChild(e))},done:function(e){var n,o,i;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(n=t.fancybox.getInstance())&&(o=n.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?i=new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&n.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&(i=new Vimeo.Player(o),i.on("ended",function(){n.next()})))}};t(document).on({"afterShow.fb":function(t,e,n){e.group.length>1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&o.load(n.contentSource)}})}(jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),i=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),a=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,o=t[0].attributes,i=o.length;e<i;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],i=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,a=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),n(e).off(".fb.touch"),t.requestId&&(i(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$slide,p=u.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&f.length&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left))){if(!u||d.isAnimating||u.$slide.hasClass("fancybox-animated"))return o.stopPropagation(),void o.preventDefault();i.realPoints=i.startPoints=a(o),i.startPoints.length&&(u.touch&&o.stopPropagation(),i.startEvent=o,i.canTap=!0,i.$target=c,i.$content=p,i.opts=u.opts.touch,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.isScrolling=!1,i.canPan=d.canPan(),i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.canvasWidth=Math.round(f[0].clientWidth),i.canvasHeight=Math.round(f[0].clientHeight),i.contentLastPos=null,i.contentStartPos=n.fancybox.getTranslate(i.$content)||{top:0,left:0},i.sliderStartPos=n.fancybox.getTranslate(f),i.stagePos=n.fancybox.getTranslate(d.$refs.stage),i.sliderStartPos.top-=i.stagePos.top,i.sliderStartPos.left-=i.stagePos.left,i.contentStartPos.top-=i.stagePos.top,i.contentStartPos.left-=i.stagePos.left,n(e).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",i.onscroll,!0),((i.opts||i.canPan)&&(c.is(i.$stage)||i.$stage.find(c).length)||(c.is(".fancybox-image")&&o.preventDefault(),n.fancybox.isMobile&&c.parents(".fancybox-caption").length))&&(i.isScrollable=l(c)||l(c.parent()),n.fancybox.isMobile&&i.isScrollable||o.preventDefault(),(1===i.startPoints.length||u.hasError)&&(i.canPan?(n.fancybox.stop(i.$content),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-is-grabbing")),2===i.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(i.canTap=!1,i.isSwiping=!1,i.isPanning=!1,i.isZooming=!0,n.fancybox.stop(i.$content),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))))}},d.prototype.onscroll=function(t){var n=this;n.isScrolling=!0,e.removeEventListener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=a(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var a,s=this,r=s.instance,c=s.isSwiping,l=s.sliderStartPos.left||0;if(!0!==c)"x"==c&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?l+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?l-=Math.pow(-s.distanceX,.8):l+=s.distanceX),s.sliderLastPos={top:"x"==c?0:s.sliderStartPos.top+s.distanceY,left:l},s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,r.group.length<2&&s.opts.vertical?s.isSwiping="y":r.isDragging||!1===s.opts.vertical||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(a=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=a>45&&a<135?"y":"x"),"y"===s.isSwiping&&n.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);r.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(r.slides,function(t,e){var o,i;n.fancybox.stop(e.$slide),o=n.fancybox.getTranslate(e.$slide),i=n.fancybox.getTranslate(r.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===r.current.pos&&(s.sliderStartPos.top=o.top-i.top,s.sliderStartPos.left=o.left-i.left),n.fancybox.setTranslate(e.$slide,{top:o.top-i.top,left:o.left-i.left})}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;if(s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5))return void(t.startPoints=t.newPoints);t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&i(t.requestId),t.requestId=o(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})},d.prototype.limitMovement=function(){var t,e,n,o,i,a,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),l>0&&i>t&&(i=t-1+Math.pow(-t+f+l,.8)||0),l<0&&i<n&&(i=n+1-Math.pow(n-f-l,.8)||0),d>0&&a>e&&(a=e-1+Math.pow(-e+p+d,.8)||0),d<0&&a<o&&(a=o+1-Math.pow(o-p-d,.8)||0),{top:a,left:i}},d.prototype.limitPosition=function(t,e,n,o){var i=this,a=i.canvasWidth,s=i.canvasHeight;return n>a?(t=t>0?0:t,t=t<a-n?a-n:t):t=Math.max(0,a/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,a=e.contentStartPos,r=a.width,c=a.height,l=a.left,d=a.top,u=s(e.newPoints[0],e.newPoints[1]),f=u/e.startDistanceBetweenFingers,p=Math.floor(r*f),h=Math.floor(c*f),g=(r-p)*e.percentageOfImageAtPinchPointX,b=(c-h)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),v=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),y=m-e.centerPointStartX,x=v-e.centerPointStartY,w=l+(g+y),$=d+(b+x),S={top:$,left:w,scaleX:f,scaleY:f};e.canTap=!1,e.newWidth=p,e.newHeight=h,e.contentLastPos=S,e.requestId&&i(e.requestId),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},d.prototype.ontouchend=function(t){var o=this,s=o.isSwiping,r=o.isPanning,c=o.isZooming,l=o.isScrolling;if(o.endPoints=a(t),o.dMs=Math.max((new Date).getTime()-o.startTime,1),o.$container.removeClass("fancybox-is-grabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap)return o.onTap(t);o.speed=100,o.velocityX=o.distanceX/o.dMs*.5,o.velocityY=o.distanceY/o.dMs*.5,r?o.endPanning():c?o.endZooming():o.endSwiping(s,l)},d.prototype.endSwiping=function(t,e){var o=this,i=!1,a=o.instance.group.length,s=Math.abs(o.distanceX),r="x"==t&&a>1&&(o.dMs>130&&s>10||s>50);o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),i=o.instance.close(!0,250)):r&&o.distanceX>0?i=o.instance.previous(300):r&&o.distanceX<0&&(i=o.instance.next(300)),!1!==i||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(!1===i.opts.momentum||i.dMs>350?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+500*i.velocityX,e=i.contentLastPos.top+500*i.velocityY),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,366))},d.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),r<a.canvasWidth&&c<a.canvasHeight?a.instance.scaleToFit(150):r>s.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.animate(a.$content,o,150)))},d.prototype.onTap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startPoints,d=l[0]?l[0].x-n(t).scrollLeft()-i.stagePos.left:0,u=l[0]?l[0].y-n(t).scrollTop()-i.stagePos.top:0,f=function(t){var o=c.opts[t];if(n.isFunction(o)&&(o=o.apply(r,[c,e])),o)switch(o){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls();break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(i.startEvent);break;case"zoom":"image"==c.type&&(c.isLoaded||c.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,u):r.group.length<2&&r.close(i.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(d-i.tapX)>50||Math.abs(u-i.tapY)>50)return this;f("dblclick"+o)}else i.tapX=d,i.tapY=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=setTimeout(function(){i.tapped=null,r.isAnimating||f("click"+o)},500):f("click"+o);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,n=t.instance,o=n.group[n.currIndex].opts.slideShow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),n.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner))},set:function(t){var n=this,o=n.instance,i=o.current;i&&(!0===t||i.opts.loop||o.currIndex<o.group.length-1)?n.isActive&&"video"!==i.contentType&&(n.$progress&&e.fancybox.animate(n.$progress.show(),{scaleX:1},i.opts.slideShow.speed),n.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},i.opts.slideShow.speed)):(n.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null,t.$progress&&t.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,i,a,s){var r=o&&o.SlideShow;!r||!i.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(a.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var i=e[o];if(i&&i[1]in t){for(var a=0;a<i.length;a++)n[e[0][a]]=i[a];return n}}return!1}();if(n){var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(n.fullscreenchange,function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}e(t).on({"onInit.fb":function(t,e){var i;if(!n)return void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();e&&e.group[e.currIndex].opts.fullScreen?(i=e.$refs.container,i.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,jQuery),function(t,e){"use strict";var n="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var o=function(t){this.init(t)};e.extend(o.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,o=0;e.instance=t,e.opts=n[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var i=0,a=n.length;i<a&&(n[i].thumb&&o++,!(o>1));i++);o>1&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var t,o=this,i=o.instance,a=o.opts.parentEl,s=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(i.$refs.container.find(a).addBack().filter(a)),o.$grid.on("click","a",function(){i.jumpTo(e(this).attr("data-index"))})),o.$list||(o.$list=e('<div class="'+n+'__list">').appendTo(o.$grid)),e.each(i.group,function(e,n){t=n.thumb,t||"image"!==n.type||(t=n.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")}),o.$list[0].innerHTML=s.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+i.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,o=this,i=o.$list,a=o.$grid;o.instance.current&&(e=i.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+o.instance.current.index+'"]').addClass("fancybox-thumbs-active"),n=e.position(),"y"===o.opts.axis&&(n.top<0||n.top>i.height()-e.outerHeight())?i.stop().animate({scrollTop:i.scrollTop()+n.top},t):"x"===o.opts.axis&&(n.left<a.scrollLeft()||n.left>a.scrollLeft()+(a.width()-e.outerWidth()))&&i.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new o(e),n.isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;i&&i.isVisible&&i.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(t,e){"use strict";function n(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location}, 2655tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,i=e.fancybox.getInstance(),a=i.current||null;a&&("function"===e.type(a.opts.share.url)&&(t=a.opts.share.url.apply(a,[i,a])),o=a.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===a.type?encodeURIComponent(a.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):""),e.fancybox.open({src:i.translate(i,o),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})},mobile:{autoFocus:!1}}}))})}(document,jQuery),function(t,e,n){"use strict";function o(){var e=t.location.hash.substr(1),n=e.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join("-");return{hash:e,index:o<1?1:o,gallery:i}}function i(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,""!==(n=e.hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(e).on({"onInit.fb":function(t,e){var n,i;!1!==e.group[e.currIndex].opts.hash&&(n=o(),(i=a(e))&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var r;i&&!1!==i.opts.hash&&(r=a(o))&&(o.currentHash=r+(o.group.length>1?"-"+(i.index+1):""),t.location.hash!=="#"+o.currentHash&&(s&&!o.origHash&&(o.origHash=t.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):t.location.hash=o.currentHash,o.hashTimer=null},300)))},"beforeClose.fb":function(n,o,i){i&&!1!==i.opts.hash&&(clearTimeout(o.hashTimer),o.currentHash&&o.hasCreatedHistory?t.history.back():o.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(o.origHash||"")):t.location.hash=o.origHash),o.currentHash=null)}}),n(t).on("hashchange.fb",function(){var t=o(),e=null;n.each(n(".fancybox-container").get().reverse(),function(t,o){var i=n(o).data("FancyBox");if(i&&i.currentHash)return e=i,!1}),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&i(t)}),setTimeout(function(){n.fancybox.getInstance()||i(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||!1===o.opts.wheel||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
2655 2656if (!Date.now) { 2657 Date.now = function now() { 2658 return new Date().getTime(); 2659 }; 2660} 2661 2662(function (funcName, baseObj) { 2663 "use strict"; 2664 2665 // The public function name defaults to window.docReady 2666 // but you can modify the last line of this function to pass in a different object or method name 2667 // if you want to put them in a different namespace and those will be used instead of 2668 // window.docReady(...) 2669 funcName = funcName || "docReady"; 2670 baseObj = baseObj || window; 2671 var readyList = []; 2672 var readyFired = false; 2673 var readyEventHandlersInstalled = false; 2674 2675 // call this when the document is ready 2676 // this function protects itself against being called more than once 2677 function ready() { 2678 if (!readyFired) { 2679 2680 // this must be set to true before we start calling callbacks 2681 readyFired = true; 2682 for (var i = 0; i < readyList.length; i++) { 2683 2684 // if a callback here happens to add new ready handlers, 2685 // the docReady() function will see that it already fired 2686 // and will schedule the callback to run right after 2687 // this event loop finishes so all handlers will still execute 2688 // in order and no new ones will be added to the readyList 2689 // while we are processing the list 2690 readyList[i].fn.call(window, readyList[i].ctx); 2691 } 2692 2693 // allow any closures held by these functions to free 2694 readyList = []; 2695 } 2696 } 2697 2698 function readyStateChange() { 2699 if (document.readyState === "complete") { 2700 ready(); 2701 } 2702 } 2703 2704 // This is the one public interface 2705 // docReady(fn, context); 2706 // the context argument is optional - if present, it will be passed 2707 // as an argument to the callback 2708 baseObj[funcName] = function (callback, context) { 2709 if (typeof callback !== "function") { 2710 throw new TypeError("callback for docReady(fn) must be a function"); 2711 } 2712 2713 // if ready has already fired, then just schedule the callback 2714 // to fire asynchronously, but right away 2715 if (readyFired) { 2716 setTimeout(function () { 2717 callback(context); 2718 }, 1); 2719 return; 2720 } else { 2721 2722 // add the function and context to the list 2723 readyList.push({fn: callback, ctx: context}); 2724 } 2725 2726 // if document already ready to go, schedule the ready function to run 2727 // IE only safe when readyState is "complete", others safe when readyState is "interactive" 2728 if (document.readyState === "complete" || (!document.attachEvent && document.readyState === "interactive")) { 2729 setTimeout(ready, 1); 2730 } else if (!readyEventHandlersInstalled) { 2731 2732 // otherwise if we don't have event handlers installed, install them 2733 if (document.addEventListener) { 2734 2735 // first choice is DOMContentLoaded event 2736 document.addEventListener("DOMContentLoaded", ready, false); 2737 2738 // backup is window load event 2739 window.addEventListener("load", ready, false); 2740 } else { 2741 2742 // must be IE 2743 document.attachEvent("onreadystatechange", readyStateChange); 2744 window.attachEvent("onload", ready); 2745 } 2746 readyEventHandlersInstalled = true; 2747 } 2748 } 2749})("__sharethis__docReady", window); 2750 2751// Document.querySelectorAll method 2752// http://ajaxian.com/archives/creating-a-queryselector-for-ie-that-runs-at-native-speed 2753// Needed for: IE7- 2754if (!document.querySelectorAll) { 2755 document.querySelectorAll = function (selectors) { 2756 var style = document.createElement('style'), elements = [], element; 2757 document.documentElement.firstChild.appendChild(style); 2758 document._qsa = []; 2759 2760 style.styleSheet.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}'; 2761 window.scrollBy(0, 0); 2762 style.parentNode.removeChild(style); 2763 2764 while (document._qsa.length) { 2765 element = document._qsa.shift(); 2766 element.style.removeAttribute('x-qsa'); 2767 elements.push(element); 2768 } 2769 document._qsa = null; 2770 return elements; 2771 }; 2772} 2773 2774// Document.querySelector method 2775// Needed for: IE7- 2776if (!document.querySelector) { 2777 document.querySelector = function (selectors) { 2778 var elements = document.querySelectorAll(selectors); 2779 return (elements.length) ? elements[0] : null; 2780 }; 2781} 2782 2783if (!Array.isArray) { 2784 Array.isArray = function (arg) { 2785 return Object.prototype.toString.call(arg) === '[object Array]'; 2786 }; 2787} 2788 2789Array.prototype.indexOf || (Array.prototype.indexOf = function (d, e) { 2790 var a; 2791 if (null == this) throw new TypeError('"this" is null or not defined'); 2792 var c = Object(this); 2793 var b = c.length >>> 0; 2794 if (0 === b) return -1; 2795 a = +e || 0; 2796 Infinity === Math.abs(a) && (a = 0); 2797 if (a >= b) return -1; 2798 for (a = Math.max(0 <= a ? a : b - Math.abs(a), 0); a < b;) { 2799 if (a in c && c[a] === d) return a; 2800 a++; 2801 } 2802 return -1 2803}); 2804 2805(function () { 2806 var st, 2807 indexOf = [].indexOf || function (item) { 2808 for (var i = 0, l = this.length; i < l; i++) { 2809 if (i in this && this[i] === item) return i; 2810 } 2811 return -1; 2812 }; 2813 2814 if (window.__sharethis__ == null) { 2815 window.__sharethis__ = { 2816 v: '6.0.0' 2817 }; 2818 } 2819 2820 st = window.__sharethis__; 2821 2822 st.METRICS = "https://platform-metrics-api.sharethis.com"; 2823 2824 st.API = "https://platform-api.sharethis.com"; 2825 2826 st.SECOND = 1000; 2827 2828 st.MINUTE = 60 * st.SECOND; 2829 2830 st.HOUR = 60 * st.MINUTE; 2831 2832 st.DAY = 24 * st.HOUR; 2833 2834 st.WEEK = 7 * st.DAY; 2835 2836 st.BORDER_BOX = "-moz-box-sizing: border-box;\n-webkit-box-sizing: border-box;\nbox-sizing: border-box;"; 2837 2838 st.BORDER_RADIUS = function (radius) { 2839 return "-moz-border-radius: " + (st.px(radius)) + ";\n-webkit-border-radius: " + (st.px(radius)) + ";\nborder-radius: " + (st.px(radius)) + ";"; 2840 }; 2841 2842 st.BOX_SHADOW = function (value) { 2843 return "-moz-box-shadow: " + value + ";\n-webkit-box-shadow: " + value + ";\nbox-shadow: " + value + ";"; 2844 }; 2845 2846 st.FLEX = "-moz-flex: 1;\n-ms-flex: 1;\n-webkit-flex: 1;\nflex: 1;"; 2847 2848 st.FONT_FAMILY = "font-family: \"Helvetica Neue\", Verdana, Helvetica, Arial, sans-serif;"; 2849 2850 st.TRANSFORM = function (value) { 2851 return "-ms-transform: " + value + ";\n-webkit-transform: " + value + ";\ntransform: " + value + ";"; 2852 }; 2853 2854 st.TRANSITION = function (properties, duration) { 2855 var i, len, property, value; 2856 if (properties == null) { 2857 properties = ['all']; 2858 } 2859 if (duration == null) { 2860 duration = '0.2s'; 2861 } 2862 value = []; 2863 for (i = 0, len = properties.length; i < len; i++) { 2864 property = properties[i]; 2865 value.push(property + " " + duration + " ease-in"); 2866 } 2867 value = value.join(', '); 2868 return "-moz-transition: " + value + "; -ms-transition: " + value + "; -o-transition: " + value + "; -webkit-transition: " + value + "; transition: " + value + ";"; 2869 }; 2870 2871 st._uid = 0; 2872 2873 st.uid = function () { 2874 return ++st._uid; 2875 }; 2876 2877 st.cache = {}; 2878 2879 st.get = function (key) { 2880 return st.cache[key]; 2881 }; 2882 2883 st.set = function (key, val) { 2884 return st.cache[key] = val; 2885 }; 2886 2887 st.has = function (key) { 2888 return st.cache[key] != null; 2889 }; 2890 2891 st.addClass = function ($el, names) { 2892 var current, i, len, name; 2893 current = ($el.className || '').split(' '); 2894 if (typeof names === 'string') { 2895 names = [names]; 2896 } 2897 for (i = 0, len = names.length; i < len; i++) { 2898 name = names[i]; 2899 if ((name != null) && indexOf.call(current, name) < 0) { 2900 current.push(name); 2901 } 2902 } 2903 return $el.className = current.join(' '); 2904 }; 2905 2906 st.addEventListener = function ($el, event, callback) { 2907 if (!($el && event && callback)) { 2908 return; 2909 } 2910 if ($el.addEventListener) { 2911 return $el.addEventListener(event, callback, false); 2912 } else if ($el.attachEvent) { 2913 return $el.attachEvent("on" + event, callback); 2914 } else { 2915 return $el["on" + event] = callback; 2916 } 2917 }; 2918 2919 st.capitalize = function (str) { 2920 return "" + (str.charAt(0).toUpperCase()) + (str.substring(1).toLowerCase()); 2921 }; 2922 2923 st.copy = function () { 2924 var selection; 2925 selection = typeof window.getSelection === "function" ? window.getSelection() : void 0; 2926 if (!selection || selection.isCollapsed) { 2927 return; 2928 } 2929 selection = selection.toString(); 2930 if (selection.length > 500) { 2931 selection = selection.slice(0, 497) + "..."; 2932 } 2933 if (selection.length > 0) { 2934 return st.log({ 2935 copy_text: selection, 2936 destinations: "copy", 2937 event: 'share', 2938 url: st.href 2939 }); 2940 } 2941 }; 2942 2943 st.close = function ($el) { 2944 st.removeClass(document.body, 'st-body-no-scroll'); 2945 if (!$el) { 2946 return; 2947 } 2948 st.addClass($el, 'st-hidden'); 2949 return setTimeout((function () { 2950 return st.remove($el); 2951 }), 200); 2952 }; 2953 2954 st.css = function (css) { 2955 var head, s; 2956 head = document.getElementsByTagName('head')[0]; 2957 s = document.createElement('style'); 2958 s.setAttribute('type', 'text/css'); 2959 if (s.styleSheet) { 2960 s.styleSheet.cssText = css; 2961 } else { 2962 s.appendChild(document.createTextNode(css)); 2963 } 2964 return head.appendChild(s); 2965 }; 2966 2967 st.ecommerce = function () { 2968 var ecommerce, has_ldjson, has_og, has_price; 2969 has_ldjson = st.meta["@type"] === "Product"; 2970 has_og = st.meta["og:type"] === "product"; 2971 has_price = st.getMeta(['og:price:amount', 'price', 'product:price:amount']); 2972 if (has_ldjson || has_og || has_price) { 2973 ecommerce = JSON.stringify(st.omit({ 2974 availability: st.getMeta(["og:availability", "product:availability", "availability"]), 2975 brand: st.getMeta(["brand", "og:site_name"]), 2976 category: st.getMeta(["category"]), 2977 currency: st.getMeta(["og:price:currency", "product:price:currency", "priceCurrency"]), 2978 description: st.getMeta(["og:description", "twitter:description", "description"]), 2979 image: st.getMeta(["og:image:secure_url", "og:image", "twitter:image"]), 2980 mpn: st.getMeta(["mpn"]),
2981 name: st.getMeta(["og:title", "twitter:title", "name"]), 2982 price: st.getMeta(["og:price:amount", "product:price:amount", "price"]), 2983 rating: st.getMeta(["og:rating", "ratingValue"]), 2984 reviews: st.getMeta(["reviewCount", "ratingCount"]), 2985 sku: st.getMeta(["sku"]) 2986 })); 2987 st.log({ 2988 event: 'ecommerce_pview', 2989 ecommerce: ecommerce 2990 }); 2991 st.addEventListener(document, "click", function (e) { 2992 var classes, cls, config, event, href, i, len; 2993 if (!(e != null ? e.target : void 0)) { 2994 return true; 2995 } 2996 if (e.target.tagName === "A") { 2997 href = e.target.getAttribute('href') || ''; 2998 if (new RegExp("/cart$").test(href)) { 2999 st.log({ 3000 event: "view_cart", 3001 ecommerce: ecommerce 3002 }); 3003 return true; 3004 } 3005 } 3006 config = { 3007 add_to_cart: ["add_to_cart", "add-to-cart", "addtocart"], 3008 add_to_wishlist: ["save-for-later", "wishlist"], 3009 buy: ["payment-button"] 3010 }; 3011 for (event in config) { 3012 classes = config[event]; 3013 for (i = 0, len = classes.length; i < len; i++) { 3014 cls = classes[i]; 3015 if (st.hasClassOrId(e.target, cls)) { 3016 st.log({ 3017 event: event, 3018 ecommerce: ecommerce 3019 }); 3020 return true; 3021 } 3022 } 3023 } 3024 return true; 3025 }); 3026 } 3027 return true; 3028 }; 3029 3030 st.emit = function (event, data) { 3031 var handler, i, len, ref, ref1, results; 3032 ref1 = ((ref = st.handlers) != null ? ref[event] : void 0) || []; 3033 results = []; 3034 for (i = 0, len = ref1.length; i < len; i++) { 3035 handler = ref1[i]; 3036 results.push(handler(data)); 3037 } 3038 return results; 3039 }; 3040 3041 st.formatNumber = function (value) { 3042 if (value > 1000000) { 3043 return (Math.round(10 * (value / 1000000)) / 10) + "m"; 3044 } 3045 if (value > 100000) { 3046 return (Math.round(value / 1000)) + "k"; 3047 } 3048 if (value > 1000) { 3049 return (Math.round(10 * (value / 1000)) / 10) + "k"; 3050 } 3051 return "" + value; 3052 }; 3053 3054 st.getCookie = function (name) { 3055 var values; 3056 values = document.cookie.match("(^|;)\\s*" + name + "\\s*=\\s*([^;]+)"); 3057 if (values) { 3058 return values.pop(); 3059 } 3060 return null; 3061 }; 3062 3063 st.getDescription = function () { 3064 return st.getMeta(['og:description', 'twitter:description', 'description', 'Description']); 3065 }; 3066 3067 st.getImage = function () { 3068 return st.getMeta(['og:image:secure_url', 'og:image', 'twitter:image']); 3069 }; 3070 3071 st.getMeta = function (types) { 3072 var i, len, type; 3073 for (i = 0, len = types.length; i < len; i++) { 3074 type = types[i]; 3075 if ((st.meta[type] != null) && typeof st.meta[type] !== 'object') { 3076 return "" + st.meta[type]; 3077 } 3078 } 3079 return ''; 3080 }; 3081 3082 st.getScrollbarWidth = function () { 3083 var inner, outer, scrollbar_width; 3084 outer = document.createElement('div'); 3085 outer.style.visibility = 'hidden'; 3086 outer.style.width = '100px'; 3087 outer.style.msOverflowStyle = 'scrollbar'; 3088 outer.style.overflow = 'scroll'; 3089 document.body.appendChild(outer); 3090 inner = document.createElement('div'); 3091 inner.style.width = '100%'; 3092 outer.appendChild(inner); 3093 scrollbar_width = outer.offsetWidth - inner.offsetWidth; 3094 outer.parentNode.removeChild(outer); 3095 return scrollbar_width; 3096 }; 3097 3098 st.getScrollDepth = function () { 3099 var body, body_height, de, depth, percentage, window_height; 3100 de = document.documentElement; 3101 body = document.body; 3102 body_height = Math.max.apply(Math, [body.scrollHeight || 0, body.offsetHeight || 0, de.clientHeight || 0, de.scrollHeight || 0, de.offsetHeight || 0]); 3103 window_height = st.getWindowSize().height; 3104 depth = window.pageYOffset || (de || body.parentNode || body).scrollTop; 3105 percentage = Math.floor(100 * (window_height + depth) / body_height); 3106 return percentage; 3107 }; 3108 3109 st.getShareLabel = function (network, language) { 3110 var value; 3111 if (language == null) { 3112 language = 'en'; 3113 } 3114 value = ''; 3115 switch (network) { 3116 case 'blm':
3117 value = st.i18n['Support BLM'][language]; 3118 break; 3119 case 'email': 3120 value = st.i18n['email'][language]; 3121 break; 3122 case 'gmail': 3123 value = st.i18n['gmail'][language]; 3124 break; 3125 case 'flipboard': 3126 value = st.i18n['flip'][language]; 3127 break; 3128 case 'googlebookmarks': 3129 value = st.i18n['bookmark'][language]; 3130 break; 3131 case 'pinterest': 3132 value = st.i18n['pin'][language]; 3133 break; 3134 case 'print': 3135 value = st.i18n['print'][language]; 3136 break; 3137 case 'snapchat': 3138 value = st.i18n['snapchat'][language]; 3139 break; 3140 case 'twitter': 3141 value = st.i18n['tweet'][language]; 3142 break; 3143 case 'yahoomail': 3144 value = st.i18n['email'][language]; 3145 break; 3146 default: 3147 value = st.i18n['share'][language]; 3148 } 3149 if (network === 'blm') { 3150 return value; 3151 } 3152 return st.capitalize(value); 3153 }; 3154 3155 st.getTitle = function () { 3156 return st.getMeta(['og:title', 'twitter:title']) || document.title; 3157 }; 3158 3159 st.getQuerystring = function (url) { 3160 var a; 3161 a = document.createElement('a'); 3162 a.setAttribute('href', url); 3163 return a.search; 3164 }; 3165 3166 st.getWindowSize = function () { 3167 var body, documentElement, innerHeight, innerWidth; 3168 body = document.body, documentElement = document.documentElement; 3169 innerHeight = window.innerHeight, innerWidth = window.innerWidth; 3170 return { 3171 height: innerHeight || documentElement.clientHeight || body.clientHeight, 3172 width: innerWidth || documentElement.clientWidth || body.clientWidth 3173 }; 3174 }; 3175 3176 st.hasClass = function ($el, name) { 3177 var re; 3178 re = new RegExp(name); 3179 return re.test(($el.className || '').toLowerCase()); 3180 }; 3181 3182 st.hasClassOrId = function ($el, name) { 3183 var i, len, re, ref, str; 3184 re = new RegExp(name); 3185 ref = [$el.className, $el.id]; 3186 for (i = 0, len = ref.length; i < len; i++) { 3187 str = ref[i]; 3188 if (typeof str !== 'string') { 3189 continue; 3190 } 3191 if (re.test((str || '').toLowerCase())) { 3192 return true; 3193 } 3194 } 3195 return false; 3196 }; 3197 3198 st.hasCookies = (function () { 3199 var has_cookies, key; 3200 key = '__sharethis_cookie_test__'; 3201 document.cookie = key + "=1;"; 3202 has_cookies = document.cookie.indexOf(key) > -1; 3203 document.cookie = key + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;'; 3204 return has_cookies; 3205 })(); 3206 3207 st.hasLocalStorage = (function () { 3208 var key; 3209 key = '__sharethis_local_storage_test__'; 3210 try { 3211 localStorage.setItem(key, 'hello world'); 3212 localStorage.removeItem(key); 3213 return true; 3214 } catch (error1) { 3215 return false; 3216 } 3217 })(); 3218 3219 st.hem = function (data) { 3220 var params; 3221 st._hem = data; 3222 if ((data == null) || (data.sha1 == null) || (data.sha256 == null) || (data.md5 == null)) { 3223 return 'Not valid data input'; 3224 } 3225 params = { 3226 hem_sha1: data.sha1, 3227 hem_sha256: data.sha256, 3228 hem_md5: data.md5 3229 }; 3230 st.send("https://sync.sharethis.com/powr/hem?" + st.qs(params)); 3231 }; 3232 3233 st.hostname = function (url) { 3234 var a; 3235 if (url == null) { 3236 url = st.href; 3237 } 3238 a = document.createElement('a'); 3239 a.setAttribute('href', url); 3240 return a.hostname; 3241 }; 3242 3243 st.ibl = function () { 3244 var blacklist, domain, hostname, href, i, len, protocol; 3245 href = document.referrer; 3246 if (href) { 3247 hostname = st.hostname(href) || ''; 3248 protocol = st.protocol(href) || ''; 3249 if (protocol === 'android-app:') { 3250 return true; 3251 } 3252 blacklist = ['aol', 'bing', 'bs.to', 'facebook', 'google', 'yahoo', 'yandex', document.location.hostname]; 3253 for (i = 0, len = blacklist.length; i < len; i++) { 3254 domain = blacklist[i]; 3255 if (hostname.indexOf(domain) > -1) { 3256 return true; 3257 } 3258 } 3259 st.log({ 3260 event: 'ibl', 3261 title: "", 3262 url: href 3263 }); 3264 } 3265 return true; 3266 }; 3267 3268 st.img = function (name) { 3269 var alt; 3270 if (!name) { 3271 return; 3272 } 3273 alt = (name.replace('.svg', '').replace('.png', '')) + " sharing button"; 3274 return "<img alt='" + alt + "' src='https://platform-cdn.sharethis.com/img/" + name + "' />"; 3275 }; 3276 3277 st.incLocalStorageShares = function (network, count_url) { 3278 var all_counts, network_count, ref, ref1, ref2, ref3, ref4, ref5, total; 3279 all_counts = st.storage.get("st_shares_" + count_url); 3280 if (all_counts) { 3281 network_count = (((ref = all_counts[network]) != null ? ref.value : void 0) + 1) || 0;
3282 total = (((ref1 = all_counts["total"]) != null ? ref1.value : void 0) + 1) || 0; 3283 if ((ref2 = all_counts[network]) != null) { 3284 ref2.value = network_count; 3285 } 3286 if ((ref3 = all_counts[network]) != null) { 3287 ref3.label = st.formatNumber(network_count); 3288 } 3289 if ((ref4 = all_counts["total"]) != null) { 3290 ref4.value = total; 3291 } 3292 if ((ref5 = all_counts["total"]) != null) { 3293 ref5.label = st.formatNumber(total); 3294 } 3295 all_counts["update_time"] = Math.round(new Date() / 1000); 3296 return st.storage.set("st_shares_" + count_url, all_counts); 3297 } 3298 }; 3299 3300 st.inc = function ($el) { 3301 var value; 3302 value = st.parseNumber($el.innerText); 3303 $el.innerText = st.formatNumber(value + 1); 3304 st.addClass($el, 'st-grow'); 3305 return setTimeout((function () { 3306 return st.removeClass($el, 'st-grow'); 3307 }), 400); 3308 }; 3309 3310 st.isEnter = function (e) { 3311 return e.which === 13 || e.keyCode === 13; 3312 }; 3313 3314 st.isEsc = function (e) { 3315 var ref; 3316 return ((ref = e.key) === 'Escape' || ref === 'Esc') || e.keyCode === 27; 3317 }; 3318 3319 st.isValidEmail = function (email) { 3320 var re; 3321 re = /[^\.\s@][^\s@]*(?!\.)@[^\.\s@]+(?:\.[^\.\s@]+)*/; 3322 return re.test(email); 3323 }; 3324 3325 st.js = function (url, id) { 3326 var $el, first; 3327 $el = document.createElement('script'); 3328 $el.async = 1; 3329 $el.src = url; 3330 if (id) { 3331 $el.id = id; 3332 } 3333 first = document.getElementsByTagName('script')[0]; 3334 return first.parentNode.insertBefore($el, first); 3335 }; 3336 3337 st.ldjson = (function () { 3338 var el, i, item, len, raw; 3339 el = document.querySelector('script[type="application/ld+json"]'); 3340 if (el) { 3341 try { 3342 raw = JSON.parse(el.innerText); 3343 if (!Array.isArray(raw)) { 3344 raw = [raw]; 3345 } 3346 for (i = 0, len = raw.length; i < len; i++) { 3347 item = raw[i]; 3348 if (item["@type"] === "Product") { 3349 if (item.offers && !Array.isArray(item.offers)) { 3350 item.offers = [item.offers]; 3351 } 3352 if (item.brand) { 3353 item.brand = item.brand.name || item.brand; 3354 } 3355 if (item.category && Array.isArray(item.category)) { 3356 item.category = item.category.join(";"); 3357 } 3358 return item; 3359 } 3360 } 3361 return null; 3362 } catch (error1) { 3363 3364 } 3365 } 3366 return null; 3367 })(); 3368 3369 st.loadPixel = function () { 3370 var domain, rnd, src; 3371 domain = window.location.hostname; 3372 rnd = (new Date()).getTime(); 3373 src = "https://t.sharethis.com/1/k/t.dhj?" + st.qs({ 3374 cid: 'c010', 3375 cls: 'B', 3376 dmn: domain, 3377 gdpr_consent: st.gdpr_consent, 3378 gdpr_domain: st.gdpr_consent && st.gdpr_domain, 3379 rnd: rnd 3380 }); 3381 return st.js(src, 'pxscrpt'); 3382 }; 3383 3384 if (st.loader == null) { 3385 st.loader = {}; 3386 } 3387 3388 st.load = function (product, config) { 3389 var base; 3390 return typeof (base = st.loader)[product] === "function" ? base[product](config) : void 0; 3391 }; 3392 3393 if (st.load_counts_cache == null) { 3394 st.load_counts_cache = {}; 3395 } 3396 3397 st.loadCounts = function (options, next) { 3398 var base, ourl, ref, ref1, ref2; 3399 if (!next) { 3400 ref = [{}, options], options = ref[0], next = ref[1]; 3401 } 3402 if (options.url == null) { 3403 options.url = st.href; 3404 } 3405 ourl = options.url; 3406 if ((base = st.load_counts_cache)[ourl] == null) { 3407 base[ourl] = { 3408 callbacks: [next], 3409 response: null, 3410 status: 'init' 3411 }; 3412 } 3413 if (((ref1 = st.load_counts_cache[ourl]) != null ? ref1.status : void 0) === 'complete') { 3414 return next(st.load_counts_cache[ourl].response); 3415 } 3416 if (((ref2 = st.load_counts_cache[ourl]) != null ? ref2.status : void 0) === 'in-progress') { 3417 return st.load_counts_cache[ourl].callbacks.push(next); 3418 } 3419 st.load_counts_cache[ourl].status = 'in-progress'; 3420 return st.js("https://count-server.sharethis.com/v2.0/get_counts?" + st.qs({ 3421 cb: "window.__sharethis__.cb", 3422 url: ourl 3423 })); 3424 }; 3425 3426 st.cb = function (resp) { 3427 var callback, clicks, counts, i, j, len, len1, local_count, network, ourl, reaction, reactions, ref, ref1, shares, 3428 total, update_time, value; 3429 if (resp == null) { 3430 resp = {}; 3431 } 3432 clicks = resp.clicks, ourl = resp.ourl, reactions = resp.reactions, shares = resp.shares, total = resp.total, update_time = resp.update_time; 3433 counts = {}; 3434 for (reaction in st.REACTIONS || {}) { 3435 value = (reactions != null ? reactions[reaction] : void 0) || 0; 3436 counts[reaction] = { 3437 value: value, 3438 label: st.formatNumber(value) 3439 }; 3440 } 3441 ref = st.networks || []; 3442 for (i = 0, len = ref.length; i < len; i++) { 3443 network = ref[i]; 3444 value = ((clicks != null ? clicks[network] : void 0) || 0) + ((shares != null ? shares[network] : void 0) || 0); 3445 counts[network] = { 3446 value: value, 3447 label: st.formatNumber(value) 3448 }; 3449 } 3450 counts['total'] = { 3451 value: total, 3452 label: st.formatNumber(total) 3453 }; 3454 counts["update_time"] = update_time; 3455 local_count = st.storage.get("st_shares_" + ourl); 3456 if (update_time < (local_count != null ? local_count.update_time : void 0)) { 3457 counts = local_count; 3458 } 3459 st.load_counts_cache[ourl].response = counts; 3460 st.load_counts_cache[ourl].status = 'complete'; 3461 st.storage.set("st_shares_" + ourl, counts); 3462 ref1 = st.load_counts_cache[ourl].callbacks; 3463 for (j = 0, len1 = ref1.length; j < len1; j++) { 3464 callback = ref1[j]; 3465 callback(counts); 3466 } 3467 return st.load_counts_cache[ourl].callbacks = []; 3468 }; 3469 3470 st.log = function (data, url) { 3471 var log, ref; 3472 if (url == null) { 3473 url = "https://l.sharethis.com/log"; 3474 } 3475 log = function () { 3476 var fpestid, page_info, ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7; 3477 data.fcmp = typeof window.__cmp === 'function'; 3478 data.fcmpv2 = typeof window.__tcfapi === 'function'; 3479 data.has_segmentio = typeof (window.analytics && window.analytics.identify) === 'function'; 3480 data.product = st.product; 3481 data.publisher = st.property; 3482 data.account = st.account; 3483 data.ssb = st.ssb; 3484 data.refDomain = st.hostname(window.document.referrer); 3485 data.refQuery = st.getQuerystring(window.document.referrer); 3486 data.source = 'sharethis.js'; 3487 if (data.title == null) { 3488 data.title = st.getTitle(); 3489 } 3490 data.ts = Date.now(); 3491 data.sop = true; 3492 data.cms = st.cms; 3493 data.gdpr_consent = st.gdpr_consent; 3494 data.gdpr_domain = st.gdpr_domain; 3495 data.gdpr_method = st.gdpr_method; 3496 data.usprivacy = st.usprivacy; 3497 fpestid = st.getCookie("fpestid");
3498 try { 3499 if (!fpestid) { 3500 fpestid = localStorage.getItem("fpestid"); 3501 } 3502 } catch (error1) { 3503 } 3504 if (fpestid) { 3505 data.fpestid = fpestid; 3506 } 3507 if (data.description == null) { 3508 data.description = st.getDescription(); 3509 } 3510 data.ua = (ref = st.ua_fields) != null ? ref.ua : void 0; 3511 data.ua_full_version_list = (ref1 = st.ua_fields) != null ? ref1.ua_full_version_list : void 0; 3512 data.ua_mobile = (ref2 = st.ua_fields) != null ? ref2.ua_mobile : void 0; 3513 data.ua_model = (ref3 = st.ua_fields) != null ? ref3.ua_model : void 0; 3514 data.ua_platform = (ref4 = st.ua_fields) != null ? ref4.ua_platform : void 0; 3515 data.ua_platform_version = (ref5 = st.ua_fields) != null ? ref5.ua_platform_version : void 0; 3516 page_info = ((ref6 = window.__stdos__) != null ? (ref7 = ref6.data) != null ? ref7.pageInfo : void 0 : void 0) || {}; 3517 if (page_info.override) { 3518 data.override = page_info.override; 3519 } 3520 return st.send(url + "?" + st.qs(data)); 3521 }; 3522 if (st != null ? (ref = st.consent_queue) != null ? ref.initialized : void 0 : void 0) { 3523 log(); 3524 return; 3525 } 3526 if (st.consent_queue == null) { 3527 st.consent_queue = { 3528 functions: [] 3529 }; 3530 } 3531 return st.consent_queue.functions.push(log); 3532 }; 3533 3534 st.logGoogleAnalyticsEvent = function (category, action, label) { 3535 var _gaq, ga; 3536 ga = window.ga, _gaq = window._gaq; 3537 if (ga) { 3538 return ga('send', 'event', category, action, label); 3539 } else if (_gaq) { 3540 return _gaq.push(['_trackEvent', category, action, label]); 3541 } 3542 }; 3543 3544 st.meta = (function () { 3545 var el, i, item, j, k, key, len, len1, offer, ref, ref1, ref2, v; 3546 item = {}; 3547 ref = document.querySelectorAll("meta,[itemprop]"); 3548 for (i = 0, len = ref.length; i < len; i++) { 3549 el = ref[i]; 3550 key = el.getAttribute('property') || el.getAttribute('name') || el.getAttribute('itemprop'); 3551 if (key) { 3552 if (item[key] == null) { 3553 item[key] = el.getAttribute('content') || el.getAttribute("href") || el.innerText; 3554 } 3555 } 3556 } 3557 try { 3558 if (st.ldjson) { 3559 ref1 = st.ldjson; 3560 for (k in ref1) { 3561 v = ref1[k]; 3562 if (item[k] == null) { 3563 item[k] = v; 3564 } 3565 } 3566 if (st.ldjson.offers) { 3567 ref2 = st.ldjson.offers; 3568 for (j = 0, len1 = ref2.length; j < len1; j++) { 3569 offer = ref2[j]; 3570 for (k in offer) { 3571 v = offer[k]; 3572 if (item[k] == null) { 3573 item[k] = v; 3574 } 3575 } 3576 } 3577 } 3578 } 3579 } catch (error1) { 3580 3581 } 3582 return item; 3583 })(); 3584 3585 st.newElement = function (parent) { 3586 var $el, id; 3587 if (parent === void 0) { 3588 parent = document.body; 3589 } 3590 $el = document.createElement('div'); 3591 id = "st-el-" + (st.uid()); 3592 $el.setAttribute('id', id); 3593 if (parent) { 3594 parent.appendChild($el); 3595 } 3596 return { 3597 $el: $el, 3598 id: id 3599 }; 3600 }; 3601 3602 st.obl = function (e) { 3603 var href, prefix, ref; 3604 if ((e != null ? (ref = e.target) != null ? ref.tagName : void 0 : void 0) === 'A') { 3605 href = e.target.getAttribute('href') || ''; 3606 prefix = href.slice(0, href.indexOf(':')); 3607 if (href.slice(0, 4) === 'http' && e.target.hostname !== document.location.hostname) { 3608 st.log({ 3609 event: 'obl', 3610 title: "", 3611 url: href 3612 }); 3613 } 3614 } 3615 return true; 3616 }; 3617 3618 st.omit = function (obj) { 3619 var k, res, v; 3620 res = {}; 3621 for (k in obj) { 3622 v = obj[k]; 3623 if (v) { 3624 res[k] = v; 3625 } 3626 } 3627 return res; 3628 }; 3629 3630 st.on = function (event, callback) { 3631 var base; 3632 if (st.handlers == null) { 3633 st.handlers = []; 3634 } 3635 if ((base = st.handlers)[event] == null) { 3636 base[event] = []; 3637 } 3638 return st.handlers[event].push(callback); 3639 }; 3640 3641 st.open = function (url) { 3642 var h, w, wh, ww; 3643 if (!url) { 3644 return; 3645 } 3646 if (st.mobile) { 3647 return window.open(url, '_blank'); 3648 } else if (url.indexOf('mailto:') > -1 || url.indexOf('viber') > -1) { 3649 return document.location = url; 3650 } else {
3651 wh = st.getWindowSize().height; 3652 ww = st.getWindowSize().width; 3653 h = Math.min(600, .6 * wh); 3654 w = Math.min(800, .8 * ww); 3655 return window.open(url, '', ["height=" + h, "left=" + ((ww - w) / 2), "top=" + ((wh - h) / 2), "width=" + w, 'status=1', 'toolbar=0'].join(',')); 3656 } 3657 }; 3658 3659 st.parseNumber = function (value) { 3660 var multiplier; 3661 multiplier = 1; 3662 if (value.indexOf('k') > -1) { 3663 multiplier = 1000; 3664 } 3665 if (value.indexOf('m') > -1) { 3666 multiplier = 1000000; 3667 } 3668 value = value.replace(/[km,]/g, ''); 3669 return multiplier * parseInt(value, 10) || 0; 3670 }; 3671 3672 st.position = function ($el, container) { 3673 var _container, _el; 3674 if (container == null) { 3675 container = window; 3676 } 3677 _el = $el.getBoundingClientRect(); 3678 if (container === window) { 3679 return { 3680 left: _el.left + window.scrollX, 3681 top: _el.top + window.scrollY 3682 }; 3683 } else { 3684 _container = container.getBoundingClientRect(); 3685 return { 3686 left: _el.left - _container.left + container.scrollLeft, 3687 top: _el.top - _container.top + container.scrollTop 3688 }; 3689 } 3690 }; 3691 3692 st.protocol = function (url) { 3693 var a; 3694 if (url == null) { 3695 url = st.href; 3696 } 3697 a = document.createElement('a'); 3698 a.setAttribute('href', url); 3699 return a.protocol; 3700 }; 3701 3702 st.px = function (value) { 3703 if (typeof value === 'string') { 3704 return value; 3705 } 3706 return (Math.floor(value)) + "px"; 3707 }; 3708 3709 st.qs = function (params) { 3710 var k, v; 3711 return ((function () { 3712 var results; 3713 results = []; 3714 for (k in params) { 3715 v = params[k]; 3716 if (v != null) { 3717 results.push(k + "=" + (encodeURIComponent(v))); 3718 } 3719 } 3720 return results; 3721 })()).join('&'); 3722 }; 3723 3724 st.react = function (arg) { 3725 var reaction, url; 3726 reaction = arg.reaction, url = arg.url; 3727 if (url == null) { 3728 url = st.href; 3729 } 3730 st.logGoogleAnalyticsEvent('ShareThis', reaction, url); 3731 return st.log({ 3732 event: 'reaction', 3733 reactionType: reaction, 3734 url: url 3735 }); 3736 }; 3737 3738 st.remove = function ($el) { 3739 if (!($el != null ? $el.parentNode : void 0)) { 3740 return; 3741 } 3742 return $el.parentNode.removeChild($el); 3743 }; 3744 3745 st.removeClass = function ($el, name) { 3746 return $el.className = $el.className.replace(name, ''); 3747 }; 3748 3749 st.removeEventListener = function ($el, event, callback) { 3750 if (!($el && event && callback)) { 3751 return; 3752 } 3753 if ($el.removeEventListener) { 3754 return $el.removeEventListener(event, callback, false); 3755 } else if ($el.detachEvent) { 3756 return $el.detachEvent("on" + event, callback); 3757 } else { 3758 return $el["on" + event] = null; 3759 } 3760 }; 3761 3762 st.send = function (resource, params, next) { 3763 var img; 3764 if (params) { 3765 resource = resource + "?" + (st.qs(params)); 3766 } 3767 img = new Image(1, 1); 3768 img.src = resource; 3769 img.onload = function () { 3770 return typeof next === "function" ? next(true) : void 0; 3771 }; 3772 return img.onerror = function () { 3773 return typeof next === "function" ? next(false) : void 0; 3774 }; 3775 }; 3776 3777 st.setCookie = function (name, value, days) { 3778 var date, expires; 3779 if (days) { 3780 date = new Date(); 3781 date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); 3782 expires = "; expires=" + (date.toGMTString()); 3783 } else { 3784 expires = ""; 3785 } 3786 return document.cookie = name + "=" + value + expires + "; path=/"; 3787 }; 3788 3789 st.share = function (config) { 3790 var channel_is_ssb, channels_displayed, copybutton, copymessage, count_url, description, hostname, image, 3791 is_android, is_ios, message, network, product, redirects, run, share_url, short_url, subject, title, url, 3792 username, wechat; 3793 if (config == null) { 3794 config = {}; 3795 } 3796 channel_is_ssb = config.channel_is_ssb, channels_displayed = config.channels_displayed, count_url = config.count_url, subject = config.subject, share_url = config.share_url, short_url = config.short_url, url = config.url, description = config.description, image = config.image, message = config.message, network = config.network, title = config.title, username = config.username; 3797 channel_is_ssb = false;
3798 if (channels_displayed == null) { 3799 channels_displayed = JSON.stringify([]); 3800 } 3801 count_url = count_url || url || st.href; 3802 if (description == null) { 3803 description = st.getDescription(); 3804 } 3805 if (image == null) { 3806 image = st.getImage(); 3807 } 3808 share_url = share_url || short_url || url || st.href; 3809 if (title == null) { 3810 title = st.getTitle(); 3811 } 3812 if (url == null) { 3813 url = count_url; 3814 } 3815 if (network === 'sharethis') { 3816 return st.load('share-all', { 3817 count_url: count_url, 3818 description: description, 3819 image: image, 3820 share_url: share_url, 3821 short_url: short_url, 3822 title: title, 3823 url: url, 3824 username: username 3825 }); 3826 } 3827 st.incLocalStorageShares(network, count_url); 3828 st.logGoogleAnalyticsEvent('ShareThis', network, count_url); 3829 st.log({ 3830 channel_is_ssb: channel_is_ssb, 3831 channels_displayed: channels_displayed, 3832 destinations: network, 3833 event: 'share', 3834 title: title, 3835 url: count_url 3836 }); 3837 st.emit('share', { 3838 count_url: count_url, 3839 description: description, 3840 image: image, 3841 message: message, 3842 share_url: share_url, 3843 title: title, 3844 url: url, 3845 username: username 3846 }); 3847 if (network === 'wechat') { 3848 if (st.mobile) { 3849 return st.load('share-wechat-mobile', { 3850 url: share_url 3851 }); 3852 } else { 3853 wechat = "https://api.qrserver.com/v1/create-qr-code/?" + st.qs({ 3854 size: "154x154", 3855 data: share_url 3856 }); 3857 st.open(wechat); 3858 } 3859 } 3860 if (network === 'print') { 3861 st.emit('print', { 3862 count_url: count_url, 3863 description: description, 3864 image: image, 3865 message: message, 3866 share_url: share_url, 3867 title: title, 3868 url: url, 3869 username: username 3870 }); 3871 return window.print(); 3872 } 3873 if (network === 'copy') { 3874 navigator.clipboard.writeText(window.location.href); 3875 copybutton = document.querySelector('div[data-network="copy"]'); 3876 if (copybutton) { 3877 copymessage = document.createElement('span'); 3878 copymessage.innerText = 'URL Copied!'; 3879 copymessage.className = 'copy-notify'; 3880 copymessage.style.opacity = '1'; 3881 copymessage.style.width = '100px'; 3882 copymessage.style.transition = 'all .6s'; 3883 copybutton.append(copymessage); 3884 run = function () { 3885 copymessage.style.opacity = '0'; 3886 copymessage.style.minWidth = '0'; 3887 copymessage.style.width = '0'; 3888 copymessage.style.padding = '0'; 3889 copymessage.style.overflow = 'hidden'; 3890 run = function () { 3891 return copymessage.remove(); 3892 }; 3893 return setTimeout(run, 1000); 3894 }; 3895 setTimeout(run, 1500); 3896 } 3897 } 3898 hostname = document.location.hostname; 3899 product = st.product; 3900 is_ios = /iPad|iPhone|iPod/.test(navigator.userAgent); 3901 is_android = /Android/i.test(navigator.userAgent); 3902 redirects = { 3903 blm: "https://secure.actblue.com/donate/ms_blm_homepage_2019", 3904 blogger: "https://www.blogger.com/blog-this.g?" + st.qs({ 3905 n: title, 3906 t: description, 3907 u: share_url 3908 }), 3909 buffer: "https://buffer.com/add?" + st.qs({ 3910 text: title, 3911 url: share_url 3912 }), 3913 diaspora: "https://share.diasporafoundation.org/?" + st.qs({ 3914 title: title, 3915 url: share_url 3916 }), 3917 delicious: "https://del.icio.us/save?" + st.qs({ 3918 provider: 'sharethis', 3919 title: title, 3920 url: share_url, 3921 v: 5 3922 }), 3923 digg: "https://digg.com/submit?" + st.qs({ 3924 url: share_url 3925 }), 3926 diigo: "https://www.diigo.com/post?" + st.qs({ 3927 title: title, 3928 url: share_url 3929 }), 3930 douban: "http://www.douban.com/recommend/?" + st.qs({ 3931 title: title, 3932 url: share_url 3933 }), 3934 email: "mailto:?" + st.qs({ 3935 subject: subject || "I'd like to share a link with you", 3936 body: message || ("" + url) 3937 }), 3938 evernote: "http://www.evernote.com/clip.action?" + st.qs({ 3939 title: title, 3940 url: share_url 3941 }), 3942 facebook: "https://www.facebook.com/sharer.php?" + st.qs({ 3943 t: title, 3944 u: share_url 3945 }), 3946 fark: "https://www.fark.com/submit?" + st.qs({ 3947 new_url: share_url 3948 }), 3949 flipboard: "https://share.flipboard.com/bookmarklet/popout?" + st.qs({ 3950 ext: 'sharethis', 3951 title: title, 3952 url: share_url, 3953 utm_campaign: 'widgets',
3954 utm_content: hostname, 3955 utm_source: 'sharethis', 3956 v: 2 3957 }), 3958 foursquare: 'https://foursquare.com/intent/venue/' + title, 3959 gab: "https://gab.com/compose?url=" + share_url, 3960 getpocket: "https://getpocket.com/edit?" + st.qs({ 3961 url: share_url 3962 }), 3963 gmail: "https://mail.google.com/mail/?view=cm&" + st.qs({ 3964 to: '', 3965 su: title, 3966 body: share_url, 3967 bcc: '', 3968 cc: '' 3969 }), 3970 goodreads: "https://www.goodreads.com/quotes?" + st.qs({ 3971 'quote[url]': share_url 3972 }), 3973 googlebookmarks: "https://www.google.com/bookmarks/mark?" + st.qs({ 3974 op: 'edit', 3975 bkmk: share_url, 3976 title: title, 3977 annotation: description 3978 }), 3979 hackernews: "https://news.ycombinator.com/submitlink?" + st.qs({ 3980 u: share_url, 3981 t: title 3982 }), 3983 houzz: "https://www.houzz.com/imageClipperUpload?" + st.qs({ 3984 link: share_url, 3985 source: 'link', 3986 hzid: '' 3987 }), 3988 instapaper: "http://www.instapaper.com/edit?" + st.qs({ 3989 url: share_url, 3990 title: title, 3991 description: description 3992 }), 3993 iorbix: "https://iorbix.com/m-share?" + st.qs({ 3994 url: share_url, 3995 title: title 3996 }), 3997 kakao: "https://story.kakao.com/share?" + st.qs({ 3998 url: share_url 3999 }), 4000 kindleit: "https://pushtokindle.fivefilters.org/send.php?" + st.qs({ 4001 url: share_url 4002 }), 4003 kooapp: "https://www.kooapp.com/create?" + st.qs({ 4004 title: title, 4005 link: share_url 4006 }), 4007 line: "https://lineit.line.me/share/ui?" + st.qs({ 4008 url: share_url, 4009 text: title || description 4010 }), 4011 linkedin: "https://www.linkedin.com/shareArticle?" + st.qs({ 4012 title: title, 4013 url: share_url 4014 }), 4015 livejournal: "https://www.livejournal.com/update.bml?" + st.qs({ 4016 event: share_url, 4017 subject: title 4018 }), 4019 mailru: "https://connect.mail.ru/share?" + st.qs({ 4020 share_url: share_url 4021 }), 4022 mailru: "https://connect.mail.ru/share?" + st.qs({ 4023 share_url: share_url 4024 }), 4025 meneame: "https://meneame.net/submit.php?" + st.qs({ 4026 url: share_url 4027 }), 4028 messenger: { 4029 "true": "fb-messenger://share/?" + st.qs({ 4030 link: share_url, 4031 app_id: 291494419107518 4032 }), 4033 "false": "https://www.facebook.com/dialog/send?" + st.qs({ 4034 link: share_url, 4035 app_id: 291494419107518, 4036 redirect_uri: "https://www.sharethis.com" 4037 }) 4038 }[st.mobile], 4039 microsoftteams: "https://teams.microsoft.com/l/entity/com.microsoft.teamspace.tab.url.share?" + st.qs({ 4040 webUrl: share_url, 4041 appName: title 4042 }), 4043 naver: "http://share.naver.com/web/shareView.nhn?" + st.qs({ 4044 url: share_url, 4045 title: title 4046 }), 4047 nextdoor: "https://nextdoor.com/sharekit/?" + st.qs({ 4048 source: share_url, 4049 body: title 4050 }), 4051 odnoklassniki: "https://connect.ok.ru/dk?" + st.qs({ 4052 'st.cmd': 'WidgetSharePreview', 4053 'st.shareUrl': share_url 4054 }), 4055 outlook: "https://outlook.live.com/mail/deeplink/compose?" + st.qs({ 4056 path: 'mail inbox', 4057 subject: subject || "I'd like to share a link with you", 4058 body: message || ("" + url) 4059 }), 4060 pinboard: "https://pinboard.in/add?" + st.qs({ 4061 url: share_url, 4062 title: title 4063 }), 4064 pinterest: "https://pinterest.com/pin/create/button/?" + st.qs({ 4065 description: title, 4066 media: image, 4067 url: share_url 4068 }), 4069 plurk: "http://www.plurk.com/?" + st.qs({ 4070 qualifier: 'shares', 4071 status: share_url 4072 }), 4073 qzone: "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?" + st.qs({ 4074 url: share_url 4075 }), 4076 reddit: "https://reddit.com/submit?" + st.qs({ 4077 title: title, 4078 url: share_url 4079 }), 4080 refind: "https://refind.com?" + st.qs({ 4081 url: share_url 4082 }), 4083 renren: "http://widget.renren.com/dialog/share?" + st.qs({ 4084 resourceUrl: share_url, 4085 srcUrl: share_url, 4086 title: title, 4087 description: description || title 4088 }), 4089 skype: "https://web.skype.com/share?" + st.qs({ 4090 url: share_url, 4091 text: title 4092 }), 4093 sms: "sms:" + (is_ios ? '&' : '?') + "body=" + (encodeURIComponent(share_url)), 4094 snapchat: "https://snapchat.com/scan?" + st.qs({ 4095 attachmentUrl: share_url, 4096 utm_source: 'sharethis' 4097 }), 4098 surfingbird: "http://surfingbird.ru/share?" + st.qs({ 4099 url: share_url, 4100 description: description || title, 4101 title: title 4102 }), 4103 telegram: "https://t.me/share/url?" + st.qs({ 4104 url: share_url, 4105 text: title, 4106 to: '' 4107 }), 4108 tencentqq: "https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?" + st.qs({ 4109 url: share_url, 4110 title: title, 4111 summary: share_url, 4112 desc: description, 4113 pics: image 4114 }), 4115 threema: "threema://compose?" + st.qs({ 4116 text: share_url, 4117 id: '' 4118 }), 4119 trello: "https://trello.com/add-card?" + st.qs({ 4120 mode: 'popup', 4121 url: share_url, 4122 desc: description || title 4123 }), 4124 tumblr: "https://www.tumblr.com/share?" + st.qs({ 4125 t: title, 4126 u: share_url, 4127 v: 3 4128 }), 4129 twitter: "https://twitter.com/intent/tweet?" + st.qs({ 4130 text: title || description, 4131 url: share_url, 4132 via: username 4133 }), 4134 vk: "https://vk.com/share.php?" + st.qs({ 4135 url: share_url 4136 }), 4137 viber: "viber://forward?" + st.qs({ 4138 text: share_url, 4139 url: 'viber' 4140 }), 4141 weibo: "http://service.weibo.com/share/share.php?" + st.qs({ 4142 title: title, 4143 url: share_url, 4144 pic: image 4145 }),
4146 whatsapp: (!st.mobile ? "https://web.whatsapp.com/send?" : "whatsapp://send?") + st.qs({ 4147 text: share_url 4148 }), 4149 wordpress: "http://wordpress.com/wp-admin/press-this.php?" + st.qs({ 4150 u: share_url, 4151 t: title, 4152 s: description || title, 4153 i: '' 4154 }), 4155 yahoomail: "http://compose.mail.yahoo.com/?" + st.qs({ 4156 to: '', 4157 subject: title, 4158 body: share_url 4159 }), 4160 yummly: "https://www.yummly.com/urb/verify?" + st.qs({ 4161 url: share_url, 4162 title: title, 4163 urbtype: 'bookmarklet', 4164 type: 'agg', 4165 vendor: 'sharethis', 4166 image: image 4167 }), 4168 xing: "https://www.xing.com/app/user?" + st.qs({ 4169 op: 'share', 4170 title: title, 4171 url: share_url 4172 }) 4173 }; 4174 return st.open(redirects[network]); 4175 }; 4176 4177 st.follow = (function (_this) { 4178 return function (config) { 4179 var follow_url, network, url; 4180 if (config == null) { 4181 config = {}; 4182 } 4183 follow_url = config.follow_url, network = config.network, url = config.url; 4184 if (url == null) { 4185 url = st.href; 4186 } 4187 st.log({ 4188 destinations: network, 4189 event: 'follow', 4190 followUrl: follow_url, 4191 url: url 4192 }); 4193 return window.open(follow_url, '_blank'); 4194 }; 4195 })(this); 4196 4197 st.storage = { 4198 get: function (key) { 4199 if (st.hasLocalStorage) { 4200 try { 4201 return JSON.parse(localStorage.getItem(key)); 4202 } catch (error1) { 4203 } 4204 } 4205 if (st.hasCookies) { 4206 return st.getCookie(key); 4207 } 4208 return st.get(key); 4209 }, 4210 set: function (key, value) { 4211 if (st.hasLocalStorage) { 4212 return localStorage.setItem(key, JSON.stringify(value)); 4213 } 4214 if (st.hasCookies) { 4215 return st.setCookie(key, value); 4216 } 4217 return st.set(key, value); 4218 } 4219 }; 4220 4221 st.svg = function (paths, size) { 4222 var d; 4223 if (size == null) { 4224 size = 40; 4225 } 4226 if (typeof paths === 'string') { 4227 paths = [paths]; 4228 } 4229 return "<svg fill=\"#fff\" preserveAspectRatio=\"xMidYMid meet\" height=\"1em\" width=\"1em\" viewBox=\"0 0 " + size + " " + size + "\">\n <g>\n " + (((function () { 4230 var i, len, results; 4231 results = []; 4232 for (i = 0, len = paths.length; i < len; i++) { 4233 d = paths[i]; 4234 results.push("<path d='" + d + "'></path>"); 4235 } 4236 return results; 4237 })()).join('')) + "\n </g>\n</svg>"; 4238 }; 4239 4240 st.toggleClass = function ($el, name) { 4241 if (st.hasClass($el, name)) { 4242 return st.removeClass($el, name); 4243 } else { 4244 return st.addClass($el, name); 4245 } 4246 }; 4247 4248 st.filterInvalidNetworks = function (networks, valid) { 4249 var n; 4250 if (valid == null) { 4251 valid = st.networks; 4252 } 4253 return (function () { 4254 var i, len, results; 4255 results = []; 4256 for (i = 0, len = networks.length; i < len; i++) { 4257 n = networks[i]; 4258 if (valid.indexOf(n) !== -1) { 4259 results.push(n); 4260 } 4261 } 4262 return results; 4263 })(); 4264 }; 4265 4266 st.tcfapi_listener = (function () { 4267 var interval, start; 4268 start = Date.now(); 4269 return interval = setInterval((function () { 4270 var e; 4271 if (window.__tcfapi) { 4272 try { 4273 window.__tcfapi("addEventListener", 2, function (data) { 4274 if ((data != null ? data.eventStatus : void 0) === "useractioncomplete") { 4275 st.gdpr_consent = data.tcString; 4276 st.gdpr_domain = data.isServiceSpecific ? document.location.hostname : ".sharethis.com"; 4277 st.gdpr_method = "api"; 4278 return st.log({ 4279 event: "updated_consent", 4280 pview_had_consent: st.pview_had_consent 4281 }); 4282 } 4283 }); 4284 } catch (error1) { 4285 e = error1; 4286 } 4287 clearInterval(interval); 4288 } 4289 if (Date.now() - start > 10000) { 4290 return clearInterval(interval); 4291 } 4292 }), 1000); 4293 })(); 4294 4295 st.floc = function () { 4296 var error; 4297 try { 4298 if (document.interestCohort) { 4299 return document.interestCohort().then(function (cohort) { 4300 if (cohort) { 4301 return st.log({ 4302 event: 'floc', 4303 floc: JSON.stringify(cohort) 4304 }); 4305 } 4306 }); 4307 } 4308 } catch (error1) { 4309 error = error1; 4310 } 4311 }; 4312 4313 4314 /* 4315 * Add Listeners 4316 */ 4317 4318 st.addEventListener(document, "click", st.obl); 4319 4320 st.addEventListener(document, "copy", st.copy); 4321 4322}).call(this); 4323 4324(function () { 4325 st = window.__sharethis__ 4326 4327 st.CustomColor = class CustomColor {
4328 constructor(r, g, b) { 4329 this.set(r, g, b); 4330 } 4331 4332 toString() { 4333 return `rgb(${Math.round(this.r)}, ${Math.round(this.g)}, ${Math.round(this.b)})`; 4334 } 4335 4336 set(r, g, b) { 4337 this.r = this.clamp(r); 4338 this.g = this.clamp(g); 4339 this.b = this.clamp(b); 4340 } 4341 4342 hueRotate(angle = 0) { 4343 angle = angle / 180 * Math.PI; 4344 const sin = Math.sin(angle); 4345 const cos = Math.cos(angle); 4346 4347 this.multiply([ 4348 0.213 + cos * 0.787 - sin * 0.213, 4349 0.715 - cos * 0.715 - sin * 0.715, 4350 0.072 - cos * 0.072 + sin * 0.928, 4351 0.213 - cos * 0.213 + sin * 0.143, 4352 0.715 + cos * 0.285 + sin * 0.140, 4353 0.072 - cos * 0.072 - sin * 0.283, 4354 0.213 - cos * 0.213 - sin * 0.787, 4355 0.715 - cos * 0.715 + sin * 0.715, 4356 0.072 + cos * 0.928 + sin * 0.072, 4357 ]); 4358 } 4359 4360 grayscale(value = 1) { 4361 this.multiply([ 4362 0.2126 + 0.7874 * (1 - value), 4363 0.7152 - 0.7152 * (1 - value), 4364 0.0722 - 0.0722 * (1 - value), 4365 0.2126 - 0.2126 * (1 - value), 4366 0.7152 + 0.2848 * (1 - value), 4367 0.0722 - 0.0722 * (1 - value), 4368 0.2126 - 0.2126 * (1 - value), 4369 0.7152 - 0.7152 * (1 - value), 4370 0.0722 + 0.9278 * (1 - value), 4371 ]); 4372 } 4373 4374 sepia(value = 1) { 4375 this.multiply([ 4376 0.393 + 0.607 * (1 - value), 4377 0.769 - 0.769 * (1 - value), 4378 0.189 - 0.189 * (1 - value), 4379 0.349 - 0.349 * (1 - value), 4380 0.686 + 0.314 * (1 - value), 4381 0.168 - 0.168 * (1 - value), 4382 0.272 - 0.272 * (1 - value), 4383 0.534 - 0.534 * (1 - value), 4384 0.131 + 0.869 * (1 - value), 4385 ]); 4386 } 4387 4388 saturate(value = 1) { 4389 this.multiply([ 4390 0.213 + 0.787 * value, 4391 0.715 - 0.715 * value, 4392 0.072 - 0.072 * value, 4393 0.213 - 0.213 * value, 4394 0.715 + 0.285 * value, 4395 0.072 - 0.072 * value, 4396 0.213 - 0.213 * value, 4397 0.715 - 0.715 * value, 4398 0.072 + 0.928 * value, 4399 ]); 4400 } 4401 4402 multiply(matrix) { 4403 const newR = this.clamp(this.r * matrix[0] + this.g * matrix[1] + this.b * matrix[2]); 4404 const newG = this.clamp(this.r * matrix[3] + this.g * matrix[4] + this.b * matrix[5]); 4405 const newB = this.clamp(this.r * matrix[6] + this.g * matrix[7] + this.b * matrix[8]); 4406 this.r = newR; 4407 this.g = newG; 4408 this.b = newB; 4409 } 4410 4411 brightness(value = 1) { 4412 this.linear(value); 4413 } 4414 4415 contrast(value = 1) { 4416 this.linear(value, -(0.5 * value) + 0.5); 4417 } 4418 4419 linear(slope = 1, intercept = 0) { 4420 this.r = this.clamp(this.r * slope + intercept * 255); 4421 this.g = this.clamp(this.g * slope + intercept * 255); 4422 this.b = this.clamp(this.b * slope + intercept * 255); 4423 } 4424 4425 invert(value = 1) { 4426 this.r = this.clamp((value + this.r / 255 * (1 - 2 * value)) * 255); 4427 this.g = this.clamp((value + this.g / 255 * (1 - 2 * value)) * 255); 4428 this.b = this.clamp((value + this.b / 255 * (1 - 2 * value)) * 255); 4429 } 4430 4431 hsl() { 4432 // Code taken from https://stackoverflow.com/a/9493060/2688027, licensed under CC BY-SA. 4433 const r = this.r / 255; 4434 const g = this.g / 255; 4435 const b = this.b / 255; 4436 const max = Math.max(r, g, b); 4437 const min = Math.min(r, g, b); 4438 let h, s, l = (max + min) / 2; 4439 4440 if (max === min) { 4441 h = s = 0; 4442 } else { 4443 const d = max - min; 4444 s = l > 0.5 ? d / (2 - max - min) : d / (max + min); 4445 switch (max) { 4446 case r: 4447 h = (g - b) / d + (g < b ? 6 : 0); 4448 break; 4449 4450 case g: 4451 h = (b - r) / d + 2; 4452 break; 4453 4454 case b: 4455 h = (r - g) / d + 4; 4456 break; 4457 } 4458 h /= 6; 4459 } 4460 4461 return { 4462 h: h * 100, 4463 s: s * 100, 4464 l: l * 100, 4465 }; 4466 } 4467 4468 clamp(value) { 4469 if (value > 255) { 4470 value = 255; 4471 } else if (value < 0) { 4472 value = 0; 4473 } 4474 return value; 4475 } 4476 } 4477 4478 st.Solver = class Solver { 4479 constructor(target, baseColor) { 4480 this.target = target; 4481 this.targetHSL = target.hsl(); 4482 this.reusedColor = new st.CustomColor(0, 0, 0); 4483 } 4484 4485 solve() { 4486 const result = this.solveNarrow(this.solveWide()); 4487 return { 4488 values: result.values, 4489 loss: result.loss, 4490 filter: this.css(result.values), 4491 }; 4492 } 4493 4494 solveWide() { 4495 const A = 5; 4496 const c = 15; 4497 const a = [60, 180, 18000, 600, 1.2, 1.2]; 4498 4499 let best = {loss: Infinity}; 4500 for (let i = 0; best.loss > 25 && i < 3; i++) { 4501 const initial = [50, 20, 3750, 50, 100, 100]; 4502 const result = this.spsa(A, a, c, initial, 1000); 4503 if (result.loss < best.loss) { 4504 best = result; 4505 } 4506 } 4507 return best; 4508 } 4509 4510 solveNarrow(wide) { 4511 const A = wide.loss; 4512 const c = 2; 4513 const A1 = A + 1; 4514 const a = [0.25 * A1, 0.25 * A1, A1, 0.25 * A1, 0.2 * A1, 0.2 * A1]; 4515 return this.spsa(A, a, c, wide.values, 500); 4516 } 4517 4518 spsa(A, a, c, values, iters) {
4519 const alpha = 1; 4520 const gamma = 0.16666666666666666; 4521 4522 let best = null; 4523 let bestLoss = Infinity; 4524 const deltas = new Array(6); 4525 const highArgs = new Array(6); 4526 const lowArgs = new Array(6); 4527 4528 for (let k = 0; k < iters; k++) { 4529 const ck = c / Math.pow(k + 1, gamma); 4530 for (let i = 0; i < 6; i++) { 4531 deltas[i] = Math.random() > 0.5 ? 1 : -1; 4532 highArgs[i] = values[i] + ck * deltas[i]; 4533 lowArgs[i] = values[i] - ck * deltas[i]; 4534 } 4535 4536 const lossDiff = this.loss(highArgs) - this.loss(lowArgs); 4537 for (let i = 0; i < 6; i++) { 4538 const g = lossDiff / (2 * ck) * deltas[i]; 4539 const ak = a[i] / Math.pow(A + k + 1, alpha); 4540 values[i] = fix(values[i] - ak * g, i); 4541 } 4542 4543 const loss = this.loss(values); 4544 if (loss < bestLoss) { 4545 best = values.slice(0); 4546 bestLoss = loss; 4547 } 4548 } 4549 return {values: best, loss: bestLoss}; 4550 4551 function fix(value, idx) { 4552 let max = 100; 4553 if (idx === 2 /* saturate */) { 4554 max = 7500; 4555 } else if (idx === 4 /* brightness */ || idx === 5 /* contrast */) { 4556 max = 200; 4557 } 4558 4559 if (idx === 3 /* hue-rotate */) { 4560 if (value > max) { 4561 value %= max; 4562 } else if (value < 0) { 4563 value = max + value % max; 4564 } 4565 } else if (value < 0) { 4566 value = 0; 4567 } else if (value > max) { 4568 value = max; 4569 } 4570 return value; 4571 } 4572 } 4573 4574 loss(filters) { 4575 // Argument is array of percentages. 4576 const color = this.reusedColor; 4577 color.set(0, 0, 0); 4578 4579 color.invert(filters[0] / 100); 4580 color.sepia(filters[1] / 100); 4581 color.saturate(filters[2] / 100); 4582 color.hueRotate(filters[3] * 3.6); 4583 color.brightness(filters[4] / 100); 4584 color.contrast(filters[5] / 100); 4585 4586 const colorHSL = color.hsl(); 4587 return ( 4588 Math.abs(color.r - this.target.r) + 4589 Math.abs(color.g - this.target.g) + 4590 Math.abs(color.b - this.target.b) + 4591 Math.abs(colorHSL.h - this.targetHSL.h) + 4592 Math.abs(colorHSL.s - this.targetHSL.s) + 4593 Math.abs(colorHSL.l - this.targetHSL.l) 4594 ); 4595 } 4596 4597 css(filters) { 4598 function fmt(idx, multiplier = 1) { 4599 if (idx == 0) { 4600 return Math.round(100 - (filters[idx] * multiplier)) 4601 } 4602 return Math.round(filters[idx] * multiplier); 4603 } 4604 4605 return `filter: invert(${fmt(0)}%) sepia(${fmt(1)}%) saturate(${fmt(2)}%) hue-rotate(${fmt(3, 3.6)}deg) brightness(${fmt(4)}%) contrast(${fmt(5)}%);`; 4606 } 4607 } 4608 4609})(); 4610 4611(function () { 4612 var st; 4613 4614 st = window.__sharethis__; 4615 4616 st.hexToRgb = function (hex) { 4617 var result, shorthandRegex; 4618 if (!hex) { 4619 return; 4620 } 4621 if (typeof hex !== 'string') { 4622 return 'Wrong type input'; 4623 } 4624 shorthandRegex = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; 4625 hex = hex.replace(shorthandRegex, (function (_this) { 4626 return function (m, r, g, b) { 4627 return r + r + g + g + b + b; 4628 }; 4629 })(this)); 4630 result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); 4631 if (result) { 4632 return [parseInt(result[1], 16), parseInt(result[2], 16), parseInt(result[3], 16)]; 4633 } 4634 }; 4635 4636 st.getFilter = function (rgb_hex) { 4637 var color, result, rgb, solver; 4638 rgb = st.hexToRgb(rgb_hex); 4639 if (!rgb) { 4640 return 'Invalid hex'; 4641 } 4642 if (rgb.length !== 3) { 4643 return 'Invalid hex format!'; 4644 } 4645 color = new st.CustomColor(rgb[0], rgb[1], rgb[2]); 4646 solver = new st.Solver(color); 4647 result = solver.solve(); 4648 return result.filter.split(': ')[1]; 4649 }; 4650 4651}).call(this); 4652 4653(function (a, b) { 4654 window.__sharethis__.mobile = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
4654sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4)) 4655})(navigator.userAgent || navigator.vendor || window.opera); 4656 4657(function () { 4658 window.__sharethis__.is_ie = /(MSIE|Trident|Edge)/i.test(navigator.userAgent); 4659 window.__sharethis__.is_ie8 = /MSIE 8/i.test(navigator.userAgent); 4660})(); 4661 4662/** 4663 * none: https://goop.com/wellness/ 4664 * anchor.fm: https://www.podcastinsights.com/podcast-embed-players/ 4665 * consensu.org: 4666 * embed.ly: https://embed.ly/code?url=http%3A%2F%2Fgoogle.com 4667 * gfycat: https://developers.gfycat.com/iframe/#gfycat-iframe 4668 * giphy: https://giphy.com/posts/how-to-embed-giphy-gifs-on-your-website 4669 * imgur: https://help.imgur.com/hc/en-us/articles/211273743-Embed-Unit 4670 * instagram: https://www.bbc.com/news/uk-wales-51311320 4671 * megaphone: https://www.podcastinsights.com/podcast-embed-players/ 4672 * reddit: https://redditblog.com/2017/06/14/why-publishers-should-use-reddit-embeds/ 4673 * redditmedia: https://redditblog.com/2017/06/14/why-publishers-should-use-reddit-embeds/ 4674 * soundcloud: https://en.support.wordpress.com/soundcloud-audio-player/ 4675 * spotify: https://www.usmagazine.com/entertainment/news/kim-kardashian-north-asks-if-she-can-visit-prisons-with-me/ 4676 * tiktok: https://jezebel.com/15-tiktoks-that-deserve-academy-awards-1838371668 4677 * twitch: https://www.dexerto.com/entertainment/top-10-most-viewed-twitch-clips-of-all-time-2-310900 4678 * twitter: https://time.com/4128887/kobe-bryant-retirement-celebrities-reaction/ 4679 * vimeo: https://vimeo.zendesk.com/hc/en-us/articles/224969968-Embedding-videos-overview 4680 * youtube: https://electricbikereview.com/gocycle/gs/ 4681 */ 4682 4683/** 4684 * anchor.fm 4685 * tags: iframe 4686 * format: anchor.fm/{content}/embed 4687 * suggestions: add requirement for iframe 4688 */ 4689 4690/** 4691 * facebook.com 4692 * tags: iframe 4693 * format: facebook.com/plugins/{plugin_type} 4694 * exclude: /plugins/like, /plugins/page, /plugins/comment, /plugins/group, /plugins/follow, /plugins/customerchat, /plugins/messenger_checkbox, /plugins/send_to_messenger 4695 * require: /plugins/post, /plugins/video, /plugins/share_button 4696 * even though rhombus collects plugins/share_button i'm not sold we should, doesn't seem to embed to any outside content 4697 * suggestions: add requirement for iframe and update exclude/require statements 4698 */ 4699 4700/** 4701 * gfycat.com 4702 * tags: iframe 4703 * format: gfycat.com/ifr 4704 * suggestions: add requirement for iframe 4705 */ 4706 4707/** 4708 * giphy.com 4709 * tags: iframe 4710 * format: giphy.com/embed 4711 * questions: what happens when we remove the requirement for /embed and introduce a requirement for iframe? 4712 * suggestions: add requirement for iframe 4713 */ 4714 4715/** 4716 * imgur.com 4717 * tags: iframe 4718 * format: imgur.com/{hash}/embed 4719 * suggestions: add requirement for iframe 4720 */ 4721 4722/** 4723 * instagram.com 4724 * tags: iframe, blockquote 4725 * format: www.instagram.com/p 4726 * questions: what happens when we remove the requirement for /p and introduce a requirement for iframe and blockquote? 4727 * suggestions: add requirement for either iframe or blockquote 4728 */ 4729 4730/** 4731 * megaphone.fm 4732 * tags: iframe 4733 * format: player.megaphone.fm 4734 * questions: what happens when we remove the requirement for player and introduce a requirement for iframe? 4735 * suggestions: add requirement for iframe 4736 */ 4737 4738/** 4739 * redditmedia.com 4740 * it's difficult to find any records with redditmedia.com embeds 4741 * we may want to remove the requirment for /r and also look for reddit.com 4742 * suggestions: add requirement for iframe, remove requirement for /r 4743 */ 4744 4745/** 4746 * soundcloud.com 4747 * tags: iframe 4748 * format: w.soundcloud.com/player 4749 * questions: whats happens when we remove the requirement for /player and introduce a requirement for iframe? 4750 * suggestions: add requirement for iframe 4751 */ 4752 4753/** 4754 * spotify.com 4755 * tags: iframe 4756 * format: open.spotify.com/{endpoint} 4757 * exlude: /follow 4758 * require: /embed 4759 * suggestions: add requirement for iframe and update exclude/require statements 4760 */ 4761
4762/** 4763 * tiktok.com 4764 * tags: iframe 4765 * format: tiktok.com/embed/ 4766 * questions: what happens when we remove the requirement for /embed and introduce a requirement for iframe? 4767 * suggestions: add requirement for iframe 4768 */ 4769 4770/** 4771 * twitch.tv 4772 * tags: iframe 4773 * format: clips.twitch.tv/embed 4774 * questions: what happens when we remove the requirement for clips and introduce a requirement for iframe? 4775 * suggestions: add requirement for iframe 4776 */ 4777 4778/** 4779 * twitter.com 4780 * tags: div, blockquote 4781 * format: twitter.com/{user}/status 4782 * questions: this one is difficult because twitter doesn't use iframes (at least in the data we collected) 4783 * questions: it looks like for every embed we pull identical srcs from a div and blockquote 4784 * questions: we probably only need to pull just div 4785 * questions: what happens when we remove the /status requirement? 4786 * suggestions: add requirement for div 4787 */ 4788 4789/** 4790 * vimeo.com 4791 * tags: iframe 4792 * format: player.vimeo.com/video 4793 * questions: what happens when we remove the player requirement and introduce a requirement for iframe? 4794 * suggestions: add requirement for iframe 4795 */ 4796 4797/** 4798 * youtube.com 4799 * tags: iframe 4800 * format: youtube.com/embed 4801 * questions: what happens when we remove the requirement for /embed and introduce a requirement for iframe? 4802 * suggestions: add requirement for iframe 4803 */ 4804 4805// service list 4806var st = window.__sharethis__ || {}; 4807st.getEmbeds = function (next) { 4808 4809 var selectors = [ 4810 '.embed-twitter', 4811 '.embedly-card', 4812 '.fb-post', 4813 '.fb-video', 4814 '.instagram-media', 4815 '.reddit', 4816 '.reddit-card', 4817 '.rm-shortcode', 4818 '.spotify', 4819 '.tumblr-embed', 4820 '.twitter-embed', 4821 '.twitter-follow', 4822 '.twitter-tweet', 4823 '.twitter-video', 4824 '.twitter-widget', 4825 'embed', 4826 'iframe', 4827 '[class^="PIN"]' 4828 ]; 4829 4830 var config = [ 4831 {type: "audio", url: "anchor.fm"}, 4832 {type: "audio", url: "open.spotify.com/embed"}, 4833 {type: "audio", url: "player.megaphone.fm"}, 4834 {type: "audio", url: "playlist.megaphone.fm"}, 4835 {type: "audio", url: "w.soundcloud.com"}, 4836 {type: "image", url: "gfycat.com"}, 4837 {type: "image", url: "giphy.com/embed"}, 4838 {type: "image", url: "imgur.com"}, 4839 {type: "image", url: /(pinterest.com\/pin\/\d+\/)(?!.\S)/, span: true}, 4840 {type: "post", url: "facebook.com/plugins/post"}, 4841 {type: "post", url: "instagram.com/p", blockquote: true}, 4842 {type: "post", url: "linkedin.com/embed"}, 4843 {type: "post", url: "embed.tumblr.com/embed/post"}, 4844 {type: "post", url: /twitter.com\/.*\/status\/[0-9]+$/, blockquote: true}, 4845 {type: "video", url: /facebook.com\/.[^\/]*\/plugins\/video/}, 4846 {type: "video", url: "facebook.com/plugins/video"}, 4847 {type: "video", url: /tiktok.com\/.[^\/]*\/video/, blockquote: true}, 4848 {type: "video", url: "player.vimeo.com"}, 4849 {type: "video", url: "youtube.com/embed"}, 4850 {type: "video", url: "clips.twitch.tv"}, 4851 {type: "video", url: "player.twitch.tv"} 4852 ]; 4853 4854 var sources = [ 4855 'cite', 4856 'data-click-to-open-target', 4857 'data-href', 4858 'data-instgrm-permalink', 4859 'data-lazy-src', 4860 'data-permalink', 4861 'data-pin-href', 4862 'data-src', 4863 'data-src-2x', 4864 'href', 4865 'src' 4866 ]; 4867 4868 // returns false if element is not an embed 4869 function getEmbedRule(tag, url) { 4870 // ensure the url has a proper prefix 4871 if (url.indexOf('http') != 0 && url.indexOf('//') != 0) { 4872 return false; 4873 } 4874 for (var i in config) { 4875 var rule = config[i]; 4876 var match = url.match(rule.url); 4877 if (match && match.length) { 4878 if (tag == 'iframe' || rule[tag]) { 4879 return rule; 4880 } 4881 return false; 4882 } 4883 } 4884 return false; 4885 } 4886 4887 // find elements 4888 var embeds = {}; 4889 var embed_els = document.querySelectorAll(selectors.join(',')); 4890 for (var i = 0; i < embed_els.length; i++) { 4891 var embed_el = embed_els[i]; 4892 try { 4893 var container = embed_el.shadowRoot || embed_el.parentElement; 4894 // find a valid url 4895 for (var j = 0; j < sources.length; j++) { 4896 var source = sources[j]; 4897 var source_els = container.querySelectorAll("[" + source + "]"); 4898 for (var k = 0; k < source_els.length; k++) {
4899 var source_el = source_els[k]; 4900 var tag = source_el.tagName.toLowerCase(); 4901 if (tag == 'iframe' || tag == 'blockquote' || tag == 'span') { 4902 var url = source_el.getAttribute(source); 4903 var rule = getEmbedRule(tag, url); 4904 if (rule) { 4905 if (url[url.length - 1] == '/') { 4906 url = url.substring(0, url.length - 1); 4907 } 4908 embeds[url] = {el: source_el, type: rule.type}; 4909 } 4910 } 4911 } 4912 } 4913 } catch (err) { 4914 } 4915 } 4916 4917 // gather output 4918 var result = []; 4919 for (var url in embeds) { 4920 if (next) { 4921 next(embeds[url].el, embeds[url].type, url); 4922 } 4923 result.push(url); 4924 } 4925 4926 return result; 4927} 4928st.embeds = st.getEmbeds(); 4929 4930(function () { 4931 window.__sharethis__.COLORS = { 4932 airbnb: '#FF5A5F', 4933 amazon: '#FFB300', 4934 bandcamp: '#1ca0c3', 4935 behance: '#135bf3', 4936 bitbucket: '#2584ff', 4937 blogger: '#ff8000', 4938 blm: '#000000', 4939 buffer: '#323B43', 4940 copy: '#14682B', 4941 delicious: '#205cc0', 4942 deviantart: '#21ce4e', 4943 diaspora: '#000000', 4944 discord: "#8c9eff", 4945 digg: '#262626', 4946 diigo: '#5285c4', 4947 douban: '#2E963D', 4948 dribbble: '#e44786', 4949 email: '#7d7d7d', 4950 evernote: '#5BA525', 4951 etsy: '#E67E22', 4952 facebook: '#4267B2', 4953 fark: '#6a6a9c', 4954 flickr: '#ff0084', 4955 flipboard: '#e12828', 4956 foursquare: '#0732A2', 4957 gab: '#1acf79', 4958 getpocket: '#ef4056', 4959 gitlab: '#ff492c', 4960 gmail: '#D44638', 4961 goodreads: '#382110', 4962 googlebookmarks: '#4285F4', 4963 googlemaps: '#4185f3', 4964 github: '#333333', 4965 hackernews: '#ff4000', 4966 houzz: '#4DBC15', 4967 instagram: '#bc2a8d', 4968 instapaper: '#000000', 4969 iorbix: '#364447', 4970 kakao: '#F9DD4A', 4971 kindleit: '#363C3D', 4972 kooapp: '#FACD00', 4973 line: '#00c300', 4974 linkedin: '#0077b5', 4975 livejournal: '#00b0ea', 4976 mailru: '#168de2', 4977 medium: '#333333', 4978 meetup: '#e61b3e', 4979 meneame: '#ff6400', 4980 messenger: '#448AFF', 4981 microsoftteams: '#515bc1', 4982 mix: '#ff8226', 4983 naver: '#07bc5e', 4984 nextdoor: '#8ed500', 4985 odnoklassniki: '#d7772d', 4986 outlook: '#3070CB', 4987 patreon: '#F96854', 4988 pinboard: '#1f36f2', 4989 pinterest: '#CB2027', 4990 plurk: '#FF574D', 4991 print: '#222222', 4992 qzone: '#F1C40F', 4993 quora: '#a62100', 4994 refind: '#4286f4', 4995 reddit: '#ff4500', 4996 renren: '#005baa', 4997 sharethis: '#95D03A', 4998 shares: '#0eb2b2', 4999 skype: '#00aff0', 5000 sms: '#ffbd00', 5001 snapchat: '#fffc00', 5002 slideshare: '#057eb0', 5003 soundcloud: '#ff8800', 5004 spotify: '#1ED760', 5005 stackoverflow: '#c66516', 5006 surfingbird: '#6dd3ff', 5007 telegram: '#0088cc', 5008 tencentqq: '#5790F7', 5009 threads: '#000000', 5010 threema: '#000000', 5011 trello: '#0D63DE', 5012 tiktok: '#4c4c4c', 5013 tripadvisor: '#1ABC9C', 5014 tumblr: '#32506d', 5015 twitch: '#6441A4', 5016 twitter: '#000000', 5017 vk: '#4c6c91', 5018 viber: '#645EA4', 5019 vimeo: '#29B6F6', 5020 wechat: '#4EC034', 5021 weibo: '#ff9933', 5022 whatsapp: '#25d366', 5023 wordpress: '#21759b', 5024 xing: '#1a7576', 5025 yelp: '#d32323', 5026 youtube: '#FF0000', 5027 yahoomail: '#720e9e', 5028 yummly: '#E16120', 5029 zillow: '#006aff', 5030 zomato: '#e23844' 5031 }; 5032 5033}).call(this); 5034 5035(function () { 5036 window.__sharethis__.PRODUCTS = ['custom-share-buttons', 'ecommerce', 'email-list-builder', 'ga', 'gdpr-compliance-tool', 'gdpr-compliance-tool-v2', 'image-share-buttons', 'image-share-buttons-wp', 'inline-follow-buttons', 'inline-reaction-buttons', 'inline-share-buttons', 'inline-share-buttons-wp', 'powr-form-builder', 'powr-popup', 'powr-social-feed', 'privacy-policy-generator', 'privy-share-buttons', 'reviews', 'sop', 'sop-wordpress-plugin', 'sticky-share-buttons', 'sticky-share-buttons-wp', 'top-content', 'unknown', 'video-share-buttons', 'viral-notifications']; 5037 5038}).call(this); 5039 5040(function () { 5041 var st; 5042 5043 st = window.__sharethis__; 5044 5045 st.i18n = { 5046 'angry': { 5047 de: 'wütend', 5048 en: 'angry', 5049 es: 'me enoja', 5050 fr: 'grrr', 5051 it: 'grrr', 5052 ja: 'ã²ã©ãã', 5053 ko: 'íëì', 5054 pt: 'ira', 5055 ru: 'bозмÑÑиÑелÑно', 5056 zh: 'æ' 5057 }, 5058 'Support BLM': { 5059 de: 'Steun BLM', 5060 en: 'Support BLM', 5061 es: 'Subtenu BLM', 5062 fr: 'Soutenir BLM', 5063 it: 'Supporta BLM', 5064 ja: 'BLMããµãã¼ã', 5065 ko: 'BLM ì§ì', 5066 pt: 'Suporte BLM', 5067 ru: 'ÐоддеÑжка BLM', 5068 zh: 'æ¯æBLM', 5069 nl: 'Steun BLM', 5070 ar: 'تبرع ÙØµØ§ÙØ BLM', 5071 bn: 'BLM à¦à§ সাপà§à¦°à§à¦ à¦à¦°à§à¦¨', 5072 hi: 'बà¥à¤à¤²à¤à¤® à¤à¥ सहयà¥à¤', 5073 tr: 'BLM yi Destekle', 5074 vi: 'Ủng há» BLM' 5075 }, 5076 'bookmark': { 5077 de: 'lesezeichen', 5078 en: 'mark', 5079 es: 'marcador',
5080 fr: 'signet', 5081 it: 'segnalibro', 5082 ja: 'ããã', 5083 ko: 'ìí', 5084 pt: 'marca páginas', 5085 ru: 'закладка', 5086 zh: '书ç¾', 5087 nl: 'Markeer', 5088 ar: 'ØªØ«Ø¨ÙØª', 5089 bn: 'মারà§à¦', 5090 hi: 'मारà¥à¤', 5091 tr: 'İÅaretle', 5092 vi: 'Äánh dấu' 5093 }, 5094 'email': { 5095 de: 'emailen', 5096 en: 'email', 5097 es: 'correo electrónico', 5098 fr: 'email', 5099 it: 'e-mail', 5100 ja: 'Eã¡ã¼ã«', 5101 ko: 'ì´ë©ì¼', 5102 pt: 'o email', 5103 ru: 'Ðл. адÑеÑ', 5104 zh: 'çµåé®ä»¶', 5105 nl: 'E-mail', 5106 ar: 'إرساÙ', 5107 bn: 'à¦à¦®à§à¦²', 5108 hi: 'à¤à¤®à¥à¤²', 5109 tr: 'E-posta', 5110 vi: 'Email' 5111 }, 5112 'flip': { 5113 de: 'flip', 5114 en: 'flip', 5115 es: 'Flipear', 5116 fr: 'Ajouter', 5117 it: 'Flip', 5118 ja: 'ããªãã', 5119 ko: 'ê³µì í기', 5120 pt: 'partilhar', 5121 ru: 'ФлипнÑÑÑ', 5122 zh: '翻转', 5123 nl: 'Flip', 5124 ar: 'تغÙÙØ±', 5125 bn: 'à¦à¦²à§à¦à¦¾à¦¨', 5126 hi: 'फ़à¥à¤²à¤¿à¤ª', 5127 tr: 'Döndür', 5128 vi: 'Láºt' 5129 }, 5130 'gmail': { 5131 de: 'emailen', 5132 en: 'email', 5133 es: 'correo electrónico', 5134 fr: 'email', 5135 it: 'e-mail', 5136 ja: 'Eã¡ã¼ã«', 5137 ko: 'ì´ë©ì¼', 5138 pt: 'o email', 5139 ru: 'Ðл. адÑеÑ', 5140 zh: 'çµåé®ä»¶' 5141 }, 5142 'like': { 5143 de: 'mögen', 5144 en: 'like', 5145 es: 'me gusta', 5146 fr: "j'aime", 5147 it: 'mi piace', 5148 ja: 'ãããï¼', 5149 ko: 'ì¢ìì', 5150 pt: 'gosto', 5151 ru: 'hÑавиÑÑÑ', 5152 zh: 'èµ' 5153 }, 5154 'lol': { 5155 de: 'lol', 5156 en: 'lol', 5157 es: 'me divierte', 5158 fr: 'haha', 5159 it: 'ahah', 5160 ja: 'ãããã', 5161 ko: 'ì겨ì', 5162 pt: 'riso', 5163 ru: 'xа-Ñ Ð°', 5164 zh: 'ç¬è¶´' 5165 }, 5166 'love': { 5167 de: 'lieben', 5168 en: 'love', 5169 es: 'me encanta', 5170 fr: "jâadore", 5171 it: 'love', 5172 ja: 'è¶ ãããï¼', 5173 ko: 'ìµê³ ìì', 5174 pt: 'adoro', 5175 ru: 'cÑпеÑ', 5176 zh: '大ç±' 5177 }, 5178 'pin': { 5179 de: 'pin', 5180 en: 'pin', 5181 es: 'pin', 5182 fr: 'épingle', 5183 it: 'pin', 5184 ja: 'ãã³', 5185 ko: 'í', 5186 pt: 'pin', 5187 ru: 'Ðин', 5188 zh: 'é', 5189 nl: 'Pin', 5190 ar: 'Ø¨ÙØªØ±Ø³Øª', 5191 bn: 'পিন', 5192 hi: 'पिन', 5193 tr: 'Pinle', 5194 vi: 'Ghim' 5195 }, 5196 'print': { 5197 de: 'drucken', 5198 en: 'print', 5199 es: 'impresión', 5200 fr: 'mpression', 5201 it: 'stampa', 5202 ja: 'ããªã³ã', 5203 ko: 'ì¸ì', 5204 pt: 'impressão', 5205 ru: 'РаÑпеÑаÑаÑÑ', 5206 zh: 'æå°', 5207 nl: 'Print', 5208 ar: 'طباعة', 5209 bn: 'পà§à¦°à¦¿à¦¨à§à¦ à¦à¦°à§à¦¨', 5210 hi: 'पà¥à¤°à¤¿à¤à¤', 5211 tr: 'Yazdır', 5212 vi: 'In' 5213 }, 5214 'sad': { 5215 de: 'traurig', 5216 en: 'sad', 5217 es: 'me entristece', 5218 fr: 'triste', 5219 it: 'sigh', 5220 ja: 'æ²ããã', 5221 ko: 'ì¬í¼ì', 5222 pt: 'tristeza', 5223 ru: 'cоÑÑвÑÑвÑÑ', 5224 zh: 'å¿ç¢' 5225 }, 5226 'send message': { 5227 zh: 'åä¿¡æ¯' 5228 }, 5229 'share': { 5230 de: 'teilen', 5231 en: 'share', 5232 es: 'compartir', 5233 fr: 'partager', 5234 it: 'condividi', 5235 ja: 'ã·ã§ã¢ãã', 5236 ko: 'ê³µì í기', 5237 pt: 'partilhar', 5238 ru: 'ÐоделиÑÑÑÑ', 5239 zh: 'å享', 5240 nl: 'Deel', 5241 ar: 'Ù Ø´Ø§Ø±ÙØ©', 5242 bn: 'শà§à§à¦¾à¦°', 5243 hi: 'शà¥à¤¯à¤°', 5244 tr: 'PaylaÅ', 5245 vi: 'Chia sẻ' 5246 }, 5247 'shares': { 5248 de: 'teilen', 5249 en: 'shares', 5250 es: 'veces compartido', 5251 fr: 'partages', 5252 it: 'condivisioni', 5253 ja: 'ã·ã§ã¢æ°', 5254 ko: 'ì¬ìí', 5255 pt: 'partilhas', 5256 ru: 'ÐеÑепоÑÑÑ', 5257 zh: '次转å', 5258 nl: 'Deel', 5259 ar: 'Ù Ø´Ø§Ø±ÙØ©', 5260 bn: 'শà§à§à¦¾à¦°', 5261 hi: 'शà¥à¤¯à¤°', 5262 tr: 'PaylaÅ', 5263 vi: 'Chia sẻ' 5264 }, 5265 'snapchat': { 5266 de: 'schnappen', 5267 en: 'snap', 5268 es: 'quebrar',
5269 fr: 'se casser', 5270 it: 'affrettato', 5271 ja: 'ã¹ããã', 5272 ko: 'ì¤ë ', 5273 pt: 'foto', 5274 ru: 'ÑелÑок', 5275 zh: 'å¿«ç §', 5276 nl: 'snap', 5277 ar: 'ÙÙØ±ÙØ¹Ø ÙÙÙØ¬Ø±', 5278 bn: 'аÑнаÑÑка', 5279 hi: 'à¤à¤à¤à¤¾à¤¨à¤¾', 5280 tr: 'patlatmak', 5281 vi: 'búng tay' 5282 }, 5283 'sticky-width': { 5284 de: 120, 5285 en: 120, 5286 es: 140, 5287 fr: 130, 5288 it: 140, 5289 ja: 160, 5290 ko: 120, 5291 pt: 130, 5292 ru: 160, 5293 zh: 120 5294 }, 5295 'subjects': { 5296 'en': "I'd like to share a link with you", 5297 'es': "Me gustarÃa compartir este enlace contigo", 5298 'ru': "Я Ñ Ð¾Ñел Ð±Ñ Ð¿Ð¾Ð´ÐµÐ»Ð¸ÑÑÑÑ Ñ Ð²Ð°Ð¼Ð¸ ÑÑÑлкой", 5299 'zh': "ææ³åä½ å享ä¸ä¸ªä¿¡æ¯" 5300 }, 5301 'tweet': { 5302 de: 'tweeten', 5303 en: 'tweet', 5304 es: 'twittear', 5305 fr: 'tweeter', 5306 it: 'twittare', 5307 ja: 'ãã¤ã¼ããã', 5308 ko: 'í¸ìí기', 5309 pt: 'tweetar', 5310 ru: 'tвиÑнÑÑÑ', 5311 zh: '忍', 5312 nl: 'Tweet', 5313 ar: 'تÙÙØªØ±', 5314 bn: 'à¦à§à¦à¦', 5315 hi: 'à¤à¥à¤µà¥à¤', 5316 tr: 'Tweet', 5317 vi: 'Tweet' 5318 }, 5319 'wow': { 5320 de: 'wow', 5321 en: 'wow', 5322 es: 'me asombra', 5323 fr: 'wouah', 5324 it: 'wow', 5325 ja: 'ãããã', 5326 ko: 'ë©ì ¸ì', 5327 pt: 'surpresa', 5328 ru: 'yÑ ÑÑ!', 5329 zh: 'å' 5330 }, 5331 'yahoomail': { 5332 de: 'emailen', 5333 en: 'email', 5334 es: 'correo electrónico', 5335 fr: 'email', 5336 it: 'e-mail', 5337 ja: 'Eã¡ã¼ã«', 5338 ko: 'ì´ë©ì¼', 5339 pt: 'o email', 5340 ru: 'Ðл. адÑеÑ', 5341 zh: 'çµåé®ä»¶' 5342 } 5343 }; 5344 5345}).call(this); 5346 5347(function () { 5348 var img, is_ie8; 5349 5350 img = window.__sharethis__.img; 5351 5352 is_ie8 = /MSIE 8.0/.test(navigator.userAgent); 5353 5354 window.__sharethis__.cdn = 'https://platform-cdn.sharethis.com'; 5355 5356 window.__sharethis__.ICONS = { 5357 airbnb: img('airbnb.svg'), 5358 amazon: img('amazon.svg'), 5359 arrow_left: img('arrow_left.svg'), 5360 arrow_right: img('arrow_right.svg'), 5361 bandcamp: img('bandcamp.svg'), 5362 behance: img('behance.svg'), 5363 blogger: img('blogger.svg'), 5364 blm: img('blm.svg'), 5365 bitbucket: img('bitbucket.svg'), 5366 buffer: img('buffer.svg'), 5367 close: img('close.svg'), 5368 copy: img('copy.svg'), 5369 delicious: img('delicious.svg'), 5370 deviantart: img('deviantart.svg'), 5371 diaspora: img('diaspora.svg'), 5372 digg: img('digg.svg'), 5373 diigo: img('diigo.svg'), 5374 discord: img('discord.svg'), 5375 douban: img('douban.svg'), 5376 dribbble: img('dribbble.svg'), 5377 email: img('email.svg'), 5378 evernote: img('evernote.svg'), 5379 etsy: img('etsy.svg'), 5380 facebook: img('facebook.svg'), 5381 fark: img('fark.svg'), 5382 flickr: img('flickr.svg'), 5383 flipboard: img('flipboard.svg'), 5384 gab: img('gab.svg'), 5385 getpocket: img('pocket.svg'), 5386 github: img('github.svg'), 5387 gitlab: img('gitlab.svg'), 5388 gmail: img('gmail.svg'), 5389 googlebookmarks: img('googlebookmarks.svg'), 5390 googlemaps: img('googlemaps.svg'), 5391 hackernews: img('hackernews.svg'), 5392 houzz: img('houzz.svg'), 5393 instagram: img('instagram.svg'), 5394 instapaper: img('instapaper.svg'), 5395 iorbix: img('iorbix.svg'), 5396 kakao: img('kakao.svg'), 5397 kindleit: img('kindleit.svg'), 5398 kooapp: img('kooapp.svg'), 5399 line: img('line.svg'), 5400 linkedin: img('linkedin.svg'), 5401 livejournal: img('livejournal.svg'), 5402 mailru: img('mailru.svg'), 5403 medium: img('medium.svg'), 5404 meneame: img('meneame.svg'), 5405 messenger: img('messenger.svg'), 5406 meetup: img('meetup.svg'), 5407 microsoftteams: img('microsoftteams.svg'), 5408 mix: img('mix.svg'), 5409 naver: img('naver.svg'), 5410 nextdoor: img('nextdoor.svg'), 5411 odnoklassniki: img('odnoklassniki.svg'), 5412 outlook: img('outlook.svg'), 5413 patreon: img('patreon.svg'), 5414 pinboard: img('pinboard.svg'), 5415 pinterest: img('pinterest.svg'), 5416 plurk: img('plurk.svg'), 5417 print: img('print.svg'), 5418 quora: img('quora.svg'), 5419 qzone: img('qzone.svg'), 5420 reddit: img('reddit.svg'), 5421 refind: img('refind.svg'), 5422 renren: img('renren.svg'), 5423 sharethis: img('sharethis.svg'), 5424 skype: img('skype.svg'), 5425 slideshare: img('slideshare.svg'), 5426 sms: img('sms.svg'), 5427 snapchat: img('snapchat.svg'), 5428 soundcloud: img('soundcloud.svg'), 5429 spotify: img('spotify.svg'), 5430 stackoverflow: img('stackoverflow.svg'), 5431 surfingbird: img('surfingbird.svg'), 5432 telegram: img('telegram.svg'), 5433 tencentqq: img('tencentqq.svg'), 5434 threads: img('threads.svg'), 5435 threema: img('threema.svg'), 5436 trello: img('trello.svg'), 5437 tiktok: img('tiktok.svg'), 5438 tripadvisor: img('tripadvisor.svg'), 5439 tumblr: img('tumblr.svg'), 5440 twitch: img('twitch.svg'), 5441 twitter: img('twitter.svg'), 5442 vk: img('vk.svg'), 5443 viber: img('viber.svg'), 5444 vimeo: img('vimeo.svg'), 5445 wechat: img('wechat.svg'), 5446 weibo: img('weibo.svg'), 5447 whatsapp: img('whatsapp.svg'), 5448 wordpress: img('wordpress.svg'), 5449 xing: img('xing.svg'), 5450 yahoomail: img('yahoomail.svg'), 5451 yelp: img('yelp.svg'), 5452 youtube: img('youtube.svg'), 5453 yummly: img('yummly.svg'), 5454 zillow: img('zillow.svg'), 5455 zomato: img('zomato.svg') 5456 }; 5457 5458 window.__sharethis__.ICONS_WHITE = { 5459 airbnb: img('airbnb-white.svg'), 5460 amazon: img('amazon-white.svg'), 5461 bandcamp: img('bandcamp-white.svg'), 5462 behance: img('behance-white.svg'), 5463 blogger: img('blogger-white.svg'), 5464 blm: img('blm-white.svg'), 5465 bitbucket: img('bitbucket-white.svg'), 5466 buffer: img('buffer-white.svg'), 5467 copy: img('copy-white.svg'), 5468 delicious: img('delicious-white.svg'), 5469 deviantart: img('deviantart-white.svg'), 5470 diaspora: img('diaspora-white.svg'), 5471 digg: img('digg-white.svg'), 5472 diigo: img('diigo-white.svg'), 5473 discord: img('discord-white.svg'), 5474 douban: img('douban-white.svg'), 5475 dribbble: img('dribbble-white.svg'), 5476 email: img('email-white.svg'), 5477 etsy: img('etsy-white.svg'), 5478 evernote: img('evernote-white.svg'), 5479 facebook: img('facebook-white.svg'), 5480 fark: img('fark-white.svg'), 5481 flickr: img('flickr-white.svg'), 5482 flipboard: img('flipboard-white.svg'), 5483 gab: img('gab-white.svg'), 5484 getpocket: img('pocket-white.svg'), 5485 github: img('github-white.svg'), 5486 gitlab: img('gitlab-white.svg'), 5487 gmail: img('gmail-white.svg'), 5488 googlebookmarks: img('googlebookmarks-white.svg'), 5489 googlemaps: img('googlemaps-white.svg'), 5490 hackernews: img('hackernews-white.svg'), 5491 houzz: img('houzz-white.svg'), 5492 instagram: img('instagram-white.svg'), 5493 instapaper: img('instapaper-white.svg'), 5494 iorbix: img('iorbix-white.svg'), 5495 kakao: img('kakao-white.svg'), 5496 kindleit: img('kindleit-white.svg'), 5497 kooapp: img('kooapp-white.svg'), 5498 line: img('line-white.svg'), 5499 linkedin: img('linkedin-white.svg'), 5500 livejournal: img('livejournal-white.svg'), 5501 mailru: img('mailru-white.svg'), 5502 medium: img('medium-white.svg'), 5503 meetup: img('meetup-white.svg'), 5504 meneame: img('meneame-white.svg'), 5505 messenger: img('messenger-white.svg'),
5506 microsoftteams: img('microsoftteams-white.svg'), 5507 mix: img('mix-white.svg'), 5508 naver: img('naver-white.svg'), 5509 nextdoor: img('nextdoor-white.svg'), 5510 odnoklassniki: img('odnoklassniki-white.svg'), 5511 outlook: img('outlook-white.svg'), 5512 patreon: img('patreon-white.svg'), 5513 pinboard: img('pinboard-white.svg'), 5514 pinterest: img('pinterest-white.svg'), 5515 plurk: img('plurk-white.svg'), 5516 print: img('print-white.svg'), 5517 quora: img('quora-white.svg'), 5518 qzone: img('qzone-white.svg'), 5519 reddit: img('reddit-white.svg'), 5520 refind: img('refind-white.svg'), 5521 renren: img('renren-white.svg'), 5522 sharethis: img('sharethis-white.svg'), 5523 skype: img('skype-white.svg'), 5524 slideshare: img('slideshare-white.svg'), 5525 sms: img('sms-white.svg'), 5526 snapchat: img('snapchat-white.svg'), 5527 soundcloud: img('soundcloud-white.svg'), 5528 spotify: img('spotify-white.svg'), 5529 stackoverflow: img('stackoverflow-white.svg'), 5530 surfingbird: img('surfingbird-white.svg'), 5531 telegram: img('telegram-white.svg'), 5532 telegram: img('telegram-white.svg'), 5533 tencentqq: img('tencentqq-white.svg'), 5534 threads: img('threads-white.svg'), 5535 threema: img('threema-white.svg'), 5536 trello: img('trello-white.svg'), 5537 tiktok: img('tiktok-white.svg'), 5538 tripadvisor: img('tripadvisor-white.svg'), 5539 tumblr: img('tumblr-white.svg'), 5540 twitch: img('twitch-white.svg'), 5541 twitter: img('twitter-white.svg'), 5542 vk: img('vk-white.svg'), 5543 viber: img('viber-white.svg'), 5544 vimeo: img('vimeo-white.svg'), 5545 wechat: img('wechat-white.svg'), 5546 weibo: img('weibo-white.svg'), 5547 whatsapp: img('whatsapp-white.svg'), 5548 wordpress: img('wordpress-white.svg'), 5549 xing: img('xing-white.svg'), 5550 yahoomail: img('yahoomail-white.svg'), 5551 ycombinator: img('ycombinator-white.svg'), 5552 yelp: img('yelp-white.svg'), 5553 youtube: img('youtube-white.svg'), 5554 yummly: img('yummly-white.svg'), 5555 zillow: img('zillow-white.svg'), 5556 zomato: img('zomato-white.svg') 5557 }; 5558 5559 if (is_ie8) { 5560 window.__sharethis__.ICONS = { 5561 arrow_left: img('left-arrow.png'), 5562 arrow_right: img('right-arrow.png'), 5563 blogger: img('blogger.png'), 5564 delicious: img('delicious.png'), 5565 digg: img('digg.png'), 5566 email: img('email.png'), 5567 facebook: img('facebook.png'), 5568 flipboard: img('flipboard.png'), 5569 linkedin: img('linkedin.png'), 5570 livejournal: img('livejournal.png'), 5571 mailru: img('mailru.png'), 5572 meneame: img('mename.png'), 5573 odnoklassniki: img('odnoklassniki.png'), 5574 pinterest: img('pinterest.png'), 5575 print: img('print.png'), 5576 reddit: img('reddit.png'), 5577 sharethis: img('sharethis.png'), 5578 sms: img('sms.png'), 5579 tumblr: img('tumblr.png'), 5580 twitter: img('twitter.png'), 5581 vk: img('vk.png'), 5582 weibo: img('weibo.png'), 5583 whatsapp: img('whatsapp.png'), 5584 xing: img('xing.png'), 5585 wechat: img('wechat.png') 5586 }; 5587 } 5588 5589}).call(this); 5590 5591(function () { 5592 var st; 5593 5594 st = window.__sharethis__; 5595 5596 st.networks = ['airbnb', 'amazon', 'blogger', 'blm', 'buffer', 'copy', 'diaspora', 'diigo', 'digg', 'discord', 'douban', 'email', 'evernote', 'etsy', 'facebook', 'fark', 'flipboard', 'foursquare', 'gab', 'getpocket', 'github', 'gmail', 'googlebookmarks', 'hackernews', 'houzz', 'instapaper', 'iorbix', 'kakao', 'kindleit', 'kooapp', 'line', 'linkedin', 'livejournal', 'mailru', 'meneame', 'messenger', 'microsoftteams', 'naver', 'nextdoor', 'odnoklassniki', 'outlook', 'pinboard', 'pinterest', 'plurk', 'print', 'qzone', 'reddit', 'refind', 'renren', 'sharethis', 'skype', 'sms', 'snapchat', 'surfingbird', 'telegram', 'tencentqq', 'threads', 'threema', 'tiktok', 'trello', 'tripadvisor', 'tumblr', 'twitter', 'vk', 'viber', 'vimeo', 'wechat', 'weibo', 'whatsapp', 'wordpress', 'xing', 'yahoomail', 'yummly', 'zillow']; 5597 5598 st.shareNetworks = ['blm', 'blogger', 'buffer', 'copy', 'diaspora', 'digg', 'diigo', 'douban', 'email', 'evernote', 'facebook', 'fark', 'flipboard', 'gab', 'getpocket', 'gmail', 'googlebookmarks', 'hackernews', 'houzz', 'instapaper', 'iorbix', 'kakao', 'kindleit', 'kooapp', 'line', 'linkedin', 'livejournal', 'mailru', 'meneame', 'messenger', 'microsoftteam
5598s', 'naver', 'nextdoor', 'odnoklassniki', 'outlook', 'pinboard', 'pinterest', 'plurk', 'print', 'qzone', 'reddit', 'refind', 'renren', 'sharethis', 'skype', 'sms', 'surfingbird', 'telegram', 'tencentqq', 'threema', 'trello', 'tumblr', 'twitter', 'vk', 'viber', 'wechat', 'weibo', 'whatsapp', 'wordpress', 'xing', 'yahoomail', 'yummly']; 5599 5600 st.followNetworks = ['airbnb', 'amazon', 'bandcamp', 'behance', 'bitbucket', 'blogger', 'deviantart', 'digg', 'discord', 'dribbble', 'etsy', 'facebook', 'flickr', 'flipboard', 'foursquare', 'github', 'gitlab', 'goodreads', 'googlemaps', 'houzz', 'instagram', 'linkedin', 'medium', 'meetup', 'messenger', 'mix', 'odnoklassniki', 'patreon', 'pinterest', 'quora', 'reddit', 'shares', 'skype', 'slideshare', 'snapchat', 'soundcloud', 'spotify', 'stackoverflow', 'telegram', 'threads', 'tiktok', 'trello', 'tripadvisor', 'tumblr', 'twitch', 'twitter', 'vimeo', 'vk', 'wechat', 'weibo', 'whatsapp', 'xing', 'yelp', 'youtube', 'zillow', 'zomato']; 5601 5602}).call(this); 5603 5604(function () { 5605 var st; 5606 5607 st = window.__sharethis__; 5608 5609 st.loader['share-all'] = function (config) { 5610 var $backdrop, $button, $buttons, $close, $el, common_css, count_url, css, description, html, i, id, image, j, len, 5611 len1, logo_link, message, network, network_css, ref, ref1, share_url, src, title, url, username; 5612 if (config == null) { 5613 config = {}; 5614 } 5615 count_url = config.count_url, share_url = config.share_url, url = config.url, description = config.description, image = config.image, message = config.message, network = config.network, title = config.title, username = config.username; 5616 ref = st.newElement(), $el = ref.$el, id = ref.id; 5617 st.addClass($el, 'st-hidden'); 5618 common_css = "body.st-body-no-scroll {\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: fixed;\n right: 0;\n top: 0;\n}\n#" + id + " {\n " + st.FONT_FAMILY + "\n " + (st.TRANSITION()) + "\n height: 100%;\n left: 0;\n opacity: 1;\n position: fixed;\n top: 0;\n width: 100%;\n z-index: 99999;\n}\n#" + id + ".st-hidden {\n opacity: 0;\n top: 100%;\n}\n#" + id + " .st-backdrop {\n background: rgba(0, 0, 0, 0.8);\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 10;\n}\n#" + id + " .st-btns {\n bottom: 56px;\n left: 0;\n margin: 100px auto 0;\n max-width: 90%;\n position: absolute;\n right: 0;\n text-align: center;\n top: 10px;\n z-index: 20;\n overflow-y: auto;\n}\n#" + id + " .st-logo {\n background: #4c4c4c;\n bottom: 0;\n cursor: pointer;\n padding: 20px;\n position: absolute;\n text-align: center;\n width: 100%;\n z-index: 30;\n}\n#" + id + " .st-close {\n " + (st.BORDER_RADIUS(28)) + "\n " + st.BORDER_BOX + "\n background: #999;\n bottom: 28px;\n color: #fff;\n cursor: pointer;\n font-size: 36px;\n height: 56px;\n line-height: 28px;\n padding: 10px;\n position: absolute;\n right: 14px;\n width: 56px;\n z-index: 40;\n}\n#" + id + " .st-disclaimer {\n bottom: 72px;\n color: white;\n font-size: 12px;\n left: 50%;\n position: absolute;\n transform: translate(-50%, 0);\n z-index: 30;\n}\n#" + id + " .st-close > img {\n height: 40px;\n width: 40px;\n}\n#" + id + " .st-btn {\n " + (st.BORDER_RADIUS(4)) + "\n " + st.BORDER_BOX + "\n " + (st.TRANSITION()) + "\n color: white;\n cursor: pointer;\n display: inline-block;\n font-size: 12px;\n font-weight: 400;\n height: 48px;\n line-height: 30px;\n margin: 4px;\n opacity: 1;\n overflow: hidden;\n padding: 8px 12px;\n position: relative;\n text-align: left;\n top: 0;\n vertical-align: top;\n width: 148px;\n}\n#" + id + " .st-btn::before {\n " + (st.BORDER_RADIUS(4)) + "\n " + (st.TRANSITION()) + "\n background: #fff;\n content: '';\n height: 100%;\n left: 0;\n opacity: 0;\n position: absolute;\n top: 0;\n width: 100%;\n}\n#" + id + " .st-btn:hover::before {\n opacity: .2;\n}\n#" + id + " .st-btn > svg {\n display: inline-block;\n height: 20px;\n margin-top: 6px;\n vertical-align: top;\n width: 20px;\n}\n#" + id + " .st-btn > img {\n display: inline-block;\n height: 20px;\n margin-top: 6px;\n vertical-align: top;
5618\n width: 20px;\n}\n#" + id + " .st-btn > span {\n display: inline-block;\n letter-spacing: 0.5px;\n text-align: center;\n vertical-align: top;\n width: 96px;\n}\n@media(max-width: 1200px) {\n #" + id + " .st-btns {\n margin-top: 50px;\n }\n}\n@media(max-width: 800px) {\n #" + id + " .st-btns {\n margin: 0 auto;\n max-width: 100%;\n padding: 32px 10px 50px;\n }\n #" + id + " .st-btn {\n width: 130px;\n }\n #" + id + " .st-btn > span {\n width: 74px;\n }\n #" + id + " .st-disclaimer {\n background: #000;\n bottom: 44px;\n font-size: 10px;\n padding: 8px;\n text-align: center;\n width: 100%\n }\n}"; 5619 network_css = ((function () { 5620 var i, len, ref1, results; 5621 ref1 = st.shareNetworks; 5622 results = []; 5623 for (i = 0, len = ref1.length; i < len; i++) { 5624 network = ref1[i]; 5625 results.push("#" + id + " .st-btn[data-network='" + network + "'] {\n background-color: " + st.COLORS[network] + ";\n}"); 5626 } 5627 return results; 5628 })()).join('\n'); 5629 css = common_css; 5630 css += network_css; 5631 st.css(css); 5632 html = "<div class='st-backdrop'></div>"; 5633 html += "<div class='st-btns'>"; 5634 ref1 = st.shareNetworks; 5635 for (i = 0, len = ref1.length; i < len; i++) { 5636 network = ref1[i]; 5637 if (network === 'sharethis') { 5638 continue; 5639 } 5640 if (!st.mobile && (network === 'sms')) { 5641 continue; 5642 } 5643 html += "<div class='st-btn' data-network='" + network + "'>\n " + st.ICONS[network] + "\n <span>" + network + "</span>\n</div>"; 5644 } 5645 html += "</div>"; 5646 src = 'https://platform-cdn.sharethis.com/img/share-this-logo%402x.png'; 5647 logo_link = "https://sharethis.com/platform/share-buttons?" + st.qs({ 5648 utm_source: "share-buttons", 5649 utm_medium: "referral", 5650 utm_campaign: "sharethis-button-referral" 5651 }); 5652 html += "<div class=\"st-logo\">\n <a href=\"" + logo_link + "\" target=\"_blank\">\n <img height=\"16\" width=\"96\" src=\"" + src + "\">\n </a>\n</div>"; 5653 html += "<div class=\"st-close\">\n " + st.ICONS['close'] + "\n</div>"; 5654 html += "<div class=\"st-disclaimer\">\n Third-party platform trademarks and logos appearing here are owned by the\n respective third parties, link to those referenced platforms, and are not\n affiliated with ShareThis.\n</div>"; 5655 $el.innerHTML = html; 5656 $backdrop = $el.querySelector('.st-backdrop'); 5657 $buttons = $el.querySelectorAll('.st-btn'); 5658 $close = $el.querySelector('.st-close'); 5659 st.addEventListener($backdrop, 'click', function () { 5660 return st.close($el); 5661 }); 5662 st.addEventListener($close, 'click', function () { 5663 return st.close($el); 5664 }); 5665 st.addEventListener(document, 'keydown', function (e) { 5666 if (st.isEsc(e)) { 5667 return st.close($el); 5668 } 5669 }); 5670 for (j = 0, len1 = $buttons.length; j < len1; j++) { 5671 $button = $buttons[j]; 5672 st.addEventListener($button, 'click', function () { 5673 st.close($el); 5674 return st.share({ 5675 description: description, 5676 image: image, 5677 network: this.getAttribute('data-network'), 5678 share_url: share_url, 5679 title: title, 5680 url: url, 5681 username: username 5682 }); 5683 }); 5684 } 5685 return setTimeout((function () { 5686 st.removeClass($el, 'st-hidden'); 5687 return st.addClass(document.body, 'st-body-no-scroll'); 5688 }), 10); 5689 }; 5690 5691}).call(this); 5692 5693(function () { 5694 var st; 5695 5696 st = window.__sharethis__; 5697 5698 st.loader['share-wechat-mobile'] = function (config) { 5699 var $backdrop, $close, $copy, $el, $form_input, $open, html, id, mobile_css, ref, src, url; 5700 if (config == null) { 5701 config = {}; 5702 } 5703 url = config.url; 5704 ref = st.newElement(), $el = ref.$el, id = ref.id; 5705 st.addClass($el, 'st-hidden'); 5706 mobile_css = "body.st-body-no-scroll {\n bottom: 0;\n left: 0;\n overflow: hidden;\n position: fixed;\n right: 0;\n top: 0;\n}\n#" + id + " {\n " + (st.TRANSITION()) + "\n " + st.FONT_FAMILY + "\n bottom: 0;\n left: 0;\n opacity: 1;\n overflow-y: auto;\n padding-bottom: 100px;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n width: 100%;\n z-index: 99999;\n}\n\n#" + id + ".st-hidden {\n opacity: 0;\n top: 100%;\n}\n#" + id + " .st-backdrop {\n background: rgba(0, 0, 0, 0.8);\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n z-index: 10;\n}\n#" + id + " .st-wechat {\n margin-top: 120px;\n height: 64px;\n width: 220px;\n display: inline-block;\n position: relative;\n z-index: 10;\n}\n#" + id + " .st-form {\n margin: 20px auto;\n max-width: 80%;\n position: relative;\n width: 320px;\n z-index: 20;\n}\n#" + id + " .st-form > input {\n " + st.BORDER_BOX + "\n " + (st.BORDER_RADIUS(4)) + "\n background-color: #fff;\n border: 0;\n color: #333;\n display: block;\n font-size: 16px;\n height: 48px;\n margin-bottom: 15px;\n padding: 12px;\n width: 100%;\n}\n#" + id + " .st-form > textarea {\n " + st.BORDER_BOX + "\n " + (st.BORDER_RADIUS(4)) + "\n background-color: #fff;\n border: 0;\n color: #333;\n display: block;\n font-size: 16px;\n height: 96px;\n margin-bottom: 15px;\n padding: 12px;\n width: 100%;\n}\n#" + id + " .st-copy {\n " + (st.BORDER_RADIUS(2)) + "\n background: #4EC034;\n color: #fff;
5706\n cursor: pointer;\n display: inline-block;\n height: 36px;\n letter-spacing: .5px;\n line-height: 36px;\n margin: 15px auto 0 auto;\n padding: 0 10px;\n position: relative;\n text-align: center;\n min-width: 120px;\n z-index: 20;\n}\n#" + id + " .st-open {\n " + (st.BORDER_RADIUS(2)) + "\n background: #4EC034;\n color: #fff;\n cursor: pointer;\n display: inline-block;\n height: 36px;\n letter-spacing: .5px;\n line-height: 36px;\n margin: 15px auto 0 auto;\n padding: 0 10px;\n position: relative;\n text-align: center;\n min-width: 120px;\n z-index: 20;\n}\n#" + id + " .st-logo {\n background: #4c4c4c;\n bottom: 0;\n padding: 20px;\n position: fixed;\n text-align: center;\n width: 100%;\n z-index: 30;\n}\n#" + id + " .st-close {\n " + (st.BORDER_RADIUS(28)) + "\n " + st.BORDER_BOX + "\n background: #999;\n bottom: 28px;\n color: #fff;\n cursor: pointer;\n font-size: 36px;\n height: 56px;\n line-height: 28px;\n padding: 10px;\n position: fixed;\n right: 14px;\n width: 56px;\n z-index: 40;\n}"; 5707 st.css(mobile_css); 5708 html = "<div class='st-backdrop'></div>"; 5709 html += "<div class='st-wechat'>" + st.ICONS['wechatIcon'] + "</div>"; 5710 html += "<div class='st-form'>\n <input class=\"st-url\" type=\"text\" value=\"\" />\n</div>"; 5711 html += "<div class=\"st-copy\">Copy URL</div>\n<div class=\"st-open\" style=\"display: none\">Open WeChat</div>"; 5712 src = 'https://platform-cdn.sharethis.com/img/share-this-logo%402x.png'; 5713 html += "<div class=\"st-logo\">\n <img height=\"16\" width=\"96\" src=\"" + src + "\">\n</div>"; 5714 html += "<div class=\"st-close\">\n " + st.ICONS['close'] + "\n</div>"; 5715 $el.innerHTML = html; 5716 $form_input = $el.querySelector('.st-form > input'); 5717 $backdrop = $el.querySelector('.st-backdrop'); 5718 $close = $el.querySelector('.st-close'); 5719 $copy = $el.querySelector('.st-copy'); 5720 $open = $el.querySelector('.st-open'); 5721 $form_input.value = url; 5722 st.addEventListener($backdrop, 'click', function () { 5723 return st.close($el); 5724 }); 5725 st.addEventListener($close, 'click', function () { 5726 return st.close($el); 5727 }); 5728 st.addEventListener($copy, 'click', function () { 5729 var succeed; 5730 $form_input.setSelectionRange(0, $form_input.value.length); 5731 succeed = document.execCommand('copy'); 5732 if (succeed) { 5733 $copy.innerText = 'Copied!'; 5734 $copy.style.background = '#f9a825'; 5735 return $open.style.display = 'inline-block'; 5736 } 5737 }); 5738 st.addEventListener($open, 'click', function () { 5739 var onError; 5740 onError = function (err) { 5741 $open.innerText = err; 5742 $open.style.background = '#c62828'; 5743 if (st.__share_email_timeout) { 5744 clearTimeout(st.__share_email_timeout); 5745 } 5746 return st.__share_email_timeout = setTimeout((function () { 5747 $open.innerText = 'Open'; 5748 return $open.style.background = '#00c853'; 5749 }), 2000); 5750 }; 5751 $open.innerText = 'Opening...'; 5752 $open.style.background = '#f9a825'; 5753 url = 'weixin://'; 5754 return st.open(url); 5755 }); 5756 st.addEventListener(document, 'keydown', function (e) { 5757 if (st.isEsc(e)) { 5758 return st.close($el); 5759 } 5760 }); 5761 return setTimeout((function () { 5762 st.removeClass($el, 'st-hidden'); 5763 return st.addClass(document.body, 'st-body-no-scroll'); 5764 }), 10); 5765 }; 5766 5767}).call(this); 5768 5769(function () { 5770 var st; 5771 5772 st = window.__sharethis__; 5773 5774 st.REACTIONS = { 5775 slight_smile: { 5776 icon: "<circle cx=\"32\" cy=\"32\" r=\"30\" fill=\"#ffdd67\"/><g fill=\"#664e27\"><circle cx=\"20.5\" cy=\"26.6\" r=\"5\"/><circle cx=\"43.5\" cy=\"26.6\" r=\"5\"/><path d=\"m44.6 40.3c-8.1 5.7-17.1 5.6-25.2 0-1-.7-1.8.5-1.2 1.6 2.5 4 7.4 7.7 13.8 7.7s11.3-3.6 13.8-7.7c.6-1.1-.2-2.3-1.2-1.6\"/></g>", 5777 label: 'like' 5778 }, 5779 heart_eyes: { 5780 icon: "<path d=\"M62,32c0,16.6-13.4,30-30,30C15.4,62,2,48.6,2,32C2,15.4,15.4,2,32,2C48.6,2,62,15.4,62,32z\" fill=\"#ffdd67\"/><g fill=\"#f46767\"><path d=\"m61.8 13.2c-.5-2.7-2-4.9-4.5-5.6-2.7-.7-5.1.3-7.4 2.7-1.3-3.6-3.3-6.3-6.5-7.7-3.2-1.4-6.4-.4-8.4 2.1-2.1 2.6-2.9 6.7-.7 12 2.1 5 11.4 15 11.7 15.3.4-.2 10.8-6.7 13.3-9.9 2.5-3.1 3-6.2 2.5-8.9\"/><path d=\"m29 4.7c-2-2.5-5.2-3.5-8.4-2.1-3.2 1.4-5.2 4.1-6.5 7.7-2.4-2.3-4.8-3.4-7.5-2.6-2.4.7-4 2.9-4.5 5.6-.5 2.6.1 5.8 2.5 8.9 2.6 3.1 13 9.6 13.4 9.8.3-.3 9.6-10.3 11.7-15.3 2.2-5.3 1.4-9.3-.7-12\"/></g><path d=\"m49 38.1c0-.8-.5-1.8-1.8-2.1-3.5-.7-8.6-1.3-15.2-1.3-6.6 0-11.7.7-1
57805.2 1.3-1.4.3-1.8 1.3-1.8 2.1 0 7.3 5.6 14.6 17 14.6 11.4-.1 17-7.4 17-14.6\" fill=\"#664e27\"/><path d=\"m44.7 38.3c-2.2-.4-6.8-1-12.7-1-5.9 0-10.5.6-12.7 1-1.3.2-1.4.7-1.3 1.5.1.4.1 1 .3 1.6.1.6.3.9 1.3.8 1.9-.2 23-.2 24.9 0 1 .1 1.1-.2 1.3-.8.1-.6.2-1.1.3-1.6 0-.8-.1-1.3-1.4-1.5\" fill=\"#fff\"/>", 5781 label: 'love' 5782 }, 5783 laughing: { 5784 icon: "<circle cx=\"32\" cy=\"32\" r=\"30\" fill=\"#ffdd67\"/><g fill=\"#664e27\"><path d=\"m51.7 19.4c.6.3.3 1-.2 1.1-2.7.4-5.5.9-8.3 2.4 4 .7 7.2 2.7 9 4.8.4.5-.1 1.1-.5 1-4.8-1.7-9.7-2.7-15.8-2-.5 0-.9-.2-.8-.7 1.6-7.3 10.9-10 16.6-6.6\"/><path d=\"m12.3 19.4c-.6.3-.3 1 .2 1.1 2.7.4 5.5.9 8.3 2.4-4 .7-7.2 2.7-9 4.8-.4.5.1 1.1.5 1 4.8-1.7 9.7-2.7 15.8-2 .5 0 .9-.2.8-.7-1.6-7.3-10.9-10-16.6-6.6\"/><path d=\"m49.7 34.4c-.4-.5-1.1-.4-1.9-.4-15.8 0-15.8 0-31.6 0-.8 0-1.5-.1-1.9.4-3.9 5 .7 19.6 17.7 19.6 17 0 21.6-14.6 17.7-19.6\"/></g><path d=\"m33.8 41.7c-.6 0-1.5.5-1.1 2 .2.7 1.2 1.6 1.2 2.8 0 2.4-3.8 2.4-3.8 0 0-1.2 1-2 1.2-2.8.3-1.4-.6-2-1.1-2-1.6 0-4.1 1.7-4.1 4.6 0 3.2 2.7 5.8 6 5.8s6-2.6 6-5.8c-.1-2.8-2.7-4.5-4.3-4.6\" fill=\"#4c3526\"/><path d=\"m24.3 50.7c2.2 1 4.8 1.5 7.7 1.5s5.5-.6 7.7-1.5c-2.1-1.1-4.7-1.7-7.7-1.7s-5.6.6-7.7 1.7\" fill=\"#ff717f\"/><path d=\"m47 36c-15 0-15 0-29.9 0-2.1 0-2.1 4-.1 4 10.4 0 19.6 0 30 0 2 0 2-4 0-4\" fill=\"#fff\"/>", 5785 label: 'lol' 5786 }, 5787 astonished: { 5788 icon: "<circle cx=\"32\" cy=\"32\" r=\"30\" fill=\"#ffdd67\"/><circle cx=\"19\" cy=\"29\" r=\"11\" fill=\"#fff\"/><path d=\"m24 29c0 2.8-2.2 5-5 5-2.8 0-5-2.2-5-5s2.2-5 5-5c2.8 0 5 2.2 5 5\" fill=\"#664e27\"/><path d=\"m56 29c0 6.1-4.9 11-11 11-6.1 0-11-4.9-11-11 0-6.1 4.9-11 11-11 6.1 0 11 4.9 11 11\" fill=\"#fff\"/><path d=\"m50 29c0 2.8-2.2 5-5 5-2.8 0-5-2.2-5-5s2.2-5 5-5c2.8 0 5 2.2 5 5\" fill=\"#664e27\"/><g fill=\"#917524\"><path d=\"m50.2 15.8c-3.2-2.7-7.5-3.9-11.7-3.1-.6.1-1.1-2-.4-2.2 4.8-.9 9.8.5 13.5 3.6.6.5-1 2.1-1.4 1.7\"/><path d=\"m25.5 12.5c-4.2-.7-8.5.4-11.7 3.1-.4.4-2-1.2-1.4-1.7 3.7-3.2 8.7-4.5 13.5-3.6.7.2.2 2.3-.4 2.2\"/></g><circle cx=\"32\" cy=\"49\" r=\"9\" fill=\"#664e27\"/><path d=\"m26 46c1.2-2.4 3.4-4 6-4 2.6 0 4.8 1.6 6 4h-12\" fill=\"#fff\"/>", 5789 label: 'wow' 5790 }, 5791 sob: { 5792 icon: "<g fill=\"#65b1ef\"><ellipse cx=\"17.5\" cy=\"59.9\" rx=\"12.5\" ry=\"1.5\"/><ellipse cx=\"44\" cy=\"60.2\" rx=\"18\" ry=\"1.8\"/></g><circle cx=\"32\" cy=\"32\" r=\"30\" fill=\"#ffdd67\"/><path d=\"m44.7 46c-1.4-3.6-4.8-6-12.7-6-8 0-11.3 2.4-12.7 6-.7 1.9.3 5 .3 5 1.3 3.9 1.1 5 12.4 5 11.3 0 11.1-1.1 12.4-5 0 0 1.1-3.1.3-5\" fill=\"#664e27\"/><path d=\"m41 45c.1-.3 0-.6-.2-.8 0 0-2-2.2-8.8-2.2-6.8 0-8.8 2.2-8.8 2.2-.2.1-.2.5-.2.8l.2.6c.1.3.3.5.5.5h16.6c.2 0 .5-.2.5-.5l.2-.6\" fill=\"#fff\"/><g fill=\"#65b1ef\"><path d=\"m44.5 60.5c2.3 0 4.6 0 6.8 0 8.2-9.9-1.5-20 .9-29.8-2.3 0-4.6 2.5-6.8 2.5-3.2 9.5 7.3 17.4-.9 27.3\"/><path d=\"m19.5 60.5c-2.3 0-4.6 0-6.8 0-8.2-9.9 1.5-20-.9-29.8 2.3 0 4.6 2.5 6.8 2.5 3.2 9.5-7.3 17.4.9 27.3\"/></g><g fill=\"#917524\"><path d=\"m40.7 18.3c3 3 7.2 4.5 11.4 4.1.6-.1.9 2.1.2 2.2-4.9.4-9.7-1.3-13.1-4.8-.6-.5 1.1-1.9 1.5-1.5\"/><path d=\"m12 22.4c4.2.4 8.4-1.1 11.4-4.1.4-.4 2.1 1 1.6 1.5-3.4 3.5-8.3 5.2-13.1 4.8-.9 0-.5-2.2.1-2.2\"/></g><g fill=\"#664e27\"><path d=\"m35.9 30.3c4.2 8 12.7 8 16.9 0 .2-.4-.3-.6-1-1-4.2 3.3-11.1 3-14.9 0-.6.4-1.2.6-1 1\"/><path d=\"m11.2 30.3c4.2 8 12.7 8 16.9 0 .2-.4-.3-.6-1-1-4.2 3.3-11.1 3-14.9 0-.7.4-1.2.6-1 1\"/></g>", 5793 label: 'sad' 5794 }, 5795 rage: { 5796 icon: "<circle cx=\"32\" cy=\"32\" r=\"30\" fill=\"#ef5350\"/><path d=\"m41 49.7c-5.8-4.8-12.2-4.8-18 0-.7.6-1.3-.4-.8-1.3 1.8-3.4 5.3-6.5 9.8-6.5s8.1 3.1 9.8 6.5c.5.8-.1 1.8-.8 1.3\" fill=\"#302424\"/><path d=\"m10.2 24.9c-1.5 4.7.6 10 5.3 12.1 4.6 2.2 10 .5 12.7-3.7l-6.9-7.7-11.1-.7\" fill=\"#fff\"/><g fill=\"#302424\"><path d=\"m14.2 25.8c-1.4 2.9-.1 6.4 2.8 7.7 2.9 1.4 6.4.1 7.7-2.8 1-1.9-9.6-6.8-10.5-4.9\"/><path d=\"m10.2 24.9c1.6-1 3.5-1.5 5.4-1.5 1.9 0 3.8.5 5.6 1.3 1.7.8 3.3 2 4.6 3.4 1.2 1.5 2.2 3.2 2.4 5.1-1.3-1.3-2.6-2.4-4-3.4-1.4-1-2.8-1.8-4.2-2.4-1.5-.7-3-1.2-4.6-1.7-1.8-.3-3.4-.6-5.2-.8\"/></g><path d=\"m53.8 24.9c1.5 4.7-.6 10-5.3 12.1-4.6 2.2-10 .5-12.7-3.7l6.9-7.7 11.1-.7\" fill=\"#fff\"/><g fill=\"#302424\"><path d=\"m49.8 25.8c1.4 2.9.1 6.4-2.8 7.7-2.9 1.4-6.4.1-7.7-2.8-1-1.9 9.6-6.8 10.5-4.9\"/><path d=\"m53.8 24.9c-1.6-1-3.5-1.5-5.4-1.5-1.9 0-3.8.5-5.6 1.3-1.7.8-3.3 2-4.6 3.4-1.2 1.5-2.2 3.2-2.4 5.1 1.3-1.3 2.6-2.4 4-3.4 1.4-1 2.8-1.8 4.2-2.4 1.5-.7 3-1.2 4.6-1.7 1.8-.3 3.4-.6 5.2-.8\"/></g>", 5797 label: 'angry'
5798 } 5799 }; 5800 5801}).call(this); 5802 5803(function () { 5804 var i, len, ref, ref1, ref2, ref3, ref4, ref5, ref6, script, scripts, src, st, 5805 indexOf = [].indexOf || function (item) { 5806 for (var i = 0, l = this.length; i < l; i++) { 5807 if (i in this && this[i] === item) return i; 5808 } 5809 return -1; 5810 }; 5811 5812 st = window.__sharethis__; 5813 5814 if (st.loaded) { 5815 return; 5816 } 5817 5818 st.loaded = true; 5819 5820 scripts = document.getElementsByTagName('script') || []; 5821 5822 for (i = 0, len = scripts.length; i < len; i++) { 5823 script = scripts[i]; 5824 src = script.getAttribute('src'); 5825 if (/\/js\/sharethis.js/.test(src)) { 5826 st.src = src; 5827 st.cms = (ref = /cms=([a-zA-Z0-9]+)/.exec(src)) != null ? ref[1] : void 0; 5828 st.product = (ref1 = /product=([a-zA-Z0-9-]+)/.exec(src)) != null ? ref1[1] : void 0; 5829 st.property = (ref2 = /property=([a-zA-Z0-9]+)/.exec(src)) != null ? ref2[1] : void 0; 5830 st.source = (ref3 = /source=([a-zA-Z0-9-]+)/.exec(src)) != null ? ref3[1] : void 0; 5831 st.ssb = (ref4 = /ssb=([a-zA-Z0-9-]+)/.exec(src)) != null ? ref4[1] : void 0; 5832 st.account = (ref5 = /account=([a-zA-Z0-9-]+)/.exec(src)) != null ? ref5[1] : void 0; 5833 } 5834 } 5835 5836 if (st.cms == null) { 5837 st.cms = 'unknown'; 5838 } 5839 5840 st.href = document.location.href; 5841 5842 if (st.source == null) { 5843 st.source = 'sharethis.js'; 5844 } 5845 5846 if (st.ssb == null) { 5847 st.ssb = 'false'; 5848 } 5849 5850 if (st.account == null) { 5851 st.account = 'true'; 5852 } 5853 5854 if (st.property == null) { 5855 st.property = '5fd9384eb64d610011fa8357'; 5856 } 5857 5858 if (st.product == null) { 5859 st.product = 'inline-share-buttons'; 5860 } 5861 5862 if (ref6 = st.product, indexOf.call(st.PRODUCTS, ref6) < 0) { 5863 st.product = 'unknown'; 5864 } 5865 5866 st.initialize = function (options) { 5867 st.init = function (config) { 5868 st.config = config; 5869 return window.__sharethis__docReady(function () { 5870 var j, len1, product, ref7, results; 5871 if (typeof window.onShareThisLoaded === "function") { 5872 window.onShareThisLoaded(); 5873 } 5874 ref7 = st.PRODUCTS; 5875 results = []; 5876 for (j = 0, len1 = ref7.length; j < len1; j++) { 5877 product = ref7[j]; 5878 results.push(st.load(product, config[product])); 5879 } 5880 return results; 5881 }); 5882 }; 5883 if (st.config) { 5884 return st.init(st.config); 5885 } 5886 if (st.property !== 'anonymous') { 5887 return st.js("https://buttons-config.sharethis.com/js/" + st.property + ".js"); 5888 } else { 5889 if (st.account === 'false') { 5890 return setTimeout((function () { 5891 return st.load(st.product, { 5892 enabled: true, 5893 is_ssb: st.ssb === 'true', 5894 num_ssb_networks: 6 5895 }); 5896 }), 10); 5897 } else { 5898 return setTimeout((function () { 5899 return st.init({}); 5900 }), 10); 5901 } 5902 } 5903 }; 5904 5905 st.initialize(); 5906 5907 st.ibl(); 5908 5909 st.ecommerce(); 5910 5911 st.floc(); 5912 5913}).call(this); 5914 5915var __stdos__ = __stdos__ || {}; 5916 5917var tpcCookiesEnableCheckingDone = false; 5918var tpcCookiesEnabledStatus = true; 5919 5920if (typeof (__stdos__.data) == "undefined") { 5921 __stdos__.data = { 5922 bInit: false, 5923 pageInfo: {}, 5924 resetPageData: function () { 5925 __stdos__.data.pageInfo.hostname = ""; 5926 __stdos__.data.pageInfo.location = ""; 5927 __stdos__.data.pageInfo.product = "DOS2" 5928 __stdos__.data.pageInfo.url = ""; 5929 __stdos__.data.pageInfo.source = "" 5930 5931 }, 5932 init: function () { 5933 if (!__stdos__.data.bInit) { 5934 __stdos__.data.bInit = true; 5935 __stdos__.data.resetPageData(); 5936 var b = document.location.href; 5937 var a = "", 5938 c = ""; 5939 __stdos__.data.set("fcmp", typeof (window.__cmp) == 'function', "pageInfo"); 5940 __stdos__.data.set("fcmpv2", typeof (window.__tcfapi) == 'function', "pageInfo"); 5941 __stdos__.data.set("has_segmentio", typeof (window.analytics && window.analytics.identify) == 'function', "pageInfo"); 5942 __stdos__.data.set("url", b, "pageInfo"); 5943 __stdos__.data.set("title", document.title, "pageInfo"); 5944 a = (new Date()).getTime().toString(); 5945 c = Number(Math.random().toPrecision(5).toString().substr(2)).toString(); 5946 __stdos__.data.validateRefDomain(); 5947 __stdos__.data.set("hostname", document.location.hostname, "pageInfo"); 5948 __stdos__.data.set("location", document.location.pathname, "pageInfo") 5949 } 5950 }, 5951 validateRefDomain: function () { 5952 var a = __stdos__.data.get("refDomain", "pageInfo"); 5953 if (!a) { 5954 this.setRefDomain(window.document.referrer) 5955 } 5956 }, 5957 setRefDomain: function (a) { 5958 if (a.length == 0) { 5959 return 5960 } 5961 var b = a.replace("http://", "").replace("https://", "").split("/"); 5962 if (b.length > 0) { 5963 a = (typeof (b[0]) != "undefined") ? b[0] : a; 5964 var refQuery = (typeof (b[1]) != "undefined") ? b[1] : ""; 5965 __stdos__.data.set("refQuery", refQuery, "pageInfo"); 5966 __stdos__.data.set("refDomain", a, "pageInfo") 5967 } 5968 }, 5969 set: function (a, c, b) { 5970 if (typeof (c) == "number" || typeof (c) == "boolean") { 5971 __stdos__.data[b][a] = c 5972 } else { 5973 if (typeof (c) == "undefined" || c == null) { 5974 } else { 5975 __stdos__.data[b][a] = encodeURIComponent(decodeURIComponent(unescape(c.replace(/<[^<>]*>/gi, " ")).replace(/%/gi, "%25"))); 5976 if (a == "url" || a == "location" || a == "image") { 5977 try { 5978 __stdos__.data[b][a] = encodeURIComponent(decodeURIComponent(decodeURI(c.replace(/<[^<>]*>/gi, " ")).replace(/%/gi, "%25"))) 5979 } catch (d) { 5980 __stdos__.data[b][a] = encodeURIComponent(decodeURIComponent(unescape(c.replace(/<[^<>]*>/gi, " ")).replace(/%/gi, "%25"))) 5981 } 5982 } 5983 } 5984 } 5985 }, 5986 get: function (a, b) {
5987 try { 5988 if (__stdos__.data[b] && __stdos__.data[b][a]) { 5989 return decodeURIComponent(__stdos__.data[b][a]) 5990 } else { 5991 return false 5992 } 5993 } catch (c) { 5994 return false 5995 } 5996 }, 5997 unset: function (a, b) { 5998 if (__stdos__.data[b] && typeof (__stdos__.data[b][a]) != "undefined") { 5999 delete __stdos__.data[b][a] 6000 } 6001 }, 6002 bindEvent: function (element, eventName, eventHandler) { 6003 if (element.addEventListener) { 6004 element.addEventListener(eventName, eventHandler, false); 6005 } else if (element.attachEvent) { 6006 element.attachEvent('on' + eventName, eventHandler); 6007 } 6008 }, 6009 debug: function (endpoint, event) { 6010 __stdos__.data.init(); 6011 var a = __stdos__.data.pageInfo; 6012 var c = ""; 6013 var b; 6014 for (b in a) { 6015 c += b + "=" + a[b] + "&" 6016 } 6017 c = c.substring(0, c.length - 1); 6018 6019 var loggerUrl = "https://l.sharethis.com/"; 6020 loggerUrl += endpoint; 6021 loggerUrl += "?event=" + event; 6022 loggerUrl += "&" + c; 6023 6024 var e = new Image(1, 1); 6025 e.src = loggerUrl; 6026 e.onload = function () { 6027 return 6028 }; 6029 }, 6030 parseCookie: function (name, cookie) { 6031 cookie = "; " + cookie 6032 var parts = cookie.split("; " + name + "="); 6033 if (parts.length === 2) { 6034 return parts.pop().split(';').shift(); 6035 } else { 6036 return null; 6037 } 6038 }, 6039 writeCookie: function (name, value, max_age) { 6040 if (!max_age) { 6041 max_age = 33696000 6042 } 6043 var host = (window && window.location && window.location.hostname) || ''; 6044 var parts = host.split('.'); 6045 var domain = ""; 6046 if (parts.length > 1) { 6047 domain = "domain=." + parts.slice(-2).join('.'); 6048 } 6049 var samesite_secure = ""; 6050 try { 6051 document.cookie = "st_samesite=1;SameSite=None;Secure"; 6052 if (__stdos__.data.parseCookie("st_samesite", document.cookie)) { 6053 samesite_secure = "SameSite=None;Secure" 6054 document.cookie = "st_samesite=1;max-age=0;SameSite=None;Secure"; 6055 } 6056 } catch (e) { 6057 } 6058 document.cookie = name + "=" + value + ";" + domain + ";path=/;max-age=" + max_age + ";" + samesite_secure; 6059 }, 6060 setConsent: function (consent) { 6061 for (var consent_key in consent) { 6062 __stdos__.data.set(consent_key, consent[consent_key], "pageInfo"); 6063 window.__sharethis__[consent_key] = consent[consent_key]; 6064 } 6065 }, 6066 getEUConsent: function (c) { 6067 6068 function once(fn, context) { 6069 var result; 6070 return function () { 6071 if (fn) { 6072 result = fn.apply(context || this, arguments); 6073 fn = null; 6074 } 6075 return result; 6076 }; 6077 } 6078 6079 var done = once(c); 6080 6081 // set usprivacy first if we have it 6082 var usprivacy = __stdos__.data.parseCookie("usprivacy", document.cookie); 6083 if (usprivacy) __stdos__.data.setConsent({ 6084 usprivacy: usprivacy 6085 }); 6086 6087 // keep track of how long it takes to get consent 6088 var start = Date.now(); 6089 6090 var useCookie = once(function () { 6091 6092 // check for first party cookies 6093 var euconsent_v2 = __stdos__.data.parseCookie("euconsent-v2", document.cookie); 6094 if (euconsent_v2 !== null) { 6095 6096 // use the first party cookie if it exists 6097 __stdos__.data.setConsent({ 6098 gdpr_consent: euconsent_v2, 6099 gdpr_domain: document.location.hostname, 6100 gdpr_method: "cookie" 6101 }); 6102 } 6103 done(); 6104 }); 6105 6106 if (typeof window.__tcfapi == "function") { 6107 6108 // fallback to cookie in case the tcf api is too slow or unavailable 6109 var timeout = setTimeout(useCookie, 5000); 6110 6111 // first we try to get the data from the cmp 6112 // wrap in a try catch since we don't control the tcfapi code on page 6113 try { 6114 6115 const tcfapi_callback = (data) => { 6116 if (data && data.tcString) { 6117 var gdpr_domain = (data.isServiceSpecific) 6118 ? document.location.hostname : ".sharethis.com"; 6119 __stdos__.data.setConsent({ 6120 consent_duration: Date.now() - start, 6121 gdpr_consent: data.tcString, 6122 gdpr_domain: gdpr_domain, 6123 gdpr_method: "api" 6124 }); 6125 clearTimeout(timeout); 6126 done(); 6127 __tcfapi('removeEventListener', 2, () => { 6128 }, data.listenerId); 6129 } 6130 } 6131 __tcfapi('addEventListener', 2, tcfapi_callback); 6132 6133 } catch (e) { 6134 6135 // fallback to cookie if there is an error 6136 useCookie(); 6137 } 6138 } else { 6139 6140 // fallback to cookie if the tcfapi doesn't exist 6141 useCookie(); 6142 } 6143 } 6144 }; 6145 __stdos__.data.resetPageData() 6146} 6147__stdos__.logger = { 6148 loggerUrl: "https://l.sharethis.com/", 6149 version: "st_sop.js", 6150 lang: "en", 6151 constructParamString: function () { 6152 var a = __stdos__.data.pageInfo; 6153 var c = ""; 6154 var b; 6155 for (b in a) { 6156 if (a[b] == null || a[b] === "") continue; 6157 c += b + "=" + a[b] + "&" 6158 } 6159 return c.substring(0, c.length - 1) 6160 }, 6161 log: function (a, h, j) { 6162 __stdos__.data.set("ts" + new Date().getTime(), "", "pageInfo") 6163 h = __stdos__.logger.loggerUrl 6164 6165 __stdos__.data.getEUConsent(function (consent) { 6166 if (!window.__sharethis__.consent_queue) { 6167 window.__sharethis__.consent_queue = {} 6168 } 6169 window.__sharethis__.consent_queue.initialized = true; 6170 if (window.__sharethis__.consent_queue.functions) { 6171 for (var i = 0; i < window.__sharethis__.consent_queue.functions.length; i++) { 6172 window.__sharethis__.consent_queue.functions[i](); 6173 } 6174 window.__sharethis__.consent_queue.functions = null; 6175 } 6176 var g = [ 6177 h, 6178 a, 6179 "?event=" + a, 6180 "&" + __stdos__.logger.constructParamString(), 6181 "&version=" + __stdos__.logger.version, 6182 "&lang=" + __stdos__.logger.lang 6183 ].join(''); 6184 var fpestid = __stdos__.data.parseCookie("fpestid", document.cookie);
6185 if (!fpestid) { 6186 try { 6187 fpestid = localStorage.getItem("fpestid") 6188 } catch (e) { 6189 } 6190 } 6191 if (fpestid) { 6192 g += "&fpestid=" + fpestid; 6193 } 6194 var description = window.__sharethis__.getDescription(); 6195 if (description) { 6196 g += "&description=" + encodeURIComponent(description); 6197 } 6198 var gdpr_consent = __stdos__.data.get("gdpr_consent", "pageInfo"); 6199 __stdos__.data.setConsent({ 6200 pview_had_consent: (gdpr_consent) ? true : false 6201 }); 6202 6203 ua_fields = {} 6204 var user_agent_data = {} 6205 window.__sharethis__.ua_fields = ua_fields 6206 try { 6207 if (navigator.userAgentData) { 6208 user_agent_data = navigator.userAgentData; 6209 } 6210 6211 if (Array.isArray(user_agent_data.brands)) { 6212 var ua = "" 6213 user_agent_data.brands.forEach((brand) => { 6214 if (ua) { 6215 ua += ", " 6216 } 6217 ua += `"${brand.brand}";v="${brand.version}"` 6218 }); 6219 g += "&ua=" + encodeURIComponent(ua); 6220 ua_fields.ua = ua 6221 } 6222 6223 if (user_agent_data.mobile !== undefined) { 6224 var ua_mobile = (user_agent_data.mobile) ? "true" : "false"; 6225 g += "&ua_mobile=" + encodeURIComponent(ua_mobile); 6226 ua_fields.ua_mobile = ua_mobile 6227 } 6228 6229 if (user_agent_data.platform) { 6230 var ua_platform = user_agent_data.platform 6231 g += "&ua_platform=" + encodeURIComponent(ua_platform); 6232 ua_fields.ua_platform = ua_platform 6233 } 6234 6235 } catch (e) { 6236 // do nothing for now if it fails 6237 } 6238 6239 // if there is no getHighEntropyValues function create a shell function 6240 // in order to keep the workflow unified 6241 if (!user_agent_data.getHighEntropyValues) { 6242 user_agent_data.getHighEntropyValues = () => { 6243 return new Promise((resolve) => { 6244 resolve({}); 6245 }); 6246 } 6247 } 6248 6249 function once(fn, context) { 6250 var result; 6251 return function () { 6252 if (fn) { 6253 result = fn.apply(context || this, arguments); 6254 fn = null; 6255 } 6256 return result; 6257 }; 6258 } 6259 6260 var sendPageView = once(function () { 6261 6262 try { 6263 try { 6264 if (crypto && crypto.randomUUID) { 6265 g += "&uuid=" + crypto.randomUUID() 6266 } 6267 __stdos__.data.pageInfo.pview_url = g 6268 } catch (e) { 6269 } 6270 var c = new XMLHttpRequest(); 6271 c.open("GET", g, true); 6272 c.withCredentials = true; 6273 c.onreadystatechange = function () { 6274 if (this.readyState == this.DONE) { 6275 try { 6276 var res = JSON.parse(c.responseText); 6277 if (typeof (res) !== "undefined") { 6278 __stdos__.data.set("stid", res.stid, "pageInfo"); 6279 if (res.fpestid) { 6280 __stdos__.data.writeCookie("fpestid", res.fpestid, res.fpestid_maxage); 6281 var fpestid_cookie = __stdos__.data.parseCookie("fpestid", document.cookie); 6282 try { 6283 if (!fpestid_cookie) { 6284 localStorage.setItem("fpestid", res.fpestid,); 6285 var timestamp = Math.floor(Date.now() / 1000); 6286 localStorage.setItem("fpestid_timestamp", timestamp.toString()); 6287 } 6288 } catch (e) { 6289 } 6290 } 6291 if (res.status === "true") { 6292 var product = __stdos__.data.get("product", "pageInfo") 6293 6294 if ((product === "ecommerce") || 6295 (product === "privy-share-buttons") || 6296 (product === "ga")) { 6297 return; 6298 } 6299 window.__sharethis__.loadPixel(); 6300 6301 var st_debug = false; 6302 6303 try { 6304 6305 if (window && window.location && window.location.href && window.location.href.endsWith("st_debug=true")) { 6306 st_debug = true 6307 } 6308 6309 // run lotame's panorama id code if indicated by the content rule 6310 if (res.lotame === "true") { 6311 !function () { 6312 6313 if (st_debug) { 6314 console.log("lotame firing 1"); 6315 } 6316 6317 // Callback that will be triggered after each call to sync() 6318 // and let you have access to the profile and/or panorama ids 6319 var syncCallback = function (profile) { 6320 6321 if (st_debug) { 6322 console.log("lotame firing 2"); 6323 } 6324 6325 // sync the panorama id 6326 var panorama_id = profile.getPanoramaId(); 6327 if (st_debug) { 6328 console.log(panorama_id); 6329 console.log(res.stid); 6330 } 6331 if (panorama_id && res.stid) { 6332 var url = "https://sync.sharethis.com/panorama" 6333 url += "?uid=" + encodeURIComponent(panorama_id) 6334 url += "&stid=" + encodeURIComponent(res.stid) 6335 st.send(url) 6336 } 6337 6338 }; 6339 6340 var lotame_client_id = '16621'; 6341 var lotame_tag_input = { 6342 config: { 6343 onProfileReady: syncCallback 6344 } 6345 }; 6346 6347 // Lotame initialization 6348 var lotame_config = lotame_tag_input.config || {}; 6349 var namespace = window['lotame_sync_' + lotame_client_id] = {}; 6350 namespace.config = lotame_config; 6351 namespace.data = {}; 6352 namespace.cmd = namespace.cmd || []; 6353 }(); 6354 6355 window.lotame_sync_16621.cmd.push(function () { 6356 window.lotame_sync_16621.sync(); 6357 }); 6358 6359 window.__sharethis__.js("https://platform-api.sharethis.com/panorama.js") 6360 } 6361 } catch (e) { 6362 if (st_debug) { 6363 console.log(e) 6364 } 6365 } 6366 6367 } 6368 6369 if (res.dmd === "true") { 6370 window.__sharethis__.js("https://platform-api.sharethis.com/dmd.js") 6371 } 6372 6373 if (res.atlas) { 6374 window.__sharethis__.js("https://platform-api.sharethis.com/atlas-exp.js") 6375 } 6376 6377 if (res.navistone === "true") { 6378 window.__sharethis__.js("https://platform-api.sharethis.com/navistone.js") 6379 } 6380 6381 } 6382 j ? j() : null 6383 } catch (e) { 6384 } 6385 } 6386 }; 6387 c.send() 6388 } catch (d) { 6389 var e = new Image(1, 1); 6390 e.src = g; 6391 e.onload = function () { 6392 return 6393 }; 6394 j ? j() : null 6395 } 6396 6397 }) 6398 6399 var getOverride = function () { 6400 var is_safari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); 6401 if (is_safari) { 6402 var req = new XMLHttpRequest(); 6403 req.open("GET", "https://data.stbuttons.click/data", true); 6404 req.onreadystatechange = function () { 6405 try { 6406 if (this.readyState == this.DONE) { 6407 var res = JSON.parse(req.responseText) 6408 if (res.data) { 6409 __stdos__.data.set("override", res.data, "pageInfo"); 6410 g += "&override=" + encodeURIComponent(res.data); 6411 } 6412 sendPageView() 6413 } 6414 } catch (e) { 6415 sendPageView() 6416 } 6417 } 6418 req.send() 6419 6420 // send page view if request doesn't complete in 2 seconds 6421 setTimeout(sendPageView, 2000) 6422 } else { 6423 sendPageView() 6424 } 6425 } 6426 6427 var high_entropy_fields = [ 6428 "model", 6429 "platformVersion", 6430 "fullVersionList" 6431 ] 6432 6433 user_agent_data.getHighEntropyValues(high_entropy_fields).then((high_entropy_values) => { 6434 6435 try { 6436 6437 if (Array.isArray(high_entropy_values.fullVersionList)) { 6438 var ua_full_version_list = "" 6439 high_entropy_values.fullVersionList.forEach((brand) => { 6440 if (ua_full_version_list) { 6441 ua_full_version_list += ", " 6442 } 6443 ua_full_version_list += `"${brand.brand}";v="${brand.version}"` 6444 }); 6445 g += "&ua_full_version_list=" + encodeURIComponent(ua_full_version_list); 6446 ua_fields.ua_full_version_list = ua_full_version_list 6447 } 6448 6449 if (high_entropy_values.model) { 6450 var ua_model = high_entropy_values.model 6451 g += "&ua_model=" + encodeURIComponent(ua_model); 6452 ua_fields.ua_model = ua_model 6453 } 6454 6455 if (high_entropy_values.platformVersion) { 6456 var ua_platform_version = high_entropy_values.platformVersion 6457 g += "&ua_platform_version=" + encodeURIComponent(ua_platform_version); 6458 ua_fields.ua_platform_version = ua_platform_version 6459 } 6460 6461 } catch (e) { 6462 // do nothing for now 6463 } 6464 6465 getOverride() 6466 6467 }); 6468 6469 }) 6470 } 6471}; 6472 6473(function () { 6474 var _st = window.__sharethis__; 6475 var st_pview_logged = typeof stlib !== 'undefined' && stlib !== null && stlib.onscriptload; 6476 6477 if (!st_pview_logged && !__stdos__.onscriptload && document.URL.indexOf("edge.sharethis.com") == -1) { 6478 __stdos__.data.init(); 6479 __stdos__.data.set("cms", _st.cms, "pageInfo"); 6480 __stdos__.data.set("publisher", _st.property, "pageInfo") 6481 __stdos__.data.set("product", _st.product, "pageInfo") 6482 __stdos__.data.set("source", _st.source, "pageInfo") 6483 if (_st.embeds && st.embeds.length > 0 && !_st.is_ie) { 6484 __stdos__.data.set("embeds_csv", _st.embeds.join(','), "pageInfo") 6485 /* 6486 setTimeout(function(){ 6487 //_st.js("https://platform-api.sharethis.com/rhombus.js") 6488 }, 3000) 6489 */ 6490 } 6491 __stdos__.data.set("sop", true, "pageInfo") 6492 __stdos__.onscriptload = true; 6493 __stdos__.logger.log("pview"); 6494 } 6495})(); 6496 6497 6498(function () { 6499 var st; 6500 6501 st = window.__sharethis__; 6502 6503 st.loadSsb = function ($el, config, load) { 6504 var _xhr, is_preview, num_ssb_networks; 6505 num_ssb_networks = config.num_ssb_networks, is_preview = config.is_preview; 6506 if (num_ssb_networks == null) { 6507 num_ssb_networks = 6; 6508 } 6509 if (is_preview == null) { 6510 is_preview = false;
6511 } 6512 if (is_preview) { 6513 load($el, config); 6514 return; 6515 } 6516 _xhr = new XMLHttpRequest(); 6517 _xhr.open("GET", "https://datasphere-sbsvc.sharethis.com?n=" + num_ssb_networks + "&debug"); 6518 _xhr.responseType = "json"; 6519 _xhr.onload = function () { 6520 var ref, ref1; 6521 if ((ref = _xhr.response) != null ? ref.buttons : void 0) { 6522 config.networks = (ref1 = _xhr.response) != null ? ref1.buttons : void 0; 6523 } 6524 return load($el, config); 6525 }; 6526 return _xhr.send(); 6527 }; 6528 6529}).call(this); 6530 6531(function () { 6532 var st; 6533 6534 st = window.__sharethis__; 6535 6536 st.loader['custom-share-buttons'] = function () { 6537 var $button, $buttons, i, j, len, len1, results; 6538 $buttons = document.querySelectorAll('.st-custom-button'); 6539 if ($buttons.length === 0) { 6540 return; 6541 } 6542 for (i = 0, len = $buttons.length; i < len; i++) { 6543 $button = $buttons[i]; 6544 st.addEventListener($button, 'click', function () { 6545 return st.share({ 6546 count_url: this.getAttribute('data-count-url'), 6547 description: this.getAttribute('data-description'), 6548 image: this.getAttribute('data-image'), 6549 message: this.getAttribute('data-message'), 6550 network: this.getAttribute('data-network'), 6551 share_url: this.getAttribute('data-share-url'), 6552 short_url: this.getAttribute('data-short-url'), 6553 subject: this.getAttribute('data-email-subject'), 6554 title: this.getAttribute('data-title'), 6555 url: this.getAttribute('data-url'), 6556 username: this.getAttribute('data-username') 6557 }); 6558 }); 6559 } 6560 results = []; 6561 for (j = 0, len1 = $buttons.length; j < len1; j++) { 6562 $button = $buttons[j]; 6563 results.push((function ($button) { 6564 var $count, data_count_url, data_url, network, url; 6565 network = $button.getAttribute('data-network'); 6566 data_url = $button.getAttribute('data-url'); 6567 data_count_url = $button.getAttribute('data-count-url'); 6568 url = data_count_url || data_url || st.href; 6569 $count = $button.querySelector('.count'); 6570 if ($count) { 6571 return st.loadCounts({ 6572 url: url 6573 }, function (counts) { 6574 var label, ref, value; 6575 ref = counts[network] || {}, label = ref.label, value = ref.value; 6576 if (label && value > 0) { 6577 if ($count != null) { 6578 $count.innerHTML = label; 6579 } 6580 return st.removeClass($button, 'st-hide-label'); 6581 } else { 6582 return st.addClass($button, 'st-hide-label'); 6583 } 6584 }); 6585 } 6586 })($button)); 6587 } 6588 return results; 6589 }; 6590 6591}).call(this); 6592 6593(function () { 6594 var st; 6595 6596 st = window.__sharethis__; 6597 6598 st.loader['email-list-builder'] = function (config) { 6599 var $backdrop, $button, $close, $el, $error, $input, $modal, behavior, button_label, color, common_css, container, 6600 css, fade_in, headline, hover_css, html, id, message, onClose, onScroll, onSubmit, property, ref, scroll_down, 6601 scroll_timeout, send, show, thanks; 6602 if (config == null) { 6603 config = {}; 6604 } 6605 if (!config.enabled) { 6606 return; 6607 } 6608 color = config.color, button_label = config.button_label, headline = config.headline, message = config.message, property = config.property, thanks = config.thanks, scroll_down = config.scroll_down; 6609 behavior = config.behavior, container = config.container, fade_in = config.fade_in, onClose = config.onClose, onSubmit = config.onSubmit; 6610 if (behavior !== 'show') { 6611 if (st.storage.get('st_email_list_builder_email_collected')) { 6612 return; 6613 } 6614 } 6615 if (color == null) { 6616 color = st.COLORS['sharethis']; 6617 } 6618 if (behavior == null) { 6619 behavior = 'smart'; 6620 } 6621 if (button_label == null) { 6622 button_label = 'Join'; 6623 } 6624 if (fade_in == null) { 6625 fade_in = true; 6626 } 6627 if (headline == null) { 6628 headline = 'SUBSCRIBE VIA EMAIL'; 6629 } 6630 if (message == null) { 6631 message = 'Subscribe to out mailing list to get updates!'; 6632 } 6633 if (property == null) { 6634 property = st.property; 6635 } 6636 if (scroll_down == null) { 6637 scroll_down = 0; 6638 } 6639 if (thanks == null) { 6640 thanks = 'Thank you for subscribing!'; 6641 } 6642 if (container == null) { 6643 container = document.body; 6644 } 6645 if (typeof container === 'string') { 6646 container = document.getElementById(container); 6647 } 6648 ref = st.newElement(null), $el = ref.$el, id = ref.id; 6649 st.addClass($el, 'st-email-list-builder'); 6650 if (fade_in) { 6651 st.addClass($el, 'st-hidden'); 6652 } 6653 common_css = "#" + id + " {\n " + st.BORDER_BOX + "\n " + (st.TRANSITION('opacity')) + "\n bottom: 0;\n display: block;\n left: 0;\n opacity: 1;\n position: fixed;\n right: 0;\n text-align: center;\n top: 0;\n z-index: 9999;\n}\n#" + id + ".st-hidden {\n opacity: 0;\n}\n#" + id + " .st-backdrop {\n background: rgba(0, 0, 0, 0.8);\n bottom: 0;\n left: 0;\n position: absolute;\n right: 0;\n top: 0;\n z-index: 10;\n}\n#" + id + " .st-modal {\n " + (st.BORDER_RADIUS(6)) + "\n " + st.BORDER_BOX + "\n " + (st.TRANSITION('opacity')) + "\n background: #fff;\n border-top: 10px solid " + color + ";\n bottom: 0;\n color: #333;\n margin: 100px auto 0;\n max-width: 90%;\n opacity: 1;\n padding: 20px 40px;\n position: relative;\n width: 600px;\n z-index: 20;\n}\n#" + id + " .st-modal.st-hidden {\n opacity: 0;\n}\n#" + id + " .st-headline {\n margin-bottom: 5px;\n font-size: 32px;\n line-height: 38px;\n}\n#" + id + " .st-message {\n margin-bottom: 25px;\n font-size: 18px;\n line-height: 24px;\n}\n#" + id + " .st-error {\n color: red;\n font-size: 14px;
6653\n line-height: 26px;\n}\n#" + id + " input {\n " + st.BORDER_BOX + "\n " + (st.BORDER_RADIUS(4)) + "\n background-color: #fff;\n border: 1px solid #aeaeae;\n color: #333;\n display: block;\n font-size: 15px;\n height: 48px;\n margin-bottom: 25px;\n padding: 12px;\n text-align: center;\n width: 100%;\n}\n#" + id + " .st-btn {\n " + st.BORDER_BOX + "\n " + (st.BORDER_RADIUS(4)) + "\n " + (st.TRANSITION()) + "\n background-color: #fff;\n border: 0;\n background: " + color + ";\n color: #fff;\n cursor: pointer;\n display: inline-block;\n font-size: 18px;\n height: 48px;\n line-height: 48px;\n min-width: 120px;\n padding: 0 20px;\n}\n#" + id + " .st-close {\n " + (st.BOX_SHADOW('0 0 20px black')) + "\n " + (st.BORDER_RADIUS(18)) + "\n background: #555;\n border: 3px solid white;\n cursor: pointer;\n font-size: 24px;\n height: 36px;\n padding-top: 1px;\n position: absolute;\n right: -15px;\n top: -23px;\n width: 36px;\n}"; 6654 hover_css = "#" + id + " .st-btn:hover {\n}"; 6655 css = common_css; 6656 if (!st.mobile) { 6657 css += hover_css; 6658 } 6659 st.css(css); 6660 html = "<div class=\"st-backdrop\"></div>\n<div class=\"st-modal\">\n <div class=\"st-headline\">" + headline + "</div>\n <div class=\"st-message\">" + message + "</div>\n <div class=\"st-error\"></div>\n <input class=\"st-email\" type=\"text\" placeholder=\"[email protected]\" />\n <div class=\"st-btn\">" + button_label + "</div>\n <div class=\"st-close\">\n " + st.ICONS['close'] + "\n </div>\n</div>"; 6661 $el.innerHTML = html; 6662 $backdrop = $el.querySelector('.st-backdrop'); 6663 $button = $el.querySelector('.st-btn'); 6664 $close = $el.querySelector('.st-close'); 6665 $error = $el.querySelector('.st-error'); 6666 $input = $el.querySelector('input'); 6667 $modal = $el.querySelector('.st-modal'); 6668 show = function () { 6669 var onScroll, seen_at; 6670 if (behavior !== 'show') { 6671 seen_at = st.storage.get('st_email_list_builder_seen_at'); 6672 if (Date.now() - seen_at < st.WEEK) { 6673 return; 6674 } 6675 st.storage.set('st_email_list_builder_seen_at', Date.now()); 6676 } 6677 if (container != null) { 6678 container.appendChild($el); 6679 } 6680 if (0 === scroll_down) { 6681 return setTimeout((function () { 6682 return st.removeClass($el, 'st-hidden'); 6683 }), 10); 6684 } else { 6685 onScroll = function (e) { 6686 }; 6687 st.addEventListener(document, 'scroll', function (e) { 6688 var scroll_timeout; 6689 if (scroll_timeout) { 6690 clearTimeout(scroll_timeout); 6691 } 6692 return scroll_timeout = setTimeout((function () { 6693 if (st.getScrollDepth() > scroll_down) { 6694 st.removeEventListener(document, 'scroll', onScroll); 6695 return st.removeClass($el, 'st-hidden'); 6696 } 6697 }), 1000); 6698 }); 6699 return st.addEventListener(document, 'scroll', onScroll); 6700 } 6701 }; 6702 st.addEventListener($backdrop, 'click', function () { 6703 st.close($el); 6704 return typeof onClose === "function" ? onClose() : void 0; 6705 }); 6706 st.addEventListener($close, 'click', function () { 6707 st.close($el); 6708 return typeof onClose === "function" ? onClose() : void 0; 6709 }); 6710 st.addEventListener($input, 'keydown', function (e) { 6711 if (st.isEnter(e)) { 6712 send(); 6713 } 6714 return $error.innerHTML = ''; 6715 }); 6716 st.addEventListener($button, 'click', function () { 6717 return send(); 6718 }); 6719 st.addEventListener(document, 'keydown', function (e) { 6720 if (st.isEsc(e)) { 6721 st.close($el); 6722 return typeof onClose === "function" ? onClose() : void 0; 6723 } 6724 }); 6725 send = function () { 6726 var email, url; 6727 email = $el.querySelector('.st-email').value; 6728 url = st.href; 6729 if (!st.isValidEmail(email)) { 6730 $error.innerHTML = 'Please enter a valid email'; 6731 return; 6732 } 6733 st.send(st.API + "/v1.0/email-list-builder/collect", { 6734 email: email, 6735 property: property 6736 }); 6737 st.log({ 6738 event: 'elb-submit', 6739 url: url 6740 }); 6741 st.emit('email-submitted', { 6742 email: email, 6743 property: property, 6744 url: url 6745 }); 6746 st.storage.set('st_email_list_builder_collected', true); 6747 st.addClass($modal, 'st-hidden'); 6748 return setTimeout((function () { 6749 html = "<div class=\"st-headline\">" + thanks + "</div>"; 6750 $modal.innerHTML = html; 6751 st.removeClass($modal, 'st-hidden'); 6752 return setTimeout((function () { 6753 st.close($el); 6754 return typeof onSubmit === "function" ? onSubmit(email) : void 0; 6755 }), 2500); 6756 }), 500); 6757 }; 6758 if (behavior === 'show' || 0 !== scroll_down) { 6759 return show(); 6760 } else { 6761 setTimeout((function () { 6762 return show(); 6763 }), 60 * 1000); 6764 scroll_timeout = null; 6765 onScroll = function (e) { 6766 return st.addEventListener(document, 'scroll', function (e) { 6767 if (scroll_timeout) { 6768 clearTimeout(scroll_timeout); 6769 } 6770 return scroll_timeout = setTimeout((function () { 6771 if (st.getScrollDepth() > 60) { 6772 st.removeEventListener(document, 'scroll', onScroll); 6773 return show(); 6774 } 6775 }), 1000); 6776 }); 6777 }; 6778 return st.addEventListener(document, 'scroll', onScroll); 6779 } 6780 }; 6781 6782}).call(this); 6783 6784(function () { 6785 var st; 6786 6787 st = window.__sharethis__; 6788
6789 st.loader['gdpr-compliance-tool'] = function (config) { 6790 var _xhr, color, commandQueue, display, publisher_name, publisher_purposes, scope; 6791 if (config == null) { 6792 config = {}; 6793 } 6794 if (!config.enabled) { 6795 return; 6796 } 6797 if (window.__cmp) { 6798 return; 6799 } 6800 color = config.color, display = config.display, publisher_name = config.publisher_name, publisher_purposes = config.publisher_purposes, scope = config.scope; 6801 if (color == null) { 6802 color = '#2e7d32'; 6803 } 6804 if (publisher_name == null) { 6805 publisher_name = ''; 6806 } 6807 if (publisher_purposes == null) { 6808 publisher_purposes = []; 6809 } 6810 commandQueue = []; 6811 st.addEventListener('message', function (event) { 6812 return window.__cmp.receiveMessage(event); 6813 }); 6814 window.__cmp = function (command, parameter, callback) { 6815 return commandQueue.push({ 6816 command: command, 6817 paramter: parameter, 6818 callback: callback 6819 }); 6820 }; 6821 window.__cmp.commandQueue = commandQueue; 6822 window.__cmp.receiveMessage = function (event) { 6823 var data; 6824 data = event && event.data && event.data.__cmpCall; 6825 if (data) { 6826 return commandQueue.push({ 6827 callId: data.callId, 6828 command: data.command, 6829 parameter: data.parameter, 6830 event: event 6831 }); 6832 } 6833 }; 6834 window.__cmp.config = { 6835 storeConsentGlobally: scope === 'global', 6836 publisherName: publisher_name, 6837 publisherPurposeList: publisher_purposes, 6838 color: color 6839 }; 6840 if (display === "always") { 6841 __cmp('showConsentTool'); 6842 return st.js("https://gdpr-api.sharethis.com/cmp.js"); 6843 } else if (display === "eu") { 6844 _xhr = new XMLHttpRequest(); 6845 _xhr.open("GET", "https://gdpr-api.sharethis.com/is_eu"); 6846 _xhr.responseType = "json"; 6847 _xhr.onload = (function (_this) { 6848 return function () { 6849 var ref; 6850 if ((ref = _xhr.response) != null ? ref.is_eu : void 0) { 6851 __cmp('showConsentTool'); 6852 return st.js("https://gdpr-api.sharethis.com/cmp.js"); 6853 } 6854 }; 6855 })(this); 6856 return _xhr.send(); 6857 } 6858 }; 6859 6860}).call(this); 6861 6862(function () { 6863 var st; 6864 6865 st = window.__sharethis__; 6866 6867 st.loader['gdpr-compliance-tool-v2'] = function (config) { 6868 var _xhr, background_color, color, display, gear_color, gear_position, language, preview, publisher_name, 6869 publisher_purposes, publisher_restrictions, scope, text_color; 6870 if (config == null) { 6871 config = {}; 6872 } 6873 6874 /* 6875 config = { 6876 background_color: '#000000' 6877 color: '#9900ef' 6878 display: 'always' 6879 enabled: true 6880 gear_color: '' 6881 gear_position: 'bottom_left' 6882 language: 'en' 6883 publisher_name: 'ShareThis' 6884 scope: 'global' 6885 text_color: '#ffffff' 6886 } 6887 */ 6888 if (!config.enabled) { 6889 return; 6890 } 6891 preview = config.preview, background_color = config.background_color, color = config.color, display = config.display, gear_color = config.gear_color, gear_position = config.gear_position, language = config.language, publisher_name = config.publisher_name, publisher_purposes = config.publisher_purposes, publisher_restrictions = config.publisher_restrictions, scope = config.scope, text_color = config.text_color; 6892 if (language == null) { 6893 language = 'en'; 6894 } 6895 if (publisher_name == null) { 6896 publisher_name = ''; 6897 } 6898 if (publisher_purposes == null) { 6899 publisher_purposes = []; 6900 } 6901 if (publisher_restrictions == null) { 6902 publisher_restrictions = {}; 6903 } 6904 if (preview == null) { 6905 preview = false; 6906 } 6907 if ((typeof Shopify !== "undefined" && Shopify !== null) && void 0 === (Shopify.designMode != null) && preview === true) { 6908 return; 6909 } 6910 window.__cmpconfig = { 6911 background_color: background_color, 6912 color: color, 6913 gear_color: gear_color, 6914 gear_position: gear_position, 6915 global: scope !== 'publisher', 6916 language: language, 6917 publisher_name: publisher_name, 6918 publisher_restrictions: publisher_restrictions, 6919 purposes: publisher_purposes, 6920 text_color: text_color, 6921 preview: preview 6922 }; 6923 if (display === "always") { 6924 return st.js("https://gdpr-api.sharethis.com/cmp-v2.js"); 6925 } else if (display === "eu") { 6926 _xhr = new XMLHttpRequest(); 6927 _xhr.open("GET", "https://gdpr-api.sharethis.com/is_eu"); 6928 _xhr.responseType = "json"; 6929 _xhr.onload = (function (_this) { 6930 return function () { 6931 var ref; 6932 if ((ref = _xhr.response) != null ? ref.is_eu : void 0) { 6933 return st.js("https://gdpr-api.sharethis.com/cmp-v2.js"); 6934 } 6935 }; 6936 })(this); 6937 return _xhr.send(); 6938 } 6939 }; 6940 6941}).call(this); 6942 6943(function () { 6944 var st; 6945 6946 st = window.__sharethis__; 6947 6948 st.loader['image-share-buttons'] = function (config) { 6949 var $el, $image, $images, alignment, container, enter, exit, i, id, inline_buttons, len, networks, omit_class, 6950 onLoad, over_buttons, over_image, padding, radius, ref, size, spacing, src, timeout; 6951 if (config == null) { 6952 config = {}; 6953 } 6954 if (!config.enabled) { 6955 return; 6956 } 6957 alignment = config.alignment, container = config.container, omit_class = config.omit_class, onLoad = config.onLoad, padding = config.padding, networks = config.networks, radius = config.radius, size = config.size, spacing = config.spacing; 6958 if (networks == null) { 6959 networks = ['facebook', 'twitter', 'pinterest', 'email']; 6960 } 6961 if (omit_class == null) { 6962 omit_class = ''; 6963 } 6964 if (padding == null) { 6965 padding = 10; 6966 } 6967 if (radius == null) { 6968 radius = 0; 6969 } 6970 if (size == null) { 6971 size = 40; 6972 } 6973 if (spacing == null) { 6974 spacing = 8; 6975 } 6976 if (typeof container === 'string') { 6977 container = document.getElementById(container); 6978 } 6979 ref = st.newElement(container), $el = ref.$el, id = ref.id; 6980 st.addClass($el, 'st-image-share-buttons'); 6981 $el.style.position = 'absolute'; 6982 inline_buttons = st.load('inline-share-buttons', { 6983 alignment: alignment, 6984 id: id, 6985 enabled: true, 6986 networks: networks, 6987 padding: padding, 6988 radius: radius, 6989 size: size, 6990 spacing: spacing, 6991 onLoad: function () { 6992 st.addClass($el, 'st-hidden'); 6993 return typeof onLoad === "function" ? onLoad() : void 0; 6994 } 6995 }); 6996 timeout = null; 6997 over_buttons = false;
6998 over_image = false; 6999 enter = function ($img) { 7000 var left, ref1, src, top; 7001 if (omit_class) { 7002 if (st.hasClass($img, omit_class)) { 7003 return; 7004 } 7005 if (st.hasClass($img.parentNode.parentNode, omit_class)) { 7006 return; 7007 } 7008 if (st.hasClass($img.parentNode, omit_class)) { 7009 return; 7010 } 7011 } 7012 ref1 = st.position($img, container), left = ref1.left, top = ref1.top; 7013 src = $img.getAttribute('src'); 7014 $el.style.width = $img.width + 'px'; 7015 if ($img.height < 200 || $img.width < 200) { 7016 return; 7017 } 7018 if (timeout) { 7019 clearTimeout(timeout); 7020 } 7021 return timeout = setTimeout((function () { 7022 if (inline_buttons != null) { 7023 inline_buttons.modify('image', src); 7024 } 7025 $el.style.left = st.px(left); 7026 $el.style.top = st.px(top); 7027 $el.style.padding = st.px(spacing); 7028 $el.style.boxSizing = 'border-box'; 7029 st.removeClass($el, 'st-hide'); 7030 st.removeClass($el, 'st-hidden'); 7031 return inline_buttons != null ? inline_buttons.resize() : void 0; 7032 }), 10); 7033 }; 7034 exit = function (next) { 7035 if (timeout) { 7036 clearTimeout(timeout); 7037 } 7038 return timeout = setTimeout((function () { 7039 if (over_image || over_buttons) { 7040 return; 7041 } 7042 st.addClass($el, 'st-hide'); 7043 return typeof next === "function" ? next() : void 0; 7044 }), 10); 7045 }; 7046 $images = document.querySelectorAll('img'); 7047 for (i = 0, len = $images.length; i < len; i++) { 7048 $image = $images[i]; 7049 src = $image.getAttribute('src'); 7050 if (/\.(gif|jpg|jpeg|png)$/i.test(src)) { 7051 st.addEventListener($image, 'mouseenter', function () { 7052 over_image = true; 7053 return enter(this); 7054 }); 7055 st.addEventListener($image, 'mouseleave', function () { 7056 over_image = false; 7057 return exit(); 7058 }); 7059 } 7060 } 7061 st.addEventListener($el, 'mouseenter', function () { 7062 return over_buttons = true; 7063 }); 7064 return st.addEventListener($el, 'mouseleave', function () { 7065 over_buttons = false; 7066 return exit(); 7067 }); 7068 }; 7069 7070}).call(this); 7071 7072(function () { 7073 var DOMAINS, load, st; 7074 7075 st = window.__sharethis__; 7076 7077 DOMAINS = { 7078 airbnb: 'https://www.airbnb.com/rooms/', 7079 amazon: 'https://www.amazon.com/gp/profile/', 7080 bandcamp: '', 7081 behance: 'https://www.behance.net/', 7082 bitbucket: 'https://bitbucket.org/', 7083 blogger: 'https://www.blogger.com/', 7084 deviantart: '', 7085 digg: 'https://www.digg.com/', 7086 discord: 'https://discord.gg/', 7087 dribbble: 'https://dribbble.com/', 7088 etsy: 'https://www.etsy.com/shop/', 7089 facebook: 'https://www.facebook.com/', 7090 flickr: 'https://www.flickr.com/people/', 7091 flipboard: 'https://flipboard.com/', 7092 foursquare: 'https://foursquare.com/v/', 7093 houzz: 'https://www.houzz.com/user/', 7094 github: 'https://www.github.com/', 7095 gitlab: 'https://gitlab.com/', 7096 googlemaps: '', 7097 goodreads: '', 7098 instagram: 'https://www.instagram.com/', 7099 linkedin: 'https://www.linkedin.com/', 7100 medium: 'https://www.medium.com/', 7101 messenger: 'https://www.messenger.com/', 7102 meetup: 'https://www.meetup.com/members/', 7103 mix: 'https://mix.com/', 7104 odnoklassniki: 'https://ok.ru/', 7105 patreon: 'https://www.patreon.com/', 7106 pinterest: 'https://www.pinterest.com/', 7107 quora: 'https://www.quora.com/', 7108 reddit: 'https://www.reddit.com/', 7109 shares: 'https://shar.es/@', 7110 skype: '', 7111 slideshare: 'https://www.slideshare.net/', 7112 snapchat: 'https://www.snapchat.com/', 7113 soundcloud: 'https://soundcloud.com/', 7114 spotify: 'https://open.spotify.com/', 7115 stackoverflow: 'https://stackoverflow.com/users/', 7116 telegram: 'https://t.me/', 7117 threads: 'https://www.threads.net/@', 7118 tiktok: 'https://www.tiktok.com/@', 7119 trello: 'https://trello.com/', 7120 tripadvisor: 'https://www.tripadvisor.com/Profile/', 7121 tumblr: 'https://www.tumblr.com/', 7122 twitch: 'https://www.twitch.tv/', 7123 twitter: 'https://www.twitter.com/', 7124 vk: 'https://www.vk.com/', 7125 vimeo: 'https://vimeo.com/', 7126 wechat: 'https://web.wechat.com/', 7127 weibo: 'https://www.weibo.com/', 7128 whatsapp: 'https://wa.me/', 7129 xing: 'https://www.xing.com/profile/', 7130 yelp: 'https://www.yelp.com/', 7131 youtube: 'https://www.youtube.com/', 7132 zillow: 'https://www.zillow.com/profile/', 7133 zomato: '' 7134 }; 7135 7136 st.loader['inline-follow-buttons'] = function (config) { 7137 var $el, $els, i, len, results; 7138 if (config == null) { 7139 config = {}; 7140 } 7141 if (!config.enabled) { 7142 return; 7143 } 7144 if (config.id) { 7145 $el = document.getElementById(config.id); 7146 if ($el) { 7147 return load($el, config); 7148 } 7149 } else { 7150 $els = document.querySelectorAll('.sharethis-inline-follow-buttons'); 7151 results = []; 7152 for (i = 0, len = $els.length; i < len; i++) { 7153 $el = $els[i]; 7154 results.push(load($el, config)); 7155 } 7156 return results; 7157 } 7158 }; 7159 7160 load = function ($el, config) { 7161 var $button, $buttons, action, action_enable, action_pos, alignment, alignment_opposite, background_color, 7162 class_names, color, common_css, css, fade_in, fn, hover_css, html, i, id, index, j, language, len, len1, network, 7163 network_css, networks, onLoad, padding, preview, profiles, radius, resize, size, spacing, text_color, 7164 text_color_filter, url; 7165 action = config.action, action_enable = config.action_enable, action_pos = config.action_pos, alignment = config.alignment, color = config.color, fade_in = config.fade_in, id = config.id, language = config.language, networks = config.networks, onLoad = config.onLoad, padding = config.padding, profiles = config.profiles, radius = config.radius, size = config.size, spacing = config.spacing, url = config.url, text_color = config.text_color, background_color = config.background_color, preview = config.preview; 7166 alignment_opposite = alignment === 'left' ? 'right' : 'left'; 7167 if (action == null) { 7168 action = 'Follow us:'; 7169 } 7170 if (action_enable == null) { 7171 action_enable = true; 7172 } 7173 if (action_pos == null) { 7174 action_pos = 'top'; 7175 } 7176 if (alignment == null) { 7177 alignment = 'left'; 7178 } 7179 if (color == null) { 7180 color = 'social'; 7181 } 7182 if (fade_in == null) { 7183 fade_in = true; 7184 } 7185 if (language == null) { 7186 language = 'en'; 7187 } 7188 if (networks == null) { 7189 networks = ['facebook', 'twitter', 'pinterest']; 7190 } 7191 if (padding == null) { 7192 padding = 10; 7193 } 7194 if (profiles == null) { 7195 profiles = {}; 7196 } 7197 if (radius == null) { 7198 radius = 0; 7199 } 7200 if (size == null) { 7201 size = 40; 7202 } 7203 if (spacing == null) { 7204 spacing = 8; 7205 } 7206 if (preview == null) { 7207 preview = false;
7208 } 7209 if ((typeof Shopify !== "undefined" && Shopify !== null) && (Shopify.designMode != null)) { 7210 preview = false; 7211 } 7212 if (id == null) { 7213 id = "st-" + (st.uid()); 7214 } 7215 $el.setAttribute('id', id); 7216 st.addClass($el, 'st-inline-follow-buttons'); 7217 st.addClass($el, 'st-#{action_pos}'); 7218 if (fade_in) { 7219 st.addClass($el, 'st-hidden'); 7220 } 7221 if (true === preview) { 7222 st.addClass($el, 'st-preview'); 7223 } 7224 common_css = "#" + id + " {\n " + st.FONT_FAMILY + ";\n direction: ltr;\n display: block;\n opacity: 1;\n text-align: " + alignment + ";\n z-index: 94034;\n}\n#" + id + ".st-animated {\n " + (st.TRANSITION('opacity')) + "\n}\n#" + id + " .st-left {\n display: inline-block;\n padding-top: " + (st.px(size / 4)) + ";\n padding-right: 6px;\n}\n#" + id + ".st-preview {\n display: none!important;\n opacity: 0!important;\n}\n#" + id + " .st-top {\n padding-bottom: " + (st.px(size / 8)) + ";\n}\n#" + id + " .st-right {\n display: inline-block;\n padding-top: " + (st.px(size / 4)) + ";\n padding-left: 4px;\n}\n#" + id + ".st-hidden {\n opacity: " + (fade_in ? 0 : 1) + ";\n}\n#" + id + " .st-btn {\n " + st.BORDER_BOX + "\n " + (st.TRANSITION(['opacity', 'top'])) + "\n " + (st.BORDER_RADIUS(radius)) + "\n border: " + (color === 'white' ? 'solid 0.5px #ccc' : 'none') + ";\n cursor: pointer;\n display: inline-block;\n height: " + (st.px(size)) + ";\n line-height: " + (st.px(size)) + ";\n margin-right: " + (spacing ? st.px(spacing) : 0) + ";\n padding: 0 " + (st.px(padding)) + ";\n position: relative;\n text-align: center;\n top: 0;\n vertical-align: top;\n white-space: nowrap;\n}\n#" + id + " .st-btn:last-child {\n margin-right: 0;\n}\n#" + id + " .st-btn > svg {\n height: " + (st.px(size / 2)) + ";\n width: " + (st.px(size / 2)) + ";\n position: relative;\n top: " + (st.px(size / 4)) + ";\n vertical-align: top;\n}\n#" + id + " .st-btn > img {\n height: " + (st.px(size / 2)) + ";\n width: " + (st.px(size / 2)) + ";\n position: relative;\n top: " + (st.px(size / 4)) + ";\n vertical-align: top;\n}\n#" + id + " .st-btn > span {\n " + (st.TRANSITION()) + "\n color: #fff;\n display: inline-block;\n font-weight: 500;\n letter-spacing: 0.5px;\n min-width: " + (st.px(30 + Math.floor(size * 15 / 16))) + ";\n opacity: 1;\n padding: 0 6px;\n position: relative;\n vertical-align: top;\n}\n#" + id + ".st-justified {\n display: flex;\n text-align: center;\n}\n#" + id + ".st-justified .st-btn {\n " + st.FLEX + "\n}"; 7225 hover_css = "#" + id + " .st-btn:hover {\n opacity: .8;\n top: -4px;\n}"; 7226 text_color_filter = st.getFilter(text_color); 7227 network_css = ((function () { 7228 var i, len, results; 7229 results = []; 7230 for (i = 0, len = networks.length; i < len; i++) { 7231 network = networks[i]; 7232 results.push("#" + id + " .st-btn[data-network='" + network + "'] {\n background-color: " + ((function () { 7233 switch (color) { 7234 case 'social': 7235 return st.COLORS[network]; 7236 case 'black': 7237 return '#000'; 7238 case 'gray': 7239 return '#eee'; 7240 case 'custom': 7241 return background_color; 7242 case 'white': 7243 return '#fff'; 7244 default: 7245 return '#fff'; 7246 } 7247 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] img {\n filter: " + ((function () { 7248 switch (color) { 7249 case 'black': 7250 return 'invert(0%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 7251 case 'gray': 7252 return 'invert(100%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 7253 case 'custom': 7254 return text_color_filter; 7255 default: 7256 return ''; 7257 } 7258 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] > span {\n color: " + ((function () { 7259 switch (color) { 7260 case 'white': 7261 return st.COLORS[network]; 7262 case 'black': 7263 return '#fff'; 7264 case 'gray': 7265 return '#000'; 7266 case 'custom': 7267 return '#fff'; 7268 case 'social': 7269 return '#fff'; 7270 default: 7271 return '#fff'; 7272 } 7273 })()) + "\n}"); 7274 } 7275 return results; 7276 })()).join('\n'); 7277 css = common_css; 7278 css += hover_css; 7279 css += network_css; 7280 st.css(css); 7281 html = ''; 7282 networks = st.filterInvalidNetworks(networks, Object.keys(DOMAINS)); 7283 if (action_enable && (action != null ? action.length : void 0) > 0 && action_pos !== 'right') { 7284 html += "<div class='st-" + action_pos + "'>\n <span>" + action + "</span>\n</div>"; 7285 } 7286 for (index = i = 0, len = networks.length; i < len; index = ++i) { 7287 network = networks[index]; 7288 class_names = ['st-btn']; 7289 if (index === 0) { 7290 class_names.push('st-first'); 7291 } 7292 if (index === networks.length - 1) { 7293 class_names.push('st-last'); 7294 } 7295 html += "<div class='" + (class_names.join(' ')) + "' data-network='" + network + "'>\n " + (color === 'white' ? st.ICONS_WHITE[network] : st.ICONS[network]) + "\n</div>"; 7296 } 7297 if (action_enable && (action != null ? action.length : void 0) > 0 && action_pos === 'right') { 7298 html += "<div class='st-" + action_pos + "'>\n <span>" + (st.capitalize(action)) + "</span>\n</div>"; 7299 } 7300 $el.innerHTML = html; 7301 $buttons = $el.querySelectorAll('.st-btn'); 7302 resize = function () { 7303 var $button, actual, available, j, k, len1, results; 7304 available = $el.offsetWidth; 7305 actual = function () { 7306 var $button, j, len1, width; 7307 width = action_enable ? 70 : 0; 7308 for (j = 0, len1 = $buttons.length; j < len1; j++) { 7309 $button = $buttons[j]; 7310 if ($button.style.display === 'none') { 7311 continue; 7312 } 7313 if (alignment === 'justified') { 7314 width += 160; 7315 } else { 7316 width += $button.offsetWidth + spacing; 7317 } 7318 } 7319 return width; 7320 }; 7321 for (j = 0, len1 = $buttons.length; j < len1; j++) { 7322 $button = $buttons[j]; 7323 $button.style.display = 'inline-block'; 7324 } 7325 results = []; 7326 for (index = k = $buttons.length - 1; k >= 0; index = k += -1) { 7327 $button = $buttons[index]; 7328 if (actual() > available) { 7329 results.push($button.style.display = 'none'); 7330 } else { 7331 results.push(void 0); 7332 } 7333 } 7334 return results; 7335 }; 7336 st.addEventListener(window, 'resize', resize); 7337 fn = function ($button) { 7338 return st.addEventListener($button, 'click', function () { 7339 var follow_url; 7340 network = $button.getAttribute('data-network'); 7341 follow_url = DOMAINS[network] + (profiles[network] || ''); 7342 if (network === 'youtube' && profiles[network]) { 7343 follow_url += '?sub_confirmation=1'; 7344 } 7345 if (network === 'tumblr' && profiles[network]) { 7346 follow_url = DOMAINS[network].replace('www', profiles[network]); 7347 } 7348 st.follow({ 7349 follow_url: follow_url, 7350 network: network, 7351 url: url || $el.getAttribute('data-url') 7352 }); 7353 return typeof onLoad === "function" ? onLoad() : void 0; 7354 }); 7355 }; 7356 for (j = 0, len1 = $buttons.length; j < len1; j++) { 7357 $button = $buttons[j]; 7358 fn($button); 7359 } 7360 resize(); 7361 if (fade_in) { 7362 st.addClass($el, 'st-animated'); 7363 } 7364 if (fade_in) { 7365 st.removeClass($el, 'st-hidden'); 7366 } 7367 if (typeof onLoad === "function") { 7368 onLoad(); 7369 } 7370 return { 7371 $buttons: $buttons, 7372 $el: $el, 7373 id: id, 7374 resize: resize 7375 }; 7376 }; 7377 7378}).call(this); 7379 7380(function () { 7381 var load, st; 7382 7383 st = window.__sharethis__; 7384 7385 st.loader['inline-reaction-buttons'] = function (config) { 7386 var $el, $els, i, len, results; 7387 if (config == null) { 7388 config = {}; 7389 } 7390 if (!config.enabled) { 7391 return; 7392 } 7393 if (config.id) { 7394 $el = document.getElementById(config.id); 7395 return load($el, config); 7396 } else { 7397 $els = document.querySelectorAll('.sharethis-inline-reaction-buttons'); 7398 results = []; 7399 for (i = 0, len = $els.length; i < len; i++) { 7400 $el = $els[i]; 7401 results.push(load($el, config)); 7402 } 7403 return results; 7404 } 7405 }; 7406 7407 load = function ($el, config) { 7408 var $buttons, alignment, class_names, common_css, css, data_url, fade_in, hover_css, html, i, id, index, item, k, 7409 label_span, language, len, min_count, onLoad, onReact, padding, reaction, reactions, ref, ref1, resize, 7410 selected_reaction, size, url;
7411 alignment = config.alignment, id = config.id, language = config.language, min_count = config.min_count, padding = config.padding, reactions = config.reactions, size = config.size, url = config.url; 7412 fade_in = config.fade_in, onLoad = config.onLoad, onReact = config.onReact; 7413 data_url = $el.getAttribute('data-url'); 7414 if (fade_in == null) { 7415 fade_in = true; 7416 } 7417 if (min_count == null) { 7418 min_count = 0; 7419 } 7420 if (reactions == null) { 7421 reactions = (function () { 7422 var results; 7423 results = []; 7424 for (k in st.REACTIONS) { 7425 results.push(k); 7426 } 7427 return results; 7428 })(); 7429 } 7430 if (padding == null) { 7431 padding = 10; 7432 } 7433 if (language == null) { 7434 language = 'en'; 7435 } 7436 if (size == null) { 7437 size = 48; 7438 } 7439 if (url == null) { 7440 url = data_url || st.href; 7441 } 7442 selected_reaction = st.storage.get("st_reaction_" + url); 7443 if (id == null) { 7444 id = "st-" + (st.uid()); 7445 } 7446 $el.setAttribute('id', id); 7447 st.addClass($el, ["st-inline-reaction-buttons", "st-" + alignment, selected_reaction ? "st-reacted" : void 0, fade_in ? 'st-hidden' : void 0, language ? 'st-has-labels' : void 0, language !== 'en' ? "st-lang-" + language : void 0]); 7448 common_css = "#" + id + " {\n " + st.FONT_FAMILY + "\n " + (st.TRANSITION('opacity')) + "\n direction: ltr;\n display: block;\n opacity: 1;\n text-align: " + alignment + ";\n}\n#" + id + ".st-hidden {\n opacity: " + (fade_in ? 0 : 1) + ";\n}\n#" + id + " .st-btn {\n " + st.BORDER_BOX + "\n " + (st.TRANSITION()) + "\n display: inline-block;\n font-size: " + (st.px(size / 2)) + ";\n line-height: " + (st.px(size / 2)) + ";\n opacity: 1;\n padding: " + (st.px(padding)) + ";\n position: relative;\n text-align: center;\n vertical-align: top;\n white-space: nowrap;\n width: " + (st.px(size + 2 * padding)) + ";\n}\n#" + id + " .st-btn > svg {\n display: block;\n height: " + (st.px(size)) + ";\n margin: auto;\n width: " + (st.px(size)) + ";\n vertical-align: top;\n}\n#" + id + " .st-btn > span {\n " + (st.TRANSITION('font-size')) + ";\n color: #555;\n font-size: 14px;\n font-weight: 400;\n letter-spacing: 0.5px;\n vertical-align: top;\n}\n#" + id + " .st-btn .st-count.st-grow {\n font-size: 18px;\n}\n#" + id + " .st-btn.st-hide-count .st-count {\n opacity: 0;\n}\n#" + id + " .st-btn .st-text {\n display: none;\n font-weight: bold;\n line-height: 12px;\n white-space: normal;\n word-break: break-all;\n}\n#" + id + ".st-justified {\n display: flex;\n text-align: center;\n}\n#" + id + ".st-justified .st-btn {\n " + st.FLEX + "\n}\n#" + id + " .st-btn.st-selected {\n " + (st.TRANSFORM("scale(1.2)")) + "\n}\n#" + id + ".st-reacted .st-btn:not(.st-selected) {\n filter: grayscale(100%);\n}"; 7449 hover_css = "#" + id + ":not(.st-reacted) .st-btn:hover {\n " + (st.TRANSFORM("scale(1.2)")) + "\n cursor: pointer;\n}\n#" + id + ":not(.st-reacted) .st-btn:active {\n " + (st.TRANSFORM("scale(1.4)")) + "\n}\n#" + id + ".st-has-labels:not(.st-reacted) .st-btn:hover .st-count {\n display: none;\n}\n#" + id + ".st-has-labels:not(.st-reacted) .st-btn:hover .st-text {\n display: block;\n}\n#" + id + ".st-has-labels:not(.st-reacted) .st-btn:hover span {\n font-size: 10px;\n}"; 7450 css = common_css; 7451 if (!st.mobile) { 7452 css += hover_css; 7453 } 7454 st.css(css); 7455 html = ''; 7456 for (index = i = 0, len = reactions.length; i < len; index = ++i) { 7457 reaction = reactions[index]; 7458 if (!st.REACTIONS[reaction]) { 7459 continue; 7460 } 7461 item = st.REACTIONS[reaction]; 7462 class_names = ['st-btn']; 7463 if (reaction === selected_reaction) { 7464 class_names.push('st-selected'); 7465 } 7466 if (index === 0) { 7467 class_names.push('st-first'); 7468 } 7469 if (index === reactions.length - 1) { 7470 class_names.push('st-last'); 7471 } 7472 if (language) { 7473 label_span = "<span class=\"st-text\">\n " + ((ref = st.i18n[item.label]) != null ? (ref1 = ref[language]) != null ? ref1.toUpperCase() : void 0 : void 0) + "\n</span>"; 7474 } else { 7475 label_span = ''; 7476 } 7477 html += "<div class='" + (class_names.join(' ')) + "' data-reaction='" + reaction + "'>
7477\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 64 64\"\n enable-background=\"new 0 0 64 64\"\n >\n " + item.icon + "\n </svg>\n <span class=\"st-count\"></span>\n " + label_span + "\n</div>"; 7478 } 7479 $el.innerHTML = html; 7480 $buttons = $el.querySelectorAll('.st-btn'); 7481 resize = function () { 7482 var $button, actual, available, j, len1, results, shrink_by; 7483 available = $el.offsetWidth; 7484 actual = function () { 7485 var $button, j, len1, width; 7486 width = 0; 7487 for (j = 0, len1 = $buttons.length; j < len1; j++) { 7488 $button = $buttons[j]; 7489 width += size + 2 * padding; 7490 } 7491 return width; 7492 }; 7493 if (actual() > available) { 7494 shrink_by = available / actual(); 7495 results = []; 7496 for (j = 0, len1 = $buttons.length; j < len1; j++) { 7497 $button = $buttons[j]; 7498 $button.style.padding = st.px(padding * shrink_by); 7499 $button.style.width = st.px((size + 2 * padding) * shrink_by); 7500 $button.querySelector('svg').style.width = st.px(size * shrink_by); 7501 results.push($button.querySelector('svg').style.height = st.px(size * shrink_by)); 7502 } 7503 return results; 7504 } 7505 }; 7506 return st.loadCounts({ 7507 url: url 7508 }, function (counts) { 7509 var $button, fn, j, l, label, len1, len2, ref2, ref3, value; 7510 for (j = 0, len1 = $buttons.length; j < len1; j++) { 7511 $button = $buttons[j]; 7512 reaction = $button.getAttribute('data-reaction'); 7513 ref2 = counts[reaction] || {}, label = ref2.label, value = ref2.value; 7514 if ((ref3 = $button.querySelector('.st-count')) != null) { 7515 ref3.innerHTML = label; 7516 } 7517 if (label && value >= min_count) { 7518 st.removeClass($button, 'st-hide-count'); 7519 } else { 7520 st.addClass($button, 'st-hide-count'); 7521 } 7522 } 7523 resize(); 7524 if (fade_in) { 7525 st.removeClass($el, 'st-hidden'); 7526 } 7527 st.addEventListener(window, 'resize', resize); 7528 fn = function ($button) { 7529 return st.addEventListener($button, 'click', function () { 7530 if (st.hasClass($el, 'st-reacted')) { 7531 return; 7532 } 7533 reaction = $button.getAttribute('data-reaction'); 7534 st.addClass($el, 'st-reacted'); 7535 st.addClass($button, 'st-selected'); 7536 st.react({ 7537 reaction: reaction, 7538 url: url 7539 }); 7540 st.inc($button.querySelector('.st-count')); 7541 st.storage.set("st_reaction_" + url, reaction); 7542 return typeof onReact === "function" ? onReact(reaction) : void 0; 7543 }); 7544 }; 7545 for (l = 0, len2 = $buttons.length; l < len2; l++) { 7546 $button = $buttons[l]; 7547 fn($button); 7548 } 7549 return typeof onLoad === "function" ? onLoad() : void 0; 7550 }); 7551 }; 7552 7553}).call(this); 7554 7555(function () { 7556 var load, st; 7557 7558 st = window.__sharethis__; 7559 7560 st.loader['inline-share-buttons'] = function (config) { 7561 var $el, $els, i, id, len, loadFn, ref, results; 7562 if (config == null) { 7563 config = {}; 7564 } 7565 if (!config.enabled) { 7566 return; 7567 } 7568 loadFn = load; 7569 if (config.is_ssb) { 7570 loadFn = st.loadSsb; 7571 } 7572 if (config.id) { 7573 $el = document.getElementById(config.id); 7574 if ($el) { 7575 return loadFn($el, config, load); 7576 } 7577 } else if (config.container) { 7578 if (typeof config.container === 'string') { 7579 config.container = document.getElementById(config.container); 7580 } 7581 ref = st.newElement(config.container), $el = ref.$el, id = ref.id; 7582 config.id = id; 7583 if ($el) { 7584 return loadFn($el, config, load); 7585 } 7586 } else { 7587 $els = document.querySelectorAll('.sharethis-inline-share-buttons'); 7588 results = []; 7589 for (i = 0, len = $els.length; i < len; i++) { 7590 $el = $els[i]; 7591 results.push(loadFn($el, config, load)); 7592 } 7593 return results; 7594 } 7595 }; 7596 7597 load = function ($el, config) { 7598 var $button, $buttons, $total, $total_label, alignment, alignment_opposite, background_color, class_names, color, 7599 common_css, css, description, fade_in, fn, font_size, hover_css, html, i, id, image, index, j, k, label, 7600 label_span, labels, language, len, len1, len2, message, min_count, mobile_css, modify, network, network_css, 7601 networks, onLoad, padding, preview, radius, ref, resize, show_mobile_buttons, show_total, size, spacing, subject, 7602 text_color, text_color_filter, title, url, use_native_counts, username; 7603 color = config.color, fade_in = config.fade_in, onLoad = config.onLoad, alignment = config.alignment, font_size = config.font_size, language = config.language, padding = config.padding, radius = config.radius, size = config.size, spacing = config.spacing, id = config.id, labels = config.labels, min_count = config.min_count, networks = config.networks, show_total = config.show_total, use_native_counts = config.use_native_counts, show_mobile_buttons = config.show_mobile_buttons, url = config.url, title = config.title, image = config.image, description = config.description, username = config.username, message = config.message, subject = config.subject, text_color = config.text_color, background_color = config.background_color, preview = config.preview; 7604 alignment_opposite = alignment === 'left' ? 'right' : 'left'; 7605 if (alignment == null) { 7606 alignment = 'left'; 7607 } 7608 if (background_color == null) { 7609 background_color = '#B581A3'; 7610 } 7611 if (color == null) { 7612 color = 'social'; 7613 } 7614 if (fade_in == null) { 7615 fade_in = true; 7616 } 7617 if (font_size == null) { 7618 font_size = 12; 7619 } 7620 if (text_color == null) { 7621 text_color = '#fff'; 7622 } 7623 if (language == null) { 7624 language = 'en'; 7625 } 7626 if (min_count == null) { 7627 min_count = 0; 7628 } 7629 if (networks == null) { 7630 networks = ['facebook', 'twitter', 'pinterest', 'email', 'sharethis']; 7631 } 7632 if (padding == null) { 7633 padding = 10; 7634 } 7635 if (radius == null) { 7636 radius = 0; 7637 } 7638 if (show_mobile_buttons == null) { 7639 show_mobile_buttons = st.mobile; 7640 } 7641 if (size == null) { 7642 size = 40; 7643 } 7644 if (spacing == null) { 7645 spacing = 8; 7646 } 7647 if (subject == null) { 7648 subject = st.i18n['subjects'][language]; 7649 } 7650 if (use_native_counts == null) { 7651 use_native_counts = true; 7652 } 7653 if (preview == null) { 7654 preview = false;
7655 } 7656 if ((typeof Shopify !== "undefined" && Shopify !== null) && (Shopify.designMode != null)) { 7657 preview = false; 7658 } 7659 if (id == null) { 7660 id = "st-" + (st.uid()); 7661 } 7662 $el.setAttribute('id', id); 7663 st.addClass($el, ["st-" + alignment, language !== 'en' ? "st-lang-" + language : void 0, labels === 'counts' || labels === 'cta' ? 'st-has-labels' : void 0, fade_in ? 'st-hidden' : void 0, true === preview ? 'st-preview' : void 0, 'st-inline-share-buttons']); 7664 common_css = "#" + id + " {\n " + st.FONT_FAMILY + ";\n direction: ltr;\n display: block;\n opacity: 1;\n text-align: " + alignment + ";\n z-index: 94034;\n}\n#" + id + ".st-animated {\n " + (st.TRANSITION('opacity')) + "\n}\n#" + id + ".st-hidden {\n opacity: " + (fade_in ? 0 : 1) + ";\n}\n\n#" + id + ".st-preview {\n display: none!important;\n opacity: 0!important;\n}\n#" + id + ".st-hide {\n display: none;\n}\n#" + id + " .st-btn {\n " + st.BORDER_BOX + "\n " + (st.TRANSITION(['opacity', 'top'])) + "\n " + (st.BORDER_RADIUS(radius)) + "\n border: " + (color === 'white' ? 'solid 1px #ccc' : 'none') + ";\n cursor: pointer;\n display: inline-block;\n font-size: " + (st.px(font_size)) + ";\n height: " + (st.px(size)) + ";\n line-height: " + (st.px(size)) + ";\n margin-right: " + (spacing ? st.px(spacing) : 0) + ";\n padding: 0 " + (st.px(padding)) + ";\n position: relative;\n text-align: center;\n top: 0;\n vertical-align: top;\n white-space: nowrap;\n}\n#" + id + " .st-btn:last-child {\n margin-right: 0;\n}\n#" + id + " .st-btn > svg {\n height: " + (st.px(size / 2)) + ";\n width: " + (st.px(size / 2)) + ";\n position: relative;\n top: " + (st.px(size / 4)) + ";\n vertical-align: top;\n}\n#" + id + " .st-btn > img {\n display: inline-block;\n height: " + (st.px(size / 2)) + ";\n width: " + (st.px(size / 2)) + ";\n position: relative;\n top: " + (st.px(size / 4)) + ";\n vertical-align: top;\n}\n#" + id + " .st-btn > span {\n " + (st.TRANSITION()) + "\n color: #fff;\n display: inline-block;\n font-weight: 500;\n letter-spacing: 0.5px;\n min-width: " + (st.px(30 + Math.floor(size * 15 / 16))) + ";\n opacity: 1;\n padding: 0 6px;\n position: relative;\n vertical-align: top;\n}\n#" + id + ".st-has-labels .st-btn {\n min-width: " + (st.px(60 + Math.floor(size * 15 / 8))) + ";\n}\n#" + id + ".st-has-labels .st-btn.st-remove-label {\n min-width: 50px;\n}\n#" + id + ".st-has-labels .st-btn.st-remove-label > span {\n display: none;\n}\n#" + id + ".st-has-labels .st-btn.st-hide-label > span {\n display: none;\n}\n#" + id + " .st-total {\n color: #555;\n display: inline-block;\n font-weight: 500;\n line-height: " + (st.px(.375 * size)) + ";\n margin-right: 0;\n max-width: 80px;\n padding: 4px 8px;\n text-align: center;\n}\n#" + id + " .st-total.st-hidden {\n display: none;\n}\n#" + id + " .st-total > span {\n font-size: " + (st.px(.5 * size)) + ";\n line-height: " + (st.px(.55 * size)) + ";\n display: block;\n padding: 0;\n}\n#" + id + " .st-total > span.st-shares {\n font-size: " + (st.px(.3 * size)) + ";\n line-height: " + (st.px(.3 * size)) + ";\n}\n#" + id + ".st-justified {\n display: flex;\n text-align: center;\n}\n#" + id + ".st-justified .st-btn {\n " + st.FLEX + "\n}"; 7665 hover_css = "#" + id + " .st-btn:hover {\n opacity: .8;\n top: -4px;\n}"; 7666 mobile_css = "#" + id + " {\n bottom: 0;"; 7667 text_color_filter = st.getFilter(text_color); 7668 network_css = ((function () { 7669 var i, len, results; 7670 results = []; 7671 for (i = 0, len = networks.length; i < len; i++) { 7672 network = networks[i]; 7673 results.push("#" + id + " .st-btn[data-network='" + network + "'] {\n background-color: " + ((function () { 7674 switch (color) { 7675 case 'social': 7676 return st.COLORS[network]; 7677 case 'black': 7678 return '#000'; 7679 case 'gray': 7680 return '#eee'; 7681 case 'custom': 7682 return background_color; 7683 case 'white': 7684 return '#fff'; 7685 default: 7686 return '#fff'; 7687 } 7688 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] img {\n filter: " + ((function () { 7689 switch (color) { 7690 case 'black': 7691 return 'invert(0%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 7692 case 'gray': 7693 return 'invert(100%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 7694 case 'custom': 7695 return text_color_filter; 7696 default: 7697 return ''; 7698 } 7699 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] > span {\n color: " + ((function () { 7700 switch (color) { 7701 case 'white': 7702 return st.COLORS[network]; 7703 case 'black': 7704 return '#fff'; 7705 case 'gray': 7706 return '#000'; 7707 case 'custom': 7708 return text_color; 7709 case 'social': 7710 return '#fff'; 7711 default: 7712 return '#fff'; 7713 } 7714 })()) + "\n}"); 7715 } 7716 return results; 7717 })()).join('\n'); 7718 network_css += "#" + id + " .st-btn[data-network='snapchat'] > span {\n color: " + (color === 'black' ? '#fff' : '#333') + "};\n}"; 7719 css = common_css; 7720 if (!st.mobile) { 7721 css += hover_css; 7722 } 7723 css += network_css; 7724 st.css(css); 7725 html = ''; 7726 networks = st.filterInvalidNetworks(networks); 7727 if (!show_mobile_buttons) { 7728 ref = ['sms']; 7729 for (i = 0, len = ref.length; i < len; i++) { 7730 network = ref[i]; 7731 index = networks.indexOf(network); 7732 if (index > -1) { 7733 networks.splice(index, 1); 7734 } 7735 } 7736 } 7737 if (show_total) { 7738 html += "<div class='st-total st-hidden'>\n <span class='st-label'></span>\n <span class='st-shares'>\n " + (st.capitalize(st.i18n['shares'][language])) + "\n </span>\n</div>"; 7739 } 7740 for (index = j = 0, len1 = networks.length; j < len1; index = ++j) { 7741 network = networks[index]; 7742 class_names = ['st-btn']; 7743 if (index === 0) { 7744 class_names.push('st-first'); 7745 } 7746 if (index === networks.length - 1) { 7747 class_names.push('st-last'); 7748 } 7749 label = st.getShareLabel(network, language); 7750 if (labels !== 'cta') { 7751 label = ''; 7752 } 7753 label_span = "<span class='st-label'>" + label + "</span>"; 7754 html += "<div class='" + (class_names.join(' ')) + "' data-network='" + network + "'>\n " + (color === 'white' ? st.ICONS_WHITE[network] : st.ICONS[network]) + "\n " + (labels === 'counts' || labels === 'cta' ? label_span : '') + "\n</div>"; 7755 } 7756 $el.innerHTML = html; 7757 $buttons = $el.querySelectorAll('.st-btn'); 7758 $total = $el.querySelector('.st-total'); 7759 $total_label = $el.querySelector('.st-total .st-label'); 7760 modify = function (key, value) { 7761 if (key === 'url') { 7762 url = value; 7763 } 7764 if (key === 'image') { 7765 return image = value; 7766 } 7767 }; 7768 resize = function () { 7769 var $button, actual, available, k, l, len2, m, results; 7770 available = $el.offsetWidth; 7771 actual = function () { 7772 var $button, k, len2, width; 7773 width = 0; 7774 if (show_total) { 7775 width += $total.offsetWidth; 7776 } 7777 for (k = 0, len2 = $buttons.length; k < len2; k++) { 7778 $button = $buttons[k]; 7779 if ($button.style.display === 'none') { 7780 continue; 7781 } 7782 if (alignment === 'justified') { 7783 if (st.hasClass($button, 'st-remove-label')) { 7784 width += 65; 7785 } else { 7786 width += 160; 7787 } 7788 } else { 7789 width += $button.offsetWidth + spacing; 7790 } 7791 } 7792 return width; 7793 }; 7794 for (k = 0, len2 = $buttons.length; k < len2; k++) { 7795 $button = $buttons[k]; 7796 $button.style.display = 'inline-block'; 7797 st.removeClass($button, 'st-remove-label'); 7798 } 7799 for (index = l = $buttons.length - 1; l >= 0; index = l += -1) { 7800 $button = $buttons[index]; 7801 if (actual() > available) { 7802 st.addClass($button, 'st-remove-label'); 7803 } 7804 } 7805 results = []; 7806 for (index = m = $buttons.length - 1; m >= 0; index = m += -1) { 7807 $button = $buttons[index]; 7808 if ($button.getAttribute('data-network') === 'sharethis') { 7809 continue; 7810 } 7811 if (actual() > available) { 7812 results.push($button.style.display = 'none'); 7813 } else { 7814 results.push(void 0); 7815 } 7816 } 7817 return results; 7818 }; 7819 st.addEventListener(window, 'resize', resize); 7820 fn = function ($button) { 7821 return st.addEventListener($button, 'click', function () { 7822 return st.share({ 7823 channel_is_ssb: config.is_ssb, 7824 channels_displayed: JSON.stringify(config.networks), 7825 count_url: $el.getAttribute('data-count-url'), 7826 description: description || $el.getAttribute('data-description'), 7827 image: image || $el.getAttribute('data-image'), 7828 message: message || ($el != null ? $el.getAttribute('data-message') : void 0), 7829 network: $button.getAttribute('data-network'), 7830 share_url: $el.getAttribute('data-share-url'), 7831 short_url: $el.getAttribute('data-short-url'), 7832 subject: subject || $el.getAttribute('data-email-subject'), 7833 title: title || ($el != null ? $el.getAttribute('data-title') : void 0), 7834 url: url || $el.getAttribute('data-url'), 7835 username: username || $el.getAttribute('data-username') 7836 }); 7837 }); 7838 }; 7839 for (k = 0, len2 = $buttons.length; k < len2; k++) { 7840 $button = $buttons[k]; 7841 fn($button); 7842 } 7843 if (show_total || labels === 'counts') { 7844 st.loadCounts({ 7845 url: url || ($el.getAttribute('data-count-url')) || ($el.getAttribute('data-url')) || st.href 7846 }, function (counts) { 7847 var l, len3, ref1, ref2, ref3, ref4, value; 7848 if (show_total) { 7849 if (((ref1 = counts['total']) != null ? ref1.value : void 0) > min_count) { 7850 $total_label.innerHTML = ((ref2 = counts['total']) != null ? ref2.label : void 0) || ''; 7851 st.removeClass($total, 'st-hidden'); 7852 } else { 7853 st.addClass($total, 'st-hidden'); 7854 } 7855 } 7856 if (labels === 'counts') { 7857 for (l = 0, len3 = $buttons.length; l < len3; l++) { 7858 $button = $buttons[l]; 7859 network = $button.getAttribute('data-network'); 7860 ref3 = counts[network] || {}, label = ref3.label, value = ref3.value; 7861 if (label && value > min_count) { 7862 if ((ref4 = $button.querySelector('.st-label')) != null) { 7863 ref4.innerHTML = label; 7864 } 7865 st.removeClass($button, 'st-hide-label'); 7866 } else { 7867 st.addClass($button, 'st-hide-label'); 7868 } 7869 } 7870 } 7871 resize(); 7872 if (fade_in) { 7873 st.addClass($el, 'st-animated'); 7874 } 7875 if (fade_in) { 7876 st.removeClass($el, 'st-hidden'); 7877 } 7878 return typeof onLoad === "function" ? onLoad() : void 0; 7879 }); 7880 } else { 7881 resize(); 7882 if (fade_in) { 7883 st.addClass($el, 'st-animated'); 7884 } 7885 if (fade_in) { 7886 st.removeClass($el, 'st-hidden'); 7887 } 7888 if (typeof onLoad === "function") { 7889 onLoad(); 7890 } 7891 } 7892 return { 7893 $buttons: $buttons, 7894 $el: $el, 7895 id: id, 7896 modify: modify, 7897 resize: resize 7898 }; 7899 }; 7900 7901}).call(this); 7902 7903 7904(function () { 7905 var st; 7906 7907 st = window.__sharethis__; 7908
7909 st.loader['powr-social-feed'] = function (config) { 7910 if (config == null) { 7911 config = {}; 7912 } 7913 if (!config.enabled) { 7914 return; 7915 } 7916 return st.js("https://platform-api.sharethis.com/powr.js?platform=sharethis"); 7917 }; 7918 7919}).call(this); 7920 7921(function () { 7922 var st; 7923 7924 st = window.__sharethis__; 7925 7926 st.loader['powr-form-builder'] = function (config) { 7927 if (config == null) { 7928 config = {}; 7929 } 7930 if (!config.enabled) { 7931 return; 7932 } 7933 return st.js("https://platform-api.sharethis.com/powr.js?platform=sharethis"); 7934 }; 7935 7936}).call(this); 7937 7938(function () { 7939 var st; 7940 7941 st = window.__sharethis__; 7942 7943 st.loader['powr-popup'] = function (config) { 7944 if (config == null) { 7945 config = {}; 7946 } 7947 if (!config.enabled) { 7948 return; 7949 } 7950 return st.js("https://platform-api.sharethis.com/powr.js?platform=sharethis"); 7951 }; 7952 7953}).call(this); 7954 7955 7956/* 7957 * Loader for privacy-policy-generator 7958 * To update, please refer to `src/functions/privacy-policy-generator/README.md` 7959 */ 7960 7961(function () { 7962 var st; 7963 7964 st = window.__sharethis__; 7965 7966 st.loader['privacy-policy-generator'] = function (config) { 7967 if (config == null) { 7968 config = {}; 7969 } 7970 if (!config.enabled) { 7971 return; 7972 } 7973 return st.js("https://platform-api.sharethis.com/ppg.js"); 7974 }; 7975 7976}).call(this); 7977 7978 7979(function () { 7980 var load, st, 7981 indexOf = [].indexOf || function (item) { 7982 for (var i = 0, l = this.length; i < l; i++) { 7983 if (i in this && this[i] === item) return i; 7984 } 7985 return -1; 7986 }; 7987 7988 st = window.__sharethis__; 7989 7990 st.loader['sticky-share-buttons'] = function (config) { 7991 var $el, $els, i, id, len, loadFn, ref, ref1, results; 7992 if (config == null) { 7993 config = {}; 7994 } 7995 if (!config.enabled) { 7996 return; 7997 } 7998 loadFn = load; 7999 if (config.is_ssb) { 8000 loadFn = st.loadSsb; 8001 } 8002 if (config.id) { 8003 $el = document.getElementById(config.id); 8004 if ($el) { 8005 return loadFn($el, config, load); 8006 } 8007 } else if (config.container) { 8008 if (typeof config.container === 'string') { 8009 config.container = document.getElementById(config.container); 8010 } 8011 ref = st.newElement(config.container), $el = ref.$el, id = ref.id; 8012 config.id = id; 8013 if ($el) { 8014 return loadFn($el, config, load); 8015 } 8016 } else { 8017 $els = document.querySelectorAll('.sharethis-sticky-share-buttons'); 8018 if ($els.length === 0) { 8019 ref1 = st.newElement(), $el = ref1.$el, id = ref1.id; 8020 return loadFn($el, config, load); 8021 } else { 8022 results = []; 8023 for (i = 0, len = $els.length; i < len; i++) { 8024 $el = $els[i]; 8025 results.push(loadFn($el, config, load)); 8026 } 8027 return results; 8028 } 8029 } 8030 }; 8031 8032 load = function ($el, config) { 8033 var $button, $buttons, $toggle, $total, $total_label, alignment, alignment_opposite, background_color, class_names, 8034 color, common_css, container, css, description, fn, font_size, hide_desktop, hover_css, html, i, id, image, index, 8035 j, k, label, label_span, labels, language, len, len1, len2, message, min_count, mobile_breakpoint, mobile_css, 8036 network, network_css, networks, onLoad, padding, preview, radius, ref, resize, responsive_css, scrollbar_width, 8037 show_mobile, show_mobile_buttons, show_toggle, show_total, size, slide_in, spacing, subject, text_color, 8038 text_color_filter, title, top, url, use_native_counts, username; 8039 onLoad = config.onLoad, alignment = config.alignment, color = config.color, container = config.container, font_size = config.font_size, hide_desktop = config.hide_desktop, padding = config.padding, radius = config.radius, size = config.size, spacing = config.spacing, id = config.id, labels = config.labels, language = config.language, min_count = config.min_count, networks = config.networks, show_toggle = config.show_toggle, show_total = config.show_total, mobile_breakpoint = config.mobile_breakpoint, show_mobile = config.show_mobile, slide_in = config.slide_in, top = config.top, use_native_counts = config.use_native_counts, show_mobile_buttons = config.show_mobile_buttons, url = config.url, title = config.title, image = config.image, description = config.description, username = config.username, message = config.message, subject = config.subject, text_color = config.text_color, background_color = config.background_color, preview = config.preview; 8040 alignment_opposite = alignment === 'left' ? 'right' : 'left'; 8041 if (alignment == null) { 8042 alignment = 'left'; 8043 } 8044 if (background_color == null) { 8045 background_color = '#B581A3'; 8046 } 8047 if (color == null) { 8048 color = 'social'; 8049 } 8050 if (hide_desktop == null) { 8051 hide_desktop = false;
8052 } 8053 if (text_color == null) { 8054 text_color = '#fff'; 8055 } 8056 if (labels == null) { 8057 labels = 'counts'; 8058 } 8059 if (language == null) { 8060 language = 'en'; 8061 } 8062 if (min_count == null) { 8063 min_count = 0; 8064 } 8065 if (mobile_breakpoint == null) { 8066 mobile_breakpoint = 0; 8067 } 8068 if (networks == null) { 8069 networks = ['facebook', 'twitter', 'pinterest', 'email', 'sharethis', 'sms']; 8070 } 8071 if (padding == null) { 8072 padding = 12; 8073 } 8074 if (radius == null) { 8075 radius = 0; 8076 } 8077 if (show_mobile == null) { 8078 show_mobile = false; 8079 } 8080 if (show_mobile_buttons == null) { 8081 show_mobile_buttons = st.mobile; 8082 } 8083 if (show_toggle == null) { 8084 show_toggle = true; 8085 } 8086 if (show_total == null) { 8087 show_total = false; 8088 } 8089 if (size == null) { 8090 size = 48; 8091 } 8092 if (slide_in == null) { 8093 slide_in = true; 8094 } 8095 if (subject == null) { 8096 subject = st.i18n['subjects'][language]; 8097 } 8098 if (top == null) { 8099 top = 100; 8100 } 8101 if (use_native_counts == null) { 8102 use_native_counts = true; 8103 } 8104 if (preview == null) { 8105 preview = false; 8106 } 8107 if ((typeof Shopify !== "undefined" && Shopify !== null) && (Shopify.designMode != null)) { 8108 preview = false; 8109 } 8110 if (id == null) { 8111 id = "st-" + (st.uid()); 8112 } 8113 $el.setAttribute('id', id); 8114 scrollbar_width = alignment === 'right' ? st.getScrollbarWidth() : 0; 8115 scrollbar_width = 0; 8116 st.addClass($el, ['st-sticky-share-buttons', "st-" + alignment, show_toggle ? 'st-toggleable' : void 0, labels === 'counts' || labels === 'cta' ? 'st-has-labels' : void 0, show_total ? 'st-show-total' : void 0, slide_in ? 'st-hidden' : void 0, language !== 'en' ? "st-lang-" + language : void 0, true === preview ? 'st-preview' : void 0]); 8117 common_css = "#" + id + " {\n " + st.FONT_FAMILY + ";\n " + (st.TRANSITION()) + "\n backface-visibility: hidden;\n display: " + (!hide_desktop ? 'block' : 'none') + ";\n position: fixed;\n opacity: 1;\n text-align: left;\n top: " + (st.px(top)) + ";\n z-index: 94034;\n}\n#" + id + ".st-" + alignment + " {\n " + alignment + ": " + (st.px(scrollbar_width)) + ";\n}\n#" + id + ".st-hidden.st-" + alignment + " {\n " + alignment + ": -" + (st.px(size)) + ";\n}\n#" + id + ".st-hidden {\n width: " + (st.px(2 * size)) + ";\n}\n#" + id + ".st-preview {\n display: none!important;\n opacity: 0!important;\n}\n#" + id + " > div {\n clear: " + alignment + ";\n float: " + alignment + ";\n}\n#" + id + " .st-btn {\n " + st.BORDER_BOX + "\n " + (st.TRANSITION()) + "\n border: " + (color === 'white' ? 'solid 0.5px #ccc' : 'none') + ";\n cursor: pointer;\n display: inline-block;\n font-size: " + (st.px(font_size)) + ";\n height: " + (st.px(size)) + ";\n line-height: " + (st.px(size / 2)) + ";\n margin-bottom: " + (spacing ? st.px(spacing) : 0) + ";\n opacity: 1;\n overflow: hidden;\n padding: " + (st.px(padding)) + ";\n position: relative;\n text-align: left;\n top: 0;\n vertical-align: top;\n white-space: nowrap;\n width: " + (st.px(size)) + ";\n}\n#" + id + " .st-btn.st-first {\n border-top: " + (color === 'white' ? 'solid 1px #ccc' : 'none') + ";\n border-top-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n}\n#" + id + " .st-btn.st-last {\n border-bottom: " + (color === 'white' ? 'solid 1px #ccc' : 'none') + ";\n border-bottom-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n}\n#" + id + " .st-btn > svg {\n " + (st.TRANSITION()) + "\n height: " + (st.px(size / 2)) + ";\n margin-left: 0;\n vertical-align: top;\n width: " + (st.px(size / 2)) + ";\n}\n#" + id + " .st-btn > img {\n " + (st.TRANSITION()) + "\n height: " + (st.px(size / 2)) + ";\n margin-left: 0;\n vertical-align: top;\n width: " + (st.px(size / 2)) + ";\n}\n#" + id + " .st-btn > span {\n " + (st.TRANSITION()) + "\n color: #fff;\n display: inline-block;\n font-weight: 500;\n left: -35px;\n letter-spacing: 0.5px;\n opacity: 0;\n padding: 0 6px;\n position: relative;\n vertical-align: top;\n filter: alpha(opacity=0);\n}\n#" + id + " .st-btn.st-hide-label > span {\n display: none !important;\n}\n#" + id + " .st-total {\n " + (st.TRANSITION()) + "\n background: #fff;
8117\n color: #555;\n display: inline-block;\n font-weight: 500;\n line-height: " + (st.px(.375 * size)) + ";\n margin-right: 0;\n min-height: 34px;\n max-width: 80px;\n opacity: 1;\n padding: 4px 0;\n text-align: center;\n width: " + (st.px(size)) + ";\n}\n#" + id + " .st-total.st-hidden {\n display: none;\n}\n#" + id + " .st-total > span {\n display: block;\n font-size: " + (st.px(.38 * size)) + ";\n line-height: " + (st.px(.45 * size)) + ";\n padding: 0;\n}\n#" + id + " .st-total > span.st-shares {\n font-size: " + (st.px(.23 * size)) + ";\n line-height: " + (st.px(.23 * size)) + ";\n}\n#" + id + " .st-toggle {\n " + alignment + ": -" + (st.px(size + scrollbar_width)) + ";\n " + (st.TRANSITION()) + "\n background: #ccc;\n border-bottom-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n color: white;\n cursor: pointer;\n font-size: " + (st.px(.5 * size)) + ";\n line-height: " + (st.px(.5 * size)) + ";\n position: relative;\n text-align: center;\n width: " + (st.px(size)) + ";\n}\n#" + id + ".st-hidden .st-toggle {\n border-top-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n}\n#" + id + ".st-" + alignment + " .st-toggle .st-" + alignment + " {\n display: inline-block;\n}\n#" + id + ".st-" + alignment + ".st-hidden .st-toggle .st-" + alignment + " {\n display: none;\n}\n#" + id + ".st-" + alignment + " .st-toggle .st-" + alignment_opposite + " {\n display: none;\n}\n#" + id + ".st-" + alignment + ".st-hidden .st-toggle .st-" + alignment_opposite + " {\n display: inline-block;\n}"; 8118 mobile_css = "#" + id + " {\n bottom: 0;\n display: " + (show_mobile ? 'flex' : 'none') + ";\n left: 0;\n right: 0;\n top: auto;\n width: 100%;\n}\n#" + id + ".st-hidden {\n bottom: -" + (st.px(size)) + ";\n width: 100%;\n}\n#" + id + ".st-hidden.st-left {\n left: 0;\n}\n#" + id + ".st-hidden.st-right {\n right: 0;\n}\n#" + id + " > div {\n -moz-flex: 1;\n -ms-flex: 1;\n -webkit-flex: 1;\n clear: none;\n flex: 1;\n float: none;\n}\n#" + id + " .st-total {\n background: #fff;\n padding: 6px 8px;\n}\n#" + id + " .st-btn {\n " + (st.BORDER_RADIUS('0 !important')) + "\n text-align: center;\n width: auto;\n}\n#" + id + " .st-btn > span {\n display: none;\n}\n#" + id + " .st-toggle {\n display: none;\n}"; 8119 if (show_mobile && !document.body.style.paddingBottom) { 8120 mobile_css += "body { padding-bottom: 48px; }"; 8121 } 8122 responsive_css = "@media (max-width: " + (st.px(mobile_breakpoint)) + ") {\n " + mobile_css + "\n}";
8123 hover_css = "#" + id + ":hover .st-toggle {\n " + alignment + ": 0;\n}\n#" + id + ".st-hidden:hover .st-toggle {\n " + alignment + ": " + (st.px(size)) + ";\n}\n#" + id + ".st-toggleable:hover .st-btn.st-last {\n border-bottom-" + alignment_opposite + "-radius: 0;\n}\n#" + id + ".st-toggleable:hover .st-btn.st-last:hover {\n border-bottom-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n}\n#" + id + " .st-btn:hover {\n border-bottom-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n border-top-" + alignment_opposite + "-radius: " + (st.px(radius)) + ";\n}\n#" + id + ".st-has-labels .st-btn:hover {\n width: " + (st.px(st.i18n['sticky-width'][language])) + ";\n}\n#" + id + ":not(.st-has-labels) .st-btn:hover {\n width: " + (st.px(1.3 * size)) + ";\n}\n#" + id + " .st-btn.st-hide-label:hover {\n width: " + (st.px(1.3 * size)) + ";\n}\n#" + id + " .st-btn:hover > svg {\n margin-left: 5px;\n}\n#" + id + " .st-btn:hover > img {\n margin-left: 5px;\n}\n#" + id + " .st-btn:hover > span {\n opacity: 1;\n display: inline-block;\n left: 0;\n filter: alpha(opacity=100);\n}\n@media (max-width: " + (st.px(mobile_breakpoint)) + ") {\n #" + id + " .st-btn:hover > svg {\n margin-left: 0;\n }\n #" + id + " .st-btn:hover > span {\n display: none;\n }\n}"; 8124 text_color_filter = st.getFilter(text_color); 8125 network_css = ((function () { 8126 var i, len, results; 8127 results = []; 8128 for (i = 0, len = networks.length; i < len; i++) { 8129 network = networks[i]; 8130 results.push("#" + id + " .st-btn[data-network='" + network + "'] {\n background-color: " + ((function () { 8131 switch (color) { 8132 case 'social': 8133 return st.COLORS[network]; 8134 case 'black': 8135 return '#000'; 8136 case 'gray': 8137 return '#eee'; 8138 case 'custom': 8139 return background_color; 8140 case 'white': 8141 return '#fff'; 8142 default: 8143 return '#fff'; 8144 } 8145 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] img {\n filter: " + ((function () { 8146 switch (color) { 8147 case 'black': 8148 return 'invert(0%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 8149 case 'gray': 8150 return 'invert(100%) sepia(100%) saturate(22%) hue-rotate(45deg) brightness(107%) contrast(105%)'; 8151 case 'custom': 8152 return text_color_filter; 8153 default: 8154 return ''; 8155 } 8156 })()) + "\n}\n#" + id + " .st-btn[data-network='" + network + "'] > span {\n color: " + ((function () { 8157 switch (color) { 8158 case 'white': 8159 return st.COLORS[network]; 8160 case 'black': 8161 return '#fff'; 8162 case 'gray': 8163 return '#000'; 8164 case 'custom': 8165 return text_color; 8166 case 'social': 8167 return '#fff'; 8168 default: 8169 return '#fff'; 8170 } 8171 })()) + "\n}"); 8172 } 8173 return results; 8174 })()).join('\n'); 8175 network_css += "#" + id + " .st-btn[data-network='snapchat'] > span {\n color: " + (color === 'black' ? '#fff' : '#333') + "};\n}"; 8176 network_css += "#" + id + " .st-btn[data-network='copy']:hover {\n width: max-content;\n}"; 8177 if (network === 'blm') { 8178 network_css += "#" + id + " .st-btn[data-network='blm']:hover {\n width: 165px;\n}"; 8179 } 8180 css = common_css; 8181 if (!st.mobile) { 8182 css += hover_css; 8183 } 8184 if (!st.mobile) { 8185 css += responsive_css; 8186 } 8187 if (st.mobile) { 8188 css += mobile_css; 8189 } 8190 css += network_css; 8191 st.css(css); 8192 if (!show_mobile_buttons) { 8193 ref = ['sms']; 8194 for (i = 0, len = ref.length; i < len; i++) { 8195 network = ref[i]; 8196 index = networks.indexOf(network); 8197 if (index > -1) { 8198 networks.splice(index, 1); 8199 } 8200 } 8201 } 8202 html = ''; 8203 networks = st.filterInvalidNetworks(networks); 8204 if (show_total) { 8205 html += "<div class='st-total st-hidden'>\n <span class='st-label'></span>\n <span class='st-shares'>\n " + (st.capitalize(st.i18n['shares'][language])) + "\n </span>\n</div>"; 8206 } 8207 for (index = j = 0, len1 = networks.length; j < len1; index = ++j) { 8208 network = networks[index]; 8209 class_names = ['st-btn']; 8210 if (index === 0) { 8211 class_names.push('st-first'); 8212 } 8213 if (index === networks.length - 1) { 8214 class_names.push('st-last'); 8215 } 8216 label = st.getShareLabel(network, language); 8217 if (labels !== 'cta') { 8218 label = ''; 8219 } 8220 label_span = "<span class='st-label'>" + label + "</span>"; 8221 html += "<div class='" + (class_names.join(' ')) + "' data-network='" + network + "'>\n " + (color === 'white' ? st.ICONS_WHITE[network] : st.ICONS[network]) + "\n " + (labels === 'counts' || labels === 'cta' ? label_span : '') + "\n</div>"; 8222 } 8223 if (show_toggle) { 8224 html += "<div class=\"st-toggle\">\n <div class=\"st-left\">\n " + st.ICONS['arrow_left'] + "\n </div>\n <div class=\"st-right\">\n " + st.ICONS['arrow_right'] + "\n </div>\n</div>"; 8225 } 8226 $el.innerHTML = html; 8227 $buttons = $el.querySelectorAll('.st-btn'); 8228 $toggle = $el.querySelector('.st-toggle'); 8229 $total = $el.querySelector('.st-total'); 8230 $total_label = $el.querySelector('.st-total .st-label'); 8231 st.addEventListener($toggle, 'click', function () { 8232 return st.toggleClass($el, 'st-hidden'); 8233 }); 8234 resize = function () { 8235 var $button, k, l, len2, len3, max, ref1, results; 8236 max = 100; 8237 if (st.mobile || window.innerWidth < mobile_breakpoint) { 8238 max = 6; 8239 } 8240 if (show_total) { 8241 max--; 8242 } 8243 if (indexOf.call(networks, 'sharethis') >= 0) { 8244 max--; 8245 } 8246 if (indexOf.call(networks, 'sms') >= 0) { 8247 max--; 8248 } 8249 if (indexOf.call(networks, 'whatsapp') >= 0) { 8250 max--; 8251 } 8252 if (indexOf.call(networks, 'messenger') >= 0) { 8253 max--; 8254 } 8255 if (indexOf.call(networks, 'wechat') >= 0) { 8256 max--; 8257 } 8258 for (k = 0, len2 = $buttons.length; k < len2; k++) { 8259 $button = $buttons[k]; 8260 $button.style.display = 'inline-block'; 8261 } 8262 results = []; 8263 for (index = l = 0, len3 = $buttons.length; l < len3; index = ++l) { 8264 $button = $buttons[index]; 8265 if ((ref1 = $button.getAttribute('data-network')) === 'sharethis' || ref1 === 'sms' || ref1 === 'messenger' || ref1 === 'whatsapp' || ref1 === 'wechat') { 8266 continue; 8267 } 8268 if (max-- > 0) { 8269 continue; 8270 } 8271 results.push($button.style.display = 'none'); 8272 } 8273 return results; 8274 }; 8275 st.addEventListener(window, 'resize', resize); 8276 fn = function ($button) { 8277 return st.addEventListener($button, 'click', function () { 8278 return st.share({ 8279 channel_is_ssb: config.is_ssb, 8280 channels_displayed: JSON.stringify(config.networks), 8281 count_url: $el != null ? $el.getAttribute('data-count-url') : void 0, 8282 description: description || ($el != null ? $el.getAttribute('data-description') : void 0), 8283 image: image || ($el != null ? $el.getAttribute('data-image') : void 0), 8284 message: message || ($el != null ? $el.getAttribute('data-message') : void 0), 8285 network: $button.getAttribute('data-network'), 8286 share_url: $el != null ? $el.getAttribute('data-short-url') : void 0, 8287 subject: subject || $el.getAttribute('data-email-subject'), 8288 title: title || ($el != null ? $el.getAttribute('data-title') : void 0), 8289 url: url || ($el != null ? $el.getAttribute('data-url') : void 0), 8290 username: username || ($el != null ? $el.getAttribute('data-username') : void 0) 8291 }); 8292 }); 8293 }; 8294 for (k = 0, len2 = $buttons.length; k < len2; k++) { 8295 $button = $buttons[k]; 8296 fn($button); 8297 } 8298 if (show_total || labels === 'counts') { 8299 return st.loadCounts({ 8300 url: url || ($el != null ? $el.getAttribute('data-url') : void 0) 8301 }, function (counts) { 8302 var l, len3, ref1, ref2, ref3, value; 8303 if (show_total) { 8304 if (((ref1 = counts['total']) != null ? ref1.value : void 0) > min_count) { 8305 $total_label.innerHTML = counts['total'].label; 8306 st.removeClass($total, 'st-hidden'); 8307 } else { 8308 st.addClass($total, 'st-hidden'); 8309 } 8310 } 8311 if (labels === 'counts') { 8312 for (l = 0, len3 = $buttons.length; l < len3; l++) { 8313 $button = $buttons[l]; 8314 network = $button.getAttribute('data-network'); 8315 ref2 = counts[network] || {}, label = ref2.label, value = ref2.value; 8316 if (label && value > min_count) { 8317 if ((ref3 = $button.querySelector('.st-label')) != null) { 8318 ref3.innerHTML = label; 8319 } 8320 st.removeClass($button, 'st-hide-label'); 8321 } else { 8322 st.addClass($button, 'st-hide-label'); 8323 } 8324 } 8325 } 8326 resize(); 8327 setTimeout((function () { 8328 return st.removeClass($el, 'st-hidden'); 8329 }), 10); 8330 return typeof onLoad === "function" ? onLoad() : void 0; 8331 }); 8332 } else { 8333 resize(); 8334 setTimeout((function () { 8335 return st.removeClass($el, 'st-hidden'); 8336 }), 10); 8337 return typeof onLoad === "function" ? onLoad() : void 0; 8338 } 8339 }; 8340 8341}).call(this); 8342 8343(function () { 8344 var st; 8345 8346 st = window.__sharethis__; 8347 8348 st.loader['video-share-buttons'] = function (config) { 8349 var alignment, container, networks, omit_class, onLoad, padding, radius, size, spacing; 8350 if (config == null) { 8351 config = {}; 8352 } 8353 if (!config.enabled) { 8354 return; 8355 } 8356 alignment = config.alignment, container = config.container, omit_class = config.omit_class, onLoad = config.onLoad, padding = config.padding, networks = config.networks, radius = config.radius, size = config.size, spacing = config.spacing; 8357 if (networks == null) { 8358 networks = ['facebook', 'twitter', 'pinterest', 'email']; 8359 } 8360 if (omit_class == null) { 8361 omit_class = ''; 8362 } 8363 if (padding == null) { 8364 padding = 10; 8365 } 8366 if (radius == null) { 8367 radius = 0; 8368 } 8369 if (size == null) { 8370 size = 40; 8371 } 8372 if (spacing == null) { 8373 spacing = 8; 8374 } 8375 st.checkClass = function (checkClass, el) { 8376 }; 8377 return st.getEmbeds(function (el, type, url) { 8378 var $el, contAlign, id, inline_buttons, ref; 8379 if (type !== 'video') { 8380 return; 8381 } 8382 ref = st.newElement(el), $el = ref.$el, id = ref.id; 8383 if (omit_class) { 8384 if (st.hasClass(el.parentNode.parentNode, omit_class)) { 8385 return; 8386 } 8387 if (st.hasClass(el.parentNode, omit_class)) { 8388 return; 8389 } 8390 } 8391 st.addClass($el, 'st-video-share-buttons'); 8392 $el.style.width = el.offsetWidth.toString() + 'px'; 8393 $el.style.margin = '0'; 8394 $el.style.padding = '0'; 8395 if (el.tagName.toLowerCase() === 'blockquote') { 8396 $el.style.margin = 'auto'; 8397 } 8398 $el.setAttribute('data-url', el.src); 8399 if (!st.is_ie) { 8400 contAlign = getComputedStyle(el.parentElement).textAlign;
8401 if ('center' === contAlign) { 8402 $el.style.margin = 'auto'; 8403 } 8404 } 8405 el.parentNode.insertBefore($el, el.nextSibling); 8406 return inline_buttons = st.load('inline-share-buttons', { 8407 alignment: alignment, 8408 id: id, 8409 enabled: true, 8410 networks: networks, 8411 padding: padding, 8412 radius: radius, 8413 size: size, 8414 spacing: spacing, 8415 onLoad: function () { 8416 st.addClass($el, ''); 8417 return typeof onLoad === "function" ? onLoad() : void 0; 8418 } 8419 }); 8420 }); 8421 }; 8422 8423}).call(this); 8424 8425(function () { 8426 window.__sharethis__.md5 = "472c788ac75f26dc43bb445fb8c676b7"; 8427})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.