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