'use strict';(function(){function h(c,b){if(!(c instanceof b))throw new TypeError("Cannot call a class as a function");}function u(c,b){for(var a=0;a<b.length;a++){var f=b[a];f.enumerable=f.enumerable||!1;f.configurable=!0;"value"in f&&(f.writable=!0);Object.defineProperty(c,f.key,f)}}function g(c,b,a){b&&u(c.prototype,b);a&&u(c,a);return c}function m(c,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(b&&b.prototype,
{constructor:{value:c,writable:!0,configurable:!0}});b&&r(c,b)}function k(c){k=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)};return k(c)}function r(c,b){r=Object.setPrototypeOf||function(a,b){a.__proto__=b;return a};return r(c,b)}function l(c){if(void 0===c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c}function n(c,b){return!b||"object"!==typeof b&&"function"!==typeof b?l(c):b}function p(c){if(Array.isArray(c)){var b=
0;for(var a=Array(c.length);b<c.length;b++)a[b]=c[b];b=a}else b=void 0;b||(b=Symbol.iterator in Object(c)||"[object Arguments]"===Object.prototype.toString.call(c)?Array.from(c):void 0);if(!(c=b))throw new TypeError("Invalid attempt to spread non-iterable instance");return c}var v=function(){function c(){h(this,c);this.handlers={}}g(c,[{key:"addEventListener",value:function(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
"click";this.handlers[a]={func:2<arguments.length?arguments[2]:void 0,target:b};var f=a.split(".")[0];b.addEventListener(f,this.handlers[a].func)}},{key:"removeEventListener",value:function(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"click",a=b.split(".")[0],f=this.handlers[b];f.target.removeEventListener(a,f.func);delete this.handlers[b]}},{key:"removeAll",value:function(){for(var b in this.handlers)this.removeEventListener(b)}}]);return c}(),w=function(){return"".concat(0<arguments.length&&
void 0!==arguments[0]?arguments[0]:"id","-").concat(Math.random().toString(36).substr(2,8))},e=function(){function c(){h(this,c);this.events=new v;this.callback=function(){};this.updateInstanceId()}g(c,[{key:"eventHandler",value:function(b,a){var f=this,d=a.share_url,c=a.windowTitle,q=a.windowWidth,h=a.windowHeight;b.preventDefault();a=Math.round((window.outerHeight||window.document.documentElement.offsetHeight)/2-h/2);var g=Math.round((window.outerWidth||window.document.documentElement.offsetWidth)/
2-q/2);q="width=".concat(q,",height=").concat(h);a="left=".concat(g,",top=").concat(a);var k="".concat(q,",").concat(a,",location=no,toolbar=no,menubar=no"),e=window.open(d,c,k),l=setInterval(function(){e.closed&&(f.callback(b,{share_url:d,windowTitle:c,windowOptions:k},e),clearInterval(l))},10);return e}},{key:"setShareCallback",value:function(b){this.callback=b}},{key:"createEvents",value:function(b){var a=this;p(b).forEach(function(b){var f=a.getPreparedData(b);a.events.addEventListener(b,"click.".concat(a.instanceId),
function(b){return a.eventHandler.call(a,b,f)})})}},{key:"getInstance",value:function(){"function"===typeof this.shareWindow&&this.shareWindow();"function"===typeof this.getCounter&&this.getCounter();return this}},{key:"updateInstanceId",value:function(){this.instanceId=w()}},{key:"reNewInstance",value:function(){this.events.removeAll();this.updateInstanceId();return this.getInstance()}}]);return c}(),t=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,
f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('link[rel="apple-touch-icon"]');h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.title=encodeURIComponent(f);c.image=d?encodeURIComponent(d.href):"";c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?
encodeURIComponent(a.dataset.title):this.title;a=a.dataset.image?encodeURIComponent(a.dataset.image):this.image;b="https://vk.com/share.php?url=".concat(b,"&title=").concat(d,"&image=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="vkontakte"]');return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),b=
document.querySelectorAll('[data-counter="vkontakte"]'),d="https://vk.com/share.php?act=count&index=1&url=".concat(this.url);window.VK=Object.assign({},{Share:{}},window.VK);0<b.length&&(window.VK.Share.count=function(f,d){p(b).forEach(function(a){a.innerHTML=d});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src=d,document.body.appendChild(a))}}]);return b}(e),x=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&
void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(f);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://facebook.com/sharer/sharer.php?u=".concat(b,"&t=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",
windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="facebook"]');return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),b=("goodshare_"+Math.random()).replace(".",""),d=document.querySelectorAll('[data-counter="facebook"]'),c="https://graph.facebook.com/?id=".concat(this.url,"&callback=").concat(b);0<d.length&&(window[b]=function(b){p(d).forEach(function(a){a.innerHTML=b.share?b.share.share_count:
0});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src=c,document.body.appendChild(a))}}]);return b}(e),y=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(f);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?
encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://connect.ok.ru/offer?url=".concat(b,"&title=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="odnoklassniki"]');return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),b=document.querySelectorAll('[data-counter="odnoklassniki"]'),
d="https://connect.ok.ru/dk?st.cmd=extLike&uid=1&ref=".concat(this.url);window.ODKL={};0<b.length&&(window.ODKL.updateCount=function(f,d){p(b).forEach(function(a){a.innerHTML=d});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src=d,document.body.appendChild(a))}}]);return b}(e),z=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?
arguments[2]:document.querySelector('meta[name="description"]'),c=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.querySelector('link[rel="apple-touch-icon"]');h(this,b);var e=n(this,k(b).call(this));e.url=encodeURIComponent(a);e.title=encodeURIComponent(f);e.description=d?encodeURIComponent(d.content):"";e.image=c?encodeURIComponent(c.href):"";e.createEvents=e.createEvents.bind(l(e));return e}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):
this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):this.title,c=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;a=a.dataset.image?encodeURIComponent(a.dataset.image):this.image;b="https://connect.mail.ru/share?url=".concat(b,"&title=").concat(d,"&description=").concat(c,"&imageurl=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="moimir"]');
return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),b=encodeURIComponent(this.url.replace(/^.*?:\/\//,"")),d=("goodshare_"+Math.random()).replace(".",""),c=document.querySelectorAll('[data-counter="moimir"]');0<c.length&&(window[d]=function(b){p(c).forEach(function(a){a.innerHTML=b.share_mm});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src="https://appsmail.ru/share/count/"+b+"?callback="+d,document.body.appendChild(a))}}]);return b}(e),
A=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.title=encodeURIComponent(f);c.description=d?encodeURIComponent(d.content):"";c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",
value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;a=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;b="https://www.tumblr.com/widgets/share/tool?canonicalUrl=".concat(b,"&title=").concat(d,"&caption=").concat(a,"&posttype=link");return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=
document.querySelectorAll('[data-social="tumblr"]');return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),b=("goodshare_"+Math.random()).replace(".",""),d=document.querySelectorAll('[data-counter="tumblr"]'),c="https://api.tumblr.com/v2/share/stats?url=".concat(this.url,"&callback=").concat(b);0<d.length&&(window[b]=function(b){p(d).forEach(function(a){a.innerHTML=b.response.note_count});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src=c,document.body.appendChild(a))}}]);
return b}(e),B=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.querySelector('meta[name="description"]'),d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('link[rel="apple-touch-icon"]');h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.description=f?encodeURIComponent(f.content):"";c.image=d?encodeURIComponent(d.href):"";
c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;a=a.dataset.image?encodeURIComponent(a.dataset.image):this.image;b="https://www.pinterest.com/pin/create/button/?url=".concat(b,"&description=").concat(d,"&media=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,
windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="pinterest"]');return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),b=("goodshare_"+Math.random()).replace(".",""),d=document.querySelectorAll('[data-counter="pinterest"]'),c="https://api.pinterest.com/v1/urls/count.json?url=".concat(this.url,"&callback=").concat(b);0<d.length&&(window[b]=function(b){p(d).forEach(function(a){a.innerHTML=0<b.length?
b.count:0});null!==a.parentNode&&a.parentNode.removeChild(a)},a.src=c,document.body.appendChild(a))}}]);return b}(e),C=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(f);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=
a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://reddit.com/submit?url=".concat(b,"&title=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="reddit"]');return this.createEvents(a)}}]);return b}(e),D=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?
arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(f);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://buffer.com/add?url=".concat(b,"&text=").concat(a);return{callback:this.callback,
share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="buffer"]');return this.createEvents(a)}},{key:"getCounter",value:function(){var a=document.createElement("script"),b=("goodshare_"+Math.random()).replace(".",""),d=document.querySelectorAll('[data-counter="buffer"]'),c="https://api.bufferapp.com/1/links/shares.json?url=".concat(this.url,"&callback=").concat(b);0<d.length&&(window[b]=function(b){p(d).forEach(function(a){a.innerHTML=
b?b.shares:0});a.parentNode.removeChild(a)},a.src=c,document.body.appendChild(a))}}]);return b}(e),E=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(f);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?
encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://twitter.com/share?url=".concat(b,"&text=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="twitter"]');return this.createEvents(a)}}]);return b}(e),F=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:
document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(f);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://livejournal.com/update.bml?event=".concat(b,"&subject=").concat(a);
return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="livejournal"]');return this.createEvents(a)}}]);return b}(e),G=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');
h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.title=encodeURIComponent(f);c.description=d?encodeURIComponent(d.content):"";c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;a=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;b="https://www.linkedin.com/shareArticle?url=".concat(b,
"&text=").concat(d,"&summary=").concat(a,"&mini=true");return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="linkedin"]');return this.createEvents(a)}}]);return b}(e),H=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&
void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]');h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.title=encodeURIComponent(f);c.description=d?encodeURIComponent(d.content):"";c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,d=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;a=a.dataset.description?encodeURIComponent(a.dataset.description):
this.description;b="https://www.evernote.com/clip.action?url=".concat(b,"&title=").concat(d,"&body=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="evernote"]');return this.createEvents(a)}}]);return b}(e),I=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?
arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(f);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://del.icio.us/save?url=".concat(b,"&title=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,
windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="delicious"]');return this.createEvents(a)}}]);return b}(e),J=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(f);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,
[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://share.flipboard.com/bookmarklet/popout?ext=sharethis&title=".concat(a,"&url=").concat(b,"&v=2");return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="flipboard"]');return this.createEvents(a)}}]);
return b}(e),K=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var f=n(this,k(b).call(this));f.url=encodeURIComponent(a);f.createEvents=f.createEvents.bind(l(f));return f}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="https://mix.com/mixit?su=submit&url=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},
{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="mix"]');return this.createEvents(a)}}]);return b}(e),L=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var f=n(this,k(b).call(this));f.url=encodeURIComponent(a);f.createEvents=f.createEvents.bind(l(f));return f}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="https://www.meneame.net/submit?url=".concat(a);
return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="meneame"]');return this.createEvents(a)}}]);return b}(e),M=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=
encodeURIComponent(f);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://www.blogger.com/blog-this.g?u=".concat(b,"&n=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="blogger"]');
return this.createEvents(a)}}]);return b}(e),N=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?
encodeURIComponent(a.dataset.title):this.title;b="https://getpocket.com/save?url=".concat(b,"&title=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="pocket"]');return this.createEvents(a)}}]);return b}(e),O=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?
arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://www.instapaper.com/edit?url=".concat(b,"&title=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,
windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="instapaper"]');return this.createEvents(a)}}]);return b}(e),P=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);
g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://digg.com/submit?url=".concat(b,"&title=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="digg"]');return this.createEvents(a)}}]);return b}(e),Q=function(c){function b(){var a=
0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="http://www.liveinternet.ru/journal_post.php?action=n_add&cnurl=".concat(b,
"&cntitle=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="liveinternet"]');return this.createEvents(a)}}]);return b}(e),R=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
document.querySelector('meta[name="description"]');h(this,b);var e=n(this,k(b).call(this));e.url=encodeURIComponent(a);e.title=encodeURIComponent(c);e.description=d?encodeURIComponent(d.content):"";e.createEvents=e.createEvents.bind(l(e));return e}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,c=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;a=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;
b="https://surfingbird.ru/share?url=".concat(b,"&title=").concat(c,"&description=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="surfingbird"]');return this.createEvents(a)}}]);return b}(e),S=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);
c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="https://www.xing.com/spi/shares/new?url=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="xing"]');return this.createEvents(a)}}]);return b}(e),T=function(c){function b(){var a=0<arguments.length&&
void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:document.querySelector('meta[name="description"]'),e=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.querySelector('link[rel="apple-touch-icon"]');h(this,b);var g=n(this,k(b).call(this));g.url=encodeURIComponent(a);g.title=encodeURIComponent(c);g.description=d?encodeURIComponent(d.content):"";g.image=
e?encodeURIComponent(e.href):"";g.createEvents=g.createEvents.bind(l(g));return g}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,c=a.dataset.title?encodeURIComponent(a.dataset.title):this.title,e=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;a=a.dataset.image?encodeURIComponent(a.dataset.image):this.image;b="https://wordpress.com/wp-admin/press-this.php?u=".concat(b,"&t=").concat(c,"&s=").concat(e,
"&i=").concat(a,"&v=2");return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="wordpress"]');return this.createEvents(a)}}]);return b}(e),U=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title,d=2<arguments.length&&void 0!==arguments[2]?arguments[2]:
document.querySelector('meta[name="description"]');h(this,b);var e=n(this,k(b).call(this));e.url=encodeURIComponent(a);e.title=encodeURIComponent(c);e.description=d?encodeURIComponent(d.content):"";e.createEvents=e.createEvents.bind(l(e));return e}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url,c=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;a=a.dataset.description?encodeURIComponent(a.dataset.description):this.description;
b="https://cang.baidu.com/do/add?iu=".concat(b,"&it=").concat(c,"&dc=").concat(a,"&fr=ien");return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="baidu"]');return this.createEvents(a)}}]);return b}(e),V=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:
document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="http://share.renren.com/share/buttonshare.do?url=".concat(b,"&title=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,
windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="renren"]');return this.createEvents(a)}}]);return b}(e),W=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href,c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document.title;h(this,b);var d=n(this,k(b).call(this));d.url=encodeURIComponent(a);d.title=encodeURIComponent(c);d.createEvents=d.createEvents.bind(l(d));return d}m(b,c);g(b,
[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a=a.dataset.title?encodeURIComponent(a.dataset.title):this.title;b="https://service.weibo.com/share/share.php?url=".concat(b,"&title=").concat(a);return{callback:this.callback,share_url:b,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="weibo"]');return this.createEvents(a)}}]);return b}(e),X=function(c){function b(){var a=
0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="sms:?&body=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="sms"]');
return this.createEvents(a)}}]);return b}(e),Y=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="https://web.skype.com/share?".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,
windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="skype"]');return this.createEvents(a)}}]);return b}(e),Z=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){var b=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;
a=a.dataset.rhash?a.dataset.rhash:null;var c="https://t.me/share/url?url=".concat(b);null!==a&&(c="https://t.me/iv?url=".concat(b,"&rhash=").concat(a));return{callback:this.callback,share_url:c,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="telegram"]');return this.createEvents(a)}}]);return b}(e),aa=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;
h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="viber://forward?text=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="viber"]');return this.createEvents(a)}}]);return b}(e),
ba=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="https://wa.me/?text=".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=
document.querySelectorAll('[data-social="whatsapp"]');return this.createEvents(a)}}]);return b}(e),ca=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="https://chart.apis.google.com/chart?cht=qr&chs=196x196&chld=Q%7C0&chl=".concat(a);
return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="wechat"]');return this.createEvents(a)}}]);return b}(e);e=function(c){function b(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.location.href;h(this,b);var c=n(this,k(b).call(this));c.url=encodeURIComponent(a);c.createEvents=c.createEvents.bind(l(c));return c}m(b,c);g(b,[{key:"getPreparedData",
value:function(a){a=a.dataset.url?encodeURIComponent(a.dataset.url):this.url;a="line://msg/text/".concat(a);return{callback:this.callback,share_url:a,windowTitle:"Share this",windowWidth:640,windowHeight:480}}},{key:"shareWindow",value:function(){var a=document.querySelectorAll('[data-social="line"]');return this.createEvents(a)}}]);return b}(e);var da=[t,x,y,z,G,A,B,C,D,E,F,H,I,J,N,K,L,M,O,P,Q,R,S,T,U,V,W,X,Y,Z,aa,ba,ca,e];t=function(){function c(){h(this,c);this.providers=da;this.getProviders()}
g(c,[{key:"setShareCallback",value:function(b){this.providers=this.providers.map(function(a){return a.setShareCallback(b)})}},{key:"getProviders",value:function(){return this.providers=this.providers.map(function(b){return(new b).getInstance()})}},{key:"reNewAllInstance",value:function(){this.providers=this.providers.map(function(b){return b.reNewInstance()})}}]);return c}();window._goodshare=new t})();