var e=`[Higan Haozi][share]`;document.addEventListener(`click`,t=>{let n=t.target instanceof Element?t.target.closest(`a[data-native-share-link]`):null;if(!n)return;t.preventDefault();let r={title:n.dataset.nativeShareTitle??``,url:n.dataset.nativeShareLink??``};navigator.share?navigator.canShare&&!navigator.canShare(r)?console.warn(`${e} Cannot share the provided data.`,r):navigator.share(r).catch(t=>{t instanceof DOMException&&t.name===`AbortError`||console.error(`${e} Failed to share content:`,t)}):console.warn(`${e} Web Share API is not supported in this browser.`)});