;(function(){if(typeof window==='undefined'||window.__taiwan_time_injected_v3)return;window.__taiwan_time_injected_v3=true;console.log("Taiwan time v3 script injected!");function formatToTaiwanTime(dateString){if(!dateString)return'-';let isoString=dateString;if(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(dateString)){isoString=dateString.replace(' ','T')+'Z';}const date=new Date(isoString);if(isNaN(date.getTime()))return dateString;return date.toLocaleString('zh-TW',{timeZone:'Asia/Taipei',hour12:false,year:'numeric',month:'2-digit',day:'2-digit',hour:'2-digit',minute:'2-digit',second:'2-digit'}).replace(/\//g,'-');}function updateDoc(doc){if(!doc)return;const walker=doc.createTreeWalker(doc.body||doc,NodeFilter.SHOW_TEXT);let node;while(node=walker.nextNode()){const text=node.nodeValue;const match=text.match(/\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}/);if(match){const originalTime=match[0];const taiwanTime=formatToTaiwanTime(originalTime);if(taiwanTime!==originalTime){node.nodeValue=text.replace(originalTime,taiwanTime);}}}}function updateAll(){updateDoc(document);if(window.parent&&window.parent.document){updateDoc(window.parent.document);}}updateAll();setInterval(updateAll,1000);})();
import {StrictMode} from 'react';
import {createRoot} from 'react-dom/client';
import App from './App.tsx';
import './index.css';

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <App />
  </StrictMode>,
);