{"version":3,"file":"createUTCDate.Dal0Gc0K.mjs","names":[],"sources":["https:/asset.29cm.co.kr/contents/framer/node_modules/@date-fns/utc/date/mini.js","https:/asset.29cm.co.kr/contents/framer/node_modules/@date-fns/utc/date/index.js","https:/asset.29cm.co.kr/contents/framer/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js","https:/asset.29cm.co.kr/contents/framer/utils/createUTCDate.js"],"sourcesContent":["class UTCDateMini extends Date {\n  constructor() {\n    super();\n    this.setTime(\n      arguments.length === 0 ? (\n        // Enables Sinon's fake timers that override the constructor\n        Date.now()\n      ) : arguments.length === 1 ? typeof arguments[0] === \"string\" ? +new Date(arguments[0]) : arguments[0] : Date.UTC(...arguments)\n    );\n  }\n  getTimezoneOffset() {\n    return 0;\n  }\n}\nconst re = /^(get|set)(?!UTC)/;\nObject.getOwnPropertyNames(Date.prototype).forEach((method) => {\n  if (re.test(method)) {\n    const utcMethod = Date.prototype[method.replace(re, \"$1UTC\")];\n    if (utcMethod)\n      UTCDateMini.prototype[method] = utcMethod;\n  }\n});\nexport {\n  UTCDateMini\n};\n","import { UTCDateMini } from \"./mini.js\";\nclass UTCDate extends UTCDateMini {\n  toString() {\n    const date = this.toDateString();\n    const time = this.toTimeString();\n    return `${date} ${time}`;\n  }\n  toDateString() {\n    const weekday = weekdayFormat.format(this);\n    const date = dateFormat.format(this);\n    const year = this.getFullYear();\n    return `${weekday} ${date} ${year}`;\n  }\n  toTimeString() {\n    const time = timeFormat.format(this);\n    return `${time} GMT+0000 (Coordinated Universal Time)`;\n  }\n  toLocaleString(locales, options) {\n    return Date.prototype.toLocaleString.call(this, locales, {\n      timeZone: \"UTC\",\n      ...options\n    });\n  }\n  toLocaleDateString(locales, options) {\n    return Date.prototype.toLocaleDateString.call(this, locales, {\n      timeZone: \"UTC\",\n      ...options\n    });\n  }\n  toLocaleTimeString(locales, options) {\n    return Date.prototype.toLocaleTimeString.call(this, locales, {\n      timeZone: \"UTC\",\n      ...options\n    });\n  }\n}\nvar weekdayFormat = new Intl.DateTimeFormat(\"en-US\", {\n  weekday: \"short\",\n  timeZone: \"UTC\"\n});\nvar dateFormat = new Intl.DateTimeFormat(\"en-US\", {\n  month: \"short\",\n  day: \"numeric\",\n  timeZone: \"UTC\"\n});\nvar timeFormat = new Intl.DateTimeFormat(\"en-GB\", {\n  hour12: false,\n  hour: \"numeric\",\n  minute: \"numeric\",\n  second: \"numeric\",\n  timeZone: \"UTC\"\n});\nexport {\n  UTCDate\n};\n","import { tzParseTimezone } from \"../_lib/tzParseTimezone/index.js\";\nimport { toDate } from \"../toDate/index.js\";\nfunction toZonedTime(date, timeZone, options) {\n  date = toDate(date, options);\n  const offsetMilliseconds = tzParseTimezone(timeZone, date, true);\n  const d = new Date(date.getTime() - offsetMilliseconds);\n  const resultDate = /* @__PURE__ */ new Date(0);\n  resultDate.setFullYear(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate());\n  resultDate.setHours(d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(), d.getUTCMilliseconds());\n  return resultDate;\n}\nexport {\n  toZonedTime\n};\n","import { UTCDate } from \"../node_modules/@date-fns/utc/date/index.js\";\nimport { toZonedTime } from \"../node_modules/date-fns-tz/dist/esm/toZonedTime/index.js\";\nconst createKRTimeZoneDate = (date) => {\n  const utcDate = date ? new UTCDate(date) : new UTCDate();\n  return toZonedTime(utcDate, \"Asia/Seoul\");\n};\nexport {\n  createKRTimeZoneDate\n};\n"],"x_google_ignoreList":[0,1,2],"mappings":"4LAAM,EAAN,cAA0B,IAAK,CAC7B,aAAc,CACZ,QACA,KAAK,QACH,UAAU,SAAW,EAEnB,KAAK,MACH,UAAU,SAAW,EAAI,OAAO,UAAU,IAAO,SAAW,CAAC,IAAI,KAAK,UAAU,IAAM,UAAU,GAAK,KAAK,IAAI,GAAG,WAExH,CACD,mBAAoB,CAClB,MAAO,EACR,CACF,EACK,EAAK,oBACX,OAAO,oBAAoB,KAAK,WAAW,QAAS,GAAW,CAC7D,GAAI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