var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var S=(r,t)=>{for(var e in t)i(r,e,{get:t[e],enumerable:!0})},a=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of u(t))!p.call(r,n)&&n!==e&&i(r,n,{get:()=>t[n],enumerable:!(o=m(t,n))||o.enumerable});return r};var d=r=>a(i({},"__esModule",{value:!0}),r);var C={};S(C,{getContract:()=>A});module.exports=d(C);var c=require("@ethersproject/address"),f=require("@ethersproject/constants"),g=require("@ethersproject/contracts");function h(r,t){return r.getSigner(t).connectUnchecked()}function w(r,t){return t?h(r,t):r}function A(r,t,e,o){if(!(0,c.isAddress)(r)||r===f.AddressZero)throw Error(`Invalid 'address' parameter '${r}'.`);return new g.Contract(r,t,w(e,o))}0&&(module.exports={getContract});
