UNPKG

react-share

Version:

Social media share buttons for React.

1,633 lines • 98.5 kB
"use client";
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
import { Children, cloneElement, forwardRef, isValidElement } from "react";
import cx from "classnames";
//#region \0@oxc-project+runtime@0.115.0/helpers/typeof.js
function _typeof(o) {
	"@babel/helpers - typeof";
	return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
		return typeof o;
	} : function(o) {
		return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
	}, _typeof(o);
}
//#endregion
//#region \0@oxc-project+runtime@0.115.0/helpers/toPrimitive.js
function toPrimitive(t, r) {
	if ("object" != _typeof(t) || !t) return t;
	var e = t[Symbol.toPrimitive];
	if (void 0 !== e) {
		var i = e.call(t, r || "default");
		if ("object" != _typeof(i)) return i;
		throw new TypeError("@@toPrimitive must return a primitive value.");
	}
	return ("string" === r ? String : Number)(t);
}
//#endregion
//#region \0@oxc-project+runtime@0.115.0/helpers/toPropertyKey.js
function toPropertyKey(t) {
	var i = toPrimitive(t, "string");
	return "symbol" == _typeof(i) ? i : i + "";
}
//#endregion
//#region \0@oxc-project+runtime@0.115.0/helpers/defineProperty.js
function _defineProperty(e, r, t) {
	return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
		value: t,
		enumerable: !0,
		configurable: !0,
		writable: !0
	}) : e[r] = t, e;
}
//#endregion
//#region \0@oxc-project+runtime@0.115.0/helpers/objectSpread2.js
function ownKeys(e, r) {
	var t = Object.keys(e);
	if (Object.getOwnPropertySymbols) {
		var o = Object.getOwnPropertySymbols(e);
		r && (o = o.filter(function(r) {
			return Object.getOwnPropertyDescriptor(e, r).enumerable;
		})), t.push.apply(t, o);
	}
	return t;
}
function _objectSpread2(e) {
	for (var r = 1; r < arguments.length; r++) {
		var t = null != arguments[r] ? arguments[r] : {};
		r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
			_defineProperty(e, r, t[r]);
		}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
			Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
		});
	}
	return e;
}
//#endregion
//#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutPropertiesLoose.js
function _objectWithoutPropertiesLoose(r, e) {
	if (null == r) return {};
	var t = {};
	for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
		if (e.includes(n)) continue;
		t[n] = r[n];
	}
	return t;
}
//#endregion
//#region \0@oxc-project+runtime@0.115.0/helpers/objectWithoutProperties.js
function _objectWithoutProperties(e, t) {
	if (null == e) return {};
	var o, r, i = _objectWithoutPropertiesLoose(e, t);
	if (Object.getOwnPropertySymbols) {
		var s = Object.getOwnPropertySymbols(e);
		for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
	}
	return i;
}
//#endregion
//#region src/icons/RawIconBase.tsx
var _excluded$25 = [
	"backdrop",
	"badge",
	"children",
	"color",
	"fill",
	"outlined",
	"size",
	"viewBox"
];
var outlinePaint = {
	fill: "none",
	strokeLinecap: "round",
	strokeLinejoin: "round",
	strokeWidth: 2
};
function glyphPaint(outlined, color) {
	return outlined ? _objectSpread2(_objectSpread2({}, outlinePaint), {}, { stroke: color }) : { fill: color };
}
function RawIconBase(_ref) {
	let { backdrop, badge, children, color, fill, outlined = false, size = 24, viewBox = "0 0 24 24" } = _ref, rest = _objectWithoutProperties(_ref, _excluded$25);
	const paint = fill !== null && fill !== void 0 ? fill : color;
	if (badge) {
		const transform = `translate(12 12) scale(${badge.scale}) translate(-12 -12)`;
		return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
			viewBox: "0 0 24 24",
			width: size,
			height: size,
			fill: paint
		}, rest), {}, { children: [/* @__PURE__ */ jsx("circle", {
			cx: "12",
			cy: "12",
			r: "12"
		}), /* @__PURE__ */ jsx("g", _objectSpread2(_objectSpread2({ transform }, glyphPaint(outlined, "white")), {}, { children }))] }));
	}
	return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2(_objectSpread2({
		viewBox,
		width: size,
		height: size
	}, glyphPaint(outlined, paint)), rest), {}, { children: [backdrop && /* @__PURE__ */ jsx("g", {
		fill: "white",
		children: backdrop
	}), children] }));
}
//#endregion
//#region src/BlueskyIcon.tsx
function BlueskyIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		badge: { scale: .58 },
		color: "#0560FF"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037-.856 3.061-3.978 3.842-6.755 3.37 4.854.826 6.089 3.562 3.422 6.299-5.065 5.196-7.28-1.304-7.847-2.97-.104-.305-.152-.448-.153-.327 0-.121-.05.022-.153.327-.568 1.666-2.782 8.166-7.847 2.97-2.667-2.737-1.432-5.473 3.422-6.3-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026" }) }));
}
//#endregion
//#region src/icons/LegacyIconBase.tsx
var _excluded$24 = [
	"bgStyle",
	"borderRadius",
	"children",
	"color",
	"iconFillColor",
	"round",
	"size"
];
function withDefaultFill(children, iconFillColor) {
	return Children.map(children, (child) => {
		if (!isValidElement(child) || child.props.fill !== void 0) return child;
		return cloneElement(child, { fill: iconFillColor });
	});
}
function LegacyIconBase(_ref) {
	let { bgStyle = {}, borderRadius = 0, children, color, iconFillColor = "white", round = false, size = 64 } = _ref, rest = _objectWithoutProperties(_ref, _excluded$24);
	const content = withDefaultFill(children, iconFillColor);
	return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
		viewBox: "0 0 64 64",
		width: size,
		height: size
	}, rest), {}, { children: [round ? /* @__PURE__ */ jsx("circle", {
		cx: "32",
		cy: "32",
		r: "32",
		fill: color,
		style: bgStyle
	}) : /* @__PURE__ */ jsx("rect", {
		width: "64",
		height: "64",
		rx: borderRadius,
		ry: borderRadius,
		fill: color,
		style: bgStyle
	}), content] }));
}
//#endregion
//#region src/BlueskyLegacyIcon.tsx
function BlueskyLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#1185FE" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M21.945 18.886C26.015 21.941 30.393 28.137 32 31.461 33.607 28.137 37.985 21.941 42.055 18.886 44.992 16.681 49.75 14.975 49.75 20.403 49.75 21.487 49.128 29.51 48.764 30.813 47.497 35.341 42.879 36.496 38.772 35.797 45.951 37.019 47.778 41.067 43.833 45.114 36.342 52.801 33.066 43.186 32.227 40.722 32.073 40.27 32.001 40.059 32 40.238 31.999 40.059 31.927 40.27 31.773 40.722 30.934 43.186 27.658 52.801 20.167 45.114 16.222 41.067 18.049 37.019 25.228 35.797 21.121 36.496 16.503 35.341 15.236 30.813 14.872 29.51 14.25 21.487 14.25 20.403 14.25 14.975 19.008 16.681 21.945 18.886Z" }) }));
}
//#endregion
//#region src/utils/assert.ts
var AssertionError = class extends Error {
	constructor(message) {
		super(message);
		this.name = "AssertionError";
	}
};
function assert(value, message) {
	if (!value) throw new AssertionError(message);
}
//#endregion
//#region src/utils/objectToGetParams.ts
function objectToGetParams(object) {
	const params = Object.entries(object).filter(([, value]) => value !== void 0 && value !== null).map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);
	return params.length > 0 ? `?${params.join("&")}` : "";
}
//#endregion
//#region src/shareWindow.ts
var getBoxPositionOnWindowCenter = (width, height) => ({
	left: window.outerWidth / 2 + (window.screenX || window.screenLeft || 0) - width / 2,
	top: window.outerHeight / 2 + (window.screenY || window.screenTop || 0) - height / 2
});
var getBoxPositionOnScreenCenter = (width, height) => ({
	top: (window.screen.height - height) / 2,
	left: (window.screen.width - width) / 2
});
function openShareWindow(url, { height = 400, newTab = false, onClose, position = "windowCenter", width = 550 } = {}) {
	const config = _objectSpread2({
		height,
		width,
		location: "no",
		toolbar: "no",
		status: "no",
		directories: "no",
		menubar: "no",
		scrollbars: "yes",
		resizable: "no",
		centerscreen: "yes",
		chrome: "yes"
	}, position === "windowCenter" ? getBoxPositionOnWindowCenter(width, height) : getBoxPositionOnScreenCenter(width, height));
	const shareDialog = newTab ? window.open(url, "_blank") : window.open(url, "", Object.keys(config).map((key) => `${key}=${config[key]}`).join(", "));
	if (onClose) {
		const interval = window.setInterval(() => {
			try {
				if (shareDialog === null || shareDialog.closed) {
					window.clearInterval(interval);
					onClose(shareDialog);
				}
			} catch (error) {
				console.error(error);
			}
		}, 1e3);
	}
	return shareDialog;
}
//#endregion
//#region src/utils/buttonHelpers.ts
var isPromise = (obj) => !!obj && (typeof obj === "object" || typeof obj === "function") && "then" in obj && typeof obj.then === "function";
function getButtonBorderRadius(children) {
	var _child$props$borderRa;
	const childNodes = Children.toArray(children);
	if (childNodes.length !== 1) return;
	const [child] = childNodes;
	if (!isValidElement(child)) return;
	if (child.props.round) return "50%";
	return (_child$props$borderRa = child.props.borderRadius) !== null && _child$props$borderRa !== void 0 ? _child$props$borderRa : 0;
}
function hasTextContent(children) {
	return Children.toArray(children).some((child) => {
		if (typeof child === "string") return child.trim().length > 0;
		if (typeof child === "number") return true;
		if (!isValidElement(child)) return false;
		return hasTextContent(child.props.children);
	});
}
//#endregion
//#region src/ShareButton.tsx
var _excluded$23 = [
	"aria-label",
	"aria-labelledby",
	"beforeOnClick",
	"children",
	"className",
	"disabled",
	"disabledStyle",
	"forwardedRef",
	"htmlTitle",
	"linkBehavior",
	"networkLink",
	"networkName",
	"onClick",
	"onShareWindowClose",
	"onShareWindowOpen",
	"openInNewTab",
	"openShareDialogOnClick",
	"opts",
	"resetButtonStyle",
	"style",
	"title",
	"type",
	"url",
	"windowHeight",
	"windowPosition",
	"windowWidth"
];
var DEFAULT_ARIA_LABELS = {
	bluesky: "Share on Bluesky",
	email: "Share by email",
	facebook: "Share on Facebook",
	facebookmessenger: "Share in Messenger",
	farcaster: "Share on Farcaster",
	gab: "Share on Gab",
	hatena: "Share on Hatena",
	instapaper: "Save to Instapaper",
	line: "Share on Line",
	linkedin: "Share on LinkedIn",
	livejournal: "Share on LiveJournal",
	mailru: "Share on Mail.ru",
	ok: "Share on OK",
	pinterest: "Pin on Pinterest",
	reddit: "Share on Reddit",
	telegram: "Share on Telegram",
	threads: "Share on Threads",
	tumblr: "Share on Tumblr",
	viber: "Share on Viber",
	vk: "Share on VK",
	weibo: "Share on Weibo",
	whatsapp: "Share on WhatsApp",
	x: "Share on X"
};
function ShareButton(_ref) {
	let { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, beforeOnClick, children, className, disabled, disabledStyle = { opacity: .6 }, forwardedRef, htmlTitle, linkBehavior = "popup", networkLink, networkName, onClick, onShareWindowClose, onShareWindowOpen, openInNewTab = false, openShareDialogOnClick = true, opts, resetButtonStyle = true, style, title, type = "button", url, windowHeight = 400, windowPosition = "windowCenter", windowWidth = 550 } = _ref, rest = _objectWithoutProperties(_ref, _excluded$23);
	const buttonBorderRadius = getButtonBorderRadius(children);
	const fallbackAriaLabel = !ariaLabel && !ariaLabelledBy && !hasTextContent(children) ? DEFAULT_ARIA_LABELS[networkName] : void 0;
	const handleClick = async (event) => {
		if (disabled) return;
		const link = networkLink(url, opts);
		event.preventDefault();
		const returnVal = beforeOnClick === null || beforeOnClick === void 0 ? void 0 : beforeOnClick();
		const opensPopup = openShareDialogOnClick && linkBehavior === "popup";
		const windowOptions = {
			height: windowHeight,
			newTab: openInNewTab,
			onClose: onShareWindowClose,
			position: windowPosition,
			width: windowWidth
		};
		if (isPromise(returnVal)) {
			const shareWindow = opensPopup ? openShareWindow("about:blank", windowOptions) : null;
			try {
				await returnVal;
			} catch (_unused) {
				shareWindow === null || shareWindow === void 0 || shareWindow.close();
				return;
			}
			if (shareWindow && !shareWindow.closed) shareWindow.location.replace(link);
			if (opensPopup) onShareWindowOpen === null || onShareWindowOpen === void 0 || onShareWindowOpen(shareWindow);
		} else if (opensPopup) {
			const shareWindow = openShareWindow(link, windowOptions);
			onShareWindowOpen === null || onShareWindowOpen === void 0 || onShareWindowOpen(shareWindow);
		}
		if (openShareDialogOnClick && linkBehavior === "navigate") window.location.href = link;
		if (onClick) onClick(event, link);
	};
	const newClassName = cx("react-share__ShareButton", {
		"react-share__ShareButton--disabled": !!disabled,
		disabled: !!disabled
	}, className);
	const newStyle = resetButtonStyle ? _objectSpread2(_objectSpread2({
		backgroundColor: "transparent",
		border: "none",
		padding: 0,
		display: "inline-flex",
		borderRadius: buttonBorderRadius,
		outlineOffset: 2,
		font: "inherit",
		color: "inherit",
		cursor: "pointer"
	}, style), disabled && disabledStyle) : _objectSpread2(_objectSpread2({}, style), disabled && disabledStyle);
	return /* @__PURE__ */ jsx("button", _objectSpread2(_objectSpread2({}, rest), {}, {
		"aria-label": ariaLabel || fallbackAriaLabel,
		"aria-labelledby": ariaLabelledBy,
		className: newClassName,
		disabled,
		onClick: handleClick,
		ref: forwardedRef,
		style: newStyle,
		title: htmlTitle,
		type,
		children
	}));
}
//#endregion
//#region src/BlueskyShareButton.tsx
var _excluded$22 = ["separator", "text"];
function blueskyLink(url, { text, separator = " " }) {
	assert(url, "bluesky.url");
	return "https://bsky.app/intent/compose" + objectToGetParams({ text: text ? text + separator + url : url });
}
var buildBlueskyShareUrl = blueskyLink;
var BlueskyShareButton = forwardRef((_ref, ref) => {
	let { separator, text } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$22)), {}, {
		forwardedRef: ref,
		networkName: "bluesky",
		networkLink: buildBlueskyShareUrl,
		opts: {
			text,
			separator: separator || " "
		},
		windowHeight: 460,
		windowPosition: "windowCenter",
		windowWidth: 660
	}));
});
BlueskyShareButton.displayName = "BlueskyShareButton";
//#endregion
//#region src/EmailIcon.tsx
function EmailIcon(props) {
	return /* @__PURE__ */ jsxs(RawIconBase, _objectSpread2(_objectSpread2({
		badge: { scale: .6 },
		color: "#7f7f7f",
		outlined: true
	}, props), {}, { children: [/* @__PURE__ */ jsx("path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7" }), /* @__PURE__ */ jsx("rect", {
		x: "2",
		y: "4",
		width: "20",
		height: "16",
		rx: "2"
	})] }));
}
//#endregion
//#region src/EmailLegacyIcon.tsx
function EmailLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#7f7f7f" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M17,22v20h30V22H17z M41.1,25L32,32.1L22.9,25H41.1z M20,39V26.6l12,9.3l12-9.3V39H20z" }) }));
}
//#endregion
//#region src/EmailShareButton.tsx
var _excluded$21 = [
	"body",
	"separator",
	"subject",
	"to"
];
function emailRecipients(to) {
	return (Array.isArray(to) ? to : [to]).filter(Boolean).map((address) => encodeURIComponent(address).replace(/%40/g, "@")).join(",");
}
function emailLink(url, { subject, body, separator = "\n", to }) {
	return "mailto:" + emailRecipients(to) + objectToGetParams({
		subject,
		body: body ? body + separator + url : url
	});
}
var buildEmailShareUrl = emailLink;
var EmailShareButton = forwardRef((_ref, ref) => {
	let { body, separator, subject, to } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$21)), {}, {
		forwardedRef: ref,
		networkName: "email",
		networkLink: buildEmailShareUrl,
		onClick: (_, link) => {
			window.location.href = link;
		},
		openShareDialogOnClick: false,
		opts: {
			subject,
			body,
			separator: separator || "\n",
			to
		}
	}));
});
EmailShareButton.displayName = "EmailShareButton";
//#endregion
//#region src/FacebookIcon.tsx
function FacebookIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
			cx: "12",
			cy: "12.044",
			r: "11"
		}), /* @__PURE__ */ jsx("path", { d: "M9.05 15h4.3v8.968A12 12 0 0 1 9.05 23.676z" })] }),
		color: "#0866FF",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z" }) }));
}
//#endregion
//#region src/FacebookLegacyIcon.tsx
function FacebookLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#0866FF" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M34.1,47V33.3h4.6l0.7-5.3h-5.3v-3.4c0-1.5,0.4-2.6,2.6-2.6l2.8,0v-4.8c-0.5-0.1-2.2-0.2-4.1-0.2 c-4.1,0-6.9,2.5-6.9,7V28H24v5.3h4.6V47H34.1z" }) }));
}
//#endregion
//#region src/FacebookMessengerIcon.tsx
function FacebookMessengerIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsx("circle", {
			cx: "12",
			cy: "11.64",
			r: "9"
		}),
		color: "#0866FF",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M12 0C5.24 0 0 4.952 0 11.64c0 3.499 1.434 6.521 3.769 8.61a.96.96 0 0 1 .323.683l.065 2.135a.96.96 0 0 0 1.347.85l2.381-1.053a.96.96 0 0 1 .641-.046A13 13 0 0 0 12 23.28c6.76 0 12-4.952 12-11.64S18.76 0 12 0m6.806 7.44c.522-.03.971.567.63 1.094l-4.178 6.457a.707.707 0 0 1-.977.208l-3.87-2.504a.44.44 0 0 0-.49.007l-4.363 3.01c-.637.438-1.415-.317-.995-.966l4.179-6.457a.706.706 0 0 1 .977-.21l3.87 2.505c.15.097.344.094.491-.007l4.362-3.008a.7.7 0 0 1 .364-.13" }) }));
}
//#endregion
//#region src/FacebookMessengerLegacyIcon.tsx
function FacebookMessengerLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#0866FF" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M 53.066406 21.871094 C 52.667969 21.339844 51.941406 21.179688 51.359375 21.496094 L 37.492188 29.058594 L 28.867188 21.660156 C 28.339844 21.207031 27.550781 21.238281 27.054688 21.730469 L 11.058594 37.726562 C 10.539062 38.25 10.542969 39.09375 11.0625 39.613281 C 11.480469 40.027344 12.121094 40.121094 12.640625 39.839844 L 26.503906 32.28125 L 35.136719 39.679688 C 35.667969 40.132812 36.457031 40.101562 36.949219 39.609375 L 52.949219 23.613281 C 53.414062 23.140625 53.464844 22.398438 53.066406 21.871094 Z M 53.066406 21.871094" }) }));
}
//#endregion
//#region src/mobile.ts
function matchesMobileUserAgent(userAgent) {
	return /Android|iPhone|iPad|iPod|IEMobile|Opera Mini/i.test(userAgent);
}
function isMobileShareEnvironment() {
	if (typeof navigator === "undefined") return false;
	if ("userAgentData" in navigator) {
		const userAgentData = navigator.userAgentData;
		if (typeof userAgentData.mobile === "boolean") return userAgentData.mobile;
	}
	if (matchesMobileUserAgent(navigator.userAgent)) return true;
	return navigator.maxTouchPoints > 1 && /Mac/i.test(navigator.platform);
}
function resolveMobileShareStrategy(mobileBehavior, webLink, appLink) {
	switch (mobileBehavior) {
		case "app": return {
			linkBehavior: "navigate",
			networkLink: appLink
		};
		case "auto": return isMobileShareEnvironment() ? {
			linkBehavior: "navigate",
			networkLink: appLink
		} : {
			linkBehavior: "popup",
			networkLink: webLink
		};
		default: return {
			linkBehavior: "popup",
			networkLink: webLink
		};
	}
}
//#endregion
//#region src/FacebookMessengerShareButton.tsx
var _excluded$20 = [
	"appId",
	"mobileBehavior",
	"redirectUri",
	"to"
];
function facebookMessengerLink(url, { appId, redirectUri, to }) {
	return "https://www.facebook.com/dialog/send" + objectToGetParams({
		link: url,
		redirect_uri: redirectUri || url,
		app_id: appId,
		to
	});
}
var buildFacebookMessengerShareUrl = facebookMessengerLink;
function facebookMessengerAppLink(url, { appId, redirectUri, to }) {
	return "fb-messenger://share" + objectToGetParams({
		link: url,
		redirect_uri: redirectUri || url,
		app_id: appId,
		to
	});
}
var FacebookMessengerShareButton = forwardRef((_ref, ref) => {
	let { appId, mobileBehavior, redirectUri, to } = _ref, props = _objectWithoutProperties(_ref, _excluded$20);
	const { linkBehavior, networkLink } = resolveMobileShareStrategy(mobileBehavior, buildFacebookMessengerShareUrl, facebookMessengerAppLink);
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, props), {}, {
		forwardedRef: ref,
		linkBehavior,
		networkName: "facebookmessenger",
		networkLink,
		opts: {
			appId,
			redirectUri,
			to
		},
		windowHeight: 820,
		windowWidth: 1e3
	}));
});
FacebookMessengerShareButton.displayName = "FacebookMessengerShareButton";
//#endregion
//#region src/FacebookShareButton.tsx
var _excluded$19 = ["hashtag"];
function facebookLink(url, { hashtag }) {
	assert(url, "facebook.url");
	return "https://www.facebook.com/sharer/sharer.php" + objectToGetParams({
		u: url,
		hashtag
	});
}
var buildFacebookShareUrl = facebookLink;
var FacebookShareButton = forwardRef((_ref, ref) => {
	let { hashtag } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$19)), {}, {
		forwardedRef: ref,
		networkName: "facebook",
		networkLink: buildFacebookShareUrl,
		opts: { hashtag },
		windowHeight: 400,
		windowWidth: 550
	}));
});
FacebookShareButton.displayName = "FacebookShareButton";
//#endregion
//#region src/FarcasterIcon.tsx
function FarcasterIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsx("rect", {
			x: "4",
			y: "4",
			width: "16",
			height: "16"
		}),
		color: "#855DCD",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M18.24.24H5.76C2.5789.24 0 2.8188 0 6v12c0 3.1811 2.5789 5.76 5.76 5.76h12.48c3.1812 0 5.76-2.5789 5.76-5.76V6C24 2.8188 21.4212.24 18.24.24m.8155 17.1662v.504c.2868-.0256.5458.1905.5439.479v.5688h-5.1437v-.5688c-.0019-.2885.2576-.5047.5443-.479v-.504c0-.22.1525-.402.358-.458l-.0095-4.3645c-.1589-1.7366-1.6402-3.0979-3.4435-3.0979-1.8038 0-3.2846 1.3613-3.4435 3.0979l-.0096 4.3578c.2276.0424.5318.2083.5395.4648v.504c.2863-.0256.5457.1905.5438.479v.5688H4.3915v-.5688c-.0019-.2885.2575-.5047.5438-.479v-.504c0-.2529.2011-.4548.4536-.4724v-7.895h-.4905L4.2898 7.008l2.6405-.0005V5.0419h9.9495v1.9656h2.8219l-.6091 2.0314h-.4901v7.8949c.2519.0177.453.2195.453.4724" }) }));
}
//#endregion
//#region src/FarcasterLegacyIcon.tsx
function FarcasterLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#855DCD" }, props), {}, { children: /* @__PURE__ */ jsx("g", {
		transform: "translate(32 32) scale(2.25) translate(-12 -12.1)",
		children: /* @__PURE__ */ jsx("path", { d: "M19.0555 17.4062v.504c.2868-.0256.5458.1905.5439.479v.5688h-5.1437v-.5688c-.0019-.2885.2576-.5047.5443-.479v-.504c0-.22.1525-.402.358-.458l-.0095-4.3645c-.1589-1.7366-1.6402-3.0979-3.4435-3.0979-1.8038 0-3.2846 1.3613-3.4435 3.0979l-.0096 4.3578c.2276.0424.5318.2083.5395.4648v.504c.2863-.0256.5457.1905.5438.479v.5688H4.3915v-.5688c-.0019-.2885.2575-.5047.5438-.479v-.504c0-.2529.2011-.4548.4536-.4724v-7.895h-.4905L4.2898 7.008l2.6405-.0005V5.0419h9.9495v1.9656h2.8219l-.6091 2.0314h-.4901v7.8949c.2519.0177.453.2195.453.4724" })
	}) }));
}
//#endregion
//#region src/FarcasterShareButton.tsx
var _excluded$18 = [
	"channelKey",
	"parentCastHash",
	"text"
];
function farcasterLink(url, { channelKey, parentCastHash, text }) {
	assert(url, "farcaster.url");
	return "https://farcaster.xyz/~/compose" + objectToGetParams({
		text,
		"embeds[]": url,
		channelKey,
		parentCastHash
	}).replace("embeds%5B%5D=", "embeds[]=");
}
var buildFarcasterShareUrl = farcasterLink;
var FarcasterShareButton = forwardRef((_ref, ref) => {
	let { channelKey, parentCastHash, text } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$18)), {}, {
		forwardedRef: ref,
		networkName: "farcaster",
		networkLink: buildFarcasterShareUrl,
		opts: {
			channelKey,
			parentCastHash,
			text
		},
		windowHeight: 460,
		windowPosition: "windowCenter",
		windowWidth: 660
	}));
});
FarcasterShareButton.displayName = "FarcasterShareButton";
//#endregion
//#region src/GabIcon.tsx
function GabIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsx("rect", {
			x: "1",
			y: "1",
			width: "22",
			height: "22",
			rx: "2.5"
		}),
		color: "#30CE7D",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", {
		fillRule: "evenodd",
		d: "M3.53 0h16.94C22.42 0 24 1.58 24 3.53v16.94c0 1.95-1.58 3.53-3.53 3.53H3.53C1.58 24 0 22.42 0 20.47V3.53C0 1.58 1.58 0 3.53 0zM7.089 9.364h1.703v4.678c0 2.243-1.224 3.316-3.066 3.316-.841 0-1.586-.287-2.044-.68l.682-1.276c.394.266.766.426 1.266.426.905 0 1.459-.649 1.459-1.584v-.287c-.383.457-.926.68-1.522.68-1.459 0-2.566-1.212-2.566-2.722 0-1.509 1.107-2.721 2.566-2.721.596 0 1.139.223 1.522.68v-.511zm-1.192 3.742c.65 0 1.192-.543 1.192-1.191 0-.649-.543-1.19-1.192-1.19-.65 0-1.192.542-1.192 1.19 0 .649.543 1.191 1.192 1.191zm8.445 1.36h-1.703v-.424c-.33.372-.787.595-1.384.595-1.192 0-1.852-.829-1.852-1.775 0-1.403 1.725-1.924 3.216-1.478-.032-.457-.32-.786-.916-.786-.415 0-.894.159-1.192.329l-.511-1.222c.394-.255 1.117-.51 1.959-.51 1.245 0 2.384.701 2.384 2.615v2.657zm-1.703-2.02c-.798-.255-1.533-.116-1.533.447 0 .329.276.552.606.552.395 0 .842-.319.926-.999zm4.273-5.803v3.231c.383-.457.926-.68 1.522-.68 1.459 0 2.566 1.212 2.566 2.721 0 1.51-1.107 2.722-2.566 2.722-.596 0-1.139-.223-1.522-.68v.51h-1.703v-7.823h1.703zm1.192 6.463c.65 0 1.192-.543 1.192-1.191 0-.649-.543-1.19-1.192-1.19-.65 0-1.192.542-1.192 1.19 0 .649.543 1.191 1.192 1.191z"
	}) }));
}
//#endregion
//#region src/GabLegacyIcon.tsx
function GabLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#00d178" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "m17.0506,23.97457l5.18518,0l0,14.23933c0,6.82699 -3.72695,10.09328 -9.33471,10.09328c-2.55969,0 -4.82842,-0.87286 -6.22084,-2.0713l2.07477,-3.88283c1.19844,0.81051 2.33108,1.29543 3.85511,1.29543c2.75366,0 4.44049,-1.97432 4.44049,-4.82149l0,-0.87286c-1.16728,1.39242 -2.81947,2.0713 -4.63446,2.0713c-4.44048,0 -7.81068,-3.68885 -7.81068,-8.28521c0,-4.59289 3.37019,-8.28174 7.81068,-8.28174c1.81499,0 3.46718,0.67888 4.63446,2.0713l0,-1.55521zm-3.62997,11.39217c1.97777,0 3.62997,-1.6522 3.62997,-3.62652c0,-1.97432 -1.6522,-3.62305 -3.62997,-3.62305c-1.97778,0 -3.62997,1.64873 -3.62997,3.62305c0,1.97432 1.65219,3.62652 3.62997,3.62652zm25.7077,4.13913l-5.18518,0l0,-1.29197c-1.00448,1.13264 -2.3969,1.81152 -4.21188,1.81152c-3.62997,0 -5.63893,-2.52504 -5.63893,-5.4034c0,-4.27076 5.251,-5.85715 9.78846,-4.49937c-0.09698,-1.39241 -0.9733,-2.39343 -2.78829,-2.39343c-1.26426,0 -2.72248,0.48492 -3.62997,1.00102l-1.5552,-3.72003c1.19844,-0.77587 3.40136,-1.55174 5.96452,-1.55174c3.78931,0 7.25648,2.13365 7.25648,7.95962l0,8.08777zm-5.18518,-6.14809c-2.42806,-0.77587 -4.66563,-0.3533 -4.66563,1.36124c0,1.00101 0.84168,1.6799 1.84616,1.6799c1.20191,0 2.56315,-0.96984 2.81947,-3.04115zm13.00626,-17.66495l0,9.83695c1.16727,-1.39242 2.81946,-2.0713 4.63445,-2.0713c4.44048,0 7.81068,3.68885 7.81068,8.28174c0,4.59636 -3.37019,8.28521 -7.81068,8.28521c-1.81499,0 -3.46718,-0.67888 -4.63445,-2.0713l0,1.55174l-5.18519,0l0,-23.81304l5.18519,0zm3.62997,19.67391c1.97777,0 3.62997,-1.6522 3.62997,-3.62652c0,-1.97432 -1.6522,-3.62305 -3.62997,-3.62305c-1.97778,0 -3.62997,1.64873 -3.62997,3.62305c0,1.97432 1.65219,3.62652 3.62997,3.62652zm0,0" }) }));
}
//#endregion
//#region src/GabShareButton.tsx
var _excluded$17 = ["text"];
function gabLink(url, { text }) {
	assert(url, "gab.url");
	return "https://gab.com/compose" + objectToGetParams({
		url,
		text
	});
}
var buildGabShareUrl = gabLink;
var GabShareButton = forwardRef((_ref, ref) => {
	let { text } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$17)), {}, {
		forwardedRef: ref,
		networkName: "gab",
		networkLink: buildGabShareUrl,
		opts: { text },
		windowHeight: 640,
		windowPosition: "windowCenter",
		windowWidth: 660
	}));
});
GabShareButton.displayName = "GabShareButton";
//#endregion
//#region src/HatenaIcon.tsx
function HatenaIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsx("rect", {
			x: "1",
			y: "1",
			width: "22",
			height: "22",
			rx: "2.5"
		}),
		color: "#00A4DE",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M20.47 0C22.42 0 24 1.58 24 3.53v16.94c0 1.95-1.58 3.53-3.53 3.53H3.53C1.58 24 0 22.42 0 20.47V3.53C0 1.58 1.58 0 3.53 0h16.94zm-3.705 14.47c-.78 0-1.41.63-1.41 1.41s.63 1.414 1.41 1.414 1.41-.645 1.41-1.425-.63-1.41-1.41-1.41zM8.61 17.247c1.2 0 2.056-.042 2.58-.12.526-.084.976-.222 1.32-.412.45-.232.78-.564 1.02-.99s.36-.915.36-1.48c0-.78-.21-1.403-.63-1.87-.42-.48-.99-.734-1.74-.794.66-.18 1.156-.45 1.456-.81.315-.344.465-.824.465-1.424 0-.48-.103-.885-.3-1.26-.21-.36-.493-.645-.883-.87-.345-.195-.735-.315-1.215-.405-.464-.074-1.29-.12-2.474-.12H5.654v10.486H8.61zm.736-4.185c.705 0 1.185.088 1.44.262.27.18.39.495.39.93 0 .405-.135.69-.42.855-.27.18-.765.254-1.44.254H8.31v-2.297h1.05zm8.656.706v-7.06h-2.46v7.06H18zM8.925 9.08c.71 0 1.185.08 1.432.24.245.16.367.435.367.83 0 .38-.13.646-.39.804-.265.154-.747.232-1.452.232h-.57V9.08h.615z" }) }));
}
//#endregion
//#region src/HatenaLegacyIcon.tsx
function HatenaLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#00A4DE" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M 36.164062 33.554688 C 34.988281 32.234375 33.347656 31.5 31.253906 31.34375 C 33.125 30.835938 34.476562 30.09375 35.335938 29.09375 C 36.191406 28.09375 36.609375 26.78125 36.609375 25.101562 C 36.628906 23.875 36.332031 22.660156 35.75 21.578125 C 35.160156 20.558594 34.292969 19.71875 33.253906 19.160156 C 32.304688 18.640625 31.175781 18.265625 29.847656 18.042969 C 28.523438 17.824219 26.195312 17.730469 22.867188 17.730469 L 14.769531 17.730469 L 14.769531 47.269531 L 23.113281 47.269531 C 26.46875 47.269531 28.886719 47.15625 30.367188 46.929688 C 31.851562 46.695312 33.085938 46.304688 34.085938 45.773438 C 35.289062 45.148438 36.28125 44.179688 36.933594 42.992188 C 37.597656 41.796875 37.933594 40.402344 37.933594 38.816406 C 37.933594 36.621094 37.347656 34.867188 36.164062 33.554688 Z M 22.257812 24.269531 L 23.984375 24.269531 C 25.988281 24.269531 27.332031 24.496094 28.015625 24.945312 C 28.703125 25.402344 29.042969 26.183594 29.042969 27.285156 C 29.042969 28.390625 28.664062 29.105469 27.9375 29.550781 C 27.210938 29.992188 25.84375 30.199219 23.855469 30.199219 L 22.257812 30.199219 Z M 29.121094 41.210938 C 28.328125 41.691406 26.976562 41.925781 25.078125 41.925781 L 22.257812 41.925781 L 22.257812 35.488281 L 25.195312 35.488281 C 27.144531 35.488281 28.496094 35.738281 29.210938 36.230469 C 29.925781 36.726562 30.304688 37.582031 30.304688 38.832031 C 30.304688 40.078125 29.914062 40.742188 29.105469 41.222656 Z M 29.121094 41.210938 M 46.488281 39.792969 C 44.421875 39.792969 42.742188 41.46875 42.742188 43.535156 C 42.742188 45.605469 44.421875 47.28125 46.488281 47.28125 C 48.554688 47.28125 50.230469 45.605469 50.230469 43.535156 C 50.230469 41.46875 48.554688 39.792969 46.488281 39.792969 Z M 46.488281 39.792969 M 43.238281 17.730469 L 49.738281 17.730469 L 49.738281 37.429688 L 43.238281 37.429688 Z M 43.238281 17.730469 " }) }));
}
//#endregion
//#region src/HatenaShareButton.tsx
var _excluded$16 = ["shareTitle"];
function hatenaLink(url, { shareTitle }) {
	assert(url, "hatena.url");
	return `http://b.hatena.ne.jp/add?mode=confirm&url=${url}&title=${shareTitle}`;
}
var buildHatenaShareUrl = hatenaLink;
var HatenaShareButton = forwardRef((_ref, ref) => {
	let { shareTitle } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$16)), {}, {
		forwardedRef: ref,
		networkName: "hatena",
		networkLink: buildHatenaShareUrl,
		opts: { shareTitle },
		windowHeight: 460,
		windowPosition: "windowCenter",
		windowWidth: 660
	}));
});
HatenaShareButton.displayName = "HatenaShareButton";
//#endregion
//#region src/InstapaperIcon.tsx
function InstapaperIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		badge: { scale: .5 },
		color: "#1F1F1F"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M14.766 20.259c0 1.819.271 2.089 2.934 2.292V24H6.301v-1.449c2.666-.203 2.934-.473 2.934-2.292V3.708c0-1.784-.27-2.089-2.934-2.292V0h11.398v1.416c-2.662.203-2.934.506-2.934 2.292v16.551z" }) }));
}
//#endregion
//#region src/InstapaperLegacyIcon.tsx
function InstapaperLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#1F1F1F" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M35.688 43.012c0 2.425.361 2.785 3.912 3.056V48H24.401v-1.932c3.555-.27 3.912-.63 3.912-3.056V20.944c0-2.379-.36-2.785-3.912-3.056V16H39.6v1.888c-3.55.27-3.912.675-3.912 3.056v22.068h.001z" }) }));
}
//#endregion
//#region src/InstapaperShareButton.tsx
var _excluded$15 = ["description", "shareTitle"];
function instapaperLink(url, { shareTitle, description }) {
	assert(url, "instapaper.url");
	return "http://www.instapaper.com/hello2" + objectToGetParams({
		url,
		title: shareTitle,
		description
	});
}
var buildInstapaperShareUrl = instapaperLink;
var InstapaperShareButton = forwardRef((_ref, ref) => {
	let { description, shareTitle } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$15)), {}, {
		forwardedRef: ref,
		networkName: "instapaper",
		networkLink: buildInstapaperShareUrl,
		opts: {
			shareTitle,
			description
		},
		windowHeight: 500,
		windowPosition: "windowCenter",
		windowWidth: 500
	}));
});
InstapaperShareButton.displayName = "InstapaperShareButton";
//#endregion
//#region src/LineIcon.tsx
function LineIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsx("rect", {
			x: "4",
			y: "7",
			width: "16",
			height: "7",
			rx: "1"
		}),
		color: "#06C755",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63h2.386c.346 0 .627.285.627.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.63-.63.346 0 .628.285.628.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.282.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314" }) }));
}
//#endregion
//#region src/LineLegacyIcon.tsx
function LineLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#06C755" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M52.62 30.138c0 3.693-1.432 7.019-4.42 10.296h.001c-4.326 4.979-14 11.044-16.201 11.972-2.2.927-1.876-.591-1.786-1.112l.294-1.765c.069-.527.142-1.343-.066-1.865-.232-.574-1.146-.872-1.817-1.016-9.909-1.31-17.245-8.238-17.245-16.51 0-9.226 9.251-16.733 20.62-16.733 11.37 0 20.62 7.507 20.62 16.733zM27.81 25.68h-1.446a.402.402 0 0 0-.402.401v8.985c0 .221.18.4.402.4h1.446a.401.401 0 0 0 .402-.4v-8.985a.402.402 0 0 0-.402-.401zm9.956 0H36.32a.402.402 0 0 0-.402.401v5.338L31.8 25.858a.39.39 0 0 0-.031-.04l-.002-.003-.024-.025-.008-.007a.313.313 0 0 0-.032-.026.255.255 0 0 1-.021-.014l-.012-.007-.021-.012-.013-.006-.023-.01-.013-.005-.024-.008-.014-.003-.023-.005-.017-.002-.021-.003-.021-.002h-1.46a.402.402 0 0 0-.402.401v8.985c0 .221.18.4.402.4h1.446a.401.401 0 0 0 .402-.4v-5.337l4.123 5.568c.028.04.063.072.101.099l.004.003a.236.236 0 0 0 .025.015l.012.006.019.01a.154.154 0 0 1 .019.008l.012.004.028.01.005.001a.442.442 0 0 0 .104.013h1.446a.4.4 0 0 0 .401-.4v-8.985a.402.402 0 0 0-.401-.401zm-13.442 7.537h-3.93v-7.136a.401.401 0 0 0-.401-.401h-1.447a.4.4 0 0 0-.401.401v8.984a.392.392 0 0 0 .123.29c.072.068.17.111.278.111h5.778a.4.4 0 0 0 .401-.401v-1.447a.401.401 0 0 0-.401-.401zm21.429-5.287c.222 0 .401-.18.401-.402v-1.446a.401.401 0 0 0-.401-.402h-5.778a.398.398 0 0 0-.279.113l-.005.004-.006.008a.397.397 0 0 0-.111.276v8.984c0 .108.043.206.112.278l.005.006a.401.401 0 0 0 .284.117h5.778a.4.4 0 0 0 .401-.401v-1.447a.401.401 0 0 0-.401-.401h-3.93v-1.519h3.93c.222 0 .401-.18.401-.402V29.85a.401.401 0 0 0-.401-.402h-3.93V27.93h3.93z" }) }));
}
//#endregion
//#region src/LineShareButton.tsx
var _excluded$14 = ["text"];
function lineLink(url, { text }) {
	assert(url, "line.url");
	return "https://social-plugins.line.me/lineit/share" + objectToGetParams({
		url,
		text
	});
}
var buildLineShareUrl = lineLink;
var LineShareButton = forwardRef((_ref, ref) => {
	let { text } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$14)), {}, {
		forwardedRef: ref,
		networkName: "line",
		networkLink: buildLineShareUrl,
		opts: { text },
		windowHeight: 500,
		windowWidth: 500
	}));
});
LineShareButton.displayName = "LineShareButton";
//#endregion
//#region src/LinkedinIcon.tsx
function LinkedinIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsx("rect", {
			x: "1",
			y: "1",
			width: "22",
			height: "22",
			rx: "1"
		}),
		color: "#0A66C2",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 4.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" }) }));
}
//#endregion
//#region src/LinkedinLegacyIcon.tsx
function LinkedinLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#0077B5" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M20.4,44h5.4V26.6h-5.4V44z M23.1,18c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1 c1.7,0,3.1-1.4,3.1-3.1C26.2,19.4,24.8,18,23.1,18z M39.5,26.2c-2.6,0-4.4,1.4-5.1,2.8h-0.1v-2.4h-5.2V44h5.4v-8.6 c0-2.3,0.4-4.5,3.2-4.5c2.8,0,2.8,2.6,2.8,4.6V44H46v-9.5C46,29.8,45,26.2,39.5,26.2z" }) }));
}
//#endregion
//#region src/LinkedinShareButton.tsx
function linkedinLink(url) {
	assert(url, "linkedin.url");
	return "https://linkedin.com/shareArticle" + objectToGetParams({
		url,
		mini: "true"
	});
}
var buildLinkedinShareUrl = linkedinLink;
var LinkedinShareButton = forwardRef((props, ref) => /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, props), {}, {
	forwardedRef: ref,
	networkName: "linkedin",
	networkLink: buildLinkedinShareUrl,
	opts: {},
	windowHeight: 600,
	windowWidth: 750
})));
LinkedinShareButton.displayName = "LinkedinShareButton";
//#endregion
//#region src/LivejournalIcon.tsx
function LivejournalIcon(props) {
	return /* @__PURE__ */ jsxs(RawIconBase, _objectSpread2(_objectSpread2({
		color: "#00B0EA",
		viewBox: "0 0 24 24"
	}, props), {}, { children: [
		/* @__PURE__ */ jsx("circle", {
			cx: "12.76",
			cy: "12.771",
			r: "11.24"
		}),
		/* @__PURE__ */ jsx("path", { d: "M2.475 8.317 0 5.85C1.125 3.237 3.216 1.14 5.823 0h.006l2.469 2.463c-2.606 1.14-4.695 3.24-5.823 5.854z" }),
		/* @__PURE__ */ jsx("path", {
			fill: "#15374C",
			d: "m2.475 8.317 9.143 9.114c1.125-2.613 3.218-4.71 5.823-5.85L8.306 2.461h-.008c-2.606 1.14-4.695 3.24-5.823 5.856z"
		}),
		/* @__PURE__ */ jsx("path", {
			fill: "white",
			d: "M11.618 17.431c1.125-2.613 3.218-4.71 5.823-5.85l1.538 7.397z"
		}),
		/* @__PURE__ */ jsx("path", {
			fill: "#15374C",
			d: "M18.09 14.696c-1.512.664-2.726 1.885-3.381 3.399l4.27.883-.886-4.282h-.003z"
		})
	] }));
}
//#endregion
//#region src/LivejournalLegacyIcon.tsx
function LivejournalLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#00B0EA" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M18.3407821,28.1764706 L21.9441341,31.789916 L33.0055865,42.882353 C33.0055865,42.882353 33.0893855,42.9663866 33.0893855,42.9663866 L46.6648046,47 C46.6648046,47 46.6648046,47 46.7486034,47 C46.8324022,47 46.8324022,47 46.9162012,46.9159664 C47,46.8319327 47,46.8319327 47,46.7478991 L42.9776536,33.1344537 C42.9776536,33.1344537 42.9776536,33.1344537 42.8938548,33.0504202 L31.1620111,21.3697479 L31.1620111,21.3697479 L28.1452514,18.2605042 C27.3072626,17.4201681 26.5530726,17 25.7150838,17 C24.2905028,17 23.0335195,18.3445378 21.5251397,19.8571429 C21.273743,20.1092437 20.9385475,20.4453781 20.6871508,20.697479 C20.3519553,21.0336134 20.1005586,21.2857143 19.849162,21.5378151 C18.3407821,22.9663866 17.0837989,24.2268908 17,25.7394958 C17.0837989,26.4957983 17.5027933,27.3361345 18.3407821,28.1764706 Z M39.9012319,39.6134454 C39.7336341,39.4453781 39.4822374,37.6806724 40.2364275,36.8403362 C40.9906174,36.0840337 41.6610084,36 42.1638017,36 C42.3313995,36 42.4989973,36 42.5827961,36 L44.8453659,43.5630253 L43.5883828,44.8235295 L36.0464833,42.5546218 C35.9626843,42.2184874 35.8788855,41.2100841 36.8844722,40.2016807 C37.2196676,39.8655463 37.8900587,39.6134454 38.5604498,39.6134454 C39.147042,39.6134454 39.5660364,39.7815126 39.5660364,39.7815126 C39.6498353,39.8655463 39.8174331,39.8655463 39.8174331,39.7815126 C39.9850307,39.7815126 39.9850307,39.697479 39.9012319,39.6134454 Z" }) }));
}
//#endregion
//#region src/LivejournalShareButton.tsx
var _excluded$13 = ["description", "shareTitle"];
function livejournalLink(url, { shareTitle, description }) {
	assert(url, "livejournal.url");
	return "https://www.livejournal.com/update.bml" + objectToGetParams({
		subject: shareTitle,
		event: description
	});
}
var buildLivejournalShareUrl = livejournalLink;
var LivejournalShareButton = forwardRef((_ref, ref) => {
	let { description, shareTitle } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$13)), {}, {
		forwardedRef: ref,
		networkName: "livejournal",
		networkLink: buildLivejournalShareUrl,
		opts: {
			shareTitle,
			description
		},
		windowHeight: 460,
		windowWidth: 660
	}));
});
LivejournalShareButton.displayName = "LivejournalShareButton";
//#endregion
//#region src/MailruIcon.tsx
function MailruIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		color: "#005FF9",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M15.61 12c0 1.99-1.62 3.61-3.61 3.61-1.99 0-3.61-1.62-3.61-3.61 0-1.99 1.62-3.61 3.61-3.61 1.99 0 3.61 1.62 3.61 3.61M12 0C5.383 0 0 5.383 0 12s5.383 12 12 12c2.424 0 4.761-.722 6.76-2.087l.034-.024-1.617-1.879-.027.017A9.494 9.494 0 0 1 12 21.54c-5.26 0-9.54-4.28-9.54-9.54 0-5.26 4.28-9.54 9.54-9.54 5.26 0 9.54 4.28 9.54 9.54a9.63 9.63 0 0 1-.225 2.05c-.301 1.239-1.169 1.618-1.82 1.568-.654-.053-1.42-.52-1.426-1.661V12A6.076 6.076 0 0 0 12 5.93 6.076 6.076 0 0 0 5.93 12 6.076 6.076 0 0 0 12 18.07a6.02 6.02 0 0 0 4.3-1.792 3.9 3.9 0 0 0 3.32 1.805c.874 0 1.74-.292 2.437-.821.719-.547 1.256-1.336 1.553-2.285.047-.154.135-.504.135-.507l.002-.013c.175-.76.253-1.52.253-2.457 0-6.617-5.383-12-12-12" }) }));
}
//#endregion
//#region src/MailruLegacyIcon.tsx
function MailruLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#005FF9" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M39.7107745,17 C41.6619755,17 43.3204965,18.732852 43.3204965,21.0072202 C43.3204965,23.2815885 41.7595357,25.0144404 39.7107745,25.0144404 C37.7595732,25.0144404 36.1010522,23.2815885 36.1010522,21.0072202 C36.1010522,18.732852 37.7595732,17 39.7107745,17 Z M24.3938451,17 C26.3450463,17 28.0035672,18.732852 28.0035672,21.0072202 C28.0035672,23.2815885 26.4426063,25.0144404 24.3938451,25.0144404 C22.4426439,25.0144404 20.7841229,23.2815885 20.7841229,21.0072202 C20.7841229,18.732852 22.4426439,17 24.3938451,17 Z M51.9057817,43.4259928 C51.7106617,44.0758123 51.4179815,44.6173285 50.9301812,44.9422383 C50.637501,45.1588448 50.2472607,45.267148 49.8570205,45.267148 C49.07654,45.267148 48.3936197,44.833935 48.0033795,44.0758123 L46.2472985,40.7184115 L45.759498,41.2599278 C42.5400162,44.9422383 37.466893,47 32.0035297,47 C26.5401664,47 21.5646034,44.9422383 18.2475614,41.2599278 L17.7597611,40.7184115 L16.00368,44.0758123 C15.6134398,44.833935 14.9305194,45.267148 14.1500389,45.267148 C13.7597986,45.267148 13.3695584,45.1588448 13.0768782,44.9422383 C12.0037176,44.2924187 11.7110374,42.7761733 12.2963978,41.5848375 L16.7841605,33.0288807 C17.1744007,32.270758 17.8573211,31.8375453 18.6378016,31.8375453 C19.0280418,31.8375453 19.4182821,31.9458485 19.7109623,32.1624548 C20.7841229,32.8122743 21.0768031,34.3285197 20.4914427,35.5198555 L20.1012025,36.2779783 L20.2963226,36.602888 C22.4426439,39.9602888 27.0279667,42.234657 31.9059697,42.234657 C36.7839727,42.234657 41.3692955,40.068592 43.5156167,36.602888 L43.7107367,36.2779783 L43.3204965,35.6281587 C43.0278165,35.0866425 42.9302562,34.436823 43.1253765,33.7870035 C43.3204965,33.137184 43.6131767,32.5956678 44.100977,32.270758 C44.3936572,32.0541515 44.7838975,31.9458485 45.1741377,31.9458485 C45.9546182,31.9458485 46.6375385,32.3790613 47.0277787,33.137184 L51.5155415,41.6931408 C52.003342,42.234657 52.100902,42.8844765 51.9057817,43.4259928 Z" }) }));
}
//#endregion
//#region src/MailruShareButton.tsx
var _excluded$12 = [
	"description",
	"imageUrl",
	"shareTitle"
];
function mailruLink(url, { shareTitle, description, imageUrl }) {
	assert(url, "mailru.url");
	return "https://connect.mail.ru/share" + objectToGetParams({
		url,
		title: shareTitle,
		description,
		image_url: imageUrl
	});
}
var buildMailruShareUrl = mailruLink;
var MailruShareButton = forwardRef((_ref, ref) => {
	let { description, imageUrl, shareTitle } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$12)), {}, {
		forwardedRef: ref,
		networkName: "mailru",
		networkLink: buildMailruShareUrl,
		opts: {
			shareTitle,
			description,
			imageUrl
		},
		windowHeight: 460,
		windowWidth: 660
	}));
});
MailruShareButton.displayName = "MailruShareButton";
//#endregion
//#region src/nativeShare.ts
function normalizeNativeShareData(data) {
	var _data$files;
	return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, data.title ? { title: data.title } : {}), data.text ? { text: data.text } : {}), data.url ? { url: data.url } : {}), ((_data$files = data.files) === null || _data$files === void 0 ? void 0 : _data$files.length) ? { files: data.files } : {});
}
function hasSharePayload(data) {
	var _data$files2;
	return Boolean(data.title || data.text || data.url || ((_data$files2 = data.files) === null || _data$files2 === void 0 ? void 0 : _data$files2.length));
}
function canNativeShare(data = {}) {
	var _shareData$files;
	if (typeof navigator === "undefined" || typeof navigator.share !== "function") return false;
	if (!hasSharePayload(data)) return false;
	const shareData = normalizeNativeShareData(data);
	if ((_shareData$files = shareData.files) === null || _shareData$files === void 0 ? void 0 : _shareData$files.length) return typeof navigator.canShare === "function" && navigator.canShare(shareData);
	if (typeof navigator.canShare === "function") try {
		return navigator.canShare(shareData);
	} catch (_unused) {
		return true;
	}
	return true;
}
async function shareNative(data) {
	if (!canNativeShare(data)) {
		var _data$files3;
		throw new Error(((_data$files3 = data.files) === null || _data$files3 === void 0 ? void 0 : _data$files3.length) ? "native share with files is not supported" : "native share is not supported");
	}
	await navigator.share(normalizeNativeShareData(data));
}
//#endregion
//#region src/NativeShareButton.tsx
var _excluded$11 = [
	"aria-label",
	"aria-labelledby",
	"beforeOnClick",
	"children",
	"className",
	"disabled",
	"disabledStyle",
	"files",
	"htmlTitle",
	"onClick",
	"resetButtonStyle",
	"style",
	"text",
	"title",
	"type",
	"url"
];
var NativeShareButton = forwardRef((_ref, ref) => {
	let { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, beforeOnClick, children, className, disabled, disabledStyle = { opacity: .6 }, files, htmlTitle, onClick, resetButtonStyle = true, style, text, title, type = "button", url } = _ref, rest = _objectWithoutProperties(_ref, _excluded$11);
	const buttonBorderRadius = getButtonBorderRadius(children);
	const shareData = {
		files,
		text,
		title,
		url
	};
	const fallbackAriaLabel = !ariaLabel && !ariaLabelledBy && !hasTextContent(children) ? "Share" : void 0;
	const isUnavailable = !canNativeShare(shareData);
	const handleClick = async (event) => {
		if (disabled) return;
		if (beforeOnClick) {
			const returnVal = beforeOnClick();
			if (isPromise(returnVal)) await returnVal;
		}
		onClick === null || onClick === void 0 || onClick(event);
		if (event.defaultPrevented || isUnavailable) return;
		try {
			await shareNative(shareData);
		} catch (error) {
			if (!(error instanceof DOMException && error.name === "AbortError")) throw error;
		}
	};
	const newClassName = cx("react-share__NativeShareButton", {
		"react-share__NativeShareButton--disabled": !!disabled || isUnavailable,
		disabled: !!disabled || isUnavailable
	}, className);
	const newStyle = resetButtonStyle ? _objectSpread2(_objectSpread2({
		backgroundColor: "transparent",
		border: "none",
		padding: 0,
		display: "inline-flex",
		borderRadius: buttonBorderRadius,
		outlineOffset: 2,
		font: "inherit",
		color: "inherit",
		cursor: disabled || isUnavailable ? "not-allowed" : "pointer"
	}, style), (disabled || isUnavailable) && disabledStyle) : _objectSpread2(_objectSpread2({}, style), (disabled || isUnavailable) && disabledStyle);
	return /* @__PURE__ */ jsx("button", _objectSpread2(_objectSpread2({}, rest), {}, {
		"aria-label": ariaLabel || fallbackAriaLabel,
		"aria-labelledby": ariaLabelledBy,
		className: newClassName,
		disabled: disabled || isUnavailable,
		onClick: handleClick,
		ref,
		style: newStyle,
		title: htmlTitle,
		type,
		children
	}));
});
NativeShareButton.displayName = "NativeShareButton";
//#endregion
//#region src/NativeShareIcon.tsx
function NativeShareIcon(props) {
	return /* @__PURE__ */ jsxs(RawIconBase, _objectSpread2(_objectSpread2({
		badge: { scale: .6 },
		color: "#0A84FF",
		outlined: true
	}, props), {}, { children: [
		/* @__PURE__ */ jsx("path", { d: "M12 2v13" }),
		/* @__PURE__ */ jsx("path", { d: "m16 6-4-4-4 4" }),
		/* @__PURE__ */ jsx("path", { d: "M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8" })
	] }));
}
//#endregion
//#region src/NativeShareLegacyIcon.tsx
function NativeShareLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#0A84FF" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M32 14L21 25h7v14h8V25h7L32 14zm-9 29c-3.314 0-6 2.686-6 6v1h30v-1c0-3.314-2.686-6-6-6H23z" }) }));
}
//#endregion
//#region src/OKIcon.tsx
function OKIcon(props) {
	return /* @__PURE__ */ jsxs(RawIconBase, _objectSpread2(_objectSpread2({
		color: "#FF7700",
		viewBox: "0 0 24 24"
	}, props), {}, { children: [
		/* @__PURE__ */ jsx("path", { d: "M0 11.519C0 6.091 0 3.377 1.688 1.688C3.377 0 6.091 0 11.519 0H12.481C17.909 0 20.623 0 22.312 1.688C24 3.377 24 6.091 24 11.519V12.481C24 17.909 24 20.623 22.312 22.312C20.623 24 17.909 24 12.481 24H11.519C6.091 24 3.377 24 1.688 22.312C0 20.623 0 17.909 0 12.481V11.519Z" }),
		/* @__PURE__ */ jsx("path", {
			fill: "white",
			d: "M12 11.936C13.175 11.936 14.233 11.466 15.003 10.696C15.772 9.927 16.242 8.858 16.242 7.694C16.242 6.518 15.772 5.46 15.003 4.691C14.233 3.922 13.175 3.451 12 3.451C10.825 3.451 9.767 3.922 8.997 4.691C8.228 5.46 7.758 6.518 7.758 7.694C7.758 8.869 8.228 9.927 8.997 10.696C9.767 11.455 10.825 11.936 12 11.936ZM10.643 6.326C10.996 5.973 11.476 5.76 12 5.76C12.534 5.76 13.015 5.973 13.357 6.326C13.71 6.679 13.923 7.159 13.923 7.683C13.923 8.207 13.71 8.698 13.357 9.04C13.004 9.393 12.524 9.606 12 9.606C11.466 9.606 10.985 9.393 10.643 9.04C10.29 8.687 10.077 8.207 10.077 7.683C10.077 7.159 10.29 6.679 10.643 6.326Z"
		}),
		/* @__PURE__ */ jsx("path", {
			fill: "white",
			d: "M17.706 13.645L16.456 11.946C16.381 11.85 16.253 11.84 16.157 11.914C14.981 12.919 13.539 13.56 11.989 13.56C10.44 13.56 8.997 12.908 7.822 11.914C7.737 11.84 7.598 11.85 7.523 11.946L6.283 13.645C6.219 13.731 6.241 13.848 6.315 13.913C7.363 14.767 8.581 15.334 9.852 15.633L7.224 20.26C7.16 20.388 7.256 20.548 7.405 20.548H9.981C10.055 20.548 10.13 20.506 10.162 20.431L12 16.327L13.838 20.431C13.87 20.506 13.945 20.548 14.02 20.548H16.595C16.745 20.548 16.841 20.388 16.766 20.26L14.137 15.633C15.409 15.334 16.616 14.767 17.664 13.913C17.749 13.848 17.76 13.731 17.706 13.645Z"
		})
	] }));
}
//#endregion
//#region src/OKLegacyIcon.tsx
function OKLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#FF7700" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M39,30c-1,0-3,2-7,2s-6-2-7-2c-1.1,0-2,0.9-2,2c0,1,0.6,1.5,1,1.7c1.2,0.7,5,2.3,5,2.3l-4.3,5.4   c0,0-0.8,0.9-0.8,1.6c0,1.1,0.9,2,2,2c1,0,1.5-0.7,1.5-0.7S32,39,32,39c0,0,4.5,5.3,4.5,5.3S37,45,38,45c1.1,0,2-0.9,2-2   c0-0.6-0.8-1.6-0.8-1.6L35,36c0,0,3.8-1.6,5-2.3c0.4-0.3,1-0.7,1-1.7C41,30.9,40.1,30,39,30z M32,15c-3.9,0-7,3.1-7,7s3.1,7,7,7c3.9,0,7-3.1,7-7S35.9,15,32,15z M32,25.5   c-1.9,0-3.5-1.6-3.5-3.5c0-1.9,1.6-3.5,3.5-3.5c1.9,0,3.5,1.6,3.5,3.5C35.5,23.9,33.9,22.5,35,22.5z " }) }));
}
//#endregion
//#region src/OKShareButton.tsx
var _excluded$10 = [
	"description",
	"image",
	"shareTitle"
];
function okLink(url, { shareTitle, description, image }) {
	assert(url, "ok.url");
	return "https://connect.ok.ru/offer" + objectToGetParams({
		url,
		title: shareTitle,
		description,
		imageUrl: image
	});
}
var buildOKShareUrl = okLink;
var OKShareButton = forwardRef((_ref, ref) => {
	let { description, image, shareTitle } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$10)), {}, {
		forwardedRef: ref,
		networkName: "ok",
		networkLink: buildOKShareUrl,
		opts: {
			shareTitle,
			description,
			image
		},
		windowHeight: 480,
		windowPosition: "screenCenter",
		windowWidth: 588
	}));
});
OKShareButton.displayName = "OKShareButton";
//#endregion
//#region src/PinterestIcon.tsx
function PinterestIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
			cx: "12.017",
			cy: "11.987",
			r: "11"
		}), /* @__PURE__ */ jsx("path", { d: "M7.3 19.4h2.9l-1.6 4.075a11.986 11.986 0 0 1-1.05-.366z" })] }),
		color: "#E60023",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M12.017 0C5.396 0 .029 5.367.029 11.987c0 5.079 3.158 9.417 7.618 11.162-.105-.949-.199-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.099.12.112.225.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.354-.629-2.758-1.379l-.749 2.848c-.269 1.045-1.004 2.352-1.498 3.146 1.123.345 2.306.535 3.55.535 6.607 0 11.985-5.365 11.985-11.987C23.97 5.39 18.592.026 11.985.026L12.017 0z" }) }));
}
//#endregion
//#region src/PinterestLegacyIcon.tsx
function PinterestLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#E60023" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M32,16c-8.8,0-16,7.2-16,16c0,6.6,3.9,12.2,9.6,14.7c0-1.1,0-2.5,0.3-3.7 c0.3-1.3,2.1-8.7,2.1-8.7s-0.5-1-0.5-2.5c0-2.4,1.4-4.1,3.1-4.1c1.5,0,2.2,1.1,2.2,2.4c0,1.5-0.9,3.7-1.4,5.7 c-0.4,1.7,0.9,3.1,2.5,3.1c3,0,5.1-3.9,5.1-8.5c0-3.5-2.4-6.1-6.7-6.1c-4.9,0-7.9,3.6-7.9,7.7c0,1.4,0.4,2.4,1.1,3.1 c0.3,0.3,0.3,0.5,0.2,0.9c-0.1,0.3-0.3,1-0.3,1.3c-0.1,0.4-0.4,0.6-0.8,0.4c-2.2-0.9-3.3-3.4-3.3-6.1c0-4.5,3.8-10,11.4-10 c6.1,0,10.1,4.4,10.1,9.2c0,6.3-3.5,11-8.6,11c-1.7,0-3.4-0.9-3.9-2c0,0-0.9,3.7-1.1,4.4c-0.3,1.2-1,2.5-1.6,3.4 c1.4,0.4,3,0.7,4.5,0.7c8.8,0,16-7.2,16-16C48,23.2,40.8,16,32,16z" }) }));
}
//#endregion
//#region src/PinterestShareButton.tsx
var _excluded$9 = [
	"description",
	"media",
	"pinId"
];
function pinterestLink(url, { media, description, pinId }) {
	if (pinId) return `https://pinterest.com/pin/${pinId}/repin/x/`;
	assert(url, "pinterest.url");
	assert(media, "pinterest.media");
	return "https://pinterest.com/pin/create/button/" + objectToGetParams({
		url,
		media,
		description
	});
}
var buildPinterestShareUrl = pinterestLink;
var PinterestShareButton = forwardRef((_ref, ref) => {
	let { description, media, pinId } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$9)), {}, {
		forwardedRef: ref,
		networkName: "pinterest",
		networkLink: buildPinterestShareUrl,
		opts: {
			media,
			description,
			pinId
		},
		windowHeight: 730,
		windowWidth: 1e3
	}));
});
PinterestShareButton.displayName = "PinterestShareButton";
//#endregion
//#region src/RedditIcon.tsx
function RedditIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsx("circle", {
			cx: "12",
			cy: "12",
			r: "10.6"
		}),
		color: "#FF4500",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.64 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z" }) }));
}
//#endregion
//#region src/RedditLegacyIcon.tsx
function RedditLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#FF4500" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M 53.34375 32 C 53.277344 30.160156 52.136719 28.53125 50.429688 27.839844 C 48.722656 27.148438 46.769531 27.523438 45.441406 28.800781 C 41.800781 26.324219 37.519531 24.957031 33.121094 24.863281 L 35.199219 14.878906 L 42.046875 16.320312 C 42.214844 17.882812 43.496094 19.09375 45.066406 19.171875 C 46.636719 19.253906 48.03125 18.183594 48.359375 16.644531 C 48.6875 15.105469 47.847656 13.558594 46.382812 12.992188 C 44.914062 12.425781 43.253906 13.007812 42.464844 14.367188 L 34.625 12.800781 C 34.363281 12.742188 34.09375 12.792969 33.871094 12.9375 C 33.648438 13.082031 33.492188 13.308594 33.441406 13.566406 L 31.070312 24.671875 C 26.617188 24.738281 22.277344 26.105469 18.59375 28.609375 C 17.242188 27.339844 15.273438 26.988281 13.570312 27.707031 C 11.863281 28.429688 10.746094 30.089844 10.71875 31.941406 C 10.691406 33.789062 11.757812 35.484375 13.441406 36.257812 C 13.402344 36.726562 13.402344 37.195312 13.441406 37.664062 C 13.441406 44.832031 21.792969 50.65625 32.097656 50.65625 C 42.398438 50.65625 50.753906 44.832031 50.753906 37.664062 C 50.789062 37.195312 50.789062 36.726562 50.753906 36.257812 C 52.363281 35.453125 53.371094 33.800781 53.34375 32 Z M 21.34375 35.199219 C 21.34375 33.433594 22.777344 32 24.542969 32 C 26.3125 32 27.742188 33.433594 27.742188 35.199219 C 27.742188 36.96875 26.3125 38.398438 24.542969 38.398438 C 22.777344 38.398438 21.34375 36.96875 21.34375 35.199219 Z M 39.9375 44 C 37.664062 45.710938 34.871094 46.582031 32.03125 46.464844 C 29.191406 46.582031 26.398438 45.710938 24.128906 44 C 23.847656 43.65625 23.871094 43.15625 24.183594 42.839844 C 24.5 42.527344 25 42.503906 25.34375 42.785156 C 27.269531 44.195312 29.617188 44.90625 32 44.800781 C 34.386719 44.929688 36.746094 44.242188 38.6875 42.847656 C 39.042969 42.503906 39.605469 42.511719 39.953125 42.863281 C 40.296875 43.21875 40.289062 43.785156 39.9375 44.128906 Z M 39.359375 38.527344 C 37.59375 38.527344 36.160156 37.09375 36.160156 35.328125 C 36.160156 33.5625 37.59375 32.128906 39.359375 32.128906 C 41.128906 32.128906 42.558594 33.5625 42.558594 35.328125 C 42.59375 36.203125 42.269531 37.054688 41.65625 37.6875 C 41.046875 38.316406 40.203125 38.664062 39.328125 38.65625 Z M 39.359375 38.527344" }) }));
}
//#endregion
//#region src/RedditShareButton.tsx
var _excluded$8 = ["shareTitle"];
function redditLink(url, { shareTitle }) {
	assert(url, "reddit.url");
	return "https://www.reddit.com/submit" + objectToGetParams({
		url,
		title: shareTitle
	});
}
var buildRedditShareUrl = redditLink;
var RedditShareButton = forwardRef((_ref, ref) => {
	let { shareTitle } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$8)), {}, {
		forwardedRef: ref,
		networkName: "reddit",
		networkLink: buildRedditShareUrl,
		opts: { shareTitle },
		windowHeight: 460,
		windowPosition: "windowCenter",
		windowWidth: 660
	}));
});
RedditShareButton.displayName = "RedditShareButton";
//#endregion
//#region src/TelegramIcon.tsx
function TelegramIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsx("circle", {
			cx: "12",
			cy: "12",
			r: "11"
		}),
		color: "#26A5E4",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z" }) }));
}
//#endregion
//#region src/TelegramLegacyIcon.tsx
function TelegramLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#26A5E4" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "m45.90873,15.44335c-0.6901,-0.0281 -1.37668,0.14048 -1.96142,0.41265c-0.84989,0.32661 -8.63939,3.33986 -16.5237,6.39174c-3.9685,1.53296 -7.93349,3.06593 -10.98537,4.24067c-3.05012,1.1765 -5.34694,2.05098 -5.4681,2.09312c-0.80775,0.28096 -1.89996,0.63566 -2.82712,1.72788c-0.23354,0.27218 -0.46884,0.62161 -0.58825,1.10275c-0.11941,0.48114 -0.06673,1.09222 0.16682,1.5716c0.46533,0.96052 1.25376,1.35737 2.18443,1.71383c3.09051,0.99037 6.28638,1.93508 8.93263,2.8236c0.97632,3.44171 1.91401,6.89571 2.84116,10.34268c0.30554,0.69185 0.97105,0.94823 1.65764,0.95525l-0.00351,0.03512c0,0 0.53908,0.05268 1.06412,-0.07375c0.52679,-0.12292 1.18879,-0.42846 1.79109,-0.99212c0.662,-0.62161 2.45836,-2.38812 3.47683,-3.38552l7.6736,5.66477l0.06146,0.03512c0,0 0.84989,0.59703 2.09312,0.68132c0.62161,0.04214 1.4399,-0.07726 2.14229,-0.59176c0.70766,-0.51626 1.1765,-1.34683 1.396,-2.29506c0.65673,-2.86224 5.00979,-23.57745 5.75257,-27.00686l-0.02107,0.08077c0.51977,-1.93157 0.32837,-3.70159 -0.87096,-4.74991c-0.60054,-0.52152 -1.2924,-0.7498 -1.98425,-0.77965l0,0.00176zm-0.2072,3.29069c0.04741,0.0439 0.0439,0.0439 0.00351,0.04741c-0.01229,-0.00351 0.14048,0.2072 -0.15804,1.32576l-0.01229,0.04214l-0.00878,0.03863c-0.75858,3.50668 -5.15554,24.40802 -5.74203,26.96472c-0.08077,0.34417 -0.11414,0.31959 -0.09482,0.29852c-0.1756,-0.02634 -0.50045,-0.16506 -0.52679,-0.1756l-13.13468,-9.70175c4.4988,-4.33199 9.09945,-8.25307 13.744,-12.43229c0.8218,-0.41265 0.68483,-1.68573 -0.29852,-1.70681c-1.04305,0.24584 -1.92279,0.99564 -2.8798,1.47502c-5.49971,3.2626 -11.11882,6.13186 -16.55882,9.49279c-2.792,-0.97105 -5.57873,-1.77704 -8.15298,-2.57601c2.2336,-0.89555 4.00889,-1.55579 5.75608,-2.23009c3.05188,-1.1765 7.01687,-2.7042 10.98537,-4.24067c7.94051,-3.06944 15.92667,-6.16346 16.62028,-6.43037l0.05619,-0.02283l0.05268,-0.02283c0.19316,-0.0878 0.30378,-0.09658 0.35471,-0.10009c0,0 -0.01756,-0.05795 -0.00351,-0.04566l-0.00176,0zm-20.91715,22.0638l2.16687,1.60145c-0.93418,0.91311 -1.81743,1.77353 -2.45485,2.38812l0.28798,-3.98957" }) }));
}
//#endregion
//#region src/TelegramShareButton.tsx
var _excluded$7 = ["mobileBehavior", "text"];
function telegramLink(url, { text }) {
	assert(url, "telegram.url");
	return "https://t.me/share/url" + objectToGetParams({
		url,
		text
	});
}
var buildTelegramShareUrl = telegramLink;
function telegramAppLink(url, { text }) {
	assert(url, "telegram.url");
	return "tg://msg_url" + objectToGetParams({
		url,
		text
	});
}
var TelegramShareButton = forwardRef((_ref, ref) => {
	let { mobileBehavior, text } = _ref, props = _objectWithoutProperties(_ref, _excluded$7);
	const { linkBehavior, networkLink } = resolveMobileShareStrategy(mobileBehavior, buildTelegramShareUrl, telegramAppLink);
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, props), {}, {
		forwardedRef: ref,
		linkBehavior,
		networkName: "telegram",
		networkLink,
		opts: { text },
		windowHeight: 400,
		windowWidth: 550
	}));
});
TelegramShareButton.displayName = "TelegramShareButton";
//#endregion
//#region src/ThreadsIcon.tsx
function ThreadsIcon(props) {
	return /* @__PURE__ */ jsxs(RawIconBase, _objectSpread2(_objectSpread2({
		color: "#000000",
		viewBox: "0 0 24 24"
	}, props), {}, { children: [/* @__PURE__ */ jsx("path", { d: "M6.234 0h11.531c3.441 0 6.234 2.789 6.234 6.234v11.531c0 3.441-2.789 6.234-6.234 6.234H6.234C2.789 24 0 21.211 0 17.766V6.234C0 2.789 2.789 0 6.234 0z" }), /* @__PURE__ */ jsx("path", {
		fill: "white",
		d: "M16.697 11.32c-.023-2.616-1.439-4.191-3.834-4.191c-1.598 0-2.944 .722-3.647 1.875l1.547 1.078c.403-.633 .956-1.158 1.969-1.158c1.148 0 1.739 .637 1.908 1.823c-.553-.084-1.106-.131-1.678-.131c-3.094 0-4.552 1.402-4.552 3.253c0 1.884 1.458 2.995 3.605 2.995c2.353 0 3.759-1.589 4.336-3.553c.6 .272 1.013 .905 1.013 1.852c0 2.541-2.93 3.923-5.414 3.923c-3.666 0-6.061-2.405-6.061-6.319c0-4.795 3.169-7.866 7.425-7.866c2.859 0 4.27 1.252 5.231 2.934l1.58-1.106C19.083 4.556 16.748 3 13.247 3c-5.578 0-9.375 3.961-9.375 9.703c0 5.25 3.717 8.302 8.142 8.302c3.661 0 7.359-2.133 7.359-5.789C19.373 13.303 18.281 12.038 16.697 11.32L16.697 11.32zM11.948 14.962c-.806 0-1.519-.384-1.519-1.092c0-1.111 1.369-1.453 2.705-1.453c.506 0 1.003 .033 1.444 .131C14.264 13.997 13.327 14.962 11.948 14.962L11.948 14.962z"
	})] }));
}
//#endregion
//#region src/ThreadsLegacyIcon.tsx
function ThreadsLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#000000" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M41.4569 31.0027C41.2867 30.9181 41.1138 30.8366 40.9386 30.7586C40.6336 24.9274 37.5624 21.5891 32.4055 21.5549C32.3821 21.5548 32.3589 21.5548 32.3355 21.5548C29.251 21.5548 26.6857 22.9207 25.1067 25.4063L27.9429 27.4247C29.1224 25.5681 30.9736 25.1723 32.3369 25.1723C32.3526 25.1723 32.3684 25.1723 32.384 25.1724C34.082 25.1837 35.3633 25.6958 36.1926 26.6947C36.7961 27.4218 37.1997 28.4267 37.3996 29.6949C35.8941 29.4294 34.266 29.3478 32.5255 29.4513C27.6225 29.7443 24.4705 32.711 24.6822 36.8332C24.7896 38.9242 25.7937 40.7231 27.5094 41.8982C28.96 42.8916 30.8282 43.3774 32.7699 43.2674C35.3341 43.1216 37.3456 42.1066 38.749 40.2507C39.8148 38.8413 40.4889 37.0149 40.7865 34.7136C42.0085 35.4787 42.9142 36.4855 43.4144 37.6959C44.2649 39.7534 44.3145 43.1344 41.6553 45.8908C39.3255 48.3055 36.525 49.3501 32.2926 49.3824C27.5977 49.3463 24.0471 47.7842 21.7385 44.7396C19.5768 41.8886 18.4595 37.7706 18.4179 32.5C18.4595 27.2293 19.5768 23.1113 21.7385 20.2604C24.0471 17.2157 27.5977 15.6537 32.2925 15.6175C37.0215 15.654 40.634 17.2235 43.0309 20.2829C44.2062 21.7831 45.0923 23.6698 45.6764 25.8696L49 24.9496C48.2919 22.2419 47.1778 19.9087 45.6616 17.9736C42.5888 14.0514 38.0947 12.0417 32.3041 12H32.2809C26.5022 12.0415 22.0584 14.0589 19.073 17.9961C16.4165 21.4997 15.0462 26.3747 15.0001 32.4856L15 32.5L15.0001 32.5144C15.0462 38.6252 16.4165 43.5004 19.073 47.004C22.0584 50.941 26.5022 52.9586 32.2809 53H32.3041C37.4418 52.9631 41.0632 51.5676 44.0465 48.4753C47.9496 44.4297 47.8321 39.3587 46.5457 36.2457C45.6227 34.0134 43.8631 32.2002 41.4569 31.0027ZM32.5863 39.6551C30.4374 39.7807 28.205 38.78 28.0949 36.6367C28.0133 35.0476 29.185 33.2743 32.7182 33.0631C33.1228 33.0389 33.5199 33.027 33.9099 33.027C35.1933 33.027 36.3939 33.1564 37.4854 33.4039C37.0783 38.6788 34.6902 39.5353 32.5863 39.6551Z" }) }));
}
//#endregion
//#region src/ThreadsShareButton.tsx
var _excluded$6 = ["text"];
function threadsLink(url, { text }) {
	assert(url, "threads.url");
	return "https://www.threads.com/intent/post" + objectToGetParams({
		url,
		text
	});
}
var buildThreadsShareUrl = threadsLink;
var ThreadsShareButton = forwardRef((_ref, ref) => {
	let { text } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$6)), {}, {
		forwardedRef: ref,
		networkName: "threads",
		networkLink: buildThreadsShareUrl,
		opts: { text },
		windowHeight: 600,
		windowWidth: 550
	}));
});
ThreadsShareButton.displayName = "ThreadsShareButton";
//#endregion
//#region src/TumblrIcon.tsx
function TumblrIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		badge: { scale: .5 },
		color: "#001935"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M14.563 24c-5.093 0-7.031-3.756-7.031-6.411V9.747H5.116V6.648c3.63-1.313 4.512-4.596 4.71-6.469C9.84.051 9.941 0 9.999 0h3.517v6.114h4.801v3.633h-4.82v7.47c.016 1.001.375 2.371 2.207 2.371h.09c.631-.02 1.486-.205 1.936-.419l1.156 3.425c-.436.636-2.4 1.374-4.156 1.404h-.178l.011.002z" }) }));
}
//#endregion
//#region src/TumblrLegacyIcon.tsx
function TumblrLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#36465D" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M39.2,41c-0.6,0.3-1.6,0.5-2.4,0.5c-2.4,0.1-2.9-1.7-2.9-3v-9.3h6v-4.5h-6V17c0,0-4.3,0-4.4,0 c-0.1,0-0.2,0.1-0.2,0.2c-0.3,2.3-1.4,6.4-5.9,8.1v3.9h3V39c0,3.4,2.5,8.1,9,8c2.2,0,4.7-1,5.2-1.8L39.2,41z" }) }));
}
//#endregion
//#region src/TumblrShareButton.tsx
var _excluded$5 = [
	"caption",
	"content",
	"postTitle",
	"posttype",
	"tags"
];
function tumblrLink(url, { postTitle, caption, tags, posttype, content }) {
	assert(url, "tumblr.url");
	return "https://www.tumblr.com/widgets/share/tool" + objectToGetParams({
		canonicalUrl: url,
		title: postTitle,
		caption,
		tags,
		posttype,
		content
	});
}
var buildTumblrShareUrl = tumblrLink;
var TumblrShareButton = forwardRef((_ref, ref) => {
	let { caption, content, postTitle, posttype, tags } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$5)), {}, {
		forwardedRef: ref,
		networkName: "tumblr",
		networkLink: buildTumblrShareUrl,
		opts: {
			postTitle,
			tags: (tags || []).join(","),
			caption,
			posttype: posttype || "link",
			content
		},
		windowHeight: 460,
		windowWidth: 660
	}));
});
TumblrShareButton.displayName = "TumblrShareButton";
//#endregion
//#region src/XShareButton.tsx
var _excluded$4 = [
	"hashtags",
	"related",
	"text",
	"url",
	"via"
];
function xLink(url, { text, via, hashtags = [], related = [] }) {
	assert(url || text, "x.url or x.text");
	assert(Array.isArray(hashtags), "x.hashtags is not an array");
	assert(Array.isArray(related), "x.related is not an array");
	return "https://x.com/intent/post" + objectToGetParams({
		url: url || void 0,
		text,
		via,
		hashtags: hashtags.length > 0 ? hashtags.join(",") : void 0,
		related: related.length > 0 ? related.join(",") : void 0
	});
}
var buildXShareUrl = xLink;
var XShareButton = forwardRef((_ref, ref) => {
	let { hashtags, related, text, url, via } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$4)), {}, {
		forwardedRef: ref,
		url: url !== null && url !== void 0 ? url : "",
		networkName: "x",
		networkLink: buildXShareUrl,
		opts: {
			hashtags,
			text,
			via,
			related
		},
		windowHeight: 400,
		windowWidth: 550
	}));
});
XShareButton.displayName = "XShareButton";
//#endregion
//#region src/ViberIcon.tsx
function ViberIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsx("path", { d: "M11.458 1.693c.545-.004.88.017.88.017 4.542.02 6.717 1.388 7.222 1.846 1.675 1.435 2.53 4.868 1.906 9.897v.002c-.604 4.878-4.174 5.184-4.832 5.395-.28.09-2.882.737-6.153.524 0 0-2.436 2.94-3.197 3.704-.12.12-.26.167-.352.144-.13-.033-.166-.188-.165-.414l.02-4.018c-4.762-1.32-4.485-6.292-4.43-8.895.054-2.604.543-4.738 1.996-6.173 1.96-1.773 5.474-2.018 7.11-2.03z" }),
		color: "#7360F2",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M11.4 0C9.473.028 5.333.344 3.02 2.467 1.302 4.187.696 6.7.633 9.817.57 12.933.488 18.776 6.12 20.36h.003l-.004 2.416s-.037.977.61 1.177c.777.242 1.234-.5 1.98-1.302.407-.44.972-1.084 1.397-1.58 3.85.326 6.812-.416 7.15-.525.776-.252 5.176-.816 5.892-6.657.74-6.02-.36-9.83-2.34-11.546-.596-.55-3.006-2.3-8.375-2.323 0 0-.395-.025-1.037-.017zm.058 1.693c.545-.004.88.017.88.017 4.542.02 6.717 1.388 7.222 1.846 1.675 1.435 2.53 4.868 1.906 9.897v.002c-.604 4.878-4.174 5.184-4.832 5.395-.28.09-2.882.737-6.153.524 0 0-2.436 2.94-3.197 3.704-.12.12-.26.167-.352.144-.13-.033-.166-.188-.165-.414l.02-4.018c-4.762-1.32-4.485-6.292-4.43-8.895.054-2.604.543-4.738 1.996-6.173 1.96-1.773 5.474-2.018 7.11-2.03zm.38 2.602c-.167 0-.303.135-.304.302 0 .167.133.303.3.305 1.624.01 2.946.537 4.028 1.592 1.073 1.046 1.62 2.468 1.633 4.334.002.167.14.3.307.3.166-.002.3-.138.3-.304-.014-1.984-.618-3.596-1.816-4.764-1.19-1.16-2.692-1.753-4.447-1.765zm-3.96.695c-.19-.032-.4.005-.616.117l-.01.002c-.43.247-.816.562-1.146.932-.002.004-.006.004-.008.008-.267.323-.42.638-.46.948-.008.046-.01.093-.007.14 0 .136.022.27.065.4l.013.01c.135.48.473 1.276 1.205 2.604.42.768.903 1.5 1.446 2.186.27.344.56.673.87.984l.132.132c.31.308.64.6.984.87.686.543 1.418 1.027 2.186 1.447 1.328.733 2.126 1.07 2.604 1.206l.01.014c.13.042.265.064.402.063.046.002.092 0 .138-.008.31-.036.627-.19.948-.46.004 0 .003-.002.008-.005.37-.33.683-.72.93-1.148l.003-.01c.225-.432.15-.842-.18-1.12-.004 0-.698-.58-1.037-.83-.36-.255-.73-.492-1.113-.71-.51-.285-1.032-.106-1.248.174l-.447.564c-.23.283-.657.246-.657.246-3.12-.796-3.955-3.955-3.955-3.955s-.037-.426.248-.656l.563-.448c.277-.215.456-.737.17-1.248-.217-.383-.454-.756-.71-1.115-.25-.34-.826-1.033-.83-1.035-.137-.165-.31-.265-.502-.297zm4.49.88c-.158.002-.29.124-.3.282-.01.167.115.312.282.324 1.16.085 2.017.466 2.645 1.15.63.688.93 1.524.906 2.57-.002.168.13.306.3.31.166.003.305-.13.31-.297.025-1.175-.334-2.193-1.067-2.994-.74-.81-1.777-1.253-3.05-1.346h-.024zm.463 1.63c-.16.002-.29.127-.3.287-.008.167.12.31.288.32.523.028.875.175 1.113.422.24.245.388.62.416 1.164.01.167.15.295.318.287.167-.008.295-.15.287-.317-.03-.644-.215-1.178-.58-1.557-.367-.378-.893-.574-1.52-.607h-.018z" }) }));
}
//#endregion
//#region src/ViberLegacyIcon.tsx
function ViberLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#7360F2" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "m31.0,12.3c9.0,0.2 16.4,6.2 18.0,15.2c0.2,1.5 0.3,3.0 0.4,4.6a1.0,1.0 0 0 1 -0.8,1.2l-0.1,0a1.1,1.1 0 0 1 -1.0,-1.2l0,0c-0.0,-1.2 -0.1,-2.5 -0.3,-3.8a16.1,16.1 0 0 0 -13.0,-13.5c-1.0,-0.1 -2.0,-0.2 -3.0,-0.3c-0.6,-0.0 -1.4,-0.1 -1.6,-0.8a1.1,1.1 0 0 1 0.9,-1.2l0.6,0l0.0,-0.0zm10.6,39.2a19.9,19.9 0 0 1 -2.1,-0.6c-6.9,-2.9 -13.2,-6.6 -18.3,-12.2a47.5,47.5 0 0 1 -7.0,-10.7c-0.8,-1.8 -1.6,-3.7 -2.4,-5.6c-0.6,-1.7 0.3,-3.4 1.4,-4.7a11.3,11.3 0 0 1 3.7,-2.8a2.4,2.4 0 0 1 3.0,0.7a39.0,39.0 0 0 1 4.7,6.5a3.1,3.1 0 0 1 -0.8,4.2c-0.3,0.2 -0.6,0.5 -1.0,0.8a3.3,3.3 0 0 0 -0.7,0.7a2.1,2.1 0 0 0 -0.1,1.9c1.7,4.9 4.7,8.7 9.7,10.8a5.0,5.0 0 0 0 2.5,0.6c1.5,-0.1 2.0,-1.8 3.1,-2.7a2.9,2.9 0 0 1 3.5,-0.1c1.1,0.7 2.2,1.4 3.3,2.2a37.8,37.8 0 0 1 3.1,2.4a2.4,2.4 0 0 1 0.7,3.0a10.4,10.4 0 0 1 -4.4,4.8a10.8,10.8 0 0 1 -1.9,0.6c-0.7,-0.2 0.6,-0.2 0,0l0.0,0l0,-0.0zm3.1,-21.4a4.2,4.2 0 0 1 -0.0,0.6a1.0,1.0 0 0 1 -1.9,0.1a2.7,2.7 0 0 1 -0.1,-0.8a10.9,10.9 0 0 0 -1.4,-5.5a10.2,10.2 0 0 0 -4.2,-4.0a12.3,12.3 0 0 0 -3.4,-1.0c-0.5,-0.0 -1.0,-0.1 -1.5,-0.2a0.9,0.9 0 0 1 -0.9,-1.0l0,-0.1a0.9,0.9 0 0 1 0.9,-0.9l0.1,0a14.1,14.1 0 0 1 5.9,1.5a11.9,11.9 0 0 1 6.5,9.3c0,0.1 0.0,0.3 0.0,0.5c0,0.4 0.0,0.9 0.0,1.5l0,0l0.0,0.0zm-5.6,-0.2a1.1,1.1 0 0 1 -1.2,-0.9l0,-0.1a11.3,11.3 0 0 0 -0.2,-1.4a4.0,4.0 0 0 0 -1.5,-2.3a3.9,3.9 0 0 0 -1.2,-0.5c-0.5,-0.1 -1.1,-0.1 -1.6,-0.2a1.0,1.0 0 0 1 -0.8,-1.1l0,0l0,0a1.0,1.0 0 0 1 1.1,-0.8c3.4,0.2 6.0,2.0 6.3,6.2a2.8,2.8 0 0 1 0,0.8a0.8,0.8 0 0 1 -0.8,0.7l0,0l0.0,-0.0z" }) }));
}
//#endregion
//#region src/ViberShareButton.tsx
var _excluded$3 = [
	"message",
	"mobileBehavior",
	"separator"
];
function viberLink(url, { message, separator = " " }) {
	assert(url, "viber.url");
	return "viber://forward" + objectToGetParams({ text: message ? message + separator + url : url });
}
var buildViberShareUrl = viberLink;
var ViberShareButton = forwardRef((_ref, ref) => {
	let { message, mobileBehavior, separator } = _ref, props = _objectWithoutProperties(_ref, _excluded$3);
	const { linkBehavior, networkLink } = resolveMobileShareStrategy(mobileBehavior, buildViberShareUrl, buildViberShareUrl);
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, props), {}, {
		forwardedRef: ref,
		linkBehavior,
		networkName: "viber",
		networkLink,
		opts: {
			message,
			separator: separator || " "
		},
		windowHeight: 460,
		windowWidth: 660
	}));
});
ViberShareButton.displayName = "ViberShareButton";
//#endregion
//#region src/VKIcon.tsx
function VKIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsx("rect", {
			x: "2",
			y: "2",
			width: "20",
			height: "20",
			rx: "4"
		}),
		color: "#0077FF",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "m9.489.004.729-.003h3.564l.73.003.914.01.433.007.418.011.403.014.388.016.374.021.36.025.345.03.333.033c1.74.196 2.933.616 3.833 1.516.9.9 1.32 2.092 1.516 3.833l.034.333.029.346.025.36.02.373.025.588.012.41.013.644.009.915.004.98-.001 3.313-.003.73-.01.914-.007.433-.011.418-.014.403-.016.388-.021.374-.025.36-.03.345-.033.333c-.196 1.74-.616 2.933-1.516 3.833-.9.9-2.092 1.32-3.833 1.516l-.333.034-.346.029-.36.025-.373.02-.588.025-.41.012-.644.013-.915.009-.98.004-3.313-.001-.73-.003-.914-.01-.433-.007-.418-.011-.403-.014-.388-.016-.374-.021-.36-.025-.345-.03-.333-.033c-1.74-.196-2.933-.616-3.833-1.516-.9-.9-1.32-2.092-1.516-3.833l-.034-.333-.029-.346-.025-.36-.02-.373-.025-.588-.012-.41-.013-.644-.009-.915-.004-.98.001-3.313.003-.73.01-.914.007-.433.011-.418.014-.403.016-.388.021-.374.025-.36.03-.345.033-.333c.196-1.74.616-2.933 1.516-3.833.9-.9 2.092-1.32 3.833-1.516l.333-.034.346-.029.36-.025.373-.02.588-.025.41-.012.644-.013.915-.009ZM6.79 7.3H4.05c.13 6.24 3.25 9.99 8.72 9.99h.31v-3.57c2.01.2 3.53 1.67 4.14 3.57h2.84c-.78-2.84-2.83-4.41-4.11-5.01 1.28-.74 3.08-2.54 3.51-4.98h-2.58c-.56 1.98-2.22 3.78-3.8 3.95V7.3H10.5v6.92c-1.6-.4-3.62-2.34-3.71-6.92Z" }) }));
}
//#endregion
//#region src/VKLegacyIcon.tsx
function VKLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#0077FF" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M44.94,44.84h-0.2c-2.17-.36-3.66-1.92-4.92-3.37C39.1,40.66,38,38.81,36.7,39c-1.85.3-.93,3.52-1.71,4.9-0.62,1.11-3.29.91-5.12,0.71-5.79-.62-8.75-3.77-11.35-7.14A64.13,64.13,0,0,1,11.6,26a10.59,10.59,0,0,1-1.51-4.49C11,20.7,12.56,21,14.11,21c1.31,0,3.36-.29,4.32.2C19,21.46,19.57,23,20,24a37.18,37.18,0,0,0,3.31,5.82c0.56,0.81,1.41,2.35,2.41,2.14s1.06-2.63,1.1-4.18c0-1.77,0-4-.5-4.9S25,22,24.15,21.47c0.73-1.49,2.72-1.63,5.12-1.63,2,0,4.84-.23,5.62,1.12s0.25,3.85.2,5.71c-0.06,2.09-.41,4.25,1,5.21,1.09-.12,1.68-1.2,2.31-2A28,28,0,0,0,41.72,24c0.44-1,.91-2.65,1.71-3,1.21-.47,3.15-0.1,4.92-0.1,1.46,0,4.05-.41,4.52.61,0.39,0.85-.75,3-1.1,3.57a61.88,61.88,0,0,1-4.12,5.61c-0.58.78-1.78,2-1.71,3.27,0.05,0.94,1,1.67,1.71,2.35a33.12,33.12,0,0,1,3.92,4.18c0.47,0.62,1.5,2,1.4,2.76C52.66,45.81,46.88,44.24,44.94,44.84Z" }) }));
}
//#endregion
//#region src/VKShareButton.tsx
var _excluded$2 = [
	"image",
	"noParse",
	"noVkLinks",
	"shareTitle"
];
function vkLink(url, { shareTitle, image, noParse, noVkLinks }) {
	assert(url, "vk.url");
	return "https://vk.com/share.php" + objectToGetParams({
		url,
		title: shareTitle,
		image,
		noparse: noParse ? 1 : 0,
		no_vk_links: noVkLinks ? 1 : 0
	});
}
var buildVKShareUrl = vkLink;
var VKShareButton = forwardRef((_ref, ref) => {
	let { image, noParse, noVkLinks, shareTitle } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$2)), {}, {
		forwardedRef: ref,
		networkName: "vk",
		networkLink: buildVKShareUrl,
		opts: {
			shareTitle,
			image,
			noParse,
			noVkLinks
		},
		windowHeight: 460,
		windowWidth: 660
	}));
});
VKShareButton.displayName = "VKShareButton";
//#endregion
//#region src/WeiboIcon.tsx
function WeiboIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		badge: { scale: .6 },
		color: "#E6162D"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M10.098 20.323c-3.977.391-7.414-1.406-7.672-4.02-.259-2.609 2.759-5.047 6.74-5.441 3.979-.394 7.413 1.404 7.671 4.018.259 2.6-2.759 5.049-6.737 5.439l-.002.004zM9.05 17.219c-.384.616-1.208.884-1.829.602-.612-.279-.793-.991-.406-1.593.379-.595 1.176-.861 1.793-.601.622.263.82.972.442 1.592zm1.27-1.627c-.141.237-.449.353-.689.253-.236-.09-.313-.361-.177-.586.138-.227.436-.346.672-.24.239.09.315.36.18.601l.014-.028zm.176-2.719c-1.893-.493-4.033.45-4.857 2.118-.836 1.704-.026 3.591 1.886 4.21 1.983.64 4.318-.341 5.132-2.179.8-1.793-.201-3.642-2.161-4.149zm7.563-1.224c-.346-.105-.57-.18-.405-.615.375-.977.42-1.804 0-2.404-.781-1.112-2.915-1.053-5.364-.03 0 0-.766.331-.571-.271.376-1.217.315-2.224-.27-2.809-1.338-1.337-4.869.045-7.888 3.08C1.309 10.87 0 13.273 0 15.348c0 3.981 5.099 6.395 10.086 6.395 6.536 0 10.888-3.801 10.888-6.82 0-1.822-1.547-2.854-2.915-3.284v.01zm1.908-5.092c-.766-.856-1.908-1.187-2.96-.962-.436.09-.706.511-.616.932.09.42.511.691.932.602.511-.105 1.067.044 1.442.465.376.421.466.977.316 1.473-.136.406.089.856.51.992.405.119.857-.105.992-.512.33-1.021.12-2.178-.646-3.035l.03.045zm2.418-2.195c-1.576-1.757-3.905-2.419-6.054-1.968-.496.104-.812.587-.706 1.081.104.496.586.813 1.082.707 1.532-.331 3.185.15 4.296 1.383 1.112 1.246 1.429 2.943.947 4.416-.165.48.106 1.007.586 1.157.479.165.991-.104 1.157-.586.675-2.088.241-4.478-1.338-6.235l.03.045z" }) }));
}
//#endregion
//#region src/WeiboLegacyIcon.tsx
function WeiboLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#E6162D" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M40.9756152,15.0217119 C40.5000732,15.0546301 39.9999314,15.1204666 39.5325878,15.2192213 C38.6634928,15.4085016 38.0977589,16.2643757 38.2863368,17.1284787 C38.4667163,18.0008129 39.3194143,18.5686519 40.1885094,18.3793715 C42.8613908,17.8115326 45.7720411,18.6427174 47.7316073,20.8153207 C49.6911735,22.996153 50.2077122,25.975254 49.3714112,28.5840234 C49.1008441,29.4316684 49.5763861,30.3533789 50.4208857,30.6249537 C51.2653852,30.8965286 52.1754769,30.4192153 52.4542425,29.5715703 C53.6349013,25.9011885 52.9133876,21.7699494 50.1585171,18.7085538 C48.0923641,16.4042776 45.2063093,15.1533848 42.3530505,15.0217119 C41.8775084,14.9970227 41.4511594,14.9887937 40.9756152,15.0217119 Z M27.9227762,19.8277737 C24.9957268,20.140498 20.863421,22.4365431 17.2312548,26.0822378 C13.2711279,30.0571148 11,34.2871065 11,37.9328012 C11,44.9032373 19.8713401,49.125 28.5786978,49.125 C39.9917329,49.125 47.600423,42.4261409 47.600423,37.1427636 C47.600423,33.9496952 44.9603397,32.1638816 42.549827,31.4149913 C41.9594976,31.2339421 41.5167516,31.1434164 41.8283133,30.3616079 C42.5006339,28.66632 42.6236176,27.1932286 41.8939054,26.1480742 C40.5328692,24.1894405 36.7203236,24.2881952 32.448635,26.0822378 C32.448635,26.0822378 31.1203949,26.6912261 31.4647526,25.6213825 C32.1206742,23.4981576 32.0304845,21.712342 31.0056075,20.6836478 C30.2840938,19.9512176 29.2510184,19.6878718 27.9227762,19.8277737 Z M42.0906819,20.6836478 C41.6233383,20.6589586 41.1723917,20.716566 40.7132466,20.8153207 C39.9671353,20.9716828 39.4997917,21.7781784 39.6637721,22.5270687 C39.8277525,23.275959 40.5574647,23.7450433 41.303576,23.5804521 C42.1972686,23.3911718 43.2057485,23.6380596 43.8616701,24.3704897 C44.5175916,25.1029198 44.6733735,26.0657797 44.3864073,26.9381118 C44.1486363,27.6705419 44.5093932,28.4770397 45.2391054,28.7156963 C45.9688176,28.9461239 46.780521,28.5922524 47.0100936,27.8598223 C47.584026,26.0740087 47.2396661,24.0248493 45.8950269,22.5270687 C44.886547,21.4078489 43.4845162,20.7494842 42.0906819,20.6836478 Z M29.496988,29.9665891 C35.3100922,30.1723275 39.9917329,33.0691319 40.3852858,37.0769272 C40.8362324,41.6607904 35.5970585,45.9319315 28.6442899,46.6232144 C21.6915214,47.3144973 15.6488446,44.154347 15.197898,39.5787128 C14.7469514,34.9948495 20.059916,30.7237084 27.004486,30.0324256 C27.8735831,29.950131 28.6688875,29.9336709 29.496988,29.9665891 Z M25.5614586,34.3776322 C23.183744,34.5916017 20.9372116,35.9577073 19.9205332,37.9328012 C18.5348994,40.6238672 19.9041362,43.6029661 23.0689567,44.582284 C26.340366,45.5945202 30.1857056,44.0638213 31.5303448,41.1587879 C32.8503864,38.3195909 31.1613894,35.3734082 27.9227762,34.5751416 C27.1438688,34.3776322 26.356763,34.3035667 25.5614586,34.3776322 Z M24.052839,38.7228388 C24.3316067,38.7310678 24.5857748,38.8215935 24.8399449,38.9203482 C25.8648218,39.3400561 26.1845841,40.4428158 25.5614586,41.4221338 C24.9219361,42.3932227 23.5690963,42.8623069 22.5442194,42.4096807 C21.5357395,41.9652856 21.2487754,40.8542948 21.8882979,39.9078951 C22.3638421,39.2001542 23.2247386,38.7146097 24.052839,38.7228388 Z" }) }));
}
//#endregion
//#region src/WeiboShareButton.tsx
var _excluded$1 = ["image", "shareTitle"];
function weiboLink(url, { shareTitle, image }) {
	assert(url, "weibo.url");
	return "http://service.weibo.com/share/share.php" + objectToGetParams({
		url,
		title: shareTitle,
		pic: image
	});
}
var buildWeiboShareUrl = weiboLink;
var WeiboShareButton = forwardRef((_ref, ref) => {
	let { image, shareTitle } = _ref;
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$1)), {}, {
		forwardedRef: ref,
		networkName: "weibo",
		networkLink: buildWeiboShareUrl,
		opts: {
			shareTitle,
			image
		},
		windowHeight: 550,
		windowPosition: "screenCenter",
		windowWidth: 660
	}));
});
WeiboShareButton.displayName = "WeiboShareButton";
//#endregion
//#region src/WhatsappIcon.tsx
function WhatsappIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		backdrop: /* @__PURE__ */ jsx("path", { d: "M12.051 21.785h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884z" }),
		color: "#25D366",
		viewBox: "0 0 24 24"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413Z" }) }));
}
//#endregion
//#region src/WhatsappLegacyIcon.tsx
function WhatsappLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#25D366" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "m42.32286,33.93287c-0.5178,-0.2589 -3.04726,-1.49644 -3.52105,-1.66732c-0.4712,-0.17346 -0.81554,-0.2589 -1.15987,0.2589c-0.34175,0.51004 -1.33075,1.66474 -1.63108,2.00648c-0.30032,0.33658 -0.60064,0.36247 -1.11327,0.12945c-0.5178,-0.2589 -2.17994,-0.80259 -4.14759,-2.56312c-1.53269,-1.37217 -2.56312,-3.05503 -2.86603,-3.57283c-0.30033,-0.5178 -0.03366,-0.80259 0.22524,-1.06149c0.23301,-0.23301 0.5178,-0.59547 0.7767,-0.90616c0.25372,-0.31068 0.33657,-0.5178 0.51262,-0.85437c0.17088,-0.36246 0.08544,-0.64725 -0.04402,-0.90615c-0.12945,-0.2589 -1.15987,-2.79613 -1.58964,-3.80584c-0.41424,-1.00971 -0.84142,-0.88027 -1.15987,-0.88027c-0.29773,-0.02588 -0.64208,-0.02588 -0.98382,-0.02588c-0.34693,0 -0.90616,0.12945 -1.37736,0.62136c-0.4712,0.5178 -1.80194,1.76053 -1.80194,4.27186c0,2.51134 1.84596,4.945 2.10227,5.30747c0.2589,0.33657 3.63497,5.51458 8.80262,7.74113c1.23237,0.5178 2.1903,0.82848 2.94111,1.08738c1.23237,0.38836 2.35599,0.33657 3.24402,0.20712c0.99159,-0.15534 3.04985,-1.24272 3.47963,-2.45956c0.44013,-1.21683 0.44013,-2.22654 0.31068,-2.45955c-0.12945,-0.23301 -0.46601,-0.36247 -0.98382,-0.59548m-9.40068,12.84407l-0.02589,0c-3.05503,0 -6.08417,-0.82849 -8.72495,-2.38189l-0.62136,-0.37023l-6.47252,1.68286l1.73463,-6.29129l-0.41424,-0.64725c-1.70875,-2.71846 -2.6149,-5.85116 -2.6149,-9.07706c0,-9.39809 7.68934,-17.06155 17.15993,-17.06155c4.58253,0 8.88029,1.78642 12.11655,5.02268c3.23625,3.21036 5.02267,7.50812 5.02267,12.06476c-0.0078,9.3981 -7.69712,17.06155 -17.14699,17.06155m14.58906,-31.58846c-3.93529,-3.80584 -9.1133,-5.95471 -14.62789,-5.95471c-11.36055,0 -20.60848,9.2065 -20.61625,20.52564c0,3.61684 0.94757,7.14565 2.75211,10.26282l-2.92557,10.63564l10.93337,-2.85309c3.0136,1.63108 6.4052,2.4958 9.85634,2.49839l0.01037,0c11.36574,0 20.61884,-9.2091 20.62403,-20.53082c0,-5.48093 -2.14111,-10.64081 -6.03239,-14.51915" }) }));
}
//#endregion
//#region src/WhatsappShareButton.tsx
var _excluded = [
	"message",
	"mobileBehavior",
	"phone",
	"separator"
];
function whatsappPhone(phone) {
	return (phone === null || phone === void 0 ? void 0 : phone.replace(/\D/g, "")) || void 0;
}
function whatsappLink(url, { message, phone, separator = " " }) {
	assert(url, "whatsapp.url");
	return "https://api.whatsapp.com/send" + objectToGetParams({
		phone: whatsappPhone(phone),
		text: message ? message + separator + url : url
	});
}
var buildWhatsappShareUrl = whatsappLink;
function whatsappAppLink(url, { message, phone, separator = " " }) {
	assert(url, "whatsapp.url");
	return "whatsapp://send" + objectToGetParams({
		phone: whatsappPhone(phone),
		text: message ? message + separator + url : url
	});
}
var WhatsappShareButton = forwardRef((_ref, ref) => {
	let { message, mobileBehavior, phone, separator } = _ref, props = _objectWithoutProperties(_ref, _excluded);
	const { linkBehavior, networkLink } = resolveMobileShareStrategy(mobileBehavior, buildWhatsappShareUrl, whatsappAppLink);
	return /* @__PURE__ */ jsx(ShareButton, _objectSpread2(_objectSpread2({}, props), {}, {
		forwardedRef: ref,
		linkBehavior,
		networkName: "whatsapp",
		networkLink,
		opts: {
			message,
			phone,
			separator: separator || " "
		},
		windowHeight: 400,
		windowWidth: 550
	}));
});
WhatsappShareButton.displayName = "WhatsappShareButton";
//#endregion
//#region src/XIcon.tsx
function XIcon(props) {
	return /* @__PURE__ */ jsx(RawIconBase, _objectSpread2(_objectSpread2({
		badge: { scale: .5 },
		color: "#000000"
	}, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M14.234 10.162 22.977 0h-2.072l-7.591 8.824L7.251 0H.258l9.168 13.343L.258 24H2.33l8.016-9.318L16.749 24h6.993zm-2.837 3.299-.929-1.329L3.076 1.56h3.182l5.965 8.532.929 1.329 7.754 11.09h-3.182z" }) }));
}
//#endregion
//#region src/XLegacyIcon.tsx
function XLegacyIcon(props) {
	return /* @__PURE__ */ jsx(LegacyIconBase, _objectSpread2(_objectSpread2({ color: "#000000" }, props), {}, { children: /* @__PURE__ */ jsx("path", { d: "M 41.116 18.375 h 4.962 l -10.8405 12.39 l 12.753 16.86 H 38.005 l -7.821 -10.2255 L 21.235 47.625 H 16.27 l 11.595 -13.2525 L 15.631 18.375 H 25.87 l 7.0695 9.3465 z m -1.7415 26.28 h 2.7495 L 24.376 21.189 H 21.4255 z" }) }));
}
//#endregion
export { BlueskyIcon, BlueskyLegacyIcon, BlueskyShareButton, EmailIcon, EmailLegacyIcon, EmailShareButton, FacebookIcon, FacebookLegacyIcon, FacebookMessengerIcon, FacebookMessengerLegacyIcon, FacebookMessengerShareButton, FacebookShareButton, FarcasterIcon, FarcasterLegacyIcon, FarcasterShareButton, GabIcon, GabLegacyIcon, GabShareButton, HatenaIcon, HatenaLegacyIcon, HatenaShareButton, InstapaperIcon, InstapaperLegacyIcon, InstapaperShareButton, LineIcon, LineLegacyIcon, LineShareButton, LinkedinIcon, LinkedinLegacyIcon, LinkedinShareButton, LivejournalIcon, LivejournalLegacyIcon, LivejournalShareButton, MailruIcon, MailruLegacyIcon, MailruShareButton, NativeShareButton, NativeShareIcon, NativeShareLegacyIcon, OKIcon, OKLegacyIcon, OKShareButton, PinterestIcon, PinterestLegacyIcon, PinterestShareButton, RedditIcon, RedditLegacyIcon, RedditShareButton, TelegramIcon, TelegramLegacyIcon, TelegramShareButton, ThreadsIcon, ThreadsLegacyIcon, ThreadsShareButton, TumblrIcon, TumblrLegacyIcon, TumblrShareButton, VKIcon, VKLegacyIcon, VKShareButton, ViberIcon, ViberLegacyIcon, ViberShareButton, WeiboIcon, WeiboLegacyIcon, WeiboShareButton, WhatsappIcon, WhatsappLegacyIcon, WhatsappShareButton, XIcon, XLegacyIcon, XShareButton, buildBlueskyShareUrl, buildEmailShareUrl, buildFacebookMessengerShareUrl, buildFacebookShareUrl, buildFarcasterShareUrl, buildGabShareUrl, buildHatenaShareUrl, buildInstapaperShareUrl, buildLineShareUrl, buildLinkedinShareUrl, buildLivejournalShareUrl, buildMailruShareUrl, buildOKShareUrl, buildPinterestShareUrl, buildRedditShareUrl, buildTelegramShareUrl, buildThreadsShareUrl, buildTumblrShareUrl, buildVKShareUrl, buildViberShareUrl, buildWeiboShareUrl, buildWhatsappShareUrl, buildXShareUrl, canNativeShare, openShareWindow, shareNative };

//# sourceMappingURL=index.js.map