import{__exports as r}from"../../../_virtual/es.date.to-json.mjs";import{__require as t}from"../internals/export.mjs";import{__require as e}from"../internals/fails.mjs";import{__require as o}from"../internals/to-object.mjs";import{__require as i}from"../internals/to-primitive.mjs";var n;function a(){if(n)return r;n=1;var a=t(),s=e(),u=o(),m=i();return a({target:"Date",proto:!0,arity:1,forced:s(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(r){var t=u(this),e=m(t,"number");return"number"!=typeof e||isFinite(e)?t.toISOString():null}}),r}export{a as __require};