Note that a version of the Zotero Connector that works with Safari 12 is available from the Zotero download page: Apple is, however, making Safari extensions less powerful and harder to build. More details:
Missing the Zotero Connector after upgrading Safari or macOS? You can now install the Zotero Connector in the latest version of Safari