@things-factory/weather 9.0.0-beta.49 → 9.0.0-beta.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"weather-controller.js","sourceRoot":"","sources":["../../server/controllers/weather-controller.ts"],"names":[],"mappings":";;AAYA,0DAiCC;AAOD,sDA2HC;AA7KD,6CAA4C;AAC5C,iEAA4D;AAG5D,mEAA8D;AAC9D,uEAAiE;AAEjE;;GAEG;AACI,KAAK,UAAU,uBAAuB,CAAC,GAAY;IACxD,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAA;IAC5B,MAAM,YAAY,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM,CAAA;IAEjD,IAAI,CAAC;QACH,iBAAiB;QACjB,IAAI,CAAC,CAAC,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACzE,GAAG,CAAC,MAAM,GAAG,GAAG,CAAA;YAChB,GAAG,CAAC,IAAI,GAAG;gBACT,KAAK,EAAE,kBAAkB,IAAI,EAAE;gBAC/B,UAAU,EAAE,CAAC,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,eAAe,CAAC;aACjE,CAAA;YACD,OAAM;QACR,CAAC;QAED,cAAc;QACd,MAAM,WAAW,GAAG,MAAM,qBAAqB,CAAC,IAAI,EAAE,YAAY,CAAC,CAAA;QAEnE,aAAa;QACb,GAAG,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAEnC,eAAe;QACf,GAAG,CAAC,MAAM,GAAG,GAAG,CAAA;QAChB,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,WAAW,CAAC,CAAA;QACpC,GAAG,CAAC,GAAG,CAAC,eAAe,EAAE,sBAAsB,CAAC,CAAA,CAAC,SAAS;IAC5D,CAAC;IAA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AE,eAAe,CAAC,CAAA;gBACjD,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,CAAC,GAAG,CAAC,6BAA6B,IAAI,GAAG,CAAC,CAAA;YACjD,OAAO,UAAU,CAAA;QACnB,CAAC;QAED,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC","sourcesContent":["import { Context } from 'koa'\n\nimport { config } from '@things-factory/env'\nimport { cacheService } from '@things-factory/cache-service'\n\nimport { WeatherType } from './types.js'\nimport { getGlobalWeatherData } from './open-meteo-adapter.js'\nimport { renderWeatherMap } from '../services/chrome-renderer.js'\n\n/**\n * 전체 날씨 지도 이미지 컨트롤러\n */\nexport async function globalWeatherController(ctx: Context) {\n const type = ctx.params.type\n const forceRefresh = ctx.query.refresh === 'true'\n\n try {\n // 유효한 날씨 타입인지 확인\n if (!['temperature', 'humidity', 'wind', 'precipitation'].includes(type)) {\n ctx.status = 400\n ctx.body = {\n error: `유효하지 않은 날씨 타입: ${type}`,\n validTypes: ['temperature', 'humidity', 'wind', 'precipitation']\n }\n return\n }\n\n // 날씨 이미지 가져오기\n const imageBuffer = await getGlobalWeatherImage(type, forceRefresh)\n\n // 이미지 데이터 응답\n ctx.body = Buffer.from(imageBuffer)\n\n // 이미지 응답 헤더 설정\n ctx.status = 200\n ctx.set('Content-Type', 'image/png')\n ctx.set('Cache-Control', 'public, max-age=3600') // 1시간 캐싱\n } catch (error) {\n console.error(`날씨 지도 생성 오류 (${type}):`, error)\n ctx.status = 500\n ctx.body = {\n error: '날씨 지도 생성 중 오류가 발생했습니다',\n message: error.message\n }\n }\n}\n\n/**\n * 전체 날씨 이미지 가져오기\n * @param type 날씨 타입 (temperature, humidity, wind, precipitation)\n * @param forceRefresh 캐시 무시하고 새로 가져오기\n */\nexport async function getGlobalWeatherImage(type: WeatherType, forceRefresh: boolean = false): Promise<Buffer> {\n if (!['temperature', 'humidity', 'wind', 'precipitation'].includes(type)) {\n throw new Error(`유효하지 않은 날씨 타입: ${type}`)\n }\n\n // 캐시 유효 시간 (분)\n const cacheLifetime = config.get('WEATHER_CACHE_LIFETIME') || 60\n\n try {\n // 캐시에서 데이터 확인\n if (!forceRefresh) {\n const { value: cachedDataJson } = (await cacheService.getFromCache(`global-weather-image`, { type })) || {}\n\n // Buffer.from이 객체를 직접 처리할 수 없으므로 타입에 따라 적절하게 처리\n let cachedData = null\n if (cachedDataJson) {\n if (Buffer.isBuffer(cachedDataJson)) {\n cachedData = cachedDataJson\n } else if (typeof cachedDataJson === 'string') {\n // 문자열이면 버퍼로 변환\n cachedData = cachedDataJson\n } else if (Array.isArray(cachedDataJson)) {\n // 배열이면 버퍼로 변환\n cachedData = cachedDataJson\n } else if (typeof cachedDataJson === 'object') {\n // 객체인 경우 처리 (JSON.stringify된 버퍼일 수 있음)\n try {\n // JSON 문자열로 변환했다가 다시 파싱하면 배열로 변환될 수 있음\n cachedData = Object.keys(cachedDataJson)\n .filter(key => !isNaN(Number(key)))\n .sort((a, b) => Number(a) - Number(b))\n .map(key => cachedDataJson[key])\n } catch (conversionError) {\n console.error('캐시 데이터 변환 실패:', conversionError)\n }\n }\n }\n\n if (cachedData) {\n console.log(`전체 날씨 이미지 캐시 사용 (타입: ${type})`)\n return cachedData\n }\n }\n\n console.log(`전체 날씨 이미지 생성 (타입: ${type})`)\n\n var { value: weatherPoints } = (await cacheService.getFromCache(`weather-points`, {})) || {}\n\n if (!weatherPoints) {\n const weatherData = await getGlobalWeatherData(10)\n\n const flattenedWeatherPoints = weatherData.reduce((acc, area) => {\n return acc.concat(area.weatherPoints)\n }, [])\n\n weatherPoints = flattenedWeatherPoints.map(point => {\n return {\n lat: point.location.latitude,\n lng: point.location.longitude,\n value: point.temperature?.current,\n description: point.weatherDescription,\n temperature: point.temperature?.current,\n humidity: point.humidity,\n cloudCoverage: point.cloudCoverage,\n solarRadiation: point.solarRadiation,\n windSpeed: point.wind?.speed,\n windDirection: point.wind?.direction\n // precipitation: point.precipitation.current\n }\n })\n\n await cacheService.setInCache(`weather-points`, {}, weatherPoints, cacheLifetime * 60)\n }\n\n // Headless Chrome으로 이미지 생성\n const imageBuffer = await renderWeatherMap(type, weatherPoints, 1800, 900)\n\n // 캐시에 저장 (초 단위로 TTL 설정)\n await cacheService.setInCache(`global-weather-image`, { type }, imageBuffer, cacheLifetime * 60)\n\n return imageBuffer\n } catch (error) {\n console.error(`전체 날씨 이미지 생성 실패 (타입: ${type}):`, error)\n\n // 에러 발생 시 캐시에서 데이터 확인\n const { value: cachedDataJson } = (await cacheService.getFromCache(`global-weather-image`, { type })) || {}\n\n // Buffer.from이 객체를 직접 처리할 수 없으므로 타입에 따라 적절하게 처리\n let cachedData = null\n if (cachedDataJson) {\n if (Buffer.isBuffer(cachedDataJson)) {\n cachedData = cachedDataJson\n } else if (typeof cachedDataJson === 'string') {\n // 문자열이면 버퍼로 변환\n cachedData = Buffer.from(cachedDataJson)\n } else if (Array.isArray(cachedDataJson)) {\n // 배열이면 버퍼로 변환\n cachedData = Buffer.from(cachedDataJson)\n } else if (typeof cachedDataJson === 'object') {\n // 객체인 경우 처리 (JSON.stringify된 버퍼일 수 있음)\n try {\n // JSON 문자열로 변환했다가 다시 파싱하면 배열로 변환될 수 있음\n const dataArray = Object.keys(cachedDataJson)\n .filter(key => !isNaN(Number(key)))\n .sort((a, b) => Number(a) - Number(b))\n .map(key => cachedDataJson[key])\n\n if (dataArray.length > 0) {\n cachedData = Buffer.from(dataArray)\n }\n } catch (conversionError) {\n console.error('캐시 데이터 변환 실패:', conversionError)\n }\n }\n }\n\n if (cachedData) {\n console.log(`에러로 인해 캐시된 날씨 이미지 사용 (타입: ${type})`)\n return cachedData\n }\n\n throw error\n }\n}\n"]}
1
+ {"version":3,"file":"weather-controller.js","sourceRoot":"","sources":["../../server/controllers/weather-controller.ts"],"names":[],"mappings":";;AAYA,0DAiCC;AAOD,sDA2IC;AA7LD,6CAA4C;AAC5C,iEAA4D;AAG5D,mEAA8D;AAC9D,uEAAiE;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f,OAAO,CAAC,GAAG,CAAC,6BAA6B,IAAI,GAAG,CAAC,CAAA;YACjD,OAAO,UAAU,CAAA;QACnB,CAAC;QAED,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC","sourcesContent":["import { Context } from 'koa'\n\nimport { config } from '@things-factory/env'\nimport { cacheService } from '@things-factory/cache-service'\n\nimport { WeatherType } from './types.js'\nimport { getGlobalWeatherData } from './open-meteo-adapter.js'\nimport { renderWeatherMap } from '../services/chrome-renderer.js'\n\n/**\n * 전체 날씨 지도 이미지 컨트롤러\n */\nexport async function globalWeatherController(ctx: Context) {\n const type = ctx.params.type\n const forceRefresh = ctx.query.refresh === 'true'\n\n try {\n // 유효한 날씨 타입인지 확인\n if (!['temperature', 'humidity', 'wind', 'precipitation'].includes(type)) {\n ctx.status = 400\n ctx.body = {\n error: `유효하지 않은 날씨 타입: ${type}`,\n validTypes: ['temperature', 'humidity', 'wind', 'precipitation']\n }\n return\n }\n\n // 날씨 이미지 가져오기\n const imageBuffer = await getGlobalWeatherImage(type, forceRefresh)\n\n // 이미지 데이터 응답\n ctx.body = Buffer.from(imageBuffer)\n\n // 이미지 응답 헤더 설정\n ctx.status = 200\n ctx.set('Content-Type', 'image/png')\n ctx.set('Cache-Control', 'public, max-age=3600') // 1시간 캐싱\n } catch (error) {\n console.error(`날씨 지도 생성 오류 (${type}):`, error)\n ctx.status = 500\n ctx.body = {\n error: '날씨 지도 생성 중 오류가 발생했습니다',\n message: error.message\n }\n }\n}\n\n/**\n * 전체 날씨 이미지 가져오기\n * @param type 날씨 타입 (temperature, humidity, wind, precipitation)\n * @param forceRefresh 캐시 무시하고 새로 가져오기\n */\nexport async function getGlobalWeatherImage(type: WeatherType, forceRefresh: boolean = false): Promise<Buffer> {\n if (!['temperature', 'humidity', 'wind', 'precipitation'].includes(type)) {\n throw new Error(`유효하지 않은 날씨 타입: ${type}`)\n }\n\n // 캐시 유효 시간 (분)\n const cacheLifetime = config.get('WEATHER_CACHE_LIFETIME') || 60\n\n try {\n // 캐시에서 데이터 확인\n if (!forceRefresh) {\n const { value: cachedDataJson } = (await cacheService.getFromCache(`global-weather-image`, { type })) || {}\n\n // Buffer.from이 객체를 직접 처리할 수 없으므로 타입에 따라 적절하게 처리\n let cachedData = null\n if (cachedDataJson) {\n if (Buffer.isBuffer(cachedDataJson)) {\n cachedData = cachedDataJson\n } else if (typeof cachedDataJson === 'string') {\n // 문자열이면 버퍼로 변환\n cachedData = cachedDataJson\n } else if (Array.isArray(cachedDataJson)) {\n // 배열이면 버퍼로 변환\n cachedData = cachedDataJson\n } else if (typeof cachedDataJson === 'object') {\n // 객체인 경우 처리 (JSON.stringify된 버퍼일 수 있음)\n try {\n // JSON 문자열로 변환했다가 다시 파싱하면 배열로 변환될 수 있음\n if ((cachedDataJson.type = 'Buffer')) {\n cachedData = cachedDataJson.data\n }\n } catch (conversionError) {\n console.error('캐시 데이터 변환 실패:', conversionError)\n }\n }\n }\n\n if (cachedData && cachedData.length > 0) {\n console.log(`전체 날씨 이미지 캐시 사용 (타입: ${type})`)\n return cachedData\n }\n }\n\n console.log(`전체 날씨 이미지 생성 (타입: ${type})`)\n\n var { value: weatherPoints } = (await cacheService.getFromCache(`weather-points`, {})) || {}\n\n if (!weatherPoints || weatherPoints.length === 0) {\n const weatherData = await getGlobalWeatherData(10)\n\n const flattenedWeatherPoints = weatherData.reduce((acc, area) => {\n return acc.concat(area.weatherPoints)\n }, [])\n\n weatherPoints = flattenedWeatherPoints.map(point => {\n let value\n switch (type) {\n case 'temperature':\n value = point.temperature?.current\n break\n case 'humidity':\n value = point.humidity\n break\n case 'wind':\n value = point.wind?.speed\n break\n case 'precipitation':\n value = 0\n break // 현재 데이터 없음\n }\n\n return {\n lat: point.location.latitude,\n lng: point.location.longitude,\n value,\n // value: point.temperature?.current,\n description: point.weatherDescription,\n temperature: point.temperature?.current,\n humidity: point.humidity,\n cloudCoverage: point.cloudCoverage,\n solarRadiation: point.solarRadiation,\n windSpeed: point.wind?.speed,\n windDirection: point.wind?.direction\n // precipitation: point.precipitation.current\n }\n })\n\n await cacheService.setInCache(`weather-points`, {}, weatherPoints, cacheLifetime * 60)\n }\n\n // Headless Chrome으로 이미지 생성\n const imageBuffer = await renderWeatherMap(type, weatherPoints, 1800, 900)\n\n // 캐시에 저장 (초 단위로 TTL 설정)\n await cacheService.setInCache(`global-weather-image`, { type }, imageBuffer, cacheLifetime * 60)\n\n return imageBuffer\n } catch (error) {\n console.error(`전체 날씨 이미지 생성 실패 (타입: ${type}):`, error)\n\n // 에러 발생 시 캐시에서 데이터 확인\n const { value: cachedDataJson } = (await cacheService.getFromCache(`global-weather-image`, { type })) || {}\n\n // Buffer.from이 객체를 직접 처리할 수 없으므로 타입에 따라 적절하게 처리\n let cachedData = null\n if (cachedDataJson) {\n if (Buffer.isBuffer(cachedDataJson)) {\n cachedData = cachedDataJson\n } else if (typeof cachedDataJson === 'string') {\n // 문자열이면 버퍼로 변환\n cachedData = Buffer.from(cachedDataJson)\n } else if (Array.isArray(cachedDataJson)) {\n // 배열이면 버퍼로 변환\n cachedData = Buffer.from(cachedDataJson)\n } else if (typeof cachedDataJson === 'object') {\n // 객체인 경우 처리 (JSON.stringify된 버퍼일 수 있음)\n try {\n // JSON 문자열로 변환했다가 다시 파싱하면 배열로 변환될 수 있음\n const dataArray = Object.keys(cachedDataJson)\n .filter(key => !isNaN(Number(key)))\n .sort((a, b) => Number(a) - Number(b))\n .map(key => cachedDataJson[key])\n\n if (dataArray.length > 0) {\n cachedData = Buffer.from(dataArray)\n }\n } catch (conversionError) {\n console.error('캐시 데이터 변환 실패:', conversionError)\n }\n }\n }\n\n if (cachedData) {\n console.log(`에러로 인해 캐시된 날씨 이미지 사용 (타입: ${type})`)\n return cachedData\n }\n\n throw error\n }\n}\n"]}
@@ -71,36 +71,61 @@ async function renderWeatherMap(type, data, width = 1800, height = 900) {
71
71
  return { r: 255, g: 255, b: 255, a: 255 };
72
72
  }
73
73
  }
74
- const imageData = ctx.createImageData(width, height);
75
- data.forEach(point => {
76
- const pixel = latLngToPixel(point.lat, point.lng);
77
- if (!pixel)
78
- return;
79
- const color = valueToRGB(type, point);
80
- const index = (pixel.y * width + pixel.x) * 4;
81
- if (index >= 0 && index < imageData.data.length) {
82
- imageData.data[index] = color.r;
83
- imageData.data[index + 1] = color.g;
84
- imageData.data[index + 2] = color.b;
85
- imageData.data[index + 3] = color.a;
86
- }
87
- else {
88
- console.warn('잘못된 인덱스:', index);
74
+ function calculateColor(type, value) {
75
+ switch (type) {
76
+ case 'temperature':
77
+ return { r: Math.min(255, Math.max(0, (value + 50) * 2.55)), g: 0, b: 0, a: 255 };
78
+ case 'humidity':
79
+ return { r: 0, g: Math.min(255, Math.max(0, value * 2.55)), b: 0, a: 255 };
80
+ case 'wind':
81
+ return { r: Math.min(255, Math.max(0, value * 5)), g: 0, b: 255, a: 255 };
82
+ case 'precipitation':
83
+ return { r: 0, g: 0, b: Math.min(255, Math.max(0, value * 2.55)), a: 255 };
84
+ default:
85
+ return { r: 255, g: 255, b: 255, a: 255 };
89
86
  }
90
- /* only for test */
91
- for (let dy = -18; dy <= 18; dy++) {
92
- for (let dx = -18; dx <= 18; dx++) {
93
- const fillIndex = ((pixel.y + dy) * width + (pixel.x + dx)) * 4;
94
- if (fillIndex >= 0 && fillIndex < imageData.data.length) {
95
- imageData.data[fillIndex] = color.r;
96
- imageData.data[fillIndex + 1] = color.g;
97
- imageData.data[fillIndex + 2] = color.b;
98
- imageData.data[fillIndex + 3] = color.a;
87
+ }
88
+ function renderInterpolated(ctx, data, type, width, height) {
89
+ const imageData = ctx.createImageData(width, height);
90
+ const maxDistance = width * 0.05; // 최대 영향 거리 (이미지 너비의 5%)
91
+ // 모든 픽셀에 대해 계산
92
+ for (let y = 0; y < height; y++) {
93
+ for (let x = 0; x < width; x++) {
94
+ // 픽셀의 위/경도 계산
95
+ const lng = (x / width) * 360 - 180;
96
+ const lat = 90 - (y / height) * 180;
97
+ // 역거리 가중치 보간법
98
+ let weightedSum = 0;
99
+ let totalWeight = 0;
100
+ data.forEach(point => {
101
+ const pixelX = ((point.lng + 180) / 360) * width;
102
+ const pixelY = ((90 - point.lat) / 180) * height;
103
+ const distance = Math.sqrt(Math.pow(x - pixelX, 2) + Math.pow(y - pixelY, 2));
104
+ if (distance <= maxDistance && typeof point.value === 'number') {
105
+ const weight = 1 / (Math.pow(distance, 2) + 0.1);
106
+ weightedSum += point.value * weight;
107
+ totalWeight += weight;
108
+ }
109
+ });
110
+ const index = (y * width + x) * 4;
111
+ if (totalWeight > 0) {
112
+ const value = weightedSum / totalWeight;
113
+ const color = calculateColor(type, value);
114
+ imageData.data[index] = color.r;
115
+ imageData.data[index + 1] = color.g;
116
+ imageData.data[index + 2] = color.b;
117
+ imageData.data[index + 3] = color.a;
118
+ }
119
+ else {
120
+ // 영향 범위 내 데이터 없음
121
+ imageData.data[index + 3] = 0; // 투명하게
99
122
  }
100
123
  }
101
124
  }
102
- });
103
- ctx.putImageData(imageData, 0, 0);
125
+ ctx.putImageData(imageData, 0, 0);
126
+ }
127
+ // 보간 렌더링 호출
128
+ renderInterpolated(ctx, data, type, width, height);
104
129
  console.log('Canvas 렌더링 완료');
105
130
  window.renderComplete = true;
106
131
  }
@@ -1 +1 @@
1
- {"version":3,"file":"chrome-renderer.js","sourceRoot":"","sources":["../../server/services/chrome-renderer.ts"],"names":[],"mappings":";;AAEA,4CA4KC;AA9KD,mDAAgD;AAEzC,KAAK,UAAU,gBAAgB,CACpC,IAAY,EACZ,IAYG,EACH,QAAgB,IAAI,EACpB,SAAiB,GAAG;IAEpB,OAAO,CAAC,GAAG,CAAC,4BAA4B,IAAI,YAAY,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA;IAEtE,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAA;IAC9C,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,IAAA,8BAAc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,CAAC,CAAA;QAEF,OAAO,CAAC,GAAG,CAAC,cAAc,SAAS,CAAC,MAAM,MAAM,CAAC,CAAA;QACjD,OAAO,SAAS,CAAA;IAClB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAA;QACpC,MAAM,KAAK,CAAA;IACb,CAAC;YAAS,CAAC;QACT,MAAM,IAAA,8BAAc,GAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IACzC,CAAC;AACH,CAAC","sourcesContent":["import { getBrowserPool } from './headless-pool'\n\nexport async function renderWeatherMap(\n type: string,\n data: {\n lat: number\n lng: number\n value: number\n description: number\n temperature: number\n humidity: number\n cloudCoverage: number\n solarRadiation: number\n windSpeed: number\n windDirection: number\n precipitation?: number\n }[],\n width: number = 1800,\n height: number = 900\n): Promise<Buffer> {\n console.log(`renderWeatherMap 호출됨: 타입=${type}, 데이터 개수=${data.length}`)\n\n if (!data || data.length === 0) {\n throw new Error('데이터가 없습니다. PNG 생성을 중단합니다.')\n }\n\n const browser = await getBrowserPool().acquire()\n\n try {\n console.log('브라우저 인스턴스 획득')\n const page = await browser.newPage()\n\n // 모든 콘솔 로그를 캡처하여 Node.js 프로세스에 출력\n page.on('console', msg => {\n console.log(`PAGE LOG [${msg.type()}]: ${msg.text()}`)\n })\n\n // 오류 이벤트도 추적 (예: Unhandled Promise Rejection)\n page.on('pageerror', err => {\n console.error('BROWSER PAGE ERROR:', err)\n })\n\n await page.setViewport({ width, height })\n\n await page.setContent(`\n <!DOCTYPE html>\n <html>\n <head>\n <style>body { margin: 0; }</style>\n </head>\n <body>\n <canvas id=\"weatherCanvas\" width=\"${width}\" height=\"${height}\"></canvas>\n </body>\n </html>\n `)\n\n console.log('HTML 콘텐츠 설정 완료')\n\n await page.evaluate(\n (type, data, width, height) => {\n try {\n console.log('Canvas 렌더링 시작')\n\n const canvas = document.getElementById('weatherCanvas') as HTMLCanvasElement\n if (!canvas) {\n throw new Error('캔버스를 찾을 수 없습니다.')\n }\n\n const ctx = canvas.getContext('2d')\n if (!ctx) {\n throw new Error('CanvasRenderingContext2D를 가져올 수 없습니다.')\n }\n\n ctx.clearRect(0, 0, width, height)\n\n function latLngToPixel(lat, lng) {\n if (isNaN(lat) || isNaN(lng)) return null\n const x = Math.floor(((lng + 180) / 360) * width)\n const y = Math.floor(((90 - lat) / 180) * height)\n if (x < 0 || x >= width || y < 0 || y >= height) return null\n return { x, y }\n }\n\n function valueToRGB(type, dataPoint) {\n if (!dataPoint || typeof dataPoint.value !== 'number') {\n console.warn('잘못된 데이터 포인트:', dataPoint)\n return { r: 0, g: 0, b: 0, a: 0 }\n }\n switch (type) {\n case 'temperature':\n return { r: Math.min(255, Math.max(0, (dataPoint.value + 50) * 2.55)), g: 0, b: 0, a: 255 }\n case 'humidity':\n return { r: 0, g: Math.min(255, Math.max(0, dataPoint.humidity * 2.55)), b: 0, a: 255 }\n case 'wind':\n return { r: Math.min(255, Math.max(0, dataPoint.windSpeed * 5)), g: 0, b: 255, a: 255 }\n case 'precipitation':\n return { r: 0, g: 0, b: Math.min(255, Math.max(0, dataPoint.precipitation * 2.55)), a: 255 }\n default:\n return { r: 255, g: 255, b: 255, a: 255 }\n }\n }\n\n const imageData = ctx.createImageData(width, height)\n\n data.forEach(point => {\n const pixel = latLngToPixel(point.lat, point.lng)\n if (!pixel) return\n\n const color = valueToRGB(type, point)\n const index = (pixel.y * width + pixel.x) * 4\n\n if (index >= 0 && index < imageData.data.length) {\n imageData.data[index] = color.r\n imageData.data[index + 1] = color.g\n imageData.data[index + 2] = color.b\n imageData.data[index + 3] = color.a\n } else {\n console.warn('잘못된 인덱스:', index)\n }\n\n /* only for test */\n for (let dy = -18; dy <= 18; dy++) {\n for (let dx = -18; dx <= 18; dx++) {\n const fillIndex = ((pixel.y + dy) * width + (pixel.x + dx)) * 4\n if (fillIndex >= 0 && fillIndex < imageData.data.length) {\n imageData.data[fillIndex] = color.r\n imageData.data[fillIndex + 1] = color.g\n imageData.data[fillIndex + 2] = color.b\n imageData.data[fillIndex + 3] = color.a\n }\n }\n }\n })\n\n ctx.putImageData(imageData, 0, 0)\n console.log('Canvas 렌더링 완료')\n ;(window as any).renderComplete = true\n } catch (err) {\n console.error('렌더링 오류:', err)\n ;(window as any).renderComplete = false\n }\n },\n type,\n data,\n width,\n height\n )\n\n console.log('렌더링 완료')\n\n const renderComplete = await page\n .waitForFunction('window.renderComplete === true', { timeout: 10000 })\n .catch(err => {\n console.error('렌더링 완료 신호 감지 실패:', err)\n return false\n })\n\n if (!renderComplete) {\n throw new Error('렌더링이 완료되지 않았습니다.')\n }\n\n const pngBuffer = await page.screenshot({\n type: 'png',\n omitBackground: true\n })\n\n console.log(`PNG 생성 완료: ${pngBuffer.length} 바이트`)\n return pngBuffer\n } catch (error) {\n console.error('날씨 맵 렌더링 오류:', error)\n throw error\n } finally {\n await getBrowserPool().release(browser)\n }\n}\n"]}
1
+ {"version":3,"file":"chrome-renderer.js","sourceRoot":"","sources":["../../server/services/chrome-renderer.ts"],"names":[],"mappings":";;AAEA,4CA2MC;AA7MD,mDAAgD;AAEzC,KAAK,UAAU,gBAAgB,CACpC,IAAY,EACZ,IAYG,EACH,QAAgB,IAAI,EACpB,SAAiB,GAAG;IAEpB,OAAO,CAAC,GAAG,CAAC,4BAA4B,IAAI,YAAY,IAAI,CAAC,MAAM,EAAE,CAAC,CAAA;IAEtE,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAA;IAC9C,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,IAAA,8BAAc,GAAE,CAAC,OAAO,EAAE,CAAA;IAEhD,IAAI,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAA;QAC3B,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,OAAO,EAAE,CAAA;QAEpC,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G,CAAC,EAAE;YACX,OAAO,CAAC,KAAK,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAA;YACtC,OAAO,KAAK,CAAA;QACd,CAAC,CAAC,CAAA;QAEJ,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;QACrC,CAAC;QAED,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC;YACtC,IAAI,EAAE,KAAK;YACX,cAAc,EAAE,IAAI;SACrB,CAAC,CAAA;QAEF,OAAO,CAAC,GAAG,CAAC,cAAc,SAAS,CAAC,MAAM,MAAM,CAAC,CAAA;QACjD,OAAO,SAAS,CAAA;IAClB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAA;QACpC,MAAM,KAAK,CAAA;IACb,CAAC;YAAS,CAAC;QACT,MAAM,IAAA,8BAAc,GAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;IACzC,CAAC;AACH,CAAC","sourcesContent":["import { getBrowserPool } from './headless-pool'\n\nexport async function renderWeatherMap(\n type: string,\n data: {\n lat: number\n lng: number\n value: number\n description: number\n temperature: number\n humidity: number\n cloudCoverage: number\n solarRadiation: number\n windSpeed: number\n windDirection: number\n precipitation?: number\n }[],\n width: number = 1800,\n height: number = 900\n): Promise<Buffer> {\n console.log(`renderWeatherMap 호출됨: 타입=${type}, 데이터 개수=${data.length}`)\n\n if (!data || data.length === 0) {\n throw new Error('데이터가 없습니다. PNG 생성을 중단합니다.')\n }\n\n const browser = await getBrowserPool().acquire()\n\n try {\n console.log('브라우저 인스턴스 획득')\n const page = await browser.newPage()\n\n // 모든 콘솔 로그를 캡처하여 Node.js 프로세스에 출력\n page.on('console', msg => {\n console.log(`PAGE LOG [${msg.type()}]: ${msg.text()}`)\n })\n\n // 오류 이벤트도 추적 (예: Unhandled Promise Rejection)\n page.on('pageerror', err => {\n console.error('BROWSER PAGE ERROR:', err)\n })\n\n await page.setViewport({ width, height })\n\n await page.setContent(`\n <!DOCTYPE html>\n <html>\n <head>\n <style>body { margin: 0; }</style>\n </head>\n <body>\n <canvas id=\"weatherCanvas\" width=\"${width}\" height=\"${height}\"></canvas>\n </body>\n </html>\n `)\n\n console.log('HTML 콘텐츠 설정 완료')\n\n await page.evaluate(\n (type, data, width, height) => {\n try {\n console.log('Canvas 렌더링 시작')\n\n const canvas = document.getElementById('weatherCanvas') as HTMLCanvasElement\n if (!canvas) {\n throw new Error('캔버스를 찾을 수 없습니다.')\n }\n\n const ctx = canvas.getContext('2d')\n if (!ctx) {\n throw new Error('CanvasRenderingContext2D를 가져올 수 없습니다.')\n }\n\n ctx.clearRect(0, 0, width, height)\n\n function latLngToPixel(lat, lng) {\n if (isNaN(lat) || isNaN(lng)) return null\n const x = Math.floor(((lng + 180) / 360) * width)\n const y = Math.floor(((90 - lat) / 180) * height)\n if (x < 0 || x >= width || y < 0 || y >= height) return null\n return { x, y }\n }\n\n function valueToRGB(type, dataPoint) {\n if (!dataPoint || typeof dataPoint.value !== 'number') {\n console.warn('잘못된 데이터 포인트:', dataPoint)\n return { r: 0, g: 0, b: 0, a: 0 }\n }\n switch (type) {\n case 'temperature':\n return { r: Math.min(255, Math.max(0, (dataPoint.value + 50) * 2.55)), g: 0, b: 0, a: 255 }\n case 'humidity':\n return { r: 0, g: Math.min(255, Math.max(0, dataPoint.humidity * 2.55)), b: 0, a: 255 }\n case 'wind':\n return { r: Math.min(255, Math.max(0, dataPoint.windSpeed * 5)), g: 0, b: 255, a: 255 }\n case 'precipitation':\n return { r: 0, g: 0, b: Math.min(255, Math.max(0, dataPoint.precipitation * 2.55)), a: 255 }\n default:\n return { r: 255, g: 255, b: 255, a: 255 }\n }\n }\n\n function calculateColor(type, value) {\n switch (type) {\n case 'temperature':\n return { r: Math.min(255, Math.max(0, (value + 50) * 2.55)), g: 0, b: 0, a: 255 }\n case 'humidity':\n return { r: 0, g: Math.min(255, Math.max(0, value * 2.55)), b: 0, a: 255 }\n case 'wind':\n return { r: Math.min(255, Math.max(0, value * 5)), g: 0, b: 255, a: 255 }\n case 'precipitation':\n return { r: 0, g: 0, b: Math.min(255, Math.max(0, value * 2.55)), a: 255 }\n default:\n return { r: 255, g: 255, b: 255, a: 255 }\n }\n }\n\n function renderInterpolated(ctx, data, type, width, height) {\n const imageData = ctx.createImageData(width, height)\n const maxDistance = width * 0.05 // 최대 영향 거리 (이미지 너비의 5%)\n\n // 모든 픽셀에 대해 계산\n for (let y = 0; y < height; y++) {\n for (let x = 0; x < width; x++) {\n // 픽셀의 위/경도 계산\n const lng = (x / width) * 360 - 180\n const lat = 90 - (y / height) * 180\n\n // 역거리 가중치 보간법\n let weightedSum = 0\n let totalWeight = 0\n\n data.forEach(point => {\n const pixelX = ((point.lng + 180) / 360) * width\n const pixelY = ((90 - point.lat) / 180) * height\n const distance = Math.sqrt(Math.pow(x - pixelX, 2) + Math.pow(y - pixelY, 2))\n\n if (distance <= maxDistance && typeof point.value === 'number') {\n const weight = 1 / (Math.pow(distance, 2) + 0.1)\n weightedSum += point.value * weight\n totalWeight += weight\n }\n })\n\n const index = (y * width + x) * 4\n if (totalWeight > 0) {\n const value = weightedSum / totalWeight\n const color = calculateColor(type, value)\n\n imageData.data[index] = color.r\n imageData.data[index + 1] = color.g\n imageData.data[index + 2] = color.b\n imageData.data[index + 3] = color.a\n } else {\n // 영향 범위 내 데이터 없음\n imageData.data[index + 3] = 0 // 투명하게\n }\n }\n }\n\n ctx.putImageData(imageData, 0, 0)\n }\n\n // 보간 렌더링 호출\n renderInterpolated(ctx, data, type, width, height)\n\n console.log('Canvas 렌더링 완료')\n ;(window as any).renderComplete = true\n } catch (err) {\n console.error('렌더링 오류:', err)\n ;(window as any).renderComplete = false\n }\n },\n type,\n data,\n width,\n height\n )\n\n console.log('렌더링 완료')\n\n const renderComplete = await page\n .waitForFunction('window.renderComplete === true', { timeout: 10000 })\n .catch(err => {\n console.error('렌더링 완료 신호 감지 실패:', err)\n return false\n })\n\n if (!renderComplete) {\n throw new Error('렌더링이 완료되지 않았습니다.')\n }\n\n const pngBuffer = await page.screenshot({\n type: 'png',\n omitBackground: true\n })\n\n console.log(`PNG 생성 완료: ${pngBuffer.length} 바이트`)\n return pngBuffer\n } catch (error) {\n console.error('날씨 맵 렌더링 오류:', error)\n throw error\n } finally {\n await getBrowserPool().release(browser)\n }\n}\n"]}
@@ -1 +1 @@
1
- {"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/generic-pool/index.d.ts","../../env/lib/dependency-graph.d.ts","../../env/lib/dependency-order.d.ts","../../env/lib/scene-modules.d.ts","../../env/lib/operato-modules.d.ts","../../env/lib/config.d.ts","../../../node_modules/@types/triple-beam/index.d.ts","../../../node_modules/logform/index.d.ts","../../../node_modules/winston-transport/index.d.ts","../../../node_modules/winston/lib/winston/config/index.d.ts","../../../node_modules/winston/lib/winston/transports/index.d.ts","../../../node_modules/winston/index.d.ts","../../../node_modules/winston-daily-rotate-file/index.d.ts","../../env/lib/logger.d.ts","../../env/lib/module-loader.d.ts","../../env/lib/app-root-path.d.ts","../../env/lib/app-package.d.ts","../../env/lib/index.d.ts","../server/services/headless-pool.ts","../../cache-service/dist-server/service/cache-store/cache-store.d.ts","../../cache-service/dist-server/service/index.d.ts","../../cache-service/dist-server/controllers/types.d.ts","../../cache-service/dist-server/controllers/cache-service.d.ts","../../cache-service/dist-server/index.d.ts","../server/controllers/types.ts","../server/controllers/open-meteo-adapter.ts","../server/services/chrome-renderer.ts","../server/controllers/weather-controller.ts","../server/routers/weather-router.ts","../server/routers/geo-router.ts","../server/routes.ts","../server/index.ts","../server/utils/svg-utils.ts","../server/utils/tile-utils.ts","../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/chalk/index.d.ts","../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts"],"fileIdsList":[[54,97],[54,97,184],[54,97,186,189],[54,94,97],[54,96,97],[97],[54,97,102,132],[54,97,98,103,109,110,117,129,140],[54,97,98,99,109,117],[49,50,51,54,97],[54,97,100,141],[54,97,101,102,110,118],[54,97,102,129,137],[54,97,103,105,109,117],[54,96,97,104],[54,97,105,106],[54,97,109],[54,97,107,109],[54,96,97,109],[54,97,109,110,111,129,140],[54,97,109,110,111,124,129,132],[54,92,97,145],[54,92,97,105,109,112,117,129,140],[54,97,109,110,112,113,117,129,137,140],[54,97,112,114,129,137,140],[52,53,54,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146],[54,97,109,115],[54,97,116,140],[54,97,105,109,117,129],[54,97,118],[54,97,119],[54,96,97,120],[54,94,95,96,97,98,99,100,101,102,103,104,105,106,107,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146],[54,97,122],[54,97,123],[54,97,109,124,125],[54,97,124,126,141,143],[54,97,109,129,130,132],[54,97,131,132],[54,97,129,130],[54,97,132],[54,97,133],[54,94,97,129],[54,97,109,135,136],[54,97,135,136],[54,97,102,117,129,137],[54,97,138],[54,97,117,139],[54,97,112,123,140],[54,97,102,141],[54,97,129,142],[54,97,116,143],[54,97,144],[54,97,102,109,111,120,129,140,143,145],[54,97,129,146],[54,97,182,188],[54,97,109,147],[54,97,186],[54,97,183,187],[54,97,154],[54,97,185],[54,64,68,97,140],[54,64,97,129,140],[54,59,97],[54,61,64,97,137,140],[54,97,117,137],[54,97,147],[54,59,97,147],[54,61,64,97,117,140],[54,56,57,60,63,97,109,129,140],[54,64,71,97],[54,56,62,97],[54,64,85,86,97],[54,60,64,97,132,140,147],[54,85,97,147],[54,58,59,97,147],[54,64,97],[54,58,59,60,61,62,63,64,65,66,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,97],[54,64,79,97],[54,64,71,72,97],[54,62,64,72,73,97],[54,63,97],[54,56,59,64,97],[54,64,68,72,73,97],[54,68,97],[54,62,64,67,97,140],[54,56,61,64,71,97],[54,97,129],[54,59,64,85,97,145,147],[54,97,156,158],[54,97,129,147,155],[54,97,129,147,155,156,157,158],[54,97,112,147,156],[54,97,169],[54,97,168,170],[54,97,167],[54,97,149,150,151,152,153,161,162,163,164],[54,97,159,160],[48,54,97,172],[48,54,97],[48,54,97,165,171,172,173,174],[48,54,97,178],[48,54,97,98,110,119,141,165],[48,54,97,175],[48,54,97,166,176,177],[48,54,97,166],[48,54,97,148,165]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"8fa51737611c21ba3a5ac02c4e1535741d58bec67c9bdf94b1837a31c97a2263","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4f0539c58717cbc8b73acb29f9e992ab5ff20adba5f9b57130691c7f9b186a4d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"f9677e434b7a3b14f0a9367f9dfa1227dfe3ee661792d0085523c3191ae6a1a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"9057f224b79846e3a95baf6dad2c8103278de2b0c5eebda23fc8188171ad2398","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0476e6b51a47a8eaf5ee6ecab0d686f066f3081de9a572f1dde3b2a8a7fb055","impliedFormat":1},{"version":"1e289f30a48126935a5d408a91129a13a59c9b0f8c007a816f9f16ef821e144e","impliedFormat":1},{"version":"f96a023e442f02cf551b4cfe435805ccb0a7e13c81619d4da61ec835d03fe512","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"528b62e4272e3ddfb50e8eed9e359dedea0a4d171c3eb8f337f4892aac37b24b","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"5b2e73adcb25865d31c21accdc8f82de1eaded23c6f73230e474df156942380e","affectsGlobalScope":true,"impliedFormat":1},{"version":"23459c1915878a7c1e86e8bdb9c187cddd3aea105b8b1dfce512f093c969bc7e","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true,"impliedFormat":1},{"version":"64ede330464b9fd5d35327c32dd2770e7474127ed09769655ebce70992af5f44","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"bcd0418abb8a5c9fe7db36a96ca75fc78455b0efab270ee89b8e49916eac5174","impliedFormat":1},{"version":"c878f74b6d10b267f6075c51ac1d8becd15b4aa6a58f79c0cfe3b24908357f60","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"fbf68fc8057932b1c30107ebc37420f8d8dc4bef1253c4c2f9e141886c0df5ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"7d8b16d7f33d5081beac7a657a6d13f11a72cf094cc5e37cda1b9d8c89371951","affectsGlobalScope":true,"impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"e679ff5aba9041b932fd3789f4a1c69ddaf015ee54c5879b5b1f4727bcbe00dd","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"b02784111b3fc9c38590cd4339ff8718f9329a6f4d3fd66e9744a1dcd1d7e191","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"63b05afa6121657f25e99e1519596b0826cda026f09372c9100dfe21417f4bd6","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"f025c51bcc3c7dacbedb4b9a398815f4d5c6f4c645db40880cee4ac6f89588de","impliedFormat":1},"61da60198d58f00210a34b39a0625a136ae63d7cf42500e764b91b2e5e2dbdcb","4c11afc0bcf5ad4cb8351103476e6e8076ad11f563ae65a94a14b94d158d046a","2ffaa1f7886d57fe801bd41337521c661ee17d657d1004e504d5422f62cfd23c","738433a0f2e73b2ba4ebbcaa6487030e0b8aa64e65813a160e1b845e20338d9c","972608570a8b1d91ef22149c069a5c29d75d00b4131e2697ea6d42302d3548b9",{"version":"908217c4f2244ec402b73533ebfcc46d6dcd34fc1c807ff403d7f98702abb3bc","impliedFormat":1},{"version":"1bc5991c91bf4be8b59db501ed284a34945d95abe9b7451d02ea001f7c5621a9","impliedFormat":1},{"version":"d8b8a5a6bf623239d5374ad4a7ff6f3b195ab5ee61293f59f1957e90d2a22809","impliedFormat":1},{"version":"35d283eca7dc0a0c7b099f5fbbf0678b87f3d837572cd5e539ba297ad9837e68","impliedFormat":1},{"version":"1c8384a195a2d931cf6e2b8f656acf558ca649a3f74922d86b95889f49a7f7c5","impliedFormat":1},{"version":"cd11655f57a3558dfcee05a6e78c026f9dfd30535eaf124439c5e88a5617359b","impliedFormat":1},{"version":"83a328cba2f47fc5a948eac394ae2ef2a5a0d26dd366ab373d2c2178bbdcd36c","impliedFormat":1},"2aafbaf6ace811133c4858f9184a6597866fbccb89eb6f1b9c4247e87d0bbfed","2a3c89ad1f603f3f0358499abf18332d30a4d34bb8070f23d5aa9e948cce3998","9e795af82140c310a86279c6f0079d8de3b4db03b4d9476267aa8703a9b7d7a7","46a0b34e1264c4d25ca6646ff0e6cfaa7275ea1ae5a6bc23d4dfd84edf2f2b2e","3dd00310a80b51f37de6c082119f40fdf820dce9410739658e6fa76eceadcaa0",{"version":"abeb98f9c33e1aa2f9e02485eda40de17e9a97230072109e96db1e92b9963b93","signature":"c7f308c98232b1db980cd30e47863d2c3ea0f5aa5be81ff12a3d10442ad9d9f7"},"cf27a60556daaea6b9d1d27168308f8a128880d8485851e22eb9f0c74b5da5dd","2ca9fb9328f97e06648279e69dada7c0543954567c7b6e9db53b30e785c5347c","5f3dcc311154776306a5c0eacd2155e8c6f7e535c03ef0b8357a3aa2d776f227","58ca4e75a54fdc39de06adff9084fe7734d956271cd5d4bed84726cf1efb56a3","63201ccadeea78aa45cab1e7bebccfa0b1ada7d961cbaa4f1a92af02ccfec77d",{"version":"d529a01a206d6a2397631eea0cf3454a35689f0eba1fae0821fe2fb28517ae3a","signature":"adc339cfac8f9b4e03f1436b1fdb29c6e291e719152d44f1b3a9b030d63505c1"},{"version":"488b1a03be05027c5e6b3df5f17da8f7f2651db7ce5df4a09c463655a589a1fe","signature":"edb860f972a326c5a15e28eb3606cda33fa628b63c8d5b92564070d409f0bc06"},{"version":"45202aa204fe3f0154100fa284c0b3960d45ccefb325f9d66c349f13726901da","signature":"397f949f93d23ebdd7f931b402870ac1fad7aaee26b3957f40a5bd739b699fe1"},{"version":"8577b1b8f6c2f5c8600216a5381dc8d76272d3e4ea51d724adebcaebdf61c476","signature":"5076845b7f976db2dd6c181620be3f63da5694d338a4a479e546abf670ea9155"},{"version":"0662ce577e896532102a21e6ed36c80fa41cd278405663e4d840e69e698f35fd","signature":"0cc0d21737c850957c564e38cf710bd59d9b015be2fce1ac9c4a6da8445e805b"},{"version":"32b6c43fffef936e49a7699393494860bf47b4e948db4de7552381ade0c4bca1","signature":"288b7d82945b9e05f8fd19807bfd58022a0b6c9b9bd001cdcd4758a5fef39832"},{"version":"3ca4b5241ab98292b46b14d6a6d0a45cc4e0201a55293d4b8a297c7389351743","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"f6144c943d1c134761f023d01b4737c6c1ddfdd4cac7ee13a0a64832473a66e1","signature":"50f956761821f6e8ca08bedf53b7ff35f307f6683d7c1c45bd45d9d7cf8e1856"},{"version":"0801e7f2e384cddc91022c5986738f6ad0f9ee27c638ce82d7281709f1281bb2","signature":"a05339ad4a2e5dc5cb11fea434eb6b2bc13a31a4008e0dddb655301e775cf926"},{"version":"7094f4136e5c2f71feeb4726b5a98468a6cd774cdb11e51d9ecde9d44d85d302","signature":"814c0d27a1cecf0f6cdc01ab233a9b351c52017d123c6db4d97dfd5f26822093"},{"version":"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","impliedFormat":1},{"version":"f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","impliedFormat":1},{"version":"5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","impliedFormat":1},{"version":"3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","impliedFormat":1},{"version":"ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","impliedFormat":1},{"version":"d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec","impliedFormat":1},{"version":"f8db4fea512ab759b2223b90ecbbe7dae919c02f8ce95ec03f7fb1cf757cfbeb","affectsGlobalScope":true,"impliedFormat":1}],"root":[166,[172,181]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":1,"noEmitOnError":true,"noImplicitAny":false,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":false,"target":4,"useDefineForClassFields":false},"referencedMap":[[182,1],[185,2],[184,1],[190,3],[94,4],[95,4],[96,5],[54,6],[97,7],[98,8],[99,9],[49,1],[52,10],[50,1],[51,1],[100,11],[101,12],[102,13],[103,14],[104,15],[105,16],[106,16],[108,17],[107,18],[109,19],[110,20],[111,21],[93,22],[53,1],[112,23],[113,24],[114,25],[147,26],[115,27],[116,28],[117,29],[118,30],[119,31],[120,32],[121,33],[122,34],[123,35],[124,36],[125,36],[126,37],[127,1],[128,1],[129,38],[131,39],[130,40],[132,41],[133,42],[134,43],[135,44],[136,45],[137,46],[138,47],[139,48],[140,49],[141,50],[142,51],[143,52],[144,53],[145,54],[146,55],[154,1],[55,1],[183,1],[189,56],[148,57],[187,58],[188,59],[155,60],[186,61],[48,1],[46,1],[47,1],[8,1],[9,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[20,1],[21,1],[4,1],[22,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[5,1],[30,1],[31,1],[32,1],[33,1],[6,1],[37,1],[34,1],[35,1],[36,1],[38,1],[7,1],[39,1],[44,1],[45,1],[40,1],[41,1],[42,1],[43,1],[1,1],[71,62],[81,63],[70,62],[91,64],[62,65],[61,66],[90,67],[84,68],[89,69],[64,70],[78,71],[63,72],[87,73],[59,74],[58,67],[88,75],[60,76],[65,77],[66,1],[69,77],[56,1],[92,78],[82,79],[73,80],[74,81],[76,82],[72,83],[75,84],[85,67],[67,85],[68,86],[77,87],[57,88],[80,79],[79,77],[83,1],[86,89],[160,90],[156,91],[159,92],[157,67],[158,93],[170,94],[169,1],[171,95],[167,1],[168,96],[164,1],[163,1],[153,1],[149,1],[150,1],[165,97],[161,98],[162,1],[152,1],[151,1],[173,99],[172,100],[175,101],[179,102],[177,103],[176,104],[178,105],[174,106],[166,107],[180,100],[181,100]],"version":"5.8.3"}
1
+ {"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/generic-pool/index.d.ts","../../env/lib/dependency-graph.d.ts","../../env/lib/dependency-order.d.ts","../../env/lib/scene-modules.d.ts","../../env/lib/operato-modules.d.ts","../../env/lib/config.d.ts","../../../node_modules/@types/triple-beam/index.d.ts","../../../node_modules/logform/index.d.ts","../../../node_modules/winston-transport/index.d.ts","../../../node_modules/winston/lib/winston/config/index.d.ts","../../../node_modules/winston/lib/winston/transports/index.d.ts","../../../node_modules/winston/index.d.ts","../../../node_modules/winston-daily-rotate-file/index.d.ts","../../env/lib/logger.d.ts","../../env/lib/module-loader.d.ts","../../env/lib/app-root-path.d.ts","../../env/lib/app-package.d.ts","../../env/lib/index.d.ts","../server/services/headless-pool.ts","../../cache-service/dist-server/service/cache-store/cache-store.d.ts","../../cache-service/dist-server/service/index.d.ts","../../cache-service/dist-server/controllers/types.d.ts","../../cache-service/dist-server/controllers/cache-service.d.ts","../../cache-service/dist-server/index.d.ts","../server/controllers/types.ts","../server/controllers/open-meteo-adapter.ts","../server/services/chrome-renderer.ts","../server/controllers/weather-controller.ts","../server/routers/weather-router.ts","../server/routers/geo-router.ts","../server/routes.ts","../server/index.ts","../server/utils/svg-utils.ts","../server/utils/tile-utils.ts","../../../node_modules/@jest/expect-utils/build/index.d.ts","../../../node_modules/chalk/index.d.ts","../../../node_modules/@sinclair/typebox/typebox.d.ts","../../../node_modules/@jest/schemas/build/index.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/jest-matcher-utils/build/index.d.ts","../../../node_modules/expect/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts"],"fileIdsList":[[54,97],[54,97,184],[54,97,186,189],[54,94,97],[54,96,97],[97],[54,97,102,132],[54,97,98,103,109,110,117,129,140],[54,97,98,99,109,117],[49,50,51,54,97],[54,97,100,141],[54,97,101,102,110,118],[54,97,102,129,137],[54,97,103,105,109,117],[54,96,97,104],[54,97,105,106],[54,97,109],[54,97,107,109],[54,96,97,109],[54,97,109,110,111,129,140],[54,97,109,110,111,124,129,132],[54,92,97,145],[54,92,97,105,109,112,117,129,140],[54,97,109,110,112,113,117,129,137,140],[54,97,112,114,129,137,140],[52,53,54,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146],[54,97,109,115],[54,97,116,140],[54,97,105,109,117,129],[54,97,118],[54,97,119],[54,96,97,120],[54,94,95,96,97,98,99,100,101,102,103,104,105,106,107,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146],[54,97,122],[54,97,123],[54,97,109,124,125],[54,97,124,126,141,143],[54,97,109,129,130,132],[54,97,131,132],[54,97,129,130],[54,97,132],[54,97,133],[54,94,97,129],[54,97,109,135,136],[54,97,135,136],[54,97,102,117,129,137],[54,97,138],[54,97,117,139],[54,97,112,123,140],[54,97,102,141],[54,97,129,142],[54,97,116,143],[54,97,144],[54,97,102,109,111,120,129,140,143,145],[54,97,129,146],[54,97,182,188],[54,97,109,147],[54,97,186],[54,97,183,187],[54,97,154],[54,97,185],[54,64,68,97,140],[54,64,97,129,140],[54,59,97],[54,61,64,97,137,140],[54,97,117,137],[54,97,147],[54,59,97,147],[54,61,64,97,117,140],[54,56,57,60,63,97,109,129,140],[54,64,71,97],[54,56,62,97],[54,64,85,86,97],[54,60,64,97,132,140,147],[54,85,97,147],[54,58,59,97,147],[54,64,97],[54,58,59,60,61,62,63,64,65,66,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,97],[54,64,79,97],[54,64,71,72,97],[54,62,64,72,73,97],[54,63,97],[54,56,59,64,97],[54,64,68,72,73,97],[54,68,97],[54,62,64,67,97,140],[54,56,61,64,71,97],[54,97,129],[54,59,64,85,97,145,147],[54,97,156,158],[54,97,129,147,155],[54,97,129,147,155,156,157,158],[54,97,112,147,156],[54,97,169],[54,97,168,170],[54,97,167],[54,97,149,150,151,152,153,161,162,163,164],[54,97,159,160],[48,54,97,172],[48,54,97],[48,54,97,165,171,172,173,174],[48,54,97,178],[48,54,97,98,110,119,141,165],[48,54,97,175],[48,54,97,166,176,177],[48,54,97,166],[48,54,97,148,165]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"092c2bfe125ce69dbb1223c85d68d4d2397d7d8411867b5cc03cec902c233763","affectsGlobalScope":true,"impliedFormat":1},{"version":"07f073f19d67f74d732b1adea08e1dc66b1b58d77cb5b43931dee3d798a2fd53","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"a6a5253138c5432c68a1510c70fe78a644fe2e632111ba778e1978010d6edfec","impliedFormat":1},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"8fa51737611c21ba3a5ac02c4e1535741d58bec67c9bdf94b1837a31c97a2263","affectsGlobalScope":true,"impliedFormat":1},{"version":"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"d2bc987ae352271d0d615a420dcf98cc886aa16b87fb2b569358c1fe0ca0773d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4f0539c58717cbc8b73acb29f9e992ab5ff20adba5f9b57130691c7f9b186a4d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"f9677e434b7a3b14f0a9367f9dfa1227dfe3ee661792d0085523c3191ae6a1a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"9057f224b79846e3a95baf6dad2c8103278de2b0c5eebda23fc8188171ad2398","affectsGlobalScope":true,"impliedFormat":1},{"version":"19d5f8d3930e9f99aa2c36258bf95abbe5adf7e889e6181872d1cdba7c9a7dd5","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"88bc59b32d0d5b4e5d9632ac38edea23454057e643684c3c0b94511296f2998c","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0476e6b51a47a8eaf5ee6ecab0d686f066f3081de9a572f1dde3b2a8a7fb055","impliedFormat":1},{"version":"1e289f30a48126935a5d408a91129a13a59c9b0f8c007a816f9f16ef821e144e","impliedFormat":1},{"version":"f96a023e442f02cf551b4cfe435805ccb0a7e13c81619d4da61ec835d03fe512","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"528b62e4272e3ddfb50e8eed9e359dedea0a4d171c3eb8f337f4892aac37b24b","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"5b2e73adcb25865d31c21accdc8f82de1eaded23c6f73230e474df156942380e","affectsGlobalScope":true,"impliedFormat":1},{"version":"23459c1915878a7c1e86e8bdb9c187cddd3aea105b8b1dfce512f093c969bc7e","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"1dc73f8854e5c4506131c4d95b3a6c24d0c80336d3758e95110f4c7b5cb16397","affectsGlobalScope":true,"impliedFormat":1},{"version":"64ede330464b9fd5d35327c32dd2770e7474127ed09769655ebce70992af5f44","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"bcd0418abb8a5c9fe7db36a96ca75fc78455b0efab270ee89b8e49916eac5174","impliedFormat":1},{"version":"c878f74b6d10b267f6075c51ac1d8becd15b4aa6a58f79c0cfe3b24908357f60","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"fbf68fc8057932b1c30107ebc37420f8d8dc4bef1253c4c2f9e141886c0df5ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"7d8b16d7f33d5081beac7a657a6d13f11a72cf094cc5e37cda1b9d8c89371951","affectsGlobalScope":true,"impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"217941ef5c6fd81b77cd0073c94019a98e20777eaac6c4326156bf6b021ed547","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"b02784111b3fc9c38590cd4339ff8718f9329a6f4d3fd66e9744a1dcd1d7e191","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"63b05afa6121657f25e99e1519596b0826cda026f09372c9100dfe21417f4bd6","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"f025c51bcc3c7dacbedb4b9a398815f4d5c6f4c645db40880cee4ac6f89588de","impliedFormat":1},"61da60198d58f00210a34b39a0625a136ae63d7cf42500e764b91b2e5e2dbdcb","4c11afc0bcf5ad4cb8351103476e6e8076ad11f563ae65a94a14b94d158d046a","2ffaa1f7886d57fe801bd41337521c661ee17d657d1004e504d5422f62cfd23c","738433a0f2e73b2ba4ebbcaa6487030e0b8aa64e65813a160e1b845e20338d9c","972608570a8b1d91ef22149c069a5c29d75d00b4131e2697ea6d42302d3548b9",{"version":"908217c4f2244ec402b73533ebfcc46d6dcd34fc1c807ff403d7f98702abb3bc","impliedFormat":1},{"version":"1bc5991c91bf4be8b59db501ed284a34945d95abe9b7451d02ea001f7c5621a9","impliedFormat":1},{"version":"d8b8a5a6bf623239d5374ad4a7ff6f3b195ab5ee61293f59f1957e90d2a22809","impliedFormat":1},{"version":"35d283eca7dc0a0c7b099f5fbbf0678b87f3d837572cd5e539ba297ad9837e68","impliedFormat":1},{"version":"1c8384a195a2d931cf6e2b8f656acf558ca649a3f74922d86b95889f49a7f7c5","impliedFormat":1},{"version":"cd11655f57a3558dfcee05a6e78c026f9dfd30535eaf124439c5e88a5617359b","impliedFormat":1},{"version":"83a328cba2f47fc5a948eac394ae2ef2a5a0d26dd366ab373d2c2178bbdcd36c","impliedFormat":1},"2aafbaf6ace811133c4858f9184a6597866fbccb89eb6f1b9c4247e87d0bbfed","2a3c89ad1f603f3f0358499abf18332d30a4d34bb8070f23d5aa9e948cce3998","9e795af82140c310a86279c6f0079d8de3b4db03b4d9476267aa8703a9b7d7a7","46a0b34e1264c4d25ca6646ff0e6cfaa7275ea1ae5a6bc23d4dfd84edf2f2b2e","3dd00310a80b51f37de6c082119f40fdf820dce9410739658e6fa76eceadcaa0",{"version":"abeb98f9c33e1aa2f9e02485eda40de17e9a97230072109e96db1e92b9963b93","signature":"c7f308c98232b1db980cd30e47863d2c3ea0f5aa5be81ff12a3d10442ad9d9f7"},"cf27a60556daaea6b9d1d27168308f8a128880d8485851e22eb9f0c74b5da5dd","2ca9fb9328f97e06648279e69dada7c0543954567c7b6e9db53b30e785c5347c","5f3dcc311154776306a5c0eacd2155e8c6f7e535c03ef0b8357a3aa2d776f227","58ca4e75a54fdc39de06adff9084fe7734d956271cd5d4bed84726cf1efb56a3","63201ccadeea78aa45cab1e7bebccfa0b1ada7d961cbaa4f1a92af02ccfec77d",{"version":"d529a01a206d6a2397631eea0cf3454a35689f0eba1fae0821fe2fb28517ae3a","signature":"adc339cfac8f9b4e03f1436b1fdb29c6e291e719152d44f1b3a9b030d63505c1"},{"version":"7119a05888b4da78429dcea53f42c699cc7c5de5c2bc5cf14746439966a9ab34","signature":"edb860f972a326c5a15e28eb3606cda33fa628b63c8d5b92564070d409f0bc06"},{"version":"f4104827dc7f8a7f2e186d8e9fe4b79bfc6e2937031b53c595637ae614d4675f","signature":"397f949f93d23ebdd7f931b402870ac1fad7aaee26b3957f40a5bd739b699fe1"},{"version":"755715ed6610c98b072ba25aaffb02776e33d0cf29c1d750e056d5bb824790d8","signature":"5076845b7f976db2dd6c181620be3f63da5694d338a4a479e546abf670ea9155"},{"version":"0662ce577e896532102a21e6ed36c80fa41cd278405663e4d840e69e698f35fd","signature":"0cc0d21737c850957c564e38cf710bd59d9b015be2fce1ac9c4a6da8445e805b"},{"version":"32b6c43fffef936e49a7699393494860bf47b4e948db4de7552381ade0c4bca1","signature":"288b7d82945b9e05f8fd19807bfd58022a0b6c9b9bd001cdcd4758a5fef39832"},{"version":"3ca4b5241ab98292b46b14d6a6d0a45cc4e0201a55293d4b8a297c7389351743","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"f6144c943d1c134761f023d01b4737c6c1ddfdd4cac7ee13a0a64832473a66e1","signature":"50f956761821f6e8ca08bedf53b7ff35f307f6683d7c1c45bd45d9d7cf8e1856"},{"version":"0801e7f2e384cddc91022c5986738f6ad0f9ee27c638ce82d7281709f1281bb2","signature":"a05339ad4a2e5dc5cb11fea434eb6b2bc13a31a4008e0dddb655301e775cf926"},{"version":"7094f4136e5c2f71feeb4726b5a98468a6cd774cdb11e51d9ecde9d44d85d302","signature":"814c0d27a1cecf0f6cdc01ab233a9b351c52017d123c6db4d97dfd5f26822093"},{"version":"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","impliedFormat":1},{"version":"0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","impliedFormat":1},{"version":"c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","impliedFormat":1},{"version":"f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","impliedFormat":1},{"version":"5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","impliedFormat":1},{"version":"3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","impliedFormat":1},{"version":"ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","impliedFormat":1},{"version":"d96cc6598148bf1a98fb2e8dcf01c63a4b3558bdaec6ef35e087fd0562eb40ec","impliedFormat":1},{"version":"f8db4fea512ab759b2223b90ecbbe7dae919c02f8ce95ec03f7fb1cf757cfbeb","affectsGlobalScope":true,"impliedFormat":1}],"root":[166,[172,181]],"options":{"allowJs":true,"allowSyntheticDefaultImports":true,"declaration":true,"emitDecoratorMetadata":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":1,"noEmitOnError":true,"noImplicitAny":false,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":false,"target":4,"useDefineForClassFields":false},"referencedMap":[[182,1],[185,2],[184,1],[190,3],[94,4],[95,4],[96,5],[54,6],[97,7],[98,8],[99,9],[49,1],[52,10],[50,1],[51,1],[100,11],[101,12],[102,13],[103,14],[104,15],[105,16],[106,16],[108,17],[107,18],[109,19],[110,20],[111,21],[93,22],[53,1],[112,23],[113,24],[114,25],[147,26],[115,27],[116,28],[117,29],[118,30],[119,31],[120,32],[121,33],[122,34],[123,35],[124,36],[125,36],[126,37],[127,1],[128,1],[129,38],[131,39],[130,40],[132,41],[133,42],[134,43],[135,44],[136,45],[137,46],[138,47],[139,48],[140,49],[141,50],[142,51],[143,52],[144,53],[145,54],[146,55],[154,1],[55,1],[183,1],[189,56],[148,57],[187,58],[188,59],[155,60],[186,61],[48,1],[46,1],[47,1],[8,1],[9,1],[11,1],[10,1],[2,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[19,1],[3,1],[20,1],[21,1],[4,1],[22,1],[26,1],[23,1],[24,1],[25,1],[27,1],[28,1],[29,1],[5,1],[30,1],[31,1],[32,1],[33,1],[6,1],[37,1],[34,1],[35,1],[36,1],[38,1],[7,1],[39,1],[44,1],[45,1],[40,1],[41,1],[42,1],[43,1],[1,1],[71,62],[81,63],[70,62],[91,64],[62,65],[61,66],[90,67],[84,68],[89,69],[64,70],[78,71],[63,72],[87,73],[59,74],[58,67],[88,75],[60,76],[65,77],[66,1],[69,77],[56,1],[92,78],[82,79],[73,80],[74,81],[76,82],[72,83],[75,84],[85,67],[67,85],[68,86],[77,87],[57,88],[80,79],[79,77],[83,1],[86,89],[160,90],[156,91],[159,92],[157,67],[158,93],[170,94],[169,1],[171,95],[167,1],[168,96],[164,1],[163,1],[153,1],[149,1],[150,1],[165,97],[161,98],[162,1],[152,1],[151,1],[173,99],[172,100],[175,101],[179,102],[177,103],[176,104],[178,105],[174,106],[166,107],[180,100],[181,100]],"version":"5.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/weather",
3
- "version": "9.0.0-beta.49",
3
+ "version": "9.0.0-beta.52",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -30,10 +30,10 @@
30
30
  "@mapbox/mbtiles": "^0.12.1",
31
31
  "@operato/graphql": "^9.0.0-beta",
32
32
  "@operato/shell": "^9.0.0-beta",
33
- "@things-factory/auth-base": "^9.0.0-beta.49",
34
- "@things-factory/cache-service": "^9.0.0-beta.49",
35
- "@things-factory/env": "^9.0.0-beta.38",
36
- "@things-factory/shell": "^9.0.0-beta.47",
33
+ "@things-factory/auth-base": "^9.0.0-beta.52",
34
+ "@things-factory/cache-service": "^9.0.0-beta.52",
35
+ "@things-factory/env": "^9.0.0-beta.52",
36
+ "@things-factory/shell": "^9.0.0-beta.52",
37
37
  "colormap": "^2.3.2",
38
38
  "ol": "^10.4.0",
39
39
  "puppeteer": "^24.5.0"
@@ -41,5 +41,5 @@
41
41
  "devDependencies": {
42
42
  "@types/colormap": "^2.3.4"
43
43
  },
44
- "gitHead": "6f558584d6f7c06cd8f0f934ec9883e4ab037fdc"
44
+ "gitHead": "887b3f87ba9072dd8c76bad6f491443419728d38"
45
45
  }
@@ -77,7 +77,10 @@ export async function getGlobalWeatherData(gridResolution: number = 10): Promise
77
77
  const globalWeatherData: WeatherAround[] = []
78
78
 
79
79
  for (let lat = -90; lat <= 90; lat += gridResolution) {
80
- for (let lon = -180; lon <= 180; lon += gridResolution) {
80
+ // 위도에 따라 경도 샘플링 간격 조정
81
+ const lonStep = Math.max(gridResolution * Math.cos((Math.abs(lat) * Math.PI) / 180), gridResolution / 3)
82
+
83
+ for (let lon = -180; lon < 180; lon += lonStep) {
81
84
  try {
82
85
  const regionWeather = await getWeatherAroundLocation({ latitude: lat, longitude: lon }, gridResolution)
83
86
  globalWeatherData.push(regionWeather)
@@ -78,17 +78,16 @@ export async function getGlobalWeatherImage(type: WeatherType, forceRefresh: boo
78
78
  // 객체인 경우 처리 (JSON.stringify된 버퍼일 수 있음)
79
79
  try {
80
80
  // JSON 문자열로 변환했다가 다시 파싱하면 배열로 변환될 수 있음
81
- cachedData = Object.keys(cachedDataJson)
82
- .filter(key => !isNaN(Number(key)))
83
- .sort((a, b) => Number(a) - Number(b))
84
- .map(key => cachedDataJson[key])
81
+ if ((cachedDataJson.type = 'Buffer')) {
82
+ cachedData = cachedDataJson.data
83
+ }
85
84
  } catch (conversionError) {
86
85
  console.error('캐시 데이터 변환 실패:', conversionError)
87
86
  }
88
87
  }
89
88
  }
90
89
 
91
- if (cachedData) {
90
+ if (cachedData && cachedData.length > 0) {
92
91
  console.log(`전체 날씨 이미지 캐시 사용 (타입: ${type})`)
93
92
  return cachedData
94
93
  }
@@ -98,7 +97,7 @@ export async function getGlobalWeatherImage(type: WeatherType, forceRefresh: boo
98
97
 
99
98
  var { value: weatherPoints } = (await cacheService.getFromCache(`weather-points`, {})) || {}
100
99
 
101
- if (!weatherPoints) {
100
+ if (!weatherPoints || weatherPoints.length === 0) {
102
101
  const weatherData = await getGlobalWeatherData(10)
103
102
 
104
103
  const flattenedWeatherPoints = weatherData.reduce((acc, area) => {
@@ -106,10 +105,27 @@ export async function getGlobalWeatherImage(type: WeatherType, forceRefresh: boo
106
105
  }, [])
107
106
 
108
107
  weatherPoints = flattenedWeatherPoints.map(point => {
108
+ let value
109
+ switch (type) {
110
+ case 'temperature':
111
+ value = point.temperature?.current
112
+ break
113
+ case 'humidity':
114
+ value = point.humidity
115
+ break
116
+ case 'wind':
117
+ value = point.wind?.speed
118
+ break
119
+ case 'precipitation':
120
+ value = 0
121
+ break // 현재 데이터 없음
122
+ }
123
+
109
124
  return {
110
125
  lat: point.location.latitude,
111
126
  lng: point.location.longitude,
112
- value: point.temperature?.current,
127
+ value,
128
+ // value: point.temperature?.current,
113
129
  description: point.weatherDescription,
114
130
  temperature: point.temperature?.current,
115
131
  humidity: point.humidity,