{"version":3,"sources":["jsdelivr-header.js","/npm/@switchbot/homebridge-switchbot@5.2.12/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,OCNS,4BAA+B,0BAC/B,cAAe,gBAAmB,uBAClC,yBAA4B,mCAC5B,4BAA+B,sCAC/B,wBAA2B,4BAWpB,IAEZ,wBAAwB,EAAK,GAAW,QAAQ,KAAK,IAAI,kBAAkB,MAC3E,MAAM,EAAY,oBAAoB,qBAAsB,yBAC5D,EAAI,iBAAiB,YAAa,cAAe","file":"/npm/@switchbot/homebridge-switchbot@5.2.12/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/@switchbot/homebridge-switchbot@5.2.12/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import { repairCachedAccessories } from './cacheRepair.js';\nimport { PLATFORM_NAME, PLUGIN_NAME } from './settings.js';\nimport { SwitchBotHAPPlatform } from './SwitchBotHAPPlatform.js';\nimport { SwitchBotMatterPlatform } from './SwitchBotMatterPlatform.js';\nimport { createPlatformProxy } from './utils.js';\n/**\n * Registers the SwitchBot platform with Homebridge.\n *\n * @param api The Homebridge API instance.\n * @property {string} PLATFORM_NAME - The Homebridge platform name.\n * @property {string} PLUGIN_NAME - The Homebridge plugin name.\n * @property {typeof SwitchBotHAPPlatform} SwitchBotHAPPlatform - The HAP platform class.\n * @property {typeof SwitchBotMatterPlatform} SwitchBotMatterPlatform - The Matter platform class.\n * @property {Function} createPlatformProxy - Factory for the platform proxy constructor.\n */\nexport default (api) => {\n    // Runs before a child bridge loads its cache, so a cache HAP cannot read is fixed first (#1424).\n    repairCachedAccessories(api, message => console.warn(`[${PLATFORM_NAME}] ${message}`));\n    const ProxyCtor = createPlatformProxy(SwitchBotHAPPlatform, SwitchBotMatterPlatform);\n    api.registerPlatform(PLUGIN_NAME, PLATFORM_NAME, ProxyCtor);\n};\n"]}