diff --git a/.gitignore b/.gitignore index 5f354e7..469cd9f 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,10 @@ !**/.??*.yml !*.md !**/.??*.md +!*.json +!**/.??*.json +!*.js +!**/.??*.js # Track specific .storage configuration files !.storage/lovelace diff --git a/.ha_mcp/backup_settings.json b/.ha_mcp/backup_settings.json new file mode 100644 index 0000000..795908e --- /dev/null +++ b/.ha_mcp/backup_settings.json @@ -0,0 +1,9 @@ +{ + "enable_auto_backup": true, + "auto_backup_throttle_minutes": 0, + "auto_backup_retain_per_entity": 100, + "auto_backup_dir": "", + "auto_backup_calendar_lookahead_days": 7, + "enable_snapshot_delete": false, + "snapshot_delete_min_age_days": 7 +} \ No newline at end of file diff --git a/.ha_mcp/feature_flags.json b/.ha_mcp/feature_flags.json new file mode 100644 index 0000000..385dbfb --- /dev/null +++ b/.ha_mcp/feature_flags.json @@ -0,0 +1,4 @@ +{ + "enable_tool_search": false, + "tool_search_max_results": 10 +} \ No newline at end of file diff --git a/.storage/midea_ac_lan/150633095332665.json b/.storage/midea_ac_lan/150633095332665.json new file mode 100644 index 0000000..33ba56c --- /dev/null +++ b/.storage/midea_ac_lan/150633095332665.json @@ -0,0 +1,12 @@ +{ + "name": "Dishwasher", + "device_id": 150633095332665, + "type": 225, + "protocol": 3, + "ip_address": "192.168.1.83", + "port": 6444, + "model": "7600004A", + "subtype": 3, + "token": "2a146cafc4951b1317096d6dfd3bde6bc32aad40cdb9d60d51dcc99f8abbab4ed75331e2bc4e3dfb3664b4cf68b0b5c60ee4453bbe1d48619cc60c3483229395", + "key": "0725ef104dbe450e83d0abaa3701f112d7771d10a9cb4306bc086718be8e684d" +} \ No newline at end of file diff --git a/.storage/powercalc_profiles/google/Nest Mini (H2C)/model.json b/.storage/powercalc_profiles/google/Nest Mini (H2C)/model.json new file mode 100644 index 0000000..16d50f7 --- /dev/null +++ b/.storage/powercalc_profiles/google/Nest Mini (H2C)/model.json @@ -0,0 +1,34 @@ +{ + "aliases": [ + "Google Nest Mini" + ], + "calculation_enabled_condition": "{{ is_state('[[entity]]', 'playing') }}", + "calculation_strategy": "linear", + "created_at": "2022-10-05T10:14:54Z", + "device_type": "smart_speaker", + "linear_config": { + "calibrate": [ + "0 -> 2.01", + "10 -> 2.01", + "20 -> 2.04", + "30 -> 2.10", + "40 -> 2.26", + "50 -> 2.49", + "60 -> 2.83", + "70 -> 3.13", + "80 -> 3.37", + "90 -> 3.50", + "100 -> 3.66" + ] + }, + "measure_description": "Streamed 'Radiohead - National Anthem' using spotify, and took average measurements using the measure.py tool on different volume levels", + "measure_device": "Shelly Plug S", + "measure_method": "manual", + "name": "Nest Mini", + "standby_power": 1.65, + "author_info": { + "name": "Daniel O'Connor", + "email": "daniel.oconnor@gmail.com", + "github": "CloCkWeRX" + } +} diff --git a/.storage/powercalc_profiles/ikea/LED2005R5/model.json b/.storage/powercalc_profiles/ikea/LED2005R5/model.json new file mode 100644 index 0000000..57c3586 --- /dev/null +++ b/.storage/powercalc_profiles/ikea/LED2005R5/model.json @@ -0,0 +1,23 @@ +{ + "aliases": [ + "TRADFRI bulb GU10 WS 345lm", + "TRADFRIbulbGU10WS345lm" + ], + "calculation_strategy": "lut", + "created_at": "2022-01-28T15:48:57Z", + "device_type": "light", + "measure_description": "Measured with utils/measure script", + "measure_device": "Shelly Plug S", + "measure_method": "script", + "measure_settings": { + "SAMPLE_COUNT": 3, + "SLEEP_TIME": 6, + "VERSION": "master" + }, + "name": "TRADFRI bulb GU10 345 lumen, dimmable, white spectrum", + "standby_power": 0.2, + "author_info": { + "name": "giu889", + "github": "giu889" + } +} diff --git a/.storage/powercalc_profiles/ikea/LED2104R3/model.json b/.storage/powercalc_profiles/ikea/LED2104R3/model.json new file mode 100644 index 0000000..88926c7 --- /dev/null +++ b/.storage/powercalc_profiles/ikea/LED2104R3/model.json @@ -0,0 +1,22 @@ +{ + "aliases": [ + "TRADFRI bulb GU10 WW 345lm" + ], + "calculation_strategy": "lut", + "created_at": "2025-12-22T22:20:22Z", + "device_type": "light", + "measure_description": "Measured with utils/measure script. Used 40W incandescent bulb as dummy load.", + "measure_device": "Shelly 1PM Mini", + "measure_method": "script", + "measure_settings": { + "SAMPLE_COUNT": 2, + "SLEEP_TIME": 3, + "VERSION": "v1.19.5:docker" + }, + "name": "TRADFRI bulb GU10 WW 345lm", + "standby_power": 0.1, + "author_info": { + "name": "Peklaa", + "github": "Peklaa" + } +} diff --git a/.storage/powercalc_profiles/ikea/LED2106R3/model.json b/.storage/powercalc_profiles/ikea/LED2106R3/model.json new file mode 100644 index 0000000..280c4f8 --- /dev/null +++ b/.storage/powercalc_profiles/ikea/LED2106R3/model.json @@ -0,0 +1,19 @@ +{ + "calculation_strategy": "lut", + "created_at": "2024-04-12T08:07:57Z", + "device_type": "light", + "measure_description": "Measured with utils/measure script", + "measure_device": "TP-Link Tapo P110", + "measure_method": "script", + "measure_settings": { + "SAMPLE_COUNT": 4, + "SLEEP_TIME": 5, + "VERSION": "v1.10.0:docker" + }, + "name": "TRADFRI bulb GU10 WS 345 lm, dimmable, white spectrum", + "standby_power": 0.2, + "author_info": { + "name": "martinkura-svk", + "github": "martinkura-svk" + } +} diff --git a/.storage/powercalc_profiles/library.json b/.storage/powercalc_profiles/library.json new file mode 100644 index 0000000..e8f9839 --- /dev/null +++ b/.storage/powercalc_profiles/library.json @@ -0,0 +1 @@ +{"manufacturers":[{"aliases":[],"name":"robb","full_name":"ROBB","dir_name":"robb","models":[{"calculation_strategy":"fixed","created_at":"2024-05-07T20:30:00Z","device_type":"smart_switch","measure_device":"Brennenstuhl PM 231 E","measure_method":"manual","name":"Zigbee Smart Plug","only_self_usage":true,"standby_power":0.2,"standby_power_on":0.65,"author_info":{"name":"Tim van Werkhoven","email":"tim+github.com@vanwerkhoven.org","github":"tvwerkhoven"},"id":"ROB_200-017-0","manufacturer":"robb","updated_at":"2026-07-10T07:54:55","max_power":0.65,"sub_profile_count":0,"hash":"befb8d28daf4363545e1dee969f43a64"}],"device_types":["smart_switch"]},{"aliases":[],"name":"teckin","full_name":"Teckin","dir_name":"teckin","models":[{"calculation_strategy":"lut","created_at":"2022-11-10T19:42:22Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.0.3:docker"},"name":"Smart Wi-Fi RGB LED Light Bulb","standby_power":0.81,"author_info":{"name":"gary-oneill82","github":"gary-oneill82"},"id":"SB50","manufacturer":"teckin","updated_at":"2026-07-18T07:09:16","max_power":9.06,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"1b4187e43d0d3a5b996952de74a8e4d5"}],"device_types":["light"]},{"aliases":[],"name":"zemismart","full_name":"Zemismart","dir_name":"zemismart","models":[{"calculation_strategy":"lut","created_at":"2022-11-30T17:57:54Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.1.2:docker"},"name":"Moonlamp (esphome)","standby_power":0.5,"author_info":{"name":"Kenneth Fribert","email":"fribse@gmail.com","github":"fribse"},"id":"moonlamp","manufacturer":"zemismart","updated_at":"2026-07-18T07:09:16","max_power":2.8,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"116009ce0b7b4777372b5a5bd7cfb02d"}],"device_types":["light"]},{"aliases":[],"name":"dygsm","full_name":"DYGSM","dir_name":"dygsm","models":[{"calculation_strategy":"fixed","created_at":"2024-12-27T12:00:00Z","device_type":"network","discovery_by":"device","measure_device":"Shelly Plus Plug S","measure_method":"script","name":"Gas sensor","author_info":{"name":"Andrzej Dopierała","email":"andrzej.dopierala@currency-one.com","github":"theundefined"},"id":"DY-RQ500A","manufacturer":"dygsm","updated_at":"2026-07-10T07:54:55","max_power":0.88,"sub_profile_count":0,"hash":"50930380a813300952c8156253299cdb"}],"device_types":["network"]},{"aliases":["Fibargroup"],"name":"fibaro","full_name":"Fibaro","dir_name":"fibaro","models":[{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"Fibaro FGWP102","measure_method":"manual","name":"Wall Plug (Z-Wave Plus)","only_self_usage":true,"standby_power":0.3,"standby_power_on":0.8,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"FGWP102","manufacturer":"fibaro","updated_at":"2026-07-10T07:54:55","max_power":0.8,"sub_profile_count":0,"hash":"6942f60b1084479da62f18ebf1a2c3f8"}],"device_types":["smart_switch"]},{"aliases":["ID-RF"],"name":"nodon","full_name":"NodOn","dir_name":"nodon","models":[{"aliases":["MSP-3-1-X1"],"calculation_strategy":"fixed","created_at":"2022-10-04T18:58:32Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"Micro Smart Plug","only_self_usage":true,"standby_power":0.67,"standby_power_on":0.96,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"Micro Smart Plug","manufacturer":"nodon","updated_at":"2026-07-10T07:54:55","max_power":0.96,"sub_profile_count":0,"hash":"8139528c7ccef57e38f8b7b729e4c972"}],"device_types":["smart_switch"]},{"aliases":[],"name":"innr","full_name":"Innr","dir_name":"innr","models":[{"calculation_strategy":"lut","created_at":"2026-01-13T13:30:33Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.2:docker"},"name":"Smart Candle Comfort E14","standby_power":0.38,"author_info":{"name":"Dominik Sander","email":"git@dsander.de","github":"dsander"},"id":"RB 248 T","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":5.4,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"e7a9eb50d6b96dc5e33f0be5fe5b359b"},{"calculation_strategy":"lut","created_at":"2021-10-25T17:16:55Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":4,"SLEEP_TIME":2},"name":"Smart Bulb Colour E27 806lm","standby_power":0.4,"author_info":{"name":"geelenbert","email":"mail2bert@gmail.com","github":"geelenbert"},"id":"RB 285 C","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":9.37,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"37dcbc2dedc3c44fbcd1312270ac270a"},{"calculation_strategy":"lut","created_at":"2025-11-28T22:41:19Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.1:docker"},"name":"Smart Candle Comfort E14","standby_power":0.16,"author_info":{"name":"Felix","email":"felixsp@posteo.de","github":"felixsp"},"id":"RB 247 T","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":4.81,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"586e4f2743a117b00bf263b66f68e412"},{"calculation_strategy":"lut","created_at":"2022-09-06T08:20:35Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.25.4:docker"},"name":"Smart Spot Colour GU10 Bulb","standby_power":0.37,"author_info":{"name":"el97","email":"erik1337.el@gmail.com","github":"el97"},"id":"RS 230 C","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":6.58,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f318190a4fe2475d5dd18388ea3e8da7"},{"calculation_strategy":"lut","created_at":"2023-12-17T16:08:33Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":4,"SLEEP_TIME":3,"VERSION":"v1.9.10:docker"},"name":"Smart Bulb White E27 780lm (2700K)","standby_power":0.31,"author_info":{"name":"swiggers","email":"rafael@swiggers.net","github":"rswiggers"},"id":"RB 266","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":8.49,"sub_profile_count":0,"color_modes":["brightness"],"hash":"c000f904e49ff958b4062de7fb258b55"},{"calculation_strategy":"lut","created_at":"2026-01-21T13:08:36Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.2:docker"},"name":"Smart Filament Bulb E27 Tunable ","standby_power":0.18,"author_info":{"name":"Felix","email":"felixsp@posteo.de","github":"felixsp"},"id":"RF 273 T","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":6.84,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"82d85a4891e6c8cd5431edb35c63f64a"},{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"TP-Link Kasa KP115","measure_method":"manual","name":"Zigbee Smart Plug","only_self_usage":false,"standby_power":0.18,"standby_power_on":0.83,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"SP 224","manufacturer":"innr","updated_at":"2026-07-10T07:54:55","max_power":0.83,"sub_profile_count":0,"hash":"c8c6987cd911920dd9e99252efb98eda"},{"calculation_strategy":"lut","created_at":"2025-12-03T20:49:55Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Smart Filament Bulb E27 Tunable Edison","standby_power":0.21,"author_info":{"name":"Felix","email":"felixsp@posteo.de","github":"felixsp"},"id":"RF 274 T","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":6.82,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"698de8c87889f32492a48e6cf3f9dfe1"},{"calculation_strategy":"lut","created_at":"2021-06-26T22:33:35Z","device_type":"light","measure_device":"Zhurui PR10","measure_method":"manual","name":"WW Dimmable E27 Bulb 806lm","standby_power":0.35,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"RB 175 W","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":9.17,"sub_profile_count":0,"color_modes":["brightness"],"hash":"4fc46cd3c521c66f068f5dc6a2062a7d"},{"calculation_strategy":"fixed","created_at":"2026-02-01T12:38:00Z","device_type":"smart_switch","measure_device":"TP-Link Tapo P115 / TP-Link Tapo P110","measure_method":"manual","name":"Zigbee Outdoor Smart Plug","only_self_usage":false,"standby_power":0.3,"standby_power_on":0.8,"author_info":{"name":"belleDESiRE","email":"belledesirepc@gmail.com","github":"belleDESiRE"},"id":"OSP 210","manufacturer":"innr","updated_at":"2026-07-10T07:54:55","max_power":0.8,"sub_profile_count":0,"hash":"5b0f876e2f0a9a114639dcc35d0f691c"},{"calculation_strategy":"lut","created_at":"2023-02-04T11:22:13Z","device_type":"light","measure_device":"Nous A1T","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.1:docker"},"name":"RGBW Bulb Colour E27","standby_power":0.4,"author_info":{"name":"Florian Mulatz","github":"florianmulatz"},"id":"RB 185 C","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":12.78,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"59f228fc62afbf780d49833b0142c874"},{"calculation_strategy":"lut","created_at":"2023-02-21T20:39:54Z","device_type":"light","measure_device":"Nous A1T","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.6:docker"},"name":"Smart Filament Bulb E27 Vintage (2200K)","standby_power":0.33,"author_info":{"name":"flipsa","email":"n00dl3s@gmx.net","github":"flipsa"},"id":"RF 263","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":3.83,"sub_profile_count":0,"color_modes":["brightness"],"hash":"9cf4142771fef91f2831275b2afaa956"},{"calculation_strategy":"lut","created_at":"2023-08-11T19:02:39Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.0:docker"},"name":"Smart Bulb B22 Colour 806lm","standby_power":0.3,"author_info":{"name":"Kevin Lemonnier","github":"Ulrar"},"id":"BY 285 C","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":9.21,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"d0d59a80b5ee462bf1c09131fecfb4e8"},{"calculation_strategy":"lut","created_at":"2025-05-30T11:16:31Z","device_type":"light","measure_device":"Nous A1","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.13:docker"},"name":"Smart Candle Comfort E14","standby_power":0.35,"author_info":{"name":"Jarod2801","github":"Jarod2801"},"id":"RB 249 T","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":4.85,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"7760f3de4800b13177bddf79b2ffdacf"},{"aliases":["On/Off plug (SP 220)"],"calculation_strategy":"fixed","created_at":"2023-12-31T08:21:16Z","device_type":"smart_switch","measure_device":"Shelly Plus Plug S / AVM FRITZ!DECT 200","measure_method":"manual","name":"Zigbee Smart Plug","only_self_usage":false,"standby_power":0.5,"standby_power_on":1.25,"author_info":{"name":"ca-dmin","github":"ca-dmin"},"id":"SP 220","manufacturer":"innr","updated_at":"2026-07-10T07:54:55","max_power":1.25,"sub_profile_count":0,"hash":"9038c9c62320fc42519e52275a4e8f00"},{"calculation_strategy":"lut","created_at":"2026-04-24T14:20:10Z","device_type":"light","measure_device":"Nous A1T","measure_device_firmware":"ESPHome 2026.4.2","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.13:docker"},"name":"Smart Filament Bulb E27 Tunable Globe","standby_power":0.21,"author_info":{"name":"Manu","github":"tr4nt0r"},"id":"RF 271 T","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":7.36,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"185f06c42122e80e5bc4ab0bc9a87bd0"},{"calculation_strategy":"lut","created_at":"2024-10-11T10:41:49Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.10:docker"},"name":"Light Strip Colour","standby_power":0.3,"author_info":{"name":"Amjad Saadeh","email":"amjad@saadeh.dev","github":"amjadsaadeh"},"id":"FL 122 C","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":16.3,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"19ec0425c1e809e732c8ba2c13a16672"},{"calculation_strategy":"lut","created_at":"2023-01-31T14:45:40Z","device_type":"light","measure_device":"Nous A1T","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.1:docker"},"name":"Candle Tunable White E14 Bulb","standby_power":0.48,"author_info":{"name":"Florian Mulatz","github":"florianmulatz"},"id":"RB 148 T","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":7.98,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"aca7697707461c8c645607fdbc2db6ac"},{"calculation_strategy":"lut","created_at":"2023-06-08T18:15:31Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Tunable White Spot Single Lens GU10 Bulb","standby_power":0.53,"author_info":{"name":"Kevin Lemonnier","github":"Ulrar"},"id":"RS 229 T","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":4.65,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"674d634fe7da827d07395cd6b5960c77"},{"calculation_strategy":"lut","created_at":"2022-05-15T18:58:58Z","device_type":"light","measure_device":"Sonoff S31","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":15,"VERSION":"v0.19.16:docker"},"name":"Smart Bulb Color E27","standby_power":0.11,"author_info":{"name":"Scott Hoyt","email":"scottrhoyt@gmail.com","github":"scottrhoyt"},"id":"AE 280 C","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":9.72,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"6f16dea6f03560c27030b7777fa799ba"},{"calculation_strategy":"lut","created_at":"2021-06-26T22:33:35Z","device_type":"light","measure_device":"Zhurui PR10","measure_method":"manual","name":"Dimmable White Spot GU10 Bulb 350lm","standby_power":0.38,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"RS 125","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":5.05,"sub_profile_count":0,"color_modes":["brightness"],"hash":"3ac290f3d37d5a40467a9fc8c6b6a538"},{"calculation_strategy":"lut","created_at":"2025-12-03T15:24:51Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.1:docker"},"name":"Smart Bulb Colour E27 1200lm","standby_power":0.31,"author_info":{"name":"Felix","email":"felixsp@posteo.de","github":"felixsp"},"id":"RB 287 C","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":10.77,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"e664871fdc29de135db31b4167cdea65"},{"calculation_strategy":"lut","created_at":"2022-07-11T18:57:12Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Candle Colour Bulb E14 470lm","standby_power":0.4,"author_info":{"name":"ahartmanns","email":"a.hartmanns@utwente.nl","github":"ahartmanns"},"id":"RB 250 C","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":5.88,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"387ee9add941069cdabf58aa2eff207f"},{"calculation_strategy":"lut","created_at":"2022-02-12T10:12:50Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.17.0:docker"},"name":"Smart Bulb B22 White 806lm","standby_power":0.44,"author_info":{"name":"Jamie De Vivo","github":"jamiedevivoo"},"id":"BY 265","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":9.29,"sub_profile_count":0,"color_modes":["brightness"],"hash":"709a7d3b2f1ab6b598108c45f193dd50"},{"calculation_strategy":"fixed","created_at":"2022-10-21T09:32:56Z","device_type":"smart_switch","measure_device":"Shelly Plug S","measure_method":"manual","name":"Zigbee Smart Plug","only_self_usage":true,"standby_power":0.41,"standby_power_on":0.61,"author_info":{"name":"msteenhuiz","github":"msteenhuiz"},"id":"SP 120","manufacturer":"innr","updated_at":"2026-07-10T07:54:55","max_power":0.61,"sub_profile_count":0,"hash":"aa80973ce5bab0263ffb4e5cfc06ea2d"},{"calculation_strategy":"lut","created_at":"2022-08-26T08:16:53Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.24.8:docker"},"name":"Smart Spot Comfort","standby_power":0.33,"author_info":{"name":"Desaydrone","email":"tarlak.Desaydrone@gmail.com","github":"Desaydrone"},"id":"RS 227 T","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":4.71,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"965b2879028df32d34be301625c6173f"},{"calculation_strategy":"lut","created_at":"2023-04-04T18:59:45Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.13:docker"},"name":"Round Ceiling Light (Tunable White)","standby_power":0.4,"author_info":{"name":"vandalon","email":"joris@vandalon.nl","github":"vandalon"},"id":"RCL 110","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":20.61,"sub_profile_count":0,"color_modes":["brightness"],"hash":"a497875cd8a7bf5879b880430dae8de4"},{"calculation_strategy":"fixed","created_at":"2024-05-07T20:30:00Z","device_type":"smart_switch","measure_device":"Brennenstuhl PM 231 E","measure_method":"manual","name":"Zigbee Smart Plug","only_self_usage":true,"standby_power":0.2,"standby_power_on":0.75,"author_info":{"name":"Tim van Werkhoven","email":"tim+github.com@vanwerkhoven.org","github":"tvwerkhoven"},"id":"SP 240","manufacturer":"innr","updated_at":"2026-07-10T07:54:55","max_power":0.75,"sub_profile_count":0,"hash":"a4fdf3deb79e3052fa107beb93df2ca3"},{"calculation_strategy":"lut","created_at":"2023-02-21T20:39:54Z","device_type":"light","measure_device":"Nous A1T","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.6:docker"},"name":"Smart Bulb White E27 (2700K)","standby_power":0.5,"author_info":{"name":"flipsa","email":"n00dl3s@gmx.net","github":"flipsa"},"id":"RB 265","manufacturer":"innr","updated_at":"2026-07-18T07:09:16","max_power":8.25,"sub_profile_count":0,"color_modes":["brightness"],"hash":"ca4e7b9f5775386e7df32eeabe8076cc"}],"device_types":["light","smart_switch"]},{"aliases":["Tapo","Kasa"],"name":"tp-link","full_name":"TP-Link","dir_name":"tp-link","models":[{"aliases":["HS100(EU)"],"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"TP-Link Tapo P110","measure_method":"manual","name":"Kasa Wi-Fi Smart Plug","only_self_usage":true,"standby_power":0.89,"standby_power_on":1.461,"author_info":{"name":"roschi02","email":"roschoschi@gmail.com","github":"roschi02"},"id":"HS100","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":1.461,"sub_profile_count":0,"hash":"974e8e377ec0d0e2c71f13bf7ea89cba"},{"aliases":["KP115(AU)","KP115(US)"],"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"P3 P4400 Kill A Watt Usage Monitor","measure_method":"manual","name":"Kasa Smart WiFi Plug Slim with Energy Monitoring","only_self_usage":true,"standby_power":0.5,"standby_power_on":0.9,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"KP115","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":0.9,"sub_profile_count":0,"hash":"e285ce03982923439768d9cad6b944a1"},{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"TP-Link Tapo P110","measure_method":"manual","name":"Tapo Mini Smart Wi-Fi Socket","only_self_usage":false,"standby_power":0.633,"standby_power_on":1.39,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"P100","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":1.39,"sub_profile_count":0,"hash":"47ac0aaa20fb2861f2964d209b724011"},{"calculation_strategy":"fixed","created_at":"2025-01-17T10:00:00Z","device_type":"smart_switch","measure_device":"TP-Link Kasa KP125M","measure_method":"manual","name":"Kasa Smart WiFi Plug Lite","only_self_usage":false,"standby_power":0.5,"standby_power_on":1.07,"author_info":{"name":"Thiago Oliveira","email":"infratl@gmail.com","github":"chilicheech"},"id":"HS103","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":1.07,"sub_profile_count":0,"hash":"5941015612f875c04a8d7c13acc528fd"},{"calculation_strategy":"lut","created_at":"2025-12-04T18:23:34Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.1:docker"},"name":"Tapo Smart Wi-Fi Light Bulb, Dimmable 806lm (2700K)","standby_power":0.45,"author_info":{"name":"Paul Smith","github":"smithps","email":"p.smith@malms.aero"},"id":"L510","manufacturer":"tp-link","updated_at":"2026-07-18T07:09:16","max_power":7.8,"sub_profile_count":0,"color_modes":["brightness"],"hash":"33598a12b3b98af929cf1347ddcbc65d"},{"aliases":["HS110(EU)"],"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"Kasa Wi-Fi Smart Plug with Energy Monitoring","only_self_usage":true,"standby_power":1.54,"standby_power_on":2.19,"author_info":{"name":"roschi02","email":"roschoschi@gmail.com","github":"roschi02"},"id":"HS110","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":2.19,"sub_profile_count":0,"hash":"808a55dd28cf099ff466e1feaa665ac5"},{"calculation_strategy":"lut","created_at":"2023-05-18T15:02:14Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.6.0:docker"},"name":"Tapo Smart Wi-Fi Light Bulb, Multicolor","standby_power":0.4,"author_info":{"name":"naamah75","email":"webmaster@naamah.it","github":"naamah75"},"id":"L530","manufacturer":"tp-link","updated_at":"2026-07-18T07:09:16","max_power":9.15,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"baed3e613b924c7fffc0b5ce750f4441"},{"calculation_strategy":"fixed","created_at":"2025-11-14T10:49:34Z","device_type":"smart_switch","measure_device":"TP-Link Tapo P115","measure_method":"manual","name":"Tapo Mini Smart Wi-Fi Socket with Energy Monitoring","only_self_usage":true,"standby_power":0.6,"standby_power_on":1,"author_info":{"name":"belleDESiRE","email":"belledesirepc@gmail.com","github":"belleDESiRE"},"id":"P115","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":1,"sub_profile_count":0,"hash":"95d53c349852e4eef67945be66e54fc9"},{"calculation_strategy":"fixed","created_at":"2025-01-21T10:00:00Z","device_type":"smart_switch","measure_device":"TP-Link Kasa KP125M","measure_method":"manual","name":"Kasa Smart WiFi Plug Mini","only_self_usage":false,"standby_power":0.23,"standby_power_on":0.72,"author_info":{"name":"Thiago Oliveira","email":"infratl@gmail.com","github":"chilicheech"},"id":"HS105","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":0.72,"sub_profile_count":0,"hash":"905a8489fa2501ad2e22ad54b0906819"},{"aliases":["KL135(US)"],"calculation_strategy":"lut","created_at":"2023-01-21T14:37:39Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.0:docker"},"name":"Kasa Smart Wi-Fi Light Bulb, Multicolour","standby_power":0.2,"author_info":{"name":"xags","github":"xags"},"id":"KL135","manufacturer":"tp-link","updated_at":"2026-07-18T07:09:16","max_power":10.65,"sub_profile_count":0,"color_modes":["brightness","hs","color_temp"],"hash":"08240de4036a3ac73c5c82982ea62b8b"},{"aliases":["KP125M"],"calculation_strategy":"fixed","created_at":"2025-01-19T12:28:06Z","device_type":"smart_switch","measure_device":"Eve Energy Matter 20EBU4101","measure_method":"manual","name":"Kasa Smart Wi-Fi Plug Slim with Energy Monitoring","only_self_usage":true,"standby_power":0.475,"standby_power_on":0.92,"author_info":{"name":"dxmnkd316","github":"dxmnkd316"},"id":"KP125M","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":0.92,"sub_profile_count":0,"hash":"643805f43fd7fdf4a7c696db770b8b71"},{"aliases":["261","262"],"calculation_strategy":"fixed","created_at":"2026-01-21T16:14:00Z","device_type":"smart_switch","measure_device":"Shelly EM Mini Gen4","measure_method":"manual","name":"Tapo Mini Smart Wi-Fi Plug with Energy Monitoring, Matter Certified","only_self_usage":true,"standby_power":0.3,"standby_power_on":1.2,"author_info":{"name":"Bob Shaker","email":"bobshaker1@gmail.com","github":"EpicBurrito"},"id":"P110M","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":1.2,"sub_profile_count":0,"hash":"4974ebffaa44174f7dce2df1c79c30bf"},{"aliases":["256"],"calculation_strategy":"fixed","created_at":"2025-03-05T17:26:19Z","device_type":"smart_switch","measure_device":"TP-Link Tapo P110","measure_method":"manual","name":"Tapo Mini Smart Wi-Fi Socket with Energy Monitoring","only_self_usage":true,"standby_power":0.6,"standby_power_on":1,"author_info":{"name":"Al3x Zamponi","github":"alexz707"},"id":"P110","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":1,"sub_profile_count":0,"hash":"9ee129162c04ba76310977ef1b129835"},{"calculation_strategy":"lut","created_at":"2023-01-03T08:53:36Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.2.3:docker"},"name":"Tapo Smart Wi-Fi Light Strip","standby_power":0.24,"author_info":{"name":"Harry W","email":"hjohnw13@gmail.com","github":"hwalker928"},"id":"L900","manufacturer":"tp-link","updated_at":"2026-07-18T07:09:16","max_power":12.91,"sub_profile_count":0,"color_modes":["brightness","hs"],"hash":"6135cea77f7d32aec4a5646dd461871b"},{"calculation_strategy":"fixed","created_at":"2025-01-20T10:00:00Z","device_type":"smart_switch","measure_device":"TP-Link Kasa KP125M","measure_method":"manual","name":"Kasa Smart WiFi Plug Mini","only_self_usage":false,"standby_power":0.58,"standby_power_on":1.09,"author_info":{"name":"Thiago Oliveira","email":"infratl@gmail.com","github":"chilicheech"},"id":"EP10","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":1.09,"sub_profile_count":0,"hash":"b80c6e480ee7e71436d1e549641e908b"},{"aliases":["HS300(US)"],"calculation_strategy":"multi_switch","created_at":"2025-09-08T09:20:48Z","device_type":"smart_switch","discovery_by":"device","measure_device":"P3 P4400 Kill A Watt Usage Monitor","measure_method":"manual","multi_switch_config":{"power":0.725,"power_off":0.225},"name":"Kasa Smart Wi-Fi Power Strip","only_self_usage":true,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"HS300","manufacturer":"tp-link","updated_at":"2026-07-10T07:54:55","max_power":null,"sub_profile_count":0,"hash":"7735fc7e0423ce282acf544173f68618"},{"calculation_strategy":"lut","created_at":"2024-10-08T20:39:54Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":5,"VERSION":"v1.14.10:docker"},"name":"Tapo Smart Wi-Fi Light Strip, Multicolor","standby_power":0.53,"author_info":{"name":"Ed Kutuev","email":"ed@napych.com","github":"napych"},"id":"L920","manufacturer":"tp-link","updated_at":"2026-07-18T07:09:16","max_power":18.9,"sub_profile_count":0,"color_modes":["hs"],"hash":"cfd7d2a56aa4c2c987fb52f6bc8a484c"}],"device_types":["smart_switch","light"]},{"aliases":["ADEO"],"name":"lexman","full_name":"Lexman","dir_name":"lexman","models":[{"calculation_strategy":"lut","created_at":"2022-03-25T08:38:09Z","device_type":"light","measure_device":"GreenWave GWPN1","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.18.4:docker"},"name":"RGBW E27 Smart LED Bulb (14 W to 100 W equivalent)","standby_power":0.4,"author_info":{"name":"sensei73","email":"sensei73@gmail.com","github":"sensei73"},"id":"IG-CDZOTAAG014RA-MAN","manufacturer":"lexman","updated_at":"2026-07-18T07:09:16","max_power":13.4,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"c3857e31a9b23dcbdd9571efcea5b05b"}],"device_types":["light"]},{"aliases":[],"name":"lifx","full_name":"LIFX","dir_name":"lifx","models":[{"calculation_strategy":"lut","created_at":"2022-08-06T11:55:31Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.23.2:docker"},"name":"Mini White","standby_power":0.74,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"LIFX Mini White","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":9.16,"sub_profile_count":0,"color_modes":["brightness"],"hash":"60490ee434cd6e4daf3f3916e22f315c"},{"calculation_strategy":"lut","created_at":"2022-10-21T19:04:10Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":3,"VERSION":"v0.26.1:docker"},"name":"LIFX BR30","standby_power":0.63,"author_info":{"name":"mlebaugh","email":"mattlebaugh@gmail.com","github":"mlebaugh"},"id":"LIFX BR30","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":11.41,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"c080700d6872e009a012bb032841b851"},{"calculation_strategy":"lut","created_at":"2022-05-03T22:15:08Z","device_type":"light","measure_device":"TP-Link Kasa KP125","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"v0.19.12:docker"},"name":"A19 Night Vision","standby_power":0.47,"author_info":{"name":"Jacob Donenfeld","email":"jacobdonenfeld@gmail.com","github":"jacobdonenfeld"},"id":"LIFX A19 Night Vision","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":11.11,"sub_profile_count":4,"color_modes":["hs","color_temp"],"hash":"f6472abfcc312df3ee47af7bf5a30430"},{"aliases":["LIFX Downlight"],"calculation_strategy":"lut","created_at":"2022-10-05T13:31:39Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.25.5:docker"},"name":"Downlight Color","standby_power":0.68,"author_info":{"name":"Joshua Rich","email":"joshua.rich@gmail.com","github":"joshuar"},"id":"LIFX Downlight Color","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":12.55,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"69c7cf504b6a0d4366611637f9b1156c"},{"calculation_strategy":"lut","created_at":"2022-02-19T20:16:46Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":1,"VERSION":"v0.17.0:docker"},"name":"BR30 Night Vision","standby_power":0.72,"author_info":{"name":"Jamie De Vivo","github":"jamiedevivoo"},"id":"LIFX BR30 Night Vision","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":11.03,"sub_profile_count":4,"color_modes":["hs","color_temp"],"hash":"a06027ee272aa30d9027ea8fd4a29599"},{"calculation_strategy":"lut","created_at":"2022-04-30T22:38:23Z","device_type":"light","measure_device":"TP-Link Kasa KP125","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"v0.19.12:docker"},"name":"Mini Color","standby_power":0.5,"author_info":{"name":"Jacob Donenfeld","email":"jacobdonenfeld@gmail.com","github":"jacobdonenfeld"},"id":"LIFX Mini Color","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":8.88,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f1b57a92f14a61dc85d0ec09737a7058"},{"calculation_strategy":"lut","created_at":"2022-02-19T20:16:46Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":1,"VERSION":"v0.17.0:docker"},"name":"Candle","standby_power":0.56,"author_info":{"name":"Jamie De Vivo","github":"jamiedevivoo"},"id":"LIFX Candle","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":4.21,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"eccecd873d1ab04b22a479b2dcbc5a4c"},{"calculation_strategy":"lut","created_at":"2022-02-19T20:16:46Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":1,"VERSION":"v0.17.0:docker"},"name":"Original 1000","standby_power":2.46,"author_info":{"name":"Jamie De Vivo","github":"jamiedevivoo"},"id":"LIFX Original 1000","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":17.73,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"53c6ee438f39dd626945b272a6bcdd4f"},{"calculation_strategy":"lut","created_at":"2022-10-05T13:31:39Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.25.5:docker"},"name":"Mini White to Warm","standby_power":0.54,"author_info":{"name":"Joshua Rich","email":"joshua.rich@gmail.com","github":"joshuar"},"id":"LIFX Mini White to Warm","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":8.56,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"2eb57af650804936be3593b27c74f952"},{"calculation_strategy":"lut","created_at":"2022-07-19T22:34:27Z","device_type":"light","measure_device":"Shelly Plug US","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"A19 US","standby_power":0.2,"author_info":{"name":"Chris","github":"darthsebulba04"},"id":"LIFX A19 US","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":10.9,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"2f0ca056cf4947472ed208747f5170e6"},{"aliases":["LIFX A21 1600lm US"],"calculation_strategy":"lut","created_at":"2024-10-17T18:51:25Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":3,"VERSION":"v1.14.10:docker"},"name":"Smart Wi-Fi RGBW LED Bulb (A21, 1600 lm)","standby_power":0.31,"author_info":{"name":"TheRealBernie","github":"TheRealBernie"},"id":"LFXA211600RGBW","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":17.08,"sub_profile_count":0,"color_modes":["hs"],"hash":"246db4be5aab33afeadf3a7742eeb8bb"},{"calculation_strategy":"lut","created_at":"2022-02-19T20:16:46Z","device_type":"light","measure_device":"Wemo Insight F7C029uk","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.17.0:docker"},"name":"Z","standby_power":0.57,"author_info":{"name":"Jamie De Vivo","github":"jamiedevivoo"},"id":"LIFX Z","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":37.48,"sub_profile_count":10,"color_modes":["hs","color_temp"],"hash":"e3aef5dba043a11734ff8f8639dfd136"},{"calculation_strategy":"lut","created_at":"2022-05-10T13:27:29Z","device_type":"light","measure_device":"Gosund UP111","measure_device_firmware":"Tuya","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.19.15:docker"},"name":"A19","standby_power":0.5,"author_info":{"name":"xpenno255","github":"xpenno255"},"id":"LIFX A19","manufacturer":"lifx","updated_at":"2026-07-18T07:09:16","max_power":11,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"5df0e19a9c358856bdaad8c7e7ae3020"}],"device_types":["light"]},{"aliases":["Freebox SAS","Freebox"],"name":"free","full_name":"Free","dir_name":"free","models":[{"aliases":["Freebox Player v8"],"calculation_strategy":"fixed","created_at":"2025-10-12T19:03:14Z","device_type":"generic_iot","measure_device":"TP-Link Tapo P110","measure_method":"script","name":"Player POP","standby_power":1.63,"author_info":{"name":"Alexandre Bertrand","email":"alexandre.bertrand@invirtus.io","github":"trandbert37"},"id":"Freebox Player POP","manufacturer":"free","updated_at":"2026-07-10T07:54:55","max_power":2.81,"sub_profile_count":0,"hash":"5efe19deb35859806993898a9c6fc1e7"},{"aliases":["fbxgw8-r1","Freebox v8 (r1) (fbxgw8-r1)"],"calculation_strategy":"fixed","created_at":"2025-10-12T09:03:14Z","device_type":"network","discovery_by":"device","measure_device":"TP-Link Tapo P110","measure_method":"script","name":"V8 (r1)","author_info":{"name":"Alexandre Bertrand","email":"alexandre.bertrand@invirtus.io","github":"trandbert37"},"id":"Freebox v8 (r1)","manufacturer":"free","updated_at":"2026-07-10T07:54:55","max_power":10.42,"sub_profile_count":0,"hash":"66c2e203ffaf28ce1e127f66aa25d576"}],"device_types":["generic_iot","network"]},{"aliases":["Aeotec Ltd.","AEON Labs"],"name":"aeotec","full_name":"Aeotec","dir_name":"aeotec","models":[{"aliases":["Aeotec Smart Switch 7 US","Aeotec Smart Switch 7 (B Plug)"],"calculation_strategy":"fixed","created_at":"2025-07-14T23:55:00Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"Shelly Plus Plug","measure_method":"script","name":"Smart Switch 7 B plug","only_self_usage":true,"standby_power":0.7,"standby_power_on":0.8,"author_info":{"name":"Josh Barnard","github":"barndawgie"},"id":"ZWA023","manufacturer":"aeotec","updated_at":"2026-07-10T07:54:55","max_power":0.8,"sub_profile_count":0,"hash":"ac93df556e3bff940447e973cb5cece5"},{"calculation_strategy":"fixed","created_at":"2026-01-25T14:45:00Z","device_type":"network","discovery_by":"device","measure_device":"Zhurui PR10","measure_method":"manual","name":"Range Extender 6","author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"ZW117","manufacturer":"aeotec","updated_at":"2026-07-10T07:54:55","max_power":0.64,"sub_profile_count":0,"hash":"12d41aa65fbb336ffc59896032afb21b"}],"device_types":["smart_switch","network"]},{"aliases":[],"name":"ecodim","full_name":"Ecodim","dir_name":"ecodim","models":[{"aliases":["ECO-DIM.07 Zigbee Basic"],"calculation_strategy":"fixed","created_at":"2025-06-09T00:00:00Z","device_type":"smart_dimmer","discovery_by":"device","measure_device":"Brennenstuhl EM 231-A","measure_method":"manual","name":"ZigBee LED Dimmer","only_self_usage":true,"standby_power":0.3,"standby_power_on":0.3,"author_info":{"name":"Jasper","email":"jaspervanvliet1996@gmail.com","github":"SustainableBlueDuck"},"id":"ECO-DIM.07 Zigbee Basic","manufacturer":"ecodim","updated_at":"2026-07-10T07:54:55","max_power":0.3,"sub_profile_count":0,"hash":"b08862ec890bcc36d7621c43bb03244b"}],"device_types":["smart_dimmer"]},{"aliases":[],"name":"tuya","full_name":"Tuya","dir_name":"tuya","models":[{"aliases":[],"calculation_strategy":"lut","created_at":"2023-09-09T20:18:19Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.3:docker"},"name":"SYLSTAR LED Ceiling Light 24W","standby_power":0.73,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"SYS-C24W-CW","manufacturer":"tuya","updated_at":"2026-07-18T07:09:16","max_power":21.37,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"e56fe527bda3d578627554f2cf835074"},{"calculation_strategy":"lut","created_at":"2022-06-05T17:55:15Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.20.3:docker"},"name":"Zigbee LED Smart Strip DC12V RGBCCT 60led/m","standby_power":1.05,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"NO66-ZB","manufacturer":"tuya","updated_at":"2026-07-18T07:09:16","max_power":23.91,"sub_profile_count":3,"color_modes":["hs","color_temp"],"hash":"d36cfa227060dceaee724961b44b20c7"},{"calculation_strategy":"lut","created_at":"2025-01-23T01:54:09Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.2:docker"},"name":"Tuya Zigbee 3.0 Bulb E27 RGB+CW+WW 15W","standby_power":0.52,"author_info":{"name":"Dr-Seltsam","email":"sebastian.jaekel@web.de","github":"Dr-Seltsam"},"id":"TY-A60-15W","manufacturer":"tuya","updated_at":"2026-07-18T07:09:16","max_power":9.32,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"7fb38e6f26bc53a6fc7e4e0d7672d5ba"},{"name":"T17 infrared header","created_at":"2026-03-02T16:05:27Z","aliases":["jpiit02hwjtwjxnd"],"device_type":"heating","compatible_integrations":["tuya"],"calculation_strategy":"fixed","measure_device":"Homewizard Energy socket","standby_power":0.1,"measure_method":"manual","author_info":{"name":"Rogier Lommers","github":"rogierlommers","email":"rogier@lommers.org"},"id":"T17","manufacturer":"tuya","updated_at":"2026-07-10T07:54:55","max_power":3000,"sub_profile_count":0,"hash":"6571876d067cb6cd2c5b68e9541da439"},{"calculation_strategy":"lut","created_at":"2025-01-23T13:08:49Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.2:docker"},"name":"CK-BL702-AL-01, E14, 5W","standby_power":0.44,"author_info":{"name":"Dr-Seltsam","email":"sebastian.jaekel@web.de","github":"Dr-Seltsam"},"id":"CK-BL702-AL-01","manufacturer":"tuya","updated_at":"2026-07-18T07:09:16","max_power":3.46,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"6cdc19c0f83202d3b8998a82f4f4837c"},{"calculation_strategy":"lut","created_at":"2022-07-17T10:05:09Z","device_type":"light","measure_device":"Sonoff S31","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":5,"VERSION":"master"},"name":"Treatlife SL20","standby_power":0.1,"author_info":{"name":"Kendell R","github":"KTibow"},"id":"SL20","manufacturer":"tuya","updated_at":"2026-07-18T07:09:16","max_power":8.7,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"7d569ac57183e28a04d4107bca391d61"},{"aliases":[],"calculation_strategy":"lut","created_at":"2023-11-17T08:44:45Z","device_type":"light","measure_device":"PZEM-004T","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":3,"VERSION":"master"},"name":"ANTELA-9W-RGB+CCT","standby_power":0.46,"author_info":{"name":"j0nixs","email":"jtschoche@gmail.com","github":"j0nxs"},"id":"ANTELA-9W-RGB+CCT","manufacturer":"tuya","updated_at":"2026-07-18T07:09:16","max_power":8.9,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"5a6e810971964170df2b6016f567edfb"},{"aliases":[],"calculation_strategy":"lut","created_at":"2023-09-09T20:18:19Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.3:docker"},"name":"Ekobi SMART LED E27 14W 1400Lm RGB CCT","standby_power":0.46,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"KAGS14RGBCTW","manufacturer":"tuya","updated_at":"2026-07-18T07:09:16","max_power":13.23,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"656a030b6f74ff6a5e6d3521360ed877"},{"calculation_strategy":"lut","created_at":"2026-01-10T23:41:45Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.2:docker"},"name":"Hifree Bedside RGB Lamp","standby_power":0.45,"author_info":{"name":"Pasquale Cuorpo","github":"maverick1982"},"id":"8jz6rasdn7xct1oq","manufacturer":"tuya","updated_at":"2026-07-18T07:09:16","max_power":8.05,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"cd04034aba3ba59505413b0ead0ce9c7"},{"aliases":["TS011F_plug_1","TS011F_plug_3","BSD29"],"calculation_strategy":"fixed","created_at":"2023-03-16T17:16:38Z","device_type":"smart_switch","measure_device":"PeakTech P 4250 (1 mV/10 mA) with VOLTCRAFT VC270","measure_method":"manual","name":"Smart plug (with power monitoring)","only_self_usage":true,"standby_power":0.13,"standby_power_on":0.39,"author_info":{"name":"Panagiotis Doulgeris","github":"Pantastisch"},"id":"TS011F","manufacturer":"tuya","updated_at":"2026-07-10T07:54:55","max_power":0.39,"sub_profile_count":0,"hash":"5366cc38220e44857027f15ae2aaf0ed"},{"calculation_strategy":"lut","created_at":"2025-01-26T20:54:25Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.2:docker"},"name":"Tuya Zigbee 3.0 Ceiling Lamp RGB+CW+WW 24W","standby_power":0.36,"author_info":{"name":"Dr-Seltsam","email":"sebastian.jaekel@web.de","github":"Dr-Seltsam"},"id":"TYC-300mm-Z","manufacturer":"tuya","updated_at":"2026-07-18T07:09:16","max_power":20.73,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"34af0accb32506e9da8ff6c6e7e32b02"},{"calculation_strategy":"fixed","created_at":"2024-12-01T20:12:00Z","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"manual","name":"TS0121_plug","only_self_usage":true,"standby_power":0.404,"standby_power_on":0.866,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"TS0121_plug","manufacturer":"tuya","updated_at":"2026-07-10T07:54:55","max_power":0.866,"sub_profile_count":0,"hash":"c53fe836b29f7ae07c8aa0e0083ae735"},{"aliases":["Forever Light Smart Plug FLSP10A","iqkfza3hyqb8f9ui"],"calculation_strategy":"fixed","created_at":"2025-02-15T09:30:00Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"Forever Light Smart Plug","only_self_usage":true,"standby_power":0.52,"standby_power_on":1.06,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"FLSP10A","manufacturer":"tuya","updated_at":"2026-07-10T07:54:55","max_power":1.06,"sub_profile_count":0,"hash":"986454eca6347c2b86de208f8fd53fb4"},{"calculation_strategy":"lut","created_at":"2024-01-08T20:32:28Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.14:docker"},"name":"Sunco G25 LED Smart Bulb, WiFi","standby_power":0.7,"author_info":{"name":"Emory Penney","email":"emory.j.penney@intel.com","github":"ejpenney"},"id":"SUNCO-5W_I2C_RGBCW","manufacturer":"tuya","updated_at":"2026-07-18T07:09:16","max_power":5.43,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"368bf873c01ad4f0dc665b7babdae169"},{"aliases":["Tuya CS3S/BK7231N","3004154"],"calculation_strategy":"lut","created_at":"2023-06-30T08:56:29Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.6.6:docker"},"name":"LSC Smart Connect moodlight","standby_power":0.5,"author_info":{"name":"TyzzyT","github":"TyzzyT"},"id":"CS3S","manufacturer":"tuya","updated_at":"2026-07-18T07:09:16","max_power":4.45,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"b27f331c61890384e7f4ae798875ae34"}],"device_types":["light","heating","smart_switch"]},{"aliases":["_TZ3000_2putqrmw"],"name":"nous","full_name":"NOUS","dir_name":"nous","models":[{"aliases":["NOUS A1T"],"calculation_strategy":"fixed","created_at":"2023-06-19T08:02:31Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"Smart Wi-Fi Socket with Power Meter","only_self_usage":true,"standby_power":0.29,"standby_power_on":0.54,"author_info":{"name":"daloki83","github":"daloki83"},"id":"A1T","manufacturer":"nous","updated_at":"2026-07-10T07:54:55","max_power":0.54,"sub_profile_count":0,"hash":"2de25ab7d1bc215c116ad1655fd638fb"},{"aliases":["A1Z","TS011F"],"calculation_strategy":"fixed","created_at":"2023-07-03T18:37:40Z","device_type":"smart_switch","measure_device":"Brennenstuhl PM 231 E","measure_method":"manual","name":"Smart Zigbee Power Metering Plug / Socket","only_self_usage":true,"standby_power":0.1,"standby_power_on":0.4,"author_info":{"name":"Andreas Brett","github":"andreasbrett"},"id":"A1Z","manufacturer":"nous","updated_at":"2026-07-10T07:54:55","max_power":0.4,"sub_profile_count":0,"hash":"3c042c2ce698b9c186139bcc3db06600"}],"device_types":["smart_switch"]},{"aliases":[],"name":"xiaomi","full_name":"Xiaomi","dir_name":"xiaomi","models":[{"calculation_strategy":"lut","created_at":"2024-12-08T13:31:31Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.16.2:docker"},"name":"Philips Smart LED Bulb","standby_power":0.9,"author_info":{"name":"Andrzej Dopierała","email":"andrzej.dopierala@currency-one.com","github":"theundefined"},"id":"philips.light.hbulb","manufacturer":"xiaomi","updated_at":"2026-07-18T07:09:16","max_power":9.05,"sub_profile_count":0,"color_modes":["brightness"],"hash":"ff0049661a6059bd08927d526001fd92"},{"calculation_strategy":"linear","created_at":"2025-08-14T08:10:08Z","device_type":"fan","measure_device":"Meross mss310","measure_method":"manual","name":"Mi Smart Standing Fan 2","standby_power":1,"author_info":{"name":"olivr2s","email":"olivr2s@users.noreply.github.com","github":"olivr2s"},"id":"Mi Smart Standing Fan 2","manufacturer":"xiaomi","updated_at":"2026-07-18T07:09:16","max_power":34,"sub_profile_count":0,"hash":"e32064a2528cdd505b649053ddff26ba"},{"created_at":"2025-05-01T21:56:26Z","measure_method":"script","measure_settings":{"VERSION":"v1.17.11:docker"},"measure_device":"Shelly PM Mini Gen3","name":"lumi.gateway.mgl03","aliases":["Gateway: ZNDMWG03LM, ZNDMWG02LM, YTC4044GL, lumi.gateway.mgl03","gateway ZNDMWG03LM"],"discovery_by":"device","device_type":"network","only_self_usage":true,"calculation_strategy":"fixed","standby_power":1.51,"author_info":{"name":"Largelos","github":"Largelos"},"id":"lumi.gateway.mgl03","manufacturer":"xiaomi","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":0,"hash":"de2e2cf4b6bc6c25c7da5b7ddc107d96"},{"calculation_strategy":"lut","created_at":"2025-09-25T01:09:05Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.19:docker"},"name":"Mi Smart LED Bulb Essential","standby_power":1.2,"author_info":{"name":"Alexandre Bertrand","email":"alexandre.bertrand@invirtus.io","github":"trandbert37"},"id":"Mi Smart LED Bulb Essential","manufacturer":"xiaomi","updated_at":"2026-07-18T07:09:16","max_power":9.6,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"593c62459304d9ae891c627d39a0361d"}],"device_types":["light","fan","network"]},{"aliases":[],"name":"velux","full_name":"Velux","dir_name":"velux","models":[{"calculation_strategy":"fixed","created_at":"2026-01-18T09:16:00Z","device_type":"generic_iot","discovery_by":"device","measure_device":"Zhurui PR10","measure_method":"manual","name":"Home Automation Interface","author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"KLF 200","manufacturer":"velux","updated_at":"2026-07-10T07:54:55","max_power":1.65,"sub_profile_count":0,"hash":"64c2efa25fff7baa23929c115fc0129d"}],"device_types":["generic_iot"]},{"aliases":[],"name":"inovelli","full_name":"Inovelli","dir_name":"inovelli","models":[{"calculation_strategy":"fixed","created_at":"2026-06-12T21:42:00Z","device_type":"smart_dimmer","measure_device":"Shelly PM Mini Gen3","measure_method":"script","name":"2-in-1 mmWave Dimmer Switch (VZM32-SN)","only_self_usage":true,"standby_power":1.54,"standby_power_on":1.59,"author_info":{"name":"Martin Emde","email":"me@martinemde.com","github":"martinemde"},"id":"VZM32-SN","manufacturer":"inovelli","updated_at":"2026-07-10T07:54:55","max_power":1.59,"sub_profile_count":0,"hash":"733c0fc91c5df8a3646a12747dfe09f5"}],"device_types":["smart_dimmer"]},{"aliases":["GE Appliances"],"name":"ge","full_name":"GE","dir_name":"ge","models":[{"calculation_strategy":"lut","created_at":"2023-11-01T15:33:48Z","device_type":"light","measure_device":"Shelly 2 PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.5:docker"},"name":"Link BR30 Soft White Bulb","standby_power":0.4,"author_info":{"name":"Ross Troha","github":"rosstroha"},"id":"PSB30-SW27","manufacturer":"ge","updated_at":"2026-07-18T07:09:16","max_power":9.8,"sub_profile_count":0,"color_modes":["brightness"],"hash":"b64df402d416d3a633d257e64b82707a"},{"calculation_strategy":"lut","created_at":"2023-11-01T15:33:48Z","device_type":"light","measure_device":"Shelly 2 PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.5:docker"},"name":"Link PAR38 Bright White Bulb","standby_power":0.4,"author_info":{"name":"Ross Troha","github":"rosstroha"},"id":"PSB38-BW30","manufacturer":"ge","updated_at":"2026-07-18T07:09:16","max_power":13.3,"sub_profile_count":0,"color_modes":["brightness"],"hash":"37dc3749acf8a812e154980064fc2d8e"}],"device_types":["light"]},{"aliases":["Roborock","rockrobo"],"name":"roborock","full_name":"Roborock","dir_name":"roborock","models":[{"calculation_strategy":"composite","created_at":"2025-12-24T11:25:00Z","device_type":"vacuum_robot","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.5:docker"},"name":"Xiaomi Mi Robot Vacuum V1","author_info":{"name":"Alexandre Bertrand","email":"alexandre.bertrand@invirtus.io","github":"trandbert37"},"id":"rockrobo.vacuum.v1","manufacturer":"roborock","updated_at":"2026-07-10T07:54:55","max_power":null,"sub_profile_count":0,"color_modes":["tapering"],"hash":"84ad15d3afe4eb0dabdef8739d8c16ff"},{"aliases":["roborock.vacuum.a10"],"calculation_strategy":"linear","created_at":"2024-11-11T17:19:55Z","device_type":"vacuum_robot","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"S6 MaxV","standby_power":0.1,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"s6_maxv","manufacturer":"roborock","updated_at":"2026-07-18T07:09:16","max_power":19.89,"sub_profile_count":0,"hash":"7ac84c739f4bb8a50105b648b87dad60"}],"device_types":["vacuum_robot"]},{"aliases":["Yeelight Technology"],"name":"yeelight","full_name":"Yeelight","dir_name":"yeelight","models":[{"calculation_strategy":"lut","created_at":"2023-04-05T17:19:48Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.4.0:docker"},"name":"Lightstrip Plus","standby_power":0.53,"author_info":{"name":"ffm777","github":"ffm777"},"id":"YLDD04YL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":21.23,"sub_profile_count":2,"color_modes":["hs","color_temp"],"hash":"4ad946738cc09d2b3f0789fc2cc53054"},{"calculation_strategy":"lut","created_at":"2023-08-17T19:01:51Z","device_type":"light","measure_device":"TP-Link Tapo P115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"RGBW E27 Smart LED Bulb","standby_power":1.29,"author_info":{"name":"hekm77","email":"chiki77piki@gmail.com","github":"hekm77"},"id":"YLDP02YL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":9.7,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"8525fe2b12075e0a4a3b803202b81720"},{"calculation_strategy":"lut","created_at":"2025-04-11T07:30:00Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.9:docker"},"name":"Xiaomi Mi Bedside Lamp 2","standby_power":0.86,"author_info":{"name":"Pasquale Cuorpo","github":"maverick1982"},"id":"MJCTD02YL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":9.14,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"4af554c7080843848c2e21148fc6ff5c"},{"aliases":["strip6"],"calculation_strategy":"lut","created_at":"2022-06-24T18:05:24Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.20.3:docker"},"name":"LED Light Strip 1S","standby_power":0.69,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"YLDD05YL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":12.38,"sub_profile_count":2,"color_modes":["hs","color_temp"],"hash":"f1dddaebae3d81366f747be4e80bc9e1"},{"aliases":["yeelink.light.mbulb3","Mesh: MJDP09YL, yeelink.light.mbulb3"],"calculation_strategy":"lut","created_at":"2024-10-08T08:21:17Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":5,"VERSION":"v1.14.10:docker"},"name":"Bluetooth Mesh Smart LED Bulb (E27, Tunable White, 5 W)","standby_power":0.2,"author_info":{"name":"Ed Kutuev","email":"ed@napych.com","github":"napych"},"id":"MJDP09YL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":5.55,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"0da1c5b03e8d1603f1d80e31c3c7bb0f"},{"aliases":["mono1"],"calculation_strategy":"lut","created_at":"2021-08-31T08:42:26Z","device_type":"light","measure_device":"RRPM02 (Model); 4897037690801 (Barcode); Reduction Revolution Plug-in Power Meter","measure_method":"manual","name":"LED 600lm 4000K 8W WiFi","standby_power":1.1,"author_info":{"name":"OzGav","email":"gavnosp@hotmail.com","github":"OzGav"},"id":"YLDP01YL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":8.3,"sub_profile_count":0,"color_modes":["brightness"],"hash":"d0ebb73755696bc2d855e7024c677bf2"},{"aliases":["color2"],"calculation_strategy":"lut","created_at":"2022-04-22T08:02:02Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":10,"VERSION":"v0.19.7"},"name":"Smart LED Bulb II Color","standby_power":1.07,"author_info":{"name":"Aetha","email":"aetha@snuzzle.me","github":"aetha"},"id":"YLDP06YL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":9.95,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"6f442cf5672b794542f0ddce56c815ce"},{"calculation_strategy":"lut","created_at":"2023-02-13T19:22:16Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.4:docker"},"name":"Mi LED Desk Lamp 1S","standby_power":0.64,"author_info":{"name":"Pasquale Cuorpo","github":"maverick1982"},"id":"MJTD01SYL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":9.86,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"b9ad895f1336b1bc951ba0fe5e741d33"},{"aliases":["ceiling10"],"calculation_strategy":"lut","created_at":"2022-03-17T21:45:16Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":1,"VERSION":"master"},"name":"Smart Crystal Pendant LED Light (33 W, Tunable White + RGB)","standby_power":0.72,"author_info":{"name":"Morten Trab","email":"morten@trab.dk","github":"MTrab"},"id":"YLDL01YL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":29.87,"sub_profile_count":2,"color_modes":["hs","color_temp"],"hash":"2f1af5aae27c02a1284509a3d8fceffb"},{"calculation_strategy":"lut","created_at":"2026-04-20T14:23:54Z","device_type":"light","measure_device":"IKEA INSPELNING smart plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"v1.20.13:docker"},"min_version":"v1.20.14","supported_integrations":["yeelight"],"name":"LED Smart Ceiling Light(8-jō size)","aliases":["ceild"],"standby_power":0.5,"author_info":{"name":"xxddff","github":"xxddff","email":"772327379@qq.com"},"id":"YLXD024","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":40.45,"sub_profile_count":2,"color_modes":["color_temp"],"hash":"dc7b89bc678d86912fb9e950ff96d548"},{"calculation_strategy":"lut","created_at":"2021-11-14T19:30:25Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.20.3:docker"},"name":"LED Bulb 1S","standby_power":1.22,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"YLDP13YL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":9.13,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"2c774f138d5b016961de4a4c3d8c85f3"},{"aliases":["ceiling1"],"calculation_strategy":"lut","created_at":"2023-04-02T10:50:00Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":3,"VERSION":"v1.3.1:docker"},"name":"Smart LED Ceiling Light","standby_power":0.9,"author_info":{"name":"RaphV90","github":"RaphV90"},"id":"YLXD01YL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":26.1,"sub_profile_count":2,"color_modes":["brightness","color_temp"],"hash":"24fd57573ae45a89adc35b6a1a181546"},{"aliases":["yeelink.light.ml2","Mesh: YLDP25YL/YLDP26YL, yeelink.light.ml2"],"calculation_strategy":"lut","created_at":"2024-10-10T06:13:43Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":5,"VERSION":"v1.14.10:docker"},"name":"Bluetooth Mesh Smart LED Bulb (Dimmable CCT, 4 W)","standby_power":0.27,"author_info":{"name":"Ed Kutuev","email":"ed@napych.com","github":"napych"},"id":"YLDP25YL","manufacturer":"yeelight","updated_at":"2026-07-18T07:09:16","max_power":4.64,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"68e783652b3dc6638ec992d8f06251f1"}],"device_types":["light"]},{"aliases":[],"name":"rye","full_name":"Rye","dir_name":"rye","models":[{"calculation_strategy":"lut","created_at":"2022-09-20T10:04:24Z","device_type":"light","measure_device":"Athom Smart Plug v2","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Dusk-to-Dawn Candelabra LED Bulb","standby_power":0.4,"author_info":{"name":"DellanX","github":"DellanX"},"id":"Candlebra","manufacturer":"rye","updated_at":"2026-07-18T07:09:16","max_power":4.07,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"6a9785c6035b46da6cf8a14f070630c4"}],"device_types":["light"]},{"aliases":[],"name":"bose","full_name":"Bose","dir_name":"bose","models":[{"calculation_strategy":"linear","created_at":"2023-03-10T17:14:51Z","device_type":"smart_speaker","measure_device":"Gosund UP111","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"SoundTouch 300","standby_power":1.5,"author_info":{"name":"wranglatang","github":"wranglatang"},"id":"767520-2100","manufacturer":"bose","updated_at":"2026-07-18T07:09:16","max_power":37.56,"sub_profile_count":0,"hash":"5177721bd09b850e063dc61bf80354ce"},{"calculation_strategy":"linear","created_at":"2023-03-10T17:14:51Z","device_type":"smart_speaker","measure_device":"Gosund UP111","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"SoundTouch 10","standby_power":1.5,"author_info":{"name":"wranglatang","github":"wranglatang"},"id":"416776","manufacturer":"bose","updated_at":"2026-07-18T07:09:16","max_power":8.54,"sub_profile_count":0,"hash":"549a80eaf5dd41a7da4b0e4af67eb2e3"}],"device_types":["smart_speaker"]},{"aliases":[],"name":"genio","full_name":"Genio","dir_name":"genio","models":[{"calculation_strategy":"lut","created_at":"2022-07-31T18:35:03Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.22.1:docker"},"name":"Wi-Fi 7W LED Tube Lamp","standby_power":0.7,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"I003028","manufacturer":"genio","updated_at":"2026-07-18T07:09:16","max_power":3.87,"sub_profile_count":0,"color_modes":["hs"],"hash":"8da41f075c6cd455929951143414e183"},{"calculation_strategy":"lut","created_at":"2022-08-13T17:54:04Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.23.2:docker"},"name":"Wi-Fi Dimmable Warm White BC 9W LED GLS Bulb","standby_power":0.87,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"I002333","manufacturer":"genio","updated_at":"2026-07-18T07:09:16","max_power":9.73,"sub_profile_count":0,"color_modes":["brightness"],"hash":"56ffcfad78c46929d57f80a8439a875b"},{"calculation_strategy":"lut","created_at":"2022-07-24T10:11:16Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.23.2:docker"},"name":"Wi-Fi Dimmable 5 W G95 CCT Filament LED Bulb","standby_power":0.7,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"I002747","manufacturer":"genio","updated_at":"2026-07-18T07:09:16","max_power":1.91,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"1154c0dd3e562c5e4a680cd86d50b905"},{"calculation_strategy":"lut","created_at":"2022-07-27T18:48:30Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.23.2:docker"},"name":"Smart Wi-Fi LED Strip Light (3 m)","standby_power":0.7,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"I002579","manufacturer":"genio","updated_at":"2026-07-18T07:09:16","max_power":14.01,"sub_profile_count":0,"color_modes":["hs"],"hash":"499d370b993de1202e719f6e4872a249"},{"calculation_strategy":"lut","created_at":"2023-08-22T19:26:43Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Wi-Fi Dimmable 15W ES Par38 LED Bulb","standby_power":0.51,"author_info":{"name":"Wolfieeewolf","github":"Wolfieeewolf"},"id":"I003869","manufacturer":"genio","updated_at":"2026-07-18T07:09:16","max_power":4.15,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"3d1c609fdff4b5890c7c63ca821762a7"},{"calculation_strategy":"lut","created_at":"2022-07-22T11:23:06Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.22.1:docker"},"name":"Wi-Fi Dimmable Cool White 9 W LED GLS Bulb","standby_power":0.7,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"I002334","manufacturer":"genio","updated_at":"2026-07-18T07:09:16","max_power":8.31,"sub_profile_count":0,"color_modes":["brightness"],"hash":"fb681dea1ffa3bab093d075d619cd1bc"},{"calculation_strategy":"lut","created_at":"2024-03-16T09:28:20Z","device_type":"light","measure_device":"Xiaomi ZNCZ02LM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":15,"VERSION":"v1.10.5:docker"},"name":"Wi-Fi Dimmable 9 W LED CCT Downlight","standby_power":1.2,"author_info":{"name":"noob4722019","email":"s.milisavic@gmail.com","github":"smilisav"},"id":"I002741","manufacturer":"genio","updated_at":"2026-07-18T07:09:16","max_power":13.4,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"8f045236ea6c6a1b9f99189372a99763"},{"calculation_strategy":"lut","created_at":"2023-08-17T18:34:01Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Wi-Fi Smart RGBW/CCT 9 W Downlight (750lm)","standby_power":0.24,"author_info":{"name":"Wolfieeewolf","github":"Wolfieeewolf"},"id":"I004544","manufacturer":"genio","updated_at":"2026-07-18T07:09:16","max_power":5.22,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"a9917a9b33d60bf06e9cda3bff9e78aa"},{"calculation_strategy":"lut","created_at":"2022-07-30T14:58:38Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.23.2:docker"},"name":"Wi-Fi Dimmable 5.5W ES RGBW Spiral Filament LED Bulb","standby_power":0.7,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"I002926","manufacturer":"genio","updated_at":"2026-07-18T07:09:16","max_power":5.5,"sub_profile_count":0,"color_modes":["hs"],"hash":"5e8fab67335a775455646a1984d16230"}],"device_types":["light"]},{"aliases":["HEOS"],"name":"denon","full_name":"Denon","dir_name":"denon","models":[{"aliases":["HEOS 1"],"calculation_strategy":"linear","created_at":"2022-10-05T10:14:54Z","device_type":"smart_speaker","measure_device":"Shelly Plug S","measure_method":"manual","name":"HEOS 1 HS2","standby_power":3.99,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"HEOS 1 HS2","manufacturer":"denon","updated_at":"2026-07-18T07:09:16","max_power":12.55,"sub_profile_count":0,"hash":"870aa3668fc0c0ef1875685721e1b42f"}],"device_types":["smart_speaker"]},{"aliases":[],"name":"reolink","full_name":"Reolink","dir_name":"reolink","models":[{"aliases":["E1 Pro (E330)"],"calculation_strategy":"fixed","compatible_integrations":["reolink"],"created_at":"2026-01-11T13:50:00Z","device_type":"camera","measure_device":"Shelly 1PM Mini Gen3","measure_method":"manual","name":"Smart 5MP Wi-Fi PT Indoor Security Camera","author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"E1 Pro","manufacturer":"reolink","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":2,"hash":"4913dc22904398bfa4436f5a4e73c5df"},{"calculation_strategy":"fixed","created_at":"2025-12-14T12:15:00Z","device_type":"camera","measure_device":"Nous A1T","measure_method":"manual","name":"4K Wi-Fi 6 Surveillance Camera","author_info":{"name":"Robert M. Albrecht","email":"powercalc@romal.org","github":"rmalbrecht"},"id":"RLC-810WA","manufacturer":"reolink","updated_at":"2026-07-10T07:54:55","max_power":8,"sub_profile_count":0,"hash":"3d86ddf894cc9a0c76f822e409a75fd0"}],"device_types":["camera"]},{"aliases":[],"name":"kogan","full_name":"Kogan","dir_name":"kogan","models":[{"calculation_strategy":"lut","created_at":"2025-07-04T14:09:00Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.14:docker"},"name":"SmarterHome 10W White Smart Bulb","standby_power":1,"author_info":{"name":"Stuart Mackintosh","github":"stuartmackintosh"},"id":"KASB10WB22HA","manufacturer":"kogan","updated_at":"2026-07-18T07:09:16","max_power":9.75,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"5634dfe1fbefdbde3e94f9524c1a17a3"}],"device_types":["light"]},{"aliases":[],"name":"amazon","full_name":"Amazon","dir_name":"amazon","models":[{"aliases":["A15996VY63BQ2D","A8H3N2","KNIGHT A15996VY63BQ2D"],"calculation_strategy":"linear","created_at":"2024-07-05T16:34:44Z","device_type":"smart_speaker","measure_device":"Shelly Plus Plug S","measure_method":"manual","name":"Echo Show 8 (Gen2)","standby_power":4.28,"author_info":{"name":"Stuart Pearson","github":"stuartp44"},"id":"A8H3N2","manufacturer":"amazon","updated_at":"2026-07-18T07:09:16","max_power":9.82,"sub_profile_count":0,"hash":"286ddbef4bcd20515b58a8f2002fd1bd"},{"aliases":["AB72C64C86AW2","SK705DI","ECHO AB72C64C86AW2"],"calculation_strategy":"linear","created_at":"2024-07-03T17:22:35Z","device_type":"smart_speaker","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v1.12.6:docker"},"name":"Echo (Gen1)","standby_power":3.06,"author_info":{"name":"Stuart Pearson","github":"stuartp44"},"id":"SK705DI","manufacturer":"amazon","updated_at":"2026-07-18T07:09:16","max_power":3.51,"sub_profile_count":0,"hash":"328789c50bfbb6618ce13271cc255909"},{"aliases":["A4ZP7ZC4PI6TO"],"calculation_strategy":"linear","created_at":"2026-01-06T16:14:18Z","device_type":"smart_speaker","measure_device":"Nous A1T","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.1:docker"},"name":"Echo Show 5 (Gen1)","standby_power":2.7,"author_info":{"name":"Jarod2801","github":"Jarod2801"},"id":"H23K37","manufacturer":"amazon","updated_at":"2026-07-18T07:09:16","max_power":4.36,"sub_profile_count":0,"hash":"d8bba1bd05021cff7e1a8a7f9b196403"},{"aliases":["ASQZWP4GPYUT7","ECHO ASQZWP4GPYUT7"],"calculation_strategy":"linear","created_at":"2024-09-13T10:01:18Z","device_type":"smart_speaker","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.4:docker"},"name":"Echo Pop (Gen1)","standby_power":1.3,"author_info":{"name":"Edouard Kleinhans","email":"edouard@kleinhans.info","github":"edouardkleinhans"},"id":"B09ZX7MS5B","manufacturer":"amazon","updated_at":"2026-07-18T07:09:16","max_power":1.87,"sub_profile_count":0,"hash":"a62a72f71b56d387ca4319d3f64f93d3"},{"aliases":["A1Z88NGR2BK6A2"],"calculation_strategy":"linear","created_at":"2026-01-06T16:49:11Z","device_type":"smart_speaker","measure_device":"Nous A1T","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.1:docker"},"name":"Echo Show 8 (Gen1)","standby_power":3.95,"author_info":{"name":"Jarod2801","github":"Jarod2801"},"id":"C7H6N3","manufacturer":"amazon","updated_at":"2026-07-18T07:09:16","max_power":7.73,"sub_profile_count":0,"hash":"9b3b08b657ab6095d580fe278ced6030"},{"aliases":["A2H4LV5GIZ1JFT"],"calculation_strategy":"linear","created_at":"2026-01-06T16:03:37Z","device_type":"smart_speaker","measure_device":"Nous A1T","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.1:docker"},"name":"Echo Dot (Gen4) with clock","standby_power":1.05,"author_info":{"name":"Jarod2801","github":"Jarod2801"},"id":"B7W644","manufacturer":"amazon","updated_at":"2026-07-18T07:09:16","max_power":4.03,"sub_profile_count":0,"hash":"1fe1f259cc15e515cfeeafbdd415d89d"},{"aliases":["A32DOYMUN6DTXA","A1RABVCI4QCIKC","C78MP8","ECHO A32DOYMUN6DTXA","ECHO A1RABVCI4QCIKC"],"calculation_strategy":"linear","created_at":"2023-03-10T17:16:45Z","device_type":"smart_speaker","measure_device":"Gosund UP111","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Echo Dot (Gen3)","standby_power":1.75,"author_info":{"name":"wranglatang","github":"wranglatang"},"id":"D91029T","manufacturer":"amazon","updated_at":"2026-07-18T07:09:16","max_power":2.7,"sub_profile_count":0,"hash":"7d85890592a97d55380d64c098c618dc"},{"aliases":["G2A0V704840708AP"],"calculation_strategy":"linear","created_at":"2026-01-06T15:18:39Z","device_type":"smart_speaker","measure_device":"Nous A1T","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.1:docker"},"name":"Echo Plus (Gen2)","standby_power":2,"author_info":{"name":"Jarod2801","github":"Jarod2801"},"id":"L9D29R","manufacturer":"amazon","updated_at":"2026-07-18T07:09:16","max_power":6.24,"sub_profile_count":0,"hash":"cfcc555b408fa5704a7e58fc44b9d13d"},{"aliases":["A2U21SRK4QGSE1","B7W644","ECHO A2U21SRK4QGSE1"],"calculation_strategy":"linear","created_at":"2023-03-10T17:16:45Z","device_type":"smart_speaker","measure_device":"Gosund UP111","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Echo Dot (Gen4)","standby_power":0.9,"author_info":{"name":"wranglatang","github":"wranglatang"},"id":"B7W64E","manufacturer":"amazon","updated_at":"2026-07-18T07:09:16","max_power":2.51,"sub_profile_count":0,"hash":"46c958ba9b1651d9c60daa80494ed547"},{"aliases":["A3S5BH2HU6VAYF"],"calculation_strategy":"linear","created_at":"2025-05-06T13:39:22Z","device_type":"smart_speaker","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Echo Dot (Gen2)","standby_power":1.8,"author_info":{"name":"zenzmatz","email":"eric.021292@gmail.com","github":"zenzmatz"},"id":"RS03QR","manufacturer":"amazon","updated_at":"2026-07-18T07:09:16","max_power":2.71,"sub_profile_count":0,"hash":"2d5b7f2d55e8b168755ad24660c7fe6f"}],"device_types":["smart_speaker"]},{"aliases":[],"name":"malmbergs","full_name":"Malmbergs","dir_name":"malmbergs","models":[{"calculation_strategy":"lut","created_at":"2022-08-02T08:35:28Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.24.3:docker"},"name":"Sirius III","standby_power":0.89,"author_info":{"name":"Magnus Larsson","email":"maglars2@gmail.com","github":"Miicroo"},"id":"9970020","manufacturer":"malmbergs","updated_at":"2026-07-18T07:09:16","max_power":36.12,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"b5bbd202a41c1f3333752372f88bdae5"}],"device_types":["light"]},{"aliases":[],"name":"kauf","full_name":"Kauf","dir_name":"kauf","models":[{"calculation_strategy":"lut","created_at":"2024-09-01T13:39:38Z","device_type":"light","measure_device":"Shelly Plus Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.4:docker"},"name":"RGBWW Smart LED Bulb A21 (10 W)","standby_power":0.5,"author_info":{"name":"nwalk7800","github":"nwalk7800"},"id":"BLF10","manufacturer":"kauf","updated_at":"2026-07-18T07:09:16","max_power":9.57,"sub_profile_count":0,"color_modes":["brightness","hs","color_temp"],"hash":"7a12ce1ccc7d04822c72c686efa8181f"}],"device_types":["light"]},{"aliases":[],"name":"trust","full_name":"Trust","dir_name":"trust","models":[{"calculation_strategy":"lut","created_at":"2023-03-03T16:01:27Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.6:docker"},"name":"Smart Zigbee Dimmable GU10 LED Spot","standby_power":0.65,"author_info":{"name":"Sander","email":"sandolution@outlook.com","github":"Sandolution"},"id":"ZLED-G2705","manufacturer":"trust","updated_at":"2026-07-18T07:09:16","max_power":4.78,"sub_profile_count":0,"color_modes":["brightness"],"hash":"f73aed847f6e6aeeb7ae532d1ea2987e"}],"device_types":["light"]},{"aliases":[],"name":"lenovo","full_name":"Lenovo","dir_name":"lenovo","models":[{"aliases":["Lenovo Smart Clock"],"calculation_strategy":"linear","created_at":"2022-10-05T10:14:54Z","device_type":"smart_speaker","measure_device":"TP-Link Tapo P110","measure_method":"manual","name":"Smart Clock with Google Assistant","standby_power":2.51,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"Smart Clock with Google Assistant","manufacturer":"lenovo","updated_at":"2026-07-18T07:09:16","max_power":4.41,"sub_profile_count":0,"hash":"33b0f822aab06e2a24b4ec537df5a503"}],"device_types":["smart_speaker"]},{"aliases":[],"name":"belkin","full_name":"Belkin","dir_name":"belkin","models":[{"calculation_strategy":"lut","created_at":"2021-08-17T10:46:54Z","device_type":"light","measure_device":"RRPM02 (Model); 4897037690801 (Barcode); Reduction Revolution Plug-in Power Meter","measure_method":"manual","name":"WeMo smart LED bulb","standby_power":0.4,"author_info":{"name":"OzGav","email":"gavnosp@hotmail.com","github":"OzGav"},"id":"F7C033","manufacturer":"belkin","updated_at":"2026-07-18T07:09:16","max_power":9.4,"sub_profile_count":0,"color_modes":["brightness"],"hash":"a7e193573ecbedafbcbeaccc497db7e6"},{"aliases":["Belkin Wemo Mini"],"calculation_strategy":"fixed","created_at":"2025-01-19T11:44:40Z","device_type":"smart_switch","measure_device":"TP-Link Kasa KP125M","measure_method":"manual","name":"Wemo Mini v2","only_self_usage":false,"standby_power":0.75,"standby_power_on":1.3,"author_info":{"name":"dxmnkd316","github":"dxmnkd316"},"id":"F7C063","manufacturer":"belkin","updated_at":"2026-07-10T07:54:55","max_power":1.3,"sub_profile_count":0,"hash":"29240263874c70fa31adb6fbcc45d30c"}],"device_types":["light","smart_switch"]},{"aliases":[],"name":"treatlife","full_name":"Treatlife","dir_name":"treatlife","models":[{"calculation_strategy":"lut","created_at":"2024-12-09T05:14:29Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Smart Color Changing Light Bulb 9W 800LM","standby_power":0.35,"author_info":{"name":"Benjamin Pearce","email":"gitlab@bcpearce.com","github":"bcpearce"},"id":"SL10","manufacturer":"treatlife","updated_at":"2026-07-18T07:09:16","max_power":9.3,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"5ede8f74e2503363cb3dc3297497dc6b"}],"device_types":["light"]},{"aliases":[],"name":"elgin","full_name":"Elgin","dir_name":"elgin","models":[{"aliases":["7elptlqhyajy4px6"],"calculation_strategy":"lut","created_at":"2024-05-13T17:23:03Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.12.1:docker"},"name":"Smart Color 10W","standby_power":0.8,"author_info":{"name":"Diefferson Koderer Môro","email":"diefferson.moro@gmail.com","github":"djpremier"},"id":"48BLEDWIFI00","manufacturer":"elgin","updated_at":"2026-07-18T07:09:16","max_power":9.4,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"97531f210bb424688137b5b458d2fc95"},{"aliases":["mewijv1m7csjp6an"],"calculation_strategy":"lut","created_at":"2024-06-09T19:24:54Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.12.8:docker"},"name":"Smart Color 15W","standby_power":0.7,"author_info":{"name":"Diefferson Koderer Môro","email":"diefferson.moro@gmail.com","github":"djpremier"},"id":"48BLED15WIFI","manufacturer":"elgin","updated_at":"2026-07-18T07:09:16","max_power":13.75,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"51a792c8de27b70aea37e1a615da661a"},{"calculation_strategy":"lut","created_at":"2025-09-07T05:20:12Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.19:docker"},"name":"Smart Color 20W","standby_power":0.75,"author_info":{"name":"Felipe Marinho","email":"felipe.marinho@ifood.com.br","github":"felipemarinho97"},"id":"48LSB30WIFI0","manufacturer":"elgin","updated_at":"2026-07-18T07:09:16","max_power":29.2,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f6b5edba1ead6f1f312af05fba050498"}],"device_types":["light"]},{"aliases":["Rituals Cosmetics"],"name":"rituals","full_name":"Rituals","dir_name":"rituals","models":[{"aliases":["The Perfume Genie 2.0"],"calculation_strategy":"fixed","compatible_integrations":["rituals_perfume_genie"],"created_at":"2026-01-18T13:38:00Z","device_type":"generic_iot","discovery_by":"device","fields":{"switch_entity":{"label":"Switch entity","description":"The entity which controls the on/off state of the diffuser","selector":{"entity":{"domain":"switch"}}},"amount_entity":{"label":"Perfume amount entity","description":"The entity which controls the amount of perfume","selector":{"entity":{"domain":"number"}}}},"measure_device":"Zhurui PR10","measure_method":"manual","min_version":"1.20.3","name":"Perfume Genie 2.0","standby_power":0.45,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"genie 2.0","manufacturer":"rituals","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":0,"hash":"d54e70a82fe1c310beac7e0bec1f4dfb"}],"device_types":["generic_iot"]},{"aliases":["lk","Leedarson"],"name":"linkind","full_name":"Linkind","dir_name":"linkind","models":[{"calculation_strategy":"lut","aliases":["4120"],"created_at":"2026-02-13T02:10:33Z","device_type":"light","measure_device":"Shelly Plug US Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":3,"VERSION":"v1.20.4:docker"},"name":"A19 Matter Smart CCT Light Bulb - 800lm","standby_power":0.91,"author_info":{"name":"Phil DeMonaco","github":"pdemonaco","email":"phil@demona.co"},"id":"LS0102411267","manufacturer":"linkind","updated_at":"2026-07-18T07:09:16","max_power":9.01,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"7ac0e33cfba78c431a93d882124c8ce1"},{"calculation_strategy":"lut","created_at":"2023-09-03T13:47:50Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":1,"VERSION":"v1.9.2:docker"},"name":"Dimmable Warm White Filament E27 6.2W 806lm Bulb","standby_power":0.3,"author_info":{"name":"PalminX","email":"bkuemmer@gmx.net","github":"PalminX"},"id":"ZBT-DIMLight-D0120","manufacturer":"linkind","updated_at":"2026-07-18T07:09:16","max_power":6.2,"sub_profile_count":0,"color_modes":["brightness"],"hash":"d8f11b19dc20a675e907cdfe168ce5c3"}],"device_types":["light"]},{"aliases":["tuya"],"name":"calex","full_name":"Calex","dir_name":"calex","models":[{"aliases":[],"calculation_strategy":"lut","created_at":"2025-04-28T23:34:57Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.11:docker"},"name":"Smart LED Filament Gold Globe-lamp G95 7W","standby_power":0.61,"author_info":{"name":"Jort","github":"JortvanSchijndel"},"id":"G95 Gold","manufacturer":"calex","updated_at":"2026-07-18T07:09:16","max_power":6.48,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"a13a8cbf3c1dbba9db22f915e97806c8"}],"device_types":["light"]},{"aliases":[],"name":"moes","full_name":"Moes","dir_name":"moes","models":[{"calculation_strategy":"lut","created_at":"2025-01-28T02:11:03Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.3:docker"},"name":"Smart Matter Wi-Fi RGB+CCT LED Bulb (A19, E26)","standby_power":0.57,"author_info":{"name":"Chris Hallgren","email":"challgren@gmail.com","github":"challgren"},"id":"1412","manufacturer":"moes","updated_at":"2026-07-18T07:09:16","max_power":5.08,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"442003b952ddef1b1c41de4004d77b8a"},{"calculation_strategy":"lut","created_at":"2026-02-24T18:09:22Z","device_type":"light","measure_device":"Aziot 10A Smart Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":60,"VERSION":"v1.20.6:docker"},"name":"Zigbee Smart Downlight","standby_power":0.7,"author_info":{"name":"Pranjal Joshi","github":"pranjal-joshi"},"id":"ZB-LZD10-RCW","manufacturer":"moes","updated_at":"2026-07-18T07:09:16","max_power":10,"sub_profile_count":0,"color_modes":["brightness"],"hash":"674a3aa85adf0d6950ee7b12412a88ba"}],"device_types":["light"]},{"aliases":["Athom_Technology"],"name":"athom","full_name":"Athom","dir_name":"athom","models":[{"aliases":["athom.rgbww-light"],"calculation_strategy":"lut","created_at":"2022-09-15T20:58:17Z","device_type":"light","measure_device":"Athom Smart Plug v2","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"master"},"name":"7W Color Bulb for ESPHome","standby_power":0.47,"author_info":{"name":"DellanX","github":"DellanX"},"id":"rgbww-light","manufacturer":"athom","updated_at":"2026-07-18T07:09:16","max_power":8.83,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"42556ea1d4d67fc1d261765c441ad56c"},{"aliases":["Smart_Plug_V2"],"calculation_strategy":"fixed","created_at":"2024-01-09T21:37:04Z","device_type":"smart_switch","measure_device":"Hypertec Power-Mate Lite 10A","measure_method":"manual","name":"Smart Plug AU","only_self_usage":true,"standby_power":0.66,"standby_power_on":1.03,"author_info":{"name":"Hadley Rich","email":"hads@nice.net.nz","github":"hadleyrich"},"id":"smart-plug-au","manufacturer":"athom","updated_at":"2026-07-10T07:54:55","max_power":1.03,"sub_profile_count":0,"hash":"ace2a842032ab72f8bade30258152cdb"}],"device_types":["light","smart_switch"]},{"aliases":[],"name":"osram","full_name":"Osram","dir_name":"osram","models":[{"calculation_strategy":"lut","created_at":"2023-09-05T19:14:04Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.2:docker"},"name":"LIGHTIFY Classic A60 RGBW","standby_power":0.6,"author_info":{"name":"PalminX","email":"bkuemmer@gmx.net","github":"PalminX"},"id":"Classic A60 RGBW","manufacturer":"osram","updated_at":"2026-07-18T07:09:16","max_power":11.8,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"b7b3638d2bc31086f11065f9cd51a0af"},{"calculation_strategy":"lut","created_at":"2023-09-05T12:50:26Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"v1.9.2:docker"},"name":"LIGHTIFY Classic B 40 TW 6W E14","standby_power":0.15,"author_info":{"name":"PalminX","email":"bkuemmer@gmx.net","github":"PalminX"},"id":"Classic B40 TW - LIGHTIFY","manufacturer":"osram","updated_at":"2026-07-18T07:09:16","max_power":6.2,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"be8bc194c140a0c250125bc4eea55d38"},{"calculation_strategy":"lut","created_at":"2023-04-05T17:03:40Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.4.0:docker"},"name":"LIGHTIFY LED Classic B40 tunable white","standby_power":0.3,"author_info":{"name":"ffm777","github":"ffm777"},"id":"AB32840","manufacturer":"osram","updated_at":"2026-07-18T07:09:16","max_power":6.34,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"eb3eb608b827afc7548ce83483f4ab60"},{"calculation_strategy":"lut","created_at":"2026-01-04T05:18:43Z","device_type":"light","measure_device":"Nous A1T","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.1:docker"},"name":"SMART+ LED Classic E27 RGBW","standby_power":0.35,"author_info":{"name":"Jarod2801","github":"Jarod2801"},"id":"AC03647","manufacturer":"osram","updated_at":"2026-07-18T07:09:16","max_power":8.95,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"2a3794cc8a8dd4b47c6a695d4a887b10"},{"aliases":["Plug 01","AB3257001NJ"],"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"Osram Lightify Plug 01","only_self_usage":false,"standby_power":0.44,"standby_power_on":1.04,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"LIGHTIFY Plug 01","manufacturer":"osram","updated_at":"2026-07-10T07:54:55","max_power":1.04,"sub_profile_count":0,"hash":"66d29da5014fc20be0c6aee236869e68"},{"calculation_strategy":"lut","created_at":"2023-12-01T09:44:23Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.8:docker"},"name":"LIGHTIFY Surface Light LED Tunable White","standby_power":0.4,"author_info":{"name":"101081kai","github":"101081kai"},"id":"AB401130055","manufacturer":"osram","updated_at":"2026-07-18T07:09:16","max_power":28,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"15c50d37037f7f176b5247c3f2029483"},{"aliases":["4052899926110"],"calculation_strategy":"lut","created_at":"2021-08-29T21:45:54Z","device_type":"light","measure_device":"Gosund SP111","measure_device_firmware":"Tasmota 9.5.0","measure_method":"script","name":"LIGHTIFY Indoor Flex RGBW 3P (1.8m)","standby_power":0.3,"author_info":{"name":"Stefan Gries","github":"stefangries"},"id":"LIGHTIFY Indoor Flex RGBW","manufacturer":"osram","updated_at":"2026-07-18T07:09:16","max_power":9.37,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"babbc73d0c2be0e2c7bed27df691a107"},{"calculation_strategy":"lut","created_at":"2023-04-07T17:05:39Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.4.0:docker"},"name":"LIGHTIFY LED Classic A60 clear","standby_power":0.4,"author_info":{"name":"ffm777","github":"ffm777"},"id":"AC03641","manufacturer":"osram","updated_at":"2026-07-18T07:09:16","max_power":9.23,"sub_profile_count":0,"color_modes":["brightness"],"hash":"90f0f64bd8dd72034185530f042a3e83"},{"calculation_strategy":"lut","created_at":"2023-08-17T19:01:51Z","device_type":"light","measure_device":"TP-Link Tapo P115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"LIGHTIFY 6W GU10","standby_power":0.3,"author_info":{"name":"hekm77","email":"chiki77piki@gmail.com","github":"hekm77"},"id":"PAR16 50 TW","manufacturer":"osram","updated_at":"2026-07-18T07:09:16","max_power":4.54,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"afd50ef2abbb4688ec57af3654eb4134"},{"aliases":["AC03642"],"calculation_strategy":"lut","created_at":"2022-04-24T20:45:34Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":2,"VERSION":"v0.19.11:docker"},"name":"SMART+ Classic E27 tunable white","standby_power":0.5,"author_info":{"name":"Jan Hoff","github":"mehgrmlhmpf"},"id":"CLA60 TW","manufacturer":"osram","updated_at":"2026-07-18T07:09:16","max_power":8.93,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"a6862022529ce530181e53adf58915bf"}],"device_types":["light","smart_switch"]},{"aliases":[],"name":"zipato","full_name":"Zipato","dir_name":"zipato","models":[{"calculation_strategy":"lut","created_at":"2022-09-27T16:10:29Z","device_type":"light","measure_device":"Fibaro FGWP102","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.26.1:docker"},"name":"RGBW Bulb V2","standby_power":0.3,"author_info":{"name":"jake404","github":"jake404"},"id":"RGBWE2","manufacturer":"zipato","updated_at":"2026-07-18T07:09:16","max_power":9.8,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"d47c6165a6fb436dfeba5170d1775798"}],"device_types":["light"]},{"aliases":[],"name":"sylvania","full_name":"Sylvania","dir_name":"sylvania","models":[{"aliases":["1ijupffokexbz0cl"],"calculation_strategy":"lut","created_at":"2024-02-19T18:25:11Z","device_type":"light","measure_device":"Shelly Plug US","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.10.0:docker"},"name":"Wifi LED Smart Light Bulb, 60W=8.5W, Full Color A19 (2700K - 6500K)","standby_power":0.52,"author_info":{"name":"Ryan Ronnander","email":"rronnander@gmail.com","github":"ryan-ronnander"},"id":"A19CCECWF","manufacturer":"sylvania","updated_at":"2026-07-18T07:09:16","max_power":11.43,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"80859ca16c950920177698bd77c6744f"},{"aliases":["k2nagch3coapc6yd"],"calculation_strategy":"lut","created_at":"2024-02-19T18:25:47Z","device_type":"light","measure_device":"Shelly Plug US","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.10.0:docker"},"name":"Wifi LED Smart A19 RGBW Color (2000K)","standby_power":0.5,"author_info":{"name":"Ryan Ronnander","email":"rronnander@gmail.com","github":"ryan-ronnander"},"id":"40A19FILCCLWIFI","manufacturer":"sylvania","updated_at":"2026-07-18T07:09:16","max_power":8.05,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"75b4266ec3f51e57bcde75f76d387bbb"}],"device_types":["light"]},{"aliases":[],"name":"blitzwolf","full_name":"BlitzWolf","dir_name":"blitzwolf","models":[{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"BW-SHP6 version 10A","only_self_usage":true,"standby_power":0.5,"standby_power_on":0.85,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"SHP6","manufacturer":"blitzwolf","updated_at":"2026-07-10T07:54:55","max_power":0.85,"sub_profile_count":0,"hash":"9c93fbbd50e9d73adfe7c6be286dd022"},{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"BW-SHP6 version 15A","only_self_usage":true,"standby_power":0.4,"standby_power_on":0.8,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"SHP6-15A","manufacturer":"blitzwolf","updated_at":"2026-07-10T07:54:55","max_power":0.8,"sub_profile_count":0,"hash":"87589cb00903182352ecddf4f146b71d"}],"device_types":["smart_switch"]},{"aliases":["LightZone"],"name":"melitec","full_name":"Melitec","dir_name":"melitec","models":[{"calculation_strategy":"lut","created_at":"2022-06-25T14:23:42Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"LightZone DP15 LED-Pendelleuchte","standby_power":0.83,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"DP15","manufacturer":"melitec","updated_at":"2026-07-18T07:09:16","max_power":17.57,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"5e2863c1b74f510729ba2870cbd99ba7"}],"device_types":["light"]},{"aliases":[],"name":"qubino","full_name":"Qubino","dir_name":"qubino","models":[{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"Fibaro FGWP102","measure_method":"manual","name":"Smart Plug 16A","only_self_usage":true,"standby_power":0.3,"standby_power_on":0.5,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"Smart Plug 16A","manufacturer":"qubino","updated_at":"2026-07-10T07:54:55","max_power":0.5,"sub_profile_count":0,"hash":"bcf007608e07634436ffdeb5050029f4"}],"device_types":["smart_switch"]},{"aliases":[],"name":"sonoff","full_name":"Sonoff","dir_name":"sonoff","models":[{"calculation_strategy":"fixed","created_at":"2025-11-13T14:22:10Z","device_type":"smart_switch","measure_device":"PeakTech 4350","measure_method":"manual","name":"Zigbee 3.0 Smart Relay Switch","only_self_usage":false,"standby_power":0.8,"standby_power_on":1.56,"author_info":{"name":"LtKowalski","github":"LtKowalski"},"id":"ZBMINIR2","manufacturer":"sonoff","updated_at":"2026-07-10T07:54:55","max_power":1.56,"sub_profile_count":0,"hash":"4f2644b741a90ea63b7e3e54f131dd20"},{"aliases":["Zigbee two way smart switch (ZBMINI)","01MINIZB"],"calculation_strategy":"fixed","created_at":"2023-03-12T09:13:10Z","device_type":"smart_switch","measure_device":"PeakTech P 4250 (1 mV/10 mA) with VOLTCRAFT VC270","measure_method":"manual","name":"Zigbee Two-Way Smart Switch","only_self_usage":false,"standby_power":0.33,"standby_power_on":0.49,"author_info":{"name":"TyzzyT","github":"TyzzyT"},"id":"ZBMINI","manufacturer":"sonoff","updated_at":"2026-07-10T07:54:55","max_power":0.49,"sub_profile_count":0,"hash":"85e1f12241f51e5fc7f004e9df03c0c5"},{"calculation_strategy":"lut","created_at":"2021-08-13T18:12:48Z","device_type":"light","measure_device":"Sonoff DualR3","measure_method":"script","name":"B02 Light with dimmer and temperature","standby_power":0.4,"author_info":{"name":"Francisco Bischoff","github":"franzbischoff"},"id":"B02BA60","manufacturer":"sonoff","updated_at":"2026-07-18T07:09:16","max_power":9.22,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"4c15d7cb23554744f135d2e122a513d5"},{"aliases":["S20"],"calculation_strategy":"fixed","created_at":"2023-10-27T09:03:14Z","device_type":"smart_switch","measure_device":"Nous A1T","measure_device_firmware":"ESPHome 2023.10.3","measure_method":"script","name":"Smart Wi-Fi Power Plug / Smart Outlet","only_self_usage":false,"standby_power":0.29,"standby_power_on":1.14,"author_info":{"name":"TyzzyT","github":"TyzzyT"},"id":"S20","manufacturer":"sonoff","updated_at":"2026-07-10T07:54:55","max_power":1.14,"sub_profile_count":0,"hash":"e7a37484e59e0bdb31bf09ec65597a34"},{"aliases":["sonoff-b1-e27-rgb"],"calculation_strategy":"lut","created_at":"2023-06-20T17:57:21Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.6.6:docker"},"name":"B1 Smart WiFi Light LED Bulb","standby_power":0.8,"author_info":{"name":"TyzzyT","github":"TyzzyT"},"id":"sonoff-b1-e27-rgb","manufacturer":"sonoff","updated_at":"2026-07-18T07:09:16","max_power":5.25,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"9b2891df0ee6343dc5fa402ba10f55f6"}],"device_types":["smart_switch","light"]},{"aliases":[],"name":"gosund","full_name":"Gosund","dir_name":"gosund","models":[{"calculation_strategy":"lut","created_at":"2026-01-03T10:49:39Z","device_type":"light","measure_device":"Nous A1T","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.1:docker"},"name":"Smart Wi-Fi RGB LED Light Strip (5 m)","standby_power":0.1,"author_info":{"name":"Jarod2801","github":"Jarod2801"},"id":"sl2","manufacturer":"gosund","updated_at":"2026-07-18T07:09:16","max_power":16.1,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"b656022a148b7cf3adc3d3a2c88e218b"}],"device_types":["light"]},{"aliases":["mercator ikuu","Mercator"],"name":"mercator ikuu","full_name":"Mercator Ikuü","dir_name":"mercator ikuu","models":[{"calculation_strategy":"lut","created_at":"2024-10-25T08:44:03Z","device_type":"light","measure_device":"Shelly Plus 2PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.10:docker"},"name":"RGB + CCT Zigbee 9 W LED Downlight (92 mm)","standby_power":0.43,"author_info":{"name":"hemiceni","email":"ivansiegmann@live.com","github":"hemiceni"},"id":"SMD4109W-RGB-ZB","manufacturer":"mercator ikuu","updated_at":"2026-07-18T07:09:16","max_power":8.09,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"eb98ba79fa93d1359af982f7b4a727dc"}],"device_types":["light"]},{"aliases":[],"name":"nanoleaf","full_name":"Nanoleaf","dir_name":"nanoleaf","models":[{"calculation_strategy":"lut","created_at":"2025-12-14T03:05:15Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.2:docker"},"name":"Essentials Matter(Thread) Smart Bulb A60 | E27","aliases":["Essentials A19/A60","Essentials A19"],"standby_power":0.14,"author_info":{"name":"David Iwanowitsch","github":"daiw"},"id":"NL67E200","manufacturer":"nanoleaf","updated_at":"2026-07-18T07:09:16","max_power":8.68,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"3ce07cb207ab54b2ffcfc8967ffd8c15"},{"calculation_strategy":"lut","created_at":"2024-04-10T20:05:34Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.11.6:docker"},"name":"Essentials Matter A19 Smart LED Light Bulb","standby_power":0.13,"author_info":{"name":"DawidPietrykowski","github":"DawidPietrykowski"},"id":"NF080B03-1A19E","manufacturer":"nanoleaf","updated_at":"2026-07-18T07:09:16","max_power":9.02,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"57525a6bb2ed06d62db0a3fbf56bbe40"}],"device_types":["light"]},{"aliases":[],"name":"bosch","full_name":"Bosch","dir_name":"bosch","models":[{"calculation_strategy":"fixed","created_at":"2023-06-19T08:02:31Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"Smart Home Plug Compact","only_self_usage":false,"standby_power":0.24,"standby_power_on":0.6,"author_info":{"name":"daloki83","github":"daloki83"},"id":"PLUG_COMPACT","manufacturer":"bosch","updated_at":"2026-07-10T07:54:55","max_power":0.6,"sub_profile_count":0,"hash":"e0e4c398a9b90e9d3f18df4097655b8f"},{"aliases":["SHC1","SmartHomeController"],"calculation_strategy":"fixed","created_at":"2025-04-09T23:41:25Z","description":"The measured Bosch Smart Home Controller had the following devices connected: four Bosch Smart Home Radiator Thermostat II (TRV_GEN2), two Bosch Smart Home Radiator Thermostat I (TRV), and two Bosch Smart Home Door/Window Contact II (SWD2).During the 120-second measurement period, the temperature was adjusted both directly on the device itself and via the Smart Home Controller on one TRV thermostat and on one TRV_GEN2 thermostat. In addition, both window sensors were triggered twice each by opening and closing the windows.","device_type":"generic_iot","discovery_by":"device","measure_device":"TP-Link Tapo P115","measure_device_firmware":"1.3.4 Build 250403 Rel.150504","measure_method":"script","name":"Smart Home Controller 1 Gen.","author_info":{"name":"Justin Hahn","email":"hahnjustin27@gmail.com","github":"justinh998"},"id":"Smart Home Controller 1 Gen","manufacturer":"bosch","updated_at":"2026-07-10T07:54:55","max_power":1.78,"sub_profile_count":0,"hash":"6420f9bad7a35087c9cb2f8ea9e40028"}],"device_types":["smart_switch","generic_iot"]},{"aliases":[],"name":"tasmota","full_name":"Tasmota","dir_name":"tasmota","models":[{"aliases":["NOUS A1T"],"calculation_strategy":"fixed","created_at":"2023-06-19T08:02:31Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"Smart Wi-Fi Socket with Power Meter","only_self_usage":true,"standby_power":0.29,"standby_power_on":0.54,"author_info":{"name":"daloki83","github":"daloki83"},"id":"A1T","manufacturer":"tasmota","updated_at":"2024-05-03T07:11:32","max_power":0.54,"sub_profile_count":0,"hash":"5ee42b89ea73b229176efb13a3f5eda3"},{"aliases":["A1Z","TS011F"],"calculation_strategy":"fixed","created_at":"2023-07-03T18:37:40Z","device_type":"smart_switch","measure_device":"Brennenstuhl PM 231 E","measure_method":"manual","name":"Smart Zigbee Power Metering Plug / Socket","only_self_usage":true,"standby_power":0.1,"standby_power_on":0.4,"author_info":{"name":"Andreas Brett","github":"andreasbrett"},"id":"A1Z","manufacturer":"tasmota","updated_at":"2024-05-03T07:11:32","max_power":0.4,"sub_profile_count":0,"hash":"84f72ba363602db90469b7989d3ac239"},{"aliases":["Shelly Plus Plug S V2","SNPL-00112EU","SNPL-10112EU"],"calculation_strategy":"fixed","created_at":"2024-12-01T18:36:00Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"GW Instek GPM-8310","measure_method":"manual","name":"Plus Plug S","only_self_usage":true,"standby_power":0.74,"standby_power_on":1.01,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"shelly plus plug s","manufacturer":"tasmota","updated_at":"2024-05-03T07:11:32","max_power":1.01,"sub_profile_count":0,"hash":"7857e6fddf6df3958883e098ff3749fe"},{"aliases":["SHPLG-S"],"calculation_strategy":"fixed","created_at":"2025-06-07T00:00:00Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"Brennenstuhl EM 231-A","measure_method":"manual","name":"Plug S","only_self_usage":true,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"shelly plug s","manufacturer":"tasmota","updated_at":"2024-05-03T07:11:32","max_power":0,"sub_profile_count":2,"hash":"cfc86c174e55f168341c3365c6143391"}],"device_types":["smart_switch"]},{"aliases":[],"name":"cree","full_name":"Cree","dir_name":"cree","models":[{"calculation_strategy":"lut","created_at":"2024-12-08T14:20:08Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Connected Max 60-Watt EQ A19 Tunable White E26 Dimmable Smart Light Bulb","standby_power":0.55,"author_info":{"name":"Benjamin Pearce","email":"gitlab@bcpearce.com","github":"bcpearce"},"id":"CMA19-60W-AL-9TW-GL","manufacturer":"cree","updated_at":"2026-07-18T07:09:16","max_power":6.95,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"a3881ca0685e33c239615229a42cefd9"},{"calculation_strategy":"lut","created_at":"2023-02-11T15:00:36Z","device_type":"light","measure_device":"Sonoff S31","measure_device_firmware":"Tasmota","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.3:docker"},"name":"Connected A-19 60W Equivalent","standby_power":0.25,"author_info":{"name":"Mark Atwood","email":"me@mark.atwood.name","github":"fallenpegasus"},"id":"B00TN589ZG","manufacturer":"cree","updated_at":"2026-07-18T07:09:16","max_power":10.67,"sub_profile_count":0,"color_modes":["brightness"],"hash":"6641f65b28c90dcbc5ee0db6f853316d"}],"device_types":["light"]},{"aliases":["WyzeLabs"],"name":"wyze","full_name":"Wyze","dir_name":"wyze","models":[{"calculation_strategy":"fixed","created_at":"2026-01-21T16:17:00Z","device_type":"smart_switch","measure_device":"Shelly EM Mini Gen4","measure_method":"manual","name":"Plug","standby_power":1.4,"standby_power_on":1.6,"author_info":{"name":"Bob Shaker","email":"bobshaker1@gmail.com","github":"EpicBurrito"},"id":"WLPP1CFH","manufacturer":"wyze","updated_at":"2026-07-10T07:54:55","max_power":1.6,"sub_profile_count":0,"hash":"ba2e7088be6182e45ae4b4371ef34254"},{"calculation_strategy":"lut","created_at":"2026-01-22T22:47:47Z","device_type":"light","measure_device":"TP-Link Tapo P110M","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v1.20.2:docker"},"name":"Bulb Color","standby_power":0.92,"author_info":{"name":"Bob Shaker","email":"bobshaker1@gmail.com","github":"EpicBurrito"},"id":"WLPA19C","manufacturer":"wyze","updated_at":"2026-07-18T07:09:16","max_power":12,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"54134e1c1d18b1751e05f8ef456bb7bf"}],"device_types":["smart_switch","light"]},{"aliases":[],"name":"gledopto","full_name":"Gledopto","dir_name":"gledopto","models":[{"calculation_strategy":"lut","created_at":"2025-11-02T07:53:49Z","device_type":"light","measure_device":"Shelly 1PM Mini","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.24:docker"},"name":"RGB+CCT 9 W Zigbee Downlight","standby_power":0.22,"author_info":{"name":"Peklaa","github":"Peklaa"},"id":"GL-D-004P","manufacturer":"gledopto","updated_at":"2026-07-18T07:09:16","max_power":8.15,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"44ac25364d71c10871c8e19fb38bb8ba"},{"calculation_strategy":"lut","created_at":"2022-08-21T08:18:17Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.24.8:docker"},"name":"RGB+CCT Zigbee 5 W GU10 Spotlight","standby_power":0.7,"author_info":{"name":"Emory Penney","email":"emory.j.penney@intel.com","github":"ejpenney"},"id":"GL-S-007Z","manufacturer":"gledopto","updated_at":"2026-07-18T07:09:16","max_power":5.08,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"a0844189def75c7994b338f1ea3b9a3e"},{"calculation_strategy":"lut","created_at":"2022-08-21T08:18:17Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.24.8:docker"},"name":"RGB+CCT 4 W MR16 Zigbee Spot Light","standby_power":0.49,"author_info":{"name":"Emory Penney","email":"emory.j.penney@intel.com","github":"ejpenney"},"id":"GL-S-005Z","manufacturer":"gledopto","updated_at":"2026-07-18T07:09:16","max_power":4.12,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"bde6ed1b6559278b8a087c6d066b9107"},{"calculation_strategy":"lut","created_at":"2022-09-11T17:05:58Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.25.4:docker"},"name":"RGB+CCT Zigbee E14 LED Candle Bulb (4 W)","standby_power":0.31,"author_info":{"name":"el97","email":"erik1337.el@gmail.com","github":"el97"},"id":"GL-B-001P","manufacturer":"gledopto","updated_at":"2026-07-18T07:09:16","max_power":3.54,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"b6ea9071667f09478774a84ac870fb24"},{"calculation_strategy":"lut","created_at":"2025-10-10T11:44:21Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.22:docker"},"name":"Filament LED light bulb E27 G95 7W","standby_power":0.36,"author_info":{"name":"Jurjen","github":"Coornh"},"id":"GL-B-004P","manufacturer":"gledopto","updated_at":"2026-07-18T07:09:16","max_power":6.7,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"ae769a6ec77964038537df0460247d6f"},{"calculation_strategy":"lut","created_at":"2025-10-14T22:32:31Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.23:docker"},"name":"Filament LED light bulb A60 7W","standby_power":0.12,"author_info":{"name":"Jurjen","github":"Coornh"},"id":"GL-B-003P","manufacturer":"gledopto","updated_at":"2026-07-18T07:09:16","max_power":6.36,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"a1f5b5e7ebd06ec12b373229358eedbf"}],"device_types":["light"]},{"aliases":["American Power Conversion","Schneider Electric"],"name":"apc","full_name":"APC","dir_name":"apc","models":[{"name":"APC Back-UPS ES 650G1","aliases":["Back-UPS ES 650G1"],"description":"Power profile for the APC Back-UPS ES 650G1 (650 VA / 390 W). Estimates real-time output power from NUT load percentage.","device_type":"ups","calculation_strategy":"fixed","discovery_by":"device","compatible_integrations":["nut"],"created_at":"2026-04-28T00:00:00Z","measure_method":"manual","measure_device":"N/A","fields":{"nominal_va":{"label":"Nominal Power (VA)","description":"The VA rating of your UPS. Default: 650","default":650,"selector":{"number":{"min":100,"max":10000}}},"power_factor":{"label":"Power Factor","description":"Ratio of real power to apparent power. Default: 0.7 for typical mixed loads.","default":0.7,"selector":{"number":{"min":0.1,"max":1,"step":0.1}}}},"author_info":{"name":"Brian Egge","github":"brianegge","email":"brianegge@gmail.com"},"id":"BE650G1","manufacturer":"apc","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":0,"hash":"b53b30641a583b61a4177aa168757f55"}],"device_types":["ups"]},{"aliases":[],"name":"hampton bay","full_name":"Hampton Bay","dir_name":"hampton bay","models":[{"calculation_strategy":"lut","created_at":"2025-01-30T12:14:50Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.3:docker"},"name":"Smart 24ft LED Color Changing Plug-In String Lights","standby_power":1.45,"author_info":{"name":"Chris Hallgren","email":"challgren@gmail.com","github":"challgren"},"id":"HB-10521-HS","manufacturer":"hampton bay","updated_at":"2026-07-18T07:09:16","max_power":4.85,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"474f468c165f634a7f941a5eebd9d703"}],"device_types":["light"]},{"aliases":[],"name":"casalux","full_name":"Casalux","dir_name":"casalux","models":[{"calculation_strategy":"lut","created_at":"2024-10-21T22:17:19Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"LED Lichtsäule (103 cm, 600 lm, RGBCT) - ESP8266/ESPHome conversion","standby_power":1.15,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"led_column_rgbct_103cm_600lm","manufacturer":"casalux","updated_at":"2026-07-18T07:09:16","max_power":14.35,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"8054d0cf2a1dfe4d221540286c32133f"}],"device_types":["light"]},{"aliases":[],"name":"eufy","full_name":"Eufy","dir_name":"eufy","models":[{"calculation_strategy":"fixed","created_at":"2023-08-12T11:19:44Z","device_type":"camera","measure_device":"Shelly Plug S","measure_method":"script","name":"Indoor Cam Pan&Tilt","author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"T8410","manufacturer":"eufy","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":2,"hash":"83612e2a5cad044b441e6d9a48f8cc2e"},{"aliases":["T8400"],"calculation_strategy":"fixed","created_at":"2024-12-14T09:59:57Z","device_type":"camera","measure_device":"TP-Link Kasa KP125M","measure_method":"manual","name":"Indoor Cam C120","author_info":{"name":"dxmnkd316","github":"dxmnkd316"},"id":"T8400","manufacturer":"eufy","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":2,"hash":"d4cbc2727416fd531152837297537dbd"}],"device_types":["camera"]},{"aliases":[],"name":"mammotion","full_name":"Mammotion","dir_name":"mammotion","models":[{"aliases":["YUKA mini 600 (YUKA mini 600)"],"calculation_strategy":"composite","created_at":"2025-10-13T17:19:21Z","device_type":"lawn_mower_robot","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"YUKA mini 600","standby_power":2.15,"author_info":{"name":"Alexandre Bertrand","email":"alexandre.bertrand@invirtus.io","github":"trandbert37"},"id":"YUKA mini 600","manufacturer":"mammotion","updated_at":"2026-07-10T07:54:55","max_power":null,"sub_profile_count":0,"hash":"959d838ba2e932726c67269c91f80942"}],"device_types":["lawn_mower_robot"]},{"aliases":["FRITZ!"],"name":"avm","full_name":"AVM","dir_name":"avm","models":[{"calculation_strategy":"fixed","created_at":"2023-06-24T08:34:14Z","device_type":"network","discovery_by":"device","measure_device":"Nous A1Z","measure_method":"manual","name":"FRITZ!Repeater 1200 AX","author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"FRITZ!Repeater 1200 AX","manufacturer":"avm","updated_at":"2026-07-10T07:54:55","max_power":3,"sub_profile_count":0,"hash":"fd1203d34122ae62b115056cc84ce173"},{"calculation_strategy":"fixed","created_at":"2023-12-31T08:21:16Z","device_type":"smart_switch","measure_device":"Shelly Plus Plug S / AVM Fritz!DECT 200","measure_method":"manual","name":"FRITZ!DECT 210","only_self_usage":true,"standby_power":0.35,"standby_power_on":1.1,"author_info":{"name":"ca-dmin","github":"ca-dmin"},"id":"FRITZ!DECT 210","manufacturer":"avm","updated_at":"2026-07-10T07:54:55","max_power":1.1,"sub_profile_count":0,"hash":"8d424264cbefcd756fc251a4d1577ff1"},{"calculation_strategy":"fixed","created_at":"2023-12-31T08:21:16Z","device_type":"network","discovery_by":"device","measure_device":"Shelly Plus Plug S","measure_method":"manual","name":"FRITZ!Repeater 2400","author_info":{"name":"ca-dmin","github":"ca-dmin"},"id":"FRITZ!Repeater 2400","manufacturer":"avm","updated_at":"2026-07-10T07:54:55","max_power":3.15,"sub_profile_count":0,"hash":"1a8e1eba88a52797357103d30c53fe0c"},{"calculation_strategy":"lut","created_at":"2023-05-03T20:27:16Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.5.1:docker"},"name":"FRITZ!DECT 500","standby_power":0.39,"author_info":{"name":"NickBaer","github":"NickBaer"},"id":"FRITZ!DECT 500","manufacturer":"avm","updated_at":"2026-07-18T07:09:16","max_power":10.82,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"639f981ff7e610d19ef6ee6b014028f1"},{"calculation_strategy":"fixed","created_at":"2026-02-14T20:27:59Z","device_type":"network","discovery_by":"device","measure_device":"Shelly Plug S","measure_method":"script","name":"FRITZ!Box 6670 Cable","author_info":{"name":"hpuac","github":"hpuac"},"id":"FRITZ!Box 6670 Cable","manufacturer":"avm","updated_at":"2026-07-10T07:54:55","max_power":12.14,"sub_profile_count":0,"hash":"cd17d45ed21807e32f770852963a4c0e"},{"calculation_strategy":"fixed","created_at":"2026-02-14T19:53:35Z","device_type":"network","discovery_by":"device","measure_device":"Shelly Plug S","measure_method":"script","name":"FRITZ!Repeater 2700","author_info":{"name":"hpuac","github":"hpuac"},"id":"FRITZ!Repeater 2700","manufacturer":"avm","updated_at":"2026-07-10T07:54:55","max_power":4.79,"sub_profile_count":0,"hash":"df38c2120eed39c3fb293abd2d0aeffd"},{"calculation_strategy":"fixed","created_at":"2026-04-17T10:48:22Z","device_type":"network","discovery_by":"device","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.20.12:docker"},"name":"FRITZ!Box 6690 Cable","author_info":{"name":"Tim","github":"EinRainerZufall"},"id":"FRITZ!Box 6690 Cable","manufacturer":"avm","updated_at":"2026-04-19T05:47:35","max_power":15.75,"sub_profile_count":0,"hash":"1bbd038ec921eb65fdd65c3273100771"},{"calculation_strategy":"fixed","created_at":"2023-12-31T08:21:16Z","device_type":"network","discovery_by":"device","measure_device":"Shelly Plus Plug S / AVM Fritz!DECT 200","measure_method":"manual","name":"FRITZ!Repeater 1750E","author_info":{"name":"ca-dmin","github":"ca-dmin"},"id":"FRITZ!Repeater 1750E","manufacturer":"avm","updated_at":"2026-07-10T07:54:55","max_power":3.15,"sub_profile_count":0,"hash":"25b141acf2ce4b80e8768e89da14a554"},{"calculation_strategy":"fixed","created_at":"2026-02-14T19:16:54Z","device_type":"network","discovery_by":"device","measure_device":"Shelly Plug S","measure_method":"script","name":"FRITZ!Repeater 6000","author_info":{"name":"hpuac","github":"hpuac"},"id":"FRITZ!Repeater 6000","manufacturer":"avm","updated_at":"2026-07-10T07:54:55","max_power":9.73,"sub_profile_count":0,"hash":"9b1d978a035c20959a5b5523185ddff8"},{"calculation_strategy":"fixed","created_at":"2025-12-14T07:22:00Z","device_type":"network","discovery_by":"device","measure_device":"Nous A1Z","measure_method":"manual","name":"FRITZ!Box 5690 Pro","author_info":{"name":"Robert M. Albrecht","email":"powercalc@romal.org","github":"rmalbrecht"},"id":"FRITZ!Box 5690 Pro","manufacturer":"avm","updated_at":"2026-07-10T07:54:55","max_power":14.5,"sub_profile_count":0,"hash":"f313eb68479b634393beafd71dffa6b5"},{"calculation_strategy":"fixed","created_at":"2023-06-19T08:02:31Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"FRITZ!DECT 200","only_self_usage":true,"standby_power":0.45,"standby_power_on":1,"author_info":{"name":"daloki83","github":"daloki83"},"id":"FRITZ!DECT 200","manufacturer":"avm","updated_at":"2026-07-10T07:54:55","max_power":1,"sub_profile_count":0,"hash":"7b81c4ec3b54c0ef0734f6a7afe824cd"}],"device_types":["network","smart_switch","light"]},{"aliases":[],"name":"ajax online","full_name":"Ajax Online","dir_name":"ajax online","models":[{"calculation_strategy":"lut","created_at":"2022-11-10T19:42:22Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"v1.0.3:docker"},"name":"Smart Zigbee pro 12W A60 bulb","standby_power":0.5,"author_info":{"name":"gary-oneill82","github":"gary-oneill82"},"id":"AJ_ZIGPROA60","manufacturer":"ajax online","updated_at":"2026-07-18T07:09:16","max_power":10.14,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"7e8135d08d474fd1db7704000d82d35c"},{"calculation_strategy":"lut","created_at":"2022-11-10T19:42:22Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"v1.0.3:docker"},"name":"Smart Zigbee pro GU10 spotlight bulb","standby_power":0.35,"author_info":{"name":"gary-oneill82","github":"gary-oneill82"},"id":"AJ_ZB_GU10","manufacturer":"ajax online","updated_at":"2026-07-18T07:09:16","max_power":3.38,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"482211b0f37ba02f6332c9609c5daa2d"}],"device_types":["light"]},{"aliases":["tuya"],"name":"luedd","full_name":"Luedd","dir_name":"luedd","models":[{"aliases":[],"calculation_strategy":"lut","created_at":"2025-04-29T00:51:48Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.11:docker"},"name":"Smart GU10 5W 2200-4000K + RGB","standby_power":0.8,"author_info":{"name":"Jort","github":"JortvanSchijndel"},"id":"LUEDD Smart GU10 5W 2200-4000K + RGB","manufacturer":"luedd","updated_at":"2026-07-18T07:09:16","max_power":5.49,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f67cee89f0943af6577bc4269d117c8f"}],"device_types":["light"]},{"aliases":["neo-coolcam","Shenzhen Neo Electronics Co., Ltd."],"name":"neo-coolcam","full_name":"Neo CoolCam","dir_name":"neo-coolcam","models":[{"calculation_strategy":"fixed","created_at":"2022-10-04T20:16:59Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"Smart Power Plug","only_self_usage":true,"standby_power":0.31,"standby_power_on":0.58,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"NAS-WR01Z","manufacturer":"neo-coolcam","updated_at":"2026-07-10T07:54:55","max_power":0.58,"sub_profile_count":0,"hash":"6e24339e6f31af59ca61f28483823bc1"}],"device_types":["smart_switch"]},{"aliases":[],"name":"oz smart things","full_name":"Oz Smart Things","dir_name":"oz smart things","models":[{"aliases":["DL41-03-10-R-ZB"],"calculation_strategy":"lut","created_at":"2022-12-07T08:50:18Z","device_type":"light","measure_device":"Shelly 2.5 gen1 (SHSW-25)","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.1.3:docker"},"name":"Zigbee Downlight","standby_power":0.72,"author_info":{"name":"Scales82","github":"Scales82"},"id":"DL41-03-10-R-ZB","manufacturer":"oz smart things","updated_at":"2026-07-18T07:09:16","max_power":19.24,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"70ad9ce5c8f0cde31ce9bb52051ecd1d"}],"device_types":["light"]},{"aliases":[],"name":"ynoa","full_name":"Ynoa","dir_name":"ynoa","models":[{"calculation_strategy":"lut","created_at":"2023-03-03T10:26:20Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.6:docker"},"name":"Smart White & Color Tones","standby_power":0.19,"author_info":{"name":"Sander","email":"sandolution@outlook.com","github":"Sandolution"},"id":"LA-GU10-RGBW","manufacturer":"ynoa","updated_at":"2026-07-18T07:09:16","max_power":4.53,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"ad314b643ecacaa12f182cafce44b6ea"}],"device_types":["light"]},{"aliases":["Hewlett-Packard"],"name":"hp","full_name":"HP","dir_name":"hp","models":[{"aliases":["HP Color LaserJet Pro MFP 3301"],"author_info":{"name":"Brian Egge","email":"brianegge@gmail.com","github":"brianegge"},"calculation_strategy":"fixed","created_at":"2026-03-14T00:00:00Z","device_type":"printer","measure_device":"Shelly 4PM","measure_method":"manual","name":"Color LaserJet Pro MFP 3301","id":"MFP 3301","manufacturer":"hp","updated_at":"2026-03-15T13:44:45","max_power":2.2,"sub_profile_count":0,"hash":"7cf079816aebf6ed99f40e8ab0927087"}],"device_types":["printer"]},{"aliases":[],"name":"sony","full_name":"Sony","dir_name":"sony","models":[{"calculation_strategy":"linear","created_at":"2025-08-27T11:10:15Z","device_type":"smart_speaker","measure_device":"Meross mss305","measure_method":"manual","name":"Smart Wireless Speaker with Google Assistant","standby_power":3.28,"author_info":{"name":"jonathanlflatt","github":"jonathanlflatt"},"id":"LF-S50G","manufacturer":"sony","updated_at":"2026-07-18T07:09:16","max_power":6.9,"sub_profile_count":0,"hash":"ea04e3564abfc40a5fdc9036e36f4a40"}],"device_types":["smart_speaker"]},{"aliases":[],"name":"arlec","full_name":"Arlec","dir_name":"arlec","models":[{"calculation_strategy":"lut","created_at":"2022-07-26T20:23:22Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.23.2:docker"},"name":"Smart R80 9.5W 806lm CCT Bulb","standby_power":0.58,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"GLD115HA","manufacturer":"arlec","updated_at":"2026-07-18T07:09:16","max_power":9.34,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"0ca544edef6379448bbe6255e4d0ecdc"},{"calculation_strategy":"lut","created_at":"2026-03-19T00:05:49Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":5,"VERSION":"v1.20.9:docker"},"name":"12W 1050Lm CCT Colour Mode LED E27 Globe","standby_power":0.3,"author_info":{"name":"Mallett","github":"Ma11ett"},"id":"GLD312HA","manufacturer":"arlec","updated_at":"2026-07-18T07:09:16","max_power":11,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"2349552d3de5d89936519c8bf142a73b"},{"calculation_strategy":"lut","created_at":"2022-08-15T22:44:20Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.23.2:docker"},"name":"12W 1050lm RGB Colour Mode Grid Connect Smart LED B22 Globe","standby_power":0.7,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"GLD130P3HA","manufacturer":"arlec","updated_at":"2026-07-18T07:09:16","max_power":12.01,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"717337185b9be6c419a3472a9fe6532f"},{"calculation_strategy":"lut","created_at":"2025-05-13T15:07:15Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.12:docker"},"name":"9W 92mm Grid Connect Smart RGB+CCT LED Downlight","standby_power":0.5,"author_info":{"name":"Stuart Mackintosh","github":"stuartmackintosh"},"id":"ALD295P5HA","manufacturer":"arlec","updated_at":"2026-07-18T07:09:16","max_power":8.3,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"6eff31f627c9b835c3b183ecbf6c751f"},{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"TP-Link Tapo P110","measure_method":"manual","name":"White Grid Connect Smart Plug In Socket With Energy Meter","only_self_usage":true,"standby_power":0.267,"standby_power_on":1.144,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"PC191HA","manufacturer":"arlec","updated_at":"2026-07-10T07:54:55","max_power":1.144,"sub_profile_count":0,"hash":"01099284059c9e95febc7b9d6fd77535"},{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"TP-Link Tapo P110","measure_method":"manual","name":"Grid Connect Smart Twin Socket With Energy Meter And Surge Protection PC287HA","only_self_usage":true,"standby_power":0.29,"standby_power_on":2.565,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"PC287HA","manufacturer":"arlec","updated_at":"2026-07-10T07:54:55","max_power":2.565,"sub_profile_count":0,"hash":"eda9c8852b064e92f80d6c76b6161978"},{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"TP-Link Tapo P110","measure_method":"manual","name":"Grid Connect Smart Plug In Multi-Function Socket With USB","only_self_usage":true,"standby_power":0.66,"standby_power_on":1.596,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"PC192HA","manufacturer":"arlec","updated_at":"2026-07-10T07:54:55","max_power":1.596,"sub_profile_count":0,"hash":"dac0ef2ac80a8ed02f5e3f18886da48f"}],"device_types":["light","smart_switch"]},{"aliases":["IKEA of Sweden"],"name":"ikea","full_name":"IKEA","dir_name":"ikea","models":[{"aliases":["KAJPLATS GU10 CWS 470lm","36871"],"calculation_strategy":"lut","created_at":"2026-01-25T17:26:36Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.3:docker"},"name":"KAJPLATS GU10 CWS 470lm","standby_power":0.2,"author_info":{"name":"Linus Nordin","github":"gribber","email":"linus.nordin@gmail.com"},"id":"LED2410R5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":4.93,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"9cc52f46b9cc792727a82655f339a292"},{"aliases":["TRADFRIbulbE27WWclear250lm","LED1934G3_E27"],"calculation_strategy":"lut","created_at":"2022-07-10T21:08:46Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.22.1:docker"},"name":"TRADFRI bulb E27 WW clear 250lm","standby_power":0.27,"author_info":{"name":"Linus","email":"linus.nordin@gmail.com","github":"gribber"},"id":"LED1934G3","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":2.94,"sub_profile_count":0,"color_modes":["brightness"],"hash":"d01df3bcb631817cc59e804773e85e51"},{"aliases":["KAJPLATS E27 CWS globe 1055lm","36869"],"calculation_strategy":"lut","created_at":"2026-01-29T22:14:00Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.3:docker"},"name":"KAJPLATS E27 CWS globe 1055lm","standby_power":0.17,"author_info":{"name":"Linus Nordin","github":"gribber","email":"linus.nordin@gmail.com"},"id":"LED2405G8","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":7.78,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"9a3743eb73030d635ab961dce56fcb50"},{"aliases":["TRADFRI bulb E14 CWS opal 600lm","TRADFRI bulb E26 CWS opal 600lm","TRADFRI bulb E27 CWS opal 600lm"],"calculation_strategy":"lut","created_at":"2021-12-28T15:40:31Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.13.4"},"name":"TRADFRI bulb E27 CWS opal 600lm","standby_power":0.48,"author_info":{"name":"marthubner","github":"marthubner"},"id":"LED1624G9","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":8.6,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"23b70e98461bebd79f2e897de3625b55"},{"aliases":["TRADFRI LED driver, 30 w (ICPSHC24-30EU-IL-1/ICPSHC24-10EU-IL-2"],"calculation_strategy":"linear","created_at":"2025-02-12T13:05:00Z","device_type":"smart_dimmer","measure_device":"Nous A8T","measure_device_firmware":"EspHome","measure_method":"manual","name":"TRADFRI LED driver, 30 w","standby_power":0.31,"standby_power_on":0.35,"author_info":{"name":"Marcus Voß","github":"mvoss96"},"id":"ICPSHC24-30EU-IL-1","manufacturer":"ikea","updated_at":"2026-07-10T07:54:55","max_power":0.35,"sub_profile_count":0,"hash":"93c59fd962d6551155863474b2adff61"},{"aliases":["INSPELNING Smart plug"],"calculation_strategy":"fixed","created_at":"2026-04-08T10:46:42Z","device_type":"smart_switch","measure_device":"Ketotek KTEM02BL Electricity Monitor","measure_method":"manual","name":"INSPELNING smart plug","only_self_usage":true,"standby_power":0.2,"standby_power_on":0.7,"author_info":{"name":"Patrick Lehner","github":"lehnerpat"},"id":"E2221","manufacturer":"ikea","updated_at":"2026-07-10T07:54:55","max_power":0.7,"sub_profile_count":0,"hash":"f13b33d4e11db8008b2c19077401082d"},{"aliases":["KAJPLATS E14 CWS globe 806lm","36870"],"calculation_strategy":"lut","created_at":"2026-01-19T03:19:02Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.2:docker"},"name":"KAJPLATS E14 CWS globe 806lm","standby_power":0.22,"author_info":{"name":"Linus Nordin","email":"linus.nordin@gmail.com","github":"gribber"},"id":"LED2409G6","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":10.44,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"58e6e9fba8eb0f7df013b0e287d9e98d"},{"calculation_strategy":"lut","created_at":"2024-04-12T08:07:57Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":4,"SLEEP_TIME":5,"VERSION":"v1.10.0:docker"},"name":"TRADFRI bulb GU10 WS 345 lm, dimmable, white spectrum","standby_power":0.2,"author_info":{"name":"martinkura-svk","github":"martinkura-svk"},"id":"LED2106R3","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":3,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"34992a508541d095e481e740d3d3d83f"},{"aliases":["KAJPLATS GU10 WS 575lm","36866"],"calculation_strategy":"lut","created_at":"2026-01-25T00:28:14Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.3:docker"},"name":"KAJPLATS GU10 WS 575lm","standby_power":0.22,"author_info":{"name":"Linus Nordin","github":"gribber","email":"linus.nordin@gmail.com"},"id":"LED2403R5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":5.2,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"0259b47f503303bc9555660eb4f1b08e"},{"calculation_strategy":"lut","created_at":"2024-12-08T10:13:50Z","device_type":"light","linked_profile":"ikea/LED1937T5_E27","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.0.3:docker"},"name":"TRADFRI bulb E27 470 lumen, dimmable, opal white","standby_power":0.2,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LED1936G5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":5.3,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"74421a31c36978797d38a40e8c1e5b6e"},{"aliases":["TRADFRI bulb E14 WS opal 600lm"],"calculation_strategy":"lut","created_at":"2021-12-22T17:55:01Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":5,"VERSION":"v0.13.1"},"name":"TRADFRI bulb E14 WS opal 600lm","standby_power":0.17,"author_info":{"name":"Robert","github":"metbril"},"id":"LED1738G7","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":6.74,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"19246dc011d5b5aa80a08d528790540f"},{"aliases":["TRADFRI bulb E27 WW 806lm"],"calculation_strategy":"lut","created_at":"2021-09-20T22:08:50Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"TRADFRI bulb E27 WW 806lm","standby_power":0.4,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LED1836G9","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":8.98,"sub_profile_count":0,"color_modes":["brightness"],"hash":"25ca9d43e60ac1e4f34c1f5a137ea17d"},{"aliases":["FLOALT panel WS 30x30"],"calculation_strategy":"lut","created_at":"2022-01-28T13:50:12Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":25,"SLEEP_TIME":10,"VERSION":"master"},"name":"FLOALT panel WS 30x30","standby_power":0.08,"author_info":{"name":"confucius78","email":"dekker.wj@gmail.com","github":"confucius78"},"id":"L1527","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":11.49,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"f23967b4ce5240e546e2639a0bf87e22"},{"aliases":["TRADFRI bulb GU10 W 400lm"],"calculation_strategy":"lut","created_at":"2021-06-28T17:41:00Z","device_type":"light","measure_device":"Zhurui PR10","measure_method":"manual","name":"TRADFRI bulb GU10 W 400lm","standby_power":0.38,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LED1650R5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":5.64,"sub_profile_count":0,"color_modes":["brightness"],"hash":"70ebb7c4c321cf2c7b89ffdbf4ff7da6"},{"aliases":["36882"],"calculation_strategy":"lut","created_at":"2026-06-08T02:23:45Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.14:docker"},"name":"KAJPLATS E26 WS 1100lm","standby_power":0.07,"author_info":{"name":"wombat94","github":"wombat94"},"id":"LED2407G8NA","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":7.53,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"aca798ee81ae736a3d4946bbeedde1a4"},{"aliases":["TRADFRI bulb E27 WW globe 806lm"],"calculation_strategy":"lut","created_at":"2023-10-28T17:09:48Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":15,"SLEEP_TIME":3,"VERSION":"v1.9.5:docker"},"name":"TRADFRI bulb E27 WW globe 806lm","standby_power":0.11,"author_info":{"name":"dansie","github":"dansie"},"id":"LED2103G5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":6.16,"sub_profile_count":0,"color_modes":["brightness"],"hash":"0d067ed7e977e72bd5344d35b92ee97b"},{"aliases":["KAJPLATS E27 WS globe 1521lm","36867"],"calculation_strategy":"lut","created_at":"2026-01-17T16:42:06Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.2:docker"},"name":"KAJPLATS E27 WS globe 1521lm","standby_power":0.38,"author_info":{"name":"Linus Nordin","email":"linus.nordin@gmail.com","github":"gribber"},"id":"LED2408G10","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":10.25,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"977211df19a95a570ed3e2f1d0e534ce"},{"calculation_strategy":"lut","created_at":"2023-03-04T11:53:20Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.5:docker"},"name":"STOFTMOLN ceiling/wall lamp 24 warm light dimmable","standby_power":0.25,"author_info":{"name":"vyruz1986","email":"alex.goris@fastlikehell.com","github":"vyruz1986"},"id":"T2035","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":8.98,"sub_profile_count":0,"color_modes":["brightness"],"hash":"621c65776dbe8d9389658a7b5d65bb1e"},{"aliases":["TRADFRIbulbT120E27WSopal470lm","TRADFRI bulb E27 W opal 470lm","TRADFRI bulb E27 opal 470lm"],"calculation_strategy":"lut","created_at":"2022-11-10T19:43:50Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.0.3:docker"},"name":"TRADFRI bulb E27 470 lumen, dimmable, opal white","standby_power":0.2,"author_info":{"name":"marthubner","github":"marthubner"},"id":"LED1937T5_E27","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":5.3,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"51129b725a55645b8b973c92fb248b69"},{"aliases":["TRADFRI bulb E14 WS globe 470lm"],"calculation_strategy":"lut","created_at":"2023-09-01T19:08:02Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.2:docker"},"name":"TRADFRI bulb E12/E14 WS globe 450/470 lumen, dimmable, white spectrum, opal white (LED2101G4)","standby_power":0.2,"author_info":{"name":"Michal","github":"michalpulda"},"id":"LED2101G4","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":4.66,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"4a3641dcf2fa85b788bfa0246620ff69"},{"aliases":["TRADFRI bulb E27 WS clear 806lm"],"calculation_strategy":"lut","created_at":"2021-12-29T19:34:57Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.13.4"},"name":"TRADFRI bulb E27 WS clear 806lm","standby_power":0.34,"author_info":{"name":"marthubner","github":"marthubner"},"id":"LED1736G9","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":9.26,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"71d41402f1e2bac034028304f555a14f"},{"aliases":["TRADFRI bulb E14 CWS 470lm"],"calculation_strategy":"lut","created_at":"2022-03-13T20:57:45Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.18.4:docker"},"name":"TRADFRI bulb E14 CWS 470lm","standby_power":0.23,"author_info":{"name":"kpoos","github":"kpoos"},"id":"LED1925G6","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":5.46,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"c5b7ba3fa55ea4ffb30254e300caa62d"},{"aliases":["Slagsida"],"calculation_strategy":"lut","created_at":"2022-06-23T10:58:00Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"SLAGSIDA under cupboard light (60cm)","standby_power":0.62,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"L1616","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":7.57,"sub_profile_count":0,"color_modes":["brightness"],"hash":"e436783f510174d77c9f036aea38233a"},{"aliases":["KAJPLATS E14 WS globe 806lm","36868"],"calculation_strategy":"lut","created_at":"2026-01-22T21:15:31Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.2:docker"},"name":"KAJPLATS E14 WS globe 806lm","standby_power":0.21,"author_info":{"name":"Linus Nordin","email":"linus.nordin@gmail.com","github":"gribber"},"id":"LED2404G6","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":6.29,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"66d29d23704d963420beb01ac489f51b"},{"aliases":["TRADFRI bulb E27 WS globe 1055lm"],"calculation_strategy":"lut","created_at":"2023-12-28T17:44:26Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":6,"VERSION":"v1.9.11:docker"},"name":"TRADFRI bulb E27 1055 lumen, smart wireless dimmable/white spectrum globe","standby_power":0.19,"author_info":{"name":"Jari Eskelinen","email":"jari.eskelinen@iki.fi","github":"jarpatus"},"id":"LED2201G8","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":7.86,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"b744f3fb16a319844fb786a82a6df260"},{"aliases":["STARKVIND Air purifier table"],"calculation_strategy":"linear","created_at":"2025-04-18T12:32:08Z","device_type":"fan","measure_device":"GreenWave GWPN1","measure_method":"manual","name":"STARKVIND air purifier table","standby_power":0.2,"author_info":{"name":"Marius","github":"Mariusthvdb"},"id":"E2007","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":24.8,"sub_profile_count":0,"hash":"1b951a85e482feb0206888c94d0d3b9f"},{"calculation_strategy":"lut","created_at":"2024-01-13T09:03:27Z","device_type":"light","measure_device":"Nous A1T","measure_device_firmware":"ESPHome 2023.11.6","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.5:docker"},"name":"NYMANE pendant lamp","standby_power":0.29,"author_info":{"name":"Mr. Bubbles","email":"manni@zapto.de","github":"tr4nt0r"},"id":"LED1805E22EU","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":23.33,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"f987cc6efb84771e6eb4fdb5cbc1f2bd"},{"aliases":["TRADFRIbulbE27WSglobeopal1055lm"],"calculation_strategy":"lut","created_at":"2022-01-28T15:48:57Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":6,"VERSION":"master"},"name":"TRADFRI bulb E27 1055 lumen, dimmable, white spectrum, opal white","standby_power":0.17,"author_info":{"name":"giu889","github":"giu889"},"id":"LED2003G10","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":9.69,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"67008b73cafc5eb0b44815de14f37bc1"},{"aliases":["KAJPLATS E27 WS globe 470lm","36864"],"calculation_strategy":"lut","created_at":"2026-01-21T16:46:43Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.2:docker"},"name":"KAJPLATS E27 WS globe 470lm","standby_power":0.08,"author_info":{"name":"Linus Nordin","email":"linus.nordin@gmail.com","github":"gribber"},"id":"LED2406G4","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":4.3,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"61a71fa717443b64bc78932a3969e1c0"},{"aliases":["TRADFRIbulbE14WSglobeopal470lm"],"calculation_strategy":"lut","created_at":"2021-12-29T19:34:57Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.13.4"},"name":"TRADFRI bulb E14 WS globe opal 470lm","standby_power":0.23,"author_info":{"name":"marthubner","github":"marthubner"},"id":"LED2002G5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":4.74,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"9f1c77d8afa4da0994f0e600cefd576f"},{"aliases":["TRADFRI bulb E27 WS opal 1000lm"],"calculation_strategy":"lut","created_at":"2021-07-03T09:31:58Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"TRADFRI bulb E27 WS opal 1000lm","standby_power":0.26,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LED1732G11","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":10.49,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"7f7246cc49189217941e5dad77981fdb"},{"aliases":["TRADFRI bulb GU10 WW 400lm"],"calculation_strategy":"lut","created_at":"2021-09-14T11:38:40Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.13.4"},"name":"TRADFRI bulb GU10 WW 400lm","standby_power":0.21,"author_info":{"name":"Magnus Øverli","email":"magnus.overli@gmail.com","github":"magnusoverli"},"id":"LED1837R5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":5.37,"sub_profile_count":0,"color_modes":["brightness"],"hash":"8b74684ddbe32dbab1d1576def6a8d24"},{"aliases":["TRADFRI bulb E14 WS candle 470lm"],"calculation_strategy":"lut","created_at":"2023-11-23T08:29:35Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":5,"SLEEP_TIME":3,"VERSION":"v1.9.5:docker"},"name":"TRADFRI bulb E14 WS candle 470lm","standby_power":0.15,"author_info":{"name":"dansie","github":"dansie"},"id":"LED2107C4","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":3.15,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"a0338a2f1d479f9928d0e29e280e87f1"},{"aliases":["FLOALT panel WS 30x90"],"calculation_strategy":"lut","created_at":"2022-02-12T15:41:16Z","device_type":"light","measure_device":"Shelly 3EM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"v0.17.0:docker"},"name":"FLOALT panel WS 30x90","standby_power":0.45,"author_info":{"name":"Florian B","github":"DerFlob"},"id":"L1528","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":28.05,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"de652f234308e3f8c4fd89edad4c0420"},{"aliases":["TRADFRI bulb E14 WS 470lm","LED1903C5/LED1835C6"],"calculation_strategy":"lut","created_at":"2021-12-29T19:34:57Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.13.4"},"name":"TRADFRI bulb E14 WS 470lm","standby_power":0.25,"author_info":{"name":"marthubner","github":"marthubner"},"id":"LED1835C6","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":5.55,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"3d7e9b5f93533e7458c478d76a0f8906"},{"aliases":["TRADFRI bulb E27 opal 1000lm","TRADFRI bulb E27 W opal 1000lm"],"calculation_strategy":"lut","created_at":"2021-06-28T17:41:00Z","device_type":"light","measure_device":"Zhurui PR10","measure_method":"manual","name":"TRADFRI bulb E27 opal 1000lm","standby_power":0.36,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LED1623G12","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":12.53,"sub_profile_count":0,"color_modes":["brightness"],"hash":"268523ba3348cca6e381012392bced95"},{"aliases":["TRADFRI bulb E27 WW clear 250lm"],"calculation_strategy":"lut","created_at":"2022-01-05T14:50:43Z","device_type":"light","measure_device":"Sonoff S31","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"v0.13.5"},"name":"TRADFRI bulb E27 WW clear 250lm","standby_power":0.551,"author_info":{"name":"alanpaone","email":"alanpaone@gmail.com","github":"alanpaone"},"id":"LED1842G3","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":2.69,"sub_profile_count":0,"color_modes":["brightness"],"hash":"fa3d1fd479bbd40cb44741b07c89607d"},{"aliases":["GUNNARP panel round"],"calculation_strategy":"lut","created_at":"2026-04-06T17:34:33Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.11:docker"},"name":"GUNNARP LED Ceiling / Wall Lamp 40cm","standby_power":0.05,"author_info":{"name":"Servox3","github":"Servox3"},"id":"T1828","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":22.9,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"0daf9fb44dfb2191f6729da42aeadd25"},{"aliases":["KAJPLATS E27 WS G60 clear 470lm","36874"],"calculation_strategy":"lut","created_at":"2026-01-20T16:05:00Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.2:docker"},"name":"KAJPLATS E27 WS G60 clear 470lm","standby_power":0.07,"author_info":{"name":"Linus Nordin","email":"linus.nordin@gmail.com","github":"gribber"},"id":"LED2411G3","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":3.12,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"2ea73c237bf3fd6dc502e59bdab53239"},{"aliases":["TRADFRI bulb GU10 WS 345lm","TRADFRIbulbGU10WS345lm"],"calculation_strategy":"lut","created_at":"2022-01-28T15:48:57Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":6,"VERSION":"master"},"name":"TRADFRI bulb GU10 345 lumen, dimmable, white spectrum","standby_power":0.2,"author_info":{"name":"giu889","github":"giu889"},"id":"LED2005R5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":3.45,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"e341b9a5098a6de83deb96a5366a3aac"},{"aliases":["TRADFRI bulb GU10 WS 400lm"],"calculation_strategy":"lut","created_at":"2021-08-21T07:43:16Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"TRADFRI bulb GU10 WS 400lm","standby_power":0.44,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LED1537R6","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":5.47,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"b87ad67c6fe4217b17c7947da6ef2f99"},{"aliases":["TRADFRI bulb E14 W op/ch 400lm"],"calculation_strategy":"lut","created_at":"2021-06-28T17:41:00Z","device_type":"light","measure_device":"Zhurui PR10","measure_method":"manual","name":"TRADFRI bulb E14 W op/ch 400lm","standby_power":0.4,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LED1649C5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":5.55,"sub_profile_count":0,"color_modes":["brightness"],"hash":"b28a9bef848bea0ef050859bbdf1b24b"},{"aliases":["TRADFRI bulb E27 WS clear 950lm"],"calculation_strategy":"lut","created_at":"2021-07-03T09:31:58Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"TRADFRI bulb E27 WS clear 950lm","standby_power":0.43,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LED1546G12","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":11.29,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"41dc7a872e4c10d8efc0501e904d3f08"},{"aliases":["TRADFRI bulb E27 CWS globe 806lm"],"calculation_strategy":"lut","created_at":"2024-12-14T09:59:57Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.11.8:docker"},"name":"TRADFRI bulb E27 CWS globe 806lm","standby_power":0.17,"author_info":{"name":"marthubner","github":"marthubner"},"id":"LED2109G6","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":7.18,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"8e31a22d5222e71e7a993600e2f46a53"},{"aliases":["TRADFRI bulb GU10 WW 345lm"],"calculation_strategy":"lut","created_at":"2025-12-22T22:20:22Z","device_type":"light","measure_device":"Shelly 1PM Mini","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.5:docker"},"name":"TRADFRI bulb GU10 WW 345lm","standby_power":0.1,"author_info":{"name":"Peklaa","github":"Peklaa"},"id":"LED2104R3","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":3.13,"sub_profile_count":0,"color_modes":["brightness"],"hash":"5c689997d44a8d6ac7e1a6403104388f"},{"aliases":["KAJPLATS E27 WS G95 clear 806lm","36873"],"calculation_strategy":"lut","created_at":"2026-01-18T11:46:54Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.2:docker"},"name":"KAJPLATS E27 WS G95 clear 806lm","standby_power":0.23,"author_info":{"name":"Linus Nordin","email":"linus.nordin@gmail.com","github":"gribber"},"id":"LED2401G5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":5.24,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"d156c046644d4a01b683ad2ea08ae937"},{"aliases":["ASKVADER","On/Off plug (ASKVADER on/off switch)"],"calculation_strategy":"fixed","created_at":"2023-12-31T20:16:31Z","device_type":"smart_switch","measure_device":"Shelly Plus Plug S / AVM Fritz!DECT 200","measure_method":"manual","name":"ASKVADER on/off switch","only_self_usage":false,"standby_power":0.21,"standby_power_on":0.78,"author_info":{"name":"confucius78","email":"dekker.wj@gmail.com","github":"confucius78"},"id":"E1836","manufacturer":"ikea","updated_at":"2026-07-10T07:54:55","max_power":0.78,"sub_profile_count":0,"hash":"39b93b29bf049102c3ad5f394a276bca"},{"aliases":["TRADFRIbulbE14WWclear250lm"],"calculation_strategy":"lut","created_at":"2022-07-10T21:08:46Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.22.1:docker"},"name":"TRADFRI bulb E14 WW clear 250lm","standby_power":0.1,"author_info":{"name":"Linus","email":"linus.nordin@gmail.com","github":"gribber"},"id":"LED1935C3","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":2.65,"sub_profile_count":0,"color_modes":["brightness"],"hash":"be5527beaa790166fa7623491409805e"},{"aliases":["FLOALT panel WS 60x60"],"calculation_strategy":"lut","created_at":"2022-01-28T13:50:12Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":50,"SLEEP_TIME":10,"VERSION":"master"},"name":"FLOALT panel WS 60x60","standby_power":0.12,"author_info":{"name":"confucius78","email":"dekker.wj@gmail.com","github":"confucius78"},"id":"L1529","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":32.48,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"ae284619905b8c49be67acaa200fab24"},{"aliases":["LEPTITER Recessed spot light"],"calculation_strategy":"lut","created_at":"2021-12-29T19:34:57Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.13.4"},"name":"LEPTITER recessed spot light","standby_power":0.3,"author_info":{"name":"marthubner","github":"marthubner"},"id":"T1820","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":9.61,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"7bcc3fcea0f37c0614ef2aa0de6d47f2"},{"aliases":["KAJPLATS E27 WS globe 1055lm","36865"],"calculation_strategy":"lut","created_at":"2026-01-23T15:38:51Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.2:docker"},"name":"KAJPLATS E27 WS globe 1055lm","standby_power":0.2,"author_info":{"name":"Linus Nordin","email":"linus.nordin@gmail.com","github":"gribber"},"id":"LED2407G8","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":8.47,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"1bb82636aef76a64d28237e41980fec1"},{"aliases":["TRADFRI bulb E14 WS opal 400lm"],"calculation_strategy":"lut","created_at":"2021-07-03T09:31:58Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"TRADFRI bulb E14 WS opal 400lm","standby_power":0.44,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LED1536G5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":4.45,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"e3516a921c2d5f156073ed77a252c81c"},{"aliases":["ORMANAS LED Strip"],"calculation_strategy":"lut","created_at":"2024-11-09T00:06:13Z","device_type":"light","measure_device":"Fibaro FGWP102","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.15.2:docker"},"name":"ORMANAS LED Strip","standby_power":0.1,"author_info":{"name":"Marius","github":"Mariusthvdb"},"id":"L2112","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":6.3,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"d021b3180f167d15b235f5619ae09265"},{"aliases":["TRADFRI bulb E27 CWS 806lm"],"calculation_strategy":"lut","created_at":"2022-02-02T13:04:27Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.14.1"},"name":"TRADFRI bulb E27 CWS 806lm","standby_power":0.2,"author_info":{"name":"marthubner","github":"marthubner"},"id":"LED1924G9","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":9.89,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"02de77e88313a2553681895358060c71"},{"aliases":["4096"],"calculation_strategy":"fixed","created_at":"2026-04-18T23:21:36Z","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"manual","name":"GRILLPLATS Smart Plug (Matter)","only_self_usage":true,"standby_power":0.22,"standby_power_on":0.47,"author_info":{"name":"Tim","github":"EinRainerZufall"},"id":"E2491","manufacturer":"ikea","updated_at":"2026-04-19T14:38:22","max_power":0.47,"sub_profile_count":0,"hash":"e72214329af5ff3c2d17b792e8d0856d"},{"aliases":["TRADFRIbulbE27WSglobeclear806lm","TRADFRIbulbE26WSglobeclear800lm"],"calculation_strategy":"lut","created_at":"2022-11-10T19:43:50Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.0.3:docker"},"name":"TRADFRI LED bulb E27 806 lumen, dimmable, white spectrum, clear","standby_power":0.2,"author_info":{"name":"marthubner","github":"marthubner"},"id":"LED2004G8","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":7.63,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"8f2041c6de9fed6911c9d88547a61c5f"},{"calculation_strategy":"lut","created_at":"2026-02-06T11:01:13Z","device_type":"light","measure_device":"Meross mss315","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":10,"VERSION":"v1.20.4:docker"},"name":"TRADFRI bulb B22, white spectrum, globe, opal, 1055 lm","standby_power":0.06,"author_info":{"name":"ngengerous","github":"ngengerous"},"id":"LED2035G10","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":9.79,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"2392039d8571b10785fe1d772b42bd4d"},{"calculation_strategy":"lut","created_at":"2024-08-29T18:59:50Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.3:docker"},"name":"JETSTROM ceiling light panel, white spectrum, 60x60 cm","standby_power":0.3,"author_info":{"name":"Jonathan Wiklund","email":"jonathan.wiklund@gmail.com","github":"MaZZly"},"id":"L2207","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":42.46,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"e28ab12eaf9978a2ff41eb558ce77275"},{"aliases":["TRADFRI bulb E14 CWS globe 806lm"],"calculation_strategy":"lut","created_at":"2025-11-27T15:17:19Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":3,"VERSION":"v1.19.0:docker"},"name":"TRADFRI bulb E14 CWS globe 806lm","standby_power":0.46,"author_info":{"name":"LtKowalski","github":"LtKowalski"},"id":"LED2111G6","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":6.92,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"1e03dc00228d84d6b5988262986dff16"},{"calculation_strategy":"fixed","created_at":"2024-01-13T09:03:27Z","device_type":"network","measure_device":"Nous A1T","measure_device_firmware":"ESPHome 2023.12.5","measure_method":"script","name":"TRADFRI signal repeater","author_info":{"name":"confucius78","email":"dekker.wj@gmail.com","github":"confucius78"},"id":"E1746","manufacturer":"ikea","updated_at":"2026-07-10T07:54:55","max_power":0.26,"sub_profile_count":0,"hash":"428357601f1c92c23858e797fa89e92f"},{"aliases":["TRADFRI bulb E27 WS opal 980lm"],"calculation_strategy":"lut","created_at":"2021-08-13T14:31:12Z","device_type":"light","measure_device":"AVM Fritz!DECT 200","measure_method":"script","name":"TRADFRI bulb E27 WS opal 980lm","standby_power":0.4,"author_info":{"name":"Simon Hörrle","email":"simon.hoerrle@gmail.com","github":"CM000n"},"id":"LED1545G12","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":11.37,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"825778957505d7c1e826e938a2003e52"},{"aliases":["TRADFRI bulb E27 WW G95 CL 470lm"],"calculation_strategy":"lut","created_at":"2023-10-26T12:05:28Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":15,"SLEEP_TIME":3,"VERSION":"v1.9.5:docker"},"name":"TRADFRI bulb E27 WW G95 CL 470lm","standby_power":0.09,"author_info":{"name":"dansie","github":"dansie"},"id":"LED2102G3","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":3.01,"sub_profile_count":0,"color_modes":["brightness"],"hash":"2c9355c68f7877c240faea7fce4b6d25"},{"aliases":["TRADFRI bulb E14 WS opal 600lm"],"calculation_strategy":"lut","created_at":"2021-12-29T19:34:57Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.13.4"},"name":"TRADFRI bulb E14 WS opal 600lm","standby_power":0.33,"author_info":{"name":"marthubner","github":"marthubner"},"id":"LED1733G7","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":6.98,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"96aa72b723a961efa6df7c5149aba45d"},{"aliases":["INSPELNING Smart plug"],"calculation_strategy":"fixed","created_at":"2025-01-24T08:23:25Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"INSPELNING smart plug","only_self_usage":true,"standby_power":0.23,"standby_power_on":0.8,"author_info":{"name":"ZleekWolf","github":"folfy"},"id":"E2206","manufacturer":"ikea","updated_at":"2026-07-10T07:54:55","max_power":0.8,"sub_profile_count":0,"hash":"b1f544360ff8a926e98efcff9751b02a"},{"aliases":["TRADFRI bulb GU10 CWS 345lm"],"calculation_strategy":"lut","created_at":"2022-02-01T12:33:08Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.14.1"},"name":"TRADFRI bulb GU10 CWS 345lm","standby_power":0.18,"author_info":{"name":"marthubner","github":"marthubner"},"id":"LED1923R5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":4.9,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"aa0a112fb0a87a8b9add4ee6bfdb8d31"},{"aliases":["TRADFRIbulbE14WScandleopal470lm"],"calculation_strategy":"lut","created_at":"2022-03-13T20:57:45Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.18.4:docker"},"name":"TRADFRI bulb E14 WS candle opal 470lm","standby_power":0.2,"author_info":{"name":"kpoos","github":"kpoos"},"id":"LED1949C5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":4.48,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"9ce4f5b8b961107f488be93f62945864"},{"calculation_strategy":"lut","created_at":"2024-11-25T16:19:34Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.15.4:docker"},"name":"JETSTROM ceiling light panel, color/white spectrum, 30x30 cm","standby_power":0.32,"author_info":{"name":"SAF","email":"andrei.staicu@gmail.com","github":"smarmie"},"id":"L2206","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":9.8,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"a44d648ba7d3c0e88b3bf391c0f89fc4"},{"calculation_strategy":"lut","created_at":"2024-11-20T11:28:25Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.15.4:docker"},"name":"TRADFRI bulb GU10 WS 400 lm, dimmable, white spectrum","standby_power":0.26,"author_info":{"name":"Bram Eikelboom","github":"bram96"},"id":"LED1739R5","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":5.36,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"0b1ce2fd3c184140012fae87f5838406"},{"aliases":["TRADFRI control outlet"],"calculation_strategy":"fixed","created_at":"2022-11-23T08:42:12Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"TRADFRI control outlet","only_self_usage":false,"standby_power":0.23,"standby_power_on":0.98,"author_info":{"name":"Marius","github":"Mariusthvdb"},"id":"E1603","manufacturer":"ikea","updated_at":"2026-07-10T07:54:55","max_power":0.98,"sub_profile_count":0,"hash":"f1864581d55d7dbcdd65e93dc783acb0"},{"aliases":["36886"],"calculation_strategy":"lut","created_at":"2026-06-08T22:49:32Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.14:docker"},"name":"KAJPLATS E26 CWS globe 1100lm","standby_power":0.05,"author_info":{"name":"wombat94","github":"wombat94"},"id":"LED2405G8NA","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":7.65,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"9377545506afdacf71dd0733563307c9"},{"aliases":["TRETAKT Smart plug"],"calculation_strategy":"fixed","created_at":"2025-02-02T13:27:12Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"TRETAKT smart plug","only_self_usage":false,"standby_power":0.13,"standby_power_on":0.73,"author_info":{"name":"ZleekWolf","github":"folfy"},"id":"E22x4","manufacturer":"ikea","updated_at":"2026-07-10T07:54:55","max_power":0.73,"sub_profile_count":0,"hash":"12ae88c7ab97889288856539376413ef"},{"calculation_strategy":"lut","created_at":"2026-06-18T00:07:18Z","device_type":"light","max_voltage":235.6,"measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.21.0:docker"},"min_voltage":231.3,"name":"KAJPLATS E14 WS B38 CL 470lm","standby_power":0.2,"author_info":{"name":"Keysie","github":"keysie"},"id":"LED2402C3","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":3.57,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"6cf57439a73244dbe1453df711e7c8e9"},{"calculation_strategy":"lut","created_at":"2023-09-19T18:51:11Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.4:docker"},"name":"STOFTMOLN ceiling/wall lamp WW37","standby_power":0.11,"author_info":{"name":"WarLL3","github":"WarLL3"},"id":"T2037","manufacturer":"ikea","updated_at":"2026-07-18T07:09:16","max_power":19.95,"sub_profile_count":0,"color_modes":["brightness"],"hash":"c51614807a528e3a923ad362f4b58a58"}],"device_types":["light","smart_dimmer","smart_switch","fan","network"]},{"aliases":["Tripplite"],"name":"tripp lite","full_name":"Tripp Lite","dir_name":"tripp lite","models":[{"name":"Tripp Lite UPS","aliases":["Tripplite"],"device_type":"ups","calculation_strategy":"fixed","discovery_by":"device","compatible_integrations":["nut"],"created_at":"2026-03-20T00:00:00Z","measure_method":"manual","measure_device":"N/A","documentation_url":"https://docs.powercalc.nl/cookbook/ups/","fields":{"power_factor":{"label":"Power Factor","description":"Ratio of real power to apparent power. Use 0.6 for computers/electronics, 0.7 for mixed loads, 1.0 for resistive loads like heaters. [See docs](https://docs.powercalc.nl/cookbook/ups/)","default":0.7,"selector":{"number":{"min":0.1,"max":1,"step":0.1}}}},"author_info":{"name":"Brian Egge","github":"brianegge","email":"brianegge@gmail.com"},"id":"Tripp Lite UPS","manufacturer":"tripp lite","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":0,"hash":"61c993c2499b7f08f442babedc2eb813"}],"device_types":["ups"]},{"aliases":["Philips","Signify Netherlands B.V."],"name":"signify","full_name":"Signify","dir_name":"signify","models":[{"aliases":["929002469202"],"calculation_strategy":"lut","created_at":"2023-03-12T19:39:04Z","device_type":"light","measure_device":"PeakTech P 4250 (1 mV/10 mA) with VOLTCRAFT VC270","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"v1.3.10"},"name":"Hue White A60 bulb E27 1050lm with Bluetooth","standby_power":0.8,"author_info":{"name":"Panagiotis Doulgeris","github":"Pantastisch"},"id":"929002469202","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":10.49,"sub_profile_count":0,"color_modes":["brightness"],"hash":"8df28486c490cfd3904abed1f5629362"},{"aliases":["8718696598283"],"calculation_strategy":"lut","created_at":"2022-02-14T21:48:07Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":5,"VERSION":"v0.17.0:docker"},"name":"Hue White Ambiance GU10","standby_power":0.3,"author_info":{"name":"KrzysztofHajdamowicz","email":"uosiu@uosiu.info","github":"KrzysztofHajdamowicz"},"id":"LTW013","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.43,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"1e5b2b72aa0239ba2bc52a621aae9585"},{"aliases":["9290030569"],"calculation_strategy":"lut","created_at":"2023-02-28T18:32:53Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Struana Bathroom Ceiling Light 36cm","standby_power":0.4,"author_info":{"name":"matteobreschig","github":"matteobreschig"},"id":"929003056901","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":25.9,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"5af287907b4ca23552e08f5af03731f7"},{"aliases":["9150059977"],"calculation_strategy":"lut","created_at":"2025-12-10T01:04:33Z","device_type":"light","measure_device":"Shelly 1PM Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.2:docker"},"name":"Hue Devere","standby_power":0.09,"author_info":{"name":"Thorsten1982","email":"ThorstenNiemann.TN@googlemail.com","github":"Thorsten1982"},"id":"915005997701","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":39.58,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"e9e79027b8d1db5cfe33d6786854598b"},{"aliases":[],"calculation_strategy":"lut","created_at":"2023-09-02T09:08:23Z","device_type":"light","linked_profile":"signify/LLC012","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue Disney Story Light","standby_power":0.3,"author_info":{"name":"CM000n","email":"simon.hoerrle@gmail.com","github":"CM000n"},"id":"LLC013","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.77,"sub_profile_count":0,"color_modes":["hs"],"hash":"6b9f37e09fbade7483a9005fe127ffcb"},{"aliases":["9290038538"],"calculation_strategy":"lut","created_at":"2026-02-16T01:04:33Z","device_type":"light","measure_device":"Shelly Plug US Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.5:docker"},"name":"Hue White and color ambiance 75W A19- E26 smart bulb","standby_power":0.23,"author_info":{"name":"pinkfin","github":"pinkfin","email":"hot.wire1618@fastmail.com"},"id":"LCA014","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.38,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"411b84a73750fefe179968bce6dabfc7"},{"aliases":["433714"],"calculation_strategy":"lut","created_at":"2021-06-21T13:40:20Z","device_type":"light","measure_device":"Zhurui PR10","measure_method":"manual","name":"Hue Lux E27 750lm","standby_power":0.29,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LWB004","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.52,"sub_profile_count":0,"color_modes":["brightness"],"hash":"59d74b4f8292cb8b5ada0e9cd56522a7"},{"calculation_strategy":"lut","created_at":"2021-08-21T14:47:39Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","name":"LivingColors Iris","standby_power":0.5,"author_info":{"name":"smonesi","github":"smonesi"},"id":"LLC001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":12.88,"sub_profile_count":0,"color_modes":["hs"],"hash":"d727d13be27224663d160df5c4641bd3"},{"aliases":["9150058429"],"calculation_strategy":"lut","created_at":"2025-12-13T11:50:54Z","device_type":"light","measure_device":"Shelly 1PM Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.2:docker"},"name":"Hue Resonate","standby_power":0.05,"author_info":{"name":"Thorsten1982","email":"ThorstenNiemann.TN@googlemail.com","github":"Thorsten1982"},"id":"1746430P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":17.5,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"ac9948e1dd2bc52810e54d5c5ba22620"},{"calculation_strategy":"lut","created_at":"2023-04-01T17:53:59Z","device_type":"light","measure_device":"Shelly Plug US","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":4,"VERSION":"v1.3.13:docker"},"name":"Hue White Ambiance BR30","standby_power":0.25,"author_info":{"name":"laplacacm","github":"laplacacm"},"id":"LTB002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.72,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"cbb4ea4ca3e0b111abfa7f7e6efd93f5"},{"calculation_strategy":"lut","created_at":"2026-05-12T13:39:38Z","device_type":"light","measure_device":"Hue Play wall washer","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v1.20.11:docker"},"name":"Hue Play wall washer","standby_power":0.3,"author_info":{"name":"phoenixxx-1","github":"phoenixxx-1"},"id":"LGT009","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":11.86,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"3303fcefd764e978900f746c8cf173fa"},{"calculation_strategy":"lut","created_at":"2021-09-01T18:40:45Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","name":"Hue White and Color Ambiance (1 gen)","standby_power":0.22,"author_info":{"name":"wormiedk","email":"wormie@alberg.dk","github":"wormiedk"},"id":"LCT001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.6,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"54843b710a5401c1603635c229947b15"},{"calculation_strategy":"lut","created_at":"2026-04-17T17:03:41Z","device_type":"light","measure_device":"IKEA INSPELNING smart plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"v1.20.12:docker"},"name":"Mijia Philips Desk Lamp 3","standby_power":0.4,"author_info":{"name":"xxddff","github":"xxddff","email":"772327379@qq.com"},"id":"philips.light.sread3","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.7,"sub_profile_count":0,"color_modes":["brightness","effect"],"hash":"728e12409f1fa364a4a7b3abb6498a73"},{"aliases":["9150055612","Hue Outdoor Lucca"],"calculation_strategy":"lut","created_at":"2023-06-28T07:43:28Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.6.6:docker"},"name":"Hue Lucca Outdoor Wall Light","standby_power":0.35,"author_info":{"name":"TyzzyT","github":"TyzzyT"},"id":"1740193P0","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.35,"sub_profile_count":0,"color_modes":["brightness"],"hash":"6e3bb107b200aeb73142e04cb48806cf"},{"calculation_strategy":"lut","created_at":"2024-02-12T19:18:57Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"v1.10.2:docker"},"name":"Hue White and Color Ambiance Surimu square panel 30x30","standby_power":0.38,"author_info":{"name":"gerritjonker","email":"gerrit.jonker@icloud.com","github":"gerritjonker"},"id":"929003598001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":28.69,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"ecde3c5cc26c6879fd4d6ee7c5092cd3"},{"aliases":["9290024896"],"calculation_strategy":"lut","created_at":"2023-02-09T19:19:56Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.1:docker"},"name":"Hue White and Color ambiance E27 800lm","standby_power":0.33,"author_info":{"name":"Mikael Ganehag Brorsson","email":"mikael.brorsson@gmail.com","github":"ganehag"},"id":"LCA004","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.73,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"e3ae7d9603b6c7216e7d3916d3c554ba"},{"aliases":["3418931P6"],"calculation_strategy":"lut","created_at":"2021-12-05T11:25:07Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":1,"VERSION":"v0.12.2"},"name":"Hue Struana Ceiling Light","standby_power":0.35,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LTC012","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":29.07,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"78d05b10d3544f7442e5d8d855462468"},{"aliases":["929003099301"],"calculation_strategy":"lut","created_at":"2023-08-20T07:30:32Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"master"},"name":"Hue Aurelle Round Panel Light","standby_power":0.47,"author_info":{"name":"Nicolas L","github":"Loustik"},"id":"LTC016","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":28.46,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"04ef9ca54e2579bd9d825756fcca8cb6"},{"aliases":["9290012001","9290022169","9290022575","9290022576"],"calculation_strategy":"lut","created_at":"2021-08-21T14:47:39Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","name":"Hue White Ambiance E27","standby_power":0.29,"author_info":{"name":"smonesi","github":"smonesi"},"id":"LTA001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.63,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"cfa6abedb1e6ea9852c8da0c3c32d427"},{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"Hue Smart Plug","only_self_usage":false,"standby_power":0.23,"standby_power_on":0.91,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"LOM002","manufacturer":"signify","updated_at":"2026-07-10T07:54:55","max_power":0.91,"sub_profile_count":0,"hash":"3944b7cabde6780799cf742535c74d09"},{"calculation_strategy":"lut","created_at":"2023-08-20T07:29:42Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"master"},"name":"Hue Cher Ceiling Light","standby_power":0.53,"author_info":{"name":"Nicolas L","github":"Loustik"},"id":"LTC011","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":40.06,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"e50d7c856758dcdb82c9d8cf78405e9c"},{"aliases":["9290022412","929002241201"],"calculation_strategy":"lut","created_at":"2021-08-29T23:49:16Z","device_type":"light","measure_device":"Gosund SP111","measure_device_firmware":"Tasmota 9.5.0","measure_method":"script","name":"Hue White Filament Bulb ST64 E27","standby_power":0.5,"author_info":{"name":"Stefan Gries","github":"stefangries"},"id":"LWV001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7,"sub_profile_count":0,"color_modes":["brightness"],"hash":"c5dfe25e3dc64f75ce62528e006c59f3"},{"aliases":["1743430P7","1745430P7","9150057310"],"calculation_strategy":"lut","created_at":"2022-12-04T08:51:38Z","device_type":"light","linked_profile":"signify/1742930P7","measure_device":"Zhurui PR10","measure_method":"script","name":"Hue Impress Pedestal Low","standby_power":0.17,"author_info":{"name":"Cafun","github":"Cafun"},"id":"1743130P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":49,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"92355bc9bd9082c02cc52fd769048688"},{"aliases":["9150059209","929003099101"],"calculation_strategy":"lut","created_at":"2022-12-25T09:44:08Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"master"},"name":"Hue White Ambiance Aurelle Rectangular","standby_power":0.35,"author_info":{"name":"Jari Eskelinen","email":"jari.eskelinen@iki.fi","github":"jarpatus"},"id":"3216331P6","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":51,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"9319786652877bf995460b522392952b"},{"aliases":["1746230V7","9150058426"],"calculation_strategy":"lut","created_at":"2023-02-14T18:42:39Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Lily XL outdoor spot light","standby_power":0.25,"author_info":{"name":"Marc Geurts","email":"geurtsmarc@hotmail.com","github":"marcgeurts"},"id":"1746230P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":17.96,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"a6188503e6e0a187ccb2800145be5a2b"},{"calculation_strategy":"lut","created_at":"2024-12-15T16:41:00Z","device_type":"light","measure_device":"IKEA INSPELNING smart plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"v1.16.5:docker"},"name":"Hue Flourish Ceiling Light","standby_power":0.5,"author_info":{"name":"deceju","github":"deceju"},"id":"LCC001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":40.2,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"db8b28372b215004f74bb3236a16fe4f"},{"aliases":["9290024717"],"calculation_strategy":"lut","created_at":"2022-05-19T19:11:30Z","device_type":"light","measure_device":"TP-Link Kasa KP125","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.19.12:docker"},"name":"Hue White and Color Ambiance E26 1600lm","standby_power":0.19,"author_info":{"name":"Jacob Donenfeld","email":"jacobdonenfeld@gmail.com","github":"jacobdonenfeld"},"id":"LCA009","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":12.88,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"9e06d26c84856513184d07e6b81590fe"},{"calculation_strategy":"lut","created_at":"2021-08-21T14:47:39Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","name":"Hue Iris","standby_power":0.4,"author_info":{"name":"smonesi","github":"smonesi"},"id":"LLC010","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.37,"sub_profile_count":0,"color_modes":["hs"],"hash":"0e96579a31536ce57e98b8ea319dcdc5"},{"aliases":["9290012575"],"calculation_strategy":"lut","created_at":"2022-05-26T10:34:54Z","device_type":"light","measure_device":"TP-Link Smart Wi-Fi Plug Mini","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.20.1:docker"},"name":"Hue White and Color Ambiance A19 800lm","standby_power":0.34,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LCT016","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.06,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"831e3a67c61337f269a133a5cbb7be3d"},{"calculation_strategy":"lut","created_at":"2024-01-08T20:35:44Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.15:docker"},"name":"Hue White and Color Ambiance Downlight 4 inch","standby_power":0.3,"author_info":{"name":"Emory Penney","email":"emory.j.penney@intel.com","github":"ejpenney"},"id":"LCD006","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":10.31,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"c425293394bf9fa535e0b7c0a3a7aa3e"},{"aliases":["9290024691A"],"calculation_strategy":"lut","created_at":"2024-06-19T13:39:30Z","device_type":"light","measure_device":"HOPI HP-9800","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"v1.2.0:docker"},"name":"Hue White Bulb A19 E26 1100lm with Bluetooth","standby_power":0.2,"author_info":{"name":"Shaun McCloud","email":"shaun.thomas.mccloud@gmail.com","github":"smccloud"},"id":"LWA029","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.1,"sub_profile_count":0,"color_modes":["brightness"],"hash":"b3d212df1949c2188f6df3ec1043cfc8"},{"aliases":["929003736201_01","929003736201_02"],"calculation_strategy":"lut","created_at":"2026-02-14T21:41:43Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"v1.20.5:docker"},"min_version":"1.20.6","name":"Hue Datura ceiling light","standby_power":0.36,"author_info":{"name":"Lukas Köhl","github":"lkoehl"},"id":"929003736201","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":42.49,"sub_profile_count":2,"color_modes":["hs","color_temp"],"hash":"811e467c76ae29d9152a2271b670df65"},{"aliases":["915005106701"],"calculation_strategy":"lut","created_at":"2021-09-10T20:49:41Z","device_type":"light","measure_device":"AVM Fritz!DECT 200","measure_method":"script","name":"Hue LightStrip Plus (2m)","standby_power":0.18,"author_info":{"name":"Simon Hörrle","email":"simon.hoerrle@gmail.com","github":"CM000n"},"id":"LST002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":21.88,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"1fd29f6036ec5d2c7741abade972c1b5"},{"calculation_strategy":"lut","created_at":"2024-10-25T20:25:54Z","device_type":"light","measure_device":"TP-Link Kasa KP125M","measure_method":"script","measure_settings":{"SAMPLE_COUNT":5,"SLEEP_TIME":3,"VERSION":"v1.12.13:docker"},"name":"Hue White Bulb A60 E27 w/ Bluetooth","standby_power":0.25,"author_info":{"name":"dxmnkd316","github":"dxmnkd316"},"id":"LWS003","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":10.48,"sub_profile_count":0,"color_modes":["brightness"],"hash":"8c2719c94226b533d94fe406c0b9d7e3"},{"calculation_strategy":"lut","created_at":"2023-08-20T07:30:22Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Aurelle Rectangle Panel Light 30x120cm","standby_power":0.4,"author_info":{"name":"Nicolas L","github":"Loustik"},"id":"LTC015","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":53.5,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"6569cb4b9f4095fdbbf34a8d2ae3dd70"},{"aliases":["929003808201_01","929003808201_02","929003808201_03","929003808201_04","929003808101_01","929003808101_02","929003808101_03","929003808901_02","929003808901_03","929003808901_04","929003808901_05"],"calculation_strategy":"lut","created_at":"2025-05-17T02:32:38Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.12:docker"},"name":"Hue white and color GU10 4.2W 400lm","standby_power":0.14,"author_info":{"name":"Wouter Rutgers","email":"git@wouterrutgers.nl","github":"wouterrutgers"},"id":"929003808201","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.28,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"d868d3999caf79ae7c686ee91d261d33"},{"aliases":["9290024687"],"calculation_strategy":"lut","created_at":"2022-05-29T15:18:24Z","device_type":"light","linked_profile":"signify/LCA006","measure_device":"Nous A1","measure_device_firmware":"TASMOTA 9.5.0","measure_method":"script","name":"Hue White and Color Ambiance A19 E26 1100lm","standby_power":0.4,"author_info":{"name":"Thomas-Henning von Kamptz","github":"tomsoftcom"},"id":"LCA007","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.15,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"40f7462a1a131ed8c2f49607055c8e64"},{"calculation_strategy":"lut","created_at":"2021-06-11T22:01:53Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White and Color Ambiance Candle E12","standby_power":0.35,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LCT012","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.43,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"ddb06ce0ca059e66fad1be25093ee17e"},{"aliases":["9150059975"],"calculation_strategy":"lut","created_at":"2023-02-28T18:32:53Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Infuse Large Ceiling Lamp","standby_power":0.34,"author_info":{"name":"matteobreschig","github":"matteobreschig"},"id":"915005997501","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":67.79,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f3fb74d74e581d09df3fcc7b7562ba7d"},{"aliases":["9290030990"],"calculation_strategy":"lut","created_at":"2023-04-03T21:42:31Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.13:docker"},"name":"Hue White Ambiance Aurelle square panel","standby_power":0.3,"author_info":{"name":"vandalon","email":"joris@vandalon.nl","github":"vandalon"},"id":"929003099001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":23.45,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"2cc588f786b95a379896f8c90f7925a9"},{"aliases":["4080248P9","9150058716"],"calculation_strategy":"lut","created_at":"2023-06-19T20:36:20Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.6.6:docker"},"name":"Hue Signe Floor Light","standby_power":0.6,"author_info":{"name":"TyzzyT","github":"TyzzyT"},"id":"4080248P9","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":36.25,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"fdd2623b2c3434fcbf674dec189689c0"},{"aliases":["9290035261"],"calculation_strategy":"lut","created_at":"2025-12-20T00:35:52Z","device_type":"light","measure_device":"Shelly 1PM Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.5:docker"},"name":"Hue Xamento rececessed spotlight","standby_power":0.07,"author_info":{"name":"Thorsten1982","email":"ThorstenNiemann.TN@googlemail.com","github":"Thorsten1982"},"id":"929003526101","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.61,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"6ea7bb23810f10d90e9f62cc9126e4a2"},{"aliases":["3417711P6"],"calculation_strategy":"lut","created_at":"2021-12-05T11:25:07Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":1,"VERSION":"v0.12.2"},"name":"Hue Adore Bathroom Mirror Light","standby_power":0.42,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LTW017","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":29.07,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"432e51e91041086cba6c8820b2abd20f"},{"aliases":["8718699688820","9290022409"],"calculation_strategy":"lut","created_at":"2021-06-21T20:30:23Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White Filament Bulb A60 E27","standby_power":0.26,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LWA004","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.44,"sub_profile_count":0,"color_modes":["brightness"],"hash":"9d25f194ca7a358a9bd6ab079ff28294"},{"calculation_strategy":"lut","created_at":"2026-04-13T18:53:54Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.12:docker"},"name":"Hue outdoor Resonate downward wall lamp","standby_power":0.66,"author_info":{"name":"posixx","github":"posixx"},"id":"929003553001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.51,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"bff6bf2bc3d216c406035b1a2b469c21"},{"calculation_strategy":"fixed","created_at":"2026-01-25T11:34:00Z","device_type":"network","discovery_by":"device","measure_device":"Zhurui PR10","measure_method":"manual","name":"Hue Bridge V2","author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"BSB002","manufacturer":"signify","updated_at":"2026-07-10T07:54:55","max_power":1.74,"sub_profile_count":0,"hash":"d94d12a1ae6ef786df01a9039e52d448"},{"calculation_strategy":"lut","created_at":"2026-06-16T17:53:14Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":10,"SLEEP_TIME":3,"VERSION":"v1.20.14:docker"},"name":"Hue White and Colour Ambiance E14 Lustre","standby_power":0.26,"author_info":{"name":"Stuart Pearson","github":"stuartp44"},"id":"LCU001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.81,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"91cc8b3b3a9adda4d2970b5159635904"},{"aliases":["8719514301504","9290024779"],"calculation_strategy":"lut","created_at":"2023-08-25T12:06:28Z","device_type":"light","linked_profile":"signify/LTO001","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White Ambiance E27 ST64 Filament Bulb","standby_power":0.17,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LTV002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.26,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"10565ee0e7c11104559a76c199dad25c"},{"aliases":["9290019532"],"calculation_strategy":"lut","created_at":"2024-01-08T20:35:25Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.15:docker"},"name":"Hue White and Color Ambiance GU10 w/BT","standby_power":0.4,"author_info":{"name":"Emory Penney","email":"emory.j.penney@intel.com","github":"ejpenney"},"id":"LCG001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.71,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"31e138b5e297443541e3067e4db287ac"},{"aliases":["9290022268"],"calculation_strategy":"lut","created_at":"2022-05-29T15:18:24Z","device_type":"light","linked_profile":"signify/LWA001","measure_device":"Shelly 1PM","measure_method":"script","name":"Hue White A19 E26 Bluetooth","standby_power":0.4,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LWA003","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.51,"sub_profile_count":0,"color_modes":["brightness"],"hash":"9be4912839b11bf5f4f3021cece44496"},{"aliases":["929003055001","9290030551","929003055101","929003055201"],"calculation_strategy":"lut","created_at":"2023-11-01T15:35:10Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":7,"SLEEP_TIME":3,"VERSION":"v1.9.5:docker"},"name":"Hue Being Ceiling Light","standby_power":0.47,"author_info":{"name":"dansie","github":"dansie"},"id":"929003055101","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":27.24,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"fbe4f2ab2ca6b233d5941419333c7e9a"},{"aliases":["9150058246"],"calculation_strategy":"lut","created_at":"2022-08-21T08:18:17Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.24.8:docker"},"name":"Hue White and Color Ambiance Downlight 5/6 Inch","standby_power":0.12,"author_info":{"name":"Emory Penney","email":"emory.j.penney@intel.com","github":"ejpenney"},"id":"LCD002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.81,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"a541c06ca442995ec963bc4d72e04fa2"},{"aliases":["9290030211"],"calculation_strategy":"lut","created_at":"2026-03-07T14:48:02Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":5,"SLEEP_TIME":3,"VERSION":"v1.20.8:docker"},"name":"Hue White Smart Bulb Candle E14 5.5W ","standby_power":0.22,"author_info":{"name":"sve","github":"sve007"},"id":"LWE007","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.16,"sub_profile_count":0,"color_modes":["brightness"],"hash":"26539a97ac09daca9f13d2d3f6b830b4"},{"aliases":["8718696485880"],"calculation_strategy":"lut","created_at":"2021-06-11T22:01:53Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White and Color Ambiance Spot GU10","standby_power":0.25,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LCT003","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.19,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"7c05c1fcd9034310852e91b20effccb0"},{"aliases":[],"calculation_strategy":"lut","created_at":"2022-04-04T12:25:47Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"master"},"name":"Hue White Bulb A60 E27","standby_power":0.3,"author_info":{"name":"Morten Trab","email":"morten@trab.dk","github":"MTrab"},"id":"LWW001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.93,"sub_profile_count":0,"color_modes":["brightness"],"hash":"1c1a189be3ed4aecf2154bb725cd472b"},{"aliases":["9150058723","929003053501"],"calculation_strategy":"lut","created_at":"2023-02-28T18:32:53Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Flourish Ceiling Light","standby_power":0.4,"author_info":{"name":"matteobreschig","github":"matteobreschig"},"id":"4090531P9","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":34.14,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"277c6bc446483526113f3759bdcf6284"},{"aliases":["LCP001","LCP002","4090331P9","4090330P9_01","4090330P9_02","4090331P9_01","4090331P9_02","929003052501_01","929003052501_02","929003053301_01","929003053301_02"],"calculation_strategy":"lut","created_at":"2023-01-11T18:46:15Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Ensis Pendant Light","standby_power":0.4,"author_info":{"name":"Matteo VG7","github":"matteovg7"},"id":"4090330P9","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":43.52,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"0a45c7453babd4532f525e29172df55c"},{"aliases":["9150059123"],"calculation_strategy":"lut","created_at":"2023-03-12T09:45:12Z","device_type":"light","linked_profile":"signify/LTA001","measure_device":"See linked profile","measure_method":"script","name":"Hue Devote","standby_power":0.29,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"4080130P6","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.63,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"f043f4603b637ee5f09e8788b8abe75a"},{"aliases":["8718699671211","9290020399"],"calculation_strategy":"lut","created_at":"2022-04-11T11:04:39Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":25,"VERSION":"v0.19.7:docker"},"name":"Hue White E14 SES Candle 470lm w/ BT","standby_power":0.25,"author_info":{"name":"Dan Thompson","email":"dba@techtree.co.uk","github":"leedsdata"},"id":"LWE002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.22,"sub_profile_count":0,"color_modes":["brightness"],"hash":"ea3f413f48318bb2676b59aab15c5ea7"},{"calculation_strategy":"fixed","created_at":"2022-09-21T13:45:02Z","device_type":"smart_switch","measure_device":"Shelly Plug S","measure_method":"manual","name":"Hue Smart Plug","only_self_usage":false,"standby_power":0.23,"standby_power_on":0.91,"author_info":{"name":"Marius","github":"Mariusthvdb"},"id":"LOM001","manufacturer":"signify","updated_at":"2026-07-10T07:54:55","max_power":0.91,"sub_profile_count":0,"hash":"e79b8db6c360999a1682ab952f21e5a5"},{"calculation_strategy":"lut","created_at":"2022-08-21T08:18:17Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.24.8:docker"},"name":"Hue White and Color Ambiance BR30 Bluetooth","standby_power":0.12,"author_info":{"name":"Emory Penney","email":"emory.j.penney@intel.com","github":"ejpenney"},"id":"LCB001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.03,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"16d535901f46535721412d9fc1927859"},{"aliases":["9290024693","LWA028"],"calculation_strategy":"lut","created_at":"2022-12-28T10:31:30Z","device_type":"light","measure_device":"HOPI HP-9800","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"v1.2.0:docker"},"name":"Hue White Bulb A60 B22 1100lm with Bluetooth","standby_power":0.39,"author_info":{"name":"Paul Nicholls","email":"paul.n@next.gen.nz","github":"pauln"},"id":"LWA018","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.1,"sub_profile_count":0,"color_modes":["brightness"],"hash":"811452c4ff1528f9c40c7a55b50f7463"},{"aliases":["5061030P7_01"],"calculation_strategy":"lut","created_at":"2024-12-20T00:55:44Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"master"},"name":"Hue Centris 2-Spot Ceiling Light","standby_power":0.4,"author_info":{"name":"Emil Blixt Hansen","github":"blixtdevelopment"},"id":"5061030P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":12.1,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"b4e02a3d1d799c8b6a11feb090e1de46"},{"aliases":["9290023350"],"calculation_strategy":"lut","created_at":"2022-12-28T10:31:30Z","device_type":"light","measure_device":"HOPI HP-9800","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"v1.2.0:docker"},"name":"Hue White Bulb A67 B22 1600lm with Bluetooth","standby_power":0.4,"author_info":{"name":"Paul Nicholls","email":"paul.n@next.gen.nz","github":"pauln"},"id":"LWA010","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":14.95,"sub_profile_count":0,"color_modes":["brightness"],"hash":"5537cb8e43b032d558490f6323d9f593"},{"aliases":["9150059208"],"calculation_strategy":"lut","created_at":"2022-12-25T09:44:08Z","device_type":"light","linked_profile":"signify/3216331P6","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"master"},"name":"Hue White Ambiance Aurelle Square","standby_power":0.35,"author_info":{"name":"Jari Eskelinen","email":"jari.eskelinen@iki.fi","github":"jarpatus"},"id":"3216231P6","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":51,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"e9f230cac45e696df9e966be25fa8694"},{"aliases":["9290022891"],"calculation_strategy":"lut","created_at":"2022-08-26T16:54:18Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.25.2:docker"},"name":"Hue Lily Outdoor Lightstrip","standby_power":0.25,"author_info":{"name":"x5serv","github":"x5serv"},"id":"LCL003","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":44.08,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"e3f9f8125d1231d2f5b3ed5c4b570667"},{"aliases":["5060730P7_01","5060731P7_01"],"calculation_strategy":"lut","created_at":"2023-01-11T18:46:15Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Centris 4-Spot Ceiling Light","standby_power":0.4,"author_info":{"name":"matteobreschig","github":"matteobreschig"},"id":"5060730P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":44.38,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"b63099d6f297b1a62d625d1f08c3f589"},{"calculation_strategy":"lut","created_at":"2021-09-12T16:46:36Z","device_type":"light","measure_device":"Gosund SP111","measure_device_firmware":"Tasmota 9.5.0","measure_method":"script","name":"Hue White GU10","standby_power":0.4,"author_info":{"name":"Stefan Gries","github":"stefangries"},"id":"LWG001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.5,"sub_profile_count":0,"color_modes":["brightness"],"hash":"c93767d0857ba5c53c8d10af3cb9856c"},{"aliases":["LST003","9290018187B"],"calculation_strategy":"lut","created_at":"2021-08-29T21:30:20Z","device_type":"light","measure_device":"Gosund SP111","measure_device_firmware":"Tasmota 9.5.0","measure_method":"script","name":"Hue White and Color Ambiance LED Outdoor Lightstrip (5m)","standby_power":0.4,"author_info":{"name":"Stefan Gries","github":"stefangries"},"id":"LST004","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":46.16,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"c1fbf79d45a0141209451df8fade6ae8"},{"aliases":["9290024688","9290024689"],"calculation_strategy":"lut","created_at":"2021-09-26T10:42:55Z","device_type":"light","measure_device":"Nous A1","measure_device_firmware":"TASMOTA 9.5.0","measure_method":"script","name":"Hue White and Color Ambiance E27 1100lm with BT","standby_power":0.4,"author_info":{"name":"Thomas-Henning von Kamptz","github":"tomsoftcom"},"id":"LCA006","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.15,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"fe45abfb427c186faaa35e7ed405bd63"},{"aliases":[],"calculation_strategy":"lut","created_at":"2022-06-22T07:54:27Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.18.4:docker"},"name":"Hue Being Pendant Light","standby_power":0.38,"author_info":{"name":"Stijn Bernards","email":"stijn@bernards.nl","github":"stijnbernards"},"id":"LTP008","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":40.63,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"afd2d9c2ae6fa928b24a14d24c0f22d1"},{"calculation_strategy":"lut","created_at":"2022-05-25T11:29:34Z","device_type":"light","measure_device":"TP-Link Smart Wi-Fi Plug Mini","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.20.1:docker"},"name":"Hue White and Color Ambiance A19 800lm","standby_power":0.34,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LCT014","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.61,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"62ad00f9607cfbcb1c0128a3a402ba86"},{"calculation_strategy":"lut","created_at":"2023-01-02T22:13:02Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"v1.1.1:docker"},"name":"Hue White and Color Ambiance BR30 with bluetooth","standby_power":0.3,"author_info":{"name":"David F. Severski","github":"davidski"},"id":"548727","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.19,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"b6523b5ff7587883df5ada4d4564be38"},{"aliases":["5045131P7","9150057666","915005766701","929003045301","929003045401","929003045501_01","929003045501_02","929003045501_03","929003047401","929003047501"],"calculation_strategy":"lut","created_at":"2023-02-10T11:19:36Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Centura","standby_power":0.25,"author_info":{"name":"Marc Geurts","email":"geurtsmarc@hotmail.com","github":"marcgeurts"},"id":"5045148P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.25,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"a68ff2f5b6c6aea9532a6b84418c7608"},{"aliases":["929001821618","9290023495"],"calculation_strategy":"lut","created_at":"2022-10-04T23:07:22Z","device_type":"light","measure_device":"Aqara Smart Plug EU (SP-EUC01)","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":60,"VERSION":"v0.26.1:docker"},"name":"Hue White A60 E27 800lm with Bluetooth","standby_power":0.41,"author_info":{"name":"Benedikt Vollmerhaus","github":"BVollmerhaus"},"id":"LWA011","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.45,"sub_profile_count":0,"color_modes":["brightness"],"hash":"6fa621440482a5c31032db6384a08e4a"},{"calculation_strategy":"lut","created_at":"2025-04-05T23:41:01Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.9:docker"},"name":"Hue White and Color Ambiance Perifo cylinder spotlight","standby_power":0.15,"author_info":{"name":"dewbot6","email":"drewsnodgrass@comcast.net","github":"dewbot6"},"id":"929003617901","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.44,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"206ac794fec98bf6c931cc1dc7bfffa2"},{"calculation_strategy":"lut","created_at":"2021-06-11T22:01:53Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White and Color Ambiance A19 E26 (Gen 3)","standby_power":0.35,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LCT010","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.4,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"e8e76705f87115ed65eeb771652468f5"},{"aliases":["9290024692"],"calculation_strategy":"lut","created_at":"2022-02-15T19:56:28Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":5,"VERSION":"v0.17.0:docker"},"name":"Hue White Bulb A60 E27 1050lm with Bluetooth","standby_power":0.42,"author_info":{"name":"KrzysztofHajdamowicz","email":"uosiu@uosiu.info","github":"KrzysztofHajdamowicz"},"id":"LWA017","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":11.2,"sub_profile_count":0,"color_modes":["brightness"],"hash":"b904cc256e77127169262ec223c035aa"},{"aliases":["929003045001_01","929003045001_02","929003045001_03"],"calculation_strategy":"lut","created_at":"2023-03-19T08:54:20Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue White Ambiance Milliskin","standby_power":0.3,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"929003045001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.7,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"351473e2a413d40b76e631a03713c6aa"},{"aliases":["9290019533","929001953301"],"calculation_strategy":"lut","created_at":"2021-10-08T13:31:47Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2},"name":"Hue White Ambiance GU10 w/ BT","standby_power":0.3,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LTG002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.18,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"ad7170980d8b4ae913d1829bdc22e138"},{"aliases":["7099760PH"],"calculation_strategy":"lut","created_at":"2021-07-03T09:31:58Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Living Colours Bloom","standby_power":0.29,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LLC011","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":3.27,"sub_profile_count":0,"color_modes":["hs"],"hash":"a15dbaf99a37c72d6f6a2da65228c4d4"},{"aliases":["9290030567"],"calculation_strategy":"lut","created_at":"2023-01-11T18:46:15Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Adore Ceiling Light","standby_power":0.4,"author_info":{"name":"matteobreschig","github":"matteobreschig"},"id":"929003056701","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":26.8,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"38fe2a107ae96719e1b54cd3a90592c4"},{"aliases":["9150057316"],"calculation_strategy":"lut","created_at":"2024-06-13T13:09:23Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.12.9:docker"},"name":"Hue Welcome outdoor wall","standby_power":0.5,"author_info":{"name":"Paul Bottein","email":"paul.bottein@gmail.com","github":"piitaya"},"id":"1743630P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":24.1,"sub_profile_count":0,"color_modes":["brightness"],"hash":"ae9b12436520169b6c0f73141088e942"},{"calculation_strategy":"lut","created_at":"2026-05-13T20:08:38Z","device_type":"light","description":"This device was powered with the Hue 100w outdoor PSU and not the bundled 30w PSU. All other lights were physically disconnected from the chain.","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v1.20.11:docker"},"name":"Festavia bulb string light 21m","standby_power":0.52,"author_info":{"name":"phoenixxx-1","github":"phoenixxx-1"},"id":"LCX027","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":29.03,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"55bfa5221dfb08bd46f1bd9ec0f126a8"},{"calculation_strategy":"lut","created_at":"2026-04-06T18:05:55Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v1.20.11:docker"},"name":"Hue Festavia Outdoor White & Colour Gradient Globe String Lights, 14m","standby_power":0.38,"author_info":{"name":"phoenixxx-1","github":"phoenixxx-1"},"id":"LCX028","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":19.45,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"e1e4e16298eb003e35870413feede8c8"},{"calculation_strategy":"lut","created_at":"2026-06-15T03:44:26Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":10,"SLEEP_TIME":3,"VERSION":"v1.20.14:docker"},"name":"Hue Go Table Lamp","standby_power":0.45,"author_info":{"name":"phoenixxx-1","github":"phoenixxx-1"},"id":"929003521501","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.25,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"aaae42fccedc2f90620e829f2355dfb3"},{"aliases":["9150058417"],"calculation_strategy":"lut","created_at":"2023-11-21T13:39:09Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.6:docker"},"name":"Hue Nyro Outdoor Wall","standby_power":0.27,"author_info":{"name":"Imperial-Guard","github":"Imperial-Guard"},"id":"1745630P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":13.76,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"50408f41de0dc341a0e703c0256fee86"},{"aliases":["046677548490","929002226701","046677548568","929002226711"],"calculation_strategy":"lut","created_at":"2025-07-17T07:39:07Z","device_type":"light","measure_device":"Shelly Plus Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":10,"SLEEP_TIME":5,"VERSION":"v1.17.14:docker"},"name":"Hue White Ambiance E27 with Bluetooth","standby_power":0.18,"author_info":{"name":"ltloopy","github":"ltloopy"},"id":"LTA008","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.16,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"032ea8f67c1e594ddd46f27fc5934d8f"},{"aliases":["8718696449691"],"calculation_strategy":"lut","created_at":"2021-06-21T13:40:20Z","device_type":"light","measure_device":"Zhurui PR10","measure_method":"manual","name":"Hue White Bulb A60 E27 806lm","standby_power":0.39,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LWB010","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.65,"sub_profile_count":0,"color_modes":["brightness"],"hash":"4050540825ab69f84fcdbadd72a111a6"},{"calculation_strategy":"lut","created_at":"2026-04-21T17:42:12Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"v1.20.13:docker"},"name":"Hue white ambiance Aurelle square panel light 120x30","standby_power":0.43,"author_info":{"name":"EpicFazer","github":"EpicFazer","email":"jan.h@ikmail.com"},"id":"929003099102","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":38.76,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"4206c67895dbc31dee19e336ab085ac8"},{"aliases":["9290024719"],"calculation_strategy":"lut","created_at":"2022-04-22T08:02:02Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":10,"VERSION":"v0.19.7"},"name":"Hue White Ambiance 1600 E27 w/ BT","standby_power":0.21,"author_info":{"name":"Aetha","email":"aetha@snuzzle.me","github":"aetha"},"id":"LTA011","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":14.24,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"c8eedb6f9b44280102c392dc71ac3414"},{"aliases":["440400982841","440400982842","915005733701"],"calculation_strategy":"lut","created_at":"2021-08-21T14:47:39Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","name":"Hue Play","standby_power":0.1,"author_info":{"name":"smonesi","github":"smonesi"},"id":"LCT024","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.14,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"43c37c1c140e8eb2987c1e49e1098e68"},{"aliases":["7146060PH","9150045767"],"calculation_strategy":"lut","created_at":"2021-06-12T13:51:30Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","name":"Hue Go","standby_power":0.29,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LLC020","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.95,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"1195fecfc5f1cfb932ee0da916b4ecdb"},{"aliases":["9150056302"],"calculation_strategy":"lut","created_at":"2025-02-24T05:53:56Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.7:docker"},"name":"Hue Calla outdoor bollard","standby_power":0.25,"author_info":{"name":"dewbot6","email":"drewsnodgrass@comcast.net","github":"dewbot6"},"id":"1741930V7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.55,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"02d608c57b1799495cd6ae459c640fb9"},{"calculation_strategy":"lut","created_at":"2026-02-08T17:54:27Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.4:docker"},"name":"Hue Tento round panel (White Ambiance)","standby_power":0.05,"author_info":{"name":"Lukas Köhl","github":"lkoehl"},"id":"929003823501","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":17.15,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"f65998a7affbb85a44a0ae4d4e3dc93d"},{"aliases":["9150059979"],"calculation_strategy":"lut","created_at":"2025-12-11T09:34:01Z","device_type":"light","measure_device":"Shelly 1PM Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.2:docker"},"name":"Hue Xamento","standby_power":0.05,"author_info":{"name":"Thorsten1982","email":"ThorstenNiemann.TN@googlemail.com","github":"Thorsten1982"},"id":"915005997901","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":59.34,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"38fc07ad1109e9065a9de23d8bc0b42a"},{"aliases":["9290035317"],"calculation_strategy":"lut","created_at":"2025-03-29T13:16:27Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.9:docker"},"name":"Hue White and Color Ambiance Infuse medium ceiling lamp","standby_power":0.34,"author_info":{"name":"dewbot6","email":"drewsnodgrass@comcast.net","github":"dewbot6"},"id":"929003531702","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":37.67,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"87813232da60718c6af4e76d57408247"},{"aliases":["046677551780","9290022413"],"calculation_strategy":"lut","created_at":"2022-05-29T15:18:24Z","device_type":"light","linked_profile":"signify/LWV001","measure_device":"Gosund SP111","measure_device_firmware":"Tasmota 9.5.0","measure_method":"script","name":"Hue Single Filament Bulb ST19 E26","standby_power":0.5,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LWV002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7,"sub_profile_count":0,"color_modes":["brightness"],"hash":"ffdd7803aefd4139764b5bf5f6472f57"},{"calculation_strategy":"lut","created_at":"2025-02-27T12:07:36Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.8:docker"},"name":"Hue Festavia gradient light string 250","standby_power":0.35,"author_info":{"name":"dewbot6","email":"drewsnodgrass@comcast.net","github":"dewbot6"},"id":"LCX015","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":16.5,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"3f75b0b5a7d8e57f2d75fbd9905568af"},{"aliases":["9150057617"],"calculation_strategy":"lut","created_at":"2023-01-19T11:04:29Z","device_type":"light","linked_profile":"signify/LCG002","measure_device":"Gosund SP111","measure_device_firmware":"Tasmota 9.5.0","measure_method":"script","name":"Hue White and Color Ambiance Fugato quadruple spotlight","standby_power":0.4,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"5063431P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.53,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"71ed86e2d3b1067d41eee51203f09c7e"},{"aliases":["1741430P7","1741530P7","1741830P7","1742830P7"],"calculation_strategy":"lut","created_at":"2021-10-08T13:31:47Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2},"name":"Hue Lily Outdoor Spot Light RGBCCT","standby_power":0.36,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LCS001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":10.61,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"9c258c1121b7c143b2daf994f4c80c3d"},{"aliases":["9150058754"],"calculation_strategy":"lut","created_at":"2025-03-12T22:12:11Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.9:docker"},"name":"Hue Garnea Downlight","standby_power":0.19,"author_info":{"name":"James Nobes","email":"james@Jamess-MacBook-Pro.local","github":"james-richards-privitar"},"id":"LTD011","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.77,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"124d023b5421f5e8f77c952c22cd7fb7"},{"aliases":["8719514301467","9290024777"],"calculation_strategy":"lut","created_at":"2023-08-25T12:06:28Z","device_type":"light","linked_profile":"signify/LTO001","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White Ambiance E27 ST64 Filament Bulb","standby_power":0.17,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LTV001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.26,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"7bf24fc2583c87ef3fc444f34ceabe39"},{"calculation_strategy":"lut","created_at":"2021-08-26T21:06:04Z","device_type":"light","measure_device":"Gosund SP111","measure_device_firmware":"Tasmota 9.5.0","measure_method":"script","name":"Hue Fair Pendant","standby_power":0.4,"author_info":{"name":"Stefan Gries","github":"stefangries"},"id":"LTP003","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":33.67,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"97887b9777fba51d6e3326d1c7031093"},{"calculation_strategy":"lut","created_at":"2022-08-21T08:18:17Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.24.8:docker"},"name":"Hue White and Color Ambiance A19 E26","standby_power":0.17,"author_info":{"name":"Emory Penney","email":"emory.j.penney@intel.com","github":"ejpenney"},"id":"LCA003","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.05,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"e61e86b3bccd514d29a99315c2a07118"},{"calculation_strategy":"lut","created_at":"2025-12-09T18:32:35Z","device_type":"light","measure_device":"Third Reality 3RSP02028BZ","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.2:docker"},"name":" Hue White and Color Ambiance BR30 E26","standby_power":0.1,"author_info":{"name":"John Pham","email":"jhnphm@gmail.com","github":"jhnphm"},"id":"LCB002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.25,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"72230e3668dd0dcebb94acb3c99da04a"},{"aliases":[],"calculation_strategy":"lut","created_at":"2021-10-08T13:31:47Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue Bloom Table Lamp","standby_power":0.3,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LLC012","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.77,"sub_profile_count":0,"color_modes":["hs"],"hash":"4e6d80b8ec5c93d2a732d02a138078d1"},{"aliases":["9290024227","929002422702"],"calculation_strategy":"lut","created_at":"2024-12-26T13:00:28Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.11.7:docker"},"name":"Hue Gradient Lightstrip","standby_power":0.13,"author_info":{"name":"Julien Hondaâ","email":"julien.hondaa@gmail.com","github":"nonamejuju"},"id":"LCX001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":23.03,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"bdb4fa07afbd937bb16da8018d6fbf41"},{"calculation_strategy":"lut","created_at":"2025-04-18T08:54:05Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.10:docker"},"name":"Hue Aphelion Recessed Downlight White Ambiance","standby_power":0.45,"author_info":{"name":"NotSoBrightReally","github":"NotSoBrightReally"},"id":"LDT001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.05,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"09f1fa60b9c4e1c74508efcbbeea4be1"},{"aliases":["9290022890"],"calculation_strategy":"lut","created_at":"2024-06-20T11:25:39Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.12.6:docker"},"name":"Hue lightstrip outdoor","standby_power":0.25,"author_info":{"name":"Stuart Pearson","github":"stuartp44"},"id":"LCL002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":24.1,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"eeafd8ff98629452a5f09e0042c45ff5"},{"calculation_strategy":"lut","created_at":"2024-05-09T16:01:49Z","device_type":"light","measure_device":"Eve Energy","measure_method":"script","measure_settings":{"SAMPLE_COUNT":5,"SLEEP_TIME":3,"VERSION":"v1.12.1:docker"},"name":"Hue White Ambiance A19 E26 (75W)","standby_power":0.35,"author_info":{"name":"dxmnkd316","github":"dxmnkd316"},"id":"LTW015","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.86,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"59dbba424d400b55b99297747b148f92"},{"aliases":["9290023349"],"calculation_strategy":"lut","created_at":"2021-08-21T07:43:16Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White Bulb A67 E27 1600lm","standby_power":0.41,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LWA009","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":14.04,"sub_profile_count":0,"color_modes":["brightness"],"hash":"a4ee69f3c91378a2932a81779602d3a4"},{"aliases":["8718696548738"],"calculation_strategy":"lut","created_at":"2021-06-11T22:01:53Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White Ambiance A19","standby_power":0.4,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LTW001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.77,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"972d7ba5d2787c47c4446ef1d957d8b2"},{"aliases":[],"calculation_strategy":"lut","created_at":"2022-01-15T15:26:20Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.14.1"},"name":"LivingColors Iris Table Lamp Gen3","standby_power":0.37,"author_info":{"name":"wormiedk","email":"wormie@alberg.dk","github":"wormiedk"},"id":"LLC006","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.14,"sub_profile_count":0,"color_modes":["hs"],"hash":"08cc202a820b112baf5b439876ed834d"},{"aliases":["9150059966","915005997601"],"calculation_strategy":"lut","created_at":"2022-10-29T18:30:36Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Enrave Medium","standby_power":0.1,"author_info":{"name":"Niklas Ausborn","email":"niklas@ausborn.de","github":"Midbin"},"id":"915005996601","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":21.9,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"30bd55e5a7d31d7cc460ed8b68fe49f0"},{"calculation_strategy":"lut","created_at":"2026-05-12T08:02:32Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v1.20.11:docker"},"name":"Hue OmniGlow striplight 3m","standby_power":0.28,"author_info":{"name":"phoenixxx-1","github":"phoenixxx-1"},"id":"929004608002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":41.45,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"7c1f46dedf73ed5e763ecb3a8a051453"},{"aliases":["9290024781"],"calculation_strategy":"lut","created_at":"2024-06-06T13:07:17Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.12.6:docker"},"name":"Hue G125 E27 Filament Globe Bulb","standby_power":0.15,"author_info":{"name":"Pierre","github":"bemble"},"id":"LTO002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.8,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"8f02545bf9b2c4301ac4a65753ea797b"},{"aliases":["9150057318"],"calculation_strategy":"lut","created_at":"2025-03-17T06:13:30Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.9:docker"},"name":"Hue Calla Large Outdoor Pedestal","standby_power":0.32,"author_info":{"name":"James Nobes","email":"james@Jamess-MacBook-Pro.local","github":"james-richards-privitar"},"id":"1743730P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.82,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"21a9445441fb0880603a80292159bd65"},{"aliases":["5060730P7_02","5060730P7_03","5060730P7_04","5060730P7_05","5060731P7_02","5060731P7_03","5060731P7_04","5060731P7_05","5060830P7_02","5060830P7_03","5060830P7_04","5060831P7_02","5060831P7_03","5060831P7_04","5061030P7_02","5061030P7_03","5061031P7_02","5061031P7_03","5062348P7","5062448P7","9290019531","929001953101"],"calculation_strategy":"lut","created_at":"2021-09-14T11:40:23Z","device_type":"light","measure_device":"Gosund SP111","measure_device_firmware":"Tasmota 9.5.0","measure_method":"script","name":"Hue White and Color Ambiance GU10 BT","standby_power":0.4,"author_info":{"name":"Stefan Gries","github":"stefangries"},"id":"LCG002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.53,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"aabaf49bbff612cd9897c8a13d2543b8"},{"aliases":["929002966401","9290029665"],"calculation_strategy":"lut","created_at":"2023-04-03T21:42:31Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.13:docker"},"name":"Hue White and Color Ambiance Surimu","standby_power":0.39,"author_info":{"name":"vandalon","email":"joris@vandalon.nl","github":"vandalon"},"id":"929002966501","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":70.9,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"2f27346f1bff812b19d2945f224318bb"},{"calculation_strategy":"lut","created_at":"2026-02-05T15:41:46Z","device_type":"light","measure_device":"Shelly Plug S Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":1,"VERSION":"v1.20.4:docker"},"name":"Hue Solo Lightstrip 3m","standby_power":0.14,"author_info":{"name":"Largelos","github":"Largelos"},"id":"LCL008","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":21.64,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"40cbe3469d03297d75fe8db5e868b938"},{"aliases":["9290011370"],"calculation_strategy":"lut","created_at":"2021-08-17T10:46:54Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue White Bulb A60 E27/B22","standby_power":0.4,"author_info":{"name":"OzGav","email":"gavnosp@hotmail.com","github":"OzGav"},"id":"LWB006","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.18,"sub_profile_count":0,"color_modes":["brightness"],"hash":"a1f2c64cb4d64abb0e5171ee3bc21d31"},{"aliases":["9290022411"],"calculation_strategy":"lut","created_at":"2022-05-11T16:41:49Z","device_type":"light","measure_device":"Sonoff S31","measure_method":"script","measure_settings":{"SAMPLE_COUNT":7,"SLEEP_TIME":15,"VERSION":"v0.19.15:docker"},"name":"Hue Filament E26","standby_power":0.11,"author_info":{"name":"Scott Hoyt","email":"scottrhoyt@gmail.com","github":"scottrhoyt"},"id":"LWA005","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7,"sub_profile_count":0,"color_modes":["brightness"],"hash":"a64e38a204f2dfc0c890458842ebb01c"},{"calculation_strategy":"lut","created_at":"2025-04-07T09:04:33Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.9:docker"},"name":"Hue White and Color Ambiance Perifo cylinder pendant","standby_power":0.19,"author_info":{"name":"dewbot6","email":"drewsnodgrass@comcast.net","github":"dewbot6"},"id":"929003618001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.14,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"78f1bd534b07885fe3bc1e4e6f9db3fc"},{"aliases":["9150059969"],"calculation_strategy":"lut","created_at":"2025-12-12T09:58:46Z","device_type":"light","measure_device":"Shelly 1PM Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.2:docker"},"name":"Hue Enrave","standby_power":0.07,"author_info":{"name":"Thorsten1982","email":"ThorstenNiemann.TN@googlemail.com","github":"Thorsten1982"},"id":"915005996901","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":39.66,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"1e5b6e03bc99f0b783c14c63ad194920"},{"aliases":["046677563585","9290024784","929002478401"],"calculation_strategy":"lut","created_at":"2025-07-18T03:17:17Z","device_type":"light","measure_device":"Shelly Plus Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":10,"SLEEP_TIME":5,"VERSION":"v1.17.14:docker"},"name":"Hue white filament Edison ST19 E26 LED warm-to-cool","standby_power":0.18,"author_info":{"name":"ltloopy","github":"ltloopy"},"id":"LTV004","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.62,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"248b194dabe52c8c1ac56fb5ca1523be"},{"aliases":["8719514392830","9290024775"],"calculation_strategy":"lut","created_at":"2022-10-24T18:43:24Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue White Ambiance Filament Standard","standby_power":0.13,"author_info":{"name":"Niklas Ausborn","email":"niklas@ausborn.de","github":"Midbin"},"id":"LTA005","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.87,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"bc7a364ce2faa6d3e79898f4b248b1a0"},{"aliases":["9290024778"],"calculation_strategy":"lut","created_at":"2022-03-20T17:09:41Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.18.4:docker"},"name":"Hue G93 E27 Filament Globe Bulb","standby_power":0.17,"author_info":{"name":"Roeland Lutters","email":"Roeland.lutters@telenet.be","github":"Roeland54"},"id":"LTO001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.26,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"d85458f1786026b879067aa39a5c47d5"},{"calculation_strategy":"lut","created_at":"2023-08-20T07:29:54Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"master"},"name":"Hue Cher Suspension Light","standby_power":0.53,"author_info":{"name":"Nicolas L","github":"Loustik"},"id":"LTP001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":40.06,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"6292adb700ca2ceccbcd554dd6d529bc"},{"calculation_strategy":"lut","created_at":"2023-04-01T15:31:41Z","device_type":"light","measure_device":"Sonoff S31","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.13:docker"},"name":"Hue White Ambiance BR30 680lm","standby_power":0.25,"author_info":{"name":"Ben Brooks","github":"brooksben11"},"id":"LTW011","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.7,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"52254291d02056b0e01200ef0a17eab2"},{"aliases":["9290022942","929002294203"],"calculation_strategy":"lut","created_at":"2021-08-18T20:12:14Z","device_type":"light","measure_device":"AVM Fritz!DECT 200","measure_method":"script","name":"Hue White and Color Ambiance E14 Candle w/ BT","standby_power":0.28,"author_info":{"name":"Simon Hörrle","email":"simon.hoerrle@gmail.com","github":"CM000n"},"id":"LCE002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.72,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f20710f37a67638700df8b6ef24e0e55"},{"aliases":["9290022775"],"calculation_strategy":"lut","created_at":"2024-06-28T05:13:51Z","device_type":"light","measure_device":"Fluke 87","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"v1.12.13:docker"},"name":"Hue White Bulb A19 E26 with Bluetooth","standby_power":0.35,"author_info":{"name":"Zachery Notz","github":"TheZackCodec"},"id":"LWA007","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.72,"sub_profile_count":0,"color_modes":["brightness"],"hash":"900fd6b435d190195364fc97f41881a8"},{"aliases":["7602031P7","9150058219","9150058220","9150058221","9150058222","9150058223","9150058224","9150058225","9150058226"],"calculation_strategy":"lut","created_at":"2021-09-06T21:09:25Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","name":"Hue Go 2.0","standby_power":0.49,"author_info":{"name":"smonesi","github":"smonesi"},"id":"LCT026","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.07,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"5fbc79f97ed139aae7239b34a3dd6826"},{"calculation_strategy":"lut","created_at":"2022-05-25T11:29:34Z","device_type":"light","measure_device":"TP-Link Smart Wi-Fi Plug Mini","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.20.1:docker"},"name":"Hue White Bulb A19 840lm","standby_power":0.34,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LWB014","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.82,"sub_profile_count":0,"color_modes":["brightness"],"hash":"920fcf1767596b335cea92fdcd298a61"},{"calculation_strategy":"lut","created_at":"2024-10-26T21:17:20Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.10:docker"},"name":"Hue Solo Lightstrip (5m)","standby_power":0.3,"author_info":{"name":"Gerd Rütten","github":"GerdRuetten"},"id":"929003817002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":20.75,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"7334c34e2d22778ff36b9a081d1537c9"},{"calculation_strategy":"lut","created_at":"2026-06-12T02:05:52Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":2,"VERSION":"v1.20.14:docker"},"name":"Hue White and Color Ambiance E27 A67","standby_power":0.35,"author_info":{"name":"phoenixxx-1","github":"phoenixxx-1"},"id":"LCA012","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":11.63,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"a95f6c413177e0059c1b32a22d439c57"},{"aliases":["9150057306"],"calculation_strategy":"lut","created_at":"2022-06-22T07:54:58Z","device_type":"light","measure_device":"Zhurui PR10","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"master"},"name":"Hue Impress Outdoor Wall Light Small","standby_power":0.17,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"1742930P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":49,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"0e4cf8d9a01130c01d90534212aac963"},{"aliases":["929003045201_01","929003045201_02","929003045201_03","929003809501_02"],"calculation_strategy":"lut","created_at":"2024-10-05T15:28:08Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":4,"SLEEP_TIME":2,"VERSION":"v1.14.8:docker"},"name":"Hue Centura Spot","standby_power":0.26,"author_info":{"name":"Morpheus361","email":"marco.morpheus@kabelmail.de","github":"Morpheus361"},"id":"929003045201","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.16,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"c0c5d612320637ac7930a9bd95ff4b69"},{"aliases":["9290030519"],"calculation_strategy":"lut","created_at":"2026-03-07T09:25:47Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":5,"SLEEP_TIME":3,"VERSION":"v1.20.8:docker"},"name":"Hue smart bulb G93 warm white E27 7,2W ","standby_power":0.18,"author_info":{"name":"sve","github":"sve007"},"id":"LWO005","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.93,"sub_profile_count":0,"color_modes":["brightness"],"hash":"16209e7c2f549d21168f40ebb938d00c"},{"aliases":["9150059974"],"calculation_strategy":"lut","created_at":"2025-12-10T15:59:58Z","device_type":"light","measure_device":"Shelly 1PM Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.2:docker"},"name":"Hue Infuse Ceiling Lamp","standby_power":0.06,"author_info":{"name":"Thorsten1982","email":"ThorstenNiemann.TN@googlemail.com","github":"Thorsten1982"},"id":"915005997401","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":59.37,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"a8c1903f4e423b6ab64b8b1c609a80e0"},{"aliases":["9290018194"],"calculation_strategy":"lut","created_at":"2025-12-29T01:32:12Z","device_type":"light","measure_device":"TP-Link Tapo P115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.0:docker"},"name":"Hue White Bulb BR30","standby_power":0.25,"author_info":{"name":"Mayu","github":"MayuCat"},"id":"LWB022","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.56,"sub_profile_count":0,"color_modes":["brightness"],"hash":"e7c1bc395325fbd2827ba1ab5ef0c29a"},{"aliases":["1742030P7","8718696167991","LCF001"],"calculation_strategy":"lut","created_at":"2021-08-29T21:30:03Z","device_type":"light","measure_device":"Gosund SP111","measure_device_firmware":"Tasmota 9.5.0","measure_method":"script","name":"Hue Calla Outdoor Pedestal","standby_power":0.4,"author_info":{"name":"Stefan Gries","github":"stefangries"},"id":"LCF002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":11,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"858b10907a1548b08ae0bfe15b9f6d55"},{"aliases":["9290022267"],"calculation_strategy":"lut","created_at":"2022-05-11T17:43:04Z","device_type":"light","measure_device":"Sonoff S31","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":15,"VERSION":"v0.19.15:docker"},"name":"Hue White Ambiance E26","standby_power":0.29,"author_info":{"name":"Scott Hoyt","email":"scottrhoyt@gmail.com","github":"scottrhoyt"},"id":"LTA003","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.59,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"d5304874f1ecf5e15c680495c03a075c"},{"calculation_strategy":"lut","created_at":"2024-12-05T07:26:13Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.16.2:docker"},"name":"Hue Slim recessed light S","standby_power":0.42,"author_info":{"name":"buttonger","github":"buttonger"},"id":"LCD008","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.73,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"5e8391998047a5e82af138bd70f29893"},{"aliases":["9290011370B","LWF002","LWF003"],"calculation_strategy":"lut","created_at":"2022-04-04T12:25:23Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"master"},"name":"Hue White Bulb A60 E27","standby_power":0.3,"author_info":{"name":"Morten Trab","email":"morten@trab.dk","github":"MTrab"},"id":"LWF001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":10.41,"sub_profile_count":0,"color_modes":["brightness"],"hash":"e3fc5c37cfa5d71f7c809a523d8de1d5"},{"aliases":["8718696548738","9290012001"],"calculation_strategy":"lut","created_at":"2021-07-03T09:31:58Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White Ambiance A60 E27 806lm","standby_power":0.39,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LTW010","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.27,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"e3a2f0d7a9cc4fb9411de8f284fb2de7"},{"aliases":["9150058718"],"calculation_strategy":"lut","created_at":"2024-07-21T11:13:03Z","device_type":"light","measure_device":"Shelly Plus Plug S Gen2","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.11.6:docker"},"name":"Hue Sana Wall Light","standby_power":0.31,"author_info":{"name":"pwnagepeter","email":"hauke@pwnagepeter.net","github":"pwnagepeter"},"id":"4090131P9","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":23.66,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"87dbc8249ced7d4432dae4046df2955d"},{"calculation_strategy":"lut","created_at":"2026-02-08T20:15:13Z","device_type":"light","measure_device":"Shelly 1PM Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"v1.20.4:docker"},"name":"Hue Essentials E27 8W","standby_power":0.157,"author_info":{"name":"Ikkei Odaira","github":"Triserden","email":"git@triserden.dev"},"id":"LCA016","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.75,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"c2e28438f62f55794b22ac0dbb9088a3"},{"aliases":["9150059143"],"calculation_strategy":"lut","created_at":"2023-03-12T09:45:12Z","device_type":"light","linked_profile":"signify/LTA001","measure_device":"See linked profile","measure_method":"script","name":"Hue Wellness White Ambiance Table lamp","standby_power":0.29,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"4300631P6","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.63,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"d5d349daf74e10f0488bd41129365ed6"},{"calculation_strategy":"lut","created_at":"2026-02-22T03:16:31Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":8,"VERSION":"v1.20.6:docker"},"name":"Hue Essential spot GU10 color&ambience","standby_power":0.2,"author_info":{"name":"Alstedt","github":"Alstedt","email":"umrechnen-zacke.3w@icloud.com"},"id":"LCG008","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.47,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"e33f3e2ee0019ae805fb940609f72781"},{"aliases":["17435/30/P7","9150057314"],"calculation_strategy":"lut","created_at":"2023-02-12T12:11:40Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Discover white and color ambiance flood light","standby_power":0.5,"author_info":{"name":"Marc Geurts","email":"geurtsmarc@hotmail.com","github":"marcgeurts"},"id":"1743530P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":33.5,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"9b24fbda938da64d936ffbaf674807b9"},{"aliases":["929003099201"],"calculation_strategy":"lut","created_at":"2023-06-05T11:09:22Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Aurelle Square Panel Light 30x30cm","standby_power":0.4,"author_info":{"name":"matteobreschig","github":"matteobreschig"},"id":"LTC013","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":24.37,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"d9eb7279d8ebc9525cb0482e76b59e57"},{"calculation_strategy":"fixed","created_at":"2025-04-14T10:00:00Z","device_type":"smart_switch","measure_device":"Intertek PM01-US","measure_method":"manual","name":"Hue Smart Plug","only_self_usage":false,"standby_power":0.2,"standby_power_on":0.5,"author_info":{"name":"keatre","github":"keatre"},"id":"LOM010","manufacturer":"signify","updated_at":"2026-07-10T07:54:55","max_power":0.5,"sub_profile_count":0,"hash":"f7e2b6cee400a640a67a73120175694a"},{"aliases":["9290022415"],"calculation_strategy":"lut","created_at":"2022-05-29T15:22:51Z","device_type":"light","linked_profile":"signify/LWO001","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White G25 E26 Edison Filament Globe Bluetooth","standby_power":0.35,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LWO002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.41,"sub_profile_count":0,"color_modes":["brightness"],"hash":"d70f598bbcc8e76d5a049b36b56e6424"},{"aliases":["9290030523"],"calculation_strategy":"lut","created_at":"2026-03-07T11:19:51Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":5,"SLEEP_TIME":3,"VERSION":"v1.20.8:docker"},"name":"Hue Smart Bulb Edison ST72 E27 7W ","standby_power":0.05,"author_info":{"name":"sve","github":"sve007"},"id":"LWV007","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.84,"sub_profile_count":0,"color_modes":["brightness"],"hash":"a30dcf103061d1353a21526668028883"},{"aliases":["7299355PH"],"calculation_strategy":"lut","created_at":"2021-10-08T13:31:47Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2},"name":"Hue LightStrip","standby_power":0.41,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"LST001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.07,"sub_profile_count":0,"color_modes":["hs"],"hash":"d13bcb9dcc30e01604c764a82fa1f4a2"},{"calculation_strategy":"lut","created_at":"2026-03-29T14:47:32Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.11:docker"},"name":"Hue White G2 400lm GU10","standby_power":0.08,"author_info":{"name":"Tim","github":"EinRainerZufall"},"id":"LWG005","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":3.71,"sub_profile_count":0,"color_modes":["brightness"],"hash":"1ad839963320cd741e778317a4157cfe"},{"calculation_strategy":"fixed","created_at":"2022-10-21T09:32:56Z","device_type":"smart_switch","measure_device":"Shelly Plug S","measure_method":"manual","name":"Hue Smart Plug","only_self_usage":false,"standby_power":0.15,"standby_power_on":0.85,"author_info":{"name":"msteenhuiz","github":"msteenhuiz"},"id":"LOM007","manufacturer":"signify","updated_at":"2026-07-10T07:54:55","max_power":0.85,"sub_profile_count":0,"hash":"1844f762d5cbae9cf53db92d3204b727"},{"aliases":["915005997201","9150059973"],"calculation_strategy":"lut","created_at":"2024-10-14T20:25:19Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.10:docker"},"name":"Hue Infuse Medium Ceiling Lamp","standby_power":0.16,"author_info":{"name":"vladi-k","github":"vladi-k"},"id":"915005997301","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":38.66,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"68cf1542198d44248a74ecf969ef6f7c"},{"aliases":["4034031P7"],"calculation_strategy":"lut","created_at":"2021-08-26T21:06:04Z","device_type":"light","measure_device":"Gosund SP111","measure_device_firmware":"Tasmota 9.5.0","measure_method":"script","name":"Hue Fair Ceiling Lamp","standby_power":0.4,"author_info":{"name":"Stefan Gries","github":"stefangries"},"id":"LTC002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":33.67,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"78c1119ef6c58c4dbb89896ed1e689b9"},{"calculation_strategy":"lut","created_at":"2023-04-01T15:31:41Z","device_type":"light","measure_device":"Sonoff S31","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.13:docker"},"name":"Hue White Ambiance A19 E26/E27","standby_power":0.25,"author_info":{"name":"Ben Brooks","github":"brooksben11"},"id":"LTW004","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.45,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"0355067c3a53a64eeae666804145ee49"},{"aliases":["929003054901","4023330P7"],"calculation_strategy":"lut","created_at":"2022-10-16T20:54:24Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.26.1:docker"},"name":"Hue Amaze Suspension Light","standby_power":0.59,"author_info":{"name":"Eduard Llull","github":"ellull"},"id":"LTP002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":40.17,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"c7f9988fdad9026d7542e2231dfeaa57"},{"aliases":["8719514344723","9290030168"],"calculation_strategy":"lut","created_at":"2024-07-24T06:28:09Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.13.4:docker"},"name":"Hue Akari Downlight","standby_power":0.2,"author_info":{"name":"niggles1973","github":"niggles1973"},"id":"LCD003","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.68,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"a658fea49265e5f518b03ed0ef77c4ff"},{"aliases":["9290024716","929002471601"],"calculation_strategy":"lut","created_at":"2022-07-11T18:57:12Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue White and Color Ambiance E27 1600lm","standby_power":0.27,"author_info":{"name":"ahartmanns","email":"a.hartmanns@utwente.nl","github":"ahartmanns"},"id":"LCA008","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":11.36,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"488279346cb29044d9184c7e9dd4bc1c"},{"aliases":["9290012573A","9290012575"],"calculation_strategy":"lut","created_at":"2021-06-11T22:01:53Z","device_type":"light","measure_device":"AVM Fritz!DECT 200","measure_method":"script","name":"Hue White and Color Ambiance A19 E26/E27 (Gen 4)","standby_power":0.47,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LCT015","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.58,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"0300708699672059181ac5245108d0b6"},{"aliases":["8719514328242","9290024898"],"calculation_strategy":"lut","created_at":"2022-01-27T08:48:45Z","device_type":"light","measure_device":"Fibaro FGWP102","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":5,"VERSION":"v0.16.0:docker"},"name":"Hue White Ambiance 800 E27 Bluetooth","standby_power":0.3,"author_info":{"name":"Steffan","github":"SteffanH"},"id":"LTA004","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.9,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"448c234b2e21aaeb186b07c9eebafdf1"},{"aliases":["929004297401"],"calculation_strategy":"lut","created_at":"2025-11-04T00:15:59Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"v1.17.24:docker"},"name":"Hue Devote Slim ceiling light (29cm)","standby_power":0.18,"author_info":{"name":"Tom Frenzel","email":"admin@tom-frenzel.de","github":"tomfrenzel"},"id":"929004297401","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":18.8,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"a5b42cbf8e450dea69d344eaa599ad6c"},{"aliases":["9290029949"],"calculation_strategy":"lut","created_at":"2023-02-04T15:26:14Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.1:docker"},"name":"Hue Gradient Lightstrip","standby_power":0.14,"author_info":{"name":"AJ Banck","email":"ajbanck@planet.nl","github":"ajbanck"},"id":"LCX004","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":23.87,"sub_profile_count":2,"color_modes":["hs","color_temp"],"hash":"30067139290b15a6e21fea5051cd52b1"},{"aliases":["9290018216A"],"calculation_strategy":"lut","created_at":"2026-06-11T19:56:11Z","device_type":"light","measure_device":"Shelly Plus1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.14:docker"},"name":"Hue white bulb E27 800lm 2700K with Bluetooth","standby_power":0.26,"author_info":{"name":"Peter","github":"PtPazuzu"},"id":"LWA024","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.21,"sub_profile_count":0,"color_modes":["brightness"],"hash":"0fa7dc1a0a8d304063eb9923d5a942a6"},{"aliases":["9290019535"],"calculation_strategy":"lut","created_at":"2021-09-29T18:56:08Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White GU10 Bluetooth","standby_power":0.25,"author_info":{"name":"Simon Hörrle","email":"simon.hoerrle@gmail.com","github":"CM000n"},"id":"LWG004","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.88,"sub_profile_count":0,"color_modes":["brightness"],"hash":"33210be21219e6d1e8c7d00630d4b55c"},{"aliases":["LWA021"],"calculation_strategy":"lut","created_at":"2025-02-08T10:24:51Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.6:docker"},"name":"Hue Filament Standard A60/E27 bluetooth","standby_power":0.14,"author_info":{"name":"Dr-Seltsam","email":"sebastian.jaekel@web.de","github":"Dr-Seltsam"},"id":"9290030514","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.21,"sub_profile_count":0,"color_modes":["brightness"],"hash":"9652c14cd9efff0558805cfe999a898e"},{"aliases":["9290030536"],"calculation_strategy":"lut","created_at":"2023-02-28T18:32:53Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Flourish Pendant Light","standby_power":0.42,"author_info":{"name":"matteobreschig","github":"matteobreschig"},"id":"929003053601","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":43.37,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"1bec90a6a84b30f9ddd45ebd62565501"},{"aliases":["578526"],"calculation_strategy":"lut","created_at":"2025-10-08T14:47:08Z","device_type":"light","measure_device":"Shelly Plus Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":10,"SLEEP_TIME":5,"VERSION":"v1.17.22:docker"},"name":"Hue 5/6″ Retrofit Downlight White","standby_power":0.22,"author_info":{"name":"ltloopy","github":"ltloopy"},"id":"LTD017","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":11.09,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"c5af05e041efba24c97176fdfa2acc57"},{"aliases":["8718699703424","9290022691","LCL006"],"calculation_strategy":"lut","created_at":"2022-03-29T12:17:41Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":5,"VERSION":"v0.18.4:docker"},"name":"Hue White and Color Ambiance LightStrip plus","standby_power":0.4,"author_info":{"name":"KrzysztofHajdamowicz","email":"uosiu@uosiu.info","github":"KrzysztofHajdamowicz"},"id":"LCL001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":21.14,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"09b39ccf448244c8506017b62a6695a9"},{"aliases":["9290022166","9290022266A","9290022574","9290022615","9290022699","929003053401","LCA005"],"calculation_strategy":"lut","created_at":"2021-06-12T21:56:23Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White and Color Ambiance A19 E26/E27 (Gen 5)","standby_power":0.33,"author_info":{"name":"Simon Hörrle","email":"simon.hoerrle@gmail.com","github":"CM000n"},"id":"LCA001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.5,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"812ac899bb8c3434d85e7ca814083bd6"},{"aliases":["9150059978"],"calculation_strategy":"lut","created_at":"2024-10-15T22:25:27Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":5,"SLEEP_TIME":1,"VERSION":"v1.14.8:docker"},"name":"Hue Xamento medium ceiling","standby_power":0.58,"author_info":{"name":"Morpheus361","email":"marco.morpheus@kabelmail.de","github":"Morpheus361"},"id":"915005997801","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":40.43,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"bbf66959e482a6714bc1c5a2740e9096"},{"aliases":["915005988101","9150059882"],"calculation_strategy":"lut","created_at":"2023-10-04T20:29:36Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.4:docker"},"name":"Hue Play Gradient Light Tube Large","standby_power":0.25,"author_info":{"name":"chpego","github":"chpego"},"id":"915005988201","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":22.95,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"3ab8e13b8a3f66e6e9e199e3dbed71ba"},{"aliases":["9150058704","915005987101","915005987201","929003479701"],"calculation_strategy":"lut","created_at":"2024-05-20T22:38:20Z","device_type":"light","measure_device":"GW Instek GPM-8213","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Gradient Signe Floor Light","standby_power":0.54,"author_info":{"name":"Manuel Kasper","email":"mk@neon1.net","github":"manuelkasper"},"id":"4080248U9","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":33.97,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"49fcff0d87103122a0992d2530753159"},{"calculation_strategy":"lut","created_at":"2025-01-22T15:53:12Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.2:docker"},"name":"Hue White Ambiance Bulb A67 1600lm with Bluetooth","standby_power":0.41,"author_info":{"name":"Macstar1601","github":"Macstar1601"},"id":"929002471901","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":13.75,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"df57b615b09d8166888c46a95a2c7c89"},{"aliases":["9290024683"],"calculation_strategy":"lut","created_at":"2022-12-02T17:29:12Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":4,"SLEEP_TIME":5,"VERSION":"master"},"name":"Hue White Ambiance 1100 E26 Bluetooth","standby_power":0.25,"author_info":{"name":"nanderson97651","github":"nanderson97651"},"id":"LTA010","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":10.07,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"6ba977936e52b39c72b0e754d3ed6e00"},{"aliases":["8718696695203","9290013014"],"calculation_strategy":"lut","created_at":"2021-09-01T18:40:45Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","name":" Hue White Ambiance Candle E14","standby_power":0.3,"author_info":{"name":"wormiedk","email":"wormie@alberg.dk","github":"wormiedk"},"id":"LTW012","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":5.06,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"4eef37928a19d8e99a1101a04968f16e"},{"aliases":["9290024406"],"calculation_strategy":"lut","created_at":"2022-04-04T12:24:27Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"master"},"name":"Hue P45 light bulb","standby_power":0.2,"author_info":{"name":"Morten Trab","email":"morten@trab.dk","github":"MTrab"},"id":"LWU001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.01,"sub_profile_count":0,"color_modes":["brightness"],"hash":"ff47890912cd482deff8c3dce4b38460"},{"aliases":["9290038539"],"calculation_strategy":"lut","created_at":"2026-02-15T09:02:05Z","device_type":"light","measure_device":"Shelly Plug US Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.5:docker"},"name":"Hue White and color ambiance 100W A19- E26 smart bulb","standby_power":0.07,"author_info":{"name":"pinkfin","github":"pinkfin","email":"hot.wire1618@fastmail.com"},"id":"LCA015","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":12.25,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"fab2bcc1a6526900c2b4f8ec6a13d861"},{"aliases":["3261030P6","3261031P6","3261048P6","3261030P7"],"calculation_strategy":"lut","created_at":"2021-06-19T18:55:29Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue Being Ceiling Light","standby_power":0.35,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LTC001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":37.34,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"b203f6fc7adf323be9f04277f0f7d257"},{"aliases":["9290024228"],"calculation_strategy":"lut","created_at":"2025-02-25T12:49:35Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.7:docker"},"name":"Hue Play Gradient Lightstrip 65 Inch","standby_power":0.07,"author_info":{"name":"dewbot6","email":"drewsnodgrass@comcast.net","github":"dewbot6"},"id":"LCX002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":22.2,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"6dfcb88107e16d6f92da3e1a5efd96c6"},{"aliases":["9290038549H"],"calculation_strategy":"lut","created_at":"2025-12-11T00:43:44Z","device_type":"light","measure_device":"Nous A1","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"master"},"name":"Hue White Ambiance E27 1100lm with Bluetooth","standby_power":0.2,"author_info":{"name":"mbks","email":"mbks@mbks.mbks","github":"mbks"},"id":"LTA015","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.95,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"11e58c100c83f8cd7ccf3d2bf262d03e"},{"aliases":["9150059869","915005987001"],"calculation_strategy":"lut","created_at":"2024-07-21T11:13:03Z","device_type":"light","measure_device":"Shelly Plus Plug S Gen2","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.11.6:docker"},"name":"Hue Signe Gradient Table Lamp","standby_power":0.6,"author_info":{"name":"pwnagepeter","email":"hauke@pwnagepeter.net","github":"pwnagepeter"},"id":"915005986901","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":14.35,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f46dc940a0fce6a3ba885706a458d234"},{"calculation_strategy":"lut","created_at":"2025-03-25T15:48:26Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.9:docker"},"name":"Hue White and Color Ambiance Slim Downlight 6 inch","standby_power":0.49,"author_info":{"name":"dewbot6","email":"drewsnodgrass@comcast.net","github":"dewbot6"},"id":"LCD007","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":12.59,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f3a65b1fcb22b02c854ec0f83232c005"},{"aliases":["9290023762"],"calculation_strategy":"lut","created_at":"2024-10-05T20:12:06Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":5,"SLEEP_TIME":1,"VERSION":"v1.14.8:docker"},"name":"Hue Iris","standby_power":0.35,"author_info":{"name":"Morpheus361","email":"marco.morpheus@kabelmail.de","github":"Morpheus361"},"id":"929002376201","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":9.81,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"4a91619338cd2f167e7a479b90ee8c61"},{"aliases":["8718699673147","9290018216","9290018217"],"calculation_strategy":"lut","created_at":"2021-09-01T18:40:45Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","name":"Hue White Ambiance Bulb A60 E27","standby_power":0.4,"author_info":{"name":"wormiedk","email":"wormie@alberg.dk","github":"wormiedk"},"id":"LWA001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.51,"sub_profile_count":0,"color_modes":["brightness"],"hash":"cd1c351ec382e503277ead844ad8233c"},{"aliases":[],"calculation_strategy":"lut","created_at":"2021-09-29T18:18:54Z","device_type":"light","measure_device":"Nous A1","measure_device_firmware":"TASMOTA 9.5.0","measure_method":"script","measure_setting":{"SAMPLE_COUNT":10,"SLEEP_TIME":2,"SLEEP_TIME_CT":10,"SLEEP_TIME_HUE":5,"SLEEP_TIME_SAT":10},"name":"Hue White and Color Ambiance E27 Gen2 (2015)","standby_power":0.33,"author_info":{"name":"Thomas-Henning von Kamptz","github":"tomsoftcom"},"id":"LCT007","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":10.3,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"2e2483cea517973c9e6d79a695d1e929"},{"aliases":["046677548483","9290022266A","929002226611"],"calculation_strategy":"lut","created_at":"2025-07-24T09:10:34Z","device_type":"light","measure_device":"Shelly Plus Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":10,"SLEEP_TIME":5,"VERSION":"v1.17.15:docker"},"name":"Hue White and Color ambiance A19 800lm","standby_power":0.2,"author_info":{"name":"ltloopy","github":"ltloopy"},"id":"LCA005","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":7.13,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"fa4dc89b32e5b834da3bac0e063498d8"},{"aliases":["8718699688882","9290022414"],"calculation_strategy":"lut","created_at":"2021-09-01T18:41:46Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White Filament Bulb G93 E27 w/ BT","standby_power":0.35,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LWO001","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.41,"sub_profile_count":0,"color_modes":["brightness"],"hash":"3b46eae660bb29fbead42aa05d80da7e"},{"calculation_strategy":"lut","created_at":"2025-11-25T11:51:58Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.2:docker"},"name":"Hue White Ambiance E14 Luster/Tropfenform","standby_power":0.2,"author_info":{"name":"Macstar1601","github":"Macstar1601"},"id":"8719514491106","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.8,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"cd9d88cf7a1f2fc8282ef2dca62aa2be"},{"aliases":["5060830P7_01","5060831P7_01"],"calculation_strategy":"lut","created_at":"2023-02-28T18:32:53Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Hue Centris 3-Spot Cross Ceiling Light","standby_power":0.4,"author_info":{"name":"matteobreschig","github":"matteobreschig"},"id":"5060830P7","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":28.8,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"0ccb506a8f58f2d7650cb339cc63ba13"},{"aliases":["9290024684","9290024685"],"calculation_strategy":"lut","created_at":"2022-05-06T22:10:00Z","device_type":"light","measure_device":"Gosund UP111","measure_device_firmware":"Tuya","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.19.15:docker"},"name":"Hue White Ambiance 1100 E27 Bluetooth","standby_power":0.2,"author_info":{"name":"xpenno255","github":"xpenno255"},"id":"LTA009","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":8.6,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"598ef16a53209ba01924a47535b864a8"},{"aliases":["9150059237"],"calculation_strategy":"lut","created_at":"2024-03-29T18:50:54Z","device_type":"light","measure_device":"Hypertec Power-Mate Lite 10A","measure_method":"script","measure_settings":{"SAMPLE_COUNT":5,"SLEEP_TIME":4,"VERSION":"master"},"name":"Hue White Ambiance Muscari Ceiling Light","standby_power":0.46,"author_info":{"name":"Blake Garner","email":"blake.garner@gmail.com","github":"BlakeGarner"},"id":"4503748C6","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":42.9,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"58f074956a7caecfcf2e74fabfa6aa10"},{"aliases":["9290023351"],"calculation_strategy":"lut","created_at":"2022-05-29T15:18:24Z","device_type":"light","linked_profile":"signify/LWA009","measure_device":"Shelly Plug S","measure_method":"script","name":"Hue White Bulb A21 E26 1600lm with Bluetooth","standby_power":0.41,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"LWA008","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":14.04,"sub_profile_count":0,"color_modes":["brightness"],"hash":"f76ff61614f3cd407d828b38ea9902b8"},{"calculation_strategy":"lut","created_at":"2023-04-01T15:31:41Z","device_type":"light","measure_device":"Sonoff S31","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.13:docker"},"name":"Hue White and Color Ambiance BR30 (1st Gen)","standby_power":0.12,"author_info":{"name":"Ben Brooks","github":"brooksben11"},"id":"LCT002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.93,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f0bc73b67893b2aea5be007371206c30"},{"aliases":[],"calculation_strategy":"lut","created_at":"2021-10-25T17:16:55Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":10,"SLEEP_TIME":10},"name":"Hue White Filament Bulb G125 E27 w/ BT","standby_power":0.4,"author_info":{"name":"geelenbert","email":"mail2bert@gmail.com","github":"geelenbert"},"id":"LWO003","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":6.58,"sub_profile_count":0,"color_modes":["brightness"],"hash":"1130c402334e62c4ff1bfdaf687f4001"},{"calculation_strategy":"lut","created_at":"2025-01-11T11:36:24Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.16.7:docker"},"name":"Hue White and Color Ambiance GU10 400lm","aliases":["929003666501"],"standby_power":0.2,"author_info":{"name":"matteobreschig","github":"matteobreschig"},"id":"LCG006","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.91,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"15d1fefb2f4252cf996e7432a6ca7e42"},{"aliases":["929002335105","9290024720"],"calculation_strategy":"lut","created_at":"2025-09-10T07:24:05Z","device_type":"light","measure_device":"Shelly Plus Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":10,"SLEEP_TIME":5,"VERSION":"v1.17.19:docker"},"name":"Hue White Ambiance E26 1600lm with Bluetooth","standby_power":0.22,"author_info":{"name":"ltloopy","github":"ltloopy"},"id":"LTA012","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":13.37,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"f7aee02885be8bc3aea5023040704398"},{"aliases":["9290022944"],"calculation_strategy":"lut","created_at":"2022-05-06T22:10:00Z","device_type":"light","measure_device":"Gosund UP111","measure_device_firmware":"Tuya","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.19.15:docker"},"name":"Hue White Ambiance E14 w/ BT","standby_power":0.2,"author_info":{"name":"xpenno255","github":"xpenno255"},"id":"LTE002","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":4.75,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"a8d96f9002200cfa4a0ff554bd3409ea"},{"aliases":["929003666701"],"calculation_strategy":"lut","created_at":"2024-11-24T18:30:23Z","device_type":"light","measure_device":"GreenWave GWPN1","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":3,"VERSION":"v1.15.2:docker"},"name":"Hue White Ambiance Dimmable LED Smart Retrofit","standby_power":0.1,"author_info":{"name":"Marius","github":"Mariusthvdb"},"id":"LTG005","manufacturer":"signify","updated_at":"2026-07-18T07:09:16","max_power":3.83,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"c120f1c658eaa0a74341d7fe13372109"}],"device_types":["light","smart_switch","network"]},{"aliases":[],"name":"telefunken","full_name":"Telefunken","dir_name":"telefunken","models":[{"calculation_strategy":"linear","created_at":"2025-10-18T23:52:00Z","device_type":"television","energy_sensor_naming":"{} Device Energy","measure_device":"TP-Link Tapo P115","measure_device_firmware":"1.3.4 Build 250403 Rel.150504","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v1.17.21:docker"},"name":"32″ Full HD LED TV","power_sensor_naming":"{} Device Power","standby_power":0.3,"author_info":{"name":"Justin Hahn","email":"hahnjustin27@gmail.com","github":"justinh998"},"id":"XF32E411M","manufacturer":"telefunken","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":10,"hash":"5a133eba4d6f1bdcaa41ad10f5acaf86"}],"device_types":["television"]},{"aliases":[],"name":"nuki","full_name":"Nuki Home Solutions GmbH","dir_name":"nuki","models":[{"aliases":["Hardware Bridge"],"calculation_strategy":"fixed","created_at":"2025-04-20T16:30:06Z","device_type":"generic_iot","measure_device":"Shelly PM Mini Gen3","measure_method":"manual","name":"Hardware Bridge","discovery_by":"device","only_self_usage":true,"standby_power":0.51,"author_info":{"name":"Tim","github":"EinRainerZufall"},"id":"220694","manufacturer":"nuki","updated_at":"2026-04-20T19:33:39","max_power":0,"sub_profile_count":0,"hash":"f1e4493f00877c069386fafb2b82c39e"}],"device_types":["generic_iot"]},{"aliases":[],"name":"ewelight","full_name":"eWeLight","dir_name":"ewelight","models":[{"calculation_strategy":"lut","created_at":"2024-02-24T21:34:35Z","device_type":"light","measure_device":"Shelly 2.5 gen1 (SHSW-25)","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.10.6:docker"},"name":"Smart light JL01","standby_power":0.4,"author_info":{"name":"Nicolas Liaudat","github":"nliaudat"},"id":"2APYC-JL01","manufacturer":"ewelight","updated_at":"2026-07-18T07:09:16","max_power":4.88,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"6f7716ec507e090fe5ed4bea98b59914"}],"device_types":["light"]},{"aliases":[],"name":"sengled","full_name":"Sengled","dir_name":"sengled","models":[{"aliases":["E11-N13/E11-N13A/E11-N14/E11-N14A"],"calculation_strategy":"lut","created_at":"2024-02-04T17:58:19Z","device_type":"light","measure_device":"Shelly Plug US","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.10.0:docker"},"name":"Smart LED Extra Bright Soft White A19 Bulb","standby_power":0.3,"author_info":{"name":"dhedges01","email":"dhedges01@gmail.com","github":"dhedges01"},"id":"E11-N13_E11-N13A_E11-N14_E11-N14A","manufacturer":"sengled","updated_at":"2026-07-18T07:09:16","max_power":14.55,"sub_profile_count":0,"color_modes":["brightness"],"hash":"d57d0b5c32be767f149b11e40f9279bf"},{"calculation_strategy":"lut","created_at":"2024-02-19T18:29:50Z","device_type":"light","measure_device":"Third Reality 3RSP02028BZ","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.10.4:docker"},"name":"Motion Sensor Bulb PAR38 E13-N11 Zigbee","standby_power":0.3,"author_info":{"name":"DracoC77","github":"DracoC77"},"id":"E13-N11","manufacturer":"sengled","updated_at":"2026-07-18T07:09:16","max_power":12.3,"sub_profile_count":0,"color_modes":["brightness"],"hash":"c6d2482f8a3e2c9a54da354a1ff8af9a"},{"calculation_strategy":"lut","created_at":"2024-02-19T18:30:18Z","device_type":"light","measure_device":"Third Reality 3RSP02028BZ","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.10.4:docker"},"name":"White 5000K A19/E26 Bulb E11-G13 Zigbee","standby_power":0.3,"author_info":{"name":"DracoC77","github":"DracoC77"},"id":"E11-G13","manufacturer":"sengled","updated_at":"2026-07-18T07:09:16","max_power":7.5,"sub_profile_count":0,"color_modes":["brightness"],"hash":"c4654ca932ceda4a6112527d38ae29a0"}],"device_types":["light"]},{"aliases":[],"name":"dyson","full_name":"Dyson","dir_name":"dyson","models":[{"author_info":{"github":"buntwo","name":"buntwo"},"calculation_strategy":"composite","created_at":"2026-07-20T21:56:29Z","device_type":"fan","max_voltage":118.6,"measure_device":"TP-Link Tapo P316M","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v1.22.0:docker"},"min_voltage":116.6,"name":"Purifier Cool TP07","standby_power":1.13,"id":"TP07","manufacturer":"dyson","updated_at":"2026-07-25T15:23:50","max_power":null,"sub_profile_count":0,"hash":"a68eb65a4cc0404b502c9b66835f820c"}],"device_types":["fan"]},{"aliases":[],"name":"ledvance","full_name":"LEDVANCE","dir_name":"ledvance","models":[{"calculation_strategy":"lut","created_at":"2022-11-10T19:42:22Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.0.3:docker"},"name":"SMART+ Classic Multicolour 60 10W E27","standby_power":0.31,"author_info":{"name":"gary-oneill82","github":"gary-oneill82"},"id":"AC25697","manufacturer":"ledvance","updated_at":"2026-07-18T07:09:16","max_power":8.18,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"2e1204365d43349b3855701870f1d904"},{"calculation_strategy":"lut","created_at":"2022-11-16T20:39:28Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.1.1:docker"},"name":"SMART+ WIFI PLANON FRAMELESS TW RGB 600x600","standby_power":1,"author_info":{"name":"Kenneth Fribert","email":"fribse@gmail.com","github":"fribse"},"id":"40580754884474","manufacturer":"ledvance","updated_at":"2026-07-18T07:09:16","max_power":34.65,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"a40018068ffd38d3b74c9cccbabe801c"},{"calculation_strategy":"lut","created_at":"2025-04-26T20:39:35Z","device_type":"light","measure_device":"Sonoff POWR2","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":10,"VERSION":"v1.17.11:docker"},"name":"SMART+ Filament Edison 52 E27 Amber dimmable","standby_power":0.24,"author_info":{"name":"dells2k","github":"dells2k"},"id":"4058075729223","manufacturer":"ledvance","updated_at":"2026-07-18T07:09:16","max_power":5.57,"sub_profile_count":0,"color_modes":["brightness"],"hash":"9c0c9870587f472097fb120da1db3a89"},{"aliases":["4058075168572"],"calculation_strategy":"lut","created_at":"2021-08-21T07:43:16Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Tibea Lamp E27 Tuneable White 2000lm","standby_power":0.51,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"Tibea TW Z3","manufacturer":"ledvance","updated_at":"2026-07-18T07:09:16","max_power":20.49,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"676391e2ad47ce6fb0a25c142497bee1"},{"calculation_strategy":"lut","created_at":"2023-09-03T13:31:57Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.2:docker"},"name":"Extended color light RGBW","standby_power":0.5,"author_info":{"name":"PalminX","email":"bkuemmer@gmx.net","github":"PalminX"},"id":"CLA60 RGBW Z3","manufacturer":"ledvance","updated_at":"2026-07-18T07:09:16","max_power":9.75,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"68a65a64b85ed2c5cd6933afa36cbcac"},{"aliases":["FLEX RGBW Z3"],"calculation_strategy":"lut","created_at":"2024-10-21T07:32:02Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"SMART+ ZB FLEX 3P RGB + TW","standby_power":0.26,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"4058075208339","manufacturer":"ledvance","updated_at":"2026-07-18T07:09:16","max_power":8.73,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"11616f06e9431360b2bfcad1349d4f88"},{"calculation_strategy":"lut","created_at":"2023-02-13T19:22:42Z","device_type":"light","measure_device":"Sonoff S31","measure_device_firmware":"Tasmota","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.3:docker"},"name":"LIGHTIFY LED adjustable color RT 5/6","standby_power":0.62,"author_info":{"name":"Mark Atwood","email":"me@mark.atwood.name","github":"fallenpegasus"},"id":"73741","manufacturer":"ledvance","updated_at":"2026-07-18T07:09:16","max_power":8.75,"sub_profile_count":0,"color_modes":["hs"],"hash":"9d21d712ff2d69311d206e38fd51f2c4"},{"calculation_strategy":"lut","created_at":"2022-11-16T20:39:28Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.1.1:docker"},"name":"SMART+ Wifi Planon 30x30 TW","standby_power":0.9,"author_info":{"name":"Kenneth Fribert","email":"fribse@gmail.com","github":"fribse"},"id":"ac264430155","manufacturer":"ledvance","updated_at":"2026-07-18T07:09:16","max_power":19.35,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"1a84a7da788f147d90d19b9d6b549ea4"},{"calculation_strategy":"lut","created_at":"2023-02-14T18:41:55Z","device_type":"light","measure_device":"Sonoff S31","measure_device_firmware":"Tasmota","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.3:docker"},"name":"LIGHTIFY LED adjustable white RT 5/6","standby_power":1,"author_info":{"name":"Mark Atwood","email":"me@mark.atwood.name","github":"fallenpegasus"},"id":"73742","manufacturer":"ledvance","updated_at":"2026-07-18T07:09:16","max_power":10,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"9e7c7eaa7cbf24574b3a2c58a0cb093e"},{"calculation_strategy":"lut","created_at":"2022-11-30T17:57:54Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.1.2:docker"},"name":"SMART+ WIFI Orbis Cylinder 450 TW","standby_power":0.75,"author_info":{"name":"Kenneth Fribert","email":"fribse@gmail.com","github":"fribse"},"id":"orbis_cylinder","manufacturer":"ledvance","updated_at":"2026-07-18T07:09:16","max_power":24,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"1277c15f577950e354780a6db530c53e"},{"calculation_strategy":"lut","created_at":"2022-04-03T10:46:35Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":1,"VERSION":"master"},"name":"SMART+ Wi-Fi RGBW Filament Globe LED Bulb (E27, 4.5 W)","standby_power":1.04,"author_info":{"name":"Morten Trab","email":"morten@trab.dk","github":"MTrab"},"id":"LDVWF30FILE27RGBW","manufacturer":"ledvance","updated_at":"2026-07-18T07:09:16","max_power":4.65,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"acd19825fd4587ff15a95d40e4d6f42c"}],"device_types":["light"]},{"aliases":[],"name":"snooz","full_name":"Snooz","dir_name":"snooz","models":[{"calculation_strategy":"linear","created_at":"2025-05-10T19:41:31Z","device_type":"fan","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.12:docker"},"name":"Smart White Noise Machine","standby_power":0.31,"author_info":{"name":"Thomas R. Novak","email":"trnovak@illinoisalumni.org","github":"trnovak"},"id":"SNOOZ-US-2","manufacturer":"snooz","updated_at":"2026-07-18T07:09:16","max_power":4.95,"sub_profile_count":0,"hash":"76fe307a310aa5aa381ca0200d001266"}],"device_types":["fan"]},{"aliases":[],"name":"apple","full_name":"Apple","dir_name":"apple","models":[{"calculation_strategy":"linear","created_at":"2023-04-03T20:55:15Z","device_type":"smart_speaker","measure_device":"Shelly Plug S","measure_method":"manual","name":"HomePod Mini","standby_power":0.65,"author_info":{"name":"vandalon","email":"joris@vandalon.nl","github":"vandalon"},"id":"HomePod Mini","manufacturer":"apple","updated_at":"2026-07-18T07:09:16","max_power":4.22,"sub_profile_count":0,"hash":"084b154ebe3da1110e770724a1adad36"},{"aliases":["HomePod (gen 2)"],"calculation_strategy":"linear","created_at":"2024-03-17T20:29:31Z","device_type":"smart_speaker","measure_device":"Shelly Plus Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.14:docker"},"name":"HomePod Gen 2","standby_power":1.01,"author_info":{"name":"laplacacm","github":"laplacacm"},"id":"MQJ83","manufacturer":"apple","updated_at":"2026-07-18T07:09:16","max_power":27.08,"sub_profile_count":0,"hash":"643409cb9c125830bfc393eeca738b82"}],"device_types":["smart_speaker"]},{"aliases":[],"name":"intelbras","full_name":"Intelbras","dir_name":"intelbras","models":[{"calculation_strategy":"lut","created_at":"2025-09-06T16:10:21Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.19:docker"},"name":"Smart Wi-Fi RGB LED Light Bulb (10 W, E27)","standby_power":0.62,"author_info":{"name":"Felipe Marinho","email":"felipe.marinho@ifood.com.br","github":"felipemarinho97"},"id":"EWS410","manufacturer":"intelbras","updated_at":"2026-07-18T07:09:16","max_power":10.06,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"5229c7ccd015e2da9197765ae6f78f2f"}],"device_types":["light"]},{"aliases":[],"name":"dreo","full_name":"Dreo","dir_name":"dreo","models":[{"calculation_strategy":"linear","created_at":"2025-07-14T08:15:08Z","device_type":"fan","measure_device":"Aqara Smart Plug EU (SP-EUC01)","measure_method":"manual","name":"Cruiser Pro T1S Smart Tower Fan","standby_power":0.87,"author_info":{"name":"Miguel","github":"miggi92"},"id":"DR-HTF001S","manufacturer":"dreo","updated_at":"2026-07-18T07:09:16","max_power":46.82,"sub_profile_count":0,"hash":"b32618df02064e72b45b09af2f74a096"},{"calculation_strategy":"linear","created_at":"2025-07-14T07:52:08Z","device_type":"fan","measure_device":"Aqara Smart Plug EU (SP-EUC01)","measure_method":"manual","name":"Lynx S Smart desk fan","standby_power":0.87,"author_info":{"name":"Miguel","github":"miggi92"},"id":"DR-HAF001S","manufacturer":"dreo","updated_at":"2026-07-18T07:09:16","max_power":39.62,"sub_profile_count":0,"hash":"d501b761519757b5742f81058b1204fa"},{"calculation_strategy":"linear","created_at":"2025-07-14T08:10:08Z","device_type":"fan","measure_device":"Aqara Smart Plug EU (SP-EUC01)","measure_method":"manual","name":"Cruiser Pro T2S Smart Tower Fan","standby_power":1.04,"author_info":{"name":"Miguel","github":"miggi92"},"id":"DR-HTF002S","manufacturer":"dreo","updated_at":"2026-07-18T07:09:16","max_power":39.62,"sub_profile_count":0,"hash":"38d070d6517bb4dca0a148eb56c2c364"},{"calculation_strategy":"linear","created_at":"2026-02-16T15:09:15Z","device_type":"fan","measure_device":"Shelly Plug US Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.5:docker"},"name":"TurboPoly Fan 715S","standby_power":0.98,"author_info":{"name":"pinkfin","github":"pinkfin","email":"hot.wire1618@fastmail.com"},"id":"DR-HPF005S","manufacturer":"dreo","updated_at":"2026-07-18T07:09:16","max_power":25.33,"sub_profile_count":0,"hash":"f9e4c69994ad9c1ed9ac977bbe97dcd2"}],"device_types":["fan"]},{"aliases":[],"name":"paulmann licht","full_name":"Paulmann Licht","dir_name":"paulmann licht","models":[{"calculation_strategy":"lut","created_at":"2024-11-15T11:59:34Z","device_type":"light","measure_device":"TS011F","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.15.4:docker"},"name":"LED Pear Smart Home Zigbee 3.0 LED Globe E27 806lm 7W Tunable White dimmable Opal","standby_power":0.25,"author_info":{"name":"Bart Kummel","email":"bart@leap.ac","github":"bartkummel"},"id":"50396","manufacturer":"paulmann licht","updated_at":"2026-07-18T07:09:16","max_power":7,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"505aa803cbced4613bb81e062b295748"},{"calculation_strategy":"lut","created_at":"2024-09-22T00:00:00Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.8:docker"},"name":"RGBW Bulb E14 470lm 5W","standby_power":0.25,"author_info":{"name":"71820SM01","github":"71820SM01"},"id":"29150","manufacturer":"paulmann licht","updated_at":"2026-07-18T07:09:16","max_power":4.5,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"e3bf5775fdea69df24f2cc0fc4082d34"},{"calculation_strategy":"lut","created_at":"2024-12-14T09:59:57Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.10.6:docker"},"name":"RGBW Base Spot","standby_power":0.2,"author_info":{"name":"evohell","github":"evohell"},"id":"924.70","manufacturer":"paulmann licht","updated_at":"2026-07-18T07:09:16","max_power":4.57,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"02450ef04275ae1b5d0165abfed1012d"},{"calculation_strategy":"lut","created_at":"2024-09-25T00:00:00Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.8:docker"},"name":"RGBW Reflector GU10 350lm 4.8W","standby_power":0.25,"author_info":{"name":"71820SM01","github":"71820SM01"},"id":"29147","manufacturer":"paulmann licht","updated_at":"2026-07-18T07:09:16","max_power":4.8,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"c44f4ece878e1276abd3bb76d67c542f"},{"calculation_strategy":"lut","created_at":"2025-02-02T20:03:18Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.3:docker"},"name":"Areo VariFit 230mm 2000lm 500.46","standby_power":0.25,"author_info":{"name":"metzi","github":"mime24"},"id":"500.46","manufacturer":"paulmann licht","updated_at":"2026-07-18T07:09:16","max_power":15.6,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"f0eaaaa43b57bc5d93e4b51512ab4aa8"},{"calculation_strategy":"lut","created_at":"2024-09-23T00:00:00Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.8:docker"},"name":"RGBW Bulb E27 1055lm 11W","standby_power":0.35,"author_info":{"name":"71820SM01","github":"71820SM01"},"id":"29145","manufacturer":"paulmann licht","updated_at":"2026-07-18T07:09:16","max_power":10.5,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"665d2066707067ce5f287c148ec1130b"},{"calculation_strategy":"lut","created_at":"2022-05-30T18:42:27Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.20.1:docker"},"name":"Amaris RGBW LED Panels 595x295mm","standby_power":1.33,"author_info":{"name":"Jonas","github":"JonasJoKuJonas"},"id":"371000002","manufacturer":"paulmann licht","updated_at":"2026-07-18T07:09:16","max_power":39.18,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"2148e69e2f1863fa6aed1822e00a1c06"}],"device_types":["light"]},{"aliases":["HARMAN International Industries"],"name":"jbl","full_name":"JBL","dir_name":"jbl","models":[{"aliases":["JBL Link Music"],"calculation_strategy":"linear","created_at":"2025-02-10T16:32:20Z","device_type":"smart_speaker","measure_device":"Nous A8T","measure_device_firmware":"EspHome","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.6:docker"},"name":"Link Music","standby_power":1.7,"author_info":{"name":"Marcus Voß","github":"mvoss96"},"id":"Link Music","manufacturer":"jbl","updated_at":"2026-07-18T07:09:16","max_power":8.56,"sub_profile_count":0,"hash":"040dea1486c8fa3863d2029a4f8e8e10"}],"device_types":["smart_speaker"]},{"aliases":[],"name":"meross","full_name":"Meross","dir_name":"meross","models":[{"calculation_strategy":"lut","created_at":"2022-09-26T21:02:13Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.25.5:docker"},"name":"Smart Wi-Fi LED Bulb","standby_power":0.56,"author_info":{"name":"Joshua Rich","email":"joshua.rich@gmail.com","github":"joshuar"},"id":"msl120d 2.0.0","manufacturer":"meross","updated_at":"2026-07-18T07:09:16","max_power":10.1,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"9d8574d976ffa01fe7070d6df9094eff"}],"device_types":["light"]},{"aliases":[],"name":"elgato","full_name":"Elgato","dir_name":"elgato","models":[{"calculation_strategy":"lut","created_at":"2022-08-02T15:23:27Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Key Light Air","standby_power":0.41,"author_info":{"name":"BeardedTinker","github":"BeardedTinker"},"id":"Elgato Key Light Air","manufacturer":"elgato","updated_at":"2026-07-18T07:09:16","max_power":24.02,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"31ec89eebd57d607ffc7ea141bfe1ab5"},{"calculation_strategy":"lut","created_at":"2025-03-17T20:00:14Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Light Strip","standby_power":0.55,"author_info":{"name":"Franck Nijhof","email":"git@frenck.dev","github":"frenck"},"id":"Elgato Light Strip","manufacturer":"elgato","updated_at":"2026-07-18T07:09:16","max_power":19.4,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"54613c56b418aa3d0c4fdc2e660b40f3"},{"calculation_strategy":"lut","created_at":"2023-02-14T20:16:53Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Ring Light","standby_power":0.45,"author_info":{"name":"Marc Geurts","email":"geurtsmarc@hotmail.com","github":"marcgeurts"},"id":"Elgato Ring Light","manufacturer":"elgato","updated_at":"2026-07-18T07:09:16","max_power":48.31,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"9d53fef1a258e8b77b4b0b185b5ea624"},{"calculation_strategy":"lut","created_at":"2025-03-18T18:12:40Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Light Strip Pro","standby_power":1.2,"author_info":{"name":"Franck Nijhof","email":"git@frenck.dev","github":"frenck"},"id":"Elgato Light Strip Pro","manufacturer":"elgato","updated_at":"2026-07-18T07:09:16","max_power":15.86,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"1a1d9bb494296d2fc4e7f0e484a7c6fa"},{"calculation_strategy":"lut","created_at":"2022-08-08T08:27:59Z","device_type":"light","measure_device":"Zooz Z-Wave Plus Power Switch ZEN15","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.24.7:docker"},"name":"Key Light","standby_power":0.86,"author_info":{"name":"Adam Jacques","github":"ajacques"},"id":"Elgato Key Light","manufacturer":"elgato","updated_at":"2026-07-18T07:09:16","max_power":39.61,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"07bdf823b78c921f867ee8a23bca6ac0"}],"device_types":["light"]},{"aliases":["Lutron Electronics","Lutron Electronics Company","Lutron Electronics Inc.","Lutron Electronics Co., Inc"],"name":"lutron","full_name":"Lutron","dir_name":"lutron","models":[{"aliases":["PD-3PCL-WH","PlugInDimmer"],"calculation_strategy":"linear","created_at":"2025-07-16T04:50:00Z","device_type":"smart_dimmer","discovery_by":"entity","measure_device":"Shelly Plus Plug","measure_method":"script","name":"Plug-In Lamp Dimmer (Wireless Smart Dimmer)","standby_power":0.1,"standby_power_on":0.56,"author_info":{"name":"Josh Barnard","github":"barndawgie"},"id":"PD-3PCL-WH","manufacturer":"lutron","updated_at":"2026-07-10T07:54:55","max_power":0.56,"sub_profile_count":0,"hash":"ba345950179b0ef03fae84eafe999b84"}],"device_types":["smart_dimmer"]},{"aliases":[],"name":"smarthomeshop","full_name":"SmartHomeShop","dir_name":"smarthomeshop","models":[{"calculation_strategy":"fixed","created_at":"2026-01-18T11:38:00Z","device_type":"generic_iot","discovery_by":"device","measure_device":"Zhurui PR10","measure_method":"manual","name":"UltimateSensor Mini","author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"ultimatesensor_mini","manufacturer":"smarthomeshop","updated_at":"2026-07-10T07:54:55","max_power":1.25,"sub_profile_count":0,"hash":"2a8bc528bdf0e6cbb52210266c3554b6"}],"device_types":["generic_iot"]},{"aliases":[],"name":"lumiman","full_name":"Lumiman","dir_name":"lumiman","models":[{"calculation_strategy":"lut","created_at":"2024-02-24T10:07:16Z","device_type":"light","measure_device":"Third Reality 3RSP02028BZ","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":15,"VERSION":"v1.10.4:docker"},"name":"Smart Color Changing Bulb A19 800LM 2.4Ghz","standby_power":0.3,"author_info":{"name":"DracoC77","github":"DracoC77"},"id":"LM530","manufacturer":"lumiman","updated_at":"2026-07-18T07:09:16","max_power":6.9,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"e990c941d217c6b9df162c7726887192"}],"device_types":["light"]},{"aliases":[],"name":"epson","full_name":"Epson","dir_name":"epson","models":[{"calculation_strategy":"fixed","created_at":"2024-09-23T13:40:20Z","device_type":"printer","measure_device":"Shelly Plus Plug","measure_method":"manual","name":"ET-3760 Series","author_info":{"name":"Brian Egge","email":"brianegge@gmail.com","github":"brianegge"},"id":"ET-3760 Series","manufacturer":"epson","updated_at":"2026-07-10T07:54:55","max_power":14,"sub_profile_count":0,"hash":"11146483776a44454d4c80771beff50a"},{"calculation_strategy":"fixed","created_at":"2024-12-06T12:00:00Z","device_type":"printer","measure_device":"Shelly Plus Plug S","measure_method":"manual","name":"L6270 Series","author_info":{"name":"Andrzej Dopierała","email":"andrzej.dopierala@currency-one.com","github":"theundefined"},"id":"L6270 Series","manufacturer":"epson","updated_at":"2026-07-10T07:54:55","max_power":12,"sub_profile_count":0,"hash":"a14c4c3dd4bfbc732bd3cd9809d64662"}],"device_types":["printer"]},{"aliases":["Shelly Europe Ltd."],"name":"shelly","full_name":"Shelly","dir_name":"shelly","models":[{"aliases":["SHIX3-1"],"calculation_strategy":"fixed","created_at":"2026-01-09T22:55:00Z","device_type":"generic_iot","discovery_by":"device","measure_device":"Shelly PM Mini Gen3","measure_device_firmware":"20241011-114503/1.4.4-g6d2a586","measure_method":"manual","measure_settings":{"SAMPLE_COUNT":200,"SLEEP_TIME":0.5},"name":"i3","only_self_usage":true,"standby_power":0.587,"author_info":{"name":"Michal Bartak","email":"michal.bartak@betsys.com","github":"michalk-k"},"id":"Shelly i3","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":0,"hash":"1d2c027a47aaf07bc6d0095ac0f51f5d"},{"aliases":["S3PL-00112EU"],"calculation_strategy":"fixed","created_at":"2025-05-01T21:56:26Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.11:docker"},"name":"Plug S Gen3","only_self_usage":true,"author_info":{"name":"Largelos","email":"vasilenkoeyu@gmail.com","github":"Largelos"},"id":"Shelly Plug S MTR Gen3","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":2,"hash":"156542a1f197dab1646ed0c3a1e12aff"},{"aliases":["SHCB-1"],"calculation_strategy":"lut","created_at":"2025-01-20T22:38:52Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":1,"VERSION":"v1.17.2:docker"},"name":"Duo RGBW","standby_power":0.65,"author_info":{"name":"Michal Bartak","email":"michal.bartak@betsys.com","github":"michalk-k"},"id":"Shelly Bulb RGBW","manufacturer":"shelly","updated_at":"2026-07-18T07:09:16","max_power":4.9,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"b7268b0000bf0cd688306767040c3ef9"},{"aliases":["S3PM-001PCEU16"],"calculation_strategy":"fixed","created_at":"2024-12-01T16:51:00Z","device_type":"power_meter","discovery_by":"device","measure_device":"GW Instek GPM-8310","measure_method":"manual","name":"PM Mini Gen3","only_self_usage":true,"standby_power":0.642,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"shelly pm mini gen3","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":0,"hash":"5db82d66e1d1005f76c3cdaba7c8308b"},{"aliases":["SHSW-25"],"calculation_strategy":"multi_switch","created_at":"2024-01-02T22:39:00Z","device_type":"smart_switch","discovery_by":"device","measure_device":"Shelly PM Mini Gen3","measure_device_firmware":"20241011-114503/1.4.4-g6d2a586","measure_method":"manual","measure_settings":{"SAMPLE_COUNT":200,"SLEEP_TIME":0.5},"multi_switch_config":{"power":0.323},"name":"2.5","only_self_usage":true,"standby_power":0.676,"author_info":{"name":"Michal Bartak","email":"michal.bartak@betsys.com","github":"michalk-k"},"id":"Shelly 2.5","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":null,"sub_profile_count":0,"hash":"4a0f5d2d31d3d34285fc7a0ba65f5976"},{"aliases":["S3SW-001P8EU"],"calculation_strategy":"fixed","created_at":"2025-02-23T11:56:26Z","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"Shelly 1PM Mini Gen3","only_self_usage":true,"author_info":{"name":"CV","github":"dagobert"},"id":"Shelly 1PM Mini Gen3","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":3,"hash":"8e19788c739569b0da51f6d14004d8d8"},{"measure_method":"manual","measure_device":"Shelly PM Mini Gen3","measure_device_firmware":"20250924-062710/1.7.1-gd336f31","measure_settings":{"SAMPLE_COUNT":200,"SLEEP_TIME":0.5},"name":"1 Gen3","aliases":["S3SW-001X16EU","Shelly S1G3"],"device_type":"smart_switch","calculation_strategy":"fixed","only_self_usage":false,"created_at":"2026-01-15T10:15:00Z","author_info":{"name":"Michal Bartak","email":"michal.bartak@betsys.com","github":"michalk-k"},"id":"Shelly 1 Gen3","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":16,"hash":"d788e94b9d29a85e909bcfbc30345470"},{"aliases":["S4SW-001X8EU"],"calculation_strategy":"fixed","created_at":"2025-05-10T00:00:00Z","device_type":"smart_switch","discovery_by":"device","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"VERSION":"v1.17.12:docker"},"name":"1 Mini Gen4","only_self_usage":true,"author_info":{"name":"Jasper","email":"jaspervanvliet1996@gmail.com","github":"SustainableBlueDuck"},"id":"Shelly 1 Mini Gen4","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":4,"hash":"cf83ee1db4f97836865a5c6ec34b9082"},{"aliases":["SPEM-003CEBEU63"],"calculation_strategy":"fixed","created_at":"2024-01-03T19:07:00Z","device_type":"power_meter","discovery_by":"device","measure_device":"Shelly PM Mini Gen3","measure_device_firmware":"20241011-114503/1.4.4-g6d2a586","measure_method":"manual","measure_settings":{"SAMPLE_COUNT":200,"SLEEP_TIME":0.5},"name":"Pro 3EM","only_self_usage":true,"author_info":{"name":"Michal Bartak","email":"michal.bartak@betsys.com","github":"michalk-k"},"id":"Shelly Pro 3EM 3CT63","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":6,"hash":"0d65da015eb581a493c7391e4c74f72a"},{"aliases":["SHSW-PM"],"calculation_strategy":"fixed","created_at":"2024-01-09T19:21:00Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"Shelly PM Mini Gen3","measure_device_firmware":"20241011-114503/1.4.4-g6d2a586","measure_method":"manual","measure_settings":{"SAMPLE_COUNT":200,"SLEEP_TIME":0.5},"name":"1PM","only_self_usage":true,"standby_power":0.589,"standby_power_on":0.85,"author_info":{"name":"Michal Bartak","email":"michal.bartak@betsys.com","github":"michalk-k"},"id":"Shelly 1PM","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0.85,"sub_profile_count":0,"hash":"60d32b82d9a1e43bf88e190dfbe394d3"},{"aliases":["SNSW-001P16EU"],"calculation_strategy":"fixed","created_at":"2024-01-09T19:21:00Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"Shelly PM Mini Gen3","measure_device_firmware":"20241011-114503/1.4.4-g6d2a586","measure_method":"manual","measure_settings":{"SAMPLE_COUNT":200,"SLEEP_TIME":0.5},"name":"Plus 1PM","only_self_usage":true,"author_info":{"name":"CV","github":"dagobert"},"id":"Shelly Plus 1PM","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":3,"hash":"50f9a51a3e377a8d690fb6dd3902616d"},{"aliases":["S3SW-0A1X1EUL"],"calculation_strategy":"fixed","created_at":"2026-01-05T19:06:00Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"Shelly Plug S Gen3","measure_device_firmware":"20251113-160645/1.7.3-gb71e9ac","measure_method":"manual","measure_settings":{"VERSION":"Home Assistant Core 2025.12.5"},"name":"1L Gen3","only_self_usage":true,"author_info":{"name":"Victor Burlacu-Zane","email":"vvbbzz@yahoo.com","github":"besteru"},"id":"Shelly 1L Gen3","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":5,"hash":"4faded8dd56b2c8c5dbbda3743789f86"},{"aliases":["SHSW-1"],"calculation_strategy":"fixed","created_at":"2024-01-05T12:55:00Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"Shelly PM Mini Gen3","measure_device_firmware":"20241011-114503/1.4.4-g6d2a586","measure_method":"manual","measure_settings":{"SAMPLE_COUNT":200,"SLEEP_TIME":0.5},"name":"1","only_self_usage":false,"standby_power":0.376,"standby_power_on":0.618,"author_info":{"name":"Michal Bartak","email":"michal.bartak@betsys.com","github":"michalk-k"},"id":"Shelly 1","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0.618,"sub_profile_count":0,"hash":"6d9a4453066a88081692d8357b6f9f6a"},{"aliases":["SHDM-1"],"calculation_strategy":"fixed","created_at":"2024-01-09T21:22:00Z","device_type":"smart_dimmer","discovery_by":"entity","measure_device":"Shelly PM Mini Gen3","measure_device_firmware":"20241011-114503/1.4.4-g6d2a586","measure_method":"manual","measure_settings":{"SAMPLE_COUNT":200,"SLEEP_TIME":0.5},"name":"Dimmer","only_self_usage":true,"standby_power":0.596,"author_info":{"name":"Michal Bartak","email":"michal.bartak@betsys.com","github":"michalk-k"},"id":"Shelly Dimmer","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":0,"hash":"f44d8e05094c014013e2ae3f937be8f9"},{"aliases":["S3SN-0024X"],"calculation_strategy":"fixed","created_at":"2025-01-27T11:56:26Z","description":"Shelly i4 device to connect simple switches or buttons to for input. This device does not itself contain a rely.","device_type":"generic_iot","discovery_by":"device","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"i4 Gen3","only_self_usage":true,"author_info":{"name":"CV","github":"dagobert"},"id":"Shelly I4 Gen3","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":3,"hash":"057df1bbd296dbdc05685aac4c733155"},{"aliases":["SHEM"],"calculation_strategy":"fixed","created_at":"2024-01-06T21:34:00Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"Shelly PM Mini Gen3","measure_device_firmware":"20241011-114503/1.4.4-g6d2a586","measure_method":"manual","measure_settings":{"SAMPLE_COUNT":200,"SLEEP_TIME":0.5},"name":"EM","only_self_usage":false,"standby_power":0.598,"standby_power_on":0.923,"author_info":{"name":"Michal Bartak","email":"michal.bartak@betsys.com","github":"michalk-k"},"id":"Shelly EM","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0.923,"sub_profile_count":0,"hash":"e60d8f81497d0351a43979a69dbe60df"},{"aliases":["S4SW-001P8EU","Shelly Mini1PMG4"],"calculation_strategy":"fixed","created_at":"2025-11-29T09:48:00Z","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_device_firmware":"20250520-083712/1.6.2-gc8a76e2","measure_method":"manual","measure_settings":{"SAMPLE_COUNT":200,"SLEEP_TIME":0.5},"name":"1PM Mini Gen4","only_self_usage":true,"author_info":{"name":"Michal Bartak","email":"michal.bartak@betsys.com","github":"michalk-k"},"id":"Shelly 1PM Mini Gen4","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":4,"hash":"010c07b5f801360e9324bdba0e2ad2c0"},{"aliases":["Shelly Plus Plug S V2","SNPL-00112EU","SNPL-10112EU"],"calculation_strategy":"fixed","created_at":"2024-12-01T18:36:00Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"GW Instek GPM-8310","measure_method":"manual","name":"Plus Plug S","only_self_usage":true,"standby_power":0.74,"standby_power_on":1.01,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"shelly plus plug s","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":1.01,"sub_profile_count":0,"hash":"5e007cc73ff7134e458e1657b1b3d98a"},{"name":"Plus 2PM","aliases":["SNSW-102P16EU","Shelly Plus2PM","Plus 2PM UL","SNSW-002P15UL"],"calculation_strategy":"multi_switch","created_at":"2025-01-12T21:46:00Z","device_type":"smart_switch","discovery_by":"device","measure_device":"Shelly PM Mini Gen3","measure_device_firmware":"20250924-062710/1.7.1-gd336f31","measure_method":"manual","measure_settings":{"SAMPLE_COUNT":200,"SLEEP_TIME":0.5},"only_self_usage":true,"standby_power":0.822,"multi_switch_config":{"power":0.145},"author_info":{"name":"Michal Bartak","email":"michal.bartak@betsys.com","github":"michalk-k"},"id":"Shelly Plus 2PM","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":null,"sub_profile_count":16,"hash":"4ee5977add7c2d714ddc47766fc51124"},{"aliases":["SHEM-3"],"calculation_strategy":"fixed","created_at":"2024-12-01T18:27:00Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"GW Instek GPM-8310","measure_method":"manual","name":"3EM","only_self_usage":true,"standby_power":1.22,"standby_power_on":1.22,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"Shelly 3EM","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":1.22,"sub_profile_count":0,"hash":"f27533b6db83c119d9fb9f767273a6ee"},{"aliases":["S3SW-001X8EU"],"calculation_strategy":"fixed","created_at":"2025-02-23T11:56:26Z","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"1 Mini Gen3","author_info":{"name":"CV","github":"dagobert"},"id":"Shelly 1 mini gen3","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":3,"hash":"bb1079f8e5fbd25b75408253720439c2"},{"aliases":["SHPLG-S"],"calculation_strategy":"fixed","created_at":"2025-06-07T00:00:00Z","device_type":"smart_switch","discovery_by":"entity","measure_device":"Brennenstuhl EM 231-A","measure_method":"manual","name":"Plug S","only_self_usage":true,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"shelly plug s","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":2,"hash":"67bcbb8c7691626dc78afa38d551f71e"},{"aliases":["SNPL-00116US"],"calculation_strategy":"lut","created_at":"2025-07-15T04:34:00Z","device_type":"smart_switch","discovery_by":"entity","linked_profile":"shelly/shelly plus plug s","measure_device":"Aeotec ZWA023","measure_method":"script","name":"Plus Plug US","author_info":{"name":"Josh Barnard","github":"barndawgie"},"id":"Shelly Plus Plug US","manufacturer":"shelly","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":0,"hash":"51d790a5b877ba2aadd4831b150925ce"}],"device_types":["generic_iot","smart_switch","light","power_meter","smart_dimmer"]},{"aliases":["tuya"],"name":"lindby","full_name":"Lindby","dir_name":"lindby","models":[{"calculation_strategy":"lut","created_at":"2025-04-29T04:51:37Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.11:docker"},"name":"Dimmable CCT LED Light Bulb, E27 (10 W)","standby_power":0.38,"author_info":{"name":"Jort","github":"JortvanSchijndel"},"id":"9971013","manufacturer":"lindby","updated_at":"2026-07-18T07:09:16","max_power":9.95,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"68adb997909454a17d2b02ad4f1b49e3"}],"device_types":["light"]},{"aliases":["3a smarthome","3A Smart Home DE","3a Smarthome"],"name":"3a smarthome","full_name":"3A Smart Home","dir_name":"3a smarthome","models":[{"calculation_strategy":"lut","created_at":"2022-09-20T11:51:15Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.25.5:docker"},"name":"Smart Nue ZigBee 12W RGBW downlight","standby_power":0.72,"author_info":{"name":"Joshua Rich","email":"joshua.rich@gmail.com","github":"joshuar"},"id":"LXT56-LS27LX1.7","manufacturer":"3a smarthome","updated_at":"2026-07-18T07:09:16","max_power":11.41,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"df485b4c665bf1f9c7a3950546da58af"},{"calculation_strategy":"linear","created_at":"2024-12-13T16:30:00Z","device_type":"smart_dimmer","measure_device":"Shelly PM Mini Gen3","measure_method":"manual","name":"Smart Light Dimmer","standby_power":1,"standby_power_on":1,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LXN56-DC27LX1.1","manufacturer":"3a smarthome","updated_at":"2026-07-10T07:54:55","max_power":1,"sub_profile_count":0,"hash":"d7e43cbd2594dba903b0bf667d6a9c83"},{"calculation_strategy":"lut","created_at":"2023-12-06T18:41:16Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.8:docker"},"name":"Smart Nue ZigBee 9W RGBW downlight","standby_power":0.64,"author_info":{"name":"Erhan Cakirman","github":"ecakirman"},"id":"LXN60-LS27-Z30","manufacturer":"3a smarthome","updated_at":"2026-07-18T07:09:16","max_power":10.49,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"2e33128a84a0bd3e45411a5ba57b9f9d"},{"calculation_strategy":"linear","created_at":"2024-12-13T16:30:00Z","device_type":"smart_dimmer","measure_device":"Shelly PM Mini Gen3","measure_method":"manual","name":"Smart Light Dimmer","standby_power":1.1,"standby_power_on":1.1,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"LXN56-DC27LX1.3","manufacturer":"3a smarthome","updated_at":"2026-07-10T07:54:55","max_power":1.1,"sub_profile_count":0,"hash":"68e6d5fdff0bb1e6653d2ffc199aaafc"}],"device_types":["light","smart_dimmer"]},{"aliases":[],"name":"eve","full_name":"Eve","dir_name":"eve","models":[{"aliases":["20ECF6001","20EBO8301","20ECL1301","20EBT8601","20EBU4101","80"],"calculation_strategy":"fixed","created_at":"2025-01-19T12:28:06Z","device_type":"smart_switch","measure_device":"TP-Link Kasa KP125M","measure_method":"manual","name":"Energy (Matter) Smart Plug","only_self_usage":true,"standby_power":0.4,"standby_power_on":0.9,"author_info":{"name":"dxmnkd316","github":"dxmnkd316"},"id":"20EBU4101","manufacturer":"eve","updated_at":"2026-07-10T07:54:55","max_power":0.9,"sub_profile_count":0,"hash":"a6cee3dd90cdc72584b66ee5e90963e1"}],"device_types":["smart_switch"]},{"aliases":["Xiaomi","LUMI"],"name":"aqara","full_name":"Aqara","dir_name":"aqara","models":[{"aliases":["Aqara Smart Plug EU"],"calculation_strategy":"fixed","created_at":"2023-12-17T16:08:15Z","device_type":"smart_switch","measure_device":"Zhurui PR10","measure_method":"manual","name":"Smart Plug EU","only_self_usage":true,"standby_power":0.17,"standby_power_on":0.46,"author_info":{"name":"BenRoe","github":"BenRoe"},"id":"lumi.plug.maeu01","manufacturer":"aqara","updated_at":"2026-07-10T07:54:55","max_power":0.46,"sub_profile_count":0,"hash":"5d3fabff5f5dca901f86861051ea35f7"},{"aliases":["6145"],"calculation_strategy":"lut","created_at":"2026-02-16T06:45:36Z","device_type":"light","measure_device":"Shelly Plug US Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.5:docker"},"name":"LED Bulb T2 (E26, RGB, CCT)","standby_power":0.14,"author_info":{"name":"pinkfin","github":"pinkfin","email":"hot.wire1618@fastmail.com"},"id":"LB01D","manufacturer":"aqara","updated_at":"2026-07-18T07:09:16","max_power":10.54,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"3a52ba883476f1a31bdd8c590d439da0"},{"aliases":["Aqara LED Light Bulb T1"],"calculation_strategy":"lut","created_at":"2025-12-01T13:43:17Z","device_type":"light","measure_device":"TP-Link Tapo P115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":10,"VERSION":"v1.19.1:docker"},"name":"LED Light Bulb T1","standby_power":0.4,"author_info":{"name":"Eduard Kutuev","email":"ed@napych.com","github":"napych"},"id":"AL039","manufacturer":"aqara","updated_at":"2026-07-18T07:09:16","max_power":8.5,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"e85b1e1cf99367f3a291de7130715a3c"},{"calculation_strategy":"lut","created_at":"2025-10-18T22:51:14Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":4,"SLEEP_TIME":3,"VERSION":"v1.17.24:docker"},"name":"LED Light Bulb T2 (GU10, CCT) (Color: White, SKU: AL230GLW02, model: LB-L03E, 4.9 W, 100-240 V, 50/60 Hz, 450 lm @ 2700K, CRI: 90, beam angle: 50°)","standby_power":0.39,"author_info":{"name":"schuppan","github":"schuppan"},"id":"lumi.light.agl006","manufacturer":"aqara","updated_at":"2026-07-18T07:09:16","max_power":5.14,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"df17b4bc40802bdded961725d6c986d9"},{"calculation_strategy":"lut","created_at":"2025-01-18T11:56:26Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.1:docker"},"name":"Ceiling light T1M","standby_power":0.18,"author_info":{"name":"CV","github":"dagobert"},"id":"CL-L02D","manufacturer":"aqara","updated_at":"2026-07-18T07:09:16","max_power":30.1,"sub_profile_count":2,"color_modes":["hs","color_temp"],"hash":"e533ca05abbab3a232c83aa4fac2142d"},{"calculation_strategy":"fixed","created_at":"2026-02-12T15:06:00Z","device_type":"generic_iot","discovery_by":"device","measure_device":"Shelly Plus 1PM Gen4","measure_method":"manual","name":"Presence Sensor FP2","aliases":["PS-S02D"],"author_info":{"name":"Thorsten Niemann","email":"ThorstenNiemann.TN@gmail.com","github":"Thorsten1982"},"id":"PS-S020E","manufacturer":"aqara","updated_at":"2026-07-10T07:54:55","max_power":1.7,"sub_profile_count":0,"hash":"6082a3d6077b4ed70ca8dd9018726369"},{"calculation_strategy":"lut","created_at":"2021-11-20T19:46:07Z","device_type":"light","measure_device":"Shelly Plug E","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":12,"VERSION":"v0.10.4"},"name":"LED light bulb (tunable white)","standby_power":0.41,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"ZNLDP12LM","manufacturer":"aqara","updated_at":"2026-07-18T07:09:16","max_power":8.9,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"23692a52279f05920659389d96ddeabc"}],"device_types":["smart_switch","light","generic_iot"]},{"aliases":[],"name":"vesync","full_name":"VeSync","dir_name":"vesync","models":[{"calculation_strategy":"fixed","created_at":"2026-06-01T00:00:00Z","device_type":"fan","measure_device":"SONOFF S60ZBTPF","measure_method":"manual","name":"Core 300S Series Air Purifier","standby_power":0.5,"author_info":{"name":"SH1FT-W","github":"SH1FT-W","email":"danielvizzino@outlook.com"},"id":"Core300S","manufacturer":"vesync","updated_at":"2026-07-10T07:54:55","max_power":37,"sub_profile_count":0,"hash":"680e5f9a651430773b966339ba7ae037"},{"calculation_strategy":"fixed","created_at":"2026-06-01T00:00:00Z","device_type":"fan","measure_device":"SONOFF S60ZBTPF","measure_method":"manual","name":"Core 200S Series Air Purifier","standby_power":0.6,"author_info":{"name":"SH1FT-W","github":"SH1FT-W","email":"danielvizzino@outlook.com"},"id":"Core200S","manufacturer":"vesync","updated_at":"2026-07-10T07:54:55","max_power":39,"sub_profile_count":0,"hash":"46c5c65c5960eb7c95dd508184c88f9e"}],"device_types":["fan"]},{"aliases":[],"name":"netatmo","full_name":"Netatmo","dir_name":"netatmo","models":[{"created_at":"2025-05-01T21:56:26Z","measure_method":"script","measure_settings":{"VERSION":"v1.17.11:docker"},"measure_device":"Shelly PM Mini Gen3","name":"Smart Indoor Air Quality Monitor","discovery_by":"device","aliases":["Smart Indoor Air Quality Monitor"],"device_type":"generic_iot","only_self_usage":true,"calculation_strategy":"fixed","standby_power":0.43,"author_info":{"name":"Largelos","github":"Largelos"},"id":"indoor_air_quality_monitor","manufacturer":"netatmo","updated_at":"2026-07-10T07:54:55","max_power":0,"sub_profile_count":0,"hash":"fd41dc01e7b45f42fc756d812e82af43"}],"device_types":["generic_iot"]},{"aliases":["GreenWave Reality Inc."],"name":"greenwave","full_name":"GreenWave","dir_name":"greenwave","models":[{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"Fibaro FGWP102","measure_method":"manual","name":"PowerNode Z-Wave Smart Plug (1-port)","only_self_usage":true,"standby_power":0.3,"standby_power_on":1.1,"author_info":{"name":"Bram Gerritsen","email":"bgerritsen@gmail.com","github":"bramstroker"},"id":"GWPN1","manufacturer":"greenwave","updated_at":"2026-07-10T07:54:55","max_power":1.1,"sub_profile_count":0,"hash":"8168a609fcaa189baa55c28f78504286"}],"device_types":["smart_switch"]},{"aliases":[],"name":"wiz","full_name":"Wiz","dir_name":"wiz","models":[{"calculation_strategy":"lut","created_at":"2023-08-10T08:41:48Z","device_type":"light","measure_device":"Kasa EP25","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.8.1:docker"},"name":"SHTW","standby_power":0.21,"author_info":{"name":"Joseph Livecchi","email":"joewashear007@gmail.com","github":"joewashear007"},"id":"SHTW","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":6.59,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"9c7372f5260c481ddd964a787c727eb6"},{"aliases":["SHDW1"],"calculation_strategy":"lut","created_at":"2022-08-21T08:18:17Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.24.8:docker"},"name":"Smart Wi-Fi LED Light Bulb (dimmable, soft white)","standby_power":0.42,"author_info":{"name":"Emory Penney","email":"emory.j.penney@intel.com","github":"ejpenney"},"id":"9290022650","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":8.41,"sub_profile_count":0,"color_modes":["brightness"],"hash":"39ed51b2e3f96bb81c5f610cd4aa6ed3"},{"calculation_strategy":"lut","created_at":"2025-10-28T04:32:28Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":4,"SLEEP_TIME":3,"VERSION":"v1.17.24:docker"},"name":"Smart Bulb A80 E27 922-65 RGB (type SHRGB, model 8719514554634, 18.5 W, 220-240 V, 50/60 Hz, 2452 lm @ 4000K, CRI: 90, beam angle: 360°)","standby_power":0.31,"author_info":{"name":"schuppan","github":"schuppan"},"id":"SHRGB","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":18.02,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"23b49268a0fb9722bc7846863b36d808"},{"calculation_strategy":"lut","created_at":"2022-12-20T18:57:50Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"master"},"name":"WiZ Bulb A67 E27 RGBWW (type SHRGBW, model 9290024497A, 13 W 220-240 V, 1521 lm)","standby_power":0.33,"author_info":{"name":"Jari Eskelinen","email":"jari.eskelinen@iki.fi","github":"jarpatus"},"id":"SHRGBW","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":11.97,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"498c9278ede7d57a6e8c58b3acf6f702"},{"calculation_strategy":"lut","created_at":"2022-07-22T08:24:09Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"master"},"name":"Filament ST19 E26 Transparent (3.8W 120V)","standby_power":0.38,"author_info":{"name":"dsolva","email":"diego_10sv@hotmail.com","github":"dsolva"},"id":"9290022662","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":4.64,"sub_profile_count":0,"color_modes":["brightness"],"hash":"e383f6f1c86cefbed49d5703365f1a18"},{"calculation_strategy":"lut","created_at":"2022-12-20T18:57:50Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"master"},"name":"Bulb A67 E27 Tunable White (type SHTW1W, model 9290024496, 13 W 220-240 V, 1521 lm)","standby_power":0.13,"author_info":{"name":"Jari Eskelinen","email":"jari.eskelinen@iki.fi","github":"jarpatus"},"id":"SHTW1W","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":12.32,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"70d7028a338879c4e274d0edae4f1691"},{"aliases":["SHRGB"],"calculation_strategy":"lut","created_at":"2025-11-08T06:11:27Z","device_type":"light","measure_device":"Shelly 2.5","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.24:docker"},"name":"3.5 inch recessed downlight 8W","standby_power":0.2,"author_info":{"name":"Mike Debney","email":"mike.debney@outlook.com","github":"mike-debney"},"id":"WIZ294819","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":7.83,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"99dca90ea75a3537d014c0bb35f692bd"},{"calculation_strategy":"lut","created_at":"2022-12-20T18:57:50Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"master"},"name":"Bulb A67 E27 RGBWW (type SHRGB1W, model 9290024497, 13 W 220-240 V, 1521 lm)","standby_power":0.26,"author_info":{"name":"Jari Eskelinen","email":"jari.eskelinen@iki.fi","github":"jarpatus"},"id":"SHRGB1W","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":12.61,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"1526a165ae20b143c0b30c9aeed1377e"},{"calculation_strategy":"lut","created_at":"2025-10-10T17:24:09Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":4,"SLEEP_TIME":3,"VERSION":"v1.17.22:docker"},"name":"Philips Smart LED A67 E27 Tunable White 2700K-6500K (type SHTWW, model 9290024496A, 13 W, 220-240 V, 50/60 Hz, 1521 lm, beam angle: 360°)","standby_power":0.3,"author_info":{"name":"schuppan","github":"schuppan"},"id":"SHTWW","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":12.47,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"04acc75102276cdcece40ce3fd99790a"},{"calculation_strategy":"lut","created_at":"2022-07-22T08:24:09Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"master"},"name":"Smart Wi-Fi RGB + Tunable White LED Light Bulb (A19, 800 lm, 8.8 W)","standby_power":0.31,"author_info":{"name":"dsolva","email":"diego_10sv@hotmail.com","github":"dsolva"},"id":"9290022656","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":7.86,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"bbd7704cd89f7f34b7757a25a2976717"},{"calculation_strategy":"lut","created_at":"2022-12-20T18:57:50Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"master"},"name":"Bulb A67 E27 Tunable White (type SHTW1C, model 9290023835, 8 W 220-240 V, 806 lm)","standby_power":0.3,"author_info":{"name":"Jari Eskelinen","email":"jari.eskelinen@iki.fi","github":"jarpatus"},"id":"SHTW1C","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":7.85,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"9d0c8b91cf1d95f8dbcac5b7e8ebd7c4"},{"calculation_strategy":"lut","created_at":"2024-01-07T13:57:39Z","device_type":"light","measure_device":"Meross mss315","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":4,"VERSION":"v1.9.14:docker"},"name":"Smart Wi-Fi Full-Color RGB + Tunable White LED Light Bulb (A60, E27)","standby_power":0.11,"author_info":{"name":"htlemos","github":"htlemos"},"id":"9290036010","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":8.07,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"3ca2936490912380ac47f78b140c4cca"},{"calculation_strategy":"lut","created_at":"2022-07-11T18:57:12Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Full-Color Smart Wi-Fi LED Light Bulb (E27, RGB + Tunable White)","standby_power":0.96,"author_info":{"name":"ahartmanns","email":"a.hartmanns@utwente.nl","github":"ahartmanns"},"id":"9290023839","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":10.48,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"444b27f2a5c08439f00a61348d046d86"},{"calculation_strategy":"lut","created_at":"2023-04-29T09:47:02Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Bulb TW GU10 (type SHTWC, model 9290024483A, 4.7W 345 lumen 240V)","standby_power":0.3,"author_info":{"name":"Dieter","email":"dieter.kuhn@koeln.de","github":"dieterxy"},"id":"SHTWC","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":4.7,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"d6fb0c24a7510cb6cf1e0769f0b899bb"},{"calculation_strategy":"lut","created_at":"2024-01-07T13:54:56Z","device_type":"light","measure_device":"Meross mss315","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":4,"VERSION":"v1.9.14:docker"},"name":"Smart Wi-Fi RGB + Tunable White GU10 LED Spotlight Bulb (PAR16)","standby_power":0.17,"author_info":{"name":"htlemos","github":"htlemos"},"id":"9290024484A","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":4.55,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"95ecdb29b16aaa9b3e020304acdd150b"},{"calculation_strategy":"lut","created_at":"2024-06-10T05:56:15Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.12.6:docker"},"name":"Smart Wi-Fi Full-Color RGB + Tunable White LED Bulb (A80, E27, 18.5 W / 2452 lm)","standby_power":0.4,"author_info":{"name":"Cam Murray","email":"camurray@microsoft.com","github":"cammurray"},"id":"929003500001","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":7.09,"sub_profile_count":0,"color_modes":["hs"],"hash":"c1e719b6a177eecda17cd816e15d5d82"},{"calculation_strategy":"lut","created_at":"2022-07-22T08:24:09Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"master"},"name":"Smart GU10 Tunable-White CCT LED Spotlight (7 W)","standby_power":0.63,"author_info":{"name":"dsolva","email":"diego_10sv@hotmail.com","github":"dsolva"},"id":"7DGU10LEDCCTWVB-K","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":7.03,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"0d98a56b35d2f80c5386032f4a2bd036"},{"calculation_strategy":"composite","created_at":"2025-10-11T10:30:22Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":4,"SLEEP_TIME":3,"VERSION":"v1.17.22:docker"},"name":"Philips Smart LED A60 E27 RGB 2200K-6500K (type SHRGBC, model 9290023836AA, 8.5 W, 220-240 V, 50/60 Hz, 806 lm, beam angle: 360°)","standby_power":0.25,"author_info":{"name":"schuppan","github":"schuppan"},"id":"SHRGBC","manufacturer":"wiz","updated_at":"2026-07-18T07:09:16","max_power":null,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"9927d2ba8eccef5f1ece61cea8b61c37"}],"device_types":["light"]},{"aliases":["Third Reality, Inc"],"name":"third reality","full_name":"Third Reality","dir_name":"third reality","models":[{"calculation_strategy":"lut","created_at":"2025-06-02T23:18:14Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"v1.17.13:docker"},"name":"SMART COLOR BULB ZL1","standby_power":0.38,"author_info":{"name":"mdb17","email":"mdb17@live.com","github":"mdb17"},"id":"3RCB01057Z","manufacturer":"third reality","updated_at":"2026-07-18T07:09:16","max_power":8.86,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"89a5d864ee2d23b84988cc82e6f52005"}],"device_types":["light"]},{"aliases":[],"name":"ledworks","full_name":"Ledworks","dir_name":"ledworks","models":[{"calculation_strategy":"fixed","created_at":"2024-11-29T00:22:03Z","device_type":"light","measure_device":"Shelly 3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.15.5:docker"},"name":"Twinkly 600 String Lights","standby_power":2.2,"author_info":{"name":"brianegge","email":"brianegge@gmail.com","github":"brianegge"},"id":"TWS600STP","manufacturer":"ledworks","updated_at":"2026-07-10T07:54:55","max_power":37,"sub_profile_count":0,"hash":"22cf2ca19b6c01f36b89d218ec247088"}],"device_types":["light"]},{"aliases":["B&O","Beoplay"],"name":"bang olufsen","full_name":"Bang & Olufsen","dir_name":"bang olufsen","models":[{"aliases":["Beosound Emerge"],"calculation_strategy":"linear","created_at":"2026-01-29T11:53:36Z","device_type":"smart_speaker","description":"Beosound Emerge - Compact Wireless Speaker","measure_device":"Shelly Plug S Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":5,"VERSION":"master"},"name":"Beosound Emerge","standby_power":5,"author_info":{"name":"Steffen Brandsborg","github":"sbrandsborg"},"id":"Beosound Emerge","manufacturer":"bang olufsen","updated_at":"2026-07-18T07:09:16","max_power":24.55,"sub_profile_count":0,"hash":"260a14a63ade8b6306e64844cd80c8cd"},{"aliases":["6661 S53"],"calculation_strategy":"linear","created_at":"2026-01-29T07:14:10Z","device_type":"smart_speaker","description":"Beosound Edge - Multiroom speaker","measure_device":"Shelly Plug S Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":5,"VERSION":"master"},"name":"Beosound Edge","standby_power":2.4,"author_info":{"name":"Steffen Brandsborg","github":"sbrandsborg"},"id":"Beosound Edge","manufacturer":"bang olufsen","updated_at":"2026-07-18T07:09:16","max_power":36.6,"sub_profile_count":0,"hash":"7957e65d0cc3c08709514efa8a4be5dc"},{"aliases":["Beoplay M5"],"calculation_strategy":"linear","created_at":"2026-01-29T12:42:28Z","device_type":"smart_speaker","description":"Beoplay M5 - Powerful Wireless Speaker","measure_device":"Shelly Plug S Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":5,"VERSION":"master"},"name":"Beoplay M5","standby_power":3.2,"author_info":{"name":"Steffen Brandsborg","github":"sbrandsborg"},"id":"Beoplay M5","manufacturer":"bang olufsen","updated_at":"2026-07-18T07:09:16","max_power":20.3,"sub_profile_count":0,"hash":"e580e972034d20e2b122aa1a00a05760"},{"calculation_strategy":"linear","created_at":"2026-01-29T11:32:35Z","device_type":"smart_speaker","description":"Beosound Balance - Premium Wireless Speaker","measure_device":"Shelly Plug S Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":5,"VERSION":"master"},"name":"Beosound Balance","standby_power":3.8,"author_info":{"name":"Steffen Brandsborg","github":"sbrandsborg"},"id":"Beosound Balance","manufacturer":"bang olufsen","updated_at":"2026-07-18T07:09:16","max_power":97.95,"sub_profile_count":0,"hash":"80ede5db7efcd4a616e0c043e878430a"}],"device_types":["smart_speaker"]},{"aliases":[],"name":"harman kardon","full_name":"Harman Kardon","dir_name":"harman kardon","models":[{"aliases":["HK Citation One"],"calculation_strategy":"linear","created_at":"2023-11-01T15:32:57Z","device_type":"smart_speaker","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.6:docker"},"name":"Citation One MKII","standby_power":2.01,"author_info":{"name":"Imperial-Guard","github":"Imperial-Guard"},"id":"HK Citation One MKII","manufacturer":"harman kardon","updated_at":"2026-07-18T07:09:16","max_power":6.71,"sub_profile_count":0,"hash":"449af22263b4c620d010f88ed8f604b2"},{"calculation_strategy":"linear","created_at":"2022-10-05T10:14:54Z","device_type":"smart_speaker","measure_device":"Shelly Plug S","measure_method":"manual","name":"Citation MultiBeam 700","standby_power":7.58,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"HK Citation MultiBeam 700","manufacturer":"harman kardon","updated_at":"2026-07-18T07:09:16","max_power":25.33,"sub_profile_count":0,"hash":"c48923aa7b1e4689dc421735bc854f79"}],"device_types":["smart_speaker"]},{"aliases":[],"name":"zengge","full_name":"Zengge","dir_name":"zengge","models":[{"calculation_strategy":"lut","created_at":"2023-07-22T18:25:43Z","device_type":"light","measure_device":"Kasa EP25","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.8.1:docker"},"name":"Bulb RGBCW","standby_power":0.56,"author_info":{"name":"Joseph Livecchi","email":"joewashear007@gmail.com","github":"joewashear007"},"id":"Bulb RGBCW (0x35)","manufacturer":"zengge","updated_at":"2026-07-18T07:09:16","max_power":6.59,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"16792c573676b2cb99ff7b0db02d07f6"}],"device_types":["light"]},{"aliases":["Google Inc."],"name":"google","full_name":"Google","dir_name":"google","models":[{"calculation_strategy":"linear","created_at":"2025-02-10T17:04:27Z","device_type":"smart_speaker","measure_device":"Nous A8T","measure_device_firmware":"EspHome","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.6:docker"},"name":"Home","standby_power":2,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"Home","manufacturer":"google","updated_at":"2026-07-18T07:09:16","max_power":3.69,"sub_profile_count":0,"hash":"fd8e769657a29d7cdf6612cf0a026da6"},{"calculation_strategy":"linear","created_at":"2023-04-08T08:07:56Z","device_type":"smart_speaker","measure_device":"Centralite 3200-Sgb","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"v1.4.0:docker"},"name":"Nest Audio","standby_power":1.8,"author_info":{"name":"sunjaxx","github":"sunjaxx"},"id":"Nest Audio","manufacturer":"google","updated_at":"2026-07-18T07:09:16","max_power":6,"sub_profile_count":0,"hash":"41a5a72323d679e642414a2c83f01590"},{"aliases":["Nest Wifi point"],"calculation_strategy":"linear","created_at":"2026-01-21T21:30:47Z","device_type":"generic_iot","measure_device":"TP-Link Tapo P110M","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":3,"VERSION":"v1.20.2:docker"},"name":"Nest Wifi Point","standby_power":3.71,"author_info":{"name":"Bob Shaker","email":"bobshaker1@gmail.com","github":"EpicBurrito"},"id":"Nest Wifi Point (H2E)","manufacturer":"google","updated_at":"2026-07-18T07:09:16","max_power":5.18,"sub_profile_count":0,"hash":"56b1e06ac0a2b385be67d963c57e6cc9"},{"calculation_strategy":"linear","created_at":"2023-03-24T08:27:29Z","device_type":"smart_speaker","measure_device":"Tuya","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.12:docker"},"name":"Nest Hub (2nd Gen)","standby_power":0.39,"author_info":{"name":"Patrik Malina","github":"patrik-malina"},"id":"Nest Hub 2gen","manufacturer":"google","updated_at":"2026-07-18T07:09:16","max_power":4.8,"sub_profile_count":0,"hash":"c4ea5391afd9b6dcf06a3663b7fc43b1"},{"aliases":["Google Home Mini"],"calculation_strategy":"linear","created_at":"2022-10-05T10:14:54Z","device_type":"smart_speaker","measure_device":"Shelly Plug S","measure_method":"manual","name":"Home Mini","standby_power":1.65,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"Home Mini (HOA)","manufacturer":"google","updated_at":"2026-07-18T07:09:16","max_power":2.49,"sub_profile_count":0,"hash":"de96e947740a7eb66b40b1fd1f3e3b29"},{"aliases":["Google Nest Mini"],"calculation_strategy":"linear","created_at":"2022-10-05T10:14:54Z","device_type":"smart_speaker","measure_device":"Shelly Plug S","measure_method":"manual","name":"Nest Mini","standby_power":1.65,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"Nest Mini (H2C)","manufacturer":"google","updated_at":"2026-07-18T07:09:16","max_power":3.66,"sub_profile_count":0,"hash":"23808ef9dea91d75ebebfb29be56d8d8"},{"calculation_strategy":"linear","created_at":"2025-01-08T16:05:27Z","device_type":"smart_speaker","measure_device":"Innr SP 242","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.16.7:docker"},"name":"Nest Hub Max","standby_power":2,"author_info":{"name":"Greg Hesp","email":"greg.hesp@gmail.com","github":"greghesp"},"id":"Home Hub Max","manufacturer":"google","updated_at":"2026-07-18T07:09:16","max_power":10.2,"sub_profile_count":0,"hash":"c36dd56898759d322879a19ccf8c62eb"}],"device_types":["smart_speaker","generic_iot"]},{"aliases":["mueller-licht","MLI"],"name":"mueller-licht","full_name":"Müller Licht","dir_name":"mueller-licht","models":[{"calculation_strategy":"lut","created_at":"2024-11-01T13:42:17Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.10:docker"},"name":"Tint GU10 spot white+color","standby_power":1.27,"author_info":{"name":"Amjad Saadeh","email":"amjad@saadeh.dev","github":"amjadsaadeh"},"id":"404005","manufacturer":"mueller-licht","updated_at":"2026-07-18T07:09:16","max_power":6.45,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f63f43f824239dcc78be7bf6e2e2178e"},{"calculation_strategy":"lut","created_at":"2021-08-21T07:43:16Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","name":"Tint GU10 Spot 350lm","standby_power":0.31,"author_info":{"name":"nepozs","email":"szopen@os.pl","github":"nepozs"},"id":"ZBT-ColorTemperature","manufacturer":"mueller-licht","updated_at":"2026-07-18T07:09:16","max_power":5.02,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"3eb3d98a99d6852a9f2ca0c244b31dcb"},{"calculation_strategy":"lut","created_at":"2022-06-01T20:01:14Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.20.3:docker"},"name":"GU10 Spot tint white","standby_power":0.33,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"43961","manufacturer":"mueller-licht","updated_at":"2026-07-18T07:09:16","max_power":4.94,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"8b8e5bc801e01b95d1dda18652d42699"},{"calculation_strategy":"lut","created_at":"2022-06-01T21:55:44Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.20.3:docker"},"name":"E27 Globe Gold","standby_power":0.26,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"45311","manufacturer":"mueller-licht","updated_at":"2026-07-18T07:09:16","max_power":4.49,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"545b7c70b4cef58bd21852e811f8ec15"},{"aliases":["45327"],"calculation_strategy":"lut","created_at":"2022-06-04T09:24:22Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.20.3:docker"},"name":"GU10 Spot white+color","standby_power":0.15,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"45318","manufacturer":"mueller-licht","updated_at":"2026-07-18T07:09:16","max_power":4.56,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"b9a2654fe542e8d6f39da202b08ba52a"},{"calculation_strategy":"lut","created_at":"2022-06-03T08:21:23Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.20.3:docker"},"name":"E14 Kerze white+color","standby_power":0.31,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"45328","manufacturer":"mueller-licht","updated_at":"2026-07-18T07:09:16","max_power":4.95,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"22f23ea8624c3370f1d1a9da0320641d"},{"calculation_strategy":"lut","created_at":"2022-06-05T10:30:58Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.20.3:docker"},"name":"E27 Bulb white+color","standby_power":0.43,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"45317","manufacturer":"mueller-licht","updated_at":"2026-07-18T07:09:16","max_power":9.2,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"30ba5605f81c629a91f1779a7dfb2445"},{"calculation_strategy":"lut","created_at":"2023-04-09T18:44:33Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.4.0:docker"},"name":"Tint LED-Kerzenform white+color","standby_power":0.38,"author_info":{"name":"ffm777","github":"ffm777"},"id":"404019","manufacturer":"mueller-licht","updated_at":"2026-07-18T07:09:16","max_power":6.68,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"4bdd5e7b0eadcf988f079d47248b762e"},{"aliases":["404094 (16W)"],"calculation_strategy":"lut","created_at":"2025-01-25T17:25:15Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.2:docker"},"name":"Tint Amela 30cm, white+ambiance (1800-6500K)","standby_power":0.3,"author_info":{"name":"Dr-Seltsam","email":"sebastian.jaekel@web.de","github":"Dr-Seltsam"},"id":"45727","manufacturer":"mueller-licht","updated_at":"2026-07-18T07:09:16","max_power":18.53,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"b6fedca1a8f65c3ac86bb237c6861c2d"},{"aliases":["Bulb white"],"calculation_strategy":"lut","created_at":"2025-11-28T07:12:17Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":3,"VERSION":"v1.19.0:docker"},"name":"Tint Amela 50 cm","standby_power":0.19,"author_info":{"name":"LtKowalski","github":"LtKowalski"},"id":"404095","manufacturer":"mueller-licht","updated_at":"2026-07-18T07:09:16","max_power":36.08,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"962a3797a7575db8f3f3f4e4c79598a4"}],"device_types":["light"]},{"aliases":[],"name":"bseed","full_name":"Bseed","dir_name":"bseed","models":[{"name":"Zigbee Switch 1 Gang","device_type":"smart_switch","calculation_strategy":"fixed","measure_device":"Shelly Plug S","measure_method":"script","created_at":"2026-07-27T15:17:25Z","standby_power":0.59,"author_info":{"name":"Maxik933","github":"Maxik933"},"id":"zigbee_switch_1_gang","manufacturer":"bseed","updated_at":"2026-07-27T17:21:03","max_power":0.89,"sub_profile_count":0,"hash":"fd96e3b1876e12c8e0866a8b7bfdf779"}],"device_types":["smart_switch"]},{"aliases":[],"name":"eq-3","full_name":"eQ-3","dir_name":"eq-3","models":[{"calculation_strategy":"fixed","created_at":"2025-02-04T18:37:40Z","description":"HomematicIP DIN rail mount smart switch. This model is configured only for standby power usage of the smart device itself. The connected device(s) power usage must be configured by the user since it is possible to connect anything to it.","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"HM-LC-Sw1-DR","standby_power":0.32,"standby_power_on":0.52,"author_info":{"name":"CV","github":"dagobert"},"id":"HM-LC-Sw1-DR","manufacturer":"eq-3","updated_at":"2026-07-10T07:54:55","max_power":0.52,"sub_profile_count":0,"hash":"2e15dc9433f33f6b453d845c04976285"},{"calculation_strategy":"fixed","created_at":"2025-02-04T18:37:40Z","description":"HomematicIP smart switch with power measurement integrated for outlets. This model is configured only for standby power usage of the smart device itself. The connected device(s) power usage is measured by the smart device.","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"HmIP-BSM","only_self_usage":true,"standby_power":0.2,"standby_power_on":0.2,"author_info":{"name":"CV","github":"dagobert"},"id":"HmIP-BSM","manufacturer":"eq-3","updated_at":"2026-07-10T07:54:55","max_power":0.2,"sub_profile_count":0,"hash":"d11201764cf86fc239e9b3bbdd6b0f6c"},{"calculation_strategy":"fixed","created_at":"2025-02-04T18:37:40Z","description":"HomematicIP wall socket smart switch with power measurement integrated. This model is configured only for standby power usage of the smart device itself. The connected device(s) power usage is measured by the smart device.","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"HmIP-PSM","only_self_usage":true,"standby_power":0.21,"standby_power_on":0.78,"author_info":{"name":"CV","github":"dagobert"},"id":"HmIP-PSM","manufacturer":"eq-3","updated_at":"2026-07-10T07:54:55","max_power":0.78,"sub_profile_count":0,"hash":"fedbbcd1b935bbb55dbc71a4bbee7501"},{"calculation_strategy":"fixed","created_at":"2024-09-06T18:37:40Z","description":"HomematicIP DIN rail mount smart switch with power measurement integrated for outlets. This model is configured only for standby power usage of the smart device itself. The connected device(s) power usage is measured by the smart device.","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"HM-ES-PMSw1-DR","only_self_usage":true,"standby_power":0.37,"standby_power_on":0.73,"author_info":{"name":"CV","github":"dagobert"},"id":"HM-ES-PMSw1-DR","manufacturer":"eq-3","updated_at":"2026-07-10T07:54:55","max_power":0.73,"sub_profile_count":0,"hash":"4b0463aa0d0439264a1335c4ba14acf1"},{"calculation_strategy":"linear","created_at":"2024-09-06T18:37:40Z","description":"HomematicIP flush mounted smart trailing edge dimmer. This model is configured only for standby power usage of the smart device itself. The connected device(s) power usage must be configured by the user since it is possible to connect anything to it.","device_type":"smart_dimmer","measure_device":"From manufacturer specifications","measure_method":"manual","name":"HmIP-FDT","standby_power":0.4,"standby_power_on":0.4,"author_info":{"name":"CV","github":"dagobert"},"id":"HmIP-FDT","manufacturer":"eq-3","updated_at":"2026-07-10T07:54:55","max_power":0.4,"sub_profile_count":0,"hash":"3c72a0bb0f48882f394c41b75f479b27"},{"calculation_strategy":"fixed","created_at":"2025-04-30T22:41:40Z","description":"Homematic smart switch. This model is configured only for standby power usage of the smart device itself. The connected device(s) power usage must be configured by the user since it is possible to connect anything to it.","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.11:docker"},"name":"HM-LC-Sw1PBU-FM","standby_power":0.83,"standby_power_on":1.42,"author_info":{"name":"zenzmatz","email":"eric.021292@gmail.com","github":"zenzmatz"},"id":"HM-LC-Sw1PBU-FM","manufacturer":"eq-3","updated_at":"2026-07-10T07:54:55","max_power":1.42,"sub_profile_count":0,"hash":"89a247ca52f073595e1de28ea03cd845"},{"calculation_strategy":"fixed","created_at":"2024-09-06T18:37:40Z","description":"HomematicIP flush mounted smart switch with power measurement integrated. This model is configured only for standby power usage of the smart device itself. The connected device(s) power usage is measured by the smart device.","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"HmIP-FSM","only_self_usage":true,"standby_power":0.2,"standby_power_on":0.74,"author_info":{"name":"CV","github":"dagobert"},"id":"HmIP-FSM","manufacturer":"eq-3","updated_at":"2026-07-10T07:54:55","max_power":0.74,"sub_profile_count":0,"hash":"888872180528d2ee928738a63dd9448e"},{"calculation_strategy":"linear","created_at":"2025-02-04T18:37:40Z","description":"HomematicIP smart trailing edge dimmer for outlets. This model is configured only for standby power usage of the smart device itself. The connected device(s) power usage must be configured by the user since it is possible to connect anything to it.","device_type":"smart_dimmer","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"HmIP-BDT","standby_power":0.36,"standby_power_on":0.41,"author_info":{"name":"CV","github":"dagobert"},"id":"HmIP-BDT","manufacturer":"eq-3","updated_at":"2026-07-10T07:54:55","max_power":0.41,"sub_profile_count":0,"hash":"b8e76d42c01e933803ec0574aac794c0"},{"calculation_strategy":"fixed","created_at":"2025-02-04T18:37:40Z","description":"HomematicIP flush mounted shutter actuator. This model is only configured to calculate the power usage of the smart actuator itself because the shutter motor connected is individual and can have different power draw even windows-by-window.","device_type":"cover","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"HmIP-FROLL","standby_power":0.12,"standby_power_on":0.2,"author_info":{"name":"CV","github":"dagobert"},"id":"HmIP-FROLL","manufacturer":"eq-3","updated_at":"2026-07-10T07:54:55","max_power":0.2,"sub_profile_count":3,"hash":"c9734bdad1e6a5b6743ae8cd4ccb9619"},{"calculation_strategy":"fixed","created_at":"2025-02-04T18:37:40Z","description":"HomematicIP flush mounted smart switch with power measurement integrated. This model is configured only for standby power usage of the smart device itself. The connected device(s) power usage is measured by the smart device.","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"HmIP-FSM16","only_self_usage":true,"standby_power":0.2,"standby_power_on":0.2,"author_info":{"name":"CV","github":"dagobert"},"id":"HmIP-FSM16","manufacturer":"eq-3","updated_at":"2026-07-10T07:54:55","max_power":0.2,"sub_profile_count":0,"hash":"e753620dc43c128e7a1214d5792922e6"},{"calculation_strategy":"fixed","created_at":"2025-02-04T18:37:40Z","description":"HomematicIP DIN rail mount smart switch. This model is configured only for standby power usage of the smart device itself. The connected device(s) power usage must be configured by the user since it is possible to connect anything to it.","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"VERSION":"v1.17.1:docker"},"name":"HmIP-DRSI1","standby_power":0.25,"standby_power_on":0.3,"author_info":{"name":"CV","github":"dagobert"},"id":"HmIP-DRSI1","manufacturer":"eq-3","updated_at":"2026-07-10T07:54:55","max_power":0.3,"sub_profile_count":0,"hash":"837fc51f27a454f7b77acb218357e46a"}],"device_types":["smart_switch","smart_dimmer","cover"]},{"aliases":[],"name":"lsc","full_name":"LSC","dir_name":"lsc","models":[{"manufacturer":"lsc","model":"3012586","name":"Frameless Ceiling Light","created_at":"2026-04-07T11:55:06Z","calculation_strategy":"lut","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":5,"VERSION":"master"},"standby_power":0.41,"author_info":{"name":"Rikopari","github":"Rikopari"},"id":"3012586","updated_at":"2026-07-18T07:09:16","max_power":19.7,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"b6d26acc077bb32813d55c4bb6a0386a"},{"aliases":["PAR16-GL-WIFILIC-TY-RGBCW"],"calculation_strategy":"lut","created_at":"2025-04-28T16:19:32Z","device_type":"light","measure_device":"Shelly Plus Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.11:docker"},"name":"Smart RGB-CCT GU10 LED Reflector Lamp","standby_power":1.13,"author_info":{"name":"Jort","github":"JortvanSchijndel"},"id":"970710","manufacturer":"lsc","updated_at":"2026-07-18T07:09:16","max_power":5.45,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"a70334ba1b9651e3e498fff89d5c54e8"},{"calculation_strategy":"lut","created_at":"2026-06-29T15:51:51Z","device_type":"light","measure_device":"Gosund SP1 v23","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v1.21.2:docker"},"name":"A60 RGB-CCT E27 806lm","standby_power":0.9,"author_info":{"name":"erdo","github":"erdoking","email":"erdo@ichalsroot.de"},"id":"970714","manufacturer":"lsc","updated_at":"2026-07-18T07:09:16","max_power":9.9,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"f96b3fd0e7606dc83212fb758a4a6811"}],"device_types":["light"]},{"aliases":[],"name":"everspring","full_name":"Everspring","dir_name":"everspring","models":[{"calculation_strategy":"fixed","created_at":"2022-09-06T08:26:19Z","device_type":"smart_switch","measure_device":"Fibaro FGWP102","measure_method":"manual","name":"Z-Wave On/Off Plug with Power Metering","only_self_usage":true,"standby_power":0.3,"standby_power_on":0.5,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"AN158","manufacturer":"everspring","updated_at":"2026-07-10T07:54:55","max_power":0.5,"sub_profile_count":0,"hash":"7d3db3edd5e076176952dc6b52e2efa8"}],"device_types":["smart_switch"]},{"aliases":[],"name":"ewelink","full_name":"eWeLink","dir_name":"ewelink","models":[{"calculation_strategy":"fixed","created_at":"2024-12-01T20:44:00Z","device_type":"smart_switch","measure_device":"Shelly PM Mini Gen3","measure_method":"manual","name":"Zigbee Smart Plug","only_self_usage":false,"standby_power":0.378,"standby_power_on":1.191,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"SA-003-Zigbee","manufacturer":"ewelink","updated_at":"2026-07-10T07:54:55","max_power":1.191,"sub_profile_count":0,"hash":"0615e739afd85ba489bcfbb3d032ed8e"}],"device_types":["smart_switch"]},{"aliases":["AwoX"],"name":"eglo","full_name":"EGLO","dir_name":"eglo","models":[{"aliases":["ESMLFzm_w6_Dimm"],"calculation_strategy":"lut","created_at":"2026-06-01T19:22:09Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":5,"SLEEP_TIME":3,"VERSION":"master"},"name":"connect.z Smart Home E27 LED filament light bulb, G125","standby_power":0.33,"author_info":{"name":"phoenixxx-1","github":"phoenixxx-1"},"id":"110288","manufacturer":"eglo","updated_at":"2026-07-18T07:09:16","max_power":4.22,"sub_profile_count":0,"color_modes":["brightness"],"hash":"5d4835c75e37ae6a398494d468295afa"},{"aliases":["33957"],"calculation_strategy":"lut","created_at":"2025-11-02T16:45:52Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.24:docker"},"name":"FUEVA-Z recessed light","standby_power":0.13,"author_info":{"name":"Tom Frenzel","email":"admin@tom-frenzel.de","github":"tomfrenzel"},"id":"FUEVA-Z","manufacturer":"eglo","updated_at":"2026-07-18T07:09:16","max_power":22.14,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"2fa6db2d346ca24c0bcb06f220edd130"},{"calculation_strategy":"lut","created_at":"2026-03-25T15:08:09Z","device_type":"light","measure_device":"Shelly PM Mini Gen3 ","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.9:docker"},"name":"LED light with color temperature","standby_power":0.05,"author_info":{"name":"rammstone83","github":"rammstone83"},"id":"33955","manufacturer":"eglo","updated_at":"2026-07-18T07:09:16","max_power":38.77,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"cef2758dd813fcbe79b08b7f2ebef076"},{"aliases":["33955"],"calculation_strategy":"lut","created_at":"2026-03-27T00:46:20Z","device_type":"light","measure_device":"Shelly PM Mini Gen3 ","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.9:docker"},"name":"Totari-Z 380 ceiling light","standby_power":0.22,"author_info":{"name":"tommials","github":"tommials"},"id":"Totari-Z 380","manufacturer":"eglo","updated_at":"2026-07-18T07:09:16","max_power":19.54,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"953c75af72e7d8c6a9fd53a7eafa9efc"}],"device_types":["light"]},{"aliases":["Shenzhen Qianyan Technology"],"name":"govee","full_name":"Govee","dir_name":"govee","models":[{"calculation_strategy":"lut","created_at":"2025-12-15T21:08:16Z","device_type":"light","measure_device":"Shelly 1PM Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.4:docker"},"name":"Smart Outdoor String Lights","standby_power":2.65,"author_info":{"name":"Thorsten1982","email":"ThorstenNiemann.TN@googlemail.com","github":"Thorsten1982"},"id":"H7021","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":20.4,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"9969116fcf0e2c677ed9f462a488d485"},{"calculation_strategy":"lut","created_at":"2025-02-11T20:22:23Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"String lights","standby_power":1.8,"author_info":{"name":"Chris Hallgren","email":"challgren@gmail.com","github":"challgren"},"id":"H7020","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":6.65,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"85ad74a054d172fb6b09dd0dc0b6d965"},{"calculation_strategy":"lut","created_at":"2026-06-30T04:03:04Z","device_type":"light","measure_device":"shelly","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":1,"VERSION":"v1.21.2:docker"},"name":"Govee ST19 Smart Edison Light Bulb E26","standby_power":0.5,"author_info":{"name":"Benjamin Pearce","github":"bcpearce","email":"admin@bcpearce.com"},"id":"H14C0","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":5.25,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"ef5b71b2a4a43bbbffd9472e5e74ffeb"},{"calculation_strategy":"lut","created_at":"2023-12-19T13:09:21Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":30,"VERSION":"v1.9.8:docker"},"name":"RGBICW Smart Corner Floor Lamp","standby_power":2.14,"author_info":{"name":"Sku1ly","github":"Sku1ly"},"id":"H6076","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":23.14,"sub_profile_count":0,"color_modes":["brightness","hs","color_temp"],"hash":"a23d75edfc1e7ea021bf5b515801268e"},{"calculation_strategy":"lut","created_at":"2025-12-29T22:45:08Z","device_type":"light","measure_device":"Shelly Plug S Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.0:docker"},"name":"Floor Lamp 2","standby_power":0.7,"author_info":{"name":"Udo Haß","email":"udo.hass@proton.me","github":"gobbli"},"id":"H607C","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":39,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"ed2a322331bde3233565c2b7edba4d92"},{"calculation_strategy":"lut","created_at":"2026-01-12T15:10:41Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"v1.20.2:docker"},"name":"Strip Light with Skyline Kit","standby_power":1.2,"author_info":{"name":"Jonas Dambacher","email":"j.dambacher@basecom.de","github":"jdambacher"},"id":"H61B8","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":35.15,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"c25658dea1e99f3bafd30b4424921fce"},{"calculation_strategy":"lut","created_at":"2026-01-11T14:01:42Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":2,"VERSION":"v1.20.2:docker"},"name":"Strip Light 2 Pro","standby_power":1.2,"author_info":{"name":"Jonas Dambacher","email":"j.dambacher@basecom.de","github":"jdambacher"},"id":"H61F5","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":36.45,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"e79272cccafb1637f34b0d271fa3e941"},{"calculation_strategy":"lut","created_at":"2025-12-20T22:56:04Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.5:docker"},"name":"Smart Bulb GU10","standby_power":0.27,"author_info":{"name":"Benjamin Neff","email":"benjamin@coding4coffee.ch","github":"SuperTux88"},"id":"H600D","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":4.47,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"ca1d2f637c3f7c1e3da7ccf36a0513fc"},{"calculation_strategy":"lut","created_at":"2025-12-05T03:49:20Z","measure_device":"Sonoff S31","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.1:docker"},"name":"Neon Rope Light","standby_power":2.67,"device_type":"light","author_info":{"name":"Minne","email":"fendersfolly@icloud.com","github":"miniminne"},"id":"H61A1","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":24.11,"sub_profile_count":0,"color_modes":["hs","effect"],"hash":"ceb603b38d6ba3905b3d3e1cf6738668"},{"calculation_strategy":"lut","created_at":"2022-10-16T16:46:33Z","device_type":"light","measure_device":"TP-Link Kasa KP115","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":10,"VERSION":"v0.26.1:docker"},"name":"Lyra RGBICWW Corner Floor Lamp","standby_power":1.78,"author_info":{"name":"sockmonkey0223","email":"joshua.oswald@gmail.com","github":"sockmonkey0223"},"id":"H6072","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":28.07,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"6196b0f9bc9639b3df34727d1c8e768d"},{"calculation_strategy":"lut","created_at":"2024-09-29T02:06:51Z","device_type":"light","measure_device":"Shelly 3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Smart LED Downlight","standby_power":0.85,"author_info":{"name":"Brian Egge","email":"brianegge@gmail.com","github":"brianegge"},"id":"H601C","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":13.15,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"a50be6e051607f64dde50a9cf3bbb0f7"},{"calculation_strategy":"lut","created_at":"2022-11-16T20:39:28Z","device_type":"light","measure_device":"Shelly 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.1.1:docker"},"name":"Glide Hexa Light Panels (10 panels)","standby_power":0.85,"author_info":{"name":"Kenneth Fribert","email":"fribse@gmail.com","github":"fribse"},"id":"H6061","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":23.75,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"7e1c0c1f4600a5b4fa5047aad3dab209"},{"calculation_strategy":"lut","created_at":"2025-12-29T22:45:08Z","device_type":"light","measure_device":"Shelly 1PM Mini Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.0:docker"},"name":"Smart Ceiling Light","standby_power":0.45,"author_info":{"name":"gobbli","github":"gobbli"},"id":"H60A1","manufacturer":"govee","updated_at":"2026-07-18T07:09:16","max_power":23.35,"sub_profile_count":0,"color_modes":["hs","effect","color_temp"],"hash":"516fe8e31f926892f942111bf547bd58"}],"device_types":["light"]},{"aliases":[],"name":"anko","full_name":"Anko","dir_name":"anko","models":[{"calculation_strategy":"lut","created_at":"2022-08-07T16:56:45Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.23.2:docker"},"name":"Smart String Lights","standby_power":1.09,"author_info":{"name":"Daniel O'Connor","email":"daniel.oconnor@gmail.com","github":"CloCkWeRX"},"id":"42997610","manufacturer":"anko","updated_at":"2026-07-18T07:09:16","max_power":3.7,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"db7ea5b32bece61daf917322d0975997"}],"device_types":["light"]},{"aliases":["_TZ3000_riwp3k79","_TZ3210_hxtfthp5","_TZ3000_quqaeew6","_TZ3000_th6zqqy6","_TZ3000_qd7hej8u","_TZ3000_riwp3k79","_TZ3000_oborybow"],"name":"lidl","full_name":"Lidl","dir_name":"lidl","models":[{"calculation_strategy":"lut","created_at":"2023-10-29T10:37:21Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.9.6:docker"},"name":"Melinera Christmas Lights","standby_power":0.47,"author_info":{"name":"Imperial-Guard","github":"Imperial-Guard"},"id":"HG06467","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":18.99,"sub_profile_count":0,"color_modes":["hs"],"hash":"582029f1a88fba3eb10117973dbabc7f"},{"calculation_strategy":"lut","created_at":"2024-12-01T07:57:42Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Livarno Home E27 9.5W RGB+CCT Bulb","standby_power":0.5,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"HG08131C","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":9.55,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"3b5a0d3052f1c069c35c2b8e5a06f385"},{"calculation_strategy":"lut","created_at":"2022-03-10T15:24:31Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":1,"VERSION":"master"},"name":"Livarno Lux E14 candle RGB","standby_power":0.38,"author_info":{"name":"Morten Trab","email":"morten@trab.dk","github":"MTrab"},"id":"HG07834B","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":6.51,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"b3c474acb124d43bff8d2f48d1eaa85d"},{"calculation_strategy":"lut","created_at":"2023-02-10T09:29:19Z","device_type":"light","measure_device":"Gosund SP1","measure_device_firmware":"Tasmota","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.3:docker"},"name":"Livarno Lux E27 bulb CCT","standby_power":0.31,"author_info":{"name":"Perfunctory85","github":"Perfunctory85"},"id":"HG06492C","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":9.3,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"36b1179ab86a3379c616c5d385dd9ddf"},{"calculation_strategy":"lut","created_at":"2026-03-14T15:06:04Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.9:docker"},"name":"Livarno Lux Ceiling Panel RGB+CCT","standby_power":0.2,"author_info":{"name":"rammstone83","github":"rammstone83"},"id":"399629_2110","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":36.95,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"c64877d7aca0986c281622453b010803"},{"calculation_strategy":"lut","created_at":"2024-12-07T03:20:34Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Livarno Home RGB+CCT LED light strip 2m","standby_power":0.33,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"HG06104A","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":18.25,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"dae7a9ebb8cf741ed618bb70a2d552af"},{"calculation_strategy":"lut","created_at":"2023-02-18T16:04:50Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.5:docker"},"name":"Livarno Lux LED Deckenleuchte (1400 lm) RGBCT","standby_power":0.2,"author_info":{"name":"vyruz1986","email":"alex.goris@fastlikehell.com","github":"vyruz1986"},"id":"HG08008","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":19.08,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"5dfedb830069b0f3a4bca4c69ff15d8d"},{"calculation_strategy":"lut","created_at":"2024-12-17T05:03:36Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Livarno Lux GU10 5W RGBCT Bulb","standby_power":0.39,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"HG08131A","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":5.78,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f98665d393d8f1412ed1521a2d8c463c"},{"calculation_strategy":"lut","created_at":"2024-10-14T11:07:29Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Livarno home Tischleuchte","standby_power":0.7,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"14158804L","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":10.54,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"b8d2e1dd7ec61dc5abb6b29c273a4bab"},{"calculation_strategy":"lut","created_at":"2024-12-07T16:56:30Z","device_type":"light","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Livarno Home E14 6W CCT Candle Bulb","standby_power":0.29,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"HG08130B","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":5.9,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"2fe010b09dc41b216360c36b435fa2ed"},{"calculation_strategy":"fixed","created_at":"2024-05-05T22:10:29Z","device_type":"smart_switch","measure_device":"Voltcraft VC270 with Voltcraft VC-510 and 20 windings","measure_method":"manual","name":"Silvercrest Smart Plug","only_self_usage":true,"standby_power":0.595,"standby_power_on":1.071,"author_info":{"name":"Panagiotis Doulgeris","github":"Pantastisch"},"id":"HG08673","manufacturer":"lidl","updated_at":"2026-07-10T07:54:55","max_power":1.071,"sub_profile_count":0,"hash":"e6551940195ea5d0d294002b5ce58663"},{"calculation_strategy":"lut","created_at":"2022-06-26T09:59:41Z","device_type":"light","measure_device":"Gosund SP111","measure_device_firmware":"Tasmota","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v0.22.0:docker"},"name":"Livarno Lux E27 filament bulb","standby_power":0.2,"author_info":{"name":"Stefan Gries","github":"stefangries"},"id":"HG06462A","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":7.35,"sub_profile_count":0,"color_modes":["brightness"],"hash":"d988306d6969b7945308a233fd37f261"},{"calculation_strategy":"lut","created_at":"2024-03-14T18:59:57Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":4,"SLEEP_TIME":5,"VERSION":"v1.10.0:docker"},"name":"Livarno Lux smart LED mood light","standby_power":0.2,"author_info":{"name":"martinkura-svk","github":"martinkura-svk"},"id":"14156506L","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":8.88,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"d2d72c34d4e2809d5fe0be3b42b5678c"},{"calculation_strategy":"lut","created_at":"2022-04-13T17:59:05Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.19.5:docker"},"name":"Livarno Lux E14 candle CCT","standby_power":0.31,"author_info":{"name":"Paul Mc Auley","email":"dev@roscarraig.com","github":"roscarraig"},"id":"HG06492B","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":5.99,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"23a1dd8d7f01482618f8e664de174c3f"},{"aliases":["TS0505B"],"calculation_strategy":"lut","created_at":"2023-03-01T21:41:09Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Livarno outdoor LED light chain","standby_power":0.36,"author_info":{"name":"mariwing","email":"mariwing@gmail.com","github":"mariwing"},"id":"HG08383A","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":7.11,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"dc2d2cf28e7750d95dd79191ac6695c2"},{"calculation_strategy":"lut","created_at":"2023-02-08T08:32:06Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":5,"VERSION":"v1.3.1:docker"},"name":"Livarno Lux GU10 spot RGB","standby_power":0.28,"author_info":{"name":"aqwserf","github":"aqwserf"},"id":"HG07834A","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":5.79,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f7cdf122918c494b7d3a88a70c85d35a"},{"calculation_strategy":"lut","created_at":"2024-08-11T14:22:26Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.14.0:docker"},"name":"Livarno Home outdoor LED band","standby_power":0.2,"author_info":{"name":"bragra","email":"bragragithub@gradussen.com","github":"bragra"},"id":"HG08007","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":26.65,"sub_profile_count":0,"color_modes":["hs"],"hash":"35cdb6394f83cecc04f0171f27085c95"},{"calculation_strategy":"lut","created_at":"2024-02-03T10:43:57Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.10.0:docker"},"name":"Livarno Lux E27 ST64 Filament Bulb","standby_power":0.3,"author_info":{"name":"bobsbrain","github":"bobsbrain"},"id":"HG06463A","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":6.36,"sub_profile_count":0,"color_modes":["brightness"],"hash":"058bffff28701dfb0add16a5e03d216a"},{"calculation_strategy":"lut","created_at":"2022-04-07T20:44:43Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.19.5:docker"},"name":"Livarno Lux E27 bulb RGB","standby_power":0.42,"author_info":{"name":"Paul Mc Auley","email":"dev@roscarraig.com","github":"roscarraig"},"id":"HG07834C","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":9.17,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f469c58f11333436fdc3ec49a47b93b6"},{"aliases":["TS0502A"],"calculation_strategy":"lut","created_at":"2023-03-03T10:22:44Z","device_type":"light","measure_device":"Shelly Plus 1PM","measure_method":"script","measure_settings":{"SAMPLE_COUNT":3,"SLEEP_TIME":3,"VERSION":"master"},"name":"Livarno Lux GU10 spot CCT","standby_power":0.45,"author_info":{"name":"Marc Geurts","email":"geurtsmarc@hotmail.com","github":"marcgeurts"},"id":"HG06492A","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":5.02,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"00fe247d8ae8359fdbeca7de2a1fd756"},{"calculation_strategy":"lut","created_at":"2024-11-12T10:52:57Z","device_type":"light","measure_device":"Shelly Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"master"},"name":"Livarno Lux E14 6.5W RGBCT Candle Bulb","standby_power":0.4,"author_info":{"name":"RubenKelevra","email":"cyrond@gmail.com","github":"RubenKelevra"},"id":"HG08131B","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":5.96,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"495fd88a7b428bd4d04b826e1002fe2a"},{"calculation_strategy":"lut","created_at":"2022-04-07T20:44:43Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.19.5:docker"},"name":"Livarno Lux E27 bulb RGB","standby_power":0.36,"author_info":{"name":"Paul Mc Auley","email":"dev@roscarraig.com","github":"roscarraig"},"id":"HG06106C","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":9.41,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"bc93738b319062d753a8696ab2f99aa7"},{"calculation_strategy":"lut","created_at":"2024-03-29T20:38:10Z","device_type":"light","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.11.3:docker"},"name":"Livarno Home LED floor lamp","standby_power":0.6,"author_info":{"name":"bragra","email":"bragragithub@gradussen.com","github":"bragra"},"id":"14158704L","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":26.5,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"94c323d8dd27315d09b60678b33e2b24"},{"calculation_strategy":"lut","created_at":"2025-12-12T02:44:50Z","device_type":"light","measure_device":"Shelly 1PM Gen4","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.19.2:docker"},"name":"Smart LED Mood Light","standby_power":0.05,"author_info":{"name":"Thorsten1982","email":"ThorstenNiemann.TN@googlemail.com","github":"Thorsten1982"},"id":"IAN-365267_2101","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":8.24,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f23b7ea90d12de940f1da568e76cd782"},{"calculation_strategy":"lut","created_at":"2024-02-03T09:39:50Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.10.0:docker"},"name":"Livarno Lux GU10 4.5W RGBCT Bulb","standby_power":0.36,"author_info":{"name":"bobsbrain","github":"bobsbrain"},"id":"HG06106A","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":5.42,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"7c0a635a32f2ef8fc0c4bed259734866"},{"calculation_strategy":"lut","created_at":"2023-02-08T01:57:00Z","device_type":"light","measure_device":"Shelly Plug E","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.3.3:docker"},"name":"Livarno Lux LED-Außenstrahler (3000 lm) RGBCT","standby_power":0.58,"author_info":{"name":"Stefan Gries","github":"stefangries"},"id":"HG08010","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":27.51,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"e85b39fe0f1f8bdda4e117f8195f1aea"},{"calculation_strategy":"lut","created_at":"2022-04-13T17:59:05Z","device_type":"light","measure_device":"TP-Link Kasa HS110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":1,"SLEEP_TIME":2,"VERSION":"v0.19.5:docker"},"name":"Livarno Lux E14 candle RGB","standby_power":0.29,"author_info":{"name":"Paul Mc Auley","email":"dev@roscarraig.com","github":"roscarraig"},"id":"HG06106B","manufacturer":"lidl","updated_at":"2026-07-18T07:09:16","max_power":6.41,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"9c321d5074356f701eaf7eea1d21b15a"}],"device_types":["light","smart_switch"]},{"aliases":["Music Assistant"],"name":"sonos","full_name":"Sonos","dir_name":"sonos","models":[{"calculation_strategy":"linear","created_at":"2025-08-30T16:35:25Z","device_type":"smart_speaker","measure_device":"Shelly Plus Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.19:docker"},"name":"Five","standby_power":3.05,"author_info":{"name":"Josh Barnard","github":"barndawgie"},"id":"five","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":76.31,"sub_profile_count":0,"hash":"7db5b65444cde2f2af0d0ad57e75208a"},{"aliases":["Playbar"],"calculation_strategy":"linear","created_at":"2023-04-14T16:03:13Z","device_type":"smart_speaker","measure_device":"ZOOZ Z-WAVE PLUS S2 POWER STRIP ZEN20 VER. 3.0","measure_method":"script","name":"Playbar","standby_power":5.2,"author_info":{"name":"alvinchen1","github":"alvinchen1"},"id":"playbar","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":26.9,"sub_profile_count":0,"hash":"7ae3bdb84e7238d426d67446f2ccba47"},{"calculation_strategy":"linear","created_at":"2023-04-03T20:55:15Z","device_type":"smart_speaker","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":1,"VERSION":"v1.3.13:docker"},"name":"Amp","standby_power":6.42,"author_info":{"name":"vandalon","email":"joris@vandalon.nl","github":"vandalon"},"id":"amp","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":77.12,"sub_profile_count":0,"hash":"8b328bee8e3d88033ad0cd9796ca9825"},{"calculation_strategy":"fixed","created_at":"2022-12-15T08:25:42Z","device_type":"smart_speaker","measure_device":"TP-Link Kasa KP115","measure_method":"script","name":"Connect","standby_power":5,"author_info":{"name":"krazos","email":"krazos@gmail.com","github":"krazos"},"id":"connect","manufacturer":"sonos","updated_at":"2026-07-10T07:54:55","max_power":5.33,"sub_profile_count":0,"hash":"c8180ecc2d82a31aaf72afd371d62b77"},{"calculation_strategy":"linear","created_at":"2026-04-17T09:30:48Z","device_type":"smart_speaker","measure_device":"Shelly PM Mini Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.20.12:docker"},"name":"Ray","standby_power":2.92,"author_info":{"name":"Tim","github":"EinRainerZufall"},"id":"ray","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":8.74,"sub_profile_count":0,"hash":"eb3726b5a3d13d6d3f440ff1d4f87586"},{"calculation_strategy":"linear","created_at":"2024-03-16T10:14:55Z","device_type":"smart_speaker","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.10.0:docker"},"name":"SYMFONISK Floor lamp","standby_power":2.75,"author_info":{"name":"martinkura-svk","github":"martinkura-svk"},"id":"symfonisk floor lamp","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":9.5,"sub_profile_count":0,"hash":"418d4478d3e6efe2af9750b8603c76b6"},{"aliases":["Play:1"],"calculation_strategy":"linear","created_at":"2023-04-14T16:03:04Z","device_type":"smart_speaker","measure_device":"ZOOZ Z-WAVE PLUS S2 POWER STRIP ZEN20 VER. 3.0","measure_method":"script","name":"Play:1","standby_power":3.31,"author_info":{"name":"alvinchen1","github":"alvinchen1"},"id":"play 1","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":11.4,"sub_profile_count":0,"hash":"0970e0db4901f3bfc2da74931155b44c"},{"aliases":["Play:5","Five"],"calculation_strategy":"linear","created_at":"2024-03-30T13:51:13Z","device_type":"smart_speaker","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.11.3:docker"},"name":"Play:5","standby_power":2.15,"author_info":{"name":"bragra","email":"bragragithub@gradussen.com","github":"bragra"},"id":"play 5","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":51.73,"sub_profile_count":0,"hash":"b301e2722de9bdc56e659277f1a30817"},{"calculation_strategy":"linear","created_at":"2023-04-03T20:55:15Z","device_type":"smart_speaker","measure_device":"Shelly Plug S","measure_method":"manual","name":"Sub (Gen1)","standby_power":5.23,"author_info":{"name":"vandalon","email":"joris@vandalon.nl","github":"vandalon"},"id":"sub","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":30,"sub_profile_count":0,"hash":"93eb5f5e192dcbd99cb276e9b33e9ce8"},{"calculation_strategy":"linear","created_at":"2025-08-30T17:48:07Z","device_type":"smart_speaker","measure_device":"Shelly Plus Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.19:docker"},"name":"Era 300","standby_power":1.8,"author_info":{"name":"Josh Barnard","github":"barndawgie"},"id":"Era 300","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":49.17,"sub_profile_count":0,"hash":"631e67ac76426a46cda72f6984e20237"},{"aliases":["SYMFONISK Picture frame"],"calculation_strategy":"linear","created_at":"2022-11-10T09:06:49Z","device_type":"smart_speaker","measure_device":"TP-Link Kasa KP115","measure_method":"manual","name":"SYMFONISK Picture Frame","standby_power":2.4,"author_info":{"name":"sockmonkey0223","email":"joshua.oswald@gmail.com","github":"sockmonkey0223"},"id":"symfonisk picture frame","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":5.65,"sub_profile_count":0,"hash":"0ae4b27a55048e835a102ef19724296f"},{"calculation_strategy":"linear","created_at":"2024-03-30T12:45:23Z","device_type":"smart_speaker","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.11.3:docker"},"name":"SYMFONISK Table lamp","standby_power":2.6,"author_info":{"name":"bragra","email":"bragragithub@gradussen.com","github":"bragra"},"id":"symfonisk table lamp","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":10.49,"sub_profile_count":0,"hash":"e8390a90b6c7c7591fe016fa9e07ff2d"},{"calculation_strategy":"linear","created_at":"2025-08-30T16:58:16Z","device_type":"smart_speaker","measure_device":"Shelly Plus Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.19:docker"},"name":"Arc Ultra","standby_power":4.45,"author_info":{"name":"Josh Barnard","github":"barndawgie"},"id":"arc ultra","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":28.14,"sub_profile_count":0,"hash":"e1e48ff94e7384e294ecc50a5ef1467d"},{"aliases":["Beam"],"calculation_strategy":"linear","created_at":"2024-06-07T12:11:13Z","device_type":"smart_speaker","measure_device":"ZOOZ Z-WAVE PLUS S2 POWER STRIP ZEN20 VER. 3.0","measure_method":"script","name":"Beam","standby_power":6,"author_info":{"name":"alvinchen1","github":"alvinchen1"},"id":"beam","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":23.6,"sub_profile_count":0,"hash":"986f81d918aa409b3aa54d26429a73e6"},{"aliases":["Play:3"],"calculation_strategy":"linear","created_at":"2022-11-20T21:17:05Z","device_type":"smart_speaker","measure_device":"TP-Link Kasa KP115","measure_method":"script","name":"Play:3","standby_power":4.17,"author_info":{"name":"krazos","email":"krazos@gmail.com","github":"krazos"},"id":"play 3","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":13.27,"sub_profile_count":0,"hash":"87da252426f8edf628d2de55aab8d731"},{"calculation_strategy":"linear","created_at":"2023-04-03T20:55:15Z","device_type":"smart_speaker","measure_device":"Shelly Plug S","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":1,"VERSION":"v1.3.13:docker"},"name":"Arc","standby_power":4.4,"author_info":{"name":"vandalon","email":"joris@vandalon.nl","github":"vandalon"},"id":"arc","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":45.34,"sub_profile_count":0,"hash":"65b3ccbbb8c60e3049f6da8ca1701d98"},{"calculation_strategy":"linear","created_at":"2024-06-07T12:44:29Z","device_type":"smart_speaker","measure_device":"Mylocalbytes, Type G","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.12.7:docker"},"name":"Era 100","standby_power":2,"author_info":{"name":"Sam Dunne","email":"sam@sam-dunne.com","github":"samdunne"},"id":"era 100","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":22.71,"sub_profile_count":0,"hash":"3a9d655f966a42f97489a5e8da340c82"},{"calculation_strategy":"linear","created_at":"2025-08-30T17:13:53Z","device_type":"smart_speaker","measure_device":"Shelly Plus Plug","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.17.19:docker"},"name":"Sub 4","standby_power":1.9,"author_info":{"name":"Josh Barnard","github":"barndawgie"},"id":"sub 4","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":17.06,"sub_profile_count":0,"hash":"a3ddc4ac577da9d6c99bf659151d1d8f"},{"aliases":["Sonos ONE"],"calculation_strategy":"linear","created_at":"2022-11-06T19:24:46Z","device_type":"smart_speaker","measure_device":"TP-Link Kasa HS110","measure_method":"manual","name":"One","standby_power":2.92,"author_info":{"name":"Thorjan Knudsvik","email":"t@knudsvik.com","github":"knudsvik"},"id":"one","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":14.43,"sub_profile_count":0,"hash":"20fc02a148fe90f5e17779160ece6acc"},{"aliases":["IKEA SYMFONISK Bookshelf"],"calculation_strategy":"linear","created_at":"2022-11-10T12:53:00Z","device_type":"smart_speaker","measure_device":"TP-Link Kasa HS110","measure_method":"manual","name":"SYMFONISK Bookshelf","standby_power":2.56,"author_info":{"name":"Thorjan Knudsvik","email":"t@knudsvik.com","github":"knudsvik"},"id":"symfonisk bookshelf","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":9.3,"sub_profile_count":0,"hash":"c85f150e8cced1842e6021f186d0a598"},{"aliases":["Playbase"],"calculation_strategy":"linear","created_at":"2023-04-07T17:05:01Z","device_type":"smart_speaker","measure_device":"ZOOZ Z-WAVE PLUS S2 POWER STRIP ZEN20 VER. 3.0","measure_method":"script","name":"Playbase","standby_power":2.9,"author_info":{"name":"alvinchen1","github":"alvinchen1"},"id":"playbase","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":34.5,"sub_profile_count":0,"hash":"d0556b8ba64d0d353180839cf858677b"},{"calculation_strategy":"linear","created_at":"2022-11-20T21:11:36Z","device_type":"smart_speaker","measure_device":"Shelly Plug US","measure_method":"script","name":"One SL","standby_power":2.83,"author_info":{"name":"Chris","github":"darthsebulba04"},"id":"one sl","manufacturer":"sonos","updated_at":"2026-07-18T07:09:16","max_power":15.53,"sub_profile_count":0,"hash":"60918b8212ec8f9fd658affb6f63fe16"}],"device_types":["smart_speaker"]},{"aliases":[],"name":"emos","full_name":"Emos","dir_name":"emos","models":[{"calculation_strategy":"lut","created_at":"2024-12-22T15:07:26Z","device_type":"light","measure_device":"Shelly Plug S Gen3","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":1,"VERSION":"v1.16.6:docker"},"name":"GOSMART A65 14W","standby_power":0.5,"author_info":{"name":"SamK","email":"samotion2@gmail.com","github":"samotion2"},"id":"ZQW516R","manufacturer":"emos","updated_at":"2026-07-18T07:09:16","max_power":13.85,"sub_profile_count":0,"color_modes":["hs","color_temp"],"hash":"f5ee1386299e3d0dd51043d56cd6f927"},{"calculation_strategy":"lut","created_at":"2024-03-01T21:31:06Z","device_type":"light","measure_device":"TP-Link Tapo P110","measure_method":"script","measure_settings":{"SAMPLE_COUNT":2,"SLEEP_TIME":3,"VERSION":"v1.10.6:docker"},"name":"GOSMART LED MR16 4,8W GU10","standby_power":0.24,"author_info":{"name":"Lacimaci78","github":"Lacimaci78"},"id":"ZQZ832R","manufacturer":"emos","updated_at":"2026-07-18T07:09:16","max_power":4.94,"sub_profile_count":0,"color_modes":["color_temp"],"hash":"bb56ab87837b0cdffc930c477b670603"}],"device_types":["light"]}]} \ No newline at end of file diff --git a/.storage/powercalc_profiles/wiz/SHRGB/model.json b/.storage/powercalc_profiles/wiz/SHRGB/model.json new file mode 100644 index 0000000..50835a4 --- /dev/null +++ b/.storage/powercalc_profiles/wiz/SHRGB/model.json @@ -0,0 +1,19 @@ +{ + "calculation_strategy": "lut", + "created_at": "2025-10-28T04:32:28Z", + "device_type": "light", + "measure_description": "Measured with utils/measure script", + "measure_device": "Shelly Plus Plug S", + "measure_method": "script", + "measure_settings": { + "SAMPLE_COUNT": 4, + "SLEEP_TIME": 3, + "VERSION": "v1.17.24:docker" + }, + "name": "Smart Bulb A80 E27 922-65 RGB (type SHRGB, model 8719514554634, 18.5 W, 220-240 V, 50/60 Hz, 2452 lm @ 4000K, CRI: 90, beam angle: 360°)", + "standby_power": 0.31, + "author_info": { + "name": "schuppan", + "github": "schuppan" + } +} diff --git a/.storage/powercalc_profiles/wiz/WIZ294819/model.json b/.storage/powercalc_profiles/wiz/WIZ294819/model.json new file mode 100644 index 0000000..40448a3 --- /dev/null +++ b/.storage/powercalc_profiles/wiz/WIZ294819/model.json @@ -0,0 +1,23 @@ +{ + "aliases": [ + "SHRGB" + ], + "calculation_strategy": "lut", + "created_at": "2025-11-08T06:11:27Z", + "device_type": "light", + "measure_description": "Measured with utils/measure script", + "measure_device": "Shelly 2.5", + "measure_method": "script", + "measure_settings": { + "SAMPLE_COUNT": 2, + "SLEEP_TIME": 3, + "VERSION": "v1.17.24:docker" + }, + "name": "3.5 inch recessed downlight 8W", + "standby_power": 0.2, + "author_info": { + "name": "Mike Debney", + "email": "mike.debney@outlook.com", + "github": "mike-debney" + } +} diff --git a/.storage/thermostat_timeline.json b/.storage/thermostat_timeline.json new file mode 100644 index 0000000..f4c5ef7 --- /dev/null +++ b/.storage/thermostat_timeline.json @@ -0,0 +1,347 @@ +{ + "version": 1, + "minor_version": 1, + "key": "thermostat_timeline.json", + "data": { + "instances": { + "default": { + "schedules": { + "climate.vt_basement": { + "defaultTemp": 20, + "blocks": [], + "profiles": {}, + "activeProfile": null, + "holiday": { + "blocks": [] + }, + "presence": {} + }, + "climate.climate_scheduler_climate_schedule_living_room": { + "defaultTemp": 20, + "blocks": [ + { + "id": "7ky0uyr", + "startMin": 690, + "endMin": 971, + "temp": 21 + } + ], + "profiles": {}, + "activeProfile": null, + "holiday": { + "blocks": [] + }, + "presence": {} + }, + "climate.basement": { + "defaultTemp": 20, + "blocks": [], + "profiles": {}, + "activeProfile": null, + "holiday": { + "blocks": [] + }, + "presence": {} + }, + "climate.living_room_living_room": { + "defaultTemp": 20, + "blocks": [], + "profiles": {}, + "activeProfile": null, + "holiday": { + "blocks": [] + }, + "presence": {} + } + }, + "weekdays": {}, + "profiles": { + "climate.vt_basement": { + "profiles": {}, + "activeProfile": null + }, + "climate.climate_scheduler_climate_schedule_living_room": { + "profiles": {}, + "activeProfile": null + }, + "climate.basement": { + "profiles": {}, + "activeProfile": null + }, + "climate.living_room_living_room": { + "profiles": {}, + "activeProfile": null + } + }, + "settings": { + "entities": [ + "climate.basement", + "climate.living_room_living_room" + ], + "room_use_input_number": [ + false, + false + ], + "room_use_temp_sensor": [ + false, + false + ], + "time_12h": true, + "temp_unit": "C", + "storage_temp_unit": "C", + "time_source": "browser", + "row_height": 64, + "default_temp": 20, + "min_temp": 5, + "max_temp": 25, + "weekdays_enabled": false, + "seasonal_enabled": false, + "seasonal_mode": "winter", + "weekdays_mode": "weekday_weekend", + "weekdays_view": "all_rooms_one_day", + "weekdays_view_switch_in_timeline": false, + "weekdays_selected_room": "", + "per_room_defaults": false, + "away": { + "enabled": false, + "persons": [], + "target_c": 17, + "advanced_enabled": false, + "combos": {}, + "delay_enabled": false, + "delay_value": 0, + "delay_unit": "minutes" + }, + "away_bypass": false, + "merges": {}, + "labels": {}, + "temp_sensors": {}, + "turn_on": {}, + "presence_sensor_enabled": false, + "presence_live_header": true, + "presence_sensors": {}, + "presence_sensor_temps": {}, + "presence_sensor_delays": {}, + "presence_sensor_delay_units": { + "climate.basement": "minutes", + "climate.living_room_living_room": "minutes" + }, + "show_pause_button": true, + "pause_sensor_enabled": false, + "pause_sensor_entity": "", + "pause_indef": true, + "pause_until_ms": 0, + "boiler_switch": "", + "boiler_switch_domain": "switch", + "boiler_rooms": null, + "boiler_on_offset": 0, + "boiler_off_offset": 0, + "boiler_temp_sensor": "", + "boiler_min_temp": 20, + "boiler_max_temp": 25, + "boiler_multi_enabled": false, + "boiler_room_settings": {}, + "show_room_temp": true, + "auto_apply_enabled": true, + "apply_on_edit": true, + "apply_on_default_change": true, + "backup_auto_enabled": false, + "backup_interval_days": 1, + "profiles_enabled": false, + "global_profile": null, + "sync_mode": "instant", + "sync_delay_min": 5, + "sync_delay_sec": 300, + "color_ranges": {}, + "color_global": false, + "boiler_enabled": false, + "holidays_source": "calendar", + "holidays_entity": "", + "holidays_dates": [], + "holidays_groups": [], + "open_window": { + "enabled": false, + "open_delay_min": 2, + "close_delay_min": 5, + "sensors": {} + } + }, + "colors": { + "color_ranges": {}, + "color_global": false + } + } + }, + "active_instance_id": "default", + "schedules": { + "climate.vt_basement": { + "defaultTemp": 20, + "blocks": [], + "profiles": {}, + "activeProfile": null, + "holiday": { + "blocks": [] + }, + "presence": {} + }, + "climate.climate_scheduler_climate_schedule_living_room": { + "defaultTemp": 20, + "blocks": [ + { + "id": "7ky0uyr", + "startMin": 690, + "endMin": 971, + "temp": 21 + } + ], + "profiles": {}, + "activeProfile": null, + "holiday": { + "blocks": [] + }, + "presence": {} + }, + "climate.basement": { + "defaultTemp": 20, + "blocks": [], + "profiles": {}, + "activeProfile": null, + "holiday": { + "blocks": [] + }, + "presence": {} + }, + "climate.living_room_living_room": { + "defaultTemp": 20, + "blocks": [], + "profiles": {}, + "activeProfile": null, + "holiday": { + "blocks": [] + }, + "presence": {} + } + }, + "weekdays": {}, + "profiles": { + "climate.vt_basement": { + "profiles": {}, + "activeProfile": null + }, + "climate.climate_scheduler_climate_schedule_living_room": { + "profiles": {}, + "activeProfile": null + }, + "climate.basement": { + "profiles": {}, + "activeProfile": null + }, + "climate.living_room_living_room": { + "profiles": {}, + "activeProfile": null + } + }, + "settings": { + "entities": [ + "climate.basement", + "climate.living_room_living_room" + ], + "room_use_input_number": [ + false, + false + ], + "room_use_temp_sensor": [ + false, + false + ], + "time_12h": true, + "temp_unit": "C", + "storage_temp_unit": "C", + "time_source": "browser", + "row_height": 64, + "default_temp": 20, + "min_temp": 5, + "max_temp": 25, + "weekdays_enabled": false, + "seasonal_enabled": false, + "seasonal_mode": "winter", + "weekdays_mode": "weekday_weekend", + "weekdays_view": "all_rooms_one_day", + "weekdays_view_switch_in_timeline": false, + "weekdays_selected_room": "", + "per_room_defaults": false, + "away": { + "enabled": false, + "persons": [], + "target_c": 17, + "advanced_enabled": false, + "combos": {}, + "delay_enabled": false, + "delay_value": 0, + "delay_unit": "minutes" + }, + "away_bypass": false, + "merges": {}, + "labels": {}, + "temp_sensors": {}, + "turn_on": {}, + "presence_sensor_enabled": false, + "presence_live_header": true, + "presence_sensors": {}, + "presence_sensor_temps": {}, + "presence_sensor_delays": {}, + "presence_sensor_delay_units": { + "climate.basement": "minutes", + "climate.living_room_living_room": "minutes" + }, + "show_pause_button": true, + "pause_sensor_enabled": false, + "pause_sensor_entity": "", + "pause_indef": true, + "pause_until_ms": 0, + "boiler_switch": "", + "boiler_switch_domain": "switch", + "boiler_rooms": null, + "boiler_on_offset": 0, + "boiler_off_offset": 0, + "boiler_temp_sensor": "", + "boiler_min_temp": 20, + "boiler_max_temp": 25, + "boiler_multi_enabled": false, + "boiler_room_settings": {}, + "show_room_temp": true, + "auto_apply_enabled": true, + "apply_on_edit": true, + "apply_on_default_change": true, + "backup_auto_enabled": false, + "backup_interval_days": 1, + "profiles_enabled": false, + "global_profile": null, + "sync_mode": "instant", + "sync_delay_min": 5, + "sync_delay_sec": 300, + "color_ranges": {}, + "color_global": false, + "boiler_enabled": false, + "holidays_source": "calendar", + "holidays_entity": "", + "holidays_dates": [], + "holidays_groups": [], + "open_window": { + "enabled": false, + "open_delay_min": 2, + "close_delay_min": 5, + "sensors": {} + } + }, + "colors": { + "color_ranges": {}, + "color_global": false + }, + "version": 177, + "settings_version": 169, + "colors_version": 169, + "weekday_version": 1, + "profile_version": 5 + } +} \ No newline at end of file diff --git a/custom_components/cafe/manifest.json b/custom_components/cafe/manifest.json new file mode 100644 index 0000000..97cc4a6 --- /dev/null +++ b/custom_components/cafe/manifest.json @@ -0,0 +1,14 @@ +{ + "domain": "cafe", + "name": "C.A.F.E.", + "version": "0.7.0", + "codeowners": [], + "config_flow": true, + "dependencies": ["frontend", "http"], + "documentation": "https://github.com/FezVrasta/cafe-hass", + "documentation_url": "https://github.com/FezVrasta/cafe-hass", + "integration_type": "service", + "iot_class": "local_push", + "issue_tracker": "https://github.com/FezVrasta/cafe-hass/issues", + "requirements": [] +} diff --git a/custom_components/cafe/strings.json b/custom_components/cafe/strings.json new file mode 100644 index 0000000..e1e0c57 --- /dev/null +++ b/custom_components/cafe/strings.json @@ -0,0 +1,14 @@ +{ + "config": { + "title": "C.A.F.E.", + "step": { + "user": { + "title": "Set up C.A.F.E.", + "description": "C.A.F.E. is a visual automation editor for Home Assistant. It allows you to create and manage your automations using a visual flow editor.\n\nClick Submit to add C.A.F.E. to your Home Assistant." + } + }, + "abort": { + "already_configured": "C.A.F.E. is already configured" + } + } +} diff --git a/custom_components/cafe/translations/en.json b/custom_components/cafe/translations/en.json new file mode 100644 index 0000000..e1e0c57 --- /dev/null +++ b/custom_components/cafe/translations/en.json @@ -0,0 +1,14 @@ +{ + "config": { + "title": "C.A.F.E.", + "step": { + "user": { + "title": "Set up C.A.F.E.", + "description": "C.A.F.E. is a visual automation editor for Home Assistant. It allows you to create and manage your automations using a visual flow editor.\n\nClick Submit to add C.A.F.E. to your Home Assistant." + } + }, + "abort": { + "already_configured": "C.A.F.E. is already configured" + } + } +} diff --git a/custom_components/cafe/www/assets/main-Bh6odaMI.js b/custom_components/cafe/www/assets/main-Bh6odaMI.js new file mode 100644 index 0000000..9fd16a3 --- /dev/null +++ b/custom_components/cafe/www/assets/main-Bh6odaMI.js @@ -0,0 +1,573 @@ +var hCn=Object.defineProperty;var pCn=(n,i,s)=>i in n?hCn(n,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[i]=s;var Zf=(n,i,s)=>pCn(n,typeof i!="symbol"?i+"":i,s);function gCn(n,i){for(var s=0;sc[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const g of d)if(g.type==="childList")for(const b of g.addedNodes)b.tagName==="LINK"&&b.rel==="modulepreload"&&c(b)}).observe(document,{childList:!0,subtree:!0});function s(d){const g={};return d.integrity&&(g.integrity=d.integrity),d.referrerPolicy&&(g.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?g.credentials="include":d.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function c(d){if(d.ep)return;d.ep=!0;const g=s(d);fetch(d.href,g)}})();var C5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function TR(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Y$t={exports:{}},Nse={},J$t={exports:{}},Os={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var gz=Symbol.for("react.element"),bCn=Symbol.for("react.portal"),mCn=Symbol.for("react.fragment"),wCn=Symbol.for("react.strict_mode"),yCn=Symbol.for("react.profiler"),vCn=Symbol.for("react.provider"),ECn=Symbol.for("react.context"),SCn=Symbol.for("react.forward_ref"),TCn=Symbol.for("react.suspense"),ACn=Symbol.for("react.memo"),_Cn=Symbol.for("react.lazy"),KLt=Symbol.iterator;function xCn(n){return n===null||typeof n!="object"?null:(n=KLt&&n[KLt]||n["@@iterator"],typeof n=="function"?n:null)}var X$t={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z$t=Object.assign,Q$t={};function DM(n,i,s){this.props=n,this.context=i,this.refs=Q$t,this.updater=s||X$t}DM.prototype.isReactComponent={};DM.prototype.setState=function(n,i){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,i,"setState")};DM.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function eBt(){}eBt.prototype=DM.prototype;function xLe(n,i,s){this.props=n,this.context=i,this.refs=Q$t,this.updater=s||X$t}var kLe=xLe.prototype=new eBt;kLe.constructor=xLe;Z$t(kLe,DM.prototype);kLe.isPureReactComponent=!0;var YLt=Array.isArray,tBt=Object.prototype.hasOwnProperty,NLe={current:null},nBt={key:!0,ref:!0,__self:!0,__source:!0};function rBt(n,i,s){var c,d={},g=null,b=null;if(i!=null)for(c in i.ref!==void 0&&(b=i.ref),i.key!==void 0&&(g=""+i.key),i)tBt.call(i,c)&&!nBt.hasOwnProperty(c)&&(d[c]=i[c]);var w=arguments.length-2;if(w===1)d.children=s;else if(1>>1,Ue=Ae[dt];if(0>>1;dtd(ht,We))Xtd(vt,ht)?(Ae[dt]=vt,Ae[Xt]=We,dt=Xt):(Ae[dt]=ht,Ae[kt]=We,dt=kt);else if(Xtd(vt,We))Ae[dt]=vt,Ae[Xt]=We,dt=Xt;else break e}}return xe}function d(Ae,xe){var We=Ae.sortIndex-xe.sortIndex;return We!==0?We:Ae.id-xe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var g=performance;n.unstable_now=function(){return g.now()}}else{var b=Date,w=b.now();n.unstable_now=function(){return b.now()-w}}var E=[],S=[],x=1,A=null,C=3,R=!1,L=!1,D=!1,B=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(Ae){for(var xe=s(S);xe!==null;){if(xe.callback===null)c(S);else if(xe.startTime<=Ae)c(S),xe.sortIndex=xe.expirationTime,i(E,xe);else break;xe=s(S)}}function G(Ae){if(D=!1,P(Ae),!L)if(s(E)!==null)L=!0,Se(ee);else{var xe=s(S);xe!==null&&Le(G,xe.startTime-Ae)}}function ee(Ae,xe){L=!1,D&&(D=!1,$(ie),ie=-1),R=!0;var We=C;try{for(P(xe),A=s(E);A!==null&&(!(A.expirationTime>xe)||Ae&&!le());){var dt=A.callback;if(typeof dt=="function"){A.callback=null,C=A.priorityLevel;var Ue=dt(A.expirationTime<=xe);xe=n.unstable_now(),typeof Ue=="function"?A.callback=Ue:A===s(E)&&c(E),P(xe)}else c(E);A=s(E)}if(A!==null)var bt=!0;else{var kt=s(S);kt!==null&&Le(G,kt.startTime-xe),bt=!1}return bt}finally{A=null,C=We,R=!1}}var re=!1,Q=null,ie=-1,pe=5,me=-1;function le(){return!(n.unstable_now()-meAe||125dt?(Ae.sortIndex=We,i(S,Ae),s(E)===null&&Ae===s(S)&&(D?($(ie),ie=-1):D=!0,Le(G,We-dt))):(Ae.sortIndex=Ue,i(E,Ae),L||R||(L=!0,Se(ee))),Ae},n.unstable_shouldYield=le,n.unstable_wrapCallback=function(Ae){var xe=C;return function(){var We=C;C=xe;try{return Ae.apply(this,arguments)}finally{C=We}}}})(uBt);aBt.exports=uBt;var jCn=aBt.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var FCn=H,Hm=jCn;function ir(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c6e=Object.prototype.hasOwnProperty,$Cn=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,XLt={},ZLt={};function BCn(n){return c6e.call(ZLt,n)?!0:c6e.call(XLt,n)?!1:$Cn.test(n)?ZLt[n]=!0:(XLt[n]=!0,!1)}function UCn(n,i,s,c){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function HCn(n,i,s,c){if(i===null||typeof i>"u"||UCn(n,i,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function Vg(n,i,s,c,d,g,b){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=c,this.attributeNamespace=d,this.mustUseProperty=s,this.propertyName=n,this.type=i,this.sanitizeURL=g,this.removeEmptyString=b}var Uh={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Uh[n]=new Vg(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];Uh[i]=new Vg(i,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Uh[n]=new Vg(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Uh[n]=new Vg(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Uh[n]=new Vg(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Uh[n]=new Vg(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Uh[n]=new Vg(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Uh[n]=new Vg(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Uh[n]=new Vg(n,5,!1,n.toLowerCase(),null,!1,!1)});var RLe=/[\-:]([a-z])/g;function OLe(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var i=n.replace(RLe,OLe);Uh[i]=new Vg(i,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(RLe,OLe);Uh[i]=new Vg(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(RLe,OLe);Uh[i]=new Vg(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Uh[n]=new Vg(n,1,!1,n.toLowerCase(),null,!1,!1)});Uh.xlinkHref=new Vg("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Uh[n]=new Vg(n,1,!1,n.toLowerCase(),null,!0,!0)});function DLe(n,i,s,c){var d=Uh.hasOwnProperty(i)?Uh[i]:null;(d!==null?d.type!==0:c||!(2w||d[b]!==g[w]){var E=` +`+d[b].replace(" at new "," at ");return n.displayName&&E.includes("")&&(E=E.replace("",n.displayName)),E}while(1<=b&&0<=w);break}}}finally{cCe=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?VU(n):""}function zCn(n){switch(n.tag){case 5:return VU(n.type);case 16:return VU("Lazy");case 13:return VU("Suspense");case 19:return VU("SuspenseList");case 0:case 2:case 15:return n=lCe(n.type,!1),n;case 11:return n=lCe(n.type.render,!1),n;case 1:return n=lCe(n.type,!0),n;default:return""}}function h6e(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case R5:return"Fragment";case I5:return"Portal";case l6e:return"Profiler";case LLe:return"StrictMode";case d6e:return"Suspense";case f6e:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case dBt:return(n.displayName||"Context")+".Consumer";case lBt:return(n._context.displayName||"Context")+".Provider";case MLe:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case PLe:return i=n.displayName||null,i!==null?i:h6e(n.type)||"Memo";case Pk:i=n._payload,n=n._init;try{return h6e(n(i))}catch{}}return null}function GCn(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return h6e(i);case 8:return i===LLe?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function nN(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function hBt(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function qCn(n){var i=hBt(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),c=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,g=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return d.call(this)},set:function(b){c=""+b,g.call(this,b)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(b){c=""+b},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Yre(n){n._valueTracker||(n._valueTracker=qCn(n))}function pBt(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return n&&(c=hBt(n)?n.checked?"true":"false":n.value),n=c,n!==s?(i.setValue(n),!0):!1}function foe(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function p6e(n,i){var s=i.checked;return fl({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function e5t(n,i){var s=i.defaultValue==null?"":i.defaultValue,c=i.checked!=null?i.checked:i.defaultChecked;s=nN(i.value!=null?i.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function gBt(n,i){i=i.checked,i!=null&&DLe(n,"checked",i,!1)}function g6e(n,i){gBt(n,i);var s=nN(i.value),c=i.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?b6e(n,i.type,s):i.hasOwnProperty("defaultValue")&&b6e(n,i.type,nN(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function t5t(n,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var c=i.type;if(!(c!=="submit"&&c!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,s||i===n.value||(n.value=i),n.defaultValue=i}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function b6e(n,i,s){(i!=="number"||foe(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var WU=Array.isArray;function Y5(n,i,s,c){if(n=n.options,i){i={};for(var d=0;d"+i.valueOf().toString()+"",i=Jre.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function kH(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}var aH={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},VCn=["Webkit","ms","Moz","O"];Object.keys(aH).forEach(function(n){VCn.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),aH[i]=aH[n]})});function yBt(n,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||aH.hasOwnProperty(n)&&aH[n]?(""+i).trim():i+"px"}function vBt(n,i){n=n.style;for(var s in i)if(i.hasOwnProperty(s)){var c=s.indexOf("--")===0,d=yBt(s,i[s],c);s==="float"&&(s="cssFloat"),c?n.setProperty(s,d):n[s]=d}}var WCn=fl({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function y6e(n,i){if(i){if(WCn[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(ir(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(ir(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(ir(61))}if(i.style!=null&&typeof i.style!="object")throw Error(ir(62))}}function v6e(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var E6e=null;function jLe(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var S6e=null,J5=null,X5=null;function i5t(n){if(n=wz(n)){if(typeof S6e!="function")throw Error(ir(280));var i=n.stateNode;i&&(i=Dse(i),S6e(n.stateNode,n.type,i))}}function EBt(n){J5?X5?X5.push(n):X5=[n]:J5=n}function SBt(){if(J5){var n=J5,i=X5;if(X5=J5=null,i5t(n),i)for(n=0;n>>=0,n===0?32:31-(iIn(n)/oIn|0)|0}var Xre=64,Zre=4194304;function KU(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function boe(n,i){var s=n.pendingLanes;if(s===0)return 0;var c=0,d=n.suspendedLanes,g=n.pingedLanes,b=s&268435455;if(b!==0){var w=b&~d;w!==0?c=KU(w):(g&=b,g!==0&&(c=KU(g)))}else b=s&~d,b!==0?c=KU(b):g!==0&&(c=KU(g));if(c===0)return 0;if(i!==0&&i!==c&&!(i&d)&&(d=c&-c,g=i&-i,d>=g||d===16&&(g&4194240)!==0))return i;if(c&4&&(c|=s&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=c;0s;s++)i.push(n);return i}function bz(n,i,s){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-Dv(i),n[i]=s}function cIn(n,i){var s=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0=cH),h5t=" ",p5t=!1;function HBt(n,i){switch(n){case"keyup":return jIn.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zBt(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var O5=!1;function $In(n,i){switch(n){case"compositionend":return zBt(i);case"keypress":return i.which!==32?null:(p5t=!0,h5t);case"textInput":return n=i.data,n===h5t&&p5t?null:n;default:return null}}function BIn(n,i){if(O5)return n==="compositionend"||!qLe&&HBt(n,i)?(n=BBt(),Uie=HLe=zk=null,O5=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1=i)return{node:s,offset:i-n};n=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=w5t(s)}}function WBt(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?WBt(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function KBt(){for(var n=window,i=foe();i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=foe(n.document)}return i}function VLe(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function YIn(n){var i=KBt(),s=n.focusedElem,c=n.selectionRange;if(i!==s&&s&&s.ownerDocument&&WBt(s.ownerDocument.documentElement,s)){if(c!==null&&VLe(s)){if(i=c.start,n=c.end,n===void 0&&(n=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(n,s.value.length);else if(n=(i=s.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var d=s.textContent.length,g=Math.min(c.start,d);c=c.end===void 0?g:Math.min(c.end,d),!n.extend&&g>c&&(d=c,c=g,g=d),d=y5t(s,g);var b=y5t(s,c);d&&b&&(n.rangeCount!==1||n.anchorNode!==d.node||n.anchorOffset!==d.offset||n.focusNode!==b.node||n.focusOffset!==b.offset)&&(i=i.createRange(),i.setStart(d.node,d.offset),n.removeAllRanges(),g>c?(n.addRange(i),n.extend(b.node,b.offset)):(i.setEnd(b.node,b.offset),n.addRange(i)))}}for(i=[],n=s;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s=document.documentMode,D5=null,N6e=null,dH=null,C6e=!1;function v5t(n,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;C6e||D5==null||D5!==foe(c)||(c=D5,"selectionStart"in c&&VLe(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),dH&&DH(dH,c)||(dH=c,c=yoe(N6e,"onSelect"),0P5||(n.current=M6e[P5],M6e[P5]=null,P5--)}function Wu(n,i){P5++,M6e[P5]=n.current,n.current=i}var rN={},Up=wN(rN),cb=wN(!1),oR=rN;function fM(n,i){var s=n.type.contextTypes;if(!s)return rN;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===i)return c.__reactInternalMemoizedMaskedChildContext;var d={},g;for(g in s)d[g]=i[g];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=d),d}function lb(n){return n=n.childContextTypes,n!=null}function Eoe(){dc(cb),dc(Up)}function k5t(n,i,s){if(Up.current!==rN)throw Error(ir(168));Wu(Up,i),Wu(cb,s)}function rUt(n,i,s){var c=n.stateNode;if(i=i.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var d in c)if(!(d in i))throw Error(ir(108,GCn(n)||"Unknown",d));return fl({},s,c)}function Soe(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||rN,oR=Up.current,Wu(Up,n),Wu(cb,cb.current),!0}function N5t(n,i,s){var c=n.stateNode;if(!c)throw Error(ir(169));s?(n=rUt(n,i,oR),c.__reactInternalMemoizedMergedChildContext=n,dc(cb),dc(Up),Wu(Up,n)):dc(cb),Wu(cb,s)}var oA=null,Lse=!1,ACe=!1;function iUt(n){oA===null?oA=[n]:oA.push(n)}function a4n(n){Lse=!0,iUt(n)}function yN(){if(!ACe&&oA!==null){ACe=!0;var n=0,i=cu;try{var s=oA;for(cu=1;n>=b,d-=b,uA=1<<32-Dv(i)+d|s<ie?(pe=Q,Q=null):pe=Q.sibling;var me=C($,Q,P[ie],G);if(me===null){Q===null&&(Q=pe);break}n&&Q&&me.alternate===null&&i($,Q),j=g(me,j,ie),re===null?ee=me:re.sibling=me,re=me,Q=pe}if(ie===P.length)return s($,Q),Dc&&q4($,ie),ee;if(Q===null){for(;ieie?(pe=Q,Q=null):pe=Q.sibling;var le=C($,Q,me.value,G);if(le===null){Q===null&&(Q=pe);break}n&&Q&&le.alternate===null&&i($,Q),j=g(le,j,ie),re===null?ee=le:re.sibling=le,re=le,Q=pe}if(me.done)return s($,Q),Dc&&q4($,ie),ee;if(Q===null){for(;!me.done;ie++,me=P.next())me=A($,me.value,G),me!==null&&(j=g(me,j,ie),re===null?ee=me:re.sibling=me,re=me);return Dc&&q4($,ie),ee}for(Q=c($,Q);!me.done;ie++,me=P.next())me=R(Q,$,ie,me.value,G),me!==null&&(n&&me.alternate!==null&&Q.delete(me.key===null?ie:me.key),j=g(me,j,ie),re===null?ee=me:re.sibling=me,re=me);return n&&Q.forEach(function(fe){return i($,fe)}),Dc&&q4($,ie),ee}function B($,j,P,G){if(typeof P=="object"&&P!==null&&P.type===R5&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case Kre:e:{for(var ee=P.key,re=j;re!==null;){if(re.key===ee){if(ee=P.type,ee===R5){if(re.tag===7){s($,re.sibling),j=d(re,P.props.children),j.return=$,$=j;break e}}else if(re.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===Pk&&R5t(ee)===re.type){s($,re.sibling),j=d(re,P.props),j.ref=LU($,re,P),j.return=$,$=j;break e}s($,re);break}else i($,re);re=re.sibling}P.type===R5?(j=eR(P.props.children,$.mode,G,P.key),j.return=$,$=j):(G=Yie(P.type,P.key,P.props,null,$.mode,G),G.ref=LU($,j,P),G.return=$,$=G)}return b($);case I5:e:{for(re=P.key;j!==null;){if(j.key===re)if(j.tag===4&&j.stateNode.containerInfo===P.containerInfo&&j.stateNode.implementation===P.implementation){s($,j.sibling),j=d(j,P.children||[]),j.return=$,$=j;break e}else{s($,j);break}else i($,j);j=j.sibling}j=OCe(P,$.mode,G),j.return=$,$=j}return b($);case Pk:return re=P._init,B($,j,re(P._payload),G)}if(WU(P))return L($,j,P,G);if(CU(P))return D($,j,P,G);oie($,P)}return typeof P=="string"&&P!==""||typeof P=="number"?(P=""+P,j!==null&&j.tag===6?(s($,j.sibling),j=d(j,P),j.return=$,$=j):(s($,j),j=RCe(P,$.mode,G),j.return=$,$=j),b($)):s($,j)}return B}var pM=uUt(!0),cUt=uUt(!1),_oe=wN(null),xoe=null,$5=null,JLe=null;function XLe(){JLe=$5=xoe=null}function ZLe(n){var i=_oe.current;dc(_oe),n._currentValue=i}function F6e(n,i,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),n===s)break;n=n.return}}function Q5(n,i){xoe=n,JLe=$5=null,n=n.dependencies,n!==null&&n.firstContext!==null&&(n.lanes&i&&(sb=!0),n.firstContext=null)}function Tw(n){var i=n._currentValue;if(JLe!==n)if(n={context:n,memoizedValue:i,next:null},$5===null){if(xoe===null)throw Error(ir(308));$5=n,xoe.dependencies={lanes:0,firstContext:n}}else $5=$5.next=n;return i}var J4=null;function QLe(n){J4===null?J4=[n]:J4.push(n)}function lUt(n,i,s,c){var d=i.interleaved;return d===null?(s.next=s,QLe(i)):(s.next=d.next,d.next=s),i.interleaved=s,mA(n,c)}function mA(n,i){n.lanes|=i;var s=n.alternate;for(s!==null&&(s.lanes|=i),s=n,n=n.return;n!==null;)n.childLanes|=i,s=n.alternate,s!==null&&(s.childLanes|=i),s=n,n=n.return;return s.tag===3?s.stateNode:null}var jk=!1;function e5e(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dUt(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function hA(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function Jk(n,i,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,ga&2){var d=c.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),c.pending=i,mA(n,s)}return d=c.interleaved,d===null?(i.next=i,QLe(c)):(i.next=d.next,d.next=i),c.interleaved=i,mA(n,s)}function zie(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,$Le(n,s)}}function O5t(n,i){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var d=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var b={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};g===null?d=g=b:g=g.next=b,s=s.next}while(s!==null);g===null?d=g=i:g=g.next=i}else d=g=i;s={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:g,shared:c.shared,effects:c.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}function koe(n,i,s,c){var d=n.updateQueue;jk=!1;var g=d.firstBaseUpdate,b=d.lastBaseUpdate,w=d.shared.pending;if(w!==null){d.shared.pending=null;var E=w,S=E.next;E.next=null,b===null?g=S:b.next=S,b=E;var x=n.alternate;x!==null&&(x=x.updateQueue,w=x.lastBaseUpdate,w!==b&&(w===null?x.firstBaseUpdate=S:w.next=S,x.lastBaseUpdate=E))}if(g!==null){var A=d.baseState;b=0,x=S=E=null,w=g;do{var C=w.lane,R=w.eventTime;if((c&C)===C){x!==null&&(x=x.next={eventTime:R,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var L=n,D=w;switch(C=i,R=s,D.tag){case 1:if(L=D.payload,typeof L=="function"){A=L.call(R,A,C);break e}A=L;break e;case 3:L.flags=L.flags&-65537|128;case 0:if(L=D.payload,C=typeof L=="function"?L.call(R,A,C):L,C==null)break e;A=fl({},A,C);break e;case 2:jk=!0}}w.callback!==null&&w.lane!==0&&(n.flags|=64,C=d.effects,C===null?d.effects=[w]:C.push(w))}else R={eventTime:R,lane:C,tag:w.tag,payload:w.payload,callback:w.callback,next:null},x===null?(S=x=R,E=A):x=x.next=R,b|=C;if(w=w.next,w===null){if(w=d.shared.pending,w===null)break;C=w,w=C.next,C.next=null,d.lastBaseUpdate=C,d.shared.pending=null}}while(!0);if(x===null&&(E=A),d.baseState=E,d.firstBaseUpdate=S,d.lastBaseUpdate=x,i=d.shared.interleaved,i!==null){d=i;do b|=d.lane,d=d.next;while(d!==i)}else g===null&&(d.shared.lanes=0);uR|=b,n.lanes=b,n.memoizedState=A}}function D5t(n,i,s){if(n=i.effects,i.effects=null,n!==null)for(i=0;is?s:4,n(!0);var c=xCe.transition;xCe.transition={};try{n(!1),i()}finally{cu=s,xCe.transition=c}}function NUt(){return Aw().memoizedState}function d4n(n,i,s){var c=Zk(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},CUt(n))IUt(i,s);else if(s=lUt(n,i,s,c),s!==null){var d=Hg();Lv(s,n,c,d),RUt(s,i,c)}}function f4n(n,i,s){var c=Zk(n),d={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(CUt(n))IUt(i,d);else{var g=n.alternate;if(n.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var b=i.lastRenderedState,w=g(b,s);if(d.hasEagerState=!0,d.eagerState=w,Pv(w,b)){var E=i.interleaved;E===null?(d.next=d,QLe(i)):(d.next=E.next,E.next=d),i.interleaved=d;return}}catch{}finally{}s=lUt(n,i,d,c),s!==null&&(d=Hg(),Lv(s,n,c,d),RUt(s,i,c))}}function CUt(n){var i=n.alternate;return n===dl||i!==null&&i===dl}function IUt(n,i){fH=Coe=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function RUt(n,i,s){if(s&4194240){var c=i.lanes;c&=n.pendingLanes,s|=c,i.lanes=s,$Le(n,s)}}var Ioe={readContext:Tw,useCallback:Pp,useContext:Pp,useEffect:Pp,useImperativeHandle:Pp,useInsertionEffect:Pp,useLayoutEffect:Pp,useMemo:Pp,useReducer:Pp,useRef:Pp,useState:Pp,useDebugValue:Pp,useDeferredValue:Pp,useTransition:Pp,useMutableSource:Pp,useSyncExternalStore:Pp,useId:Pp,unstable_isNewReconciler:!1},h4n={readContext:Tw,useCallback:function(n,i){return x2().memoizedState=[n,i===void 0?null:i],n},useContext:Tw,useEffect:M5t,useImperativeHandle:function(n,i,s){return s=s!=null?s.concat([n]):null,qie(4194308,4,TUt.bind(null,i,n),s)},useLayoutEffect:function(n,i){return qie(4194308,4,n,i)},useInsertionEffect:function(n,i){return qie(4,2,n,i)},useMemo:function(n,i){var s=x2();return i=i===void 0?null:i,n=n(),s.memoizedState=[n,i],n},useReducer:function(n,i,s){var c=x2();return i=s!==void 0?s(i):i,c.memoizedState=c.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},c.queue=n,n=n.dispatch=d4n.bind(null,dl,n),[c.memoizedState,n]},useRef:function(n){var i=x2();return n={current:n},i.memoizedState=n},useState:L5t,useDebugValue:u5e,useDeferredValue:function(n){return x2().memoizedState=n},useTransition:function(){var n=L5t(!1),i=n[0];return n=l4n.bind(null,n[1]),x2().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,s){var c=dl,d=x2();if(Dc){if(s===void 0)throw Error(ir(407));s=s()}else{if(s=i(),rh===null)throw Error(ir(349));aR&30||gUt(c,i,s)}d.memoizedState=s;var g={value:s,getSnapshot:i};return d.queue=g,M5t(mUt.bind(null,c,g,n),[n]),c.flags|=2048,UH(9,bUt.bind(null,c,g,s,i),void 0,null),s},useId:function(){var n=x2(),i=rh.identifierPrefix;if(Dc){var s=cA,c=uA;s=(c&~(1<<32-Dv(c)-1)).toString(32)+s,i=":"+i+"R"+s,s=$H++,0<\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=b.createElement(s,{is:c.is}):(n=b.createElement(s),s==="select"&&(b=n,c.multiple?b.multiple=!0:c.size&&(b.size=c.size))):n=b.createElementNS(n,s),n[R2]=i,n[PH]=c,UUt(n,i,!1,!1),i.stateNode=n;e:{switch(b=v6e(s,c),s){case"dialog":lc("cancel",n),lc("close",n),d=c;break;case"iframe":case"object":case"embed":lc("load",n),d=c;break;case"video":case"audio":for(d=0;dmM&&(i.flags|=128,c=!0,MU(g,!1),i.lanes=4194304)}else{if(!c)if(n=Noe(b),n!==null){if(i.flags|=128,c=!0,s=n.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),MU(g,!0),g.tail===null&&g.tailMode==="hidden"&&!b.alternate&&!Dc)return jp(i),null}else 2*pd()-g.renderingStartTime>mM&&s!==1073741824&&(i.flags|=128,c=!0,MU(g,!1),i.lanes=4194304);g.isBackwards?(b.sibling=i.child,i.child=b):(s=g.last,s!==null?s.sibling=b:i.child=b,g.last=b)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=pd(),i.sibling=null,s=cl.current,Wu(cl,c?s&1|2:s&1),i):(jp(i),null);case 22:case 23:return p5e(),c=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(i.flags|=8192),c&&i.mode&1?Lm&1073741824&&(jp(i),i.subtreeFlags&6&&(i.flags|=8192)):jp(i),null;case 24:return null;case 25:return null}throw Error(ir(156,i.tag))}function E4n(n,i){switch(KLe(i),i.tag){case 1:return lb(i.type)&&Eoe(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return gM(),dc(cb),dc(Up),r5e(),n=i.flags,n&65536&&!(n&128)?(i.flags=n&-65537|128,i):null;case 5:return n5e(i),null;case 13:if(dc(cl),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(ir(340));hM()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return dc(cl),null;case 4:return gM(),null;case 10:return ZLe(i.type._context),null;case 22:case 23:return p5e(),null;case 24:return null;default:return null}}var aie=!1,Fp=!1,S4n=typeof WeakSet=="function"?WeakSet:Set,Vr=null;function B5(n,i){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){jl(n,i,c)}else s.current=null}function W6e(n,i,s){try{s()}catch(c){jl(n,i,c)}}var V5t=!1;function T4n(n,i){if(I6e=moe,n=KBt(),VLe(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var d=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var b=0,w=-1,E=-1,S=0,x=0,A=n,C=null;t:for(;;){for(var R;A!==s||d!==0&&A.nodeType!==3||(w=b+d),A!==g||c!==0&&A.nodeType!==3||(E=b+c),A.nodeType===3&&(b+=A.nodeValue.length),(R=A.firstChild)!==null;)C=A,A=R;for(;;){if(A===n)break t;if(C===s&&++S===d&&(w=b),C===g&&++x===c&&(E=b),(R=A.nextSibling)!==null)break;A=C,C=A.parentNode}A=R}s=w===-1||E===-1?null:{start:w,end:E}}else s=null}s=s||{start:0,end:0}}else s=null;for(R6e={focusedElem:n,selectionRange:s},moe=!1,Vr=i;Vr!==null;)if(i=Vr,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,Vr=n;else for(;Vr!==null;){i=Vr;try{var L=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(L!==null){var D=L.memoizedProps,B=L.memoizedState,$=i.stateNode,j=$.getSnapshotBeforeUpdate(i.elementType===i.type?D:xv(i.type,D),B);$.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var P=i.stateNode.containerInfo;P.nodeType===1?P.textContent="":P.nodeType===9&&P.documentElement&&P.removeChild(P.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ir(163))}}catch(G){jl(i,i.return,G)}if(n=i.sibling,n!==null){n.return=i.return,Vr=n;break}Vr=i.return}return L=V5t,V5t=!1,L}function hH(n,i,s){var c=i.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var d=c=c.next;do{if((d.tag&n)===n){var g=d.destroy;d.destroy=void 0,g!==void 0&&W6e(i,s,g)}d=d.next}while(d!==c)}}function jse(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&n)===n){var c=s.create;s.destroy=c()}s=s.next}while(s!==i)}}function K6e(n){var i=n.ref;if(i!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof i=="function"?i(n):i.current=n}}function GUt(n){var i=n.alternate;i!==null&&(n.alternate=null,GUt(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[R2],delete i[PH],delete i[L6e],delete i[o4n],delete i[s4n])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function qUt(n){return n.tag===5||n.tag===3||n.tag===4}function W5t(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||qUt(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Y6e(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(n,i):s.insertBefore(n,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(n,s)):(i=s,i.appendChild(n)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=voe));else if(c!==4&&(n=n.child,n!==null))for(Y6e(n,i,s),n=n.sibling;n!==null;)Y6e(n,i,s),n=n.sibling}function J6e(n,i,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(J6e(n,i,s),n=n.sibling;n!==null;)J6e(n,i,s),n=n.sibling}var Ph=null,kv=!1;function Nk(n,i,s){for(s=s.child;s!==null;)VUt(n,i,s),s=s.sibling}function VUt(n,i,s){if(P2&&typeof P2.onCommitFiberUnmount=="function")try{P2.onCommitFiberUnmount(Cse,s)}catch{}switch(s.tag){case 5:Fp||B5(s,i);case 6:var c=Ph,d=kv;Ph=null,Nk(n,i,s),Ph=c,kv=d,Ph!==null&&(kv?(n=Ph,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):Ph.removeChild(s.stateNode));break;case 18:Ph!==null&&(kv?(n=Ph,s=s.stateNode,n.nodeType===8?TCe(n.parentNode,s):n.nodeType===1&&TCe(n,s),RH(n)):TCe(Ph,s.stateNode));break;case 4:c=Ph,d=kv,Ph=s.stateNode.containerInfo,kv=!0,Nk(n,i,s),Ph=c,kv=d;break;case 0:case 11:case 14:case 15:if(!Fp&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){d=c=c.next;do{var g=d,b=g.destroy;g=g.tag,b!==void 0&&(g&2||g&4)&&W6e(s,i,b),d=d.next}while(d!==c)}Nk(n,i,s);break;case 1:if(!Fp&&(B5(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(w){jl(s,i,w)}Nk(n,i,s);break;case 21:Nk(n,i,s);break;case 22:s.mode&1?(Fp=(c=Fp)||s.memoizedState!==null,Nk(n,i,s),Fp=c):Nk(n,i,s);break;default:Nk(n,i,s)}}function K5t(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new S4n),i.forEach(function(c){var d=O4n.bind(null,n,c);s.has(c)||(s.add(c),c.then(d,d))})}}function Av(n,i){var s=i.deletions;if(s!==null)for(var c=0;cd&&(d=b),c&=~g}if(c=d,c=pd()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*_4n(c/1960))-c,10n?16:n,Gk===null)var c=!1;else{if(n=Gk,Gk=null,Doe=0,ga&6)throw Error(ir(331));var d=ga;for(ga|=4,Vr=n.current;Vr!==null;){var g=Vr,b=g.child;if(Vr.flags&16){var w=g.deletions;if(w!==null){for(var E=0;Epd()-f5e?Q4(n,0):d5e|=s),db(n,i)}function eHt(n,i){i===0&&(n.mode&1?(i=Zre,Zre<<=1,!(Zre&130023424)&&(Zre=4194304)):i=1);var s=Hg();n=mA(n,i),n!==null&&(bz(n,i,s),db(n,s))}function R4n(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),eHt(n,s)}function O4n(n,i){var s=0;switch(n.tag){case 13:var c=n.stateNode,d=n.memoizedState;d!==null&&(s=d.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(ir(314))}c!==null&&c.delete(i),eHt(n,s)}var tHt;tHt=function(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps||cb.current)sb=!0;else{if(!(n.lanes&s)&&!(i.flags&128))return sb=!1,y4n(n,i,s);sb=!!(n.flags&131072)}else sb=!1,Dc&&i.flags&1048576&&oUt(i,Aoe,i.index);switch(i.lanes=0,i.tag){case 2:var c=i.type;Vie(n,i),n=i.pendingProps;var d=fM(i,Up.current);Q5(i,s),d=o5e(null,i,c,n,d,s);var g=s5e();return i.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,lb(c)?(g=!0,Soe(i)):g=!1,i.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,e5e(i),d.updater=Pse,i.stateNode=d,d._reactInternals=i,B6e(i,c,n,s),i=z6e(null,i,c,!0,g,s)):(i.tag=0,Dc&&g&&WLe(i),Bg(null,i,d,s),i=i.child),i;case 16:c=i.elementType;e:{switch(Vie(n,i),n=i.pendingProps,d=c._init,c=d(c._payload),i.type=c,d=i.tag=L4n(c),n=xv(c,n),d){case 0:i=H6e(null,i,c,n,s);break e;case 1:i=z5t(null,i,c,n,s);break e;case 11:i=U5t(null,i,c,n,s);break e;case 14:i=H5t(null,i,c,xv(c.type,n),s);break e}throw Error(ir(306,c,""))}return i;case 0:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:xv(c,d),H6e(n,i,c,d,s);case 1:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:xv(c,d),z5t(n,i,c,d,s);case 3:e:{if(FUt(i),n===null)throw Error(ir(387));c=i.pendingProps,g=i.memoizedState,d=g.element,dUt(n,i),koe(i,c,null,s);var b=i.memoizedState;if(c=b.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){d=bM(Error(ir(423)),i),i=G5t(n,i,c,s,d);break e}else if(c!==d){d=bM(Error(ir(424)),i),i=G5t(n,i,c,s,d);break e}else for(Fm=Yk(i.stateNode.containerInfo.firstChild),Bm=i,Dc=!0,Cv=null,s=cUt(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(hM(),c===d){i=wA(n,i,s);break e}Bg(n,i,c,s)}i=i.child}return i;case 5:return fUt(i),n===null&&j6e(i),c=i.type,d=i.pendingProps,g=n!==null?n.memoizedProps:null,b=d.children,O6e(c,d)?b=null:g!==null&&O6e(c,g)&&(i.flags|=32),jUt(n,i),Bg(n,i,b,s),i.child;case 6:return n===null&&j6e(i),null;case 13:return $Ut(n,i,s);case 4:return t5e(i,i.stateNode.containerInfo),c=i.pendingProps,n===null?i.child=pM(i,null,c,s):Bg(n,i,c,s),i.child;case 11:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:xv(c,d),U5t(n,i,c,d,s);case 7:return Bg(n,i,i.pendingProps,s),i.child;case 8:return Bg(n,i,i.pendingProps.children,s),i.child;case 12:return Bg(n,i,i.pendingProps.children,s),i.child;case 10:e:{if(c=i.type._context,d=i.pendingProps,g=i.memoizedProps,b=d.value,Wu(_oe,c._currentValue),c._currentValue=b,g!==null)if(Pv(g.value,b)){if(g.children===d.children&&!cb.current){i=wA(n,i,s);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var w=g.dependencies;if(w!==null){b=g.child;for(var E=w.firstContext;E!==null;){if(E.context===c){if(g.tag===1){E=hA(-1,s&-s),E.tag=2;var S=g.updateQueue;if(S!==null){S=S.shared;var x=S.pending;x===null?E.next=E:(E.next=x.next,x.next=E),S.pending=E}}g.lanes|=s,E=g.alternate,E!==null&&(E.lanes|=s),F6e(g.return,s,i),w.lanes|=s;break}E=E.next}}else if(g.tag===10)b=g.type===i.type?null:g.child;else if(g.tag===18){if(b=g.return,b===null)throw Error(ir(341));b.lanes|=s,w=b.alternate,w!==null&&(w.lanes|=s),F6e(b,s,i),b=g.sibling}else b=g.child;if(b!==null)b.return=g;else for(b=g;b!==null;){if(b===i){b=null;break}if(g=b.sibling,g!==null){g.return=b.return,b=g;break}b=b.return}g=b}Bg(n,i,d.children,s),i=i.child}return i;case 9:return d=i.type,c=i.pendingProps.children,Q5(i,s),d=Tw(d),c=c(d),i.flags|=1,Bg(n,i,c,s),i.child;case 14:return c=i.type,d=xv(c,i.pendingProps),d=xv(c.type,d),H5t(n,i,c,d,s);case 15:return MUt(n,i,i.type,i.pendingProps,s);case 17:return c=i.type,d=i.pendingProps,d=i.elementType===c?d:xv(c,d),Vie(n,i),i.tag=1,lb(c)?(n=!0,Soe(i)):n=!1,Q5(i,s),OUt(i,c,d),B6e(i,c,d,s),z6e(null,i,c,!0,n,s);case 19:return BUt(n,i,s);case 22:return PUt(n,i,s)}throw Error(ir(156,i.tag))};function nHt(n,i){return CBt(n,i)}function D4n(n,i,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yw(n,i,s,c){return new D4n(n,i,s,c)}function b5e(n){return n=n.prototype,!(!n||!n.isReactComponent)}function L4n(n){if(typeof n=="function")return b5e(n)?1:0;if(n!=null){if(n=n.$$typeof,n===MLe)return 11;if(n===PLe)return 14}return 2}function Qk(n,i){var s=n.alternate;return s===null?(s=yw(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function Yie(n,i,s,c,d,g){var b=2;if(c=n,typeof n=="function")b5e(n)&&(b=1);else if(typeof n=="string")b=5;else e:switch(n){case R5:return eR(s.children,d,g,i);case LLe:b=8,d|=8;break;case l6e:return n=yw(12,s,i,d|2),n.elementType=l6e,n.lanes=g,n;case d6e:return n=yw(13,s,i,d),n.elementType=d6e,n.lanes=g,n;case f6e:return n=yw(19,s,i,d),n.elementType=f6e,n.lanes=g,n;case fBt:return $se(s,d,g,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case lBt:b=10;break e;case dBt:b=9;break e;case MLe:b=11;break e;case PLe:b=14;break e;case Pk:b=16,c=null;break e}throw Error(ir(130,n==null?n:typeof n,""))}return i=yw(b,s,i,d),i.elementType=n,i.type=c,i.lanes=g,i}function eR(n,i,s,c){return n=yw(7,n,c,i),n.lanes=s,n}function $se(n,i,s,c){return n=yw(22,n,c,i),n.elementType=fBt,n.lanes=s,n.stateNode={isHidden:!1},n}function RCe(n,i,s){return n=yw(6,n,null,i),n.lanes=s,n}function OCe(n,i,s){return i=yw(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function M4n(n,i,s,c,d){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fCe(0),this.expirationTimes=fCe(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fCe(0),this.identifierPrefix=c,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function m5e(n,i,s,c,d,g,b,w,E){return n=new M4n(n,i,s,w,E),i===1?(i=1,g===!0&&(i|=8)):i=0,g=yw(3,null,null,i),n.current=g,g.stateNode=n,g.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},e5e(g),n}function P4n(n,i,s){var c=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sHt)}catch(n){console.error(n)}}sHt(),sBt.exports=Gm;var xR=sBt.exports;const aHt=TR(xR);var nMt=xR;doe.createRoot=nMt.createRoot,doe.hydrateRoot=nMt.hydrateRoot;const vo=n=>typeof n=="string",jU=()=>{let n,i;const s=new Promise((c,d)=>{n=c,i=d});return s.resolve=n,s.reject=i,s},rMt=n=>n==null?"":""+n,U4n=(n,i,s)=>{n.forEach(c=>{i[c]&&(s[c]=i[c])})},H4n=/###/g,iMt=n=>n&&n.indexOf("###")>-1?n.replace(H4n,"."):n,oMt=n=>!n||vo(n),bH=(n,i,s)=>{const c=vo(i)?i.split("."):i;let d=0;for(;d{const{obj:c,k:d}=bH(n,i,Object);if(c!==void 0||i.length===1){c[d]=s;return}let g=i[i.length-1],b=i.slice(0,i.length-1),w=bH(n,b,Object);for(;w.obj===void 0&&b.length;)g=`${b[b.length-1]}.${g}`,b=b.slice(0,b.length-1),w=bH(n,b,Object),w!=null&&w.obj&&typeof w.obj[`${w.k}.${g}`]<"u"&&(w.obj=void 0);w.obj[`${w.k}.${g}`]=s},z4n=(n,i,s,c)=>{const{obj:d,k:g}=bH(n,i,Object);d[g]=d[g]||[],d[g].push(s)},Poe=(n,i)=>{const{obj:s,k:c}=bH(n,i);if(s&&Object.prototype.hasOwnProperty.call(s,c))return s[c]},G4n=(n,i,s)=>{const c=Poe(n,s);return c!==void 0?c:Poe(i,s)},uHt=(n,i,s)=>{for(const c in i)c!=="__proto__"&&c!=="constructor"&&(c in n?vo(n[c])||n[c]instanceof String||vo(i[c])||i[c]instanceof String?s&&(n[c]=i[c]):uHt(n[c],i[c],s):n[c]=i[c]);return n},b5=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var q4n={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const V4n=n=>vo(n)?n.replace(/[&<>"'\/]/g,i=>q4n[i]):n;class W4n{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const s=this.regExpMap.get(i);if(s!==void 0)return s;const c=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,c),this.regExpQueue.push(i),c}}const K4n=[" ",",","?","!",";"],Y4n=new W4n(20),J4n=(n,i,s)=>{i=i||"",s=s||"";const c=K4n.filter(b=>i.indexOf(b)<0&&s.indexOf(b)<0);if(c.length===0)return!0;const d=Y4n.getRegExp(`(${c.map(b=>b==="?"?"\\?":b).join("|")})`);let g=!d.test(n);if(!g){const b=n.indexOf(s);b>0&&!d.test(n.substring(0,b))&&(g=!0)}return g},tDe=(n,i,s=".")=>{if(!n)return;if(n[i])return Object.prototype.hasOwnProperty.call(n,i)?n[i]:void 0;const c=i.split(s);let d=n;for(let g=0;g-1&&En==null?void 0:n.replace("_","-"),X4n={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,i){var s,c;(c=(s=console==null?void 0:console[n])==null?void 0:s.apply)==null||c.call(s,console,i)}};let Z4n=class nDe{constructor(i,s={}){this.init(i,s)}init(i,s={}){this.prefix=s.prefix||"i18next:",this.logger=i||X4n,this.options=s,this.debug=s.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,s,c,d){return d&&!this.debug?null:(vo(i[0])&&(i[0]=`${c}${this.prefix} ${i[0]}`),this.logger[s](i))}create(i){return new nDe(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new nDe(this.logger,i)}};var D2=new Z4n;class Gse{constructor(){this.observers={}}on(i,s){return i.split(" ").forEach(c=>{this.observers[c]||(this.observers[c]=new Map);const d=this.observers[c].get(s)||0;this.observers[c].set(s,d+1)}),this}off(i,s){if(this.observers[i]){if(!s){delete this.observers[i];return}this.observers[i].delete(s)}}emit(i,...s){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([d,g])=>{for(let b=0;b{for(let b=0;b-1&&this.options.ns.splice(s,1)}getResource(i,s,c,d={}){var S,x;const g=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,b=d.ignoreJSONStructure!==void 0?d.ignoreJSONStructure:this.options.ignoreJSONStructure;let w;i.indexOf(".")>-1?w=i.split("."):(w=[i,s],c&&(Array.isArray(c)?w.push(...c):vo(c)&&g?w.push(...c.split(g)):w.push(c)));const E=Poe(this.data,w);return!E&&!s&&!c&&i.indexOf(".")>-1&&(i=w[0],s=w[1],c=w.slice(2).join(".")),E||!b||!vo(c)?E:tDe((x=(S=this.data)==null?void 0:S[i])==null?void 0:x[s],c,g)}addResource(i,s,c,d,g={silent:!1}){const b=g.keySeparator!==void 0?g.keySeparator:this.options.keySeparator;let w=[i,s];c&&(w=w.concat(b?c.split(b):c)),i.indexOf(".")>-1&&(w=i.split("."),d=s,s=w[1]),this.addNamespaces(s),sMt(this.data,w,d),g.silent||this.emit("added",i,s,c,d)}addResources(i,s,c,d={silent:!1}){for(const g in c)(vo(c[g])||Array.isArray(c[g]))&&this.addResource(i,s,g,c[g],{silent:!0});d.silent||this.emit("added",i,s,c)}addResourceBundle(i,s,c,d,g,b={silent:!1,skipCopy:!1}){let w=[i,s];i.indexOf(".")>-1&&(w=i.split("."),d=c,c=s,s=w[1]),this.addNamespaces(s);let E=Poe(this.data,w)||{};b.skipCopy||(c=JSON.parse(JSON.stringify(c))),d?uHt(E,c,g):E={...E,...c},sMt(this.data,w,E),b.silent||this.emit("added",i,s,c)}removeResourceBundle(i,s){this.hasResourceBundle(i,s)&&delete this.data[i][s],this.removeNamespaces(s),this.emit("removed",i,s)}hasResourceBundle(i,s){return this.getResource(i,s)!==void 0}getResourceBundle(i,s){return s||(s=this.options.defaultNS),this.getResource(i,s)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const s=this.getDataByLanguage(i);return!!(s&&Object.keys(s)||[]).find(d=>s[d]&&Object.keys(s[d]).length>0)}toJSON(){return this.data}}var cHt={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,i,s,c,d){return n.forEach(g=>{var b;i=((b=this.processors[g])==null?void 0:b.process(i,s,c,d))??i}),i}};const lHt=Symbol("i18next/PATH_KEY");function Q4n(){const n=[],i=Object.create(null);let s;return i.get=(c,d)=>{var g;return(g=s==null?void 0:s.revoke)==null||g.call(s),d===lHt?n:(n.push(d),s=Proxy.revocable(c,i),s.proxy)},Proxy.revocable(Object.create(null),i).proxy}function rDe(n,i){const{[lHt]:s}=n(Q4n());return s.join((i==null?void 0:i.keySeparator)??".")}const uMt={},DCe=n=>!vo(n)&&typeof n!="boolean"&&typeof n!="number";class joe extends Gse{constructor(i,s={}){super(),U4n(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=D2.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i,s={interpolation:{}}){const c={...s};if(i==null)return!1;const d=this.resolve(i,c);if((d==null?void 0:d.res)===void 0)return!1;const g=DCe(d.res);return!(c.returnObjects===!1&&g)}extractFromKey(i,s){let c=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const d=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let g=s.ns||this.options.defaultNS||[];const b=c&&i.indexOf(c)>-1,w=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!J4n(i,c,d);if(b&&!w){const E=i.match(this.interpolator.nestingRegexp);if(E&&E.length>0)return{key:i,namespaces:vo(g)?[g]:g};const S=i.split(c);(c!==d||c===d&&this.options.ns.indexOf(S[0])>-1)&&(g=S.shift()),i=S.join(d)}return{key:i,namespaces:vo(g)?[g]:g}}translate(i,s,c){let d=typeof s=="object"?{...s}:s;if(typeof d!="object"&&this.options.overloadTranslationOptionHandler&&(d=this.options.overloadTranslationOptionHandler(arguments)),typeof d=="object"&&(d={...d}),d||(d={}),i==null)return"";typeof i=="function"&&(i=rDe(i,{...this.options,...d})),Array.isArray(i)||(i=[String(i)]);const g=d.returnDetails!==void 0?d.returnDetails:this.options.returnDetails,b=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,{key:w,namespaces:E}=this.extractFromKey(i[i.length-1],d),S=E[E.length-1];let x=d.nsSeparator!==void 0?d.nsSeparator:this.options.nsSeparator;x===void 0&&(x=":");const A=d.lng||this.language,C=d.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((A==null?void 0:A.toLowerCase())==="cimode")return C?g?{res:`${S}${x}${w}`,usedKey:w,exactUsedKey:w,usedLng:A,usedNS:S,usedParams:this.getUsedParamsDetails(d)}:`${S}${x}${w}`:g?{res:w,usedKey:w,exactUsedKey:w,usedLng:A,usedNS:S,usedParams:this.getUsedParamsDetails(d)}:w;const R=this.resolve(i,d);let L=R==null?void 0:R.res;const D=(R==null?void 0:R.usedKey)||w,B=(R==null?void 0:R.exactUsedKey)||w,$=["[object Number]","[object Function]","[object RegExp]"],j=d.joinArrays!==void 0?d.joinArrays:this.options.joinArrays,P=!this.i18nFormat||this.i18nFormat.handleAsObject,G=d.count!==void 0&&!vo(d.count),ee=joe.hasDefaultValue(d),re=G?this.pluralResolver.getSuffix(A,d.count,d):"",Q=d.ordinal&&G?this.pluralResolver.getSuffix(A,d.count,{ordinal:!1}):"",ie=G&&!d.ordinal&&d.count===0,pe=ie&&d[`defaultValue${this.options.pluralSeparator}zero`]||d[`defaultValue${re}`]||d[`defaultValue${Q}`]||d.defaultValue;let me=L;P&&!L&&ee&&(me=pe);const le=DCe(me),fe=Object.prototype.toString.apply(me);if(P&&me&&le&&$.indexOf(fe)<0&&!(vo(j)&&Array.isArray(me))){if(!d.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const K=this.options.returnedObjectHandler?this.options.returnedObjectHandler(D,me,{...d,ns:E}):`key '${w} (${this.language})' returned an object instead of string.`;return g?(R.res=K,R.usedParams=this.getUsedParamsDetails(d),R):K}if(b){const K=Array.isArray(me),he=K?[]:{},Oe=K?B:D;for(const Se in me)if(Object.prototype.hasOwnProperty.call(me,Se)){const Le=`${Oe}${b}${Se}`;ee&&!L?he[Se]=this.translate(Le,{...d,defaultValue:DCe(pe)?pe[Se]:void 0,joinArrays:!1,ns:E}):he[Se]=this.translate(Le,{...d,joinArrays:!1,ns:E}),he[Se]===Le&&(he[Se]=me[Se])}L=he}}else if(P&&vo(j)&&Array.isArray(L))L=L.join(j),L&&(L=this.extendTranslation(L,i,d,c));else{let K=!1,he=!1;!this.isValidLookup(L)&&ee&&(K=!0,L=pe),this.isValidLookup(L)||(he=!0,L=w);const Se=(d.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&he?void 0:L,Le=ee&&pe!==L&&this.options.updateMissing;if(he||K||Le){if(this.logger.log(Le?"updateKey":"missingKey",A,S,w,Le?pe:L),b){const dt=this.resolve(w,{...d,keySeparator:!1});dt&&dt.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ae=[];const xe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,d.lng||this.language);if(this.options.saveMissingTo==="fallback"&&xe&&xe[0])for(let dt=0;dt{var ht;const kt=ee&&bt!==L?bt:Se;this.options.missingKeyHandler?this.options.missingKeyHandler(dt,S,Ue,kt,Le,d):(ht=this.backendConnector)!=null&&ht.saveMissing&&this.backendConnector.saveMissing(dt,S,Ue,kt,Le,d),this.emit("missingKey",dt,S,Ue,L)};this.options.saveMissing&&(this.options.saveMissingPlurals&&G?Ae.forEach(dt=>{const Ue=this.pluralResolver.getSuffixes(dt,d);ie&&d[`defaultValue${this.options.pluralSeparator}zero`]&&Ue.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ue.push(`${this.options.pluralSeparator}zero`),Ue.forEach(bt=>{We([dt],w+bt,d[`defaultValue${bt}`]||pe)})}):We(Ae,w,pe))}L=this.extendTranslation(L,i,d,R,c),he&&L===w&&this.options.appendNamespaceToMissingKey&&(L=`${S}${x}${w}`),(he||K)&&this.options.parseMissingKeyHandler&&(L=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${S}${x}${w}`:w,K?L:void 0,d))}return g?(R.res=L,R.usedParams=this.getUsedParamsDetails(d),R):L}extendTranslation(i,s,c,d,g){var E,S;if((E=this.i18nFormat)!=null&&E.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...c},c.lng||this.language||d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!c.skipInterpolation){c.interpolation&&this.interpolator.init({...c,interpolation:{...this.options.interpolation,...c.interpolation}});const x=vo(i)&&(((S=c==null?void 0:c.interpolation)==null?void 0:S.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let A;if(x){const R=i.match(this.interpolator.nestingRegexp);A=R&&R.length}let C=c.replace&&!vo(c.replace)?c.replace:c;if(this.options.interpolation.defaultVariables&&(C={...this.options.interpolation.defaultVariables,...C}),i=this.interpolator.interpolate(i,C,c.lng||this.language||d.usedLng,c),x){const R=i.match(this.interpolator.nestingRegexp),L=R&&R.length;A(g==null?void 0:g[0])===R[0]&&!c.context?(this.logger.warn(`It seems you are nesting recursively key: ${R[0]} in key: ${s[0]}`),null):this.translate(...R,s),c)),c.interpolation&&this.interpolator.reset()}const b=c.postProcess||this.options.postProcess,w=vo(b)?[b]:b;return i!=null&&(w!=null&&w.length)&&c.applyPostProcessor!==!1&&(i=cHt.handle(w,i,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...d,usedParams:this.getUsedParamsDetails(c)},...c}:c,this)),i}resolve(i,s={}){let c,d,g,b,w;return vo(i)&&(i=[i]),i.forEach(E=>{if(this.isValidLookup(c))return;const S=this.extractFromKey(E,s),x=S.key;d=x;let A=S.namespaces;this.options.fallbackNS&&(A=A.concat(this.options.fallbackNS));const C=s.count!==void 0&&!vo(s.count),R=C&&!s.ordinal&&s.count===0,L=s.context!==void 0&&(vo(s.context)||typeof s.context=="number")&&s.context!=="",D=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);A.forEach(B=>{var $,j;this.isValidLookup(c)||(w=B,!uMt[`${D[0]}-${B}`]&&(($=this.utils)!=null&&$.hasLoadedNamespace)&&!((j=this.utils)!=null&&j.hasLoadedNamespace(w))&&(uMt[`${D[0]}-${B}`]=!0,this.logger.warn(`key "${d}" for languages "${D.join(", ")}" won't get resolved as namespace "${w}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),D.forEach(P=>{var re;if(this.isValidLookup(c))return;b=P;const G=[x];if((re=this.i18nFormat)!=null&&re.addLookupKeys)this.i18nFormat.addLookupKeys(G,x,P,B,s);else{let Q;C&&(Q=this.pluralResolver.getSuffix(P,s.count,s));const ie=`${this.options.pluralSeparator}zero`,pe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(C&&(s.ordinal&&Q.indexOf(pe)===0&&G.push(x+Q.replace(pe,this.options.pluralSeparator)),G.push(x+Q),R&&G.push(x+ie)),L){const me=`${x}${this.options.contextSeparator||"_"}${s.context}`;G.push(me),C&&(s.ordinal&&Q.indexOf(pe)===0&&G.push(me+Q.replace(pe,this.options.pluralSeparator)),G.push(me+Q),R&&G.push(me+ie))}}let ee;for(;ee=G.pop();)this.isValidLookup(c)||(g=ee,c=this.getResource(P,B,ee,s))}))})}),{res:c,usedKey:d,exactUsedKey:g,usedLng:b,usedNS:w}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,s,c,d={}){var g;return(g=this.i18nFormat)!=null&&g.getResource?this.i18nFormat.getResource(i,s,c,d):this.resourceStore.getResource(i,s,c,d)}getUsedParamsDetails(i={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],c=i.replace&&!vo(i.replace);let d=c?i.replace:i;if(c&&typeof i.count<"u"&&(d.count=i.count),this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),!c){d={...d};for(const g of s)delete d[g]}return d}static hasDefaultValue(i){const s="defaultValue";for(const c in i)if(Object.prototype.hasOwnProperty.call(i,c)&&s===c.substring(0,s.length)&&i[c]!==void 0)return!0;return!1}}class cMt{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=D2.create("languageUtils")}getScriptPartFromCode(i){if(i=zH(i),!i||i.indexOf("-")<0)return null;const s=i.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(i){if(i=zH(i),!i||i.indexOf("-")<0)return i;const s=i.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(i){if(vo(i)&&i.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(i)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let s;return i.forEach(c=>{if(s)return;const d=this.formatLanguageCode(c);(!this.options.supportedLngs||this.isSupportedCode(d))&&(s=d)}),!s&&this.options.supportedLngs&&i.forEach(c=>{if(s)return;const d=this.getScriptPartFromCode(c);if(this.isSupportedCode(d))return s=d;const g=this.getLanguagePartFromCode(c);if(this.isSupportedCode(g))return s=g;s=this.options.supportedLngs.find(b=>{if(b===g)return b;if(!(b.indexOf("-")<0&&g.indexOf("-")<0)&&(b.indexOf("-")>0&&g.indexOf("-")<0&&b.substring(0,b.indexOf("-"))===g||b.indexOf(g)===0&&g.length>1))return b})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(i,s){if(!i)return[];if(typeof i=="function"&&(i=i(s)),vo(i)&&(i=[i]),Array.isArray(i))return i;if(!s)return i.default||[];let c=i[s];return c||(c=i[this.getScriptPartFromCode(s)]),c||(c=i[this.formatLanguageCode(s)]),c||(c=i[this.getLanguagePartFromCode(s)]),c||(c=i.default),c||[]}toResolveHierarchy(i,s){const c=this.getFallbackCodes((s===!1?[]:s)||this.options.fallbackLng||[],i),d=[],g=b=>{b&&(this.isSupportedCode(b)?d.push(b):this.logger.warn(`rejecting language code not found in supportedLngs: ${b}`))};return vo(i)&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&g(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&g(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&g(this.getLanguagePartFromCode(i))):vo(i)&&g(this.formatLanguageCode(i)),c.forEach(b=>{d.indexOf(b)<0&&g(this.formatLanguageCode(b))}),d}}const lMt={zero:0,one:1,two:2,few:3,many:4,other:5},dMt={select:n=>n===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class eRn{constructor(i,s={}){this.languageUtils=i,this.options=s,this.logger=D2.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,s={}){const c=zH(i==="dev"?"en":i),d=s.ordinal?"ordinal":"cardinal",g=JSON.stringify({cleanedCode:c,type:d});if(g in this.pluralRulesCache)return this.pluralRulesCache[g];let b;try{b=new Intl.PluralRules(c,{type:d})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),dMt;if(!i.match(/-|_/))return dMt;const E=this.languageUtils.getLanguagePartFromCode(i);b=this.getRule(E,s)}return this.pluralRulesCache[g]=b,b}needsPlural(i,s={}){let c=this.getRule(i,s);return c||(c=this.getRule("dev",s)),(c==null?void 0:c.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(i,s,c={}){return this.getSuffixes(i,c).map(d=>`${s}${d}`)}getSuffixes(i,s={}){let c=this.getRule(i,s);return c||(c=this.getRule("dev",s)),c?c.resolvedOptions().pluralCategories.sort((d,g)=>lMt[d]-lMt[g]).map(d=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${d}`):[]}getSuffix(i,s,c={}){const d=this.getRule(i,c);return d?`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${d.select(s)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",s,c))}}const fMt=(n,i,s,c=".",d=!0)=>{let g=G4n(n,i,s);return!g&&d&&vo(s)&&(g=tDe(n,s,c),g===void 0&&(g=tDe(i,s,c))),g},LCe=n=>n.replace(/\$/g,"$$$$");class hMt{constructor(i={}){var s;this.logger=D2.create("interpolator"),this.options=i,this.format=((s=i==null?void 0:i.interpolation)==null?void 0:s.format)||(c=>c),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:s,escapeValue:c,useRawValueToEscape:d,prefix:g,prefixEscaped:b,suffix:w,suffixEscaped:E,formatSeparator:S,unescapeSuffix:x,unescapePrefix:A,nestingPrefix:C,nestingPrefixEscaped:R,nestingSuffix:L,nestingSuffixEscaped:D,nestingOptionsSeparator:B,maxReplaces:$,alwaysFormat:j}=i.interpolation;this.escape=s!==void 0?s:V4n,this.escapeValue=c!==void 0?c:!0,this.useRawValueToEscape=d!==void 0?d:!1,this.prefix=g?b5(g):b||"{{",this.suffix=w?b5(w):E||"}}",this.formatSeparator=S||",",this.unescapePrefix=x?"":A||"-",this.unescapeSuffix=this.unescapePrefix?"":x||"",this.nestingPrefix=C?b5(C):R||b5("$t("),this.nestingSuffix=L?b5(L):D||b5(")"),this.nestingOptionsSeparator=B||",",this.maxReplaces=$||1e3,this.alwaysFormat=j!==void 0?j:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(s,c)=>(s==null?void 0:s.source)===c?(s.lastIndex=0,s):new RegExp(c,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,s,c,d){var R;let g,b,w;const E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},S=L=>{if(L.indexOf(this.formatSeparator)<0){const j=fMt(s,E,L,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,c,{...d,...s,interpolationkey:L}):j}const D=L.split(this.formatSeparator),B=D.shift().trim(),$=D.join(this.formatSeparator).trim();return this.format(fMt(s,E,B,this.options.keySeparator,this.options.ignoreJSONStructure),$,c,{...d,...s,interpolationkey:B})};this.resetRegExp();const x=(d==null?void 0:d.missingInterpolationHandler)||this.options.missingInterpolationHandler,A=((R=d==null?void 0:d.interpolation)==null?void 0:R.skipOnVariables)!==void 0?d.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:L=>LCe(L)},{regex:this.regexp,safeValue:L=>this.escapeValue?LCe(this.escape(L)):LCe(L)}].forEach(L=>{for(w=0;g=L.regex.exec(i);){const D=g[1].trim();if(b=S(D),b===void 0)if(typeof x=="function"){const $=x(i,g,d);b=vo($)?$:""}else if(d&&Object.prototype.hasOwnProperty.call(d,D))b="";else if(A){b=g[0];continue}else this.logger.warn(`missed to pass in variable ${D} for interpolating ${i}`),b="";else!vo(b)&&!this.useRawValueToEscape&&(b=rMt(b));const B=L.safeValue(b);if(i=i.replace(g[0],B),A?(L.regex.lastIndex+=b.length,L.regex.lastIndex-=g[0].length):L.regex.lastIndex=0,w++,w>=this.maxReplaces)break}}),i}nest(i,s,c={}){let d,g,b;const w=(E,S)=>{const x=this.nestingOptionsSeparator;if(E.indexOf(x)<0)return E;const A=E.split(new RegExp(`${x}[ ]*{`));let C=`{${A[1]}`;E=A[0],C=this.interpolate(C,b);const R=C.match(/'/g),L=C.match(/"/g);(((R==null?void 0:R.length)??0)%2===0&&!L||L.length%2!==0)&&(C=C.replace(/'/g,'"'));try{b=JSON.parse(C),S&&(b={...S,...b})}catch(D){return this.logger.warn(`failed parsing options string in nesting for key ${E}`,D),`${E}${x}${C}`}return b.defaultValue&&b.defaultValue.indexOf(this.prefix)>-1&&delete b.defaultValue,E};for(;d=this.nestingRegexp.exec(i);){let E=[];b={...c},b=b.replace&&!vo(b.replace)?b.replace:b,b.applyPostProcessor=!1,delete b.defaultValue;const S=/{.*}/.test(d[1])?d[1].lastIndexOf("}")+1:d[1].indexOf(this.formatSeparator);if(S!==-1&&(E=d[1].slice(S).split(this.formatSeparator).map(x=>x.trim()).filter(Boolean),d[1]=d[1].slice(0,S)),g=s(w.call(this,d[1].trim(),b),b),g&&d[0]===i&&!vo(g))return g;vo(g)||(g=rMt(g)),g||(this.logger.warn(`missed to resolve ${d[1]} for nesting ${i}`),g=""),E.length&&(g=E.reduce((x,A)=>this.format(x,A,c.lng,{...c,interpolationkey:d[1].trim()}),g.trim())),i=i.replace(d[0],g),this.regexp.lastIndex=0}return i}}const tRn=n=>{let i=n.toLowerCase().trim();const s={};if(n.indexOf("(")>-1){const c=n.split("(");i=c[0].toLowerCase().trim();const d=c[1].substring(0,c[1].length-1);i==="currency"&&d.indexOf(":")<0?s.currency||(s.currency=d.trim()):i==="relativetime"&&d.indexOf(":")<0?s.range||(s.range=d.trim()):d.split(";").forEach(b=>{if(b){const[w,...E]=b.split(":"),S=E.join(":").trim().replace(/^'+|'+$/g,""),x=w.trim();s[x]||(s[x]=S),S==="false"&&(s[x]=!1),S==="true"&&(s[x]=!0),isNaN(S)||(s[x]=parseInt(S,10))}})}return{formatName:i,formatOptions:s}},pMt=n=>{const i={};return(s,c,d)=>{let g=d;d&&d.interpolationkey&&d.formatParams&&d.formatParams[d.interpolationkey]&&d[d.interpolationkey]&&(g={...g,[d.interpolationkey]:void 0});const b=c+JSON.stringify(g);let w=i[b];return w||(w=n(zH(c),d),i[b]=w),w(s)}},nRn=n=>(i,s,c)=>n(zH(s),c)(i);class rRn{constructor(i={}){this.logger=D2.create("formatter"),this.options=i,this.init(i)}init(i,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const c=s.cacheInBuiltFormats?pMt:nRn;this.formats={number:c((d,g)=>{const b=new Intl.NumberFormat(d,{...g});return w=>b.format(w)}),currency:c((d,g)=>{const b=new Intl.NumberFormat(d,{...g,style:"currency"});return w=>b.format(w)}),datetime:c((d,g)=>{const b=new Intl.DateTimeFormat(d,{...g});return w=>b.format(w)}),relativetime:c((d,g)=>{const b=new Intl.RelativeTimeFormat(d,{...g});return w=>b.format(w,g.range||"day")}),list:c((d,g)=>{const b=new Intl.ListFormat(d,{...g});return w=>b.format(w)})}}add(i,s){this.formats[i.toLowerCase().trim()]=s}addCached(i,s){this.formats[i.toLowerCase().trim()]=pMt(s)}format(i,s,c,d={}){const g=s.split(this.formatSeparator);if(g.length>1&&g[0].indexOf("(")>1&&g[0].indexOf(")")<0&&g.find(w=>w.indexOf(")")>-1)){const w=g.findIndex(E=>E.indexOf(")")>-1);g[0]=[g[0],...g.splice(1,w)].join(this.formatSeparator)}return g.reduce((w,E)=>{var A;const{formatName:S,formatOptions:x}=tRn(E);if(this.formats[S]){let C=w;try{const R=((A=d==null?void 0:d.formatParams)==null?void 0:A[d.interpolationkey])||{},L=R.locale||R.lng||d.locale||d.lng||c;C=this.formats[S](w,L,{...x,...d,...R})}catch(R){this.logger.warn(R)}return C}else this.logger.warn(`there was no format function for ${S}`);return w},i)}}const iRn=(n,i)=>{n.pending[i]!==void 0&&(delete n.pending[i],n.pendingCount--)};class oRn extends Gse{constructor(i,s,c,d={}){var g,b;super(),this.backend=i,this.store=s,this.services=c,this.languageUtils=c.languageUtils,this.options=d,this.logger=D2.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],(b=(g=this.backend)==null?void 0:g.init)==null||b.call(g,c,d.backend,d)}queueLoad(i,s,c,d){const g={},b={},w={},E={};return i.forEach(S=>{let x=!0;s.forEach(A=>{const C=`${S}|${A}`;!c.reload&&this.store.hasResourceBundle(S,A)?this.state[C]=2:this.state[C]<0||(this.state[C]===1?b[C]===void 0&&(b[C]=!0):(this.state[C]=1,x=!1,b[C]===void 0&&(b[C]=!0),g[C]===void 0&&(g[C]=!0),E[A]===void 0&&(E[A]=!0)))}),x||(w[S]=!0)}),(Object.keys(g).length||Object.keys(b).length)&&this.queue.push({pending:b,pendingCount:Object.keys(b).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(g),pending:Object.keys(b),toLoadLanguages:Object.keys(w),toLoadNamespaces:Object.keys(E)}}loaded(i,s,c){const d=i.split("|"),g=d[0],b=d[1];s&&this.emit("failedLoading",g,b,s),!s&&c&&this.store.addResourceBundle(g,b,c,void 0,void 0,{skipCopy:!0}),this.state[i]=s?-1:2,s&&c&&(this.state[i]=0);const w={};this.queue.forEach(E=>{z4n(E.loaded,[g],b),iRn(E,i),s&&E.errors.push(s),E.pendingCount===0&&!E.done&&(Object.keys(E.loaded).forEach(S=>{w[S]||(w[S]={});const x=E.loaded[S];x.length&&x.forEach(A=>{w[S][A]===void 0&&(w[S][A]=!0)})}),E.done=!0,E.errors.length?E.callback(E.errors):E.callback())}),this.emit("loaded",w),this.queue=this.queue.filter(E=>!E.done)}read(i,s,c,d=0,g=this.retryTimeout,b){if(!i.length)return b(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:s,fcName:c,tried:d,wait:g,callback:b});return}this.readingCalls++;const w=(S,x)=>{if(this.readingCalls--,this.waitingReads.length>0){const A=this.waitingReads.shift();this.read(A.lng,A.ns,A.fcName,A.tried,A.wait,A.callback)}if(S&&x&&d{this.read.call(this,i,s,c,d+1,g*2,b)},g);return}b(S,x)},E=this.backend[c].bind(this.backend);if(E.length===2){try{const S=E(i,s);S&&typeof S.then=="function"?S.then(x=>w(null,x)).catch(w):w(null,S)}catch(S){w(S)}return}return E(i,s,w)}prepareLoading(i,s,c={},d){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),d&&d();vo(i)&&(i=this.languageUtils.toResolveHierarchy(i)),vo(s)&&(s=[s]);const g=this.queueLoad(i,s,c,d);if(!g.toLoad.length)return g.pending.length||d(),null;g.toLoad.forEach(b=>{this.loadOne(b)})}load(i,s,c){this.prepareLoading(i,s,{},c)}reload(i,s,c){this.prepareLoading(i,s,{reload:!0},c)}loadOne(i,s=""){const c=i.split("|"),d=c[0],g=c[1];this.read(d,g,"read",void 0,void 0,(b,w)=>{b&&this.logger.warn(`${s}loading namespace ${g} for language ${d} failed`,b),!b&&w&&this.logger.log(`${s}loaded namespace ${g} for language ${d}`,w),this.loaded(i,b,w)})}saveMissing(i,s,c,d,g,b={},w=()=>{}){var E,S,x,A,C;if((S=(E=this.services)==null?void 0:E.utils)!=null&&S.hasLoadedNamespace&&!((A=(x=this.services)==null?void 0:x.utils)!=null&&A.hasLoadedNamespace(s))){this.logger.warn(`did not save key "${c}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(c==null||c==="")){if((C=this.backend)!=null&&C.create){const R={...b,isUpdate:g},L=this.backend.create.bind(this.backend);if(L.length<6)try{let D;L.length===5?D=L(i,s,c,d,R):D=L(i,s,c,d),D&&typeof D.then=="function"?D.then(B=>w(null,B)).catch(w):w(null,D)}catch(D){w(D)}else L(i,s,c,d,w,R)}!i||!i[0]||this.store.addResource(i[0],s,c,d)}}}const MCe=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:n=>{let i={};if(typeof n[1]=="object"&&(i=n[1]),vo(n[1])&&(i.defaultValue=n[1]),vo(n[2])&&(i.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const s=n[3]||n[2];Object.keys(s).forEach(c=>{i[c]=s[c]})}return i},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),gMt=n=>{var i,s;return vo(n.ns)&&(n.ns=[n.ns]),vo(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),vo(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),((s=(i=n.supportedLngs)==null?void 0:i.indexOf)==null?void 0:s.call(i,"cimode"))<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),typeof n.initImmediate=="boolean"&&(n.initAsync=n.initImmediate),n},lie=()=>{},sRn=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(s=>{typeof n[s]=="function"&&(n[s]=n[s].bind(n))})};class mH extends Gse{constructor(i={},s){if(super(),this.options=gMt(i),this.services={},this.logger=D2,this.modules={external:[]},sRn(this),s&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,s),this;setTimeout(()=>{this.init(i,s)},0)}}init(i={},s){this.isInitializing=!0,typeof i=="function"&&(s=i,i={}),i.defaultNS==null&&i.ns&&(vo(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const c=MCe();this.options={...c,...this.options,...gMt(i)},this.options.interpolation={...c.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=c.overloadTranslationOptionHandler),this.options.debug===!0&&typeof console<"u"&&console.warn("i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com");const d=S=>S?typeof S=="function"?new S:S:null;if(!this.options.isClone){this.modules.logger?D2.init(d(this.modules.logger),this.options):D2.init(null,this.options);let S;this.modules.formatter?S=this.modules.formatter:S=rRn;const x=new cMt(this.options);this.store=new aMt(this.options.resources,this.options);const A=this.services;A.logger=D2,A.resourceStore=this.store,A.languageUtils=x,A.pluralResolver=new eRn(x,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==c.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),S&&(!this.options.interpolation.format||this.options.interpolation.format===c.interpolation.format)&&(A.formatter=d(S),A.formatter.init&&A.formatter.init(A,this.options),this.options.interpolation.format=A.formatter.format.bind(A.formatter)),A.interpolator=new hMt(this.options),A.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},A.backendConnector=new oRn(d(this.modules.backend),A.resourceStore,A,this.options),A.backendConnector.on("*",(R,...L)=>{this.emit(R,...L)}),this.modules.languageDetector&&(A.languageDetector=d(this.modules.languageDetector),A.languageDetector.init&&A.languageDetector.init(A,this.options.detection,this.options)),this.modules.i18nFormat&&(A.i18nFormat=d(this.modules.i18nFormat),A.i18nFormat.init&&A.i18nFormat.init(this)),this.translator=new joe(this.services,this.options),this.translator.on("*",(R,...L)=>{this.emit(R,...L)}),this.modules.external.forEach(R=>{R.init&&R.init(this)})}if(this.format=this.options.interpolation.format,s||(s=lie),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const S=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);S.length>0&&S[0]!=="dev"&&(this.options.lng=S[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(S=>{this[S]=(...x)=>this.store[S](...x)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(S=>{this[S]=(...x)=>(this.store[S](...x),this)});const w=jU(),E=()=>{const S=(x,A)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),w.resolve(A),s(x,A)};if(this.languages&&!this.isInitialized)return S(null,this.t.bind(this));this.changeLanguage(this.options.lng,S)};return this.options.resources||!this.options.initAsync?E():setTimeout(E,0),w}loadResources(i,s=lie){var g,b;let c=s;const d=vo(i)?i:this.language;if(typeof i=="function"&&(c=i),!this.options.resources||this.options.partialBundledLanguages){if((d==null?void 0:d.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return c();const w=[],E=S=>{if(!S||S==="cimode")return;this.services.languageUtils.toResolveHierarchy(S).forEach(A=>{A!=="cimode"&&w.indexOf(A)<0&&w.push(A)})};d?E(d):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(x=>E(x)),(b=(g=this.options.preload)==null?void 0:g.forEach)==null||b.call(g,S=>E(S)),this.services.backendConnector.load(w,this.options.ns,S=>{!S&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),c(S)})}else c(null)}reloadResources(i,s,c){const d=jU();return typeof i=="function"&&(c=i,i=void 0),typeof s=="function"&&(c=s,s=void 0),i||(i=this.languages),s||(s=this.options.ns),c||(c=lie),this.services.backendConnector.reload(i,s,g=>{d.resolve(),c(g)}),d}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&cHt.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1)){for(let s=0;s-1)&&this.store.hasLanguageSomeTranslations(c)){this.resolvedLanguage=c;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,s){this.isLanguageChangingTo=i;const c=jU();this.emit("languageChanging",i);const d=w=>{this.language=w,this.languages=this.services.languageUtils.toResolveHierarchy(w),this.resolvedLanguage=void 0,this.setResolvedLanguage(w)},g=(w,E)=>{E?this.isLanguageChangingTo===i&&(d(E),this.translator.changeLanguage(E),this.isLanguageChangingTo=void 0,this.emit("languageChanged",E),this.logger.log("languageChanged",E)):this.isLanguageChangingTo=void 0,c.resolve((...S)=>this.t(...S)),s&&s(w,(...S)=>this.t(...S))},b=w=>{var x,A;!i&&!w&&this.services.languageDetector&&(w=[]);const E=vo(w)?w:w&&w[0],S=this.store.hasLanguageSomeTranslations(E)?E:this.services.languageUtils.getBestMatchFromCodes(vo(w)?[w]:w);S&&(this.language||d(S),this.translator.language||this.translator.changeLanguage(S),(A=(x=this.services.languageDetector)==null?void 0:x.cacheUserLanguage)==null||A.call(x,S)),this.loadResources(S,C=>{g(C,S)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?b(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(b):this.services.languageDetector.detect(b):b(i),c}getFixedT(i,s,c){const d=(g,b,...w)=>{let E;typeof b!="object"?E=this.options.overloadTranslationOptionHandler([g,b].concat(w)):E={...b},E.lng=E.lng||d.lng,E.lngs=E.lngs||d.lngs,E.ns=E.ns||d.ns,E.keyPrefix!==""&&(E.keyPrefix=E.keyPrefix||c||d.keyPrefix);const S=this.options.keySeparator||".";let x;return E.keyPrefix&&Array.isArray(g)?x=g.map(A=>(typeof A=="function"&&(A=rDe(A,{...this.options,...b})),`${E.keyPrefix}${S}${A}`)):(typeof g=="function"&&(g=rDe(g,{...this.options,...b})),x=E.keyPrefix?`${E.keyPrefix}${S}${g}`:g),this.t(x,E)};return vo(i)?d.lng=i:d.lngs=i,d.ns=s,d.keyPrefix=c,d}t(...i){var s;return(s=this.translator)==null?void 0:s.translate(...i)}exists(...i){var s;return(s=this.translator)==null?void 0:s.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,s={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const c=s.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,g=this.languages[this.languages.length-1];if(c.toLowerCase()==="cimode")return!0;const b=(w,E)=>{const S=this.services.backendConnector.state[`${w}|${E}`];return S===-1||S===0||S===2};if(s.precheck){const w=s.precheck(this,b);if(w!==void 0)return w}return!!(this.hasResourceBundle(c,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||b(c,i)&&(!d||b(g,i)))}loadNamespaces(i,s){const c=jU();return this.options.ns?(vo(i)&&(i=[i]),i.forEach(d=>{this.options.ns.indexOf(d)<0&&this.options.ns.push(d)}),this.loadResources(d=>{c.resolve(),s&&s(d)}),c):(s&&s(),Promise.resolve())}loadLanguages(i,s){const c=jU();vo(i)&&(i=[i]);const d=this.options.preload||[],g=i.filter(b=>d.indexOf(b)<0&&this.services.languageUtils.isSupportedCode(b));return g.length?(this.options.preload=d.concat(g),this.loadResources(b=>{c.resolve(),s&&s(b)}),c):(s&&s(),Promise.resolve())}dir(i){var d,g;if(i||(i=this.resolvedLanguage||(((d=this.languages)==null?void 0:d.length)>0?this.languages[0]:this.language)),!i)return"rtl";try{const b=new Intl.Locale(i);if(b&&b.getTextInfo){const w=b.getTextInfo();if(w&&w.direction)return w.direction}}catch{}const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],c=((g=this.services)==null?void 0:g.languageUtils)||new cMt(MCe());return i.toLowerCase().indexOf("-latn")>1?"ltr":s.indexOf(c.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},s){const c=new mH(i,s);return c.createInstance=mH.createInstance,c}cloneInstance(i={},s=lie){const c=i.forkResourceStore;c&&delete i.forkResourceStore;const d={...this.options,...i,isClone:!0},g=new mH(d);if((i.debug!==void 0||i.prefix!==void 0)&&(g.logger=g.logger.clone(i)),["store","services","language"].forEach(w=>{g[w]=this[w]}),g.services={...this.services},g.services.utils={hasLoadedNamespace:g.hasLoadedNamespace.bind(g)},c){const w=Object.keys(this.store.data).reduce((E,S)=>(E[S]={...this.store.data[S]},E[S]=Object.keys(E[S]).reduce((x,A)=>(x[A]={...E[S][A]},x),E[S]),E),{});g.store=new aMt(w,d),g.services.resourceStore=g.store}if(i.interpolation){const E={...MCe().interpolation,...this.options.interpolation,...i.interpolation},S={...d,interpolation:E};g.services.interpolator=new hMt(S)}return g.translator=new joe(g.services,d),g.translator.on("*",(w,...E)=>{g.emit(w,...E)}),g.init(d,s),g.translator.options=d,g.translator.backendConnector.services.utils={hasLoadedNamespace:g.hasLoadedNamespace.bind(g)},g}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Hh=mH.createInstance();Hh.createInstance;Hh.dir;Hh.init;Hh.loadResources;Hh.reloadResources;Hh.use;Hh.changeLanguage;Hh.getFixedT;const Jie=Hh.t;Hh.exists;Hh.setDefaultNamespace;Hh.hasLoadedNamespace;Hh.loadNamespaces;Hh.loadLanguages;const aRn=(n,i,s,c)=>{var g,b,w,E;const d=[s,{code:i,...c||{}}];if((b=(g=n==null?void 0:n.services)==null?void 0:g.logger)!=null&&b.forward)return n.services.logger.forward(d,"warn","react-i18next::",!0);lR(d[0])&&(d[0]=`react-i18next:: ${d[0]}`),(E=(w=n==null?void 0:n.services)==null?void 0:w.logger)!=null&&E.warn?n.services.logger.warn(...d):console!=null&&console.warn&&console.warn(...d)},bMt={},dHt=(n,i,s,c)=>{lR(s)&&bMt[s]||(lR(s)&&(bMt[s]=new Date),aRn(n,i,s,c))},fHt=(n,i)=>()=>{if(n.isInitialized)i();else{const s=()=>{setTimeout(()=>{n.off("initialized",s)},0),i()};n.on("initialized",s)}},iDe=(n,i,s)=>{n.loadNamespaces(i,fHt(n,s))},mMt=(n,i,s,c)=>{if(lR(s)&&(s=[s]),n.options.preload&&n.options.preload.indexOf(i)>-1)return iDe(n,s,c);s.forEach(d=>{n.options.ns.indexOf(d)<0&&n.options.ns.push(d)}),n.loadLanguages(i,fHt(n,c))},uRn=(n,i,s={})=>!i.languages||!i.languages.length?(dHt(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(n,{lng:s.lng,precheck:(c,d)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&c.services.backendConnector.backend&&c.isLanguageChangingTo&&!d(c.isLanguageChangingTo,n))return!1}}),lR=n=>typeof n=="string",cRn=n=>typeof n=="object"&&n!==null,lRn=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,dRn={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},fRn=n=>dRn[n],hRn=n=>n.replace(lRn,fRn);let oDe={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:hRn,transDefaultProps:void 0};const pRn=(n={})=>{oDe={...oDe,...n}},gRn=()=>oDe;let hHt;const bRn=n=>{hHt=n},mRn=()=>hHt,wRn={type:"3rdParty",init(n){pRn(n.options.react),bRn(n)}},pHt=H.createContext();class yRn{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var gHt={exports:{}},bHt={};/** + * @license React + * use-sync-external-store-shim.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var wM=H;function vRn(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var ERn=typeof Object.is=="function"?Object.is:vRn,SRn=wM.useState,TRn=wM.useEffect,ARn=wM.useLayoutEffect,_Rn=wM.useDebugValue;function xRn(n,i){var s=i(),c=SRn({inst:{value:s,getSnapshot:i}}),d=c[0].inst,g=c[1];return ARn(function(){d.value=s,d.getSnapshot=i,PCe(d)&&g({inst:d})},[n,s,i]),TRn(function(){return PCe(d)&&g({inst:d}),n(function(){PCe(d)&&g({inst:d})})},[n]),_Rn(s),s}function PCe(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!ERn(n,s)}catch{return!0}}function kRn(n,i){return i()}var NRn=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?kRn:xRn;bHt.useSyncExternalStore=wM.useSyncExternalStore!==void 0?wM.useSyncExternalStore:NRn;gHt.exports=bHt;var mHt=gHt.exports;const CRn=(n,i)=>lR(i)?i:cRn(i)&&lR(i.defaultValue)?i.defaultValue:Array.isArray(n)?n[n.length-1]:n,IRn={t:CRn,ready:!1},RRn=()=>()=>{},ps=(n,i={})=>{var pe,me,le;const{i18n:s}=i,{i18n:c,defaultNS:d}=H.useContext(pHt)||{},g=s||c||mRn();g&&!g.reportNamespaces&&(g.reportNamespaces=new yRn),g||dHt(g,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const b=H.useMemo(()=>{var fe;return{...gRn(),...(fe=g==null?void 0:g.options)==null?void 0:fe.react,...i}},[g,i]),{useSuspense:w,keyPrefix:E}=b,S=n||d||((pe=g==null?void 0:g.options)==null?void 0:pe.defaultNS),x=lR(S)?[S]:S||["translation"],A=H.useMemo(()=>x,x);(le=(me=g==null?void 0:g.reportNamespaces)==null?void 0:me.addUsedNamespaces)==null||le.call(me,A);const C=H.useRef(0),R=H.useCallback(fe=>{if(!g)return RRn;const{bindI18n:K,bindI18nStore:he}=b,Oe=()=>{C.current+=1,fe()};return K&&g.on(K,Oe),he&&g.store.on(he,Oe),()=>{K&&K.split(" ").forEach(Se=>g.off(Se,Oe)),he&&he.split(" ").forEach(Se=>g.store.off(Se,Oe))}},[g,b]),L=H.useRef(),D=H.useCallback(()=>{if(!g)return IRn;const fe=!!(g.isInitialized||g.initializedStoreOnce)&&A.every(Ae=>uRn(Ae,g,b)),K=i.lng||g.language,he=C.current,Oe=L.current;if(Oe&&Oe.ready===fe&&Oe.lng===K&&Oe.keyPrefix===E&&Oe.revision===he)return Oe;const Le={t:g.getFixedT(K,b.nsMode==="fallback"?A:A[0],E),ready:fe,lng:K,keyPrefix:E,revision:he};return L.current=Le,Le},[g,A,E,b,i.lng]),[B,$]=H.useState(0),{t:j,ready:P}=mHt.useSyncExternalStore(R,D,D);H.useEffect(()=>{if(g&&!P&&!w){const fe=()=>$(K=>K+1);i.lng?mMt(g,i.lng,A,fe):iDe(g,A,fe)}},[g,i.lng,A,P,w,B]);const G=g||{},ee=H.useRef(null),re=H.useRef(),Q=fe=>{const K=Object.getOwnPropertyDescriptors(fe);K.__original&&delete K.__original;const he=Object.create(Object.getPrototypeOf(fe),K);if(!Object.prototype.hasOwnProperty.call(he,"__original"))try{Object.defineProperty(he,"__original",{value:fe,writable:!1,enumerable:!1,configurable:!1})}catch{}return he},ie=H.useMemo(()=>{const fe=G,K=fe==null?void 0:fe.language;let he=fe;fe&&(ee.current&&ee.current.__original===fe?re.current!==K?(he=Q(fe),ee.current=he,re.current=K):he=ee.current:(he=Q(fe),ee.current=he,re.current=K));const Oe=[j,he,P];return Oe.t=j,Oe.i18n=he,Oe.ready=P,Oe},[j,G,P,G.resolvedLanguage,G.language,G.languages]);if(g&&w&&!P)throw new Promise(fe=>{const K=()=>fe();i.lng?mMt(g,i.lng,A,K):iDe(g,A,K)});return ie};function wMt({i18n:n,defaultNS:i,children:s}){const c=H.useMemo(()=>({i18n:n,defaultNS:i}),[n,i]);return H.createElement(pHt.Provider,{value:c},s)}function Bd(n){if(typeof n=="string"||typeof n=="number")return""+n;let i="";if(Array.isArray(n))for(let s=0,c;s{}};function qse(){for(var n=0,i=arguments.length,s={},c;n=0&&(c=s.slice(d+1),s=s.slice(0,d)),s&&!i.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:c}})}Xie.prototype=qse.prototype={constructor:Xie,on:function(n,i){var s=this._,c=DRn(n+"",s),d,g=-1,b=c.length;if(arguments.length<2){for(;++g0)for(var s=new Array(d),c=0,d,g;c=0&&(i=n.slice(0,s))!=="xmlns"&&(n=n.slice(s+1)),vMt.hasOwnProperty(i)?{space:vMt[i],local:n}:n}function MRn(n){return function(){var i=this.ownerDocument,s=this.namespaceURI;return s===sDe&&i.documentElement.namespaceURI===sDe?i.createElement(n):i.createElementNS(s,n)}}function PRn(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function wHt(n){var i=Vse(n);return(i.local?PRn:MRn)(i)}function jRn(){}function E5e(n){return n==null?jRn:function(){return this.querySelector(n)}}function FRn(n){typeof n!="function"&&(n=E5e(n));for(var i=this._groups,s=i.length,c=new Array(s),d=0;d=P&&(P=j+1);!(ee=B[P])&&++P=0;)(b=c[d])&&(g&&b.compareDocumentPosition(g)^4&&g.parentNode.insertBefore(b,g),g=b);return this}function cOn(n){n||(n=lOn);function i(A,C){return A&&C?n(A.__data__,C.__data__):!A-!C}for(var s=this._groups,c=s.length,d=new Array(c),g=0;gi?1:n>=i?0:NaN}function dOn(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function fOn(){return Array.from(this)}function hOn(){for(var n=this._groups,i=0,s=n.length;i1?this.each((i==null?AOn:typeof i=="function"?xOn:_On)(n,i,s??"")):yM(this.node(),n)}function yM(n,i){return n.style.getPropertyValue(i)||THt(n).getComputedStyle(n,null).getPropertyValue(i)}function NOn(n){return function(){delete this[n]}}function COn(n,i){return function(){this[n]=i}}function IOn(n,i){return function(){var s=i.apply(this,arguments);s==null?delete this[n]:this[n]=s}}function ROn(n,i){return arguments.length>1?this.each((i==null?NOn:typeof i=="function"?IOn:COn)(n,i)):this.node()[n]}function AHt(n){return n.trim().split(/^|\s+/)}function S5e(n){return n.classList||new _Ht(n)}function _Ht(n){this._node=n,this._names=AHt(n.getAttribute("class")||"")}_Ht.prototype={add:function(n){var i=this._names.indexOf(n);i<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var i=this._names.indexOf(n);i>=0&&(this._names.splice(i,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function xHt(n,i){for(var s=S5e(n),c=-1,d=i.length;++c=0&&(s=i.slice(c+1),i=i.slice(0,c)),{type:i,name:s}})}function o6n(n){return function(){var i=this.__on;if(i){for(var s=0,c=-1,d=i.length,g;s()=>n;function aDe(n,{sourceEvent:i,subject:s,target:c,identifier:d,active:g,x:b,y:w,dx:E,dy:S,dispatch:x}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},subject:{value:s,enumerable:!0,configurable:!0},target:{value:c,enumerable:!0,configurable:!0},identifier:{value:d,enumerable:!0,configurable:!0},active:{value:g,enumerable:!0,configurable:!0},x:{value:b,enumerable:!0,configurable:!0},y:{value:w,enumerable:!0,configurable:!0},dx:{value:E,enumerable:!0,configurable:!0},dy:{value:S,enumerable:!0,configurable:!0},_:{value:x}})}aDe.prototype.on=function(){var n=this._.on.apply(this._,arguments);return n===this._?this:n};function g6n(n){return!n.ctrlKey&&!n.button}function b6n(){return this.parentNode}function m6n(n,i){return i??{x:n.x,y:n.y}}function w6n(){return navigator.maxTouchPoints||"ontouchstart"in this}function OHt(){var n=g6n,i=b6n,s=m6n,c=w6n,d={},g=qse("start","drag","end"),b=0,w,E,S,x,A=0;function C(G){G.on("mousedown.drag",R).filter(c).on("touchstart.drag",B).on("touchmove.drag",$,p6n).on("touchend.drag touchcancel.drag",j).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function R(G,ee){if(!(x||!n.call(this,G,ee))){var re=P(this,i.call(this,G,ee),G,ee,"mouse");re&&(jm(G.view).on("mousemove.drag",L,GH).on("mouseup.drag",D,GH),IHt(G.view),jCe(G),S=!1,w=G.clientX,E=G.clientY,re("start",G))}}function L(G){if(tM(G),!S){var ee=G.clientX-w,re=G.clientY-E;S=ee*ee+re*re>A}d.mouse("drag",G)}function D(G){jm(G.view).on("mousemove.drag mouseup.drag",null),RHt(G.view,S),tM(G),d.mouse("end",G)}function B(G,ee){if(n.call(this,G,ee)){var re=G.changedTouches,Q=i.call(this,G,ee),ie=re.length,pe,me;for(pe=0;pe>8&15|i>>4&240,i>>4&15|i&240,(i&15)<<4|i&15,1):s===8?fie(i>>24&255,i>>16&255,i>>8&255,(i&255)/255):s===4?fie(i>>12&15|i>>8&240,i>>8&15|i>>4&240,i>>4&15|i&240,((i&15)<<4|i&15)/255):null):(i=v6n.exec(n))?new ab(i[1],i[2],i[3],1):(i=E6n.exec(n))?new ab(i[1]*255/100,i[2]*255/100,i[3]*255/100,1):(i=S6n.exec(n))?fie(i[1],i[2],i[3],i[4]):(i=T6n.exec(n))?fie(i[1]*255/100,i[2]*255/100,i[3]*255/100,i[4]):(i=A6n.exec(n))?kMt(i[1],i[2]/100,i[3]/100,1):(i=_6n.exec(n))?kMt(i[1],i[2]/100,i[3]/100,i[4]):EMt.hasOwnProperty(n)?AMt(EMt[n]):n==="transparent"?new ab(NaN,NaN,NaN,0):null}function AMt(n){return new ab(n>>16&255,n>>8&255,n&255,1)}function fie(n,i,s,c){return c<=0&&(n=i=s=NaN),new ab(n,i,s,c)}function N6n(n){return n instanceof Ez||(n=dR(n)),n?(n=n.rgb(),new ab(n.r,n.g,n.b,n.opacity)):new ab}function uDe(n,i,s,c){return arguments.length===1?N6n(n):new ab(n,i,s,c??1)}function ab(n,i,s,c){this.r=+n,this.g=+i,this.b=+s,this.opacity=+c}T5e(ab,uDe,DHt(Ez,{brighter(n){return n=n==null?$oe:Math.pow($oe,n),new ab(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?qH:Math.pow(qH,n),new ab(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new ab(tR(this.r),tR(this.g),tR(this.b),Boe(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_Mt,formatHex:_Mt,formatHex8:C6n,formatRgb:xMt,toString:xMt}));function _Mt(){return`#${Z4(this.r)}${Z4(this.g)}${Z4(this.b)}`}function C6n(){return`#${Z4(this.r)}${Z4(this.g)}${Z4(this.b)}${Z4((isNaN(this.opacity)?1:this.opacity)*255)}`}function xMt(){const n=Boe(this.opacity);return`${n===1?"rgb(":"rgba("}${tR(this.r)}, ${tR(this.g)}, ${tR(this.b)}${n===1?")":`, ${n})`}`}function Boe(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function tR(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function Z4(n){return n=tR(n),(n<16?"0":"")+n.toString(16)}function kMt(n,i,s,c){return c<=0?n=i=s=NaN:s<=0||s>=1?n=i=NaN:i<=0&&(n=NaN),new Iv(n,i,s,c)}function LHt(n){if(n instanceof Iv)return new Iv(n.h,n.s,n.l,n.opacity);if(n instanceof Ez||(n=dR(n)),!n)return new Iv;if(n instanceof Iv)return n;n=n.rgb();var i=n.r/255,s=n.g/255,c=n.b/255,d=Math.min(i,s,c),g=Math.max(i,s,c),b=NaN,w=g-d,E=(g+d)/2;return w?(i===g?b=(s-c)/w+(s0&&E<1?0:b,new Iv(b,w,E,n.opacity)}function I6n(n,i,s,c){return arguments.length===1?LHt(n):new Iv(n,i,s,c??1)}function Iv(n,i,s,c){this.h=+n,this.s=+i,this.l=+s,this.opacity=+c}T5e(Iv,I6n,DHt(Ez,{brighter(n){return n=n==null?$oe:Math.pow($oe,n),new Iv(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?qH:Math.pow(qH,n),new Iv(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,i=isNaN(n)||isNaN(this.s)?0:this.s,s=this.l,c=s+(s<.5?s:1-s)*i,d=2*s-c;return new ab(FCe(n>=240?n-240:n+120,d,c),FCe(n,d,c),FCe(n<120?n+240:n-120,d,c),this.opacity)},clamp(){return new Iv(NMt(this.h),hie(this.s),hie(this.l),Boe(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=Boe(this.opacity);return`${n===1?"hsl(":"hsla("}${NMt(this.h)}, ${hie(this.s)*100}%, ${hie(this.l)*100}%${n===1?")":`, ${n})`}`}}));function NMt(n){return n=(n||0)%360,n<0?n+360:n}function hie(n){return Math.max(0,Math.min(1,n||0))}function FCe(n,i,s){return(n<60?i+(s-i)*n/60:n<180?s:n<240?i+(s-i)*(240-n)/60:i)*255}const A5e=n=>()=>n;function R6n(n,i){return function(s){return n+s*i}}function O6n(n,i,s){return n=Math.pow(n,s),i=Math.pow(i,s)-n,s=1/s,function(c){return Math.pow(n+c*i,s)}}function D6n(n){return(n=+n)==1?MHt:function(i,s){return s-i?O6n(i,s,n):A5e(isNaN(i)?s:i)}}function MHt(n,i){var s=i-n;return s?R6n(n,s):A5e(isNaN(n)?i:n)}const Uoe=function n(i){var s=D6n(i);function c(d,g){var b=s((d=uDe(d)).r,(g=uDe(g)).r),w=s(d.g,g.g),E=s(d.b,g.b),S=MHt(d.opacity,g.opacity);return function(x){return d.r=b(x),d.g=w(x),d.b=E(x),d.opacity=S(x),d+""}}return c.gamma=n,c}(1);function L6n(n,i){i||(i=[]);var s=n?Math.min(i.length,n.length):0,c=i.slice(),d;return function(g){for(d=0;ds&&(g=i.slice(s,g),w[b]?w[b]+=g:w[++b]=g),(c=c[0])===(d=d[0])?w[b]?w[b]+=d:w[++b]=d:(w[++b]=null,E.push({i:b,x:C2(c,d)})),s=$Ce.lastIndex;return s180?x+=360:x-S>180&&(S+=360),C.push({i:A.push(d(A)+"rotate(",null,c)-2,x:C2(S,x)})):x&&A.push(d(A)+"rotate("+x+c)}function w(S,x,A,C){S!==x?C.push({i:A.push(d(A)+"skewX(",null,c)-2,x:C2(S,x)}):x&&A.push(d(A)+"skewX("+x+c)}function E(S,x,A,C,R,L){if(S!==A||x!==C){var D=R.push(d(R)+"scale(",null,",",null,")");L.push({i:D-4,x:C2(S,A)},{i:D-2,x:C2(x,C)})}else(A!==1||C!==1)&&R.push(d(R)+"scale("+A+","+C+")")}return function(S,x){var A=[],C=[];return S=n(S),x=n(x),g(S.translateX,S.translateY,x.translateX,x.translateY,A,C),b(S.rotate,x.rotate,A,C),w(S.skewX,x.skewX,A,C),E(S.scaleX,S.scaleY,x.scaleX,x.scaleY,A,C),S=x=null,function(R){for(var L=-1,D=C.length,B;++L=0&&n._call.call(void 0,i),n=n._next;--vM}function RMt(){fR=(zoe=WH.now())+Wse,vM=JU=0;try{Y6n()}finally{vM=0,X6n(),fR=0}}function J6n(){var n=WH.now(),i=n-zoe;i>$Ht&&(Wse-=i,zoe=n)}function X6n(){for(var n,i=Hoe,s,c=1/0;i;)i._call?(c>i._time&&(c=i._time),n=i,i=i._next):(s=i._next,i._next=null,i=n?n._next=s:Hoe=s);XU=n,dDe(c)}function dDe(n){if(!vM){JU&&(JU=clearTimeout(JU));var i=n-fR;i>24?(n<1/0&&(JU=setTimeout(RMt,n-WH.now()-Wse)),FU&&(FU=clearInterval(FU))):(FU||(zoe=WH.now(),FU=setInterval(J6n,$Ht)),vM=1,BHt(RMt))}}function OMt(n,i,s){var c=new Goe;return i=i==null?0:+i,c.restart(d=>{c.stop(),n(d+i)},i,s),c}var Z6n=qse("start","end","cancel","interrupt"),Q6n=[],HHt=0,DMt=1,fDe=2,Qie=3,LMt=4,hDe=5,eoe=6;function Kse(n,i,s,c,d,g){var b=n.__transition;if(!b)n.__transition={};else if(s in b)return;eDn(n,s,{name:i,index:c,group:d,on:Z6n,tween:Q6n,time:g.time,delay:g.delay,duration:g.duration,ease:g.ease,timer:null,state:HHt})}function x5e(n,i){var s=Bv(n,i);if(s.state>HHt)throw new Error("too late; already scheduled");return s}function W2(n,i){var s=Bv(n,i);if(s.state>Qie)throw new Error("too late; already running");return s}function Bv(n,i){var s=n.__transition;if(!s||!(s=s[i]))throw new Error("transition not found");return s}function eDn(n,i,s){var c=n.__transition,d;c[i]=s,s.timer=UHt(g,0,s.time);function g(S){s.state=DMt,s.timer.restart(b,s.delay,s.time),s.delay<=S&&b(S-s.delay)}function b(S){var x,A,C,R;if(s.state!==DMt)return E();for(x in c)if(R=c[x],R.name===s.name){if(R.state===Qie)return OMt(b);R.state===LMt?(R.state=eoe,R.timer.stop(),R.on.call("interrupt",n,n.__data__,R.index,R.group),delete c[x]):+xfDe&&c.state=0&&(i=i.slice(0,s)),!i||i==="start"})}function IDn(n,i,s){var c,d,g=CDn(i)?x5e:W2;return function(){var b=g(this,n),w=b.on;w!==c&&(d=(c=w).copy()).on(i,s),b.on=d}}function RDn(n,i){var s=this._id;return arguments.length<2?Bv(this.node(),s).on.on(n):this.each(IDn(s,n,i))}function ODn(n){return function(){var i=this.parentNode;for(var s in this.__transition)if(+s!==n)return;i&&i.removeChild(this)}}function DDn(){return this.on("end.remove",ODn(this._id))}function LDn(n){var i=this._name,s=this._id;typeof n!="function"&&(n=E5e(n));for(var c=this._groups,d=c.length,g=new Array(d),b=0;b()=>n;function oLn(n,{sourceEvent:i,target:s,transform:c,dispatch:d}){Object.defineProperties(this,{type:{value:n,enumerable:!0,configurable:!0},sourceEvent:{value:i,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},transform:{value:c,enumerable:!0,configurable:!0},_:{value:d}})}function lA(n,i,s){this.k=n,this.x=i,this.y=s}lA.prototype={constructor:lA,scale:function(n){return n===1?this:new lA(this.k*n,this.x,this.y)},translate:function(n,i){return n===0&i===0?this:new lA(this.k,this.x+this.k*n,this.y+this.k*i)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Yse=new lA(1,0,0);VHt.prototype=lA.prototype;function VHt(n){for(;!n.__zoom;)if(!(n=n.parentNode))return Yse;return n.__zoom}function BCe(n){n.stopImmediatePropagation()}function $U(n){n.preventDefault(),n.stopImmediatePropagation()}function sLn(n){return(!n.ctrlKey||n.type==="wheel")&&!n.button}function aLn(){var n=this;return n instanceof SVGElement?(n=n.ownerSVGElement||n,n.hasAttribute("viewBox")?(n=n.viewBox.baseVal,[[n.x,n.y],[n.x+n.width,n.y+n.height]]):[[0,0],[n.width.baseVal.value,n.height.baseVal.value]]):[[0,0],[n.clientWidth,n.clientHeight]]}function MMt(){return this.__zoom||Yse}function uLn(n){return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*(n.ctrlKey?10:1)}function cLn(){return navigator.maxTouchPoints||"ontouchstart"in this}function lLn(n,i,s){var c=n.invertX(i[0][0])-s[0][0],d=n.invertX(i[1][0])-s[1][0],g=n.invertY(i[0][1])-s[0][1],b=n.invertY(i[1][1])-s[1][1];return n.translate(d>c?(c+d)/2:Math.min(0,c)||Math.max(0,d),b>g?(g+b)/2:Math.min(0,g)||Math.max(0,b))}function WHt(){var n=sLn,i=aLn,s=lLn,c=uLn,d=cLn,g=[0,1/0],b=[[-1/0,-1/0],[1/0,1/0]],w=250,E=Zie,S=qse("start","zoom","end"),x,A,C,R=500,L=150,D=0,B=10;function $(he){he.property("__zoom",MMt).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",pe).on("dblclick.zoom",me).filter(d).on("touchstart.zoom",le).on("touchmove.zoom",fe).on("touchend.zoom touchcancel.zoom",K).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}$.transform=function(he,Oe,Se,Le){var Ae=he.selection?he.selection():he;Ae.property("__zoom",MMt),he!==Ae?ee(he,Oe,Se,Le):Ae.interrupt().each(function(){re(this,arguments).event(Le).start().zoom(null,typeof Oe=="function"?Oe.apply(this,arguments):Oe).end()})},$.scaleBy=function(he,Oe,Se,Le){$.scaleTo(he,function(){var Ae=this.__zoom.k,xe=typeof Oe=="function"?Oe.apply(this,arguments):Oe;return Ae*xe},Se,Le)},$.scaleTo=function(he,Oe,Se,Le){$.transform(he,function(){var Ae=i.apply(this,arguments),xe=this.__zoom,We=Se==null?G(Ae):typeof Se=="function"?Se.apply(this,arguments):Se,dt=xe.invert(We),Ue=typeof Oe=="function"?Oe.apply(this,arguments):Oe;return s(P(j(xe,Ue),We,dt),Ae,b)},Se,Le)},$.translateBy=function(he,Oe,Se,Le){$.transform(he,function(){return s(this.__zoom.translate(typeof Oe=="function"?Oe.apply(this,arguments):Oe,typeof Se=="function"?Se.apply(this,arguments):Se),i.apply(this,arguments),b)},null,Le)},$.translateTo=function(he,Oe,Se,Le,Ae){$.transform(he,function(){var xe=i.apply(this,arguments),We=this.__zoom,dt=Le==null?G(xe):typeof Le=="function"?Le.apply(this,arguments):Le;return s(Yse.translate(dt[0],dt[1]).scale(We.k).translate(typeof Oe=="function"?-Oe.apply(this,arguments):-Oe,typeof Se=="function"?-Se.apply(this,arguments):-Se),xe,b)},Le,Ae)};function j(he,Oe){return Oe=Math.max(g[0],Math.min(g[1],Oe)),Oe===he.k?he:new lA(Oe,he.x,he.y)}function P(he,Oe,Se){var Le=Oe[0]-Se[0]*he.k,Ae=Oe[1]-Se[1]*he.k;return Le===he.x&&Ae===he.y?he:new lA(he.k,Le,Ae)}function G(he){return[(+he[0][0]+ +he[1][0])/2,(+he[0][1]+ +he[1][1])/2]}function ee(he,Oe,Se,Le){he.on("start.zoom",function(){re(this,arguments).event(Le).start()}).on("interrupt.zoom end.zoom",function(){re(this,arguments).event(Le).end()}).tween("zoom",function(){var Ae=this,xe=arguments,We=re(Ae,xe).event(Le),dt=i.apply(Ae,xe),Ue=Se==null?G(dt):typeof Se=="function"?Se.apply(Ae,xe):Se,bt=Math.max(dt[1][0]-dt[0][0],dt[1][1]-dt[0][1]),kt=Ae.__zoom,ht=typeof Oe=="function"?Oe.apply(Ae,xe):Oe,Xt=E(kt.invert(Ue).concat(bt/kt.k),ht.invert(Ue).concat(bt/ht.k));return function(vt){if(vt===1)vt=ht;else{var Ct=Xt(vt),Ft=bt/Ct[2];vt=new lA(Ft,Ue[0]-Ct[0]*Ft,Ue[1]-Ct[1]*Ft)}We.zoom(null,vt)}})}function re(he,Oe,Se){return!Se&&he.__zooming||new Q(he,Oe)}function Q(he,Oe){this.that=he,this.args=Oe,this.active=0,this.sourceEvent=null,this.extent=i.apply(he,Oe),this.taps=0}Q.prototype={event:function(he){return he&&(this.sourceEvent=he),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(he,Oe){return this.mouse&&he!=="mouse"&&(this.mouse[1]=Oe.invert(this.mouse[0])),this.touch0&&he!=="touch"&&(this.touch0[1]=Oe.invert(this.touch0[0])),this.touch1&&he!=="touch"&&(this.touch1[1]=Oe.invert(this.touch1[0])),this.that.__zoom=Oe,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(he){var Oe=jm(this.that).datum();S.call(he,this.that,new oLn(he,{sourceEvent:this.sourceEvent,target:$,transform:this.that.__zoom,dispatch:S}),Oe)}};function ie(he,...Oe){if(!n.apply(this,arguments))return;var Se=re(this,Oe).event(he),Le=this.__zoom,Ae=Math.max(g[0],Math.min(g[1],Le.k*Math.pow(2,c.apply(this,arguments)))),xe=Nv(he);if(Se.wheel)(Se.mouse[0][0]!==xe[0]||Se.mouse[0][1]!==xe[1])&&(Se.mouse[1]=Le.invert(Se.mouse[0]=xe)),clearTimeout(Se.wheel);else{if(Le.k===Ae)return;Se.mouse=[xe,Le.invert(xe)],toe(this),Se.start()}$U(he),Se.wheel=setTimeout(We,L),Se.zoom("mouse",s(P(j(Le,Ae),Se.mouse[0],Se.mouse[1]),Se.extent,b));function We(){Se.wheel=null,Se.end()}}function pe(he,...Oe){if(C||!n.apply(this,arguments))return;var Se=he.currentTarget,Le=re(this,Oe,!0).event(he),Ae=jm(he.view).on("mousemove.zoom",Ue,!0).on("mouseup.zoom",bt,!0),xe=Nv(he,Se),We=he.clientX,dt=he.clientY;IHt(he.view),BCe(he),Le.mouse=[xe,this.__zoom.invert(xe)],toe(this),Le.start();function Ue(kt){if($U(kt),!Le.moved){var ht=kt.clientX-We,Xt=kt.clientY-dt;Le.moved=ht*ht+Xt*Xt>D}Le.event(kt).zoom("mouse",s(P(Le.that.__zoom,Le.mouse[0]=Nv(kt,Se),Le.mouse[1]),Le.extent,b))}function bt(kt){Ae.on("mousemove.zoom mouseup.zoom",null),RHt(kt.view,Le.moved),$U(kt),Le.event(kt).end()}}function me(he,...Oe){if(n.apply(this,arguments)){var Se=this.__zoom,Le=Nv(he.changedTouches?he.changedTouches[0]:he,this),Ae=Se.invert(Le),xe=Se.k*(he.shiftKey?.5:2),We=s(P(j(Se,xe),Le,Ae),i.apply(this,Oe),b);$U(he),w>0?jm(this).transition().duration(w).call(ee,We,Le,he):jm(this).call($.transform,We,Le,he)}}function le(he,...Oe){if(n.apply(this,arguments)){var Se=he.touches,Le=Se.length,Ae=re(this,Oe,he.changedTouches.length===Le).event(he),xe,We,dt,Ue;for(BCe(he),We=0;We"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:n=>`Node type "${n}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:n=>`The old edge with id=${n} does not exist.`,error009:n=>`Marker type "${n}" doesn't exist.`,error008:(n,{id:i,sourceHandle:s,targetHandle:c})=>`Couldn't create edge for ${n} handle id: "${n==="source"?s:c}", edge id: ${i}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:n=>`Edge type "${n}" not found. Using fallback type "default".`,error012:n=>`Node with id "${n}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(n="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${n}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},KH=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],KHt=["Enter"," ","Escape"],YHt={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:n,x:i,y:s})=>`Moved selected node ${n}. New position, x: ${i}, y: ${s}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var EM;(function(n){n.Strict="strict",n.Loose="loose"})(EM||(EM={}));var nR;(function(n){n.Free="free",n.Vertical="vertical",n.Horizontal="horizontal"})(nR||(nR={}));var YH;(function(n){n.Partial="partial",n.Full="full"})(YH||(YH={}));const JHt={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Bk;(function(n){n.Bezier="default",n.Straight="straight",n.Step="step",n.SmoothStep="smoothstep",n.SimpleBezier="simplebezier"})(Bk||(Bk={}));var sA;(function(n){n.Arrow="arrow",n.ArrowClosed="arrowclosed"})(sA||(sA={}));var qr;(function(n){n.Left="left",n.Top="top",n.Right="right",n.Bottom="bottom"})(qr||(qr={}));const PMt={[qr.Left]:qr.Right,[qr.Right]:qr.Left,[qr.Top]:qr.Bottom,[qr.Bottom]:qr.Top};function XHt(n){return n===null?null:n?"valid":"invalid"}const ZHt=n=>"id"in n&&"source"in n&&"target"in n,dLn=n=>"id"in n&&"position"in n&&!("source"in n)&&!("target"in n),N5e=n=>"id"in n&&"internals"in n&&!("source"in n)&&!("target"in n),Sz=(n,i=[0,0])=>{const{width:s,height:c}=_A(n),d=n.origin??i,g=s*d[0],b=c*d[1];return{x:n.position.x-g,y:n.position.y-b}},fLn=(n,i={nodeOrigin:[0,0]})=>{if(n.length===0)return{x:0,y:0,width:0,height:0};const s=n.reduce((c,d)=>{const g=typeof d=="string";let b=!i.nodeLookup&&!g?d:void 0;i.nodeLookup&&(b=g?i.nodeLookup.get(d):N5e(d)?d:i.nodeLookup.get(d.id));const w=b?qoe(b,i.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Jse(c,w)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Xse(s)},Tz=(n,i={})=>{let s={x:1/0,y:1/0,x2:-1/0,y2:-1/0},c=!1;return n.forEach(d=>{(i.filter===void 0||i.filter(d))&&(s=Jse(s,qoe(d)),c=!0)}),c?Xse(s):{x:0,y:0,width:0,height:0}},C5e=(n,i,[s,c,d]=[0,0,1],g=!1,b=!1)=>{const w={..._z(i,[s,c,d]),width:i.width/d,height:i.height/d},E=[];for(const S of n.values()){const{measured:x,selectable:A=!0,hidden:C=!1}=S;if(b&&!A||C)continue;const R=x.width??S.width??S.initialWidth??null,L=x.height??S.height??S.initialHeight??null,D=JH(w,TM(S)),B=(R??0)*(L??0),$=g&&D>0;(!S.internals.handleBounds||$||D>=B||S.dragging)&&E.push(S)}return E},hLn=(n,i)=>{const s=new Set;return n.forEach(c=>{s.add(c.id)}),i.filter(c=>s.has(c.source)||s.has(c.target))};function pLn(n,i){const s=new Map,c=i!=null&&i.nodes?new Set(i.nodes.map(d=>d.id)):null;return n.forEach(d=>{d.measured.width&&d.measured.height&&((i==null?void 0:i.includeHiddenNodes)||!d.hidden)&&(!c||c.has(d.id))&&s.set(d.id,d)}),s}async function gLn({nodes:n,width:i,height:s,panZoom:c,minZoom:d,maxZoom:g},b){if(n.size===0)return Promise.resolve(!0);const w=pLn(n,b),E=Tz(w),S=I5e(E,i,s,(b==null?void 0:b.minZoom)??d,(b==null?void 0:b.maxZoom)??g,(b==null?void 0:b.padding)??.1);return await c.setViewport(S,{duration:b==null?void 0:b.duration,ease:b==null?void 0:b.ease,interpolate:b==null?void 0:b.interpolate}),Promise.resolve(!0)}function QHt({nodeId:n,nextPosition:i,nodeLookup:s,nodeOrigin:c=[0,0],nodeExtent:d,onError:g}){const b=s.get(n),w=b.parentId?s.get(b.parentId):void 0,{x:E,y:S}=w?w.internals.positionAbsolute:{x:0,y:0},x=b.origin??c;let A=b.extent||d;if(b.extent==="parent"&&!b.expandParent)if(!w)g==null||g("005",z2.error005());else{const R=w.measured.width,L=w.measured.height;R&&L&&(A=[[E,S],[E+R,S+L]])}else w&&AM(b.extent)&&(A=[[b.extent[0][0]+E,b.extent[0][1]+S],[b.extent[1][0]+E,b.extent[1][1]+S]]);const C=AM(A)?hR(i,A,b.measured):i;return(b.measured.width===void 0||b.measured.height===void 0)&&(g==null||g("015",z2.error015())),{position:{x:C.x-E+(b.measured.width??0)*x[0],y:C.y-S+(b.measured.height??0)*x[1]},positionAbsolute:C}}async function bLn({nodesToRemove:n=[],edgesToRemove:i=[],nodes:s,edges:c,onBeforeDelete:d}){const g=new Set(n.map(C=>C.id)),b=[];for(const C of s){if(C.deletable===!1)continue;const R=g.has(C.id),L=!R&&C.parentId&&b.find(D=>D.id===C.parentId);(R||L)&&b.push(C)}const w=new Set(i.map(C=>C.id)),E=c.filter(C=>C.deletable!==!1),x=hLn(b,E);for(const C of E)w.has(C.id)&&!x.find(L=>L.id===C.id)&&x.push(C);if(!d)return{edges:x,nodes:b};const A=await d({nodes:b,edges:x});return typeof A=="boolean"?A?{edges:x,nodes:b}:{edges:[],nodes:[]}:A}const SM=(n,i=0,s=1)=>Math.min(Math.max(n,i),s),hR=(n={x:0,y:0},i,s)=>({x:SM(n.x,i[0][0],i[1][0]-((s==null?void 0:s.width)??0)),y:SM(n.y,i[0][1],i[1][1]-((s==null?void 0:s.height)??0))});function ezt(n,i,s){const{width:c,height:d}=_A(s),{x:g,y:b}=s.internals.positionAbsolute;return hR(n,[[g,b],[g+c,b+d]],i)}const jMt=(n,i,s)=>ns?-SM(Math.abs(n-s),1,i)/i:0,tzt=(n,i,s=15,c=40)=>{const d=jMt(n.x,c,i.width-c)*s,g=jMt(n.y,c,i.height-c)*s;return[d,g]},Jse=(n,i)=>({x:Math.min(n.x,i.x),y:Math.min(n.y,i.y),x2:Math.max(n.x2,i.x2),y2:Math.max(n.y2,i.y2)}),pDe=({x:n,y:i,width:s,height:c})=>({x:n,y:i,x2:n+s,y2:i+c}),Xse=({x:n,y:i,x2:s,y2:c})=>({x:n,y:i,width:s-n,height:c-i}),TM=(n,i=[0,0])=>{var d,g;const{x:s,y:c}=N5e(n)?n.internals.positionAbsolute:Sz(n,i);return{x:s,y:c,width:((d=n.measured)==null?void 0:d.width)??n.width??n.initialWidth??0,height:((g=n.measured)==null?void 0:g.height)??n.height??n.initialHeight??0}},qoe=(n,i=[0,0])=>{var d,g;const{x:s,y:c}=N5e(n)?n.internals.positionAbsolute:Sz(n,i);return{x:s,y:c,x2:s+(((d=n.measured)==null?void 0:d.width)??n.width??n.initialWidth??0),y2:c+(((g=n.measured)==null?void 0:g.height)??n.height??n.initialHeight??0)}},nzt=(n,i)=>Xse(Jse(pDe(n),pDe(i))),JH=(n,i)=>{const s=Math.max(0,Math.min(n.x+n.width,i.x+i.width)-Math.max(n.x,i.x)),c=Math.max(0,Math.min(n.y+n.height,i.y+i.height)-Math.max(n.y,i.y));return Math.ceil(s*c)},FMt=n=>Rv(n.width)&&Rv(n.height)&&Rv(n.x)&&Rv(n.y),Rv=n=>!isNaN(n)&&isFinite(n),mLn=(n,i)=>{},Az=(n,i=[1,1])=>({x:i[0]*Math.round(n.x/i[0]),y:i[1]*Math.round(n.y/i[1])}),_z=({x:n,y:i},[s,c,d],g=!1,b=[1,1])=>{const w={x:(n-s)/d,y:(i-c)/d};return g?Az(w,b):w},Voe=({x:n,y:i},[s,c,d])=>({x:n*d+s,y:i*d+c});function m5(n,i){if(typeof n=="number")return Math.floor((i-i/(1+n))*.5);if(typeof n=="string"&&n.endsWith("px")){const s=parseFloat(n);if(!Number.isNaN(s))return Math.floor(s)}if(typeof n=="string"&&n.endsWith("%")){const s=parseFloat(n);if(!Number.isNaN(s))return Math.floor(i*s*.01)}return console.error(`[React Flow] The padding value "${n}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function wLn(n,i,s){if(typeof n=="string"||typeof n=="number"){const c=m5(n,s),d=m5(n,i);return{top:c,right:d,bottom:c,left:d,x:d*2,y:c*2}}if(typeof n=="object"){const c=m5(n.top??n.y??0,s),d=m5(n.bottom??n.y??0,s),g=m5(n.left??n.x??0,i),b=m5(n.right??n.x??0,i);return{top:c,right:b,bottom:d,left:g,x:g+b,y:c+d}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function yLn(n,i,s,c,d,g){const{x:b,y:w}=Voe(n,[i,s,c]),{x:E,y:S}=Voe({x:n.x+n.width,y:n.y+n.height},[i,s,c]),x=d-E,A=g-S;return{left:Math.floor(b),top:Math.floor(w),right:Math.floor(x),bottom:Math.floor(A)}}const I5e=(n,i,s,c,d,g)=>{const b=wLn(g,i,s),w=(i-b.x)/n.width,E=(s-b.y)/n.height,S=Math.min(w,E),x=SM(S,c,d),A=n.x+n.width/2,C=n.y+n.height/2,R=i/2-A*x,L=s/2-C*x,D=yLn(n,R,L,x,i,s),B={left:Math.min(D.left-b.left,0),top:Math.min(D.top-b.top,0),right:Math.min(D.right-b.right,0),bottom:Math.min(D.bottom-b.bottom,0)};return{x:R-B.left+B.right,y:L-B.top+B.bottom,zoom:x}},XH=()=>{var n;return typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)==null?void 0:n.indexOf("Mac"))>=0};function AM(n){return n!=null&&n!=="parent"}function _A(n){var i,s;return{width:((i=n.measured)==null?void 0:i.width)??n.width??n.initialWidth??0,height:((s=n.measured)==null?void 0:s.height)??n.height??n.initialHeight??0}}function rzt(n){var i,s;return(((i=n.measured)==null?void 0:i.width)??n.width??n.initialWidth)!==void 0&&(((s=n.measured)==null?void 0:s.height)??n.height??n.initialHeight)!==void 0}function izt(n,i={width:0,height:0},s,c,d){const g={...n},b=c.get(s);if(b){const w=b.origin||d;g.x+=b.internals.positionAbsolute.x-(i.width??0)*w[0],g.y+=b.internals.positionAbsolute.y-(i.height??0)*w[1]}return g}function $Mt(n,i){if(n.size!==i.size)return!1;for(const s of n)if(!i.has(s))return!1;return!0}function vLn(){let n,i;return{promise:new Promise((c,d)=>{n=c,i=d}),resolve:n,reject:i}}function ELn(n){return{...YHt,...n||{}}}function yH(n,{snapGrid:i=[0,0],snapToGrid:s=!1,transform:c,containerBounds:d}){const{x:g,y:b}=Ov(n),w=_z({x:g-((d==null?void 0:d.left)??0),y:b-((d==null?void 0:d.top)??0)},c),{x:E,y:S}=s?Az(w,i):w;return{xSnapped:E,ySnapped:S,...w}}const R5e=n=>({width:n.offsetWidth,height:n.offsetHeight}),ozt=n=>{var i;return((i=n==null?void 0:n.getRootNode)==null?void 0:i.call(n))||(window==null?void 0:window.document)},SLn=["INPUT","SELECT","TEXTAREA"];function szt(n){var c,d;const i=((d=(c=n.composedPath)==null?void 0:c.call(n))==null?void 0:d[0])||n.target;return(i==null?void 0:i.nodeType)!==1?!1:SLn.includes(i.nodeName)||i.hasAttribute("contenteditable")||!!i.closest(".nokey")}const azt=n=>"clientX"in n,Ov=(n,i)=>{var g,b;const s=azt(n),c=s?n.clientX:(g=n.touches)==null?void 0:g[0].clientX,d=s?n.clientY:(b=n.touches)==null?void 0:b[0].clientY;return{x:c-((i==null?void 0:i.left)??0),y:d-((i==null?void 0:i.top)??0)}},BMt=(n,i,s,c,d)=>{const g=i.querySelectorAll(`.${n}`);return!g||!g.length?null:Array.from(g).map(b=>{const w=b.getBoundingClientRect();return{id:b.getAttribute("data-handleid"),type:n,nodeId:d,position:b.getAttribute("data-handlepos"),x:(w.left-s.left)/c,y:(w.top-s.top)/c,...R5e(b)}})};function uzt({sourceX:n,sourceY:i,targetX:s,targetY:c,sourceControlX:d,sourceControlY:g,targetControlX:b,targetControlY:w}){const E=n*.125+d*.375+b*.375+s*.125,S=i*.125+g*.375+w*.375+c*.125,x=Math.abs(E-n),A=Math.abs(S-i);return[E,S,x,A]}function bie(n,i){return n>=0?.5*n:i*25*Math.sqrt(-n)}function UMt({pos:n,x1:i,y1:s,x2:c,y2:d,c:g}){switch(n){case qr.Left:return[i-bie(i-c,g),s];case qr.Right:return[i+bie(c-i,g),s];case qr.Top:return[i,s-bie(s-d,g)];case qr.Bottom:return[i,s+bie(d-s,g)]}}function czt({sourceX:n,sourceY:i,sourcePosition:s=qr.Bottom,targetX:c,targetY:d,targetPosition:g=qr.Top,curvature:b=.25}){const[w,E]=UMt({pos:s,x1:n,y1:i,x2:c,y2:d,c:b}),[S,x]=UMt({pos:g,x1:c,y1:d,x2:n,y2:i,c:b}),[A,C,R,L]=uzt({sourceX:n,sourceY:i,targetX:c,targetY:d,sourceControlX:w,sourceControlY:E,targetControlX:S,targetControlY:x});return[`M${n},${i} C${w},${E} ${S},${x} ${c},${d}`,A,C,R,L]}function lzt({sourceX:n,sourceY:i,targetX:s,targetY:c}){const d=Math.abs(s-n)/2,g=s0}const _Ln=({source:n,sourceHandle:i,target:s,targetHandle:c})=>`xy-edge__${n}${i||""}-${s}${c||""}`,xLn=(n,i)=>i.some(s=>s.source===n.source&&s.target===n.target&&(s.sourceHandle===n.sourceHandle||!s.sourceHandle&&!n.sourceHandle)&&(s.targetHandle===n.targetHandle||!s.targetHandle&&!n.targetHandle)),dzt=(n,i,s={})=>{if(!n.source||!n.target)return i;const c=s.getEdgeId||_Ln;let d;return ZHt(n)?d={...n}:d={...n,id:c(n)},xLn(d,i)?i:(d.sourceHandle===null&&delete d.sourceHandle,d.targetHandle===null&&delete d.targetHandle,i.concat(d))};function fzt({sourceX:n,sourceY:i,targetX:s,targetY:c}){const[d,g,b,w]=lzt({sourceX:n,sourceY:i,targetX:s,targetY:c});return[`M ${n},${i}L ${s},${c}`,d,g,b,w]}const HMt={[qr.Left]:{x:-1,y:0},[qr.Right]:{x:1,y:0},[qr.Top]:{x:0,y:-1},[qr.Bottom]:{x:0,y:1}},kLn=({source:n,sourcePosition:i=qr.Bottom,target:s})=>i===qr.Left||i===qr.Right?n.xMath.sqrt(Math.pow(i.x-n.x,2)+Math.pow(i.y-n.y,2));function NLn({source:n,sourcePosition:i=qr.Bottom,target:s,targetPosition:c=qr.Top,center:d,offset:g,stepPosition:b}){const w=HMt[i],E=HMt[c],S={x:n.x+w.x*g,y:n.y+w.y*g},x={x:s.x+E.x*g,y:s.y+E.y*g},A=kLn({source:S,sourcePosition:i,target:x}),C=A.x!==0?"x":"y",R=A[C];let L=[],D,B;const $={x:0,y:0},j={x:0,y:0},[,,P,G]=lzt({sourceX:n.x,sourceY:n.y,targetX:s.x,targetY:s.y});if(w[C]*E[C]===-1){C==="x"?(D=d.x??S.x+(x.x-S.x)*b,B=d.y??(S.y+x.y)/2):(D=d.x??(S.x+x.x)/2,B=d.y??S.y+(x.y-S.y)*b);const re=[{x:D,y:S.y},{x:D,y:x.y}],Q=[{x:S.x,y:B},{x:x.x,y:B}];w[C]===R?L=C==="x"?re:Q:L=C==="x"?Q:re}else{const re=[{x:S.x,y:x.y}],Q=[{x:x.x,y:S.y}];if(C==="x"?L=w.x===R?Q:re:L=w.y===R?re:Q,i===c){const fe=Math.abs(n[C]-s[C]);if(fe<=g){const K=Math.min(g-1,g-fe);w[C]===R?$[C]=(S[C]>n[C]?-1:1)*K:j[C]=(x[C]>s[C]?-1:1)*K}}if(i!==c){const fe=C==="x"?"y":"x",K=w[C]===E[fe],he=S[fe]>x[fe],Oe=S[fe]=le?(D=(ie.x+pe.x)/2,B=L[0].y):(D=L[0].x,B=(ie.y+pe.y)/2)}return[[n,{x:S.x+$.x,y:S.y+$.y},...L,{x:x.x+j.x,y:x.y+j.y},s],D,B,P,G]}function CLn(n,i,s,c){const d=Math.min(zMt(n,i)/2,zMt(i,s)/2,c),{x:g,y:b}=i;if(n.x===g&&g===s.x||n.y===b&&b===s.y)return`L${g} ${b}`;if(n.y===b){const S=n.x{let G="";return P>0&&Ps.id===i):n[0])||null}function gDe(n,i){return n?typeof n=="string"?n:`${i?`${i}__`:""}${Object.keys(n).sort().map(c=>`${c}=${n[c]}`).join("&")}`:""}function RLn(n,{id:i,defaultColor:s,defaultMarkerStart:c,defaultMarkerEnd:d}){const g=new Set;return n.reduce((b,w)=>([w.markerStart||c,w.markerEnd||d].forEach(E=>{if(E&&typeof E=="object"){const S=gDe(E,i);g.has(S)||(b.push({id:S,color:E.color||s,...E}),g.add(S))}}),b),[]).sort((b,w)=>b.id.localeCompare(w.id))}const hzt=1e3,OLn=10,O5e={nodeOrigin:[0,0],nodeExtent:KH,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},DLn={...O5e,checkEquality:!0};function D5e(n,i){const s={...n};for(const c in i)i[c]!==void 0&&(s[c]=i[c]);return s}function LLn(n,i,s){const c=D5e(O5e,s);for(const d of n.values())if(d.parentId)M5e(d,n,i,c);else{const g=Sz(d,c.nodeOrigin),b=AM(d.extent)?d.extent:c.nodeExtent,w=hR(g,b,_A(d));d.internals.positionAbsolute=w}}function MLn(n,i){if(!n.handles)return n.measured?i==null?void 0:i.internals.handleBounds:void 0;const s=[],c=[];for(const d of n.handles){const g={id:d.id,width:d.width??1,height:d.height??1,nodeId:n.id,x:d.x,y:d.y,position:d.position,type:d.type};d.type==="source"?s.push(g):d.type==="target"&&c.push(g)}return{source:s,target:c}}function L5e(n){return n==="manual"}function bDe(n,i,s,c={}){var S,x;const d=D5e(DLn,c),g={i:0},b=new Map(i),w=d!=null&&d.elevateNodesOnSelect&&!L5e(d.zIndexMode)?hzt:0;let E=n.length>0;i.clear(),s.clear();for(const A of n){let C=b.get(A.id);if(d.checkEquality&&A===(C==null?void 0:C.internals.userNode))i.set(A.id,C);else{const R=Sz(A,d.nodeOrigin),L=AM(A.extent)?A.extent:d.nodeExtent,D=hR(R,L,_A(A));C={...d.defaults,...A,measured:{width:(S=A.measured)==null?void 0:S.width,height:(x=A.measured)==null?void 0:x.height},internals:{positionAbsolute:D,handleBounds:MLn(A,C),z:pzt(A,w,d.zIndexMode),userNode:A}},i.set(A.id,C)}(C.measured===void 0||C.measured.width===void 0||C.measured.height===void 0)&&!C.hidden&&(E=!1),A.parentId&&M5e(C,i,s,c,g)}return E}function PLn(n,i){if(!n.parentId)return;const s=i.get(n.parentId);s?s.set(n.id,n):i.set(n.parentId,new Map([[n.id,n]]))}function M5e(n,i,s,c,d){const{elevateNodesOnSelect:g,nodeOrigin:b,nodeExtent:w,zIndexMode:E}=D5e(O5e,c),S=n.parentId,x=i.get(S);if(!x){console.warn(`Parent node ${S} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}PLn(n,s),d&&!x.parentId&&x.internals.rootParentIndex===void 0&&E==="auto"&&(x.internals.rootParentIndex=++d.i,x.internals.z=x.internals.z+d.i*OLn),d&&x.internals.rootParentIndex!==void 0&&(d.i=x.internals.rootParentIndex);const A=g&&!L5e(E)?hzt:0,{x:C,y:R,z:L}=jLn(n,x,b,w,A,E),{positionAbsolute:D}=n.internals,B=C!==D.x||R!==D.y;(B||L!==n.internals.z)&&i.set(n.id,{...n,internals:{...n.internals,positionAbsolute:B?{x:C,y:R}:D,z:L}})}function pzt(n,i,s){const c=Rv(n.zIndex)?n.zIndex:0;return L5e(s)?c:c+(n.selected?i:0)}function jLn(n,i,s,c,d,g){const{x:b,y:w}=i.internals.positionAbsolute,E=_A(n),S=Sz(n,s),x=AM(n.extent)?hR(S,n.extent,E):S;let A=hR({x:b+x.x,y:w+x.y},c,E);n.extent==="parent"&&(A=ezt(A,E,i));const C=pzt(n,d,g),R=i.internals.z??0;return{x:A.x,y:A.y,z:R>=C?R+1:C}}function P5e(n,i,s,c=[0,0]){var b;const d=[],g=new Map;for(const w of n){const E=i.get(w.parentId);if(!E)continue;const S=((b=g.get(w.parentId))==null?void 0:b.expandedRect)??TM(E),x=nzt(S,w.rect);g.set(w.parentId,{expandedRect:x,parent:E})}return g.size>0&&g.forEach(({expandedRect:w,parent:E},S)=>{var P;const x=E.internals.positionAbsolute,A=_A(E),C=E.origin??c,R=w.x0||L>0||$||j)&&(d.push({id:S,type:"position",position:{x:E.position.x-R+$,y:E.position.y-L+j}}),(P=s.get(S))==null||P.forEach(G=>{n.some(ee=>ee.id===G.id)||d.push({id:G.id,type:"position",position:{x:G.position.x+R,y:G.position.y+L}})})),(A.width0){const R=P5e(C,i,s,d);S.push(...R)}return{changes:S,updatedInternals:E}}async function $Ln({delta:n,panZoom:i,transform:s,translateExtent:c,width:d,height:g}){if(!i||!n.x&&!n.y)return Promise.resolve(!1);const b=await i.setViewportConstrained({x:s[0]+n.x,y:s[1]+n.y,zoom:s[2]},[[0,0],[d,g]],c),w=!!b&&(b.x!==s[0]||b.y!==s[1]||b.k!==s[2]);return Promise.resolve(w)}function WMt(n,i,s,c,d,g){let b=d;const w=c.get(b)||new Map;c.set(b,w.set(s,i)),b=`${d}-${n}`;const E=c.get(b)||new Map;if(c.set(b,E.set(s,i)),g){b=`${d}-${n}-${g}`;const S=c.get(b)||new Map;c.set(b,S.set(s,i))}}function gzt(n,i,s){n.clear(),i.clear();for(const c of s){const{source:d,target:g,sourceHandle:b=null,targetHandle:w=null}=c,E={edgeId:c.id,source:d,target:g,sourceHandle:b,targetHandle:w},S=`${d}-${b}--${g}-${w}`,x=`${g}-${w}--${d}-${b}`;WMt("source",E,x,n,d,b),WMt("target",E,S,n,g,w),i.set(c.id,c)}}function bzt(n,i){if(!n.parentId)return!1;const s=i.get(n.parentId);return s?s.selected?!0:bzt(s,i):!1}function KMt(n,i,s){var d;let c=n;do{if((d=c==null?void 0:c.matches)!=null&&d.call(c,i))return!0;if(c===s)return!1;c=c==null?void 0:c.parentElement}while(c);return!1}function BLn(n,i,s,c){const d=new Map;for(const[g,b]of n)if((b.selected||b.id===c)&&(!b.parentId||!bzt(b,n))&&(b.draggable||i&&typeof b.draggable>"u")){const w=n.get(g);w&&d.set(g,{id:g,position:w.position||{x:0,y:0},distance:{x:s.x-w.internals.positionAbsolute.x,y:s.y-w.internals.positionAbsolute.y},extent:w.extent,parentId:w.parentId,origin:w.origin,expandParent:w.expandParent,internals:{positionAbsolute:w.internals.positionAbsolute||{x:0,y:0}},measured:{width:w.measured.width??0,height:w.measured.height??0}})}return d}function UCe({nodeId:n,dragItems:i,nodeLookup:s,dragging:c=!0}){var b,w,E;const d=[];for(const[S,x]of i){const A=(b=s.get(S))==null?void 0:b.internals.userNode;A&&d.push({...A,position:x.position,dragging:c})}if(!n)return[d[0],d];const g=(w=s.get(n))==null?void 0:w.internals.userNode;return[g?{...g,position:((E=i.get(n))==null?void 0:E.position)||g.position,dragging:c}:d[0],d]}function ULn({dragItems:n,snapGrid:i,x:s,y:c}){const d=n.values().next().value;if(!d)return null;const g={x:s-d.distance.x,y:c-d.distance.y},b=Az(g,i);return{x:b.x-g.x,y:b.y-g.y}}function HLn({onNodeMouseDown:n,getStoreItems:i,onDragStart:s,onDrag:c,onDragStop:d}){let g={x:null,y:null},b=0,w=new Map,E=!1,S={x:0,y:0},x=null,A=!1,C=null,R=!1,L=!1,D=null;function B({noDragClassName:j,handleSelector:P,domNode:G,isSelectable:ee,nodeId:re,nodeClickDistance:Q=0}){C=jm(G);function ie({x:fe,y:K}){const{nodeLookup:he,nodeExtent:Oe,snapGrid:Se,snapToGrid:Le,nodeOrigin:Ae,onNodeDrag:xe,onSelectionDrag:We,onError:dt,updateNodePositions:Ue}=i();g={x:fe,y:K};let bt=!1;const kt=w.size>1,ht=kt&&Oe?pDe(Tz(w)):null,Xt=kt&&Le?ULn({dragItems:w,snapGrid:Se,x:fe,y:K}):null;for(const[vt,Ct]of w){if(!he.has(vt))continue;let Ft={x:fe-Ct.distance.x,y:K-Ct.distance.y};Le&&(Ft=Xt?{x:Math.round(Ft.x+Xt.x),y:Math.round(Ft.y+Xt.y)}:Az(Ft,Se));let On=null;if(kt&&Oe&&!Ct.extent&&ht){const{positionAbsolute:vr}=Ct.internals,Ui=vr.x-ht.x+Oe[0][0],Qr=vr.x+Ct.measured.width-ht.x2+Oe[1][0],Hi=vr.y-ht.y+Oe[0][1],ai=vr.y+Ct.measured.height-ht.y2+Oe[1][1];On=[[Ui,Hi],[Qr,ai]]}const{position:Zn,positionAbsolute:Yn}=QHt({nodeId:vt,nextPosition:Ft,nodeLookup:he,nodeExtent:On||Oe,nodeOrigin:Ae,onError:dt});bt=bt||Ct.position.x!==Zn.x||Ct.position.y!==Zn.y,Ct.position=Zn,Ct.internals.positionAbsolute=Yn}if(L=L||bt,!!bt&&(Ue(w,!0),D&&(c||xe||!re&&We))){const[vt,Ct]=UCe({nodeId:re,dragItems:w,nodeLookup:he});c==null||c(D,w,vt,Ct),xe==null||xe(D,vt,Ct),re||We==null||We(D,Ct)}}async function pe(){if(!x)return;const{transform:fe,panBy:K,autoPanSpeed:he,autoPanOnNodeDrag:Oe}=i();if(!Oe){E=!1,cancelAnimationFrame(b);return}const[Se,Le]=tzt(S,x,he);(Se!==0||Le!==0)&&(g.x=(g.x??0)-Se/fe[2],g.y=(g.y??0)-Le/fe[2],await K({x:Se,y:Le})&&ie(g)),b=requestAnimationFrame(pe)}function me(fe){var kt;const{nodeLookup:K,multiSelectionActive:he,nodesDraggable:Oe,transform:Se,snapGrid:Le,snapToGrid:Ae,selectNodesOnDrag:xe,onNodeDragStart:We,onSelectionDragStart:dt,unselectNodesAndEdges:Ue}=i();A=!0,(!xe||!ee)&&!he&&re&&((kt=K.get(re))!=null&&kt.selected||Ue()),ee&&xe&&re&&(n==null||n(re));const bt=yH(fe.sourceEvent,{transform:Se,snapGrid:Le,snapToGrid:Ae,containerBounds:x});if(g=bt,w=BLn(K,Oe,bt,re),w.size>0&&(s||We||!re&&dt)){const[ht,Xt]=UCe({nodeId:re,dragItems:w,nodeLookup:K});s==null||s(fe.sourceEvent,w,ht,Xt),We==null||We(fe.sourceEvent,ht,Xt),re||dt==null||dt(fe.sourceEvent,Xt)}}const le=OHt().clickDistance(Q).on("start",fe=>{const{domNode:K,nodeDragThreshold:he,transform:Oe,snapGrid:Se,snapToGrid:Le}=i();x=(K==null?void 0:K.getBoundingClientRect())||null,R=!1,L=!1,D=fe.sourceEvent,he===0&&me(fe),g=yH(fe.sourceEvent,{transform:Oe,snapGrid:Se,snapToGrid:Le,containerBounds:x}),S=Ov(fe.sourceEvent,x)}).on("drag",fe=>{const{autoPanOnNodeDrag:K,transform:he,snapGrid:Oe,snapToGrid:Se,nodeDragThreshold:Le,nodeLookup:Ae}=i(),xe=yH(fe.sourceEvent,{transform:he,snapGrid:Oe,snapToGrid:Se,containerBounds:x});if(D=fe.sourceEvent,(fe.sourceEvent.type==="touchmove"&&fe.sourceEvent.touches.length>1||re&&!Ae.has(re))&&(R=!0),!R){if(!E&&K&&A&&(E=!0,pe()),!A){const We=Ov(fe.sourceEvent,x),dt=We.x-S.x,Ue=We.y-S.y;Math.sqrt(dt*dt+Ue*Ue)>Le&&me(fe)}(g.x!==xe.xSnapped||g.y!==xe.ySnapped)&&w&&A&&(S=Ov(fe.sourceEvent,x),ie(xe))}}).on("end",fe=>{if(!(!A||R)&&(E=!1,A=!1,cancelAnimationFrame(b),w.size>0)){const{nodeLookup:K,updateNodePositions:he,onNodeDragStop:Oe,onSelectionDragStop:Se}=i();if(L&&(he(w,!1),L=!1),d||Oe||!re&&Se){const[Le,Ae]=UCe({nodeId:re,dragItems:w,nodeLookup:K,dragging:!1});d==null||d(fe.sourceEvent,w,Le,Ae),Oe==null||Oe(fe.sourceEvent,Le,Ae),re||Se==null||Se(fe.sourceEvent,Ae)}}}).filter(fe=>{const K=fe.target;return!fe.button&&(!j||!KMt(K,`.${j}`,G))&&(!P||KMt(K,P,G))});C.call(le)}function $(){C==null||C.on(".drag",null)}return{update:B,destroy:$}}function zLn(n,i,s){const c=[],d={x:n.x-s,y:n.y-s,width:s*2,height:s*2};for(const g of i.values())JH(d,TM(g))>0&&c.push(g);return c}const GLn=250;function qLn(n,i,s,c){var w,E;let d=[],g=1/0;const b=zLn(n,s,i+GLn);for(const S of b){const x=[...((w=S.internals.handleBounds)==null?void 0:w.source)??[],...((E=S.internals.handleBounds)==null?void 0:E.target)??[]];for(const A of x){if(c.nodeId===A.nodeId&&c.type===A.type&&c.id===A.id)continue;const{x:C,y:R}=pR(S,A,A.position,!0),L=Math.sqrt(Math.pow(C-n.x,2)+Math.pow(R-n.y,2));L>i||(L1){const S=c.type==="source"?"target":"source";return d.find(x=>x.type===S)??d[0]}return d[0]}function mzt(n,i,s,c,d,g=!1){var S,x,A;const b=c.get(n);if(!b)return null;const w=d==="strict"?(S=b.internals.handleBounds)==null?void 0:S[i]:[...((x=b.internals.handleBounds)==null?void 0:x.source)??[],...((A=b.internals.handleBounds)==null?void 0:A.target)??[]],E=(s?w==null?void 0:w.find(C=>C.id===s):w==null?void 0:w[0])??null;return E&&g?{...E,...pR(b,E,E.position,!0)}:E}function wzt(n,i){return n||(i!=null&&i.classList.contains("target")?"target":i!=null&&i.classList.contains("source")?"source":null)}function VLn(n,i){let s=null;return i?s=!0:n&&!i&&(s=!1),s}const yzt=()=>!0;function WLn(n,{connectionMode:i,connectionRadius:s,handleId:c,nodeId:d,edgeUpdaterType:g,isTarget:b,domNode:w,nodeLookup:E,lib:S,autoPanOnConnect:x,flowId:A,panBy:C,cancelConnection:R,onConnectStart:L,onConnect:D,onConnectEnd:B,isValidConnection:$=yzt,onReconnectEnd:j,updateConnection:P,getTransform:G,getFromHandle:ee,autoPanSpeed:re,dragThreshold:Q=1,handleDomNode:ie}){const pe=ozt(n.target);let me=0,le;const{x:fe,y:K}=Ov(n),he=wzt(g,ie),Oe=w==null?void 0:w.getBoundingClientRect();let Se=!1;if(!Oe||!he)return;const Le=mzt(d,he,c,E,i);if(!Le)return;let Ae=Ov(n,Oe),xe=!1,We=null,dt=!1,Ue=null;function bt(){if(!x||!Oe)return;const[Zn,Yn]=tzt(Ae,Oe,re);C({x:Zn,y:Yn}),me=requestAnimationFrame(bt)}const kt={...Le,nodeId:d,type:he,position:Le.position},ht=E.get(d);let vt={inProgress:!0,isValid:null,from:pR(ht,kt,qr.Left,!0),fromHandle:kt,fromPosition:kt.position,fromNode:ht,to:Ae,toHandle:null,toPosition:PMt[kt.position],toNode:null,pointer:Ae};function Ct(){Se=!0,P(vt),L==null||L(n,{nodeId:d,handleId:c,handleType:he})}Q===0&&Ct();function Ft(Zn){if(!Se){const{x:ai,y:jc}=Ov(Zn),Xs=ai-fe,ls=jc-K;if(!(Xs*Xs+ls*ls>Q*Q))return;Ct()}if(!ee()||!kt){On(Zn);return}const Yn=G();Ae=Ov(Zn,Oe),le=qLn(_z(Ae,Yn,!1,[1,1]),s,E,kt),xe||(bt(),xe=!0);const vr=vzt(Zn,{handle:le,connectionMode:i,fromNodeId:d,fromHandleId:c,fromType:b?"target":"source",isValidConnection:$,doc:pe,lib:S,flowId:A,nodeLookup:E});Ue=vr.handleDomNode,We=vr.connection,dt=VLn(!!le,vr.isValid);const Ui=E.get(d),Qr=Ui?pR(Ui,kt,qr.Left,!0):vt.from,Hi={...vt,from:Qr,isValid:dt,to:vr.toHandle&&dt?Voe({x:vr.toHandle.x,y:vr.toHandle.y},Yn):Ae,toHandle:vr.toHandle,toPosition:dt&&vr.toHandle?vr.toHandle.position:PMt[kt.position],toNode:vr.toHandle?E.get(vr.toHandle.nodeId):null,pointer:Ae};P(Hi),vt=Hi}function On(Zn){if(!("touches"in Zn&&Zn.touches.length>0)){if(Se){(le||Ue)&&We&&dt&&(D==null||D(We));const{inProgress:Yn,...vr}=vt,Ui={...vr,toPosition:vt.toHandle?vt.toPosition:null};B==null||B(Zn,Ui),g&&(j==null||j(Zn,Ui))}R(),cancelAnimationFrame(me),xe=!1,dt=!1,We=null,Ue=null,pe.removeEventListener("mousemove",Ft),pe.removeEventListener("mouseup",On),pe.removeEventListener("touchmove",Ft),pe.removeEventListener("touchend",On)}}pe.addEventListener("mousemove",Ft),pe.addEventListener("mouseup",On),pe.addEventListener("touchmove",Ft),pe.addEventListener("touchend",On)}function vzt(n,{handle:i,connectionMode:s,fromNodeId:c,fromHandleId:d,fromType:g,doc:b,lib:w,flowId:E,isValidConnection:S=yzt,nodeLookup:x}){const A=g==="target",C=i?b.querySelector(`.${w}-flow__handle[data-id="${E}-${i==null?void 0:i.nodeId}-${i==null?void 0:i.id}-${i==null?void 0:i.type}"]`):null,{x:R,y:L}=Ov(n),D=b.elementFromPoint(R,L),B=D!=null&&D.classList.contains(`${w}-flow__handle`)?D:C,$={handleDomNode:B,isValid:!1,connection:null,toHandle:null};if(B){const j=wzt(void 0,B),P=B.getAttribute("data-nodeid"),G=B.getAttribute("data-handleid"),ee=B.classList.contains("connectable"),re=B.classList.contains("connectableend");if(!P||!j)return $;const Q={source:A?P:c,sourceHandle:A?G:d,target:A?c:P,targetHandle:A?d:G};$.connection=Q;const pe=ee&&re&&(s===EM.Strict?A&&j==="source"||!A&&j==="target":P!==c||G!==d);$.isValid=pe&&S(Q),$.toHandle=mzt(P,j,G,x,s,!0)}return $}const mDe={onPointerDown:WLn,isValid:vzt};function KLn({domNode:n,panZoom:i,getTransform:s,getViewScale:c}){const d=jm(n);function g({translateExtent:w,width:E,height:S,zoomStep:x=1,pannable:A=!0,zoomable:C=!0,inversePan:R=!1}){const L=P=>{if(P.sourceEvent.type!=="wheel"||!i)return;const G=s(),ee=P.sourceEvent.ctrlKey&&XH()?10:1,re=-P.sourceEvent.deltaY*(P.sourceEvent.deltaMode===1?.05:P.sourceEvent.deltaMode?1:.002)*x,Q=G[2]*Math.pow(2,re*ee);i.scaleTo(Q)};let D=[0,0];const B=P=>{(P.sourceEvent.type==="mousedown"||P.sourceEvent.type==="touchstart")&&(D=[P.sourceEvent.clientX??P.sourceEvent.touches[0].clientX,P.sourceEvent.clientY??P.sourceEvent.touches[0].clientY])},$=P=>{const G=s();if(P.sourceEvent.type!=="mousemove"&&P.sourceEvent.type!=="touchmove"||!i)return;const ee=[P.sourceEvent.clientX??P.sourceEvent.touches[0].clientX,P.sourceEvent.clientY??P.sourceEvent.touches[0].clientY],re=[ee[0]-D[0],ee[1]-D[1]];D=ee;const Q=c()*Math.max(G[2],Math.log(G[2]))*(R?-1:1),ie={x:G[0]-re[0]*Q,y:G[1]-re[1]*Q},pe=[[0,0],[E,S]];i.setViewportConstrained({x:ie.x,y:ie.y,zoom:G[2]},pe,w)},j=WHt().on("start",B).on("zoom",A?$:null).on("zoom.wheel",C?L:null);d.call(j,{})}function b(){d.on("zoom",null)}return{update:g,destroy:b,pointer:Nv}}const Zse=n=>({x:n.x,y:n.y,zoom:n.k}),HCe=({x:n,y:i,zoom:s})=>Yse.translate(n,i).scale(s),H5=(n,i)=>n.target.closest(`.${i}`),Ezt=(n,i)=>i===2&&Array.isArray(n)&&n.includes(2),YLn=n=>((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2,zCe=(n,i=0,s=YLn,c=()=>{})=>{const d=typeof i=="number"&&i>0;return d||c(),d?n.transition().duration(i).ease(s).on("end",c):n},Szt=n=>{const i=n.ctrlKey&&XH()?10:1;return-n.deltaY*(n.deltaMode===1?.05:n.deltaMode?1:.002)*i};function JLn({zoomPanValues:n,noWheelClassName:i,d3Selection:s,d3Zoom:c,panOnScrollMode:d,panOnScrollSpeed:g,zoomOnPinch:b,onPanZoomStart:w,onPanZoom:E,onPanZoomEnd:S}){return x=>{if(H5(x,i))return x.ctrlKey&&x.preventDefault(),!1;x.preventDefault(),x.stopImmediatePropagation();const A=s.property("__zoom").k||1;if(x.ctrlKey&&b){const B=Nv(x),$=Szt(x),j=A*Math.pow(2,$);c.scaleTo(s,j,B,x);return}const C=x.deltaMode===1?20:1;let R=d===nR.Vertical?0:x.deltaX*C,L=d===nR.Horizontal?0:x.deltaY*C;!XH()&&x.shiftKey&&d!==nR.Vertical&&(R=x.deltaY*C,L=0),c.translateBy(s,-(R/A)*g,-(L/A)*g,{internal:!0});const D=Zse(s.property("__zoom"));clearTimeout(n.panScrollTimeout),n.isPanScrolling?(E==null||E(x,D),n.panScrollTimeout=setTimeout(()=>{S==null||S(x,D),n.isPanScrolling=!1},150)):(n.isPanScrolling=!0,w==null||w(x,D))}}function XLn({noWheelClassName:n,preventScrolling:i,d3ZoomHandler:s}){return function(c,d){const g=c.type==="wheel",b=!i&&g&&!c.ctrlKey,w=H5(c,n);if(c.ctrlKey&&g&&w&&c.preventDefault(),b||w)return null;c.preventDefault(),s.call(this,c,d)}}function ZLn({zoomPanValues:n,onDraggingChange:i,onPanZoomStart:s}){return c=>{var g,b,w;if((g=c.sourceEvent)!=null&&g.internal)return;const d=Zse(c.transform);n.mouseButton=((b=c.sourceEvent)==null?void 0:b.button)||0,n.isZoomingOrPanning=!0,n.prevViewport=d,((w=c.sourceEvent)==null?void 0:w.type)==="mousedown"&&i(!0),s&&(s==null||s(c.sourceEvent,d))}}function QLn({zoomPanValues:n,panOnDrag:i,onPaneContextMenu:s,onTransformChange:c,onPanZoom:d}){return g=>{var b,w;n.usedRightMouseButton=!!(s&&Ezt(i,n.mouseButton??0)),(b=g.sourceEvent)!=null&&b.sync||c([g.transform.x,g.transform.y,g.transform.k]),d&&!((w=g.sourceEvent)!=null&&w.internal)&&(d==null||d(g.sourceEvent,Zse(g.transform)))}}function e5n({zoomPanValues:n,panOnDrag:i,panOnScroll:s,onDraggingChange:c,onPanZoomEnd:d,onPaneContextMenu:g}){return b=>{var w;if(!((w=b.sourceEvent)!=null&&w.internal)&&(n.isZoomingOrPanning=!1,g&&Ezt(i,n.mouseButton??0)&&!n.usedRightMouseButton&&b.sourceEvent&&g(b.sourceEvent),n.usedRightMouseButton=!1,c(!1),d)){const E=Zse(b.transform);n.prevViewport=E,clearTimeout(n.timerId),n.timerId=setTimeout(()=>{d==null||d(b.sourceEvent,E)},s?150:0)}}}function t5n({zoomActivationKeyPressed:n,zoomOnScroll:i,zoomOnPinch:s,panOnDrag:c,panOnScroll:d,zoomOnDoubleClick:g,userSelectionActive:b,noWheelClassName:w,noPanClassName:E,lib:S,connectionInProgress:x}){return A=>{var B;const C=n||i,R=s&&A.ctrlKey,L=A.type==="wheel";if(A.button===1&&A.type==="mousedown"&&(H5(A,`${S}-flow__node`)||H5(A,`${S}-flow__edge`)))return!0;if(!c&&!C&&!d&&!g&&!s||b||x&&!L||H5(A,w)&&L||H5(A,E)&&(!L||d&&L&&!n)||!s&&A.ctrlKey&&L)return!1;if(!s&&A.type==="touchstart"&&((B=A.touches)==null?void 0:B.length)>1)return A.preventDefault(),!1;if(!C&&!d&&!R&&L||!c&&(A.type==="mousedown"||A.type==="touchstart")||Array.isArray(c)&&!c.includes(A.button)&&A.type==="mousedown")return!1;const D=Array.isArray(c)&&c.includes(A.button)||!A.button||A.button<=1;return(!A.ctrlKey||L)&&D}}function n5n({domNode:n,minZoom:i,maxZoom:s,translateExtent:c,viewport:d,onPanZoom:g,onPanZoomStart:b,onPanZoomEnd:w,onDraggingChange:E}){const S={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},x=n.getBoundingClientRect(),A=WHt().scaleExtent([i,s]).translateExtent(c),C=jm(n).call(A);j({x:d.x,y:d.y,zoom:SM(d.zoom,i,s)},[[0,0],[x.width,x.height]],c);const R=C.on("wheel.zoom"),L=C.on("dblclick.zoom");A.wheelDelta(Szt);function D(le,fe){return C?new Promise(K=>{A==null||A.interpolate((fe==null?void 0:fe.interpolate)==="linear"?wH:Zie).transform(zCe(C,fe==null?void 0:fe.duration,fe==null?void 0:fe.ease,()=>K(!0)),le)}):Promise.resolve(!1)}function B({noWheelClassName:le,noPanClassName:fe,onPaneContextMenu:K,userSelectionActive:he,panOnScroll:Oe,panOnDrag:Se,panOnScrollMode:Le,panOnScrollSpeed:Ae,preventScrolling:xe,zoomOnPinch:We,zoomOnScroll:dt,zoomOnDoubleClick:Ue,zoomActivationKeyPressed:bt,lib:kt,onTransformChange:ht,connectionInProgress:Xt,paneClickDistance:vt,selectionOnDrag:Ct}){he&&!S.isZoomingOrPanning&&$();const Ft=Oe&&!bt&&!he;A.clickDistance(Ct?1/0:!Rv(vt)||vt<0?0:vt);const On=Ft?JLn({zoomPanValues:S,noWheelClassName:le,d3Selection:C,d3Zoom:A,panOnScrollMode:Le,panOnScrollSpeed:Ae,zoomOnPinch:We,onPanZoomStart:b,onPanZoom:g,onPanZoomEnd:w}):XLn({noWheelClassName:le,preventScrolling:xe,d3ZoomHandler:R});if(C.on("wheel.zoom",On,{passive:!1}),!he){const Yn=ZLn({zoomPanValues:S,onDraggingChange:E,onPanZoomStart:b});A.on("start",Yn);const vr=QLn({zoomPanValues:S,panOnDrag:Se,onPaneContextMenu:!!K,onPanZoom:g,onTransformChange:ht});A.on("zoom",vr);const Ui=e5n({zoomPanValues:S,panOnDrag:Se,panOnScroll:Oe,onPaneContextMenu:K,onPanZoomEnd:w,onDraggingChange:E});A.on("end",Ui)}const Zn=t5n({zoomActivationKeyPressed:bt,panOnDrag:Se,zoomOnScroll:dt,panOnScroll:Oe,zoomOnDoubleClick:Ue,zoomOnPinch:We,userSelectionActive:he,noPanClassName:fe,noWheelClassName:le,lib:kt,connectionInProgress:Xt});A.filter(Zn),Ue?C.on("dblclick.zoom",L):C.on("dblclick.zoom",null)}function $(){A.on("zoom",null)}async function j(le,fe,K){const he=HCe(le),Oe=A==null?void 0:A.constrain()(he,fe,K);return Oe&&await D(Oe),new Promise(Se=>Se(Oe))}async function P(le,fe){const K=HCe(le);return await D(K,fe),new Promise(he=>he(K))}function G(le){if(C){const fe=HCe(le),K=C.property("__zoom");(K.k!==le.zoom||K.x!==le.x||K.y!==le.y)&&(A==null||A.transform(C,fe,null,{sync:!0}))}}function ee(){const le=C?VHt(C.node()):{x:0,y:0,k:1};return{x:le.x,y:le.y,zoom:le.k}}function re(le,fe){return C?new Promise(K=>{A==null||A.interpolate((fe==null?void 0:fe.interpolate)==="linear"?wH:Zie).scaleTo(zCe(C,fe==null?void 0:fe.duration,fe==null?void 0:fe.ease,()=>K(!0)),le)}):Promise.resolve(!1)}function Q(le,fe){return C?new Promise(K=>{A==null||A.interpolate((fe==null?void 0:fe.interpolate)==="linear"?wH:Zie).scaleBy(zCe(C,fe==null?void 0:fe.duration,fe==null?void 0:fe.ease,()=>K(!0)),le)}):Promise.resolve(!1)}function ie(le){A==null||A.scaleExtent(le)}function pe(le){A==null||A.translateExtent(le)}function me(le){const fe=!Rv(le)||le<0?0:le;A==null||A.clickDistance(fe)}return{update:B,destroy:$,setViewport:P,setViewportConstrained:j,getViewport:ee,scaleTo:re,scaleBy:Q,setScaleExtent:ie,setTranslateExtent:pe,syncViewport:G,setClickDistance:me}}var _M;(function(n){n.Line="line",n.Handle="handle"})(_M||(_M={}));function r5n({width:n,prevWidth:i,height:s,prevHeight:c,affectsX:d,affectsY:g}){const b=n-i,w=s-c,E=[b>0?1:b<0?-1:0,w>0?1:w<0?-1:0];return b&&d&&(E[0]=E[0]*-1),w&&g&&(E[1]=E[1]*-1),E}function YMt(n){const i=n.includes("right")||n.includes("left"),s=n.includes("bottom")||n.includes("top"),c=n.includes("left"),d=n.includes("top");return{isHorizontal:i,isVertical:s,affectsX:c,affectsY:d}}function Ck(n,i){return Math.max(0,i-n)}function Ik(n,i){return Math.max(0,n-i)}function mie(n,i,s){return Math.max(0,i-n,n-s)}function JMt(n,i){return n?!i:i}function i5n(n,i,s,c,d,g,b,w){let{affectsX:E,affectsY:S}=i;const{isHorizontal:x,isVertical:A}=i,C=x&&A,{xSnapped:R,ySnapped:L}=s,{minWidth:D,maxWidth:B,minHeight:$,maxHeight:j}=c,{x:P,y:G,width:ee,height:re,aspectRatio:Q}=n;let ie=Math.floor(x?R-n.pointerX:0),pe=Math.floor(A?L-n.pointerY:0);const me=ee+(E?-ie:ie),le=re+(S?-pe:pe),fe=-g[0]*ee,K=-g[1]*re;let he=mie(me,D,B),Oe=mie(le,$,j);if(b){let Ae=0,xe=0;E&&ie<0?Ae=Ck(P+ie+fe,b[0][0]):!E&&ie>0&&(Ae=Ik(P+me+fe,b[1][0])),S&&pe<0?xe=Ck(G+pe+K,b[0][1]):!S&&pe>0&&(xe=Ik(G+le+K,b[1][1])),he=Math.max(he,Ae),Oe=Math.max(Oe,xe)}if(w){let Ae=0,xe=0;E&&ie>0?Ae=Ik(P+ie,w[0][0]):!E&&ie<0&&(Ae=Ck(P+me,w[1][0])),S&&pe>0?xe=Ik(G+pe,w[0][1]):!S&&pe<0&&(xe=Ck(G+le,w[1][1])),he=Math.max(he,Ae),Oe=Math.max(Oe,xe)}if(d){if(x){const Ae=mie(me/Q,$,j)*Q;if(he=Math.max(he,Ae),b){let xe=0;!E&&!S||E&&!S&&C?xe=Ik(G+K+me/Q,b[1][1])*Q:xe=Ck(G+K+(E?ie:-ie)/Q,b[0][1])*Q,he=Math.max(he,xe)}if(w){let xe=0;!E&&!S||E&&!S&&C?xe=Ck(G+me/Q,w[1][1])*Q:xe=Ik(G+(E?ie:-ie)/Q,w[0][1])*Q,he=Math.max(he,xe)}}if(A){const Ae=mie(le*Q,D,B)/Q;if(Oe=Math.max(Oe,Ae),b){let xe=0;!E&&!S||S&&!E&&C?xe=Ik(P+le*Q+fe,b[1][0])/Q:xe=Ck(P+(S?pe:-pe)*Q+fe,b[0][0])/Q,Oe=Math.max(Oe,xe)}if(w){let xe=0;!E&&!S||S&&!E&&C?xe=Ck(P+le*Q,w[1][0])/Q:xe=Ik(P+(S?pe:-pe)*Q,w[0][0])/Q,Oe=Math.max(Oe,xe)}}}pe=pe+(pe<0?Oe:-Oe),ie=ie+(ie<0?he:-he),d&&(C?me>le*Q?pe=(JMt(E,S)?-ie:ie)/Q:ie=(JMt(E,S)?-pe:pe)*Q:x?(pe=ie/Q,S=E):(ie=pe*Q,E=S));const Se=E?P+ie:P,Le=S?G+pe:G;return{width:ee+(E?-ie:ie),height:re+(S?-pe:pe),x:g[0]*ie*(E?-1:1)+Se,y:g[1]*pe*(S?-1:1)+Le}}const Tzt={width:0,height:0,x:0,y:0},o5n={...Tzt,pointerX:0,pointerY:0,aspectRatio:1};function s5n(n){return[[0,0],[n.measured.width,n.measured.height]]}function a5n(n,i,s){const c=i.position.x+n.position.x,d=i.position.y+n.position.y,g=n.measured.width??0,b=n.measured.height??0,w=s[0]*g,E=s[1]*b;return[[c-w,d-E],[c+g-w,d+b-E]]}function u5n({domNode:n,nodeId:i,getStoreItems:s,onChange:c,onEnd:d}){const g=jm(n);let b={controlDirection:YMt("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function w({controlPosition:S,boundaries:x,keepAspectRatio:A,resizeDirection:C,onResizeStart:R,onResize:L,onResizeEnd:D,shouldResize:B}){let $={...Tzt},j={...o5n};b={boundaries:x,resizeDirection:C,keepAspectRatio:A,controlDirection:YMt(S)};let P,G=null,ee=[],re,Q,ie,pe=!1;const me=OHt().on("start",le=>{const{nodeLookup:fe,transform:K,snapGrid:he,snapToGrid:Oe,nodeOrigin:Se,paneDomNode:Le}=s();if(P=fe.get(i),!P)return;G=(Le==null?void 0:Le.getBoundingClientRect())??null;const{xSnapped:Ae,ySnapped:xe}=yH(le.sourceEvent,{transform:K,snapGrid:he,snapToGrid:Oe,containerBounds:G});$={width:P.measured.width??0,height:P.measured.height??0,x:P.position.x??0,y:P.position.y??0},j={...$,pointerX:Ae,pointerY:xe,aspectRatio:$.width/$.height},re=void 0,P.parentId&&(P.extent==="parent"||P.expandParent)&&(re=fe.get(P.parentId),Q=re&&P.extent==="parent"?s5n(re):void 0),ee=[],ie=void 0;for(const[We,dt]of fe)if(dt.parentId===i&&(ee.push({id:We,position:{...dt.position},extent:dt.extent}),dt.extent==="parent"||dt.expandParent)){const Ue=a5n(dt,P,dt.origin??Se);ie?ie=[[Math.min(Ue[0][0],ie[0][0]),Math.min(Ue[0][1],ie[0][1])],[Math.max(Ue[1][0],ie[1][0]),Math.max(Ue[1][1],ie[1][1])]]:ie=Ue}R==null||R(le,{...$})}).on("drag",le=>{const{transform:fe,snapGrid:K,snapToGrid:he,nodeOrigin:Oe}=s(),Se=yH(le.sourceEvent,{transform:fe,snapGrid:K,snapToGrid:he,containerBounds:G}),Le=[];if(!P)return;const{x:Ae,y:xe,width:We,height:dt}=$,Ue={},bt=P.origin??Oe,{width:kt,height:ht,x:Xt,y:vt}=i5n(j,b.controlDirection,Se,b.boundaries,b.keepAspectRatio,bt,Q,ie),Ct=kt!==We,Ft=ht!==dt,On=Xt!==Ae&&Ct,Zn=vt!==xe&&Ft;if(!On&&!Zn&&!Ct&&!Ft)return;if((On||Zn||bt[0]===1||bt[1]===1)&&(Ue.x=On?Xt:$.x,Ue.y=Zn?vt:$.y,$.x=Ue.x,$.y=Ue.y,ee.length>0)){const Qr=Xt-Ae,Hi=vt-xe;for(const ai of ee)ai.position={x:ai.position.x-Qr+bt[0]*(kt-We),y:ai.position.y-Hi+bt[1]*(ht-dt)},Le.push(ai)}if((Ct||Ft)&&(Ue.width=Ct&&(!b.resizeDirection||b.resizeDirection==="horizontal")?kt:$.width,Ue.height=Ft&&(!b.resizeDirection||b.resizeDirection==="vertical")?ht:$.height,$.width=Ue.width,$.height=Ue.height),re&&P.expandParent){const Qr=bt[0]*(Ue.width??0);Ue.x&&Ue.x{pe&&(D==null||D(le,{...$}),d==null||d({...$}),pe=!1)});g.call(me)}function E(){g.on(".drag",null)}return{update:w,destroy:E}}var Azt={exports:{}},_zt={};/** + * @license React + * use-sync-external-store-shim/with-selector.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qse=H,c5n=mHt;function l5n(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var d5n=typeof Object.is=="function"?Object.is:l5n,f5n=c5n.useSyncExternalStore,h5n=Qse.useRef,p5n=Qse.useEffect,g5n=Qse.useMemo,b5n=Qse.useDebugValue;_zt.useSyncExternalStoreWithSelector=function(n,i,s,c,d){var g=h5n(null);if(g.current===null){var b={hasValue:!1,value:null};g.current=b}else b=g.current;g=g5n(function(){function E(R){if(!S){if(S=!0,x=R,R=c(R),d!==void 0&&b.hasValue){var L=b.value;if(d(L,R))return A=L}return A=R}if(L=A,d5n(x,R))return L;var D=c(R);return d!==void 0&&d(L,D)?(x=R,L):(x=R,A=D)}var S=!1,x,A,C=s===void 0?null:s;return[function(){return E(i())},C===null?void 0:function(){return E(C())}]},[i,s,c,d]);var w=f5n(n,g[0],g[1]);return p5n(function(){b.hasValue=!0,b.value=w},[w]),b5n(w),w};Azt.exports=_zt;var m5n=Azt.exports;const w5n=TR(m5n),y5n={},XMt=n=>{let i;const s=new Set,c=(x,A)=>{const C=typeof x=="function"?x(i):x;if(!Object.is(C,i)){const R=i;i=A??(typeof C!="object"||C===null)?C:Object.assign({},i,C),s.forEach(L=>L(i,R))}},d=()=>i,E={setState:c,getState:d,getInitialState:()=>S,subscribe:x=>(s.add(x),()=>s.delete(x)),destroy:()=>{(y5n?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),s.clear()}},S=i=n(c,d,E);return E},v5n=n=>n?XMt(n):XMt,{useDebugValue:E5n}=Hn,{useSyncExternalStoreWithSelector:S5n}=w5n,T5n=n=>n;function xzt(n,i=T5n,s){const c=S5n(n.subscribe,n.getState,n.getServerState||n.getInitialState,i,s);return E5n(c),c}const ZMt=(n,i)=>{const s=v5n(n),c=(d,g=i)=>xzt(s,d,g);return Object.assign(c,s),c},A5n=(n,i)=>n?ZMt(n,i):ZMt;function Lc(n,i){if(Object.is(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;if(n instanceof Map&&i instanceof Map){if(n.size!==i.size)return!1;for(const[c,d]of n)if(!Object.is(d,i.get(c)))return!1;return!0}if(n instanceof Set&&i instanceof Set){if(n.size!==i.size)return!1;for(const c of n)if(!i.has(c))return!1;return!0}const s=Object.keys(n);if(s.length!==Object.keys(i).length)return!1;for(const c of s)if(!Object.prototype.hasOwnProperty.call(i,c)||!Object.is(n[c],i[c]))return!1;return!0}const eae=H.createContext(null),_5n=eae.Provider,kzt=z2.error001();function Js(n,i){const s=H.useContext(eae);if(s===null)throw new Error(kzt);return xzt(s,n,i)}function Mc(){const n=H.useContext(eae);if(n===null)throw new Error(kzt);return H.useMemo(()=>({getState:n.getState,setState:n.setState,subscribe:n.subscribe}),[n])}const QMt={display:"none"},x5n={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Nzt="react-flow__node-desc",Czt="react-flow__edge-desc",k5n="react-flow__aria-live",N5n=n=>n.ariaLiveMessage,C5n=n=>n.ariaLabelConfig;function I5n({rfId:n}){const i=Js(N5n);return I.jsx("div",{id:`${k5n}-${n}`,"aria-live":"assertive","aria-atomic":"true",style:x5n,children:i})}function R5n({rfId:n,disableKeyboardA11y:i}){const s=Js(C5n);return I.jsxs(I.Fragment,{children:[I.jsx("div",{id:`${Nzt}-${n}`,style:QMt,children:i?s["node.a11yDescription.default"]:s["node.a11yDescription.keyboardDisabled"]}),I.jsx("div",{id:`${Czt}-${n}`,style:QMt,children:s["edge.a11yDescription.default"]}),!i&&I.jsx(I5n,{rfId:n})]})}const gR=H.forwardRef(({position:n="top-left",children:i,className:s,style:c,...d},g)=>{const b=`${n}`.split("-");return I.jsx("div",{className:Bd(["react-flow__panel",s,...b]),style:c,ref:g,...d,children:i})});gR.displayName="Panel";function O5n({proOptions:n,position:i="bottom-right"}){return n!=null&&n.hideAttribution?null:I.jsx(gR,{position:i,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:I.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const D5n=n=>{const i=[],s=[];for(const[,c]of n.nodeLookup)c.selected&&i.push(c.internals.userNode);for(const[,c]of n.edgeLookup)c.selected&&s.push(c);return{selectedNodes:i,selectedEdges:s}},wie=n=>n.id;function L5n(n,i){return Lc(n.selectedNodes.map(wie),i.selectedNodes.map(wie))&&Lc(n.selectedEdges.map(wie),i.selectedEdges.map(wie))}function M5n({onSelectionChange:n}){const i=Mc(),{selectedNodes:s,selectedEdges:c}=Js(D5n,L5n);return H.useEffect(()=>{const d={nodes:s,edges:c};n==null||n(d),i.getState().onSelectionChangeHandlers.forEach(g=>g(d))},[s,c,n]),null}const P5n=n=>!!n.onSelectionChangeHandlers;function j5n({onSelectionChange:n}){const i=Js(P5n);return n||i?I.jsx(M5n,{onSelectionChange:n}):null}const Izt=[0,0],F5n={x:0,y:0,zoom:1},$5n=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],e9t=[...$5n,"rfId"],B5n=n=>({setNodes:n.setNodes,setEdges:n.setEdges,setMinZoom:n.setMinZoom,setMaxZoom:n.setMaxZoom,setTranslateExtent:n.setTranslateExtent,setNodeExtent:n.setNodeExtent,reset:n.reset,setDefaultNodesAndEdges:n.setDefaultNodesAndEdges}),t9t={translateExtent:KH,nodeOrigin:Izt,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function U5n(n){const{setNodes:i,setEdges:s,setMinZoom:c,setMaxZoom:d,setTranslateExtent:g,setNodeExtent:b,reset:w,setDefaultNodesAndEdges:E}=Js(B5n,Lc),S=Mc();H.useEffect(()=>(E(n.defaultNodes,n.defaultEdges),()=>{x.current=t9t,w()}),[]);const x=H.useRef(t9t);return H.useEffect(()=>{for(const A of e9t){const C=n[A],R=x.current[A];C!==R&&(typeof n[A]>"u"||(A==="nodes"?i(C):A==="edges"?s(C):A==="minZoom"?c(C):A==="maxZoom"?d(C):A==="translateExtent"?g(C):A==="nodeExtent"?b(C):A==="ariaLabelConfig"?S.setState({ariaLabelConfig:ELn(C)}):A==="fitView"?S.setState({fitViewQueued:C}):A==="fitViewOptions"?S.setState({fitViewOptions:C}):S.setState({[A]:C})))}x.current=n},e9t.map(A=>n[A])),null}function n9t(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function H5n(n){var c;const[i,s]=H.useState(n==="system"?null:n);return H.useEffect(()=>{if(n!=="system"){s(n);return}const d=n9t(),g=()=>s(d!=null&&d.matches?"dark":"light");return g(),d==null||d.addEventListener("change",g),()=>{d==null||d.removeEventListener("change",g)}},[n]),i!==null?i:(c=n9t())!=null&&c.matches?"dark":"light"}const r9t=typeof document<"u"?document:null;function ZH(n=null,i={target:r9t,actInsideInputWithModifier:!0}){const[s,c]=H.useState(!1),d=H.useRef(!1),g=H.useRef(new Set([])),[b,w]=H.useMemo(()=>{if(n!==null){const S=(Array.isArray(n)?n:[n]).filter(A=>typeof A=="string").map(A=>A.replace("+",` +`).replace(` + +`,` ++`).split(` +`)),x=S.reduce((A,C)=>A.concat(...C),[]);return[S,x]}return[[],[]]},[n]);return H.useEffect(()=>{const E=(i==null?void 0:i.target)??r9t,S=(i==null?void 0:i.actInsideInputWithModifier)??!0;if(n!==null){const x=R=>{var B,$;if(d.current=R.ctrlKey||R.metaKey||R.shiftKey||R.altKey,(!d.current||d.current&&!S)&&szt(R))return!1;const D=o9t(R.code,w);if(g.current.add(R[D]),i9t(b,g.current,!1)){const j=(($=(B=R.composedPath)==null?void 0:B.call(R))==null?void 0:$[0])||R.target,P=(j==null?void 0:j.nodeName)==="BUTTON"||(j==null?void 0:j.nodeName)==="A";i.preventDefault!==!1&&(d.current||!P)&&R.preventDefault(),c(!0)}},A=R=>{const L=o9t(R.code,w);i9t(b,g.current,!0)?(c(!1),g.current.clear()):g.current.delete(R[L]),R.key==="Meta"&&g.current.clear(),d.current=!1},C=()=>{g.current.clear(),c(!1)};return E==null||E.addEventListener("keydown",x),E==null||E.addEventListener("keyup",A),window.addEventListener("blur",C),window.addEventListener("contextmenu",C),()=>{E==null||E.removeEventListener("keydown",x),E==null||E.removeEventListener("keyup",A),window.removeEventListener("blur",C),window.removeEventListener("contextmenu",C)}}},[n,c]),s}function i9t(n,i,s){return n.filter(c=>s||c.length===i.size).some(c=>c.every(d=>i.has(d)))}function o9t(n,i){return i.includes(n)?"code":"key"}const z5n=()=>{const n=Mc();return H.useMemo(()=>({zoomIn:i=>{const{panZoom:s}=n.getState();return s?s.scaleBy(1.2,{duration:i==null?void 0:i.duration}):Promise.resolve(!1)},zoomOut:i=>{const{panZoom:s}=n.getState();return s?s.scaleBy(1/1.2,{duration:i==null?void 0:i.duration}):Promise.resolve(!1)},zoomTo:(i,s)=>{const{panZoom:c}=n.getState();return c?c.scaleTo(i,{duration:s==null?void 0:s.duration}):Promise.resolve(!1)},getZoom:()=>n.getState().transform[2],setViewport:async(i,s)=>{const{transform:[c,d,g],panZoom:b}=n.getState();return b?(await b.setViewport({x:i.x??c,y:i.y??d,zoom:i.zoom??g},s),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[i,s,c]=n.getState().transform;return{x:i,y:s,zoom:c}},setCenter:async(i,s,c)=>n.getState().setCenter(i,s,c),fitBounds:async(i,s)=>{const{width:c,height:d,minZoom:g,maxZoom:b,panZoom:w}=n.getState(),E=I5e(i,c,d,g,b,(s==null?void 0:s.padding)??.1);return w?(await w.setViewport(E,{duration:s==null?void 0:s.duration,ease:s==null?void 0:s.ease,interpolate:s==null?void 0:s.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(i,s={})=>{const{transform:c,snapGrid:d,snapToGrid:g,domNode:b}=n.getState();if(!b)return i;const{x:w,y:E}=b.getBoundingClientRect(),S={x:i.x-w,y:i.y-E},x=s.snapGrid??d,A=s.snapToGrid??g;return _z(S,c,A,x)},flowToScreenPosition:i=>{const{transform:s,domNode:c}=n.getState();if(!c)return i;const{x:d,y:g}=c.getBoundingClientRect(),b=Voe(i,s);return{x:b.x+d,y:b.y+g}}}),[])};function Rzt(n,i){const s=[],c=new Map,d=[];for(const g of n)if(g.type==="add"){d.push(g);continue}else if(g.type==="remove"||g.type==="replace")c.set(g.id,[g]);else{const b=c.get(g.id);b?b.push(g):c.set(g.id,[g])}for(const g of i){const b=c.get(g.id);if(!b){s.push(g);continue}if(b[0].type==="remove")continue;if(b[0].type==="replace"){s.push({...b[0].item});continue}const w={...g};for(const E of b)G5n(E,w);s.push(w)}return d.length&&d.forEach(g=>{g.index!==void 0?s.splice(g.index,0,{...g.item}):s.push({...g.item})}),s}function G5n(n,i){switch(n.type){case"select":{i.selected=n.selected;break}case"position":{typeof n.position<"u"&&(i.position=n.position),typeof n.dragging<"u"&&(i.dragging=n.dragging);break}case"dimensions":{typeof n.dimensions<"u"&&(i.measured={...n.dimensions},n.setAttributes&&((n.setAttributes===!0||n.setAttributes==="width")&&(i.width=n.dimensions.width),(n.setAttributes===!0||n.setAttributes==="height")&&(i.height=n.dimensions.height))),typeof n.resizing=="boolean"&&(i.resizing=n.resizing);break}}}function Ozt(n,i){return Rzt(n,i)}function Dzt(n,i){return Rzt(n,i)}function W4(n,i){return{id:n,type:"select",selected:i}}function z5(n,i=new Set,s=!1){const c=[];for(const[d,g]of n){const b=i.has(d);!(g.selected===void 0&&!b)&&g.selected!==b&&(s&&(g.selected=b),c.push(W4(g.id,b)))}return c}function s9t({items:n=[],lookup:i}){var d;const s=[],c=new Map(n.map(g=>[g.id,g]));for(const[g,b]of n.entries()){const w=i.get(b.id),E=((d=w==null?void 0:w.internals)==null?void 0:d.userNode)??w;E!==void 0&&E!==b&&s.push({id:b.id,item:b,type:"replace"}),E===void 0&&s.push({item:b,type:"add",index:g})}for(const[g]of i)c.get(g)===void 0&&s.push({id:g,type:"remove"});return s}function a9t(n){return{id:n.id,type:"remove"}}const u9t=n=>dLn(n),q5n=n=>ZHt(n);function Lzt(n){return H.forwardRef(n)}const V5n=typeof window<"u"?H.useLayoutEffect:H.useEffect;function c9t(n){const[i,s]=H.useState(BigInt(0)),[c]=H.useState(()=>W5n(()=>s(d=>d+BigInt(1))));return V5n(()=>{const d=c.get();d.length&&(n(d),c.reset())},[i]),c}function W5n(n){let i=[];return{get:()=>i,reset:()=>{i=[]},push:s=>{i.push(s),n()}}}const Mzt=H.createContext(null);function K5n({children:n}){const i=Mc(),s=H.useCallback(w=>{const{nodes:E=[],setNodes:S,hasDefaultNodes:x,onNodesChange:A,nodeLookup:C,fitViewQueued:R,onNodesChangeMiddlewareMap:L}=i.getState();let D=E;for(const $ of w)D=typeof $=="function"?$(D):$;let B=s9t({items:D,lookup:C});for(const $ of L.values())B=$(B);x&&S(D),B.length>0?A==null||A(B):R&&window.requestAnimationFrame(()=>{const{fitViewQueued:$,nodes:j,setNodes:P}=i.getState();$&&P(j)})},[]),c=c9t(s),d=H.useCallback(w=>{const{edges:E=[],setEdges:S,hasDefaultEdges:x,onEdgesChange:A,edgeLookup:C}=i.getState();let R=E;for(const L of w)R=typeof L=="function"?L(R):L;x?S(R):A&&A(s9t({items:R,lookup:C}))},[]),g=c9t(d),b=H.useMemo(()=>({nodeQueue:c,edgeQueue:g}),[]);return I.jsx(Mzt.Provider,{value:b,children:n})}function Y5n(){const n=H.useContext(Mzt);if(!n)throw new Error("useBatchContext must be used within a BatchProvider");return n}const J5n=n=>!!n.panZoom;function kR(){const n=z5n(),i=Mc(),s=Y5n(),c=Js(J5n),d=H.useMemo(()=>{const g=A=>i.getState().nodeLookup.get(A),b=A=>{s.nodeQueue.push(A)},w=A=>{s.edgeQueue.push(A)},E=A=>{var $,j;const{nodeLookup:C,nodeOrigin:R}=i.getState(),L=u9t(A)?A:C.get(A.id),D=L.parentId?izt(L.position,L.measured,L.parentId,C,R):L.position,B={...L,position:D,width:(($=L.measured)==null?void 0:$.width)??L.width,height:((j=L.measured)==null?void 0:j.height)??L.height};return TM(B)},S=(A,C,R={replace:!1})=>{b(L=>L.map(D=>{if(D.id===A){const B=typeof C=="function"?C(D):C;return R.replace&&u9t(B)?B:{...D,...B}}return D}))},x=(A,C,R={replace:!1})=>{w(L=>L.map(D=>{if(D.id===A){const B=typeof C=="function"?C(D):C;return R.replace&&q5n(B)?B:{...D,...B}}return D}))};return{getNodes:()=>i.getState().nodes.map(A=>({...A})),getNode:A=>{var C;return(C=g(A))==null?void 0:C.internals.userNode},getInternalNode:g,getEdges:()=>{const{edges:A=[]}=i.getState();return A.map(C=>({...C}))},getEdge:A=>i.getState().edgeLookup.get(A),setNodes:b,setEdges:w,addNodes:A=>{const C=Array.isArray(A)?A:[A];s.nodeQueue.push(R=>[...R,...C])},addEdges:A=>{const C=Array.isArray(A)?A:[A];s.edgeQueue.push(R=>[...R,...C])},toObject:()=>{const{nodes:A=[],edges:C=[],transform:R}=i.getState(),[L,D,B]=R;return{nodes:A.map($=>({...$})),edges:C.map($=>({...$})),viewport:{x:L,y:D,zoom:B}}},deleteElements:async({nodes:A=[],edges:C=[]})=>{const{nodes:R,edges:L,onNodesDelete:D,onEdgesDelete:B,triggerNodeChanges:$,triggerEdgeChanges:j,onDelete:P,onBeforeDelete:G}=i.getState(),{nodes:ee,edges:re}=await bLn({nodesToRemove:A,edgesToRemove:C,nodes:R,edges:L,onBeforeDelete:G}),Q=re.length>0,ie=ee.length>0;if(Q){const pe=re.map(a9t);B==null||B(re),j(pe)}if(ie){const pe=ee.map(a9t);D==null||D(ee),$(pe)}return(ie||Q)&&(P==null||P({nodes:ee,edges:re})),{deletedNodes:ee,deletedEdges:re}},getIntersectingNodes:(A,C=!0,R)=>{const L=FMt(A),D=L?A:E(A),B=R!==void 0;return D?(R||i.getState().nodes).filter($=>{const j=i.getState().nodeLookup.get($.id);if(j&&!L&&($.id===A.id||!j.internals.positionAbsolute))return!1;const P=TM(B?$:j),G=JH(P,D);return C&&G>0||G>=P.width*P.height||G>=D.width*D.height}):[]},isNodeIntersecting:(A,C,R=!0)=>{const D=FMt(A)?A:E(A);if(!D)return!1;const B=JH(D,C);return R&&B>0||B>=C.width*C.height||B>=D.width*D.height},updateNode:S,updateNodeData:(A,C,R={replace:!1})=>{S(A,L=>{const D=typeof C=="function"?C(L):C;return R.replace?{...L,data:D}:{...L,data:{...L.data,...D}}},R)},updateEdge:x,updateEdgeData:(A,C,R={replace:!1})=>{x(A,L=>{const D=typeof C=="function"?C(L):C;return R.replace?{...L,data:D}:{...L,data:{...L.data,...D}}},R)},getNodesBounds:A=>{const{nodeLookup:C,nodeOrigin:R}=i.getState();return fLn(A,{nodeLookup:C,nodeOrigin:R})},getHandleConnections:({type:A,id:C,nodeId:R})=>{var L;return Array.from(((L=i.getState().connectionLookup.get(`${R}-${A}${C?`-${C}`:""}`))==null?void 0:L.values())??[])},getNodeConnections:({type:A,handleId:C,nodeId:R})=>{var L;return Array.from(((L=i.getState().connectionLookup.get(`${R}${A?C?`-${A}-${C}`:`-${A}`:""}`))==null?void 0:L.values())??[])},fitView:async A=>{const C=i.getState().fitViewResolver??vLn();return i.setState({fitViewQueued:!0,fitViewOptions:A,fitViewResolver:C}),s.nodeQueue.push(R=>[...R]),C.promise}}},[]);return H.useMemo(()=>({...d,...n,viewportInitialized:c}),[c])}const l9t=n=>n.selected,X5n=typeof window<"u"?window:void 0;function Z5n({deleteKeyCode:n,multiSelectionKeyCode:i}){const s=Mc(),{deleteElements:c}=kR(),d=ZH(n,{actInsideInputWithModifier:!1}),g=ZH(i,{target:X5n});H.useEffect(()=>{if(d){const{edges:b,nodes:w}=s.getState();c({nodes:w.filter(l9t),edges:b.filter(l9t)}),s.setState({nodesSelectionActive:!1})}},[d]),H.useEffect(()=>{s.setState({multiSelectionActive:g})},[g])}function Q5n(n){const i=Mc();H.useEffect(()=>{const s=()=>{var d,g,b,w;if(!n.current||!(((g=(d=n.current).checkVisibility)==null?void 0:g.call(d))??!0))return!1;const c=R5e(n.current);(c.height===0||c.width===0)&&((w=(b=i.getState()).onError)==null||w.call(b,"004",z2.error004())),i.setState({width:c.width||500,height:c.height||500})};if(n.current){s(),window.addEventListener("resize",s);const c=new ResizeObserver(()=>s());return c.observe(n.current),()=>{window.removeEventListener("resize",s),c&&n.current&&c.unobserve(n.current)}}},[])}const tae={position:"absolute",width:"100%",height:"100%",top:0,left:0},eMn=n=>({userSelectionActive:n.userSelectionActive,lib:n.lib,connectionInProgress:n.connection.inProgress});function tMn({onPaneContextMenu:n,zoomOnScroll:i=!0,zoomOnPinch:s=!0,panOnScroll:c=!1,panOnScrollSpeed:d=.5,panOnScrollMode:g=nR.Free,zoomOnDoubleClick:b=!0,panOnDrag:w=!0,defaultViewport:E,translateExtent:S,minZoom:x,maxZoom:A,zoomActivationKeyCode:C,preventScrolling:R=!0,children:L,noWheelClassName:D,noPanClassName:B,onViewportChange:$,isControlledViewport:j,paneClickDistance:P,selectionOnDrag:G}){const ee=Mc(),re=H.useRef(null),{userSelectionActive:Q,lib:ie,connectionInProgress:pe}=Js(eMn,Lc),me=ZH(C),le=H.useRef();Q5n(re);const fe=H.useCallback(K=>{$==null||$({x:K[0],y:K[1],zoom:K[2]}),j||ee.setState({transform:K})},[$,j]);return H.useEffect(()=>{if(re.current){le.current=n5n({domNode:re.current,minZoom:x,maxZoom:A,translateExtent:S,viewport:E,onDraggingChange:Se=>ee.setState({paneDragging:Se}),onPanZoomStart:(Se,Le)=>{const{onViewportChangeStart:Ae,onMoveStart:xe}=ee.getState();xe==null||xe(Se,Le),Ae==null||Ae(Le)},onPanZoom:(Se,Le)=>{const{onViewportChange:Ae,onMove:xe}=ee.getState();xe==null||xe(Se,Le),Ae==null||Ae(Le)},onPanZoomEnd:(Se,Le)=>{const{onViewportChangeEnd:Ae,onMoveEnd:xe}=ee.getState();xe==null||xe(Se,Le),Ae==null||Ae(Le)}});const{x:K,y:he,zoom:Oe}=le.current.getViewport();return ee.setState({panZoom:le.current,transform:[K,he,Oe],domNode:re.current.closest(".react-flow")}),()=>{var Se;(Se=le.current)==null||Se.destroy()}}},[]),H.useEffect(()=>{var K;(K=le.current)==null||K.update({onPaneContextMenu:n,zoomOnScroll:i,zoomOnPinch:s,panOnScroll:c,panOnScrollSpeed:d,panOnScrollMode:g,zoomOnDoubleClick:b,panOnDrag:w,zoomActivationKeyPressed:me,preventScrolling:R,noPanClassName:B,userSelectionActive:Q,noWheelClassName:D,lib:ie,onTransformChange:fe,connectionInProgress:pe,selectionOnDrag:G,paneClickDistance:P})},[n,i,s,c,d,g,b,w,me,R,B,Q,D,ie,fe,pe,G,P]),I.jsx("div",{className:"react-flow__renderer",ref:re,style:tae,children:L})}const nMn=n=>({userSelectionActive:n.userSelectionActive,userSelectionRect:n.userSelectionRect});function rMn(){const{userSelectionActive:n,userSelectionRect:i}=Js(nMn,Lc);return n&&i?I.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:i.width,height:i.height,transform:`translate(${i.x}px, ${i.y}px)`}}):null}const GCe=(n,i)=>s=>{s.target===i.current&&(n==null||n(s))},iMn=n=>({userSelectionActive:n.userSelectionActive,elementsSelectable:n.elementsSelectable,connectionInProgress:n.connection.inProgress,dragging:n.paneDragging});function oMn({isSelecting:n,selectionKeyPressed:i,selectionMode:s=YH.Full,panOnDrag:c,paneClickDistance:d,selectionOnDrag:g,onSelectionStart:b,onSelectionEnd:w,onPaneClick:E,onPaneContextMenu:S,onPaneScroll:x,onPaneMouseEnter:A,onPaneMouseMove:C,onPaneMouseLeave:R,children:L}){const D=Mc(),{userSelectionActive:B,elementsSelectable:$,dragging:j,connectionInProgress:P}=Js(iMn,Lc),G=$&&(n||B),ee=H.useRef(null),re=H.useRef(),Q=H.useRef(new Set),ie=H.useRef(new Set),pe=H.useRef(!1),me=Ae=>{if(pe.current||P){pe.current=!1;return}E==null||E(Ae),D.getState().resetSelectedElements(),D.setState({nodesSelectionActive:!1})},le=Ae=>{if(Array.isArray(c)&&(c!=null&&c.includes(2))){Ae.preventDefault();return}S==null||S(Ae)},fe=x?Ae=>x(Ae):void 0,K=Ae=>{pe.current&&(Ae.stopPropagation(),pe.current=!1)},he=Ae=>{var ht,Xt;const{domNode:xe}=D.getState();if(re.current=xe==null?void 0:xe.getBoundingClientRect(),!re.current)return;const We=Ae.target===ee.current;if(!We&&!!Ae.target.closest(".nokey")||!n||!(g&&We||i)||Ae.button!==0||!Ae.isPrimary)return;(Xt=(ht=Ae.target)==null?void 0:ht.setPointerCapture)==null||Xt.call(ht,Ae.pointerId),pe.current=!1;const{x:bt,y:kt}=Ov(Ae.nativeEvent,re.current);D.setState({userSelectionRect:{width:0,height:0,startX:bt,startY:kt,x:bt,y:kt}}),We||(Ae.stopPropagation(),Ae.preventDefault())},Oe=Ae=>{const{userSelectionRect:xe,transform:We,nodeLookup:dt,edgeLookup:Ue,connectionLookup:bt,triggerNodeChanges:kt,triggerEdgeChanges:ht,defaultEdgeOptions:Xt,resetSelectedElements:vt}=D.getState();if(!re.current||!xe)return;const{x:Ct,y:Ft}=Ov(Ae.nativeEvent,re.current),{startX:On,startY:Zn}=xe;if(!pe.current){const Hi=i?0:d;if(Math.hypot(Ct-On,Ft-Zn)<=Hi)return;vt(),b==null||b(Ae)}pe.current=!0;const Yn={startX:On,startY:Zn,x:CtHi.id)),ie.current=new Set;const Qr=(Xt==null?void 0:Xt.selectable)??!0;for(const Hi of Q.current){const ai=bt.get(Hi);if(ai)for(const{edgeId:jc}of ai.values()){const Xs=Ue.get(jc);Xs&&(Xs.selectable??Qr)&&ie.current.add(jc)}}if(!$Mt(vr,Q.current)){const Hi=z5(dt,Q.current,!0);kt(Hi)}if(!$Mt(Ui,ie.current)){const Hi=z5(Ue,ie.current);ht(Hi)}D.setState({userSelectionRect:Yn,userSelectionActive:!0,nodesSelectionActive:!1})},Se=Ae=>{var xe,We;Ae.button===0&&((We=(xe=Ae.target)==null?void 0:xe.releasePointerCapture)==null||We.call(xe,Ae.pointerId),!B&&Ae.target===ee.current&&D.getState().userSelectionRect&&(me==null||me(Ae)),D.setState({userSelectionActive:!1,userSelectionRect:null}),pe.current&&(w==null||w(Ae),D.setState({nodesSelectionActive:Q.current.size>0})))},Le=c===!0||Array.isArray(c)&&c.includes(0);return I.jsxs("div",{className:Bd(["react-flow__pane",{draggable:Le,dragging:j,selection:n}]),onClick:G?void 0:GCe(me,ee),onContextMenu:GCe(le,ee),onWheel:GCe(fe,ee),onPointerEnter:G?void 0:A,onPointerMove:G?Oe:C,onPointerUp:G?Se:void 0,onPointerDownCapture:G?he:void 0,onClickCapture:G?K:void 0,onPointerLeave:R,ref:ee,style:tae,children:[L,I.jsx(rMn,{})]})}function wDe({id:n,store:i,unselect:s=!1,nodeRef:c}){const{addSelectedNodes:d,unselectNodesAndEdges:g,multiSelectionActive:b,nodeLookup:w,onError:E}=i.getState(),S=w.get(n);if(!S){E==null||E("012",z2.error012(n));return}i.setState({nodesSelectionActive:!1}),S.selected?(s||S.selected&&b)&&(g({nodes:[S],edges:[]}),requestAnimationFrame(()=>{var x;return(x=c==null?void 0:c.current)==null?void 0:x.blur()})):d([n])}function Pzt({nodeRef:n,disabled:i=!1,noDragClassName:s,handleSelector:c,nodeId:d,isSelectable:g,nodeClickDistance:b}){const w=Mc(),[E,S]=H.useState(!1),x=H.useRef();return H.useEffect(()=>{x.current=HLn({getStoreItems:()=>w.getState(),onNodeMouseDown:A=>{wDe({id:A,store:w,nodeRef:n})},onDragStart:()=>{S(!0)},onDragStop:()=>{S(!1)}})},[]),H.useEffect(()=>{var A,C;if(i)(A=x.current)==null||A.destroy();else if(n.current)return(C=x.current)==null||C.update({noDragClassName:s,handleSelector:c,domNode:n.current,isSelectable:g,nodeId:d,nodeClickDistance:b}),()=>{var R;(R=x.current)==null||R.destroy()}},[s,c,i,g,n,d]),E}const sMn=n=>i=>i.selected&&(i.draggable||n&&typeof i.draggable>"u");function jzt(){const n=Mc();return H.useCallback(s=>{const{nodeExtent:c,snapToGrid:d,snapGrid:g,nodesDraggable:b,onError:w,updateNodePositions:E,nodeLookup:S,nodeOrigin:x}=n.getState(),A=new Map,C=sMn(b),R=d?g[0]:5,L=d?g[1]:5,D=s.direction.x*R*s.factor,B=s.direction.y*L*s.factor;for(const[,$]of S){if(!C($))continue;let j={x:$.internals.positionAbsolute.x+D,y:$.internals.positionAbsolute.y+B};d&&(j=Az(j,g));const{position:P,positionAbsolute:G}=QHt({nodeId:$.id,nextPosition:j,nodeLookup:S,nodeExtent:c,nodeOrigin:x,onError:w});$.position=P,$.internals.positionAbsolute=G,A.set($.id,$)}E(A)},[])}const j5e=H.createContext(null),aMn=j5e.Provider;j5e.Consumer;const Fzt=()=>H.useContext(j5e),uMn=n=>({connectOnClick:n.connectOnClick,noPanClassName:n.noPanClassName,rfId:n.rfId}),cMn=(n,i,s)=>c=>{const{connectionClickStartHandle:d,connectionMode:g,connection:b}=c,{fromHandle:w,toHandle:E,isValid:S}=b,x=(E==null?void 0:E.nodeId)===n&&(E==null?void 0:E.id)===i&&(E==null?void 0:E.type)===s;return{connectingFrom:(w==null?void 0:w.nodeId)===n&&(w==null?void 0:w.id)===i&&(w==null?void 0:w.type)===s,connectingTo:x,clickConnecting:(d==null?void 0:d.nodeId)===n&&(d==null?void 0:d.id)===i&&(d==null?void 0:d.type)===s,isPossibleEndHandle:g===EM.Strict?(w==null?void 0:w.type)!==s:n!==(w==null?void 0:w.nodeId)||i!==(w==null?void 0:w.id),connectionInProcess:!!w,clickConnectionInProcess:!!d,valid:x&&S}};function lMn({type:n="source",position:i=qr.Top,isValidConnection:s,isConnectable:c=!0,isConnectableStart:d=!0,isConnectableEnd:g=!0,id:b,onConnect:w,children:E,className:S,onMouseDown:x,onTouchStart:A,...C},R){var Oe,Se;const L=b||null,D=n==="target",B=Mc(),$=Fzt(),{connectOnClick:j,noPanClassName:P,rfId:G}=Js(uMn,Lc),{connectingFrom:ee,connectingTo:re,clickConnecting:Q,isPossibleEndHandle:ie,connectionInProcess:pe,clickConnectionInProcess:me,valid:le}=Js(cMn($,L,n),Lc);$||(Se=(Oe=B.getState()).onError)==null||Se.call(Oe,"010",z2.error010());const fe=Le=>{const{defaultEdgeOptions:Ae,onConnect:xe,hasDefaultEdges:We}=B.getState(),dt={...Ae,...Le};if(We){const{edges:Ue,setEdges:bt}=B.getState();bt(dzt(dt,Ue))}xe==null||xe(dt),w==null||w(dt)},K=Le=>{if(!$)return;const Ae=azt(Le.nativeEvent);if(d&&(Ae&&Le.button===0||!Ae)){const xe=B.getState();mDe.onPointerDown(Le.nativeEvent,{handleDomNode:Le.currentTarget,autoPanOnConnect:xe.autoPanOnConnect,connectionMode:xe.connectionMode,connectionRadius:xe.connectionRadius,domNode:xe.domNode,nodeLookup:xe.nodeLookup,lib:xe.lib,isTarget:D,handleId:L,nodeId:$,flowId:xe.rfId,panBy:xe.panBy,cancelConnection:xe.cancelConnection,onConnectStart:xe.onConnectStart,onConnectEnd:xe.onConnectEnd,updateConnection:xe.updateConnection,onConnect:fe,isValidConnection:s||xe.isValidConnection,getTransform:()=>B.getState().transform,getFromHandle:()=>B.getState().connection.fromHandle,autoPanSpeed:xe.autoPanSpeed,dragThreshold:xe.connectionDragThreshold})}Ae?x==null||x(Le):A==null||A(Le)},he=Le=>{const{onClickConnectStart:Ae,onClickConnectEnd:xe,connectionClickStartHandle:We,connectionMode:dt,isValidConnection:Ue,lib:bt,rfId:kt,nodeLookup:ht,connection:Xt}=B.getState();if(!$||!We&&!d)return;if(!We){Ae==null||Ae(Le.nativeEvent,{nodeId:$,handleId:L,handleType:n}),B.setState({connectionClickStartHandle:{nodeId:$,type:n,id:L}});return}const vt=ozt(Le.target),Ct=s||Ue,{connection:Ft,isValid:On}=mDe.isValid(Le.nativeEvent,{handle:{nodeId:$,id:L,type:n},connectionMode:dt,fromNodeId:We.nodeId,fromHandleId:We.id||null,fromType:We.type,isValidConnection:Ct,flowId:kt,doc:vt,lib:bt,nodeLookup:ht});On&&Ft&&fe(Ft);const Zn=structuredClone(Xt);delete Zn.inProgress,Zn.toPosition=Zn.toHandle?Zn.toHandle.position:null,xe==null||xe(Le,Zn),B.setState({connectionClickStartHandle:null})};return I.jsx("div",{"data-handleid":L,"data-nodeid":$,"data-handlepos":i,"data-id":`${G}-${$}-${L}-${n}`,className:Bd(["react-flow__handle",`react-flow__handle-${i}`,"nodrag",P,S,{source:!D,target:D,connectable:c,connectablestart:d,connectableend:g,clickconnecting:Q,connectingfrom:ee,connectingto:re,valid:le,connectionindicator:c&&(!pe||ie)&&(pe||me?g:d)}]),onMouseDown:K,onTouchStart:K,onClick:j?he:void 0,ref:R,...C,children:E})}const $h=H.memo(Lzt(lMn));function dMn({data:n,isConnectable:i,sourcePosition:s=qr.Bottom}){return I.jsxs(I.Fragment,{children:[n==null?void 0:n.label,I.jsx($h,{type:"source",position:s,isConnectable:i})]})}function fMn({data:n,isConnectable:i,targetPosition:s=qr.Top,sourcePosition:c=qr.Bottom}){return I.jsxs(I.Fragment,{children:[I.jsx($h,{type:"target",position:s,isConnectable:i}),n==null?void 0:n.label,I.jsx($h,{type:"source",position:c,isConnectable:i})]})}function hMn(){return null}function pMn({data:n,isConnectable:i,targetPosition:s=qr.Top}){return I.jsxs(I.Fragment,{children:[I.jsx($h,{type:"target",position:s,isConnectable:i}),n==null?void 0:n.label]})}const Koe={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},d9t={input:dMn,default:fMn,output:pMn,group:hMn};function gMn(n){var i,s,c,d;return n.internals.handleBounds===void 0?{width:n.width??n.initialWidth??((i=n.style)==null?void 0:i.width),height:n.height??n.initialHeight??((s=n.style)==null?void 0:s.height)}:{width:n.width??((c=n.style)==null?void 0:c.width),height:n.height??((d=n.style)==null?void 0:d.height)}}const bMn=n=>{const{width:i,height:s,x:c,y:d}=Tz(n.nodeLookup,{filter:g=>!!g.selected});return{width:Rv(i)?i:null,height:Rv(s)?s:null,userSelectionActive:n.userSelectionActive,transformString:`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]}) translate(${c}px,${d}px)`}};function mMn({onSelectionContextMenu:n,noPanClassName:i,disableKeyboardA11y:s}){const c=Mc(),{width:d,height:g,transformString:b,userSelectionActive:w}=Js(bMn,Lc),E=jzt(),S=H.useRef(null);if(H.useEffect(()=>{var C;s||(C=S.current)==null||C.focus({preventScroll:!0})},[s]),Pzt({nodeRef:S}),w||!d||!g)return null;const x=n?C=>{const R=c.getState().nodes.filter(L=>L.selected);n(C,R)}:void 0,A=C=>{Object.prototype.hasOwnProperty.call(Koe,C.key)&&(C.preventDefault(),E({direction:Koe[C.key],factor:C.shiftKey?4:1}))};return I.jsx("div",{className:Bd(["react-flow__nodesselection","react-flow__container",i]),style:{transform:b},children:I.jsx("div",{ref:S,className:"react-flow__nodesselection-rect",onContextMenu:x,tabIndex:s?void 0:-1,onKeyDown:s?void 0:A,style:{width:d,height:g}})})}const f9t=typeof window<"u"?window:void 0,wMn=n=>({nodesSelectionActive:n.nodesSelectionActive,userSelectionActive:n.userSelectionActive});function $zt({children:n,onPaneClick:i,onPaneMouseEnter:s,onPaneMouseMove:c,onPaneMouseLeave:d,onPaneContextMenu:g,onPaneScroll:b,paneClickDistance:w,deleteKeyCode:E,selectionKeyCode:S,selectionOnDrag:x,selectionMode:A,onSelectionStart:C,onSelectionEnd:R,multiSelectionKeyCode:L,panActivationKeyCode:D,zoomActivationKeyCode:B,elementsSelectable:$,zoomOnScroll:j,zoomOnPinch:P,panOnScroll:G,panOnScrollSpeed:ee,panOnScrollMode:re,zoomOnDoubleClick:Q,panOnDrag:ie,defaultViewport:pe,translateExtent:me,minZoom:le,maxZoom:fe,preventScrolling:K,onSelectionContextMenu:he,noWheelClassName:Oe,noPanClassName:Se,disableKeyboardA11y:Le,onViewportChange:Ae,isControlledViewport:xe}){const{nodesSelectionActive:We,userSelectionActive:dt}=Js(wMn,Lc),Ue=ZH(S,{target:f9t}),bt=ZH(D,{target:f9t}),kt=bt||ie,ht=bt||G,Xt=x&&kt!==!0,vt=Ue||dt||Xt;return Z5n({deleteKeyCode:E,multiSelectionKeyCode:L}),I.jsx(tMn,{onPaneContextMenu:g,elementsSelectable:$,zoomOnScroll:j,zoomOnPinch:P,panOnScroll:ht,panOnScrollSpeed:ee,panOnScrollMode:re,zoomOnDoubleClick:Q,panOnDrag:!Ue&&kt,defaultViewport:pe,translateExtent:me,minZoom:le,maxZoom:fe,zoomActivationKeyCode:B,preventScrolling:K,noWheelClassName:Oe,noPanClassName:Se,onViewportChange:Ae,isControlledViewport:xe,paneClickDistance:w,selectionOnDrag:Xt,children:I.jsxs(oMn,{onSelectionStart:C,onSelectionEnd:R,onPaneClick:i,onPaneMouseEnter:s,onPaneMouseMove:c,onPaneMouseLeave:d,onPaneContextMenu:g,onPaneScroll:b,panOnDrag:kt,isSelecting:!!vt,selectionMode:A,selectionKeyPressed:Ue,paneClickDistance:w,selectionOnDrag:Xt,children:[n,We&&I.jsx(mMn,{onSelectionContextMenu:he,noPanClassName:Se,disableKeyboardA11y:Le})]})})}$zt.displayName="FlowRenderer";const yMn=H.memo($zt),vMn=n=>i=>n?C5e(i.nodeLookup,{x:0,y:0,width:i.width,height:i.height},i.transform,!0).map(s=>s.id):Array.from(i.nodeLookup.keys());function EMn(n){return Js(H.useCallback(vMn(n),[n]),Lc)}const SMn=n=>n.updateNodeInternals;function TMn(){const n=Js(SMn),[i]=H.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(s=>{const c=new Map;s.forEach(d=>{const g=d.target.getAttribute("data-id");c.set(g,{id:g,nodeElement:d.target,force:!0})}),n(c)}));return H.useEffect(()=>()=>{i==null||i.disconnect()},[i]),i}function AMn({node:n,nodeType:i,hasDimensions:s,resizeObserver:c}){const d=Mc(),g=H.useRef(null),b=H.useRef(null),w=H.useRef(n.sourcePosition),E=H.useRef(n.targetPosition),S=H.useRef(i),x=s&&!!n.internals.handleBounds;return H.useEffect(()=>{g.current&&!n.hidden&&(!x||b.current!==g.current)&&(b.current&&(c==null||c.unobserve(b.current)),c==null||c.observe(g.current),b.current=g.current)},[x,n.hidden]),H.useEffect(()=>()=>{b.current&&(c==null||c.unobserve(b.current),b.current=null)},[]),H.useEffect(()=>{if(g.current){const A=S.current!==i,C=w.current!==n.sourcePosition,R=E.current!==n.targetPosition;(A||C||R)&&(S.current=i,w.current=n.sourcePosition,E.current=n.targetPosition,d.getState().updateNodeInternals(new Map([[n.id,{id:n.id,nodeElement:g.current,force:!0}]])))}},[n.id,i,n.sourcePosition,n.targetPosition]),g}function _Mn({id:n,onClick:i,onMouseEnter:s,onMouseMove:c,onMouseLeave:d,onContextMenu:g,onDoubleClick:b,nodesDraggable:w,elementsSelectable:E,nodesConnectable:S,nodesFocusable:x,resizeObserver:A,noDragClassName:C,noPanClassName:R,disableKeyboardA11y:L,rfId:D,nodeTypes:B,nodeClickDistance:$,onError:j}){const{node:P,internals:G,isParent:ee}=Js(Ct=>{const Ft=Ct.nodeLookup.get(n),On=Ct.parentLookup.has(n);return{node:Ft,internals:Ft.internals,isParent:On}},Lc);let re=P.type||"default",Q=(B==null?void 0:B[re])||d9t[re];Q===void 0&&(j==null||j("003",z2.error003(re)),re="default",Q=(B==null?void 0:B.default)||d9t.default);const ie=!!(P.draggable||w&&typeof P.draggable>"u"),pe=!!(P.selectable||E&&typeof P.selectable>"u"),me=!!(P.connectable||S&&typeof P.connectable>"u"),le=!!(P.focusable||x&&typeof P.focusable>"u"),fe=Mc(),K=rzt(P),he=AMn({node:P,nodeType:re,hasDimensions:K,resizeObserver:A}),Oe=Pzt({nodeRef:he,disabled:P.hidden||!ie,noDragClassName:C,handleSelector:P.dragHandle,nodeId:n,isSelectable:pe,nodeClickDistance:$}),Se=jzt();if(P.hidden)return null;const Le=_A(P),Ae=gMn(P),xe=pe||ie||i||s||c||d,We=s?Ct=>s(Ct,{...G.userNode}):void 0,dt=c?Ct=>c(Ct,{...G.userNode}):void 0,Ue=d?Ct=>d(Ct,{...G.userNode}):void 0,bt=g?Ct=>g(Ct,{...G.userNode}):void 0,kt=b?Ct=>b(Ct,{...G.userNode}):void 0,ht=Ct=>{const{selectNodesOnDrag:Ft,nodeDragThreshold:On}=fe.getState();pe&&(!Ft||!ie||On>0)&&wDe({id:n,store:fe,nodeRef:he}),i&&i(Ct,{...G.userNode})},Xt=Ct=>{if(!(szt(Ct.nativeEvent)||L)){if(KHt.includes(Ct.key)&&pe){const Ft=Ct.key==="Escape";wDe({id:n,store:fe,unselect:Ft,nodeRef:he})}else if(ie&&P.selected&&Object.prototype.hasOwnProperty.call(Koe,Ct.key)){Ct.preventDefault();const{ariaLabelConfig:Ft}=fe.getState();fe.setState({ariaLiveMessage:Ft["node.a11yDescription.ariaLiveMessage"]({direction:Ct.key.replace("Arrow","").toLowerCase(),x:~~G.positionAbsolute.x,y:~~G.positionAbsolute.y})}),Se({direction:Koe[Ct.key],factor:Ct.shiftKey?4:1})}}},vt=()=>{var Ui;if(L||!((Ui=he.current)!=null&&Ui.matches(":focus-visible")))return;const{transform:Ct,width:Ft,height:On,autoPanOnNodeFocus:Zn,setCenter:Yn}=fe.getState();if(!Zn)return;C5e(new Map([[n,P]]),{x:0,y:0,width:Ft,height:On},Ct,!0).length>0||Yn(P.position.x+Le.width/2,P.position.y+Le.height/2,{zoom:Ct[2]})};return I.jsx("div",{className:Bd(["react-flow__node",`react-flow__node-${re}`,{[R]:ie},P.className,{selected:P.selected,selectable:pe,parent:ee,draggable:ie,dragging:Oe}]),ref:he,style:{zIndex:G.z,transform:`translate(${G.positionAbsolute.x}px,${G.positionAbsolute.y}px)`,pointerEvents:xe?"all":"none",visibility:K?"visible":"hidden",...P.style,...Ae},"data-id":n,"data-testid":`rf__node-${n}`,onMouseEnter:We,onMouseMove:dt,onMouseLeave:Ue,onContextMenu:bt,onClick:ht,onDoubleClick:kt,onKeyDown:le?Xt:void 0,tabIndex:le?0:void 0,onFocus:le?vt:void 0,role:P.ariaRole??(le?"group":void 0),"aria-roledescription":"node","aria-describedby":L?void 0:`${Nzt}-${D}`,"aria-label":P.ariaLabel,...P.domAttributes,children:I.jsx(aMn,{value:n,children:I.jsx(Q,{id:n,data:P.data,type:re,positionAbsoluteX:G.positionAbsolute.x,positionAbsoluteY:G.positionAbsolute.y,selected:P.selected??!1,selectable:pe,draggable:ie,deletable:P.deletable??!0,isConnectable:me,sourcePosition:P.sourcePosition,targetPosition:P.targetPosition,dragging:Oe,dragHandle:P.dragHandle,zIndex:G.z,parentId:P.parentId,...Le})})})}var xMn=H.memo(_Mn);const kMn=n=>({nodesDraggable:n.nodesDraggable,nodesConnectable:n.nodesConnectable,nodesFocusable:n.nodesFocusable,elementsSelectable:n.elementsSelectable,onError:n.onError});function Bzt(n){const{nodesDraggable:i,nodesConnectable:s,nodesFocusable:c,elementsSelectable:d,onError:g}=Js(kMn,Lc),b=EMn(n.onlyRenderVisibleElements),w=TMn();return I.jsx("div",{className:"react-flow__nodes",style:tae,children:b.map(E=>I.jsx(xMn,{id:E,nodeTypes:n.nodeTypes,nodeExtent:n.nodeExtent,onClick:n.onNodeClick,onMouseEnter:n.onNodeMouseEnter,onMouseMove:n.onNodeMouseMove,onMouseLeave:n.onNodeMouseLeave,onContextMenu:n.onNodeContextMenu,onDoubleClick:n.onNodeDoubleClick,noDragClassName:n.noDragClassName,noPanClassName:n.noPanClassName,rfId:n.rfId,disableKeyboardA11y:n.disableKeyboardA11y,resizeObserver:w,nodesDraggable:i,nodesConnectable:s,nodesFocusable:c,elementsSelectable:d,nodeClickDistance:n.nodeClickDistance,onError:g},E))})}Bzt.displayName="NodeRenderer";const NMn=H.memo(Bzt);function CMn(n){return Js(H.useCallback(s=>{if(!n)return s.edges.map(d=>d.id);const c=[];if(s.width&&s.height)for(const d of s.edges){const g=s.nodeLookup.get(d.source),b=s.nodeLookup.get(d.target);g&&b&&ALn({sourceNode:g,targetNode:b,width:s.width,height:s.height,transform:s.transform})&&c.push(d.id)}return c},[n]),Lc)}const IMn=({color:n="none",strokeWidth:i=1})=>{const s={strokeWidth:i,...n&&{stroke:n}};return I.jsx("polyline",{className:"arrow",style:s,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},RMn=({color:n="none",strokeWidth:i=1})=>{const s={strokeWidth:i,...n&&{stroke:n,fill:n}};return I.jsx("polyline",{className:"arrowclosed",style:s,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},h9t={[sA.Arrow]:IMn,[sA.ArrowClosed]:RMn};function OMn(n){const i=Mc();return H.useMemo(()=>{var d,g;return Object.prototype.hasOwnProperty.call(h9t,n)?h9t[n]:((g=(d=i.getState()).onError)==null||g.call(d,"009",z2.error009(n)),null)},[n])}const DMn=({id:n,type:i,color:s,width:c=12.5,height:d=12.5,markerUnits:g="strokeWidth",strokeWidth:b,orient:w="auto-start-reverse"})=>{const E=OMn(i);return E?I.jsx("marker",{className:"react-flow__arrowhead",id:n,markerWidth:`${c}`,markerHeight:`${d}`,viewBox:"-10 -10 20 20",markerUnits:g,orient:w,refX:"0",refY:"0",children:I.jsx(E,{color:s,strokeWidth:b})}):null},Uzt=({defaultColor:n,rfId:i})=>{const s=Js(g=>g.edges),c=Js(g=>g.defaultEdgeOptions),d=H.useMemo(()=>RLn(s,{id:i,defaultColor:n,defaultMarkerStart:c==null?void 0:c.markerStart,defaultMarkerEnd:c==null?void 0:c.markerEnd}),[s,c,i,n]);return d.length?I.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:I.jsx("defs",{children:d.map(g=>I.jsx(DMn,{id:g.id,type:g.type,color:g.color,width:g.width,height:g.height,markerUnits:g.markerUnits,strokeWidth:g.strokeWidth,orient:g.orient},g.id))})}):null};Uzt.displayName="MarkerDefinitions";var LMn=H.memo(Uzt);function Hzt({x:n,y:i,label:s,labelStyle:c,labelShowBg:d=!0,labelBgStyle:g,labelBgPadding:b=[2,4],labelBgBorderRadius:w=2,children:E,className:S,...x}){const[A,C]=H.useState({x:1,y:0,width:0,height:0}),R=Bd(["react-flow__edge-textwrapper",S]),L=H.useRef(null);return H.useEffect(()=>{if(L.current){const D=L.current.getBBox();C({x:D.x,y:D.y,width:D.width,height:D.height})}},[s]),s?I.jsxs("g",{transform:`translate(${n-A.width/2} ${i-A.height/2})`,className:R,visibility:A.width?"visible":"hidden",...x,children:[d&&I.jsx("rect",{width:A.width+2*b[0],x:-b[0],y:-b[1],height:A.height+2*b[1],className:"react-flow__edge-textbg",style:g,rx:w,ry:w}),I.jsx("text",{className:"react-flow__edge-text",y:A.height/2,dy:"0.3em",ref:L,style:c,children:s}),E]}):null}Hzt.displayName="EdgeText";const MMn=H.memo(Hzt);function xz({path:n,labelX:i,labelY:s,label:c,labelStyle:d,labelShowBg:g,labelBgStyle:b,labelBgPadding:w,labelBgBorderRadius:E,interactionWidth:S=20,...x}){return I.jsxs(I.Fragment,{children:[I.jsx("path",{...x,d:n,fill:"none",className:Bd(["react-flow__edge-path",x.className])}),S?I.jsx("path",{d:n,fill:"none",strokeOpacity:0,strokeWidth:S,className:"react-flow__edge-interaction"}):null,c&&Rv(i)&&Rv(s)?I.jsx(MMn,{x:i,y:s,label:c,labelStyle:d,labelShowBg:g,labelBgStyle:b,labelBgPadding:w,labelBgBorderRadius:E}):null]})}function p9t({pos:n,x1:i,y1:s,x2:c,y2:d}){return n===qr.Left||n===qr.Right?[.5*(i+c),s]:[i,.5*(s+d)]}function zzt({sourceX:n,sourceY:i,sourcePosition:s=qr.Bottom,targetX:c,targetY:d,targetPosition:g=qr.Top}){const[b,w]=p9t({pos:s,x1:n,y1:i,x2:c,y2:d}),[E,S]=p9t({pos:g,x1:c,y1:d,x2:n,y2:i}),[x,A,C,R]=uzt({sourceX:n,sourceY:i,targetX:c,targetY:d,sourceControlX:b,sourceControlY:w,targetControlX:E,targetControlY:S});return[`M${n},${i} C${b},${w} ${E},${S} ${c},${d}`,x,A,C,R]}function Gzt(n){return H.memo(({id:i,sourceX:s,sourceY:c,targetX:d,targetY:g,sourcePosition:b,targetPosition:w,label:E,labelStyle:S,labelShowBg:x,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:R,style:L,markerEnd:D,markerStart:B,interactionWidth:$})=>{const[j,P,G]=zzt({sourceX:s,sourceY:c,sourcePosition:b,targetX:d,targetY:g,targetPosition:w}),ee=n.isInternal?void 0:i;return I.jsx(xz,{id:ee,path:j,labelX:P,labelY:G,label:E,labelStyle:S,labelShowBg:x,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:R,style:L,markerEnd:D,markerStart:B,interactionWidth:$})})}const PMn=Gzt({isInternal:!1}),qzt=Gzt({isInternal:!0});PMn.displayName="SimpleBezierEdge";qzt.displayName="SimpleBezierEdgeInternal";function Vzt(n){return H.memo(({id:i,sourceX:s,sourceY:c,targetX:d,targetY:g,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:x,labelBgBorderRadius:A,style:C,sourcePosition:R=qr.Bottom,targetPosition:L=qr.Top,markerEnd:D,markerStart:B,pathOptions:$,interactionWidth:j})=>{const[P,G,ee]=Woe({sourceX:s,sourceY:c,sourcePosition:R,targetX:d,targetY:g,targetPosition:L,borderRadius:$==null?void 0:$.borderRadius,offset:$==null?void 0:$.offset,stepPosition:$==null?void 0:$.stepPosition}),re=n.isInternal?void 0:i;return I.jsx(xz,{id:re,path:P,labelX:G,labelY:ee,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:x,labelBgBorderRadius:A,style:C,markerEnd:D,markerStart:B,interactionWidth:j})})}const Wzt=Vzt({isInternal:!1}),Kzt=Vzt({isInternal:!0});Wzt.displayName="SmoothStepEdge";Kzt.displayName="SmoothStepEdgeInternal";function Yzt(n){return H.memo(({id:i,...s})=>{var d;const c=n.isInternal?void 0:i;return I.jsx(Wzt,{...s,id:c,pathOptions:H.useMemo(()=>{var g;return{borderRadius:0,offset:(g=s.pathOptions)==null?void 0:g.offset}},[(d=s.pathOptions)==null?void 0:d.offset])})})}const jMn=Yzt({isInternal:!1}),Jzt=Yzt({isInternal:!0});jMn.displayName="StepEdge";Jzt.displayName="StepEdgeInternal";function Xzt(n){return H.memo(({id:i,sourceX:s,sourceY:c,targetX:d,targetY:g,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:x,labelBgBorderRadius:A,style:C,markerEnd:R,markerStart:L,interactionWidth:D})=>{const[B,$,j]=fzt({sourceX:s,sourceY:c,targetX:d,targetY:g}),P=n.isInternal?void 0:i;return I.jsx(xz,{id:P,path:B,labelX:$,labelY:j,label:b,labelStyle:w,labelShowBg:E,labelBgStyle:S,labelBgPadding:x,labelBgBorderRadius:A,style:C,markerEnd:R,markerStart:L,interactionWidth:D})})}const FMn=Xzt({isInternal:!1}),Zzt=Xzt({isInternal:!0});FMn.displayName="StraightEdge";Zzt.displayName="StraightEdgeInternal";function Qzt(n){return H.memo(({id:i,sourceX:s,sourceY:c,targetX:d,targetY:g,sourcePosition:b=qr.Bottom,targetPosition:w=qr.Top,label:E,labelStyle:S,labelShowBg:x,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:R,style:L,markerEnd:D,markerStart:B,pathOptions:$,interactionWidth:j})=>{const[P,G,ee]=czt({sourceX:s,sourceY:c,sourcePosition:b,targetX:d,targetY:g,targetPosition:w,curvature:$==null?void 0:$.curvature}),re=n.isInternal?void 0:i;return I.jsx(xz,{id:re,path:P,labelX:G,labelY:ee,label:E,labelStyle:S,labelShowBg:x,labelBgStyle:A,labelBgPadding:C,labelBgBorderRadius:R,style:L,markerEnd:D,markerStart:B,interactionWidth:j})})}const $Mn=Qzt({isInternal:!1}),eGt=Qzt({isInternal:!0});$Mn.displayName="BezierEdge";eGt.displayName="BezierEdgeInternal";const g9t={default:eGt,straight:Zzt,step:Jzt,smoothstep:Kzt,simplebezier:qzt},b9t={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},BMn=(n,i,s)=>s===qr.Left?n-i:s===qr.Right?n+i:n,UMn=(n,i,s)=>s===qr.Top?n-i:s===qr.Bottom?n+i:n,m9t="react-flow__edgeupdater";function w9t({position:n,centerX:i,centerY:s,radius:c=10,onMouseDown:d,onMouseEnter:g,onMouseOut:b,type:w}){return I.jsx("circle",{onMouseDown:d,onMouseEnter:g,onMouseOut:b,className:Bd([m9t,`${m9t}-${w}`]),cx:BMn(i,c,n),cy:UMn(s,c,n),r:c,stroke:"transparent",fill:"transparent"})}function HMn({isReconnectable:n,reconnectRadius:i,edge:s,sourceX:c,sourceY:d,targetX:g,targetY:b,sourcePosition:w,targetPosition:E,onReconnect:S,onReconnectStart:x,onReconnectEnd:A,setReconnecting:C,setUpdateHover:R}){const L=Mc(),D=(G,ee)=>{if(G.button!==0)return;const{autoPanOnConnect:re,domNode:Q,isValidConnection:ie,connectionMode:pe,connectionRadius:me,lib:le,onConnectStart:fe,onConnectEnd:K,cancelConnection:he,nodeLookup:Oe,rfId:Se,panBy:Le,updateConnection:Ae}=L.getState(),xe=ee.type==="target",We=(bt,kt)=>{C(!1),A==null||A(bt,s,ee.type,kt)},dt=bt=>S==null?void 0:S(s,bt),Ue=(bt,kt)=>{C(!0),x==null||x(G,s,ee.type),fe==null||fe(bt,kt)};mDe.onPointerDown(G.nativeEvent,{autoPanOnConnect:re,connectionMode:pe,connectionRadius:me,domNode:Q,handleId:ee.id,nodeId:ee.nodeId,nodeLookup:Oe,isTarget:xe,edgeUpdaterType:ee.type,lib:le,flowId:Se,cancelConnection:he,panBy:Le,isValidConnection:ie,onConnect:dt,onConnectStart:Ue,onConnectEnd:K,onReconnectEnd:We,updateConnection:Ae,getTransform:()=>L.getState().transform,getFromHandle:()=>L.getState().connection.fromHandle,dragThreshold:L.getState().connectionDragThreshold,handleDomNode:G.currentTarget})},B=G=>D(G,{nodeId:s.target,id:s.targetHandle??null,type:"target"}),$=G=>D(G,{nodeId:s.source,id:s.sourceHandle??null,type:"source"}),j=()=>R(!0),P=()=>R(!1);return I.jsxs(I.Fragment,{children:[(n===!0||n==="source")&&I.jsx(w9t,{position:w,centerX:c,centerY:d,radius:i,onMouseDown:B,onMouseEnter:j,onMouseOut:P,type:"source"}),(n===!0||n==="target")&&I.jsx(w9t,{position:E,centerX:g,centerY:b,radius:i,onMouseDown:$,onMouseEnter:j,onMouseOut:P,type:"target"})]})}function zMn({id:n,edgesFocusable:i,edgesReconnectable:s,elementsSelectable:c,onClick:d,onDoubleClick:g,onContextMenu:b,onMouseEnter:w,onMouseMove:E,onMouseLeave:S,reconnectRadius:x,onReconnect:A,onReconnectStart:C,onReconnectEnd:R,rfId:L,edgeTypes:D,noPanClassName:B,onError:$,disableKeyboardA11y:j}){let P=Js(Yn=>Yn.edgeLookup.get(n));const G=Js(Yn=>Yn.defaultEdgeOptions);P=G?{...G,...P}:P;let ee=P.type||"default",re=(D==null?void 0:D[ee])||g9t[ee];re===void 0&&($==null||$("011",z2.error011(ee)),ee="default",re=(D==null?void 0:D.default)||g9t.default);const Q=!!(P.focusable||i&&typeof P.focusable>"u"),ie=typeof A<"u"&&(P.reconnectable||s&&typeof P.reconnectable>"u"),pe=!!(P.selectable||c&&typeof P.selectable>"u"),me=H.useRef(null),[le,fe]=H.useState(!1),[K,he]=H.useState(!1),Oe=Mc(),{zIndex:Se,sourceX:Le,sourceY:Ae,targetX:xe,targetY:We,sourcePosition:dt,targetPosition:Ue}=Js(H.useCallback(Yn=>{const vr=Yn.nodeLookup.get(P.source),Ui=Yn.nodeLookup.get(P.target);if(!vr||!Ui)return{zIndex:P.zIndex,...b9t};const Qr=ILn({id:n,sourceNode:vr,targetNode:Ui,sourceHandle:P.sourceHandle||null,targetHandle:P.targetHandle||null,connectionMode:Yn.connectionMode,onError:$});return{zIndex:TLn({selected:P.selected,zIndex:P.zIndex,sourceNode:vr,targetNode:Ui,elevateOnSelect:Yn.elevateEdgesOnSelect,zIndexMode:Yn.zIndexMode}),...Qr||b9t}},[P.source,P.target,P.sourceHandle,P.targetHandle,P.selected,P.zIndex]),Lc),bt=H.useMemo(()=>P.markerStart?`url('#${gDe(P.markerStart,L)}')`:void 0,[P.markerStart,L]),kt=H.useMemo(()=>P.markerEnd?`url('#${gDe(P.markerEnd,L)}')`:void 0,[P.markerEnd,L]);if(P.hidden||Le===null||Ae===null||xe===null||We===null)return null;const ht=Yn=>{var Hi;const{addSelectedEdges:vr,unselectNodesAndEdges:Ui,multiSelectionActive:Qr}=Oe.getState();pe&&(Oe.setState({nodesSelectionActive:!1}),P.selected&&Qr?(Ui({nodes:[],edges:[P]}),(Hi=me.current)==null||Hi.blur()):vr([n])),d&&d(Yn,P)},Xt=g?Yn=>{g(Yn,{...P})}:void 0,vt=b?Yn=>{b(Yn,{...P})}:void 0,Ct=w?Yn=>{w(Yn,{...P})}:void 0,Ft=E?Yn=>{E(Yn,{...P})}:void 0,On=S?Yn=>{S(Yn,{...P})}:void 0,Zn=Yn=>{var vr;if(!j&&KHt.includes(Yn.key)&&pe){const{unselectNodesAndEdges:Ui,addSelectedEdges:Qr}=Oe.getState();Yn.key==="Escape"?((vr=me.current)==null||vr.blur(),Ui({edges:[P]})):Qr([n])}};return I.jsx("svg",{style:{zIndex:Se},children:I.jsxs("g",{className:Bd(["react-flow__edge",`react-flow__edge-${ee}`,P.className,B,{selected:P.selected,animated:P.animated,inactive:!pe&&!d,updating:le,selectable:pe}]),onClick:ht,onDoubleClick:Xt,onContextMenu:vt,onMouseEnter:Ct,onMouseMove:Ft,onMouseLeave:On,onKeyDown:Q?Zn:void 0,tabIndex:Q?0:void 0,role:P.ariaRole??(Q?"group":"img"),"aria-roledescription":"edge","data-id":n,"data-testid":`rf__edge-${n}`,"aria-label":P.ariaLabel===null?void 0:P.ariaLabel||`Edge from ${P.source} to ${P.target}`,"aria-describedby":Q?`${Czt}-${L}`:void 0,ref:me,...P.domAttributes,children:[!K&&I.jsx(re,{id:n,source:P.source,target:P.target,type:P.type,selected:P.selected,animated:P.animated,selectable:pe,deletable:P.deletable??!0,label:P.label,labelStyle:P.labelStyle,labelShowBg:P.labelShowBg,labelBgStyle:P.labelBgStyle,labelBgPadding:P.labelBgPadding,labelBgBorderRadius:P.labelBgBorderRadius,sourceX:Le,sourceY:Ae,targetX:xe,targetY:We,sourcePosition:dt,targetPosition:Ue,data:P.data,style:P.style,sourceHandleId:P.sourceHandle,targetHandleId:P.targetHandle,markerStart:bt,markerEnd:kt,pathOptions:"pathOptions"in P?P.pathOptions:void 0,interactionWidth:P.interactionWidth}),ie&&I.jsx(HMn,{edge:P,isReconnectable:ie,reconnectRadius:x,onReconnect:A,onReconnectStart:C,onReconnectEnd:R,sourceX:Le,sourceY:Ae,targetX:xe,targetY:We,sourcePosition:dt,targetPosition:Ue,setUpdateHover:fe,setReconnecting:he})]})})}var GMn=H.memo(zMn);const qMn=n=>({edgesFocusable:n.edgesFocusable,edgesReconnectable:n.edgesReconnectable,elementsSelectable:n.elementsSelectable,connectionMode:n.connectionMode,onError:n.onError});function tGt({defaultMarkerColor:n,onlyRenderVisibleElements:i,rfId:s,edgeTypes:c,noPanClassName:d,onReconnect:g,onEdgeContextMenu:b,onEdgeMouseEnter:w,onEdgeMouseMove:E,onEdgeMouseLeave:S,onEdgeClick:x,reconnectRadius:A,onEdgeDoubleClick:C,onReconnectStart:R,onReconnectEnd:L,disableKeyboardA11y:D}){const{edgesFocusable:B,edgesReconnectable:$,elementsSelectable:j,onError:P}=Js(qMn,Lc),G=CMn(i);return I.jsxs("div",{className:"react-flow__edges",children:[I.jsx(LMn,{defaultColor:n,rfId:s}),G.map(ee=>I.jsx(GMn,{id:ee,edgesFocusable:B,edgesReconnectable:$,elementsSelectable:j,noPanClassName:d,onReconnect:g,onContextMenu:b,onMouseEnter:w,onMouseMove:E,onMouseLeave:S,onClick:x,reconnectRadius:A,onDoubleClick:C,onReconnectStart:R,onReconnectEnd:L,rfId:s,onError:P,edgeTypes:c,disableKeyboardA11y:D},ee))]})}tGt.displayName="EdgeRenderer";const VMn=H.memo(tGt),WMn=n=>`translate(${n.transform[0]}px,${n.transform[1]}px) scale(${n.transform[2]})`;function KMn({children:n}){const i=Js(WMn);return I.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:i},children:n})}function YMn(n){const i=kR(),s=H.useRef(!1);H.useEffect(()=>{!s.current&&i.viewportInitialized&&n&&(setTimeout(()=>n(i),1),s.current=!0)},[n,i.viewportInitialized])}const JMn=n=>{var i;return(i=n.panZoom)==null?void 0:i.syncViewport};function XMn(n){const i=Js(JMn),s=Mc();return H.useEffect(()=>{n&&(i==null||i(n),s.setState({transform:[n.x,n.y,n.zoom]}))},[n,i]),null}function ZMn(n){return n.connection.inProgress?{...n.connection,to:_z(n.connection.to,n.transform)}:{...n.connection}}function QMn(n){return ZMn}function e9n(n){const i=QMn();return Js(i,Lc)}const t9n=n=>({nodesConnectable:n.nodesConnectable,isValid:n.connection.isValid,inProgress:n.connection.inProgress,width:n.width,height:n.height});function n9n({containerStyle:n,style:i,type:s,component:c}){const{nodesConnectable:d,width:g,height:b,isValid:w,inProgress:E}=Js(t9n,Lc);return!(g&&d&&E)?null:I.jsx("svg",{style:n,width:g,height:b,className:"react-flow__connectionline react-flow__container",children:I.jsx("g",{className:Bd(["react-flow__connection",XHt(w)]),children:I.jsx(nGt,{style:i,type:s,CustomComponent:c,isValid:w})})})}const nGt=({style:n,type:i=Bk.Bezier,CustomComponent:s,isValid:c})=>{const{inProgress:d,from:g,fromNode:b,fromHandle:w,fromPosition:E,to:S,toNode:x,toHandle:A,toPosition:C,pointer:R}=e9n();if(!d)return;if(s)return I.jsx(s,{connectionLineType:i,connectionLineStyle:n,fromNode:b,fromHandle:w,fromX:g.x,fromY:g.y,toX:S.x,toY:S.y,fromPosition:E,toPosition:C,connectionStatus:XHt(c),toNode:x,toHandle:A,pointer:R});let L="";const D={sourceX:g.x,sourceY:g.y,sourcePosition:E,targetX:S.x,targetY:S.y,targetPosition:C};switch(i){case Bk.Bezier:[L]=czt(D);break;case Bk.SimpleBezier:[L]=zzt(D);break;case Bk.Step:[L]=Woe({...D,borderRadius:0});break;case Bk.SmoothStep:[L]=Woe(D);break;default:[L]=fzt(D)}return I.jsx("path",{d:L,fill:"none",className:"react-flow__connection-path",style:n})};nGt.displayName="ConnectionLine";const r9n={};function y9t(n=r9n){H.useRef(n),Mc(),H.useEffect(()=>{},[n])}function i9n(){Mc(),H.useRef(!1),H.useEffect(()=>{},[])}function rGt({nodeTypes:n,edgeTypes:i,onInit:s,onNodeClick:c,onEdgeClick:d,onNodeDoubleClick:g,onEdgeDoubleClick:b,onNodeMouseEnter:w,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:x,onSelectionContextMenu:A,onSelectionStart:C,onSelectionEnd:R,connectionLineType:L,connectionLineStyle:D,connectionLineComponent:B,connectionLineContainerStyle:$,selectionKeyCode:j,selectionOnDrag:P,selectionMode:G,multiSelectionKeyCode:ee,panActivationKeyCode:re,zoomActivationKeyCode:Q,deleteKeyCode:ie,onlyRenderVisibleElements:pe,elementsSelectable:me,defaultViewport:le,translateExtent:fe,minZoom:K,maxZoom:he,preventScrolling:Oe,defaultMarkerColor:Se,zoomOnScroll:Le,zoomOnPinch:Ae,panOnScroll:xe,panOnScrollSpeed:We,panOnScrollMode:dt,zoomOnDoubleClick:Ue,panOnDrag:bt,onPaneClick:kt,onPaneMouseEnter:ht,onPaneMouseMove:Xt,onPaneMouseLeave:vt,onPaneScroll:Ct,onPaneContextMenu:Ft,paneClickDistance:On,nodeClickDistance:Zn,onEdgeContextMenu:Yn,onEdgeMouseEnter:vr,onEdgeMouseMove:Ui,onEdgeMouseLeave:Qr,reconnectRadius:Hi,onReconnect:ai,onReconnectStart:jc,onReconnectEnd:Xs,noDragClassName:ls,noWheelClassName:Qo,noPanClassName:Ca,disableKeyboardA11y:Ni,nodeExtent:mb,rfId:Yg,viewport:Wh,onViewportChange:wb}){return y9t(n),y9t(i),i9n(),YMn(s),XMn(Wh),I.jsx(yMn,{onPaneClick:kt,onPaneMouseEnter:ht,onPaneMouseMove:Xt,onPaneMouseLeave:vt,onPaneContextMenu:Ft,onPaneScroll:Ct,paneClickDistance:On,deleteKeyCode:ie,selectionKeyCode:j,selectionOnDrag:P,selectionMode:G,onSelectionStart:C,onSelectionEnd:R,multiSelectionKeyCode:ee,panActivationKeyCode:re,zoomActivationKeyCode:Q,elementsSelectable:me,zoomOnScroll:Le,zoomOnPinch:Ae,zoomOnDoubleClick:Ue,panOnScroll:xe,panOnScrollSpeed:We,panOnScrollMode:dt,panOnDrag:bt,defaultViewport:le,translateExtent:fe,minZoom:K,maxZoom:he,onSelectionContextMenu:A,preventScrolling:Oe,noDragClassName:ls,noWheelClassName:Qo,noPanClassName:Ca,disableKeyboardA11y:Ni,onViewportChange:wb,isControlledViewport:!!Wh,children:I.jsxs(KMn,{children:[I.jsx(VMn,{edgeTypes:i,onEdgeClick:d,onEdgeDoubleClick:b,onReconnect:ai,onReconnectStart:jc,onReconnectEnd:Xs,onlyRenderVisibleElements:pe,onEdgeContextMenu:Yn,onEdgeMouseEnter:vr,onEdgeMouseMove:Ui,onEdgeMouseLeave:Qr,reconnectRadius:Hi,defaultMarkerColor:Se,noPanClassName:Ca,disableKeyboardA11y:Ni,rfId:Yg}),I.jsx(n9n,{style:D,type:L,component:B,containerStyle:$}),I.jsx("div",{className:"react-flow__edgelabel-renderer"}),I.jsx(NMn,{nodeTypes:n,onNodeClick:c,onNodeDoubleClick:g,onNodeMouseEnter:w,onNodeMouseMove:E,onNodeMouseLeave:S,onNodeContextMenu:x,nodeClickDistance:Zn,onlyRenderVisibleElements:pe,noPanClassName:Ca,noDragClassName:ls,disableKeyboardA11y:Ni,nodeExtent:mb,rfId:Yg}),I.jsx("div",{className:"react-flow__viewport-portal"})]})})}rGt.displayName="GraphView";const o9n=H.memo(rGt),v9t=({nodes:n,edges:i,defaultNodes:s,defaultEdges:c,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E=.5,maxZoom:S=2,nodeOrigin:x,nodeExtent:A,zIndexMode:C="basic"}={})=>{const R=new Map,L=new Map,D=new Map,B=new Map,$=c??i??[],j=s??n??[],P=x??[0,0],G=A??KH;gzt(D,B,$);const ee=bDe(j,R,L,{nodeOrigin:P,nodeExtent:G,zIndexMode:C});let re=[0,0,1];if(b&&d&&g){const Q=Tz(R,{filter:le=>!!((le.width||le.initialWidth)&&(le.height||le.initialHeight))}),{x:ie,y:pe,zoom:me}=I5e(Q,d,g,E,S,(w==null?void 0:w.padding)??.1);re=[ie,pe,me]}return{rfId:"1",width:d??0,height:g??0,transform:re,nodes:j,nodesInitialized:ee,nodeLookup:R,parentLookup:L,edges:$,edgeLookup:B,connectionLookup:D,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:s!==void 0,hasDefaultEdges:c!==void 0,panZoom:null,minZoom:E,maxZoom:S,translateExtent:KH,nodeExtent:G,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:EM.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:P,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:b??!1,fitViewOptions:w,fitViewResolver:null,connection:{...JHt},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:mLn,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:YHt,zIndexMode:C,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},s9n=({nodes:n,edges:i,defaultNodes:s,defaultEdges:c,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E,maxZoom:S,nodeOrigin:x,nodeExtent:A,zIndexMode:C})=>A5n((R,L)=>{async function D(){const{nodeLookup:B,panZoom:$,fitViewOptions:j,fitViewResolver:P,width:G,height:ee,minZoom:re,maxZoom:Q}=L();$&&(await gLn({nodes:B,width:G,height:ee,panZoom:$,minZoom:re,maxZoom:Q},j),P==null||P.resolve(!0),R({fitViewResolver:null}))}return{...v9t({nodes:n,edges:i,width:d,height:g,fitView:b,fitViewOptions:w,minZoom:E,maxZoom:S,nodeOrigin:x,nodeExtent:A,defaultNodes:s,defaultEdges:c,zIndexMode:C}),setNodes:B=>{const{nodeLookup:$,parentLookup:j,nodeOrigin:P,elevateNodesOnSelect:G,fitViewQueued:ee,zIndexMode:re}=L(),Q=bDe(B,$,j,{nodeOrigin:P,nodeExtent:A,elevateNodesOnSelect:G,checkEquality:!0,zIndexMode:re});ee&&Q?(D(),R({nodes:B,nodesInitialized:Q,fitViewQueued:!1,fitViewOptions:void 0})):R({nodes:B,nodesInitialized:Q})},setEdges:B=>{const{connectionLookup:$,edgeLookup:j}=L();gzt($,j,B),R({edges:B})},setDefaultNodesAndEdges:(B,$)=>{if(B){const{setNodes:j}=L();j(B),R({hasDefaultNodes:!0})}if($){const{setEdges:j}=L();j($),R({hasDefaultEdges:!0})}},updateNodeInternals:B=>{const{triggerNodeChanges:$,nodeLookup:j,parentLookup:P,domNode:G,nodeOrigin:ee,nodeExtent:re,debug:Q,fitViewQueued:ie,zIndexMode:pe}=L(),{changes:me,updatedInternals:le}=FLn(B,j,P,G,ee,re,pe);le&&(LLn(j,P,{nodeOrigin:ee,nodeExtent:re,zIndexMode:pe}),ie?(D(),R({fitViewQueued:!1,fitViewOptions:void 0})):R({}),(me==null?void 0:me.length)>0&&(Q&&console.log("React Flow: trigger node changes",me),$==null||$(me)))},updateNodePositions:(B,$=!1)=>{const j=[];let P=[];const{nodeLookup:G,triggerNodeChanges:ee,connection:re,updateConnection:Q,onNodesChangeMiddlewareMap:ie}=L();for(const[pe,me]of B){const le=G.get(pe),fe=!!(le!=null&&le.expandParent&&(le!=null&&le.parentId)&&(me!=null&&me.position)),K={id:pe,type:"position",position:fe?{x:Math.max(0,me.position.x),y:Math.max(0,me.position.y)}:me.position,dragging:$};if(le&&re.inProgress&&re.fromNode.id===le.id){const he=pR(le,re.fromHandle,qr.Left,!0);Q({...re,from:he})}fe&&le.parentId&&j.push({id:pe,parentId:le.parentId,rect:{...me.internals.positionAbsolute,width:me.measured.width??0,height:me.measured.height??0}}),P.push(K)}if(j.length>0){const{parentLookup:pe,nodeOrigin:me}=L(),le=P5e(j,G,pe,me);P.push(...le)}for(const pe of ie.values())P=pe(P);ee(P)},triggerNodeChanges:B=>{const{onNodesChange:$,setNodes:j,nodes:P,hasDefaultNodes:G,debug:ee}=L();if(B!=null&&B.length){if(G){const re=Ozt(B,P);j(re)}ee&&console.log("React Flow: trigger node changes",B),$==null||$(B)}},triggerEdgeChanges:B=>{const{onEdgesChange:$,setEdges:j,edges:P,hasDefaultEdges:G,debug:ee}=L();if(B!=null&&B.length){if(G){const re=Dzt(B,P);j(re)}ee&&console.log("React Flow: trigger edge changes",B),$==null||$(B)}},addSelectedNodes:B=>{const{multiSelectionActive:$,edgeLookup:j,nodeLookup:P,triggerNodeChanges:G,triggerEdgeChanges:ee}=L();if($){const re=B.map(Q=>W4(Q,!0));G(re);return}G(z5(P,new Set([...B]),!0)),ee(z5(j))},addSelectedEdges:B=>{const{multiSelectionActive:$,edgeLookup:j,nodeLookup:P,triggerNodeChanges:G,triggerEdgeChanges:ee}=L();if($){const re=B.map(Q=>W4(Q,!0));ee(re);return}ee(z5(j,new Set([...B]))),G(z5(P,new Set,!0))},unselectNodesAndEdges:({nodes:B,edges:$}={})=>{const{edges:j,nodes:P,nodeLookup:G,triggerNodeChanges:ee,triggerEdgeChanges:re}=L(),Q=B||P,ie=$||j,pe=Q.map(le=>{const fe=G.get(le.id);return fe&&(fe.selected=!1),W4(le.id,!1)}),me=ie.map(le=>W4(le.id,!1));ee(pe),re(me)},setMinZoom:B=>{const{panZoom:$,maxZoom:j}=L();$==null||$.setScaleExtent([B,j]),R({minZoom:B})},setMaxZoom:B=>{const{panZoom:$,minZoom:j}=L();$==null||$.setScaleExtent([j,B]),R({maxZoom:B})},setTranslateExtent:B=>{var $;($=L().panZoom)==null||$.setTranslateExtent(B),R({translateExtent:B})},resetSelectedElements:()=>{const{edges:B,nodes:$,triggerNodeChanges:j,triggerEdgeChanges:P,elementsSelectable:G}=L();if(!G)return;const ee=$.reduce((Q,ie)=>ie.selected?[...Q,W4(ie.id,!1)]:Q,[]),re=B.reduce((Q,ie)=>ie.selected?[...Q,W4(ie.id,!1)]:Q,[]);j(ee),P(re)},setNodeExtent:B=>{const{nodes:$,nodeLookup:j,parentLookup:P,nodeOrigin:G,elevateNodesOnSelect:ee,nodeExtent:re,zIndexMode:Q}=L();B[0][0]===re[0][0]&&B[0][1]===re[0][1]&&B[1][0]===re[1][0]&&B[1][1]===re[1][1]||(bDe($,j,P,{nodeOrigin:G,nodeExtent:B,elevateNodesOnSelect:ee,checkEquality:!1,zIndexMode:Q}),R({nodeExtent:B}))},panBy:B=>{const{transform:$,width:j,height:P,panZoom:G,translateExtent:ee}=L();return $Ln({delta:B,panZoom:G,transform:$,translateExtent:ee,width:j,height:P})},setCenter:async(B,$,j)=>{const{width:P,height:G,maxZoom:ee,panZoom:re}=L();if(!re)return Promise.resolve(!1);const Q=typeof(j==null?void 0:j.zoom)<"u"?j.zoom:ee;return await re.setViewport({x:P/2-B*Q,y:G/2-$*Q,zoom:Q},{duration:j==null?void 0:j.duration,ease:j==null?void 0:j.ease,interpolate:j==null?void 0:j.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{R({connection:{...JHt}})},updateConnection:B=>{R({connection:B})},reset:()=>R({...v9t()})}},Object.is);function iGt({initialNodes:n,initialEdges:i,defaultNodes:s,defaultEdges:c,initialWidth:d,initialHeight:g,initialMinZoom:b,initialMaxZoom:w,initialFitViewOptions:E,fitView:S,nodeOrigin:x,nodeExtent:A,zIndexMode:C,children:R}){const[L]=H.useState(()=>s9n({nodes:n,edges:i,defaultNodes:s,defaultEdges:c,width:d,height:g,fitView:S,minZoom:b,maxZoom:w,fitViewOptions:E,nodeOrigin:x,nodeExtent:A,zIndexMode:C}));return I.jsx(_5n,{value:L,children:I.jsx(K5n,{children:R})})}function a9n({children:n,nodes:i,edges:s,defaultNodes:c,defaultEdges:d,width:g,height:b,fitView:w,fitViewOptions:E,minZoom:S,maxZoom:x,nodeOrigin:A,nodeExtent:C,zIndexMode:R}){return H.useContext(eae)?I.jsx(I.Fragment,{children:n}):I.jsx(iGt,{initialNodes:i,initialEdges:s,defaultNodes:c,defaultEdges:d,initialWidth:g,initialHeight:b,fitView:w,initialFitViewOptions:E,initialMinZoom:S,initialMaxZoom:x,nodeOrigin:A,nodeExtent:C,zIndexMode:R,children:n})}const u9n={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function c9n({nodes:n,edges:i,defaultNodes:s,defaultEdges:c,className:d,nodeTypes:g,edgeTypes:b,onNodeClick:w,onEdgeClick:E,onInit:S,onMove:x,onMoveStart:A,onMoveEnd:C,onConnect:R,onConnectStart:L,onConnectEnd:D,onClickConnectStart:B,onClickConnectEnd:$,onNodeMouseEnter:j,onNodeMouseMove:P,onNodeMouseLeave:G,onNodeContextMenu:ee,onNodeDoubleClick:re,onNodeDragStart:Q,onNodeDrag:ie,onNodeDragStop:pe,onNodesDelete:me,onEdgesDelete:le,onDelete:fe,onSelectionChange:K,onSelectionDragStart:he,onSelectionDrag:Oe,onSelectionDragStop:Se,onSelectionContextMenu:Le,onSelectionStart:Ae,onSelectionEnd:xe,onBeforeDelete:We,connectionMode:dt,connectionLineType:Ue=Bk.Bezier,connectionLineStyle:bt,connectionLineComponent:kt,connectionLineContainerStyle:ht,deleteKeyCode:Xt="Backspace",selectionKeyCode:vt="Shift",selectionOnDrag:Ct=!1,selectionMode:Ft=YH.Full,panActivationKeyCode:On="Space",multiSelectionKeyCode:Zn=XH()?"Meta":"Control",zoomActivationKeyCode:Yn=XH()?"Meta":"Control",snapToGrid:vr,snapGrid:Ui,onlyRenderVisibleElements:Qr=!1,selectNodesOnDrag:Hi,nodesDraggable:ai,autoPanOnNodeFocus:jc,nodesConnectable:Xs,nodesFocusable:ls,nodeOrigin:Qo=Izt,edgesFocusable:Ca,edgesReconnectable:Ni,elementsSelectable:mb=!0,defaultViewport:Yg=F5n,minZoom:Wh=.5,maxZoom:wb=2,translateExtent:Wp=KH,preventScrolling:Ow=!0,nodeExtent:Kh,defaultMarkerColor:X2="#b1b1b7",zoomOnScroll:Jg=!0,zoomOnPinch:Kp=!0,panOnScroll:Xg=!1,panOnScrollSpeed:CN=.5,panOnScrollMode:IN=nR.Free,zoomOnDoubleClick:GR=!0,panOnDrag:kA=!0,onPaneClick:yb,onPaneMouseEnter:qR,onPaneMouseMove:VR,onPaneMouseLeave:RN,onPaneScroll:ON,onPaneContextMenu:po,paneClickDistance:Fc=1,nodeClickDistance:Fl=0,children:Af,onReconnect:Z2,onReconnectStart:pl,onReconnectEnd:sh,onEdgeContextMenu:Vm,onEdgeDoubleClick:ah,onEdgeMouseEnter:Yh,onEdgeMouseMove:Q2,onEdgeMouseLeave:Wm,reconnectRadius:n9=10,onNodesChange:r9,onEdgesChange:tG,noDragClassName:nG="nodrag",noWheelClassName:rG="nowheel",noPanClassName:i9="nopan",fitView:o9,fitViewOptions:s9,connectOnClick:iG,attributionPosition:oG,proOptions:sG,defaultEdgeOptions:aG,elevateNodesOnSelect:WR=!0,elevateEdgesOnSelect:uG=!1,disableKeyboardA11y:a9=!1,autoPanOnConnect:cG,autoPanOnNodeDrag:lG,autoPanSpeed:dG,connectionRadius:fG,isValidConnection:hG,onError:pG,style:gG,id:u9,nodeDragThreshold:bG,connectionDragThreshold:c9,viewport:l9,onViewportChange:mG,width:wG,height:yG,colorMode:vG="light",debug:EG,onScroll:DN,ariaLabelConfig:SG,zIndexMode:d9="basic",...TG},AG){const KR=u9||"1",_G=H5n(vG),xG=H.useCallback(f9=>{f9.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),DN==null||DN(f9)},[DN]);return I.jsx("div",{"data-testid":"rf__wrapper",...TG,onScroll:xG,style:{...gG,...u9n},ref:AG,className:Bd(["react-flow",d,_G]),id:u9,role:"application",children:I.jsxs(a9n,{nodes:n,edges:i,width:wG,height:yG,fitView:o9,fitViewOptions:s9,minZoom:Wh,maxZoom:wb,nodeOrigin:Qo,nodeExtent:Kh,zIndexMode:d9,children:[I.jsx(o9n,{onInit:S,onNodeClick:w,onEdgeClick:E,onNodeMouseEnter:j,onNodeMouseMove:P,onNodeMouseLeave:G,onNodeContextMenu:ee,onNodeDoubleClick:re,nodeTypes:g,edgeTypes:b,connectionLineType:Ue,connectionLineStyle:bt,connectionLineComponent:kt,connectionLineContainerStyle:ht,selectionKeyCode:vt,selectionOnDrag:Ct,selectionMode:Ft,deleteKeyCode:Xt,multiSelectionKeyCode:Zn,panActivationKeyCode:On,zoomActivationKeyCode:Yn,onlyRenderVisibleElements:Qr,defaultViewport:Yg,translateExtent:Wp,minZoom:Wh,maxZoom:wb,preventScrolling:Ow,zoomOnScroll:Jg,zoomOnPinch:Kp,zoomOnDoubleClick:GR,panOnScroll:Xg,panOnScrollSpeed:CN,panOnScrollMode:IN,panOnDrag:kA,onPaneClick:yb,onPaneMouseEnter:qR,onPaneMouseMove:VR,onPaneMouseLeave:RN,onPaneScroll:ON,onPaneContextMenu:po,paneClickDistance:Fc,nodeClickDistance:Fl,onSelectionContextMenu:Le,onSelectionStart:Ae,onSelectionEnd:xe,onReconnect:Z2,onReconnectStart:pl,onReconnectEnd:sh,onEdgeContextMenu:Vm,onEdgeDoubleClick:ah,onEdgeMouseEnter:Yh,onEdgeMouseMove:Q2,onEdgeMouseLeave:Wm,reconnectRadius:n9,defaultMarkerColor:X2,noDragClassName:nG,noWheelClassName:rG,noPanClassName:i9,rfId:KR,disableKeyboardA11y:a9,nodeExtent:Kh,viewport:l9,onViewportChange:mG}),I.jsx(U5n,{nodes:n,edges:i,defaultNodes:s,defaultEdges:c,onConnect:R,onConnectStart:L,onConnectEnd:D,onClickConnectStart:B,onClickConnectEnd:$,nodesDraggable:ai,autoPanOnNodeFocus:jc,nodesConnectable:Xs,nodesFocusable:ls,edgesFocusable:Ca,edgesReconnectable:Ni,elementsSelectable:mb,elevateNodesOnSelect:WR,elevateEdgesOnSelect:uG,minZoom:Wh,maxZoom:wb,nodeExtent:Kh,onNodesChange:r9,onEdgesChange:tG,snapToGrid:vr,snapGrid:Ui,connectionMode:dt,translateExtent:Wp,connectOnClick:iG,defaultEdgeOptions:aG,fitView:o9,fitViewOptions:s9,onNodesDelete:me,onEdgesDelete:le,onDelete:fe,onNodeDragStart:Q,onNodeDrag:ie,onNodeDragStop:pe,onSelectionDrag:Oe,onSelectionDragStart:he,onSelectionDragStop:Se,onMove:x,onMoveStart:A,onMoveEnd:C,noPanClassName:i9,nodeOrigin:Qo,rfId:KR,autoPanOnConnect:cG,autoPanOnNodeDrag:lG,autoPanSpeed:dG,onError:pG,connectionRadius:fG,isValidConnection:hG,selectNodesOnDrag:Hi,nodeDragThreshold:bG,connectionDragThreshold:c9,onBeforeDelete:We,debug:EG,ariaLabelConfig:SG,zIndexMode:d9}),I.jsx(j5n,{onSelectionChange:K}),Af,I.jsx(O5n,{proOptions:sG,position:oG}),I.jsx(R5n,{rfId:KR,disableKeyboardA11y:a9})]})})}var l9n=Lzt(c9n);const d9n=n=>{var i;return(i=n.domNode)==null?void 0:i.querySelector(".react-flow__edgelabel-renderer")};function E9t({children:n}){const i=Js(d9n);return i?xR.createPortal(n,i):null}function f9n({dimensions:n,lineWidth:i,variant:s,className:c}){return I.jsx("path",{strokeWidth:i,d:`M${n[0]/2} 0 V${n[1]} M0 ${n[1]/2} H${n[0]}`,className:Bd(["react-flow__background-pattern",s,c])})}function h9n({radius:n,className:i}){return I.jsx("circle",{cx:n,cy:n,r:n,className:Bd(["react-flow__background-pattern","dots",i])})}var pA;(function(n){n.Lines="lines",n.Dots="dots",n.Cross="cross"})(pA||(pA={}));const p9n={[pA.Dots]:1,[pA.Lines]:1,[pA.Cross]:6},g9n=n=>({transform:n.transform,patternId:`pattern-${n.rfId}`});function oGt({id:n,variant:i=pA.Dots,gap:s=20,size:c,lineWidth:d=1,offset:g=0,color:b,bgColor:w,style:E,className:S,patternClassName:x}){const A=H.useRef(null),{transform:C,patternId:R}=Js(g9n,Lc),L=c||p9n[i],D=i===pA.Dots,B=i===pA.Cross,$=Array.isArray(s)?s:[s,s],j=[$[0]*C[2]||1,$[1]*C[2]||1],P=L*C[2],G=Array.isArray(g)?g:[g,g],ee=B?[P,P]:j,re=[G[0]*C[2]||1+ee[0]/2,G[1]*C[2]||1+ee[1]/2],Q=`${R}${n||""}`;return I.jsxs("svg",{className:Bd(["react-flow__background",S]),style:{...E,...tae,"--xy-background-color-props":w,"--xy-background-pattern-color-props":b},ref:A,"data-testid":"rf__background",children:[I.jsx("pattern",{id:Q,x:C[0]%j[0],y:C[1]%j[1],width:j[0],height:j[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${re[0]},-${re[1]})`,children:D?I.jsx(h9n,{radius:P/2,className:x}):I.jsx(f9n,{dimensions:ee,lineWidth:d,variant:i,className:x})}),I.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${Q})`})]})}oGt.displayName="Background";const b9n=H.memo(oGt);function m9n(){return I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:I.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function w9n(){return I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:I.jsx("path",{d:"M0 0h32v4.2H0z"})})}function y9n(){return I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:I.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function v9n(){return I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:I.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function E9n(){return I.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:I.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function yie({children:n,className:i,...s}){return I.jsx("button",{type:"button",className:Bd(["react-flow__controls-button",i]),...s,children:n})}const S9n=n=>({isInteractive:n.nodesDraggable||n.nodesConnectable||n.elementsSelectable,minZoomReached:n.transform[2]<=n.minZoom,maxZoomReached:n.transform[2]>=n.maxZoom,ariaLabelConfig:n.ariaLabelConfig});function sGt({style:n,showZoom:i=!0,showFitView:s=!0,showInteractive:c=!0,fitViewOptions:d,onZoomIn:g,onZoomOut:b,onFitView:w,onInteractiveChange:E,className:S,children:x,position:A="bottom-left",orientation:C="vertical","aria-label":R}){const L=Mc(),{isInteractive:D,minZoomReached:B,maxZoomReached:$,ariaLabelConfig:j}=Js(S9n,Lc),{zoomIn:P,zoomOut:G,fitView:ee}=kR(),re=()=>{P(),g==null||g()},Q=()=>{G(),b==null||b()},ie=()=>{ee(d),w==null||w()},pe=()=>{L.setState({nodesDraggable:!D,nodesConnectable:!D,elementsSelectable:!D}),E==null||E(!D)},me=C==="horizontal"?"horizontal":"vertical";return I.jsxs(gR,{className:Bd(["react-flow__controls",me,S]),position:A,style:n,"data-testid":"rf__controls","aria-label":R??j["controls.ariaLabel"],children:[i&&I.jsxs(I.Fragment,{children:[I.jsx(yie,{onClick:re,className:"react-flow__controls-zoomin",title:j["controls.zoomIn.ariaLabel"],"aria-label":j["controls.zoomIn.ariaLabel"],disabled:$,children:I.jsx(m9n,{})}),I.jsx(yie,{onClick:Q,className:"react-flow__controls-zoomout",title:j["controls.zoomOut.ariaLabel"],"aria-label":j["controls.zoomOut.ariaLabel"],disabled:B,children:I.jsx(w9n,{})})]}),s&&I.jsx(yie,{className:"react-flow__controls-fitview",onClick:ie,title:j["controls.fitView.ariaLabel"],"aria-label":j["controls.fitView.ariaLabel"],children:I.jsx(y9n,{})}),c&&I.jsx(yie,{className:"react-flow__controls-interactive",onClick:pe,title:j["controls.interactive.ariaLabel"],"aria-label":j["controls.interactive.ariaLabel"],children:D?I.jsx(E9n,{}):I.jsx(v9n,{})}),x]})}sGt.displayName="Controls";const T9n=H.memo(sGt);function A9n({id:n,x:i,y:s,width:c,height:d,style:g,color:b,strokeColor:w,strokeWidth:E,className:S,borderRadius:x,shapeRendering:A,selected:C,onClick:R}){const{background:L,backgroundColor:D}=g||{},B=b||L||D;return I.jsx("rect",{className:Bd(["react-flow__minimap-node",{selected:C},S]),x:i,y:s,rx:x,ry:x,width:c,height:d,style:{fill:B,stroke:w,strokeWidth:E},shapeRendering:A,onClick:R?$=>R($,n):void 0})}const _9n=H.memo(A9n),x9n=n=>n.nodes.map(i=>i.id),qCe=n=>n instanceof Function?n:()=>n;function k9n({nodeStrokeColor:n,nodeColor:i,nodeClassName:s="",nodeBorderRadius:c=5,nodeStrokeWidth:d,nodeComponent:g=_9n,onClick:b}){const w=Js(x9n,Lc),E=qCe(i),S=qCe(n),x=qCe(s),A=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return I.jsx(I.Fragment,{children:w.map(C=>I.jsx(C9n,{id:C,nodeColorFunc:E,nodeStrokeColorFunc:S,nodeClassNameFunc:x,nodeBorderRadius:c,nodeStrokeWidth:d,NodeComponent:g,onClick:b,shapeRendering:A},C))})}function N9n({id:n,nodeColorFunc:i,nodeStrokeColorFunc:s,nodeClassNameFunc:c,nodeBorderRadius:d,nodeStrokeWidth:g,shapeRendering:b,NodeComponent:w,onClick:E}){const{node:S,x,y:A,width:C,height:R}=Js(L=>{const{internals:D}=L.nodeLookup.get(n),B=D.userNode,{x:$,y:j}=D.positionAbsolute,{width:P,height:G}=_A(B);return{node:B,x:$,y:j,width:P,height:G}},Lc);return!S||S.hidden||!rzt(S)?null:I.jsx(w,{x,y:A,width:C,height:R,style:S.style,selected:!!S.selected,className:c(S),color:i(S),borderRadius:d,strokeColor:s(S),strokeWidth:g,shapeRendering:b,onClick:E,id:S.id})}const C9n=H.memo(N9n);var I9n=H.memo(k9n);const R9n=200,O9n=150,D9n=n=>!n.hidden,L9n=n=>{const i={x:-n.transform[0]/n.transform[2],y:-n.transform[1]/n.transform[2],width:n.width/n.transform[2],height:n.height/n.transform[2]};return{viewBB:i,boundingRect:n.nodeLookup.size>0?nzt(Tz(n.nodeLookup,{filter:D9n}),i):i,rfId:n.rfId,panZoom:n.panZoom,translateExtent:n.translateExtent,flowWidth:n.width,flowHeight:n.height,ariaLabelConfig:n.ariaLabelConfig}},M9n="react-flow__minimap-desc";function aGt({style:n,className:i,nodeStrokeColor:s,nodeColor:c,nodeClassName:d="",nodeBorderRadius:g=5,nodeStrokeWidth:b,nodeComponent:w,bgColor:E,maskColor:S,maskStrokeColor:x,maskStrokeWidth:A,position:C="bottom-right",onClick:R,onNodeClick:L,pannable:D=!1,zoomable:B=!1,ariaLabel:$,inversePan:j,zoomStep:P=1,offsetScale:G=5}){const ee=Mc(),re=H.useRef(null),{boundingRect:Q,viewBB:ie,rfId:pe,panZoom:me,translateExtent:le,flowWidth:fe,flowHeight:K,ariaLabelConfig:he}=Js(L9n,Lc),Oe=(n==null?void 0:n.width)??R9n,Se=(n==null?void 0:n.height)??O9n,Le=Q.width/Oe,Ae=Q.height/Se,xe=Math.max(Le,Ae),We=xe*Oe,dt=xe*Se,Ue=G*xe,bt=Q.x-(We-Q.width)/2-Ue,kt=Q.y-(dt-Q.height)/2-Ue,ht=We+Ue*2,Xt=dt+Ue*2,vt=`${M9n}-${pe}`,Ct=H.useRef(0),Ft=H.useRef();Ct.current=xe,H.useEffect(()=>{if(re.current&&me)return Ft.current=KLn({domNode:re.current,panZoom:me,getTransform:()=>ee.getState().transform,getViewScale:()=>Ct.current}),()=>{var vr;(vr=Ft.current)==null||vr.destroy()}},[me]),H.useEffect(()=>{var vr;(vr=Ft.current)==null||vr.update({translateExtent:le,width:fe,height:K,inversePan:j,pannable:D,zoomStep:P,zoomable:B})},[D,B,j,P,le,fe,K]);const On=R?vr=>{var Hi;const[Ui,Qr]=((Hi=Ft.current)==null?void 0:Hi.pointer(vr))||[0,0];R(vr,{x:Ui,y:Qr})}:void 0,Zn=L?H.useCallback((vr,Ui)=>{const Qr=ee.getState().nodeLookup.get(Ui).internals.userNode;L(vr,Qr)},[]):void 0,Yn=$??he["minimap.ariaLabel"];return I.jsx(gR,{position:C,style:{...n,"--xy-minimap-background-color-props":typeof E=="string"?E:void 0,"--xy-minimap-mask-background-color-props":typeof S=="string"?S:void 0,"--xy-minimap-mask-stroke-color-props":typeof x=="string"?x:void 0,"--xy-minimap-mask-stroke-width-props":typeof A=="number"?A*xe:void 0,"--xy-minimap-node-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-node-stroke-color-props":typeof s=="string"?s:void 0,"--xy-minimap-node-stroke-width-props":typeof b=="number"?b:void 0},className:Bd(["react-flow__minimap",i]),"data-testid":"rf__minimap",children:I.jsxs("svg",{width:Oe,height:Se,viewBox:`${bt} ${kt} ${ht} ${Xt}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":vt,ref:re,onClick:On,children:[Yn&&I.jsx("title",{id:vt,children:Yn}),I.jsx(I9n,{onClick:Zn,nodeColor:c,nodeStrokeColor:s,nodeBorderRadius:g,nodeClassName:d,nodeStrokeWidth:b,nodeComponent:w}),I.jsx("path",{className:"react-flow__minimap-mask",d:`M${bt-Ue},${kt-Ue}h${ht+Ue*2}v${Xt+Ue*2}h${-ht-Ue*2}z + M${ie.x},${ie.y}h${ie.width}v${ie.height}h${-ie.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}aGt.displayName="MiniMap";const P9n=H.memo(aGt),j9n=n=>i=>n?`${Math.max(1/i.transform[2],1)}`:void 0,F9n={[_M.Line]:"right",[_M.Handle]:"bottom-right"};function $9n({nodeId:n,position:i,variant:s=_M.Handle,className:c,style:d=void 0,children:g,color:b,minWidth:w=10,minHeight:E=10,maxWidth:S=Number.MAX_VALUE,maxHeight:x=Number.MAX_VALUE,keepAspectRatio:A=!1,resizeDirection:C,autoScale:R=!0,shouldResize:L,onResizeStart:D,onResize:B,onResizeEnd:$}){const j=Fzt(),P=typeof n=="string"?n:j,G=Mc(),ee=H.useRef(null),re=s===_M.Handle,Q=Js(H.useCallback(j9n(re&&R),[re,R]),Lc),ie=H.useRef(null),pe=i??F9n[s];H.useEffect(()=>{if(!(!ee.current||!P))return ie.current||(ie.current=u5n({domNode:ee.current,nodeId:P,getStoreItems:()=>{const{nodeLookup:le,transform:fe,snapGrid:K,snapToGrid:he,nodeOrigin:Oe,domNode:Se}=G.getState();return{nodeLookup:le,transform:fe,snapGrid:K,snapToGrid:he,nodeOrigin:Oe,paneDomNode:Se}},onChange:(le,fe)=>{const{triggerNodeChanges:K,nodeLookup:he,parentLookup:Oe,nodeOrigin:Se}=G.getState(),Le=[],Ae={x:le.x,y:le.y},xe=he.get(P);if(xe&&xe.expandParent&&xe.parentId){const We=xe.origin??Se,dt=le.width??xe.measured.width??0,Ue=le.height??xe.measured.height??0,bt={id:xe.id,parentId:xe.parentId,rect:{width:dt,height:Ue,...izt({x:le.x??xe.position.x,y:le.y??xe.position.y},{width:dt,height:Ue},xe.parentId,he,We)}},kt=P5e([bt],he,Oe,Se);Le.push(...kt),Ae.x=le.x?Math.max(We[0]*dt,le.x):void 0,Ae.y=le.y?Math.max(We[1]*Ue,le.y):void 0}if(Ae.x!==void 0&&Ae.y!==void 0){const We={id:P,type:"position",position:{...Ae}};Le.push(We)}if(le.width!==void 0&&le.height!==void 0){const dt={id:P,type:"dimensions",resizing:!0,setAttributes:C?C==="horizontal"?"width":"height":!0,dimensions:{width:le.width,height:le.height}};Le.push(dt)}for(const We of fe){const dt={...We,type:"position"};Le.push(dt)}K(Le)},onEnd:({width:le,height:fe})=>{const K={id:P,type:"dimensions",resizing:!1,dimensions:{width:le,height:fe}};G.getState().triggerNodeChanges([K])}})),ie.current.update({controlPosition:pe,boundaries:{minWidth:w,minHeight:E,maxWidth:S,maxHeight:x},keepAspectRatio:A,resizeDirection:C,onResizeStart:D,onResize:B,onResizeEnd:$,shouldResize:L}),()=>{var le;(le=ie.current)==null||le.destroy()}},[pe,w,E,S,x,A,D,B,$,L]);const me=pe.split("-");return I.jsx("div",{className:Bd(["react-flow__resize-control","nodrag",...me,s,c]),ref:ee,style:{...d,scale:Q,...b&&{[re?"backgroundColor":"borderColor"]:b}},children:g})}H.memo($9n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uGt=(...n)=>n.filter((i,s,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===s).join(" ").trim();/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const B9n=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const U9n=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,c)=>c?c.toUpperCase():s.toLowerCase());/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const S9t=n=>{const i=U9n(n);return i.charAt(0).toUpperCase()+i.slice(1)};/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */var H9n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const z9n=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const G9n=H.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:c,className:d="",children:g,iconNode:b,...w},E)=>H.createElement("svg",{ref:E,...H9n,width:i,height:i,stroke:n,strokeWidth:c?Number(s)*24/Number(i):s,className:uGt("lucide",d),...!g&&!z9n(w)&&{"aria-hidden":"true"},...w},[...b.map(([S,x])=>H.createElement(S,x)),...Array.isArray(g)?g:[g]]));/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _i=(n,i)=>{const s=H.forwardRef(({className:c,...d},g)=>H.createElement(G9n,{ref:g,iconNode:i,className:uGt(`lucide-${B9n(S9t(n))}`,`lucide-${n}`,c),...d}));return s.displayName=S9t(n),s};/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q9n=[["rect",{width:"6",height:"16",x:"4",y:"2",rx:"2",key:"z5wdxg"}],["rect",{width:"6",height:"9",x:"14",y:"9",rx:"2",key:"um7a8w"}],["path",{d:"M22 22H2",key:"19qnx5"}]],V9n=_i("align-end-horizontal",q9n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W9n=[["rect",{width:"16",height:"6",x:"2",y:"4",rx:"2",key:"10wcwx"}],["rect",{width:"9",height:"6",x:"9",y:"14",rx:"2",key:"4p5bwg"}],["path",{d:"M22 22V2",key:"12ipfv"}]],K9n=_i("align-end-vertical",W9n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Y9n=[["rect",{width:"6",height:"16",x:"4",y:"6",rx:"2",key:"1n4dg1"}],["rect",{width:"6",height:"9",x:"14",y:"6",rx:"2",key:"17khns"}],["path",{d:"M22 2H2",key:"fhrpnj"}]],J9n=_i("align-start-horizontal",Y9n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const X9n=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],Z9n=_i("align-start-vertical",X9n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Q9n=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],e8n=_i("arrow-down",Q9n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const t8n=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],n8n=_i("arrow-left",t8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const r8n=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],i8n=_i("arrow-up-down",r8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const o8n=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],s8n=_i("arrow-up",o8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const a8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],iN=_i("ban",a8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const u8n=[["path",{d:"m16 22-1-4",key:"1ow2iv"}],["path",{d:"M19 14a1 1 0 0 0 1-1v-1a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v1a1 1 0 0 0 1 1",key:"11gii7"}],["path",{d:"M19 14H5l-1.973 6.767A1 1 0 0 0 4 22h16a1 1 0 0 0 .973-1.233z",key:"bju7h4"}],["path",{d:"m8 22 1-4",key:"s3unb"}]],c8n=_i("brush-cleaning",u8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const l8n=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],oN=_i("check",l8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const d8n=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],nae=_i("chevron-down",d8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const f8n=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],h8n=_i("chevron-right",f8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const p8n=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],g8n=_i("chevron-up",p8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const b8n=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],cGt=_i("chevrons-up-down",b8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const m8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],_w=_i("circle-alert",m8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const w8n=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],lGt=_i("circle-check-big",w8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const y8n=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],v8n=_i("circle-play",y8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const E8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],S8n=_i("circle",E8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const T8n=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],A8n=_i("clipboard",T8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _8n=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],F5e=_i("clock",_8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const x8n=[["line",{x1:"15",x2:"15",y1:"12",y2:"18",key:"1p7wdc"}],["line",{x1:"12",x2:"18",y1:"15",y2:"15",key:"1nscbv"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],k8n=_i("copy-plus",x8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const N8n=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],$5e=_i("copy",N8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const C8n=[["path",{d:"M12 8v8",key:"napkw2"}],["path",{d:"M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41L13.7 2.71a2.41 2.41 0 0 0-3.41 0z",key:"1ey20j"}],["path",{d:"M8 12h8",key:"1wcyev"}]],dGt=_i("diamond-plus",C8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const I8n=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],T9t=_i("download",I8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const R8n=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],O8n=_i("external-link",R8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const D8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]],L8n=_i("file-code",D8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],P8n=_i("file-down",M8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const j8n=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"m15 15-3-3-3 3",key:"15xj92"}]],F8n=_i("file-up",j8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const $8n=[["path",{d:"m6 14 1.45-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.55 6a2 2 0 0 1-1.94 1.5H4a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.93a2 2 0 0 1 1.66.9l.82 1.2a2 2 0 0 0 1.66.9H18a2 2 0 0 1 2 2v2",key:"1nmvlm"}],["circle",{cx:"14",cy:"15",r:"1",key:"1gm4qj"}]],B8n=_i("folder-open-dot",$8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const U8n=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],fGt=_i("git-branch",U8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const H8n=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],z8n=_i("history",H8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const G8n=[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M5 2h14",key:"pdyrp9"}],["path",{d:"M17 22v-4.172a2 2 0 0 0-.586-1.414L12 12l-4.414 4.414A2 2 0 0 0 7 17.828V22",key:"1d314k"}],["path",{d:"M7 2v4.172a2 2 0 0 0 .586 1.414L12 12l4.414-4.414A2 2 0 0 0 17 6.172V2",key:"1vvvr6"}]],hGt=_i("hourglass",G8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const q8n=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],V8n=_i("layers",q8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const W8n=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],QH=_i("loader-circle",W8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const K8n=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Y8n=_i("menu",K8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const J8n=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],X8n=_i("mouse-pointer-click",J8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const Z8n=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Q8n=_i("octagon-x",Z8n);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const ePn=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],rae=_i("play",ePn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const tPn=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],iae=_i("plus",tPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const nPn=[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]],rPn=_i("redo-2",nPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const iPn=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],pGt=_i("rotate-ccw",iPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const oPn=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],gGt=_i("save",oPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const sPn=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],aPn=_i("scissors",sPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const uPn=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],bGt=_i("search",uPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const cPn=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],lPn=_i("settings",cPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const dPn=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],mGt=_i("square",dPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const fPn=[["circle",{cx:"9",cy:"12",r:"3",key:"u3jwor"}],["rect",{width:"20",height:"14",x:"2",y:"5",rx:"7",key:"g7kal2"}]],A9t=_i("toggle-left",fPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const hPn=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],PM=_i("trash-2",hPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const pPn=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],_9t=_i("triangle-alert",pPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const gPn=[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]],bPn=_i("undo-2",gPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const mPn=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],wPn=_i("unplug",mPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yPn=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],vPn=_i("upload",yPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const EPn=[["path",{d:"M8 21s-4-3-4-9 4-9 4-9",key:"uto9ud"}],["path",{d:"M16 3s4 3 4 9-4 9-4 9",key:"4w2vsq"}],["line",{x1:"15",x2:"9",y1:"9",y2:"15",key:"f7djnv"}],["line",{x1:"9",x2:"15",y1:"9",y2:"15",key:"1shsy8"}]],wGt=_i("variable",EPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const SPn=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],TPn=_i("wifi",SPn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const APn=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],oae=_i("x",APn);/** + * @license lucide-react v0.577.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const _Pn=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],yGt=_i("zap",_Pn),xPn=H.createContext(null),VCe={didCatch:!1,error:null};let kPn=class extends H.Component{constructor(i){super(i),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=VCe}static getDerivedStateFromError(i){return{didCatch:!0,error:i}}resetErrorBoundary(...i){var c,d;const{error:s}=this.state;s!==null&&((d=(c=this.props).onReset)==null||d.call(c,{args:i,reason:"imperative-api"}),this.setState(VCe))}componentDidCatch(i,s){var c,d;(d=(c=this.props).onError)==null||d.call(c,i,s)}componentDidUpdate(i,s){var g,b;const{didCatch:c}=this.state,{resetKeys:d}=this.props;c&&s.error!==null&&NPn(i.resetKeys,d)&&((b=(g=this.props).onReset)==null||b.call(g,{next:d,prev:i.resetKeys,reason:"keys"}),this.setState(VCe))}render(){const{children:i,fallbackRender:s,FallbackComponent:c,fallback:d}=this.props,{didCatch:g,error:b}=this.state;let w=i;if(g){const E={error:b,resetErrorBoundary:this.resetErrorBoundary};if(typeof s=="function")w=s(E);else if(c)w=H.createElement(c,E);else if(d!==void 0)w=d;else throw b}return H.createElement(xPn.Provider,{value:{didCatch:g,error:b,resetErrorBoundary:this.resetErrorBoundary}},w)}};function NPn(n=[],i=[]){return n.length!==i.length||n.some((s,c)=>!Object.is(s,i[c]))}function CPn(n){if(typeof document>"u")return;let i=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",i.appendChild(s),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(document.createTextNode(n))}const IPn=n=>{switch(n){case"success":return DPn;case"info":return MPn;case"warning":return LPn;case"error":return PPn;default:return null}},RPn=Array(12).fill(0),OPn=({visible:n,className:i})=>Hn.createElement("div",{className:["sonner-loading-wrapper",i].filter(Boolean).join(" "),"data-visible":n},Hn.createElement("div",{className:"sonner-spinner"},RPn.map((s,c)=>Hn.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${c}`})))),DPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),LPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),MPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),PPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Hn.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),jPn=Hn.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},Hn.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),Hn.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),FPn=()=>{const[n,i]=Hn.useState(document.hidden);return Hn.useEffect(()=>{const s=()=>{i(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),n};let yDe=1;class $Pn{constructor(){this.subscribe=i=>(this.subscribers.push(i),()=>{const s=this.subscribers.indexOf(i);this.subscribers.splice(s,1)}),this.publish=i=>{this.subscribers.forEach(s=>s(i))},this.addToast=i=>{this.publish(i),this.toasts=[...this.toasts,i]},this.create=i=>{var s;const{message:c,...d}=i,g=typeof(i==null?void 0:i.id)=="number"||((s=i.id)==null?void 0:s.length)>0?i.id:yDe++,b=this.toasts.find(E=>E.id===g),w=i.dismissible===void 0?!0:i.dismissible;return this.dismissedToasts.has(g)&&this.dismissedToasts.delete(g),b?this.toasts=this.toasts.map(E=>E.id===g?(this.publish({...E,...i,id:g,title:c}),{...E,...i,id:g,dismissible:w,title:c}):E):this.addToast({title:c,...d,dismissible:w,id:g}),g},this.dismiss=i=>(i?(this.dismissedToasts.add(i),requestAnimationFrame(()=>this.subscribers.forEach(s=>s({id:i,dismiss:!0})))):this.toasts.forEach(s=>{this.subscribers.forEach(c=>c({id:s.id,dismiss:!0}))}),i),this.message=(i,s)=>this.create({...s,message:i}),this.error=(i,s)=>this.create({...s,message:i,type:"error"}),this.success=(i,s)=>this.create({...s,type:"success",message:i}),this.info=(i,s)=>this.create({...s,type:"info",message:i}),this.warning=(i,s)=>this.create({...s,type:"warning",message:i}),this.loading=(i,s)=>this.create({...s,type:"loading",message:i}),this.promise=(i,s)=>{if(!s)return;let c;s.loading!==void 0&&(c=this.create({...s,promise:i,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));const d=Promise.resolve(i instanceof Function?i():i);let g=c!==void 0,b;const w=d.then(async S=>{if(b=["resolve",S],Hn.isValidElement(S))g=!1,this.create({id:c,type:"default",message:S});else if(UPn(S)&&!S.ok){g=!1;const A=typeof s.error=="function"?await s.error(`HTTP error! status: ${S.status}`):s.error,C=typeof s.description=="function"?await s.description(`HTTP error! status: ${S.status}`):s.description,L=typeof A=="object"&&!Hn.isValidElement(A)?A:{message:A};this.create({id:c,type:"error",description:C,...L})}else if(S instanceof Error){g=!1;const A=typeof s.error=="function"?await s.error(S):s.error,C=typeof s.description=="function"?await s.description(S):s.description,L=typeof A=="object"&&!Hn.isValidElement(A)?A:{message:A};this.create({id:c,type:"error",description:C,...L})}else if(s.success!==void 0){g=!1;const A=typeof s.success=="function"?await s.success(S):s.success,C=typeof s.description=="function"?await s.description(S):s.description,L=typeof A=="object"&&!Hn.isValidElement(A)?A:{message:A};this.create({id:c,type:"success",description:C,...L})}}).catch(async S=>{if(b=["reject",S],s.error!==void 0){g=!1;const x=typeof s.error=="function"?await s.error(S):s.error,A=typeof s.description=="function"?await s.description(S):s.description,R=typeof x=="object"&&!Hn.isValidElement(x)?x:{message:x};this.create({id:c,type:"error",description:A,...R})}}).finally(()=>{g&&(this.dismiss(c),c=void 0),s.finally==null||s.finally.call(s)}),E=()=>new Promise((S,x)=>w.then(()=>b[0]==="reject"?x(b[1]):S(b[1])).catch(x));return typeof c!="string"&&typeof c!="number"?{unwrap:E}:Object.assign(c,{unwrap:E})},this.custom=(i,s)=>{const c=(s==null?void 0:s.id)||yDe++;return this.create({jsx:i(c),id:c,...s}),c},this.getActiveToasts=()=>this.toasts.filter(i=>!this.dismissedToasts.has(i.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const nb=new $Pn,BPn=(n,i)=>{const s=(i==null?void 0:i.id)||yDe++;return nb.addToast({title:n,...i,id:s}),s},UPn=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",HPn=BPn,zPn=()=>nb.toasts,GPn=()=>nb.getActiveToasts(),N2=Object.assign(HPn,{success:nb.success,info:nb.info,warning:nb.warning,error:nb.error,custom:nb.custom,message:nb.message,promise:nb.promise,dismiss:nb.dismiss,loading:nb.loading},{getHistory:zPn,getToasts:GPn});CPn("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function vie(n){return n.label!==void 0}const qPn=3,VPn="24px",WPn="16px",x9t=4e3,KPn=356,YPn=14,JPn=45,XPn=200;function _2(...n){return n.filter(Boolean).join(" ")}function ZPn(n){const[i,s]=n.split("-"),c=[];return i&&c.push(i),s&&c.push(s),c}const QPn=n=>{var i,s,c,d,g,b,w,E,S;const{invert:x,toast:A,unstyled:C,interacting:R,setHeights:L,visibleToasts:D,heights:B,index:$,toasts:j,expanded:P,removeToast:G,defaultRichColors:ee,closeButton:re,style:Q,cancelButtonStyle:ie,actionButtonStyle:pe,className:me="",descriptionClassName:le="",duration:fe,position:K,gap:he,expandByDefault:Oe,classNames:Se,icons:Le,closeButtonAriaLabel:Ae="Close toast"}=n,[xe,We]=Hn.useState(null),[dt,Ue]=Hn.useState(null),[bt,kt]=Hn.useState(!1),[ht,Xt]=Hn.useState(!1),[vt,Ct]=Hn.useState(!1),[Ft,On]=Hn.useState(!1),[Zn,Yn]=Hn.useState(!1),[vr,Ui]=Hn.useState(0),[Qr,Hi]=Hn.useState(0),ai=Hn.useRef(A.duration||fe||x9t),jc=Hn.useRef(null),Xs=Hn.useRef(null),ls=$===0,Qo=$+1<=D,Ca=A.type,Ni=A.dismissible!==!1,mb=A.className||"",Yg=A.descriptionClassName||"",Wh=Hn.useMemo(()=>B.findIndex(po=>po.toastId===A.id)||0,[B,A.id]),wb=Hn.useMemo(()=>{var po;return(po=A.closeButton)!=null?po:re},[A.closeButton,re]),Wp=Hn.useMemo(()=>A.duration||fe||x9t,[A.duration,fe]),Ow=Hn.useRef(0),Kh=Hn.useRef(0),X2=Hn.useRef(0),Jg=Hn.useRef(null),[Kp,Xg]=K.split("-"),CN=Hn.useMemo(()=>B.reduce((po,Fc,Fl)=>Fl>=Wh?po:po+Fc.height,0),[B,Wh]),IN=FPn(),GR=A.invert||x,kA=Ca==="loading";Kh.current=Hn.useMemo(()=>Wh*he+CN,[Wh,CN]),Hn.useEffect(()=>{ai.current=Wp},[Wp]),Hn.useEffect(()=>{kt(!0)},[]),Hn.useEffect(()=>{const po=Xs.current;if(po){const Fc=po.getBoundingClientRect().height;return Hi(Fc),L(Fl=>[{toastId:A.id,height:Fc,position:A.position},...Fl]),()=>L(Fl=>Fl.filter(Af=>Af.toastId!==A.id))}},[L,A.id]),Hn.useLayoutEffect(()=>{if(!bt)return;const po=Xs.current,Fc=po.style.height;po.style.height="auto";const Fl=po.getBoundingClientRect().height;po.style.height=Fc,Hi(Fl),L(Af=>Af.find(pl=>pl.toastId===A.id)?Af.map(pl=>pl.toastId===A.id?{...pl,height:Fl}:pl):[{toastId:A.id,height:Fl,position:A.position},...Af])},[bt,A.title,A.description,L,A.id,A.jsx,A.action,A.cancel]);const yb=Hn.useCallback(()=>{Xt(!0),Ui(Kh.current),L(po=>po.filter(Fc=>Fc.toastId!==A.id)),setTimeout(()=>{G(A)},XPn)},[A,G,L,Kh]);Hn.useEffect(()=>{if(A.promise&&Ca==="loading"||A.duration===1/0||A.type==="loading")return;let po;return P||R||IN?(()=>{if(X2.current{ai.current!==1/0&&(Ow.current=new Date().getTime(),po=setTimeout(()=>{A.onAutoClose==null||A.onAutoClose.call(A,A),yb()},ai.current))})(),()=>clearTimeout(po)},[P,R,A,Ca,IN,yb]),Hn.useEffect(()=>{A.delete&&(yb(),A.onDismiss==null||A.onDismiss.call(A,A))},[yb,A.delete]);function qR(){var po;if(Le!=null&&Le.loading){var Fc;return Hn.createElement("div",{className:_2(Se==null?void 0:Se.loader,A==null||(Fc=A.classNames)==null?void 0:Fc.loader,"sonner-loader"),"data-visible":Ca==="loading"},Le.loading)}return Hn.createElement(OPn,{className:_2(Se==null?void 0:Se.loader,A==null||(po=A.classNames)==null?void 0:po.loader),visible:Ca==="loading"})}const VR=A.icon||(Le==null?void 0:Le[Ca])||IPn(Ca);var RN,ON;return Hn.createElement("li",{tabIndex:0,ref:Xs,className:_2(me,mb,Se==null?void 0:Se.toast,A==null||(i=A.classNames)==null?void 0:i.toast,Se==null?void 0:Se.default,Se==null?void 0:Se[Ca],A==null||(s=A.classNames)==null?void 0:s[Ca]),"data-sonner-toast":"","data-rich-colors":(RN=A.richColors)!=null?RN:ee,"data-styled":!(A.jsx||A.unstyled||C),"data-mounted":bt,"data-promise":!!A.promise,"data-swiped":Zn,"data-removed":ht,"data-visible":Qo,"data-y-position":Kp,"data-x-position":Xg,"data-index":$,"data-front":ls,"data-swiping":vt,"data-dismissible":Ni,"data-type":Ca,"data-invert":GR,"data-swipe-out":Ft,"data-swipe-direction":dt,"data-expanded":!!(P||Oe&&bt),"data-testid":A.testId,style:{"--index":$,"--toasts-before":$,"--z-index":j.length-$,"--offset":`${ht?vr:Kh.current}px`,"--initial-height":Oe?"auto":`${Qr}px`,...Q,...A.style},onDragEnd:()=>{Ct(!1),We(null),Jg.current=null},onPointerDown:po=>{po.button!==2&&(kA||!Ni||(jc.current=new Date,Ui(Kh.current),po.target.setPointerCapture(po.pointerId),po.target.tagName!=="BUTTON"&&(Ct(!0),Jg.current={x:po.clientX,y:po.clientY})))},onPointerUp:()=>{var po,Fc,Fl;if(Ft||!Ni)return;Jg.current=null;const Af=Number(((po=Xs.current)==null?void 0:po.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Z2=Number(((Fc=Xs.current)==null?void 0:Fc.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),pl=new Date().getTime()-((Fl=jc.current)==null?void 0:Fl.getTime()),sh=xe==="x"?Af:Z2,Vm=Math.abs(sh)/pl;if(Math.abs(sh)>=JPn||Vm>.11){Ui(Kh.current),A.onDismiss==null||A.onDismiss.call(A,A),Ue(xe==="x"?Af>0?"right":"left":Z2>0?"down":"up"),yb(),On(!0);return}else{var ah,Yh;(ah=Xs.current)==null||ah.style.setProperty("--swipe-amount-x","0px"),(Yh=Xs.current)==null||Yh.style.setProperty("--swipe-amount-y","0px")}Yn(!1),Ct(!1),We(null)},onPointerMove:po=>{var Fc,Fl,Af;if(!Jg.current||!Ni||((Fc=window.getSelection())==null?void 0:Fc.toString().length)>0)return;const pl=po.clientY-Jg.current.y,sh=po.clientX-Jg.current.x;var Vm;const ah=(Vm=n.swipeDirections)!=null?Vm:ZPn(K);!xe&&(Math.abs(sh)>1||Math.abs(pl)>1)&&We(Math.abs(sh)>Math.abs(pl)?"x":"y");let Yh={x:0,y:0};const Q2=Wm=>1/(1.5+Math.abs(Wm)/20);if(xe==="y"){if(ah.includes("top")||ah.includes("bottom"))if(ah.includes("top")&&pl<0||ah.includes("bottom")&&pl>0)Yh.y=pl;else{const Wm=pl*Q2(pl);Yh.y=Math.abs(Wm)0)Yh.x=sh;else{const Wm=sh*Q2(sh);Yh.x=Math.abs(Wm)0||Math.abs(Yh.y)>0)&&Yn(!0),(Fl=Xs.current)==null||Fl.style.setProperty("--swipe-amount-x",`${Yh.x}px`),(Af=Xs.current)==null||Af.style.setProperty("--swipe-amount-y",`${Yh.y}px`)}},wb&&!A.jsx&&Ca!=="loading"?Hn.createElement("button",{"aria-label":Ae,"data-disabled":kA,"data-close-button":!0,onClick:kA||!Ni?()=>{}:()=>{yb(),A.onDismiss==null||A.onDismiss.call(A,A)},className:_2(Se==null?void 0:Se.closeButton,A==null||(c=A.classNames)==null?void 0:c.closeButton)},(ON=Le==null?void 0:Le.close)!=null?ON:jPn):null,(Ca||A.icon||A.promise)&&A.icon!==null&&((Le==null?void 0:Le[Ca])!==null||A.icon)?Hn.createElement("div",{"data-icon":"",className:_2(Se==null?void 0:Se.icon,A==null||(d=A.classNames)==null?void 0:d.icon)},A.promise||A.type==="loading"&&!A.icon?A.icon||qR():null,A.type!=="loading"?VR:null):null,Hn.createElement("div",{"data-content":"",className:_2(Se==null?void 0:Se.content,A==null||(g=A.classNames)==null?void 0:g.content)},Hn.createElement("div",{"data-title":"",className:_2(Se==null?void 0:Se.title,A==null||(b=A.classNames)==null?void 0:b.title)},A.jsx?A.jsx:typeof A.title=="function"?A.title():A.title),A.description?Hn.createElement("div",{"data-description":"",className:_2(le,Yg,Se==null?void 0:Se.description,A==null||(w=A.classNames)==null?void 0:w.description)},typeof A.description=="function"?A.description():A.description):null),Hn.isValidElement(A.cancel)?A.cancel:A.cancel&&vie(A.cancel)?Hn.createElement("button",{"data-button":!0,"data-cancel":!0,style:A.cancelButtonStyle||ie,onClick:po=>{vie(A.cancel)&&Ni&&(A.cancel.onClick==null||A.cancel.onClick.call(A.cancel,po),yb())},className:_2(Se==null?void 0:Se.cancelButton,A==null||(E=A.classNames)==null?void 0:E.cancelButton)},A.cancel.label):null,Hn.isValidElement(A.action)?A.action:A.action&&vie(A.action)?Hn.createElement("button",{"data-button":!0,"data-action":!0,style:A.actionButtonStyle||pe,onClick:po=>{vie(A.action)&&(A.action.onClick==null||A.action.onClick.call(A.action,po),!po.defaultPrevented&&yb())},className:_2(Se==null?void 0:Se.actionButton,A==null||(S=A.classNames)==null?void 0:S.actionButton)},A.action.label):null)};function k9t(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function ejn(n,i){const s={};return[n,i].forEach((c,d)=>{const g=d===1,b=g?"--mobile-offset":"--offset",w=g?WPn:VPn;function E(S){["top","right","bottom","left"].forEach(x=>{s[`${b}-${x}`]=typeof S=="number"?`${S}px`:S})}typeof c=="number"||typeof c=="string"?E(c):typeof c=="object"?["top","right","bottom","left"].forEach(S=>{c[S]===void 0?s[`${b}-${S}`]=w:s[`${b}-${S}`]=typeof c[S]=="number"?`${c[S]}px`:c[S]}):E(w)}),s}const tjn=Hn.forwardRef(function(i,s){const{id:c,invert:d,position:g="bottom-right",hotkey:b=["altKey","KeyT"],expand:w,closeButton:E,className:S,offset:x,mobileOffset:A,theme:C="light",richColors:R,duration:L,style:D,visibleToasts:B=qPn,toastOptions:$,dir:j=k9t(),gap:P=YPn,icons:G,containerAriaLabel:ee="Notifications"}=i,[re,Q]=Hn.useState([]),ie=Hn.useMemo(()=>c?re.filter(bt=>bt.toasterId===c):re.filter(bt=>!bt.toasterId),[re,c]),pe=Hn.useMemo(()=>Array.from(new Set([g].concat(ie.filter(bt=>bt.position).map(bt=>bt.position)))),[ie,g]),[me,le]=Hn.useState([]),[fe,K]=Hn.useState(!1),[he,Oe]=Hn.useState(!1),[Se,Le]=Hn.useState(C!=="system"?C:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Ae=Hn.useRef(null),xe=b.join("+").replace(/Key/g,"").replace(/Digit/g,""),We=Hn.useRef(null),dt=Hn.useRef(!1),Ue=Hn.useCallback(bt=>{Q(kt=>{var ht;return(ht=kt.find(Xt=>Xt.id===bt.id))!=null&&ht.delete||nb.dismiss(bt.id),kt.filter(({id:Xt})=>Xt!==bt.id)})},[]);return Hn.useEffect(()=>nb.subscribe(bt=>{if(bt.dismiss){requestAnimationFrame(()=>{Q(kt=>kt.map(ht=>ht.id===bt.id?{...ht,delete:!0}:ht))});return}setTimeout(()=>{aHt.flushSync(()=>{Q(kt=>{const ht=kt.findIndex(Xt=>Xt.id===bt.id);return ht!==-1?[...kt.slice(0,ht),{...kt[ht],...bt},...kt.slice(ht+1)]:[bt,...kt]})})})}),[re]),Hn.useEffect(()=>{if(C!=="system"){Le(C);return}if(C==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Le("dark"):Le("light")),typeof window>"u")return;const bt=window.matchMedia("(prefers-color-scheme: dark)");try{bt.addEventListener("change",({matches:kt})=>{Le(kt?"dark":"light")})}catch{bt.addListener(({matches:ht})=>{try{Le(ht?"dark":"light")}catch(Xt){console.error(Xt)}})}},[C]),Hn.useEffect(()=>{re.length<=1&&K(!1)},[re]),Hn.useEffect(()=>{const bt=kt=>{var ht;if(b.every(Ct=>kt[Ct]||kt.code===Ct)){var vt;K(!0),(vt=Ae.current)==null||vt.focus()}kt.code==="Escape"&&(document.activeElement===Ae.current||(ht=Ae.current)!=null&&ht.contains(document.activeElement))&&K(!1)};return document.addEventListener("keydown",bt),()=>document.removeEventListener("keydown",bt)},[b]),Hn.useEffect(()=>{if(Ae.current)return()=>{We.current&&(We.current.focus({preventScroll:!0}),We.current=null,dt.current=!1)}},[Ae.current]),Hn.createElement("section",{ref:s,"aria-label":`${ee} ${xe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},pe.map((bt,kt)=>{var ht;const[Xt,vt]=bt.split("-");return ie.length?Hn.createElement("ol",{key:bt,dir:j==="auto"?k9t():j,tabIndex:-1,ref:Ae,className:S,"data-sonner-toaster":!0,"data-sonner-theme":Se,"data-y-position":Xt,"data-x-position":vt,style:{"--front-toast-height":`${((ht=me[0])==null?void 0:ht.height)||0}px`,"--width":`${KPn}px`,"--gap":`${P}px`,...D,...ejn(x,A)},onBlur:Ct=>{dt.current&&!Ct.currentTarget.contains(Ct.relatedTarget)&&(dt.current=!1,We.current&&(We.current.focus({preventScroll:!0}),We.current=null))},onFocus:Ct=>{Ct.target instanceof HTMLElement&&Ct.target.dataset.dismissible==="false"||dt.current||(dt.current=!0,We.current=Ct.relatedTarget)},onMouseEnter:()=>K(!0),onMouseMove:()=>K(!0),onMouseLeave:()=>{he||K(!1)},onDragEnd:()=>K(!1),onPointerDown:Ct=>{Ct.target instanceof HTMLElement&&Ct.target.dataset.dismissible==="false"||Oe(!0)},onPointerUp:()=>Oe(!1)},ie.filter(Ct=>!Ct.position&&kt===0||Ct.position===bt).map((Ct,Ft)=>{var On,Zn;return Hn.createElement(QPn,{key:Ct.id,icons:G,index:Ft,toast:Ct,defaultRichColors:R,duration:(On=$==null?void 0:$.duration)!=null?On:L,className:$==null?void 0:$.className,descriptionClassName:$==null?void 0:$.descriptionClassName,invert:d,visibleToasts:B,closeButton:(Zn=$==null?void 0:$.closeButton)!=null?Zn:E,interacting:he,position:bt,style:$==null?void 0:$.style,unstyled:$==null?void 0:$.unstyled,classNames:$==null?void 0:$.classNames,cancelButtonStyle:$==null?void 0:$.cancelButtonStyle,actionButtonStyle:$==null?void 0:$.actionButtonStyle,closeButtonAriaLabel:$==null?void 0:$.closeButtonAriaLabel,removeToast:Ue,toasts:ie.filter(Yn=>Yn.position==Ct.position),heights:me.filter(Yn=>Yn.position==Ct.position),setHeights:le,expandByDefault:w,gap:P,expanded:fe,swipeDirections:i.swipeDirections})})):null}))});var N9t=1,njn=.9,rjn=.8,ijn=.17,WCe=.1,KCe=.999,ojn=.9999,sjn=.99,ajn=/[\\\/_+.#"@\[\(\{&]/,ujn=/[\\\/_+.#"@\[\(\{&]/g,cjn=/[\s-]/,vGt=/[\s-]/g;function vDe(n,i,s,c,d,g,b){if(g===i.length)return d===n.length?N9t:sjn;var w=`${d},${g}`;if(b[w]!==void 0)return b[w];for(var E=c.charAt(g),S=s.indexOf(E,d),x=0,A,C,R,L;S>=0;)A=vDe(n,i,s,c,S+1,g+1,b),A>x&&(S===d?A*=N9t:ajn.test(n.charAt(S-1))?(A*=rjn,R=n.slice(d,S-1).match(ujn),R&&d>0&&(A*=Math.pow(KCe,R.length))):cjn.test(n.charAt(S-1))?(A*=njn,L=n.slice(d,S-1).match(vGt),L&&d>0&&(A*=Math.pow(KCe,L.length))):(A*=ijn,d>0&&(A*=Math.pow(KCe,S-d))),n.charAt(S)!==i.charAt(g)&&(A*=ojn)),(AA&&(A=C*WCe)),A>x&&(x=A),S=s.indexOf(E,S+1);return b[w]=x,x}function C9t(n){return n.toLowerCase().replace(vGt," ")}function ljn(n,i,s){return n=s&&s.length>0?`${n+" "+s.join(" ")}`:n,vDe(n,i,C9t(n),C9t(i),0,0,{})}function Dr(n,i,{checkForDefaultPrevented:s=!0}={}){return function(d){if(n==null||n(d),s===!1||!d.defaultPrevented)return i==null?void 0:i(d)}}function I9t(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function zg(...n){return i=>{let s=!1;const c=n.map(d=>{const g=I9t(d,i);return!s&&typeof g=="function"&&(s=!0),g});if(s)return()=>{for(let d=0;d{const{children:b,...w}=g,E=H.useMemo(()=>w,Object.values(w));return I.jsx(s.Provider,{value:E,children:b})};c.displayName=n+"Provider";function d(g){const b=H.useContext(s);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${g}\` must be used within \`${n}\``)}return[c,d]}function xw(n,i=[]){let s=[];function c(g,b){const w=H.createContext(b),E=s.length;s=[...s,b];const S=A=>{var $;const{scope:C,children:R,...L}=A,D=(($=C==null?void 0:C[n])==null?void 0:$[E])||w,B=H.useMemo(()=>L,Object.values(L));return I.jsx(D.Provider,{value:B,children:R})};S.displayName=g+"Provider";function x(A,C){var D;const R=((D=C==null?void 0:C[n])==null?void 0:D[E])||w,L=H.useContext(R);if(L)return L;if(b!==void 0)return b;throw new Error(`\`${A}\` must be used within \`${g}\``)}return[S,x]}const d=()=>{const g=s.map(b=>H.createContext(b));return function(w){const E=(w==null?void 0:w[n])||g;return H.useMemo(()=>({[`__scope${n}`]:{...w,[n]:E}}),[w,E])}};return d.scopeName=n,[c,fjn(d,...i)]}function fjn(...n){const i=n[0];if(n.length===1)return i;const s=()=>{const c=n.map(d=>({useScope:d(),scopeName:d.scopeName}));return function(g){const b=c.reduce((w,{useScope:E,scopeName:S})=>{const A=E(g)[`__scope${S}`];return{...w,...A}},{});return H.useMemo(()=>({[`__scope${i.scopeName}`]:b}),[b])}};return s.scopeName=i.scopeName,s}var Hp=globalThis!=null&&globalThis.document?H.useLayoutEffect:()=>{},hjn=ILe[" useId ".trim().toString()]||(()=>{}),pjn=0;function Bh(n){const[i,s]=H.useState(hjn());return Hp(()=>{s(c=>c??String(pjn++))},[n]),i?`radix-${i}`:""}var gjn=ILe[" useInsertionEffect ".trim().toString()]||Hp;function G2({prop:n,defaultProp:i,onChange:s=()=>{},caller:c}){const[d,g,b]=bjn({defaultProp:i,onChange:s}),w=n!==void 0,E=w?n:d;{const x=H.useRef(n!==void 0);H.useEffect(()=>{const A=x.current;A!==w&&console.warn(`${c} is changing from ${A?"controlled":"uncontrolled"} to ${w?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=w},[w,c])}const S=H.useCallback(x=>{var A;if(w){const C=mjn(x)?x(n):x;C!==n&&((A=b.current)==null||A.call(b,C))}else g(x)},[w,n,g,b]);return[E,S]}function bjn({defaultProp:n,onChange:i}){const[s,c]=H.useState(n),d=H.useRef(s),g=H.useRef(i);return gjn(()=>{g.current=i},[i]),H.useEffect(()=>{var b;d.current!==s&&((b=g.current)==null||b.call(g,s),d.current=s)},[s,d]),[s,c,g]}function mjn(n){return typeof n=="function"}function wjn(n){const i=yjn(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(Ejn);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function yjn(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=Tjn(d),w=Sjn(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var vjn=Symbol("radix.slottable");function Ejn(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===vjn}function Sjn(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function Tjn(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var Ajn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],no=Ajn.reduce((n,i)=>{const s=wjn(`Primitive.${i}`),c=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return c.displayName=`Primitive.${i}`,{...n,[i]:c}},{});function EGt(n,i){n&&xR.flushSync(()=>n.dispatchEvent(i))}function q2(n){const i=H.useRef(n);return H.useEffect(()=>{i.current=n}),H.useMemo(()=>(...s)=>{var c;return(c=i.current)==null?void 0:c.call(i,...s)},[])}function _jn(n,i=globalThis==null?void 0:globalThis.document){const s=q2(n);H.useEffect(()=>{const c=d=>{d.key==="Escape"&&s(d)};return i.addEventListener("keydown",c,{capture:!0}),()=>i.removeEventListener("keydown",c,{capture:!0})},[s,i])}var xjn="DismissableLayer",EDe="dismissableLayer.update",kjn="dismissableLayer.pointerDownOutside",Njn="dismissableLayer.focusOutside",R9t,SGt=H.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kz=H.forwardRef((n,i)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:g,onInteractOutside:b,onDismiss:w,...E}=n,S=H.useContext(SGt),[x,A]=H.useState(null),C=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,R]=H.useState({}),L=hs(i,Q=>A(Q)),D=Array.from(S.layers),[B]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),$=D.indexOf(B),j=x?D.indexOf(x):-1,P=S.layersWithOutsidePointerEventsDisabled.size>0,G=j>=$,ee=Rjn(Q=>{const ie=Q.target,pe=[...S.branches].some(me=>me.contains(ie));!G||pe||(d==null||d(Q),b==null||b(Q),Q.defaultPrevented||w==null||w())},C),re=Ojn(Q=>{const ie=Q.target;[...S.branches].some(me=>me.contains(ie))||(g==null||g(Q),b==null||b(Q),Q.defaultPrevented||w==null||w())},C);return _jn(Q=>{j===S.layers.size-1&&(c==null||c(Q),!Q.defaultPrevented&&w&&(Q.preventDefault(),w()))},C),H.useEffect(()=>{if(x)return s&&(S.layersWithOutsidePointerEventsDisabled.size===0&&(R9t=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(x)),S.layers.add(x),O9t(),()=>{s&&S.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=R9t)}},[x,C,s,S]),H.useEffect(()=>()=>{x&&(S.layers.delete(x),S.layersWithOutsidePointerEventsDisabled.delete(x),O9t())},[x,S]),H.useEffect(()=>{const Q=()=>R({});return document.addEventListener(EDe,Q),()=>document.removeEventListener(EDe,Q)},[]),I.jsx(no.div,{...E,ref:L,style:{pointerEvents:P?G?"auto":"none":void 0,...n.style},onFocusCapture:Dr(n.onFocusCapture,re.onFocusCapture),onBlurCapture:Dr(n.onBlurCapture,re.onBlurCapture),onPointerDownCapture:Dr(n.onPointerDownCapture,ee.onPointerDownCapture)})});kz.displayName=xjn;var Cjn="DismissableLayerBranch",Ijn=H.forwardRef((n,i)=>{const s=H.useContext(SGt),c=H.useRef(null),d=hs(i,c);return H.useEffect(()=>{const g=c.current;if(g)return s.branches.add(g),()=>{s.branches.delete(g)}},[s.branches]),I.jsx(no.div,{...n,ref:d})});Ijn.displayName=Cjn;function Rjn(n,i=globalThis==null?void 0:globalThis.document){const s=q2(n),c=H.useRef(!1),d=H.useRef(()=>{});return H.useEffect(()=>{const g=w=>{if(w.target&&!c.current){let E=function(){TGt(kjn,s,S,{discrete:!0})};const S={originalEvent:w};w.pointerType==="touch"?(i.removeEventListener("click",d.current),d.current=E,i.addEventListener("click",d.current,{once:!0})):E()}else i.removeEventListener("click",d.current);c.current=!1},b=window.setTimeout(()=>{i.addEventListener("pointerdown",g)},0);return()=>{window.clearTimeout(b),i.removeEventListener("pointerdown",g),i.removeEventListener("click",d.current)}},[i,s]),{onPointerDownCapture:()=>c.current=!0}}function Ojn(n,i=globalThis==null?void 0:globalThis.document){const s=q2(n),c=H.useRef(!1);return H.useEffect(()=>{const d=g=>{g.target&&!c.current&&TGt(Njn,s,{originalEvent:g},{discrete:!1})};return i.addEventListener("focusin",d),()=>i.removeEventListener("focusin",d)},[i,s]),{onFocusCapture:()=>c.current=!0,onBlurCapture:()=>c.current=!1}}function O9t(){const n=new CustomEvent(EDe);document.dispatchEvent(n)}function TGt(n,i,s,{discrete:c}){const d=s.originalEvent.target,g=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:s});i&&d.addEventListener(n,i,{once:!0}),c?EGt(d,g):d.dispatchEvent(g)}var YCe="focusScope.autoFocusOnMount",JCe="focusScope.autoFocusOnUnmount",D9t={bubbles:!1,cancelable:!0},Djn="FocusScope",Nz=H.forwardRef((n,i)=>{const{loop:s=!1,trapped:c=!1,onMountAutoFocus:d,onUnmountAutoFocus:g,...b}=n,[w,E]=H.useState(null),S=q2(d),x=q2(g),A=H.useRef(null),C=hs(i,D=>E(D)),R=H.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;H.useEffect(()=>{if(c){let D=function(P){if(R.paused||!w)return;const G=P.target;w.contains(G)?A.current=G:Dk(A.current,{select:!0})},B=function(P){if(R.paused||!w)return;const G=P.relatedTarget;G!==null&&(w.contains(G)||Dk(A.current,{select:!0}))},$=function(P){if(document.activeElement===document.body)for(const ee of P)ee.removedNodes.length>0&&Dk(w)};document.addEventListener("focusin",D),document.addEventListener("focusout",B);const j=new MutationObserver($);return w&&j.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",D),document.removeEventListener("focusout",B),j.disconnect()}}},[c,w,R.paused]),H.useEffect(()=>{if(w){M9t.add(R);const D=document.activeElement;if(!w.contains(D)){const $=new CustomEvent(YCe,D9t);w.addEventListener(YCe,S),w.dispatchEvent($),$.defaultPrevented||(Ljn($jn(AGt(w)),{select:!0}),document.activeElement===D&&Dk(w))}return()=>{w.removeEventListener(YCe,S),setTimeout(()=>{const $=new CustomEvent(JCe,D9t);w.addEventListener(JCe,x),w.dispatchEvent($),$.defaultPrevented||Dk(D??document.body,{select:!0}),w.removeEventListener(JCe,x),M9t.remove(R)},0)}}},[w,S,x,R]);const L=H.useCallback(D=>{if(!s&&!c||R.paused)return;const B=D.key==="Tab"&&!D.altKey&&!D.ctrlKey&&!D.metaKey,$=document.activeElement;if(B&&$){const j=D.currentTarget,[P,G]=Mjn(j);P&&G?!D.shiftKey&&$===G?(D.preventDefault(),s&&Dk(P,{select:!0})):D.shiftKey&&$===P&&(D.preventDefault(),s&&Dk(G,{select:!0})):$===j&&D.preventDefault()}},[s,c,R.paused]);return I.jsx(no.div,{tabIndex:-1,...b,ref:C,onKeyDown:L})});Nz.displayName=Djn;function Ljn(n,{select:i=!1}={}){const s=document.activeElement;for(const c of n)if(Dk(c,{select:i}),document.activeElement!==s)return}function Mjn(n){const i=AGt(n),s=L9t(i,n),c=L9t(i.reverse(),n);return[s,c]}function AGt(n){const i=[],s=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:c=>{const d=c.tagName==="INPUT"&&c.type==="hidden";return c.disabled||c.hidden||d?NodeFilter.FILTER_SKIP:c.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)i.push(s.currentNode);return i}function L9t(n,i){for(const s of n)if(!Pjn(s,{upTo:i}))return s}function Pjn(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function jjn(n){return n instanceof HTMLInputElement&&"select"in n}function Dk(n,{select:i=!1}={}){if(n&&n.focus){const s=document.activeElement;n.focus({preventScroll:!0}),n!==s&&jjn(n)&&i&&n.select()}}var M9t=Fjn();function Fjn(){let n=[];return{add(i){const s=n[0];i!==s&&(s==null||s.pause()),n=P9t(n,i),n.unshift(i)},remove(i){var s;n=P9t(n,i),(s=n[0])==null||s.resume()}}}function P9t(n,i){const s=[...n],c=s.indexOf(i);return c!==-1&&s.splice(c,1),s}function $jn(n){return n.filter(i=>i.tagName!=="A")}var Bjn="Portal",Cz=H.forwardRef((n,i)=>{var w;const{container:s,...c}=n,[d,g]=H.useState(!1);Hp(()=>g(!0),[]);const b=s||d&&((w=globalThis==null?void 0:globalThis.document)==null?void 0:w.body);return b?aHt.createPortal(I.jsx(no.div,{...c,ref:i}),b):null});Cz.displayName=Bjn;function Ujn(n,i){return H.useReducer((s,c)=>i[s][c]??s,n)}var kw=n=>{const{present:i,children:s}=n,c=Hjn(i),d=typeof s=="function"?s({present:c.isPresent}):H.Children.only(s),g=hs(c.ref,zjn(d));return typeof s=="function"||c.isPresent?H.cloneElement(d,{ref:g}):null};kw.displayName="Presence";function Hjn(n){const[i,s]=H.useState(),c=H.useRef(null),d=H.useRef(n),g=H.useRef("none"),b=n?"mounted":"unmounted",[w,E]=Ujn(b,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return H.useEffect(()=>{const S=Eie(c.current);g.current=w==="mounted"?S:"none"},[w]),Hp(()=>{const S=c.current,x=d.current;if(x!==n){const C=g.current,R=Eie(S);n?E("MOUNT"):R==="none"||(S==null?void 0:S.display)==="none"?E("UNMOUNT"):E(x&&C!==R?"ANIMATION_OUT":"UNMOUNT"),d.current=n}},[n,E]),Hp(()=>{if(i){let S;const x=i.ownerDocument.defaultView??window,A=R=>{const D=Eie(c.current).includes(CSS.escape(R.animationName));if(R.target===i&&D&&(E("ANIMATION_END"),!d.current)){const B=i.style.animationFillMode;i.style.animationFillMode="forwards",S=x.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=B)})}},C=R=>{R.target===i&&(g.current=Eie(c.current))};return i.addEventListener("animationstart",C),i.addEventListener("animationcancel",A),i.addEventListener("animationend",A),()=>{x.clearTimeout(S),i.removeEventListener("animationstart",C),i.removeEventListener("animationcancel",A),i.removeEventListener("animationend",A)}}else E("ANIMATION_END")},[i,E]),{isPresent:["mounted","unmountSuspended"].includes(w),ref:H.useCallback(S=>{c.current=S?getComputedStyle(S):null,s(S)},[])}}function Eie(n){return(n==null?void 0:n.animationName)||"none"}function zjn(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var XCe=0;function sae(){H.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??j9t()),document.body.insertAdjacentElement("beforeend",n[1]??j9t()),XCe++,()=>{XCe===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),XCe--}},[])}function j9t(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var O2=function(){return O2=Object.assign||function(i){for(var s,c=1,d=arguments.length;c"u")return s7n;var i=a7n(n),s=document.documentElement.clientWidth,c=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,c-s+i[2]-i[0])}},c7n=NGt(),rM="data-scroll-locked",l7n=function(n,i,s,c){var d=n.left,g=n.top,b=n.right,w=n.gap;return s===void 0&&(s="margin"),` + .`.concat(qjn,` { + overflow: hidden `).concat(c,`; + padding-right: `).concat(w,"px ").concat(c,`; + } + body[`).concat(rM,`] { + overflow: hidden `).concat(c,`; + overscroll-behavior: contain; + `).concat([i&&"position: relative ".concat(c,";"),s==="margin"&&` + padding-left: `.concat(d,`px; + padding-top: `).concat(g,`px; + padding-right: `).concat(b,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(w,"px ").concat(c,`; + `),s==="padding"&&"padding-right: ".concat(w,"px ").concat(c,";")].filter(Boolean).join(""),` + } + + .`).concat(noe,` { + right: `).concat(w,"px ").concat(c,`; + } + + .`).concat(roe,` { + margin-right: `).concat(w,"px ").concat(c,`; + } + + .`).concat(noe," .").concat(noe,` { + right: 0 `).concat(c,`; + } + + .`).concat(roe," .").concat(roe,` { + margin-right: 0 `).concat(c,`; + } + + body[`).concat(rM,`] { + `).concat(Vjn,": ").concat(w,`px; + } +`)},$9t=function(){var n=parseInt(document.body.getAttribute(rM)||"0",10);return isFinite(n)?n:0},d7n=function(){H.useEffect(function(){return document.body.setAttribute(rM,($9t()+1).toString()),function(){var n=$9t()-1;n<=0?document.body.removeAttribute(rM):document.body.setAttribute(rM,n.toString())}},[])},f7n=function(n){var i=n.noRelative,s=n.noImportant,c=n.gapMode,d=c===void 0?"margin":c;d7n();var g=H.useMemo(function(){return u7n(d)},[d]);return H.createElement(c7n,{styles:l7n(g,!i,d,s?"":"!important")})},SDe=!1;if(typeof window<"u")try{var Sie=Object.defineProperty({},"passive",{get:function(){return SDe=!0,!0}});window.addEventListener("test",Sie,Sie),window.removeEventListener("test",Sie,Sie)}catch{SDe=!1}var w5=SDe?{passive:!1}:!1,h7n=function(n){return n.tagName==="TEXTAREA"},CGt=function(n,i){if(!(n instanceof Element))return!1;var s=window.getComputedStyle(n);return s[i]!=="hidden"&&!(s.overflowY===s.overflowX&&!h7n(n)&&s[i]==="visible")},p7n=function(n){return CGt(n,"overflowY")},g7n=function(n){return CGt(n,"overflowX")},B9t=function(n,i){var s=i.ownerDocument,c=i;do{typeof ShadowRoot<"u"&&c instanceof ShadowRoot&&(c=c.host);var d=IGt(n,c);if(d){var g=RGt(n,c),b=g[1],w=g[2];if(b>w)return!0}c=c.parentNode}while(c&&c!==s.body);return!1},b7n=function(n){var i=n.scrollTop,s=n.scrollHeight,c=n.clientHeight;return[i,s,c]},m7n=function(n){var i=n.scrollLeft,s=n.scrollWidth,c=n.clientWidth;return[i,s,c]},IGt=function(n,i){return n==="v"?p7n(i):g7n(i)},RGt=function(n,i){return n==="v"?b7n(i):m7n(i)},w7n=function(n,i){return n==="h"&&i==="rtl"?-1:1},y7n=function(n,i,s,c,d){var g=w7n(n,window.getComputedStyle(i).direction),b=g*c,w=s.target,E=i.contains(w),S=!1,x=b>0,A=0,C=0;do{if(!w)break;var R=RGt(n,w),L=R[0],D=R[1],B=R[2],$=D-B-g*L;(L||$)&&IGt(n,w)&&(A+=$,C+=L);var j=w.parentNode;w=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!E&&w!==document.body||E&&(i.contains(w)||i===w));return(x&&Math.abs(A)<1||!x&&Math.abs(C)<1)&&(S=!0),S},Tie=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},U9t=function(n){return[n.deltaX,n.deltaY]},H9t=function(n){return n&&"current"in n?n.current:n},v7n=function(n,i){return n[0]===i[0]&&n[1]===i[1]},E7n=function(n){return` + .block-interactivity-`.concat(n,` {pointer-events: none;} + .allow-interactivity-`).concat(n,` {pointer-events: all;} +`)},S7n=0,y5=[];function T7n(n){var i=H.useRef([]),s=H.useRef([0,0]),c=H.useRef(),d=H.useState(S7n++)[0],g=H.useState(NGt)[0],b=H.useRef(n);H.useEffect(function(){b.current=n},[n]),H.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(d));var D=Gjn([n.lockRef.current],(n.shards||[]).map(H9t),!0).filter(Boolean);return D.forEach(function(B){return B.classList.add("allow-interactivity-".concat(d))}),function(){document.body.classList.remove("block-interactivity-".concat(d)),D.forEach(function(B){return B.classList.remove("allow-interactivity-".concat(d))})}}},[n.inert,n.lockRef.current,n.shards]);var w=H.useCallback(function(D,B){if("touches"in D&&D.touches.length===2||D.type==="wheel"&&D.ctrlKey)return!b.current.allowPinchZoom;var $=Tie(D),j=s.current,P="deltaX"in D?D.deltaX:j[0]-$[0],G="deltaY"in D?D.deltaY:j[1]-$[1],ee,re=D.target,Q=Math.abs(P)>Math.abs(G)?"h":"v";if("touches"in D&&Q==="h"&&re.type==="range")return!1;var ie=window.getSelection(),pe=ie&&ie.anchorNode,me=pe?pe===re||pe.contains(re):!1;if(me)return!1;var le=B9t(Q,re);if(!le)return!0;if(le?ee=Q:(ee=Q==="v"?"h":"v",le=B9t(Q,re)),!le)return!1;if(!c.current&&"changedTouches"in D&&(P||G)&&(c.current=ee),!ee)return!0;var fe=c.current||ee;return y7n(fe,B,D,fe==="h"?P:G)},[]),E=H.useCallback(function(D){var B=D;if(!(!y5.length||y5[y5.length-1]!==g)){var $="deltaY"in B?U9t(B):Tie(B),j=i.current.filter(function(ee){return ee.name===B.type&&(ee.target===B.target||B.target===ee.shadowParent)&&v7n(ee.delta,$)})[0];if(j&&j.should){B.cancelable&&B.preventDefault();return}if(!j){var P=(b.current.shards||[]).map(H9t).filter(Boolean).filter(function(ee){return ee.contains(B.target)}),G=P.length>0?w(B,P[0]):!b.current.noIsolation;G&&B.cancelable&&B.preventDefault()}}},[]),S=H.useCallback(function(D,B,$,j){var P={name:D,delta:B,target:$,should:j,shadowParent:A7n($)};i.current.push(P),setTimeout(function(){i.current=i.current.filter(function(G){return G!==P})},1)},[]),x=H.useCallback(function(D){s.current=Tie(D),c.current=void 0},[]),A=H.useCallback(function(D){S(D.type,U9t(D),D.target,w(D,n.lockRef.current))},[]),C=H.useCallback(function(D){S(D.type,Tie(D),D.target,w(D,n.lockRef.current))},[]);H.useEffect(function(){return y5.push(g),n.setCallbacks({onScrollCapture:A,onWheelCapture:A,onTouchMoveCapture:C}),document.addEventListener("wheel",E,w5),document.addEventListener("touchmove",E,w5),document.addEventListener("touchstart",x,w5),function(){y5=y5.filter(function(D){return D!==g}),document.removeEventListener("wheel",E,w5),document.removeEventListener("touchmove",E,w5),document.removeEventListener("touchstart",x,w5)}},[]);var R=n.removeScrollBar,L=n.inert;return H.createElement(H.Fragment,null,L?H.createElement(g,{styles:E7n(d)}):null,R?H.createElement(f7n,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function A7n(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const _7n=Qjn(kGt,T7n);var Iz=H.forwardRef(function(n,i){return H.createElement(aae,O2({},n,{ref:i,sideCar:_7n}))});Iz.classNames=aae.classNames;var x7n=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},v5=new WeakMap,Aie=new WeakMap,_ie={},tIe=0,OGt=function(n){return n&&(n.host||OGt(n.parentNode))},k7n=function(n,i){return i.map(function(s){if(n.contains(s))return s;var c=OGt(s);return c&&n.contains(c)?c:(console.error("aria-hidden",s,"in not contained inside",n,". Doing nothing"),null)}).filter(function(s){return!!s})},N7n=function(n,i,s,c){var d=k7n(i,Array.isArray(n)?n:[n]);_ie[s]||(_ie[s]=new WeakMap);var g=_ie[s],b=[],w=new Set,E=new Set(d),S=function(A){!A||w.has(A)||(w.add(A),S(A.parentNode))};d.forEach(S);var x=function(A){!A||E.has(A)||Array.prototype.forEach.call(A.children,function(C){if(w.has(C))x(C);else try{var R=C.getAttribute(c),L=R!==null&&R!=="false",D=(v5.get(C)||0)+1,B=(g.get(C)||0)+1;v5.set(C,D),g.set(C,B),b.push(C),D===1&&L&&Aie.set(C,!0),B===1&&C.setAttribute(s,"true"),L||C.setAttribute(c,"true")}catch($){console.error("aria-hidden: cannot operate on ",C,$)}})};return x(i),w.clear(),tIe++,function(){b.forEach(function(A){var C=v5.get(A)-1,R=g.get(A)-1;v5.set(A,C),g.set(A,R),C||(Aie.has(A)||A.removeAttribute(c),Aie.delete(A)),R||A.removeAttribute(s)}),tIe--,tIe||(v5=new WeakMap,v5=new WeakMap,Aie=new WeakMap,_ie={})}},uae=function(n,i,s){s===void 0&&(s="data-aria-hidden");var c=Array.from(Array.isArray(n)?n:[n]),d=x7n(n);return d?(c.push.apply(c,Array.from(d.querySelectorAll("[aria-live], script"))),N7n(c,d,s,"aria-hidden")):function(){return null}};function C7n(n){const i=I7n(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(O7n);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function I7n(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=L7n(d),w=D7n(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var R7n=Symbol("radix.slottable");function O7n(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===R7n}function D7n(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function L7n(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var cae="Dialog",[DGt]=xw(cae),[M7n,Uv]=DGt(cae),LGt=n=>{const{__scopeDialog:i,children:s,open:c,defaultOpen:d,onOpenChange:g,modal:b=!0}=n,w=H.useRef(null),E=H.useRef(null),[S,x]=G2({prop:c,defaultProp:d??!1,onChange:g,caller:cae});return I.jsx(M7n,{scope:i,triggerRef:w,contentRef:E,contentId:Bh(),titleId:Bh(),descriptionId:Bh(),open:S,onOpenChange:x,onOpenToggle:H.useCallback(()=>x(A=>!A),[x]),modal:b,children:s})};LGt.displayName=cae;var MGt="DialogTrigger",P7n=H.forwardRef((n,i)=>{const{__scopeDialog:s,...c}=n,d=Uv(MGt,s),g=hs(i,d.triggerRef);return I.jsx(no.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.contentId,"data-state":H5e(d.open),...c,ref:g,onClick:Dr(n.onClick,d.onOpenToggle)})});P7n.displayName=MGt;var B5e="DialogPortal",[j7n,PGt]=DGt(B5e,{forceMount:void 0}),jGt=n=>{const{__scopeDialog:i,forceMount:s,children:c,container:d}=n,g=Uv(B5e,i);return I.jsx(j7n,{scope:i,forceMount:s,children:H.Children.map(c,b=>I.jsx(kw,{present:s||g.open,children:I.jsx(Cz,{asChild:!0,container:d,children:b})}))})};jGt.displayName=B5e;var Yoe="DialogOverlay",FGt=H.forwardRef((n,i)=>{const s=PGt(Yoe,n.__scopeDialog),{forceMount:c=s.forceMount,...d}=n,g=Uv(Yoe,n.__scopeDialog);return g.modal?I.jsx(kw,{present:c||g.open,children:I.jsx($7n,{...d,ref:i})}):null});FGt.displayName=Yoe;var F7n=C7n("DialogOverlay.RemoveScroll"),$7n=H.forwardRef((n,i)=>{const{__scopeDialog:s,...c}=n,d=Uv(Yoe,s);return I.jsx(Iz,{as:F7n,allowPinchZoom:!0,shards:[d.contentRef],children:I.jsx(no.div,{"data-state":H5e(d.open),...c,ref:i,style:{pointerEvents:"auto",...c.style}})})}),bR="DialogContent",$Gt=H.forwardRef((n,i)=>{const s=PGt(bR,n.__scopeDialog),{forceMount:c=s.forceMount,...d}=n,g=Uv(bR,n.__scopeDialog);return I.jsx(kw,{present:c||g.open,children:g.modal?I.jsx(B7n,{...d,ref:i}):I.jsx(U7n,{...d,ref:i})})});$Gt.displayName=bR;var B7n=H.forwardRef((n,i)=>{const s=Uv(bR,n.__scopeDialog),c=H.useRef(null),d=hs(i,s.contentRef,c);return H.useEffect(()=>{const g=c.current;if(g)return uae(g)},[]),I.jsx(BGt,{...n,ref:d,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Dr(n.onCloseAutoFocus,g=>{var b;g.preventDefault(),(b=s.triggerRef.current)==null||b.focus()}),onPointerDownOutside:Dr(n.onPointerDownOutside,g=>{const b=g.detail.originalEvent,w=b.button===0&&b.ctrlKey===!0;(b.button===2||w)&&g.preventDefault()}),onFocusOutside:Dr(n.onFocusOutside,g=>g.preventDefault())})}),U7n=H.forwardRef((n,i)=>{const s=Uv(bR,n.__scopeDialog),c=H.useRef(!1),d=H.useRef(!1);return I.jsx(BGt,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:g=>{var b,w;(b=n.onCloseAutoFocus)==null||b.call(n,g),g.defaultPrevented||(c.current||(w=s.triggerRef.current)==null||w.focus(),g.preventDefault()),c.current=!1,d.current=!1},onInteractOutside:g=>{var E,S;(E=n.onInteractOutside)==null||E.call(n,g),g.defaultPrevented||(c.current=!0,g.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const b=g.target;((S=s.triggerRef.current)==null?void 0:S.contains(b))&&g.preventDefault(),g.detail.originalEvent.type==="focusin"&&d.current&&g.preventDefault()}})}),BGt=H.forwardRef((n,i)=>{const{__scopeDialog:s,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:g,...b}=n,w=Uv(bR,s),E=H.useRef(null),S=hs(i,E);return sae(),I.jsxs(I.Fragment,{children:[I.jsx(Nz,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:d,onUnmountAutoFocus:g,children:I.jsx(kz,{role:"dialog",id:w.contentId,"aria-describedby":w.descriptionId,"aria-labelledby":w.titleId,"data-state":H5e(w.open),...b,ref:S,onDismiss:()=>w.onOpenChange(!1)})}),I.jsxs(I.Fragment,{children:[I.jsx(H7n,{titleId:w.titleId}),I.jsx(G7n,{contentRef:E,descriptionId:w.descriptionId})]})]})}),U5e="DialogTitle",UGt=H.forwardRef((n,i)=>{const{__scopeDialog:s,...c}=n,d=Uv(U5e,s);return I.jsx(no.h2,{id:d.titleId,...c,ref:i})});UGt.displayName=U5e;var HGt="DialogDescription",zGt=H.forwardRef((n,i)=>{const{__scopeDialog:s,...c}=n,d=Uv(HGt,s);return I.jsx(no.p,{id:d.descriptionId,...c,ref:i})});zGt.displayName=HGt;var GGt="DialogClose",qGt=H.forwardRef((n,i)=>{const{__scopeDialog:s,...c}=n,d=Uv(GGt,s);return I.jsx(no.button,{type:"button",...c,ref:i,onClick:Dr(n.onClick,()=>d.onOpenChange(!1))})});qGt.displayName=GGt;function H5e(n){return n?"open":"closed"}var VGt="DialogTitleWarning",[Vgr,WGt]=djn(VGt,{contentName:bR,titleName:U5e,docsSlug:"dialog"}),H7n=({titleId:n})=>{const i=WGt(VGt),s=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return H.useEffect(()=>{n&&(document.getElementById(n)||console.error(s))},[s,n]),null},z7n="DialogDescriptionWarning",G7n=({contentRef:n,descriptionId:i})=>{const c=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${WGt(z7n).contentName}}.`;return H.useEffect(()=>{var g;const d=(g=n.current)==null?void 0:g.getAttribute("aria-describedby");i&&d&&(document.getElementById(i)||console.warn(c))},[c,n,i]),null},KGt=LGt,YGt=jGt,z5e=FGt,G5e=$Gt,JGt=UGt,XGt=zGt,q7n=qGt,V7n=Symbol.for("react.lazy"),Joe=ILe[" use ".trim().toString()];function W7n(n){return typeof n=="object"&&n!==null&&"then"in n}function ZGt(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===V7n&&"_payload"in n&&W7n(n._payload)}function lae(n){const i=Y7n(n),s=H.forwardRef((c,d)=>{let{children:g,...b}=c;ZGt(g)&&typeof Joe=="function"&&(g=Joe(g._payload));const w=H.Children.toArray(g),E=w.find(X7n);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}var K7n=lae("Slot");function Y7n(n){const i=H.forwardRef((s,c)=>{let{children:d,...g}=s;if(ZGt(d)&&typeof Joe=="function"&&(d=Joe(d._payload)),H.isValidElement(d)){const b=Q7n(d),w=Z7n(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var J7n=Symbol("radix.slottable");function X7n(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===J7n}function Z7n(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function Q7n(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var eFn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vN=eFn.reduce((n,i)=>{const s=lae(`Primitive.${i}`),c=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return c.displayName=`Primitive.${i}`,{...n,[i]:c}},{}),BU='[cmdk-group=""]',nIe='[cmdk-group-items=""]',tFn='[cmdk-group-heading=""]',QGt='[cmdk-item=""]',z9t=`${QGt}:not([aria-disabled="true"])`,TDe="cmdk-item-select",A5="data-value",nFn=(n,i,s)=>ljn(n,i,s),eqt=H.createContext(void 0),Rz=()=>H.useContext(eqt),tqt=H.createContext(void 0),q5e=()=>H.useContext(tqt),nqt=H.createContext(void 0),rqt=H.forwardRef((n,i)=>{let s=_5(()=>{var Ue,bt;return{search:"",value:(bt=(Ue=n.value)!=null?Ue:n.defaultValue)!=null?bt:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),c=_5(()=>new Set),d=_5(()=>new Map),g=_5(()=>new Map),b=_5(()=>new Set),w=iqt(n),{label:E,children:S,value:x,onValueChange:A,filter:C,shouldFilter:R,loop:L,disablePointerSelection:D=!1,vimBindings:B=!0,...$}=n,j=Bh(),P=Bh(),G=Bh(),ee=H.useRef(null),re=hFn();mR(()=>{if(x!==void 0){let Ue=x.trim();s.current.value=Ue,Q.emit()}},[x]),mR(()=>{re(6,K)},[]);let Q=H.useMemo(()=>({subscribe:Ue=>(b.current.add(Ue),()=>b.current.delete(Ue)),snapshot:()=>s.current,setState:(Ue,bt,kt)=>{var ht,Xt,vt,Ct;if(!Object.is(s.current[Ue],bt)){if(s.current[Ue]=bt,Ue==="search")fe(),me(),re(1,le);else if(Ue==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Ft=document.getElementById(G);Ft?Ft.focus():(ht=document.getElementById(j))==null||ht.focus()}if(re(7,()=>{var Ft;s.current.selectedItemId=(Ft=he())==null?void 0:Ft.id,Q.emit()}),kt||re(5,K),((Xt=w.current)==null?void 0:Xt.value)!==void 0){let Ft=bt??"";(Ct=(vt=w.current).onValueChange)==null||Ct.call(vt,Ft);return}}Q.emit()}},emit:()=>{b.current.forEach(Ue=>Ue())}}),[]),ie=H.useMemo(()=>({value:(Ue,bt,kt)=>{var ht;bt!==((ht=g.current.get(Ue))==null?void 0:ht.value)&&(g.current.set(Ue,{value:bt,keywords:kt}),s.current.filtered.items.set(Ue,pe(bt,kt)),re(2,()=>{me(),Q.emit()}))},item:(Ue,bt)=>(c.current.add(Ue),bt&&(d.current.has(bt)?d.current.get(bt).add(Ue):d.current.set(bt,new Set([Ue]))),re(3,()=>{fe(),me(),s.current.value||le(),Q.emit()}),()=>{g.current.delete(Ue),c.current.delete(Ue),s.current.filtered.items.delete(Ue);let kt=he();re(4,()=>{fe(),(kt==null?void 0:kt.getAttribute("id"))===Ue&&le(),Q.emit()})}),group:Ue=>(d.current.has(Ue)||d.current.set(Ue,new Set),()=>{g.current.delete(Ue),d.current.delete(Ue)}),filter:()=>w.current.shouldFilter,label:E||n["aria-label"],getDisablePointerSelection:()=>w.current.disablePointerSelection,listId:j,inputId:G,labelId:P,listInnerRef:ee}),[]);function pe(Ue,bt){var kt,ht;let Xt=(ht=(kt=w.current)==null?void 0:kt.filter)!=null?ht:nFn;return Ue?Xt(Ue,s.current.search,bt):0}function me(){if(!s.current.search||w.current.shouldFilter===!1)return;let Ue=s.current.filtered.items,bt=[];s.current.filtered.groups.forEach(ht=>{let Xt=d.current.get(ht),vt=0;Xt.forEach(Ct=>{let Ft=Ue.get(Ct);vt=Math.max(Ft,vt)}),bt.push([ht,vt])});let kt=ee.current;Oe().sort((ht,Xt)=>{var vt,Ct;let Ft=ht.getAttribute("id"),On=Xt.getAttribute("id");return((vt=Ue.get(On))!=null?vt:0)-((Ct=Ue.get(Ft))!=null?Ct:0)}).forEach(ht=>{let Xt=ht.closest(nIe);Xt?Xt.appendChild(ht.parentElement===Xt?ht:ht.closest(`${nIe} > *`)):kt.appendChild(ht.parentElement===kt?ht:ht.closest(`${nIe} > *`))}),bt.sort((ht,Xt)=>Xt[1]-ht[1]).forEach(ht=>{var Xt;let vt=(Xt=ee.current)==null?void 0:Xt.querySelector(`${BU}[${A5}="${encodeURIComponent(ht[0])}"]`);vt==null||vt.parentElement.appendChild(vt)})}function le(){let Ue=Oe().find(kt=>kt.getAttribute("aria-disabled")!=="true"),bt=Ue==null?void 0:Ue.getAttribute(A5);Q.setState("value",bt||void 0)}function fe(){var Ue,bt,kt,ht;if(!s.current.search||w.current.shouldFilter===!1){s.current.filtered.count=c.current.size;return}s.current.filtered.groups=new Set;let Xt=0;for(let vt of c.current){let Ct=(bt=(Ue=g.current.get(vt))==null?void 0:Ue.value)!=null?bt:"",Ft=(ht=(kt=g.current.get(vt))==null?void 0:kt.keywords)!=null?ht:[],On=pe(Ct,Ft);s.current.filtered.items.set(vt,On),On>0&&Xt++}for(let[vt,Ct]of d.current)for(let Ft of Ct)if(s.current.filtered.items.get(Ft)>0){s.current.filtered.groups.add(vt);break}s.current.filtered.count=Xt}function K(){var Ue,bt,kt;let ht=he();ht&&(((Ue=ht.parentElement)==null?void 0:Ue.firstChild)===ht&&((kt=(bt=ht.closest(BU))==null?void 0:bt.querySelector(tFn))==null||kt.scrollIntoView({block:"nearest"})),ht.scrollIntoView({block:"nearest"}))}function he(){var Ue;return(Ue=ee.current)==null?void 0:Ue.querySelector(`${QGt}[aria-selected="true"]`)}function Oe(){var Ue;return Array.from(((Ue=ee.current)==null?void 0:Ue.querySelectorAll(z9t))||[])}function Se(Ue){let bt=Oe()[Ue];bt&&Q.setState("value",bt.getAttribute(A5))}function Le(Ue){var bt;let kt=he(),ht=Oe(),Xt=ht.findIndex(Ct=>Ct===kt),vt=ht[Xt+Ue];(bt=w.current)!=null&&bt.loop&&(vt=Xt+Ue<0?ht[ht.length-1]:Xt+Ue===ht.length?ht[0]:ht[Xt+Ue]),vt&&Q.setState("value",vt.getAttribute(A5))}function Ae(Ue){let bt=he(),kt=bt==null?void 0:bt.closest(BU),ht;for(;kt&&!ht;)kt=Ue>0?dFn(kt,BU):fFn(kt,BU),ht=kt==null?void 0:kt.querySelector(z9t);ht?Q.setState("value",ht.getAttribute(A5)):Le(Ue)}let xe=()=>Se(Oe().length-1),We=Ue=>{Ue.preventDefault(),Ue.metaKey?xe():Ue.altKey?Ae(1):Le(1)},dt=Ue=>{Ue.preventDefault(),Ue.metaKey?Se(0):Ue.altKey?Ae(-1):Le(-1)};return H.createElement(vN.div,{ref:i,tabIndex:-1,...$,"cmdk-root":"",onKeyDown:Ue=>{var bt;(bt=$.onKeyDown)==null||bt.call($,Ue);let kt=Ue.nativeEvent.isComposing||Ue.keyCode===229;if(!(Ue.defaultPrevented||kt))switch(Ue.key){case"n":case"j":{B&&Ue.ctrlKey&&We(Ue);break}case"ArrowDown":{We(Ue);break}case"p":case"k":{B&&Ue.ctrlKey&&dt(Ue);break}case"ArrowUp":{dt(Ue);break}case"Home":{Ue.preventDefault(),Se(0);break}case"End":{Ue.preventDefault(),xe();break}case"Enter":{Ue.preventDefault();let ht=he();if(ht){let Xt=new Event(TDe);ht.dispatchEvent(Xt)}}}}},H.createElement("label",{"cmdk-label":"",htmlFor:ie.inputId,id:ie.labelId,style:gFn},E),dae(n,Ue=>H.createElement(tqt.Provider,{value:Q},H.createElement(eqt.Provider,{value:ie},Ue))))}),rFn=H.forwardRef((n,i)=>{var s,c;let d=Bh(),g=H.useRef(null),b=H.useContext(nqt),w=Rz(),E=iqt(n),S=(c=(s=E.current)==null?void 0:s.forceMount)!=null?c:b==null?void 0:b.forceMount;mR(()=>{if(!S)return w.item(d,b==null?void 0:b.id)},[S]);let x=oqt(d,g,[n.value,n.children,g],n.keywords),A=q5e(),C=sN(re=>re.value&&re.value===x.current),R=sN(re=>S||w.filter()===!1?!0:re.search?re.filtered.items.get(d)>0:!0);H.useEffect(()=>{let re=g.current;if(!(!re||n.disabled))return re.addEventListener(TDe,L),()=>re.removeEventListener(TDe,L)},[R,n.onSelect,n.disabled]);function L(){var re,Q;D(),(Q=(re=E.current).onSelect)==null||Q.call(re,x.current)}function D(){A.setState("value",x.current,!0)}if(!R)return null;let{disabled:B,value:$,onSelect:j,forceMount:P,keywords:G,...ee}=n;return H.createElement(vN.div,{ref:zg(g,i),...ee,id:d,"cmdk-item":"",role:"option","aria-disabled":!!B,"aria-selected":!!C,"data-disabled":!!B,"data-selected":!!C,onPointerMove:B||w.getDisablePointerSelection()?void 0:D,onClick:B?void 0:L},n.children)}),iFn=H.forwardRef((n,i)=>{let{heading:s,children:c,forceMount:d,...g}=n,b=Bh(),w=H.useRef(null),E=H.useRef(null),S=Bh(),x=Rz(),A=sN(R=>d||x.filter()===!1?!0:R.search?R.filtered.groups.has(b):!0);mR(()=>x.group(b),[]),oqt(b,w,[n.value,n.heading,E]);let C=H.useMemo(()=>({id:b,forceMount:d}),[d]);return H.createElement(vN.div,{ref:zg(w,i),...g,"cmdk-group":"",role:"presentation",hidden:A?void 0:!0},s&&H.createElement("div",{ref:E,"cmdk-group-heading":"","aria-hidden":!0,id:S},s),dae(n,R=>H.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":s?S:void 0},H.createElement(nqt.Provider,{value:C},R))))}),oFn=H.forwardRef((n,i)=>{let{alwaysRender:s,...c}=n,d=H.useRef(null),g=sN(b=>!b.search);return!s&&!g?null:H.createElement(vN.div,{ref:zg(d,i),...c,"cmdk-separator":"",role:"separator"})}),sFn=H.forwardRef((n,i)=>{let{onValueChange:s,...c}=n,d=n.value!=null,g=q5e(),b=sN(S=>S.search),w=sN(S=>S.selectedItemId),E=Rz();return H.useEffect(()=>{n.value!=null&&g.setState("search",n.value)},[n.value]),H.createElement(vN.input,{ref:i,...c,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":E.listId,"aria-labelledby":E.labelId,"aria-activedescendant":w,id:E.inputId,type:"text",value:d?n.value:b,onChange:S=>{d||g.setState("search",S.target.value),s==null||s(S.target.value)}})}),aFn=H.forwardRef((n,i)=>{let{children:s,label:c="Suggestions",...d}=n,g=H.useRef(null),b=H.useRef(null),w=sN(S=>S.selectedItemId),E=Rz();return H.useEffect(()=>{if(b.current&&g.current){let S=b.current,x=g.current,A,C=new ResizeObserver(()=>{A=requestAnimationFrame(()=>{let R=S.offsetHeight;x.style.setProperty("--cmdk-list-height",R.toFixed(1)+"px")})});return C.observe(S),()=>{cancelAnimationFrame(A),C.unobserve(S)}}},[]),H.createElement(vN.div,{ref:zg(g,i),...d,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":w,"aria-label":c,id:E.listId},dae(n,S=>H.createElement("div",{ref:zg(b,E.listInnerRef),"cmdk-list-sizer":""},S)))}),uFn=H.forwardRef((n,i)=>{let{open:s,onOpenChange:c,overlayClassName:d,contentClassName:g,container:b,...w}=n;return H.createElement(KGt,{open:s,onOpenChange:c},H.createElement(YGt,{container:b},H.createElement(z5e,{"cmdk-overlay":"",className:d}),H.createElement(G5e,{"aria-label":n.label,"cmdk-dialog":"",className:g},H.createElement(rqt,{ref:i,...w}))))}),cFn=H.forwardRef((n,i)=>sN(s=>s.filtered.count===0)?H.createElement(vN.div,{ref:i,...n,"cmdk-empty":"",role:"presentation"}):null),lFn=H.forwardRef((n,i)=>{let{progress:s,children:c,label:d="Loading...",...g}=n;return H.createElement(vN.div,{ref:i,...g,"cmdk-loading":"",role:"progressbar","aria-valuenow":s,"aria-valuemin":0,"aria-valuemax":100,"aria-label":d},dae(n,b=>H.createElement("div",{"aria-hidden":!0},b)))}),fb=Object.assign(rqt,{List:aFn,Item:rFn,Input:sFn,Group:iFn,Separator:oFn,Dialog:uFn,Empty:cFn,Loading:lFn});function dFn(n,i){let s=n.nextElementSibling;for(;s;){if(s.matches(i))return s;s=s.nextElementSibling}}function fFn(n,i){let s=n.previousElementSibling;for(;s;){if(s.matches(i))return s;s=s.previousElementSibling}}function iqt(n){let i=H.useRef(n);return mR(()=>{i.current=n}),i}var mR=typeof window>"u"?H.useEffect:H.useLayoutEffect;function _5(n){let i=H.useRef();return i.current===void 0&&(i.current=n()),i}function sN(n){let i=q5e(),s=()=>n(i.snapshot());return H.useSyncExternalStore(i.subscribe,s,s)}function oqt(n,i,s,c=[]){let d=H.useRef(),g=Rz();return mR(()=>{var b;let w=(()=>{var S;for(let x of s){if(typeof x=="string")return x.trim();if(typeof x=="object"&&"current"in x)return x.current?(S=x.current.textContent)==null?void 0:S.trim():d.current}})(),E=c.map(S=>S.trim());g.value(n,w,E),(b=i.current)==null||b.setAttribute(A5,w),d.current=w}),d}var hFn=()=>{let[n,i]=H.useState(),s=_5(()=>new Map);return mR(()=>{s.current.forEach(c=>c()),s.current=new Map},[n]),(c,d)=>{s.current.set(c,d),i({})}};function pFn(n){let i=n.type;return typeof i=="function"?i(n.props):"render"in i?i.render(n.props):n}function dae({asChild:n,children:i},s){return n&&H.isValidElement(i)?H.cloneElement(pFn(i),{ref:i.ref},s(i.props.children)):s(i)}var gFn={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function sqt(n){var i,s,c="";if(typeof n=="string"||typeof n=="number")c+=n;else if(typeof n=="object")if(Array.isArray(n)){var d=n.length;for(i=0;i{const i=wFn(n),{conflictingClassGroups:s,conflictingClassGroupModifiers:c}=n;return{getClassGroupId:b=>{const w=b.split(V5e);return w[0]===""&&w.length!==1&&w.shift(),uqt(w,i)||mFn(b)},getConflictingClassGroupIds:(b,w)=>{const E=s[b]||[];return w&&c[b]?[...E,...c[b]]:E}}},uqt=(n,i)=>{var b;if(n.length===0)return i.classGroupId;const s=n[0],c=i.nextPart.get(s),d=c?uqt(n.slice(1),c):void 0;if(d)return d;if(i.validators.length===0)return;const g=n.join(V5e);return(b=i.validators.find(({validator:w})=>w(g)))==null?void 0:b.classGroupId},G9t=/^\[(.+)\]$/,mFn=n=>{if(G9t.test(n)){const i=G9t.exec(n)[1],s=i==null?void 0:i.substring(0,i.indexOf(":"));if(s)return"arbitrary.."+s}},wFn=n=>{const{theme:i,prefix:s}=n,c={nextPart:new Map,validators:[]};return vFn(Object.entries(n.classGroups),s).forEach(([g,b])=>{ADe(b,c,g,i)}),c},ADe=(n,i,s,c)=>{n.forEach(d=>{if(typeof d=="string"){const g=d===""?i:q9t(i,d);g.classGroupId=s;return}if(typeof d=="function"){if(yFn(d)){ADe(d(c),i,s,c);return}i.validators.push({validator:d,classGroupId:s});return}Object.entries(d).forEach(([g,b])=>{ADe(b,q9t(i,g),s,c)})})},q9t=(n,i)=>{let s=n;return i.split(V5e).forEach(c=>{s.nextPart.has(c)||s.nextPart.set(c,{nextPart:new Map,validators:[]}),s=s.nextPart.get(c)}),s},yFn=n=>n.isThemeGetter,vFn=(n,i)=>i?n.map(([s,c])=>{const d=c.map(g=>typeof g=="string"?i+g:typeof g=="object"?Object.fromEntries(Object.entries(g).map(([b,w])=>[i+b,w])):g);return[s,d]}):n,EFn=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,s=new Map,c=new Map;const d=(g,b)=>{s.set(g,b),i++,i>n&&(i=0,c=s,s=new Map)};return{get(g){let b=s.get(g);if(b!==void 0)return b;if((b=c.get(g))!==void 0)return d(g,b),b},set(g,b){s.has(g)?s.set(g,b):d(g,b)}}},cqt="!",SFn=n=>{const{separator:i,experimentalParseClassName:s}=n,c=i.length===1,d=i[0],g=i.length,b=w=>{const E=[];let S=0,x=0,A;for(let B=0;Bx?A-x:void 0;return{modifiers:E,hasImportantModifier:R,baseClassName:L,maybePostfixModifierPosition:D}};return s?w=>s({className:w,parseClassName:b}):b},TFn=n=>{if(n.length<=1)return n;const i=[];let s=[];return n.forEach(c=>{c[0]==="["?(i.push(...s.sort(),c),s=[]):s.push(c)}),i.push(...s.sort()),i},AFn=n=>({cache:EFn(n.cacheSize),parseClassName:SFn(n),...bFn(n)}),_Fn=/\s+/,xFn=(n,i)=>{const{parseClassName:s,getClassGroupId:c,getConflictingClassGroupIds:d}=i,g=[],b=n.trim().split(_Fn);let w="";for(let E=b.length-1;E>=0;E-=1){const S=b[E],{modifiers:x,hasImportantModifier:A,baseClassName:C,maybePostfixModifierPosition:R}=s(S);let L=!!R,D=c(L?C.substring(0,R):C);if(!D){if(!L){w=S+(w.length>0?" "+w:w);continue}if(D=c(C),!D){w=S+(w.length>0?" "+w:w);continue}L=!1}const B=TFn(x).join(":"),$=A?B+cqt:B,j=$+D;if(g.includes(j))continue;g.push(j);const P=d(D,L);for(let G=0;G0?" "+w:w)}return w};function kFn(){let n=0,i,s,c="";for(;n{if(typeof n=="string")return n;let i,s="";for(let c=0;cA(x),n());return s=AFn(S),c=s.cache.get,d=s.cache.set,g=w,w(E)}function w(E){const S=c(E);if(S)return S;const x=xFn(E,s);return d(E,x),x}return function(){return g(kFn.apply(null,arguments))}}const cc=n=>{const i=s=>s[n]||[];return i.isThemeGetter=!0,i},dqt=/^\[(?:([a-z-]+):)?(.+)\]$/i,CFn=/^\d+\/\d+$/,IFn=new Set(["px","full","screen"]),RFn=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OFn=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,DFn=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,LFn=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,MFn=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rA=n=>iM(n)||IFn.has(n)||CFn.test(n),Rk=n=>jM(n,"length",zFn),iM=n=>!!n&&!Number.isNaN(Number(n)),rIe=n=>jM(n,"number",iM),UU=n=>!!n&&Number.isInteger(Number(n)),PFn=n=>n.endsWith("%")&&iM(n.slice(0,-1)),Xo=n=>dqt.test(n),Ok=n=>RFn.test(n),jFn=new Set(["length","size","percentage"]),FFn=n=>jM(n,jFn,fqt),$Fn=n=>jM(n,"position",fqt),BFn=new Set(["image","url"]),UFn=n=>jM(n,BFn,qFn),HFn=n=>jM(n,"",GFn),HU=()=>!0,jM=(n,i,s)=>{const c=dqt.exec(n);return c?c[1]?typeof i=="string"?c[1]===i:i.has(c[1]):s(c[2]):!1},zFn=n=>OFn.test(n)&&!DFn.test(n),fqt=()=>!1,GFn=n=>LFn.test(n),qFn=n=>MFn.test(n),VFn=()=>{const n=cc("colors"),i=cc("spacing"),s=cc("blur"),c=cc("brightness"),d=cc("borderColor"),g=cc("borderRadius"),b=cc("borderSpacing"),w=cc("borderWidth"),E=cc("contrast"),S=cc("grayscale"),x=cc("hueRotate"),A=cc("invert"),C=cc("gap"),R=cc("gradientColorStops"),L=cc("gradientColorStopPositions"),D=cc("inset"),B=cc("margin"),$=cc("opacity"),j=cc("padding"),P=cc("saturate"),G=cc("scale"),ee=cc("sepia"),re=cc("skew"),Q=cc("space"),ie=cc("translate"),pe=()=>["auto","contain","none"],me=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto",Xo,i],fe=()=>[Xo,i],K=()=>["",rA,Rk],he=()=>["auto",iM,Xo],Oe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],Se=()=>["solid","dashed","dotted","double","none"],Le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ae=()=>["start","end","center","between","around","evenly","stretch"],xe=()=>["","0",Xo],We=()=>["auto","avoid","all","avoid-page","page","left","right","column"],dt=()=>[iM,Xo];return{cacheSize:500,separator:":",theme:{colors:[HU],spacing:[rA,Rk],blur:["none","",Ok,Xo],brightness:dt(),borderColor:[n],borderRadius:["none","","full",Ok,Xo],borderSpacing:fe(),borderWidth:K(),contrast:dt(),grayscale:xe(),hueRotate:dt(),invert:xe(),gap:fe(),gradientColorStops:[n],gradientColorStopPositions:[PFn,Rk],inset:le(),margin:le(),opacity:dt(),padding:fe(),saturate:dt(),scale:dt(),sepia:xe(),skew:dt(),space:fe(),translate:fe()},classGroups:{aspect:[{aspect:["auto","square","video",Xo]}],container:["container"],columns:[{columns:[Ok]}],"break-after":[{"break-after":We()}],"break-before":[{"break-before":We()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Oe(),Xo]}],overflow:[{overflow:me()}],"overflow-x":[{"overflow-x":me()}],"overflow-y":[{"overflow-y":me()}],overscroll:[{overscroll:pe()}],"overscroll-x":[{"overscroll-x":pe()}],"overscroll-y":[{"overscroll-y":pe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[D]}],"inset-x":[{"inset-x":[D]}],"inset-y":[{"inset-y":[D]}],start:[{start:[D]}],end:[{end:[D]}],top:[{top:[D]}],right:[{right:[D]}],bottom:[{bottom:[D]}],left:[{left:[D]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",UU,Xo]}],basis:[{basis:le()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Xo]}],grow:[{grow:xe()}],shrink:[{shrink:xe()}],order:[{order:["first","last","none",UU,Xo]}],"grid-cols":[{"grid-cols":[HU]}],"col-start-end":[{col:["auto",{span:["full",UU,Xo]},Xo]}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":[HU]}],"row-start-end":[{row:["auto",{span:[UU,Xo]},Xo]}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Xo]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Xo]}],gap:[{gap:[C]}],"gap-x":[{"gap-x":[C]}],"gap-y":[{"gap-y":[C]}],"justify-content":[{justify:["normal",...Ae()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Ae(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Ae(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[j]}],px:[{px:[j]}],py:[{py:[j]}],ps:[{ps:[j]}],pe:[{pe:[j]}],pt:[{pt:[j]}],pr:[{pr:[j]}],pb:[{pb:[j]}],pl:[{pl:[j]}],m:[{m:[B]}],mx:[{mx:[B]}],my:[{my:[B]}],ms:[{ms:[B]}],me:[{me:[B]}],mt:[{mt:[B]}],mr:[{mr:[B]}],mb:[{mb:[B]}],ml:[{ml:[B]}],"space-x":[{"space-x":[Q]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Q]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Xo,i]}],"min-w":[{"min-w":[Xo,i,"min","max","fit"]}],"max-w":[{"max-w":[Xo,i,"none","full","min","max","fit","prose",{screen:[Ok]},Ok]}],h:[{h:[Xo,i,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Xo,i,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Xo,i,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Xo,i,"auto","min","max","fit"]}],"font-size":[{text:["base",Ok,Rk]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",rIe]}],"font-family":[{font:[HU]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Xo]}],"line-clamp":[{"line-clamp":["none",iM,rIe]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",rA,Xo]}],"list-image":[{"list-image":["none",Xo]}],"list-style-type":[{list:["none","disc","decimal",Xo]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[n]}],"placeholder-opacity":[{"placeholder-opacity":[$]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[n]}],"text-opacity":[{"text-opacity":[$]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",rA,Rk]}],"underline-offset":[{"underline-offset":["auto",rA,Xo]}],"text-decoration-color":[{decoration:[n]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:fe()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Xo]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Xo]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[$]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Oe(),$Fn]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",FFn]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},UFn]}],"bg-color":[{bg:[n]}],"gradient-from-pos":[{from:[L]}],"gradient-via-pos":[{via:[L]}],"gradient-to-pos":[{to:[L]}],"gradient-from":[{from:[R]}],"gradient-via":[{via:[R]}],"gradient-to":[{to:[R]}],rounded:[{rounded:[g]}],"rounded-s":[{"rounded-s":[g]}],"rounded-e":[{"rounded-e":[g]}],"rounded-t":[{"rounded-t":[g]}],"rounded-r":[{"rounded-r":[g]}],"rounded-b":[{"rounded-b":[g]}],"rounded-l":[{"rounded-l":[g]}],"rounded-ss":[{"rounded-ss":[g]}],"rounded-se":[{"rounded-se":[g]}],"rounded-ee":[{"rounded-ee":[g]}],"rounded-es":[{"rounded-es":[g]}],"rounded-tl":[{"rounded-tl":[g]}],"rounded-tr":[{"rounded-tr":[g]}],"rounded-br":[{"rounded-br":[g]}],"rounded-bl":[{"rounded-bl":[g]}],"border-w":[{border:[w]}],"border-w-x":[{"border-x":[w]}],"border-w-y":[{"border-y":[w]}],"border-w-s":[{"border-s":[w]}],"border-w-e":[{"border-e":[w]}],"border-w-t":[{"border-t":[w]}],"border-w-r":[{"border-r":[w]}],"border-w-b":[{"border-b":[w]}],"border-w-l":[{"border-l":[w]}],"border-opacity":[{"border-opacity":[$]}],"border-style":[{border:[...Se(),"hidden"]}],"divide-x":[{"divide-x":[w]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[w]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[$]}],"divide-style":[{divide:Se()}],"border-color":[{border:[d]}],"border-color-x":[{"border-x":[d]}],"border-color-y":[{"border-y":[d]}],"border-color-s":[{"border-s":[d]}],"border-color-e":[{"border-e":[d]}],"border-color-t":[{"border-t":[d]}],"border-color-r":[{"border-r":[d]}],"border-color-b":[{"border-b":[d]}],"border-color-l":[{"border-l":[d]}],"divide-color":[{divide:[d]}],"outline-style":[{outline:["",...Se()]}],"outline-offset":[{"outline-offset":[rA,Xo]}],"outline-w":[{outline:[rA,Rk]}],"outline-color":[{outline:[n]}],"ring-w":[{ring:K()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[n]}],"ring-opacity":[{"ring-opacity":[$]}],"ring-offset-w":[{"ring-offset":[rA,Rk]}],"ring-offset-color":[{"ring-offset":[n]}],shadow:[{shadow:["","inner","none",Ok,HFn]}],"shadow-color":[{shadow:[HU]}],opacity:[{opacity:[$]}],"mix-blend":[{"mix-blend":[...Le(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Le()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[c]}],contrast:[{contrast:[E]}],"drop-shadow":[{"drop-shadow":["","none",Ok,Xo]}],grayscale:[{grayscale:[S]}],"hue-rotate":[{"hue-rotate":[x]}],invert:[{invert:[A]}],saturate:[{saturate:[P]}],sepia:[{sepia:[ee]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[c]}],"backdrop-contrast":[{"backdrop-contrast":[E]}],"backdrop-grayscale":[{"backdrop-grayscale":[S]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[x]}],"backdrop-invert":[{"backdrop-invert":[A]}],"backdrop-opacity":[{"backdrop-opacity":[$]}],"backdrop-saturate":[{"backdrop-saturate":[P]}],"backdrop-sepia":[{"backdrop-sepia":[ee]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[b]}],"border-spacing-x":[{"border-spacing-x":[b]}],"border-spacing-y":[{"border-spacing-y":[b]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Xo]}],duration:[{duration:dt()}],ease:[{ease:["linear","in","out","in-out",Xo]}],delay:[{delay:dt()}],animate:[{animate:["none","spin","ping","pulse","bounce",Xo]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[G]}],"scale-x":[{"scale-x":[G]}],"scale-y":[{"scale-y":[G]}],rotate:[{rotate:[UU,Xo]}],"translate-x":[{"translate-x":[ie]}],"translate-y":[{"translate-y":[ie]}],"skew-x":[{"skew-x":[re]}],"skew-y":[{"skew-y":[re]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Xo]}],accent:[{accent:["auto",n]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Xo]}],"caret-color":[{caret:[n]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":fe()}],"scroll-mx":[{"scroll-mx":fe()}],"scroll-my":[{"scroll-my":fe()}],"scroll-ms":[{"scroll-ms":fe()}],"scroll-me":[{"scroll-me":fe()}],"scroll-mt":[{"scroll-mt":fe()}],"scroll-mr":[{"scroll-mr":fe()}],"scroll-mb":[{"scroll-mb":fe()}],"scroll-ml":[{"scroll-ml":fe()}],"scroll-p":[{"scroll-p":fe()}],"scroll-px":[{"scroll-px":fe()}],"scroll-py":[{"scroll-py":fe()}],"scroll-ps":[{"scroll-ps":fe()}],"scroll-pe":[{"scroll-pe":fe()}],"scroll-pt":[{"scroll-pt":fe()}],"scroll-pr":[{"scroll-pr":fe()}],"scroll-pb":[{"scroll-pb":fe()}],"scroll-pl":[{"scroll-pl":fe()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Xo]}],fill:[{fill:[n,"none"]}],"stroke-w":[{stroke:[rA,Rk,rIe]}],stroke:[{stroke:[n,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},WFn=NFn(VFn);function Sr(...n){return WFn(aqt(n))}function W5e(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const i=Math.random()*16|0;return(n==="x"?i:i&3|8).toString(16)})}let KFn=0;function Xoe(n){return`${n}_${Date.now()}_${KFn++}`}const wR=KGt,YFn=YGt,hqt=H.forwardRef(({className:n,...i},s)=>I.jsx(z5e,{ref:s,className:Sr("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-40 bg-black/80 data-[state=closed]:animate-out data-[state=open]:animate-in",n),...i}));hqt.displayName=z5e.displayName;const aN=H.forwardRef(({className:n,children:i,container:s,...c},d)=>{const{t:g}=ps(["common"]);return I.jsxs(YFn,{container:s,children:[I.jsx(hqt,{}),I.jsxs(G5e,{ref:d,className:Sr("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:rounded-lg",n),...c,children:[i,I.jsxs(q7n,{className:"absolute top-4 right-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[I.jsx(oae,{className:"h-4 w-4"}),I.jsx("span",{className:"sr-only",children:g("buttons.close")})]})]})]})});aN.displayName=G5e.displayName;const uN=({className:n,...i})=>I.jsx("div",{className:Sr("flex flex-col space-y-1.5 text-center sm:text-left",n),...i});uN.displayName="DialogHeader";const cN=H.forwardRef(({className:n,...i},s)=>I.jsx(JGt,{ref:s,className:Sr("font-semibold text-lg leading-none tracking-tight",n),...i}));cN.displayName=JGt.displayName;const lN=H.forwardRef(({className:n,...i},s)=>I.jsx(XGt,{ref:s,className:Sr("text-muted-foreground text-sm",n),...i}));lN.displayName=XGt.displayName;const fae=H.forwardRef(({className:n,...i},s)=>I.jsx(fb,{ref:s,className:Sr("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",n),...i}));fae.displayName=fb.displayName;const hae=H.forwardRef(({className:n,...i},s)=>I.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[I.jsx(bGt,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),I.jsx(fb.Input,{ref:s,autoComplete:"off",className:Sr("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",n),...i})]}));hae.displayName=fb.Input.displayName;const pae=H.forwardRef(({className:n,...i},s)=>I.jsx(fb.List,{ref:s,className:Sr("max-h-[300px] overflow-y-auto overflow-x-hidden",n),...i}));pae.displayName=fb.List.displayName;const gae=H.forwardRef((n,i)=>I.jsx(fb.Empty,{ref:i,className:"py-6 text-center text-sm",...n}));gae.displayName=fb.Empty.displayName;const ez=H.forwardRef(({className:n,...i},s)=>I.jsx(fb.Group,{ref:s,className:Sr("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs",n),...i}));ez.displayName=fb.Group.displayName;const JFn=H.forwardRef(({className:n,...i},s)=>I.jsx(fb.Separator,{ref:s,className:Sr("-mx-1 h-px bg-border",n),...i}));JFn.displayName=fb.Separator.displayName;const tz=H.forwardRef(({className:n,...i},s)=>I.jsx(fb.Item,{ref:s,className:Sr("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n),...i}));tz.displayName=fb.Item.displayName;const XFn=["top","right","bottom","left"],dN=Math.min,Mm=Math.max,Zoe=Math.round,xie=Math.floor,$2=n=>({x:n,y:n}),ZFn={left:"right",right:"left",bottom:"top",top:"bottom"},QFn={start:"end",end:"start"};function _De(n,i,s){return Mm(n,dN(i,s))}function vA(n,i){return typeof n=="function"?n(i):n}function EA(n){return n.split("-")[0]}function FM(n){return n.split("-")[1]}function K5e(n){return n==="x"?"y":"x"}function Y5e(n){return n==="y"?"height":"width"}const e$n=new Set(["top","bottom"]);function L2(n){return e$n.has(EA(n))?"y":"x"}function J5e(n){return K5e(L2(n))}function t$n(n,i,s){s===void 0&&(s=!1);const c=FM(n),d=J5e(n),g=Y5e(d);let b=d==="x"?c===(s?"end":"start")?"right":"left":c==="start"?"bottom":"top";return i.reference[g]>i.floating[g]&&(b=Qoe(b)),[b,Qoe(b)]}function n$n(n){const i=Qoe(n);return[xDe(n),i,xDe(i)]}function xDe(n){return n.replace(/start|end/g,i=>QFn[i])}const V9t=["left","right"],W9t=["right","left"],r$n=["top","bottom"],i$n=["bottom","top"];function o$n(n,i,s){switch(n){case"top":case"bottom":return s?i?W9t:V9t:i?V9t:W9t;case"left":case"right":return i?r$n:i$n;default:return[]}}function s$n(n,i,s,c){const d=FM(n);let g=o$n(EA(n),s==="start",c);return d&&(g=g.map(b=>b+"-"+d),i&&(g=g.concat(g.map(xDe)))),g}function Qoe(n){return n.replace(/left|right|bottom|top/g,i=>ZFn[i])}function a$n(n){return{top:0,right:0,bottom:0,left:0,...n}}function pqt(n){return typeof n!="number"?a$n(n):{top:n,right:n,bottom:n,left:n}}function ese(n){const{x:i,y:s,width:c,height:d}=n;return{width:c,height:d,top:s,left:i,right:i+c,bottom:s+d,x:i,y:s}}function K9t(n,i,s){let{reference:c,floating:d}=n;const g=L2(i),b=J5e(i),w=Y5e(b),E=EA(i),S=g==="y",x=c.x+c.width/2-d.width/2,A=c.y+c.height/2-d.height/2,C=c[w]/2-d[w]/2;let R;switch(E){case"top":R={x,y:c.y-d.height};break;case"bottom":R={x,y:c.y+c.height};break;case"right":R={x:c.x+c.width,y:A};break;case"left":R={x:c.x-d.width,y:A};break;default:R={x:c.x,y:c.y}}switch(FM(i)){case"start":R[b]-=C*(s&&S?-1:1);break;case"end":R[b]+=C*(s&&S?-1:1);break}return R}const u$n=async(n,i,s)=>{const{placement:c="bottom",strategy:d="absolute",middleware:g=[],platform:b}=s,w=g.filter(Boolean),E=await(b.isRTL==null?void 0:b.isRTL(i));let S=await b.getElementRects({reference:n,floating:i,strategy:d}),{x,y:A}=K9t(S,c,E),C=c,R={},L=0;for(let D=0;D({name:"arrow",options:n,async fn(i){const{x:s,y:c,placement:d,rects:g,platform:b,elements:w,middlewareData:E}=i,{element:S,padding:x=0}=vA(n,i)||{};if(S==null)return{};const A=pqt(x),C={x:s,y:c},R=J5e(d),L=Y5e(R),D=await b.getDimensions(S),B=R==="y",$=B?"top":"left",j=B?"bottom":"right",P=B?"clientHeight":"clientWidth",G=g.reference[L]+g.reference[R]-C[R]-g.floating[L],ee=C[R]-g.reference[R],re=await(b.getOffsetParent==null?void 0:b.getOffsetParent(S));let Q=re?re[P]:0;(!Q||!await(b.isElement==null?void 0:b.isElement(re)))&&(Q=w.floating[P]||g.floating[L]);const ie=G/2-ee/2,pe=Q/2-D[L]/2-1,me=dN(A[$],pe),le=dN(A[j],pe),fe=me,K=Q-D[L]-le,he=Q/2-D[L]/2+ie,Oe=_De(fe,he,K),Se=!E.arrow&&FM(d)!=null&&he!==Oe&&g.reference[L]/2-(hehe<=0)){var le,fe;const he=(((le=g.flip)==null?void 0:le.index)||0)+1,Oe=Q[he];if(Oe&&(!(A==="alignment"?j!==L2(Oe):!1)||me.every(Ae=>L2(Ae.placement)===j?Ae.overflows[0]>0:!0)))return{data:{index:he,overflows:me},reset:{placement:Oe}};let Se=(fe=me.filter(Le=>Le.overflows[0]<=0).sort((Le,Ae)=>Le.overflows[1]-Ae.overflows[1])[0])==null?void 0:fe.placement;if(!Se)switch(R){case"bestFit":{var K;const Le=(K=me.filter(Ae=>{if(re){const xe=L2(Ae.placement);return xe===j||xe==="y"}return!0}).map(Ae=>[Ae.placement,Ae.overflows.filter(xe=>xe>0).reduce((xe,We)=>xe+We,0)]).sort((Ae,xe)=>Ae[1]-xe[1])[0])==null?void 0:K[0];Le&&(Se=Le);break}case"initialPlacement":Se=w;break}if(d!==Se)return{reset:{placement:Se}}}return{}}}};function Y9t(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function J9t(n){return XFn.some(i=>n[i]>=0)}const d$n=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:s}=i,{strategy:c="referenceHidden",...d}=vA(n,i);switch(c){case"referenceHidden":{const g=await nz(i,{...d,elementContext:"reference"}),b=Y9t(g,s.reference);return{data:{referenceHiddenOffsets:b,referenceHidden:J9t(b)}}}case"escaped":{const g=await nz(i,{...d,altBoundary:!0}),b=Y9t(g,s.floating);return{data:{escapedOffsets:b,escaped:J9t(b)}}}default:return{}}}}},gqt=new Set(["left","top"]);async function f$n(n,i){const{placement:s,platform:c,elements:d}=n,g=await(c.isRTL==null?void 0:c.isRTL(d.floating)),b=EA(s),w=FM(s),E=L2(s)==="y",S=gqt.has(b)?-1:1,x=g&&E?-1:1,A=vA(i,n);let{mainAxis:C,crossAxis:R,alignmentAxis:L}=typeof A=="number"?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:A.mainAxis||0,crossAxis:A.crossAxis||0,alignmentAxis:A.alignmentAxis};return w&&typeof L=="number"&&(R=w==="end"?L*-1:L),E?{x:R*x,y:C*S}:{x:C*S,y:R*x}}const h$n=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var s,c;const{x:d,y:g,placement:b,middlewareData:w}=i,E=await f$n(i,n);return b===((s=w.offset)==null?void 0:s.placement)&&(c=w.arrow)!=null&&c.alignmentOffset?{}:{x:d+E.x,y:g+E.y,data:{...E,placement:b}}}}},p$n=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:s,y:c,placement:d}=i,{mainAxis:g=!0,crossAxis:b=!1,limiter:w={fn:B=>{let{x:$,y:j}=B;return{x:$,y:j}}},...E}=vA(n,i),S={x:s,y:c},x=await nz(i,E),A=L2(EA(d)),C=K5e(A);let R=S[C],L=S[A];if(g){const B=C==="y"?"top":"left",$=C==="y"?"bottom":"right",j=R+x[B],P=R-x[$];R=_De(j,R,P)}if(b){const B=A==="y"?"top":"left",$=A==="y"?"bottom":"right",j=L+x[B],P=L-x[$];L=_De(j,L,P)}const D=w.fn({...i,[C]:R,[A]:L});return{...D,data:{x:D.x-s,y:D.y-c,enabled:{[C]:g,[A]:b}}}}}},g$n=function(n){return n===void 0&&(n={}),{options:n,fn(i){const{x:s,y:c,placement:d,rects:g,middlewareData:b}=i,{offset:w=0,mainAxis:E=!0,crossAxis:S=!0}=vA(n,i),x={x:s,y:c},A=L2(d),C=K5e(A);let R=x[C],L=x[A];const D=vA(w,i),B=typeof D=="number"?{mainAxis:D,crossAxis:0}:{mainAxis:0,crossAxis:0,...D};if(E){const P=C==="y"?"height":"width",G=g.reference[C]-g.floating[P]+B.mainAxis,ee=g.reference[C]+g.reference[P]-B.mainAxis;Ree&&(R=ee)}if(S){var $,j;const P=C==="y"?"width":"height",G=gqt.has(EA(d)),ee=g.reference[A]-g.floating[P]+(G&&(($=b.offset)==null?void 0:$[A])||0)+(G?0:B.crossAxis),re=g.reference[A]+g.reference[P]+(G?0:((j=b.offset)==null?void 0:j[A])||0)-(G?B.crossAxis:0);Lre&&(L=re)}return{[C]:R,[A]:L}}}},b$n=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var s,c;const{placement:d,rects:g,platform:b,elements:w}=i,{apply:E=()=>{},...S}=vA(n,i),x=await nz(i,S),A=EA(d),C=FM(d),R=L2(d)==="y",{width:L,height:D}=g.floating;let B,$;A==="top"||A==="bottom"?(B=A,$=C===(await(b.isRTL==null?void 0:b.isRTL(w.floating))?"start":"end")?"left":"right"):($=A,B=C==="end"?"top":"bottom");const j=D-x.top-x.bottom,P=L-x.left-x.right,G=dN(D-x[B],j),ee=dN(L-x[$],P),re=!i.middlewareData.shift;let Q=G,ie=ee;if((s=i.middlewareData.shift)!=null&&s.enabled.x&&(ie=P),(c=i.middlewareData.shift)!=null&&c.enabled.y&&(Q=j),re&&!C){const me=Mm(x.left,0),le=Mm(x.right,0),fe=Mm(x.top,0),K=Mm(x.bottom,0);R?ie=L-2*(me!==0||le!==0?me+le:Mm(x.left,x.right)):Q=D-2*(fe!==0||K!==0?fe+K:Mm(x.top,x.bottom))}await E({...i,availableWidth:ie,availableHeight:Q});const pe=await b.getDimensions(w.floating);return L!==pe.width||D!==pe.height?{reset:{rects:!0}}:{}}}};function bae(){return typeof window<"u"}function $M(n){return bqt(n)?(n.nodeName||"").toLowerCase():"#document"}function Um(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function K2(n){var i;return(i=(bqt(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function bqt(n){return bae()?n instanceof Node||n instanceof Um(n).Node:!1}function jv(n){return bae()?n instanceof Element||n instanceof Um(n).Element:!1}function V2(n){return bae()?n instanceof HTMLElement||n instanceof Um(n).HTMLElement:!1}function X9t(n){return!bae()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Um(n).ShadowRoot}const m$n=new Set(["inline","contents"]);function Oz(n){const{overflow:i,overflowX:s,overflowY:c,display:d}=Fv(n);return/auto|scroll|overlay|hidden|clip/.test(i+c+s)&&!m$n.has(d)}const w$n=new Set(["table","td","th"]);function y$n(n){return w$n.has($M(n))}const v$n=[":popover-open",":modal"];function mae(n){return v$n.some(i=>{try{return n.matches(i)}catch{return!1}})}const E$n=["transform","translate","scale","rotate","perspective"],S$n=["transform","translate","scale","rotate","perspective","filter"],T$n=["paint","layout","strict","content"];function X5e(n){const i=Z5e(),s=jv(n)?Fv(n):n;return E$n.some(c=>s[c]?s[c]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!i&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!i&&(s.filter?s.filter!=="none":!1)||S$n.some(c=>(s.willChange||"").includes(c))||T$n.some(c=>(s.contain||"").includes(c))}function A$n(n){let i=fN(n);for(;V2(i)&&!xM(i);){if(X5e(i))return i;if(mae(i))return null;i=fN(i)}return null}function Z5e(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const _$n=new Set(["html","body","#document"]);function xM(n){return _$n.has($M(n))}function Fv(n){return Um(n).getComputedStyle(n)}function wae(n){return jv(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function fN(n){if($M(n)==="html")return n;const i=n.assignedSlot||n.parentNode||X9t(n)&&n.host||K2(n);return X9t(i)?i.host:i}function mqt(n){const i=fN(n);return xM(i)?n.ownerDocument?n.ownerDocument.body:n.body:V2(i)&&Oz(i)?i:mqt(i)}function rz(n,i,s){var c;i===void 0&&(i=[]),s===void 0&&(s=!0);const d=mqt(n),g=d===((c=n.ownerDocument)==null?void 0:c.body),b=Um(d);if(g){const w=kDe(b);return i.concat(b,b.visualViewport||[],Oz(d)?d:[],w&&s?rz(w):[])}return i.concat(d,rz(d,[],s))}function kDe(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function wqt(n){const i=Fv(n);let s=parseFloat(i.width)||0,c=parseFloat(i.height)||0;const d=V2(n),g=d?n.offsetWidth:s,b=d?n.offsetHeight:c,w=Zoe(s)!==g||Zoe(c)!==b;return w&&(s=g,c=b),{width:s,height:c,$:w}}function Q5e(n){return jv(n)?n:n.contextElement}function oM(n){const i=Q5e(n);if(!V2(i))return $2(1);const s=i.getBoundingClientRect(),{width:c,height:d,$:g}=wqt(i);let b=(g?Zoe(s.width):s.width)/c,w=(g?Zoe(s.height):s.height)/d;return(!b||!Number.isFinite(b))&&(b=1),(!w||!Number.isFinite(w))&&(w=1),{x:b,y:w}}const x$n=$2(0);function yqt(n){const i=Um(n);return!Z5e()||!i.visualViewport?x$n:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function k$n(n,i,s){return i===void 0&&(i=!1),!s||i&&s!==Um(n)?!1:i}function yR(n,i,s,c){i===void 0&&(i=!1),s===void 0&&(s=!1);const d=n.getBoundingClientRect(),g=Q5e(n);let b=$2(1);i&&(c?jv(c)&&(b=oM(c)):b=oM(n));const w=k$n(g,s,c)?yqt(g):$2(0);let E=(d.left+w.x)/b.x,S=(d.top+w.y)/b.y,x=d.width/b.x,A=d.height/b.y;if(g){const C=Um(g),R=c&&jv(c)?Um(c):c;let L=C,D=kDe(L);for(;D&&c&&R!==L;){const B=oM(D),$=D.getBoundingClientRect(),j=Fv(D),P=$.left+(D.clientLeft+parseFloat(j.paddingLeft))*B.x,G=$.top+(D.clientTop+parseFloat(j.paddingTop))*B.y;E*=B.x,S*=B.y,x*=B.x,A*=B.y,E+=P,S+=G,L=Um(D),D=kDe(L)}}return ese({width:x,height:A,x:E,y:S})}function yae(n,i){const s=wae(n).scrollLeft;return i?i.left+s:yR(K2(n)).left+s}function vqt(n,i){const s=n.getBoundingClientRect(),c=s.left+i.scrollLeft-yae(n,s),d=s.top+i.scrollTop;return{x:c,y:d}}function N$n(n){let{elements:i,rect:s,offsetParent:c,strategy:d}=n;const g=d==="fixed",b=K2(c),w=i?mae(i.floating):!1;if(c===b||w&&g)return s;let E={scrollLeft:0,scrollTop:0},S=$2(1);const x=$2(0),A=V2(c);if((A||!A&&!g)&&(($M(c)!=="body"||Oz(b))&&(E=wae(c)),V2(c))){const R=yR(c);S=oM(c),x.x=R.x+c.clientLeft,x.y=R.y+c.clientTop}const C=b&&!A&&!g?vqt(b,E):$2(0);return{width:s.width*S.x,height:s.height*S.y,x:s.x*S.x-E.scrollLeft*S.x+x.x+C.x,y:s.y*S.y-E.scrollTop*S.y+x.y+C.y}}function C$n(n){return Array.from(n.getClientRects())}function I$n(n){const i=K2(n),s=wae(n),c=n.ownerDocument.body,d=Mm(i.scrollWidth,i.clientWidth,c.scrollWidth,c.clientWidth),g=Mm(i.scrollHeight,i.clientHeight,c.scrollHeight,c.clientHeight);let b=-s.scrollLeft+yae(n);const w=-s.scrollTop;return Fv(c).direction==="rtl"&&(b+=Mm(i.clientWidth,c.clientWidth)-d),{width:d,height:g,x:b,y:w}}const Z9t=25;function R$n(n,i){const s=Um(n),c=K2(n),d=s.visualViewport;let g=c.clientWidth,b=c.clientHeight,w=0,E=0;if(d){g=d.width,b=d.height;const x=Z5e();(!x||x&&i==="fixed")&&(w=d.offsetLeft,E=d.offsetTop)}const S=yae(c);if(S<=0){const x=c.ownerDocument,A=x.body,C=getComputedStyle(A),R=x.compatMode==="CSS1Compat"&&parseFloat(C.marginLeft)+parseFloat(C.marginRight)||0,L=Math.abs(c.clientWidth-A.clientWidth-R);L<=Z9t&&(g-=L)}else S<=Z9t&&(g+=S);return{width:g,height:b,x:w,y:E}}const O$n=new Set(["absolute","fixed"]);function D$n(n,i){const s=yR(n,!0,i==="fixed"),c=s.top+n.clientTop,d=s.left+n.clientLeft,g=V2(n)?oM(n):$2(1),b=n.clientWidth*g.x,w=n.clientHeight*g.y,E=d*g.x,S=c*g.y;return{width:b,height:w,x:E,y:S}}function Q9t(n,i,s){let c;if(i==="viewport")c=R$n(n,s);else if(i==="document")c=I$n(K2(n));else if(jv(i))c=D$n(i,s);else{const d=yqt(n);c={x:i.x-d.x,y:i.y-d.y,width:i.width,height:i.height}}return ese(c)}function Eqt(n,i){const s=fN(n);return s===i||!jv(s)||xM(s)?!1:Fv(s).position==="fixed"||Eqt(s,i)}function L$n(n,i){const s=i.get(n);if(s)return s;let c=rz(n,[],!1).filter(w=>jv(w)&&$M(w)!=="body"),d=null;const g=Fv(n).position==="fixed";let b=g?fN(n):n;for(;jv(b)&&!xM(b);){const w=Fv(b),E=X5e(b);!E&&w.position==="fixed"&&(d=null),(g?!E&&!d:!E&&w.position==="static"&&!!d&&O$n.has(d.position)||Oz(b)&&!E&&Eqt(n,b))?c=c.filter(x=>x!==b):d=w,b=fN(b)}return i.set(n,c),c}function M$n(n){let{element:i,boundary:s,rootBoundary:c,strategy:d}=n;const b=[...s==="clippingAncestors"?mae(i)?[]:L$n(i,this._c):[].concat(s),c],w=b[0],E=b.reduce((S,x)=>{const A=Q9t(i,x,d);return S.top=Mm(A.top,S.top),S.right=dN(A.right,S.right),S.bottom=dN(A.bottom,S.bottom),S.left=Mm(A.left,S.left),S},Q9t(i,w,d));return{width:E.right-E.left,height:E.bottom-E.top,x:E.left,y:E.top}}function P$n(n){const{width:i,height:s}=wqt(n);return{width:i,height:s}}function j$n(n,i,s){const c=V2(i),d=K2(i),g=s==="fixed",b=yR(n,!0,g,i);let w={scrollLeft:0,scrollTop:0};const E=$2(0);function S(){E.x=yae(d)}if(c||!c&&!g)if(($M(i)!=="body"||Oz(d))&&(w=wae(i)),c){const R=yR(i,!0,g,i);E.x=R.x+i.clientLeft,E.y=R.y+i.clientTop}else d&&S();g&&!c&&d&&S();const x=d&&!c&&!g?vqt(d,w):$2(0),A=b.left+w.scrollLeft-E.x-x.x,C=b.top+w.scrollTop-E.y-x.y;return{x:A,y:C,width:b.width,height:b.height}}function iIe(n){return Fv(n).position==="static"}function e8t(n,i){if(!V2(n)||Fv(n).position==="fixed")return null;if(i)return i(n);let s=n.offsetParent;return K2(n)===s&&(s=s.ownerDocument.body),s}function Sqt(n,i){const s=Um(n);if(mae(n))return s;if(!V2(n)){let d=fN(n);for(;d&&!xM(d);){if(jv(d)&&!iIe(d))return d;d=fN(d)}return s}let c=e8t(n,i);for(;c&&y$n(c)&&iIe(c);)c=e8t(c,i);return c&&xM(c)&&iIe(c)&&!X5e(c)?s:c||A$n(n)||s}const F$n=async function(n){const i=this.getOffsetParent||Sqt,s=this.getDimensions,c=await s(n.floating);return{reference:j$n(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:c.width,height:c.height}}};function $$n(n){return Fv(n).direction==="rtl"}const B$n={convertOffsetParentRelativeRectToViewportRelativeRect:N$n,getDocumentElement:K2,getClippingRect:M$n,getOffsetParent:Sqt,getElementRects:F$n,getClientRects:C$n,getDimensions:P$n,getScale:oM,isElement:jv,isRTL:$$n};function Tqt(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function U$n(n,i){let s=null,c;const d=K2(n);function g(){var w;clearTimeout(c),(w=s)==null||w.disconnect(),s=null}function b(w,E){w===void 0&&(w=!1),E===void 0&&(E=1),g();const S=n.getBoundingClientRect(),{left:x,top:A,width:C,height:R}=S;if(w||i(),!C||!R)return;const L=xie(A),D=xie(d.clientWidth-(x+C)),B=xie(d.clientHeight-(A+R)),$=xie(x),P={rootMargin:-L+"px "+-D+"px "+-B+"px "+-$+"px",threshold:Mm(0,dN(1,E))||1};let G=!0;function ee(re){const Q=re[0].intersectionRatio;if(Q!==E){if(!G)return b();Q?b(!1,Q):c=setTimeout(()=>{b(!1,1e-7)},1e3)}Q===1&&!Tqt(S,n.getBoundingClientRect())&&b(),G=!1}try{s=new IntersectionObserver(ee,{...P,root:d.ownerDocument})}catch{s=new IntersectionObserver(ee,P)}s.observe(n)}return b(!0),g}function H$n(n,i,s,c){c===void 0&&(c={});const{ancestorScroll:d=!0,ancestorResize:g=!0,elementResize:b=typeof ResizeObserver=="function",layoutShift:w=typeof IntersectionObserver=="function",animationFrame:E=!1}=c,S=Q5e(n),x=d||g?[...S?rz(S):[],...rz(i)]:[];x.forEach($=>{d&&$.addEventListener("scroll",s,{passive:!0}),g&&$.addEventListener("resize",s)});const A=S&&w?U$n(S,s):null;let C=-1,R=null;b&&(R=new ResizeObserver($=>{let[j]=$;j&&j.target===S&&R&&(R.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var P;(P=R)==null||P.observe(i)})),s()}),S&&!E&&R.observe(S),R.observe(i));let L,D=E?yR(n):null;E&&B();function B(){const $=yR(n);D&&!Tqt(D,$)&&s(),D=$,L=requestAnimationFrame(B)}return s(),()=>{var $;x.forEach(j=>{d&&j.removeEventListener("scroll",s),g&&j.removeEventListener("resize",s)}),A==null||A(),($=R)==null||$.disconnect(),R=null,E&&cancelAnimationFrame(L)}}const z$n=h$n,G$n=p$n,q$n=l$n,V$n=b$n,W$n=d$n,t8t=c$n,K$n=g$n,Y$n=(n,i,s)=>{const c=new Map,d={platform:B$n,...s},g={...d.platform,_c:c};return u$n(n,i,{...d,platform:g})};var J$n=typeof document<"u",X$n=function(){},ioe=J$n?H.useLayoutEffect:X$n;function tse(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(typeof n=="function"&&n.toString()===i.toString())return!0;let s,c,d;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(s=n.length,s!==i.length)return!1;for(c=s;c--!==0;)if(!tse(n[c],i[c]))return!1;return!0}if(d=Object.keys(n),s=d.length,s!==Object.keys(i).length)return!1;for(c=s;c--!==0;)if(!{}.hasOwnProperty.call(i,d[c]))return!1;for(c=s;c--!==0;){const g=d[c];if(!(g==="_owner"&&n.$$typeof)&&!tse(n[g],i[g]))return!1}return!0}return n!==n&&i!==i}function Aqt(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function n8t(n,i){const s=Aqt(n);return Math.round(i*s)/s}function oIe(n){const i=H.useRef(n);return ioe(()=>{i.current=n}),i}function Z$n(n){n===void 0&&(n={});const{placement:i="bottom",strategy:s="absolute",middleware:c=[],platform:d,elements:{reference:g,floating:b}={},transform:w=!0,whileElementsMounted:E,open:S}=n,[x,A]=H.useState({x:0,y:0,strategy:s,placement:i,middlewareData:{},isPositioned:!1}),[C,R]=H.useState(c);tse(C,c)||R(c);const[L,D]=H.useState(null),[B,$]=H.useState(null),j=H.useCallback(Ae=>{Ae!==re.current&&(re.current=Ae,D(Ae))},[]),P=H.useCallback(Ae=>{Ae!==Q.current&&(Q.current=Ae,$(Ae))},[]),G=g||L,ee=b||B,re=H.useRef(null),Q=H.useRef(null),ie=H.useRef(x),pe=E!=null,me=oIe(E),le=oIe(d),fe=oIe(S),K=H.useCallback(()=>{if(!re.current||!Q.current)return;const Ae={placement:i,strategy:s,middleware:C};le.current&&(Ae.platform=le.current),Y$n(re.current,Q.current,Ae).then(xe=>{const We={...xe,isPositioned:fe.current!==!1};he.current&&!tse(ie.current,We)&&(ie.current=We,xR.flushSync(()=>{A(We)}))})},[C,i,s,le,fe]);ioe(()=>{S===!1&&ie.current.isPositioned&&(ie.current.isPositioned=!1,A(Ae=>({...Ae,isPositioned:!1})))},[S]);const he=H.useRef(!1);ioe(()=>(he.current=!0,()=>{he.current=!1}),[]),ioe(()=>{if(G&&(re.current=G),ee&&(Q.current=ee),G&&ee){if(me.current)return me.current(G,ee,K);K()}},[G,ee,K,me,pe]);const Oe=H.useMemo(()=>({reference:re,floating:Q,setReference:j,setFloating:P}),[j,P]),Se=H.useMemo(()=>({reference:G,floating:ee}),[G,ee]),Le=H.useMemo(()=>{const Ae={position:s,left:0,top:0};if(!Se.floating)return Ae;const xe=n8t(Se.floating,x.x),We=n8t(Se.floating,x.y);return w?{...Ae,transform:"translate("+xe+"px, "+We+"px)",...Aqt(Se.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:xe,top:We}},[s,w,Se.floating,x.x,x.y]);return H.useMemo(()=>({...x,update:K,refs:Oe,elements:Se,floatingStyles:Le}),[x,K,Oe,Se,Le])}const Q$n=n=>{function i(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:n,fn(s){const{element:c,padding:d}=typeof n=="function"?n(s):n;return c&&i(c)?c.current!=null?t8t({element:c.current,padding:d}).fn(s):{}:c?t8t({element:c,padding:d}).fn(s):{}}}},eBn=(n,i)=>({...z$n(n),options:[n,i]}),tBn=(n,i)=>({...G$n(n),options:[n,i]}),nBn=(n,i)=>({...K$n(n),options:[n,i]}),rBn=(n,i)=>({...q$n(n),options:[n,i]}),iBn=(n,i)=>({...V$n(n),options:[n,i]}),oBn=(n,i)=>({...W$n(n),options:[n,i]}),sBn=(n,i)=>({...Q$n(n),options:[n,i]});var aBn="Arrow",_qt=H.forwardRef((n,i)=>{const{children:s,width:c=10,height:d=5,...g}=n;return I.jsx(no.svg,{...g,ref:i,width:c,height:d,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?s:I.jsx("polygon",{points:"0,0 30,0 15,10"})})});_qt.displayName=aBn;var uBn=_qt;function vae(n){const[i,s]=H.useState(void 0);return Hp(()=>{if(n){s({width:n.offsetWidth,height:n.offsetHeight});const c=new ResizeObserver(d=>{if(!Array.isArray(d)||!d.length)return;const g=d[0];let b,w;if("borderBoxSize"in g){const E=g.borderBoxSize,S=Array.isArray(E)?E[0]:E;b=S.inlineSize,w=S.blockSize}else b=n.offsetWidth,w=n.offsetHeight;s({width:b,height:w})});return c.observe(n,{box:"border-box"}),()=>c.unobserve(n)}else s(void 0)},[n]),i}var eMe="Popper",[xqt,BM]=xw(eMe),[cBn,kqt]=xqt(eMe),Nqt=n=>{const{__scopePopper:i,children:s}=n,[c,d]=H.useState(null);return I.jsx(cBn,{scope:i,anchor:c,onAnchorChange:d,children:s})};Nqt.displayName=eMe;var Cqt="PopperAnchor",Iqt=H.forwardRef((n,i)=>{const{__scopePopper:s,virtualRef:c,...d}=n,g=kqt(Cqt,s),b=H.useRef(null),w=hs(i,b),E=H.useRef(null);return H.useEffect(()=>{const S=E.current;E.current=(c==null?void 0:c.current)||b.current,S!==E.current&&g.onAnchorChange(E.current)}),c?null:I.jsx(no.div,{...d,ref:w})});Iqt.displayName=Cqt;var tMe="PopperContent",[lBn,dBn]=xqt(tMe),Rqt=H.forwardRef((n,i)=>{var vt,Ct,Ft,On,Zn,Yn;const{__scopePopper:s,side:c="bottom",sideOffset:d=0,align:g="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:x=0,sticky:A="partial",hideWhenDetached:C=!1,updatePositionStrategy:R="optimized",onPlaced:L,...D}=n,B=kqt(tMe,s),[$,j]=H.useState(null),P=hs(i,vr=>j(vr)),[G,ee]=H.useState(null),re=vae(G),Q=(re==null?void 0:re.width)??0,ie=(re==null?void 0:re.height)??0,pe=c+(g!=="center"?"-"+g:""),me=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},le=Array.isArray(S)?S:[S],fe=le.length>0,K={padding:me,boundary:le.filter(hBn),altBoundary:fe},{refs:he,floatingStyles:Oe,placement:Se,isPositioned:Le,middlewareData:Ae}=Z$n({strategy:"fixed",placement:pe,whileElementsMounted:(...vr)=>H$n(...vr,{animationFrame:R==="always"}),elements:{reference:B.anchor},middleware:[eBn({mainAxis:d+ie,alignmentAxis:b}),E&&tBn({mainAxis:!0,crossAxis:!1,limiter:A==="partial"?nBn():void 0,...K}),E&&rBn({...K}),iBn({...K,apply:({elements:vr,rects:Ui,availableWidth:Qr,availableHeight:Hi})=>{const{width:ai,height:jc}=Ui.reference,Xs=vr.floating.style;Xs.setProperty("--radix-popper-available-width",`${Qr}px`),Xs.setProperty("--radix-popper-available-height",`${Hi}px`),Xs.setProperty("--radix-popper-anchor-width",`${ai}px`),Xs.setProperty("--radix-popper-anchor-height",`${jc}px`)}}),G&&sBn({element:G,padding:w}),pBn({arrowWidth:Q,arrowHeight:ie}),C&&oBn({strategy:"referenceHidden",...K})]}),[xe,We]=Lqt(Se),dt=q2(L);Hp(()=>{Le&&(dt==null||dt())},[Le,dt]);const Ue=(vt=Ae.arrow)==null?void 0:vt.x,bt=(Ct=Ae.arrow)==null?void 0:Ct.y,kt=((Ft=Ae.arrow)==null?void 0:Ft.centerOffset)!==0,[ht,Xt]=H.useState();return Hp(()=>{$&&Xt(window.getComputedStyle($).zIndex)},[$]),I.jsx("div",{ref:he.setFloating,"data-radix-popper-content-wrapper":"",style:{...Oe,transform:Le?Oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ht,"--radix-popper-transform-origin":[(On=Ae.transformOrigin)==null?void 0:On.x,(Zn=Ae.transformOrigin)==null?void 0:Zn.y].join(" "),...((Yn=Ae.hide)==null?void 0:Yn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:I.jsx(lBn,{scope:s,placedSide:xe,onArrowChange:ee,arrowX:Ue,arrowY:bt,shouldHideArrow:kt,children:I.jsx(no.div,{"data-side":xe,"data-align":We,...D,ref:P,style:{...D.style,animation:Le?void 0:"none"}})})})});Rqt.displayName=tMe;var Oqt="PopperArrow",fBn={top:"bottom",right:"left",bottom:"top",left:"right"},Dqt=H.forwardRef(function(i,s){const{__scopePopper:c,...d}=i,g=dBn(Oqt,c),b=fBn[g.placedSide];return I.jsx("span",{ref:g.onArrowChange,style:{position:"absolute",left:g.arrowX,top:g.arrowY,[b]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[g.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[g.placedSide],visibility:g.shouldHideArrow?"hidden":void 0},children:I.jsx(uBn,{...d,ref:s,style:{...d.style,display:"block"}})})});Dqt.displayName=Oqt;function hBn(n){return n!==null}var pBn=n=>({name:"transformOrigin",options:n,fn(i){var B,$,j;const{placement:s,rects:c,middlewareData:d}=i,b=((B=d.arrow)==null?void 0:B.centerOffset)!==0,w=b?0:n.arrowWidth,E=b?0:n.arrowHeight,[S,x]=Lqt(s),A={start:"0%",center:"50%",end:"100%"}[x],C=((($=d.arrow)==null?void 0:$.x)??0)+w/2,R=(((j=d.arrow)==null?void 0:j.y)??0)+E/2;let L="",D="";return S==="bottom"?(L=b?A:`${C}px`,D=`${-E}px`):S==="top"?(L=b?A:`${C}px`,D=`${c.floating.height+E}px`):S==="right"?(L=`${-E}px`,D=b?A:`${R}px`):S==="left"&&(L=`${c.floating.width+E}px`,D=b?A:`${R}px`),{data:{x:L,y:D}}}});function Lqt(n){const[i,s="center"]=n.split("-");return[i,s]}var nMe=Nqt,Eae=Iqt,rMe=Rqt,iMe=Dqt;function gBn(n){const i=bBn(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(wBn);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function bBn(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=vBn(d),w=yBn(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var mBn=Symbol("radix.slottable");function wBn(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===mBn}function yBn(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function vBn(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var Sae="Popover",[Mqt]=xw(Sae,[BM]),Dz=BM(),[EBn,EN]=Mqt(Sae),Pqt=n=>{const{__scopePopover:i,children:s,open:c,defaultOpen:d,onOpenChange:g,modal:b=!1}=n,w=Dz(i),E=H.useRef(null),[S,x]=H.useState(!1),[A,C]=G2({prop:c,defaultProp:d??!1,onChange:g,caller:Sae});return I.jsx(nMe,{...w,children:I.jsx(EBn,{scope:i,contentId:Bh(),triggerRef:E,open:A,onOpenChange:C,onOpenToggle:H.useCallback(()=>C(R=>!R),[C]),hasCustomAnchor:S,onCustomAnchorAdd:H.useCallback(()=>x(!0),[]),onCustomAnchorRemove:H.useCallback(()=>x(!1),[]),modal:b,children:s})})};Pqt.displayName=Sae;var jqt="PopoverAnchor",Fqt=H.forwardRef((n,i)=>{const{__scopePopover:s,...c}=n,d=EN(jqt,s),g=Dz(s),{onCustomAnchorAdd:b,onCustomAnchorRemove:w}=d;return H.useEffect(()=>(b(),()=>w()),[b,w]),I.jsx(Eae,{...g,...c,ref:i})});Fqt.displayName=jqt;var $qt="PopoverTrigger",Bqt=H.forwardRef((n,i)=>{const{__scopePopover:s,...c}=n,d=EN($qt,s),g=Dz(s),b=hs(i,d.triggerRef),w=I.jsx(no.button,{type:"button","aria-haspopup":"dialog","aria-expanded":d.open,"aria-controls":d.contentId,"data-state":qqt(d.open),...c,ref:b,onClick:Dr(n.onClick,d.onOpenToggle)});return d.hasCustomAnchor?w:I.jsx(Eae,{asChild:!0,...g,children:w})});Bqt.displayName=$qt;var oMe="PopoverPortal",[SBn,TBn]=Mqt(oMe,{forceMount:void 0}),Uqt=n=>{const{__scopePopover:i,forceMount:s,children:c,container:d}=n,g=EN(oMe,i);return I.jsx(SBn,{scope:i,forceMount:s,children:I.jsx(kw,{present:s||g.open,children:I.jsx(Cz,{asChild:!0,container:d,children:c})})})};Uqt.displayName=oMe;var kM="PopoverContent",Hqt=H.forwardRef((n,i)=>{const s=TBn(kM,n.__scopePopover),{forceMount:c=s.forceMount,...d}=n,g=EN(kM,n.__scopePopover);return I.jsx(kw,{present:c||g.open,children:g.modal?I.jsx(_Bn,{...d,ref:i}):I.jsx(xBn,{...d,ref:i})})});Hqt.displayName=kM;var ABn=gBn("PopoverContent.RemoveScroll"),_Bn=H.forwardRef((n,i)=>{const s=EN(kM,n.__scopePopover),c=H.useRef(null),d=hs(i,c),g=H.useRef(!1);return H.useEffect(()=>{const b=c.current;if(b)return uae(b)},[]),I.jsx(Iz,{as:ABn,allowPinchZoom:!0,children:I.jsx(zqt,{...n,ref:d,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Dr(n.onCloseAutoFocus,b=>{var w;b.preventDefault(),g.current||(w=s.triggerRef.current)==null||w.focus()}),onPointerDownOutside:Dr(n.onPointerDownOutside,b=>{const w=b.detail.originalEvent,E=w.button===0&&w.ctrlKey===!0,S=w.button===2||E;g.current=S},{checkForDefaultPrevented:!1}),onFocusOutside:Dr(n.onFocusOutside,b=>b.preventDefault(),{checkForDefaultPrevented:!1})})})}),xBn=H.forwardRef((n,i)=>{const s=EN(kM,n.__scopePopover),c=H.useRef(!1),d=H.useRef(!1);return I.jsx(zqt,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:g=>{var b,w;(b=n.onCloseAutoFocus)==null||b.call(n,g),g.defaultPrevented||(c.current||(w=s.triggerRef.current)==null||w.focus(),g.preventDefault()),c.current=!1,d.current=!1},onInteractOutside:g=>{var E,S;(E=n.onInteractOutside)==null||E.call(n,g),g.defaultPrevented||(c.current=!0,g.detail.originalEvent.type==="pointerdown"&&(d.current=!0));const b=g.target;((S=s.triggerRef.current)==null?void 0:S.contains(b))&&g.preventDefault(),g.detail.originalEvent.type==="focusin"&&d.current&&g.preventDefault()}})}),zqt=H.forwardRef((n,i)=>{const{__scopePopover:s,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:g,disableOutsidePointerEvents:b,onEscapeKeyDown:w,onPointerDownOutside:E,onFocusOutside:S,onInteractOutside:x,...A}=n,C=EN(kM,s),R=Dz(s);return sae(),I.jsx(Nz,{asChild:!0,loop:!0,trapped:c,onMountAutoFocus:d,onUnmountAutoFocus:g,children:I.jsx(kz,{asChild:!0,disableOutsidePointerEvents:b,onInteractOutside:x,onEscapeKeyDown:w,onPointerDownOutside:E,onFocusOutside:S,onDismiss:()=>C.onOpenChange(!1),children:I.jsx(rMe,{"data-state":qqt(C.open),role:"dialog",id:C.contentId,...R,...A,ref:i,style:{...A.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Gqt="PopoverClose",kBn=H.forwardRef((n,i)=>{const{__scopePopover:s,...c}=n,d=EN(Gqt,s);return I.jsx(no.button,{type:"button",...c,ref:i,onClick:Dr(n.onClick,()=>d.onOpenChange(!1))})});kBn.displayName=Gqt;var NBn="PopoverArrow",CBn=H.forwardRef((n,i)=>{const{__scopePopover:s,...c}=n,d=Dz(s);return I.jsx(iMe,{...d,...c,ref:i})});CBn.displayName=NBn;function qqt(n){return n?"open":"closed"}var IBn=Pqt,RBn=Fqt,OBn=Bqt,DBn=Uqt,Vqt=Hqt;const sMe=IBn,Wqt=OBn,LBn=RBn,Tae=H.forwardRef(({className:n,align:i="center",sideOffset:s=4,container:c,...d},g)=>I.jsx(DBn,{container:c,children:I.jsx(Vqt,{ref:g,align:i,sideOffset:s,className:Sr("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",n),...d})}));Tae.displayName=Vqt.displayName;function SA(n){return Array.isArray?Array.isArray(n):Jqt(n)==="[object Array]"}function MBn(n){if(typeof n=="string")return n;let i=n+"";return i=="0"&&1/n==-1/0?"-0":i}function PBn(n){return n==null?"":MBn(n)}function M2(n){return typeof n=="string"}function Kqt(n){return typeof n=="number"}function jBn(n){return n===!0||n===!1||FBn(n)&&Jqt(n)=="[object Boolean]"}function Yqt(n){return typeof n=="object"}function FBn(n){return Yqt(n)&&n!==null}function Pm(n){return n!=null}function sIe(n){return!n.trim().length}function Jqt(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}const $Bn="Incorrect 'index' type",BBn=n=>`Invalid value for key ${n}`,UBn=n=>`Pattern length exceeds max of ${n}.`,HBn=n=>`Missing ${n} property in key`,zBn=n=>`Property 'weight' in key '${n}' must be a positive integer`,r8t=Object.prototype.hasOwnProperty;class GBn{constructor(i){this._keys=[],this._keyMap={};let s=0;i.forEach(c=>{let d=Xqt(c);this._keys.push(d),this._keyMap[d.id]=d,s+=d.weight}),this._keys.forEach(c=>{c.weight/=s})}get(i){return this._keyMap[i]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Xqt(n){let i=null,s=null,c=null,d=1,g=null;if(M2(n)||SA(n))c=n,i=i8t(n),s=NDe(n);else{if(!r8t.call(n,"name"))throw new Error(HBn("name"));const b=n.name;if(c=b,r8t.call(n,"weight")&&(d=n.weight,d<=0))throw new Error(zBn(b));i=i8t(b),s=NDe(b),g=n.getFn}return{path:i,id:s,weight:d,src:c,getFn:g}}function i8t(n){return SA(n)?n:n.split(".")}function NDe(n){return SA(n)?n.join("."):n}function qBn(n,i){let s=[],c=!1;const d=(g,b,w)=>{if(Pm(g))if(!b[w])s.push(g);else{let E=b[w];const S=g[E];if(!Pm(S))return;if(w===b.length-1&&(M2(S)||Kqt(S)||jBn(S)))s.push(PBn(S));else if(SA(S)){c=!0;for(let x=0,A=S.length;xn.score===i.score?n.idx{this._keysMap[s.id]=c})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,M2(this.docs[0])?this.docs.forEach((i,s)=>{this._addString(i,s)}):this.docs.forEach((i,s)=>{this._addObject(i,s)}),this.norm.clear())}add(i){const s=this.size();M2(i)?this._addString(i,s):this._addObject(i,s)}removeAt(i){this.records.splice(i,1);for(let s=i,c=this.size();s{let b=d.getFn?d.getFn(i):this.getFn(i,d.path);if(Pm(b)){if(SA(b)){let w=[];const E=[{nestedArrIndex:-1,value:b}];for(;E.length;){const{nestedArrIndex:S,value:x}=E.pop();if(Pm(x))if(M2(x)&&!sIe(x)){let A={v:x,i:S,n:this.norm.get(x)};w.push(A)}else SA(x)&&x.forEach((A,C)=>{E.push({nestedArrIndex:C,value:A})})}c.$[g]=w}else if(M2(b)&&!sIe(b)){let w={v:b,n:this.norm.get(b)};c.$[g]=w}}}),this.records.push(c)}toJSON(){return{keys:this.keys,records:this.records}}}function Zqt(n,i,{getFn:s=uo.getFn,fieldNormWeight:c=uo.fieldNormWeight}={}){const d=new aMe({getFn:s,fieldNormWeight:c});return d.setKeys(n.map(Xqt)),d.setSources(i),d.create(),d}function ZBn(n,{getFn:i=uo.getFn,fieldNormWeight:s=uo.fieldNormWeight}={}){const{keys:c,records:d}=n,g=new aMe({getFn:i,fieldNormWeight:s});return g.setKeys(c),g.setIndexRecords(d),g}function kie(n,{errors:i=0,currentLocation:s=0,expectedLocation:c=0,distance:d=uo.distance,ignoreLocation:g=uo.ignoreLocation}={}){const b=i/n.length;if(g)return b;const w=Math.abs(c-s);return d?b+w/d:w?1:b}function QBn(n=[],i=uo.minMatchCharLength){let s=[],c=-1,d=-1,g=0;for(let b=n.length;g=i&&s.push([c,d]),c=-1)}return n[g-1]&&g-c>=i&&s.push([c,g-1]),s}const K4=32;function eUn(n,i,s,{location:c=uo.location,distance:d=uo.distance,threshold:g=uo.threshold,findAllMatches:b=uo.findAllMatches,minMatchCharLength:w=uo.minMatchCharLength,includeMatches:E=uo.includeMatches,ignoreLocation:S=uo.ignoreLocation}={}){if(i.length>K4)throw new Error(UBn(K4));const x=i.length,A=n.length,C=Math.max(0,Math.min(c,A));let R=g,L=C;const D=w>1||E,B=D?Array(A):[];let $;for(;($=n.indexOf(i,L))>-1;){let Q=kie(i,{currentLocation:$,expectedLocation:C,distance:d,ignoreLocation:S});if(R=Math.min(Q,R),L=$+x,D){let ie=0;for(;ie=me;he-=1){let Oe=he-1,Se=s[n.charAt(Oe)];if(D&&(B[Oe]=+!!Se),fe[he]=(fe[he+1]<<1|1)&Se,Q&&(fe[he]|=(j[he+1]|j[he])<<1|1|j[he+1]),fe[he]&ee&&(P=kie(i,{errors:Q,currentLocation:Oe,expectedLocation:C,distance:d,ignoreLocation:S}),P<=R)){if(R=P,L=Oe,L<=C)break;me=Math.max(1,2*C-L)}}if(kie(i,{errors:Q+1,currentLocation:C,expectedLocation:C,distance:d,ignoreLocation:S})>R)break;j=fe}const re={isMatch:L>=0,score:Math.max(.001,P)};if(D){const Q=QBn(B,w);Q.length?E&&(re.indices=Q):re.isMatch=!1}return re}function tUn(n){let i={};for(let s=0,c=n.length;sn.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):n=>n;class Qqt{constructor(i,{location:s=uo.location,threshold:c=uo.threshold,distance:d=uo.distance,includeMatches:g=uo.includeMatches,findAllMatches:b=uo.findAllMatches,minMatchCharLength:w=uo.minMatchCharLength,isCaseSensitive:E=uo.isCaseSensitive,ignoreDiacritics:S=uo.ignoreDiacritics,ignoreLocation:x=uo.ignoreLocation}={}){if(this.options={location:s,threshold:c,distance:d,includeMatches:g,findAllMatches:b,minMatchCharLength:w,isCaseSensitive:E,ignoreDiacritics:S,ignoreLocation:x},i=E?i:i.toLowerCase(),i=S?nse(i):i,this.pattern=i,this.chunks=[],!this.pattern.length)return;const A=(R,L)=>{this.chunks.push({pattern:R,alphabet:tUn(R),startIndex:L})},C=this.pattern.length;if(C>K4){let R=0;const L=C%K4,D=C-L;for(;R{const{isMatch:j,score:P,indices:G}=eUn(i,D,B,{location:g+$,distance:b,threshold:w,findAllMatches:E,minMatchCharLength:S,includeMatches:d,ignoreLocation:x});j&&(R=!0),C+=P,j&&G&&(A=[...A,...G])});let L={isMatch:R,score:R?C/this.chunks.length:1};return R&&d&&(L.indices=A),L}}class SN{constructor(i){this.pattern=i}static isMultiMatch(i){return o8t(i,this.multiRegex)}static isSingleMatch(i){return o8t(i,this.singleRegex)}search(){}}function o8t(n,i){const s=n.match(i);return s?s[1]:null}class nUn extends SN{constructor(i){super(i)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(i){const s=i===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class rUn extends SN{constructor(i){super(i)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(i){const c=i.indexOf(this.pattern)===-1;return{isMatch:c,score:c?0:1,indices:[0,i.length-1]}}}class iUn extends SN{constructor(i){super(i)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(i){const s=i.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class oUn extends SN{constructor(i){super(i)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(i){const s=!i.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,i.length-1]}}}class sUn extends SN{constructor(i){super(i)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(i){const s=i.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[i.length-this.pattern.length,i.length-1]}}}class aUn extends SN{constructor(i){super(i)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(i){const s=!i.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,i.length-1]}}}class eVt extends SN{constructor(i,{location:s=uo.location,threshold:c=uo.threshold,distance:d=uo.distance,includeMatches:g=uo.includeMatches,findAllMatches:b=uo.findAllMatches,minMatchCharLength:w=uo.minMatchCharLength,isCaseSensitive:E=uo.isCaseSensitive,ignoreDiacritics:S=uo.ignoreDiacritics,ignoreLocation:x=uo.ignoreLocation}={}){super(i),this._bitapSearch=new Qqt(i,{location:s,threshold:c,distance:d,includeMatches:g,findAllMatches:b,minMatchCharLength:w,isCaseSensitive:E,ignoreDiacritics:S,ignoreLocation:x})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(i){return this._bitapSearch.searchIn(i)}}class tVt extends SN{constructor(i){super(i)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(i){let s=0,c;const d=[],g=this.pattern.length;for(;(c=i.indexOf(this.pattern,s))>-1;)s=c+g,d.push([c,s-1]);const b=!!d.length;return{isMatch:b,score:b?0:1,indices:d}}}const CDe=[nUn,tVt,iUn,oUn,aUn,sUn,rUn,eVt],s8t=CDe.length,uUn=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,cUn="|";function lUn(n,i={}){return n.split(cUn).map(s=>{let c=s.trim().split(uUn).filter(g=>g&&!!g.trim()),d=[];for(let g=0,b=c.length;g!!(n[rse.AND]||n[rse.OR]),pUn=n=>!!n[ODe.PATH],gUn=n=>!SA(n)&&Yqt(n)&&!DDe(n),a8t=n=>({[rse.AND]:Object.keys(n).map(i=>({[i]:n[i]}))});function nVt(n,i,{auto:s=!0}={}){const c=d=>{let g=Object.keys(d);const b=pUn(d);if(!b&&g.length>1&&!DDe(d))return c(a8t(d));if(gUn(d)){const E=b?d[ODe.PATH]:g[0],S=b?d[ODe.PATTERN]:d[E];if(!M2(S))throw new Error(BBn(E));const x={keyId:NDe(E),pattern:S};return s&&(x.searcher=RDe(S,i)),x}let w={children:[],operator:g[0]};return g.forEach(E=>{const S=d[E];SA(S)&&S.forEach(x=>{w.children.push(c(x))})}),w};return DDe(n)||(n=a8t(n)),c(n)}function bUn(n,{ignoreFieldNorm:i=uo.ignoreFieldNorm}){n.forEach(s=>{let c=1;s.matches.forEach(({key:d,norm:g,score:b})=>{const w=d?d.weight:null;c*=Math.pow(b===0&&w?Number.EPSILON:b,(w||1)*(i?1:g))}),s.score=c})}function mUn(n,i){const s=n.matches;i.matches=[],Pm(s)&&s.forEach(c=>{if(!Pm(c.indices)||!c.indices.length)return;const{indices:d,value:g}=c;let b={indices:d,value:g};c.key&&(b.key=c.key.src),c.idx>-1&&(b.refIndex=c.idx),i.matches.push(b)})}function wUn(n,i){i.score=n.score}function yUn(n,i,{includeMatches:s=uo.includeMatches,includeScore:c=uo.includeScore}={}){const d=[];return s&&d.push(mUn),c&&d.push(wUn),n.map(g=>{const{idx:b}=g,w={item:i[b],refIndex:b};return d.length&&d.forEach(E=>{E(g,w)}),w})}class NR{constructor(i,s={},c){this.options={...uo,...s},this.options.useExtendedSearch,this._keyStore=new GBn(this.options.keys),this.setCollection(i,c)}setCollection(i,s){if(this._docs=i,s&&!(s instanceof aMe))throw new Error($Bn);this._myIndex=s||Zqt(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(i){Pm(i)&&(this._docs.push(i),this._myIndex.add(i))}remove(i=()=>!1){const s=[];for(let c=0,d=this._docs.length;c-1&&(E=E.slice(0,s)),yUn(E,this._docs,{includeMatches:c,includeScore:d})}_searchStringList(i){const s=RDe(i,this.options),{records:c}=this._myIndex,d=[];return c.forEach(({v:g,i:b,n:w})=>{if(!Pm(g))return;const{isMatch:E,score:S,indices:x}=s.searchIn(g);E&&d.push({item:g,idx:b,matches:[{score:S,value:g,norm:w,indices:x}]})}),d}_searchLogical(i){const s=nVt(i,this.options),c=(w,E,S)=>{if(!w.children){const{keyId:A,searcher:C}=w,R=this._findMatches({key:this._keyStore.get(A),value:this._myIndex.getValueForItemAtKeyId(E,A),searcher:C});return R&&R.length?[{idx:S,item:E,matches:R}]:[]}const x=[];for(let A=0,C=w.children.length;A{if(Pm(w)){let S=c(s,w,E);S.length&&(g[E]||(g[E]={idx:E,item:w,matches:[]},b.push(g[E])),S.forEach(({matches:x})=>{g[E].matches.push(...x)}))}}),b}_searchObjectList(i){const s=RDe(i,this.options),{keys:c,records:d}=this._myIndex,g=[];return d.forEach(({$:b,i:w})=>{if(!Pm(b))return;let E=[];c.forEach((S,x)=>{E.push(...this._findMatches({key:S,value:b[x],searcher:s}))}),E.length&&g.push({idx:w,item:b,matches:E})}),g}_findMatches({key:i,value:s,searcher:c}){if(!Pm(s))return[];let d=[];if(SA(s))s.forEach(({v:g,i:b,n:w})=>{if(!Pm(g))return;const{isMatch:E,score:S,indices:x}=c.searchIn(g);E&&d.push({score:S,key:i,value:g,idx:b,norm:w,indices:x})});else{const{v:g,n:b}=s,{isMatch:w,score:E,indices:S}=c.searchIn(g);w&&d.push({score:E,key:i,value:g,norm:b,indices:S})}return d}}NR.version="7.1.0";NR.createIndex=Zqt;NR.parseIndex=ZBn;NR.config=uo;NR.parseQuery=nVt;hUn(fUn);function rVt(n,i){const[s,c]=H.useState(""),d=H.useMemo(()=>{const b={threshold:.3,ignoreLocation:!0,includeScore:!0,includeMatches:!0,minMatchCharLength:1,keys:i.keys,...i.threshold!==void 0&&{threshold:i.threshold},...i.includeScore!==void 0&&{includeScore:i.includeScore},...i.ignoreLocation!==void 0&&{ignoreLocation:i.ignoreLocation},...i.includeMatches!==void 0&&{includeMatches:i.includeMatches},...i.minMatchCharLength!==void 0&&{minMatchCharLength:i.minMatchCharLength}};return new NR(n,b)},[n,i]),g=H.useMemo(()=>s.trim()?d.search(s):n.map((b,w)=>({item:b,refIndex:w,score:0})),[s,d,n]);return{query:s,setQuery:c,filteredItems:g.map(b=>b.item),results:g}}const u8t=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,c8t=aqt,Aae=(n,i)=>s=>{var c;if((i==null?void 0:i.variants)==null)return c8t(n,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:d,defaultVariants:g}=i,b=Object.keys(d).map(S=>{const x=s==null?void 0:s[S],A=g==null?void 0:g[S];if(x===null)return null;const C=u8t(x)||u8t(A);return d[S][C]}),w=s&&Object.entries(s).reduce((S,x)=>{let[A,C]=x;return C===void 0||(S[A]=C),S},{}),E=i==null||(c=i.compoundVariants)===null||c===void 0?void 0:c.reduce((S,x)=>{let{class:A,className:C,...R}=x;return Object.entries(R).every(L=>{let[D,B]=L;return Array.isArray(B)?B.includes({...g,...w}[D]):{...g,...w}[D]===B})?[...S,A,C]:S},[]);return c8t(n,b,E,s==null?void 0:s.class,s==null?void 0:s.className)},vUn=Aae("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ri=H.forwardRef(({className:n,variant:i,size:s,asChild:c=!1,...d},g)=>{const b=c?K7n:"button";return I.jsx(b,{className:Sr(vUn({variant:i,size:s,className:n})),ref:g,...d})});Ri.displayName="Button";function cn(n,i,s){function c(w,E){if(w._zod||Object.defineProperty(w,"_zod",{value:{def:E,constr:b,traits:new Set},enumerable:!1}),w._zod.traits.has(n))return;w._zod.traits.add(n),i(w,E);const S=b.prototype,x=Object.keys(S);for(let A=0;A{var E,S;return s!=null&&s.Parent&&w instanceof s.Parent?!0:(S=(E=w==null?void 0:w._zod)==null?void 0:E.traits)==null?void 0:S.has(n)}}),Object.defineProperty(b,"name",{value:n}),b}class sM extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class iVt extends Error{constructor(i){super(`Encountered unidirectional transform during encode: ${i}`),this.name="ZodEncodeError"}}const oVt={};function hN(n){return oVt}function sVt(n){const i=Object.values(n).filter(c=>typeof c=="number");return Object.entries(n).filter(([c,d])=>i.indexOf(+c)===-1).map(([c,d])=>d)}function LDe(n,i){return typeof i=="bigint"?i.toString():i}function _ae(n){return{get value(){{const i=n();return Object.defineProperty(this,"value",{value:i}),i}}}}function uMe(n){return n==null}function cMe(n){const i=n.startsWith("^")?1:0,s=n.endsWith("$")?n.length-1:n.length;return n.slice(i,s)}function EUn(n,i){const s=(n.toString().split(".")[1]||"").length,c=i.toString();let d=(c.split(".")[1]||"").length;if(d===0&&/\d?e-\d?/.test(c)){const E=c.match(/\d?e-(\d?)/);E!=null&&E[1]&&(d=Number.parseInt(E[1]))}const g=s>d?s:d,b=Number.parseInt(n.toFixed(g).replace(".","")),w=Number.parseInt(i.toFixed(g).replace(".",""));return b%w/10**g}const l8t=Symbol("evaluating");function Ys(n,i,s){let c;Object.defineProperty(n,i,{get(){if(c!==l8t)return c===void 0&&(c=l8t,c=s()),c},set(d){Object.defineProperty(n,i,{value:d})},configurable:!0})}function CR(n,i,s){Object.defineProperty(n,i,{value:s,writable:!0,enumerable:!0,configurable:!0})}function TN(...n){const i={};for(const s of n){const c=Object.getOwnPropertyDescriptors(s);Object.assign(i,c)}return Object.defineProperties({},i)}function d8t(n){return JSON.stringify(n)}function SUn(n){return n.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const aVt="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function iz(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)}const TUn=_ae(()=>{var n;if(typeof navigator<"u"&&((n=navigator==null?void 0:navigator.userAgent)!=null&&n.includes("Cloudflare")))return!1;try{const i=Function;return new i(""),!0}catch{return!1}});function NM(n){if(iz(n)===!1)return!1;const i=n.constructor;if(i===void 0||typeof i!="function")return!0;const s=i.prototype;return!(iz(s)===!1||Object.prototype.hasOwnProperty.call(s,"isPrototypeOf")===!1)}function uVt(n){return NM(n)?{...n}:Array.isArray(n)?[...n]:n}const AUn=new Set(["string","number","symbol"]);function CM(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function AN(n,i,s){const c=new n._zod.constr(i??n._zod.def);return(!i||s!=null&&s.parent)&&(c._zod.parent=n),c}function wi(n){const i=n;if(!i)return{};if(typeof i=="string")return{error:()=>i};if((i==null?void 0:i.message)!==void 0){if((i==null?void 0:i.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");i.error=i.message}return delete i.message,typeof i.error=="string"?{...i,error:()=>i.error}:i}function _Un(n){return Object.keys(n).filter(i=>n[i]._zod.optin==="optional"&&n[i]._zod.optout==="optional")}const xUn={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function kUn(n,i){const s=n._zod.def,c=s.checks;if(c&&c.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const g=TN(n._zod.def,{get shape(){const b={};for(const w in i){if(!(w in s.shape))throw new Error(`Unrecognized key: "${w}"`);i[w]&&(b[w]=s.shape[w])}return CR(this,"shape",b),b},checks:[]});return AN(n,g)}function NUn(n,i){const s=n._zod.def,c=s.checks;if(c&&c.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const g=TN(n._zod.def,{get shape(){const b={...n._zod.def.shape};for(const w in i){if(!(w in s.shape))throw new Error(`Unrecognized key: "${w}"`);i[w]&&delete b[w]}return CR(this,"shape",b),b},checks:[]});return AN(n,g)}function CUn(n,i){if(!NM(i))throw new Error("Invalid input to extend: expected a plain object");const s=n._zod.def.checks;if(s&&s.length>0){const g=n._zod.def.shape;for(const b in i)if(Object.getOwnPropertyDescriptor(g,b)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const d=TN(n._zod.def,{get shape(){const g={...n._zod.def.shape,...i};return CR(this,"shape",g),g}});return AN(n,d)}function IUn(n,i){if(!NM(i))throw new Error("Invalid input to safeExtend: expected a plain object");const s=TN(n._zod.def,{get shape(){const c={...n._zod.def.shape,...i};return CR(this,"shape",c),c}});return AN(n,s)}function RUn(n,i){const s=TN(n._zod.def,{get shape(){const c={...n._zod.def.shape,...i._zod.def.shape};return CR(this,"shape",c),c},get catchall(){return i._zod.def.catchall},checks:[]});return AN(n,s)}function OUn(n,i,s){const d=i._zod.def.checks;if(d&&d.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const b=TN(i._zod.def,{get shape(){const w=i._zod.def.shape,E={...w};if(s)for(const S in s){if(!(S in w))throw new Error(`Unrecognized key: "${S}"`);s[S]&&(E[S]=n?new n({type:"optional",innerType:w[S]}):w[S])}else for(const S in w)E[S]=n?new n({type:"optional",innerType:w[S]}):w[S];return CR(this,"shape",E),E},checks:[]});return AN(i,b)}function DUn(n,i,s){const c=TN(i._zod.def,{get shape(){const d=i._zod.def.shape,g={...d};if(s)for(const b in s){if(!(b in g))throw new Error(`Unrecognized key: "${b}"`);s[b]&&(g[b]=new n({type:"nonoptional",innerType:d[b]}))}else for(const b in d)g[b]=new n({type:"nonoptional",innerType:d[b]});return CR(this,"shape",g),g}});return AN(i,c)}function G5(n,i=0){var s;if(n.aborted===!0)return!0;for(let c=i;c{var c;return(c=s).path??(c.path=[]),s.path.unshift(n),s})}function Nie(n){return typeof n=="string"?n:n==null?void 0:n.message}function pN(n,i,s){var d,g,b,w,E,S;const c={...n,path:n.path??[]};if(!n.message){const x=Nie((b=(g=(d=n.inst)==null?void 0:d._zod.def)==null?void 0:g.error)==null?void 0:b.call(g,n))??Nie((w=i==null?void 0:i.error)==null?void 0:w.call(i,n))??Nie((E=s.customError)==null?void 0:E.call(s,n))??Nie((S=s.localeError)==null?void 0:S.call(s,n))??"Invalid input";c.message=x}return delete c.inst,delete c.continue,i!=null&&i.reportInput||delete c.input,c}function lMe(n){return Array.isArray(n)?"array":typeof n=="string"?"string":"unknown"}function oz(...n){const[i,s,c]=n;return typeof i=="string"?{message:i,code:"custom",input:s,inst:c}:{...i}}const cVt=(n,i)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:i,enumerable:!1}),n.message=JSON.stringify(i,LDe,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},lVt=cn("$ZodError",cVt),dVt=cn("$ZodError",cVt,{Parent:Error});function LUn(n,i=s=>s.message){const s={},c=[];for(const d of n.issues)d.path.length>0?(s[d.path[0]]=s[d.path[0]]||[],s[d.path[0]].push(i(d))):c.push(i(d));return{formErrors:c,fieldErrors:s}}function MUn(n,i=s=>s.message){const s={_errors:[]},c=d=>{for(const g of d.issues)if(g.code==="invalid_union"&&g.errors.length)g.errors.map(b=>c({issues:b}));else if(g.code==="invalid_key")c({issues:g.issues});else if(g.code==="invalid_element")c({issues:g.issues});else if(g.path.length===0)s._errors.push(i(g));else{let b=s,w=0;for(;w(i,s,c,d)=>{const g=c?Object.assign(c,{async:!1}):{async:!1},b=i._zod.run({value:s,issues:[]},g);if(b instanceof Promise)throw new sM;if(b.issues.length){const w=new((d==null?void 0:d.Err)??n)(b.issues.map(E=>pN(E,g,hN())));throw aVt(w,d==null?void 0:d.callee),w}return b.value},fMe=n=>async(i,s,c,d)=>{const g=c?Object.assign(c,{async:!0}):{async:!0};let b=i._zod.run({value:s,issues:[]},g);if(b instanceof Promise&&(b=await b),b.issues.length){const w=new((d==null?void 0:d.Err)??n)(b.issues.map(E=>pN(E,g,hN())));throw aVt(w,d==null?void 0:d.callee),w}return b.value},xae=n=>(i,s,c)=>{const d=c?{...c,async:!1}:{async:!1},g=i._zod.run({value:s,issues:[]},d);if(g instanceof Promise)throw new sM;return g.issues.length?{success:!1,error:new(n??lVt)(g.issues.map(b=>pN(b,d,hN())))}:{success:!0,data:g.value}},PUn=xae(dVt),kae=n=>async(i,s,c)=>{const d=c?Object.assign(c,{async:!0}):{async:!0};let g=i._zod.run({value:s,issues:[]},d);return g instanceof Promise&&(g=await g),g.issues.length?{success:!1,error:new n(g.issues.map(b=>pN(b,d,hN())))}:{success:!0,data:g.value}},jUn=kae(dVt),FUn=n=>(i,s,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return dMe(n)(i,s,d)},$Un=n=>(i,s,c)=>dMe(n)(i,s,c),BUn=n=>async(i,s,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return fMe(n)(i,s,d)},UUn=n=>async(i,s,c)=>fMe(n)(i,s,c),HUn=n=>(i,s,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return xae(n)(i,s,d)},zUn=n=>(i,s,c)=>xae(n)(i,s,c),GUn=n=>async(i,s,c)=>{const d=c?Object.assign(c,{direction:"backward"}):{direction:"backward"};return kae(n)(i,s,d)},qUn=n=>async(i,s,c)=>kae(n)(i,s,c),VUn=/^[cC][^\s-]{8,}$/,WUn=/^[0-9a-z]+$/,KUn=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,YUn=/^[0-9a-vA-V]{20}$/,JUn=/^[A-Za-z0-9]{27}$/,XUn=/^[a-zA-Z0-9_-]{21}$/,ZUn=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,QUn=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,f8t=n=>n?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${n}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,eHn=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tHn="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function nHn(){return new RegExp(tHn,"u")}const rHn=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iHn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,oHn=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,sHn=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aHn=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,fVt=/^[A-Za-z0-9_-]*$/,uHn=/^\+[1-9]\d{6,14}$/,hVt="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",cHn=new RegExp(`^${hVt}$`);function pVt(n){const i="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof n.precision=="number"?n.precision===-1?`${i}`:n.precision===0?`${i}:[0-5]\\d`:`${i}:[0-5]\\d\\.\\d{${n.precision}}`:`${i}(?::[0-5]\\d(?:\\.\\d+)?)?`}function lHn(n){return new RegExp(`^${pVt(n)}$`)}function dHn(n){const i=pVt({precision:n.precision}),s=["Z"];n.local&&s.push(""),n.offset&&s.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const c=`${i}(?:${s.join("|")})`;return new RegExp(`^${hVt}T(?:${c})$`)}const fHn=n=>{const i=n?`[\\s\\S]{${(n==null?void 0:n.minimum)??0},${(n==null?void 0:n.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${i}$`)},hHn=/^-?\d+$/,gVt=/^-?\d+(?:\.\d+)?$/,pHn=/^(?:true|false)$/i,gHn=/^null$/i,bHn=/^[^A-Z]*$/,mHn=/^[^a-z]*$/,hb=cn("$ZodCheck",(n,i)=>{var s;n._zod??(n._zod={}),n._zod.def=i,(s=n._zod).onattach??(s.onattach=[])}),bVt={number:"number",bigint:"bigint",object:"date"},mVt=cn("$ZodCheckLessThan",(n,i)=>{hb.init(n,i);const s=bVt[typeof i.value];n._zod.onattach.push(c=>{const d=c._zod.bag,g=(i.inclusive?d.maximum:d.exclusiveMaximum)??Number.POSITIVE_INFINITY;i.value{(i.inclusive?c.value<=i.value:c.value{hb.init(n,i);const s=bVt[typeof i.value];n._zod.onattach.push(c=>{const d=c._zod.bag,g=(i.inclusive?d.minimum:d.exclusiveMinimum)??Number.NEGATIVE_INFINITY;i.value>g&&(i.inclusive?d.minimum=i.value:d.exclusiveMinimum=i.value)}),n._zod.check=c=>{(i.inclusive?c.value>=i.value:c.value>i.value)||c.issues.push({origin:s,code:"too_small",minimum:typeof i.value=="object"?i.value.getTime():i.value,input:c.value,inclusive:i.inclusive,inst:n,continue:!i.abort})}}),wHn=cn("$ZodCheckMultipleOf",(n,i)=>{hb.init(n,i),n._zod.onattach.push(s=>{var c;(c=s._zod.bag).multipleOf??(c.multipleOf=i.value)}),n._zod.check=s=>{if(typeof s.value!=typeof i.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof s.value=="bigint"?s.value%i.value===BigInt(0):EUn(s.value,i.value)===0)||s.issues.push({origin:typeof s.value,code:"not_multiple_of",divisor:i.value,input:s.value,inst:n,continue:!i.abort})}}),yHn=cn("$ZodCheckNumberFormat",(n,i)=>{var b;hb.init(n,i),i.format=i.format||"float64";const s=(b=i.format)==null?void 0:b.includes("int"),c=s?"int":"number",[d,g]=xUn[i.format];n._zod.onattach.push(w=>{const E=w._zod.bag;E.format=i.format,E.minimum=d,E.maximum=g,s&&(E.pattern=hHn)}),n._zod.check=w=>{const E=w.value;if(s){if(!Number.isInteger(E)){w.issues.push({expected:c,format:i.format,code:"invalid_type",continue:!1,input:E,inst:n});return}if(!Number.isSafeInteger(E)){E>0?w.issues.push({input:E,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:c,inclusive:!0,continue:!i.abort}):w.issues.push({input:E,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:n,origin:c,inclusive:!0,continue:!i.abort});return}}Eg&&w.issues.push({origin:"number",input:E,code:"too_big",maximum:g,inclusive:!0,inst:n,continue:!i.abort})}}),vHn=cn("$ZodCheckMaxLength",(n,i)=>{var s;hb.init(n,i),(s=n._zod.def).when??(s.when=c=>{const d=c.value;return!uMe(d)&&d.length!==void 0}),n._zod.onattach.push(c=>{const d=c._zod.bag.maximum??Number.POSITIVE_INFINITY;i.maximum{const d=c.value;if(d.length<=i.maximum)return;const b=lMe(d);c.issues.push({origin:b,code:"too_big",maximum:i.maximum,inclusive:!0,input:d,inst:n,continue:!i.abort})}}),EHn=cn("$ZodCheckMinLength",(n,i)=>{var s;hb.init(n,i),(s=n._zod.def).when??(s.when=c=>{const d=c.value;return!uMe(d)&&d.length!==void 0}),n._zod.onattach.push(c=>{const d=c._zod.bag.minimum??Number.NEGATIVE_INFINITY;i.minimum>d&&(c._zod.bag.minimum=i.minimum)}),n._zod.check=c=>{const d=c.value;if(d.length>=i.minimum)return;const b=lMe(d);c.issues.push({origin:b,code:"too_small",minimum:i.minimum,inclusive:!0,input:d,inst:n,continue:!i.abort})}}),SHn=cn("$ZodCheckLengthEquals",(n,i)=>{var s;hb.init(n,i),(s=n._zod.def).when??(s.when=c=>{const d=c.value;return!uMe(d)&&d.length!==void 0}),n._zod.onattach.push(c=>{const d=c._zod.bag;d.minimum=i.length,d.maximum=i.length,d.length=i.length}),n._zod.check=c=>{const d=c.value,g=d.length;if(g===i.length)return;const b=lMe(d),w=g>i.length;c.issues.push({origin:b,...w?{code:"too_big",maximum:i.length}:{code:"too_small",minimum:i.length},inclusive:!0,exact:!0,input:c.value,inst:n,continue:!i.abort})}}),Nae=cn("$ZodCheckStringFormat",(n,i)=>{var s,c;hb.init(n,i),n._zod.onattach.push(d=>{const g=d._zod.bag;g.format=i.format,i.pattern&&(g.patterns??(g.patterns=new Set),g.patterns.add(i.pattern))}),i.pattern?(s=n._zod).check??(s.check=d=>{i.pattern.lastIndex=0,!i.pattern.test(d.value)&&d.issues.push({origin:"string",code:"invalid_format",format:i.format,input:d.value,...i.pattern?{pattern:i.pattern.toString()}:{},inst:n,continue:!i.abort})}):(c=n._zod).check??(c.check=()=>{})}),THn=cn("$ZodCheckRegex",(n,i)=>{Nae.init(n,i),n._zod.check=s=>{i.pattern.lastIndex=0,!i.pattern.test(s.value)&&s.issues.push({origin:"string",code:"invalid_format",format:"regex",input:s.value,pattern:i.pattern.toString(),inst:n,continue:!i.abort})}}),AHn=cn("$ZodCheckLowerCase",(n,i)=>{i.pattern??(i.pattern=bHn),Nae.init(n,i)}),_Hn=cn("$ZodCheckUpperCase",(n,i)=>{i.pattern??(i.pattern=mHn),Nae.init(n,i)}),xHn=cn("$ZodCheckIncludes",(n,i)=>{hb.init(n,i);const s=CM(i.includes),c=new RegExp(typeof i.position=="number"?`^.{${i.position}}${s}`:s);i.pattern=c,n._zod.onattach.push(d=>{const g=d._zod.bag;g.patterns??(g.patterns=new Set),g.patterns.add(c)}),n._zod.check=d=>{d.value.includes(i.includes,i.position)||d.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:i.includes,input:d.value,inst:n,continue:!i.abort})}}),kHn=cn("$ZodCheckStartsWith",(n,i)=>{hb.init(n,i);const s=new RegExp(`^${CM(i.prefix)}.*`);i.pattern??(i.pattern=s),n._zod.onattach.push(c=>{const d=c._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(s)}),n._zod.check=c=>{c.value.startsWith(i.prefix)||c.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:i.prefix,input:c.value,inst:n,continue:!i.abort})}}),NHn=cn("$ZodCheckEndsWith",(n,i)=>{hb.init(n,i);const s=new RegExp(`.*${CM(i.suffix)}$`);i.pattern??(i.pattern=s),n._zod.onattach.push(c=>{const d=c._zod.bag;d.patterns??(d.patterns=new Set),d.patterns.add(s)}),n._zod.check=c=>{c.value.endsWith(i.suffix)||c.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:i.suffix,input:c.value,inst:n,continue:!i.abort})}}),CHn=cn("$ZodCheckOverwrite",(n,i)=>{hb.init(n,i),n._zod.check=s=>{s.value=i.tx(s.value)}});class IHn{constructor(i=[]){this.content=[],this.indent=0,this&&(this.args=i)}indented(i){this.indent+=1,i(this),this.indent-=1}write(i){if(typeof i=="function"){i(this,{execution:"sync"}),i(this,{execution:"async"});return}const c=i.split(` +`).filter(b=>b),d=Math.min(...c.map(b=>b.length-b.trimStart().length)),g=c.map(b=>b.slice(d)).map(b=>" ".repeat(this.indent*2)+b);for(const b of g)this.content.push(b)}compile(){const i=Function,s=this==null?void 0:this.args,d=[...((this==null?void 0:this.content)??[""]).map(g=>` ${g}`)];return new i(...s,d.join(` +`))}}const RHn={major:4,minor:3,patch:5},Ku=cn("$ZodType",(n,i)=>{var d;var s;n??(n={}),n._zod.def=i,n._zod.bag=n._zod.bag||{},n._zod.version=RHn;const c=[...n._zod.def.checks??[]];n._zod.traits.has("$ZodCheck")&&c.unshift(n);for(const g of c)for(const b of g._zod.onattach)b(n);if(c.length===0)(s=n._zod).deferred??(s.deferred=[]),(d=n._zod.deferred)==null||d.push(()=>{n._zod.run=n._zod.parse});else{const g=(w,E,S)=>{let x=G5(w),A;for(const C of E){if(C._zod.def.when){if(!C._zod.def.when(w))continue}else if(x)continue;const R=w.issues.length,L=C._zod.check(w);if(L instanceof Promise&&(S==null?void 0:S.async)===!1)throw new sM;if(A||L instanceof Promise)A=(A??Promise.resolve()).then(async()=>{await L,w.issues.length!==R&&(x||(x=G5(w,R)))});else{if(w.issues.length===R)continue;x||(x=G5(w,R))}}return A?A.then(()=>w):w},b=(w,E,S)=>{if(G5(w))return w.aborted=!0,w;const x=g(E,c,S);if(x instanceof Promise){if(S.async===!1)throw new sM;return x.then(A=>n._zod.parse(A,S))}return n._zod.parse(x,S)};n._zod.run=(w,E)=>{if(E.skipChecks)return n._zod.parse(w,E);if(E.direction==="backward"){const x=n._zod.parse({value:w.value,issues:[]},{...E,skipChecks:!0});return x instanceof Promise?x.then(A=>b(A,w,E)):b(x,w,E)}const S=n._zod.parse(w,E);if(S instanceof Promise){if(E.async===!1)throw new sM;return S.then(x=>g(x,c,E))}return g(S,c,E)}}Ys(n,"~standard",()=>({validate:g=>{var b;try{const w=PUn(n,g);return w.success?{value:w.data}:{issues:(b=w.error)==null?void 0:b.issues}}catch{return jUn(n,g).then(E=>{var S;return E.success?{value:E.data}:{issues:(S=E.error)==null?void 0:S.issues}})}},vendor:"zod",version:1}))}),hMe=cn("$ZodString",(n,i)=>{var s;Ku.init(n,i),n._zod.pattern=[...((s=n==null?void 0:n._zod.bag)==null?void 0:s.patterns)??[]].pop()??fHn(n._zod.bag),n._zod.parse=(c,d)=>{if(i.coerce)try{c.value=String(c.value)}catch{}return typeof c.value=="string"||c.issues.push({expected:"string",code:"invalid_type",input:c.value,inst:n}),c}}),Pc=cn("$ZodStringFormat",(n,i)=>{Nae.init(n,i),hMe.init(n,i)}),OHn=cn("$ZodGUID",(n,i)=>{i.pattern??(i.pattern=QUn),Pc.init(n,i)}),DHn=cn("$ZodUUID",(n,i)=>{if(i.version){const c={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[i.version];if(c===void 0)throw new Error(`Invalid UUID version: "${i.version}"`);i.pattern??(i.pattern=f8t(c))}else i.pattern??(i.pattern=f8t());Pc.init(n,i)}),LHn=cn("$ZodEmail",(n,i)=>{i.pattern??(i.pattern=eHn),Pc.init(n,i)}),MHn=cn("$ZodURL",(n,i)=>{Pc.init(n,i),n._zod.check=s=>{try{const c=s.value.trim(),d=new URL(c);i.hostname&&(i.hostname.lastIndex=0,i.hostname.test(d.hostname)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:i.hostname.source,input:s.value,inst:n,continue:!i.abort})),i.protocol&&(i.protocol.lastIndex=0,i.protocol.test(d.protocol.endsWith(":")?d.protocol.slice(0,-1):d.protocol)||s.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:i.protocol.source,input:s.value,inst:n,continue:!i.abort})),i.normalize?s.value=d.href:s.value=c;return}catch{s.issues.push({code:"invalid_format",format:"url",input:s.value,inst:n,continue:!i.abort})}}}),PHn=cn("$ZodEmoji",(n,i)=>{i.pattern??(i.pattern=nHn()),Pc.init(n,i)}),jHn=cn("$ZodNanoID",(n,i)=>{i.pattern??(i.pattern=XUn),Pc.init(n,i)}),FHn=cn("$ZodCUID",(n,i)=>{i.pattern??(i.pattern=VUn),Pc.init(n,i)}),$Hn=cn("$ZodCUID2",(n,i)=>{i.pattern??(i.pattern=WUn),Pc.init(n,i)}),BHn=cn("$ZodULID",(n,i)=>{i.pattern??(i.pattern=KUn),Pc.init(n,i)}),UHn=cn("$ZodXID",(n,i)=>{i.pattern??(i.pattern=YUn),Pc.init(n,i)}),HHn=cn("$ZodKSUID",(n,i)=>{i.pattern??(i.pattern=JUn),Pc.init(n,i)}),zHn=cn("$ZodISODateTime",(n,i)=>{i.pattern??(i.pattern=dHn(i)),Pc.init(n,i)}),GHn=cn("$ZodISODate",(n,i)=>{i.pattern??(i.pattern=cHn),Pc.init(n,i)}),qHn=cn("$ZodISOTime",(n,i)=>{i.pattern??(i.pattern=lHn(i)),Pc.init(n,i)}),VHn=cn("$ZodISODuration",(n,i)=>{i.pattern??(i.pattern=ZUn),Pc.init(n,i)}),WHn=cn("$ZodIPv4",(n,i)=>{i.pattern??(i.pattern=rHn),Pc.init(n,i),n._zod.bag.format="ipv4"}),KHn=cn("$ZodIPv6",(n,i)=>{i.pattern??(i.pattern=iHn),Pc.init(n,i),n._zod.bag.format="ipv6",n._zod.check=s=>{try{new URL(`http://[${s.value}]`)}catch{s.issues.push({code:"invalid_format",format:"ipv6",input:s.value,inst:n,continue:!i.abort})}}}),YHn=cn("$ZodCIDRv4",(n,i)=>{i.pattern??(i.pattern=oHn),Pc.init(n,i)}),JHn=cn("$ZodCIDRv6",(n,i)=>{i.pattern??(i.pattern=sHn),Pc.init(n,i),n._zod.check=s=>{const c=s.value.split("/");try{if(c.length!==2)throw new Error;const[d,g]=c;if(!g)throw new Error;const b=Number(g);if(`${b}`!==g)throw new Error;if(b<0||b>128)throw new Error;new URL(`http://[${d}]`)}catch{s.issues.push({code:"invalid_format",format:"cidrv6",input:s.value,inst:n,continue:!i.abort})}}});function yVt(n){if(n==="")return!0;if(n.length%4!==0)return!1;try{return atob(n),!0}catch{return!1}}const XHn=cn("$ZodBase64",(n,i)=>{i.pattern??(i.pattern=aHn),Pc.init(n,i),n._zod.bag.contentEncoding="base64",n._zod.check=s=>{yVt(s.value)||s.issues.push({code:"invalid_format",format:"base64",input:s.value,inst:n,continue:!i.abort})}});function ZHn(n){if(!fVt.test(n))return!1;const i=n.replace(/[-_]/g,c=>c==="-"?"+":"/"),s=i.padEnd(Math.ceil(i.length/4)*4,"=");return yVt(s)}const QHn=cn("$ZodBase64URL",(n,i)=>{i.pattern??(i.pattern=fVt),Pc.init(n,i),n._zod.bag.contentEncoding="base64url",n._zod.check=s=>{ZHn(s.value)||s.issues.push({code:"invalid_format",format:"base64url",input:s.value,inst:n,continue:!i.abort})}}),ezn=cn("$ZodE164",(n,i)=>{i.pattern??(i.pattern=uHn),Pc.init(n,i)});function tzn(n,i=null){try{const s=n.split(".");if(s.length!==3)return!1;const[c]=s;if(!c)return!1;const d=JSON.parse(atob(c));return!("typ"in d&&(d==null?void 0:d.typ)!=="JWT"||!d.alg||i&&(!("alg"in d)||d.alg!==i))}catch{return!1}}const nzn=cn("$ZodJWT",(n,i)=>{Pc.init(n,i),n._zod.check=s=>{tzn(s.value,i.alg)||s.issues.push({code:"invalid_format",format:"jwt",input:s.value,inst:n,continue:!i.abort})}}),vVt=cn("$ZodNumber",(n,i)=>{Ku.init(n,i),n._zod.pattern=n._zod.bag.pattern??gVt,n._zod.parse=(s,c)=>{if(i.coerce)try{s.value=Number(s.value)}catch{}const d=s.value;if(typeof d=="number"&&!Number.isNaN(d)&&Number.isFinite(d))return s;const g=typeof d=="number"?Number.isNaN(d)?"NaN":Number.isFinite(d)?void 0:"Infinity":void 0;return s.issues.push({expected:"number",code:"invalid_type",input:d,inst:n,...g?{received:g}:{}}),s}}),rzn=cn("$ZodNumberFormat",(n,i)=>{yHn.init(n,i),vVt.init(n,i)}),izn=cn("$ZodBoolean",(n,i)=>{Ku.init(n,i),n._zod.pattern=pHn,n._zod.parse=(s,c)=>{if(i.coerce)try{s.value=!!s.value}catch{}const d=s.value;return typeof d=="boolean"||s.issues.push({expected:"boolean",code:"invalid_type",input:d,inst:n}),s}}),ozn=cn("$ZodNull",(n,i)=>{Ku.init(n,i),n._zod.pattern=gHn,n._zod.values=new Set([null]),n._zod.parse=(s,c)=>{const d=s.value;return d===null||s.issues.push({expected:"null",code:"invalid_type",input:d,inst:n}),s}}),szn=cn("$ZodAny",(n,i)=>{Ku.init(n,i),n._zod.parse=s=>s}),azn=cn("$ZodUnknown",(n,i)=>{Ku.init(n,i),n._zod.parse=s=>s}),uzn=cn("$ZodNever",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,c)=>(s.issues.push({expected:"never",code:"invalid_type",input:s.value,inst:n}),s)});function h8t(n,i,s){n.issues.length&&i.issues.push(...q5(s,n.issues)),i.value[s]=n.value}const czn=cn("$ZodArray",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,c)=>{const d=s.value;if(!Array.isArray(d))return s.issues.push({expected:"array",code:"invalid_type",input:d,inst:n}),s;s.value=Array(d.length);const g=[];for(let b=0;bh8t(S,s,b))):h8t(E,s,b)}return g.length?Promise.all(g).then(()=>s):s}});function ise(n,i,s,c,d){if(n.issues.length){if(d&&!(s in c))return;i.issues.push(...q5(s,n.issues))}n.value===void 0?s in c&&(i.value[s]=void 0):i.value[s]=n.value}function EVt(n){var c,d,g,b;const i=Object.keys(n.shape);for(const w of i)if(!((b=(g=(d=(c=n.shape)==null?void 0:c[w])==null?void 0:d._zod)==null?void 0:g.traits)!=null&&b.has("$ZodType")))throw new Error(`Invalid element at key "${w}": expected a Zod schema`);const s=_Un(n.shape);return{...n,keys:i,keySet:new Set(i),numKeys:i.length,optionalKeys:new Set(s)}}function SVt(n,i,s,c,d,g){const b=[],w=d.keySet,E=d.catchall._zod,S=E.def.type,x=E.optout==="optional";for(const A in i){if(w.has(A))continue;if(S==="never"){b.push(A);continue}const C=E.run({value:i[A],issues:[]},c);C instanceof Promise?n.push(C.then(R=>ise(R,s,A,i,x))):ise(C,s,A,i,x)}return b.length&&s.issues.push({code:"unrecognized_keys",keys:b,input:i,inst:g}),n.length?Promise.all(n).then(()=>s):s}const lzn=cn("$ZodObject",(n,i)=>{Ku.init(n,i);const s=Object.getOwnPropertyDescriptor(i,"shape");if(!(s!=null&&s.get)){const w=i.shape;Object.defineProperty(i,"shape",{get:()=>{const E={...w};return Object.defineProperty(i,"shape",{value:E}),E}})}const c=_ae(()=>EVt(i));Ys(n._zod,"propValues",()=>{const w=i.shape,E={};for(const S in w){const x=w[S]._zod;if(x.values){E[S]??(E[S]=new Set);for(const A of x.values)E[S].add(A)}}return E});const d=iz,g=i.catchall;let b;n._zod.parse=(w,E)=>{b??(b=c.value);const S=w.value;if(!d(S))return w.issues.push({expected:"object",code:"invalid_type",input:S,inst:n}),w;w.value={};const x=[],A=b.shape;for(const C of b.keys){const R=A[C],L=R._zod.optout==="optional",D=R._zod.run({value:S[C],issues:[]},E);D instanceof Promise?x.push(D.then(B=>ise(B,w,C,S,L))):ise(D,w,C,S,L)}return g?SVt(x,S,w,E,c.value,n):x.length?Promise.all(x).then(()=>w):w}}),dzn=cn("$ZodObjectJIT",(n,i)=>{lzn.init(n,i);const s=n._zod.parse,c=_ae(()=>EVt(i)),d=C=>{var P;const R=new IHn(["shape","payload","ctx"]),L=c.value,D=G=>{const ee=d8t(G);return`shape[${ee}]._zod.run({ value: input[${ee}], issues: [] }, ctx)`};R.write("const input = payload.value;");const B=Object.create(null);let $=0;for(const G of L.keys)B[G]=`key_${$++}`;R.write("const newResult = {};");for(const G of L.keys){const ee=B[G],re=d8t(G),Q=C[G],ie=((P=Q==null?void 0:Q._zod)==null?void 0:P.optout)==="optional";R.write(`const ${ee} = ${D(G)};`),ie?R.write(` + if (${ee}.issues.length) { + if (${re} in input) { + payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${re}, ...iss.path] : [${re}] + }))); + } + } + + if (${ee}.value === undefined) { + if (${re} in input) { + newResult[${re}] = undefined; + } + } else { + newResult[${re}] = ${ee}.value; + } + + `):R.write(` + if (${ee}.issues.length) { + payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${re}, ...iss.path] : [${re}] + }))); + } + + if (${ee}.value === undefined) { + if (${re} in input) { + newResult[${re}] = undefined; + } + } else { + newResult[${re}] = ${ee}.value; + } + + `)}R.write("payload.value = newResult;"),R.write("return payload;");const j=R.compile();return(G,ee)=>j(C,G,ee)};let g;const b=iz,w=!oVt.jitless,S=w&&TUn.value,x=i.catchall;let A;n._zod.parse=(C,R)=>{A??(A=c.value);const L=C.value;return b(L)?w&&S&&(R==null?void 0:R.async)===!1&&R.jitless!==!0?(g||(g=d(i.shape)),C=g(C,R),x?SVt([],L,C,R,A,n):C):s(C,R):(C.issues.push({expected:"object",code:"invalid_type",input:L,inst:n}),C)}});function p8t(n,i,s,c){for(const g of n)if(g.issues.length===0)return i.value=g.value,i;const d=n.filter(g=>!G5(g));return d.length===1?(i.value=d[0].value,d[0]):(i.issues.push({code:"invalid_union",input:i.value,inst:s,errors:n.map(g=>g.issues.map(b=>pN(b,c,hN())))}),i)}const TVt=cn("$ZodUnion",(n,i)=>{Ku.init(n,i),Ys(n._zod,"optin",()=>i.options.some(d=>d._zod.optin==="optional")?"optional":void 0),Ys(n._zod,"optout",()=>i.options.some(d=>d._zod.optout==="optional")?"optional":void 0),Ys(n._zod,"values",()=>{if(i.options.every(d=>d._zod.values))return new Set(i.options.flatMap(d=>Array.from(d._zod.values)))}),Ys(n._zod,"pattern",()=>{if(i.options.every(d=>d._zod.pattern)){const d=i.options.map(g=>g._zod.pattern);return new RegExp(`^(${d.map(g=>cMe(g.source)).join("|")})$`)}});const s=i.options.length===1,c=i.options[0]._zod.run;n._zod.parse=(d,g)=>{if(s)return c(d,g);let b=!1;const w=[];for(const E of i.options){const S=E._zod.run({value:d.value,issues:[]},g);if(S instanceof Promise)w.push(S),b=!0;else{if(S.issues.length===0)return S;w.push(S)}}return b?Promise.all(w).then(E=>p8t(E,d,n,g)):p8t(w,d,n,g)}}),fzn=cn("$ZodDiscriminatedUnion",(n,i)=>{i.inclusive=!1,TVt.init(n,i);const s=n._zod.parse;Ys(n._zod,"propValues",()=>{const d={};for(const g of i.options){const b=g._zod.propValues;if(!b||Object.keys(b).length===0)throw new Error(`Invalid discriminated union option at index "${i.options.indexOf(g)}"`);for(const[w,E]of Object.entries(b)){d[w]||(d[w]=new Set);for(const S of E)d[w].add(S)}}return d});const c=_ae(()=>{var b;const d=i.options,g=new Map;for(const w of d){const E=(b=w._zod.propValues)==null?void 0:b[i.discriminator];if(!E||E.size===0)throw new Error(`Invalid discriminated union option at index "${i.options.indexOf(w)}"`);for(const S of E){if(g.has(S))throw new Error(`Duplicate discriminator value "${String(S)}"`);g.set(S,w)}}return g});n._zod.parse=(d,g)=>{const b=d.value;if(!iz(b))return d.issues.push({code:"invalid_type",expected:"object",input:b,inst:n}),d;const w=c.value.get(b==null?void 0:b[i.discriminator]);return w?w._zod.run(d,g):i.unionFallback?s(d,g):(d.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:i.discriminator,input:b,path:[i.discriminator],inst:n}),d)}}),hzn=cn("$ZodIntersection",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,c)=>{const d=s.value,g=i.left._zod.run({value:d,issues:[]},c),b=i.right._zod.run({value:d,issues:[]},c);return g instanceof Promise||b instanceof Promise?Promise.all([g,b]).then(([E,S])=>g8t(s,E,S)):g8t(s,g,b)}});function MDe(n,i){if(n===i)return{valid:!0,data:n};if(n instanceof Date&&i instanceof Date&&+n==+i)return{valid:!0,data:n};if(NM(n)&&NM(i)){const s=Object.keys(i),c=Object.keys(n).filter(g=>s.indexOf(g)!==-1),d={...n,...i};for(const g of c){const b=MDe(n[g],i[g]);if(!b.valid)return{valid:!1,mergeErrorPath:[g,...b.mergeErrorPath]};d[g]=b.data}return{valid:!0,data:d}}if(Array.isArray(n)&&Array.isArray(i)){if(n.length!==i.length)return{valid:!1,mergeErrorPath:[]};const s=[];for(let c=0;cw.l&&w.r).map(([w])=>w);if(g.length&&d&&n.issues.push({...d,keys:g}),G5(n))return n;const b=MDe(i.value,s.value);if(!b.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(b.mergeErrorPath)}`);return n.value=b.data,n}const pzn=cn("$ZodRecord",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,c)=>{const d=s.value;if(!NM(d))return s.issues.push({expected:"record",code:"invalid_type",input:d,inst:n}),s;const g=[],b=i.keyType._zod.values;if(b){s.value={};const w=new Set;for(const S of b)if(typeof S=="string"||typeof S=="number"||typeof S=="symbol"){w.add(typeof S=="number"?S.toString():S);const x=i.valueType._zod.run({value:d[S],issues:[]},c);x instanceof Promise?g.push(x.then(A=>{A.issues.length&&s.issues.push(...q5(S,A.issues)),s.value[S]=A.value})):(x.issues.length&&s.issues.push(...q5(S,x.issues)),s.value[S]=x.value)}let E;for(const S in d)w.has(S)||(E=E??[],E.push(S));E&&E.length>0&&s.issues.push({code:"unrecognized_keys",input:d,inst:n,keys:E})}else{s.value={};for(const w of Reflect.ownKeys(d)){if(w==="__proto__")continue;let E=i.keyType._zod.run({value:w,issues:[]},c);if(E instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof w=="string"&&gVt.test(w)&&E.issues.length&&E.issues.some(A=>A.code==="invalid_type"&&A.expected==="number")){const A=i.keyType._zod.run({value:Number(w),issues:[]},c);if(A instanceof Promise)throw new Error("Async schemas not supported in object keys currently");A.issues.length===0&&(E=A)}if(E.issues.length){i.mode==="loose"?s.value[w]=d[w]:s.issues.push({code:"invalid_key",origin:"record",issues:E.issues.map(A=>pN(A,c,hN())),input:w,path:[w],inst:n});continue}const x=i.valueType._zod.run({value:d[w],issues:[]},c);x instanceof Promise?g.push(x.then(A=>{A.issues.length&&s.issues.push(...q5(w,A.issues)),s.value[E.value]=A.value})):(x.issues.length&&s.issues.push(...q5(w,x.issues)),s.value[E.value]=x.value)}}return g.length?Promise.all(g).then(()=>s):s}}),gzn=cn("$ZodEnum",(n,i)=>{Ku.init(n,i);const s=sVt(i.entries),c=new Set(s);n._zod.values=c,n._zod.pattern=new RegExp(`^(${s.filter(d=>AUn.has(typeof d)).map(d=>typeof d=="string"?CM(d):d.toString()).join("|")})$`),n._zod.parse=(d,g)=>{const b=d.value;return c.has(b)||d.issues.push({code:"invalid_value",values:s,input:b,inst:n}),d}}),bzn=cn("$ZodLiteral",(n,i)=>{if(Ku.init(n,i),i.values.length===0)throw new Error("Cannot create literal schema with no valid values");const s=new Set(i.values);n._zod.values=s,n._zod.pattern=new RegExp(`^(${i.values.map(c=>typeof c=="string"?CM(c):c?CM(c.toString()):String(c)).join("|")})$`),n._zod.parse=(c,d)=>{const g=c.value;return s.has(g)||c.issues.push({code:"invalid_value",values:i.values,input:g,inst:n}),c}}),mzn=cn("$ZodTransform",(n,i)=>{Ku.init(n,i),n._zod.parse=(s,c)=>{if(c.direction==="backward")throw new iVt(n.constructor.name);const d=i.transform(s.value,s);if(c.async)return(d instanceof Promise?d:Promise.resolve(d)).then(b=>(s.value=b,s));if(d instanceof Promise)throw new sM;return s.value=d,s}});function b8t(n,i){return n.issues.length&&i===void 0?{issues:[],value:void 0}:n}const AVt=cn("$ZodOptional",(n,i)=>{Ku.init(n,i),n._zod.optin="optional",n._zod.optout="optional",Ys(n._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,void 0]):void 0),Ys(n._zod,"pattern",()=>{const s=i.innerType._zod.pattern;return s?new RegExp(`^(${cMe(s.source)})?$`):void 0}),n._zod.parse=(s,c)=>{if(i.innerType._zod.optin==="optional"){const d=i.innerType._zod.run(s,c);return d instanceof Promise?d.then(g=>b8t(g,s.value)):b8t(d,s.value)}return s.value===void 0?s:i.innerType._zod.run(s,c)}}),wzn=cn("$ZodExactOptional",(n,i)=>{AVt.init(n,i),Ys(n._zod,"values",()=>i.innerType._zod.values),Ys(n._zod,"pattern",()=>i.innerType._zod.pattern),n._zod.parse=(s,c)=>i.innerType._zod.run(s,c)}),yzn=cn("$ZodNullable",(n,i)=>{Ku.init(n,i),Ys(n._zod,"optin",()=>i.innerType._zod.optin),Ys(n._zod,"optout",()=>i.innerType._zod.optout),Ys(n._zod,"pattern",()=>{const s=i.innerType._zod.pattern;return s?new RegExp(`^(${cMe(s.source)}|null)$`):void 0}),Ys(n._zod,"values",()=>i.innerType._zod.values?new Set([...i.innerType._zod.values,null]):void 0),n._zod.parse=(s,c)=>s.value===null?s:i.innerType._zod.run(s,c)}),vzn=cn("$ZodDefault",(n,i)=>{Ku.init(n,i),n._zod.optin="optional",Ys(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(s,c)=>{if(c.direction==="backward")return i.innerType._zod.run(s,c);if(s.value===void 0)return s.value=i.defaultValue,s;const d=i.innerType._zod.run(s,c);return d instanceof Promise?d.then(g=>m8t(g,i)):m8t(d,i)}});function m8t(n,i){return n.value===void 0&&(n.value=i.defaultValue),n}const Ezn=cn("$ZodPrefault",(n,i)=>{Ku.init(n,i),n._zod.optin="optional",Ys(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(s,c)=>(c.direction==="backward"||s.value===void 0&&(s.value=i.defaultValue),i.innerType._zod.run(s,c))}),Szn=cn("$ZodNonOptional",(n,i)=>{Ku.init(n,i),Ys(n._zod,"values",()=>{const s=i.innerType._zod.values;return s?new Set([...s].filter(c=>c!==void 0)):void 0}),n._zod.parse=(s,c)=>{const d=i.innerType._zod.run(s,c);return d instanceof Promise?d.then(g=>w8t(g,n)):w8t(d,n)}});function w8t(n,i){return!n.issues.length&&n.value===void 0&&n.issues.push({code:"invalid_type",expected:"nonoptional",input:n.value,inst:i}),n}const Tzn=cn("$ZodCatch",(n,i)=>{Ku.init(n,i),Ys(n._zod,"optin",()=>i.innerType._zod.optin),Ys(n._zod,"optout",()=>i.innerType._zod.optout),Ys(n._zod,"values",()=>i.innerType._zod.values),n._zod.parse=(s,c)=>{if(c.direction==="backward")return i.innerType._zod.run(s,c);const d=i.innerType._zod.run(s,c);return d instanceof Promise?d.then(g=>(s.value=g.value,g.issues.length&&(s.value=i.catchValue({...s,error:{issues:g.issues.map(b=>pN(b,c,hN()))},input:s.value}),s.issues=[]),s)):(s.value=d.value,d.issues.length&&(s.value=i.catchValue({...s,error:{issues:d.issues.map(g=>pN(g,c,hN()))},input:s.value}),s.issues=[]),s)}}),Azn=cn("$ZodPipe",(n,i)=>{Ku.init(n,i),Ys(n._zod,"values",()=>i.in._zod.values),Ys(n._zod,"optin",()=>i.in._zod.optin),Ys(n._zod,"optout",()=>i.out._zod.optout),Ys(n._zod,"propValues",()=>i.in._zod.propValues),n._zod.parse=(s,c)=>{if(c.direction==="backward"){const g=i.out._zod.run(s,c);return g instanceof Promise?g.then(b=>Cie(b,i.in,c)):Cie(g,i.in,c)}const d=i.in._zod.run(s,c);return d instanceof Promise?d.then(g=>Cie(g,i.out,c)):Cie(d,i.out,c)}});function Cie(n,i,s){return n.issues.length?(n.aborted=!0,n):i._zod.run({value:n.value,issues:n.issues},s)}const _zn=cn("$ZodReadonly",(n,i)=>{Ku.init(n,i),Ys(n._zod,"propValues",()=>i.innerType._zod.propValues),Ys(n._zod,"values",()=>i.innerType._zod.values),Ys(n._zod,"optin",()=>{var s,c;return(c=(s=i.innerType)==null?void 0:s._zod)==null?void 0:c.optin}),Ys(n._zod,"optout",()=>{var s,c;return(c=(s=i.innerType)==null?void 0:s._zod)==null?void 0:c.optout}),n._zod.parse=(s,c)=>{if(c.direction==="backward")return i.innerType._zod.run(s,c);const d=i.innerType._zod.run(s,c);return d instanceof Promise?d.then(y8t):y8t(d)}});function y8t(n){return n.value=Object.freeze(n.value),n}const xzn=cn("$ZodLazy",(n,i)=>{Ku.init(n,i),Ys(n._zod,"innerType",()=>i.getter()),Ys(n._zod,"pattern",()=>{var s,c;return(c=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:c.pattern}),Ys(n._zod,"propValues",()=>{var s,c;return(c=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:c.propValues}),Ys(n._zod,"optin",()=>{var s,c;return((c=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:c.optin)??void 0}),Ys(n._zod,"optout",()=>{var s,c;return((c=(s=n._zod.innerType)==null?void 0:s._zod)==null?void 0:c.optout)??void 0}),n._zod.parse=(s,c)=>n._zod.innerType._zod.run(s,c)}),kzn=cn("$ZodCustom",(n,i)=>{hb.init(n,i),Ku.init(n,i),n._zod.parse=(s,c)=>s,n._zod.check=s=>{const c=s.value,d=i.fn(c);if(d instanceof Promise)return d.then(g=>v8t(g,s,c,n));v8t(d,s,c,n)}});function v8t(n,i,s,c){if(!n){const d={code:"custom",input:s,inst:c,path:[...c._zod.def.path??[]],continue:!c._zod.def.abort};c._zod.def.params&&(d.params=c._zod.def.params),i.issues.push(oz(d))}}var E8t;class Nzn{constructor(){this._map=new WeakMap,this._idmap=new Map}add(i,...s){const c=s[0];return this._map.set(i,c),c&&typeof c=="object"&&"id"in c&&this._idmap.set(c.id,i),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(i){const s=this._map.get(i);return s&&typeof s=="object"&&"id"in s&&this._idmap.delete(s.id),this._map.delete(i),this}get(i){const s=i._zod.parent;if(s){const c={...this.get(s)??{}};delete c.id;const d={...c,...this._map.get(i)};return Object.keys(d).length?d:void 0}return this._map.get(i)}has(i){return this._map.has(i)}}function Czn(){return new Nzn}(E8t=globalThis).__zod_globalRegistry??(E8t.__zod_globalRegistry=Czn());const ZU=globalThis.__zod_globalRegistry;function Izn(n,i){return new n({type:"string",...wi(i)})}function Rzn(n,i){return new n({type:"string",format:"email",check:"string_format",abort:!1,...wi(i)})}function S8t(n,i){return new n({type:"string",format:"guid",check:"string_format",abort:!1,...wi(i)})}function Ozn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,...wi(i)})}function Dzn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...wi(i)})}function Lzn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...wi(i)})}function Mzn(n,i){return new n({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...wi(i)})}function Pzn(n,i){return new n({type:"string",format:"url",check:"string_format",abort:!1,...wi(i)})}function jzn(n,i){return new n({type:"string",format:"emoji",check:"string_format",abort:!1,...wi(i)})}function Fzn(n,i){return new n({type:"string",format:"nanoid",check:"string_format",abort:!1,...wi(i)})}function $zn(n,i){return new n({type:"string",format:"cuid",check:"string_format",abort:!1,...wi(i)})}function Bzn(n,i){return new n({type:"string",format:"cuid2",check:"string_format",abort:!1,...wi(i)})}function Uzn(n,i){return new n({type:"string",format:"ulid",check:"string_format",abort:!1,...wi(i)})}function Hzn(n,i){return new n({type:"string",format:"xid",check:"string_format",abort:!1,...wi(i)})}function zzn(n,i){return new n({type:"string",format:"ksuid",check:"string_format",abort:!1,...wi(i)})}function Gzn(n,i){return new n({type:"string",format:"ipv4",check:"string_format",abort:!1,...wi(i)})}function qzn(n,i){return new n({type:"string",format:"ipv6",check:"string_format",abort:!1,...wi(i)})}function Vzn(n,i){return new n({type:"string",format:"cidrv4",check:"string_format",abort:!1,...wi(i)})}function Wzn(n,i){return new n({type:"string",format:"cidrv6",check:"string_format",abort:!1,...wi(i)})}function Kzn(n,i){return new n({type:"string",format:"base64",check:"string_format",abort:!1,...wi(i)})}function Yzn(n,i){return new n({type:"string",format:"base64url",check:"string_format",abort:!1,...wi(i)})}function Jzn(n,i){return new n({type:"string",format:"e164",check:"string_format",abort:!1,...wi(i)})}function Xzn(n,i){return new n({type:"string",format:"jwt",check:"string_format",abort:!1,...wi(i)})}function Zzn(n,i){return new n({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...wi(i)})}function Qzn(n,i){return new n({type:"string",format:"date",check:"string_format",...wi(i)})}function eGn(n,i){return new n({type:"string",format:"time",check:"string_format",precision:null,...wi(i)})}function tGn(n,i){return new n({type:"string",format:"duration",check:"string_format",...wi(i)})}function nGn(n,i){return new n({type:"number",checks:[],...wi(i)})}function rGn(n,i){return new n({type:"number",check:"number_format",abort:!1,format:"safeint",...wi(i)})}function iGn(n,i){return new n({type:"boolean",...wi(i)})}function oGn(n,i){return new n({type:"null",...wi(i)})}function sGn(n){return new n({type:"any"})}function aGn(n){return new n({type:"unknown"})}function uGn(n,i){return new n({type:"never",...wi(i)})}function T8t(n,i){return new mVt({check:"less_than",...wi(i),value:n,inclusive:!1})}function aIe(n,i){return new mVt({check:"less_than",...wi(i),value:n,inclusive:!0})}function A8t(n,i){return new wVt({check:"greater_than",...wi(i),value:n,inclusive:!1})}function uIe(n,i){return new wVt({check:"greater_than",...wi(i),value:n,inclusive:!0})}function _8t(n,i){return new wHn({check:"multiple_of",...wi(i),value:n})}function _Vt(n,i){return new vHn({check:"max_length",...wi(i),maximum:n})}function ose(n,i){return new EHn({check:"min_length",...wi(i),minimum:n})}function xVt(n,i){return new SHn({check:"length_equals",...wi(i),length:n})}function cGn(n,i){return new THn({check:"string_format",format:"regex",...wi(i),pattern:n})}function lGn(n){return new AHn({check:"string_format",format:"lowercase",...wi(n)})}function dGn(n){return new _Hn({check:"string_format",format:"uppercase",...wi(n)})}function fGn(n,i){return new xHn({check:"string_format",format:"includes",...wi(i),includes:n})}function hGn(n,i){return new kHn({check:"string_format",format:"starts_with",...wi(i),prefix:n})}function pGn(n,i){return new NHn({check:"string_format",format:"ends_with",...wi(i),suffix:n})}function UM(n){return new CHn({check:"overwrite",tx:n})}function gGn(n){return UM(i=>i.normalize(n))}function bGn(){return UM(n=>n.trim())}function mGn(){return UM(n=>n.toLowerCase())}function wGn(){return UM(n=>n.toUpperCase())}function yGn(){return UM(n=>SUn(n))}function vGn(n,i,s){return new n({type:"array",element:i,...wi(s)})}function EGn(n,i,s){return new n({type:"custom",check:"custom",fn:i,...wi(s)})}function SGn(n){const i=TGn(s=>(s.addIssue=c=>{if(typeof c=="string")s.issues.push(oz(c,s.value,i._zod.def));else{const d=c;d.fatal&&(d.continue=!1),d.code??(d.code="custom"),d.input??(d.input=s.value),d.inst??(d.inst=i),d.continue??(d.continue=!i._zod.def.abort),s.issues.push(oz(d))}},n(s.value,s)));return i}function TGn(n,i){const s=new hb({check:"custom",...wi(i)});return s._zod.check=n,s}function kVt(n){let i=(n==null?void 0:n.target)??"draft-2020-12";return i==="draft-4"&&(i="draft-04"),i==="draft-7"&&(i="draft-07"),{processors:n.processors??{},metadataRegistry:(n==null?void 0:n.metadata)??ZU,target:i,unrepresentable:(n==null?void 0:n.unrepresentable)??"throw",override:(n==null?void 0:n.override)??(()=>{}),io:(n==null?void 0:n.io)??"output",counter:0,seen:new Map,cycles:(n==null?void 0:n.cycles)??"ref",reused:(n==null?void 0:n.reused)??"inline",external:(n==null?void 0:n.external)??void 0}}function gd(n,i,s={path:[],schemaPath:[]}){var x,A;var c;const d=n._zod.def,g=i.seen.get(n);if(g)return g.count++,s.schemaPath.includes(n)&&(g.cycle=s.path),g.schema;const b={schema:{},count:1,cycle:void 0,path:s.path};i.seen.set(n,b);const w=(A=(x=n._zod).toJSONSchema)==null?void 0:A.call(x);if(w)b.schema=w;else{const C={...s,schemaPath:[...s.schemaPath,n],path:s.path};if(n._zod.processJSONSchema)n._zod.processJSONSchema(i,b.schema,C);else{const L=b.schema,D=i.processors[d.type];if(!D)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${d.type}`);D(n,i,L,C)}const R=n._zod.parent;R&&(b.ref||(b.ref=R),gd(R,i,C),i.seen.get(R).isParent=!0)}const E=i.metadataRegistry.get(n);return E&&Object.assign(b.schema,E),i.io==="input"&&$g(n)&&(delete b.schema.examples,delete b.schema.default),i.io==="input"&&b.schema._prefault&&((c=b.schema).default??(c.default=b.schema._prefault)),delete b.schema._prefault,i.seen.get(n).schema}function NVt(n,i){var b,w,E,S;const s=n.seen.get(i);if(!s)throw new Error("Unprocessed schema. This is a bug in Zod.");const c=new Map;for(const x of n.seen.entries()){const A=(b=n.metadataRegistry.get(x[0]))==null?void 0:b.id;if(A){const C=c.get(A);if(C&&C!==x[0])throw new Error(`Duplicate schema id "${A}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);c.set(A,x[0])}}const d=x=>{var D;const A=n.target==="draft-2020-12"?"$defs":"definitions";if(n.external){const B=(D=n.external.registry.get(x[0]))==null?void 0:D.id,$=n.external.uri??(P=>P);if(B)return{ref:$(B)};const j=x[1].defId??x[1].schema.id??`schema${n.counter++}`;return x[1].defId=j,{defId:j,ref:`${$("__shared")}#/${A}/${j}`}}if(x[1]===s)return{ref:"#"};const R=`#/${A}/`,L=x[1].schema.id??`__schema${n.counter++}`;return{defId:L,ref:R+L}},g=x=>{if(x[1].schema.$ref)return;const A=x[1],{ref:C,defId:R}=d(x);A.def={...A.schema},R&&(A.defId=R);const L=A.schema;for(const D in L)delete L[D];L.$ref=C};if(n.cycles==="throw")for(const x of n.seen.entries()){const A=x[1];if(A.cycle)throw new Error(`Cycle detected: #/${(w=A.cycle)==null?void 0:w.join("/")}/ + +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const x of n.seen.entries()){const A=x[1];if(i===x[0]){g(x);continue}if(n.external){const R=(E=n.external.registry.get(x[0]))==null?void 0:E.id;if(i!==x[0]&&R){g(x);continue}}if((S=n.metadataRegistry.get(x[0]))==null?void 0:S.id){g(x);continue}if(A.cycle){g(x);continue}if(A.count>1&&n.reused==="ref"){g(x);continue}}}function CVt(n,i){var b,w,E;const s=n.seen.get(i);if(!s)throw new Error("Unprocessed schema. This is a bug in Zod.");const c=S=>{const x=n.seen.get(S);if(x.ref===null)return;const A=x.def??x.schema,C={...A},R=x.ref;if(x.ref=null,R){c(R);const D=n.seen.get(R),B=D.schema;if(B.$ref&&(n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0")?(A.allOf=A.allOf??[],A.allOf.push(B)):Object.assign(A,B),Object.assign(A,C),S._zod.parent===R)for(const j in A)j==="$ref"||j==="allOf"||j in C||delete A[j];if(B.$ref)for(const j in A)j==="$ref"||j==="allOf"||j in D.def&&JSON.stringify(A[j])===JSON.stringify(D.def[j])&&delete A[j]}const L=S._zod.parent;if(L&&L!==R){c(L);const D=n.seen.get(L);if(D!=null&&D.schema.$ref&&(A.$ref=D.schema.$ref,D.def))for(const B in A)B==="$ref"||B==="allOf"||B in D.def&&JSON.stringify(A[B])===JSON.stringify(D.def[B])&&delete A[B]}n.override({zodSchema:S,jsonSchema:A,path:x.path??[]})};for(const S of[...n.seen.entries()].reverse())c(S[0]);const d={};if(n.target==="draft-2020-12"?d.$schema="https://json-schema.org/draft/2020-12/schema":n.target==="draft-07"?d.$schema="http://json-schema.org/draft-07/schema#":n.target==="draft-04"?d.$schema="http://json-schema.org/draft-04/schema#":n.target,(b=n.external)!=null&&b.uri){const S=(w=n.external.registry.get(i))==null?void 0:w.id;if(!S)throw new Error("Schema is missing an `id` property");d.$id=n.external.uri(S)}Object.assign(d,s.def??s.schema);const g=((E=n.external)==null?void 0:E.defs)??{};for(const S of n.seen.entries()){const x=S[1];x.def&&x.defId&&(g[x.defId]=x.def)}n.external||Object.keys(g).length>0&&(n.target==="draft-2020-12"?d.$defs=g:d.definitions=g);try{const S=JSON.parse(JSON.stringify(d));return Object.defineProperty(S,"~standard",{value:{...i["~standard"],jsonSchema:{input:sse(i,"input",n.processors),output:sse(i,"output",n.processors)}},enumerable:!1,writable:!1}),S}catch{throw new Error("Error converting schema to JSON.")}}function $g(n,i){const s=i??{seen:new Set};if(s.seen.has(n))return!1;s.seen.add(n);const c=n._zod.def;if(c.type==="transform")return!0;if(c.type==="array")return $g(c.element,s);if(c.type==="set")return $g(c.valueType,s);if(c.type==="lazy")return $g(c.getter(),s);if(c.type==="promise"||c.type==="optional"||c.type==="nonoptional"||c.type==="nullable"||c.type==="readonly"||c.type==="default"||c.type==="prefault")return $g(c.innerType,s);if(c.type==="intersection")return $g(c.left,s)||$g(c.right,s);if(c.type==="record"||c.type==="map")return $g(c.keyType,s)||$g(c.valueType,s);if(c.type==="pipe")return $g(c.in,s)||$g(c.out,s);if(c.type==="object"){for(const d in c.shape)if($g(c.shape[d],s))return!0;return!1}if(c.type==="union"){for(const d of c.options)if($g(d,s))return!0;return!1}if(c.type==="tuple"){for(const d of c.items)if($g(d,s))return!0;return!!(c.rest&&$g(c.rest,s))}return!1}const AGn=(n,i={})=>s=>{const c=kVt({...s,processors:i});return gd(n,c),NVt(c,n),CVt(c,n)},sse=(n,i,s={})=>c=>{const{libraryOptions:d,target:g}=c??{},b=kVt({...d??{},target:g,io:i,processors:s});return gd(n,b),NVt(b,n),CVt(b,n)},_Gn={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},xGn=(n,i,s,c)=>{const d=s;d.type="string";const{minimum:g,maximum:b,format:w,patterns:E,contentEncoding:S}=n._zod.bag;if(typeof g=="number"&&(d.minLength=g),typeof b=="number"&&(d.maxLength=b),w&&(d.format=_Gn[w]??w,d.format===""&&delete d.format,w==="time"&&delete d.format),S&&(d.contentEncoding=S),E&&E.size>0){const x=[...E];x.length===1?d.pattern=x[0].source:x.length>1&&(d.allOf=[...x.map(A=>({...i.target==="draft-07"||i.target==="draft-04"||i.target==="openapi-3.0"?{type:"string"}:{},pattern:A.source}))])}},kGn=(n,i,s,c)=>{const d=s,{minimum:g,maximum:b,format:w,multipleOf:E,exclusiveMaximum:S,exclusiveMinimum:x}=n._zod.bag;typeof w=="string"&&w.includes("int")?d.type="integer":d.type="number",typeof x=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.minimum=x,d.exclusiveMinimum=!0):d.exclusiveMinimum=x),typeof g=="number"&&(d.minimum=g,typeof x=="number"&&i.target!=="draft-04"&&(x>=g?delete d.minimum:delete d.exclusiveMinimum)),typeof S=="number"&&(i.target==="draft-04"||i.target==="openapi-3.0"?(d.maximum=S,d.exclusiveMaximum=!0):d.exclusiveMaximum=S),typeof b=="number"&&(d.maximum=b,typeof S=="number"&&i.target!=="draft-04"&&(S<=b?delete d.maximum:delete d.exclusiveMaximum)),typeof E=="number"&&(d.multipleOf=E)},NGn=(n,i,s,c)=>{s.type="boolean"},CGn=(n,i,s,c)=>{i.target==="openapi-3.0"?(s.type="string",s.nullable=!0,s.enum=[null]):s.type="null"},IGn=(n,i,s,c)=>{s.not={}},RGn=(n,i,s,c)=>{},OGn=(n,i,s,c)=>{},DGn=(n,i,s,c)=>{const d=n._zod.def,g=sVt(d.entries);g.every(b=>typeof b=="number")&&(s.type="number"),g.every(b=>typeof b=="string")&&(s.type="string"),s.enum=g},LGn=(n,i,s,c)=>{const d=n._zod.def,g=[];for(const b of d.values)if(b===void 0){if(i.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof b=="bigint"){if(i.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");g.push(Number(b))}else g.push(b);if(g.length!==0)if(g.length===1){const b=g[0];s.type=b===null?"null":typeof b,i.target==="draft-04"||i.target==="openapi-3.0"?s.enum=[b]:s.const=b}else g.every(b=>typeof b=="number")&&(s.type="number"),g.every(b=>typeof b=="string")&&(s.type="string"),g.every(b=>typeof b=="boolean")&&(s.type="boolean"),g.every(b=>b===null)&&(s.type="null"),s.enum=g},MGn=(n,i,s,c)=>{if(i.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},PGn=(n,i,s,c)=>{if(i.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},jGn=(n,i,s,c)=>{const d=s,g=n._zod.def,{minimum:b,maximum:w}=n._zod.bag;typeof b=="number"&&(d.minItems=b),typeof w=="number"&&(d.maxItems=w),d.type="array",d.items=gd(g.element,i,{...c,path:[...c.path,"items"]})},FGn=(n,i,s,c)=>{var S;const d=s,g=n._zod.def;d.type="object",d.properties={};const b=g.shape;for(const x in b)d.properties[x]=gd(b[x],i,{...c,path:[...c.path,"properties",x]});const w=new Set(Object.keys(b)),E=new Set([...w].filter(x=>{const A=g.shape[x]._zod;return i.io==="input"?A.optin===void 0:A.optout===void 0}));E.size>0&&(d.required=Array.from(E)),((S=g.catchall)==null?void 0:S._zod.def.type)==="never"?d.additionalProperties=!1:g.catchall?g.catchall&&(d.additionalProperties=gd(g.catchall,i,{...c,path:[...c.path,"additionalProperties"]})):i.io==="output"&&(d.additionalProperties=!1)},$Gn=(n,i,s,c)=>{const d=n._zod.def,g=d.inclusive===!1,b=d.options.map((w,E)=>gd(w,i,{...c,path:[...c.path,g?"oneOf":"anyOf",E]}));g?s.oneOf=b:s.anyOf=b},BGn=(n,i,s,c)=>{const d=n._zod.def,g=gd(d.left,i,{...c,path:[...c.path,"allOf",0]}),b=gd(d.right,i,{...c,path:[...c.path,"allOf",1]}),w=S=>"allOf"in S&&Object.keys(S).length===1,E=[...w(g)?g.allOf:[g],...w(b)?b.allOf:[b]];s.allOf=E},UGn=(n,i,s,c)=>{const d=s,g=n._zod.def;d.type="object";const b=g.keyType,w=b._zod.bag,E=w==null?void 0:w.patterns;if(g.mode==="loose"&&E&&E.size>0){const x=gd(g.valueType,i,{...c,path:[...c.path,"patternProperties","*"]});d.patternProperties={};for(const A of E)d.patternProperties[A.source]=x}else(i.target==="draft-07"||i.target==="draft-2020-12")&&(d.propertyNames=gd(g.keyType,i,{...c,path:[...c.path,"propertyNames"]})),d.additionalProperties=gd(g.valueType,i,{...c,path:[...c.path,"additionalProperties"]});const S=b._zod.values;if(S){const x=[...S].filter(A=>typeof A=="string"||typeof A=="number");x.length>0&&(d.required=x)}},HGn=(n,i,s,c)=>{const d=n._zod.def,g=gd(d.innerType,i,c),b=i.seen.get(n);i.target==="openapi-3.0"?(b.ref=d.innerType,s.nullable=!0):s.anyOf=[g,{type:"null"}]},zGn=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType},GGn=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType,s.default=JSON.parse(JSON.stringify(d.defaultValue))},qGn=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType,i.io==="input"&&(s._prefault=JSON.parse(JSON.stringify(d.defaultValue)))},VGn=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType;let b;try{b=d.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}s.default=b},WGn=(n,i,s,c)=>{const d=n._zod.def,g=i.io==="input"?d.in._zod.def.type==="transform"?d.out:d.in:d.out;gd(g,i,c);const b=i.seen.get(n);b.ref=g},KGn=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType,s.readOnly=!0},IVt=(n,i,s,c)=>{const d=n._zod.def;gd(d.innerType,i,c);const g=i.seen.get(n);g.ref=d.innerType},YGn=(n,i,s,c)=>{const d=n._zod.innerType;gd(d,i,c);const g=i.seen.get(n);g.ref=d},JGn=cn("ZodISODateTime",(n,i)=>{zHn.init(n,i),hl.init(n,i)});function XGn(n){return Zzn(JGn,n)}const ZGn=cn("ZodISODate",(n,i)=>{GHn.init(n,i),hl.init(n,i)});function QGn(n){return Qzn(ZGn,n)}const eqn=cn("ZodISOTime",(n,i)=>{qHn.init(n,i),hl.init(n,i)});function tqn(n){return eGn(eqn,n)}const nqn=cn("ZodISODuration",(n,i)=>{VHn.init(n,i),hl.init(n,i)});function rqn(n){return tGn(nqn,n)}const RVt=(n,i)=>{lVt.init(n,i),n.name="ZodError",Object.defineProperties(n,{format:{value:s=>MUn(n,s)},flatten:{value:s=>LUn(n,s)},addIssue:{value:s=>{n.issues.push(s),n.message=JSON.stringify(n.issues,LDe,2)}},addIssues:{value:s=>{n.issues.push(...s),n.message=JSON.stringify(n.issues,LDe,2)}},isEmpty:{get(){return n.issues.length===0}}})},iqn=cn("ZodError",RVt),Nw=cn("ZodError",RVt,{Parent:Error}),oqn=dMe(Nw),sqn=fMe(Nw),aqn=xae(Nw),uqn=kae(Nw),cqn=FUn(Nw),lqn=$Un(Nw),dqn=BUn(Nw),fqn=UUn(Nw),hqn=HUn(Nw),pqn=zUn(Nw),gqn=GUn(Nw),bqn=qUn(Nw),Yu=cn("ZodType",(n,i)=>(Ku.init(n,i),Object.assign(n["~standard"],{jsonSchema:{input:sse(n,"input"),output:sse(n,"output")}}),n.toJSONSchema=AGn(n,{}),n.def=i,n.type=i.type,Object.defineProperty(n,"_def",{value:i}),n.check=(...s)=>n.clone(TN(i,{checks:[...i.checks??[],...s.map(c=>typeof c=="function"?{_zod:{check:c,def:{check:"custom"},onattach:[]}}:c)]}),{parent:!0}),n.with=n.check,n.clone=(s,c)=>AN(n,s,c),n.brand=()=>n,n.register=(s,c)=>(s.add(n,c),n),n.parse=(s,c)=>oqn(n,s,c,{callee:n.parse}),n.safeParse=(s,c)=>aqn(n,s,c),n.parseAsync=async(s,c)=>sqn(n,s,c,{callee:n.parseAsync}),n.safeParseAsync=async(s,c)=>uqn(n,s,c),n.spa=n.safeParseAsync,n.encode=(s,c)=>cqn(n,s,c),n.decode=(s,c)=>lqn(n,s,c),n.encodeAsync=async(s,c)=>dqn(n,s,c),n.decodeAsync=async(s,c)=>fqn(n,s,c),n.safeEncode=(s,c)=>hqn(n,s,c),n.safeDecode=(s,c)=>pqn(n,s,c),n.safeEncodeAsync=async(s,c)=>gqn(n,s,c),n.safeDecodeAsync=async(s,c)=>bqn(n,s,c),n.refine=(s,c)=>n.check(hVn(s,c)),n.superRefine=s=>n.check(pVn(s)),n.overwrite=s=>n.check(UM(s)),n.optional=()=>C8t(n),n.exactOptional=()=>Qqn(n),n.nullable=()=>I8t(n),n.nullish=()=>C8t(I8t(n)),n.nonoptional=s=>oVn(n,s),n.array=()=>cs(n),n.or=s=>Yi([n,s]),n.and=s=>Wqn(n,s),n.transform=s=>R8t(n,Xqn(s)),n.default=s=>nVn(n,s),n.prefault=s=>iVn(n,s),n.catch=s=>aVn(n,s),n.pipe=s=>R8t(n,s),n.readonly=()=>lVn(n),n.describe=s=>{const c=n.clone();return ZU.add(c,{description:s}),c},Object.defineProperty(n,"description",{get(){var s;return(s=ZU.get(n))==null?void 0:s.description},configurable:!0}),n.meta=(...s)=>{if(s.length===0)return ZU.get(n);const c=n.clone();return ZU.add(c,s[0]),c},n.isOptional=()=>n.safeParse(void 0).success,n.isNullable=()=>n.safeParse(null).success,n.apply=s=>s(n),n)),OVt=cn("_ZodString",(n,i)=>{hMe.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(c,d,g)=>xGn(n,c,d);const s=n._zod.bag;n.format=s.format??null,n.minLength=s.minimum??null,n.maxLength=s.maximum??null,n.regex=(...c)=>n.check(cGn(...c)),n.includes=(...c)=>n.check(fGn(...c)),n.startsWith=(...c)=>n.check(hGn(...c)),n.endsWith=(...c)=>n.check(pGn(...c)),n.min=(...c)=>n.check(ose(...c)),n.max=(...c)=>n.check(_Vt(...c)),n.length=(...c)=>n.check(xVt(...c)),n.nonempty=(...c)=>n.check(ose(1,...c)),n.lowercase=c=>n.check(lGn(c)),n.uppercase=c=>n.check(dGn(c)),n.trim=()=>n.check(bGn()),n.normalize=(...c)=>n.check(gGn(...c)),n.toLowerCase=()=>n.check(mGn()),n.toUpperCase=()=>n.check(wGn()),n.slugify=()=>n.check(yGn())}),mqn=cn("ZodString",(n,i)=>{hMe.init(n,i),OVt.init(n,i),n.email=s=>n.check(Rzn(wqn,s)),n.url=s=>n.check(Pzn(yqn,s)),n.jwt=s=>n.check(Xzn(Lqn,s)),n.emoji=s=>n.check(jzn(vqn,s)),n.guid=s=>n.check(S8t(x8t,s)),n.uuid=s=>n.check(Ozn(Iie,s)),n.uuidv4=s=>n.check(Dzn(Iie,s)),n.uuidv6=s=>n.check(Lzn(Iie,s)),n.uuidv7=s=>n.check(Mzn(Iie,s)),n.nanoid=s=>n.check(Fzn(Eqn,s)),n.guid=s=>n.check(S8t(x8t,s)),n.cuid=s=>n.check($zn(Sqn,s)),n.cuid2=s=>n.check(Bzn(Tqn,s)),n.ulid=s=>n.check(Uzn(Aqn,s)),n.base64=s=>n.check(Kzn(Rqn,s)),n.base64url=s=>n.check(Yzn(Oqn,s)),n.xid=s=>n.check(Hzn(_qn,s)),n.ksuid=s=>n.check(zzn(xqn,s)),n.ipv4=s=>n.check(Gzn(kqn,s)),n.ipv6=s=>n.check(qzn(Nqn,s)),n.cidrv4=s=>n.check(Vzn(Cqn,s)),n.cidrv6=s=>n.check(Wzn(Iqn,s)),n.e164=s=>n.check(Jzn(Dqn,s)),n.datetime=s=>n.check(XGn(s)),n.date=s=>n.check(QGn(s)),n.time=s=>n.check(tqn(s)),n.duration=s=>n.check(rqn(s))});function Jt(n){return Izn(mqn,n)}const hl=cn("ZodStringFormat",(n,i)=>{Pc.init(n,i),OVt.init(n,i)}),wqn=cn("ZodEmail",(n,i)=>{LHn.init(n,i),hl.init(n,i)}),x8t=cn("ZodGUID",(n,i)=>{OHn.init(n,i),hl.init(n,i)}),Iie=cn("ZodUUID",(n,i)=>{DHn.init(n,i),hl.init(n,i)}),yqn=cn("ZodURL",(n,i)=>{MHn.init(n,i),hl.init(n,i)}),vqn=cn("ZodEmoji",(n,i)=>{PHn.init(n,i),hl.init(n,i)}),Eqn=cn("ZodNanoID",(n,i)=>{jHn.init(n,i),hl.init(n,i)}),Sqn=cn("ZodCUID",(n,i)=>{FHn.init(n,i),hl.init(n,i)}),Tqn=cn("ZodCUID2",(n,i)=>{$Hn.init(n,i),hl.init(n,i)}),Aqn=cn("ZodULID",(n,i)=>{BHn.init(n,i),hl.init(n,i)}),_qn=cn("ZodXID",(n,i)=>{UHn.init(n,i),hl.init(n,i)}),xqn=cn("ZodKSUID",(n,i)=>{HHn.init(n,i),hl.init(n,i)}),kqn=cn("ZodIPv4",(n,i)=>{WHn.init(n,i),hl.init(n,i)}),Nqn=cn("ZodIPv6",(n,i)=>{KHn.init(n,i),hl.init(n,i)}),Cqn=cn("ZodCIDRv4",(n,i)=>{YHn.init(n,i),hl.init(n,i)}),Iqn=cn("ZodCIDRv6",(n,i)=>{JHn.init(n,i),hl.init(n,i)}),Rqn=cn("ZodBase64",(n,i)=>{XHn.init(n,i),hl.init(n,i)}),Oqn=cn("ZodBase64URL",(n,i)=>{QHn.init(n,i),hl.init(n,i)}),Dqn=cn("ZodE164",(n,i)=>{ezn.init(n,i),hl.init(n,i)}),Lqn=cn("ZodJWT",(n,i)=>{nzn.init(n,i),hl.init(n,i)}),DVt=cn("ZodNumber",(n,i)=>{vVt.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(c,d,g)=>kGn(n,c,d),n.gt=(c,d)=>n.check(A8t(c,d)),n.gte=(c,d)=>n.check(uIe(c,d)),n.min=(c,d)=>n.check(uIe(c,d)),n.lt=(c,d)=>n.check(T8t(c,d)),n.lte=(c,d)=>n.check(aIe(c,d)),n.max=(c,d)=>n.check(aIe(c,d)),n.int=c=>n.check(k8t(c)),n.safe=c=>n.check(k8t(c)),n.positive=c=>n.check(A8t(0,c)),n.nonnegative=c=>n.check(uIe(0,c)),n.negative=c=>n.check(T8t(0,c)),n.nonpositive=c=>n.check(aIe(0,c)),n.multipleOf=(c,d)=>n.check(_8t(c,d)),n.step=(c,d)=>n.check(_8t(c,d)),n.finite=()=>n;const s=n._zod.bag;n.minValue=Math.max(s.minimum??Number.NEGATIVE_INFINITY,s.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,n.maxValue=Math.min(s.maximum??Number.POSITIVE_INFINITY,s.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,n.isInt=(s.format??"").includes("int")||Number.isSafeInteger(s.multipleOf??.5),n.isFinite=!0,n.format=s.format??null});function pa(n){return nGn(DVt,n)}const Mqn=cn("ZodNumberFormat",(n,i)=>{rzn.init(n,i),DVt.init(n,i)});function k8t(n){return rGn(Mqn,n)}const Pqn=cn("ZodBoolean",(n,i)=>{izn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>NGn(n,s,c)});function Ew(n){return iGn(Pqn,n)}const jqn=cn("ZodNull",(n,i)=>{ozn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>CGn(n,s,c)});function N8t(n){return oGn(jqn,n)}const Fqn=cn("ZodAny",(n,i)=>{szn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>RGn()});function $qn(){return sGn(Fqn)}const Bqn=cn("ZodUnknown",(n,i)=>{azn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>OGn()});function Du(){return aGn(Bqn)}const Uqn=cn("ZodNever",(n,i)=>{uzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>IGn(n,s,c)});function Hqn(n){return uGn(Uqn,n)}const zqn=cn("ZodArray",(n,i)=>{czn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>jGn(n,s,c,d),n.element=i.element,n.min=(s,c)=>n.check(ose(s,c)),n.nonempty=s=>n.check(ose(1,s)),n.max=(s,c)=>n.check(_Vt(s,c)),n.length=(s,c)=>n.check(xVt(s,c)),n.unwrap=()=>n.element});function cs(n,i){return vGn(zqn,n,i)}const LVt=cn("ZodObject",(n,i)=>{dzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>FGn(n,s,c,d),Ys(n,"shape",()=>i.shape),n.keyof=()=>Gg(Object.keys(n._zod.def.shape)),n.catchall=s=>n.clone({...n._zod.def,catchall:s}),n.passthrough=()=>n.clone({...n._zod.def,catchall:Du()}),n.loose=()=>n.clone({...n._zod.def,catchall:Du()}),n.strict=()=>n.clone({...n._zod.def,catchall:Hqn()}),n.strip=()=>n.clone({...n._zod.def,catchall:void 0}),n.extend=s=>CUn(n,s),n.safeExtend=s=>IUn(n,s),n.merge=s=>RUn(n,s),n.pick=s=>kUn(n,s),n.omit=s=>NUn(n,s),n.partial=(...s)=>OUn(PVt,n,s[0]),n.required=(...s)=>DUn(jVt,n,s[0])});function Su(n,i){const s={type:"object",shape:n??{},...wi(i)};return new LVt(s)}function $p(n,i){return new LVt({type:"object",shape:n,catchall:Du(),...wi(i)})}const MVt=cn("ZodUnion",(n,i)=>{TVt.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>$Gn(n,s,c,d),n.options=i.options});function Yi(n,i){return new MVt({type:"union",options:n,...wi(i)})}const Gqn=cn("ZodDiscriminatedUnion",(n,i)=>{MVt.init(n,i),fzn.init(n,i)});function qqn(n,i,s){return new Gqn({type:"union",options:i,discriminator:n,...wi(s)})}const Vqn=cn("ZodIntersection",(n,i)=>{hzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>BGn(n,s,c,d)});function Wqn(n,i){return new Vqn({type:"intersection",left:n,right:i})}const Kqn=cn("ZodRecord",(n,i)=>{pzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>UGn(n,s,c,d),n.keyType=i.keyType,n.valueType=i.valueType});function yf(n,i,s){return new Kqn({type:"record",keyType:n,valueType:i,...wi(s)})}const PDe=cn("ZodEnum",(n,i)=>{gzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(c,d,g)=>DGn(n,c,d),n.enum=i.entries,n.options=Object.values(i.entries);const s=new Set(Object.keys(i.entries));n.extract=(c,d)=>{const g={};for(const b of c)if(s.has(b))g[b]=i.entries[b];else throw new Error(`Key ${b} not found in enum`);return new PDe({...i,checks:[],...wi(d),entries:g})},n.exclude=(c,d)=>{const g={...i.entries};for(const b of c)if(s.has(b))delete g[b];else throw new Error(`Key ${b} not found in enum`);return new PDe({...i,checks:[],...wi(d),entries:g})}});function Gg(n,i){const s=Array.isArray(n)?Object.fromEntries(n.map(c=>[c,c])):n;return new PDe({type:"enum",entries:s,...wi(i)})}const Yqn=cn("ZodLiteral",(n,i)=>{bzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>LGn(n,s,c),n.values=new Set(i.values),Object.defineProperty(n,"value",{get(){if(i.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return i.values[0]}})});function _N(n,i){return new Yqn({type:"literal",values:Array.isArray(n)?n:[n],...wi(i)})}const Jqn=cn("ZodTransform",(n,i)=>{mzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>PGn(n,s),n._zod.parse=(s,c)=>{if(c.direction==="backward")throw new iVt(n.constructor.name);s.addIssue=g=>{if(typeof g=="string")s.issues.push(oz(g,s.value,i));else{const b=g;b.fatal&&(b.continue=!1),b.code??(b.code="custom"),b.input??(b.input=s.value),b.inst??(b.inst=n),s.issues.push(oz(b))}};const d=i.transform(s.value,s);return d instanceof Promise?d.then(g=>(s.value=g,s)):(s.value=d,s)}});function Xqn(n){return new Jqn({type:"transform",transform:n})}const PVt=cn("ZodOptional",(n,i)=>{AVt.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>IVt(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function C8t(n){return new PVt({type:"optional",innerType:n})}const Zqn=cn("ZodExactOptional",(n,i)=>{wzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>IVt(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function Qqn(n){return new Zqn({type:"optional",innerType:n})}const eVn=cn("ZodNullable",(n,i)=>{yzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>HGn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function I8t(n){return new eVn({type:"nullable",innerType:n})}const tVn=cn("ZodDefault",(n,i)=>{vzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>GGn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType,n.removeDefault=n.unwrap});function nVn(n,i){return new tVn({type:"default",innerType:n,get defaultValue(){return typeof i=="function"?i():uVt(i)}})}const rVn=cn("ZodPrefault",(n,i)=>{Ezn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>qGn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function iVn(n,i){return new rVn({type:"prefault",innerType:n,get defaultValue(){return typeof i=="function"?i():uVt(i)}})}const jVt=cn("ZodNonOptional",(n,i)=>{Szn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>zGn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function oVn(n,i){return new jVt({type:"nonoptional",innerType:n,...wi(i)})}const sVn=cn("ZodCatch",(n,i)=>{Tzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>VGn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType,n.removeCatch=n.unwrap});function aVn(n,i){return new sVn({type:"catch",innerType:n,catchValue:typeof i=="function"?i:()=>i})}const uVn=cn("ZodPipe",(n,i)=>{Azn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>WGn(n,s,c,d),n.in=i.in,n.out=i.out});function R8t(n,i){return new uVn({type:"pipe",in:n,out:i})}const cVn=cn("ZodReadonly",(n,i)=>{_zn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>KGn(n,s,c,d),n.unwrap=()=>n._zod.def.innerType});function lVn(n){return new cVn({type:"readonly",innerType:n})}const dVn=cn("ZodLazy",(n,i)=>{xzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>YGn(n,s,c,d),n.unwrap=()=>n._zod.def.getter()});function pMe(n){return new dVn({type:"lazy",getter:n})}const fVn=cn("ZodCustom",(n,i)=>{kzn.init(n,i),Yu.init(n,i),n._zod.processJSONSchema=(s,c,d)=>MGn(n,s)});function hVn(n,i={}){return EGn(fVn,n,i)}function pVn(n){return SGn(n)}const Pl={custom:"custom"};Jt().min(1).brand();const O8t=Jt().regex(/^[a-z_]+\.[a-z0-9_]+$/,"Entity ID must be in format: domain.entity_name (e.g., light.living_room)"),HM=Su({x:pa(),y:pa()});Su({id:Jt(),type:Gg(["source","target"]),position:Gg(["top","bottom","left","right"])});const gVn=Gg(["single","restart","queued","parallel"]),bVn=Gg(["silent","warning","critical"]),FVt=Su({id:Jt().min(1),source:Jt().min(1),target:Jt().min(1),sourceHandle:Jt().nullable().optional(),targetHandle:Jt().nullable().optional(),label:Jt().optional(),animated:Ew().optional()});FVt.extend({sourceHandle:Gg(["true","false"])});const mVn=["sun","mon","tue","wed","thu","fri","sat"],Ug=$p({alias:Jt().optional(),condition:Jt().optional(),enabled:Ew().optional(),entity_id:Yi([Jt(),cs(Jt())]).optional(),state:Yi([Jt(),cs(Jt())]).optional(),value_template:Jt().optional(),after:Jt().optional(),before:Jt().optional(),weekday:cs(Gg(mVn)).optional(),after_offset:Jt().optional(),before_offset:Jt().optional(),zone:Jt().optional(),conditions:cs(pMe(()=>Ug)).optional(),above:Yi([Jt(),pa()]).optional(),below:Yi([Jt(),pa()]).optional(),attribute:Jt().optional(),id:Yi([Jt(),cs(Jt())]).optional()});Gg(["event","template","zone","state","time","time_pattern","mqtt","webhook","sun","numeric_state","homeassistant","device","calendar"]);const gN=$p({alias:Jt().optional(),platform:Jt().optional(),trigger:Jt().optional(),target:$p({entity_id:Yi([Jt(),cs(Jt())])}).optional(),options:$p({}).optional(),entity_id:Yi([Jt(),cs(Jt())]).optional(),from:Yi([Jt(),cs(Jt()),N8t()]).optional(),to:Yi([Jt(),cs(Jt()),N8t()]).optional(),for:Yi([Jt(),pa(),Su({hours:Yi([pa(),Jt()]).optional(),minutes:Yi([pa(),Jt()]).optional(),seconds:Yi([pa(),Jt()]).optional(),milliseconds:Yi([pa(),Jt()]).optional()})]).optional(),at:Du().optional(),offset:Jt().optional(),event:Jt().optional(),event_type:Yi([Jt(),cs(Jt())]).optional(),event_data:yf(Jt(),Du()).optional(),above:Yi([Jt(),pa()]).optional(),below:Yi([Jt(),pa()]).optional(),value_template:Jt().optional(),template:Jt().optional(),webhook_id:Jt().optional(),zone:Jt().optional(),topic:Jt().optional(),payload:Jt().optional(),command:Yi([Jt(),cs(Jt())]).optional()}).transform(n=>{const i=n.trigger??n.platform??"state",{platform:s,...c}=n;return{...c,trigger:i}}),D8t=Su({mode:Gg(["single","restart","queued","parallel"]).default("single"),max:pa().optional(),max_exceeded:Gg(["silent","warning","critical"]).optional(),initial_state:Ew().optional(),hide_entity:Ew().optional(),trace:Su({stored_traces:pa().optional()}).optional()});function wVn(n){return typeof n=="object"&&n!==null&&("condition"in n||"entity_id"in n||"state"in n)}function gMe(n){return typeof n=="object"&&n!==null&&"type"in n&&"device_id"in n&&"domain"in n}const $Vt=Su({version:pa(),nodes:yf(Jt(),Su({x:pa(),y:pa()})),graph_id:Jt(),graph_version:pa(),strategy:Gg(["native","state-machine"])}),L8t=pMe(()=>Su({conditions:Yi([Ug,cs(Ug)]),sequence:Yi([$m,cs($m)]),alias:Jt().optional()})),$m=pMe(()=>$p({service:Jt().optional(),action:Jt().optional(),event:Jt().optional(),event_data:yf(Jt(),Du()).optional(),id:Jt().optional(),alias:Jt().optional(),target:yf(Jt(),Du()).optional(),data:yf(Jt(),Du()).optional(),data_template:yf(Jt(),Du()).optional(),response_variable:Jt().optional(),continue_on_error:Ew().optional(),enabled:Ew().optional(),delay:Yi([Jt(),pa(),yf(Jt(),pa())]).optional(),wait_template:Yi([Jt(),yf(Jt(),Du())]).optional(),timeout:Yi([Jt(),pa(),yf(Jt(),pa())]).optional(),continue_on_timeout:Ew().optional(),wait_for_trigger:Yi([gN,cs(gN)]).optional(),choose:Yi([L8t,cs(L8t)]).optional(),default:cs($m).optional(),if:cs(Ug).optional(),then:cs($m).optional(),else:cs($m).optional(),variables:yf(Jt(),Du()).optional(),repeat:Su({count:Yi([Jt(),pa()]).optional(),while:cs(Ug).optional(),until:Yi([Jt(),cs(Jt()),cs(Ug)]).optional(),sequence:cs($m)}).optional()})),yVn=Su({id:Jt().optional(),alias:Jt().optional(),description:Jt().optional(),trigger_variables:yf(Jt(),Du()).optional(),trigger:Yi([gN,cs(gN)]).optional(),condition:Yi([Ug,cs(Ug)]).optional(),action:Yi([$m,cs($m)]),mode:Gg(["single","restart","queued","parallel"]).optional().default("single"),max:pa().optional(),max_exceeded:Gg(["silent","warning"]).optional(),initial_state:Ew().optional(),hide_entity:Ew().optional(),trace:yf(Jt(),Du()).optional(),variables:Su({_cafe_metadata:$Vt.optional()}).catchall(Du()).optional()});yVn.omit({action:!0}).extend({action:Yi([$m,cs($m)]).optional(),sequence:Yi([$m,cs($m)])});const vVn=$p({id:Jt().optional(),alias:Jt().optional(),delay:Yi([Jt(),$p({hours:Yi([pa(),Jt()]).optional(),minutes:Yi([pa(),Jt()]).optional(),seconds:Yi([pa(),Jt()]).optional(),milliseconds:Yi([pa(),Jt()]).optional()})])}),EVn=$p({id:Jt().optional(),alias:Jt().optional(),wait_template:Jt().optional(),wait_for_trigger:cs(gN).optional(),timeout:Yi([Jt(),$p({hours:Yi([pa(),Jt()]).optional(),minutes:Yi([pa(),Jt()]).optional(),seconds:Yi([pa(),Jt()]).optional(),milliseconds:Yi([pa(),Jt()]).optional()})]).optional(),continue_on_timeout:Ew().optional()}).refine(n=>n.wait_template===void 0||n.wait_for_trigger===void 0,{message:"Provide either `wait_template` or `wait_for_trigger`, but not both.",path:["wait_template"]}),SVn=$p({id:Jt().optional(),alias:Jt().optional(),variables:yf(Jt(),Du())}),TVn=$p({id:Jt().min(1),type:_N("trigger"),position:HM,data:gN}),AVn=$p({id:Jt().min(1),type:_N("condition"),position:HM,data:Ug}),_Vn=$p({id:Jt().min(1),type:_N("action"),position:HM,data:$m}),xVn=$p({id:Jt().min(1),type:_N("delay"),position:HM,data:vVn}),kVn=$p({id:Jt().min(1),type:_N("wait"),position:HM,data:EVn}),NVn=$p({id:Jt().min(1),type:_N("set_variables"),position:HM,data:SVn}),CVn=qqn("type",[TVn,AVn,_Vn,xVn,kVn,NVn]),IVn=Su({mode:gVn.default("single"),max_exceeded:bVn.optional(),max:pa().positive().optional(),initial_state:Ew().optional(),hide_entity:Ew().optional(),trace:Su({stored_traces:pa().optional()}).optional()}),RVn=Su({automation_id:Jt(),entity_id:Jt(),alias:Jt(),node_prefix:Jt(),imported_at:Jt()}),OVn=Su({mode:_N("merged"),sources:cs(RVn)}),BVt=Su({id:Jt().uuid(),name:Jt().min(1),description:Jt().optional(),nodes:cs(CVn),edges:cs(FVt),metadata:IVn.optional(),version:_N(1).default(1),userVariables:yf(Jt(),Du()).optional(),userTriggerVariables:yf(Jt(),Du()).optional(),workspace:OVn.optional()});function UVt(n){const i=[],s=new Set(n.nodes.map(b=>b.id));s.size!==n.nodes.length&&i.push("Duplicate node IDs detected");for(const b of n.edges)s.has(b.source)||i.push(`Edge ${b.id} references non-existent source node: ${b.source}`),s.has(b.target)||i.push(`Edge ${b.id} references non-existent target node: ${b.target}`);const c=n.nodes.filter(b=>b.type==="trigger");c.length===0&&i.push("Graph must have at least one trigger node");const d=new Set(n.edges.map(b=>b.target));for(const b of c)d.has(b.id)&&i.push(`Trigger node ${b.id} should not have incoming edges`);const g=new Set(n.nodes.filter(b=>b.type==="condition").map(b=>b.id));for(const b of n.edges)g.has(b.source)&&b.sourceHandle!=="true"&&b.sourceHandle!=="false"&&i.push(`Edge ${b.id} from condition node must have sourceHandle 'true' or 'false', got: ${b.sourceHandle}`);return{valid:i.length===0,errors:i}}Gg(["state","time","time_pattern","event","mqtt","webhook","sun","zone","numeric_state","template","homeassistant","device"]);Gg(["state","numeric_state","template","time","zone","and","or","not","sun","device","trigger"]);Su({entity_id:Yi([O8t,cs(O8t)]).optional(),area_id:Yi([Jt(),cs(Jt())]).optional(),device_id:Yi([Jt(),cs(Jt())]).optional()}).refine(n=>n.entity_id||n.area_id||n.device_id,{message:"At least one target (entity_id, area_id, or device_id) must be specified"});Su({entity_id:Yi([Jt(),cs(Jt())]).optional(),area_id:Yi([Jt(),cs(Jt())]).optional(),device_id:Yi([Jt(),cs(Jt())]).optional()}).optional();yf(Jt(),Du());yf(Jt(),Jt());const DVn=Su({wait_template:Jt().optional(),wait_for_trigger:cs($qn()).optional(),timeout:Yi([Jt(),Su({})]).optional()}).passthrough().refine(n=>{const i=n.wait_template&&n.wait_template.trim()!=="",s=n.wait_for_trigger&&n.wait_for_trigger.length>0;return i||s},{message:"Wait node requires either a template condition or trigger. Use a Delay node for simple time-based pauses.",path:["_root"]}),LVn=Su({service:Jt().optional(),event:Jt().optional()}).passthrough().superRefine((n,i)=>{const s=typeof n.event=="string"&&n.event.trim()!=="",c=typeof n.service=="string"&&n.service.trim()!=="";if(!s&&!c){i.addIssue({code:Pl.custom,message:"Either a service (e.g. light.turn_on) or an event name is required",path:["service"]});return}c&&!n.service.includes(".")&&i.addIssue({code:Pl.custom,message:"Service must be in domain.service format (e.g., light.turn_on)",path:["service"]})});function aM(n){return Array.isArray(n)?n.length>0:typeof n=="string"?n.trim()!=="":!1}function MVn(n){return Array.isArray(n)?n.length>0&&n.every(i=>typeof i=="string"&&i.trim()!==""):typeof n=="string"?n.trim()!=="":!1}const PVn=Su({trigger:Jt().optional(),platform:Jt().optional(),entity_id:Du().optional(),to:Du().optional(),from:Du().optional(),event_type:Jt().optional(),at:Du().optional(),topic:Jt().optional(),webhook_id:Jt().optional(),device_id:Jt().optional(),zone:Jt().optional(),event:Jt().optional(),value_template:Jt().optional()}).passthrough().superRefine((n,i)=>{const s=n.trigger||n.platform;if(!s||s.trim()===""){i.addIssue({code:Pl.custom,message:"Trigger platform is required",path:["trigger"]});return}switch(s){case"state":aM(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for state triggers",path:["entity_id"]});break;case"numeric_state":aM(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for numeric state triggers",path:["entity_id"]});break;case"event":(!n.event_type||n.event_type.trim()==="")&&i.addIssue({code:Pl.custom,message:"Event type is required",path:["event_type"]});break;case"time":n.at||i.addIssue({code:Pl.custom,message:"Time value is required",path:["at"]});break;case"mqtt":(!n.topic||n.topic.trim()==="")&&i.addIssue({code:Pl.custom,message:"MQTT topic is required",path:["topic"]});break;case"webhook":(!n.webhook_id||n.webhook_id.trim()==="")&&i.addIssue({code:Pl.custom,message:"Webhook ID is required",path:["webhook_id"]});break;case"device":(!n.device_id||n.device_id.trim()==="")&&i.addIssue({code:Pl.custom,message:"Device is required",path:["device_id"]});break;case"zone":aM(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for zone triggers",path:["entity_id"]}),(!n.zone||n.zone.trim()==="")&&i.addIssue({code:Pl.custom,message:"Zone is required",path:["zone"]});break;case"sun":case"homeassistant":(!n.event||n.event.trim()==="")&&i.addIssue({code:Pl.custom,message:s==="sun"?"Sun event (sunrise/sunset) is required":"Home Assistant event (start/shutdown) is required",path:["event"]});break;case"template":(!n.value_template||n.value_template.trim()==="")&&i.addIssue({code:Pl.custom,message:"Template is required",path:["value_template"]});break}}),jVn=Su({delay:Yi([Jt(),Su({})])}).passthrough().refine(n=>typeof n.delay=="string"?n.delay.trim()!=="":!0,{message:"Delay value is required",path:["delay"]}),FVn=Su({condition:Jt().min(1,"Condition type is required"),entity_id:Du().optional(),state:Du().optional(),value_template:Jt().optional(),zone:Jt().optional(),device_id:Jt().optional(),id:Du().optional()}).passthrough().superRefine((n,i)=>{switch(n.condition){case"state":aM(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for state conditions",path:["entity_id"]}),(!n.state||typeof n.state=="string"&&n.state.trim()==="")&&i.addIssue({code:Pl.custom,message:"State value is required",path:["state"]});break;case"numeric_state":aM(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for numeric state conditions",path:["entity_id"]});break;case"trigger":MVn(n.id)||i.addIssue({code:Pl.custom,message:"Trigger ID is required",path:["id"]});break;case"template":(!n.value_template||n.value_template.trim()==="")&&i.addIssue({code:Pl.custom,message:"Template is required",path:["value_template"]});break;case"zone":aM(n.entity_id)||i.addIssue({code:Pl.custom,message:"Entity is required for zone conditions",path:["entity_id"]}),(!n.zone||n.zone.trim()==="")&&i.addIssue({code:Pl.custom,message:"Zone is required",path:["zone"]});break;case"device":(!n.device_id||n.device_id.trim()==="")&&i.addIssue({code:Pl.custom,message:"Device is required",path:["device_id"]});break}}),$Vn=Su({variables:yf(Jt(),Du()).optional()}).passthrough().refine(n=>n.variables?Object.keys(n.variables).length>0:!1,{message:"At least one variable must be defined",path:["variables"]});function BVn(n){switch(n){case"wait":return DVn;case"action":return LVn;case"trigger":return PVn;case"delay":return jVn;case"condition":return FVn;case"set_variables":return $Vn;default:return}}function M8t(n,i){const s=BVn(n);if(!s)return[];const c=s.safeParse(i);return c.success?[]:c.error.issues.map(d=>({path:d.path.map(String),message:d.message}))}function QU(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cIe,P8t;function UVn(){if(P8t)return cIe;P8t=1;function n(){this.__data__=[],this.size=0}return cIe=n,cIe}var lIe,j8t;function bMe(){if(j8t)return lIe;j8t=1;function n(i,s){return i===s||i!==i&&s!==s}return lIe=n,lIe}var dIe,F8t;function Cae(){if(F8t)return dIe;F8t=1;var n=bMe();function i(s,c){for(var d=s.length;d--;)if(n(s[d][0],c))return d;return-1}return dIe=i,dIe}var fIe,$8t;function HVn(){if($8t)return fIe;$8t=1;var n=Cae(),i=Array.prototype,s=i.splice;function c(d){var g=this.__data__,b=n(g,d);if(b<0)return!1;var w=g.length-1;return b==w?g.pop():s.call(g,b,1),--this.size,!0}return fIe=c,fIe}var hIe,B8t;function zVn(){if(B8t)return hIe;B8t=1;var n=Cae();function i(s){var c=this.__data__,d=n(c,s);return d<0?void 0:c[d][1]}return hIe=i,hIe}var pIe,U8t;function GVn(){if(U8t)return pIe;U8t=1;var n=Cae();function i(s){return n(this.__data__,s)>-1}return pIe=i,pIe}var gIe,H8t;function qVn(){if(H8t)return gIe;H8t=1;var n=Cae();function i(s,c){var d=this.__data__,g=n(d,s);return g<0?(++this.size,d.push([s,c])):d[g][1]=c,this}return gIe=i,gIe}var bIe,z8t;function Iae(){if(z8t)return bIe;z8t=1;var n=UVn(),i=HVn(),s=zVn(),c=GVn(),d=qVn();function g(b){var w=-1,E=b==null?0:b.length;for(this.clear();++w-1&&c%1==0&&c-1&&s%1==0&&s<=n}return d4e=i,d4e}var f4e,BPt;function wWn(){if(BPt)return f4e;BPt=1;var n=GM(),i=EMe(),s=xA(),c="[object Arguments]",d="[object Array]",g="[object Boolean]",b="[object Date]",w="[object Error]",E="[object Function]",S="[object Map]",x="[object Number]",A="[object Object]",C="[object RegExp]",R="[object Set]",L="[object String]",D="[object WeakMap]",B="[object ArrayBuffer]",$="[object DataView]",j="[object Float32Array]",P="[object Float64Array]",G="[object Int8Array]",ee="[object Int16Array]",re="[object Int32Array]",Q="[object Uint8Array]",ie="[object Uint8ClampedArray]",pe="[object Uint16Array]",me="[object Uint32Array]",le={};le[j]=le[P]=le[G]=le[ee]=le[re]=le[Q]=le[ie]=le[pe]=le[me]=!0,le[c]=le[d]=le[B]=le[g]=le[$]=le[b]=le[w]=le[E]=le[S]=le[x]=le[A]=le[C]=le[R]=le[L]=le[D]=!1;function fe(K){return s(K)&&i(K.length)&&!!le[n(K)]}return f4e=fe,f4e}var h4e,UPt;function SMe(){if(UPt)return h4e;UPt=1;function n(i){return function(s){return i(s)}}return h4e=n,h4e}var tH={exports:{}};tH.exports;var HPt;function TMe(){return HPt||(HPt=1,function(n,i){var s=HVt(),c=i&&!i.nodeType&&i,d=c&&!0&&n&&!n.nodeType&&n,g=d&&d.exports===c,b=g&&s.process,w=function(){try{var E=d&&d.require&&d.require("util").types;return E||b&&b.binding&&b.binding("util")}catch{}}();n.exports=w}(tH,tH.exports)),tH.exports}var p4e,zPt;function Pae(){if(zPt)return p4e;zPt=1;var n=wWn(),i=SMe(),s=TMe(),c=s&&s.isTypedArray,d=c?i(c):n;return p4e=d,p4e}var g4e,GPt;function KVt(){if(GPt)return g4e;GPt=1;var n=gWn(),i=Mae(),s=ih(),c=Lz(),d=WVt(),g=Pae(),b=Object.prototype,w=b.hasOwnProperty;function E(S,x){var A=s(S),C=!A&&i(S),R=!A&&!C&&c(S),L=!A&&!C&&!R&&g(S),D=A||C||R||L,B=D?n(S.length,String):[],$=B.length;for(var j in S)(x||w.call(S,j))&&!(D&&(j=="length"||R&&(j=="offset"||j=="parent")||L&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||d(j,$)))&&B.push(j);return B}return g4e=E,g4e}var b4e,qPt;function jae(){if(qPt)return b4e;qPt=1;var n=Object.prototype;function i(s){var c=s&&s.constructor,d=typeof c=="function"&&c.prototype||n;return s===d}return b4e=i,b4e}var m4e,VPt;function YVt(){if(VPt)return m4e;VPt=1;function n(i,s){return function(c){return i(s(c))}}return m4e=n,m4e}var w4e,WPt;function yWn(){if(WPt)return w4e;WPt=1;var n=YVt(),i=n(Object.keys,Object);return w4e=i,w4e}var y4e,KPt;function AMe(){if(KPt)return y4e;KPt=1;var n=jae(),i=yWn(),s=Object.prototype,c=s.hasOwnProperty;function d(g){if(!n(g))return i(g);var b=[];for(var w in Object(g))c.call(g,w)&&w!="constructor"&&b.push(w);return b}return y4e=d,y4e}var v4e,YPt;function OR(){if(YPt)return v4e;YPt=1;var n=Rae(),i=EMe();function s(c){return c!=null&&i(c.length)&&!n(c)}return v4e=s,v4e}var E4e,JPt;function DR(){if(JPt)return E4e;JPt=1;var n=KVt(),i=AMe(),s=OR();function c(d){return s(d)?n(d):i(d)}return E4e=c,E4e}var S4e,XPt;function vWn(){if(XPt)return S4e;XPt=1;var n=Lae(),i=DR();function s(c,d){return c&&n(d,i(d),c)}return S4e=s,S4e}var T4e,ZPt;function EWn(){if(ZPt)return T4e;ZPt=1;function n(i){var s=[];if(i!=null)for(var c in Object(i))s.push(c);return s}return T4e=n,T4e}var A4e,QPt;function SWn(){if(QPt)return A4e;QPt=1;var n=IR(),i=jae(),s=EWn(),c=Object.prototype,d=c.hasOwnProperty;function g(b){if(!n(b))return s(b);var w=i(b),E=[];for(var S in b)S=="constructor"&&(w||!d.call(b,S))||E.push(S);return E}return A4e=g,A4e}var _4e,ejt;function _Me(){if(ejt)return _4e;ejt=1;var n=KVt(),i=SWn(),s=OR();function c(d){return s(d)?n(d,!0):i(d)}return _4e=c,_4e}var x4e,tjt;function TWn(){if(tjt)return x4e;tjt=1;var n=Lae(),i=_Me();function s(c,d){return c&&n(d,i(d),c)}return x4e=s,x4e}var nH={exports:{}};nH.exports;var njt;function AWn(){return njt||(njt=1,function(n,i){var s=Y2(),c=i&&!i.nodeType&&i,d=c&&!0&&n&&!n.nodeType&&n,g=d&&d.exports===c,b=g?s.Buffer:void 0,w=b?b.allocUnsafe:void 0;function E(S,x){if(x)return S.slice();var A=S.length,C=w?w(A):new S.constructor(A);return S.copy(C),C}n.exports=E}(nH,nH.exports)),nH.exports}var k4e,rjt;function _Wn(){if(rjt)return k4e;rjt=1;function n(i,s){var c=-1,d=i.length;for(s||(s=Array(d));++cR))return!1;var D=A.get(b),B=A.get(w);if(D&&B)return D==w&&B==b;var $=-1,j=!0,P=E&d?new n:void 0;for(A.set(b,w),A.set(w,b);++$0&&g(x)?d>1?s(x,d-1,g,b,w):n(w,x):b||(w[w.length]=x)}return w}return wOe=s,wOe}var yOe,Y7t;function FKn(){if(Y7t)return yOe;Y7t=1;function n(i,s,c){switch(c.length){case 0:return i.call(s);case 1:return i.call(s,c[0]);case 2:return i.call(s,c[0],c[1]);case 3:return i.call(s,c[0],c[1],c[2])}return i.apply(s,c)}return yOe=n,yOe}var vOe,J7t;function $Kn(){if(J7t)return vOe;J7t=1;var n=FKn(),i=Math.max;function s(c,d,g){return d=i(d===void 0?c.length-1:d,0),function(){for(var b=arguments,w=-1,E=i(b.length-d,0),S=Array(E);++w0){if(++g>=n)return arguments[0]}else g=0;return d.apply(void 0,arguments)}}return SOe=c,SOe}var TOe,Q7t;function HKn(){if(Q7t)return TOe;Q7t=1;var n=BKn(),i=UKn(),s=i(n);return TOe=s,TOe}var AOe,eFt;function zKn(){if(eFt)return AOe;eFt=1;var n=$ae(),i=$Kn(),s=HKn();function c(d,g){return s(i(d,g,n),d+"")}return AOe=c,AOe}var _Oe,tFt;function GKn(){if(tFt)return _Oe;tFt=1;function n(i,s,c,d){for(var g=i.length,b=c+(d?1:-1);d?b--:++b-1}return COe=i,COe}var IOe,sFt;function YKn(){if(sFt)return IOe;sFt=1;function n(i,s,c){for(var d=-1,g=i==null?0:i.length;++d=b){var $=S?null:d(E);if($)return g($);L=!1,C=c,B=new n}else B=S?[]:D;e:for(;++A1?c.setNode(d,i):c.setNode(d)}),this};ys.prototype.setNode=function(n,i){return Oo.has(this._nodes,n)?(arguments.length>1&&(this._nodes[n]=i),this):(this._nodes[n]=arguments.length>1?i:this._defaultNodeLabelFn(n),this._isCompound&&(this._parent[n]=vR,this._children[n]={},this._children[vR][n]=!0),this._in[n]={},this._preds[n]={},this._out[n]={},this._sucs[n]={},++this._nodeCount,this)};ys.prototype.node=function(n){return this._nodes[n]};ys.prototype.hasNode=function(n){return Oo.has(this._nodes,n)};ys.prototype.removeNode=function(n){var i=this;if(Oo.has(this._nodes,n)){var s=function(c){i.removeEdge(i._edgeObjs[c])};delete this._nodes[n],this._isCompound&&(this._removeFromParentsChildList(n),delete this._parent[n],Oo.each(this.children(n),function(c){i.setParent(c)}),delete this._children[n]),Oo.each(Oo.keys(this._in[n]),s),delete this._in[n],delete this._preds[n],Oo.each(Oo.keys(this._out[n]),s),delete this._out[n],delete this._sucs[n],--this._nodeCount}return this};ys.prototype.setParent=function(n,i){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Oo.isUndefined(i))i=vR;else{i+="";for(var s=i;!Oo.isUndefined(s);s=this.parent(s))if(s===n)throw new Error("Setting "+i+" as parent of "+n+" would create a cycle");this.setNode(i)}return this.setNode(n),this._removeFromParentsChildList(n),this._parent[n]=i,this._children[i][n]=!0,this};ys.prototype._removeFromParentsChildList=function(n){delete this._children[this._parent[n]][n]};ys.prototype.parent=function(n){if(this._isCompound){var i=this._parent[n];if(i!==vR)return i}};ys.prototype.children=function(n){if(Oo.isUndefined(n)&&(n=vR),this._isCompound){var i=this._children[n];if(i)return Oo.keys(i)}else{if(n===vR)return this.nodes();if(this.hasNode(n))return[]}};ys.prototype.predecessors=function(n){var i=this._preds[n];if(i)return Oo.keys(i)};ys.prototype.successors=function(n){var i=this._sucs[n];if(i)return Oo.keys(i)};ys.prototype.neighbors=function(n){var i=this.predecessors(n);if(i)return Oo.union(i,this.successors(n))};ys.prototype.isLeaf=function(n){var i;return this.isDirected()?i=this.successors(n):i=this.neighbors(n),i.length===0};ys.prototype.filterNodes=function(n){var i=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});i.setGraph(this.graph());var s=this;Oo.each(this._nodes,function(g,b){n(b)&&i.setNode(b,g)}),Oo.each(this._edgeObjs,function(g){i.hasNode(g.v)&&i.hasNode(g.w)&&i.setEdge(g,s.edge(g))});var c={};function d(g){var b=s.parent(g);return b===void 0||i.hasNode(b)?(c[g]=b,b):b in c?c[b]:d(b)}return this._isCompound&&Oo.each(i.nodes(),function(g){i.setParent(g,d(g))}),i};ys.prototype.setDefaultEdgeLabel=function(n){return Oo.isFunction(n)||(n=Oo.constant(n)),this._defaultEdgeLabelFn=n,this};ys.prototype.edgeCount=function(){return this._edgeCount};ys.prototype.edges=function(){return Oo.values(this._edgeObjs)};ys.prototype.setPath=function(n,i){var s=this,c=arguments;return Oo.reduce(n,function(d,g){return c.length>1?s.setEdge(d,g,i):s.setEdge(d,g),g}),this};ys.prototype.setEdge=function(){var n,i,s,c,d=!1,g=arguments[0];typeof g=="object"&&g!==null&&"v"in g?(n=g.v,i=g.w,s=g.name,arguments.length===2&&(c=arguments[1],d=!0)):(n=g,i=arguments[1],s=arguments[3],arguments.length>2&&(c=arguments[2],d=!0)),n=""+n,i=""+i,Oo.isUndefined(s)||(s=""+s);var b=Mz(this._isDirected,n,i,s);if(Oo.has(this._edgeLabels,b))return d&&(this._edgeLabels[b]=c),this;if(!Oo.isUndefined(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(n),this.setNode(i),this._edgeLabels[b]=d?c:this._defaultEdgeLabelFn(n,i,s);var w=iYn(this._isDirected,n,i,s);return n=w.v,i=w.w,Object.freeze(w),this._edgeObjs[b]=w,gFt(this._preds[i],n),gFt(this._sucs[n],i),this._in[i][b]=w,this._out[n][b]=w,this._edgeCount++,this};ys.prototype.edge=function(n,i,s){var c=arguments.length===1?MMe(this._isDirected,arguments[0]):Mz(this._isDirected,n,i,s);return this._edgeLabels[c]};ys.prototype.hasEdge=function(n,i,s){var c=arguments.length===1?MMe(this._isDirected,arguments[0]):Mz(this._isDirected,n,i,s);return Oo.has(this._edgeLabels,c)};ys.prototype.removeEdge=function(n,i,s){var c=arguments.length===1?MMe(this._isDirected,arguments[0]):Mz(this._isDirected,n,i,s),d=this._edgeObjs[c];return d&&(n=d.v,i=d.w,delete this._edgeLabels[c],delete this._edgeObjs[c],bFt(this._preds[i],n),bFt(this._sucs[n],i),delete this._in[i][c],delete this._out[n][c],this._edgeCount--),this};ys.prototype.inEdges=function(n,i){var s=this._in[n];if(s){var c=Oo.values(s);return i?Oo.filter(c,function(d){return d.v===i}):c}};ys.prototype.outEdges=function(n,i){var s=this._out[n];if(s){var c=Oo.values(s);return i?Oo.filter(c,function(d){return d.w===i}):c}};ys.prototype.nodeEdges=function(n,i){var s=this.inEdges(n,i);if(s)return s.concat(this.outEdges(n,i))};function gFt(n,i){n[i]?n[i]++:n[i]=1}function bFt(n,i){--n[i]||delete n[i]}function Mz(n,i,s,c){var d=""+i,g=""+s;if(!n&&d>g){var b=d;d=g,g=b}return d+pFt+g+pFt+(Oo.isUndefined(c)?rYn:c)}function iYn(n,i,s,c){var d=""+i,g=""+s;if(!n&&d>g){var b=d;d=g,g=b}var w={v:d,w:g};return c&&(w.name=c),w}function MMe(n,i){return Mz(n,i.v,i.w,i.name)}var oYn="2.1.8",sYn={Graph:LMe,version:oYn},B2=Cw,aYn=LMe,uYn={write:cYn,read:fYn};function cYn(n){var i={options:{directed:n.isDirected(),multigraph:n.isMultigraph(),compound:n.isCompound()},nodes:lYn(n),edges:dYn(n)};return B2.isUndefined(n.graph())||(i.value=B2.clone(n.graph())),i}function lYn(n){return B2.map(n.nodes(),function(i){var s=n.node(i),c=n.parent(i),d={v:i};return B2.isUndefined(s)||(d.value=s),B2.isUndefined(c)||(d.parent=c),d})}function dYn(n){return B2.map(n.edges(),function(i){var s=n.edge(i),c={v:i.v,w:i.w};return B2.isUndefined(i.name)||(c.name=i.name),B2.isUndefined(s)||(c.value=s),c})}function fYn(n){var i=new aYn(n.options).setGraph(n.value);return B2.each(n.nodes,function(s){i.setNode(s.v,s.value),s.parent&&i.setParent(s.v,s.parent)}),B2.each(n.edges,function(s){i.setEdge({v:s.v,w:s.w,name:s.name},s.value)}),i}var Rie=Cw,hYn=pYn;function pYn(n){var i={},s=[],c;function d(g){Rie.has(i,g)||(i[g]=!0,c.push(g),Rie.each(n.successors(g),d),Rie.each(n.predecessors(g),d))}return Rie.each(n.nodes(),function(g){c=[],d(g),c.length&&s.push(c)}),s}var bWt=Cw,mWt=Iw;function Iw(){this._arr=[],this._keyIndices={}}Iw.prototype.size=function(){return this._arr.length};Iw.prototype.keys=function(){return this._arr.map(function(n){return n.key})};Iw.prototype.has=function(n){return bWt.has(this._keyIndices,n)};Iw.prototype.priority=function(n){var i=this._keyIndices[n];if(i!==void 0)return this._arr[i].priority};Iw.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};Iw.prototype.add=function(n,i){var s=this._keyIndices;if(n=String(n),!bWt.has(s,n)){var c=this._arr,d=c.length;return s[n]=d,c.push({key:n,priority:i}),this._decrease(d),!0}return!1};Iw.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key};Iw.prototype.decrease=function(n,i){var s=this._keyIndices[n];if(i>this._arr[s].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[s].priority+" New: "+i);this._arr[s].priority=i,this._decrease(s)};Iw.prototype._heapify=function(n){var i=this._arr,s=2*n,c=s+1,d=n;s>1,!(i[c].priority0&&(b=g.removeMin(),w=d[b],w.distance!==Number.POSITIVE_INFINITY);)c(b).forEach(E);return d}var vYn=wWt,EYn=Cw,SYn=TYn;function TYn(n,i,s){return EYn.transform(n.nodes(),function(c,d){c[d]=vYn(n,d,i,s)},{})}var mFt=Cw,yWt=AYn;function AYn(n){var i=0,s=[],c={},d=[];function g(b){var w=c[b]={onStack:!0,lowlink:i,index:i++};if(s.push(b),n.successors(b).forEach(function(x){mFt.has(c,x)?c[x].onStack&&(w.lowlink=Math.min(w.lowlink,c[x].index)):(g(x),w.lowlink=Math.min(w.lowlink,c[x].lowlink))}),w.lowlink===w.index){var E=[],S;do S=s.pop(),c[S].onStack=!1,E.push(S);while(b!==S);d.push(E)}}return n.nodes().forEach(function(b){mFt.has(c,b)||g(b)}),d}var _Yn=Cw,xYn=yWt,kYn=NYn;function NYn(n){return _Yn.filter(xYn(n),function(i){return i.length>1||i.length===1&&n.hasEdge(i[0],i[0])})}var CYn=Cw,IYn=OYn,RYn=CYn.constant(1);function OYn(n,i,s){return DYn(n,i||RYn,s||function(c){return n.outEdges(c)})}function DYn(n,i,s){var c={},d=n.nodes();return d.forEach(function(g){c[g]={},c[g][g]={distance:0},d.forEach(function(b){g!==b&&(c[g][b]={distance:Number.POSITIVE_INFINITY})}),s(g).forEach(function(b){var w=b.v===g?b.w:b.v,E=i(b);c[g][w]={distance:E,predecessor:g}})}),d.forEach(function(g){var b=c[g];d.forEach(function(w){var E=c[w];d.forEach(function(S){var x=E[g],A=b[S],C=E[S],R=x.distance+A.distance;R0;){if(g=d.removeMin(),yFt.has(c,g))s.setEdge(g,c[g]);else{if(w)throw new Error("Input graph is not connected: "+n);w=!0}n.nodeEdges(g).forEach(b)}return s}var WYn={components:hYn,dijkstra:wWt,dijkstraAll:SYn,findCycles:kYn,floydWarshall:IYn,isAcyclic:LYn,postorder:FYn,preorder:UYn,prim:qYn,tarjan:yWt,topsort:vWt},vFt=sYn,KYn={Graph:vFt.Graph,json:uYn,alg:WYn,version:vFt.version};const YYn=TR(KYn),{Graph:JYn,alg:EFt}=YYn;function AWt(n){const i=new Set,s=new Set,c=new Set,d=new Map;for(const E of n.edges){const S=d.get(E.source)||[];S.push(E),d.set(E.source,S)}const g=new Set(n.edges.map(E=>E.target)),b=n.nodes.filter(E=>!g.has(E.id)).map(E=>E.id);function w(E){if(!s.has(E)){s.add(E),c.add(E);for(const S of d.get(E)||[])c.has(S.target)?i.add(S.id):s.has(S.target)||w(S.target);c.delete(E)}}for(const E of b)w(E);for(const E of n.nodes)s.has(E.id)||w(E.id);return i}function XYn(n){const i=new JYn({directed:!0}),s=AWt(n),c=new Map(n.nodes.map(B=>[B.id,B.type])),d=new Set;for(const B of n.edges){if(!s.has(B.id))continue;const $=c.get(B.source),j=c.get(B.target);($==="condition"||j==="condition")&&d.add(B.id)}const g=n.edges.filter(B=>!d.has(B.id)),b={...n,edges:g};for(const B of n.nodes)i.setNode(B.id,B);for(const B of g)i.setEdge(B.source,B.target,B);const w=!EFt.isAcyclic(i),E=n.nodes.filter(B=>{var $;return(($=i.predecessors(B.id))==null?void 0:$.length)===0}).map(B=>B.id),S=n.nodes.filter(B=>g.filter(j=>j.source===B.id).length===0).map(B=>B.id);let x=null;if(!w)try{x=EFt.topsort(i)}catch{x=null}const A=ZYn(i,b,x),C=tJn(b),R=eJn(i,b),L=!w&&!A&&!C&&!R,D=L?"native":"state-machine";return{isTree:L,hasCycles:w,hasMultipleEntryPoints:E.length>1,hasCrossLinks:A,hasConvergingPaths:C,hasDivergentTriggerPaths:R,entryNodes:E,exitNodes:S,topologicalOrder:x,recommendedStrategy:D}}function ZYn(n,i,s){if(!s||s.length===0)return!1;const c=new Map,g=i.nodes.filter(x=>{var A;return((A=n.predecessors(x.id))==null?void 0:A.length)===0}).map(x=>x.id).map(x=>({nodeId:x,level:0}));for(;g.length>0;){const{nodeId:x,level:A}=g.shift();if(c.has(x))continue;c.set(x,A);const C=n.successors(x)||[];for(const R of C)c.has(R)||g.push({nodeId:R,level:A+1})}const b=new Set,w=new Map;for(const x of i.edges){const A=(w.get(x.source)||0)+1;w.set(x.source,A)}for(const[x,A]of w)if(A>1){const C=i.nodes.find(R=>R.id===x);(C==null?void 0:C.type)!=="condition"&&(i.edges.filter(D=>D.source===x).some(D=>D.sourceHandle==="true"||D.sourceHandle==="false")||b.add(x))}const E=new Set,S=new Map;for(const x of i.edges){const A=(S.get(x.target)||0)+1;S.set(x.target,A)}for(const[x,A]of S)A>1&&E.add(x);for(const x of i.edges){const A=c.get(x.source),C=c.get(x.target);if(A!==void 0&&C!==void 0){if(C>A+1)return!0;if(C0&&QYn(i,x.source,b))continue;return!0}}}return!1}function QYn(n,i,s){const c=new Set,d=[i];for(;d.length>0;){const g=d.shift();if(c.has(g))continue;if(c.add(g),s.has(g))return!0;const b=n.edges.filter(w=>w.target===g).map(w=>w.source);for(const w of b)c.has(w)||d.push(w)}return!1}function eJn(n,i){const s=i.nodes.filter(b=>b.type==="trigger");if(s.length<=1)return!1;const c=s.map(b=>{const w=n.successors(b.id)||[];return new Set(w)});if(s.every(b=>{const w=n.successors(b.id)||[];return w.length>0&&w.every(E=>{const S=i.nodes.find(x=>x.id===E);return(S==null?void 0:S.type)==="condition"})}))return!1;const g=c[0];for(let b=1;b1){const g=n.edges.filter(w=>w.target===c),b=new Set(g.map(w=>w.source));if(b.size>1){if([...b].map(x=>n.nodes.find(A=>A.id===x)).every(x=>(x==null?void 0:x.type)==="trigger"))continue;if(!nJn(n,[...b],s,c))return!0}}return!1}function nJn(n,i,s,c){const d=n.edges.filter(D=>D.target===c),g=i.every(D=>{const B=n.nodes.find($=>$.id===D);return(B==null?void 0:B.type)==="condition"}),b=d.every(D=>D.sourceHandle==="true"),w=d.every(D=>D.sourceHandle==="false");if(g&&(b||w))return!0;const E=D=>n.edges.filter(B=>B.target===D).map(B=>B.source),S=(D,B)=>{if(B.has(D))return null;B.add(D);const $=n.nodes.find(ee=>ee.id===D);if(($==null?void 0:$.type)==="condition")return D;const j=n.edges.filter(ee=>ee.target===D);if(j.length===0||j.length>1)return null;const P=j[0].source,G=n.nodes.find(ee=>ee.id===P);return(G==null?void 0:G.type)==="condition"?P:S(P,B)},x=new Set;let A=!0;for(const D of i){const B=S(D,new Set);if(B)x.add(B);else{A=!1;break}}if(A&&x.size===1)return!0;const C=D=>{const B=n.nodes.find(P=>P.id===D);if((B==null?void 0:B.type)==="condition")return!1;const $=n.edges.filter(P=>P.source===D);return $.some(P=>P.sourceHandle==="true"||P.sourceHandle==="false")?!1:$.length>1},R=(D,B)=>{if(B.has(D))return null;B.add(D);const $=E(D);if($.length===0||$.length>1)return null;const j=$[0];return C(j)?j:R(j,B)},L=new Set;for(const D of i){const B=E(D);if(B.length===1){const j=B[0];if(C(j)){L.add(j);continue}}const $=R(D,new Set);if($)L.add($);else return!1}return L.size===1}function rJn(n){const i=[];let s;try{s=BVt.parse(n)}catch(g){if(g instanceof iqn)for(const b of g.issues)i.push({code:b.code,message:b.message,path:b.path.map(String)});else i.push({code:"UNKNOWN_ERROR",message:g instanceof Error?g.message:"Unknown validation error"});return{success:!1,errors:i}}const c=UVt(s);if(!c.valid)for(const g of c.errors)i.push({code:"STRUCTURAL_ERROR",message:g});const d=iJn(s);return i.push(...d),{success:i.length===0,graph:i.length===0?s:void 0,errors:i}}function iJn(n){const i=[],s=n.nodes.filter(w=>w.type==="condition");for(const w of s){const E=n.edges.filter(A=>A.source===w.id),S=E.some(A=>A.sourceHandle==="true"),x=E.some(A=>A.sourceHandle==="false");!S&&!x&&i.push({code:"CONDITION_NO_EDGES",message:`Condition node "${w.id}" has no outgoing edges`,path:["nodes",w.id]})}const c=n.nodes.filter(w=>w.type==="action");for(const w of c)if(w.type==="action"){const E=w.data.service,S=["variables","delay","wait","wait_template","wait_for_trigger","stop","repeat","choose","if"];typeof E=="string"&&!E.includes(".")&&!S.includes(E)&&i.push({code:"INVALID_SERVICE",message:`Action node "${w.id}" has invalid service format: "${E}". Expected "domain.service"`,path:["nodes",w.id,"data","service"]})}const d=new Set,b=[...n.nodes.filter(w=>w.type==="trigger").map(w=>w.id)];for(;b.length>0;){const w=b.shift();if(d.has(w))continue;d.add(w);const E=n.edges.filter(S=>S.source===w);for(const S of E)d.has(S.target)||b.push(S.target)}for(const w of n.nodes)!d.has(w.id)&&w.type!=="trigger"&&i.push({code:"ORPHANED_NODE",message:`Node "${w.id}" is not connected to any trigger`,path:["nodes",w.id]});return i}/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function _Wt(n){return typeof n>"u"||n===null}function oJn(n){return typeof n=="object"&&n!==null}function sJn(n){return Array.isArray(n)?n:_Wt(n)?[]:[n]}function aJn(n,i){var s,c,d,g;if(i)for(g=Object.keys(i),s=0,c=g.length;sw&&(g=" ... ",i=c-w+g.length),s-c>w&&(b=" ...",s=c+w-b.length),{str:g+n.slice(i,s).replace(/\t/g,"→")+b,pos:c-i+g.length}}function $Oe(n,i){return vf.repeat(" ",i-n.length)+n}function bJn(n,i){if(i=Object.create(i||null),!n.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!="number"&&(i.indent=1),typeof i.linesBefore!="number"&&(i.linesBefore=3),typeof i.linesAfter!="number"&&(i.linesAfter=2);for(var s=/\r?\n|\r|\0/g,c=[0],d=[],g,b=-1;g=s.exec(n.buffer);)d.push(g.index),c.push(g.index+g[0].length),n.position<=g.index&&b<0&&(b=c.length-2);b<0&&(b=c.length-1);var w="",E,S,x=Math.min(n.line+i.linesAfter,d.length).toString().length,A=i.maxLength-(i.indent+x+3);for(E=1;E<=i.linesBefore&&!(b-E<0);E++)S=FOe(n.buffer,c[b-E],d[b-E],n.position-(c[b]-c[b-E]),A),w=vf.repeat(" ",i.indent)+$Oe((n.line-E+1).toString(),x)+" | "+S.str+` +`+w;for(S=FOe(n.buffer,c[b],d[b],n.position,A),w+=vf.repeat(" ",i.indent)+$Oe((n.line+1).toString(),x)+" | "+S.str+` +`,w+=vf.repeat("-",i.indent+x+3+S.pos)+`^ +`,E=1;E<=i.linesAfter&&!(b+E>=d.length);E++)S=FOe(n.buffer,c[b+E],d[b+E],n.position-(c[b]-c[b+E]),A),w+=vf.repeat(" ",i.indent)+$Oe((n.line+E+1).toString(),x)+" | "+S.str+` +`;return w.replace(/\n$/,"")}var mJn=bJn,wJn=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],yJn=["scalar","sequence","mapping"];function vJn(n){var i={};return n!==null&&Object.keys(n).forEach(function(s){n[s].forEach(function(c){i[String(c)]=s})}),i}function EJn(n,i){if(i=i||{},Object.keys(i).forEach(function(s){if(wJn.indexOf(s)===-1)throw new ib('Unknown option "'+s+'" is met in definition of "'+n+'" YAML type.')}),this.options=i,this.tag=n,this.kind=i.kind||null,this.resolve=i.resolve||function(){return!0},this.construct=i.construct||function(s){return s},this.instanceOf=i.instanceOf||null,this.predicate=i.predicate||null,this.represent=i.represent||null,this.representName=i.representName||null,this.defaultStyle=i.defaultStyle||null,this.multi=i.multi||!1,this.styleAliases=vJn(i.styleAliases||null),yJn.indexOf(this.kind)===-1)throw new ib('Unknown kind "'+this.kind+'" is specified for "'+n+'" YAML type.')}var Bp=EJn;function SFt(n,i){var s=[];return n[i].forEach(function(c){var d=s.length;s.forEach(function(g,b){g.tag===c.tag&&g.kind===c.kind&&g.multi===c.multi&&(d=b)}),s[d]=c}),s}function SJn(){var n={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},i,s;function c(d){d.multi?(n.multi[d.kind].push(d),n.multi.fallback.push(d)):n[d.kind][d.tag]=n.fallback[d.tag]=d}for(i=0,s=arguments.length;i=0?"0b"+n.toString(2):"-0b"+n.toString(2).slice(1)},octal:function(n){return n>=0?"0o"+n.toString(8):"-0o"+n.toString(8).slice(1)},decimal:function(n){return n.toString(10)},hexadecimal:function(n){return n>=0?"0x"+n.toString(16).toUpperCase():"-0x"+n.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),zJn=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function GJn(n){return!(n===null||!zJn.test(n)||n[n.length-1]==="_")}function qJn(n){var i,s;return i=n.replace(/_/g,"").toLowerCase(),s=i[0]==="-"?-1:1,"+-".indexOf(i[0])>=0&&(i=i.slice(1)),i===".inf"?s===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:i===".nan"?NaN:s*parseFloat(i,10)}var VJn=/^[-+]?[0-9]+e/;function WJn(n,i){var s;if(isNaN(n))switch(i){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===n)switch(i){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===n)switch(i){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(vf.isNegativeZero(n))return"-0.0";return s=n.toString(10),VJn.test(s)?s.replace("e",".e"):s}function KJn(n){return Object.prototype.toString.call(n)==="[object Number]"&&(n%1!==0||vf.isNegativeZero(n))}var YJn=new Bp("tag:yaml.org,2002:float",{kind:"scalar",resolve:GJn,construct:qJn,predicate:KJn,represent:WJn,defaultStyle:"lowercase"}),JJn=kJn.extend({implicit:[RJn,MJn,HJn,YJn]}),XJn=JJn,kWt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),NWt=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function ZJn(n){return n===null?!1:kWt.exec(n)!==null||NWt.exec(n)!==null}function QJn(n){var i,s,c,d,g,b,w,E=0,S=null,x,A,C;if(i=kWt.exec(n),i===null&&(i=NWt.exec(n)),i===null)throw new Error("Date resolve error");if(s=+i[1],c=+i[2]-1,d=+i[3],!i[4])return new Date(Date.UTC(s,c,d));if(g=+i[4],b=+i[5],w=+i[6],i[7]){for(E=i[7].slice(0,3);E.length<3;)E+="0";E=+E}return i[9]&&(x=+i[10],A=+(i[11]||0),S=(x*60+A)*6e4,i[9]==="-"&&(S=-S)),C=new Date(Date.UTC(s,c,d,g,b,w,E)),S&&C.setTime(C.getTime()-S),C}function eXn(n){return n.toISOString()}var tXn=new Bp("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ZJn,construct:QJn,instanceOf:Date,represent:eXn});function nXn(n){return n==="<<"||n===null}var rXn=new Bp("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nXn}),PMe=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function iXn(n){if(n===null)return!1;var i,s,c=0,d=n.length,g=PMe;for(s=0;s64)){if(i<0)return!1;c+=6}return c%8===0}function oXn(n){var i,s,c=n.replace(/[\r\n=]/g,""),d=c.length,g=PMe,b=0,w=[];for(i=0;i>16&255),w.push(b>>8&255),w.push(b&255)),b=b<<6|g.indexOf(c.charAt(i));return s=d%4*6,s===0?(w.push(b>>16&255),w.push(b>>8&255),w.push(b&255)):s===18?(w.push(b>>10&255),w.push(b>>2&255)):s===12&&w.push(b>>4&255),new Uint8Array(w)}function sXn(n){var i="",s=0,c,d,g=n.length,b=PMe;for(c=0;c>18&63],i+=b[s>>12&63],i+=b[s>>6&63],i+=b[s&63]),s=(s<<8)+n[c];return d=g%3,d===0?(i+=b[s>>18&63],i+=b[s>>12&63],i+=b[s>>6&63],i+=b[s&63]):d===2?(i+=b[s>>10&63],i+=b[s>>4&63],i+=b[s<<2&63],i+=b[64]):d===1&&(i+=b[s>>2&63],i+=b[s<<4&63],i+=b[64],i+=b[64]),i}function aXn(n){return Object.prototype.toString.call(n)==="[object Uint8Array]"}var uXn=new Bp("tag:yaml.org,2002:binary",{kind:"scalar",resolve:iXn,construct:oXn,predicate:aXn,represent:sXn}),cXn=Object.prototype.hasOwnProperty,lXn=Object.prototype.toString;function dXn(n){if(n===null)return!0;var i=[],s,c,d,g,b,w=n;for(s=0,c=w.length;s>10)+55296,(n-65536&1023)+56320)}function LWt(n,i,s){i==="__proto__"?Object.defineProperty(n,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):n[i]=s}var MWt=new Array(256),PWt=new Array(256);for(var E5=0;E5<256;E5++)MWt[E5]=_Ft(E5)?1:0,PWt[E5]=_Ft(E5);function IXn(n,i){this.input=n,this.filename=i.filename||null,this.schema=i.schema||CWt,this.onWarning=i.onWarning||null,this.legacy=i.legacy||!1,this.json=i.json||!1,this.listener=i.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=n.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function jWt(n,i){var s={name:n.filename,buffer:n.input.slice(0,-1),position:n.position,line:n.line,column:n.position-n.lineStart};return s.snippet=mJn(s),new ib(i,s)}function ki(n,i){throw jWt(n,i)}function fse(n,i){n.onWarning&&n.onWarning.call(null,jWt(n,i))}var xFt={YAML:function(i,s,c){var d,g,b;i.version!==null&&ki(i,"duplication of %YAML directive"),c.length!==1&&ki(i,"YAML directive accepts exactly one argument"),d=/^([0-9]+)\.([0-9]+)$/.exec(c[0]),d===null&&ki(i,"ill-formed argument of the YAML directive"),g=parseInt(d[1],10),b=parseInt(d[2],10),g!==1&&ki(i,"unacceptable YAML version of the document"),i.version=c[0],i.checkLineBreaks=b<2,b!==1&&b!==2&&fse(i,"unsupported YAML version of the document")},TAG:function(i,s,c){var d,g;c.length!==2&&ki(i,"TAG directive accepts exactly two arguments"),d=c[0],g=c[1],OWt.test(d)||ki(i,"ill-formed tag handle (first argument) of the TAG directive"),bN.call(i.tagMap,d)&&ki(i,'there is a previously declared suffix for "'+d+'" tag handle'),DWt.test(g)||ki(i,"ill-formed tag prefix (second argument) of the TAG directive");try{g=decodeURIComponent(g)}catch{ki(i,"tag prefix is malformed: "+g)}i.tagMap[d]=g}};function eN(n,i,s,c){var d,g,b,w;if(i1&&(n.result+=vf.repeat(` +`,i-1))}function RXn(n,i,s){var c,d,g,b,w,E,S,x,A=n.kind,C=n.result,R;if(R=n.input.charCodeAt(n.position),ub(R)||V5(R)||R===35||R===38||R===42||R===33||R===124||R===62||R===39||R===34||R===37||R===64||R===96||(R===63||R===45)&&(d=n.input.charCodeAt(n.position+1),ub(d)||s&&V5(d)))return!1;for(n.kind="scalar",n.result="",g=b=n.position,w=!1;R!==0;){if(R===58){if(d=n.input.charCodeAt(n.position+1),ub(d)||s&&V5(d))break}else if(R===35){if(c=n.input.charCodeAt(n.position-1),ub(c))break}else{if(n.position===n.lineStart&&Hae(n)||s&&V5(R))break;if(U2(R))if(E=n.line,S=n.lineStart,x=n.lineIndent,$d(n,!1,-1),n.lineIndent>=i){w=!0,R=n.input.charCodeAt(n.position);continue}else{n.position=b,n.line=E,n.lineStart=S,n.lineIndent=x;break}}w&&(eN(n,g,b,!1),FMe(n,n.line-E),g=b=n.position,w=!1),rR(R)||(b=n.position+1),R=n.input.charCodeAt(++n.position)}return eN(n,g,b,!1),n.result?!0:(n.kind=A,n.result=C,!1)}function OXn(n,i){var s,c,d;if(s=n.input.charCodeAt(n.position),s!==39)return!1;for(n.kind="scalar",n.result="",n.position++,c=d=n.position;(s=n.input.charCodeAt(n.position))!==0;)if(s===39)if(eN(n,c,n.position,!0),s=n.input.charCodeAt(++n.position),s===39)c=n.position,n.position++,d=n.position;else return!0;else U2(s)?(eN(n,c,d,!0),FMe(n,$d(n,!1,i)),c=d=n.position):n.position===n.lineStart&&Hae(n)?ki(n,"unexpected end of the document within a single quoted scalar"):(n.position++,d=n.position);ki(n,"unexpected end of the stream within a single quoted scalar")}function DXn(n,i){var s,c,d,g,b,w;if(w=n.input.charCodeAt(n.position),w!==34)return!1;for(n.kind="scalar",n.result="",n.position++,s=c=n.position;(w=n.input.charCodeAt(n.position))!==0;){if(w===34)return eN(n,s,n.position,!0),n.position++,!0;if(w===92){if(eN(n,s,n.position,!0),w=n.input.charCodeAt(++n.position),U2(w))$d(n,!1,i);else if(w<256&&MWt[w])n.result+=PWt[w],n.position++;else if((b=kXn(w))>0){for(d=b,g=0;d>0;d--)w=n.input.charCodeAt(++n.position),(b=xXn(w))>=0?g=(g<<4)+b:ki(n,"expected hexadecimal character");n.result+=CXn(g),n.position++}else ki(n,"unknown escape sequence");s=c=n.position}else U2(w)?(eN(n,s,c,!0),FMe(n,$d(n,!1,i)),s=c=n.position):n.position===n.lineStart&&Hae(n)?ki(n,"unexpected end of the document within a double quoted scalar"):(n.position++,c=n.position)}ki(n,"unexpected end of the stream within a double quoted scalar")}function LXn(n,i){var s=!0,c,d,g,b=n.tag,w,E=n.anchor,S,x,A,C,R,L=Object.create(null),D,B,$,j;if(j=n.input.charCodeAt(n.position),j===91)x=93,R=!1,w=[];else if(j===123)x=125,R=!0,w={};else return!1;for(n.anchor!==null&&(n.anchorMap[n.anchor]=w),j=n.input.charCodeAt(++n.position);j!==0;){if($d(n,!0,i),j=n.input.charCodeAt(n.position),j===x)return n.position++,n.tag=b,n.anchor=E,n.kind=R?"mapping":"sequence",n.result=w,!0;s?j===44&&ki(n,"expected the node content, but found ','"):ki(n,"missed comma between flow collection entries"),B=D=$=null,A=C=!1,j===63&&(S=n.input.charCodeAt(n.position+1),ub(S)&&(A=C=!0,n.position++,$d(n,!0,i))),c=n.line,d=n.lineStart,g=n.position,IM(n,i,lse,!1,!0),B=n.tag,D=n.result,$d(n,!0,i),j=n.input.charCodeAt(n.position),(C||n.line===c)&&j===58&&(A=!0,j=n.input.charCodeAt(++n.position),$d(n,!0,i),IM(n,i,lse,!1,!0),$=n.result),R?W5(n,w,L,B,D,$,c,d,g):A?w.push(W5(n,null,L,B,D,$,c,d,g)):w.push(D),$d(n,!0,i),j=n.input.charCodeAt(n.position),j===44?(s=!0,j=n.input.charCodeAt(++n.position)):s=!1}ki(n,"unexpected end of the stream within a flow collection")}function MXn(n,i){var s,c,d=BOe,g=!1,b=!1,w=i,E=0,S=!1,x,A;if(A=n.input.charCodeAt(n.position),A===124)c=!1;else if(A===62)c=!0;else return!1;for(n.kind="scalar",n.result="";A!==0;)if(A=n.input.charCodeAt(++n.position),A===43||A===45)BOe===d?d=A===43?TFt:SXn:ki(n,"repeat of a chomping mode identifier");else if((x=NXn(A))>=0)x===0?ki(n,"bad explicit indentation width of a block scalar; it cannot be less than one"):b?ki(n,"repeat of an indentation width identifier"):(w=i+x-1,b=!0);else break;if(rR(A)){do A=n.input.charCodeAt(++n.position);while(rR(A));if(A===35)do A=n.input.charCodeAt(++n.position);while(!U2(A)&&A!==0)}for(;A!==0;){for(jMe(n),n.lineIndent=0,A=n.input.charCodeAt(n.position);(!b||n.lineIndentw&&(w=n.lineIndent),U2(A)){E++;continue}if(n.lineIndenti)&&E!==0)ki(n,"bad indentation of a sequence entry");else if(n.lineIndenti)&&(B&&(b=n.line,w=n.lineStart,E=n.position),IM(n,i,dse,!0,d)&&(B?L=n.result:D=n.result),B||(W5(n,A,C,R,L,D,b,w,E),R=L=D=null),$d(n,!0,-1),j=n.input.charCodeAt(n.position)),(n.line===g||n.lineIndent>i)&&j!==0)ki(n,"bad indentation of a mapping entry");else if(n.lineIndenti?E=1:n.lineIndent===i?E=0:n.lineIndenti?E=1:n.lineIndent===i?E=0:n.lineIndent tag; it should be "scalar", not "'+n.kind+'"'),A=0,C=n.implicitTypes.length;A"),n.result!==null&&L.kind!==n.kind&&ki(n,"unacceptable node kind for !<"+n.tag+'> tag; it should be "'+L.kind+'", not "'+n.kind+'"'),L.resolve(n.result,n.tag)?(n.result=L.construct(n.result,n.tag),n.anchor!==null&&(n.anchorMap[n.anchor]=n.result)):ki(n,"cannot resolve a node with !<"+n.tag+"> explicit tag")}return n.listener!==null&&n.listener("close",n),n.tag!==null||n.anchor!==null||x}function BXn(n){var i=n.position,s,c,d,g=!1,b;for(n.version=null,n.checkLineBreaks=n.legacy,n.tagMap=Object.create(null),n.anchorMap=Object.create(null);(b=n.input.charCodeAt(n.position))!==0&&($d(n,!0,-1),b=n.input.charCodeAt(n.position),!(n.lineIndent>0||b!==37));){for(g=!0,b=n.input.charCodeAt(++n.position),s=n.position;b!==0&&!ub(b);)b=n.input.charCodeAt(++n.position);for(c=n.input.slice(s,n.position),d=[],c.length<1&&ki(n,"directive name must not be less than one character in length");b!==0;){for(;rR(b);)b=n.input.charCodeAt(++n.position);if(b===35){do b=n.input.charCodeAt(++n.position);while(b!==0&&!U2(b));break}if(U2(b))break;for(s=n.position;b!==0&&!ub(b);)b=n.input.charCodeAt(++n.position);d.push(n.input.slice(s,n.position))}b!==0&&jMe(n),bN.call(xFt,c)?xFt[c](n,c,d):fse(n,'unknown document directive "'+c+'"')}if($d(n,!0,-1),n.lineIndent===0&&n.input.charCodeAt(n.position)===45&&n.input.charCodeAt(n.position+1)===45&&n.input.charCodeAt(n.position+2)===45?(n.position+=3,$d(n,!0,-1)):g&&ki(n,"directives end mark is expected"),IM(n,n.lineIndent-1,dse,!1,!0),$d(n,!0,-1),n.checkLineBreaks&&AXn.test(n.input.slice(i,n.position))&&fse(n,"non-ASCII line breaks are interpreted as content"),n.documents.push(n.result),n.position===n.lineStart&&Hae(n)){n.input.charCodeAt(n.position)===46&&(n.position+=3,$d(n,!0,-1));return}if(n.position=55296&&s<=56319&&i+1=56320&&c<=57343)?(s-55296)*1024+c-56320+65536:s}function qWt(n){var i=/^\n* /;return i.test(n)}var VWt=1,BDe=2,WWt=3,KWt=4,x5=5;function bZn(n,i,s,c,d,g,b,w){var E,S=0,x=null,A=!1,C=!1,R=c!==-1,L=-1,D=pZn(rH(n,0))&&gZn(rH(n,n.length-1));if(i||b)for(E=0;E=65536?E+=2:E++){if(S=rH(n,E),!cz(S))return x5;D=D&&RFt(S,x,w),x=S}else{for(E=0;E=65536?E+=2:E++){if(S=rH(n,E),S===az)A=!0,R&&(C=C||E-L-1>c&&n[L+1]!==" ",L=E);else if(!cz(S))return x5;D=D&&RFt(S,x,w),x=S}C=C||R&&E-L-1>c&&n[L+1]!==" "}return!A&&!C?D&&!b&&!d(n)?VWt:g===uz?x5:BDe:s>9&&qWt(n)?x5:b?g===uz?x5:BDe:C?KWt:WWt}function mZn(n,i,s,c,d){n.dump=function(){if(i.length===0)return n.quotingType===uz?'""':"''";if(!n.noCompatMode&&(aZn.indexOf(i)!==-1||uZn.test(i)))return n.quotingType===uz?'"'+i+'"':"'"+i+"'";var g=n.indent*Math.max(1,s),b=n.lineWidth===-1?-1:Math.max(Math.min(n.lineWidth,40),n.lineWidth-g),w=c||n.flowLevel>-1&&s>=n.flowLevel;function E(S){return hZn(n,S)}switch(bZn(i,w,n.indent,b,E,n.quotingType,n.forceQuotes&&!c,d)){case VWt:return i;case BDe:return"'"+i.replace(/'/g,"''")+"'";case WWt:return"|"+OFt(i,n.indent)+DFt(CFt(i,g));case KWt:return">"+OFt(i,n.indent)+DFt(CFt(wZn(i,b),g));case x5:return'"'+yZn(i)+'"';default:throw new ib("impossible error: invalid scalar style")}}()}function OFt(n,i){var s=qWt(n)?String(i):"",c=n[n.length-1]===` +`,d=c&&(n[n.length-2]===` +`||n===` +`),g=d?"+":c?"":"-";return s+g+` +`}function DFt(n){return n[n.length-1]===` +`?n.slice(0,-1):n}function wZn(n,i){for(var s=/(\n+)([^\n]*)/g,c=function(){var S=n.indexOf(` +`);return S=S!==-1?S:n.length,s.lastIndex=S,LFt(n.slice(0,S),i)}(),d=n[0]===` +`||n[0]===" ",g,b;b=s.exec(n);){var w=b[1],E=b[2];g=E[0]===" ",c+=w+(!d&&!g&&E!==""?` +`:"")+LFt(E,i),d=g}return c}function LFt(n,i){if(n===""||n[0]===" ")return n;for(var s=/ [^ ]/g,c,d=0,g,b=0,w=0,E="";c=s.exec(n);)w=c.index,w-d>i&&(g=b>d?b:w,E+=` +`+n.slice(d,g),d=g+1),b=w;return E+=` +`,n.length-d>i&&b>d?E+=n.slice(d,b)+` +`+n.slice(b+1):E+=n.slice(d),E.slice(1)}function yZn(n){for(var i="",s=0,c,d=0;d=65536?d+=2:d++)s=rH(n,d),c=qp[s],!c&&cz(s)?(i+=n[d],s>=65536&&(i+=n[d+1])):i+=c||lZn(s);return i}function vZn(n,i,s){var c="",d=n.tag,g,b,w;for(g=0,b=s.length;g"u"&&TA(n,i,null,!1,!1))&&(c!==""&&(c+=","+(n.condenseFlow?"":" ")),c+=n.dump);n.tag=d,n.dump="["+c+"]"}function MFt(n,i,s,c){var d="",g=n.tag,b,w,E;for(b=0,w=s.length;b"u"&&TA(n,i+1,null,!0,!0,!1,!0))&&((!c||d!=="")&&(d+=$De(n,i)),n.dump&&az===n.dump.charCodeAt(0)?d+="-":d+="- ",d+=n.dump);n.tag=g,n.dump=d||"[]"}function EZn(n,i,s){var c="",d=n.tag,g=Object.keys(s),b,w,E,S,x;for(b=0,w=g.length;b1024&&(x+="? "),x+=n.dump+(n.condenseFlow?'"':"")+":"+(n.condenseFlow?"":" "),TA(n,i,S,!1,!1)&&(x+=n.dump,c+=x));n.tag=d,n.dump="{"+c+"}"}function SZn(n,i,s,c){var d="",g=n.tag,b=Object.keys(s),w,E,S,x,A,C;if(n.sortKeys===!0)b.sort();else if(typeof n.sortKeys=="function")b.sort(n.sortKeys);else if(n.sortKeys)throw new ib("sortKeys must be a boolean or a function");for(w=0,E=b.length;w1024,A&&(n.dump&&az===n.dump.charCodeAt(0)?C+="?":C+="? "),C+=n.dump,A&&(C+=$De(n,i)),TA(n,i+1,x,!0,A)&&(n.dump&&az===n.dump.charCodeAt(0)?C+=":":C+=": ",C+=n.dump,d+=C));n.tag=g,n.dump=d||"{}"}function PFt(n,i,s){var c,d,g,b,w,E;for(d=s?n.explicitTypes:n.implicitTypes,g=0,b=d.length;g tag resolver accepts not "'+E+'" style');n.dump=c}return!0}return!1}function TA(n,i,s,c,d,g,b){n.tag=null,n.dump=s,PFt(n,s,!1)||PFt(n,s,!0);var w=FWt.call(n.dump),E=c,S;c&&(c=n.flowLevel<0||n.flowLevel>i);var x=w==="[object Object]"||w==="[object Array]",A,C;if(x&&(A=n.duplicates.indexOf(s),C=A!==-1),(n.tag!==null&&n.tag!=="?"||C||n.indent!==2&&i>0)&&(d=!1),C&&n.usedDuplicates[A])n.dump="*ref_"+A;else{if(x&&C&&!n.usedDuplicates[A]&&(n.usedDuplicates[A]=!0),w==="[object Object]")c&&Object.keys(n.dump).length!==0?(SZn(n,i,n.dump,d),C&&(n.dump="&ref_"+A+n.dump)):(EZn(n,i,n.dump),C&&(n.dump="&ref_"+A+" "+n.dump));else if(w==="[object Array]")c&&n.dump.length!==0?(n.noArrayIndent&&!b&&i>0?MFt(n,i-1,n.dump,d):MFt(n,i,n.dump,d),C&&(n.dump="&ref_"+A+n.dump)):(vZn(n,i,n.dump),C&&(n.dump="&ref_"+A+" "+n.dump));else if(w==="[object String]")n.tag!=="?"&&mZn(n,n.dump,i,g,E);else{if(w==="[object Undefined]")return!1;if(n.skipInvalid)return!1;throw new ib("unacceptable kind of an object to dump "+w)}n.tag!==null&&n.tag!=="?"&&(S=encodeURI(n.tag[0]==="!"?n.tag.slice(1):n.tag).replace(/!/g,"%21"),n.tag[0]==="!"?S="!"+S:S.slice(0,18)==="tag:yaml.org,2002:"?S="!!"+S.slice(18):S="!<"+S+">",n.dump=S+" "+n.dump)}return!0}function TZn(n,i){var s=[],c=[],d,g;for(UDe(n,s,c),d=0,g=c.length;d"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");UOe=crypto.getRandomValues.bind(crypto)}return UOe(CZn)}const RZn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),jFt={randomUUID:RZn};function OZn(n,i,s){var d;n=n||{};const c=n.random??((d=n.rng)==null?void 0:d.call(n))??IZn();if(c.length<16)throw new Error("Random bytes length must be >= 16");return c[6]=c[6]&15|64,c[8]=c[8]&63|128,NZn(c)}function DZn(n,i,s){return jFt.randomUUID&&!n?jFt.randomUUID():OZn(n)}let LZn=0;function FFt(n,i){return`${n}_${Date.now()}_${i}_${LZn++}`}function MZn(){return DZn()}function PZn(n,i){return`e-${n}-${i}-${Date.now()}`}var YWt={exports:{}};(function(n,i){(function(s){n.exports=s()})(function(){return function(){function s(c,d,g){function b(S,x){if(!d[S]){if(!c[S]){var A=typeof QU=="function"&&QU;if(!x&&A)return A(S,!0);if(w)return w(S,!0);var C=new Error("Cannot find module '"+S+"'");throw C.code="MODULE_NOT_FOUND",C}var R=d[S]={exports:{}};c[S][0].call(R.exports,function(L){var D=c[S][1][L];return b(D||L)},R,R.exports,s,c,d,g)}return d[S].exports}for(var w=typeof QU=="function"&&QU,E=0;E0&&arguments[0]!==void 0?arguments[0]:{},D=L.defaultLayoutOptions,B=D===void 0?{}:D,$=L.algorithms,j=$===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking","vertiflex"]:$,P=L.workerFactory,G=L.workerUrl;if(b(this,C),this.defaultLayoutOptions=B,this.initialized=!1,typeof G>"u"&&typeof P>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var ee=P;typeof G<"u"&&typeof P>"u"&&(ee=function(ie){return new Worker(ie)});var re=ee(G);if(typeof re.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new A(re),this.worker.postMessage({cmd:"register",algorithms:j}).then(function(Q){return R.initialized=!0}).catch(console.err)}return E(C,[{key:"layout",value:function(L){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},B=D.layoutOptions,$=B===void 0?this.defaultLayoutOptions:B,j=D.logging,P=j===void 0?!1:j,G=D.measureExecutionTime,ee=G===void 0?!1:G;return L?this.worker.postMessage({cmd:"layout",graph:L,layoutOptions:$,options:{logging:P,measureExecutionTime:ee}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker&&this.worker.terminate()}}])}();var A=function(){function C(R){var L=this;if(b(this,C),R===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=R,this.worker.onmessage=function(D){setTimeout(function(){L.receive(L,D)},0)}}return E(C,[{key:"postMessage",value:function(L){var D=this.id||0;this.id=D+1,L.id=D;var B=this;return new Promise(function($,j){B.resolvers[D]=function(P,G){P?(B.convertGwtStyleError(P),j(P)):$(G)},B.worker.postMessage(L)})}},{key:"receive",value:function(L,D){var B=D.data,$=L.resolvers[B.id];$&&(delete L.resolvers[B.id],B.error?$(B.error):$(null,B.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(L){if(L){var D=L.__java$exception;D&&(D.cause&&D.cause.backingJsObject&&(L.cause=D.cause.backingJsObject,this.convertGwtStyleError(L.cause)),delete L.__java$exception)}}}])}()},{}],2:[function(s,c,d){(function(g){(function(){var b;typeof window<"u"?b=window:typeof g<"u"?b=g:typeof self<"u"&&(b=self);var w;function E(){}function S(){}function x(){}function A(){}function C(){}function R(){}function L(){}function D(){}function B(){}function $(){}function j(){}function P(){}function G(){}function ee(){}function re(){}function Q(){}function ie(){}function pe(){}function me(){}function le(){}function fe(){}function K(){}function he(){}function Oe(){}function Se(){}function Le(){}function Ae(){}function xe(){}function We(){}function dt(){}function Ue(){}function bt(){}function kt(){}function ht(){}function Xt(){}function vt(){}function Ct(){}function Ft(){}function On(){}function Zn(){}function Yn(){}function vr(){}function Ui(){}function Qr(){}function Hi(){}function ai(){}function jc(){}function Xs(){}function ls(){}function Qo(){}function Ca(){}function Ni(){}function mb(){}function Yg(){}function Wh(){}function wb(){}function Wp(){}function Ow(){}function Kh(){}function X2(){}function Jg(){}function Kp(){}function Xg(){}function CN(){}function IN(){}function GR(){}function kA(){}function yb(){}function qR(){}function VR(){}function RN(){}function ON(){}function po(){}function Fc(){}function Fl(){}function Af(){}function Z2(){}function pl(){}function sh(){}function Vm(){}function ah(){}function Yh(){}function Q2(){}function Wm(){}function n9(){}function r9(){}function tG(){}function nG(){}function rG(){}function i9(){}function o9(){}function s9(){}function iG(){}function oG(){}function sG(){}function aG(){}function WR(){}function uG(){}function a9(){}function cG(){}function lG(){}function dG(){}function fG(){}function hG(){}function pG(){}function gG(){}function u9(){}function bG(){}function c9(){}function l9(){}function mG(){}function wG(){}function yG(){}function vG(){}function EG(){}function DN(){}function SG(){}function d9(){}function TG(){}function AG(){}function KR(){}function _G(){}function xG(){}function f9(){}function tFe(){}function nFe(){}function rFe(){}function iFe(){}function oFe(){}function sFe(){}function aFe(){}function uFe(){}function cFe(){}function lFe(){}function dFe(){}function fFe(){}function hFe(){}function pFe(){}function gFe(){}function bFe(){}function mFe(){}function wFe(){}function yFe(){}function vFe(){}function EFe(){}function SFe(){}function TFe(){}function AFe(){}function _Fe(){}function xFe(){}function kFe(){}function NFe(){}function CFe(){}function IFe(){}function RFe(){}function OFe(){}function DFe(){}function LFe(){}function MFe(){}function PFe(){}function jFe(){}function FFe(){}function $Fe(){}function BFe(){}function UFe(){}function HFe(){}function zFe(){}function GFe(){}function qFe(){}function VFe(){}function WFe(){}function KFe(){}function YFe(){}function JFe(){}function XFe(){}function ZFe(){}function QFe(){}function e$e(){}function t$e(){}function n$e(){}function r$e(){}function i$e(){}function o$e(){}function s$e(){}function a$e(){}function u$e(){}function c$e(){}function l$e(){}function d$e(){}function f$e(){}function h$e(){}function p$e(){}function g$e(){}function b$e(){}function m$e(){}function w$e(){}function y$e(){}function v$e(){}function E$e(){}function S$e(){}function T$e(){}function A$e(){}function _$e(){}function x$e(){}function k$e(){}function N$e(){}function C$e(){}function I$e(){}function R$e(){}function O$e(){}function Rue(){}function D$e(){}function L$e(){}function M$e(){}function P$e(){}function j$e(){}function F$e(){}function $$e(){}function B$e(){}function U$e(){}function H$e(){}function z$e(){}function G$e(){}function q$e(){}function V$e(){}function W$e(){}function K$e(){}function Y$e(){}function J$e(){}function X$e(){}function Z$e(){}function Q$e(){}function eBe(){}function tBe(){}function nBe(){}function rBe(){}function iBe(){}function oBe(){}function sBe(){}function aBe(){}function uBe(){}function cBe(){}function lBe(){}function dBe(){}function fBe(){}function hBe(){}function pBe(){}function gBe(){}function bBe(){}function mBe(){}function wBe(){}function yBe(){}function vBe(){}function EBe(){}function SBe(){}function TBe(){}function ABe(){}function _Be(){}function xBe(){}function kBe(){}function NBe(){}function CBe(){}function IBe(){}function RBe(){}function OBe(){}function DBe(){}function LBe(){}function MBe(){}function PBe(){}function jBe(){}function FBe(){}function $Be(){}function BBe(){}function UBe(){}function HBe(){}function zBe(){}function GBe(){}function qBe(){}function VBe(){}function WBe(){}function KBe(){}function YBe(){}function JBe(){}function XBe(){}function ZBe(){}function QBe(){}function Oue(){}function eUe(){}function tUe(){}function nUe(){}function rUe(){}function iUe(){}function oUe(){}function sUe(){}function aUe(){}function uUe(){}function cUe(){}function h9(){}function p9(){}function lUe(){}function dUe(){}function Due(){}function fUe(){}function hUe(){}function pUe(){}function gUe(){}function bUe(){}function Lue(){}function Mue(){}function mUe(){}function Pue(){}function jue(){}function wUe(){}function yUe(){}function YR(){}function vUe(){}function EUe(){}function SUe(){}function TUe(){}function AUe(){}function _Ue(){}function xUe(){}function kUe(){}function NUe(){}function CUe(){}function IUe(){}function RUe(){}function OUe(){}function DUe(){}function LUe(){}function MUe(){}function PUe(){}function jUe(){}function FUe(){}function Fue(){}function $Ue(){}function BUe(){}function UUe(){}function HUe(){}function zUe(){}function GUe(){}function qUe(){}function VUe(){}function WUe(){}function KUe(){}function YUe(){}function JUe(){}function XUe(){}function ZUe(){}function QUe(){}function eHe(){}function tHe(){}function nHe(){}function rHe(){}function iHe(){}function oHe(){}function sHe(){}function aHe(){}function uHe(){}function cHe(){}function lHe(){}function dHe(){}function fHe(){}function hHe(){}function pHe(){}function gHe(){}function bHe(){}function mHe(){}function wHe(){}function yHe(){}function vHe(){}function EHe(){}function SHe(){}function THe(){}function AHe(){}function _He(){}function xHe(){}function kHe(){}function NHe(){}function CHe(){}function IHe(){}function RHe(){}function OHe(){}function DHe(){}function LHe(){}function MHe(){}function PHe(){}function jHe(){}function FHe(){}function $He(){}function BHe(){}function UHe(){}function HHe(){}function zHe(){}function GHe(){}function qHe(){}function VHe(){}function WHe(){}function KHe(){}function YHe(){}function JHe(){}function XHe(){}function ZHe(){}function oZt(){}function QHe(){}function eze(){}function tze(){}function nze(){}function rze(){}function ize(){}function oze(){}function sze(){}function aze(){}function uze(){}function cze(){}function lze(){}function dze(){}function fze(){}function hze(){}function pze(){}function gze(){}function bze(){}function mze(){}function wze(){}function yze(){}function vze(){}function Eze(){}function Sze(){}function Tze(){}function Aze(){}function _ze(){}function xze(){}function kze(){}function Nze(){}function Cze(){}function Ize(){}function Rze(){}function Oze(){}function Dze(){}function Lze(){}function Mze(){}function Pze(){}function kG(){}function NG(){}function jze(){}function CG(){}function Fze(){}function $ze(){}function Bze(){}function Uze(){}function Hze(){}function zze(){}function Gze(){}function qze(){}function Vze(){}function Wze(){}function Kze(){}function Yze(){}function Jze(){}function Xze(){}function sZt(){}function Zze(){}function $ue(){}function Qze(){}function eGe(){}function tGe(){}function nGe(){}function rGe(){}function iGe(){}function oGe(){}function sGe(){}function aGe(){}function uGe(){}function vb(){}function cGe(){}function eS(){}function Bue(){}function lGe(){}function dGe(){}function fGe(){}function hGe(){}function pGe(){}function gGe(){}function bGe(){}function mGe(){}function wGe(){}function yGe(){}function vGe(){}function EGe(){}function SGe(){}function TGe(){}function AGe(){}function _Ge(){}function xGe(){}function kGe(){}function NGe(){}function CGe(){}function Xe(){}function IGe(){}function RGe(){}function OGe(){}function DGe(){}function LGe(){}function MGe(){}function PGe(){}function jGe(){}function FGe(){}function $Ge(){}function BGe(){}function IG(){}function UGe(){}function HGe(){}function RG(){}function zGe(){}function GGe(){}function qGe(){}function VGe(){}function OG(){}function g9(){}function b9(){}function WGe(){}function Uue(){}function KGe(){}function YGe(){}function m9(){}function JGe(){}function XGe(){}function ZGe(){}function w9(){}function QGe(){}function eqe(){}function tqe(){}function nqe(){}function y9(){}function rqe(){}function Hue(){}function iqe(){}function DG(){}function zue(){}function oqe(){}function sqe(){}function aqe(){}function uqe(){}function aZt(){}function cqe(){}function lqe(){}function dqe(){}function fqe(){}function hqe(){}function pqe(){}function gqe(){}function bqe(){}function mqe(){}function wqe(){}function NA(){}function LG(){}function yqe(){}function vqe(){}function Eqe(){}function Sqe(){}function Tqe(){}function Aqe(){}function _qe(){}function xqe(){}function kqe(){}function Nqe(){}function Cqe(){}function Iqe(){}function Rqe(){}function Oqe(){}function Dqe(){}function Lqe(){}function Mqe(){}function Pqe(){}function jqe(){}function Fqe(){}function $qe(){}function Bqe(){}function Uqe(){}function Hqe(){}function zqe(){}function Gqe(){}function qqe(){}function Vqe(){}function Wqe(){}function Kqe(){}function Yqe(){}function Jqe(){}function Xqe(){}function Zqe(){}function Qqe(){}function eVe(){}function tVe(){}function nVe(){}function rVe(){}function iVe(){}function oVe(){}function sVe(){}function aVe(){}function uVe(){}function cVe(){}function lVe(){}function dVe(){}function fVe(){}function hVe(){}function pVe(){}function gVe(){}function bVe(){}function mVe(){}function wVe(){}function yVe(){}function vVe(){}function EVe(){}function SVe(){}function TVe(){}function AVe(){}function _Ve(){}function xVe(){}function kVe(){}function NVe(){}function CVe(){}function IVe(){}function RVe(){}function OVe(){}function DVe(){}function LVe(){}function MVe(){}function PVe(){}function jVe(){}function FVe(){}function $Ve(){}function BVe(){}function UVe(){}function HVe(){}function zVe(){}function GVe(){}function qVe(){}function VVe(){}function WVe(){}function KVe(){}function YVe(){}function JVe(){}function XVe(){}function ZVe(){}function QVe(){}function eWe(){}function tWe(){}function nWe(){}function rWe(){}function iWe(){}function oWe(){}function sWe(){}function aWe(){}function uWe(){}function cWe(){}function lWe(){}function dWe(){}function Gue(){}function fWe(){}function hWe(){}function MG(){BN()}function pWe(){Wbe()}function gWe(){fO()}function bWe(){ed()}function mWe(){rbe()}function wWe(){G6()}function yWe(){$O()}function vWe(){dO()}function EWe(){Wet()}function SWe(){zS()}function TWe(){klt()}function AWe(){N_()}function _We(){S1()}function xWe(){ige()}function kWe(){Zft()}function NWe(){Qft()}function CWe(){K9()}function IWe(){Z0e()}function RWe(){but()}function OWe(){udt()}function DWe(){rge()}function LWe(){put()}function MWe(){hut()}function PWe(){gut()}function jWe(){wut()}function FWe(){Be()}function $We(){eht()}function BWe(){ict()}function UWe(){tht()}function HWe(){yut()}function zWe(){US()}function GWe(){xht()}function qWe(){c0e()}function VWe(){T1()}function WWe(){mut()}function KWe(){obt()}function YWe(){Lyt()}function JWe(){Ame()}function XWe(){js()}function ZWe(){ef()}function QWe(){v0e()}function eKe(){fgt()}function tKe(){dp()}function nKe(){Y6()}function rKe(){bJ()}function iKe(){xY()}function oKe(){S1e()}function sKe(){QS()}function aKe(){nj()}function uKe(){A7()}function que(){_n()}function cKe(){jj()}function lKe(){D1e()}function Vue(){q7()}function Wue(){AK()}function bd(){Yit()}function dKe(){T0e()}function Kue(e){Mt(e)}function fKe(e){this.a=e}function v9(e){this.a=e}function hKe(e){this.a=e}function pKe(e){this.a=e}function gKe(e){this.a=e}function Yue(e){this.a=e}function Jue(e){this.a=e}function bKe(e){this.a=e}function PG(e){this.a=e}function mKe(e){this.a=e}function wKe(e){this.a=e}function yKe(e){this.a=e}function vKe(e){this.a=e}function EKe(e){this.c=e}function SKe(e){this.a=e}function jG(e){this.a=e}function TKe(e){this.a=e}function AKe(e){this.a=e}function _Ke(e){this.a=e}function FG(e){this.a=e}function xKe(e){this.a=e}function kKe(e){this.a=e}function $G(e){this.a=e}function NKe(e){this.a=e}function BG(e){this.a=e}function CKe(e){this.a=e}function IKe(e){this.a=e}function RKe(e){this.a=e}function OKe(e){this.a=e}function DKe(e){this.a=e}function LKe(e){this.a=e}function MKe(e){this.a=e}function PKe(e){this.a=e}function jKe(e){this.a=e}function FKe(e){this.a=e}function $Ke(e){this.a=e}function BKe(e){this.a=e}function UKe(e){this.a=e}function HKe(e){this.a=e}function Xue(e){this.a=e}function Zue(e){this.a=e}function E9(e){this.a=e}function JR(e){this.a=e}function Que(e){this.b=e}function Eb(){this.a=[]}function zKe(e,t){e.a=t}function uZt(e,t){e.a=t}function cZt(e,t){e.b=t}function lZt(e,t){e.c=t}function dZt(e,t){e.c=t}function fZt(e,t){e.d=t}function hZt(e,t){e.d=t}function Jh(e,t){e.k=t}function ece(e,t){e.j=t}function pZt(e,t){e.c=t}function tce(e,t){e.c=t}function nce(e,t){e.a=t}function gZt(e,t){e.a=t}function bZt(e,t){e.f=t}function mZt(e,t){e.a=t}function wZt(e,t){e.b=t}function UG(e,t){e.d=t}function S9(e,t){e.i=t}function rce(e,t){e.o=t}function yZt(e,t){e.r=t}function vZt(e,t){e.a=t}function EZt(e,t){e.b=t}function GKe(e,t){e.e=t}function SZt(e,t){e.f=t}function ice(e,t){e.g=t}function TZt(e,t){e.e=t}function AZt(e,t){e.f=t}function _Zt(e,t){e.f=t}function XR(e,t){e.b=t}function HG(e,t){e.b=t}function zG(e,t){e.a=t}function xZt(e,t){e.n=t}function kZt(e,t){e.a=t}function NZt(e,t){e.c=t}function CZt(e,t){e.c=t}function IZt(e,t){e.c=t}function RZt(e,t){e.a=t}function OZt(e,t){e.a=t}function DZt(e,t){e.d=t}function LZt(e,t){e.d=t}function MZt(e,t){e.e=t}function PZt(e,t){e.e=t}function jZt(e,t){e.g=t}function FZt(e,t){e.f=t}function $Zt(e,t){e.j=t}function BZt(e,t){e.a=t}function UZt(e,t){e.a=t}function HZt(e,t){e.b=t}function qKe(e){e.b=e.a}function VKe(e){e.c=e.d.d}function oce(e){this.a=e}function Xh(e){this.a=e}function T9(e){this.a=e}function sce(e){this.a=e}function WKe(e){this.a=e}function ZR(e){this.a=e}function QR(e){this.a=e}function ace(e){this.a=e}function uce(e){this.a=e}function Dw(e){this.a=e}function GG(e){this.a=e}function Zh(e){this.a=e}function Lw(e){this.a=e}function KKe(e){this.a=e}function YKe(e){this.a=e}function cce(e){this.a=e}function JKe(e){this.a=e}function Pn(e){this.a=e}function LN(e){this.d=e}function qG(e){this.b=e}function CA(e){this.b=e}function Gv(e){this.b=e}function VG(e){this.c=e}function V(e){this.c=e}function XKe(e){this.c=e}function ZKe(e){this.a=e}function lce(e){this.a=e}function dce(e){this.a=e}function fce(e){this.a=e}function hce(e){this.a=e}function pce(e){this.a=e}function gce(e){this.a=e}function IA(e){this.a=e}function QKe(e){this.a=e}function eYe(e){this.a=e}function RA(e){this.a=e}function tYe(e){this.a=e}function nYe(e){this.a=e}function rYe(e){this.a=e}function iYe(e){this.a=e}function oYe(e){this.a=e}function sYe(e){this.a=e}function aYe(e){this.a=e}function uYe(e){this.a=e}function cYe(e){this.a=e}function OA(e){this.a=e}function lYe(e){this.a=e}function dYe(e){this.a=e}function fYe(e){this.a=e}function hYe(e){this.a=e}function A9(e){this.a=e}function pYe(e){this.a=e}function gYe(e){this.a=e}function bce(e){this.a=e}function bYe(e){this.a=e}function mYe(e){this.a=e}function wYe(e){this.a=e}function mce(e){this.a=e}function wce(e){this.a=e}function yce(e){this.a=e}function MN(e){this.a=e}function _9(e){this.e=e}function DA(e){this.a=e}function yYe(e){this.a=e}function tS(e){this.a=e}function vce(e){this.a=e}function vYe(e){this.a=e}function EYe(e){this.a=e}function SYe(e){this.a=e}function TYe(e){this.a=e}function AYe(e){this.a=e}function _Ye(e){this.a=e}function xYe(e){this.a=e}function kYe(e){this.a=e}function NYe(e){this.a=e}function CYe(e){this.a=e}function IYe(e){this.a=e}function Ece(e){this.a=e}function RYe(e){this.a=e}function OYe(e){this.a=e}function DYe(e){this.a=e}function LYe(e){this.a=e}function MYe(e){this.a=e}function PYe(e){this.a=e}function jYe(e){this.a=e}function FYe(e){this.a=e}function $Ye(e){this.a=e}function BYe(e){this.a=e}function UYe(e){this.a=e}function HYe(e){this.a=e}function zYe(e){this.a=e}function GYe(e){this.a=e}function qYe(e){this.a=e}function VYe(e){this.a=e}function WYe(e){this.a=e}function KYe(e){this.a=e}function YYe(e){this.a=e}function JYe(e){this.a=e}function XYe(e){this.a=e}function ZYe(e){this.a=e}function QYe(e){this.a=e}function eJe(e){this.a=e}function tJe(e){this.a=e}function nJe(e){this.a=e}function rJe(e){this.a=e}function iJe(e){this.a=e}function oJe(e){this.a=e}function sJe(e){this.a=e}function aJe(e){this.a=e}function uJe(e){this.a=e}function cJe(e){this.a=e}function lJe(e){this.a=e}function dJe(e){this.a=e}function fJe(e){this.a=e}function hJe(e){this.a=e}function pJe(e){this.a=e}function gJe(e){this.a=e}function bJe(e){this.a=e}function mJe(e){this.a=e}function wJe(e){this.a=e}function yJe(e){this.c=e}function vJe(e){this.b=e}function EJe(e){this.a=e}function SJe(e){this.a=e}function TJe(e){this.a=e}function AJe(e){this.a=e}function _Je(e){this.a=e}function xJe(e){this.a=e}function kJe(e){this.a=e}function NJe(e){this.a=e}function CJe(e){this.a=e}function IJe(e){this.a=e}function RJe(e){this.a=e}function OJe(e){this.a=e}function DJe(e){this.a=e}function LJe(e){this.a=e}function MJe(e){this.a=e}function PJe(e){this.a=e}function jJe(e){this.a=e}function FJe(e){this.a=e}function $Je(e){this.a=e}function BJe(e){this.a=e}function UJe(e){this.a=e}function HJe(e){this.a=e}function zJe(e){this.a=e}function GJe(e){this.a=e}function qJe(e){this.a=e}function VJe(e){this.a=e}function WJe(e){this.a=e}function Qh(e){this.a=e}function qv(e){this.a=e}function KJe(e){this.a=e}function YJe(e){this.a=e}function JJe(e){this.a=e}function XJe(e){this.a=e}function ZJe(e){this.a=e}function QJe(e){this.a=e}function eXe(e){this.a=e}function tXe(e){this.a=e}function nXe(e){this.a=e}function rXe(e){this.a=e}function iXe(e){this.a=e}function oXe(e){this.a=e}function sXe(e){this.a=e}function aXe(e){this.a=e}function uXe(e){this.a=e}function cXe(e){this.a=e}function lXe(e){this.a=e}function dXe(e){this.a=e}function Sce(e){this.a=e}function fXe(e){this.a=e}function hXe(e){this.a=e}function pXe(e){this.a=e}function gXe(e){this.a=e}function bXe(e){this.a=e}function mXe(e){this.a=e}function wXe(e){this.a=e}function yXe(e){this.a=e}function x9(e){this.a=e}function vXe(e){this.f=e}function EXe(e){this.a=e}function SXe(e){this.a=e}function TXe(e){this.a=e}function AXe(e){this.a=e}function _Xe(e){this.a=e}function xXe(e){this.a=e}function kXe(e){this.a=e}function NXe(e){this.a=e}function CXe(e){this.a=e}function IXe(e){this.a=e}function RXe(e){this.a=e}function OXe(e){this.a=e}function DXe(e){this.a=e}function LXe(e){this.a=e}function MXe(e){this.a=e}function PXe(e){this.a=e}function jXe(e){this.a=e}function FXe(e){this.a=e}function $Xe(e){this.a=e}function BXe(e){this.a=e}function UXe(e){this.a=e}function HXe(e){this.a=e}function zXe(e){this.a=e}function GXe(e){this.a=e}function qXe(e){this.a=e}function VXe(e){this.a=e}function WXe(e){this.a=e}function WG(e){this.a=e}function Tce(e){this.a=e}function cr(e){this.b=e}function KXe(e){this.a=e}function YXe(e){this.a=e}function JXe(e){this.a=e}function XXe(e){this.a=e}function ZXe(e){this.a=e}function QXe(e){this.a=e}function eZe(e){this.a=e}function tZe(e){this.a=e}function eO(e){this.a=e}function nZe(e){this.a=e}function rZe(e){this.b=e}function Ace(e){this.c=e}function k9(e){this.e=e}function iZe(e){this.a=e}function N9(e){this.a=e}function C9(e){this.a=e}function KG(e){this.a=e}function oZe(e){this.d=e}function sZe(e){this.a=e}function _ce(e){this.a=e}function xce(e){this.a=e}function Km(e){this.e=e}function zZt(){this.a=0}function je(){lV(this)}function hn(){Zs(this)}function YG(){Kst(this)}function aZe(){}function Ym(){this.c=I3e}function uZe(e,t){e.b+=t}function GZt(e,t){t.Wb(e)}function qZt(e){return e.a}function VZt(e){return e.a}function WZt(e){return e.a}function KZt(e){return e.a}function YZt(e){return e.a}function Y(e){return e.e}function JZt(){return null}function XZt(){return null}function ZZt(e){throw Y(e)}function nS(e){this.a=kn(e)}function cZe(){this.a=this}function Sb(){Drt.call(this)}function QZt(e){e.b.Mf(e.e)}function lZe(e){e.b=new fq}function PN(e,t){e.b=t-e.b}function jN(e,t){e.a=t-e.a}function dZe(e,t){t.gd(e.a)}function eQt(e,t){Ci(t,e)}function Ot(e,t){e.push(t)}function fZe(e,t){e.sort(t)}function tQt(e,t,r){e.Wd(r,t)}function tO(e,t){e.e=t,t.b=e}function nQt(){ole(),KNn()}function hZe(e){l_(),UQ.je(e)}function kce(){Drt.call(this)}function Nce(){Sb.call(this)}function JG(){Sb.call(this)}function pZe(){Sb.call(this)}function nO(){Sb.call(this)}function lu(){Sb.call(this)}function rS(){Sb.call(this)}function Nn(){Sb.call(this)}function $c(){Sb.call(this)}function gZe(){Sb.call(this)}function vs(){Sb.call(this)}function bZe(){Sb.call(this)}function I9(){this.Bb|=256}function mZe(){this.b=new Cnt}function Cce(){Cce=K,new hn}function wZe(){Nce.call(this)}function Mw(e,t){e.length=t}function R9(e,t){Fe(e.a,t)}function rQt(e,t){Ybe(e.c,t)}function iQt(e,t){pi(e.b,t)}function oQt(e,t){c7(e.a,t)}function sQt(e,t){ZK(e.a,t)}function LA(e,t){hr(e.e,t)}function iS(e){N7(e.c,e.b)}function aQt(e,t){e.kc().Nb(t)}function Ice(e){this.a=Ign(e)}function hi(){this.a=new hn}function yZe(){this.a=new hn}function O9(){this.a=new je}function XG(){this.a=new je}function Rce(){this.a=new je}function gl(){this.a=new Jg}function Tb(){this.a=new _lt}function ZG(){this.a=new Bet}function Oce(){this.a=new sut}function Dce(){this.a=new Sit}function Lce(){this.a=new ah}function vZe(){this.a=new Put}function EZe(){this.a=new je}function SZe(){this.a=new je}function TZe(){this.a=new je}function Mce(){this.a=new je}function AZe(){this.d=new je}function _Ze(){this.a=new hi}function xZe(){this.a=new hn}function kZe(){this.b=new hn}function NZe(){this.b=new je}function Pce(){this.e=new je}function CZe(){this.d=new je}function IZe(){this.a=new _We}function RZe(){Pat.call(this)}function OZe(){Pat.call(this)}function DZe(){Uce.call(this)}function LZe(){Uce.call(this)}function MZe(){Uce.call(this)}function PZe(){je.call(this)}function jZe(){Mce.call(this)}function D9(){O9.call(this)}function FZe(){G8.call(this)}function FN(){aZe.call(this)}function QG(){FN.call(this)}function oS(){aZe.call(this)}function jce(){oS.call(this)}function Lu(){Ar.call(this)}function $Ze(){Hce.call(this)}function $N(){VGe.call(this)}function Fce(){VGe.call(this)}function BZe(){eQe.call(this)}function UZe(){eQe.call(this)}function HZe(){hn.call(this)}function zZe(){hn.call(this)}function GZe(){hn.call(this)}function eq(){Kft.call(this)}function qZe(){hi.call(this)}function VZe(){I9.call(this)}function tq(){_de.call(this)}function $ce(){hn.call(this)}function nq(){_de.call(this)}function rq(){hn.call(this)}function WZe(){hn.call(this)}function Bce(){y9.call(this)}function KZe(){Bce.call(this)}function YZe(){y9.call(this)}function JZe(){Gue.call(this)}function Uce(){this.a=new hi}function XZe(){this.a=new hn}function Hce(){this.a=new hn}function sS(){this.a=new Ar}function ZZe(){this.a=new je}function QZe(){this.j=new je}function eQe(){this.a=new QGe}function zce(){this.a=new Cze}function tQe(){this.a=new XQe}function BN(){BN=K,DQ=new S}function iq(){iq=K,LQ=new rQe}function oq(){oq=K,MQ=new nQe}function nQe(){$G.call(this,"")}function rQe(){$G.call(this,"")}function iQe(e){vft.call(this,e)}function oQe(e){vft.call(this,e)}function Gce(e){Yue.call(this,e)}function qce(e){Ret.call(this,e)}function uQt(e){Ret.call(this,e)}function cQt(e){qce.call(this,e)}function lQt(e){qce.call(this,e)}function dQt(e){qce.call(this,e)}function sQe(e){HW.call(this,e)}function aQe(e){HW.call(this,e)}function uQe(e){hrt.call(this,e)}function cQe(e){dle.call(this,e)}function UN(e){G9.call(this,e)}function Vce(e){G9.call(this,e)}function lQe(e){G9.call(this,e)}function Es(e){ust.call(this,e)}function dQe(e){Es.call(this,e)}function aS(){JR.call(this,{})}function sq(e){VA(),this.a=e}function fQe(e){e.b=null,e.c=0}function fQt(e,t){e.e=t,Owt(e,t)}function hQt(e,t){e.a=t,zyn(e)}function aq(e,t,r){e.a[t.g]=r}function pQt(e,t,r){c0n(r,e,t)}function gQt(e,t){rrn(t.i,e.n)}function hQe(e,t){vpn(e).Ad(t)}function bQt(e,t){return e*e/t}function pQe(e,t){return e.g-t.g}function mQt(e,t){e.a.ec().Kc(t)}function wQt(e){return new E9(e)}function yQt(e){return new Qw(e)}function gQe(){gQe=K,qEe=new E}function Wce(){Wce=K,VEe=new ee}function L9(){L9=K,bI=new ie}function M9(){M9=K,jQ=new frt}function bQe(){bQe=K,K_t=new me}function P9(e){Sge(),this.a=e}function mQe(e){Kit(),this.a=e}function Yp(e){qV(),this.f=e}function uq(e){qV(),this.f=e}function j9(e){Es.call(this,e)}function Ia(e){Es.call(this,e)}function wQe(e){Es.call(this,e)}function cq(e){ust.call(this,e)}function MA(e){Es.call(this,e)}function jt(e){Es.call(this,e)}function es(e){Es.call(this,e)}function yQe(e){Es.call(this,e)}function uS(e){Es.call(this,e)}function Jp(e){Es.call(this,e)}function Ls(e){Mt(e),this.a=e}function HN(e){rhe(e,e.length)}function Kce(e){return Wb(e),e}function Pw(e){return!!e&&e.b}function vQt(e){return!!e&&e.k}function EQt(e){return!!e&&e.j}function zN(e){return e.b==e.c}function Ye(e){return Mt(e),e}function ue(e){return Mt(e),e}function rO(e){return Mt(e),e}function Yce(e){return Mt(e),e}function SQt(e){return Mt(e),e}function _f(e){Es.call(this,e)}function cS(e){Es.call(this,e)}function xf(e){Es.call(this,e)}function Ln(e){Es.call(this,e)}function lq(e){Es.call(this,e)}function dq(e){Dde.call(this,e,0)}function fq(){zhe.call(this,12,3)}function hq(){this.a=In(kn(ja))}function vQe(){throw Y(new Nn)}function Jce(){throw Y(new Nn)}function EQe(){throw Y(new Nn)}function TQt(){throw Y(new Nn)}function AQt(){throw Y(new Nn)}function _Qt(){throw Y(new Nn)}function F9(){F9=K,l_()}function Xp(){ZR.call(this,"")}function GN(){ZR.call(this,"")}function Zg(){ZR.call(this,"")}function lS(){ZR.call(this,"")}function Xce(e){Ia.call(this,e)}function Zce(e){Ia.call(this,e)}function kf(e){jt.call(this,e)}function PA(e){CA.call(this,e)}function SQe(e){PA.call(this,e)}function pq(e){$8.call(this,e)}function xQt(e,t,r){e.c.Cf(t,r)}function kQt(e,t,r){t.Ad(e.a[r])}function NQt(e,t,r){t.Ne(e.a[r])}function CQt(e,t){return e.a-t.a}function IQt(e,t){return e.a-t.a}function RQt(e,t){return e.a-t.a}function $9(e,t){return rK(e,t)}function X(e,t){return dut(e,t)}function OQt(e,t){return t in e.a}function TQe(e){return e.a?e.b:0}function DQt(e){return e.a?e.b:0}function AQe(e,t){return e.f=t,e}function LQt(e,t){return e.b=t,e}function _Qe(e,t){return e.c=t,e}function MQt(e,t){return e.g=t,e}function Qce(e,t){return e.a=t,e}function ele(e,t){return e.f=t,e}function PQt(e,t){return e.k=t,e}function tle(e,t){return e.e=t,e}function jQt(e,t){return e.e=t,e}function nle(e,t){return e.a=t,e}function FQt(e,t){return e.f=t,e}function $Qt(e,t){e.b=new So(t)}function xQe(e,t){e._d(t),t.$d(e)}function BQt(e,t){hc(),t.n.a+=e}function UQt(e,t){S1(),As(t,e)}function rle(e){pat.call(this,e)}function kQe(e){pat.call(this,e)}function NQe(){dde.call(this,"")}function CQe(){this.b=0,this.a=0}function IQe(){IQe=K,axt=P0n()}function Jm(e,t){return e.b=t,e}function iO(e,t){return e.a=t,e}function Xm(e,t){return e.c=t,e}function Zm(e,t){return e.d=t,e}function Qm(e,t){return e.e=t,e}function gq(e,t){return e.f=t,e}function qN(e,t){return e.a=t,e}function jA(e,t){return e.b=t,e}function FA(e,t){return e.c=t,e}function Qe(e,t){return e.c=t,e}function gt(e,t){return e.b=t,e}function et(e,t){return e.d=t,e}function tt(e,t){return e.e=t,e}function HQt(e,t){return e.f=t,e}function nt(e,t){return e.g=t,e}function rt(e,t){return e.a=t,e}function it(e,t){return e.i=t,e}function ot(e,t){return e.j=t,e}function zQt(e,t){return e.g-t.g}function GQt(e,t){return e.b-t.b}function qQt(e,t){return e.s-t.s}function VQt(e,t){return e?0:t-1}function RQe(e,t){return e?0:t-1}function WQt(e,t){return e?t-1:0}function KQt(e,t){return t.pg(e)}function OQe(e,t){return e.k=t,e}function YQt(e,t){return e.j=t,e}function ro(){this.a=0,this.b=0}function B9(e){CV.call(this,e)}function Qg(e){w0.call(this,e)}function DQe(e){yW.call(this,e)}function LQe(e){yW.call(this,e)}function MQe(e,t){e.b=0,cy(e,t)}function JQt(e,t){e.c=t,e.b=!0}function XQt(e,t,r){osn(e.a,t,r)}function PQe(e,t){return e.c._b(t)}function md(e){return e.e&&e.e()}function bq(e){return e?e.d:null}function jQe(e,t){return ogt(e.b,t)}function ZQt(e){return e?e.g:null}function QQt(e){return e?e.i:null}function FQe(e,t){return Sen(e.a,t)}function ile(e,t){for(;e.zd(t););}function $Qe(){throw Y(new Nn)}function e1(){e1=K,LDt=Wmn()}function BQe(){BQe=K,Bi=rwn()}function ole(){ole=K,J1=W3()}function $A(){$A=K,C3e=Kmn()}function UQe(){UQe=K,wLt=Ymn()}function sle(){sle=K,Ks=Byn()}function Ab(e){return np(e),e.o}function Vv(e,t){return e.a+=t,e}function mq(e,t){return e.a+=t,e}function Zp(e,t){return e.a+=t,e}function e0(e,t){return e.a+=t,e}function ale(e){gEt(),a3n(this,e)}function U9(e){this.a=new dS(e)}function Qp(e){this.a=new XV(e)}function HQe(){throw Y(new Nn)}function zQe(){throw Y(new Nn)}function GQe(){throw Y(new Nn)}function qQe(){throw Y(new Nn)}function VQe(){throw Y(new Nn)}function WQe(){this.b=new X_(C_e)}function KQe(){this.a=new X_(lxe)}function H9(e){this.a=0,this.b=e}function YQe(){this.a=new X_(Lxe)}function JQe(){this.b=new X_(Pne)}function XQe(){this.b=new X_(Pne)}function ZQe(){this.a=new X_(Lke)}function QQe(e,t){return ESn(e,t)}function een(e,t){return nxn(t,e)}function ule(e,t){return e.d[t.p]}function oO(e){return e.b!=e.d.c}function eet(e){return e.l|e.m<<22}function BA(e){return u1(e),e.a}function tet(e){e.c?Kwt(e):Ywt(e)}function Wv(e,t){for(;e.Pe(t););}function cle(e,t,r){e.splice(t,r)}function net(){throw Y(new Nn)}function ret(){throw Y(new Nn)}function iet(){throw Y(new Nn)}function oet(){throw Y(new Nn)}function set(){throw Y(new Nn)}function aet(){throw Y(new Nn)}function uet(){throw Y(new Nn)}function cet(){throw Y(new Nn)}function det(){throw Y(new Nn)}function fet(){throw Y(new Nn)}function ten(){throw Y(new vs)}function nen(){throw Y(new vs)}function sO(e){this.a=new het(e)}function het(e){Kfn(this,e,oyn())}function aO(e){return!e||qst(e)}function uO(e){return mf[e]!=-1}function ren(){u$!=0&&(u$=0),c$=-1}function pet(){OQ==null&&(OQ=[])}function cO(e,t){sE.call(this,e,t)}function UA(e,t){cO.call(this,e,t)}function get(e,t){this.a=e,this.b=t}function bet(e,t){this.a=e,this.b=t}function met(e,t){this.a=e,this.b=t}function wet(e,t){this.a=e,this.b=t}function yet(e,t){this.a=e,this.b=t}function vet(e,t){this.a=e,this.b=t}function Eet(e,t){this.a=e,this.b=t}function HA(e,t){this.e=e,this.d=t}function lle(e,t){this.b=e,this.c=t}function Tet(e,t){this.b=e,this.a=t}function Aet(e,t){this.b=e,this.a=t}function _et(e,t){this.b=e,this.a=t}function xet(e,t){this.b=e,this.a=t}function ket(e,t){this.a=e,this.b=t}function Net(e,t){this.a=e,this.b=t}function wq(e,t){this.a=e,this.b=t}function Cet(e,t){this.a=e,this.f=t}function t0(e,t){this.g=e,this.i=t}function mn(e,t){this.f=e,this.g=t}function Iet(e,t){this.b=e,this.c=t}function Ret(e){Ede(e.dc()),this.c=e}function ien(e,t){this.a=e,this.b=t}function Oet(e,t){this.a=e,this.b=t}function Det(e){this.a=l(kn(e),16)}function dle(e){this.a=l(kn(e),16)}function Let(e){this.a=l(kn(e),93)}function z9(e){this.b=l(kn(e),93)}function G9(e){this.b=l(kn(e),51)}function q9(){this.q=new b.Date}function yq(e,t){this.a=e,this.b=t}function Met(e,t){return ma(e.b,t)}function VN(e,t){return e.b.Gc(t)}function fle(e,t){return e.b.Hc(t)}function hle(e,t){return e.b.Oc(t)}function Pet(e,t){return e.b.Gc(t)}function jet(e,t){return e.c.uc(t)}function Fet(e,t){return pr(e.c,t)}function bl(e,t){return e.a._b(t)}function $et(e,t){return e>t&&t0}function Aq(e,t){return Ea(e,t)<0}function ett(e,t){return zV(e.a,t)}function Sen(e,t){return e.a.a.cc(t)}function _q(e){return e.b=0}function f3(e,t){return Ea(e,t)!=0}function i1(e,t){return e.Pd().Xb(t)}function N8(e,t){return Ehn(e.Jc(),t)}function Pen(e){return""+(Mt(e),e)}function tde(e,t){return e.a+=""+t,e}function h3(e,t){return e.a+=""+t,e}function Vo(e,t){return e.a+=""+t,e}function p3(e,t){return e.a+=""+t,e}function ba(e,t){return e.a+=""+t,e}function zn(e,t){return e.a+=""+t,e}function C8(e){return T3(e==null),e}function nde(e){return at(e,0),null}function Ent(e){return $u(e),e.d.gc()}function jen(e){b.clearTimeout(e)}function Snt(e,t){e.q.setTime($b(t))}function Fen(e,t){cfn(new tn(e),t)}function Tnt(e,t){Qfe.call(this,e,t)}function Ant(e,t){Qfe.call(this,e,t)}function I8(e,t){Qfe.call(this,e,t)}function Eo(e,t){Wr(e,t,e.c.b,e.c)}function Zv(e,t){Wr(e,t,e.a,e.a.a)}function $en(e,t){return e.j[t.p]==2}function _nt(e,t){return e.a=t.g+1,e}function wd(e){return e.a=0,e.b=0,e}function xnt(){xnt=K,Zxt=yn(bY())}function knt(){knt=K,sNt=yn(Twt())}function Nnt(){Nnt=K,Z4t=yn(Rht())}function Cnt(){this.b=new dS(fy(12))}function Int(){this.b=0,this.a=!1}function Rnt(){this.b=0,this.a=!1}function g3(e){this.a=e,MG.call(this)}function Ont(e){this.a=e,MG.call(this)}function pt(e,t){Pr.call(this,e,t)}function iV(e,t){Ww.call(this,e,t)}function Qv(e,t){Zle.call(this,e,t)}function Dnt(e,t){RO.call(this,e,t)}function oV(e,t){A_.call(this,e,t)}function er(e,t){e8(),Jn(vU,e,t)}function sV(e,t){return yl(e.a,0,t)}function Lnt(e,t){return be(e)===be(t)}function Ben(e,t){return yr(e.a,t.a)}function rde(e,t){return na(e.a,t.a)}function Uen(e,t){return xst(e.a,t.a)}function mS(e){return go((Mt(e),e))}function Hen(e){return go((Mt(e),e))}function Mnt(e){return Ua(e.l,e.m,e.h)}function zen(e){return kn(e),new g3(e)}function Nf(e,t){return e.indexOf(t)}function gs(e){return typeof e===ewe}function R8(e){return e<10?"0"+e:""+e}function Gen(e){return e==X0||e==$y}function qen(e){return e==X0||e==Fy}function Pnt(e,t){return na(e.g,t.g)}function ide(e){return _s(e.b.b,e,0)}function jnt(e){Zs(this),X3(this,e)}function Fnt(e){this.a=Ttt(),this.b=e}function $nt(e){this.a=Ttt(),this.b=e}function Bnt(e,t){return Fe(e.a,t),t}function ode(e,t){g_(e,0,e.length,t)}function Ven(e,t){return na(e.g,t.g)}function Wen(e,t){return yr(t.f,e.f)}function Ken(e,t){return hc(),t.a+=e}function Yen(e,t){return hc(),t.a+=e}function Jen(e,t){return hc(),t.c+=e}function sde(e,t){return yc(e.a,t),e}function Xen(e,t){return Fe(e.c,t),e}function O8(e){return yc(new ui,e)}function ep(e){return e==as||e==fs}function eE(e){return e==il||e==ff}function Unt(e){return e==a2||e==s2}function tE(e){return e!=pf&&e!=W1}function Ju(e){return e.sh()&&e.th()}function Hnt(e){return fW(l(e,127))}function wS(){ql.call(this,0,0,0,0)}function znt(){aP.call(this,0,0,0,0)}function uh(){lce.call(this,new d1)}function aV(e){hnt.call(this,e,!0)}function So(e){this.a=e.a,this.b=e.b}function uV(e,t){I_(e,t),y_(e,e.D)}function cV(e,t,r){gj(e,t),pj(e,r)}function i0(e,t,r){Hb(e,t),Ub(e,r)}function Bc(e,t,r){va(e,t),gu(e,r)}function kO(e,t,r){y0(e,t),v0(e,r)}function NO(e,t,r){E0(e,t),S0(e,r)}function Gnt(e,t,r){Ude.call(this,e,t,r)}function qnt(){i8.call(this,"Head",1)}function Vnt(){i8.call(this,"Tail",3)}function o1(e){jf(),Ahn.call(this,e)}function nE(e){return e!=null?Rr(e):0}function Wnt(e,t){return new A_(t,e)}function Zen(e,t){return new A_(t,e)}function Qen(e,t){return uy(t,Gd(e))}function etn(e,t){return uy(t,Gd(e))}function ttn(e,t){return e[e.length]=t}function ntn(e,t){return e[e.length]=t}function ade(e){return yon(e.b.Jc(),e.a)}function rtn(e,t){return vj(uW(e.f),t)}function itn(e,t){return vj(uW(e.n),t)}function otn(e,t){return vj(uW(e.p),t)}function Mi(e,t){Pr.call(this,e.b,t)}function xb(e){aP.call(this,e,e,e,e)}function lV(e){e.c=we(Ii,Rt,1,0,5,1)}function Knt(e,t,r){ii(e.c[t.g],t.g,r)}function stn(e,t,r){l(e.c,72).Ei(t,r)}function atn(e,t,r){Bc(r,r.i+e,r.j+t)}function utn(e,t){Tn(oa(e.a),_ut(t))}function ctn(e,t){Tn(Fu(e.a),xut(t))}function ltn(e,t){sf||(e.b=t)}function dV(e,t,r){return ii(e,t,r),r}function Ynt(e){La(e.Qf(),new hYe(e))}function Jnt(){Jnt=K,Yte=new cC(Tre)}function ude(){ude=K,Cce(),WEe=new hn}function Cn(){Cn=K,new Xnt,new je}function Xnt(){new hn,new hn,new hn}function dtn(){throw Y(new Jp(O_t))}function ftn(){throw Y(new Jp(O_t))}function htn(){throw Y(new Jp(D_t))}function ptn(){throw Y(new Jp(D_t))}function b3(e){fr(),Km.call(this,e)}function Znt(e){this.a=e,_fe.call(this,e)}function fV(e){this.a=e,z9.call(this,e)}function hV(e){this.a=e,z9.call(this,e)}function gtn(e){return e==null?0:Rr(e)}function Ts(e){return e.a0?e:t}function na(e,t){return et?1:0}function Qnt(e,t){return e.a?e.b:t.Ue()}function Ua(e,t,r){return{l:e,m:t,h:r}}function btn(e,t){e.a!=null&&Ztt(t,e.a)}function mtn(e,t){kn(t),uE(e).Ic(new j)}function xi(e,t){HV(e.c,e.c.length,t)}function ert(e){e.a=new ht,e.c=new ht}function D8(e){this.b=e,this.a=new je}function trt(e){this.b=new sh,this.a=e}function dde(e){nfe.call(this),this.a=e}function nrt(e){Ohe.call(this),this.b=e}function rrt(){i8.call(this,"Range",2)}function irt(){pbe(),this.a=new X_(z2e)}function Ud(){Ud=K,b.Math.log(2)}function Uc(){Uc=K,Lh=(Xet(),BDt)}function L8(e){e.j=we(s2e,Pe,325,0,0,1)}function ort(e){e.a=new hn,e.e=new hn}function fde(e){return new Me(e.c,e.d)}function wtn(e){return new Me(e.c,e.d)}function To(e){return new Me(e.a,e.b)}function ytn(e,t){return Jn(e.a,t.a,t)}function vtn(e,t,r){return Jn(e.g,r,t)}function Etn(e,t,r){return Jn(e.k,r,t)}function rE(e,t,r){return L1e(t,r,e.c)}function srt(e,t){return xkn(e.a,t,null)}function hde(e,t){return ce(Ht(e.i,t))}function pde(e,t){return ce(Ht(e.j,t))}function art(e,t){vn(e),e.Fc(l(t,16))}function Stn(e,t,r){e.c._c(t,l(r,138))}function Ttn(e,t,r){e.c.Si(t,l(r,138))}function Atn(e,t,r){return Akn(e,t,r),r}function _tn(e,t){return gc(),t.n.b+=e}function m3(e,t){return Lxn(e.c,e.b,t)}function pV(e,t){return tpn(e.Jc(),t)!=-1}function ae(e,t){return e!=null&&vY(e,t)}function xtn(e,t){return new Irt(e.Jc(),t)}function M8(e){return e.Ob()?e.Pb():null}function urt(e){return Mf(e,0,e.length)}function ktn(e){bo(e,null),Ji(e,null)}function crt(e){IW(e,null),RW(e,null)}function lrt(){RO.call(this,null,null)}function drt(){U8.call(this,null,null)}function frt(){mn.call(this,"INSTANCE",0)}function iE(){this.a=we(Ii,Rt,1,8,5,1)}function gde(e){this.a=e,hn.call(this)}function hrt(e){this.a=(At(),new PA(e))}function Ntn(e){this.b=(At(),new VG(e))}function VA(){VA=K,b2e=new sq(null)}function bde(){bde=K,bde(),lxt=new Ct}function Fe(e,t){return Ot(e.c,t),!0}function prt(e,t){e.c&&(Mfe(t),Wat(t))}function Ctn(e,t){e.q.setHours(t),OC(e,t)}function mde(e,t){return e.a.Ac(t)!=null}function gV(e,t){return e.a.Ac(t)!=null}function Hd(e,t){return e.a[t.c.p][t.p]}function Itn(e,t){return e.c[t.c.p][t.p]}function Rtn(e,t){return e.e[t.c.p][t.p]}function bV(e,t,r){return e.a[t.g][r.g]}function Otn(e,t){return e.j[t.p]=o2n(t)}function yS(e,t){return e.a*t.a+e.b*t.b}function Dtn(e,t){return e.a=e}function Ftn(e,t,r){return r?t!=0:t!=e-1}function grt(e,t,r){e.a=t^1502,e.b=r^AX}function $tn(e,t,r){return e.a=t,e.b=r,e}function tp(e,t){return e.a*=t,e.b*=t,e}function w3(e,t,r){return ii(e.g,t,r),r}function Btn(e,t,r,o){ii(e.a[t.g],r.g,o)}function yi(e,t,r){zO.call(this,e,t,r)}function P8(e,t,r){yi.call(this,e,t,r)}function du(e,t,r){yi.call(this,e,t,r)}function brt(e,t,r){P8.call(this,e,t,r)}function wde(e,t,r){zO.call(this,e,t,r)}function oE(e,t,r){zO.call(this,e,t,r)}function mrt(e,t,r){yde.call(this,e,t,r)}function wrt(e,t,r){wde.call(this,e,t,r)}function yde(e,t,r){Z8.call(this,e,t,r)}function yrt(e,t,r){Z8.call(this,e,t,r)}function s1(e){this.c=e,this.a=this.c.a}function tn(e){this.i=e,this.f=this.i.j}function sE(e,t){this.a=e,z9.call(this,t)}function vrt(e,t){this.a=e,dq.call(this,t)}function Ert(e,t){this.a=e,dq.call(this,t)}function Srt(e,t){this.a=e,dq.call(this,t)}function vde(e){this.a=e,EKe.call(this,e.d)}function Trt(e){e.b.Qb(),--e.d.f.d,dP(e.d)}function Art(e){e.a=l(Vt(e.b.a,4),131)}function _rt(e){e.a=l(Vt(e.b.a,4),131)}function Utn(e){YO(e,oAt),L7(e,ENn(e))}function xrt(e){$G.call(this,l(kn(e),34))}function krt(e){$G.call(this,l(kn(e),34))}function Ede(e){if(!e)throw Y(new nO)}function Sde(e){if(!e)throw Y(new lu)}function Tde(e,t){return jgn(e,new Zg,t).a}function Nrt(e,t){return new Omt(e.a,e.b,t)}function qt(e,t){return kn(t),new Crt(e,t)}function Crt(e,t){this.a=t,G9.call(this,e)}function Irt(e,t){this.a=t,G9.call(this,e)}function Ade(e,t){this.a=t,dq.call(this,e)}function Rrt(e,t){this.a=t,HW.call(this,e)}function Ort(e,t){this.a=e,HW.call(this,t)}function Drt(){L8(this),xP(this),this.he()}function _de(){this.Bb|=256,this.Bb|=512}function Lt(){Lt=K,D1=!1,Bx=!0}function Lrt(){Lrt=K,Sq(),gLt=new dKe}function Htn(e){return oO(e.a)?kut(e):null}function ztn(e){return e.l+e.m*fT+e.h*nm}function Gtn(e){return e==null?null:e.name}function y3(e){return e==null?tu:ms(e)}function j8(e,t){return e.lastIndexOf(t)}function xde(e,t,r){return e.indexOf(t,r)}function fu(e,t){return!!t&&e.b[t.g]==t}function vS(e){return e.a!=null?e.a:null}function Xu(e){return un(e.a!=null),e.a}function CO(e,t,r){return NK(e,t,t,r),e}function Mrt(e,t){return Fe(t.a,e.a),e.a}function Prt(e,t){return Fe(t.b,e.a),e.a}function F8(e,t){return++e.b,Fe(e.a,t)}function kde(e,t){return++e.b,Xa(e.a,t)}function o0(e,t){return Fe(t.a,e.a),e.a}function $8(e){CA.call(this,e),this.a=e}function Nde(e){Gv.call(this,e),this.a=e}function Cde(e){PA.call(this,e),this.a=e}function Ide(e){ZG.call(this),mo(this,e)}function ml(e){ZR.call(this,(Mt(e),e))}function fc(e){ZR.call(this,(Mt(e),e))}function mV(e){lce.call(this,new Npe(e))}function Rde(e,t){z1e.call(this,e,t,null)}function qtn(e,t){return yr(e.n.a,t.n.a)}function Vtn(e,t){return yr(e.c.d,t.c.d)}function Wtn(e,t){return yr(e.c.c,t.c.c)}function Ya(e,t){return l(wr(e.b,t),16)}function Ktn(e,t){return e.n.b=(Mt(t),t)}function Ytn(e,t){return e.n.b=(Mt(t),t)}function Jtn(e,t){return yr(e.e.b,t.e.b)}function Xtn(e,t){return yr(e.e.a,t.e.a)}function Ztn(e,t,r){return Nct(e,t,r,e.b)}function Ode(e,t,r){return Nct(e,t,r,e.c)}function Qtn(e){return hc(),!!e&&!e.dc()}function jrt(){YN(),this.b=new YYe(this)}function Frt(e){this.a=e,qG.call(this,e)}function IO(e){this.c=e,SS.call(this,e)}function ES(e){this.c=e,tn.call(this,e)}function SS(e){this.d=e,tn.call(this,e)}function B8(e,t){qV(),this.f=t,this.d=e}function RO(e,t){QN(),this.a=e,this.b=t}function U8(e,t){tg(),this.b=e,this.c=t}function Dde(e,t){vpe(t,e),this.c=e,this.b=t}function ng(e){var t;t=e.a,e.a=e.b,e.b=t}function v3(e){return Ts(e.a)||Ts(e.b)}function s0(e){return e.$H||(e.$H=++G3n)}function wV(e,t){return new Hit(e,e.gc(),t)}function enn(e,t){return YV(e.c).Kd().Xb(t)}function WA(e,t,r){var o;o=e.dd(t),o.Rb(r)}function Lde(e,t,r){l(f6(e,t),24).Ec(r)}function tnn(e,t,r){ZK(e.a,r),c7(e.a,t)}function $rt(e,t,r,o){Xfe.call(this,e,t,r,o)}function KA(e,t,r){return xde(e,Qa(t),r)}function nnn(e){return M9(),wn((fut(),U_t),e)}function rnn(e){return new oy(3,e)}function ch(e){return wc(e,Iy),new Da(e)}function YA(e){return un(e.b!=0),e.a.a.c}function zl(e){return un(e.b!=0),e.c.b.c}function inn(e,t){return NK(e,t,t+1,""),e}function Brt(e){if(!e)throw Y(new $c)}function Urt(e){e.d=new Grt(e),e.e=new hn}function Mde(e){if(!e)throw Y(new nO)}function onn(e){if(!e)throw Y(new JG)}function un(e){if(!e)throw Y(new vs)}function Hw(e){if(!e)throw Y(new lu)}function Hrt(e){return e.b=l(khe(e.a),45)}function gr(e,t){return!!e.q&&ma(e.q,t)}function snn(e,t){return e>0?t*t/e:t*t*100}function ann(e,t){return e>0?t/(e*e):t*100}function zw(e,t){return l(Wd(e.a,t),34)}function unn(e){return e.f!=null?e.f:""+e.g}function yV(e){return e.f!=null?e.f:""+e.g}function zrt(e){return l_(),parseInt(e)||-1}function cnn(e){return dp(),e.e.a+e.f.a/2}function lnn(e,t,r){return dp(),r.e.a-e*t}function dnn(e,t,r){return W9(),r.Lg(e,t)}function fnn(e,t,r){return dp(),r.e.b-e*t}function hnn(e){return dp(),e.e.b+e.f.b/2}function pnn(e,t){return S1(),yt(e,t.e,t)}function OO(e){ae(e,162)&&l(e,162).mi()}function Grt(e){xfe.call(this,e,null,null)}function qrt(){mn.call(this,"GROW_TREE",0)}function Vrt(e){this.c=e,this.a=1,this.b=1}function vV(e){jw(),this.b=e,this.a=!0}function Wrt(e){V9(),this.b=e,this.a=!0}function Krt(e){qJ(),lZe(this),this.Df(e)}function Yrt(e){Ar.call(this),K3(this,e)}function Jrt(e){this.c=e,va(e,0),gu(e,0)}function H8(e){return e.a=-e.a,e.b=-e.b,e}function Pde(e,t){return e.a=t.a,e.b=t.b,e}function Gw(e,t,r){return e.a+=t,e.b+=r,e}function Xrt(e,t,r){return e.a-=t,e.b-=r,e}function gnn(e,t,r){nj(),e.nf(t)&&r.Ad(e)}function bnn(e,t,r){aC(oa(e.a),t,_ut(r))}function mnn(e,t,r){return Fe(t,xgt(e,r))}function wnn(e,t){return l(Ht(e.e,t),19)}function ynn(e,t){return l(Ht(e.e,t),19)}function vnn(e,t){return e.c.Ec(l(t,138))}function Zrt(e,t){QN(),RO.call(this,e,t)}function jde(e,t){tg(),U8.call(this,e,t)}function Qrt(e,t){tg(),U8.call(this,e,t)}function eit(e,t){tg(),jde.call(this,e,t)}function EV(e,t){Uc(),cP.call(this,e,t)}function tit(e,t){Uc(),EV.call(this,e,t)}function Fde(e,t){Uc(),EV.call(this,e,t)}function nit(e,t){Uc(),Fde.call(this,e,t)}function $de(e,t){Uc(),cP.call(this,e,t)}function rit(e,t){Uc(),cP.call(this,e,t)}function iit(e,t){Uc(),$de.call(this,e,t)}function Zu(e,t,r){pu.call(this,e,t,r,2)}function Enn(e,t,r){aC(Fu(e.a),t,xut(r))}function SV(e,t){return w1(e.e,l(t,52))}function Snn(e,t,r){return t.xl(e.e,e.c,r)}function Tnn(e,t,r){return t.yl(e.e,e.c,r)}function Bde(e,t,r){return Y7(h6(e,t),r)}function oit(e,t){return Mt(e),e+NV(t)}function Ann(e){return e==null?null:ms(e)}function _nn(e){return e==null?null:ms(e)}function xnn(e){return e==null?null:fNn(e)}function knn(e){return e==null?null:dyn(e)}function np(e){e.o==null&&OEn(e)}function Ke(e){return T3(e==null||Bw(e)),e}function ce(e){return T3(e==null||Uw(e)),e}function In(e){return T3(e==null||zi(e)),e}function sit(){this.a=new b0,this.b=new b0}function Nnn(e,t){this.d=e,VKe(this),this.b=t}function DO(e,t){this.c=e,HA.call(this,e,t)}function E3(e,t){this.a=e,DO.call(this,e,t)}function Ude(e,t,r){ej.call(this,e,t,r,null)}function ait(e,t,r){ej.call(this,e,t,r,null)}function Hde(){Kft.call(this),this.Bb|=No}function zde(e,t){ZW.call(this,e),this.a=t}function Gde(e,t){ZW.call(this,e),this.a=t}function uit(e,t){sf||Fe(e.a,t)}function Cnn(e,t){return NY(e,t),new rat(e,t)}function Inn(e,t,r){return e.Le(t,r)<=0?r:t}function Rnn(e,t,r){return e.Le(t,r)<=0?t:r}function cit(e){return Mt(e),e?1231:1237}function TV(e){return l(ze(e.a,e.b),296)}function lit(e){return gc(),Unt(l(e,205))}function Onn(e,t){return l(Wd(e.b,t),144)}function Dnn(e,t){return l(Wd(e.c,t),236)}function dit(e){return new Me(e.c,e.d+e.a)}function Lnn(e,t){return zS(),new yyt(t,e)}function Mnn(e,t){return fO(),T_(t.d.i,e)}function Pnn(e,t){t.a?Zvn(e,t):gV(e.a,t.b)}function qde(e,t){return l(Ht(e.b,t),280)}function Pr(e,t){cr.call(this,e),this.a=t}function Vde(e,t,r){return r=Sc(e,t,3,r),r}function Wde(e,t,r){return r=Sc(e,t,6,r),r}function Kde(e,t,r){return r=Sc(e,t,9,r),r}function Cf(e,t){return YO(t,ywe),e.f=t,e}function Yde(e,t){return(t&sr)%e.d.length}function fit(e,t,r){++e.j,e.oj(t,e.Xi(t,r))}function LO(e,t,r){++e.j,e.rj(),XW(e,t,r)}function hit(e,t,r){var o;o=e.dd(t),o.Rb(r)}function pit(e,t){this.c=e,w0.call(this,t)}function git(e,t){this.a=e,rZe.call(this,t)}function MO(e,t){this.a=e,rZe.call(this,t)}function Jde(e){this.q=new b.Date($b(e))}function bit(e){this.a=(wc(e,Iy),new Da(e))}function mit(e){this.a=(wc(e,Iy),new Da(e))}function AV(e){this.a=(At(),new GG(kn(e)))}function z8(){z8=K,m$=new Pr(U2t,0)}function aE(){aE=K,l2=new cr("root")}function JA(){JA=K,c5=new BZe,new UZe}function qw(){qw=K,T2e=ct((sc(),xm))}function jnn(e){return Dn(Rb(e,32))^Dn(e)}function _V(e){return String.fromCharCode(e)}function Fnn(e){return e==null?null:e.message}function $nn(e,t,r){return e.apply(t,r)}function wit(e,t,r){return D0e(e.c,e.b,t,r)}function Xde(e,t,r){return IS(e,l(t,23),r)}function kb(e,t){return Lt(),e==t?0:e?1:-1}function Zde(e,t){var r;return r=t,!!e.De(r)}function Qde(e,t){var r;return r=e.e,e.e=t,r}function Bnn(e,t){var r;r=e[TX],r.call(e,t)}function Unn(e,t){var r;r=e[TX],r.call(e,t)}function Vw(e,t){e.a._c(e.b,t),++e.b,e.c=-1}function yit(e){Zs(e.e),e.d.b=e.d,e.d.a=e.d}function PO(e){e.b?PO(e.b):e.f.c.yc(e.e,e.d)}function jO(e){return!e.a&&(e.a=new le),e.a}function vit(e,t,r){return e.a+=Mf(t,0,r),e}function Hnn(e,t,r){_b(),zKe(e,t.Te(e.a,r))}function efe(e,t,r,o){aP.call(this,e,t,r,o)}function tfe(e,t){Ace.call(this,e),this.a=t}function xV(e,t){Ace.call(this,e),this.a=t}function Eit(){G8.call(this),this.a=new ro}function nfe(){this.n=new ro,this.o=new ro}function Sit(){this.b=new ro,this.c=new je}function Tit(){this.a=new je,this.b=new je}function Ait(){this.a=new ah,this.b=new mZe}function rfe(){this.b=new d1,this.a=new d1}function _it(){this.b=new hi,this.a=new hi}function xit(){this.b=new hn,this.a=new hn}function kit(){this.a=new je,this.d=new je}function Nit(){this.a=new CWe,this.b=new aUe}function Cit(){this.b=new WQe,this.a=new wHe}function G8(){this.n=new oS,this.i=new wS}function br(e,t){return e.a+=t.a,e.b+=t.b,e}function Di(e,t){return e.a-=t.a,e.b-=t.b,e}function znn(e){return Mw(e.j.c,0),e.a=-1,e}function ife(e,t,r){return r=Sc(e,t,11,r),r}function Iit(e,t,r){r!=null&&Ej(t,RY(e,r))}function Rit(e,t,r){r!=null&&Sj(t,RY(e,r))}function TS(e,t,r,o){ke.call(this,e,t,r,o)}function Ww(e,t){Ia.call(this,aI+e+um+t)}function ofe(e,t,r,o){ke.call(this,e,t,r,o)}function Oit(e,t,r,o){ofe.call(this,e,t,r,o)}function Dit(e,t,r,o){mP.call(this,e,t,r,o)}function kV(e,t,r,o){mP.call(this,e,t,r,o)}function Lit(e,t,r,o){kV.call(this,e,t,r,o)}function sfe(e,t,r,o){mP.call(this,e,t,r,o)}function Tt(e,t,r,o){sfe.call(this,e,t,r,o)}function afe(e,t,r,o){kV.call(this,e,t,r,o)}function Mit(e,t,r,o){afe.call(this,e,t,r,o)}function Pit(e,t,r,o){the.call(this,e,t,r,o)}function ufe(e,t){return e.hk().ti().oi(e,t)}function cfe(e,t){return e.hk().ti().qi(e,t)}function Gnn(e,t){return e.n.a=(Mt(t),t+10)}function qnn(e,t){return e.n.a=(Mt(t),t+10)}function Vnn(e,t){return e.e=l(e.d.Kb(t),163)}function Wnn(e,t){return t==e||q_(D7(t),e)}function Gl(e,t){return $9(new Array(t),e)}function jit(e,t){return Mt(e),be(e)===be(t)}function wt(e,t){return Mt(e),be(e)===be(t)}function Fit(e,t){return Jn(e.a,t,"")==null}function lfe(e,t,r){return e.lastIndexOf(t,r)}function Knn(e,t){return e.b.zd(new itt(e,t))}function Ynn(e,t){return e.b.zd(new ott(e,t))}function $it(e,t){return e.b.zd(new stt(e,t))}function Jnn(e){return e<100?null:new Qg(e)}function Xnn(e,t){return Te(t,(Be(),mL),e)}function Znn(e,t,r){return yr(e[t.a],e[r.a])}function Qnn(e,t){return na(e.a.d.p,t.a.d.p)}function ern(e,t){return na(t.a.d.p,e.a.d.p)}function trn(e,t){return fO(),!T_(t.d.i,e)}function nrn(e,t){sf||t&&(e.d=t)}function rrn(e,t){ep(e.f)?AEn(e,t):pwn(e,t)}function Bit(e,t){von.call(this,e,e.length,t)}function Uit(e){this.c=e,I8.call(this,wD,0)}function dfe(e,t){this.c=e,rW.call(this,e,t)}function Hit(e,t,r){this.a=e,Dde.call(this,t,r)}function zit(e,t,r){this.c=t,this.b=r,this.a=e}function FO(e){ZA(),this.d=e,this.a=new iE}function irn(e,t){var r;return r=t.ni(e.a),r}function orn(e,t){return yr(e.c-e.s,t.c-t.s)}function srn(e,t){return yr(e.c.e.a,t.c.e.a)}function arn(e,t){return yr(e.b.e.a,t.b.e.a)}function Git(e,t){return ae(t,16)&&Qwt(e.c,t)}function urn(e,t,r){return l(e.c,72).Uk(t,r)}function q8(e,t,r){return l(e.c,72).Vk(t,r)}function crn(e,t,r){return Snn(e,l(t,345),r)}function ffe(e,t,r){return Tnn(e,l(t,345),r)}function lrn(e,t,r){return Mbt(e,l(t,345),r)}function qit(e,t,r){return xwn(e,l(t,345),r)}function S3(e,t){return t==null?null:py(e.b,t)}function AS(e){return e==_m||e==Oh||e==fa}function Vit(e){return e.c?_s(e.c.a,e,0):-1}function NV(e){return Uw(e)?(Mt(e),e):e.se()}function V8(e){return!isNaN(e)&&!isFinite(e)}function CV(e){ert(this),tc(this),mo(this,e)}function Tu(e){lV(this),Lfe(this.c,0,e.Nc())}function Wit(e){Mu(e.a),xpe(e.c,e.b),e.b=null}function IV(){IV=K,g2e=new Xt,uxt=new vt}function Kit(){Kit=K,qDt=we(Ii,Rt,1,0,5,1)}function Yit(){Yit=K,cLt=we(Ii,Rt,1,0,5,1)}function hfe(){hfe=K,lLt=we(Ii,Rt,1,0,5,1)}function drn(e){return b_(),wn((mdt(),dxt),e)}function frn(e){return Yc(),wn((Rlt(),mxt),e)}function hrn(e){return Sd(),wn((Olt(),_xt),e)}function prn(e){return _u(),wn((Dlt(),kxt),e)}function grn(e){return Za(),wn((Llt(),Cxt),e)}function brn(e){return eF(),wn((xnt(),Zxt),e)}function pfe(e,t){if(!e)throw Y(new jt(t))}function XA(e){if(!e)throw Y(new es(twe))}function RV(e,t){if(e!=t)throw Y(new $c)}function Hc(e,t,r){this.a=e,this.b=t,this.c=r}function Jit(e,t,r){this.a=e,this.b=t,this.c=r}function Xit(e,t,r){this.a=e,this.b=t,this.c=r}function gfe(e,t,r){this.b=e,this.c=t,this.a=r}function Zit(e,t,r){this.d=e,this.b=r,this.a=t}function mrn(e,t,r){return _b(),e.a.Wd(t,r),t}function OV(e){var t;return t=new yb,t.e=e,t}function bfe(e){var t;return t=new AZe,t.b=e,t}function W8(e,t,r){this.e=t,this.b=e,this.d=r}function K8(e,t,r){this.b=e,this.a=t,this.c=r}function Qit(e){this.a=e,eg(),Gs(Date.now())}function eot(e,t,r){this.a=e,this.b=t,this.c=r}function DV(e){aP.call(this,e.d,e.c,e.a,e.b)}function mfe(e){aP.call(this,e.d,e.c,e.a,e.b)}function wrn(e){return zt(),wn((kht(),eNt),e)}function yrn(e){return A0(),wn((wdt(),ekt),e)}function vrn(e){return x_(),wn((ydt(),Gkt),e)}function Ern(e){return cj(),wn((Uct(),ckt),e)}function Srn(e){return G3(),wn((Mlt(),Mkt),e)}function Trn(e){return Vi(),wn((nft(),$kt),e)}function Arn(e){return YS(),wn((vdt(),Jkt),e)}function _rn(e){return E_(),wn((Hct(),oNt),e)}function xrn(e){return Zi(),wn((knt(),sNt),e)}function krn(e){return Mj(),wn((Edt(),cNt),e)}function Nrn(e){return Xl(),wn((Sdt(),vNt),e)}function Crn(e){return yy(),wn((pft(),SNt),e)}function Irn(e){return tj(),wn((Gct(),INt),e)}function Rrn(e){return eT(),wn((Dft(),CNt),e)}function Orn(e){return T0(),wn((Qlt(),kNt),e)}function Drn(e){return B7(),wn((Nht(),NNt),e)}function Lrn(e){return lC(),wn((xdt(),RNt),e)}function Mrn(e){return mj(),wn(($lt(),ONt),e)}function Prn(e){return tD(),wn((zht(),DNt),e)}function jrn(e){return m6(),wn((zct(),LNt),e)}function Frn(e){return Vb(),wn((Blt(),PNt),e)}function $rn(e){return _7(),wn((Oft(),jNt),e)}function Brn(e){return l6(),wn((qct(),FNt),e)}function Urn(e){return K6(),wn((Ift(),$Nt),e)}function Hrn(e){return W_(),wn((Rft(),BNt),e)}function zrn(e){return Fo(),wn((rpt(),UNt),e)}function Grn(e){return __(),wn((Flt(),HNt),e)}function qrn(e){return g1(),wn((Plt(),zNt),e)}function Vrn(e){return lp(),wn((jlt(),qNt),e)}function Wrn(e){return UP(),wn((Vct(),VNt),e)}function Krn(e){return ic(),wn((bft(),KNt),e)}function Yrn(e){return GP(),wn((Wct(),YNt),e)}function Jrn(e){return wy(),wn((Adt(),FIt),e)}function Xrn(e){return rC(),wn((Wlt(),jIt),e)}function Zrn(e){return hC(),wn((mft(),$It),e)}function Qrn(e){return _1(),wn((npt(),BIt),e)}function ein(e){return rD(),wn((Ght(),PIt),e)}function tin(e){return bp(),wn((_dt(),UIt),e)}function nin(e){return g6(),wn((Kct(),HIt),e)}function rin(e){return jo(),wn((Ult(),GIt),e)}function iin(e){return Oj(),wn((Hlt(),qIt),e)}function oin(e){return nC(),wn((zlt(),VIt),e)}function sin(e){return R_(),wn((Glt(),WIt),e)}function ain(e){return bj(),wn((qlt(),KIt),e)}function uin(e){return Dj(),wn((Vlt(),YIt),e)}function cin(e){return Kb(),wn((Tdt(),p4t),e)}function lin(e){return H3(),wn((Yct(),y4t),e)}function din(e){return If(),wn((Jct(),x4t),e)}function fin(e){return zd(),wn((Xct(),N4t),e)}function hin(e){return vd(),wn((Zct(),z4t),e)}function pin(e,t){return Mt(e),e+(Mt(t),t)}function gin(e){return g0(),wn((Qct(),J4t),e)}function bin(e){return JS(),wn((Idt(),X4t),e)}function min(e){return IC(),wn((Nnt(),Z4t),e)}function win(e){return eC(),wn((edt(),Q4t),e)}function yin(e){return tC(),wn((kdt(),SRt),e)}function vin(e){return FP(),wn((elt(),TRt),e)}function Ein(e){return _j(),wn((tlt(),NRt),e)}function Sin(e){return v7(),wn((gft(),IRt),e)}function Tin(e){return rj(),wn((nlt(),RRt),e)}function Ain(e){return R6(),wn((tdt(),ORt),e)}function _in(e){return d7(),wn((Ndt(),ZRt),e)}function xin(e){return Ij(),wn((Klt(),QRt),e)}function kin(e){return Zj(),wn((Ylt(),eOt),e)}function Nin(e){return S7(),wn((Cdt(),nOt),e)}function Cin(e){return Wj(),wn((ndt(),oOt),e)}function ZA(){ZA=K,k_e=(He(),Kt),RB=Qt}function hc(){hc=K,bNt=new mBe,mNt=new wBe}function $O(){$O=K,T$=new LFe,A$=new MFe}function Y8(){Y8=K,dNt=new u$e,lNt=new c$e}function Iin(e){return!e.e&&(e.e=new je),e.e}function Rin(e){return xC(),wn((wft(),ROt),e)}function Oin(e){return Y9(),wn((gct(),DOt),e)}function Din(e){return M6(),wn((Jlt(),OOt),e)}function Lin(e){return J9(),wn((bct(),MOt),e)}function Min(e){return o6(),wn((ilt(),POt),e)}function Pin(e){return J6(),wn((yft(),jOt),e)}function jin(e){return KP(),wn((rlt(),kOt),e)}function Fin(e){return ij(),wn((Xlt(),NOt),e)}function $in(e){return Uj(),wn((Zlt(),COt),e)}function Bin(e){return JN(),wn((mct(),QOt),e)}function Uin(e){return x6(),wn((olt(),e6t),e)}function Hin(e){return zP(),wn((slt(),t6t),e)}function zin(e){return g7(),wn((Rdt(),r6t),e)}function Gin(e){return X9(),wn((wct(),f6t),e)}function qin(e){return Z9(),wn((yct(),p6t),e)}function Vin(e){return Q9(),wn((vct(),b6t),e)}function Win(e){return w6(),wn((alt(),w6t),e)}function Kin(e){return Jd(),wn((hft(),A6t),e)}function Yin(e){return A1(),wn((Cht(),x6t),e)}function Jin(e){return mh(),wn((Pft(),k6t),e)}function Xin(e){return Zb(),wn((Mft(),D6t),e)}function Zin(e){return vi(),wn((tft(),oDt),e)}function Qin(e){return O_(),wn((Odt(),sDt),e)}function eon(e){return Kd(),wn((idt(),aDt),e)}function ton(e){return gp(),wn((Ddt(),uDt),e)}function non(e){return T7(),wn((Lft(),cDt),e)}function ron(e){return pp(),wn((rdt(),dDt),e)}function ion(e){return vc(),wn((Ldt(),hDt),e)}function oon(e){return Ty(),wn((Hht(),pDt),e)}function son(e){return vE(),wn((fft(),gDt),e)}function aon(e){return qi(),wn((jft(),bDt),e)}function uon(e){return xu(),wn((Fft(),mDt),e)}function con(e){return V3(),wn((sdt(),TDt),e)}function lon(e){return He(),wn((eft(),wDt),e)}function don(e){return sc(),wn((Pdt(),ADt),e)}function fon(e){return Uu(),wn((Uht(),_Dt),e)}function hon(e){return VS(),wn((odt(),xDt),e)}function pon(e){return qP(),wn((Mdt(),kDt),e)}function gon(e){return Kj(),wn((jdt(),NDt),e)}function bon(e){return Pj(),wn((Fdt(),RDt),e)}function LV(e,t){this.c=e,this.a=t,this.b=t-e}function Qu(e,t,r){this.c=e,this.a=t,this.b=r}function tot(e,t,r){this.a=e,this.c=t,this.b=r}function not(e,t,r){this.a=e,this.c=t,this.b=r}function rot(e,t,r){this.a=e,this.b=t,this.c=r}function wfe(e,t,r){this.a=e,this.b=t,this.c=r}function yfe(e,t,r){this.a=e,this.b=t,this.c=r}function MV(e,t,r){this.a=e,this.b=t,this.c=r}function iot(e,t,r){this.a=e,this.b=t,this.c=r}function vfe(e,t,r){this.a=e,this.b=t,this.c=r}function oot(e,t,r){this.a=e,this.b=t,this.c=r}function sot(e,t,r){this.b=e,this.a=t,this.c=r}function rg(e,t,r){this.e=e,this.a=t,this.c=r}function aot(e,t,r){Uc(),Mhe.call(this,e,t,r)}function PV(e,t,r){Uc(),bhe.call(this,e,t,r)}function Efe(e,t,r){Uc(),bhe.call(this,e,t,r)}function Sfe(e,t,r){Uc(),bhe.call(this,e,t,r)}function uot(e,t,r){Uc(),PV.call(this,e,t,r)}function Tfe(e,t,r){Uc(),PV.call(this,e,t,r)}function cot(e,t,r){Uc(),Tfe.call(this,e,t,r)}function lot(e,t,r){Uc(),Efe.call(this,e,t,r)}function dot(e,t,r){Uc(),Sfe.call(this,e,t,r)}function mon(e){return sT(),wn((Iht(),GDt),e)}function BO(e,t){return kn(e),kn(t),new bet(e,t)}function _S(e,t){return kn(e),kn(t),new yot(e,t)}function won(e,t){return kn(e),kn(t),new vot(e,t)}function yon(e,t){return kn(e),kn(t),new xet(e,t)}function Afe(e,t){ien.call(this,e,qj(new Ls(t)))}function fot(e,t){this.c=e,this.b=t,this.a=!1}function _fe(e){this.d=e,VKe(this),this.b=lsn(e.d)}function xfe(e,t,r){this.c=e,t8.call(this,t,r)}function von(e,t,r){dst.call(this,t,r),this.a=e}function hot(){this.a=";,;",this.b="",this.c=""}function pot(e,t,r){this.b=e,Tnt.call(this,t,r)}function Eon(e,t){t&&(e.b=t,e.a=(u1(t),t.a))}function jV(e){return un(e.b!=0),Vc(e,e.a.a)}function Son(e){return un(e.b!=0),Vc(e,e.c.b)}function Ton(e){return!e.c&&(e.c=new NA),e.c}function got(e){var t;return t=new ZG,SK(t,e),t}function UO(e){var t;return t=new Ar,SK(t,e),t}function QA(e){var t;return t=new je,cK(t,e),t}function Aon(e){var t;return t=new hi,cK(t,e),t}function l(e,t){return T3(e==null||vY(e,t)),e}function J8(e,t){return t&&SP(e,t.d)?t:null}function HO(e,t){if(!e)throw Y(new jt(t))}function kfe(e,t){if(!e)throw Y(new wQe(t))}function xS(e,t){if(!e)throw Y(new es(t))}function _on(e,t){return K9(),na(e.d.p,t.d.p)}function xon(e,t){return dp(),yr(e.e.b,t.e.b)}function kon(e,t){return dp(),yr(e.e.a,t.e.a)}function Non(e,t){return na(Cot(e.d),Cot(t.d))}function Con(e,t){return t==(He(),Kt)?e.c:e.d}function Ion(e){return new Me(e.c+e.b,e.d+e.a)}function Nfe(e){var t,r;r=e.d,t=e.a,e.d=t,e.a=r}function Cfe(e){var t,r;t=e.b,r=e.c,e.b=r,e.c=t}function lh(e,t,r,o,a){e.b=t,e.c=r,e.d=o,e.a=a}function Ife(e,t,r,o,a){e.d=t,e.c=r,e.a=o,e.b=a}function bot(e,t,r,o,a){e.c=t,e.d=r,e.b=o,e.a=a}function X8(e,t){return Cfn(e),e.a*=t,e.b*=t,e}function Rfe(e,t){return t<0?e.g=-1:e.g=t,e}function zO(e,t,r){Qle.call(this,e,t),this.c=r}function Ofe(e,t,r){qA.call(this,e,t),this.b=r}function Dfe(e){hfe(),y9.call(this),this._h(e)}function Z8(e,t,r){Qle.call(this,e,t),this.c=r}function mot(e,t,r){this.a=e,Qv.call(this,t,r)}function wot(e,t,r){this.a=e,Qv.call(this,t,r)}function FV(e){this.b=e,this.a=Cb(this.b.a).Md()}function yot(e,t){this.b=e,this.a=t,MG.call(this)}function vot(e,t){this.a=e,this.b=t,MG.call(this)}function Eot(e){Dde.call(this,e.length,0),this.a=e}function Lfe(e,t,r){yme(r,0,e,t,r.length,!1)}function e_(e,t,r){var o;o=new Qw(r),Kl(e,t,o)}function Ron(e,t){var r;return r=e.c,age(e,t),r}function Oon(e,t){return(cgt(e)<<4|cgt(t))&Ei}function Sot(e){return e!=null&&!oY(e,O4,D4)}function GO(e){return e==0||isNaN(e)?e:e<0?-1:1}function Mfe(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function Gn(e,t){return Wr(e,t,e.c.b,e.c),!0}function Q8(e){var t;return t=e.slice(),rK(t,e)}function eP(e){var t;return t=e.n,e.a.b+t.d+t.a}function Tot(e){var t;return t=e.n,e.e.b+t.d+t.a}function Pfe(e){var t;return t=e.n,e.e.a+t.b+t.c}function Aot(e){return fr(),new dh(0,e)}function _ot(){_ot=K,Bre=(At(),new GG(TQ))}function tP(){tP=K,new V1e((oq(),MQ),(iq(),LQ))}function xot(){h_(),Gsn.call(this,(n1(),Ll))}function kot(e,t){dst.call(this,t,1040),this.a=e}function a0(e,t){return mC(e,new qA(t.a,t.b))}function Don(e){return!fo(e)&&e.c.i.c==e.d.i.c}function Lon(e,t){return e.c=t)throw Y(new wZe)}function Zs(e){e.f=new Fnt(e),e.i=new $nt(e),++e.g}function gP(e){this.b=new Da(11),this.a=(h0(),e)}function XV(e){this.b=null,this.a=(h0(),e||h2e)}function Qfe(e,t){this.e=e,this.d=t&64?t|$f:t}function dst(e,t){this.c=0,this.d=e,this.b=t|64|$f}function fst(e){this.a=A1t(e.a),this.b=new Tu(e.b)}function ig(e,t,r,o){var a;a=e.i,a.i=t,a.a=r,a.b=o}function ehe(e){var t;for(t=e;t.f;)t=t.f;return t}function bsn(e){return e.e?Spe(e.e):null}function msn(e,t){return zS(),yr(t.a.o.a,e.a.o.a)}function hst(e,t,r){return Z_(),kK(e,t)&&kK(e,r)}function k3(e){return xu(),!e.Gc(Rp)&&!e.Gc(K1)}function pst(e,t,r){return WEt(e,l(t,12),l(r,12))}function gst(e){return bu(),l(e,12).g.c.length!=0}function bst(e){return bu(),l(e,12).e.c.length!=0}function bP(e){return new Me(e.c+e.b/2,e.d+e.a/2)}function ZV(e,t){return t.Sh()?w1(e.b,l(t,52)):t}function wsn(e,t,r){t.of(r,ue(ce(Ht(e.b,r)))*e.a)}function ysn(e,t){t.Tg("General 'Rotator",1),Zkn(e)}function Pi(e,t,r,o,a){eK.call(this,e,t,r,o,a,-1)}function N3(e,t,r,o,a){a6.call(this,e,t,r,o,a,-1)}function ke(e,t,r,o){yi.call(this,e,t,r),this.b=o}function mP(e,t,r,o){zO.call(this,e,t,r),this.b=o}function mst(e){hnt.call(this,e,!1),this.a=!1}function wst(){rV.call(this,"LOOKAHEAD_LAYOUT",1)}function yst(){rV.call(this,"LAYOUT_NEXT_LEVEL",3)}function vst(){mn.call(this,"ABSOLUTE_XPLACING",0)}function Est(e){this.b=e,SS.call(this,e),Art(this)}function Sst(e){this.b=e,IO.call(this,e),_rt(this)}function Tst(e,t){this.b=e,EKe.call(this,e.b),this.a=t}function Xw(e,t,r){this.a=e,TS.call(this,t,r,5,6)}function the(e,t,r,o){this.b=e,yi.call(this,t,r,o)}function Ob(e,t,r){jf(),this.e=e,this.d=t,this.a=r}function so(e,t){for(Mt(t);e.Ob();)t.Ad(e.Pb())}function wP(e,t){return fr(),new ghe(e,t,0)}function QV(e,t){return fr(),new ghe(6,e,t)}function vsn(e,t){return wt(e.substr(0,t.length),t)}function ma(e,t){return zi(t)?SW(e,t):!!ts(e.f,t)}function Esn(e){return Ua(~e.l&Hu,~e.m&Hu,~e.h&Ep)}function eW(e){return typeof e===pD||typeof e===KJ}function hh(e){return new $t(new Ade(e.a.length,e.a))}function tW(e){return new Et(null,Csn(e,e.length))}function Ast(e){if(!e)throw Y(new vs);return e.d}function CS(e){var t;return t=Q3(e),un(t!=null),t}function Ssn(e){var t;return t=bgn(e),un(t!=null),t}function n_(e,t){var r;return r=e.a.gc(),vpe(t,r),r-t}function pi(e,t){var r;return r=e.a.yc(t,e),r==null}function qO(e,t){return e.a.yc(t,(Lt(),D1))==null}function Tsn(e,t){return e>0?b.Math.log(e/t):-100}function nhe(e,t){return t?mo(e,t):!1}function IS(e,t,r){return Jl(e.a,t),$fe(e.b,t.g,r)}function Asn(e,t,r){t_(r,e.a.c.length),nc(e.a,r,t)}function ge(e,t,r,o){Opt(t,r,e.length),_sn(e,t,r,o)}function _sn(e,t,r,o){var a;for(a=t;a0?1:0}function Isn(e,t){return yr(e.c.c+e.c.b,t.c.c+t.c.b)}function yP(e,t){Wr(e.d,t,e.b.b,e.b),++e.a,e.c=null}function kst(e,t){return e.c?kst(e.c,t):Fe(e.b,t),e}function c0(e,t){ei(Oa(e.Mc(),new BBe),new sJe(t))}function r_(e,t,r,o,a){qY(e,l(wr(t.k,r),16),r,o,a)}function Nst(e,t,r,o,a){for(;t=e.g}function O3(e){return b.Math.sqrt(e.a*e.a+e.b*e.b)}function Bst(e){return ae(e,104)&&(l(e,20).Bb&Ws)!=0}function l0(e){return!e.d&&(e.d=new yi(Go,e,1)),e.d}function zsn(e){return!e.a&&(e.a=new yi(Y1,e,4)),e.a}function Ust(e){this.c=e,this.a=new Ar,this.b=new Ar}function Gsn(e){this.a=(Mt(Bn),Bn),this.b=e,new $ce}function Hst(e,t,r){this.a=e,Qhe.call(this,8,t,null,r)}function phe(e,t,r){this.a=e,Ace.call(this,t),this.b=r}function ghe(e,t,r){Km.call(this,e),this.a=t,this.b=r}function bhe(e,t,r){k9.call(this,t),this.a=e,this.b=r}function qsn(e,t,r){l(t.b,68),La(t.a,new wfe(e,r,t))}function dW(e,t){for(Mt(t);e.c=e?new ple:Yfn(e-1)}function wl(e){if(e==null)throw Y(new rS);return e}function Mt(e){if(e==null)throw Y(new rS);return e}function ji(e){return!e.a&&e.c?e.c.b:e.a}function Vst(e){var t,r;return t=e.c.i.c,r=e.d.i.c,t==r}function Ysn(e,t){return na(t.j.c.length,e.j.c.length)}function Wst(e){The(e.a),e.b=we(Ii,Rt,1,e.b.length,5,1)}function D3(e){e.c?e.c.Ye():(e.d=!0,B2n(e))}function u1(e){e.c?u1(e.c):(y1(e),e.d=!0)}function Mu(e){Hw(e.c!=-1),e.d.ed(e.c),e.b=e.c,e.c=-1}function Kst(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function Yst(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function ui(){QZe.call(this),Mw(this.j.c,0),this.a=-1}function Jst(){mn.call(this,"DELAUNAY_TRIANGULATION",0)}function mhe(e){for(;e.a.b!=0;)Pkn(e,l(Kat(e.a),9))}function Jsn(e,t){Tn((!e.a&&(e.a=new MO(e,e)),e.a),t)}function whe(e,t){e.c<0||e.b.b=0?e.hi(r):lme(e,t)}function Xst(e,t){this.b=e,rW.call(this,e,t),Art(this)}function Zst(e,t){this.b=e,dfe.call(this,e,t),_rt(this)}function Qst(){Ube.call(this,_l,($A(),C3e)),K_n(this)}function yhe(e){return!e.b&&(e.b=new N9(new rq)),e.b}function Zsn(e){if(e.p!=3)throw Y(new lu);return e.e}function Qsn(e){if(e.p!=4)throw Y(new lu);return e.e}function ean(e){if(e.p!=4)throw Y(new lu);return e.j}function tan(e){if(e.p!=3)throw Y(new lu);return e.j}function nan(e){if(e.p!=6)throw Y(new lu);return e.f}function ran(e){if(e.p!=6)throw Y(new lu);return e.k}function f0(e){return e.c==-2&&IZt(e,Cwn(e.g,e.b)),e.c}function o_(e,t){var r;return r=cW("",e),r.n=t,r.i=1,r}function ph(e,t){for(;t-- >0;)e=e<<1|(e<0?1:0);return e}function ian(e,t){WV(l(t.b,68),e),La(t.a,new bce(e))}function eat(e,t){return tP(),new V1e(new krt(e),new xrt(t))}function oan(e,t,r){return qS(),r.Kg(e,l(t.jd(),149))}function san(e){return wc(e,ZJ),lj(Ao(Ao(5,e),e/10|0))}function vhe(e){return At(),e?e.Me():(h0(),h0(),p2e)}function Jn(e,t,r){return zi(t)?ns(e,t,r):eu(e.f,t,r)}function aan(e){return String.fromCharCode.apply(null,e)}function tat(e){return!e.d&&(e.d=new CA(e.c.Bc())),e.d}function s_(e){return!e.a&&(e.a=new SQe(e.c.vc())),e.a}function nat(e){return!e.b&&(e.b=new PA(e.c.ec())),e.b}function rat(e,t){Ntn.call(this,Jfn(kn(e),kn(t))),this.a=t}function Ehe(e,t,r,o){t0.call(this,e,t),this.d=r,this.a=o}function TP(e,t,r,o){t0.call(this,e,r),this.a=t,this.f=o}function L3(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function iat(){Ube.call(this,lm,(UQe(),wLt)),$xn(this)}function oat(){Es.call(this,"There is no more element.")}function co(e,t){return Yt(t,e.length),e.charCodeAt(t)}function sat(e,t){e.u.Gc((xu(),Rp))&&xvn(e,t),gdn(e,t)}function ia(e,t){return be(e)===be(t)||e!=null&&pr(e,t)}function Wo(e,t){return zV(e.a,t)?e.b[l(t,23).g]:null}function aat(e,t){var r;return r=new ra(e),Ot(t.c,r),r}function M3(e){return e.j.c.length=0,The(e.c),znn(e.a),e}function uan(e){return!e.b&&(e.b=new Tt(pn,e,4,7)),e.b}function a_(e){return!e.c&&(e.c=new Tt(pn,e,5,8)),e.c}function She(e){return!e.c&&(e.c=new ke(Gu,e,9,9)),e.c}function fW(e){return!e.n&&(e.n=new ke(Rs,e,1,7)),e.n}function nr(e,t,r,o){return _ht(e,t,r,!1),Hj(e,o),e}function uat(e,t){tY(e,ue(fp(t,"x")),ue(fp(t,"y")))}function cat(e,t){tY(e,ue(fp(t,"x")),ue(fp(t,"y")))}function can(){return X9(),Z(X(d6t,1),Ce,557,0,[Qne])}function lan(){return Z9(),Z(X(h6t,1),Ce,558,0,[ere])}function dan(){return Q9(),Z(X(g6t,1),Ce,559,0,[tre])}function fan(){return J9(),Z(X(LOt,1),Ce,550,0,[Fne])}function han(){return Y9(),Z(X(uke,1),Ce,480,0,[jne])}function pan(){return JN(),Z(X(Cke,1),Ce,531,0,[ML])}function hW(){hW=K,z_t=new Ele(Z(X(dm,1),tF,45,0,[]))}function gan(e,t){return new Dat(l(kn(e),50),l(kn(t),50))}function ban(e){return e!=null&&VN(EU,e.toLowerCase())}function u_(e){return e.e==jx&&PZt(e,M1n(e.g,e.b)),e.e}function WO(e){return e.f==jx&&FZt(e,Rmn(e.g,e.b)),e.f}function uE(e){var t;return t=e.b,!t&&(e.b=t=new bKe(e)),t}function The(e){var t;for(t=e.Jc();t.Ob();)t.Pb(),t.Qb()}function man(e,t,r){var o;o=l(e.d.Kb(r),163),o&&o.Nb(t)}function wan(e,t){return yr(e.d.c+e.d.b/2,t.d.c+t.d.b/2)}function yan(e,t){return yr(e.g.c+e.g.b/2,t.g.c+t.g.b/2)}function van(e,t){return mle(),yr((Mt(e),e),(Mt(t),t))}function Oa(e,t){return y1(e),new Et(e,new Epe(t,e.a))}function lr(e,t){return y1(e),new Et(e,new Lpe(t,e.a))}function ey(e,t){return y1(e),new zde(e,new vlt(t,e.a))}function AP(e,t){return y1(e),new Gde(e,new Elt(t,e.a))}function Ahe(e,t){this.b=e,this.c=t,this.a=new fS(this.b)}function pW(e,t,r,o){this.a=e,this.e=t,this.d=r,this.c=o}function gW(e,t,r){this.a=awe,this.d=e,this.b=t,this.c=r}function _P(e,t,r,o){this.a=e,this.c=t,this.b=r,this.d=o}function _he(e,t,r,o){this.c=e,this.b=t,this.a=r,this.d=o}function lat(e,t,r,o){this.c=e,this.b=t,this.d=r,this.a=o}function dat(e,t,r,o){this.a=e,this.d=t,this.c=r,this.b=o}function ql(e,t,r,o){this.c=e,this.d=t,this.b=r,this.a=o}function OS(e,t,r,o){mn.call(this,e,t),this.a=r,this.b=o}function fat(e,t,r,o){bpt.call(this,e,r,o,!1),this.f=t}function hat(e,t){this.d=(Mt(e),e),this.a=16449,this.c=t}function pat(e){this.a=new je,this.e=we(Rn,Pe,54,e,0,2)}function Ean(e){e.Tg("No crossing minimization",1),e.Ug()}function ip(e){var t,r;return r=(t=new Ym,t),w_(r,e),r}function bW(e){var t,r;return r=(t=new Ym,t),Gbe(r,e),r}function mW(e,t,r){var o,a;return o=K0e(e),a=t.qi(r,o),a}function wW(e){var t;return t=Zfn(e),t||null}function gat(e){return!e.b&&(e.b=new ke(Ir,e,12,3)),e.b}function c_(e){if($u(e.d),e.d.d!=e.c)throw Y(new $c)}function bat(e,t,r,o){this.a=e,this.c=t,this.d=r,this.b=o}function mat(e,t,r,o){this.a=e,this.b=t,this.d=r,this.c=o}function wat(e,t,r,o){this.a=e,this.b=t,this.c=r,this.d=o}function yat(e,t,r,o){this.a=e,this.b=t,this.c=r,this.d=o}function Lb(e,t,r,o){this.e=e,this.a=t,this.c=r,this.d=o}function vat(e,t,r,o){Uc(),Slt.call(this,t,r,o),this.a=e}function Eat(e,t,r,o){Uc(),Slt.call(this,t,r,o),this.a=e}function Sat(e,t){this.a=e,Nnn.call(this,e,l(e.d,16).dd(t))}function yW(e){this.f=e,this.c=this.f.e,e.f>0&&ybt(this)}function xP(e){return e.n&&(e.e!==a2t&&e.he(),e.j=null),e}function Tat(e){return T3(e==null||eW(e)&&e.Rm!==fe),e}function San(e,t,r){return Fe(e.a,(NY(t,r),new t0(t,r))),e}function Tan(e,t,r){H_n(e.a,r),Khn(r),lEn(e.b,r),cxn(t,r)}function Aan(e,t){return yr(hu(e)*ec(e),hu(t)*ec(t))}function _an(e,t){return yr(hu(e)*ec(e),hu(t)*ec(t))}function xan(e){hc();var t;t=l(e.g,9),t.n.a=e.d.c+t.d.b}function tc(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function xhe(e,t){return e.b=t.b,e.c=t.c,e.d=t.d,e.a=t.a,e}function khe(e){return un(e.b0?Wl(e):new je}function Nan(e,t){return l(F(e,(Ie(),RT)),16).Ec(t),t}function Can(e,t){return yt(e,l(F(t,(Be(),Yy)),15),t)}function Ian(e){return R0(e)&&Ye(Ke(ve(e,(Be(),bm))))}function DS(e){var t;return t=e.f,t||(e.f=new HA(e,e.c))}function Ran(e,t,r){return YN(),Hgn(l(Ht(e.e,t),520),r)}function Oan(e,t,r){e.i=0,e.e=0,t!=r&&mpt(e,t,r)}function Dan(e,t,r){e.i=0,e.e=0,t!=r&&wpt(e,t,r)}function Aat(e,t,r,o){this.b=e,this.c=o,I8.call(this,t,r)}function _at(e,t){this.g=e,this.d=Z(X(Nh,1),vg,9,0,[t])}function xat(e,t){e.d&&!e.d.a&&(uZe(e.d,t),xat(e.d,t))}function kat(e,t){e.e&&!e.e.a&&(uZe(e.e,t),kat(e.e,t))}function Nat(e,t){return yE(e.j,t.s,t.c)+yE(t.e,e.s,e.c)}function Lan(e){return l(e.jd(),149).Og()+":"+ms(e.kd())}function Man(e,t){return-yr(hu(e)*ec(e),hu(t)*ec(t))}function Pan(e,t){return rc(e),rc(t),pQe(l(e,23),l(t,23))}function Mb(e,t,r){var o,a;o=NV(r),a=new E9(o),Kl(e,t,a)}function jan(e){F9(),b.setTimeout(function(){throw e},0)}function Cat(e){this.b=new je,li(this.b,this.b),this.a=e}function Iat(e){this.b=new kUe,this.a=e,b.Math.random()}function Nhe(e,t){new Ar,this.a=new Lu,this.b=e,this.c=t}function Rat(e,t,r,o){Qle.call(this,t,r),this.b=e,this.a=o}function vW(e,t,r,o,a,u){a6.call(this,e,t,r,o,a,u?-2:-1)}function Oat(){XY(this,new Vue),this.wb=(a1(),Ut),$A()}function Che(){Che=K,vxt=new wb,Sxt=new Gfe,Ext=new Wp}function At(){At=K,Co=new Le,xh=new xe,h$=new Se}function h0(){h0=K,h2e=new dt,VQ=new dt,p2e=new Ue}function Er(e){return!e.q&&(e.q=new ke(Dl,e,11,10)),e.q}function Ne(e){return!e.s&&(e.s=new ke(au,e,21,17)),e.s}function kP(e){return!e.a&&(e.a=new ke(En,e,10,11)),e.a}function NP(e,t){if(e==null)throw Y(new uS(t));return e}function Dat(e,t){cQt.call(this,new XV(e)),this.a=e,this.b=t}function Ihe(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function Rhe(e){return e&&e.hashCode?e.hashCode():s0(e)}function Fan(e){return new vrt(e,e.e.Pd().gc()*e.c.Pd().gc())}function $an(e){return new Ert(e,e.e.Pd().gc()*e.c.Pd().gc())}function EW(e){return ae(e,18)?new Kw(l(e,18)):Aon(e.Jc())}function CP(e){return At(),ae(e,59)?new pq(e):new $8(e)}function Ban(e){return kn(e),M1t(new $t(qt(e.a.Jc(),new D)))}function SW(e,t){return t==null?!!ts(e.f,null):nsn(e.i,t)}function Uan(e,t){var r;return r=mde(e.a,t),r&&(t.d=null),r}function Lat(e,t,r){return e.f?e.f.cf(t,r):!1}function KO(e,t,r,o){ii(e.c[t.g],r.g,o),ii(e.c[r.g],t.g,o)}function TW(e,t,r,o){ii(e.c[t.g],t.g,r),ii(e.b[t.g],t.g,o)}function Han(e,t,r){return ue(ce(r.a))<=e&&ue(ce(r.b))>=t}function Mat(){this.d=new Ar,this.b=new hn,this.c=new je}function Pat(){this.b=new hi,this.d=new Ar,this.e=new D9}function Ohe(){this.c=new ro,this.d=new ro,this.e=new ro}function p0(){this.a=new Lu,this.b=(wc(3,Iy),new Da(3))}function jat(e){this.c=e,this.b=new Qp(l(kn(new Ow),50))}function Fat(e){this.c=e,this.b=new Qp(l(kn(new lG),50))}function $at(e){this.b=e,this.a=new Qp(l(kn(new pl),50))}function og(e,t){this.e=e,this.a=Ii,this.b=gyt(t),this.c=t}function IP(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function Bat(e,t,r,o,a,u){this.a=e,gK.call(this,t,r,o,a,u)}function Uat(e,t,r,o,a,u){this.a=e,gK.call(this,t,r,o,a,u)}function c1(e,t,r,o,a,u,f){return new UW(e.e,t,r,o,a,u,f)}function zan(e,t,r){return r>=0&&wt(e.substr(r,t.length),t)}function Hat(e,t){return ae(t,149)&&wt(e.b,l(t,149).Og())}function Gan(e,t){return e.a?t.Dh().Jc():l(t.Dh(),72).Gi()}function zat(e,t){var r;return r=e.b.Oc(t),Pct(r,e.b.gc()),r}function YO(e,t){if(e==null)throw Y(new uS(t));return e}function ds(e){return e.u||(Pu(e),e.u=new git(e,e)),e.u}function l_(){l_=K;var e,t;t=!S1n(),e=new Q,UQ=t?new re:e}function Ja(e){var t;return t=l(Vt(e,16),29),t||e.fi()}function RP(e,t){var r;return r=Ab(e.Pm),t==null?r:r+": "+t}function yl(e,t,r){return io(t,r,e.length),e.substr(t,r-t)}function Gat(e,t){G8.call(this),qpe(this),this.a=e,this.c=t}function qat(){rV.call(this,"FIXED_INTEGER_RATIO_BOXES",2)}function qan(){return UP(),Z(X(hTe,1),Ce,425,0,[Qee,fTe])}function Van(){return GP(),Z(X(kTe,1),Ce,428,0,[cte,ute])}function Wan(){return g6(),Z(X(p_e,1),Ce,426,0,[Ute,Hte])}function Kan(){return tj(),Z(X(USe,1),Ce,427,0,[BSe,Oee])}function Yan(){return m6(),Z(X(JSe,1),Ce,424,0,[K$,YSe])}function Jan(){return l6(),Z(X(QSe,1),Ce,479,0,[ZSe,J$])}function Xan(){return zd(),Z(X(k4t,1),Ce,512,0,[Em,uf])}function Zan(){return If(),Z(X(_4t,1),Ce,513,0,[aw,kg])}function Qan(){return vd(),Z(X(H4t,1),Ce,519,0,[rv,U1])}function eun(){return H3(),Z(X(w4t,1),Ce,522,0,[QI,ZI])}function tun(){return g0(),Z(X(Y4t,1),Ce,457,0,[H1,u2])}function nun(){return FP(),Z(X(cxe,1),Ce,430,0,[lne,uxe])}function run(){return _j(),Z(X(lxe,1),Ce,490,0,[BB,d2])}function iun(){return rj(),Z(X(fxe,1),Ce,431,0,[dxe,bne])}function oun(){return o6(),Z(X(cke,1),Ce,433,0,[$ne,XB])}function sun(){return KP(),Z(X(tke,1),Ce,481,0,[Dne,eke])}function aun(){return x6(),Z(X(Rke,1),Ce,432,0,[QB,Ike])}function uun(){return w6(),Z(X(m6t,1),Ce,498,0,[rre,nre])}function cun(){return zP(),Z(X(Dke,1),Ce,389,0,[qne,Oke])}function lun(){return cj(),Z(X(k2e,1),Ce,429,0,[iee,w$])}function dun(){return E_(),Z(X(iNt,1),Ce,506,0,[iL,mee])}function OP(e,t,r,o){return r>=0?e.Rh(t,r,o):e.zh(null,r,o)}function JO(e){return e.b.b==0?e.a.uf():jV(e.b)}function fun(e){if(e.p!=5)throw Y(new lu);return Dn(e.f)}function hun(e){if(e.p!=5)throw Y(new lu);return Dn(e.k)}function Dhe(e){return be(e.a)===be((AK(),jre))&&Dxn(e),e.a}function pun(e){e&&RP(e,e.ge())}function Vat(e,t){vZt(this,new Me(e.a,e.b)),EZt(this,UO(t))}function g0(){g0=K,H1=new Ule(hT,0),u2=new Ule(pT,1)}function If(){If=K,aw=new jle(pT,0),kg=new jle(hT,1)}function gun(e,t){e.c=t,e.c>0&&e.b>0&&(e.g=sP(e.c,e.b,e.a))}function bun(e,t){e.b=t,e.c>0&&e.b>0&&(e.g=sP(e.c,e.b,e.a))}function Wat(e){var t;t=e.c.d.b,e.b=t,e.a=e.c.d,t.a=e.c.d.b=e}function Kat(e){return e.b==0?null:(un(e.b!=0),Vc(e,e.a.a))}function wa(e,t){return t==null?Ss(ts(e.f,null)):e3(e.i,t)}function Yat(e,t,r,o,a){return new QY(e,(b_(),JQ),t,r,o,a)}function DP(e,t){return Fct(t),jfn(e,we(Rn,Qn,30,t,15,1),t)}function LP(e,t){return NP(e,"set1"),NP(t,"set2"),new Oet(e,t)}function mun(e,t){var r=BQ[e.charCodeAt(0)];return r??e}function Jat(e,t){var r,o;return r=t,o=new Ft,tEt(e,r,o),o.d}function AW(e,t,r,o){var a;a=new Eit,t.a[r.g]=a,IS(e.b,o,a)}function wun(e,t){var r;return r=Dfn(e.f,t),br(H8(r),e.f.d)}function P3(e){var t;qfn(e.a),Ynt(e.a),t=new A9(e.a),x1e(t)}function yun(e,t){iyt(e,!0),La(e.e.Pf(),new gfe(e,!0,t))}function Xat(e){this.a=l(kn(e),279),this.b=(At(),new Cde(e))}function Zat(e,t,r){this.i=new je,this.b=e,this.g=t,this.a=r}function MP(e,t,r){this.c=new je,this.e=e,this.f=t,this.b=r}function Lhe(e,t,r){this.a=new je,this.e=e,this.f=t,this.c=r}function _W(e,t,r){fr(),Km.call(this,e),this.b=t,this.a=r}function Mhe(e,t,r){Uc(),k9.call(this,t),this.a=e,this.b=r}function Qat(e){G8.call(this),qpe(this),this.a=e,this.c=!0}function b0(){lQt.call(this,new dS(fy(12))),Ede(!0),this.a=2}function zd(){zd=K,Em=new Fle(IX,0),uf=new Fle("UP",1)}function ty(e){return e.Db>>16!=3?null:l(e.Cb,19)}function Gd(e){return e.Db>>16!=9?null:l(e.Cb,19)}function eut(e){return e.Db>>16!=6?null:l(e.Cb,74)}function vun(e){if(e.ye())return null;var t=e.n;return a$[t]}function Eun(e){function t(){}return t.prototype=e||{},new t}function tut(e){var t;return t=new U9(fy(e.length)),Fge(t,e),t}function XO(e,t){var r;r=e.q.getHours(),e.q.setDate(t),OC(e,r)}function Phe(e,t,r){var o;o=e.Fh(t),o>=0?e.$h(o,r):$me(e,t,r)}function cE(e,t,r){PP(),e&&Jn(Lre,e,t),e&&Jn(a5,e,r)}function Sun(e,t){return dp(),l(F(t,(js(),Jf)),15).a==e}function Tun(e,t){return Y8(),Lt(),l(t.b,15).a=0?e.Th(r):oJ(e,t)}function xW(e,t,r){var o;o=hpt(e,t,r),e.b=new Nj(o.c.length)}function out(e){this.a=e,this.b=we(g4t,Pe,2022,e.e.length,0,2)}function sut(){this.a=new uh,this.e=new hi,this.g=0,this.i=0}function aut(e,t){L8(this),this.f=t,this.g=e,xP(this),this.he()}function kW(e,t){return b.Math.abs(e)0}function jhe(e){var t;return t=e.d,t=e._i(e.f),Tn(e,t),t.Ob()}function uut(e,t){var r;return r=new zfe(t),Kbt(r,e),new Tu(r)}function kun(e){if(e.p!=0)throw Y(new lu);return f3(e.f,0)}function Nun(e){if(e.p!=0)throw Y(new lu);return f3(e.k,0)}function cut(e){return e.Db>>16!=7?null:l(e.Cb,244)}function d_(e){return e.Db>>16!=6?null:l(e.Cb,244)}function Fhe(e){return e.Db>>16!=7?null:l(e.Cb,176)}function Br(e){return e.Db>>16!=11?null:l(e.Cb,19)}function ny(e){return e.Db>>16!=17?null:l(e.Cb,29)}function lut(e){return e.Db>>16!=3?null:l(e.Cb,159)}function $he(e){var t;return y1(e),t=new hi,lr(e,new sYe(t))}function dut(e,t){var r=e.a=e.a||[];return r[t]||(r[t]=e.te(t))}function Cun(e,t){var r;r=e.q.getHours(),e.q.setMonth(t),OC(e,r)}function bo(e,t){e.c&&Xa(e.c.g,e),e.c=t,e.c&&Fe(e.c.g,e)}function Ji(e,t){e.d&&Xa(e.d.e,e),e.d=t,e.d&&Fe(e.d.e,e)}function Oi(e,t){e.c&&Xa(e.c.a,e),e.c=t,e.c&&Fe(e.c.a,e)}function As(e,t){e.i&&Xa(e.i.j,e),e.i=t,e.i&&Fe(e.i.j,e)}function ns(e,t,r){return t==null?eu(e.f,null,r):_0(e.i,t,r)}function j3(e,t,r,o,a,u){return new cp(e.e,t,e.Jj(),r,o,a,u)}function Iun(e){return GK(),Lt(),l(e.a,84).d.e!=0}function fut(){fut=K,U_t=yn((M9(),Z(X(B_t,1),Ce,541,0,[jQ])))}function hut(){hut=K,JIt=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function put(){put=K,XIt=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function gut(){gut=K,ZIt=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function Bhe(){Bhe=K,QIt=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function but(){but=K,t4t=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function Uhe(){Uhe=K,n4t=Ra(new ui,(Vi(),Ho),(Zi(),xT))}function mut(){mut=K,v4t=$n(new ui,(Vi(),Ho),(Zi(),_I))}function gc(){gc=K,T4t=$n(new ui,(Vi(),Ho),(Zi(),_I))}function wut(){wut=K,A4t=$n(new ui,(Vi(),Ho),(Zi(),_I))}function NW(){NW=K,C4t=$n(new ui,(Vi(),Ho),(Zi(),_I))}function yut(){yut=K,ARt=Ra(new ui,(JS(),t4),(IC(),R_e))}function PP(){PP=K,Lre=new hn,a5=new hn,Men(sxt,new XGe)}function vut(e,t,r){this.a=t,this.c=e,this.b=(kn(r),new Tu(r))}function Eut(e,t,r){this.a=t,this.c=e,this.b=(kn(r),new Tu(r))}function Sut(e,t){this.a=e,this.c=To(this.a),this.b=new IP(t)}function Pb(e,t,r,o){this.c=e,this.d=o,IW(this,t),RW(this,r)}function LS(e){this.c=new Ar,this.b=e.b,this.d=e.c,this.a=e.a}function CW(e){this.a=b.Math.cos(e),this.b=b.Math.sin(e)}function IW(e,t){e.a&&Xa(e.a.k,e),e.a=t,e.a&&Fe(e.a.k,e)}function RW(e,t){e.b&&Xa(e.b.f,e),e.b=t,e.b&&Fe(e.b.f,e)}function Tut(e,t){qsn(e,e.b,e.c),l(e.b.b,68),t&&l(t.b,68).b}function Run(e,t){b1e(e,t),ae(e.Cb,89)&&Sy(Pu(l(e.Cb,89)),2)}function OW(e,t){ae(e.Cb,89)&&Sy(Pu(l(e.Cb,89)),4),Ma(e,t)}function jP(e,t){ae(e.Cb,187)&&(l(e.Cb,187).tb=null),Ma(e,t)}function Aut(e,t){var r;return r=l(py(DS(e.a),t),18),r?r.gc():0}function Oun(e,t){var r,o;r=t.c,o=r!=null,o&&RS(e,new Qw(t.c))}function _ut(e){var t,r;return r=($A(),t=new Ym,t),w_(r,e),r}function xut(e){var t,r;return r=($A(),t=new Ym,t),w_(r,e),r}function kut(e){for(var t;;)if(t=e.Pb(),!e.Ob())return t}function ya(e,t){return Lo(),uK(t)?new nP(t,e):new xO(t,e)}function Dun(e,t){return yr(l(e.c,65).c.e.b,l(t.c,65).c.e.b)}function Lun(e,t){return yr(l(e.c,65).c.e.a,l(t.c,65).c.e.a)}function Nut(e,t,r){return new QY(e,(b_(),XQ),t,r,null,!1)}function Cut(e,t,r){return new QY(e,(b_(),YQ),null,!1,t,r)}function ZO(e){return jf(),Ea(e,0)>=0?v1(e):I3(v1(ug(e)))}function Mun(){return Yc(),Z(X(ru,1),Ce,132,0,[v2e,nu,E2e])}function Pun(){return Sd(),Z(X(jy,1),Ce,240,0,[Bs,$a,Us])}function jun(){return _u(),Z(X(xxt,1),Ce,464,0,[Wf,L1,nd])}function Fun(){return Za(),Z(X(Nxt,1),Ce,465,0,[Nd,M1,rd])}function $un(e,t){grt(e,Dn(Gi(u0(t,24),oF)),Dn(Gi(t,oF)))}function ry(e,t){if(e<0||e>t)throw Y(new Ia(bwe+e+mwe+t))}function at(e,t){if(e<0||e>=t)throw Y(new Ia(bwe+e+mwe+t))}function Yt(e,t){if(e<0||e>=t)throw Y(new Xce(bwe+e+mwe+t))}function St(e,t){this.b=(Mt(e),e),this.a=t&Ry?t:t|64|$f}function Rf(e,t,r){sgt(t,r,e.gc()),this.c=e,this.a=t,this.b=r-t}function Iut(e,t,r){var o;sgt(t,r,e.c.length),o=r-t,cle(e.c,t,o)}function Bun(e,t,r){var o;o=new So(r.d),br(o,e),tY(t,o.a,o.b)}function Hhe(e){var t;return y1(e),t=(h0(),h0(),VQ),dj(e,t)}function lE(e){return YN(),ae(e.g,9)?l(e.g,9):null}function qd(e){return xs(Z(X($i,1),Pe,8,0,[e.i.n,e.n,e.a]))}function Uun(){return G3(),Z(X(H2e,1),Ce,385,0,[uee,aee,cee])}function Hun(){return g1(),Z(X(Zee,1),Ce,330,0,[lL,dTe,Gy])}function zun(){return lp(),Z(X(GNt,1),Ce,316,0,[dL,ZE,kT])}function Gun(){return __(),Z(X(Xee,1),Ce,303,0,[Yee,Jee,cL])}function qun(){return mj(),Z(X(VSe,1),Ce,351,0,[qSe,W$,Dee])}function Vun(){return Vb(),Z(X(MNt,1),Ce,452,0,[Uee,Jx,JE])}function Wun(){return jo(),Z(X(zIt,1),Ce,455,0,[YI,Cu,Ba])}function Kun(){return Oj(),Z(X(m_e,1),Ce,382,0,[g_e,zte,b_e])}function Yun(){return nC(),Z(X(w_e,1),Ce,349,0,[qte,Gte,AL])}function Jun(){return R_(),Z(X(v_e,1),Ce,350,0,[Vte,y_e,JI])}function Xun(){return rC(),Z(X(i_e,1),Ce,353,0,[Lte,r_e,_B])}function Zun(){return bj(),Z(X(T_e,1),Ce,352,0,[S_e,Wte,E_e])}function Qun(){return Dj(),Z(X(A_e,1),Ce,383,0,[Kte,uk,nv])}function ecn(){return eC(),Z(X(U_e,1),Ce,386,0,[B_e,Xte,kL])}function tcn(){return R6(),Z(X(gxe,1),Ce,387,0,[UB,hxe,pxe])}function ncn(){return Wj(),Z(X(jxe,1),Ce,388,0,[Pxe,Cne,Mxe])}function rcn(){return T0(),Z(X(Tee,1),Ce,369,0,[Q0,P1,Z0])}function icn(){return Uj(),Z(X(ake,1),Ce,435,0,[oke,ske,Mne])}function ocn(){return ij(),Z(X(ike,1),Ce,434,0,[Lne,rke,nke])}function scn(){return M6(),Z(X(Pne,1),Ce,440,0,[KB,YB,JB])}function acn(){return Zj(),Z(X(Lxe,1),Ce,441,0,[s4,GB,Sne])}function ucn(){return Ij(),Z(X(Dxe,1),Ce,304,0,[Ene,Oxe,Rxe])}function ccn(){return V3(),Z(X(QNe,1),Ce,301,0,[YL,_re,ZNe])}function lcn(){return Kd(),Z(X(MNe,1),Ce,281,0,[yk,fv,vk])}function dcn(){return VS(),Z(X(n3e,1),Ce,283,0,[t3e,pv,gU])}function fcn(){return pp(),Z(X(WNe,1),Ce,348,0,[cU,Ig,T4])}function bc(e){fr(),Km.call(this,e),this.c=!1,this.a=!1}function Rut(e,t,r){Km.call(this,25),this.b=e,this.a=t,this.c=r}function zhe(e,t){uQt.call(this,new dS(fy(e))),wc(t,t2t),this.a=t}function hcn(e,t){var r;return r=(Mt(e),e).g,Mde(!!r),Mt(t),r(t)}function Out(e,t){var r,o;return o=n_(e,t),r=e.a.dd(o),new Iet(e,r)}function pcn(e,t,r){var o;return o=MC(e,t,!1),o.b<=t&&o.a<=r}function Dut(e,t,r){var o;o=new QUe,o.b=t,o.a=r,++t.b,Fe(e.d,o)}function FP(){FP=K,lne=new Hle("DFS",0),uxe=new Hle("BFS",1)}function gcn(e){if(e.p!=2)throw Y(new lu);return Dn(e.f)&Ei}function bcn(e){if(e.p!=2)throw Y(new lu);return Dn(e.k)&Ei}function mcn(e){return e.Db>>16!=6?null:l(uJ(e),244)}function q(e){return un(e.ao?1:0}function Ncn(e,t){var r;r=l(Ht(e.g,t),60),La(t.d,new mtt(e,r))}function Mut(e,t){var r;for(r=e+"";r.length0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function Zut(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function Qut(e){return un(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function ect(e,t){var r;return r=1-t,e.a[r]=Aj(e.a[r],r),Aj(e,t)}function tct(e,t){var r,o;return o=Gi(e,$o),r=fh(t,32),Of(r,o)}function Lcn(e,t,r){var o;return o=l(e.Zb().xc(t),18),!!o&&o.Gc(r)}function nct(e,t,r){var o;return o=l(e.Zb().xc(t),18),!!o&&o.Kc(r)}function rct(e,t,r){var o;o=(kn(e),new Tu(e)),wmn(new vut(o,t,r))}function e6(e,t,r){var o;o=(kn(e),new Tu(e)),ymn(new Eut(o,t,r))}function ict(){ict=K,x_e=eat(Re(1),Re(4)),__e=eat(Re(1),Re(2))}function oct(e){TK.call(this,e,(b_(),KQ),null,!1,null,!1)}function sct(e,t){Ob.call(this,1,2,Z(X(Rn,1),Qn,30,15,[e,t]))}function Xi(e,t){this.a=e,LN.call(this,e),ry(t,e.gc()),this.b=t}function act(e,t){var r;e.e=new zce,r=Ay(t),xi(r,e.c),Vwt(e,r,0)}function Mcn(e,t,r){e.a=t,e.c=r,e.b.a.$b(),tc(e.d),Mw(e.e.a.c,0)}function zr(e,t,r,o){var a;a=new Bue,a.a=t,a.b=r,a.c=o,Gn(e.a,a)}function De(e,t,r,o){var a;a=new Bue,a.a=t,a.b=r,a.c=o,Gn(e.b,a)}function uct(e,t,r,o){return e.a+=""+yl(t==null?tu:ms(t),r,o),e}function Ms(e,t,r,o,a,u){return _ht(e,t,r,u),u1e(e,o),c1e(e,a),e}function Jhe(){var e,t,r;return t=(r=(e=new Ym,e),r),Fe($3e,t),t}function t6(e,t){if(e<0||e>=t)throw Y(new Ia(ovn(e,t)));return e}function cct(e,t,r){if(e<0||tr)throw Y(new Ia(xyn(e,t,r)))}function Pcn(e){if(!("stack"in e))try{throw e}catch{}return e}function jcn(e){return uE(e).dc()?!1:(mtn(e,new P),!0)}function $b(e){var t;return gs(e)?(t=e,t==-0?0:t):tfn(e)}function lct(e,t){return ae(t,45)?IY(e.a,l(t,45)):!1}function dct(e,t){return ae(t,45)?IY(e.a,l(t,45)):!1}function fct(e,t){return ae(t,45)?IY(e.a,l(t,45)):!1}function Fcn(e,t){return US(),l(F(t,(js(),c2)),15).a>=e.gc()}function $cn(e){return gc(),!fo(e)&&!(!fo(e)&&e.c.i.c==e.d.i.c)}function Df(e){return l(Yd(e,we(zx,Tx,17,e.c.length,0,1)),324)}function $P(e){return new Da((wc(e,ZJ),lj(Ao(Ao(5,e),e/10|0))))}function Bcn(e,t){return new MV(t,Xrt(To(t.e),e,e),(Lt(),!0))}function Ucn(e){return BV(e.e.Pd().gc()*e.c.Pd().gc(),273,new wKe(e))}function hct(e){return l(Yd(e,we(tNt,Q2t,12,e.c.length,0,1)),2021)}function pct(e){this.a=we(Ii,Rt,1,Pge(b.Math.max(8,e))<<1,5,1)}function Xhe(e){var t;return u1(e),t=new bt,Wv(e.a,new rYe(t)),t}function BP(e){var t;return u1(e),t=new kt,Wv(e.a,new iYe(t)),t}function Hcn(e,t){return e.a<=e.b?(t.Bd(e.a++),!0):!1}function zcn(e,t,r){e.d&&Xa(e.d.e,e),e.d=t,e.d&&Nb(e.d.e,r,e)}function Zhe(e,t,r){this.d=new mJe(this),this.e=e,this.i=t,this.f=r}function UP(){UP=K,Qee=new Lle(px,0),fTe=new Lle("TOP_LEFT",1)}function gct(){gct=K,DOt=yn((Y9(),Z(X(uke,1),Ce,480,0,[jne])))}function bct(){bct=K,MOt=yn((J9(),Z(X(LOt,1),Ce,550,0,[Fne])))}function mct(){mct=K,QOt=yn((JN(),Z(X(Cke,1),Ce,531,0,[ML])))}function wct(){wct=K,f6t=yn((X9(),Z(X(d6t,1),Ce,557,0,[Qne])))}function yct(){yct=K,p6t=yn((Z9(),Z(X(h6t,1),Ce,558,0,[ere])))}function vct(){vct=K,b6t=yn((Q9(),Z(X(g6t,1),Ce,559,0,[tre])))}function Gcn(e){Tgt((!e.a&&(e.a=new ke(En,e,10,11)),e.a),new Lze)}function $3(e,t){JNn(t,e),Cfe(e.d),Cfe(l(F(e,(Be(),wB)),216))}function jW(e,t){XNn(t,e),Nfe(e.d),Nfe(l(F(e,(Be(),wB)),216))}function m0(e,t){var r,o;return r=op(e,t),o=null,r&&(o=r.ne()),o}function B3(e,t){var r,o;return r=op(e,t),o=null,r&&(o=r.qe()),o}function f_(e,t){var r,o;return r=ay(e,t),o=null,r&&(o=r.qe()),o}function sp(e,t){var r,o;return r=op(e,t),o=null,r&&(o=Xbe(r)),o}function qcn(e,t,r){var o;return o=B_(r),H7(e.n,o,t),H7(e.o,t,r),t}function Vcn(e,t,r){var o;o=H1n();try{return $nn(e,t,r)}finally{Vln(o)}}function Ect(e,t,r,o){return ae(r,59)?new $rt(e,t,r,o):new Xfe(e,t,r,o)}function Qhe(e,t,r,o){this.d=e,this.n=t,this.g=r,this.o=o,this.p=-1}function Sct(e,t,r,o){this.e=null,this.c=e,this.d=t,this.a=r,this.b=o}function Tct(e){var t;t=e.Dh(),this.a=ae(t,72)?l(t,72).Gi():t.Jc()}function Wcn(e){return new St(Rfn(l(e.a.kd(),18).gc(),e.a.jd()),16)}function iy(e){return ae(e,18)?l(e,18).dc():!e.Jc().Ob()}function Act(e){if(e.e.g!=e.b)throw Y(new $c);return!!e.c&&e.d>0}function Sn(e){return un(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function epe(e,t){Mt(t),ii(e.a,e.c,t),e.c=e.c+1&e.a.length-1,Z1t(e)}function l1(e,t){Mt(t),e.b=e.b-1&e.a.length-1,ii(e.a,e.b,t),Z1t(e)}function tpe(e,t){var r;return r=l(Wd(e.b,t),66),!r&&(r=new Ar),r}function Kcn(e,t){var r;r=t.a,bo(r,t.c.d),Ji(r,t.d.d),ly(r.a,e.n)}function _ct(e,t){return l(Xu(Jw(l(wr(e.k,t),16).Mc(),WE)),114)}function xct(e,t){return l(Xu(NS(l(wr(e.k,t),16).Mc(),WE)),114)}function Ycn(){return x_(),Z(X(zkt,1),Ce,413,0,[X0,$y,Fy,qE])}function Jcn(){return A0(),Z(X(Qxt,1),Ce,414,0,[eL,QD,nee,ree])}function Xcn(){return b_(),Z(X(p$,1),Ce,310,0,[KQ,YQ,JQ,XQ])}function Zcn(){return YS(),Z(X(V2e,1),Ce,384,0,[TI,q2e,pee,gee])}function Qcn(){return Mj(),Z(X(uNt,1),Ce,368,0,[Eee,U$,H$,oL])}function eln(){return Xl(),Z(X(yNt,1),Ce,418,0,[Hy,qx,Vx,See])}function tln(){return Kb(),Z(X(h4t,1),Ce,409,0,[_L,XI,IB,CB])}function nln(){return wy(),Z(X(Pte,1),Ce,205,0,[xB,Mte,a2,s2])}function rln(){return bp(),Z(X(h_e,1),Ce,270,0,[B1,f_e,$te,Bte])}function iln(){return lC(),Z(X(GSe,1),Ce,302,0,[kI,HSe,aL,zSe])}function oln(){return tC(),Z(X(axe,1),Ce,354,0,[cne,$B,une,ane])}function sln(){return d7(),Z(X(Ixe,1),Ce,355,0,[vne,Nxe,Cxe,kxe])}function aln(){return S7(),Z(X(tOt,1),Ce,406,0,[xne,Tne,_ne,Ane])}function uln(){return JS(),Z(X(C_e,1),Ce,402,0,[LB,e4,t4,n4])}function cln(){return g7(),Z(X(Lke,1),Ce,396,0,[Wne,Kne,Yne,Jne])}function lln(){return O_(),Z(X(LNe,1),Ce,280,0,[zL,uU,ONe,DNe])}function dln(){return gp(),Z(X(Tre,1),Ce,225,0,[Sre,GL,Ek,WT])}function fln(){return vc(),Z(X(fDt,1),Ce,293,0,[VL,Ih,q1,qL])}function hln(){return sc(),Z(X(N4,1),Ce,381,0,[XL,xm,JL,hv])}function pln(){return qP(),Z(X(e5,1),Ce,290,0,[r3e,o3e,kre,i3e])}function gln(){return Kj(),Z(X(c3e,1),Ce,327,0,[Nre,s3e,u3e,a3e])}function bln(){return Pj(),Z(X(IDt,1),Ce,412,0,[Cre,d3e,l3e,f3e])}function mln(e){var t;return e.j==(He(),dn)&&(t=D0t(e),fu(t,Qt))}function kct(e,t){var r;for(r=e.j.c.length;r0&&ua(e.g,0,t,0,e.i),t}function PS(e){return YN(),ae(e.g,157)?l(e.g,157):null}function vln(e){return PP(),ma(Lre,e)?l(Ht(Lre,e),343).Pg():null}function zc(e,t,r){return t<0?oJ(e,r):l(r,69).uk().zk(e,e.ei(),t)}function Eln(e,t){return yS(new Me(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)}function Ict(e,t){return be(t)===be(e)?"(this Map)":t==null?tu:ms(t)}function Rct(e,t){e8();var r;return r=l(Ht(vU,e),58),!r||r.dk(t)}function Sln(e){if(e.p!=1)throw Y(new lu);return Dn(e.f)<<24>>24}function Tln(e){if(e.p!=1)throw Y(new lu);return Dn(e.k)<<24>>24}function Aln(e){if(e.p!=7)throw Y(new lu);return Dn(e.k)<<16>>16}function _ln(e){if(e.p!=7)throw Y(new lu);return Dn(e.f)<<16>>16}function dE(e,t){return t.e==0||e.e==0?wI:(Q_(),dJ(e,t))}function xln(e,t,r){if(r){var o=r.me();e.a[t]=o(r)}else delete e.a[t]}function Oct(e,t){var r;return r=new lS,e.Ed(r),r.a+="..",t.Fd(r),r.a}function yd(e){var t;for(t=0;e.Ob();)e.Pb(),t=Ao(t,1);return lj(t)}function kln(e,t,r){var o;o=l(Ht(e.g,r),60),Fe(e.a.c,new ko(t,o))}function Nln(e,t,r,o,a){var u;u=YEn(a,r,o),Fe(t,Xyn(a,u)),Gwn(e,a,t)}function Dct(e,t,r){e.i=0,e.e=0,t!=r&&(wpt(e,t,r),mpt(e,t,r))}function Cln(e){e.a=null,e.e=null,Mw(e.b.c,0),Mw(e.f.c,0),e.c=null}function Iln(e,t){return l(t==null?Ss(ts(e.f,null)):e3(e.i,t),291)}function Rln(e,t,r){return JV(ce(Ss(ts(e.f,t))),ce(Ss(ts(e.f,r))))}function HP(e,t,r){return G7(e,t,r,ae(t,104)&&(l(t,20).Bb&No)!=0)}function Oln(e,t,r){return nx(e,t,r,ae(t,104)&&(l(t,20).Bb&No)!=0)}function Dln(e,t,r){return BEn(e,t,r,ae(t,104)&&(l(t,20).Bb&No)!=0)}function rpe(e,t){return e==(zt(),Xr)&&t==Xr?4:e==Xr||t==Xr?8:32}function Lct(e,t){Ohe.call(this),this.a=e,this.b=t,Fe(this.a.b,this)}function oy(e,t){fr(),Km.call(this,e),this.a=t,this.c=-1,this.b=-1}function ipe(e,t,r,o,a){this.i=e,this.a=t,this.e=r,this.j=o,this.f=a}function ap(e,t){jf(),Ob.call(this,e,1,Z(X(Rn,1),Qn,30,15,[t]))}function gh(e,t){Lo();var r;return r=l(e,69).tk(),ryn(r,t),r.vl(t)}function Mct(e,t){var r;for(r=t;r;)Gw(e,r.i,r.j),r=Br(r);return e}function Pct(e,t){var r;for(r=0;r"+qhe(e.d):"e_"+s0(e)}function $ct(e){ae(e,209)&&!Ye(Ke(e.mf((_n(),iU))))&&ZAn(l(e,19))}function spe(e){e.b!=e.c&&(e.a=we(Ii,Rt,1,8,5,1),e.b=0,e.c=0)}function Bb(e,t,r){this.e=e,this.a=Ii,this.b=gyt(t),this.c=t,this.d=r}function sy(e,t,r,o){Fut.call(this,1,r,o),this.c=e,this.b=t}function BW(e,t,r,o){$ut.call(this,1,r,o),this.c=e,this.b=t}function UW(e,t,r,o,a,u,f){gK.call(this,t,o,a,u,f),this.c=e,this.a=r}function HW(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function Bct(e){this.c=e,this.a=l(Sl(e),160),this.b=this.a.hk().ti()}function Pln(e,t){return eg(),Tn(Ne(e.a),t)}function jln(e,t){return eg(),Tn(Ne(e.a),t)}function zP(){zP=K,qne=new Kle("STRAIGHT",0),Oke=new Kle("BEND",1)}function H3(){H3=K,QI=new $le("UPPER",0),ZI=new $le("LOWER",1)}function GP(){GP=K,cte=new Mle(_d,0),ute=new Mle("ALTERNATING",1)}function qP(){qP=K,r3e=new Lot,o3e=new wst,kre=new qat,i3e=new yst}function VP(e){var t;return e?new zfe(e):(t=new uh,SK(t,e),t)}function Fln(e,t){var r;for(r=e.d-1;r>=0&&e.a[r]===t[r];r--);return r<0}function $ln(e,t){var r;return Fct(t),r=e.slice(0,t),r.length=t,rK(r,e)}function Au(e,t){var r;return t.b.Kb(Udt(e,t.c.Ve(),(r=new uYe(t),r)))}function WP(e){Mbe(),grt(this,Dn(Gi(u0(e,24),oF)),Dn(Gi(e,oF)))}function Uct(){Uct=K,ckt=yn((cj(),Z(X(k2e,1),Ce,429,0,[iee,w$])))}function Hct(){Hct=K,oNt=yn((E_(),Z(X(iNt,1),Ce,506,0,[iL,mee])))}function zct(){zct=K,LNt=yn((m6(),Z(X(JSe,1),Ce,424,0,[K$,YSe])))}function Gct(){Gct=K,INt=yn((tj(),Z(X(USe,1),Ce,427,0,[BSe,Oee])))}function qct(){qct=K,FNt=yn((l6(),Z(X(QSe,1),Ce,479,0,[ZSe,J$])))}function Vct(){Vct=K,VNt=yn((UP(),Z(X(hTe,1),Ce,425,0,[Qee,fTe])))}function Wct(){Wct=K,YNt=yn((GP(),Z(X(kTe,1),Ce,428,0,[cte,ute])))}function Kct(){Kct=K,HIt=yn((g6(),Z(X(p_e,1),Ce,426,0,[Ute,Hte])))}function Yct(){Yct=K,y4t=yn((H3(),Z(X(w4t,1),Ce,522,0,[QI,ZI])))}function Jct(){Jct=K,x4t=yn((If(),Z(X(_4t,1),Ce,513,0,[aw,kg])))}function Xct(){Xct=K,N4t=yn((zd(),Z(X(k4t,1),Ce,512,0,[Em,uf])))}function Zct(){Zct=K,z4t=yn((vd(),Z(X(H4t,1),Ce,519,0,[rv,U1])))}function Qct(){Qct=K,J4t=yn((g0(),Z(X(Y4t,1),Ce,457,0,[H1,u2])))}function elt(){elt=K,TRt=yn((FP(),Z(X(cxe,1),Ce,430,0,[lne,uxe])))}function tlt(){tlt=K,NRt=yn((_j(),Z(X(lxe,1),Ce,490,0,[BB,d2])))}function nlt(){nlt=K,RRt=yn((rj(),Z(X(fxe,1),Ce,431,0,[dxe,bne])))}function KP(){KP=K,Dne=new qle(Dwe,0),eke=new qle("TARGET_WIDTH",1)}function rlt(){rlt=K,kOt=yn((KP(),Z(X(tke,1),Ce,481,0,[Dne,eke])))}function ilt(){ilt=K,POt=yn((o6(),Z(X(cke,1),Ce,433,0,[$ne,XB])))}function olt(){olt=K,e6t=yn((x6(),Z(X(Rke,1),Ce,432,0,[QB,Ike])))}function slt(){slt=K,t6t=yn((zP(),Z(X(Dke,1),Ce,389,0,[qne,Oke])))}function alt(){alt=K,w6t=yn((w6(),Z(X(m6t,1),Ce,498,0,[rre,nre])))}function Bln(){return vi(),Z(X(E4,1),Ce,87,0,[hf,fs,as,ff,il])}function Uln(){return He(),Z(X(Io,1),ea,64,0,[Is,Wt,Qt,dn,Kt])}function Hln(e){return(e.k==(zt(),Xr)||e.k==mi)&&gr(e,(Ie(),RI))}function zln(e,t,r){return l(t==null?eu(e.f,null,r):_0(e.i,t,r),291)}function ape(e,t,r){e.a.c.length=0,Fxn(e,t,r),e.a.c.length==0||cAn(e,t)}function Wr(e,t,r,o){var a;a=new ht,a.c=t,a.b=r,a.a=o,o.b=r.a=a,++e.b}function upe(e,t){var r,o;for(r=t,o=0;r>0;)o+=e.a[r],r-=r&-r;return o}function ult(e,t){var r;for(r=t;r;)Gw(e,-r.i,-r.j),r=Br(r);return e}function Gln(e,t){var r,o;o=!1;do r=opt(e,t),o=o|r;while(r);return o}function lo(e,t){var r,o;for(Mt(t),o=e.Jc();o.Ob();)r=o.Pb(),t.Ad(r)}function clt(e,t){var r,o;return r=t.jd(),o=e.De(r),!!o&&ia(o.e,t.kd())}function llt(e,t){var r;return r=t.jd(),new t0(r,e.e.pc(r,l(t.kd(),18)))}function qln(e,t){var r;return r=e.a.get(t),r??we(Ii,Rt,1,0,5,1)}function nc(e,t,r){var o;return o=(at(t,e.c.length),e.c[t]),e.c[t]=r,o}function dlt(e,t){this.c=0,this.b=t,Ant.call(this,e,17493),this.a=this.c}function cpe(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function d1(){hn.call(this),Urt(this),this.d.b=this.d,this.d.a=this.d}function zW(e){YP(),!sf&&(this.c=e,this.e=!0,this.a=new je)}function flt(e){HEt(),lZe(this),this.a=new Ar,Gge(this,e),Gn(this.a,e)}function hlt(){lV(this),this.b=new Me(Kr,Kr),this.a=new Me(Li,Li)}function lpe(e){Een.call(this,e==null?tu:ms(e),ae(e,81)?l(e,81):null)}function Vln(e){e&&ufn((Wce(),VEe)),--u$,e&&c$!=-1&&(jen(c$),c$=-1)}function n6(e){e.i=0,hO(e.b,null),hO(e.c,null),e.a=null,e.e=null,++e.g}function YP(){YP=K,sf=!0,hxt=!1,pxt=!1,bxt=!1,gxt=!1}function fo(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function dpe(e,t){return ae(t,144)?wt(e.c,l(t,144).c):!1}function GW(e,t){var r;return r=l(Wd(e.d,t),21),r||l(Wd(e.e,t),21)}function fE(e,t){return(y1(e),BA(new Et(e,new Lpe(t,e.a)))).zd(TT)}function Wln(){return Vi(),Z(X(z2e,1),Ce,364,0,[id,kh,la,da,Ho])}function Kln(){return v7(),Z(X(CRt,1),Ce,365,0,[pne,dne,gne,fne,hne])}function Yln(){return yy(),Z(X(ENt,1),Ce,372,0,[sL,q$,V$,G$,z$])}function Jln(){return xC(),Z(X(IOt,1),Ce,370,0,[f2,BT,f4,d4,LL])}function Xln(){return J6(),Z(X(hke,1),Ce,331,0,[lke,Bne,fke,Une,dke])}function Zln(){return hC(),Z(X(s_e,1),Ce,329,0,[o_e,jte,Fte,VI,WI])}function Qln(){return ic(),Z(X(xTe,1),Ce,166,0,[gL,LI,xp,MI,gm])}function edn(){return Jd(),Z(X(cf,1),Ce,161,0,[xt,ri,Rd,Cg,Np])}function tdn(){return vE(),Z(X(_4,1),Ce,260,0,[V1,WL,KNe,A4,YNe])}function ndn(e){return F9(),function(){return Vcn(e,this,arguments)}}function Pu(e){return e.t||(e.t=new QXe(e),aC(new mQe(e),0,e.t)),e.t}function plt(e){var t;return e.c||(t=e.r,ae(t,89)&&(e.c=l(t,29))),e.c}function rdn(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function qW(e){var t,r,o;return t=e&Hu,r=e>>22&Hu,o=e<0?Ep:0,Ua(t,r,o)}function glt(e){var t;return t=e.length,wt(Bt.substr(Bt.length-t,t),e)}function en(e){if(an(e))return e.c=e.a,e.a.Pb();throw Y(new vs)}function jS(e,t){return t==0||e.e==0?e:t>0?Hgt(e,t):Dwt(e,-t)}function fpe(e,t){return t==0||e.e==0?e:t>0?Dwt(e,t):Hgt(e,-t)}function blt(e){this.b=e,tn.call(this,e),this.a=l(Vt(this.b.a,4),131)}function mlt(e){this.b=e,ES.call(this,e),this.a=l(Vt(this.b.a,4),131)}function Vl(e,t,r,o,a){Tlt.call(this,t,o,a),this.c=e,this.b=r}function hpe(e,t,r,o,a){Fut.call(this,t,o,a),this.c=e,this.a=r}function ppe(e,t,r,o,a){$ut.call(this,t,o,a),this.c=e,this.a=r}function gpe(e,t,r,o,a){Tlt.call(this,t,o,a),this.c=e,this.a=r}function idn(e,t,r){return yr(yS(U_(e),To(t.b)),yS(U_(e),To(r.b)))}function odn(e,t,r){return yr(yS(U_(e),To(t.e)),yS(U_(e),To(r.e)))}function sdn(e,t){return b.Math.min(f1(t.a,e.d.d.c),f1(t.b,e.d.d.c))}function VW(e,t,r){var o;return o=e.Fh(t),o>=0?e.Ih(o,r,!0):O0(e,t,r)}function adn(e,t){var r,o;r=l(qpn(e.c,t),18),r&&(o=r.gc(),r.$b(),e.d-=o)}function wlt(e){var t,r;return t=e.c.i,r=e.d.i,t.k==(zt(),mi)&&r.k==mi}function z3(e){var t,r;++e.j,t=e.g,r=e.i,e.g=null,e.i=0,e.Mi(r,t),e.Li()}function r6(e,t){e.Zi(e.i+1),w3(e,e.i,e.Xi(e.i,t)),e.Ki(e.i++,t),e.Li()}function ylt(e,t,r){var o;o=new gde(e.a),X3(o,e.a.a),eu(o.f,t,r),e.a.a=o}function bpe(e,t,r,o){var a;for(a=0;at)throw Y(new Ia(sme(e,t,"index")));return e}function cdn(e,t){var r;r=e.q.getHours()+(t/60|0),e.q.setMinutes(t),OC(e,r)}function FS(e,t){return zi(t)?t==null?Tme(e.f,null):Fht(e.i,t):Tme(e.f,t)}function vlt(e,t){Tnt.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function Elt(e,t){Ant.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function Epe(e,t){I8.call(this,t.xd(),t.wd()&-6),Mt(e),this.a=e,this.b=t}function Slt(e,t,r){k9.call(this,r),this.b=e,this.c=t,this.d=(cY(),$re)}function Tlt(e,t,r){this.d=e,this.k=t?1:0,this.f=r?1:0,this.o=-1,this.p=0}function Alt(e,t,r){this.a=e,this.c=t,this.d=r,Fe(t.e,this),Fe(r.b,this)}function Vd(e){this.c=e,this.a=new V(this.c.a),this.b=new V(this.c.b)}function JP(){this.e=new je,this.c=new je,this.d=new je,this.b=new je}function _lt(){this.g=new Rce,this.b=new Rce,this.a=new je,this.k=new je}function xlt(){this.a=new Mce,this.b=new jZe,this.d=new pG,this.e=new hG}function XP(e,t,r){this.a=e,this.b=t,this.c=r,Fe(e.t,this),Fe(t.i,this)}function i6(){this.b=new Ar,this.a=new Ar,this.b=new Ar,this.a=new Ar}function h_(){h_=K;var e,t;AU=($A(),t=new I9,t),_U=(e=new eq,e)}function ZP(){ZP=K,p4=new cr("org.eclipse.elk.labels.labelManager")}function klt(){klt=K,MSe=new Pr("separateLayerConnections",(Mj(),Eee))}function o6(){o6=K,$ne=new Vle("FIXED",0),XB=new Vle("CENTER_NODE",1)}function vd(){vd=K,rv=new Ble("REGULAR",0),U1=new Ble("CRITICAL",1)}function ldn(e,t){var r;return r=ekn(e,t),e.b=new Nj(r.c.length),wxn(e,r)}function ddn(e,t,r){var o;return++e.e,--e.f,o=l(e.d[t].ed(r),138),o.kd()}function fdn(e){var t,r;return t=e.jd(),r=l(e.kd(),18),BO(r.Lc(),new gKe(t))}function YW(e){var t;return t=e.b,t.b==0?null:l(sa(t,0),65).b}function Spe(e){if(e.a){if(e.e)return Spe(e.e)}else return e;return null}function hdn(e,t){return e.pt.p?-1:0}function QP(e,t){return Mt(t),e.cr||t=0?e.Ih(r,!0,!0):O0(e,t,!0)}function Fdn(e,t){return yr(ue(ce(F(e,(Ie(),nw)))),ue(ce(F(t,nw))))}function Lpe(e,t){I8.call(this,t.xd(),t.wd()&-16449),Mt(e),this.a=e,this.c=t}function Mpe(e,t,r,o,a){ort(this),this.b=e,this.d=t,this.f=r,this.g=o,this.c=a}function Da(e){lV(this),HO(e>=0,"Initial capacity must not be negative")}function BS(e){var t;return kn(e),ae(e,206)?(t=l(e,206),t):new IKe(e)}function $dn(e){for(;!e.a;)if(!$it(e.c,new oYe(e)))return!1;return!0}function Bdn(e){var t;if(!e.a)throw Y(new oat);return t=e.a,e.a=Br(e.a),t}function Udn(e){if(e.b<=0)throw Y(new vs);return--e.b,e.a-=e.c.c,Re(e.a)}function Ppe(e,t){if(e.g==null||t>=e.i)throw Y(new iV(t,e.i));return e.g[t]}function ddt(e,t,r){if(C_(e,r),r!=null&&!e.dk(r))throw Y(new JG);return r}function Hdn(e,t,r){var o;return o=hpt(e,t,r),e.b=new Nj(o.c.length),Xme(e,o)}function fdt(e){var t;if(e.ll())for(t=e.i-1;t>=0;--t)oe(e,t);return npe(e)}function zdn(e){nj(),l(e.mf((_n(),cv)),185).Ec((xu(),KL)),e.of(yre,null)}function nj(){nj=K,E6t=new aGe,T6t=new uGe,S6t=rpn((_n(),yre),E6t,G1,T6t)}function hdt(){hdt=K,q7(),W3e=Kr,DLt=Li,K3e=new QR(Kr),LLt=new QR(Li)}function rj(){rj=K,dxe=new Gle("LEAF_NUMBER",0),bne=new Gle("NODE_SIZE",1)}function tK(e){e.a=we(Rn,Qn,30,e.b+1,15,1),e.c=we(Rn,Qn,30,e.b,15,1),e.d=0}function Gdn(e,t){e.a.Le(t.d,e.b)>0&&(Fe(e.c,new Ofe(t.c,t.d,e.d)),e.b=t.d)}function g_(e,t,r,o){var a;o=(h0(),o||h2e),a=e.slice(t,r),ame(a,e,t,r,-t,o)}function qc(e,t,r,o,a){return t<0?O0(e,r,o):l(r,69).uk().wk(e,e.ei(),t,o,a)}function pdt(e,t){var r,o;return o=t/e.c.Pd().gc()|0,r=t%e.c.Pd().gc(),$S(e,o,r)}function jpe(e){var t,r;if(!e.b)return null;for(r=e.b;t=r.a[0];)r=t;return r}function gdt(e){var t,r;if(!e.b)return null;for(r=e.b;t=r.a[1];)r=t;return r}function qdn(e){return ae(e,183)?""+l(e,183).a:e==null?null:ms(e)}function Vdn(e){return ae(e,183)?""+l(e,183).a:e==null?null:ms(e)}function bdt(e,t){if(t.a)throw Y(new Es(_2t));pi(e.a,t),t.a=e,!e.j&&(e.j=t)}function _u(){_u=K,Wf=new Nq(hT,0),L1=new Nq(px,1),nd=new Nq(pT,2)}function b_(){b_=K,KQ=new i8("All",0),YQ=new qnt,JQ=new rrt,XQ=new Vnt}function mdt(){mdt=K,dxt=yn((b_(),Z(X(p$,1),Ce,310,0,[KQ,YQ,JQ,XQ])))}function wdt(){wdt=K,ekt=yn((A0(),Z(X(Qxt,1),Ce,414,0,[eL,QD,nee,ree])))}function ydt(){ydt=K,Gkt=yn((x_(),Z(X(zkt,1),Ce,413,0,[X0,$y,Fy,qE])))}function vdt(){vdt=K,Jkt=yn((YS(),Z(X(V2e,1),Ce,384,0,[TI,q2e,pee,gee])))}function Edt(){Edt=K,cNt=yn((Mj(),Z(X(uNt,1),Ce,368,0,[Eee,U$,H$,oL])))}function Sdt(){Sdt=K,vNt=yn((Xl(),Z(X(yNt,1),Ce,418,0,[Hy,qx,Vx,See])))}function Tdt(){Tdt=K,p4t=yn((Kb(),Z(X(h4t,1),Ce,409,0,[_L,XI,IB,CB])))}function Adt(){Adt=K,FIt=yn((wy(),Z(X(Pte,1),Ce,205,0,[xB,Mte,a2,s2])))}function _dt(){_dt=K,UIt=yn((bp(),Z(X(h_e,1),Ce,270,0,[B1,f_e,$te,Bte])))}function xdt(){xdt=K,RNt=yn((lC(),Z(X(GSe,1),Ce,302,0,[kI,HSe,aL,zSe])))}function kdt(){kdt=K,SRt=yn((tC(),Z(X(axe,1),Ce,354,0,[cne,$B,une,ane])))}function Ndt(){Ndt=K,ZRt=yn((d7(),Z(X(Ixe,1),Ce,355,0,[vne,Nxe,Cxe,kxe])))}function Cdt(){Cdt=K,nOt=yn((S7(),Z(X(tOt,1),Ce,406,0,[xne,Tne,_ne,Ane])))}function Idt(){Idt=K,X4t=yn((JS(),Z(X(C_e,1),Ce,402,0,[LB,e4,t4,n4])))}function Rdt(){Rdt=K,r6t=yn((g7(),Z(X(Lke,1),Ce,396,0,[Wne,Kne,Yne,Jne])))}function Odt(){Odt=K,sDt=yn((O_(),Z(X(LNe,1),Ce,280,0,[zL,uU,ONe,DNe])))}function Ddt(){Ddt=K,uDt=yn((gp(),Z(X(Tre,1),Ce,225,0,[Sre,GL,Ek,WT])))}function Ldt(){Ldt=K,hDt=yn((vc(),Z(X(fDt,1),Ce,293,0,[VL,Ih,q1,qL])))}function Mdt(){Mdt=K,kDt=yn((qP(),Z(X(e5,1),Ce,290,0,[r3e,o3e,kre,i3e])))}function Pdt(){Pdt=K,ADt=yn((sc(),Z(X(N4,1),Ce,381,0,[XL,xm,JL,hv])))}function jdt(){jdt=K,NDt=yn((Kj(),Z(X(c3e,1),Ce,327,0,[Nre,s3e,u3e,a3e])))}function Fdt(){Fdt=K,RDt=yn((Pj(),Z(X(IDt,1),Ce,412,0,[Cre,d3e,l3e,f3e])))}function l6(){l6=K,ZSe=new Dle(_d,0),J$=new Dle("IMPROVE_STRAIGHTNESS",1)}function ij(){ij=K,Lne=new Jq(GSt,0),rke=new Jq(nve,1),nke=new Jq(_d,2)}function Fpe(e){var t;if(!wK(e))throw Y(new vs);return e.e=1,t=e.d,e.d=null,t}function ug(e){var t;return gs(e)&&(t=0-e,!isNaN(t))?t:p1(k_(e))}function _s(e,t,r){for(;r=0;)++t[0]}function qdt(e,t){A2e=new Vm,tkt=t,vI=e,l(vI.b,68),kpe(vI,A2e,null),Ovt(vI)}function G3(){G3=K,uee=new Iq("XY",0),aee=new Iq("X",1),cee=new Iq("Y",2)}function Za(){Za=K,Nd=new Cq("TOP",0),M1=new Cq(px,1),rd=new Cq(vwe,2)}function lp(){lp=K,dL=new Pq(_d,0),ZE=new Pq("TOP",1),kT=new Pq(vwe,2)}function g6(){g6=K,Ute=new Ple("INPUT_ORDER",0),Hte=new Ple("PORT_DEGREE",1)}function m_(){m_=K,KEe=Ua(Hu,Hu,524287),Y_t=Ua(0,0,ED),YEe=qW(1),qW(2),JEe=qW(0)}function Bpe(e){var t;return t=HS(Vt(e,32)),t==null&&(Ha(e),t=HS(Vt(e,32))),t}function Upe(e){var t;return e.Lh()||(t=ln(e.Ah())-e.gi(),e.Xh().Kk(t)),e.wh()}function Vdt(e){(this.q?this.q:(At(),At(),xh)).zc(e.q?e.q:(At(),At(),xh))}function Wdt(e,t){va(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Kdt(e,t){gu(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Ydt(e,t){Hb(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Jdt(e,t){Ub(e,t==null||V8((Mt(t),t))||isNaN((Mt(t),t))?0:(Mt(t),t))}function Zdn(e,t){AS(l(l(e.f,19).mf((_n(),bk)),103))&&Tgt(She(l(e.f,19)),t)}function sK(e,t){var r;return r=Ur(e.d,t),r>=0?s7(e,r,!0,!0):O0(e,t,!0)}function uj(e,t){var r;return r=e.bd(t),r>=0?(e.ed(r),!0):!1}function aK(e,t,r){var o;return o=e.g[t],w3(e,t,e.Xi(t,r)),e.Pi(t,r,o),e.Li(),o}function uK(e){var t;return e.d!=e.r&&(t=Sl(e),e.e=!!t&&t.jk()==YAt,e.d=t),e.e}function cK(e,t){var r;for(kn(e),kn(t),r=!1;t.Ob();)r=r|e.Ec(t.Pb());return r}function bs(e,t){var r,o;return y1(e),o=new Epe(t,e.a),r=new Uit(o),new Et(e,r)}function Wd(e,t){var r;return r=l(Ht(e.e,t),395),r?(prt(e,r),r.e):null}function Qdn(e,t){var r,o,a;a=t.c.i,r=l(Ht(e.f,a),60),o=r.d.c-r.e.c,yge(t.a,o,0)}function bh(e,t,r){var o,a;for(o=10,a=0;ae.a[o]&&(o=r);return o}function oft(e){var t;for(++e.a,t=e.c.a.length;e.a=0&&t0?sr:Ea(e,Qi)<0?Qi:Dn(e)}function Kl(e,t,r){var o;if(t==null)throw Y(new rS);return o=op(e,t),xln(e,t,r),o}function cft(e,t){return Mt(t),Zfe(e),e.d.Ob()?(t.Ad(e.d.Pb()),!0):!1}function lft(e){this.b=new je,this.a=new je,this.c=new je,this.d=new je,this.e=e}function dft(e,t,r){G8.call(this),qpe(this),this.a=e,this.c=r,this.b=t.d,this.f=t.e}function dfn(){return zt(),Z(X(bee,1),Ce,252,0,[Xr,gi,mi,_a,ta,af,rL,AI])}function fft(){fft=K,gDt=yn((vE(),Z(X(_4,1),Ce,260,0,[V1,WL,KNe,A4,YNe])))}function hft(){hft=K,A6t=yn((Jd(),Z(X(cf,1),Ce,161,0,[xt,ri,Rd,Cg,Np])))}function pft(){pft=K,SNt=yn((yy(),Z(X(ENt,1),Ce,372,0,[sL,q$,V$,G$,z$])))}function gft(){gft=K,IRt=yn((v7(),Z(X(CRt,1),Ce,365,0,[pne,dne,gne,fne,hne])))}function bft(){bft=K,KNt=yn((ic(),Z(X(xTe,1),Ce,166,0,[gL,LI,xp,MI,gm])))}function mft(){mft=K,$It=yn((hC(),Z(X(s_e,1),Ce,329,0,[o_e,jte,Fte,VI,WI])))}function wft(){wft=K,ROt=yn((xC(),Z(X(IOt,1),Ce,370,0,[f2,BT,f4,d4,LL])))}function yft(){yft=K,jOt=yn((J6(),Z(X(hke,1),Ce,331,0,[lke,Bne,fke,Une,dke])))}function ffn(){return B7(),Z(X($Se,1),Ce,277,0,[_ee,Nee,Aee,Ree,kee,xee,Iee,Cee])}function hfn(){return A1(),Z(X(_6t,1),Ce,287,0,[Bke,Ai,yo,HT,eo,$r,UT,lf])}function pfn(){return sT(),Z(X(s5,1),Ce,235,0,[Dre,yU,o5,i5,Ore,wU,mU,Rre])}function gfn(e,t){return US(),-na(l(F(e,(js(),c2)),15).a,l(F(t,c2),15).a)}function bfn(e,t,r,o){var a;e.j=-1,vme(e,Zbe(e,t,r),(Lo(),a=l(t,69).tk(),a.vl(o)))}function mfn(e,t,r){var o,a;for(a=new V(r);a.a0?t-1:t,OQe(YQt($ft(Rfe(new sS,r),e.n),e.j),e.k)}function dj(e,t){var r;return y1(e),r=new Aat(e,e.a.xd(),e.a.wd()|4,t),new Et(e,r)}function yfn(e,t){var r,o;return r=l(py(e.d,t),18),r?(o=t,e.e.pc(o,r)):null}function vft(e){this.d=e,this.c=e.c.vc().Jc(),this.b=null,this.a=null,this.e=(M9(),jQ)}function w0(e){if(e<0)throw Y(new jt("Illegal Capacity: "+e));this.g=this.$i(e)}function vfn(e,t){if(0>e||e>t)throw Y(new Zce("fromIndex: 0, toIndex: "+e+fwe+t))}function Eft(e,t){return!!J3(e,t,Dn(wo(Sh,ph(Dn(wo(t==null?0:Rr(t),Th)),15))))}function Efn(e,t){AS(l(F(l(e.e,9),(Be(),Zr)),103))&&(At(),xi(l(e.e,9).j,t))}function Sfn(e){var t;return t=ue(ce(F(e,(Be(),_g)))),t<0&&(t=0,Te(e,_g,t)),t}function fj(e,t){var r,o;for(o=e.Jc();o.Ob();)r=l(o.Pb(),70),Te(r,(Ie(),OT),t)}function Tfn(e,t,r){var o;o=b.Math.max(0,e.b/2-.5),bC(r,o,1),Fe(t,new ftt(r,o))}function Sft(e,t,r,o,a,u){var f;f=WW(o),bo(f,a),Ji(f,u),yt(e.a,o,new K8(f,t,r.f))}function Tft(e,t){Vn(e,(yh(),Nne),t.f),Vn(e,iOt,t.e),Vn(e,kne,t.d),Vn(e,rOt,t.c)}function fK(e){var t;Hw(!!e.c),t=e.c.a,Vc(e.d,e.c),e.b==e.c?e.b=t:--e.a,e.c=null}function Aft(e){return e.a>=-.01&&e.a<=nf&&(e.a=0),e.b>=-.01&&e.b<=nf&&(e.b=0),e}function hE(e){Z_();var t,r;for(r=ove,t=0;tr&&(r=e[t]);return r}function _ft(e,t){var r;if(r=iD(e.Ah(),t),!r)throw Y(new jt(R1+t+tQ));return r}function uy(e,t){var r;for(r=e;Br(r);)if(r=Br(r),r==t)return!0;return!1}function Afn(e,t){return t&&e.b[t.g]==t?(ii(e.b,t.g,null),--e.c,!0):!1}function Vc(e,t){var r;return r=t.c,t.a.b=t.b,t.b.a=t.a,t.a=t.b=null,t.c=null,--e.b,r}function La(e,t){var r,o,a,u;for(Mt(t),o=e.c,a=0,u=o.length;a0&&(e.a/=t,e.b/=t),e}function hj(e){this.b=(kn(e),new Tu(e)),this.a=new je,this.d=new je,this.e=new ro}function qpe(e){e.b=(_u(),L1),e.f=(Za(),M1),e.d=(wc(2,Iy),new Da(2)),e.e=new ro}function kft(){kft=K,b$=(Sd(),Z(X(jy,1),Ce,240,0,[Bs,$a,Us])).length,eee=b$}function Sd(){Sd=K,Bs=new kq("BEGIN",0),$a=new kq(px,1),Us=new kq("END",2)}function Kd(){Kd=K,yk=new Qq(px,0),fv=new Qq("HEAD",1),vk=new Qq("TAIL",2)}function m6(){m6=K,K$=new Ole("READING_DIRECTION",0),YSe=new Ole("ROTATION",1)}function w6(){w6=K,rre=new Yle("DIRECT_ROUTING",0),nre=new Yle("BEND_ROUTING",1)}function US(){US=K,_Rt=Pf(Pf(Pf(ZN(new ui,(JS(),e4)),(IC(),Jte)),D_e),j_e)}function dp(){dp=K,kRt=Pf(Pf(Pf(ZN(new ui,(JS(),n4)),(IC(),M_e)),I_e),L_e)}function pE(e,t){return QQt(Y3(e,t,Dn(wo(Sh,ph(Dn(wo(t==null?0:Rr(t),Th)),15)))))}function Vpe(e,t){return Ud(),Yl(wg),b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)}function Wpe(e,t){return Ud(),Yl(wg),b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)}function mc(e){var t;return e.w?e.w:(t=mcn(e),t&&!t.Sh()&&(e.w=t),t)}function Ifn(e){var t;return e==null?null:(t=l(e,198),Twn(t,t.length))}function oe(e,t){if(e.g==null||t>=e.i)throw Y(new iV(t,e.i));return e.Ui(t,e.g[t])}function Rfn(e,t){At();var r,o;for(o=new je,r=0;r=14&&t<=16))),e}function Ift(){Ift=K,$Nt=yn((K6(),Z(X(iTe,1),Ce,284,0,[X$,tTe,rTe,eTe,nTe,Wee])))}function Rft(){Rft=K,BNt=yn((W_(),Z(X(lTe,1),Ce,285,0,[NI,sTe,cTe,uTe,aTe,oTe])))}function Oft(){Oft=K,jNt=yn((_7(),Z(X(XSe,1),Ce,286,0,[zee,Hee,qee,Gee,Vee,Y$])))}function Dft(){Dft=K,CNt=yn((eT(),Z(X(Yx,1),Ce,233,0,[Kx,xI,Wx,zy,YE,KE])))}function Lft(){Lft=K,cDt=yn((T7(),Z(X(UNe,1),Ce,328,0,[Are,FNe,BNe,PNe,$Ne,jNe])))}function Mft(){Mft=K,D6t=yn((Zb(),Z(X(lre,1),Ce,300,0,[cre,w4,m4,ure,g4,b4])))}function Pft(){Pft=K,k6t=yn((mh(),Z(X(zke,1),Ce,259,0,[sre,jL,FL,nU,eU,tU])))}function jft(){jft=K,bDt=yn((qi(),Z(X(JNe,1),Ce,103,0,[W1,pf,Sk,_m,Oh,fa])))}function Fft(){Fft=K,mDt=yn((xu(),Z(X(lU,1),Ce,282,0,[K1,Rp,KL,k4,x4,KT])))}function Lfn(){return Ty(),Z(X(zo,1),Ce,96,0,[ad,Ip,ud,ld,Rh,Il,kc,cd,Cl])}function V3(){V3=K,YL=new tV(aEe,0),_re=new tV("PARENT",1),ZNe=new tV("ROOT",2)}function $ft(e,t){return e.n=t,e.n?(e.f=new je,e.e=new je):(e.f=null,e.e=null),e}function Ub(e,t){var r;r=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,3,r,e.f))}function pj(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,1,r,e.b))}function y0(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,3,r,e.b))}function v0(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,4,r,e.c))}function Hb(e,t){var r;r=e.g,e.g=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,4,r,e.g))}function va(e,t){var r;r=e.i,e.i=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,5,r,e.i))}function gu(e,t){var r;r=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,6,r,e.j))}function E0(e,t){var r;r=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,1,r,e.j))}function S0(e,t){var r;r=e.k,e.k=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,2,r,e.k))}function gj(e,t){var r;r=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&hr(e,new sy(e,0,r,e.a))}function cg(e,t){var r;r=e.s,e.s=t,e.Db&4&&!(e.Db&1)&&hr(e,new BW(e,4,r,e.s))}function cy(e,t){var r;r=e.t,e.t=t,e.Db&4&&!(e.Db&1)&&hr(e,new BW(e,5,r,e.t))}function pK(e,t){var r;r=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&hr(e,new BW(e,2,r,e.d))}function y_(e,t){var r;r=e.F,e.F=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,5,r,t))}function y6(e,t){var r;return r=l(Ht((e8(),vU),e),58),r?r.ek(t):we(Ii,Rt,1,t,5,1)}function fp(e,t){var r,o;return r=t in e.a,r&&(o=op(e,t).pe(),o)?o.a:null}function Mfn(e,t){var r,o,a;return r=(o=(e1(),a=new Uue,a),t&&qme(o,t),o),cge(r,e),r}function Bft(e,t,r){var o;return o=B_(r),Jn(e.c,o,t),Jn(e.d,t,r),Jn(e.e,t,ty(t)),t}function fn(e,t,r,o,a,u){var f;return f=cW(e,t),Hft(r,f),f.i=a?8:0,f.f=o,f.e=a,f.g=u,f}function Kpe(e,t,r,o,a){this.d=t,this.k=o,this.f=a,this.o=-1,this.p=1,this.c=e,this.a=r}function Ype(e,t,r,o,a){this.d=t,this.k=o,this.f=a,this.o=-1,this.p=2,this.c=e,this.a=r}function Jpe(e,t,r,o,a){this.d=t,this.k=o,this.f=a,this.o=-1,this.p=6,this.c=e,this.a=r}function Xpe(e,t,r,o,a){this.d=t,this.k=o,this.f=a,this.o=-1,this.p=7,this.c=e,this.a=r}function Zpe(e,t,r,o,a){this.d=t,this.j=o,this.e=a,this.o=-1,this.p=4,this.c=e,this.a=r}function Uft(e,t){var r,o,a,u;for(o=t,a=0,u=o.length;a0?l(ze(r.a,o-1),9):null}function Yl(e){if(!(e>=0))throw Y(new jt("tolerance ("+e+") must be >= 0"));return e}function W3(){return ire||(ire=new pyt,bE(ire,Z(X(GE,1),Rt,139,0,[new que]))),ire}function bj(){bj=K,S_e=new Hq("NO",0),Wte=new Hq(Dwe,1),E_e=new Hq("LOOK_BACK",2)}function mj(){mj=K,qSe=new Oq("ARD",0),W$=new Oq("MSD",1),Dee=new Oq("MANUAL",2)}function jo(){jo=K,YI=new Fq(qC,0),Cu=new Fq("INPUT",1),Ba=new Fq("OUTPUT",2)}function $fn(){return tD(),Z(X(KSe,1),Ce,268,0,[Pee,WSe,Fee,$ee,jee,Bee,uL,Mee,Lee])}function Bfn(){return rD(),Z(X(n_e,1),Ce,269,0,[Dte,QAe,e_e,Rte,ZAe,t_e,AB,Ite,Ote])}function Ufn(){return Uu(),Z(X(e3e,1),Ce,267,0,[Tk,QL,dU,C4,fU,pU,hU,xre,ZL])}function Ko(e,t,r){return Yb(e,t),Ma(e,r),cg(e,0),cy(e,1),pg(e,!0),hg(e,!0),e}function Gft(e,t){var r;return ae(t,45)?e.c.Kc(t):(r=aY(e,t),Qj(e,t),r)}function K3(e,t){var r,o,a,u;for(o=t,a=0,u=o.length;ar)throw Y(new Ww(t,r));return new dfe(e,t)}function qft(e,t){var r,o;for(r=0,o=e.gc();r=0),k1n(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function qfn(e){var t,r;for(r=new V(Y1t(e));r.a=0}function rge(){rge=K,r4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function Xft(){Xft=K,i4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function ige(){ige=K,o4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function Zft(){Zft=K,s4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function Qft(){Qft=K,a4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function eht(){eht=K,u4t=$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)}function tht(){tht=K,d4t=Ra($n($n(new ui,(Vi(),la),(Zi(),D$)),da,N$),Ho,O$)}function nht(){nht=K,J_t=Z(X(Rn,1),Qn,30,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function oge(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,0,r,e.b))}function sge(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,1,r,e.c))}function bK(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,4,r,e.c))}function age(e,t){var r;r=e.c,e.c=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,1,r,e.c))}function uge(e,t){var r;r=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,1,r,e.d))}function v_(e,t){var r;r=e.k,e.k=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,2,r,e.k))}function mK(e,t){var r;r=e.D,e.D=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,2,r,e.D))}function Ej(e,t){var r;r=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,8,r,e.f))}function Sj(e,t){var r;r=e.i,e.i=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,7,r,e.i))}function cge(e,t){var r;r=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,8,r,e.a))}function lge(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,0,r,e.b))}function Kfn(e,t,r){var o;e.b=t,e.a=r,o=(e.a&512)==512?new JZe:new Gue,e.c=LSn(o,e.b,e.a)}function rht(e,t){return wp(e.e,t)?(Lo(),uK(t)?new nP(t,e):new xO(t,e)):new wnt(t,e)}function Yfn(e){var t,r;return 0>e?new ple:(t=e+1,r=new dlt(t,e),new Gde(null,r))}function Jfn(e,t){At();var r;return r=new dS(1),zi(e)?ns(r,e,t):eu(r.f,e,t),new VG(r)}function Xfn(e,t){var r;r=new Vm,l(t.b,68),l(t.b,68),l(t.b,68),La(t.a,new yfe(e,r,t))}function iht(e,t){var r;return ae(t,8)?(r=l(t,8),e.a==r.a&&e.b==r.b):!1}function Zfn(e){var t;return t=F(e,(Ie(),mr)),ae(t,176)?kgt(l(t,176)):null}function oht(e){var t;return e=b.Math.max(e,2),t=Pge(e),e>t?(t<<=1,t>0?t:BC):t}function wK(e){switch(Sde(e.e!=3),e.e){case 2:return!1;case 0:return!0}return rdn(e)}function dge(e){var t;return e.b==null?(tg(),tg(),l5):(t=e.sl()?e.rl():e.ql(),t)}function sht(e,t){var r,o;for(o=t.vc().Jc();o.Ob();)r=l(o.Pb(),45),V6(e,r.jd(),r.kd())}function fge(e,t){var r;r=e.d,e.d=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,11,r,e.d))}function Tj(e,t){var r;r=e.j,e.j=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,13,r,e.j))}function hge(e,t){var r;r=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,21,r,e.b))}function pge(e,t){e.r>0&&e.c0&&e.g!=0&&pge(e.i,t/e.r*e.i.d))}function gE(e){var t;return RV(e.f.g,e.d),un(e.b),e.c=e.a,t=l(e.a.Pb(),45),e.b=xge(e),t}function aht(e,t){var r;return r=t==null?-1:_s(e.b,t,0),r<0?!1:(yK(e,r),!0)}function Jl(e,t){var r;return Mt(t),r=t.g,e.b[r]?!1:(ii(e.b,r,t),++e.c,!0)}function Aj(e,t){var r,o;return r=1-t,o=e.a[r],e.a[r]=o.a[t],o.a[t]=e,e.b=!0,o.b=!1,o}function yK(e,t){var r;r=sg(e.b,e.b.c.length-1),t0?1:0:(!e.c&&(e.c=ZO(Gs(e.f))),e.c).e}function ght(e,t){t?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function oi(e,t,r,o,a,u,f,p,m,y,v,T,N){return $mt(e,t,r,o,a,u,f,p,m,y,v,T,N),eY(e,!1),e}function TK(e,t,r,o,a,u){var f;this.c=e,f=new je,Q1e(e,f,t,e.b,r,o,a,u),this.a=new Xi(f,0)}function bht(){this.c=new H9(0),this.b=new H9(ive),this.d=new H9(LSt),this.a=new H9(MSt)}function mht(e){this.e=e,this.d=new U9(fy(kS(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function Nj(e){this.b=e,this.a=we(Rn,Qn,30,e+1,15,1),this.c=we(Rn,Qn,30,e,15,1),this.d=0}function ohn(){return _1(),Z(X(d_e,1),Ce,246,0,[kB,SL,TL,u_e,c_e,a_e,l_e,NB,ak,KI])}function shn(){return Fo(),Z(X(Kee,1),Ce,262,0,[Z$,rl,CI,Q$,Qx,XE,II,Xx,Zx,eB])}function wht(e,t){return ue(ce(Xu(L6(Oa(new Et(null,new St(e.c.b,16)),new fJe(e)),t))))}function wge(e,t){return ue(ce(Xu(L6(Oa(new Et(null,new St(e.c.b,16)),new dJe(e)),t))))}function yht(e,t){return Ud(),Yl(nf),b.Math.abs(0-t)<=nf||t==0||isNaN(0)&&isNaN(t)?0:e/t}function ahn(e,t){return x_(),e==X0&&t==$y||e==$y&&t==X0||e==qE&&t==Fy||e==Fy&&t==qE}function uhn(e,t){return x_(),e==X0&&t==Fy||e==X0&&t==qE||e==$y&&t==qE||e==$y&&t==Fy}function chn(e,t,r){var o,a,u;for(o=0,a=0;a>>31;o!=0&&(e[r]=o)}function yge(e,t,r){var o,a;for(a=An(e,0);a.b!=a.d.c;)o=l(Sn(a),8),o.a+=t,o.b+=r;return e}function Y3(e,t,r){var o;for(o=e.b[r&e.f];o;o=o.b)if(r==o.a&&rp(t,o.g))return o;return null}function J3(e,t,r){var o;for(o=e.c[r&e.f];o;o=o.d)if(r==o.f&&rp(t,o.i))return o;return null}function lhn(e,t){var r,o;return r=l(ve(e,(T1(),HB)),15),o=l(ve(t,HB),15),na(r.a,o.a)}function dhn(e,t){var r;t.Tg("General Compactor",1),r=a1n(l(ve(e,(T1(),wne)),387)),r.Bg(e)}function fhn(e,t,r){r.Tg("DFS Treeifying phase",1),w1n(e,t),nSn(e,t),e.a=null,e.b=null,r.Ug()}function hhn(e,t,r,o){var a;a=new aS,Mb(a,"x",w7(e,t,o.a)),Mb(a,"y",y7(e,t,o.b)),RS(r,a)}function phn(e,t,r,o){var a;a=new aS,Mb(a,"x",w7(e,t,o.a)),Mb(a,"y",y7(e,t,o.b)),RS(r,a)}function AK(){AK=K,L4=new qZe,jre=Z(X(au,1),UE,182,0,[]),dLt=Z(X(Dl,1),CEe,62,0,[])}function zS(){zS=K,vee=new Pr("edgelabelcenterednessanalysis.includelabel",(Lt(),D1))}function bu(){bu=K,Z2e=new mG,J2e=new wG,X2e=new yG,Y2e=new vG,Q2e=new EG,eSe=new DN}function ghn(e,t){t.Tg(cSt,1),x1e(fen(new A9((KN(),new pW(e,!1,!1,new c9))))),t.Ug()}function _K(e){var t;return t=Xhe(e),d3(t.a,0)?(jw(),jw(),WQ):(jw(),new vV(t.b))}function xK(e){var t;return t=Xhe(e),d3(t.a,0)?(jw(),jw(),WQ):(jw(),new vV(t.c))}function bhn(e){var t;return t=BP(e),d3(t.a,0)?(V9(),V9(),cxt):(V9(),new Wrt(t.b))}function mhn(e){return e.b.c.i.k==(zt(),mi)?l(F(e.b.c.i,(Ie(),mr)),12):e.b.c}function vht(e){return e.b.d.i.k==(zt(),mi)?l(F(e.b.d.i,(Ie(),mr)),12):e.b.d}function Eht(e){switch(e.g){case 2:return He(),Kt;case 4:return He(),Qt;default:return e}}function Sht(e){switch(e.g){case 1:return He(),dn;case 3:return He(),Wt;default:return e}}function whn(e,t){var r;return r=jbe(e),pme(new Me(r.c,r.d),new Me(r.b,r.a),e.Kf(),t,e.$f())}function yhn(e){var t,r,o;for(o=0,r=new V(e.b);r.a0&&(this.g=this.$i(this.i+(this.i/8|0)+1),e.Oc(this.g))}function Aht(e,t,r){this.g=e,this.d=t,this.e=r,this.a=new je,pvn(this),At(),xi(this.a,null)}function Kc(e,t,r,o,a,u,f){mn.call(this,e,t),this.d=r,this.e=o,this.c=a,this.b=u,this.a=Wl(f)}function Ege(e,t){t.q=e,e.d=b.Math.max(e.d,t.r),e.b+=t.d+(e.a.c.length==0?0:e.c),Fe(e.a,t)}function kK(e,t){var r,o,a,u;return a=e.c,r=e.c+e.b,u=e.d,o=e.d+e.a,t.a>a&&t.au&&t.ba?r=a:Yt(t,r+1),e.a=yl(e.a,0,t)+(""+o)+hhe(e.a,r)}function Gb(e,t,r){var o,a;return a=l(S3(e.d,t),15),o=l(S3(e.b,r),15),!a||!o?null:$S(e,a.a,o.a)}function Chn(e,t,r){return yr(yS(U_(e),new Me(t.e.a,t.e.b)),yS(U_(e),new Me(r.e.a,r.e.b)))}function Ihn(e,t,r){return e==(Kb(),IB)?new FUe:Bu(t,1)!=0?new rle(r.length):new kQe(r.length)}function hr(e,t){var r,o,a;if(r=e.qh(),r!=null&&e.th())for(o=0,a=r.length;o1||e.Ob())return++e.a,e.g=0,t=e.i,e.Ob(),t;throw Y(new vs)}function Phn(e){Jnt();var t;return ett(Yte,e)||(t=new tHe,t.a=e,Xde(Yte,e,t)),l(Wo(Yte,e),642)}function vl(e){var t,r,o,a;return a=e,o=0,a<0&&(a+=nm,o=Ep),r=go(a/fT),t=go(a-r*fT),Ua(t,r,o)}function Fht(e,t){var r;return r=e.a.get(t),r===void 0?++e.d:(Unn(e.a,t),--e.c,++e.b.g),r}function qs(e,t){var r;return t&&(r=t.lf(),r.dc()||(e.q?X3(e.q,r):e.q=new jnt(r))),e}function jhn(e,t){var r,o,a;return r=t.p-e.p,r==0?(o=e.f.a*e.f.b,a=t.f.a*t.f.b,yr(o,a)):r}function Tge(e,t){switch(t){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Whe(e,t)}function Fhn(e){return e.b.c.length!=0&&l(ze(e.b,0),70).a?l(ze(e.b,0),70).a:wW(e)}function $hn(e,t){var r;try{t.be()}catch(o){if(o=ci(o),ae(o,81))r=o,Ot(e.c,r);else throw Y(o)}}function Bhn(e,t){var r;t.Tg("Edge and layer constraint edge reversal",1),r=fTn(e),Kkn(r),t.Ug()}function Uhn(e,t){var r,o;return r=e.j,o=t.j,r!=o?r.g-o.g:e.p==t.p?0:r==(He(),Wt)?e.p-t.p:t.p-e.p}function A_(e,t){this.b=e,this.e=t,this.d=t.j,this.f=(Lo(),l(e,69).vk()),this.k=za(t.e.Ah(),e)}function qb(e,t,r){this.b=(Mt(e),e),this.d=(Mt(t),t),this.e=(Mt(r),r),this.c=this.d+(""+this.e)}function Age(e,t,r,o,a){bpt.call(this,e,r,o,a),this.f=we(Nh,vg,9,t.a.c.length,0,1),Yd(t.a,this.f)}function Z3(e,t,r,o,a){ii(e.c[t.g],r.g,o),ii(e.c[r.g],t.g,o),ii(e.b[t.g],r.g,a),ii(e.b[r.g],t.g,a)}function $ht(e,t){e.c&&(Ayt(e,t,!0),ei(new Et(null,new St(t,16)),new wJe(e))),Ayt(e,t,!1)}function _6(e){this.n=new je,this.e=new Ar,this.j=new Ar,this.k=new je,this.f=new je,this.p=e}function Bht(e){e.r=new hi,e.w=new hi,e.t=new je,e.i=new je,e.d=new hi,e.a=new wS,e.c=new hn}function A0(){A0=K,eL=new o8("UP",0),QD=new o8(IX,1),nee=new o8(hT,2),ree=new o8(pT,3)}function Oj(){Oj=K,g_e=new $q("EQUALLY",0),zte=new $q("NORTH",1),b_e=new $q("NORTH_SOUTH",2)}function __(){__=K,Yee=new Lq("ONE_SIDED",0),Jee=new Lq("TWO_SIDED",1),cL=new Lq("OFF",2)}function Uht(){Uht=K,_Dt=yn((Uu(),Z(X(e3e,1),Ce,267,0,[Tk,QL,dU,C4,fU,pU,hU,xre,ZL])))}function Hht(){Hht=K,pDt=yn((Ty(),Z(X(zo,1),Ce,96,0,[ad,Ip,ud,ld,Rh,Il,kc,cd,Cl])))}function zht(){zht=K,DNt=yn((tD(),Z(X(KSe,1),Ce,268,0,[Pee,WSe,Fee,$ee,jee,Bee,uL,Mee,Lee])))}function Ght(){Ght=K,PIt=yn((rD(),Z(X(n_e,1),Ce,269,0,[Dte,QAe,e_e,Rte,ZAe,t_e,AB,Ite,Ote])))}function Xl(){Xl=K,Hy=new c8(px,0),qx=new c8(hT,1),Vx=new c8(pT,2),See=new c8("TOP",3)}function Dj(){Dj=K,Kte=new zq("OFF",0),uk=new zq("SINGLE_EDGE",1),nv=new zq("MULTI_EDGE",2)}function x6(){x6=K,QB=new Wle("MINIMUM_SPANNING_TREE",0),Ike=new Wle("MAXIMUM_SPANNING_TREE",1)}function Hhn(e,t,r){var o,a;a=l(F(e,(Be(),ss)),79),a&&(o=new Lu,qK(o,0,a),ly(o,r),mo(t,o))}function _ge(e){var t;return t=l(F(e,(Ie(),Hs)),64),e.k==(zt(),mi)&&(t==(He(),Kt)||t==Qt)}function zhn(e){var t;if(e){if(t=e,t.dc())throw Y(new vs);return t.Xb(t.gc()-1)}return kut(e.Jc())}function CK(e,t,r,o){return r==1?(!e.n&&(e.n=new ke(Rs,e,1,7)),_o(e.n,t,o)):qbe(e,t,r,o)}function k6(e,t){var r,o;return o=(r=new LG,r),Ma(o,t),Tn((!e.A&&(e.A=new du(Ka,e,7)),e.A),o),o}function Ghn(e,t,r){var o,a,u,f;return u=null,f=t,a=m0(f,cQ),o=new Qtt(e,r),u=(Ebt(o.a,o.b,a),a),u}function Lj(e,t,r){var o,a,u,f;f=ji(e),o=f.d,a=f.c,u=e.n,t&&(u.a=u.a-o.b-a.a),r&&(u.b=u.b-o.d-a.b)}function qhn(e,t){var r,o,a;return r=e.l+t.l,o=e.m+t.m+(r>>22),a=e.h+t.h+(o>>22),Ua(r&Hu,o&Hu,a&Ep)}function qht(e,t){var r,o,a;return r=e.l-t.l,o=e.m-t.m+(r>>22),a=e.h-t.h+(o>>22),Ua(r&Hu,o&Hu,a&Ep)}function N6(e,t){var r,o;for(Mt(t),o=t.Jc();o.Ob();)if(r=o.Pb(),!e.Gc(r))return!1;return!0}function IK(e){var t;return(!e.a||!(e.Bb&1)&&e.a.Sh())&&(t=Sl(e),ae(t,160)&&(e.a=l(t,160))),e.a}function ci(e){var t;return ae(e,81)?e:(t=e&&e.__java$exception,t||(t=new jpt(e),hZe(t)),t)}function RK(e){if(ae(e,196))return l(e,127);if(e)return null;throw Y(new uS(iAt))}function Vht(e){switch(e.g){case 0:return new Hze;case 1:return new zze;case 2:default:return null}}function xge(e){return e.a.Ob()?!0:e.a!=e.e?!1:(e.a=new Cpe(e.f.f),e.a.Ob())}function Wht(e,t){if(t==null)return!1;for(;e.a!=e.b;)if(pr(t,Bj(e)))return!0;return!1}function Kht(e,t){return!e||!t||e==t?!1:Kgt(e.d.c,t.d.c+t.d.b)&&Kgt(t.d.c,e.d.c+e.d.b)}function Vhn(){return YP(),sf?new zW(null):I0t(khn(),"com.google.common.base.Strings")}function li(e,t){var r,o;return r=t.Nc(),o=r.length,o==0?!1:(Lfe(e.c,e.c.length,r),!0)}function Whn(e,t){var r,o;return r=e.c,o=t.e[e.p],o=128?!1:e<64?f3(Gi(fh(1,e),r),0):f3(Gi(fh(1,e-64),t),0)}function Oge(e,t,r){var o;if(o=e.gc(),t>o)throw Y(new Ww(t,o));return e.Qi()&&(r=uut(e,r)),e.Ci(t,r)}function spn(e,t){var r,o;return r=l(l(Ht(e.g,t.a),49).a,68),o=l(l(Ht(e.g,t.b),49).a,68),tvt(r,o)}function k_(e){var t,r,o;return t=~e.l+1&Hu,r=~e.m+(t==0?1:0)&Hu,o=~e.h+(t==0&&r==0?1:0)&Ep,Ua(t,r,o)}function apn(e){Z_();var t,r,o;for(r=we($i,Pe,8,2,0,1),o=0,t=0;t<2;t++)o+=.5,r[t]=Ubn(o,e);return r}function opt(e,t){var r,o,a,u;for(r=!1,o=e.a[t].length,u=0;ue.f,r=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,t||r}function Q3(e){var t;return t=e.a[e.b],t==null?null:(ii(e.a,e.b,null),e.b=e.b+1&e.a.length-1,t)}function dpt(e,t,r){var o,a;return o=new QW(t,r),a=new Ft,e.b=jwt(e,e.b,o,a),a.b||++e.c,e.b.b=!1,a.d}function fpt(e){var t,r;return r=Q6(e.h),r==32?(t=Q6(e.m),t==32?Q6(e.l)+32:t+20-10):r-12}function Pge(e){var t;if(e<0)return Qi;if(e==0)return 0;for(t=BC;!(t&e);t>>=1);return t}function upn(e){var t;return e==0?"Etc/GMT":(e<0?(e=-e,t="Etc/GMT-"):t="Etc/GMT+",t+Xdt(e))}function jge(e){var t;return(!e.c||!(e.Bb&1)&&e.c.Db&64)&&(t=Sl(e),ae(t,89)&&(e.c=l(t,29))),e.c}function b1(e){var t,r;for(r=new V(e.a.b);r.a1||t>=0&&e.b<3)}function hpn(e,t,r){return!BA(lr(new Et(null,new St(e.c,16)),new RA(new Htt(t,r)))).zd((_b(),TT))}function FK(e,t,r){this.g=e,this.e=new ro,this.f=new ro,this.d=new Ar,this.b=new Ar,this.a=t,this.c=r}function $K(e,t,r,o){this.b=new je,this.n=new je,this.i=o,this.j=r,this.s=e,this.t=t,this.r=0,this.d=0}function bpt(e,t,r,o){this.b=new hn,this.g=new hn,this.d=(rC(),_B),this.c=e,this.e=t,this.d=r,this.a=o}function mpt(e,t,r){e.g=tJ(e,t,(He(),Qt),e.b),e.d=tJ(e,r,Qt,e.b),!(e.g.c==0||e.d.c==0)&&imt(e)}function wpt(e,t,r){e.g=tJ(e,t,(He(),Kt),e.j),e.d=tJ(e,r,Kt,e.j),!(e.g.c==0||e.d.c==0)&&imt(e)}function ppn(e,t,r,o,a){var u;return u=Nme(e,t),r&&PK(u),a&&(e=Wbn(e,t),o?O1=k_(e):O1=Ua(e.l,e.m,e.h)),u}function gpn(e,t,r,o,a){var u,f;if(f=e.length,u=r.length,t<0||o<0||a<0||t+a>f||o+a>u)throw Y(new Nce)}function ypt(e,t){HO(e>=0,"Negative initial capacity"),HO(t>=0,"Non-positive load factor"),Zs(this)}function N_(){N_=K,jSe=new S$e,FSe=new T$e,pNt=new A$e,hNt=new _$e,fNt=new x$e,PSe=(Mt(fNt),new We)}function eC(){eC=K,B_e=new qq(_d,0),Xte=new qq("MIDDLE_TO_MIDDLE",1),kL=new qq("AVOID_OVERLAP",2)}function Uge(e,t,r){switch(t){case 0:!e.o&&(e.o=new pu((Qs(),Dh),Rg,e,0)),Cj(e.o,r);return}rJ(e,t,r)}function bpn(e,t){switch(t.g){case 0:ae(e.b,638)||(e.b=new Lht);break;case 1:ae(e.b,639)||(e.b=new Oot)}}function vpt(e){switch(e.g){case 0:return new Qze;default:throw Y(new jt(FF+(e.f!=null?e.f:""+e.g)))}}function Ept(e){switch(e.g){case 0:return new Zze;default:throw Y(new jt(FF+(e.f!=null?e.f:""+e.g)))}}function Spt(e){switch(e.g){case 0:return new tGe;default:throw Y(new jt(kZ+(e.f!=null?e.f:""+e.g)))}}function Tpt(e){switch(e.g){case 0:return new nGe;default:throw Y(new jt(kZ+(e.f!=null?e.f:""+e.g)))}}function Apt(e){switch(e.g){case 0:return new Kze;default:throw Y(new jt(kZ+(e.f!=null?e.f:""+e.g)))}}function C_(e,t){if(!e.Ji()&&t==null)throw Y(new jt("The 'no null' constraint is violated"));return t}function Hge(e){var t,r,o;for(t=new Lu,o=An(e,0);o.b!=o.d.c;)r=l(Sn(o),8),WA(t,0,new So(r));return t}function lg(e){var t,r;for(t=0,r=0;ro?1:0}function _pt(e,t){var r,o,a;for(a=e.b;a;){if(r=e.a.Le(t,a.d),r==0)return a;o=r<0?0:1,a=a.a[o]}return null}function bE(e,t){var r,o,a,u,f;for(o=t,a=0,u=o.length;a=e.b.c.length||(qge(e,2*t+1),r=2*t+2,r0&&(t.Ad(r),r.i&&Q1n(r))}function Vge(e,t,r){var o;for(o=r-1;o>=0&&e[o]===t[o];o--);return o<0?0:Aq(Gi(e[o],$o),Gi(t[o],$o))?-1:1}function _pn(e,t){var r;return!e||e==t||!gr(t,(Ie(),tw))?!1:(r=l(F(t,(Ie(),tw)),9),r!=e)}function mE(e,t,r){var o,a;return a=(o=new tq,o),Ko(a,t,r),Tn((!e.q&&(e.q=new ke(Dl,e,11,10)),e.q),a),a}function HK(e,t){var r,o;return o=l(Vt(e.a,4),131),r=we(Mre,wQ,420,t,0,1),o!=null&&ua(o,0,r,0,o.length),r}function zK(e){var t,r,o,a;for(a=Ten(UDt,e),r=a.length,o=we(Je,Pe,2,r,6,1),t=0;t0)return t_(t-1,e.a.c.length),sg(e.a,t-1);throw Y(new gZe)}function Rpn(e,t,r){if(t<0)throw Y(new Ia(cTt+t));tt)throw Y(new jt(sF+e+S2t+t));if(e<0||t>r)throw Y(new Zce(sF+e+gwe+t+fwe+r))}function Dpt(e){if(!e.a||!(e.a.i&8))throw Y(new es("Enumeration class expected for layout option "+e.f))}function Lpt(e){aut.call(this,"The given string does not match the expected format for individual spacings.",e)}function Mpt(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.Zl()}}function dg(e){switch(e.c){case 0:return UV(),GEe;case 1:return new nS(Jmt(new fS(e)));default:return new uQe(e)}}function Ppt(e){switch(e.gc()){case 0:return UV(),GEe;case 1:return new nS(e.Jc().Pb());default:return new Sle(e)}}function Yge(e){var t;return t=(!e.a&&(e.a=new ke(Op,e,9,5)),e.a),t.i!=0?ven(l(oe(t,0),691)):null}function Opn(e,t){var r;return r=Ao(e,t),Aq(LW(e,t),0)|k8(LW(e,r),0)?r:Ao(wD,LW(Rb(r,63),1))}function Jge(e,t,r){var o,a;return ry(t,e.c.length),o=r.Nc(),a=o.length,a==0?!1:(Lfe(e.c,t,o),!0)}function Dpn(e,t){var r,o;for(r=e.a.length-1;t!=e.b;)o=t-1&r,ii(e.a,t,e.a[o]),t=o;ii(e.a,e.b,null),e.b=e.b+1&r}function Lpn(e,t){var r,o;for(r=e.a.length-1,e.c=e.c-1&r;t!=e.c;)o=t+1&r,ii(e.a,t,e.a[o]),t=o;ii(e.a,e.c,null)}function hy(e){var t;++e.j,e.i==0?e.g=null:e.ia&&(Nbt(t.q,a),o=r!=t.q.d)),o}function zpt(e,t){var r,o,a,u,f,p,m,y;return m=t.i,y=t.j,o=e.f,a=o.i,u=o.j,f=m-a,p=y-u,r=b.Math.sqrt(f*f+p*p),r}function Gpt(e,t){var r,o,a;r=e,a=0;do{if(r==t)return a;if(o=r.e,!o)throw Y(new nO);r=ji(o),++a}while(!0)}function Yb(e,t){var r,o,a;o=e.Wk(t,null),a=null,t&&(a=($A(),r=new Ym,r),w_(a,e.r)),o=Zd(e,a,o),o&&o.mj()}function Upn(e,t){var r,o;for(o=Bu(e.d,1)!=0,r=!0;r;)r=!1,r=t.c.kg(t.e,o),r=r|oD(e,t,o,!1),o=!o;bge(e)}function Zge(e,t){var r,o;return o=t7(e),o||(r=(PJ(),J0t(t)),o=new oZe(r),Tn(o.Cl(),e)),o}function O6(e,t){var r,o;return r=l(e.c.Ac(t),18),r?(o=e.hc(),o.Fc(r),e.d-=r.gc(),r.$b(),e.mc(o)):e.jc()}function Hpn(e){var t;if(!(e.c.c<0?e.a>=e.c.b:e.a<=e.c.b))throw Y(new vs);return t=e.a,e.a+=e.c.c,++e.b,Re(t)}function zpn(e){var t,r;if(e==null)return!1;for(t=0,r=e.length;tOF?e-r>OF:r-e>OF}function Ea(e,t){var r;return gs(e)&&gs(t)&&(r=e-t,!isNaN(r))?r:hbe(gs(e)?vl(e):e,gs(t)?vl(t):t)}function Vpn(e,t,r){var o;o=new v0t(e,t),yt(e.r,t.$f(),o),r&&!k3(e.u)&&(o.c=new Qat(e.d),La(t.Pf(),new pYe(o)))}function KK(e){var t;return t=new dde(e.a),qs(t,e),Te(t,(Ie(),mr),e),t.o.a=e.g,t.o.b=e.f,t.n.a=e.i,t.n.b=e.j,t}function Wpn(e){var t;return t=O8(d4t),l(F(e,(Ie(),xa)),24).Gc((Fo(),Qx))&&$n(t,(Vi(),la),(Zi(),P$)),t}function Kpn(e){var t,r,o,a;for(a=new hi,o=new V(e);o.a=0?t:-t;o>0;)o%2==0?(r*=r,o=o/2|0):(a*=r,o-=1);return t<0?1/a:a}function Ypn(e,t){var r,o,a;for(a=1,r=e,o=t>=0?t:-t;o>0;)o%2==0?(r*=r,o=o/2|0):(a*=r,o-=1);return t<0?1/a:a}function w1(e,t){var r,o,a,u;return u=(a=e?t7(e):null,Umt((o=t,a&&a.El(),o))),u==t&&(r=t7(e),r&&r.El()),u}function e1e(e,t,r){var o,a;return a=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,1,a,t),r?r.lj(o):r=o),r}function Kpt(e,t,r){var o,a;return a=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,3,a,t),r?r.lj(o):r=o),r}function Ypt(e,t,r){var o,a;return a=e.f,e.f=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,0,a,t),r?r.lj(o):r=o),r}function Jpn(e,t,r,o){var a,u;for(u=e.Jc();u.Ob();)a=l(u.Pb(),70),a.n.a=t.a+(o.a-a.o.a)/2,a.n.b=t.b,t.b+=a.o.b+r}function Xpn(e,t,r,o,a,u,f,p){var m;for(m=r;u=o||t0&&(r=l(ze(e.a,e.a.c.length-1),572),Gge(r,t))||Fe(e.a,new flt(t))}function tgt(e,t){var r;e.c.length!=0&&(r=l(Yd(e,we(Nh,vg,9,e.c.length,0,1)),201),ode(r,new IFe),d0t(r,t))}function ngt(e,t){var r;e.c.length!=0&&(r=l(Yd(e,we(Nh,vg,9,e.c.length,0,1)),201),ode(r,new RFe),d0t(r,t))}function Re(e){var t,r;return e>-129&&e<128?(Rot(),t=e+128,r=t2e[t],!r&&(r=t2e[t]=new ace(e)),r):new ace(e)}function D_(e){var t,r;return e>-129&&e<128?($ot(),t=e+128,r=o2e[t],!r&&(r=o2e[t]=new oce(e)),r):new oce(e)}function rgt(e){var t;return t=new Zg,t.a+="VerticalSegment ",ba(t,e.e),t.a+=" ",zn(t,Tde(new hq,new V(e.k))),t.a}function ngn(e){hc();var t,r;t=e.d.c-e.e.c,r=l(e.g,157),La(r.b,new XYe(t)),La(r.c,new ZYe(t)),lo(r.i,new QYe(t))}function rgn(e){var t;return t=l(Wd(e.c.c,""),236),t||(t=new LS(FA(jA(new eS,""),"Other")),Jb(e.c.c,"",t)),t}function iC(e){var t;return e.Db&64?Zl(e):(t=new ml(Zl(e)),t.a+=" (name: ",Vo(t,e.zb),t.a+=")",t.a)}function i1e(e,t,r){var o,a;return a=e.sb,e.sb=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,4,a,t),r?r.lj(o):r=o),r}function JK(e,t){var r,o,a;for(r=0,a=ks(e,t).Jc();a.Ob();)o=l(a.Pb(),12),r+=F(o,(Ie(),Nu))!=null?1:0;return r}function yE(e,t,r){var o,a,u;for(o=0,u=An(e,0);u.b!=u.d.c&&(a=ue(ce(Sn(u))),!(a>r));)a>=t&&++o;return o}function ign(e,t,r){var o,a;return o=new cp(e.e,3,13,null,(a=t.c,a||(_t(),bf)),gg(e,t),!1),r?r.lj(o):r=o,r}function ogn(e,t,r){var o,a;return o=new cp(e.e,4,13,(a=t.c,a||(_t(),bf)),null,gg(e,t),!1),r?r.lj(o):r=o,r}function o1e(e,t,r){var o,a;return a=e.r,e.r=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,8,a,e.r),r?r.lj(o):r=o),r}function fg(e,t){var r,o;return r=l(t,688),o=r.cl(),!o&&r.dl(o=ae(t,89)?new mnt(e,l(t,29)):new Yut(e,l(t,160))),o}function D6(e,t,r){var o;e.Zi(e.i+1),o=e.Xi(t,r),t!=e.i&&ua(e.g,t,e.g,t+1,e.i-t),ii(e.g,t,o),++e.i,e.Ki(t,r),e.Li()}function sgn(e,t){var r;e.c=t,e.a=n1n(t),e.a<54&&(e.f=(r=t.d>1?tct(t.a[0],t.a[1]):tct(t.a[0],0),$b(t.e>0?r:ug(r))))}function agn(e,t){var r;return t.a&&(r=t.a.a.length,e.a?zn(e.a,e.b):e.a=new fc(e.d),uct(e.a,t.a,t.d.length,r)),e}function ugn(e,t){var r,o,a,u;if(t.cj(e.a),u=l(Vt(e.a,8),2014),u!=null)for(r=u,o=0,a=r.length;or)throw Y(new Ia(sF+e+gwe+t+", size: "+r));if(e>t)throw Y(new jt(sF+e+S2t+t))}function hg(e,t){var r;r=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,2,r,t))}function u1e(e,t){var r;r=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,8,r,t))}function c1e(e,t){var r;r=(e.Bb&512)!=0,t?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,9,r,t))}function pg(e,t){var r;r=(e.Bb&512)!=0,t?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,3,r,t))}function Hj(e,t){var r;r=(e.Bb&256)!=0,t?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,8,r,t))}function lgn(e,t,r){var o,a;return a=e.a,e.a=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,5,a,e.a),r?kbe(r,o):r=o),r}function agt(e){var t;return e.Db&64?Zl(e):(t=new ml(Zl(e)),t.a+=" (source: ",Vo(t,e.d),t.a+=")",t.a)}function sC(e,t){var r;return e.b==-1&&e.a&&(r=e.a.nk(),e.b=r?e.c.Eh(e.a.Jj(),r):Ur(e.c.Ah(),e.a)),e.c.vh(e.b,t)}function ugt(e,t){var r,o;for(o=new tn(e);o.e!=o.i.gc();)if(r=l(rn(o),29),be(t)===be(r))return!0;return!1}function dgn(e){eF();var t,r,o,a;for(r=bY(),o=0,a=r.length;o=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function lgt(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function l1e(e){var t,r;return t=e.k,t==(zt(),mi)?(r=l(F(e,(Ie(),Hs)),64),r==(He(),Wt)||r==dn):!1}function dgt(e,t){var r,o;for(o=new tn(e);o.e!=o.i.gc();)if(r=l(rn(o),146),be(t)===be(r))return!0;return!1}function fgn(e,t,r){var o,a,u;return u=(a=Y_(e.b,t),a),u&&(o=l(Y7(h6(e,u),""),29),o)?Lme(e,o,t,r):null}function XK(e,t,r){var o,a,u;return u=(a=Y_(e.b,t),a),u&&(o=l(Y7(h6(e,u),""),29),o)?Mme(e,o,t,r):null}function aC(e,t,r){var o;if(o=e.gc(),t>o)throw Y(new Ww(t,o));if(e.Qi()&&e.Gc(r))throw Y(new jt(GD));e.Ei(t,r)}function hgn(e,t){t.Tg("Sort end labels",1),ei(lr(bs(new Et(null,new St(e.b,16)),new pFe),new gFe),new bFe),t.Ug()}function vi(){vi=K,hf=new TO(qC,0),fs=new TO(pT,1),as=new TO(hT,2),ff=new TO(IX,3),il=new TO("UP",4)}function M6(){M6=K,KB=new Zq("P1_STRUCTURE",0),YB=new Zq("P2_PROCESSING_ORDER",1),JB=new Zq("P3_EXECUTION",2)}function fgt(){fgt=K,xRt=Pf(Pf(ZN(Pf(Pf(ZN($n(new ui,(JS(),e4),(IC(),Jte)),t4),P_e),F_e),n4),O_e),$_e)}function pgn(e){var t,r,o;for(t=new je,o=new V(e.b);o.a=0?v1(e):I3(v1(ug(e))))}function ggt(e,t,r,o,a,u){this.e=new je,this.f=(jo(),YI),Fe(this.e,e),this.d=t,this.a=r,this.b=o,this.f=a,this.c=u}function ygn(e){var t;if(!e.a)throw Y(new es("Cannot offset an unassigned cut."));t=e.c-e.b,e.b+=t,xat(e,t),kat(e,t)}function bgt(e){var t;return t=Xhe(e),d3(t.a,0)?(jw(),jw(),WQ):(jw(),new vV(Tq(t.a,0)?ype(t)/$b(t.a):0))}function vgn(e,t){var r;if(r=iD(e,t),ae(r,336))return l(r,38);throw Y(new jt(R1+t+"' is not a valid attribute"))}function yr(e,t){return et?1:e==t?e==0?yr(1/e,1/t):0:isNaN(e)?isNaN(t)?0:1:-1}function uC(e,t,r){var o,a;return e.Nj()?(a=e.Oj(),o=sJ(e,t,r),e.Hj(e.Gj(7,Re(r),o,t,a)),o):sJ(e,t,r)}function ZK(e,t){var r,o,a;e.d==null?(++e.e,--e.f):(a=t.jd(),r=t.yi(),o=(r&sr)%e.d.length,ddn(e,o,rwt(e,o,r,a)))}function L_(e,t){var r;r=(e.Bb&Tl)!=0,t?e.Bb|=Tl:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,10,r,t))}function M_(e,t){var r;r=(e.Bb&Ry)!=0,t?e.Bb|=Ry:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,12,r,t))}function P_(e,t){var r;r=(e.Bb&yu)!=0,t?e.Bb|=yu:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,15,r,t))}function j_(e,t){var r;r=(e.Bb&yp)!=0,t?e.Bb|=yp:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,11,r,t))}function Egn(e,t){var r;return r=yr(e.b.c,t.b.c),r!=0||(r=yr(e.a.a,t.a.a),r!=0)?r:yr(e.a.b,t.a.b)}function Gj(e){var t,r;return r=l(F(e,(Be(),xc)),87),r==(vi(),hf)?(t=ue(ce(F(e,aB))),t>=1?fs:ff):r}function Sgn(e){var t,r;for(r=X0t(mc(e)).Jc();r.Ob();)if(t=In(r.Pb()),RC(e,t))return Lln((Zet(),QDt),t);return null}function Tgn(e,t,r){var o,a;for(a=e.a.ec().Jc();a.Ob();)if(o=l(a.Pb(),9),N6(r,l(ze(t,o.p),18)))return o;return null}function Agn(e,t,r){var o,a;for(a=ae(t,104)&&l(t,20).Bb&No?new oV(t,e):new A_(t,e),o=0;o>10)+TD&Ei,t[1]=(e&1023)+56320&Ei,Mf(t,0,t.length)}function g1e(e,t){var r;r=(e.Bb&No)!=0,t?e.Bb|=No:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,20,r,t))}function b1e(e,t){var r;r=(e.Bb&Ws)!=0,t?e.Bb|=Ws:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,18,r,t))}function eY(e,t){var r;r=(e.Bb&Ws)!=0,t?e.Bb|=Ws:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,18,r,t))}function F_(e,t){var r;r=(e.Bb&$f)!=0,t?e.Bb|=$f:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&hr(e,new Vl(e,1,16,r,t))}function m1e(e,t,r){var o;return o=0,t&&(eE(e.a)?o+=t.f.a/2:o+=t.f.b/2),r&&(eE(e.a)?o+=r.f.a/2:o+=r.f.b/2),o}function _0(e,t,r){var o;return o=e.a.get(t),e.a.set(t,r===void 0?null:r),o===void 0?(++e.c,++e.b.g):++e.d,o}function tY(e,t,r){var o,a;return o=(e1(),a=new b9,a),gj(o,t),pj(o,r),e&&Tn((!e.a&&(e.a=new yi(Ic,e,5)),e.a),o),o}function Ngn(e,t,r){var o;o=r,!o&&(o=Rfe(new sS,0)),o.Tg(J2t,2),x1t(e.b,t,o.dh(1)),Cxn(e,t,o.dh(1)),CNn(t,o.dh(1)),o.Ug()}function ks(e,t){var r;return e.i||cme(e),r=l(Wo(e.g,t),49),r?new Rf(e.j,l(r.a,15).a,l(r.b,15).a):(At(),At(),Co)}function Ao(e,t){var r;return gs(e)&&gs(t)&&(r=e+t,SD34028234663852886e22?Kr:t<-34028234663852886e22?Li:t}function Lf(e){var t,r,o;for(t=new je,o=new V(e.j);o.a"+Fb(t.c):"e_"+Rr(t),e.b&&e.c?Fb(e.b)+"->"+Fb(e.c):"e_"+Rr(e))}function Ogn(e,t){return wt(t.b&&t.c?Fb(t.b)+"->"+Fb(t.c):"e_"+Rr(t),e.b&&e.c?Fb(e.b)+"->"+Fb(e.c):"e_"+Rr(e))}function Dgn(e){return GK(),Lt(),!!(Sgt(l(e.a,84).j,l(e.b,87))||l(e.a,84).d.e!=0&&Sgt(l(e.a,84).j,l(e.b,87)))}function rY(){Mbe();var e,t,r;r=B3n+++Date.now(),e=go(b.Math.floor(r*_D))&oF,t=go(r-e*dwe),this.a=e^1502,this.b=t^AX}function ygt(e,t,r,o,a){ort(this),this.b=e,this.d=we(Nh,vg,9,t.a.c.length,0,1),this.f=r,Yd(t.a,this.d),this.g=o,this.c=a}function w1e(e,t){e.n.c.length==0&&Fe(e.n,new MP(e.s,e.t,e.i)),Fe(e.b,t),Z1e(l(ze(e.n,e.n.c.length-1),211),t),svt(e,t)}function Lgn(e,t,r){var o;r.Tg("Straight Line Edge Routing",1),r.bh(t,gve),o=l(ve(t,(aE(),l2)),19),vvt(e,o),r.bh(t,MF)}function ct(e){var t,r,o,a;return r=(t=l(md((o=e.Pm,a=o.f,a==bn?o:a)),10),new Hc(t,l(Gl(t,t.length),10),0)),Jl(r,e),r}function Mgn(e){var t,r;for(r=uEn(mc(ny(e))).Jc();r.Ob();)if(t=In(r.Pb()),RC(e,t))return Mln((Qet(),eLt),t);return null}function iY(e,t){var r,o,a;for(a=0,o=l(t.Kb(e),22).Jc();o.Ob();)r=l(o.Pb(),17),Ye(Ke(F(r,(Ie(),Ag))))||++a;return a}function vgt(e){var t,r,o,a;for(t=new mit(e.Pd().gc()),a=0,o=BS(e.Pd().Jc());o.Ob();)r=o.Pb(),San(t,r,Re(a++));return fyn(t.a)}function Pgn(e){var t,r,o;for(r=0,o=e.length;rt){Qut(r);break}}yP(r,t)}function Fgn(e,t){var r,o,a;o=lE(t),a=ue(ce(by(o,(Be(),od)))),r=b.Math.max(0,a/2-.5),bC(t,r,1),Fe(e,new ytt(t,r))}function st(e,t){var r,o,a,u,f;if(r=t.f,Jb(e.c.d,r,t),t.g!=null)for(a=t.g,u=0,f=a.length;ut&&o.Le(e[u-1],e[u])>0;--u)f=e[u],ii(e,u,e[u-1]),ii(e,u-1,f)}function Xc(e,t,r,o){if(t<0)$me(e,r,o);else{if(!r.pk())throw Y(new jt(R1+r.ve()+iI));l(r,69).uk().Ak(e,e.ei(),t,o)}}function Bgn(e,t){var r;if(r=iD(e.Ah(),t),ae(r,104))return l(r,20);throw Y(new jt(R1+t+"' is not a valid reference"))}function ms(e){var t;return Array.isArray(e)&&e.Rm===fe?Ab(rc(e))+"@"+(t=Rr(e)>>>0,t.toString(16)):e.toString()}function Ugn(e,t){return e.h==ED&&e.m==0&&e.l==0?(t&&(O1=Ua(0,0,0)),Mnt((m_(),YEe))):(t&&(O1=Ua(e.l,e.m,e.h)),Ua(0,0,0))}function Hgn(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function Sgt(e,t){switch(t.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function y1e(e,t,r,o){switch(t){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return a1e(e,t,r,o)}function Vj(e,t){if(t==e.d)return e.e;if(t==e.e)return e.d;throw Y(new jt("Node "+t+" not part of edge "+e))}function zgn(e){return e.e==null?e:(!e.c&&(e.c=new gJ((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function Ggn(e){return e.k!=(zt(),Xr)?!1:fE(new Et(null,new Zw(new $t(qt(Or(e).a.Jc(),new D)))),new MBe)}function $u(e){var t;if(e.b){if($u(e.b),e.b.d!=e.c)throw Y(new $c)}else e.d.dc()&&(t=l(e.f.c.xc(e.e),18),t&&(e.d=t))}function qgn(e){qw();var t,r,o,a;for(t=e.o.b,o=l(l(wr(e.r,(He(),dn)),24),85).Jc();o.Ob();)r=l(o.Pb(),116),a=r.e,a.b+=t}function Vgn(e,t){var r,o,a;for(o=ATn(e,t),a=o[o.length-1]/2,r=0;r=a)return t.c+r;return t.c+t.b.gc()}function v1e(e,t,r,o,a){var u,f,p;for(f=a;t.b!=t.c;)u=l(CS(t),9),p=l(ks(u,o).Xb(0),12),e.d[p.p]=f++,Ot(r.c,p);return f}function cC(e){var t;this.a=(t=l(e.e&&e.e(),10),new Hc(t,l(Gl(t,t.length),10),0)),this.b=we(Ii,Rt,1,this.a.a.length,5,1)}function E1e(e){uY(),this.c=Wl(Z(X(oCn,1),Rt,837,0,[LIt])),this.b=new hn,this.a=e,Jn(this.b,TB,1),La(MIt,new bXe(this))}function ic(){ic=K,gL=new bO(_d,0),LI=new bO("FIRST",1),xp=new bO(fSt,2),MI=new bO("LAST",3),gm=new bO(hSt,4)}function lC(){lC=K,kI=new l8("LAYER_SWEEP",0),HSe=new l8("MEDIAN_LAYER_SWEEP",1),aL=new l8(BX,2),zSe=new l8(_d,3)}function Wj(){Wj=K,Pxe=new Yq("ASPECT_RATIO_DRIVEN",0),Cne=new Yq("MAX_SCALE_DRIVEN",1),Mxe=new Yq("AREA_DRIVEN",2)}function Kj(){Kj=K,Nre=new T8(nve,0),s3e=new T8("GROUP_DEC",1),u3e=new T8("GROUP_MIXED",2),a3e=new T8("GROUP_INC",3)}function gp(){gp=K,Sre=new v8(qC,0),GL=new v8("POLYLINE",1),Ek=new v8("ORTHOGONAL",2),WT=new v8("SPLINES",3)}function S1e(){S1e=K,a6t=new cr(Kve),Mke=(zP(),qne),s6t=new pt(Yve,Mke),o6t=new pt(Jve,50),i6t=new pt(Xve,(Lt(),!0))}function Wgn(e){var t,r,o,a,u;return u=Pbe(e),r=aO(e.c),o=!r,o&&(a=new Eb,Kl(u,"knownLayouters",a),t=new VXe(a),lo(e.c,t)),u}function T1e(e,t){var r,o,a,u,f,p;for(o=0,r=0,u=t,f=0,p=u.length;f0&&(o+=a,++r);return r>1&&(o+=e.d*(r-1)),o}function A1e(e){var t,r,o;for(o=new Xp,o.a+="[",t=0,r=e.gc();t0&&(Yt(t-1,e.length),e.charCodeAt(t-1)==58)&&!oY(e,O4,D4))}function _1e(e,t){var r;return be(e)===be(t)?!0:ae(t,92)?(r=l(t,92),e.e==r.e&&e.d==r.d&&Fln(e,r.a)):!1}function WS(e){switch(He(),e.g){case 4:return Wt;case 1:return Qt;case 3:return dn;case 2:return Kt;default:return Is}}function Ygn(e){var t,r;if(e.b)return e.b;for(r=sf?null:e.d;r;){if(t=sf?null:r.b,t)return t;r=sf?null:r.d}return GA(),y2e}function x0(e,t){return Ud(),Yl(wg),b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)?0:et?1:kb(isNaN(e),isNaN(t))}function Tgt(e,t){JA();var r,o,a,u;for(o=fdt(e),a=t,g_(o,0,o.length,a),r=0;r3;)a*=10,--u;e=(e+(a>>1))/a|0}return o.i=e,!0}function n1n(e){var t,r,o;return e.e==0?0:(t=e.d<<5,r=e.a[e.d-1],e.e<0&&(o=Tht(e),o==e.d-1&&(--r,r=r|0)),t-=Q6(r),t)}function r1n(e){var t,r,o;return e>5,t=e&31,o=we(Rn,Qn,30,r+1,15,1),o[r]=1<0&&(t.lengthe.i&&ii(t,e.i,null),t}function u1n(e,t,r){var o,a;return o=ue(e.p[t.i.p])+ue(e.d[t.i.p])+t.n.b+t.a.b,a=ue(e.p[r.i.p])+ue(e.d[r.i.p])+r.n.b+r.a.b,a-o}function Ur(e,t){var r,o,a;if(r=(e.i==null&&Ff(e),e.i),o=t.Jj(),o!=-1){for(a=r.length;o0?(e.Zj(),o=t==null?0:Rr(t),a=(o&sr)%e.d.length,r=rwt(e,a,o,t),r!=-1):!1}function Jj(e){var t,r,o,a;for(a=0,r=0,o=e.length;r=0;--o)for(t=r[o],a=0;a0&&(e.Zj(),o=t==null?0:Rr(t),a=(o&sr)%e.d.length,r=mme(e,a,o,t),r)?r.kd():null}function Lgt(e,t){var r,o,a;return ae(t,45)?(r=l(t,45),o=r.jd(),a=py(e.Pc(),o),rp(a,r.kd())&&(a!=null||e.Pc()._b(o))):!1}function Pa(e,t,r){var o,a,u;return e.Nj()?(o=e.i,u=e.Oj(),D6(e,o,t),a=e.Gj(3,null,t,o,u),r?r.lj(a):r=a):D6(e,e.i,t),r}function p1n(e,t,r){var o,a;return o=new cp(e.e,4,10,(a=t.c,ae(a,89)?l(a,29):(_t(),Ml)),null,gg(e,t),!1),r?r.lj(o):r=o,r}function g1n(e,t,r){var o,a;return o=new cp(e.e,3,10,null,(a=t.c,ae(a,89)?l(a,29):(_t(),Ml)),gg(e,t),!1),r?r.lj(o):r=o,r}function Mgt(e){wy();var t;return(e.q?e.q:(At(),At(),xh))._b((Be(),ow))?t=l(F(e,ow),205):t=l(F(ji(e),zI),205),t}function v1(e){jf();var t,r;return r=Dn(e),t=Dn(Rb(e,32)),t!=0?new sct(r,t):r>10||r<0?new ap(1,r):txt[r]}function Pgt(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!l(e.b,52).Gh())return!0;return e.b=null,!1}else return!0}function jgt(e,t,r){kft(),FZe.call(this),this.a=Yw(Axt,[Pe,wwe],[599,219],0,[b$,eee],2),this.c=new wS,this.g=e,this.f=t,this.d=r}function Fgt(e){this.e=we(Rn,Qn,30,e.length,15,1),this.c=we(uu,Ad,30,e.length,16,1),this.b=we(uu,Ad,30,e.length,16,1),this.f=0}function b1n(e){var t,r;for(e.j=we(Ki,Jo,30,e.p.c.length,15,1),r=new V(e.p);r.a>5,t&=31,a=e.d+r+(t==0?0:1),o=we(Rn,Qn,30,a,15,1),mwn(o,e.a,r,t),u=new Ob(e.e,a,o),F3(u),u}function $_(e,t,r){var o,a,u;for(a=null,u=e.b;u;){if(o=e.a.Le(t,u.d),r&&o==0)return u;o>=0?u=u.a[1]:(a=u,u=u.a[0])}return a}function B6(e,t,r){var o,a,u;for(a=null,u=e.b;u;){if(o=e.a.Le(t,u.d),r&&o==0)return u;o<=0?u=u.a[0]:(a=u,u=u.a[1])}return a}function zgt(e,t,r){var o,a,u,f;for(a=l(Ht(e.b,r),172),o=0,f=new V(t.j);f.a0?(b.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function sc(){sc=K,XL=new S8("PORTS",0),xm=new S8("PORT_LABELS",1),JL=new S8("NODE_LABELS",2),hv=new S8("MINIMUM_SIZE",3)}function bp(){bp=K,B1=new f8(_d,0),f_e=new f8("NODES_AND_EDGES",1),$te=new f8("PREFER_EDGES",2),Bte=new f8("PREFER_NODES",3)}function T1n(e,t){return Ud(),Ud(),Yl(wg),(b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)?0:et?1:kb(isNaN(e),isNaN(t)))>0}function P1e(e,t){return Ud(),Ud(),Yl(wg),(b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)?0:et?1:kb(isNaN(e),isNaN(t)))<0}function Kgt(e,t){return Ud(),Ud(),Yl(wg),(b.Math.abs(e-t)<=wg||e==t||isNaN(e)&&isNaN(t)?0:et?1:kb(isNaN(e),isNaN(t)))<=0}function j1e(e){switch(e.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function F1e(e,t,r,o,a,u){this.a=e,this.c=t,this.b=r,this.f=o,this.d=a,this.e=u,this.c>0&&this.b>0&&(this.g=sP(this.c,this.b,this.a))}function A1n(e,t){var r=e.a,o;t=String(t),r.hasOwnProperty(t)&&(o=r[t]);var a=(LK(),HQ)[typeof o],u=a?a(o):n1e(typeof o);return u}function B_(e){var t,r,o;if(o=null,t=qf in e.a,r=!t,r)throw Y(new xf("Every element must have an id."));return o=nT(op(e,qf)),o}function N0(e){var t,r;for(r=Amt(e),t=null;e.c==2;)dr(e),t||(t=(fr(),fr(),new b3(2)),em(t,r),r=t),r.Hm(Amt(e));return r}function Qj(e,t){var r,o,a;return e.Zj(),o=t==null?0:Rr(t),a=(o&sr)%e.d.length,r=mme(e,a,o,t),r?(Gft(e,r),r.kd()):null}function Ygt(e,t){return e.e>t.e?1:e.et.d?e.e:e.d=48&&e<48+b.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function _1n(e,t){if(t.c==e)return t.d;if(t.d==e)return t.c;throw Y(new jt("Input edge is not connected to the input port."))}function Pf(e,t){if(e.a<0)throw Y(new es("Did not call before(...) or after(...) before calling add(...)."));return Lde(e,e.a,t),e}function Xgt(e,t){var r,o,a;if(e.c)Ub(e.c,t);else for(r=t-ec(e),a=new V(e.a);a.a=u?(Lpn(e,t),-1):(Dpn(e,t),1)}function N1n(e,t){var r,o;for(r=(Yt(t,e.length),e.charCodeAt(t)),o=t+1;ot.e?1:e.ft.f?1:Rr(e)-Rr(t)}function Qgt(e,t){var r;return be(t)===be(e)?!0:!ae(t,24)||(r=l(t,24),r.gc()!=e.gc())?!1:e.Hc(r)}function e7(e,t){return Mt(e),t==null?!1:wt(e,t)?!0:e.length==t.length&&wt(e.toLowerCase(),t.toLowerCase())}function my(e){var t,r;return Ea(e,-129)>0&&Ea(e,128)<0?(Fot(),t=Dn(e)+128,r=n2e[t],!r&&(r=n2e[t]=new uce(e)),r):new uce(e)}function YS(){YS=K,TI=new a8(_d,0),q2e=new a8("INSIDE_PORT_SIDE_GROUPS",1),pee=new a8("GROUP_MODEL_ORDER",2),gee=new a8(MX,3)}function t7(e){var t,r,o;if(o=e.Gh(),!o)for(t=0,r=e.Mh();r;r=r.Mh()){if(++t>vX)return r.Nh();if(o=r.Gh(),o||r==e)break}return o}function R1n(e){var t;return e.b||JQt(e,(t=irn(e.e,e.a),!t||!wt(JZ,Td((!t.b&&(t.b=new Zu((_t(),Ro),zs,t)),t.b),"qualified")))),e.c}function O1n(e){var t,r;for(r=new V(e.a.b);r.a2e3&&(q_t=e,c$=b.setTimeout(ren,10))),u$++==0?(afn((Wce(),VEe)),!0):!1}function z1n(e,t,r){var o;(hxt?(Ygn(e),!0):pxt||bxt?(GA(),!0):gxt&&(GA(),!1))&&(o=new Qit(t),o.b=r,Ywn(e,o))}function pY(e,t){var r;r=!e.A.Gc((sc(),xm))||e.q==(qi(),fa),e.u.Gc((xu(),Rp))?r?TNn(e,t):hEt(e,t):e.u.Gc(K1)&&(r?qkn(e,t):NEt(e,t))}function i1t(e){var t;be(ve(e,(_n(),h2)))===be((pp(),cU))&&(Br(e)?(t=l(ve(Br(e),h2),348),Vn(e,h2,t)):Vn(e,h2,T4))}function G1n(e,t,r){var o,a;YY(e.e,t,r,(He(),Kt)),YY(e.i,t,r,Qt),e.a&&(a=l(F(t,(Ie(),mr)),12),o=l(F(r,mr),12),MW(e.g,a,o))}function o1t(e,t,r){return new ql(b.Math.min(e.a,t.a)-r/2,b.Math.min(e.b,t.b)-r/2,b.Math.abs(e.a-t.a)+r,b.Math.abs(e.b-t.b)+r)}function q1n(e,t){var r,o;return r=na(e.a.c.p,t.a.c.p),r!=0?r:(o=na(e.a.d.i.p,t.a.d.i.p),o!=0?o:na(t.a.d.p,e.a.d.p))}function V1n(e,t,r){var o,a,u,f;return u=t.j,f=r.j,u!=f?u.g-f.g:(o=e.f[t.p],a=e.f[r.p],o==0&&a==0?0:o==0?-1:a==0?1:yr(o,a))}function s1t(e){var t;this.d=new je,this.j=new ro,this.g=new ro,t=e.g.b,this.f=l(F(ji(t),(Be(),xc)),87),this.e=ue(ce(i7(t,ev)))}function a1t(e){this.d=new je,this.e=new d1,this.c=we(Rn,Qn,30,(He(),Z(X(Io,1),ea,64,0,[Is,Wt,Qt,dn,Kt])).length,15,1),this.b=e}function G1e(e,t,r){var o;switch(o=r[e.g][t],e.g){case 1:case 3:return new Me(0,o);case 2:case 4:return new Me(o,0);default:return null}}function W1n(e,t){var r;if(r=pE(e.o,t),r==null)throw Y(new xf("Node did not exist in input."));return zme(e,t),yJ(e,t),Dme(e,t,r),null}function u1t(e,t,r){var o,a;a=l(JO(t.f),207);try{a.kf(e,r),whe(t.f,a)}catch(u){throw u=ci(u),ae(u,102)?(o=u,Y(o)):Y(u)}}function c1t(e,t,r){var o,a,u,f,p,m;return o=null,p=B0e(W3(),t),u=null,p&&(a=null,m=F0e(p,r),f=null,m!=null&&(f=e.of(p,m)),a=f,u=a),o=u,o}function gY(e,t,r,o){var a;if(a=e.length,t>=a)return a;for(t=t>0?t:0;to&&ii(t,o,null),t}function l1t(e,t){var r,o;for(o=e.a.length,t.lengtho&&ii(t,o,null),t}function K1n(e){var t;if(e==null)return null;if(t=FEn(Ta(e,!0)),t==null)throw Y(new lq("Invalid hexBinary value: '"+e+"'"));return t}function n7(e,t,r){var o;t.a.length>0&&(Fe(e.b,new fot(t.a,r)),o=t.a.length,0o&&(t.a+=urt(we(al,Bf,30,-o,15,1))))}function d1t(e,t,r){var o,a,u;if(!r[t.d])for(r[t.d]=!0,a=new V(wE(t));a.a=e.b>>1)for(o=e.c,r=e.b;r>t;--r)o=o.b;else for(o=e.a.a,r=0;r=0?e.Th(a):oJ(e,o)):r<0?oJ(e,o):l(o,69).uk().zk(e,e.ei(),r)}function g1t(e){var t,r,o;for(o=(!e.o&&(e.o=new pu((Qs(),Dh),Rg,e,0)),e.o),r=o.c.Jc();r.e!=r.i.gc();)t=l(r.Wj(),45),t.kd();return s6(o)}function Ge(e){var t;if(ae(e.a,4)){if(t=$1e(e.a),t==null)throw Y(new es(dTt+e.b+"'. "+lTt+(np(u5),u5.k)+eEe));return t}else return e.a}function ibn(e){var t;if(e==null)return null;if(t=RNn(Ta(e,!0)),t==null)throw Y(new lq("Invalid base64Binary value: '"+e+"'"));return t}function rn(e){var t;try{return t=e.i.Xb(e.e),e.Vj(),e.g=e.e++,t}catch(r){throw r=ci(r),ae(r,99)?(e.Vj(),Y(new vs)):Y(r)}}function yY(e){var t;try{return t=e.c.Ti(e.e),e.Vj(),e.g=e.e++,t}catch(r){throw r=ci(r),ae(r,99)?(e.Vj(),Y(new vs)):Y(r)}}function r7(e){var t,r,o,a;for(a=0,r=0,o=e.length;r=64&&t<128&&(a=Of(a,fh(1,t-64)));return a}function i7(e,t){var r,o;return o=null,gr(e,(_n(),qT))&&(r=l(F(e,qT),105),r.nf(t)&&(o=r.mf(t))),o==null&&ji(e)&&(o=F(ji(e),t)),o}function obn(e,t){var r;return r=l(F(e,(Be(),ss)),79),pV(t,Xkt)?r?tc(r):(r=new Lu,Te(e,ss,r)):r&&Te(e,ss,null),r}function sbn(e,t){var r,o,a;for(a=new Da(t.gc()),o=t.Jc();o.Ob();)r=l(o.Pb(),295),r.c==r.f?K_(e,r,r.c):Ayn(e,r)||Ot(a.c,r);return a}function b1t(e,t){var r,o,a;for(r=e.o,a=l(l(wr(e.r,t),24),85).Jc();a.Ob();)o=l(a.Pb(),116),o.e.a=cmn(o,r.a),o.e.b=r.b*ue(ce(o.b.mf(m$)))}function abn(e,t){var r,o,a,u;return a=e.k,r=ue(ce(F(e,(Ie(),nw)))),u=t.k,o=ue(ce(F(t,nw))),u!=(zt(),mi)?-1:a!=mi?1:r==o?0:rr.b)return!0}return!1}function y1t(e){var t;return t=new Zg,t.a+="n",e.k!=(zt(),Xr)&&zn(zn((t.a+="(",t),yV(e.k).toLowerCase()),")"),zn((t.a+="_",t),z6(e)),t.a}function hC(){hC=K,o_e=new mO(nve,0),jte=new mO(BX,1),Fte=new mO("LINEAR_SEGMENTS",2),VI=new mO("BRANDES_KOEPF",3),WI=new mO(CSt,4)}function JS(){JS=K,LB=new p8("P1_TREEIFICATION",0),e4=new p8("P2_NODE_ORDERING",1),t4=new p8("P3_NODE_PLACEMENT",2),n4=new p8(jSt,3)}function XS(e,t,r,o){var a;return r>=0?e.Ph(t,r,o):(e.Mh()&&(o=(a=e.Ch(),a>=0?e.xh(o):e.Mh().Qh(e,-1-a,null,o))),e.zh(t,r,o))}function q1e(e,t){switch(t){case 7:!e.e&&(e.e=new Tt(Ir,e,7,4)),vn(e.e);return;case 8:!e.d&&(e.d=new Tt(Ir,e,8,5)),vn(e.d);return}I1e(e,t)}function Vn(e,t,r){return r==null?(!e.o&&(e.o=new pu((Qs(),Dh),Rg,e,0)),Qj(e.o,t)):(!e.o&&(e.o=new pu((Qs(),Dh),Rg,e,0)),V6(e.o,t,r)),e}function sa(e,t){var r;r=e.dd(t);try{return r.Pb()}catch(o){throw o=ci(o),ae(o,113)?Y(new Ia("Can't get element "+t)):Y(o)}}function v1t(e,t){var r;switch(r=l(Wo(e.b,t),129).n,t.g){case 1:e.t>=0&&(r.d=e.t);break;case 3:e.t>=0&&(r.a=e.t)}e.C&&(r.b=e.C.b,r.c=e.C.c)}function pbn(e){var t;t=e.a;do t=l(en(new $t(qt(si(t).a.Jc(),new D))),17).c.i,t.k==(zt(),gi)&&e.b.Ec(t);while(t.k==(zt(),gi));e.b=oc(e.b)}function E1t(e,t){var r,o,a;for(a=e,o=new $t(qt(si(t).a.Jc(),new D));an(o);)r=l(en(o),17),r.c.i.c&&(a=b.Math.max(a,r.c.i.c.p));return a}function gbn(e,t){var r,o,a;for(a=0,o=l(l(wr(e.r,t),24),85).Jc();o.Ob();)r=l(o.Pb(),116),a+=r.d.d+r.b.Kf().b+r.d.a,o.Ob()&&(a+=e.w);return a}function bbn(e,t){var r,o,a;for(a=0,o=l(l(wr(e.r,t),24),85).Jc();o.Ob();)r=l(o.Pb(),116),a+=r.d.b+r.b.Kf().a+r.d.c,o.Ob()&&(a+=e.w);return a}function S1t(e){var t,r,o,a;if(o=0,a=Ay(e),a.c.length==0)return 1;for(r=new V(a);r.a=0?e.Ih(f,r,!0):O0(e,u,r)):l(u,69).uk().wk(e,e.ei(),a,r,o)}function ybn(e,t,r,o){var a,u;u=t.nf((_n(),g2))?l(t.mf(g2),24):e.j,a=dgn(u),a!=(eF(),tee)&&(r&&!j1e(a)||Ybe($En(e,a,o),t))}function vY(e,t){return zi(e)?!!F_t[t]:e.Qm?!!e.Qm[t]:Uw(e)?!!j_t[t]:Bw(e)?!!P_t[t]:!1}function vbn(e){switch(e.g){case 1:return A0(),eL;case 3:return A0(),QD;case 2:return A0(),ree;case 4:return A0(),nee;default:return null}}function Ebn(e,t,r){if(e.e)switch(e.b){case 1:Oan(e.c,t,r);break;case 0:Dan(e.c,t,r)}else Dct(e.c,t,r);e.a[t.p][r.p]=e.c.i,e.a[r.p][t.p]=e.c.e}function A1t(e){var t,r;if(e==null)return null;for(r=we(Nh,Pe,201,e.length,0,2),t=0;tu?1:0):0}function wy(){wy=K,xB=new d8(_d,0),Mte=new d8("PORT_POSITION",1),a2=new d8("NODE_SIZE_WHERE_SPACE_PERMITS",2),s2=new d8("NODE_SIZE",3)}function mh(){mh=K,sre=new s3("AUTOMATIC",0),jL=new s3(hT,1),FL=new s3(pT,2),nU=new s3("TOP",3),eU=new s3(vwe,4),tU=new s3(px,5)}function EE(e,t,r){var o,a;if(a=e.gc(),t>=a)throw Y(new Ww(t,a));if(e.Qi()&&(o=e.bd(r),o>=0&&o!=t))throw Y(new jt(GD));return e.Vi(t,r)}function gg(e,t){var r,o,a;if(a=sbt(e,t),a>=0)return a;if(e.ml()){for(o=0;o0||e==(iq(),LQ)||t==(oq(),MQ))throw Y(new jt("Invalid range: "+Oct(e,t)))}function W1e(e,t,r,o){Q_();var a,u;for(a=0,u=0;u0),(t&-t)==t)return go(t*Bu(e,31)*4656612873077393e-25);do r=Bu(e,31),o=r%t;while(r-o+(t-1)<0);return go(o)}function Tbn(e,t){var r,o,a;for(r=o0(new Tb,e),a=new V(t);a.a1&&(u=Tbn(e,t)),u}function Nbn(e){var t,r,o;for(t=0,o=new V(e.c.a);o.a102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function NY(e,t){if(e==null)throw Y(new uS("null key in entry: null="+t));if(t==null)throw Y(new uS("null value in entry: "+e+"=null"))}function O1t(e,t){var r;return r=Z(X(Ki,1),Jo,30,15,[VK(e.a[0],t),VK(e.a[1],t),VK(e.a[2],t)]),e.d&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function D1t(e,t){var r;return r=Z(X(Ki,1),Jo,30,15,[$j(e.a[0],t),$j(e.a[1],t),$j(e.a[2],t)]),e.d&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function X1e(e,t,r){AS(l(F(t,(Be(),Zr)),103))||(ape(e,t,bg(t,r)),ape(e,t,bg(t,(He(),dn))),ape(e,t,bg(t,Wt)),At(),xi(t.j,new bJe(e)))}function L1t(e){var t,r;for(e.c||jxn(e),r=new Lu,t=new V(e.a),q(t);t.a0&&(Yt(0,t.length),t.charCodeAt(0)==43)?(Yt(1,t.length+1),t.substr(1)):t))}function qbn(e){var t;return e==null?null:new o1((t=Ta(e,!0),t.length>0&&(Yt(0,t.length),t.charCodeAt(0)==43)?(Yt(1,t.length+1),t.substr(1)):t))}function Q1e(e,t,r,o,a,u,f,p){var m,y;o&&(m=o.a[0],m&&Q1e(e,t,r,m,a,u,f,p),jY(e,r,o.d,a,u,f,p)&&t.Ec(o),y=o.a[1],y&&Q1e(e,t,r,y,a,u,f,p))}function pC(e,t){var r,o,a,u;for(u=e.gc(),t.lengthu&&ii(t,u,null),t}function Vbn(e,t){var r,o;if(o=e.gc(),t==null){for(r=0;r0&&(m+=a),y[v]=f,f+=p*(m+o)}function Qbn(e){var t;for(t=0;t0?e.c:0),++a;e.b=o,e.d=u}function V1t(e,t){var r;return r=Z(X(Ki,1),Jo,30,15,[K1e(e,(Sd(),Bs),t),K1e(e,$a,t),K1e(e,Us,t)]),e.f&&(r[0]=b.Math.max(r[0],r[2]),r[2]=r[0]),r}function W1t(e){var t;gr(e,(Be(),iw))&&(t=l(F(e,iw),24),t.Gc((Ty(),ad))?(t.Kc(ad),t.Ec(ud)):t.Gc(ud)&&(t.Kc(ud),t.Ec(ad)))}function K1t(e){var t;gr(e,(Be(),iw))&&(t=l(F(e,iw),24),t.Gc((Ty(),ld))?(t.Kc(ld),t.Ec(Il)):t.Gc(Il)&&(t.Kc(Il),t.Ec(ld)))}function LY(e,t,r,o){var a,u,f,p;return e.a==null&&Qwn(e,t),f=t.b.j.c.length,u=r.d.p,p=o.d.p,a=p-1,a<0&&(a=f-1),u<=a?e.a[a]-e.a[u]:e.a[f-1]-e.a[u]+e.a[a]}function tmn(e){var t;for(t=0;t0&&(a.b+=t),a}function h7(e,t){var r,o,a;for(a=new ro,o=e.Jc();o.Ob();)r=l(o.Pb(),37),ex(r,0,a.b),a.b+=r.f.b+t,a.a=b.Math.max(a.a,r.f.a);return a.a>0&&(a.a+=t),a}function J1t(e,t){var r,o;if(t.length==0)return 0;for(r=lW(e.a,t[0],(He(),Kt)),r+=lW(e.a,t[t.length-1],Qt),o=0;o>16==6?e.Cb.Qh(e,5,Dd,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function amn(e){l_();var t=e.e;if(t&&t.stack){var r=t.stack,o=t+` +`;return r.substring(0,o.length)==o&&(r=r.substring(o.length)),r.split(` +`)}return[]}function umn(e){var t;return t=(nht(),J_t),t[e>>>28]|t[e>>24&15]<<4|t[e>>20&15]<<8|t[e>>16&15]<<12|t[e>>12&15]<<16|t[e>>8&15]<<20|t[e>>4&15]<<24|t[e&15]<<28}function Z1t(e){var t,r,o;e.b==e.c&&(o=e.a.length,r=Pge(b.Math.max(8,o))<<1,e.b!=0?(t=Gl(e.a,r),uht(e,t,o),e.a=t,e.b=0):Mw(e.a,r),e.c=o)}function cmn(e,t){var r;return r=e.b,r.nf((_n(),zu))?r.$f()==(He(),Kt)?-r.Kf().a-ue(ce(r.mf(zu))):t+ue(ce(r.mf(zu))):r.$f()==(He(),Kt)?-r.Kf().a:t}function z6(e){var t;return e.b.c.length!=0&&l(ze(e.b,0),70).a?l(ze(e.b,0),70).a:(t=wW(e),t??""+(e.c?_s(e.c.a,e,0):-1))}function p7(e){var t;return e.f.c.length!=0&&l(ze(e.f,0),70).a?l(ze(e.f,0),70).a:(t=wW(e),t??""+(e.i?_s(e.i.j,e,0):-1))}function lmn(e,t){var r,o;if(t<0||t>=e.gc())return null;for(r=t;r0?e.c:0),a=b.Math.max(a,t.d),++o;e.e=u,e.b=a}function dmn(e){var t,r;if(!e.b)for(e.b=$P(l(e.f,127).jh().i),r=new tn(l(e.f,127).jh());r.e!=r.i.gc();)t=l(rn(r),158),Fe(e.b,new uq(t));return e.b}function fmn(e,t){var r,o,a;if(t.dc())return JA(),JA(),c5;for(r=new pit(e,t.gc()),a=new tn(e);a.e!=a.i.gc();)o=rn(a),t.Gc(o)&&Tn(r,o);return r}function nbe(e,t,r,o){return t==0?o?(!e.o&&(e.o=new pu((Qs(),Dh),Rg,e,0)),e.o):(!e.o&&(e.o=new pu((Qs(),Dh),Rg,e,0)),s6(e.o)):s7(e,t,r,o)}function PY(e){var t,r;if(e.rb)for(t=0,r=e.rb.i;t>22),a+=o>>22,a<0)?!1:(e.l=r&Hu,e.m=o&Hu,e.h=a&Ep,!0)}function jY(e,t,r,o,a,u,f){var p,m;return!(t.Re()&&(m=e.a.Le(r,o),m<0||!a&&m==0)||t.Se()&&(p=e.a.Le(r,u),p>0||!f&&p==0))}function bmn(e,t){N_();var r;if(r=e.j.g-t.j.g,r!=0)return 0;switch(e.j.g){case 2:return iY(t,FSe)-iY(e,FSe);case 4:return iY(e,jSe)-iY(t,jSe)}return 0}function mmn(e){switch(e.g){case 0:return Hee;case 1:return zee;case 2:return Gee;case 3:return qee;case 4:return Y$;case 5:return Vee;default:return null}}function os(e,t,r){var o,a;return o=(a=new nq,Yb(a,t),Ma(a,r),Tn((!e.c&&(e.c=new ke(lw,e,12,10)),e.c),a),a),cg(o,0),cy(o,1),pg(o,!0),hg(o,!0),o}function ZS(e,t){var r,o;if(t>=e.i)throw Y(new iV(t,e.i));return++e.j,r=e.g[t],o=e.i-t-1,o>0&&ua(e.g,t+1,e.g,t,o),ii(e.g,--e.i,null),e.Oi(t,r),e.Li(),r}function Q1t(e,t){var r,o;return e.Db>>16==17?e.Cb.Qh(e,21,Ol,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||e.fi()),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function wmn(e){var t,r,o,a;for(At(),xi(e.c,e.a),a=new V(e.c);a.ar.a.c.length))throw Y(new jt("index must be >= 0 and <= layer node count"));e.c&&Xa(e.c.a,e),e.c=r,r&&Nb(r.a,t,e)}function abt(e,t){this.c=new hn,this.a=e,this.b=t,this.d=l(F(e,(Ie(),t2)),317),be(F(e,(Be(),DAe)))===be((l6(),J$))?this.e=new OZe:this.e=new RZe}function FY(e,t){var r,o;r=e.dd(t);try{return o=r.Pb(),r.Qb(),o}catch(a){throw a=ci(a),ae(a,113)?Y(new Ia("Can't remove element "+t)):Y(a)}}function _mn(e,t){var r,o,a;if(o=new q9,a=new Dge(o.q.getFullYear()-k1,o.q.getMonth(),o.q.getDate()),r=T_n(e,t,a),r==0||r0?t:0),++r;return new Me(o,a)}function Nmn(e,t,r){var o,a;switch(a=e.o,o=e.d,t.g){case 1:return-o.d-r;case 3:return a.b+o.a+r;case 2:return a.a+o.c+r;case 4:return-o.b-r;default:return 0}}function sbe(e,t,r,o){var a,u,f,p;for(Oi(t,l(o.Xb(0),26)),p=o.hd(1,o.gc()),u=l(r.Kb(t),22).Jc();u.Ob();)a=l(u.Pb(),17),f=a.c.i==t?a.d.i:a.c.i,sbe(e,f,r,p)}function cbt(e){var t;return t=new hn,gr(e,(Ie(),ste))?l(F(e,ste),93):(ei(lr(new Et(null,new St(e.j,16)),new eBe),new qYe(t)),Te(e,ste,t),t)}function Cmn(e,t,r){var o;r.Tg("AbsolutPlacer",1),(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i!=0&&(o=l(ve(t,(wh(),h4)),19),va(o,o.i-n0t(e,o)),tmt(e,o)),r.Ug()}function gC(e,t){var r,o;return o=null,e.nf((_n(),qT))&&(r=l(e.mf(qT),105),r.nf(t)&&(o=r.mf(t))),o==null&&e.Rf()&&(o=e.Rf().mf(t)),o==null&&(o=Ge(t)),o}function abe(e,t){var r,o;return e.Db>>16==6?e.Cb.Qh(e,6,Ir,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||(Qs(),bU)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function ube(e,t){var r,o;return e.Db>>16==7?e.Cb.Qh(e,1,t5,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||(Qs(),p3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function cbe(e,t){var r,o;return e.Db>>16==9?e.Cb.Qh(e,9,En,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||(Qs(),b3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function lbt(e,t){var r,o;return e.Db>>16==5?e.Cb.Qh(e,9,SU,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||(_t(),Dg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function dbt(e,t){var r,o;return e.Db>>16==7?e.Cb.Qh(e,6,Dd,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||(_t(),Mg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function lbe(e,t){var r,o;return e.Db>>16==3?e.Cb.Qh(e,0,r5,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||(_t(),Og)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function dbe(e,t){var r,o;return e.Db>>16==3?e.Cb.Qh(e,12,En,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||(Qs(),h3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function Imn(e,t,r){var o,a,u;for(r<0&&(r=0),u=e.i,a=r;avX)return z_(e,o);if(o==e)return!0}}return!1}function Omn(e){switch(z8(),e.q.g){case 5:t0t(e,(He(),Wt)),t0t(e,dn);break;case 4:uwt(e,(He(),Wt)),uwt(e,dn);break;default:mEt(e,(He(),Wt)),mEt(e,dn)}}function Dmn(e){switch(z8(),e.q.g){case 5:E0t(e,(He(),Qt)),E0t(e,Kt);break;case 4:b1t(e,(He(),Qt)),b1t(e,Kt);break;default:wEt(e,(He(),Qt)),wEt(e,Kt)}}function Lmn(e){var t,r;t=l(F(e,(ed(),wkt)),15),t?(r=t.a,r==0?Te(e,(h1(),E$),new rY):Te(e,(h1(),E$),new WP(r))):Te(e,(h1(),E$),new WP(1))}function Mmn(e,t){var r;switch(r=e.i,t.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-r.o.a;case 3:return e.n.b-r.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function Pmn(e,t){switch(e.g){case 0:return t==(ic(),xp)?U$:H$;case 1:return t==(ic(),xp)?U$:oL;case 2:return t==(ic(),xp)?oL:H$;default:return oL}}function q6(e,t){var r,o,a;for(Xa(e.a,t),e.e-=t.r+(e.a.c.length==0?0:e.c),a=NZ,o=new V(e.a);o.a>16==11?e.Cb.Qh(e,10,En,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||(Qs(),g3e)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function fbt(e,t){var r,o;return e.Db>>16==10?e.Cb.Qh(e,11,Ol,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||(_t(),Lg)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function hbt(e,t){var r,o;return e.Db>>16==10?e.Cb.Qh(e,12,Dl,t):(o=Mo(l(Nt((r=l(Vt(e,16),29),r||(_t(),yv)),e.Db>>16),20)),e.Cb.Qh(e,o.n,o.f,t))}function pbt(e,t){var r,o,a,u,f;if(t)for(a=t.a.length,r=new Ib(a),f=(r.b-r.a)*r.c<0?(r1(),eb):new s1(r);f.Ob();)u=l(f.Pb(),15),o=f_(t,u.a),o&&nwt(e,o)}function zmn(){yle();var e,t;for(w3n((a1(),Ut)),u3n(Ut),PY(Ut),I3e=(_t(),bf),t=new V($3e);t.a>19,y=t.h>>19,m!=y?y-m:(a=e.h,p=t.h,a!=p?a-p:(o=e.m,f=t.m,o!=f?o-f:(r=e.l,u=t.l,r-u)))}function gbt(e,t,r){var o,a,u,f,p;for(a=e[r.g],p=new V(t.d);p.a0?e.b:0),++r;t.b=o,t.e=a}function bbt(e){var t,r,o;if(o=e.b,$et(e.i,o.length)){for(r=o.length*2,e.b=we(PQ,yD,309,r,0,1),e.c=we(PQ,yD,309,r,0,1),e.f=r-1,e.i=0,t=e.a;t;t=t.c)Z6(e,t,t);++e.g}}function mC(e,t){return e.b.a=b.Math.min(e.b.a,t.c),e.b.b=b.Math.min(e.b.b,t.d),e.a.a=b.Math.max(e.a.a,t.c),e.a.b=b.Math.max(e.a.b,t.d),Ot(e.c,t),!0}function qmn(e,t,r){var o;o=t.c.i,o.k==(zt(),gi)?(Te(e,(Ie(),Cd),l(F(o,Cd),12)),Te(e,Nl,l(F(o,Nl),12))):(Te(e,(Ie(),Cd),t.c),Te(e,Nl,r.d))}function Vmn(e,t,r){return r.Tg(PSt,1),M3(e.b),pc(e.b,(JS(),LB),LB),pc(e.b,e4,e4),pc(e.b,t4,t4),pc(e.b,n4,n4),e.a=FC(e.b,t),D0n(e,t,r.dh(1)),r.Ug(),t}function G_(e,t,r){Z_();var o,a,u,f,p,m;return f=t/2,u=r/2,o=b.Math.abs(e.a),a=b.Math.abs(e.b),p=1,m=1,o>f&&(p=f/o),a>u&&(m=u/a),tp(e,b.Math.min(p,m)),e}function Wmn(){q7();var e,t;try{if(t=l(Tbe((n1(),Ll),Lx),2092),t)return t}catch(r){if(r=ci(r),ae(r,102))e=r,ahe((Cn(),e));else throw Y(r)}return new WGe}function Kmn(){q7();var e,t;try{if(t=l(Tbe((n1(),Ll),_l),2019),t)return t}catch(r){if(r=ci(r),ae(r,102))e=r,ahe((Cn(),e));else throw Y(r)}return new yqe}function Ymn(){hdt();var e,t;try{if(t=l(Tbe((n1(),Ll),lm),2101),t)return t}catch(r){if(r=ci(r),ae(r,102))e=r,ahe((Cn(),e));else throw Y(r)}return new fVe}function Jmn(e,t,r){var o,a;return a=e.e,e.e=t,e.Db&4&&!(e.Db&1)&&(o=new Pi(e,1,4,a,t),r?r.lj(o):r=o),a!=t&&(t?r=ox(e,O7(e,t),r):r=ox(e,e.a,r)),r}function mbt(){q9.call(this),this.e=-1,this.a=!1,this.p=Qi,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=Qi}function Xmn(e,t){var r,o,a;if(o=e.b.d.d,e.a||(o+=e.b.d.a),a=t.b.d.d,t.a||(a+=t.b.d.a),r=yr(o,a),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function Zmn(e,t){var r,o,a;if(o=e.b.b.d,e.a||(o+=e.b.b.a),a=t.b.b.d,t.a||(a+=t.b.b.a),r=yr(o,a),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function Qmn(e,t){var r,o,a;if(o=e.b.g.d,e.a||(o+=e.b.g.a),a=t.b.g.d,t.a||(a+=t.b.g.a),r=yr(o,a),r==0){if(!e.a&&t.a)return-1;if(!t.a&&e.a)return 1}return r}function pbe(){pbe=K,Pkt=Ra($n($n($n(new ui,(Vi(),da),(Zi(),TSe)),da,ASe),Ho,_Se),Ho,fSe),Fkt=$n($n(new ui,da,oSe),da,hSe),jkt=Ra(new ui,Ho,gSe)}function e0n(e){var t,r,o,a,u;for(t=l(F(e,(Ie(),RI)),93),u=e.n,o=t.Bc().Jc();o.Ob();)r=l(o.Pb(),319),a=r.i,a.c+=u.a,a.d+=u.b,r.c?Kwt(r):Ywt(r);Te(e,RI,null)}function t0n(e,t,r){var o,a;switch(a=e.b,o=a.d,t.g){case 1:return-o.d-r;case 2:return a.o.a+o.c+r;case 3:return a.o.b+o.a+r;case 4:return-o.b-r;default:return-1}}function wbt(e,t){var r,o;for(o=new V(t);o.a0&&(f=(u&sr)%e.d.length,a=mme(e,f,u,t),a)?(p=a.ld(r),p):(o=e.ak(u,t,r),e.c.Ec(o),null)}function mbe(e,t){var r,o,a,u;switch(fg(e,t).Il()){case 3:case 2:{for(r=CE(t),a=0,u=r.i;a=0;o--)if(wt(e[o].d,t)||wt(e[o].d,r)){e.length>=o+1&&e.splice(0,o+1);break}return e}function W6(e,t){var r;return gs(e)&&gs(t)&&(r=e/t,SD0&&(e.b+=2,e.a+=o):(e.b+=1,e.a+=b.Math.min(o,a))}function _bt(e,t){var r,o;if(o=!1,zi(t)&&(o=!0,RS(e,new Qw(In(t)))),o||ae(t,245)&&(o=!0,RS(e,(r=NV(l(t,245)),new E9(r)))),!o)throw Y(new cq(wEe))}function w0n(e,t,r,o){var a,u,f;return a=new cp(e.e,1,10,(f=t.c,ae(f,89)?l(f,29):(_t(),Ml)),(u=r.c,ae(u,89)?l(u,29):(_t(),Ml)),gg(e,t),!1),o?o.lj(a):o=a,o}function vbe(e){var t,r;switch(l(F(ji(e),(Be(),_Ae)),425).g){case 0:return t=e.n,r=e.o,new Me(t.a+r.a/2,t.b+r.b/2);case 1:return new So(e.n);default:return null}}function K6(){K6=K,X$=new i3(_d,0),tTe=new i3("LEFTUP",1),rTe=new i3("RIGHTUP",2),eTe=new i3("LEFTDOWN",3),nTe=new i3("RIGHTDOWN",4),Wee=new i3("BALANCED",5)}function y0n(e,t,r){var o,a,u;if(o=yr(e.a[t.p],e.a[r.p]),o==0){if(a=l(F(t,(Ie(),RT)),16),u=l(F(r,RT),16),a.Gc(r))return-1;if(u.Gc(t))return 1}return o}function v0n(e){switch(e.g){case 1:return new vze;case 2:return new Eze;case 3:return new yze;case 0:return null;default:throw Y(new jt(MZ+(e.f!=null?e.f:""+e.g)))}}function Ebe(e,t,r){switch(t){case 1:!e.n&&(e.n=new ke(Rs,e,1,7)),vn(e.n),!e.n&&(e.n=new ke(Rs,e,1,7)),ti(e.n,l(r,18));return;case 2:v_(e,In(r));return}Uge(e,t,r)}function Sbe(e,t,r){switch(t){case 3:Ub(e,ue(ce(r)));return;case 4:Hb(e,ue(ce(r)));return;case 5:va(e,ue(ce(r)));return;case 6:gu(e,ue(ce(r)));return}Ebe(e,t,r)}function b7(e,t,r){var o,a,u;u=(o=new nq,o),a=Zd(u,t,null),a&&a.mj(),Ma(u,r),Tn((!e.c&&(e.c=new ke(lw,e,12,10)),e.c),u),cg(u,0),cy(u,1),pg(u,!0),hg(u,!0)}function Tbe(e,t){var r,o,a;return r=e3(e.i,t),ae(r,244)?(a=l(r,244),a.wi()==null,a.ti()):ae(r,496)?(o=l(r,2016),a=o.b,a):null}function E0n(e,t,r,o){var a,u;return kn(t),kn(r),u=l(S3(e.d,t),15),Qdt(!!u,"Row %s not in %s",t,e.e),a=l(S3(e.b,r),15),Qdt(!!a,"Column %s not in %s",r,e.c),Zht(e,u.a,a.a,o)}function S0n(e){var t,r,o,a,u,f;for(r=null,a=e,u=0,f=a.length;u1||p==-1?(u=l(m,16),a.Wb(e1n(e,u))):a.Wb(TJ(e,l(m,57)))))}function C0n(e,t,r,o){pet();var a=OQ;function u(){for(var f=0;f0)return!1;return!0}function O0n(e){switch(l(F(e.b,(Be(),wAe)),382).g){case 1:ei(Oa(bs(new Et(null,new St(e.d,16)),new KBe),new YBe),new JBe);break;case 2:hTn(e);break;case 0:rvn(e)}}function D0n(e,t,r){var o,a,u;for(o=r,!o&&(o=new sS),o.Tg("Layout",e.a.c.length),u=new V(e.a);u.aRZ)return r;a>-1e-6&&++r}return r}function w7(e,t,r){if(ae(t,273))return l2n(e,l(t,74),r);if(ae(t,278))return jmn(e,l(t,278),r);throw Y(new jt(Mx+Qd(new Ls(Z(X(Ii,1),Rt,1,5,[t,r])))))}function y7(e,t,r){if(ae(t,273))return d2n(e,l(t,74),r);if(ae(t,278))return Fmn(e,l(t,278),r);throw Y(new jt(Mx+Qd(new Ls(Z(X(Ii,1),Rt,1,5,[t,r])))))}function _be(e,t){var r;t!=e.b?(r=null,e.b&&(r=OP(e.b,e,-4,r)),t&&(r=XS(t,e,-4,r)),r=Kpt(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,t,t))}function Cbt(e,t){var r;t!=e.f?(r=null,e.f&&(r=OP(e.f,e,-1,r)),t&&(r=XS(t,e,-1,r)),r=Ypt(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,0,t,t))}function F0n(e,t,r,o){var a,u,f,p;return Ju(e.e)&&(a=t.Jk(),p=t.kd(),u=r.kd(),f=c1(e,1,a,p,u,a.Hk()?nx(e,a,u,ae(a,104)&&(l(a,20).Bb&No)!=0):-1,!0),o?o.lj(f):o=f),o}function Ibt(e){var t,r,o;if(e==null)return null;if(r=l(e,16),r.dc())return"";for(o=new Xp,t=r.Jc();t.Ob();)Vo(o,(Tr(),In(t.Pb()))),o.a+=" ";return sV(o,o.a.length-1)}function Rbt(e){var t,r,o;if(e==null)return null;if(r=l(e,16),r.dc())return"";for(o=new Xp,t=r.Jc();t.Ob();)Vo(o,(Tr(),In(t.Pb()))),o.a+=" ";return sV(o,o.a.length-1)}function $0n(e,t){var r,o,a,u,f;for(u=new V(t.a);u.a0&&co(e,e.length-1)==33)try{return t=J0t(yl(e,0,e.length-1)),t.e==null}catch(r){if(r=ci(r),!ae(r,33))throw Y(r)}return!1}function H0n(e,t,r){var o,a,u;switch(o=ji(t),a=Gj(o),u=new aa,As(u,t),r.g){case 1:Ci(u,P6(WS(a)));break;case 2:Ci(u,WS(a))}return Te(u,(Be(),Jy),ce(F(e,Jy))),u}function xbe(e){var t,r;return t=l(en(new $t(qt(si(e.a).a.Jc(),new D))),17),r=l(en(new $t(qt(Or(e.a).a.Jc(),new D))),17),Ye(Ke(F(t,(Ie(),Ag))))||Ye(Ke(F(r,Ag)))}function yy(){yy=K,sL=new gO("ONE_SIDE",0),q$=new gO("TWO_SIDES_CORNER",1),V$=new gO("TWO_SIDES_OPPOSING",2),G$=new gO("THREE_SIDES",3),z$=new gO("FOUR_SIDES",4)}function Lbt(e,t){var r,o,a,u;for(u=new je,a=0,o=t.Jc();o.Ob();){for(r=Re(l(o.Pb(),15).a+a);r.a=e.f)break;Ot(u.c,r)}return u}function z0n(e){var t,r;for(r=new V(e.e.b);r.a0&&tbt(this,this.c-1,(He(),Qt)),this.c0&&e[0].length>0&&(this.c=Ye(Ke(F(ji(e[0][0]),(Ie(),yTe))))),this.a=we(c4t,Pe,2096,e.length,0,2),this.b=we(l4t,Pe,2097,e.length,0,2),this.d=new Fpt}function W0n(e){return e.c.length==0?!1:(at(0,e.c.length),l(e.c[0],17)).c.i.k==(zt(),gi)?!0:fE(Oa(new Et(null,new St(e,16)),new OUe),new CUe)}function jbt(e,t){var r,o,a,u,f,p,m;for(p=Ay(t),u=t.f,m=t.g,f=b.Math.sqrt(u*u+m*m),a=0,o=new V(p);o.a=0?(r=W6(e,rF),o=lY(e,rF)):(t=Rb(e,1),r=W6(t,5e8),o=lY(t,5e8),o=Ao(fh(o,1),Gi(e,1))),Of(fh(o,32),Gi(r,$o))}function swn(e,t,r,o){var a,u,f,p,m;for(a=null,u=0,p=new V(t);p.a1;t>>=1)t&1&&(o=dE(o,r)),r.d==1?r=dE(r,r):r=new r1t(Pyt(r.a,r.d,we(Rn,Qn,30,r.d<<1,15,1)));return o=dE(o,r),o}function Mbe(){Mbe=K;var e,t,r,o;for(m2e=we(Ki,Jo,30,25,15,1),w2e=we(Ki,Jo,30,33,15,1),o=152587890625e-16,t=32;t>=0;t--)w2e[t]=o,o*=.5;for(r=1,e=24;e>=0;e--)m2e[e]=r,r*=.5}function dwn(e){var t,r;if(Ye(Ke(ve(e,(Be(),Ky))))){for(r=new $t(qt(mp(e).a.Jc(),new D));an(r);)if(t=l(en(r),74),R0(t)&&Ye(Ke(ve(t,bm))))return!0}return!1}function Ubt(e){var t,r,o,a;for(t=new Ar,r=new Ar,a=An(e,0);a.b!=a.d.c;)o=l(Sn(a),12),o.e.c.length==0?Wr(r,o,r.c.b,r.c):Wr(t,o,t.c.b,t.c);return oc(t).Fc(r),t}function Hbt(e,t){var r,o,a;pi(e.f,t)&&(t.b=e,o=t.c,_s(e.j,o,0)!=-1||Fe(e.j,o),a=t.d,_s(e.j,a,0)!=-1||Fe(e.j,a),r=t.a.b,r.c.length!=0&&(!e.i&&(e.i=new s1t(e)),Dhn(e.i,r)))}function fwn(e){var t,r,o,a,u;return r=e.c.d,o=r.j,a=e.d.d,u=a.j,o==u?r.p=0&&wt(e.substr(t,3),"GMT")||t>=0&&wt(e.substr(t,3),"UTC"))&&(r[0]=t+3),w0e(e,r,o)}function pwn(e,t){var r,o,a,u,f;for(u=e.g.a,f=e.g.b,o=new V(e.d);o.ar;u--)e[u]|=t[u-r-1]>>>f,e[u-1]=t[u-r-1]<0&&ua(e.g,t,e.g,t+o,p),f=r.Jc(),e.i+=o,a=0;a>4&15,u=e[o]&15,f[a++]=m3e[r],f[a++]=m3e[u];return Mf(f,0,f.length)}function Qa(e){var t,r;return e>=No?(t=TD+(e-No>>10&1023)&Ei,r=56320+(e-No&1023)&Ei,String.fromCharCode(t)+(""+String.fromCharCode(r))):String.fromCharCode(e&Ei)}function Awn(e,t){qw();var r,o,a,u;return a=l(l(wr(e.r,t),24),85),a.gc()>=2?(o=l(a.Jc().Pb(),116),r=e.u.Gc((xu(),k4)),u=e.u.Gc(KT),!o.a&&!r&&(a.gc()==2||u)):!1}function Vbt(e,t,r,o,a){var u,f,p;for(u=Bwt(e,t,r,o,a),p=!1;!u;)C7(e,a,!0),p=!0,u=Bwt(e,t,r,o,a);p&&C7(e,a,!1),f=DK(a),f.c.length!=0&&(e.d&&e.d.Fg(f),Vbt(e,a,r,o,f))}function S7(){S7=K,xne=new m8("NODE_SIZE_REORDERER",0),Tne=new m8("INTERACTIVE_NODE_REORDERER",1),_ne=new m8("MIN_SIZE_PRE_PROCESSOR",2),Ane=new m8("MIN_SIZE_POST_PROCESSOR",3)}function T7(){T7=K,Are=new u3(_d,0),FNe=new u3("DIRECTED",1),BNe=new u3("UNDIRECTED",2),PNe=new u3("ASSOCIATION",3),$Ne=new u3("GENERALIZATION",4),jNe=new u3("DEPENDENCY",5)}function _wn(e,t){var r;if(!Gd(e))throw Y(new es(MTt));switch(r=Gd(e),t.g){case 1:return-(e.j+e.f);case 2:return e.i-r.g;case 3:return e.j-r.f;case 4:return-(e.i+e.g)}return 0}function xwn(e,t,r){var o,a,u;return o=t.Jk(),u=t.kd(),a=o.Hk()?c1(e,4,o,u,null,nx(e,o,u,ae(o,104)&&(l(o,20).Bb&No)!=0),!0):c1(e,o.rk()?2:1,o,u,o.gk(),-1,!0),r?r.lj(a):r=a,r}function V_(e,t){var r,o;for(Mt(t),o=e.b.c.length,Fe(e.b,t);o>0;){if(r=o,o=(o-1)/2|0,e.a.Le(ze(e.b,o),t)<=0)return nc(e.b,r,t),!0;nc(e.b,r,ze(e.b,o))}return nc(e.b,o,t),!0}function Fbe(e,t,r,o){var a,u;if(a=0,r)a=$j(e.a[r.g][t.g],o);else for(u=0;u=p)}function Wbt(e){switch(e.g){case 0:return new jze;case 1:return new Fze;default:throw Y(new jt("No implementation is available for the width approximator "+(e.f!=null?e.f:""+e.g)))}}function $be(e,t,r,o){var a;if(a=!1,zi(o)&&(a=!0,e_(t,r,In(o))),a||Bw(o)&&(a=!0,$be(e,t,r,o)),a||ae(o,245)&&(a=!0,Mb(t,r,l(o,245))),!a)throw Y(new cq(wEe))}function Nwn(e,t){var r,o,a;if(r=t.ni(e.a),r&&(a=Td((!r.b&&(r.b=new Zu((_t(),Ro),zs,r)),r.b),Al),a!=null)){for(o=1;o<(mu(),U3e).length;++o)if(wt(U3e[o],a))return o}return 0}function Cwn(e,t){var r,o,a;if(r=t.ni(e.a),r&&(a=Td((!r.b&&(r.b=new Zu((_t(),Ro),zs,r)),r.b),Al),a!=null)){for(o=1;o<(mu(),H3e).length;++o)if(wt(H3e[o],a))return o}return 0}function Kbt(e,t){var r,o,a,u;if(Mt(t),u=e.a.gc(),u0?1:0;u.a[a]!=r;)u=u.a[a],a=e.a.Le(r.d,u.d)>0?1:0;u.a[a]=o,o.b=r.b,o.a[0]=r.a[0],o.a[1]=r.a[1],r.a[0]=null,r.a[1]=null}function Own(e){var t,r,o,a;for(t=new je,r=we(uu,Ad,30,e.a.c.length,16,1),rhe(r,r.length),a=new V(e.a);a.a0&&Ryt((at(0,r.c.length),l(r.c[0],26)),e),r.c.length>1&&Ryt(l(ze(r,r.c.length-1),26),e),t.Ug()}function Lwn(e){xu();var t,r;return t=xr(Rp,Z(X(lU,1),Ce,282,0,[K1])),!(T6(LP(t,e))>1||(r=xr(k4,Z(X(lU,1),Ce,282,0,[x4,KT])),T6(LP(r,e))>1))}function Ube(e,t){var r;r=wa((n1(),Ll),e),ae(r,496)?ns(Ll,e,new gnt(this,t)):ns(Ll,e,this),XY(this,t),t==($A(),C3e)?(this.wb=l(this,2017),l(t,2019)):this.wb=(a1(),Ut)}function Mwn(e){var t,r,o;if(e==null)return null;for(t=null,r=0;ru}function Zbt(e,t){var r,o,a;if(zbe(e,t))return!0;for(o=new V(t);o.a=a||t<0)throw Y(new Ia(fQ+t+um+a));if(r>=a||r<0)throw Y(new Ia(hQ+r+um+a));return t!=r?o=(u=e.Aj(r),e.oj(t,u),u):o=e.vj(r),o}function emt(e){var t,r,o;if(o=e,e)for(t=0,r=e.Bh();r;r=r.Bh()){if(++t>vX)return emt(r);if(o=r,r==e)throw Y(new es("There is a cycle in the containment hierarchy of "+e))}return o}function Qd(e){var t,r,o;for(o=new qb(ja,"[","]"),r=e.Jc();r.Ob();)t=r.Pb(),up(o,be(t)===be(e)?"(this Collection)":t==null?tu:ms(t));return o.a?o.e.length==0?o.a.a:o.a.a+(""+o.e):o.c}function zbe(e,t){var r,o;if(o=!1,t.gc()<2)return!1;for(r=0;r0)for(o=0;o1&&(e.j.b+=e.e)):(e.j.a+=r.a,e.j.b=b.Math.max(e.j.b,r.b),e.d.c.length>1&&(e.j.a+=e.e))}function S1(){S1=K,ANt=Z(X(Io,1),ea,64,0,[(He(),Wt),Qt,dn]),TNt=Z(X(Io,1),ea,64,0,[Qt,dn,Kt]),_Nt=Z(X(Io,1),ea,64,0,[dn,Kt,Wt]),xNt=Z(X(Io,1),ea,64,0,[Kt,Wt,Qt])}function rmt(e){var t,r,o,a,u,f,p,m,y;for(this.a=A1t(e),this.b=new je,r=e,o=0,a=r.length;oTV(e.d).c?(e.i+=e.g.c,dY(e.d)):TV(e.d).c>TV(e.g).c?(e.e+=e.d.c,dY(e.g)):(e.i+=Got(e.g),e.e+=Got(e.d),dY(e.g),dY(e.d))}function Gwn(e,t,r){var o,a,u,f;for(u=t.q,f=t.r,new Pb((vd(),U1),t,u,1),new Pb(U1,u,f,1),a=new V(r);a.ap&&(m=p/o),a>u&&(y=u/a),f=b.Math.min(m,y),e.a+=f*(t.a-e.a),e.b+=f*(t.b-e.b)}function Kwn(e,t,r,o,a){var u,f;for(f=!1,u=l(ze(r.b,0),19);t_n(e,t,u,o,a)&&(f=!0,L0n(r,u),r.b.c.length!=0);)u=l(ze(r.b,0),19);return r.b.c.length==0&&q6(r.j,r),f&&f7(t.q),f}function qbe(e,t,r,o){var a,u;return r==0?(!e.o&&(e.o=new pu((Qs(),Dh),Rg,e,0)),q8(e.o,t,o)):(u=l(Nt((a=l(Vt(e,16),29),a||e.fi()),r),69),u.uk().yk(e,Ha(e),r-ln(e.fi()),t,o))}function XY(e,t){var r;t!=e.sb?(r=null,e.sb&&(r=l(e.sb,52).Qh(e,1,I4,r)),t&&(r=l(t,52).Oh(e,1,I4,r)),r=i1e(e,t,r),r&&r.mj()):e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,4,t,t))}function amt(e,t){var r,o,a,u;if(t)a=fp(t,"x"),r=new kXe(e),y0(r.a,(Mt(a),a)),u=fp(t,"y"),o=new NXe(e),v0(o.a,(Mt(u),u));else throw Y(new xf("All edge sections need an end point."))}function umt(e,t){var r,o,a,u;if(t)a=fp(t,"x"),r=new AXe(e),E0(r.a,(Mt(a),a)),u=fp(t,"y"),o=new _Xe(e),S0(o.a,(Mt(u),u));else throw Y(new xf("All edge sections need a start point."))}function Ywn(e,t){var r,o,a,u,f,p,m;for(o=kpt(e),u=0,p=o.length;u>22-t,a=e.h<>22-t):t<44?(r=0,o=e.l<>44-t):(r=0,o=0,a=e.l<=yg?"error":o>=900?"warn":o>=800?"info":"log"),Fst(r,e.a),e.b&&Vme(t,r,e.b,"Exception: ",!0))}function fmt(e,t){var r,o,a,u,f;for(a=t==1?fee:dee,o=a.a.ec().Jc();o.Ob();)for(r=l(o.Pb(),87),f=l(wr(e.f.c,r),24).Jc();f.Ob();)u=l(f.Pb(),49),Fe(e.b.b,l(u.b,84)),Fe(e.b.a,l(u.b,84).d)}function hmt(e,t,r,o){var a,u,f,p,m;switch(m=e.b,u=t.d,f=u.j,p=G1e(f,m.d[f.g],r),a=br(To(u.n),u.a),u.j.g){case 3:case 1:p.a+=a.a;break;case 2:p.b+=a.b;break;case 4:p.b+=a.b}Wr(o,p,o.c.b,o.c)}function Qwn(e,t){var r,o,a,u;for(u=t.b.j,e.a=we(Rn,Qn,30,u.c.length,15,1),a=0,o=0;oe)throw Y(new jt("k must be smaller than n"));return t==0||t==e?1:e==0?0:wbe(e)/(wbe(t)*wbe(e-t))}function Vbe(e,t){var r,o,a,u;for(r=new aV(e);r.g==null&&!r.c?jhe(r):r.g==null||r.i!=0&&l(r.g[r.i-1],51).Ob();)if(u=l(I7(r),57),ae(u,176))for(o=l(u,176),a=0;a>4],t[r*2+1]=kU[u&15];return Mf(t,0,t.length)}function fyn(e){var t,r,o;switch(o=e.c.length,o){case 0:return hW(),z_t;case 1:return t=l(Jmt(new V(e)),45),Cnn(t.jd(),t.kd());default:return r=l(Yd(e,we(dm,tF,45,e.c.length,0,1)),178),new vle(r)}}function bg(e,t){switch(t.g){case 1:return _S(e.j,(bu(),X2e));case 2:return _S(e.j,(bu(),Y2e));case 3:return _S(e.j,(bu(),Q2e));case 4:return _S(e.j,(bu(),eSe));default:return At(),At(),Co}}function hyn(e,t){var r,o,a;r=Con(t,e.e),o=l(Ht(e.g.f,r),15).a,a=e.a.c.length-1,e.a.c.length!=0&&l(ze(e.a,a),296).c==o?(++l(ze(e.a,a),296).a,++l(ze(e.a,a),296).b):Fe(e.a,new Vrt(o))}function T1(){T1=K,JRt=(_n(),GT),XRt=Od,VRt=Am,WRt=b2,KRt=G1,qRt=g2,Exe=v4,YRt=cv,mne=(c0e(),LRt),wne=MRt,Txe=$Rt,yne=HRt,Axe=BRt,_xe=URt,Sxe=PRt,HB=jRt,zB=FRt,RL=zRt,xxe=GRt,vxe=DRt}function bmt(e,t){var r,o,a,u,f;if(e.e<=t||pcn(e,e.g,t))return e.g;for(u=e.r,o=e.g,f=e.r,a=(u-o)/2+o;o+11&&(e.e.b+=e.a)):(e.e.a+=r.a,e.e.b=b.Math.max(e.e.b,r.b),e.d.c.length>1&&(e.e.a+=e.a))}function byn(e){var t,r,o,a;switch(a=e.i,t=a.b,o=a.j,r=a.g,a.a.g){case 0:r.a=(e.g.b.o.a-o.a)/2;break;case 1:r.a=t.d.n.a+t.d.a.a;break;case 2:r.a=t.d.n.a+t.d.a.a-o.a;break;case 3:r.b=t.d.n.b+t.d.a.b}}function myn(e,t,r){var o,a,u;for(a=new $t(qt(Lf(r).a.Jc(),new D));an(a);)o=l(en(a),17),!fo(o)&&!(!fo(o)&&o.c.i.c==o.d.i.c)&&(u=dwt(e,o,r,new PZe),u.c.length>1&&Ot(t.c,u))}function ymt(e,t,r,o,a){if(oo&&(e.a=o),e.ba&&(e.b=a),e}function wyn(e){if(ae(e,144))return z2n(l(e,144));if(ae(e,236))return Wgn(l(e,236));if(ae(e,21))return Xwn(l(e,21));throw Y(new jt(Mx+Qd(new Ls(Z(X(Ii,1),Rt,1,5,[e])))))}function yyn(e,t,r,o,a){var u,f,p;for(u=!0,f=0;f>>a|r[f+o+1]<>>a,++f}return u}function Jbe(e,t,r,o){var a,u,f;if(t.k==(zt(),gi)){for(u=new $t(qt(si(t).a.Jc(),new D));an(u);)if(a=l(en(u),17),f=a.c.i.k,f==gi&&e.c.a[a.c.i.c.p]==o&&e.c.a[t.c.p]==r)return!0}return!1}function vyn(e,t,r){var o;r.Tg("YPlacer",1),e.a=ue(ce(ve(t,(QS(),Pke)))),e.b=ue(ce(ve(t,(_n(),Od)))),(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i!=0&&(o=l(ve(t,(wh(),h4)),19),Ewt(e,o,0)),r.Ug()}function Eyn(e,t){var r,o,a,u;return t&=63,r=e.h&Ep,t<22?(u=r>>>t,a=e.m>>t|r<<22-t,o=e.l>>t|e.m<<22-t):t<44?(u=0,a=r>>>t-22,o=e.m>>t-22|e.h<<44-t):(u=0,a=0,o=r>>>t-44),Ua(o&Hu,a&Hu,u&Ep)}function vmt(e,t,r,o){var a;this.b=o,this.e=e==(Kb(),XI),a=t[r],this.d=Yw(uu,[Pe,Ad],[172,30],16,[a.length,a.length],2),this.a=Yw(Rn,[Pe,Qn],[54,30],15,[a.length,a.length],2),this.c=new Rbe(t,r)}function Syn(e){var t,r,o;for(e.k=new zhe((He(),Z(X(Io,1),ea,64,0,[Is,Wt,Qt,dn,Kt])).length,e.j.c.length),o=new V(e.j);o.a=r)return K_(e,t,o.p),!0;return!1}function _E(e,t,r,o){var a,u,f,p,m,y;for(f=r.length,u=0,a=-1,y=uft((Yt(t,e.length+1),e.substr(t)),(IV(),g2e)),p=0;pu&&vsn(y,uft(r[p],g2e))&&(a=p,u=m);return a>=0&&(o[0]=t+u),a}function _yn(e,t,r){var o,a,u,f,p,m,y,v;u=e.d.p,p=u.e,m=u.r,e.g=new FO(m),f=e.d.o.c.p,o=f>0?p[f-1]:we(Nh,vg,9,0,0,1),a=p[f],y=fr?sme(e,r,"start index"):t<0||t>r?sme(t,r,"end index"):CC("end index (%s) must not be less than start index (%s)",Z(X(Ii,1),Rt,1,5,[Re(t),Re(e)]))}function _mt(e,t){var r,o,a,u;for(o=0,a=e.length;o0&&xmt(e,u,r));t.p=0}function Cyn(e){var t,r,o,a;for(t=Db(zn(new fc("Predicates."),"and"),40),r=!0,a=new LN(e);a.b=0?e.hi(a):lme(e,o);else throw Y(new jt(R1+o.ve()+iI));else throw Y(new jt(VTt+t+WTt));else Jc(e,r,o)}function Xbe(e){var t,r;if(r=null,t=!1,ae(e,213)&&(t=!0,r=l(e,213).a),t||ae(e,266)&&(t=!0,r=""+l(e,266).a),t||ae(e,482)&&(t=!0,r=""+l(e,482).a),!t)throw Y(new cq(wEe));return r}function Zbe(e,t,r){var o,a,u,f,p,m;for(m=za(e.e.Ah(),t),o=0,p=e.i,a=l(e.g,123),f=0;f=e.d.b.c.length&&(t=new ra(e.d),t.p=o.p-1,Fe(e.d.b,t),r=new ra(e.d),r.p=o.p,Fe(e.d.b,r)),Oi(o,l(ze(e.d.b,o.p),26))}function Oyn(e){var t,r,o,a;for(r=new Ar,mo(r,e.o),o=new D9;r.b!=0;)t=l(r.b==0?null:(un(r.b!=0),Vc(r,r.a.a)),504),a=AEt(e,t,!0),a&&Fe(o.a,t);for(;o.a.c.length!=0;)t=l(Kge(o),504),AEt(e,t,!1)}function Ze(e){var t;this.c=new Ar,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=(t=l(md(cf),10),new Hc(t,l(Gl(t,t.length),10),0)),this.g=e.f}function A1(){A1=K,Bke=new gS(qC,0),Ai=new gS("BOOLEAN",1),yo=new gS("INT",2),HT=new gS("STRING",3),eo=new gS("DOUBLE",4),$r=new gS("ENUM",5),UT=new gS("ENUMSET",6),lf=new gS("OBJECT",7)}function yC(e,t){var r,o,a,u,f;o=b.Math.min(e.c,t.c),u=b.Math.min(e.d,t.d),a=b.Math.max(e.c+e.b,t.c+t.b),f=b.Math.max(e.d+e.a,t.d+t.a),a=(a/2|0))for(this.e=o?o.c:null,this.d=a;r++0;)zpe(this);this.b=t,this.a=null}function Myn(e,t){var r,o;t.a?aSn(e,t):(r=l(Eq(e.b,t.b),60),r&&r==e.a[t.b.f]&&r.a&&r.a!=t.b.a&&r.c.Ec(t.b),o=l(vq(e.b,t.b),60),o&&e.a[o.f]==t.b&&o.a&&o.a!=t.b.a&&t.b.c.Ec(o),gV(e.b,t.b))}function Dmt(e,t){var r,o;if(r=l(Wo(e.b,t),129),l(l(wr(e.r,t),24),85).dc()){r.n.b=0,r.n.c=0;return}r.n.b=e.C.b,r.n.c=e.C.c,e.A.Gc((sc(),xm))&&dyt(e,t),o=bbn(e,t),hJ(e,t)==(vE(),V1)&&(o+=2*e.w),r.a.a=o}function Lmt(e,t){var r,o;if(r=l(Wo(e.b,t),129),l(l(wr(e.r,t),24),85).dc()){r.n.d=0,r.n.a=0;return}r.n.d=e.C.d,r.n.a=e.C.a,e.A.Gc((sc(),xm))&&fyt(e,t),o=gbn(e,t),hJ(e,t)==(vE(),V1)&&(o+=2*e.w),r.a.b=o}function Pyn(e,t){var r,o,a,u;for(u=new je,o=new V(t);o.ao&&(Yt(t-1,e.length),e.charCodeAt(t-1)<=32);)--t;return o>0||tr.a&&(o.Gc((Zb(),g4))?a=(t.a-r.a)/2:o.Gc(b4)&&(a=t.a-r.a)),t.b>r.b&&(o.Gc((Zb(),w4))?u=(t.b-r.b)/2:o.Gc(m4)&&(u=t.b-r.b)),Bbe(e,a,u)}function $mt(e,t,r,o,a,u,f,p,m,y,v,T,N){ae(e.Cb,89)&&Sy(Pu(l(e.Cb,89)),4),Ma(e,r),e.f=f,M_(e,p),j_(e,m),L_(e,y),P_(e,v),pg(e,T),F_(e,N),hg(e,!0),cg(e,a),e.Xk(u),Yb(e,t),o!=null&&(e.i=null,Tj(e,o))}function sme(e,t,r){if(e<0)return CC(JEt,Z(X(Ii,1),Rt,1,5,[r,Re(e)]));if(t<0)throw Y(new jt(XEt+t));return CC("%s (%s) must not be greater than size (%s)",Z(X(Ii,1),Rt,1,5,[r,Re(e),Re(t)]))}function ame(e,t,r,o,a,u){var f,p,m,y;if(f=o-r,f<7){$gn(t,r,o,u);return}if(m=r+a,p=o+a,y=m+(p-m>>1),ame(t,e,m,y,-a,u),ame(t,e,y,p,-a,u),u.Le(e[y-1],e[y])<=0){for(;r=0?e.$h(u,r):$me(e,a,r);else throw Y(new jt(R1+a.ve()+iI));else throw Y(new jt(VTt+t+WTt));else Xc(e,o,a,r)}function Bmt(e){var t,r;if(e.f){for(;e.n>0;){if(t=l(e.k.Xb(e.n-1),76),r=t.Jk(),ae(r,104)&&l(r,20).Bb&Ws&&(!e.e||r.nk()!=Ak||r.Jj()!=0)&&t.kd()!=null)return!0;--e.n}return!1}else return e.n>0}function Umt(e){var t,r,o,a;if(r=l(e,52).Yh(),r)try{if(o=null,t=Y_((n1(),Ll),Myt(zgn(r))),t&&(a=t.Zh(),a&&(o=a.Dl(SQt(r.e)))),o&&o!=e)return Umt(o)}catch(u){if(u=ci(u),!ae(u,63))throw Y(u)}return e}function Zyn(e,t,r){var o,a,u;r.Tg("Remove overlaps",1),r.bh(t,gve),o=l(ve(t,(aE(),l2)),19),e.f=o,e.a=EY(l(ve(t,(T1(),RL)),304)),a=ce(ve(t,(_n(),Od))),ice(e,(Mt(a),a)),u=Ay(o),sEt(e,t,u,r),r.bh(t,MF)}function Qyn(e){var t,r,o;if(Ye(Ke(ve(e,(_n(),UL))))){for(o=new je,r=new $t(qt(mp(e).a.Jc(),new D));an(r);)t=l(en(r),74),R0(t)&&Ye(Ke(ve(t,fre)))&&Ot(o.c,t);return o}else return At(),At(),Co}function Hmt(e){if(!e)return bQe(),K_t;var t=e.valueOf?e.valueOf():e;if(t!==e){var r=HQ[typeof t];return r?r(t):n1e(typeof t)}else return e instanceof Array||e instanceof b.Array?new Xue(e):new JR(e)}function zmt(e,t,r){var o,a,u;switch(u=e.o,o=l(Wo(e.p,r),256),a=o.i,a.b=SC(o),a.a=EC(o),a.b=b.Math.max(a.b,u.a),a.b>u.a&&!t&&(a.b=u.a),a.c=-(a.b-u.a)/2,r.g){case 1:a.d=-a.a;break;case 3:a.d=u.b}xJ(o),kJ(o)}function Gmt(e,t,r){var o,a,u;switch(u=e.o,o=l(Wo(e.p,r),256),a=o.i,a.b=SC(o),a.a=EC(o),a.a=b.Math.max(a.a,u.b),a.a>u.b&&!t&&(a.a=u.b),a.d=-(a.a-u.b)/2,r.g){case 4:a.c=-a.b;break;case 2:a.c=u.a}xJ(o),kJ(o)}function evn(e,t){var r,o,a;return ae(t.g,9)&&l(t.g,9).k==(zt(),mi)?Kr:(a=PS(t),a?b.Math.max(0,e.b/2-.5):(r=lE(t),r?(o=ue(ce(by(r,(Be(),vm)))),b.Math.max(0,o/2-.5)):Kr))}function tvn(e,t){var r,o,a;return ae(t.g,9)&&l(t.g,9).k==(zt(),mi)?Kr:(a=PS(t),a?b.Math.max(0,e.b/2-.5):(r=lE(t),r?(o=ue(ce(by(r,(Be(),vm)))),b.Math.max(0,o/2-.5)):Kr))}function nvn(e,t){var r,o,a,u,f;if(!t.dc()){if(a=l(t.Xb(0),134),t.gc()==1){Iwt(e,a,a,1,0,t);return}for(r=1;r0)try{a=Ec(t,Qi,sr)}catch(u){throw u=ci(u),ae(u,133)?(o=u,Y(new oj(o))):Y(u)}return r=(!e.a&&(e.a=new KG(e)),e.a),a=0?l(oe(r,a),57):null}function ovn(e,t){if(e<0)return CC(JEt,Z(X(Ii,1),Rt,1,5,["index",Re(e)]));if(t<0)throw Y(new jt(XEt+t));return CC("%s (%s) must be less than size (%s)",Z(X(Ii,1),Rt,1,5,["index",Re(e),Re(t)]))}function svn(e){var t,r,o,a,u;if(e==null)return tu;for(u=new qb(ja,"[","]"),r=e,o=0,a=r.length;o=0?e.Ih(r,!0,!0):O0(e,a,!0),164)),l(o,222).Xl(t);else throw Y(new jt(R1+t.ve()+iI))}function dme(e){var t,r;return e>-0x800000000000&&e<0x800000000000?e==0?0:(t=e<0,t&&(e=-e),r=go(b.Math.floor(b.Math.log(e)/.6931471805599453)),(!t||e!=b.Math.pow(2,r))&&++r,r):igt(Gs(e))}function mvn(e){var t,r,o,a,u,f,p;for(u=new uh,r=new V(e);r.a2&&p.e.b+p.j.b<=2&&(a=p,o=f),u.a.yc(a,u),a.q=o);return u}function wvn(e,t,r){r.Tg("Eades radial",1),r.bh(t,MF),e.d=l(ve(t,(aE(),l2)),19),e.c=ue(ce(ve(t,(T1(),zB)))),e.e=EY(l(ve(t,RL),304)),e.a=s1n(l(ve(t,xxe),431)),e.b=v0n(l(ve(t,Sxe),355)),i0n(e),r.bh(t,MF)}function yvn(e,t){if(t.Tg("Target Width Setter",1),Gc(e,(ef(),One)))Vn(e,(yh(),iv),ce(ve(e,One)));else throw Y(new _f("A target width has to be set if the TargetWidthWidthApproximator should be used."));t.Ug()}function Xmt(e,t){var r,o,a;return o=new Xd(e),qs(o,t),Te(o,(Ie(),iB),t),Te(o,(Be(),Zr),(qi(),fa)),Te(o,Kf,(mh(),tU)),Jh(o,(zt(),mi)),r=new aa,As(r,o),Ci(r,(He(),Kt)),a=new aa,As(a,o),Ci(a,Qt),o}function Zmt(e,t){var r,o,a,u,f;for(e.c[t.p]=!0,Fe(e.a,t),f=new V(t.j);f.a=u)f.$b();else for(a=f.Jc(),o=0;o0?Jce():f<0&&i0t(e,t,-f),!0):!1}function Avn(e){var t;return t=Z(X(al,1),Bf,30,15,[71,77,84,45,48,48,58,48,48]),e<=0&&(t[3]=43,e=-e),t[4]=t[4]+((e/60|0)/10|0)&Ei,t[5]=t[5]+(e/60|0)%10&Ei,t[7]=t[7]+(e%60/10|0)&Ei,t[8]=t[8]+e%10&Ei,Mf(t,0,t.length)}function EC(e){var t,r,o,a,u,f,p;if(p=0,e.b==0){for(f=O1t(e,!0),t=0,o=f,a=0,u=o.length;a0&&(p+=r,++t);t>1&&(p+=e.c*(t-1))}else p=TQe(_K(ey(lr(tW(e.a),new IN),new Kp)));return p>0?p+e.n.d+e.n.a:0}function SC(e){var t,r,o,a,u,f,p;if(p=0,e.b==0)p=TQe(_K(ey(lr(tW(e.a),new Xg),new CN)));else{for(f=D1t(e,!0),t=0,o=f,a=0,u=o.length;a0&&(p+=r,++t);t>1&&(p+=e.c*(t-1))}return p>0?p+e.n.b+e.n.c:0}function _vn(e){var t,r;if(e.c.length!=2)throw Y(new es("Order only allowed for two paths."));t=(at(0,e.c.length),l(e.c[0],17)),r=(at(1,e.c.length),l(e.c[1],17)),t.d.i!=r.c.i&&(e.c.length=0,Ot(e.c,r),Ot(e.c,t))}function o0t(e,t,r){var o;for(i0(r,t.g,t.f),Bc(r,t.i,t.j),o=0;o<(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i;o++)o0t(e,l(oe((!t.a&&(t.a=new ke(En,t,10,11)),t.a),o),19),l(oe((!r.a&&(r.a=new ke(En,r,10,11)),r.a),o),19))}function xvn(e,t){var r,o,a,u;for(u=l(Wo(e.b,t),129),r=u.a,a=l(l(wr(e.r,t),24),85).Jc();a.Ob();)o=l(a.Pb(),116),o.c&&(r.a=b.Math.max(r.a,Pfe(o.c)));if(r.a>0)switch(t.g){case 2:u.n.c=e.s;break;case 4:u.n.b=e.s}}function kvn(e,t){var r,o,a;return r=l(F(t,(ed(),AT)),15).a-l(F(e,AT),15).a,r==0?(o=Di(To(l(F(e,(h1(),tL)),8)),l(F(e,SI),8)),a=Di(To(l(F(t,tL),8)),l(F(t,SI),8)),yr(o.a*o.b,a.a*a.b)):r}function Nvn(e,t){var r,o,a;return r=l(F(t,(js(),FB)),15).a-l(F(e,FB),15).a,r==0?(o=Di(To(l(F(e,(Nr(),NL)),8)),l(F(e,ck),8)),a=Di(To(l(F(t,NL),8)),l(F(t,ck),8)),yr(o.a*o.b,a.a*a.b)):r}function s0t(e){var t,r;return r=new Zg,r.a+="e_",t=Fhn(e),t!=null&&(r.a+=""+t),e.c&&e.d&&(zn((r.a+=" ",r),p7(e.c)),zn(ba((r.a+="[",r),e.c.i),"]"),zn((r.a+=PX,r),p7(e.d)),zn(ba((r.a+="[",r),e.d.i),"]")),r.a}function a0t(e){switch(e.g){case 0:return new HWe;case 1:return new zWe;case 2:return new eKe;case 3:return new tKe;default:throw Y(new jt("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}function pme(e,t,r,o,a){var u;switch(u=0,a.g){case 1:u=b.Math.max(0,t.b+e.b-(r.b+o));break;case 3:u=b.Math.max(0,-e.b-o);break;case 2:u=b.Math.max(0,-e.a-o);break;case 4:u=b.Math.max(0,t.a+e.a-(r.a+o))}return u}function u0t(e,t,r){var o,a,u,f,p;if(r)for(a=r.a.length,o=new Ib(a),p=(o.b-o.a)*o.c<0?(r1(),eb):new s1(o);p.Ob();)f=l(p.Pb(),15),u=f_(r,f.a),hEe in u.a||lQ in u.a?MTn(e,u,t):o3n(e,u,t),Utn(l(Ht(e.c,B_(u)),74))}function gme(e){var t,r;switch(e.b){case-1:return!0;case 0:return r=e.t,r>1||r==-1?(e.b=-1,!0):(t=Sl(e),t&&(Lo(),t.jk()==YAt)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function bme(e,t){var r,o,a,u;if(dr(e),e.c!=0||e.a!=123)throw Y(new Ln(jn((Cn(),mAt))));if(u=t==112,o=e.d,r=KA(e.i,125,o),r<0)throw Y(new Ln(jn((Cn(),wAt))));return a=yl(e.i,o,r),e.d=r+1,cdt(a,u,(e.e&512)==512)}function Cvn(e){var t,r,o,a,u,f,p;for(p=ch(e.c.length),a=new V(e);a.a=0&&o=0?e.Ih(r,!0,!0):O0(e,a,!0),164)),l(o,222).Ul(t);throw Y(new jt(R1+t.ve()+tQ))}function Rvn(){yle();var e;return hLt?l(Y_((n1(),Ll),_l),2017):(er(dm,new iVe),kkn(),e=l(ae(wa((n1(),Ll),_l),552)?wa(Ll,_l):new Qst,552),hLt=!0,x3n(e),O3n(e),Jn((wle(),N3e),e,new vqe),ns(Ll,_l,e),e)}function Ovn(e,t){var r,o,a,u;e.j=-1,Ju(e.e)?(r=e.i,u=e.i!=0,r6(e,t),o=new cp(e.e,3,e.c,null,t,r,u),a=t.xl(e.e,e.c,null),a=Mbt(e,t,a),a?(a.lj(o),a.mj()):hr(e.e,o)):(r6(e,t),a=t.xl(e.e,e.c,null),a&&a.mj())}function k7(e,t){var r,o,a;if(a=0,o=t[0],o>=e.length)return-1;for(r=(Yt(o,e.length),e.charCodeAt(o));r>=48&&r<=57&&(a=a*10+(r-48),++o,!(o>=e.length));)r=(Yt(o,e.length),e.charCodeAt(o));return o>t[0]?t[0]=o:a=-1,a}function Dvn(e,t,r){var o,a,u,f,p;f=e.c,p=e.d,u=xs(Z(X($i,1),Pe,8,0,[f.i.n,f.n,f.a])).b,a=(u+xs(Z(X($i,1),Pe,8,0,[p.i.n,p.n,p.a])).b)/2,o=null,f.j==(He(),Qt)?o=new Me(t+f.i.c.c.a+r,a):o=new Me(t-r,a),WA(e.a,0,o)}function R0(e){var t,r,o,a;for(t=null,o=hh(Wc(Z(X(nl,1),Rt,22,0,[(!e.b&&(e.b=new Tt(pn,e,4,7)),e.b),(!e.c&&(e.c=new Tt(pn,e,5,8)),e.c)])));an(o);)if(r=l(en(o),83),a=Yo(r),!t)t=a;else if(t!=a)return!1;return!0}function sJ(e,t,r){var o;if(++e.j,t>=e.i)throw Y(new Ia(fQ+t+um+e.i));if(r>=e.i)throw Y(new Ia(hQ+r+um+e.i));return o=e.g[r],t!=r&&(t>16),t=o>>16&16,r=16-t,e=e>>t,o=e-256,t=o>>16&8,r+=t,e<<=t,o=e-Ry,t=o>>16&4,r+=t,e<<=t,o=e-$f,t=o>>16&2,r+=t,e<<=t,o=e>>14,t=o&~(o>>1),r+2-t)}function Lvn(e,t){var r,o,a;for(a=new je,o=An(t.a,0);o.b!=o.d.c;)r=l(Sn(o),65),r.c.g==e.g&&be(F(r.b,(js(),Jf)))!==be(F(r.c,Jf))&&!fE(new Et(null,new St(a,16)),new VJe(r))&&Ot(a.c,r);return xi(a,new vHe),a}function l0t(e,t,r){var o,a,u,f;return ae(t,156)&&ae(r,156)?(u=l(t,156),f=l(r,156),e.a[u.a][f.a]+e.a[f.a][u.a]):ae(t,254)&&ae(r,254)&&(o=l(t,254),a=l(r,254),o.a==a.a)?l(F(a.a,(ed(),AT)),15).a:0}function d0t(e,t){var r,o,a,u,f,p,m,y;for(y=ue(ce(F(t,(Be(),GI)))),m=e[0].n.a+e[0].o.a+e[0].d.c+y,p=1;p=0?r:(p=O3(Di(new Me(f.c+f.b/2,f.d+f.a/2),new Me(u.c+u.b/2,u.d+u.a/2))),-(Gyt(u,f)-1)*p)}function Pvn(e,t,r){var o;ei(new Et(null,(!r.a&&(r.a=new ke(jr,r,6,6)),new St(r.a,16))),new qtt(e,t)),ei(new Et(null,(!r.n&&(r.n=new ke(Rs,r,1,7)),new St(r.n,16))),new Vtt(e,t)),o=l(ve(r,(_n(),p2)),79),o&&yge(o,e,t)}function O0(e,t,r){var o,a,u;if(u=IE((mu(),ao),e.Ah(),t),u)return Lo(),l(u,69).vk()||(u=MS(rs(ao,u))),a=(o=e.Fh(u),l(o>=0?e.Ih(o,!0,!0):O0(e,u,!0),164)),l(a,222).Ql(t,r);throw Y(new jt(R1+t.ve()+tQ))}function mme(e,t,r,o){var a,u,f,p,m;if(a=e.d[t],a){if(u=a.g,m=a.i,o!=null){for(p=0;p=r&&(o=t,y=(m.c+m.a)/2,f=y-r,m.c<=y-r&&(a=new LV(m.c,f),Nb(e,o++,a)),p=y+r,p<=m.a&&(u=new LV(p,m.a),ry(o,e.c.length),t3(e.c,o,u)))}function g0t(e,t,r){var o,a,u,f,p,m;if(!t.dc()){for(a=new Ar,m=t.Jc();m.Ob();)for(p=l(m.Pb(),41),Jn(e.a,Re(p.g),Re(r)),f=(o=An(new Qh(p).a.d,0),new qv(o));oO(f.a);)u=l(Sn(f.a),65).c,Wr(a,u,a.c.b,a.c);g0t(e,a,r+1)}}function wme(e){var t;if(!e.c&&e.g==null)e.d=e._i(e.f),Tn(e,e.d),t=e.d;else{if(e.g==null)return!0;if(e.i==0)return!1;t=l(e.g[e.i-1],51)}return t==e.b&&null.Tm>=null.Sm()?(I7(e),wme(e)):t.Ob()}function b0t(e){if(this.a=e,e.c.i.k==(zt(),mi))this.c=e.c,this.d=l(F(e.c.i,(Ie(),Hs)),64);else if(e.d.i.k==mi)this.c=e.d,this.d=l(F(e.d.i,(Ie(),Hs)),64);else throw Y(new jt("Edge "+e+" is not an external edge."))}function m0t(e,t){var r,o,a;a=e.b,e.b=t,e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,a,e.b)),t?t!=e&&(Ma(e,t.zb),pK(e,t.d),r=(o=t.c,o??t.zb),bK(e,r==null||wt(r,t.zb)?null:r)):(Ma(e,null),pK(e,0),bK(e,null))}function w0t(e){!BQ&&(BQ=LNn());var t=e.replace(/[\x00-\x1f\xad\u0600-\u0603\u06dd\u070f\u17b4\u17b5\u200b-\u200f\u2028-\u202e\u2060-\u2064\u206a-\u206f\ufeff\ufff9-\ufffb"\\]/g,function(r){return mun(r)});return'"'+t+'"'}function yme(e,t,r,o,a,u){var f,p,m,y,v;if(a!=0)for(be(e)===be(r)&&(e=e.slice(t,t+a),t=0),m=r,p=t,y=t+a;p=f)throw Y(new Ww(t,f));return a=r[t],f==1?o=null:(o=we(Mre,wQ,420,f-1,0,1),ua(r,0,o,0,t),u=f-t-1,u>0&&ua(r,t+1,o,t,u)),H_(e,o),Fmt(e,t,a),a}function y0t(e){var t,r;if(e.f){for(;e.n0)for(f=e.c.d,p=e.d.d,a=tp(Di(new Me(p.a,p.b),f),1/(o+1)),u=new Me(f.a,f.b),r=new V(e.a);r.a0?u=WS(r):u=P6(WS(r))),Vn(t,rk,u)}function A0t(e,t){var r,o;if(e.c.length!=0){if(e.c.length==2)aT((at(0,e.c.length),l(e.c[0],9)),(vc(),Ih)),aT((at(1,e.c.length),l(e.c[1],9)),q1);else for(o=new V(e);o.a0&&sD(e,r,t),u):o.a!=null?(sD(e,t,r),-1):a.a!=null?(sD(e,r,t),1):0}function _0t(e){NW();var t,r,o,a,u,f,p;for(r=new d1,a=new V(e.e.b);a.a=0;)o=r[u],f.$l(o.Jk())&&Tn(a,o);!CEt(e,a)&&Ju(e.e)&&LA(e,t.Hk()?c1(e,6,t,(At(),Co),null,-1,!1):c1(e,t.rk()?2:1,t,null,null,-1,!1))}function Vvn(e,t){var r,o,a,u,f;return e.a==(W_(),NI)?!0:(u=t.a.c,r=t.a.c+t.a.b,!(t.j&&(o=t.A,f=o.c.c.a-o.o.a/2,a=u-(o.n.a+o.o.a),a>f)||t.q&&(o=t.C,f=o.c.c.a-o.o.a/2,a=o.n.a-r,a>f)))}function k0t(e,t,r){var o,a,u,f,p,m;for(o=0,m=r,t||(o=r*(e.c.length-1),m*=-1),u=new V(e);u.a=0?e.xh(null):e.Mh().Qh(e,-1-t,null,null)),e.yh(l(a,52),r),o&&o.mj(),e.sh()&&e.th()&&r>-1&&hr(e,new Pi(e,9,r,u,a)),a):u}function Tme(e,t){var r,o,a,u,f;for(u=e.b.Ae(t),o=(r=e.a.get(u),r??we(Ii,Rt,1,0,5,1)),f=0;f>5,a>=e.d)return e.e<0;if(r=e.a[a],t=1<<(t&31),e.e<0){if(o=Tht(e),a>16)),16).bd(u),p0&&(!(ep(e.a.c)&&t.n.d)&&!(eE(e.a.c)&&t.n.b)&&(t.g.d+=b.Math.max(0,o/2-.5)),!(ep(e.a.c)&&t.n.a)&&!(eE(e.a.c)&&t.n.c)&&(t.g.a-=o-1))}function B0t(e,t,r){var o,a,u,f,p,m;u=l(ze(t.e,0),17).c,o=u.i,a=o.k,m=l(ze(r.g,0),17).d,f=m.i,p=f.k,a==(zt(),gi)?Te(e,(Ie(),Cd),l(F(o,Cd),12)):Te(e,(Ie(),Cd),u),p==gi?Te(e,(Ie(),Nl),l(F(f,Nl),12)):Te(e,(Ie(),Nl),m)}function U0t(e,t){var r,o,a,u,f,p;for(u=new V(e.b);u.a>t,u=e.m>>t|r<<22-t,a=e.l>>t|e.m<<22-t):t<44?(f=o?Ep:0,u=r>>t-22,a=e.m>>t-22|r<<44-t):(f=o?Ep:0,u=o?Hu:0,a=r>>t-44),Ua(a&Hu,u&Hu,f&Ep)}function aEn(e,t){var r;switch(M3(e.a),pc(e.a,(g7(),Wne),(X9(),Qne)),pc(e.a,Kne,(Z9(),ere)),pc(e.a,Yne,(Q9(),tre)),l(ve(t,(QS(),Zne)),389).g){case 1:r=(w6(),nre);break;case 0:default:r=(w6(),rre)}return pc(e.a,Jne,r),FC(e.a,t)}function H0t(e,t){var r,o,a,u,f,p,m,y,v;if(e.a.f>0&&ae(t,45)&&(e.a.Zj(),y=l(t,45),m=y.jd(),u=m==null?0:Rr(m),f=Yde(e.a,u),r=e.a.d[f],r)){for(o=l(r.g,375),v=r.i,p=0;p=2)for(r=a.Jc(),t=ce(r.Pb());r.Ob();)u=t,t=ce(r.Pb()),o=b.Math.min(o,(Mt(t),t-(Mt(u),u)));return o}function bEn(e,t){var r,o,a;for(a=new je,o=An(t.a,0);o.b!=o.d.c;)r=l(Sn(o),65),r.b.g==e.g&&!wt(r.b.c,DF)&&be(F(r.b,(js(),Jf)))!==be(F(r.c,Jf))&&!fE(new Et(null,new St(a,16)),new WJe(r))&&Ot(a.c,r);return xi(a,new AHe),a}function mEn(e,t){var r,o,a;if(be(t)===be(kn(e)))return!0;if(!ae(t,16)||(o=l(t,16),a=e.gc(),a!=o.gc()))return!1;if(ae(o,59)){for(r=0;r0&&(a=r),f=new V(e.f.e);f.a0?a+=t:a+=1;return a}function _En(e,t){var r,o,a,u,f,p,m,y,v,T;y=e,m=B3(y,"individualSpacings"),m&&(o=Gc(t,(_n(),qT)),f=!o,f&&(a=new IG,Vn(t,qT,a)),p=l(ve(t,qT),380),T=m,u=null,T&&(u=(v=EK(T,we(Je,Pe,2,0,6,1)),new yq(T,v))),u&&(r=new fnt(T,p),lo(u,r)))}function xEn(e,t){var r,o,a,u,f,p,m,y,v,T,N;return m=null,T=e,v=null,(nAt in T.a||rAt in T.a||HF in T.a)&&(y=null,N=Cge(t),f=B3(T,nAt),r=new RXe(N),Agt(r.a,f),p=B3(T,rAt),o=new BXe(N),_gt(o.a,p),u=m0(T,HF),a=new zXe(N),y=(Dbt(a.a,u),u),v=y),m=v,m}function kEn(e,t){var r,o,a;if(t===e)return!0;if(ae(t,544)){if(a=l(t,841),e.a.d!=a.a.d||uE(e).gc()!=uE(a).gc())return!1;for(o=uE(a).Jc();o.Ob();)if(r=l(o.Pb(),421),Aut(e,r.a.jd())!=l(r.a.kd(),18).gc())return!1;return!0}return!1}function NEn(e,t){var r,o,a,u;for(u=new V(t.a);u.at.c?1:e.bt.b?1:e.a!=t.a?Rr(e.a)-Rr(t.a):e.d==(H3(),QI)&&t.d==ZI?-1:e.d==ZI&&t.d==QI?1:0}function cJ(e){var t,r,o,a,u,f,p,m;for(a=Kr,o=Li,r=new V(e.e.b);r.a0&&a0):a<0&&-a0):!1}function IEn(e,t,r,o){var a,u,f,p,m,y,v,T;for(a=(t-e.d)/e.c.c.length,u=0,e.a+=r,e.d=t,T=new V(e.c);T.a>24;return f}function OEn(e){if(e.xe()){var t=e.c;t.ye()?e.o="["+t.n:t.xe()?e.o="["+t.ve():e.o="[L"+t.ve()+";",e.b=t.ue()+"[]",e.k=t.we()+"[]";return}var r=e.j,o=e.d;o=o.split("/"),e.o=fY(".",[r,fY("$",o)]),e.b=fY(".",[r,fY(".",o)]),e.k=o[o.length-1]}function DEn(e,t){var r,o,a,u,f;for(f=null,u=new V(e.e.a);u.a0&&hD(t,(at(o-1,e.c.length),l(e.c[o-1],9)),a)>0;)nc(e,o,(at(o-1,e.c.length),l(e.c[o-1],9))),--o;at(o,e.c.length),e.c[o]=a}t.b=new hn,t.g=new hn}function ewt(e,t,r){var o,a,u;for(o=1;o0&&t.Le((at(a-1,e.c.length),l(e.c[a-1],9)),u)>0;)nc(e,a,(at(a-1,e.c.length),l(e.c[a-1],9))),--a;at(a,e.c.length),e.c[a]=u}r.a=new hn,r.b=new hn}function C7(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(u=t.Jc();u.Ob();)a=l(u.Pb(),19),v=a.i+a.g/2,N=a.j+a.f/2,m=e.f,f=m.i+m.g/2,p=m.j+m.f/2,y=v-f,T=N-p,o=b.Math.sqrt(y*y+T*T),y*=e.e/o,T*=e.e/o,r?(v-=y,N-=T):(v+=y,N+=T),va(a,v-a.g/2),gu(a,N-a.f/2)}function xE(e){var t,r,o;if(!e.c&&e.b!=null){for(t=e.b.length-4;t>=0;t-=2)for(r=0;r<=t;r+=2)(e.b[r]>e.b[r+2]||e.b[r]===e.b[r+2]&&e.b[r+1]>e.b[r+3])&&(o=e.b[r+2],e.b[r+2]=e.b[r],e.b[r]=o,o=e.b[r+3],e.b[r+3]=e.b[r+1],e.b[r+1]=o);e.c=!0}}function Zl(e){var t,r;return r=new fc(Ab(e.Pm)),r.a+="@",zn(r,(t=Rr(e)>>>0,t.toString(16))),e.Sh()?(r.a+=" (eProxyURI: ",ba(r,e.Yh()),e.Hh()&&(r.a+=" eClass: ",ba(r,e.Hh())),r.a+=")"):e.Hh()&&(r.a+=" (eClass: ",ba(r,e.Hh()),r.a+=")"),r.a}function _C(e){var t,r,o,a;if(e.e)throw Y(new es((np(QQ),NX+QQ.k+CX)));for(e.d==(vi(),hf)&&J7(e,as),r=new V(e.a.a);r.a>24}return r}function $En(e,t,r){var o,a,u;if(a=l(Wo(e.i,t),319),!a)if(a=new dft(e.d,t,r),IS(e.i,t,a),j1e(t))Btn(e.a,t.c,t.b,a);else switch(u=Dyn(t),o=l(Wo(e.p,u),256),u.g){case 1:case 3:a.j=!0,aq(o,t.b,a);break;case 4:case 2:a.k=!0,aq(o,t.c,a)}return a}function BEn(e,t,r,o){var a,u,f,p,m,y;if(p=new m9,m=za(e.e.Ah(),t),a=l(e.g,123),Lo(),l(t,69).vk())for(f=0;f=0)return a;for(u=1,p=new V(t.j);p.a=0)return a;for(u=1,p=new V(t.j);p.a=0?(t||(t=new GN,o>0&&Vo(t,(io(0,o,e.length),e.substr(0,o)))),t.a+="\\",i_(t,r&Ei)):t&&i_(t,r&Ei);return t?t.a:e}function HEn(e){var t,r,o;for(r=new V(e.a.a.b);r.a0&&(!(ep(e.a.c)&&t.n.d)&&!(eE(e.a.c)&&t.n.b)&&(t.g.d-=b.Math.max(0,o/2-.5)),!(ep(e.a.c)&&t.n.a)&&!(eE(e.a.c)&&t.n.c)&&(t.g.a+=b.Math.max(0,o-1)))}function swt(e,t,r){var o,a;if((e.c-e.b&e.a.length-1)==2)t==(He(),Wt)||t==Qt?(fj(l(Q3(e),16),(vc(),Ih)),fj(l(Q3(e),16),q1)):(fj(l(Q3(e),16),(vc(),q1)),fj(l(Q3(e),16),Ih));else for(a=new L3(e);a.a!=a.b;)o=l(Bj(a),16),fj(o,r)}function zEn(e,t,r){var o,a,u,f,p,m,y,v,T;for(v=-1,T=0,p=t,m=0,y=p.length;m0&&++T;++v}return T}function GEn(e,t,r){var o;if(r.Tg("XPlacer",1),e.b=ue(ce(ve(t,(_n(),Od)))),e.a=Ye(Ke(ve(t,(QS(),Xne)))),(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i!=0)switch(o=l(ve(t,(wh(),h4)),19),l(ve(t,Zne),389).g){case 0:VEt(e,o);break;case 1:qEt(e,o)}r.Ug()}function qEn(e,t){var r,o,a,u,f,p,m;for(a=QA(new Tce(e)),p=new Xi(a,a.c.length),u=QA(new Tce(t)),m=new Xi(u,u.c.length),f=null;p.b>0&&m.b>0&&(r=(un(p.b>0),l(p.a.Xb(p.c=--p.b),19)),o=(un(m.b>0),l(m.a.Xb(m.c=--m.b),19)),r==o);)f=r;return f}function VEn(e,t){var r,o,a,u;for(t.Tg("Self-Loop pre-processing",1),o=new V(e.a);o.aLut(e,r)?(o=ks(r,(He(),Qt)),e.d=o.dc()?0:$V(l(o.Xb(0),12)),f=ks(t,Kt),e.b=f.dc()?0:$V(l(f.Xb(0),12))):(a=ks(r,(He(),Kt)),e.d=a.dc()?0:$V(l(a.Xb(0),12)),u=ks(t,Qt),e.b=u.dc()?0:$V(l(u.Xb(0),12)))}function WEn(e){var t,r,o,a,u,f,p,m;t=!0,a=null,u=null;e:for(m=new V(e.a);m.ae.c));f++)a.a>=e.s&&(u<0&&(u=f),p=f);return m=(e.s+e.c)/2,u>=0&&(o=DTn(e,t,u,p),m=yen((at(o,t.c.length),l(t.c[o],341))),Bvn(t,o,r)),m}function xn(e,t,r){var o,a,u,f,p,m,y;for(f=(u=new Hue,u),uge(f,(Mt(t),t)),y=(!f.b&&(f.b=new Zu((_t(),Ro),zs,f)),f.b),m=1;m=2}function XEn(e,t,r,o,a){var u,f,p,m,y,v;for(u=e.c.d.j,f=l(sa(r,0),8),v=1;v1||(t=xr(ad,Z(X(zo,1),Ce,96,0,[Ip,ud])),T6(LP(t,e))>1)||(o=xr(ld,Z(X(zo,1),Ce,96,0,[Rh,Il])),T6(LP(o,e))>1))}function cwt(e){var t,r,o,a,u,f,p;for(t=0,o=new V(e.a);o.a0&&(o.b.n-=o.c,o.b.n<=0&&o.b.u>0&&Gn(t,o.b));for(a=new V(e.i);a.a0&&(o.a.u-=o.c,o.a.u<=0&&o.a.n>0&&Gn(r,o.a))}function QEn(e){var t,r,o,a,u,f;for(f=l(ve(e,(_n(),df)),100),r=0,o=0,u=new tn((!e.a&&(e.a=new ke(En,e,10,11)),e.a));u.e!=u.i.gc();)a=l(rn(u),19),t=l(ve(a,Cp),125),r1||r>1)return 2;return t+r==1?2:0}function Bu(e,t){var r,o,a,u,f,p;return u=e.a*AX+e.b*1502,p=e.b*AX+11,r=b.Math.floor(p*_D),u+=r,p-=r*dwe,u%=dwe,e.a=u,e.b=p,t<=24?b.Math.floor(e.a*m2e[t]):(a=e.a*(1<=2147483648&&(o-=4294967296),o)}function fwt(e,t,r){var o,a,u,f,p,m,y;for(u=new je,y=new Ar,f=new Ar,E_n(e,y,f,t),nkn(e,y,f,t,r),m=new V(e);m.ao.b.g&&Ot(u.c,o);return u}function s2n(e,t,r){var o,a,u,f,p,m;for(p=e.c,f=(r.q?r.q:(At(),At(),xh)).vc().Jc();f.Ob();)u=l(f.Pb(),45),o=!BA(lr(new Et(null,new St(p,16)),new RA(new $tt(t,u)))).zd((_b(),TT)),o&&(m=u.kd(),ae(m,4)&&(a=$1e(m),a!=null&&(m=a)),t.of(l(u.jd(),149),m))}function a2n(e,t){var r,o,a,u;for(t.Tg("Resize child graph to fit parent.",1),o=new V(e.b);o.a1)for(a=new V(e.a);a.a=0?e.Ih(o,!0,!0):O0(e,u,!0),164)),l(a,222).Vl(t,r)}else throw Y(new jt(R1+t.ve()+iI))}function l2n(e,t,r){var o,a,u,f,p,m;if(m=qde(e,l(Ht(e.e,t),19)),p=null,m)switch(m.g){case 3:o=hde(e,ty(t)),p=(Mt(r),r+(Mt(o),o));break;case 2:a=hde(e,ty(t)),f=(Mt(r),r+(Mt(a),a)),u=hde(e,l(Ht(e.e,t),19)),p=f-(Mt(u),u);break;default:p=r}else p=r;return p}function d2n(e,t,r){var o,a,u,f,p,m;if(m=qde(e,l(Ht(e.e,t),19)),p=null,m)switch(m.g){case 3:o=pde(e,ty(t)),p=(Mt(r),r+(Mt(o),o));break;case 2:a=pde(e,ty(t)),f=(Mt(r),r+(Mt(a),a)),u=pde(e,l(Ht(e.e,t),19)),p=f-(Mt(u),u);break;default:p=r}else p=r;return p}function O7(e,t){var r,o,a,u,f;if(t){for(u=ae(e.Cb,89)||ae(e.Cb,104),f=!u&&ae(e.Cb,336),o=new tn((!t.a&&(t.a=new A3(t,Go,t)),t.a));o.e!=o.i.gc();)if(r=l(rn(o),88),a=z7(r),u?ae(a,89):f?ae(a,160):a)return a;return u?(_t(),Ml):(_t(),bf)}else return null}function f2n(e,t){var r,o,a,u,f;for(r=new je,a=bs(new Et(null,new St(e,16)),new lHe),u=bs(new Et(null,new St(e,16)),new dHe),f=Kdn(pdn(ey(T2n(Z(X(z3n,1),Rt,840,0,[a,u])),new fHe))),o=1;o=2*t&&Fe(r,new LV(f[o-1]+t,f[o]-t));return r}function hwt(e,t,r){var o,a,u,f,p,m,y,v;if(r)for(u=r.a.length,o=new Ib(u),p=(o.b-o.a)*o.c<0?(r1(),eb):new s1(o);p.Ob();)f=l(p.Pb(),15),a=f_(r,f.a),a&&(m=yln(e,(y=(e1(),v=new Fce,v),t&&Bme(y,t),y),a),v_(m,sp(a,qf)),E7(a,m),ume(a,m),jK(e,a,m))}function D7(e){var t,r,o,a,u,f;if(!e.j){if(f=new uqe,t=L4,u=t.a.yc(e,t),u==null){for(o=new tn(ds(e));o.e!=o.i.gc();)r=l(rn(o),29),a=D7(r),ti(f,a),Tn(f,r);t.a.Ac(e)!=null}hy(f),e.j=new Qv((l(oe(Ne((a1(),Ut).o),11),20),f.i),f.g),Pu(e).b&=-33}return e.j}function h2n(e){var t,r,o,a;if(e==null)return null;if(o=Ta(e,!0),a=JD.length,wt(o.substr(o.length-a,a),JD)){if(r=o.length,r==4){if(t=(Yt(0,o.length),o.charCodeAt(0)),t==43)return K3e;if(t==45)return LLt}else if(r==3)return K3e}return new Ice(o)}function p2n(e){var t,r,o;return r=e.l,r&r-1||(o=e.m,o&o-1)||(t=e.h,t&t-1)||t==0&&o==0&&r==0?-1:t==0&&o==0&&r!=0?tge(r):t==0&&o!=0&&r==0?tge(o)+22:t!=0&&o==0&&r==0?tge(t)+44:-1}function kE(e,t){var r,o,a,u,f;for(a=t.a&e.f,u=null,o=e.b[a];;o=o.b){if(o==t){u?u.b=t.b:e.b[a]=t.b;break}u=o}for(f=t.f&e.f,u=null,r=e.c[f];;r=r.d){if(r==t){u?u.d=t.d:e.c[f]=t.d;break}u=r}t.e?t.e.c=t.c:e.a=t.c,t.c?t.c.e=t.e:e.e=t.e,--e.i,++e.g}function g2n(e,t){var r;t.d?t.d.b=t.b:e.a=t.b,t.b?t.b.d=t.d:e.e=t.d,!t.e&&!t.c?(r=l(wl(l(FS(e.b,t.a),263)),263),r.a=0,++e.c):(r=l(wl(l(Ht(e.b,t.a),263)),263),--r.a,t.e?t.e.c=t.c:r.b=l(wl(t.c),501),t.c?t.c.e=t.e:r.c=l(wl(t.e),501)),--e.d}function lJ(e,t){var r,o,a,u;for(u=new Xi(e,0),r=(un(u.b0),u.a.Xb(u.c=--u.b),Vw(u,a),un(u.b3&&bh(e,0,t-3))}function m2n(e){var t,r,o,a;return be(F(e,(Be(),Wy)))===be((pp(),Ig))?!e.e&&be(F(e,mL))!==be((__(),cL)):(o=l(F(e,gte),303),a=Ye(Ke(F(e,bte)))||be(F(e,BI))===be((lC(),aL)),t=l(F(e,fAe),15).a,r=e.a.c.length,!a&&o!=(__(),cL)&&(t==0||t>r))}function w2n(e,t){var r,o,a,u,f,p,m;for(a=e.Jc();a.Ob();)for(o=l(a.Pb(),9),p=new aa,As(p,o),Ci(p,(He(),Qt)),Te(p,(Ie(),oB),(Lt(),!0)),f=t.Jc();f.Ob();)u=l(f.Pb(),9),m=new aa,As(m,u),Ci(m,Kt),Te(m,oB,!0),r=new p0,Te(r,oB,!0),bo(r,p),Ji(r,m)}function y2n(e){var t,r;for(r=0;r0);r++);if(r>0&&r0);t++);return t>0&&r>16!=6&&t){if(z_(e,t))throw Y(new jt(oI+N0t(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?abe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=XS(t,e,6,o)),o=Wde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,6,t,t))}function L7(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=3&&t){if(z_(e,t))throw Y(new jt(oI+Svt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?dbe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=XS(t,e,12,o)),o=Vde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,t,t))}function Bme(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=9&&t){if(z_(e,t))throw Y(new jt(oI+byt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?cbe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=XS(t,e,9,o)),o=Kde(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,9,t,t))}function J_(e){var t,r,o,a,u;if(o=Sl(e),u=e.j,u==null&&o)return e.Hk()?null:o.gk();if(ae(o,160)){if(r=o.hk(),r&&(a=r.ti(),a!=e.i)){if(t=l(o,160),t.lk())try{e.g=a.qi(t,u)}catch(f){if(f=ci(f),ae(f,81))e.g=null;else throw Y(f)}e.i=a}return e.g}return null}function wwt(e){var t;return t=new je,Fe(t,new hS(new Me(e.c,e.d),new Me(e.c+e.b,e.d))),Fe(t,new hS(new Me(e.c,e.d),new Me(e.c,e.d+e.a))),Fe(t,new hS(new Me(e.c+e.b,e.d+e.a),new Me(e.c+e.b,e.d))),Fe(t,new hS(new Me(e.c+e.b,e.d+e.a),new Me(e.c,e.d+e.a))),t}function E2n(e){var t,r,o,a;for(o=e.a.d.j,a=e.c.d.j,r=new V(e.i.d);r.a>>0),r.toString(16)),z1n(Vhn(),(GA(),"Exception during lenientFormat for "+o),t),"<"+o+" threw "+Ab(t.Pm)+">";throw Y(a)}}function T2n(e){var t,r,o,a,u,f,p,m,y;for(o=!1,t=336,r=0,u=new bit(e.length),p=e,m=0,y=p.length;m1)for(t=o0((r=new Tb,++e.b,r),e.d),p=An(u,0);p.b!=p.d.c;)f=l(Sn(p),126),Ql($l(Ul(Hl(Bl(new gl,1),0),t),f))}function M7(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=11&&t){if(z_(e,t))throw Y(new jt(oI+a0e(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?fbe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=XS(t,e,10,o)),o=ife(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,11,t,t))}function N2n(e,t,r){var o,a,u,f,p,m;if(u=0,f=0,e.c)for(m=new V(e.d.i.j);m.au.a?-1:a.am){for(v=e.d,e.d=we(y3e,kEe,67,2*m+4,0,1),u=0;u=9223372036854776e3?(m_(),KEe):(a=!1,e<0&&(a=!0,e=-e),o=0,e>=nm&&(o=go(e/nm),e-=o*nm),r=0,e>=fT&&(r=go(e/fT),e-=r*fT),t=go(e),u=Ua(t,r,o),a&&PK(u),u)}function B2n(e){var t,r,o,a,u;if(u=new je,La(e.b,new cYe(u)),e.b.c.length=0,u.c.length!=0){for(t=(at(0,u.c.length),l(u.c[0],81)),r=1,o=u.c.length;r>16!=7&&t){if(z_(e,t))throw Y(new jt(oI+Smt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?ube(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=l(t,52).Oh(e,1,t5,o)),o=Wfe(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,7,t,t))}function Swt(e,t){var r,o;if(t!=e.Cb||e.Db>>16!=3&&t){if(z_(e,t))throw Y(new jt(oI+agt(e)));o=null,e.Cb&&(o=(r=e.Db>>16,r>=0?lbe(e,o):e.Cb.Qh(e,-1-r,null,o))),t&&(o=l(t,52).Oh(e,0,r5,o)),o=Kfe(e,t,o),o&&o.mj()}else e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,3,t,t))}function dJ(e,t){Q_();var r,o,a,u,f,p,m,y,v;return t.d>e.d&&(p=e,e=t,t=p),t.d<63?ISn(e,t):(f=(e.d&-2)<<4,y=fpe(e,f),v=fpe(t,f),o=RJ(e,jS(y,f)),a=RJ(t,jS(v,f)),m=dJ(y,v),r=dJ(o,a),u=dJ(RJ(y,o),RJ(a,v)),u=FJ(FJ(u,m),r),u=jS(u,f),m=jS(m,f<<1),FJ(FJ(m,u),r))}function rD(){rD=K,Dte=new Yv(CSt,0),QAe=new Yv("LONGEST_PATH",1),e_e=new Yv("LONGEST_PATH_SOURCE",2),Rte=new Yv("COFFMAN_GRAHAM",3),ZAe=new Yv(BX,4),t_e=new Yv("STRETCH_WIDTH",5),AB=new Yv("MIN_WIDTH",6),Ite=new Yv("BF_MODEL_ORDER",7),Ote=new Yv("DF_MODEL_ORDER",8)}function q2n(e,t){var r,o,a,u,f,p;if(!e.tb){for(u=(!e.rb&&(e.rb=new Xw(e,Ld,e)),e.rb),p=new dS(u.i),a=new tn(u);a.e!=a.i.gc();)o=l(rn(a),146),f=o.ve(),r=l(f==null?eu(p.f,null,o):_0(p.i,f,o),146),r&&(f==null?eu(p.f,null,r):_0(p.i,f,r));e.tb=p}return l(wa(e.tb,t),146)}function iD(e,t){var r,o,a,u,f;if((e.i==null&&Ff(e),e.i).length,!e.p){for(f=new dS((3*e.g.i/2|0)+1),a=new ES(e.g);a.e!=a.i.gc();)o=l(yY(a),182),u=o.ve(),r=l(u==null?eu(f.f,null,o):_0(f.i,u,o),182),r&&(u==null?eu(f.f,null,r):_0(f.i,u,r));e.p=f}return l(wa(e.p,t),182)}function Vme(e,t,r,o,a){var u,f,p,m,y;for(P1n(o+RP(r,r.ge()),a),Fst(t,o1n(r)),u=r.f,u&&Vme(e,t,u,"Caused by: ",!1),p=(r.k==null&&(r.k=we($Q,Pe,81,0,0,1)),r.k),m=0,y=p.length;m=0;u+=r?1:-1)f=f|t.c.jg(m,u,r,o&&!Ye(Ke(F(t.j,(Ie(),j1))))&&!Ye(Ke(F(t.j,(Ie(),e2))))),f=f|t.q.tg(m,u,r),f=f|cyt(e,m[u],r,o);return pi(e.c,t),f}function j7(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(v=hct(e.j),T=0,N=v.length;T1&&(e.a=!0),isn(l(r.b,68),br(To(l(t.b,68).c),tp(Di(To(l(r.b,68).a),l(t.b,68).a),a))),Tut(e,t),Awt(e,r)}function _wt(e){var t,r,o,a,u,f,p;for(u=new V(e.a.a);u.a0&&u>0?f.p=t++:o>0?f.p=r++:u>0?f.p=a++:f.p=r++}At(),xi(e.j,new h$e)}function J2n(e){var t,r;r=null,t=l(ze(e.g,0),17);do{if(r=t.d.i,gr(r,(Ie(),Nl)))return l(F(r,Nl),12).i;if(r.k!=(zt(),Xr)&&an(new $t(qt(Or(r).a.Jc(),new D))))t=l(en(new $t(qt(Or(r).a.Jc(),new D))),17);else if(r.k!=Xr)return null}while(r&&r.k!=(zt(),Xr));return r}function X2n(e,t){var r,o,a,u,f,p,m,y,v;for(p=t.j,f=t.g,m=l(ze(p,p.c.length-1),114),v=(at(0,p.c.length),l(p.c[0],114)),y=LY(e,f,m,v),u=1;uy&&(m=r,v=a,y=o);t.a=v,t.c=m}function D0(e,t,r,o){var a,u;if(a=be(F(r,(Be(),FI)))===be((g1(),Gy)),u=l(F(r,dAe),16),gr(e,(Ie(),Cr)))if(a){if(u.Gc(F(e,$I))&&u.Gc(F(t,$I)))return o*l(F(e,$I),15).a+l(F(e,Cr),15).a}else return l(F(e,Cr),15).a;else return-1;return l(F(e,Cr),15).a}function Z2n(e,t,r){var o,a,u,f,p,m,y;for(y=new Qp(new CJe(e)),f=Z(X(tNt,1),Q2t,12,0,[t,r]),p=0,m=f.length;pm-e.b&&pm-e.a&&pr.p?1:0:u.Ob()?1:-1}function sSn(e,t){var r,o,a,u,f,p;t.Tg(tTt,1),a=l(ve(e,(ef(),c4)),100),u=(!e.a&&(e.a=new ke(En,e,10,11)),e.a),f=Emn(u),p=b.Math.max(f.a,ue(ce(ve(e,(yh(),u4))))-(a.b+a.c)),o=b.Math.max(f.b,ue(ce(ve(e,qB)))-(a.d+a.a)),r=o-f.b,Vn(e,a4,r),Vn(e,$T,p),Vn(e,dk,o+r),t.Ug()}function kC(e){var t,r;if((!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i==0)return Cge(e);for(t=l(oe((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),0),171),vn((!t.a&&(t.a=new yi(Ic,t,5)),t.a)),E0(t,0),S0(t,0),y0(t,0),v0(t,0),r=(!e.a&&(e.a=new ke(jr,e,6,6)),e.a);r.i>1;)_y(r,r.i-1);return t}function za(e,t){Lo();var r,o,a,u;return t?t==(Tr(),OLt)||(t==vLt||t==km||t==yLt)&&e!=V3e?new q0e(e,t):(o=l(t,689),r=o.Yk(),r||(u_(rs((mu(),ao),t)),r=o.Yk()),u=(!r.i&&(r.i=new hn),r.i),a=l(Ss(ts(u.f,e)),2020),!a&&Jn(u,e,a=new q0e(e,t)),a):bLt}function aSn(e,t){var r,o;if(o=qO(e.b,t.b),!o)throw Y(new es("Invalid hitboxes for scanline constraint calculation."));(Kht(t.b,l(aen(e.b,t.b),60))||Kht(t.b,l(sen(e.b,t.b),60)))&&eg(),e.a[t.b.f]=l(Eq(e.b,t.b),60),r=l(vq(e.b,t.b),60),r&&(e.a[r.f]=t.b)}function uSn(e,t){var r,o,a,u,f,p,m,y,v;for(m=l(F(e,(Ie(),mr)),12),y=xs(Z(X($i,1),Pe,8,0,[m.i.n,m.n,m.a])).a,v=e.i.n.b,r=Df(e.e),a=r,u=0,f=a.length;u0?u.a?(p=u.b.Kf().a,r>p&&(a=(r-p)/2,u.d.b=a,u.d.c=a)):u.d.c=e.s+r:k3(e.u)&&(o=jbe(u.b),o.c<0&&(u.d.b=-o.c),o.c+o.b>u.b.Kf().a&&(u.d.c=o.c+o.b-u.b.Kf().a))}function pSn(e,t){var r,o,a,u,f;f=new je,r=t;do u=l(Ht(e.b,r),134),u.B=r.c,u.D=r.d,Ot(f.c,u),r=l(Ht(e.k,r),17);while(r);return o=(at(0,f.c.length),l(f.c[0],134)),o.j=!0,o.A=l(o.d.a.ec().Jc().Pb(),17).c.i,a=l(ze(f,f.c.length-1),134),a.q=!0,a.C=l(a.d.a.ec().Jc().Pb(),17).d.i,f}function gSn(e){var t,r;r=l(F(e,(Be(),Cs)),166),t=l(F(e,(Ie(),hm)),316),r==(ic(),xp)?(Te(e,Cs,gL),Te(e,hm,(lp(),ZE))):r==gm?(Te(e,Cs,gL),Te(e,hm,(lp(),kT))):t==(lp(),ZE)?(Te(e,Cs,xp),Te(e,hm,dL)):t==kT&&(Te(e,Cs,gm),Te(e,hm,dL))}function F7(){F7=K,xL=new rHe,j4t=$n(new ui,(Vi(),la),(Zi(),k$)),B4t=Ra($n(new ui,la,M$),Ho,L$),U4t=Pf(Pf(ZN(Ra($n(new ui,id,$$),Ho,F$),da),j$),B$),F4t=Ra($n($n($n(new ui,kh,C$),da,R$),da,Gx),Ho,I$),$4t=Ra($n($n(new ui,da,Gx),da,x$),Ho,_$)}function NC(){NC=K,G4t=$n(Ra(new ui,(Vi(),Ho),(Zi(),pSe)),la,k$),K4t=Pf(Pf(ZN(Ra($n(new ui,id,$$),Ho,F$),da),j$),B$),q4t=Ra($n($n($n(new ui,kh,C$),da,R$),da,Gx),Ho,I$),W4t=$n($n(new ui,la,M$),Ho,L$),V4t=Ra($n($n(new ui,da,Gx),da,x$),Ho,_$)}function bSn(e,t,r,o,a){var u,f;(!fo(t)&&t.c.i.c==t.d.i.c||!iht(xs(Z(X($i,1),Pe,8,0,[a.i.n,a.n,a.a])),r))&&!fo(t)&&(t.c==a?WA(t.a,0,new So(r)):Gn(t.a,new So(r)),o&&!bl(e.a,r)&&(f=l(F(t,(Be(),ss)),79),f||(f=new Lu,Te(t,ss,f)),u=new So(r),Wr(f,u,f.c.b,f.c),pi(e.a,u)))}function Nwt(e,t){var r,o,a,u;for(u=Dn(wo(Sh,ph(Dn(wo(t==null?0:Rr(t),Th)),15))),r=u&e.b.length-1,a=null,o=e.b[r];o;a=o,o=o.a)if(o.d==u&&rp(o.i,t))return a?a.a=o.a:e.b[r]=o.a,xQe(l(wl(o.c),600),l(wl(o.f),600)),tO(l(wl(o.b),229),l(wl(o.e),229)),--e.f,++e.e,!0;return!1}function mSn(e){var t,r;for(r=new $t(qt(si(e).a.Jc(),new D));an(r);)if(t=l(en(r),17),t.c.i.k!=(zt(),ta))throw Y(new _f($X+z6(e)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function Cwt(e,t){var r,o,a,u,f,p,m,y,v,T,N;a=t?new lUe:new pUe,u=!1;do for(u=!1,y=t?oc(e.b):e.b,m=y.Jc();m.Ob();)for(p=l(m.Pb(),26),N=jb(p.a),t||oc(N),T=new V(N);T.a=0;f+=a?1:-1){for(p=t[f],m=o==(He(),Qt)?a?ks(p,o):oc(ks(p,o)):a?oc(ks(p,o)):ks(p,o),u&&(e.c[p.p]=m.gc()),T=m.Jc();T.Ob();)v=l(T.Pb(),12),e.d[v.p]=y++;li(r,m)}}function Rwt(e,t,r){var o,a,u,f,p,m,y,v;for(u=ue(ce(e.b.Jc().Pb())),y=ue(ce(zhn(t.b))),o=tp(To(e.a),y-r),a=tp(To(t.a),r-u),v=br(o,a),tp(v,1/(y-u)),this.a=v,this.b=new je,p=!0,f=e.b.Jc(),f.Pb();f.Ob();)m=ue(ce(f.Pb())),p&&m-r>RZ&&(this.b.Ec(r),p=!1),this.b.Ec(m);p&&this.b.Ec(r)}function ySn(e){var t,r,o,a;if(PTn(e,e.n),e.d.c.length>0){for(HN(e.c);xme(e,l(q(new V(e.e.a)),126))>5,t&=31,o>=e.d)return e.e<0?(jf(),ext):(jf(),wI);if(u=e.d-o,a=we(Rn,Qn,30,u+1,15,1),yyn(a,u,e.a,o,t),e.e<0){for(r=0;r0&&e.a[r]<<32-t){for(r=0;r=0?!1:(r=IE((mu(),ao),a,t),r?(o=r.Gk(),(o>1||o==-1)&&f0(rs(ao,r))!=3):!0)):!1}function _Sn(e,t,r,o){var a,u,f,p,m,y,v,T,N,O;if(m=e.c.d,y=e.d.d,m.j!=y.j)for(O=e.b,v=null,p=null,f=O1n(e),f&&O.i&&(v=e.b.i.i,p=O.i.j),a=m.j,T=null;a!=y.j;)T=t==0?zj(a):f1e(a),u=G1e(a,O.d[a.g],r),N=G1e(T,O.d[T.g],r),f&&v&&p&&(a==v?wgt(u,v,p):T==v&&wgt(N,v,p)),Gn(o,br(u,N)),a=T}function Yme(e,t,r){var o,a,u,f,p,m;if(o=WQt(r,e.length),f=e[o],u=RQe(r,f.length),f[u].k==(zt(),mi))for(m=t.j,a=0;a0&&(r[0]+=e.d,f-=r[0]),r[2]>0&&(r[2]+=e.d,f-=r[2]),u=b.Math.max(0,f),r[1]=b.Math.max(r[1],f),bpe(e,$a,a.c+o.b+r[0]-(r[1]-f)/2,r),t==$a&&(e.c.b=u,e.c.c=a.c+o.b+(u-f)/2)}function $wt(){this.c=we(Ki,Jo,30,(He(),Z(X(Io,1),ea,64,0,[Is,Wt,Qt,dn,Kt])).length,15,1),this.b=we(Ki,Jo,30,Z(X(Io,1),ea,64,0,[Is,Wt,Qt,dn,Kt]).length,15,1),this.a=we(Ki,Jo,30,Z(X(Io,1),ea,64,0,[Is,Wt,Qt,dn,Kt]).length,15,1),_le(this.c,Kr),_le(this.b,Li),_le(this.a,Li)}function RSn(e,t,r,o){var a,u,f,p,m;for(m=t.i,p=r[m.g][e.d[m.g]],a=!1,f=new V(t.d);f.a=a&&(e.c=!1,e.a=!1),e.b[o++]=a,e.b[o]=u,e.c||xE(e)}}function OSn(e,t,r){var o,a,u,f,p,m,y;for(y=t.d,e.a=new Da(y.c.length),e.c=new hn,p=new V(y);p.a=0?e.Ih(y,!1,!0):O0(e,r,!1),61));e:for(u=T.Jc();u.Ob();){for(a=l(u.Pb(),57),v=0;ve.d[f.p]&&(r+=upe(e.b,u),l1(e.a,Re(u)));for(;!zN(e.a);)Hpe(e.b,l(CS(e.a),15).a)}return r}function Hwt(e,t,r){var o,a,u,f;for(u=(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i,a=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));a.e!=a.i.gc();)o=l(rn(a),19),(!o.a&&(o.a=new ke(En,o,10,11)),o.a).i==0||(u+=Hwt(e,o,!1));if(r)for(f=Br(t);f;)u+=(!f.a&&(f.a=new ke(En,f,10,11)),f.a).i,f=Br(f);return u}function _y(e,t){var r,o,a,u;return e.Nj()?(o=null,a=e.Oj(),e.Rj()&&(o=e.Tj(e.Yi(t),null)),r=e.Gj(4,u=ZS(e,t),null,t,a),e.Kj()&&u!=null&&(o=e.Mj(u,o)),o?(o.lj(r),o.mj()):e.Hj(r),u):(u=ZS(e,t),e.Kj()&&u!=null&&(o=e.Mj(u,null),o&&o.mj()),u)}function $Sn(e){var t,r,o,a,u,f,p,m,y,v;for(y=e.a,t=new hi,m=0,o=new V(e.d);o.ap.d&&(v=p.d+p.a+y));r.c.d=v,t.a.yc(r,t),m=b.Math.max(m,r.c.d+r.c.a)}return m}function BSn(e,t,r){var o,a,u,f,p,m;for(f=l(F(e,(Ie(),tte)),16).Jc();f.Ob();){switch(u=l(f.Pb(),9),l(F(u,(Be(),Cs)),166).g){case 2:Oi(u,t);break;case 4:Oi(u,r)}for(a=new $t(qt(Lf(u).a.Jc(),new D));an(a);)o=l(en(a),17),!(o.c&&o.d)&&(p=!o.d,m=l(F(o,TTe),12),p?Ji(o,m):bo(o,m))}}function Fo(){Fo=K,Z$=new Fw("COMMENTS",0),rl=new Fw("EXTERNAL_PORTS",1),CI=new Fw("HYPEREDGES",2),Q$=new Fw("HYPERNODES",3),Qx=new Fw("NON_FREE_PORTS",4),XE=new Fw("NORTH_SOUTH_PORTS",5),II=new Fw(mSt,6),Xx=new Fw("CENTER_LABELS",7),Zx=new Fw("END_LABELS",8),eB=new Fw("PARTITIONS",9)}function USn(e,t,r,o,a){return o<0?(o=_E(e,a,Z(X(Je,1),Pe,2,6,[tX,nX,rX,iX,lT,oX,sX,aX,uX,cX,lX,dX]),t),o<0&&(o=_E(e,a,Z(X(Je,1),Pe,2,6,["Jan","Feb","Mar","Apr",lT,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),o<0?!1:(r.k=o,!0)):o>0?(r.k=o-1,!0):!1}function HSn(e,t,r,o,a){return o<0?(o=_E(e,a,Z(X(Je,1),Pe,2,6,[tX,nX,rX,iX,lT,oX,sX,aX,uX,cX,lX,dX]),t),o<0&&(o=_E(e,a,Z(X(Je,1),Pe,2,6,["Jan","Feb","Mar","Apr",lT,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),t)),o<0?!1:(r.k=o,!0)):o>0?(r.k=o-1,!0):!1}function zSn(e,t,r,o,a,u){var f,p,m,y;if(p=32,o<0){if(t[0]>=e.length||(p=co(e,t[0]),p!=43&&p!=45)||(++t[0],o=k7(e,t),o<0))return!1;p==45&&(o=-o)}return p==32&&t[0]-r==2&&a.b==2&&(m=new q9,y=m.q.getFullYear()-k1+k1-80,f=y%100,u.a=o==f,o+=(y/100|0)*100+(o=0?v1(e):I3(v1(ug(e)))),yI[t]=k8(fh(e,t),0)?v1(fh(e,t)):I3(v1(ug(fh(e,t)))),e=wo(e,5);for(;t=y&&(m=o);m&&(v=b.Math.max(v,m.a.o.a)),v>N&&(T=y,N=v)}return T}function KSn(e){var t,r,o,a,u,f,p;for(u=new Qp(l(kn(new Af),50)),p=Li,r=new V(e.d);r.aYSt?xi(m,e.b):o<=YSt&&o>JSt?xi(m,e.d):o<=JSt&&o>XSt?xi(m,e.c):o<=XSt&&xi(m,e.a),u=Vwt(e,m,u);return a}function Wwt(e,t,r,o){var a,u,f,p,m,y;for(a=(o.c+o.a)/2,tc(t.j),Gn(t.j,a),tc(r.e),Gn(r.e,a),y=new CQe,p=new V(e.f);p.a1,p&&(o=new Me(a,r.b),Gn(t.a,o)),K3(t.a,Z(X($i,1),Pe,8,0,[N,T]))}function Zme(e,t,r){var o,a;for(t=48;r--)F4[r]=r-48<<24>>24;for(o=70;o>=65;o--)F4[o]=o-65+10<<24>>24;for(a=102;a>=97;a--)F4[a]=a-97+10<<24>>24;for(u=0;u<10;u++)kU[u]=48+u&Ei;for(e=10;e<=15;e++)kU[e]=65+e-10&Ei}function Xwt(e,t){t.Tg("Process graph bounds",1),Te(e,(Nr(),tne),wO(xK(ey(new Et(null,new St(e.b,16)),new LHe)))),Te(e,nne,wO(xK(ey(new Et(null,new St(e.b,16)),new MHe)))),Te(e,G_e,wO(_K(ey(new Et(null,new St(e.b,16)),new PHe)))),Te(e,q_e,wO(_K(ey(new Et(null,new St(e.b,16)),new jHe)))),t.Ug()}function QSn(e){var t,r,o,a,u;a=l(F(e,(Be(),mm)),24),u=l(F(e,vB),24),r=new Me(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),t=new So(r),a.Gc((sc(),hv))&&(o=l(F(e,nk),8),u.Gc((Uu(),Tk))&&(o.a<=0&&(o.a=20),o.b<=0&&(o.b=20)),t.a=b.Math.max(r.a,o.a),t.b=b.Math.max(r.b,o.b)),Ye(Ke(F(e,Tte)))||k_n(e,r,t)}function eTn(e){var t,r,o,a,u,f,p;for(t=!1,r=0,a=new V(e.d.b);a.a>19)return"-"+Zwt(k_(e));for(r=e,o="";!(r.l==0&&r.m==0&&r.h==0);){if(a=qW(rF),r=j0e(r,a,!0),t=""+eet(O1),!(r.l==0&&r.m==0&&r.h==0))for(u=9-t.length;u>0;u--)t="0"+t;o=t+o}return o}function tTn(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e="__proto__",t=Object.create(null);if(t[e]!==void 0)return!1;var r=Object.getOwnPropertyNames(t);return!(r.length!=0||(t[e]=42,t[e]!==42)||Object.getOwnPropertyNames(t).length==0)}function nTn(e,t,r){var o,a,u,f,p,m,y,v,T;for(o=r.c,a=r.d,p=qd(t.c),m=qd(t.d),o==t.c?(p=Fme(e,p,a),m=Ybt(t.d)):(p=Ybt(t.c),m=Fme(e,m,a)),y=new B9(t.a),Wr(y,p,y.a,y.a.a),Wr(y,m,y.c.b,y.c),f=t.c==o,T=new SZe,u=0;u=e.a||!Dbe(t,r))return-1;if(iy(l(o.Kb(t),22)))return 1;for(a=0,f=l(o.Kb(t),22).Jc();f.Ob();)if(u=l(f.Pb(),17),m=u.c.i==t?u.d.i:u.c.i,p=t0e(e,m,r,o),p==-1||(a=b.Math.max(a,p),a>e.c-1))return-1;return a+1}function ef(){ef=K,WB=new Mi((_n(),gk),1.3),TOt=new Mi(uv,(Lt(),!1)),Wxe=new xb(15),c4=new Mi(df,Wxe),l4=new Mi(Od,15),yOt=$L,SOt=Am,AOt=b2,_Ot=G1,EOt=g2,Ine=v4,xOt=cv,Xxe=(v0e(),bOt),Jxe=gOt,One=wOt,Zxe=mOt,Vxe=fOt,Rne=dOt,qxe=lOt,Yxe=pOt,zxe=y4,vOt=hre,OL=aOt,Hxe=sOt,DL=uOt,Kxe=hOt,Gxe=cOt}function Qwt(e,t){var r,o,a,u,f,p;if(be(t)===be(e))return!0;if(!ae(t,16)||(o=l(t,16),p=e.gc(),o.gc()!=p))return!1;if(f=o.Jc(),e.Wi()){for(r=0;r0){if(e.Zj(),t!=null){for(u=0;u>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw Y(new kf("Invalid hexadecimal"))}}function tyt(e,t,r,o){var a,u,f,p,m,y;for(m=BY(e,r),y=BY(t,r),a=!1;m&&y&&(o||nmn(m,y,r));)f=BY(m,r),p=BY(y,r),d6(t),d6(e),u=m.c,$J(m,!1),$J(y,!1),r?(E1(t,y.p,u),t.p=y.p,E1(e,m.p+1,u),e.p=m.p):(E1(e,m.p,u),e.p=m.p,E1(t,y.p+1,u),t.p=y.p),Oi(m,null),Oi(y,null),m=f,y=p,a=!0;return a}function nyt(e){switch(e.g){case 0:return new $We;case 1:return new kWe;case 3:return new Ket;case 4:return new SUe;case 5:return new _it;case 6:return new BWe;case 2:return new NWe;case 7:return new DWe;case 8:return new xWe;default:throw Y(new jt("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}function sTn(e,t,r,o){var a,u,f,p,m;for(a=!1,u=!1,p=new V(o.j);p.a=t.length)throw Y(new Ia("Greedy SwitchDecider: Free layer not in graph."));this.c=t[e],this.e=new FO(o),vK(this.e,this.c,(He(),Kt)),this.i=new FO(o),vK(this.i,this.c,Qt),this.f=new Yot(this.c),this.a=!u&&a.i&&!a.s&&this.c[0].k==(zt(),mi),this.a&&_yn(this,e,t.length)}function iyt(e,t){var r,o,a,u,f,p;u=!e.B.Gc((Uu(),ZL)),f=e.B.Gc(xre),e.a=new jgt(f,u,e.c),e.n&&xhe(e.a.n,e.n),aq(e.g,(Sd(),$a),e.a),t||(o=new fC(1,u,e.c),o.n.a=e.k,IS(e.p,(He(),Wt),o),a=new fC(1,u,e.c),a.n.d=e.k,IS(e.p,dn,a),p=new fC(0,u,e.c),p.n.c=e.k,IS(e.p,Kt,p),r=new fC(0,u,e.c),r.n.b=e.k,IS(e.p,Qt,r))}function uTn(e){var t,r,o;switch(t=l(F(e.d,(Be(),kp)),225),t.g){case 2:r=QNn(e);break;case 3:r=(o=new je,ei(lr(Oa(bs(bs(new Et(null,new St(e.d.b,16)),new RBe),new OBe),new DBe),new bBe),new oJe(o)),o);break;default:throw Y(new es("Compaction not supported for "+t+" edges."))}Exn(e,r),lo(new Xh(e.g),new tJe(e))}function cTn(e,t){var r,o,a,u,f,p,m;if(t.Tg("Process directions",1),r=l(F(e,(js(),uw)),87),r!=(vi(),ff))for(a=An(e.b,0);a.b!=a.d.c;){switch(o=l(Sn(a),41),p=l(F(o,(Nr(),CL)),15).a,m=l(F(o,IL),15).a,r.g){case 4:m*=-1;break;case 1:u=p,p=m,m=u;break;case 2:f=p,p=-m,m=f}Te(o,CL,Re(p)),Te(o,IL,Re(m))}t.Ug()}function lTn(e){var t,r,o,a,u,f,p,m;for(m=new hlt,p=new V(e.a);p.a0&&t=0)return!1;if(t.p=r.b,Fe(r.e,t),a==(zt(),gi)||a==_a){for(f=new V(t.j);f.ae.d[p.p]&&(r+=upe(e.b,u),l1(e.a,Re(u)))):++f;for(r+=e.b.d*f;!zN(e.a);)Hpe(e.b,l(CS(e.a),15).a)}return r}function gyt(e){var t,r,o,a,u,f;return u=0,t=Sl(e),t.ik()&&(u|=4),e.Bb&yu&&(u|=2),ae(e,104)?(r=l(e,20),a=Mo(r),r.Bb&Ws&&(u|=32),a&&(ln(ny(a)),u|=8,f=a.t,(f>1||f==-1)&&(u|=16),a.Bb&Ws&&(u|=64)),r.Bb&No&&(u|=yp),u|=Tl):ae(t,462)?u|=512:(o=t.ik(),o&&o.i&1&&(u|=256)),e.Bb&512&&(u|=128),u}function STn(e,t){var r;return e.f==Bre?(r=f0(rs((mu(),ao),t)),e.e?r==4&&t!=(rT(),XT)&&t!=(rT(),JT)&&t!=(rT(),Ure)&&t!=(rT(),Hre):r==2):e.d&&(e.d.Gc(t)||e.d.Gc(MS(rs((mu(),ao),t)))||e.d.Gc(IE((mu(),ao),e.b,t)))?!0:e.f&&Ume((mu(),e.f),WO(rs(ao,t)))?(r=f0(rs(ao,t)),e.e?r==4:r==2):!1}function TTn(e,t){var r,o,a,u,f,p,m,y;for(u=new je,t.b.c.length=0,r=l(Au(Hhe(new Et(null,new St(new Xh(e.a.b),1))),ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),a=r.Jc();a.Ob();)if(o=l(a.Pb(),15),f=tpe(e.a,o),f.b!=0)for(p=new ra(t),Ot(u.c,p),p.p=o.a,y=An(f,0);y.b!=y.d.c;)m=l(Sn(y),9),Oi(m,p);li(t.b,u)}function mJ(e){var t,r,o,a,u,f,p;for(p=new hn,o=new V(e.a.b);o.asm&&(a-=sm),p=l(ve(o,GT),8),y=p.a,T=p.b+e,u=b.Math.atan2(T,y),u<0&&(u+=sm),u+=t,u>sm&&(u-=sm),Ud(),Yl(1e-10),b.Math.abs(a-u)<=1e-10||a==u||isNaN(a)&&isNaN(u)?0:au?1:kb(isNaN(a),isNaN(u))}function s0e(e,t,r,o){var a,u,f;t&&(u=ue(ce(F(t,(Nr(),Ng))))+o,f=r+ue(ce(F(t,jB)))/2,Te(t,CL,Re(Dn(Gs(b.Math.round(u))))),Te(t,IL,Re(Dn(Gs(b.Math.round(f))))),t.d.b==0||s0e(e,l(M8((a=An(new Qh(t).a.d,0),new qv(a))),41),r+ue(ce(F(t,jB)))+e.b,o+ue(ce(F(t,lk)))),F(t,ine)!=null&&s0e(e,l(F(t,ine),41),r,o))}function kTn(e,t){var r,o,a,u;if(u=l(ve(e,(_n(),m2)),64).g-l(ve(t,m2),64).g,u!=0)return u;if(r=l(ve(e,wre),15),o=l(ve(t,wre),15),r&&o&&(a=r.a-o.a,a!=0))return a;switch(l(ve(e,m2),64).g){case 1:return yr(e.i,t.i);case 2:return yr(e.j,t.j);case 3:return yr(t.i,e.i);case 4:return yr(t.j,e.j);default:throw Y(new es(Owe))}}function a0e(e){var t,r,o;return e.Db&64?ZY(e):(t=new fc(lEe),r=e.k,r?zn(zn((t.a+=' "',t),r),'"'):(!e.n&&(e.n=new ke(Rs,e,1,7)),e.n.i>0&&(o=(!e.n&&(e.n=new ke(Rs,e,1,7)),l(oe(e.n,0),158)).a,!o||zn(zn((t.a+=' "',t),o),'"'))),zn(e0(zn(e0(zn(e0(zn(e0((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function byt(e){var t,r,o;return e.Db&64?ZY(e):(t=new fc(dEe),r=e.k,r?zn(zn((t.a+=' "',t),r),'"'):(!e.n&&(e.n=new ke(Rs,e,1,7)),e.n.i>0&&(o=(!e.n&&(e.n=new ke(Rs,e,1,7)),l(oe(e.n,0),158)).a,!o||zn(zn((t.a+=' "',t),o),'"'))),zn(e0(zn(e0(zn(e0(zn(e0((t.a+=" (",t),e.i),","),e.j)," | "),e.g),","),e.f),")"),t.a)}function NTn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M;for(O=-1,M=0,v=t,T=0,N=v.length;T0&&++M;++O}return M}function CTn(e,t){var r,o,a,u,f;for(t==(nC(),Gte)&&vC(l(wr(e.a,(yy(),sL)),16)),a=l(wr(e.a,(yy(),sL)),16).Jc();a.Ob();)switch(o=l(a.Pb(),108),r=l(ze(o.j,0),114).d.j,u=new Tu(o.j),xi(u,new UBe),t.g){case 2:qY(e,u,r,(T0(),P1),1);break;case 1:case 0:f=y2n(u),qY(e,new Rf(u,0,f),r,(T0(),P1),0),qY(e,new Rf(u,f,u.c.length),r,P1,1)}}function ITn(e){var t,r,o,a,u,f,p;for(a=l(F(e,(Ie(),tw)),9),o=e.j,r=(at(0,o.c.length),l(o.c[0],12)),f=new V(a.j);f.aa.p?(Ci(u,dn),u.d&&(p=u.o.b,t=u.a.b,u.a.b=p-t)):u.j==dn&&a.p>e.p&&(Ci(u,Wt),u.d&&(p=u.o.b,t=u.a.b,u.a.b=-(p-t)));break}return a}function u0e(e,t){var r,o,a,u,f,p,m;if(t==null||t.length==0)return null;if(a=l(wa(e.a,t),144),!a){for(o=(p=new Zh(e.b).a.vc().Jc(),new Lw(p));o.a.Ob();)if(r=(u=l(o.a.Pb(),45),l(u.kd(),144)),f=r.c,m=t.length,wt(f.substr(f.length-m,m),t)&&(t.length==f.length||co(f,f.length-t.length-1)==46)){if(a)return null;a=r}a&&ns(e.a,t,a)}return a}function ex(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(u=new Me(t,r),v=new V(e.a);v.awg&&tY(p,u,r),vyt(e,v)}function Eyt(e,t,r,o,a,u,f){if(e.c=o.Jf().a,e.d=o.Jf().b,a&&(e.c+=a.Jf().a,e.d+=a.Jf().b),e.b=t.Kf().a,e.a=t.Kf().b,!a)r?e.c-=f+t.Kf().a:e.c+=o.Kf().a+f;else switch(a.$f().g){case 0:case 2:e.c+=a.Kf().a+f+u.a+f;break;case 4:e.c-=f+u.a+f+t.Kf().a;break;case 1:e.c+=a.Kf().a+f,e.d-=f+u.b+f+t.Kf().b;break;case 3:e.c+=a.Kf().a+f,e.d+=a.Kf().b+f+u.b+f}}function DTn(e,t,r,o){var a,u,f,p,m,y,v,T,N,O,M;if(u=r,r1,p&&(o=new Me(a,r.b),Gn(t.a,o)),K3(t.a,Z(X($i,1),Pe,8,0,[N,T]))}function _1(){_1=K,kB=new $w(_d,0),SL=new $w("NIKOLOV",1),TL=new $w("NIKOLOV_PIXEL",2),u_e=new $w("NIKOLOV_IMPROVED",3),c_e=new $w("NIKOLOV_IMPROVED_PIXEL",4),a_e=new $w("DUMMYNODE_PERCENTAGE",5),l_e=new $w("NODECOUNT_PERCENTAGE",6),NB=new $w("NO_BOUNDARY",7),ak=new $w("MODEL_ORDER_LEFT_TO_RIGHT",8),KI=new $w("MODEL_ORDER_RIGHT_TO_LEFT",9)}function yJ(e,t){var r,o,a,u,f,p,m,y,v,T,N,O;return v=null,N=Rme(e,t),o=null,p=l(ve(t,(_n(),H6t)),301),p?o=p:o=(V3(),YL),O=o,O==(V3(),YL)&&(a=null,y=l(Ht(e.r,N),301),y?a=y:a=_re,O=a),Jn(e.r,t,O),u=null,m=l(ve(t,U6t),280),m?u=m:u=(O_(),zL),T=u,T==(O_(),zL)&&(f=null,r=l(Ht(e.b,N),280),r?f=r:f=uU,T=f),v=l(Jn(e.b,t,T),280),v}function UTn(e){var t,r,o,a,u;for(o=e.length,t=new GN,u=0;u=40,f&&BAn(e),exn(e),ySn(e),r=hgt(e),o=0;r&&o0&&Gn(e.g,u)):(e.d[f]-=y+1,e.d[f]<=0&&e.a[f]>0&&Gn(e.f,u))))}function Iyt(e,t,r,o){var a,u,f,p,m,y,v;for(m=new Me(r,o),Di(m,l(F(t,(Nr(),ck)),8)),v=An(t.b,0);v.b!=v.d.c;)y=l(Sn(v),41),br(y.e,m),Gn(e.b,y);for(p=l(Au($he(new Et(null,new St(t.a,16))),ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16).Jc();p.Ob();){for(f=l(p.Pb(),65),u=An(f.a,0);u.b!=u.d.c;)a=l(Sn(u),8),a.a+=m.a,a.b+=m.b;Gn(e.a,f)}}function b0e(e,t){var r,o,a,u;if(0<(ae(e,18)?l(e,18).gc():yd(e.Jc()))){if(a=t,1=0&&m1)&&t==1&&l(e.a[e.b],9).k==(zt(),ta)?aT(l(e.a[e.b],9),(vc(),Ih)):o&&(!r||(e.c-e.b&e.a.length-1)>1)&&t==1&&l(e.a[e.c-1&e.a.length-1],9).k==(zt(),ta)?aT(l(e.a[e.c-1&e.a.length-1],9),(vc(),q1)):(e.c-e.b&e.a.length-1)==2?(aT(l(Q3(e),9),(vc(),Ih)),aT(l(Q3(e),9),q1)):PEn(e,a),spe(e)}function iAn(e){var t,r,o,a,u,f,p,m;for(m=new hn,t=new XG,f=e.Jc();f.Ob();)a=l(f.Pb(),9),p=o0(lO(new Tb,a),t),eu(m.f,a,p);for(u=e.Jc();u.Ob();)for(a=l(u.Pb(),9),o=new $t(qt(Or(a).a.Jc(),new D));an(o);)r=l(en(o),17),!fo(r)&&Ql($l(Ul(Bl(Hl(new gl,b.Math.max(1,l(F(r,(Be(),UAe)),15).a)),1),l(Ht(m,r.c.i),126)),l(Ht(m,r.d.i),126)));return t}function Dyt(e,t,r,o){var a,u,f,p,m,y,v,T,N,O;if(Nfn(e,t,r),u=t[r],O=o?(He(),Kt):(He(),Qt),Ftn(t.length,r,o)){for(a=t[o?r-1:r+1],Ape(e,a,o?(jo(),Ba):(jo(),Cu)),m=u,v=0,N=m.length;vu*2?(v=new hj(T),y=hu(f)/ec(f),m=zJ(v,t,new oS,r,o,a,y),br(wd(v.e),m),T.c.length=0,u=0,Ot(T.c,v),Ot(T.c,f),u=hu(v)*ec(v)+hu(f)*ec(f)):(Ot(T.c,f),u+=hu(f)*ec(f));return T}function sAn(e,t){var r,o,a,u,f,p,m;for(t.Tg("Port order processing",1),m=l(F(e,(Be(),BAe)),426),o=new V(e.b);o.ar?t:r;y<=T;++y)y==r?p=o++:(u=a[y],v=M.$l(u.Jk()),y==t&&(m=y==T&&!v?o-1:o),v&&++o);return N=l(uC(e,t,r),76),p!=m&&LA(e,new a6(e.e,7,f,Re(p),O.kd(),m)),N}}else return l(sJ(e,t,r),76);return l(uC(e,t,r),76)}function m0e(e,t){var r,o,a,u,f,p,m,y,v,T;for(T=0,u=new iE,l1(u,t);u.b!=u.c;)for(m=l(CS(u),221),y=0,v=l(F(t.j,(Be(),Ch)),270),l(F(t.j,FI),330),f=ue(ce(F(t.j,bL))),p=ue(ce(F(t.j,dte))),v!=(bp(),B1)&&(y+=f*zEn(t.j,m.e,v),y+=p*NTn(t.j,m.e)),T+=J1t(m.d,m.e)+y,a=new V(m.b);a.a=0&&(p=gmn(e,f),!(p&&(y<22?m.l|=1<>>1,f.m=v>>>1|(T&1)<<21,f.l=N>>>1|(v&1)<<21,--y;return r&&PK(m),u&&(o?(O1=k_(e),a&&(O1=qht(O1,(m_(),YEe)))):O1=Ua(e.l,e.m,e.h)),m}function cAn(e,t){var r,o,a,u,f,p,m,y,v,T;for(y=e.e[t.c.p][t.p]+1,m=t.c.a.c.length+1,p=new V(e.a);p.a0&&(Yt(0,e.length),e.charCodeAt(0)==45||(Yt(0,e.length),e.charCodeAt(0)==43))?1:0,o=f;or)throw Y(new kf(F0+e+'"'));return p}function lAn(e){var t,r,o,a,u,f,p;for(f=new Ar,u=new V(e.a);u.a=e.length)return r.o=0,!0;switch(co(e,t[0])){case 43:a=1;break;case 45:a=-1;break;default:return r.o=0,!0}if(++t[0],u=t[0],f=k7(e,t),f==0&&t[0]==u)return!1;if(t[0]p&&(p=a,v.c.length=0),a==p&&Fe(v,new ko(r.c.i,r)));At(),xi(v,e.c),Nb(e.b,m.p,v)}}function bAn(e,t){var r,o,a,u,f,p,m,y,v;for(f=new V(t.b);f.ap&&(p=a,v.c.length=0),a==p&&Fe(v,new ko(r.d.i,r)));At(),xi(v,e.c),Nb(e.f,m.p,v)}}function mAn(e){var t,r,o,a,u,f,p;for(u=Gd(e),a=new tn((!e.e&&(e.e=new Tt(Ir,e,7,4)),e.e));a.e!=a.i.gc();)if(o=l(rn(a),74),p=Yo(l(oe((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c),0),83)),!uy(p,u))return!0;for(r=new tn((!e.d&&(e.d=new Tt(Ir,e,8,5)),e.d));r.e!=r.i.gc();)if(t=l(rn(r),74),f=Yo(l(oe((!t.b&&(t.b=new Tt(pn,t,4,7)),t.b),0),83)),!uy(f,u))return!0;return!1}function wAn(e){var t,r,o,a,u;o=l(F(e,(Ie(),mr)),19),u=l(ve(o,(Be(),mm)),185).Gc((sc(),xm)),e.e||(a=l(F(e,xa),24),t=new Me(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),a.Gc((Fo(),rl))?(Vn(o,Zr,(qi(),fa)),M0(o,t.a,t.b,!1,!0)):Ye(Ke(ve(o,Tte)))||M0(o,t.a,t.b,!0,!0)),u?Vn(o,mm,ct(xm)):Vn(o,mm,(r=l(md(N4),10),new Hc(r,l(Gl(r,r.length),10),0)))}function yAn(e,t){var r,o,a,u,f,p,m,y;if(y=Ke(F(t,(js(),mRt))),y==null||(Mt(y),y)){for(qvn(e,t),a=new je,m=An(t.b,0);m.b!=m.d.c;)f=l(Sn(m),41),r=tme(e,f,null),r&&(qs(r,t),Ot(a.c,r));if(e.a=null,e.b=null,a.c.length>1)for(o=new V(a);o.a=0&&p!=r&&(u=new Pi(e,1,p,f,null),o?o.lj(u):o=u),r>=0&&(u=new Pi(e,1,r,p==r?f:null,t),o?o.lj(u):o=u)),o}function Myt(e){var t,r,o;if(e.b==null){if(o=new Xp,e.i!=null&&(Vo(o,e.i),o.a+=":"),e.f&256){for(e.f&256&&e.a!=null&&(ban(e.i)||(o.a+="//"),Vo(o,e.a)),e.d!=null&&(o.a+="/",Vo(o,e.d)),e.f&16&&(o.a+="/"),t=0,r=e.j.length;tN?!1:(T=(m=MC(o,N,!1),m.a),v+p+T<=t.b&&(u6(r,u-r.s),r.c=!0,u6(o,u-r.s),U6(o,r.s,r.t+r.d+p),o.k=!0,Ege(r.q,o),O=!0,a&&(yj(t,o),o.j=t,e.c.length>f&&(q6((at(f,e.c.length),l(e.c[f],189)),o),(at(f,e.c.length),l(e.c[f],189)).a.c.length==0&&sg(e,f)))),O)}function xAn(e,t){var r,o,a,u,f,p;if(t.Tg("Partition midprocessing",1),a=new b0,ei(lr(new Et(null,new St(e.a,16)),new g$e),new $Ye(a)),a.d!=0){for(p=l(Au(Hhe((u=a.i,new Et(null,(u||(a.i=new sE(a,a.c))).Lc()))),ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),o=p.Jc(),r=l(o.Pb(),15);o.Ob();)f=l(o.Pb(),15),w2n(l(wr(a,r),24),l(wr(a,f),24)),r=f;t.Ug()}}function RC(e,t){var r,o,a,u,f;if(e.Ab){if(e.Ab){if(f=e.Ab.i,f>0){if(a=l(e.Ab.g,2012),t==null){for(u=0;ur.s&&pm+M&&(U=T.g+N.g,N.a=(N.g*N.a+T.g*T.a)/U,N.g=U,T.f=N,r=!0)),u=p,T=N;return r}function CAn(e,t,r){var o,a,u,f,p,m,y,v;for(r.Tg(FSt,1),Zs(e.b),Zs(e.a),p=null,u=An(t.b,0);!p&&u.b!=u.d.c;)y=l(Sn(u),41),Ye(Ke(F(y,(Nr(),z1))))&&(p=y);for(m=new Ar,Wr(m,p,m.c.b,m.c),yEt(e,m),v=An(t.b,0);v.b!=v.d.c;)y=l(Sn(v),41),f=In(F(y,(Nr(),r4))),a=wa(e.b,f)!=null?l(wa(e.b,f),15).a:0,Te(y,ene,Re(a)),o=1+(wa(e.a,f)!=null?l(wa(e.a,f),15).a:0),Te(y,z_e,Re(o));r.Ug()}function Uyt(e){n0(e,new Qb(Qm(Jm(Zm(Xm(new vb,V0),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new IGe))),De(e,V0,B0,Kke),De(e,V0,$0,15),De(e,V0,CD,Re(0)),De(e,V0,tEe,Ge(qke)),De(e,V0,ME,Ge(C6t)),De(e,V0,bT,Ge(I6t)),De(e,V0,mx,fTt),De(e,V0,wx,Ge(Vke)),De(e,V0,mT,Ge(Wke)),De(e,V0,nEe,Ge(are)),De(e,V0,CF,Ge(N6t))}function Hyt(e,t){var r,o,a,u,f,p,m,y,v;if(a=e.i,f=a.o.a,u=a.o.b,f<=0&&u<=0)return He(),Is;switch(y=e.n.a,v=e.n.b,p=e.o.a,r=e.o.b,t.g){case 2:case 1:if(y<0)return He(),Kt;if(y+p>f)return He(),Qt;break;case 4:case 3:if(v<0)return He(),Wt;if(v+r>u)return He(),dn}return m=(y+p/2)/f,o=(v+r/2)/u,m+o<=1&&m-o<=0?(He(),Kt):m+o>=1&&m-o>=0?(He(),Qt):o<.5?(He(),Wt):(He(),dn)}function zyt(e,t,r,o,a,u,f){var p,m,y,v,T,N;for(N=new wS,y=t.Jc();y.Ob();)for(p=l(y.Pb(),845),T=new V(p.Pf());T.a0?p.a?(y=p.b.Kf().b,a>y&&(e.v||p.c.d.c.length==1?(f=(a-y)/2,p.d.d=f,p.d.a=f):(r=l(ze(p.c.d,0),190).Kf().b,o=(r-y)/2,p.d.d=b.Math.max(0,o),p.d.a=a-o-y))):p.d.a=e.t+a:k3(e.u)&&(u=jbe(p.b),u.d<0&&(p.d.d=-u.d),u.d+u.a>p.b.Kf().b&&(p.d.a=u.d+u.a-p.b.Kf().b))}function ed(){ed=K,AT=new Mi((_n(),HL),Re(1)),v$=new Mi(Od,80),vkt=new Mi(ANe,5),lkt=new Mi(gk,bx),wkt=new Mi(vre,Re(1)),ykt=new Mi(Ere,(Lt(),!0)),R2e=new xb(50),bkt=new Mi(df,R2e),N2e=y4,O2e=bk,dkt=new Mi(rU,!1),I2e=v4,pkt=uv,gkt=G1,hkt=Am,fkt=g2,mkt=cv,C2e=(Wbe(),rkt),see=akt,y$=nkt,oee=ikt,D2e=skt,Tkt=wk,Akt=sU,Skt=dv,Ekt=mk,L2e=(VS(),pv),new Mi(VT,L2e)}function OAn(e,t){var r;switch(b6(e)){case 6:return zi(t);case 7:return Uw(t);case 8:return Bw(t);case 3:return Array.isArray(t)&&(r=b6(t),!(r>=14&&r<=16));case 11:return t!=null&&typeof t===KJ;case 12:return t!=null&&(typeof t===pD||typeof t==KJ);case 0:return vY(t,e.__elementTypeId$);case 2:return eW(t)&&t.Rm!==fe;case 1:return eW(t)&&t.Rm!==fe||vY(t,e.__elementTypeId$);default:return!0}}function DAn(e){var t,r,o,a;o=e.o,qw(),e.A.dc()||pr(e.A,T2e)?a=o.a:(e.D?a=b.Math.max(o.a,SC(e.f)):a=SC(e.f),e.A.Gc((sc(),JL))&&!e.B.Gc((Uu(),C4))&&(a=b.Math.max(a,SC(l(Wo(e.p,(He(),Wt)),256))),a=b.Math.max(a,SC(l(Wo(e.p,dn),256)))),t=Oht(e),t&&(a=b.Math.max(a,t.a))),Ye(Ke(e.e.Rf().mf((_n(),uv))))?o.a=b.Math.max(o.a,a):o.a=a,r=e.f.i,r.c=0,r.b=a,xJ(e.f)}function Gyt(e,t){var r,o,a,u;return o=b.Math.min(b.Math.abs(e.c-(t.c+t.b)),b.Math.abs(e.c+e.b-t.c)),u=b.Math.min(b.Math.abs(e.d-(t.d+t.a)),b.Math.abs(e.d+e.a-t.d)),r=b.Math.abs(e.c+e.b/2-(t.c+t.b/2)),r>e.b/2+t.b/2||(a=b.Math.abs(e.d+e.a/2-(t.d+t.a/2)),a>e.a/2+t.a/2)?1:r==0&&a==0?0:r==0?u/a+1:a==0?o/r+1:b.Math.min(o/r,u/a)+1}function LAn(e,t){var r,o,a,u,f,p,m;for(u=0,p=0,m=0,a=new V(e.f.e);a.a0&&e.d!=(G3(),cee)&&(p+=f*(o.d.a+e.a[t.a][o.a]*(t.d.a-o.d.a)/r)),r>0&&e.d!=(G3(),aee)&&(m+=f*(o.d.b+e.a[t.a][o.a]*(t.d.b-o.d.b)/r)));switch(e.d.g){case 1:return new Me(p/u,t.d.b);case 2:return new Me(t.d.a,m/u);default:return new Me(p/u,m/u)}}function qyt(e){var t,r,o,a,u,f;for(r=(!e.a&&(e.a=new yi(Ic,e,5)),e.a).i+2,f=new Da(r),Fe(f,new Me(e.j,e.k)),ei(new Et(null,(!e.a&&(e.a=new yi(Ic,e,5)),new St(e.a,16))),new wXe(f)),Fe(f,new Me(e.b,e.c)),t=1;t0&&(I6(m,!1,(vi(),as)),I6(m,!0,fs)),La(t.g,new wtt(e,r)),Jn(e.g,t,r)}function v0e(){v0e=K,hOt=new pt(kve,(Lt(),!1)),Re(-1),sOt=new pt(Nve,Re(-1)),Re(-1),aOt=new pt(Cve,Re(-1)),uOt=new pt(Ive,!1),cOt=new pt(Rve,!1),Uxe=(KP(),Dne),mOt=new pt(Ove,Uxe),wOt=new pt(Dve,-1),Bxe=(Wj(),Cne),bOt=new pt(Lve,Bxe),gOt=new pt(Mve,!0),Fxe=(ij(),Lne),fOt=new pt(Pve,Fxe),dOt=new pt(jve,!1),Re(1),lOt=new pt(Fve,Re(1)),$xe=(Uj(),Mne),pOt=new pt($ve,$xe)}function Kyt(){Kyt=K;var e;for(r2e=Z(X(Rn,1),Qn,30,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),zQ=we(Rn,Qn,30,37,15,1),X_t=Z(X(Rn,1),Qn,30,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),i2e=we(pw,p2t,30,37,14,1),e=2;e<=36;e++)zQ[e]=go(b.Math.pow(e,r2e[e])),i2e[e]=W6(wD,zQ[e])}function MAn(e){var t;if((!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i!=1)throw Y(new jt(PTt+(!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i));return t=new Lu,RK(l(oe((!e.b&&(e.b=new Tt(pn,e,4,7)),e.b),0),83))&&mo(t,jEt(e,RK(l(oe((!e.b&&(e.b=new Tt(pn,e,4,7)),e.b),0),83)),!1)),RK(l(oe((!e.c&&(e.c=new Tt(pn,e,5,8)),e.c),0),83))&&mo(t,jEt(e,RK(l(oe((!e.c&&(e.c=new Tt(pn,e,5,8)),e.c),0),83)),!0)),t}function Yyt(e,t){var r,o,a,u,f;for(t.d?a=e.a.c==(If(),aw)?si(t.b):Or(t.b):a=e.a.c==(If(),kg)?si(t.b):Or(t.b),u=!1,o=new $t(qt(a.a.Jc(),new D));an(o);)if(r=l(en(o),17),f=Ye(e.a.f[e.a.g[t.b.p].p]),!(!f&&!fo(r)&&r.c.i.c==r.d.i.c)&&!(Ye(e.a.n[e.a.g[t.b.p].p])||Ye(e.a.n[e.a.g[t.b.p].p]))&&(u=!0,bl(e.b,e.a.g[Xbn(r,t.b).p])))return t.c=!0,t.a=r,t;return t.c=u,t.a=null,t}function E0e(e,t,r){var o,a,u,f,p,m,y;if(o=r.gc(),o==0)return!1;if(e.Nj())if(m=e.Oj(),k1e(e,t,r),f=o==1?e.Gj(3,null,r.Jc().Pb(),t,m):e.Gj(5,null,r,t,m),e.Kj()){for(p=o<100?null:new Qg(o),u=t+o,a=t;a0){for(f=0;f>16==-15&&e.Cb.Vh()&&nK(new eK(e.Cb,9,13,r,e.c,gg(Fu(l(e.Cb,62)),e))):ae(e.Cb,89)&&e.Db>>16==-23&&e.Cb.Vh()&&(t=e.c,ae(t,89)||(t=(_t(),Ml)),ae(r,89)||(r=(_t(),Ml)),nK(new eK(e.Cb,9,10,r,t,gg(oa(l(e.Cb,29)),e)))))),e.c}function Zyt(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M;if(t==r)return!0;if(t=_me(e,t),r=_me(e,r),o=kY(t),o){if(v=kY(r),v!=o)return v?(m=o.kk(),M=v.kk(),m==M&&m!=null):!1;if(f=(!t.d&&(t.d=new yi(Go,t,1)),t.d),u=f.i,N=(!r.d&&(r.d=new yi(Go,r,1)),r.d),u==N.i){for(y=0;y0,p=Vj(t,u),kde(r?p.b:p.g,t),wE(p).c.length==1&&Wr(o,p,o.c.b,o.c),a=new ko(u,t),l1(e.o,a),Xa(e.e.a,u))}function tvt(e,t){var r,o,a,u,f,p,m;return o=b.Math.abs(bP(e.b).a-bP(t.b).a),p=b.Math.abs(bP(e.b).b-bP(t.b).b),a=0,m=0,r=1,f=1,o>e.b.b/2+t.b.b/2&&(a=b.Math.min(b.Math.abs(e.b.c-(t.b.c+t.b.b)),b.Math.abs(e.b.c+e.b.b-t.b.c)),r=1-a/o),p>e.b.a/2+t.b.a/2&&(m=b.Math.min(b.Math.abs(e.b.d-(t.b.d+t.b.a)),b.Math.abs(e.b.d+e.b.a-t.b.d)),f=1-m/p),u=b.Math.min(r,f),(1-u)*b.Math.sqrt(o*o+p*p)}function UAn(e){var t,r,o,a;for(HJ(e,e.e,e.f,(g0(),H1),!0,e.c,e.i),HJ(e,e.e,e.f,H1,!1,e.c,e.i),HJ(e,e.e,e.f,u2,!0,e.c,e.i),HJ(e,e.e,e.f,u2,!1,e.c,e.i),FAn(e,e.c,e.e,e.f,e.i),o=new Xi(e.i,0);o.b=65;r--)mf[r]=r-65<<24>>24;for(o=122;o>=97;o--)mf[o]=o-97+26<<24>>24;for(a=57;a>=48;a--)mf[a]=a-48+52<<24>>24;for(mf[43]=62,mf[47]=63,u=0;u<=25;u++)Pg[u]=65+u&Ei;for(f=26,m=0;f<=51;++f,m++)Pg[f]=97+m&Ei;for(e=52,p=0;e<=61;++e,p++)Pg[e]=48+p&Ei;Pg[62]=43,Pg[63]=47}function nvt(e,t){var r,o,a,u,f,p;return a=mge(e),p=mge(t),a==p?e.e==t.e&&e.a<54&&t.a<54?e.ft.f?1:0:(o=e.e-t.e,r=(e.d>0?e.d:b.Math.floor((e.a-1)*g2t)+1)-(t.d>0?t.d:b.Math.floor((t.a-1)*g2t)+1),r>o+1?a:r0&&(f=dE(f,gvt(o))),Ygt(u,f))):ay&&(N=0,O+=m+t,m=0),ex(f,N,O),r=b.Math.max(r,N+v.a),m=b.Math.max(m,v.b),N+=v.a+t;return new Me(r+t,O+m+t)}function _0e(e,t){var r,o,a,u,f,p,m;if(!Gd(e))throw Y(new es(MTt));if(o=Gd(e),u=o.g,a=o.f,u<=0&&a<=0)return He(),Is;switch(p=e.i,m=e.j,t.g){case 2:case 1:if(p<0)return He(),Kt;if(p+e.g>u)return He(),Qt;break;case 4:case 3:if(m<0)return He(),Wt;if(m+e.f>a)return He(),dn}return f=(p+e.g/2)/u,r=(m+e.f/2)/a,f+r<=1&&f-r<=0?(He(),Kt):f+r>=1&&f-r>=0?(He(),Qt):r<.5?(He(),Wt):(He(),dn)}function GAn(e,t,r,o,a){var u,f;if(u=Ao(Gi(t[0],$o),Gi(o[0],$o)),e[0]=Dn(u),u=u0(u,32),r>=a){for(f=1;f0&&(a.b[f++]=0,a.b[f++]=u.b[0]-1),t=1;tT?y=0:y=-1,t.a=N+o,f=0,a=y+1;a0&&(UG(m,m.d-a.d),a.c==(vd(),U1)&&mZt(m,m.a-a.d),m.d<=0&&m.i>0&&Wr(t,m,t.c.b,t.c)));for(u=new V(e.f);u.a0&&(S9(p,p.i-a.d),a.c==(vd(),U1)&&wZt(p,p.b-a.d),p.i<=0&&p.d>0&&Wr(r,p,r.c.b,r.c)))}function WAn(e,t,r,o,a){var u,f,p,m,y,v,T,N,O;for(At(),xi(e,new LGe),f=UO(e),O=new je,N=new je,p=null,m=0;f.b!=0;)u=l(f.b==0?null:(un(f.b!=0),Vc(f,f.a.a)),168),!p||hu(p)*ec(p)/21&&(m>hu(p)*ec(p)/2||f.b==0)&&(T=new hj(N),v=hu(p)/ec(p),y=zJ(T,t,new oS,r,o,a,v),br(wd(T.e),y),p=T,Ot(O.c,T),m=0,N.c.length=0));return li(O,N),O}function ua(e,t,r,o,a){eg();var u,f,p,m,y,v,T;if(ihe(e,"src"),ihe(r,"dest"),T=rc(e),m=rc(r),kfe((T.i&4)!=0,"srcType is not an array"),kfe((m.i&4)!=0,"destType is not an array"),v=T.c,f=m.c,kfe(v.i&1?v==f:(f.i&1)==0,"Array types don't match"),gpn(e,t,r,o,a),!(v.i&1)&&T!=m)if(y=HS(e),u=HS(r),be(e)===be(r)&&to;)ii(u,p,y[--t]);else for(p=o+a;o0),o.a.Xb(o.c=--o.b),T>N+m&&Mu(o);for(f=new V(O);f.a0),o.a.Xb(o.c=--o.b)}}function YAn(){fr();var e,t,r,o,a,u;if(Gre)return Gre;for(e=new bc(4),Ny(e,x1(IQ,!0)),$C(e,x1("M",!0)),$C(e,x1("C",!0)),u=new bc(4),o=0;o<11;o++)Sa(u,o,o);return t=new bc(4),Ny(t,x1("M",!0)),Sa(t,4448,4607),Sa(t,65438,65439),a=new b3(2),em(a,e),em(a,B4),r=new b3(2),r.Hm(lP(u,x1("L",!0))),r.Hm(t),r=new oy(3,r),r=new she(a,r),Gre=r,Gre}function ky(e,t){var r,o,a,u,f,p,m,y;for(r=new RegExp(t,"g"),m=we(Je,Pe,2,0,6,1),o=0,y=e,u=null;;)if(p=r.exec(y),p==null||y==""){m[o]=y;break}else f=p.index,m[o]=(io(0,f,y.length),y.substr(0,f)),y=yl(y,f+p[0].length,y.length),r.lastIndex=0,u==y&&(m[o]=(io(0,1,y.length),y.substr(0,1)),y=(Yt(1,y.length+1),y.substr(1))),u=y,++o;if(e.length>0){for(a=m.length;a>0&&m[a-1]=="";)--a;av&&(v=m);for(y=b.Math.pow(4,t),v>y&&(y=v),N=(b.Math.log(y)-b.Math.log(1))/t,u=b.Math.exp(N),a=u,f=0;f0&&(T-=o[0]+e.c,o[0]+=e.c),o[2]>0&&(T-=o[2]+e.c),o[1]=b.Math.max(o[1],T),fP(e.a[1],r.c+t.b+o[0]-(o[1]-T)/2,o[1]);for(u=e.a,p=0,y=u.length;p0?(e.n.c.length-1)*e.i:0,o=new V(e.n);o.a1)for(o=An(a,0);o.b!=o.d.c;)for(r=l(Sn(o),238),u=0,m=new V(r.e);m.a0&&(t[0]+=e.c,T-=t[0]),t[2]>0&&(T-=t[2]+e.c),t[1]=b.Math.max(t[1],T),hP(e.a[1],o.d+r.d+t[0]-(t[1]-T)/2,t[1]);else for(M=o.d+r.d,O=o.a-r.d-r.a,f=e.a,m=0,v=f.length;m=t.o&&r.f<=t.f||t.a*.5<=r.f&&t.a*1.5>=r.f){if(f=l(ze(t.n,t.n.c.length-1),211),f.e+f.d+r.g+a<=o&&(u=l(ze(t.n,t.n.c.length-1),211),u.f-e.f+r.f<=e.b||e.a.c.length==1))return w1e(t,r),!0;if(t.s+r.g<=o&&t.t+t.d+r.f+a<=e.f+e.b)return Fe(t.b,r),p=l(ze(t.n,t.n.c.length-1),211),Fe(t.n,new MP(t.s,p.f+p.a+t.i,t.i)),Z1e(l(ze(t.n,t.n.c.length-1),211),r),svt(t,r),!0}return!1}function G7(e,t,r,o){var a,u,f,p,m;if(m=za(e.e.Ah(),t),a=l(e.g,123),Lo(),l(t,69).vk()){for(f=0;f0||x0(a.b.d,e.b.d+e.b.a)==0&&o.b<0||x0(a.b.d+a.b.a,e.b.d)==0&&o.b>0){p=0;break}}else p=b.Math.min(p,Vmt(e,a,o));p=b.Math.min(p,uvt(e,u,p,o))}return p}function k0e(e,t){var r,o,a,u,f,p,m;if(e.b<2)throw Y(new jt("The vector chain must contain at least a source and a target point."));for(a=(un(e.b!=0),l(e.a.a.c,8)),NO(t,a.a,a.b),m=new SS((!t.a&&(t.a=new yi(Ic,t,5)),t.a)),f=An(e,1);f.a=0&&u!=r))throw Y(new jt(GD));for(a=0,m=0;mue(Hd(f.g,f.d[0]).a)?(un(m.b>0),m.a.Xb(m.c=--m.b),Vw(m,f),a=!0):p.e&&p.e.gc()>0&&(u=(!p.e&&(p.e=new je),p.e).Kc(t),y=(!p.e&&(p.e=new je),p.e).Kc(r),(u||y)&&((!p.e&&(p.e=new je),p.e).Ec(f),++f.c));a||Ot(o.c,f)}function i_n(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J;return T=e.a.i+e.a.g/2,N=e.a.i+e.a.g/2,M=t.i+t.g/2,z=t.j+t.f/2,p=new Me(M,z),y=l(ve(t,(_n(),GT)),8),y.a=y.a+T,y.b=y.b+N,u=(p.b-y.b)/(p.a-y.a),o=p.b-u*p.a,U=r.i+r.g/2,J=r.j+r.f/2,m=new Me(U,J),v=l(ve(r,GT),8),v.a=v.a+T,v.b=v.b+N,f=(m.b-v.b)/(m.a-v.a),a=m.b-f*m.a,O=(o-a)/(f-u),y.am.a?(a=y.b.c,u=y.b.a-y.a,p=v-T-(m.a-y.a)*a/u,f=b.Math.max(f,p),m=m.b,m&&(v+=m.c)):(y=y.b,T+=y.c);for(m=r,y=o,v=m.c,T=y.c;y&&m.b;)m.b.a>y.a?(a=m.b.c,u=m.b.a-m.a,p=v-T+(y.a-m.a)*a/u,f=b.Math.max(f,p),y=y.b,y&&(T+=y.c)):(m=m.b,v+=m.c);return f}function l_n(e,t,r){var o,a,u,f,p,m;for(o=0,u=new tn((!e.a&&(e.a=new ke(En,e,10,11)),e.a));u.e!=u.i.gc();)a=l(rn(u),19),f="",(!a.n&&(a.n=new ke(Rs,a,1,7)),a.n).i==0||(f=l(oe((!a.n&&(a.n=new ke(Rs,a,1,7)),a.n),0),158).a),p=new nrt(f),qs(p,a),Te(p,(h1(),_T),a),p.a=o++,p.d.a=a.i+a.g/2,p.d.b=a.j+a.f/2,p.e.a=b.Math.max(a.g,1),p.e.b=b.Math.max(a.f,1),Fe(t.e,p),eu(r.f,a,p),m=l(ve(a,(ed(),O2e)),103),m==(qi(),W1)&&(m=pf)}function fvt(e){var t,r,o;if(tE(l(F(e,(Be(),Zr)),103)))for(r=new V(e.j);r.a>>0,"0"+t.toString(16)),o="\\x"+yl(r,r.length-2,r.length)):e>=No?(r=(t=e>>>0,"0"+t.toString(16)),o="\\v"+yl(r,r.length-6,r.length)):o=""+String.fromCharCode(e&Ei)}return o}function hvt(e,t){var r,o,a,u,f,p,m,y,v;for(u=new V(e.b);u.ar){t.Ug();return}switch(l(F(e,(Be(),Nte)),351).g){case 2:u=new Pue;break;case 0:u=new Due;break;default:u=new jue}if(o=u.mg(e,a),!u.ng())switch(l(F(e,SB),352).g){case 2:o=Wmt(a,o);break;case 1:o=Lbt(a,o)}axn(e,a,o),t.Ug()}function OC(e,t){var r,o,a,u,f,p,m,y;t%=24,e.q.getHours()!=t&&(o=new b.Date(e.q.getTime()),o.setDate(o.getDate()+1),p=e.q.getTimezoneOffset()-o.getTimezoneOffset(),p>0&&(m=p/60|0,y=p%60,a=e.q.getDate(),r=e.q.getHours(),r+m>=24&&++a,u=new b.Date(e.q.getFullYear(),e.q.getMonth(),a,t+m,e.q.getMinutes()+y,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(u.getTime()))),f=e.q.getTime(),e.q.setTime(f+36e5),e.q.getHours()!=t&&e.q.setTime(f)}function h_n(e,t){var r,o,a,u;if($un(e.d,e.e),e.c.a.$b(),ue(ce(F(t.j,(Be(),bL))))!=0||ue(ce(F(t.j,bL)))!=0)for(r=jE,be(F(t.j,Ch))!==be((bp(),B1))&&Te(t.j,(Ie(),j1),(Lt(),!0)),u=l(F(t.j,qI),15).a,a=0;aa&&++y,Fe(f,(at(p+y,t.c.length),l(t.c[p+y],15))),m+=(at(p+y,t.c.length),l(t.c[p+y],15)).a-o,++r;r=z&&e.e[m.p]>M*e.b||se>=r*z)&&(Ot(N.c,p),p=new je,mo(f,u),u.a.$b(),y-=v,O=b.Math.max(O,y*e.b+U),y+=se,ne=se,se=0,v=0,U=0);return new ko(O,N)}function NJ(e){var t,r,o,a,u,f,p;if(!e.d){if(p=new sqe,t=L4,u=t.a.yc(e,t),u==null){for(o=new tn(ds(e));o.e!=o.i.gc();)r=l(rn(o),29),ti(p,NJ(r));t.a.Ac(e)!=null,t.a.gc()==0}for(f=p.i,a=(!e.q&&(e.q=new ke(Dl,e,11,10)),new tn(e.q));a.e!=a.i.gc();++f)l(rn(a),408);ti(p,(!e.q&&(e.q=new ke(Dl,e,11,10)),e.q)),hy(p),e.d=new Qv((l(oe(Ne((a1(),Ut).o),9),20),p.i),p.g),e.e=l(p.g,685),e.e==null&&(e.e=dLt),Pu(e).b&=-17}return e.d}function nx(e,t,r,o){var a,u,f,p,m,y;if(y=za(e.e.Ah(),t),m=0,a=l(e.g,123),Lo(),l(t,69).vk()){for(f=0;f1||M==-1)if(T=l(U,72),N=l(v,72),T.dc())N.$b();else for(f=!!Mo(t),u=0,p=e.a?T.Jc():T.Gi();p.Ob();)y=l(p.Pb(),57),a=l(Wd(e,y),57),a?(f?(m=N.bd(a),m==-1?N.Ei(u,a):u!=m&&N.Si(u,a)):N.Ei(u,a),++u):e.b&&!f&&(N.Ei(u,y),++u);else U==null?v.Wb(null):(a=Wd(e,U),a==null?e.b&&!Mo(t)&&v.Wb(U):v.Wb(a))}function w_n(e,t){var r,o,a,u,f,p,m,y;for(r=new DFe,a=new $t(qt(si(t).a.Jc(),new D));an(a);)if(o=l(en(a),17),!fo(o)&&(p=o.c.i,Dbe(p,A$))){if(y=t0e(e,p,A$,T$),y==-1)continue;r.b=b.Math.max(r.b,y),!r.a&&(r.a=new je),Fe(r.a,p)}for(f=new $t(qt(Or(t).a.Jc(),new D));an(f);)if(u=l(en(f),17),!fo(u)&&(m=u.d.i,Dbe(m,T$))){if(y=t0e(e,m,T$,A$),y==-1)continue;r.d=b.Math.max(r.d,y),!r.c&&(r.c=new je),Fe(r.c,m)}return r}function y_n(e,t,r,o){var a,u,f,p,m,y,v;if(r.d.i!=t.i){for(a=new Xd(e),Jh(a,(zt(),gi)),Te(a,(Ie(),mr),r),Te(a,(Be(),Zr),(qi(),fa)),Ot(o.c,a),f=new aa,As(f,a),Ci(f,(He(),Kt)),p=new aa,As(p,a),Ci(p,Qt),v=r.d,Ji(r,f),u=new p0,qs(u,r),Te(u,ss,null),bo(u,p),Ji(u,v),y=new Xi(r.b,0);y.b1e6)throw Y(new j9("power of ten too big"));if(e<=sr)return jS(eD(ST[1],t),t);for(o=eD(ST[1],sr),a=o,r=Gs(e-sr),t=go(e%sr);Ea(r,sr)>0;)a=dE(a,o),r=El(r,sr);for(a=dE(a,eD(ST[1],t)),a=jS(a,sr),r=Gs(e-sr);Ea(r,sr)>0;)a=jS(a,sr),r=El(r,sr);return a=jS(a,t),a}function bvt(e){var t,r,o,a,u,f,p,m,y,v;for(m=new V(e.a);m.ay&&o>y)v=p,y=ue(t.p[p.p])+ue(t.d[p.p])+p.o.b+p.d.a;else{a=!1,r.$g()&&r.ah("bk node placement breaks on "+p+" which should have been after "+v);break}if(!a)break}return r.$g()&&r.ah(t+" is feasible: "+a),a}function wvt(e,t){var r,o;o=l(ve(t,(_n(),Cp)),125),r=new Qu(0,t.j+t.f+o.a+e.b/2,new Qu(t.g/2,t.j+t.f+o.a+e.b/2,null)),Vn(t,(wh(),Sm),new Qu(-o.b-e.b/2+t.g/2,t.j-o.d-e.b/2,new Qu(-t.g/2,t.j-o.d,r))),r=new Qu(0,t.j+t.f+o.a,new Qu(-t.g/2,t.j+t.f+o.a+e.b/2,null)),Vn(t,ov,new Qu(t.g/2+o.c+e.b/2,t.j-o.d,new Qu(t.g/2,t.j-o.d-e.b/2,r))),Vn(t,hk,t.i-o.b),Vn(t,fk,t.i+o.c+t.g),Vn(t,n6t,t.j-o.d),Vn(t,Vne,t.j+o.a+t.f),Vn(t,Xf,l(ve(t,Sm),107).b.b.a)}function I0e(e,t,r,o){var a,u,f,p,m,y,v,T,N;if(u=new Xd(e),Jh(u,(zt(),_a)),Te(u,(Be(),Zr),(qi(),fa)),a=0,t){for(f=new aa,Te(f,(Ie(),mr),t),Te(u,mr,t.i),Ci(f,(He(),Kt)),As(f,u),N=Df(t.e),y=N,v=0,T=y.length;v0){if(a<0&&v.a&&(a=m,u=y[0],o=0),a>=0){if(p=v.b,m==a&&(p-=o++,p==0))return 0;if(!SEt(t,y,v,p,f)){m=a-1,y[0]=u;continue}}else if(a=-1,!SEt(t,y,v,0,f))return 0}else{if(a=-1,co(v.c,0)==32){if(T=y[0],Gdt(t,y),y[0]>T)continue}else if(zan(t,v.c,y[0])){y[0]+=v.c.length;continue}return 0}return hNn(f,r)?y[0]:0}function A_n(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(v=new gP(new bYe(r)),p=we(uu,Ad,30,e.f.e.c.length,16,1),rhe(p,p.length),r[t.a]=0,y=new V(e.f.e);y.a=p.a?u.b>=p.b?(o.a=p.a+(u.a-p.a)/2+a,o.b=p.b+(u.b-p.b)/2-a-e.e.b):(o.a=p.a+(u.a-p.a)/2+a,o.b=u.b+(p.b-u.b)/2+a):u.b>=p.b?(o.a=u.a+(p.a-u.a)/2+a,o.b=p.b+(u.b-p.b)/2+a):(o.a=u.a+(p.a-u.a)/2+a,o.b=u.b+(p.b-u.b)/2-a-e.e.b))}function LC(e){var t,r,o,a,u,f,p,m;if(!e.f){if(m=new zue,p=new zue,t=L4,f=t.a.yc(e,t),f==null){for(u=new tn(ds(e));u.e!=u.i.gc();)a=l(rn(u),29),ti(m,LC(a));t.a.Ac(e)!=null,t.a.gc()==0}for(o=(!e.s&&(e.s=new ke(au,e,21,17)),new tn(e.s));o.e!=o.i.gc();)r=l(rn(o),182),ae(r,104)&&Tn(p,l(r,20));hy(p),e.r=new wot(e,(l(oe(Ne((a1(),Ut).o),6),20),p.i),p.g),ti(m,e.r),hy(m),e.f=new Qv((l(oe(Ne(Ut.o),5),20),m.i),m.g),Pu(e).b&=-3}return e.f}function q7(){q7=K,m3e=Z(X(al,1),Bf,30,15,[48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]),UDt=new RegExp(`[ +\r\f]+`);try{R4=Z(X(lCn,1),Rt,2093,0,[new eO((ude(),Xj("yyyy-MM-dd'T'HH:mm:ss'.'SSSZ",jO((L9(),L9(),bI))))),new eO(Xj("yyyy-MM-dd'T'HH:mm:ss'.'SSS",jO(bI))),new eO(Xj("yyyy-MM-dd'T'HH:mm:ss",jO(bI))),new eO(Xj("yyyy-MM-dd'T'HH:mm",jO(bI))),new eO(Xj("yyyy-MM-dd",jO(bI)))])}catch(e){if(e=ci(e),!ae(e,81))throw Y(e)}}function __n(e){var t,r,o,a,u,f,p;for(r=null,p=null,o=l(F(e.b,(Be(),mte)),349),o==(nC(),AL)&&(r=new je,p=new je),f=new V(e.d);f.ar);return u}function yvt(e,t){var r,o,a,u;if(a=Bu(e.d,1)!=0,o=x7(e,t),o==0&&Ye(Ke(F(t.j,(Ie(),j1)))))return 0;!Ye(Ke(F(t.j,(Ie(),j1))))&&!Ye(Ke(F(t.j,e2)))||be(F(t.j,(Be(),Ch)))===be((bp(),B1))?t.c.kg(t.e,a):a=Ye(Ke(F(t.j,j1))),oD(e,t,a,!0),Ye(Ke(F(t.j,e2)))&&Te(t.j,e2,(Lt(),!1)),Ye(Ke(F(t.j,j1)))&&(Te(t.j,j1,(Lt(),!1)),Te(t.j,e2,!0)),r=x7(e,t);do{if(bge(e),r==0)return 0;a=!a,u=r,oD(e,t,a,!1),r=x7(e,t)}while(u>r);return u}function k_n(e,t,r){var o,a,u,f,p;if(o=l(F(e,(Be(),pte)),24),r.a>t.a&&(o.Gc((Zb(),g4))?e.c.a+=(r.a-t.a)/2:o.Gc(b4)&&(e.c.a+=r.a-t.a)),r.b>t.b&&(o.Gc((Zb(),w4))?e.c.b+=(r.b-t.b)/2:o.Gc(m4)&&(e.c.b+=r.b-t.b)),l(F(e,(Ie(),xa)),24).Gc((Fo(),rl))&&(r.a>t.a||r.b>t.b))for(p=new V(e.a);p.at.a&&(o.Gc((Zb(),g4))?e.c.a+=(r.a-t.a)/2:o.Gc(b4)&&(e.c.a+=r.a-t.a)),r.b>t.b&&(o.Gc((Zb(),w4))?e.c.b+=(r.b-t.b)/2:o.Gc(m4)&&(e.c.b+=r.b-t.b)),l(F(e,(Ie(),xa)),24).Gc((Fo(),rl))&&(r.a>t.a||r.b>t.b))for(f=new V(e.a);f.a=0&&T<=1&&N>=0&&N<=1?br(new Me(e.a,e.b),tp(new Me(t.a,t.b),T)):null}function MC(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(u=0,f=e.t,a=0,o=0,m=0,N=0,T=0,r&&(e.n.c.length=0,Fe(e.n,new MP(e.s,e.t,e.i))),p=0,v=new V(e.b);v.a0?e.i:0)>t&&m>0&&(u=0,f+=m+e.i,a=b.Math.max(a,N),o+=m+e.i,m=0,N=0,r&&(++T,Fe(e.n,new MP(e.s,f,e.i))),p=0),N+=y.g+(p>0?e.i:0),m=b.Math.max(m,y.f),r&&Z1e(l(ze(e.n,T),211),y),u+=y.g+(p>0?e.i:0),++p;return a=b.Math.max(a,N),o+=m,r&&(e.r=a,e.d=o,tbe(e.j)),new ql(e.s,e.t,a,o)}function V7(e){var t,r,o;return r=be(ve(e,(Be(),jT)))===be((tD(),$ee))||be(ve(e,jT))===be(Lee)||be(ve(e,jT))===be(Mee)||be(ve(e,jT))===be(jee)||be(ve(e,jT))===be(Bee)||be(ve(e,jT))===be(uL),o=be(ve(e,gB))===be((rD(),Ite))||be(ve(e,gB))===be(Ote)||be(ve(e,wL))===be((_1(),ak))||be(ve(e,wL))===be((_1(),KI)),t=be(ve(e,Ch))!==be((bp(),B1))||Ye(Ke(ve(e,tk)))||be(ve(e,jI))!==be((YS(),TI))||ue(ce(ve(e,bL)))!=0||ue(ce(ve(e,dte)))!=0,r||o||t}function CE(e){var t,r,o,a,u,f,p,m;if(!e.a){if(e.o=null,m=new eZe(e),t=new oqe,r=L4,p=r.a.yc(e,r),p==null){for(f=new tn(ds(e));f.e!=f.i.gc();)u=l(rn(f),29),ti(m,CE(u));r.a.Ac(e)!=null,r.a.gc()==0}for(a=(!e.s&&(e.s=new ke(au,e,21,17)),new tn(e.s));a.e!=a.i.gc();)o=l(rn(a),182),ae(o,336)&&Tn(t,l(o,38));hy(t),e.k=new mot(e,(l(oe(Ne((a1(),Ut).o),7),20),t.i),t.g),ti(m,e.k),hy(m),e.a=new Qv((l(oe(Ne(Ut.o),4),20),m.i),m.g),Pu(e).b&=-2}return e.a}function I_n(e){var t,r,o,a,u,f,p,m,y,v,T,N;if(p=e.d,T=l(F(e,(Ie(),MT)),16),t=l(F(e,NT),16),!(!T&&!t)){if(u=ue(ce(by(e,(Be(),Ate)))),f=ue(ce(by(e,HAe))),N=0,T){for(y=0,a=T.Jc();a.Ob();)o=l(a.Pb(),9),y=b.Math.max(y,o.o.b),N+=o.o.a;N+=u*(T.gc()-1),p.d+=y+f}if(r=0,t){for(y=0,a=t.Jc();a.Ob();)o=l(a.Pb(),9),y=b.Math.max(y,o.o.b),r+=o.o.a;r+=u*(t.gc()-1),p.a+=y+f}m=b.Math.max(N,r),m>e.o.a&&(v=(m-e.o.a)/2,p.b=b.Math.max(p.b,v),p.c=b.Math.max(p.c,v))}}function D0e(e,t,r,o){var a,u,f,p,m,y,v;if(v=za(e.e.Ah(),t),a=0,u=l(e.g,123),m=null,Lo(),l(t,69).vk()){for(p=0;pp?1:-1:Vge(e.a,t.a,u),a==-1)T=-m,v=f==m?KW(t.a,p,e.a,u):JW(t.a,p,e.a,u);else if(T=f,f==m){if(a==0)return jf(),wI;v=KW(e.a,u,t.a,p)}else v=JW(e.a,u,t.a,p);return y=new Ob(T,v.length,v),F3(y),y}function D_n(e,t){var r,o,a,u;if(u=rvt(t),!t.c&&(t.c=new ke(Gu,t,9,9)),ei(new Et(null,(!t.c&&(t.c=new ke(Gu,t,9,9)),new St(t.c,16))),new vYe(u)),a=l(F(u,(Ie(),xa)),24),Ikn(t,a),a.Gc((Fo(),rl)))for(o=new tn((!t.c&&(t.c=new ke(Gu,t,9,9)),t.c));o.e!=o.i.gc();)r=l(rn(o),127),tNn(e,t,u,r);return l(ve(t,(Be(),mm)),185).gc()!=0&&zwt(t,u),Ye(Ke(F(u,jAe)))&&a.Ec(eB),gr(u,yL)&&hQe(new E1e(ue(ce(F(u,yL)))),u),be(ve(t,Wy))===be((pp(),Ig))?T3n(e,t,u):aNn(e,t,u),u}function Ta(e,t){var r,o,a,u,f,p,m;if(e==null)return null;if(u=e.length,u==0)return"";for(m=we(al,Bf,30,u,15,1),io(0,u,e.length),io(0,u,m.length),Nst(e,0,u,m,0),r=null,p=t,a=0,f=0;a0?yl(r.a,0,u-1):""):(io(0,u-1,e.length),e.substr(0,u-1)):r?r.a:e}function L_n(e,t,r){var o,a,u;if(gr(t,(Be(),Cs))&&(be(F(t,Cs))===be((ic(),xp))||be(F(t,Cs))===be(gm))||gr(r,Cs)&&(be(F(r,Cs))===be((ic(),xp))||be(F(r,Cs))===be(gm)))return 0;if(o=ji(t),a=vTn(e,t,r),a!=0)return a;if(gr(t,(Ie(),Cr))&&gr(r,Cr)){if(u=na(D0(t,r,o,l(F(o,F1),15).a),D0(r,t,o,l(F(o,F1),15).a)),be(F(o,FI))===be((g1(),lL))&&be(F(t,$I))!==be(F(r,$I))&&(u=0),u<0)return sD(e,t,r),u;if(u>0)return sD(e,r,t),u}return Gvn(e,t,r)}function vvt(e,t){var r,o,a,u,f,p,m,y,v,T,N;for(o=new $t(qt(mp(t).a.Jc(),new D));an(o);)r=l(en(o),74),ae(oe((!r.b&&(r.b=new Tt(pn,r,4,7)),r.b),0),196)||(m=Yo(l(oe((!r.c&&(r.c=new Tt(pn,r,5,8)),r.c),0),83)),AC(r)||(f=t.i+t.g/2,p=t.j+t.f/2,v=m.i+m.g/2,T=m.j+m.f/2,N=new ro,N.a=v-f,N.b=T-p,u=new Me(N.a,N.b),G_(u,t.g,t.f),N.a-=u.a,N.b-=u.b,f=v-N.a,p=T-N.b,y=new Me(N.a,N.b),G_(y,m.g,m.f),N.a-=y.a,N.b-=y.b,v=f+N.a,T=p+N.b,a=kC(r),E0(a,f),S0(a,p),y0(a,v),v0(a,T),vvt(e,m)))}function Ny(e,t){var r,o,a,u,f;if(f=l(t,140),xE(e),xE(f),f.b!=null){if(e.c=!0,e.b==null){e.b=we(Rn,Qn,30,f.b.length,15,1),ua(f.b,0,e.b,0,f.b.length);return}for(u=we(Rn,Qn,30,e.b.length+f.b.length,15,1),r=0,o=0,a=0;r=e.b.length?(u[a++]=f.b[o++],u[a++]=f.b[o++]):o>=f.b.length?(u[a++]=e.b[r++],u[a++]=e.b[r++]):f.b[o]0?e.i:0)),++t;for(h1e(e.n,m),e.d=r,e.r=o,e.g=0,e.f=0,e.e=0,e.o=Kr,e.p=Kr,u=new V(e.b);u.a0&&(a=(!e.n&&(e.n=new ke(Rs,e,1,7)),l(oe(e.n,0),158)).a,!a||zn(zn((t.a+=' "',t),a),'"'))),r=(!e.b&&(e.b=new Tt(pn,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Tt(pn,e,5,8)),e.c.i<=1))),r?t.a+=" [":t.a+=" ",zn(t,Tde(new hq,new tn(e.b))),r&&(t.a+="]"),t.a+=PX,r&&(t.a+="["),zn(t,Tde(new hq,new tn(e.c))),r&&(t.a+="]"),t.a)}function P_n(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft,It;for(Ee=e.c,ye=t.c,r=_s(Ee.a,e,0),o=_s(ye.a,t,0),se=l(k0(e,(jo(),Cu)).Jc().Pb(),12),ft=l(k0(e,Ba).Jc().Pb(),12),de=l(k0(t,Cu).Jc().Pb(),12),It=l(k0(t,Ba).Jc().Pb(),12),J=Df(se.e),qe=Df(ft.g),ne=Df(de.e),lt=Df(It.g),E1(e,o,ye),f=ne,v=0,M=f.length;v0&&m[o]&&(M=rE(e.b,m[o],a)),U=b.Math.max(U,a.c.c.b+M);for(u=new V(v.e);u.av?new Pb((vd(),rv),r,t,y-v):y>0&&v>0&&(new Pb((vd(),rv),t,r,0),new Pb(rv,r,t,0))),f)}function B_n(e,t,r){var o,a,u;for(e.a=new je,u=An(t.b,0);u.b!=u.d.c;){for(a=l(Sn(u),41);l(F(a,(js(),Jf)),15).a>e.a.c.length-1;)Fe(e.a,new ko(jE,ove));o=l(F(a,Jf),15).a,r==(vi(),as)||r==fs?(a.e.aue(ce(l(ze(e.a,o),49).b))&&HG(l(ze(e.a,o),49),a.e.a+a.f.a)):(a.e.bue(ce(l(ze(e.a,o),49).b))&&HG(l(ze(e.a,o),49),a.e.b+a.f.b))}}function Tvt(e,t,r,o){var a,u,f,p,m,y,v;if(u=Gj(o),p=Ye(Ke(F(o,(Be(),RAe)))),(p||Ye(Ke(F(e,pB))))&&!tE(l(F(e,Zr),103)))a=WS(u),m=y0e(e,r,r==(jo(),Ba)?a:P6(a));else switch(m=new aa,As(m,e),t?(v=m.n,v.a=t.a-e.n.a,v.b=t.b-e.n.b,ymt(v,0,0,e.o.a,e.o.b),Ci(m,Hyt(m,u))):(a=WS(u),Ci(m,r==(jo(),Ba)?a:P6(a))),f=l(F(o,(Ie(),xa)),24),y=m.j,u.g){case 2:case 1:(y==(He(),Wt)||y==dn)&&f.Ec((Fo(),XE));break;case 4:case 3:(y==(He(),Qt)||y==Kt)&&f.Ec((Fo(),XE))}return m}function Avt(e,t){var r,o,a,u,f,p;for(f=new dy(new Dw(e.f.b).a);f.b;){if(u=gE(f),a=l(u.jd(),598),t==1){if(a.yf()!=(vi(),il)&&a.yf()!=ff)continue}else if(a.yf()!=(vi(),as)&&a.yf()!=fs)continue;switch(o=l(l(u.kd(),49).b,84),p=l(l(u.kd(),49).a,197),r=p.c,a.yf().g){case 2:o.g.c=e.e.a,o.g.b=b.Math.max(1,o.g.b+r);break;case 1:o.g.c=o.g.c+r,o.g.b=b.Math.max(1,o.g.b-r);break;case 4:o.g.d=e.e.b,o.g.a=b.Math.max(1,o.g.a+r);break;case 3:o.g.d=o.g.d+r,o.g.a=b.Math.max(1,o.g.a-r)}}}function U_n(e,t){var r,o,a,u,f,p,m,y,v,T;for(t.Tg("Simple node placement",1),T=l(F(e,(Ie(),t2)),317),p=0,u=new V(e.b);u.a1)throw Y(new jt(YD));m||(u=gh(t,o.Jc().Pb()),f.Ec(u))}return Oge(e,Zbe(e,t,r),f)}function K7(e,t,r){var o,a,u,f,p,m,y,v;if(wp(e.e,t))m=(Lo(),l(t,69).vk()?new nP(t,e):new xO(t,e)),N7(m.c,m.b),m3(m,l(r,18));else{for(v=za(e.e.Ah(),t),o=l(e.g,123),f=0;f"}m!=null&&(t.a+=""+m)}else e.e?(p=e.e.zb,p!=null&&(t.a+=""+p)):(t.a+="?",e.b?(t.a+=" super ",DJ(e.b,t)):e.f&&(t.a+=" extends ",DJ(e.f,t)))}function K_n(e){e.b=null,e.a=null,e.o=null,e.q=null,e.v=null,e.w=null,e.B=null,e.p=null,e.Q=null,e.R=null,e.S=null,e.T=null,e.U=null,e.V=null,e.W=null,e.bb=null,e.eb=null,e.ab=null,e.H=null,e.db=null,e.c=null,e.d=null,e.f=null,e.n=null,e.r=null,e.s=null,e.u=null,e.G=null,e.J=null,e.e=null,e.j=null,e.i=null,e.g=null,e.k=null,e.t=null,e.F=null,e.I=null,e.L=null,e.M=null,e.O=null,e.P=null,e.$=null,e.N=null,e.Z=null,e.cb=null,e.K=null,e.D=null,e.A=null,e.C=null,e._=null,e.fb=null,e.X=null,e.Y=null,e.gb=!1,e.hb=!1}function Y_n(e){var t,r,o,a;if(o=VJ((!e.c&&(e.c=ZO(Gs(e.f))),e.c),0),e.e==0||e.a==0&&e.f!=-1&&e.e<0)return o;if(t=mge(e)<0?1:0,r=e.e,a=(o.length+1+b.Math.abs(go(e.e)),new lS),t==1&&(a.a+="-"),e.e>0)if(r-=o.length-t,r>=0){for(a.a+="0.";r>fm.length;r-=fm.length)Hot(a,fm);vit(a,fm,go(r)),zn(a,(Yt(t,o.length+1),o.substr(t)))}else r=t-r,zn(a,yl(o,t,go(r))),a.a+=".",zn(a,hhe(o,go(r)));else{for(zn(a,(Yt(t,o.length+1),o.substr(t)));r<-fm.length;r+=fm.length)Hot(a,fm);vit(a,fm,go(-r))}return a.a}function LJ(e){var t,r,o,a,u,f,p,m,y;return!(e.k!=(zt(),Xr)||e.j.c.length<=1||(u=l(F(e,(Be(),Zr)),103),u==(qi(),fa))||(a=(wy(),(e.q?e.q:(At(),At(),xh))._b(ow)?o=l(F(e,ow),205):o=l(F(ji(e),zI),205),o),a==xB)||!(a==a2||a==s2)&&(f=ue(ce(by(e,GI))),t=l(F(e,EL),125),!t&&(t=new efe(f,f,f,f)),y=ks(e,(He(),Kt)),m=t.d+t.a+(y.gc()-1)*f,m>e.o.b||(r=ks(e,Qt),p=t.d+t.a+(r.gc()-1)*f,p>e.o.b)))}function J_n(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z;t.Tg("Orthogonal edge routing",1),y=ue(ce(F(e,(Be(),tv)))),r=ue(ce(F(e,Qy))),o=ue(ce(F(e,$1))),N=new oW(0,r),z=0,f=new Xi(e.b,0),p=null,v=null,m=null,T=null;do v=f.b0?(O=(M-1)*r,p&&(O+=o),v&&(O+=o),O0;for(p=l(F(e.c.i,Yy),15).a,u=l(Au(lr(t.Mc(),new UYe(p)),ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),f=new Ar,v=new hi,Gn(f,e.c.i),pi(v,e.c.i);f.b!=0;){if(r=l(f.b==0?null:(un(f.b!=0),Vc(f,f.a.a)),9),u.Gc(r))return!0;for(a=new $t(qt(Or(r).a.Jc(),new D));an(a);)o=l(en(a),17),m=o.d.i,v.a._b(m)||(v.a.yc(m,v),Wr(f,m,f.c.b,f.c))}return!1}function Cvt(e,t,r){var o,a,u,f,p,m,y,v,T;for(T=new je,v=new Khe(0,r),u=0,yj(v,new $K(0,0,v,r)),a=0,y=new tn(e);y.e!=y.i.gc();)m=l(rn(y),19),o=l(ze(v.a,v.a.c.length-1),175),p=a+m.g+(l(ze(v.a,0),175).b.c.length==0?0:r),(p>t||Ye(Ke(ve(m,(ef(),DL)))))&&(a=0,u+=v.b+r,Ot(T.c,v),v=new Khe(u,r),o=new $K(0,v.f,v,r),yj(v,o),a=0),o.b.c.length==0||!Ye(Ke(ve(Br(m),(ef(),Rne))))&&(m.f>=o.o&&m.f<=o.f||o.a*.5<=m.f&&o.a*1.5>=m.f)?w1e(o,m):(f=new $K(o.s+o.r+r,v.f,v,r),yj(v,f),w1e(f,m)),a=m.i+m.g;return Ot(T.c,v),T}function PC(e){var t,r,o,a;if(!(e.b==null||e.b.length<=2)&&!e.a){for(t=0,a=0;a=e.b[a+1])a+=2;else if(r0)for(o=new Tu(l(wr(e.a,u),24)),At(),xi(o,new yce(t)),a=new Xi(u.b,0);a.b0&&o>=-6?o>=0?CO(u,r-go(e.e),"."):(NK(u,t-1,t-1,"0."),CO(u,t+1,Mf(fm,0,-go(o)-1))):(r-t>=1&&(CO(u,t,"."),++r),CO(u,r,"E"),o>0&&CO(u,++r,"+"),CO(u,++r,""+x3(Gs(o)))),e.g=u.a,e.g))}function sxn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe;o=ue(ce(F(t,(Be(),LAe)))),Ee=l(F(t,qI),15).a,N=4,a=3,ye=20/Ee,O=!1,m=0,f=sr;do{for(u=m!=1,T=m!=0,qe=0,z=e.a,ne=0,de=z.length;neEe)?(m=2,f=sr):m==0?(m=1,f=qe):(m=0,f=qe)):(O=qe>=f||f-qe=No?Vo(r,p1e(o)):i_(r,o&Ei),f=new _W(10,null,0),Asn(e.a,f,p-1)):(r=(f.Km().length+u,new GN),Vo(r,f.Km())),t.e==0?(o=t.Im(),o>=No?Vo(r,p1e(o)):i_(r,o&Ei)):Vo(r,t.Km()),l(f,521).b=r.a}}function axn(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z;if(!r.dc()){for(p=0,N=0,o=r.Jc(),M=l(o.Pb(),15).a;p0?1:kb(isNaN(o),isNaN(0)))>=0^(Yl(Gf),(b.Math.abs(p)<=Gf||p==0||isNaN(p)&&isNaN(0)?0:p<0?-1:p>0?1:kb(isNaN(p),isNaN(0)))>=0)?b.Math.max(p,o):(Yl(Gf),(b.Math.abs(o)<=Gf||o==0||isNaN(o)&&isNaN(0)?0:o<0?-1:o>0?1:kb(isNaN(o),isNaN(0)))>0?b.Math.sqrt(p*p+o*o):-b.Math.sqrt(p*p+o*o))}function dxn(e){var t,r,o,a;a=e.o,qw(),e.A.dc()||pr(e.A,T2e)?t=a.b:(e.D?t=b.Math.max(a.b,EC(e.f)):t=EC(e.f),e.A.Gc((sc(),JL))&&!e.B.Gc((Uu(),C4))&&(t=b.Math.max(t,EC(l(Wo(e.p,(He(),Qt)),256))),t=b.Math.max(t,EC(l(Wo(e.p,Kt),256)))),r=Oht(e),r&&(t=b.Math.max(t,r.b)),e.A.Gc(XL)&&(e.q==(qi(),Oh)||e.q==fa)&&(t=b.Math.max(t,eP(l(Wo(e.b,(He(),Qt)),129))),t=b.Math.max(t,eP(l(Wo(e.b,Kt),129))))),Ye(Ke(e.e.Rf().mf((_n(),uv))))?a.b=b.Math.max(a.b,t):a.b=t,o=e.f.i,o.d=0,o.a=t,kJ(e.f)}function fxn(e,t,r,o,a,u,f,p){var m,y,v,T;switch(m=Wl(Z(X(iCn,1),Rt,241,0,[t,r,o,a])),T=null,e.b.g){case 1:T=Wl(Z(X(Qxe,1),Rt,527,0,[new CG,new kG,new NG]));break;case 0:T=Wl(Z(X(Qxe,1),Rt,527,0,[new NG,new kG,new CG]));break;case 2:T=Wl(Z(X(Qxe,1),Rt,527,0,[new kG,new CG,new NG]))}for(v=new V(T);v.a1&&(m=y.Gg(m,e.a,p));return m.c.length==1?l(ze(m,m.c.length-1),241):m.c.length==2?Z_n((at(0,m.c.length),l(m.c[0],241)),(at(1,m.c.length),l(m.c[1],241)),f,u):null}function hxn(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M;a=new JR(e),u=new R0t,o=(n6(u.n),n6(u.p),Zs(u.c),n6(u.f),n6(u.o),Zs(u.q),Zs(u.d),Zs(u.g),Zs(u.k),Zs(u.e),Zs(u.i),Zs(u.j),Zs(u.r),Zs(u.b),N=e0t(u,a,null),nwt(u,a),N),t&&(m=new JR(t),f=R_n(m),Vbe(o,Z(X($ke,1),Rt,528,0,[f]))),T=!1,v=!1,r&&(m=new JR(r),qF in m.a&&(T=op(m,qF).oe().a),aAt in m.a&&(v=op(m,aAt).oe().a)),y=OQe($ft(new sS,T),v),pyn(new rGe,o,y),qF in a.a&&Kl(a,qF,null),(T||v)&&(p=new aS,Xyt(y,p,T,v),Kl(a,qF,p)),O=new PXe(u),cpt(new aV(o),O),M=new jXe(u),cpt(new aV(o),M)}function pxn(e,t,r){var o,a,u,f,p,m,y;for(r.Tg("Find roots",1),e.a.c.length=0,a=An(t.b,0);a.b!=a.d.c;)o=l(Sn(a),41),o.b.b==0&&(Te(o,(Nr(),z1),(Lt(),!0)),Fe(e.a,o));switch(e.a.c.length){case 0:u=new FK(0,t,"DUMMY_ROOT"),Te(u,(Nr(),z1),(Lt(),!0)),Te(u,Qte,!0),Gn(t.b,u);break;case 1:break;default:for(f=new FK(0,t,DF),m=new V(e.a);m.a=b.Math.abs(o.b)?(o.b=0,u.d+u.a>f.d&&u.df.c&&u.c0){if(t=new Zle(e.i,e.g),r=e.i,u=r<100?null:new Qg(r),e.Rj())for(o=0;o0){for(p=e.g,y=e.i,z3(e),u=y<100?null:new Qg(y),o=0;o>13|(e.m&15)<<9,a=e.m>>4&8191,u=e.m>>17|(e.h&255)<<5,f=(e.h&1048320)>>8,p=t.l&8191,m=t.l>>13|(t.m&15)<<9,y=t.m>>4&8191,v=t.m>>17|(t.h&255)<<5,T=(t.h&1048320)>>8,lt=r*p,ft=o*p,It=a*p,Dt=u*p,on=f*p,m!=0&&(ft+=r*m,It+=o*m,Dt+=a*m,on+=u*m),y!=0&&(It+=r*y,Dt+=o*y,on+=a*y),v!=0&&(Dt+=r*v,on+=o*v),T!=0&&(on+=r*T),O=lt&Hu,M=(ft&511)<<13,N=O+M,z=lt>>22,J=ft>>9,ne=(It&262143)<<4,se=(Dt&31)<<17,U=z+J+ne+se,Ee=It>>18,ye=Dt>>5,qe=(on&4095)<<8,de=Ee+ye+qe,U+=N>>22,N&=Hu,de+=U>>22,U&=Hu,de&=Ep,Ua(N,U,de)}function Dvt(e){var t,r,o,a,u,f,p;if(p=l(ze(e.j,0),12),p.g.c.length!=0&&p.e.c.length!=0)throw Y(new es("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(p.g.c.length!=0){for(u=Kr,r=new V(p.g);r.a0&&xmt(e,p,T);for(a=new V(T);a.a4)if(e.dk(t)){if(e.$k()){if(a=l(t,52),o=a.Bh(),m=o==e.e&&(e.kl()?a.vh(a.Ch(),e.gl())==e.hl():-1-a.Ch()==e.Jj()),e.ll()&&!m&&!o&&a.Gh()){for(u=0;ue.d[f.p]&&(r+=upe(e.b,u)*l(m.b,15).a,l1(e.a,Re(u)));for(;!zN(e.a);)Hpe(e.b,l(CS(e.a),15).a)}return r}function yxn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z;for(t.Tg(RSt,1),O=new je,v=b.Math.max(e.a.c.length,l(F(e,(Ie(),F1)),15).a),r=v*l(F(e,fL),15).a,p=be(F(e,(Be(),PT)))===be((g1(),Gy)),U=new V(e.a);U.a0&&(y=e.n.a/u);break;case 2:case 4:a=e.i.o.b,a>0&&(y=e.n.b/a)}Te(e,(Ie(),nw),y)}if(m=e.o,f=e.a,o)f.a=o.a,f.b=o.b,e.d=!0;else if(t!=pf&&t!=W1&&p!=Is)switch(p.g){case 1:f.a=m.a/2;break;case 2:f.a=m.a,f.b=m.b/2;break;case 3:f.a=m.a/2,f.b=m.b;break;case 4:f.b=m.b/2}else f.a=m.a/2,f.b=m.b/2}function jC(e){var t,r,o,a,u,f,p,m,y,v;if(e.Nj())if(v=e.Cj(),m=e.Oj(),v>0)if(t=new vge(e.nj()),r=v,u=r<100?null:new Qg(r),LO(e,r,t.g),a=r==1?e.Gj(4,oe(t,0),null,0,m):e.Gj(6,t,null,-1,m),e.Kj()){for(o=new tn(t);o.e!=o.i.gc();)u=e.Mj(rn(o),u);u?(u.lj(a),u.mj()):e.Hj(a)}else u?(u.lj(a),u.mj()):e.Hj(a);else LO(e,e.Cj(),e.Dj()),e.Hj(e.Gj(6,(At(),Co),null,-1,m));else if(e.Kj())if(v=e.Cj(),v>0){for(p=e.Dj(),y=v,LO(e,v,p),u=y<100?null:new Qg(y),o=0;o1&&hu(f)*ec(f)/2>p[0]){for(u=0;up[u];)++u;M=new Rf(U,0,u+1),T=new hj(M),v=hu(f)/ec(f),m=zJ(T,t,new oS,r,o,a,v),br(wd(T.e),m),xS(V_(N,T),fx),O=new Rf(U,u+1,U.c.length),obe(N,O),U.c.length=0,y=0,Xot(p,p.length,0)}else z=N.b.c.length==0?null:ze(N.b,0),z!=null&&yK(N,0),y>0&&(p[y]=p[y-1]),p[y]+=hu(f)*ec(f),++y,Ot(U.c,f);return U}function kxn(e,t){var r,o,a,u;r=t.b,u=new Tu(r.j),a=0,o=r.j,o.c.length=0,c0(l(Gb(e.b,(He(),Wt),(T0(),Q0)),16),r),a=H6(u,a,new zBe,o),c0(l(Gb(e.b,Wt,P1),16),r),a=H6(u,a,new GBe,o),c0(l(Gb(e.b,Wt,Z0),16),r),c0(l(Gb(e.b,Qt,Q0),16),r),c0(l(Gb(e.b,Qt,P1),16),r),a=H6(u,a,new qBe,o),c0(l(Gb(e.b,Qt,Z0),16),r),c0(l(Gb(e.b,dn,Q0),16),r),a=H6(u,a,new VBe,o),c0(l(Gb(e.b,dn,P1),16),r),a=H6(u,a,new WBe,o),c0(l(Gb(e.b,dn,Z0),16),r),c0(l(Gb(e.b,Kt,Q0),16),r),a=H6(u,a,new $Be,o),c0(l(Gb(e.b,Kt,P1),16),r),c0(l(Gb(e.b,Kt,Z0),16),r)}function Nxn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U;for(t.Tg("Layer size calculation",1),v=Kr,y=Li,a=!1,p=new V(e.b);p.a.5?J-=f*2*(M-.5):M<.5&&(J+=u*2*(.5-M)),a=p.d.b,Jz.a-U-v&&(J=z.a-U-v),p.n.a=t+J}}function Ixn(e){var t,r,o,a,u;if(o=l(F(e,(Be(),Cs)),166),o==(ic(),xp)){for(r=new $t(qt(si(e).a.Jc(),new D));an(r);)if(t=l(en(r),17),!wlt(t))throw Y(new _f($X+z6(e)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(o==gm){for(u=new $t(qt(Or(e).a.Jc(),new D));an(u);)if(a=l(en(u),17),!wlt(a))throw Y(new _f($X+z6(e)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function FC(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M;if(e.e&&e.c.c>19&&(t=k_(t),m=!m),f=p2n(t),u=!1,a=!1,o=!1,e.h==ED&&e.m==0&&e.l==0)if(a=!0,u=!0,f==-1)e=Mnt((m_(),KEe)),o=!0,m=!m;else return p=Nme(e,f),m&&PK(p),r&&(O1=Ua(0,0,0)),p;else e.h>>19&&(u=!0,e=k_(e),o=!0,m=!m);return f!=-1?ppn(e,f,m,u,r):hbe(e,t)<0?(r&&(u?O1=k_(e):O1=Ua(e.l,e.m,e.h)),Ua(0,0,0)):uAn(o?e:Ua(e.l,e.m,e.h),t,m,u,a,r)}function FJ(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M;if(f=e.e,m=t.e,f==0)return t;if(m==0)return e;if(u=e.d,p=t.d,u+p==2)return r=Gi(e.a[0],$o),o=Gi(t.a[0],$o),f==m?(v=Ao(r,o),M=Dn(v),O=Dn(Rb(v,32)),O==0?new ap(f,M):new Ob(f,2,Z(X(Rn,1),Qn,30,15,[M,O]))):(jf(),k8(f<0?El(o,r):El(r,o),0)?v1(f<0?El(o,r):El(r,o)):I3(v1(ug(f<0?El(o,r):El(r,o)))));if(f==m)N=f,T=u>=p?JW(e.a,u,t.a,p):JW(t.a,p,e.a,u);else{if(a=u!=p?u>p?1:-1:Vge(e.a,t.a,u),a==0)return jf(),wI;a==1?(N=f,T=KW(e.a,u,t.a,p)):(N=m,T=KW(t.a,p,e.a,u))}return y=new Ob(N,T.length,T),F3(y),y}function Oxn(e,t){var r,o,a,u,f,p,m;if(!(e.g>t.f||t.g>e.f)){for(r=0,o=0,f=e.w.a.ec().Jc();f.Ob();)a=l(f.Pb(),12),WK(xs(Z(X($i,1),Pe,8,0,[a.i.n,a.n,a.a])).b,t.g,t.f)&&++r;for(p=e.r.a.ec().Jc();p.Ob();)a=l(p.Pb(),12),WK(xs(Z(X($i,1),Pe,8,0,[a.i.n,a.n,a.a])).b,t.g,t.f)&&--r;for(m=t.w.a.ec().Jc();m.Ob();)a=l(m.Pb(),12),WK(xs(Z(X($i,1),Pe,8,0,[a.i.n,a.n,a.a])).b,e.g,e.f)&&++o;for(u=t.r.a.ec().Jc();u.Ob();)a=l(u.Pb(),12),WK(xs(Z(X($i,1),Pe,8,0,[a.i.n,a.n,a.a])).b,e.g,e.f)&&--o;r=0)return r;switch(f0(rs(e,r))){case 2:{if(wt("",fg(e,r.ok()).ve())){if(m=WO(rs(e,r)),p=u_(rs(e,r)),v=Lme(e,t,m,p),v)return v;for(a=l0e(e,t),f=0,T=a.gc();f1)throw Y(new jt(YD));for(v=za(e.e.Ah(),t),o=l(e.g,123),f=0;f1,y=new Vd(N.b);Ts(y.a)||Ts(y.b);)m=l(Ts(y.a)?q(y.a):q(y.b),17),T=m.c==N?m.d:m.c,b.Math.abs(xs(Z(X($i,1),Pe,8,0,[T.i.n,T.n,T.a])).b-f.b)>1&&bSn(e,m,f,u,N)}}function jxn(e){var t,r,o,a,u,f;if(a=new Xi(e.e,0),o=new Xi(e.a,0),e.d)for(r=0;rRZ;){for(u=t,f=0;b.Math.abs(t-u)0),a.a.Xb(a.c=--a.b),KAn(e,e.b-f,u,o,a),un(a.b0),o.a.Xb(o.c=--o.b)}if(!e.d)for(r=0;r0?(e.f[v.p]=O/(v.e.c.length+v.g.c.length),e.c=b.Math.min(e.c,e.f[v.p]),e.b=b.Math.max(e.b,e.f[v.p])):p&&(e.f[v.p]=O)}}function $xn(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function Bxn(e,t,r){var o,a,u,f;for(r.Tg("Graph transformation ("+e.a+")",1),f=jb(t.a),u=new V(t.b);u.aue(ce(ve(o,pk)))+l(ve(o,Cp),125).d)throw Y(new _f("Invalid vertical constraints. Node "+o.k+" has a vertical constraint that is too low for its ancestors."));for(f=new tn((!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e));f.e!=f.i.gc();)u=l(rn(f),74),o=l(oe((!u.c&&(u.c=new Tt(pn,u,5,8)),u.c),0),19),jvt(e,o,a)}function Hxn(e){q3();var t,r,o,a,u,f,p;for(p=new EZe,r=new V(e);r.a=p.b.c)&&(p.b=t),(!p.c||t.c<=p.c.c)&&(p.d=p.c,p.c=t),(!p.e||t.d>=p.e.d)&&(p.e=t),(!p.f||t.d<=p.f.d)&&(p.f=t);return o=new o7((x_(),X0)),e6(e,Kkt,new Ls(Z(X(nL,1),Rt,378,0,[o]))),f=new o7($y),e6(e,Wkt,new Ls(Z(X(nL,1),Rt,378,0,[f]))),a=new o7(Fy),e6(e,Vkt,new Ls(Z(X(nL,1),Rt,378,0,[a]))),u=new o7(qE),e6(e,qkt,new Ls(Z(X(nL,1),Rt,378,0,[u]))),lJ(o.c,X0),lJ(a.c,Fy),lJ(u.c,qE),lJ(f.c,$y),p.a.c.length=0,li(p.a,o.c),li(p.a,oc(a.c)),li(p.a,u.c),li(p.a,oc(f.c)),p}function zxn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M;for(t.Tg(tTt,1),O=ue(ce(ve(e,(yh(),iv)))),f=ue(ce(ve(e,(ef(),l4)))),p=l(ve(e,c4),100),gge((!e.a&&(e.a=new ke(En,e,10,11)),e.a)),v=Cvt((!e.a&&(e.a=new ke(En,e,10,11)),e.a),O,f),!e.a&&(e.a=new ke(En,e,10,11)),y=new V(v);y.a0&&(e.a=m+(O-1)*u,t.c.b+=e.a,t.f.b+=e.a)),M.a.gc()!=0&&(N=new oW(1,u),O=U0e(N,t,M,U,t.f.b+m-t.c.b),O>0&&(t.f.b+=m+(O-1)*u))}function Fvt(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de;for(v=ue(ce(F(e,(Be(),ym)))),o=ue(ce(F(e,GAe))),N=new IG,Te(N,ym,v+o),y=t,J=y.d,U=y.c.i,ne=y.d.i,z=ide(U.c),se=ide(ne.c),a=new je,T=z;T<=se;T++)p=new Xd(e),Jh(p,(zt(),gi)),Te(p,(Ie(),mr),y),Te(p,Zr,(qi(),fa)),Te(p,EB,N),O=l(ze(e.b,T),26),T==z?E1(p,O.a.c.length-r,O):Oi(p,O),de=ue(ce(F(y,_g))),de<0&&(de=0,Te(y,_g,de)),p.o.b=de,M=b.Math.floor(de/2),f=new aa,Ci(f,(He(),Kt)),As(f,p),f.n.b=M,m=new aa,Ci(m,Qt),As(m,p),m.n.b=M,Ji(y,f),u=new p0,qs(u,y),Te(u,ss,null),bo(u,m),Ji(u,J),qmn(p,y,u),Ot(a.c,u),y=u;return a}function qxn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se;if(U=t.b.c.length,!(U<3)){for(O=we(Rn,Qn,30,U,15,1),T=0,v=new V(t.b);v.af)&&pi(e.b,l(z.b,17));++p}u=f}}}function $J(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se;for(m=l(bg(e,(He(),Kt)).Jc().Pb(),12).e,O=l(bg(e,Qt).Jc().Pb(),12).g,p=m.c.length,se=qd(l(ze(e.j,0),12));p-- >0;){for(U=(at(0,m.c.length),l(m.c[0],17)),a=(at(0,O.c.length),l(O.c[0],17)),ne=a.d.e,u=_s(ne,a,0),zcn(U,a.d,u),bo(a,null),Ji(a,null),M=U.a,t&&Gn(M,new So(se)),o=An(a.a,0);o.b!=o.d.c;)r=l(Sn(o),8),Gn(M,new So(r));for(J=U.b,N=new V(a.b);N.a-2;default:return!1}switch(t=e.Pj(),e.p){case 0:return t!=null&&Ye(Ke(t))!=f3(e.k,0);case 1:return t!=null&&l(t,224).a!=Dn(e.k)<<24>>24;case 2:return t!=null&&l(t,183).a!=(Dn(e.k)&Ei);case 6:return t!=null&&f3(l(t,192).a,e.k);case 5:return t!=null&&l(t,15).a!=Dn(e.k);case 7:return t!=null&&l(t,193).a!=Dn(e.k)<<16>>16;case 3:return t!=null&&ue(ce(t))!=e.j;case 4:return t!=null&&l(t,165).a!=e.j;default:return t==null?e.n!=null:!pr(t,e.n)}}function dD(e,t,r){var o,a,u,f;return e.ml()&&e.ll()&&(f=ZV(e,l(r,57)),be(f)!==be(r))?(e.vj(t),e.Bj(t,ddt(e,t,f)),e.$k()&&(u=(a=l(r,52),e.kl()?e.il()?a.Qh(e.b,Mo(l(Nt(Ja(e.b),e.Jj()),20)).n,l(Nt(Ja(e.b),e.Jj()).Fk(),29).ik(),null):a.Qh(e.b,Ur(a.Ah(),Mo(l(Nt(Ja(e.b),e.Jj()),20))),null,null):a.Qh(e.b,-1-e.Jj(),null,null)),!l(f,52).Mh()&&(u=(o=l(f,52),e.kl()?e.il()?o.Oh(e.b,Mo(l(Nt(Ja(e.b),e.Jj()),20)).n,l(Nt(Ja(e.b),e.Jj()).Fk(),29).ik(),u):o.Oh(e.b,Ur(o.Ah(),Mo(l(Nt(Ja(e.b),e.Jj()),20))),null,u):o.Oh(e.b,-1-e.Jj(),null,u))),u&&u.mj()),Ju(e.b)&&e.Hj(e.Gj(9,r,f,t,!1)),f):r}function $vt(e){var t,r,o,a,u,f,p,m,y,v;for(o=new je,f=new V(e.e.a);f.a0&&(f=b.Math.max(f,yht(e.C.b+o.d.b,a))),v=o,T=a,N=u;e.C&&e.C.c>0&&(O=N+e.C.c,y&&(O+=v.d.c),f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(T-1)<=nf||T==1||isNaN(T)&&isNaN(1)?0:O/(1-T)))),r.n.b=0,r.a.a=f}function Uvt(e,t){var r,o,a,u,f,p,m,y,v,T,N,O;if(r=l(Wo(e.b,t),129),m=l(l(wr(e.r,t),24),85),m.dc()){r.n.d=0,r.n.a=0;return}for(y=e.u.Gc((xu(),Rp)),f=0,e.A.Gc((sc(),xm))&&fyt(e,t),p=m.Jc(),v=null,N=0,T=0;p.Ob();)o=l(p.Pb(),116),u=ue(ce(o.b.mf((z8(),m$)))),a=o.b.Kf().b,v?(O=T+v.d.a+e.w+o.d.d,f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(N-u)<=nf||N==u||isNaN(N)&&isNaN(u)?0:O/(u-N)))):e.C&&e.C.d>0&&(f=b.Math.max(f,yht(e.C.d+o.d.d,u))),v=o,N=u,T=a;e.C&&e.C.a>0&&(O=T+e.C.a,y&&(O+=v.d.a),f=b.Math.max(f,(Ud(),Yl(nf),b.Math.abs(N-1)<=nf||N==1||isNaN(N)&&isNaN(1)?0:O/(1-N)))),r.n.d=0,r.a.b=f}function Hvt(e,t,r){var o,a,u,f,p,m;for(this.g=e,p=t.d.length,m=r.d.length,this.d=we(Nh,vg,9,p+m,0,1),f=0;f0?hK(this,this.f/this.a):Hd(t.g,t.d[0]).a!=null&&Hd(r.g,r.d[0]).a!=null?hK(this,(ue(Hd(t.g,t.d[0]).a)+ue(Hd(r.g,r.d[0]).a))/2):Hd(t.g,t.d[0]).a!=null?hK(this,Hd(t.g,t.d[0]).a):Hd(r.g,r.d[0]).a!=null&&hK(this,Hd(r.g,r.d[0]).a)}function Wxn(e,t,r,o,a,u,f,p){var m,y,v,T,N,O,M,U,z,J;if(M=!1,y=Hme(r.q,t.f+t.b-r.q.f),O=o.f>t.b&&p,J=a-(r.q.e+y-f),T=(m=MC(o,J,!1),m.a),O&&T>o.f)return!1;if(O){for(N=0,z=new V(t.d);z.a=(at(u,e.c.length),l(e.c[u],189)).e,!O&&T>t.b&&!v)?!1:((v||O||T<=t.b)&&(v&&T>t.b?(r.d=T,u6(r,bmt(r,T))):(Nbt(r.q,y),r.c=!0),u6(o,a-(r.s+r.r)),U6(o,r.q.e+r.q.d,t.f),yj(t,o),e.c.length>u&&(q6((at(u,e.c.length),l(e.c[u],189)),o),(at(u,e.c.length),l(e.c[u],189)).a.c.length==0&&sg(e,u)),M=!0),M)}function Kxn(e){var t,r,o;for(bE(J1,Z(X(GE,1),Rt,139,0,[new que])),r=new Xue(e),o=0;o0&&(Yt(0,r.length),r.charCodeAt(0)!=47)))throw Y(new jt("invalid opaquePart: "+r));if(e&&!(t!=null&&VN(EU,t.toLowerCase()))&&!(r==null||!oY(r,O4,D4)))throw Y(new jt(jAt+r));if(e&&t!=null&&VN(EU,t.toLowerCase())&&!U0n(r))throw Y(new jt(jAt+r));if(!Kgn(o))throw Y(new jt("invalid device: "+o));if(!zpn(a))throw f=a==null?"invalid segments: null":"invalid segment: "+Ppn(a),Y(new jt(f));if(!(u==null||Nf(u,Qa(35))==-1))throw Y(new jt("invalid query: "+u))}function Gvt(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J;if(N=new So(e.o),J=t.a/N.a,p=t.b/N.b,U=t.a-N.a,u=t.b-N.b,r)for(a=be(F(e,(Be(),Zr)))===be((qi(),fa)),M=new V(e.j);M.a=1&&(z-f>0&&T>=0?(m.n.a+=U,m.n.b+=u*f):z-f<0&&v>=0&&(m.n.a+=U*z,m.n.b+=u));e.o.a=t.a,e.o.b=t.b,Te(e,(Be(),mm),(sc(),o=l(md(N4),10),new Hc(o,l(Gl(o,o.length),10),0)))}function Qxn(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J;if(r.Tg("Network simplex layering",1),e.b=t,J=l(F(t,(Be(),qI)),15).a*4,z=e.b.a,z.c.length<1){r.Ug();return}for(u=GTn(e,z),U=null,a=An(u,0);a.b!=a.d.c;){for(o=l(Sn(a),16),p=J*go(b.Math.sqrt(o.gc())),f=iAn(o),SJ(Qce(PQt(ele(OV(f),p),U),!0),r.dh(1)),N=e.b.b,M=new V(f.a);M.a1)for(U=we(Rn,Qn,30,e.b.b.c.length,15,1),T=0,y=new V(e.b.b);y.a0){n7(e,r,0),r.a+=String.fromCharCode(o),a=N1n(t,u),n7(e,r,a),u+=a-1;continue}o==39?u+10&&M.a<=0){m.c.length=0,Ot(m.c,M);break}O=M.i-M.d,O>=p&&(O>p&&(m.c.length=0,p=O),Ot(m.c,M))}m.c.length!=0&&(f=l(ze(m,u7(a,m.c.length)),117),se.a.Ac(f)!=null,f.g=v++,x0e(f,t,r,o),m.c.length=0)}for(z=e.c.length+1,N=new V(e);N.aLi||t.o==Em&&v=p&&a<=m)p<=a&&u<=m?(r[v++]=a,r[v++]=u,o+=2):p<=a?(r[v++]=a,r[v++]=m,e.b[o]=m+1,f+=2):u<=m?(r[v++]=p,r[v++]=u,o+=2):(r[v++]=p,r[v++]=m,e.b[o]=m+1);else if(mwg)&&p<10);tle(e.c,new o9),qvt(e),ksn(e.c),Uxn(e.f)}function dkn(e,t){var r,o,a,u,f,p,m,y,v,T,N;switch(e.k.g){case 1:if(o=l(F(e,(Ie(),mr)),17),r=l(F(o,vTe),79),r?Ye(Ke(F(o,Ag)))&&(r=Hge(r)):r=new Lu,y=l(F(e,Cd),12),y){if(v=xs(Z(X($i,1),Pe,8,0,[y.i.n,y.n,y.a])),t<=v.a)return v.b;Wr(r,v,r.a,r.a.a)}if(T=l(F(e,Nl),12),T){if(N=xs(Z(X($i,1),Pe,8,0,[T.i.n,T.n,T.a])),N.a<=t)return N.b;Wr(r,N,r.c.b,r.c)}if(r.b>=2){for(m=An(r,0),f=l(Sn(m),8),p=l(Sn(m),8);p.a0&&I6(y,!0,(vi(),fs)),p.k==(zt(),mi)&&Kst(y),Jn(e.f,p,t)}}function Wvt(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne;for(y=Kr,v=Kr,p=Li,m=Li,N=new V(t.i);N.a=e.j?(++e.j,Fe(e.b,Re(1)),Fe(e.c,v)):(o=e.d[t.p][1],nc(e.b,y,Re(l(ze(e.b,y),15).a+1-o)),nc(e.c,y,ue(ce(ze(e.c,y)))+v-o*e.f)),(e.r==(_1(),SL)&&(l(ze(e.b,y),15).a>e.k||l(ze(e.b,y-1),15).a>e.k)||e.r==TL&&(ue(ce(ze(e.c,y)))>e.n||ue(ce(ze(e.c,y-1)))>e.n))&&(m=!1),f=new $t(qt(si(t).a.Jc(),new D));an(f);)u=l(en(f),17),p=u.c.i,e.g[p.p]==y&&(T=Kvt(e,p),a=a+l(T.a,15).a,m=m&&Ye(Ke(T.b)));return e.g[t.p]=y,a=a+e.d[t.p][0],new ko(Re(a),(Lt(),!!m))}function hkn(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye;return N=e.c[t],O=e.c[r],M=l(F(N,(Ie(),RT)),16),!!M&&M.gc()!=0&&M.Gc(O)||(U=N.k!=(zt(),gi)&&O.k!=gi,z=l(F(N,tw),9),J=l(F(O,tw),9),ne=z!=J,se=!!z&&z!=N||!!J&&J!=O,de=CY(N,(He(),Wt)),Ee=CY(O,dn),se=se|(CY(N,dn)||CY(O,Wt)),ye=se&&ne||de||Ee,U&&ye)||N.k==(zt(),_a)&&O.k==Xr||O.k==(zt(),_a)&&N.k==Xr?!1:(v=e.c[t],u=e.c[r],a=vbt(e.e,v,u,(He(),Kt)),m=vbt(e.i,v,u,Qt),F2n(e.f,v,u),y=Rpt(e.b,v,u)+l(a.a,15).a+l(m.a,15).a+e.f.d,p=Rpt(e.b,u,v)+l(a.b,15).a+l(m.b,15).a+e.f.b,e.a&&(T=l(F(v,mr),12),f=l(F(u,mr),12),o=ibt(e.g,T,f),y+=l(o.a,15).a,p+=l(o.b,15).a),y>p)}function Yvt(e,t){var r,o,a,u,f;r=ue(ce(F(t,(Be(),od)))),r<2&&Te(t,od,2),o=l(F(t,xc),87),o==(vi(),hf)&&Te(t,xc,Gj(t)),a=l(F(t,NIt),15),a.a==0?Te(t,(Ie(),DT),new rY):Te(t,(Ie(),DT),new WP(a.a)),u=Ke(F(t,HI)),u==null&&Te(t,HI,(Lt(),be(F(t,kp))===be((gp(),Ek)))),ei(new Et(null,new St(t.a,16)),new mce(e)),ei(bs(new Et(null,new St(t.b,16)),new r9),new wce(e)),f=new zvt(t),Te(t,(Ie(),t2),f),M3(e.a),pc(e.a,(Vi(),id),l(F(t,jT),173)),pc(e.a,kh,l(F(t,gB),173)),pc(e.a,la,l(F(t,BI),173)),pc(e.a,da,l(F(t,yB),173)),pc(e.a,Ho,Phn(l(F(t,kp),225))),sde(e.a,c3n(t)),Te(t,ote,FC(e.a,t))}function U0e(e,t,r,o,a){var u,f,p,m,y,v,T,N,O,M,U,z,J;for(T=new hn,f=new je,Pmt(e,r,e.d.zg(),f,T),Pmt(e,o,e.d.Ag(),f,T),e.b=.2*(U=z0t(bs(new Et(null,new St(f,16)),new hHe)),z=z0t(bs(new Et(null,new St(f,16)),new pHe)),b.Math.min(U,z)),u=0,p=0;p=2&&(J=fwt(f,!0,N),!e.e&&(e.e=new zJe(e)),x1n(e.e,J,f,e.b)),$bt(f,N),vkn(f),O=-1,v=new V(f);v.al(ve(y,PL),15).a?(Ot(t.c,y),Ot(r.c,f)):(Ot(t.c,f),Ot(r.c,y))),a=new je,v=new zGe,v.a=0,v.b=0,o=(at(0,e.c.length),l(e.c[0],19)),Ot(a.c,o),p=1;p0&&(r+=m.n.a+m.o.a/2,++T),M=new V(m.j);M.a0&&(r/=T),J=we(Ki,Jo,30,o.a.c.length,15,1),p=0,y=new V(o.a);y.a-1){for(a=An(p,0);a.b!=a.d.c;)o=l(Sn(a),134),o.v=f;for(;p.b!=0;)for(o=l(FY(p,0),134),r=new V(o.i);r.a-1){for(u=new V(p);u.a0)&&(rce(m,b.Math.min(m.o,a.o-1)),S9(m,m.i-1),m.i==0&&Ot(p.c,m))}}function Zvt(e,t,r,o,a){var u,f,p,m;return m=Kr,f=!1,p=O0e(e,Di(new Me(t.a,t.b),e),br(new Me(r.a,r.b),a),Di(new Me(o.a,o.b),r)),u=!!p&&!(b.Math.abs(p.a-e.a)<=q0&&b.Math.abs(p.b-e.b)<=q0||b.Math.abs(p.a-t.a)<=q0&&b.Math.abs(p.b-t.b)<=q0),p=O0e(e,Di(new Me(t.a,t.b),e),r,a),p&&((b.Math.abs(p.a-e.a)<=q0&&b.Math.abs(p.b-e.b)<=q0)==(b.Math.abs(p.a-t.a)<=q0&&b.Math.abs(p.b-t.b)<=q0)||u?m=b.Math.min(m,O3(Di(p,r))):f=!0),p=O0e(e,Di(new Me(t.a,t.b),e),o,a),p&&(f||(b.Math.abs(p.a-e.a)<=q0&&b.Math.abs(p.b-e.b)<=q0)==(b.Math.abs(p.a-t.a)<=q0&&b.Math.abs(p.b-t.b)<=q0)||u)&&(m=b.Math.min(m,O3(Di(p,o)))),m}function Qvt(e){n0(e,new Qb(iO(Qm(Jm(Zm(Xm(new vb,N1),Y2t),"Minimizes the stress within a layout using stress majorization. Stress exists if the euclidean distance between a pair of nodes doesn't match their graph theoretic distance, that is, the shortest path between the two nodes. The method allows to specify individual edge lengths."),new n9),Ga))),De(e,N1,wx,Ge($2e)),De(e,N1,ID,(Lt(),!0)),De(e,N1,ME,Ge(Rkt)),De(e,N1,mT,Ge(Okt)),De(e,N1,bT,Ge(Dkt)),De(e,N1,Ex,Ge(Ikt)),De(e,N1,yx,Ge(U2e)),De(e,N1,Sx,Ge(Lkt)),De(e,N1,kwe,Ge(F2e)),De(e,N1,Cwe,Ge(P2e)),De(e,N1,Iwe,Ge(j2e)),De(e,N1,Rwe,Ge(B2e)),De(e,N1,Nwe,Ge(S$))}function Ekn(e){var t,r,o,a,u,f,p,m;for(t=null,o=new V(e);o.a0&&r.c==0&&(!t&&(t=new je),Ot(t.c,r));if(t)for(;t.c.length!=0;){if(r=l(sg(t,0),242),r.b&&r.b.c.length>0){for(u=(!r.b&&(r.b=new je),new V(r.b));u.a_s(e,r,0))return new ko(a,r)}else if(ue(Hd(a.g,a.d[0]).a)>ue(Hd(r.g,r.d[0]).a))return new ko(a,r)}for(p=(!r.e&&(r.e=new je),r.e).Jc();p.Ob();)f=l(p.Pb(),242),m=(!f.b&&(f.b=new je),f.b),ry(0,m.c.length),t3(m.c,0,r),f.c==m.c.length&&Ot(t.c,f)}return null}function $C(e,t){var r,o,a,u,f,p,m,y,v;if(t.e==5){Vvt(e,t);return}if(y=t,!(y.b==null||e.b==null)){for(xE(e),PC(e),xE(y),PC(y),r=we(Rn,Qn,30,e.b.length+y.b.length,15,1),v=0,o=0,f=0;o=p&&a<=m)p<=a&&u<=m?o+=2:p<=a?(e.b[o]=m+1,f+=2):u<=m?(r[v++]=a,r[v++]=p-1,o+=2):(r[v++]=a,r[v++]=p-1,e.b[o]=m+1,f+=2);else if(m0),l(v.a.Xb(v.c=--v.b),17));u!=o&&v.b>0;)e.a[u.p]=!0,e.a[o.p]=!0,u=(un(v.b>0),l(v.a.Xb(v.c=--v.b),17));v.b>0&&Mu(v)}}function eEt(e,t,r){var o,a,u,f,p,m,y,v,T,N;if(r)for(o=-1,v=new Xi(t,0);v.b0?a-=864e5:a+=864e5,m=new Jde(Ao(Gs(t.q.getTime()),a))),v=new lS,y=e.a.length,u=0;u=97&&o<=122||o>=65&&o<=90){for(f=u+1;f=y)throw Y(new jt("Missing trailing '"));f+1=14&&v<=16))?t.a._b(o)?(r.a?zn(r.a,r.b):r.a=new fc(r.d),p3(r.a,"[...]")):(p=HS(o),y=new Kw(t),up(r,nEt(p,y))):ae(o,172)?up(r,cvn(l(o,172))):ae(o,198)?up(r,Y0n(l(o,198))):ae(o,203)?up(r,nyn(l(o,203))):ae(o,2090)?up(r,J0n(l(o,2090))):ae(o,54)?up(r,uvn(l(o,54))):ae(o,591)?up(r,Evn(l(o,591))):ae(o,838)?up(r,avn(l(o,838))):ae(o,109)&&up(r,svn(l(o,109))):up(r,o==null?tu:ms(o));return r.a?r.e.length==0?r.a.a:r.a.a+(""+r.e):r.c}function ix(e,t){var r,o,a,u;u=e.F,t==null?(e.F=null,I_(e,null)):(e.F=(Mt(t),t),o=Nf(t,Qa(60)),o!=-1?(a=(io(0,o,t.length),t.substr(0,o)),Nf(t,Qa(46))==-1&&!wt(a,uT)&&!wt(a,uI)&&!wt(a,KF)&&!wt(a,cI)&&!wt(a,lI)&&!wt(a,dI)&&!wt(a,fI)&&!wt(a,hI)&&(a=JAt),r=j8(t,Qa(62)),r!=-1&&(a+=""+(Yt(r+1,t.length+1),t.substr(r+1))),I_(e,a)):(a=t,Nf(t,Qa(46))==-1&&(o=Nf(t,Qa(91)),o!=-1&&(a=(io(0,o,t.length),t.substr(0,o))),!wt(a,uT)&&!wt(a,uI)&&!wt(a,KF)&&!wt(a,cI)&&!wt(a,lI)&&!wt(a,dI)&&!wt(a,fI)&&!wt(a,hI)?(a=JAt,o!=-1&&(a+=""+(Yt(o,t.length+1),t.substr(o)))):a=t),I_(e,a),a==t&&(e.F=e.D))),e.Db&4&&!(e.Db&1)&&hr(e,new Pi(e,1,5,u,t))}function Nkn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M;if(e.c=e.e,M=Ke(F(t,(Be(),CIt))),O=M==null||(Mt(M),M),u=l(F(t,(Ie(),xa)),24).Gc((Fo(),rl)),a=l(F(t,Zr),103),r=!(a==(qi(),_m)||a==Oh||a==fa),O&&(r||!u)){for(T=new V(t.a);T.a=0)return a=Bgn(e,(io(1,f,t.length),t.substr(1,f-1))),v=(io(f+1,m,t.length),t.substr(f+1,m-(f+1))),e3n(e,v,a)}else{if(r=-1,QEe==null&&(QEe=new RegExp("\\d")),QEe.test(String.fromCharCode(p))&&(r=lfe(t,Qa(46),m-1),r>=0)){o=l(VW(e,_ft(e,(io(1,r,t.length),t.substr(1,r-1))),!1),61),y=0;try{y=Ec((Yt(r+1,t.length+1),t.substr(r+1)),Qi,sr)}catch(N){throw N=ci(N),ae(N,133)?(u=N,Y(new oj(u))):Y(N)}if(y>16==-10?r=l(e.Cb,294).Wk(t,r):e.Db>>16==-15&&(!t&&(t=(_t(),bf)),!y&&(y=(_t(),bf)),e.Cb.Vh()&&(m=new cp(e.Cb,1,13,y,t,gg(Fu(l(e.Cb,62)),e),!1),r?r.lj(m):r=m));else if(ae(e.Cb,89))e.Db>>16==-23&&(ae(t,89)||(t=(_t(),Ml)),ae(y,89)||(y=(_t(),Ml)),e.Cb.Vh()&&(m=new cp(e.Cb,1,10,y,t,gg(oa(l(e.Cb,29)),e),!1),r?r.lj(m):r=m));else if(ae(e.Cb,449))for(p=l(e.Cb,842),f=(!p.b&&(p.b=new N9(new rq)),p.b),u=(o=new dy(new Dw(f.a).a),new C9(o));u.a.b;)a=l(gE(u.a).jd(),88),r=ox(a,O7(a,p),r)}return r}function Ikn(e,t){var r,o,a,u,f,p,m,y,v,T,N;for(f=Ye(Ke(ve(e,(Be(),Ky)))),N=l(ve(e,Xy),24),m=!1,y=!1,T=new tn((!e.c&&(e.c=new ke(Gu,e,9,9)),e.c));T.e!=T.i.gc()&&(!m||!y);){for(u=l(rn(T),127),p=0,a=hh(Wc(Z(X(nl,1),Rt,22,0,[(!u.d&&(u.d=new Tt(Ir,u,8,5)),u.d),(!u.e&&(u.e=new Tt(Ir,u,7,4)),u.e)])));an(a)&&(o=l(en(a),74),v=f&&R0(o)&&Ye(Ke(ve(o,bm))),r=Mvt((!o.b&&(o.b=new Tt(pn,o,4,7)),o.b),u)?e==Br(Yo(l(oe((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c),0),83))):e==Br(Yo(l(oe((!o.b&&(o.b=new Tt(pn,o,4,7)),o.b),0),83))),!((v||r)&&(++p,p>1))););(p>0||N.Gc((xu(),Rp))&&(!u.n&&(u.n=new ke(Rs,u,1,7)),u.n).i>0)&&(m=!0),p>1&&(y=!0)}m&&t.Ec((Fo(),rl)),y&&t.Ec((Fo(),CI))}function iEt(e){var t,r,o,a,u,f,p,m,y,v,T,N;if(N=l(ve(e,(_n(),Am)),24),N.dc())return null;if(p=0,f=0,N.Gc((sc(),XL))){for(v=l(ve(e,bk),103),o=2,r=2,a=2,u=2,t=Br(e)?l(ve(Br(e),Tm),87):l(ve(e,Tm),87),y=new tn((!e.c&&(e.c=new ke(Gu,e,9,9)),e.c));y.e!=y.i.gc();)if(m=l(rn(y),127),T=l(ve(m,m2),64),T==(He(),Is)&&(T=_0e(m,t),Vn(m,m2,T)),v==(qi(),fa))switch(T.g){case 1:o=b.Math.max(o,m.i+m.g);break;case 2:r=b.Math.max(r,m.j+m.f);break;case 3:a=b.Math.max(a,m.i+m.g);break;case 4:u=b.Math.max(u,m.j+m.f)}else switch(T.g){case 1:o+=m.g+2;break;case 2:r+=m.f+2;break;case 3:a+=m.g+2;break;case 4:u+=m.f+2}p=b.Math.max(o,a),f=b.Math.max(r,u)}return M0(e,p,f,!0,!0)}function Rkn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U;for(a=null,o=new V(t.a);o.a1)for(a=e.e.b,Gn(e.e,m),p=m.a.ec().Jc();p.Ob();)f=l(p.Pb(),9),Jn(e.c,f,Re(a))}}function Okn(e,t,r,o){var a,u,f,p,m,y,v,T,N,O;for(u=new b0t(t),T=nTn(e,t,u),O=b.Math.max(ue(ce(F(t,(Be(),_g)))),1),v=new V(T.a);v.a=0){for(m=null,p=new Xi(v.a,y+1);p.b0,y?y&&(N=J.p,f?++N:--N,T=l(ze(J.c.a,N),9),o=ipt(T),O=!(ywt(o,ye,r[0])||hst(o,ye,r[0]))):O=!0),M=!1,Ee=t.D.i,Ee&&Ee.c&&p.e&&(v=f&&Ee.p>0||!f&&Ee.p=0&&Uf?1:kb(isNaN(0),isNaN(f)))<0&&(Yl(Gf),(b.Math.abs(f-1)<=Gf||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:kb(isNaN(f),isNaN(1)))<0)&&(Yl(Gf),(b.Math.abs(0-p)<=Gf||p==0||isNaN(0)&&isNaN(p)?0:0p?1:kb(isNaN(0),isNaN(p)))<0)&&(Yl(Gf),(b.Math.abs(p-1)<=Gf||p==1||isNaN(p)&&isNaN(1)?0:p<1?-1:p>1?1:kb(isNaN(p),isNaN(1)))<0)),u)}function Bkn(e){var t,r,o,a,u,f,p,m,y,v,T;for(e.j=we(Rn,Qn,30,e.g,15,1),e.o=new je,ei(bs(new Et(null,new St(e.e.b,16)),new HUe),new FJe(e)),e.a=we(uu,Ad,30,e.b,16,1),L6(new Et(null,new St(e.e.b,16)),new BJe(e)),o=(T=new je,ei(lr(bs(new Et(null,new St(e.e.b,16)),new GUe),new $Je(e)),new ktt(e,T)),T),m=new V(o);m.a=y.c.c.length?v=rpe((zt(),Xr),gi):v=rpe((zt(),gi),gi),v*=2,u=r.a.g,r.a.g=b.Math.max(u,u+(v-u)),f=r.b.g,r.b.g=b.Math.max(f,f+(v-f)),a=t}}function J7(e,t){var r;if(e.e)throw Y(new es((np(QQ),NX+QQ.k+CX)));if(!Nen(e.a,t))throw Y(new Es(k2t+t+N2t));if(t==e.d)return e;switch(r=e.d,e.d=t,r.g){case 0:switch(t.g){case 2:C0(e);break;case 1:m1(e),C0(e);break;case 4:TE(e),C0(e);break;case 3:TE(e),m1(e),C0(e)}break;case 2:switch(t.g){case 1:m1(e),mJ(e);break;case 4:TE(e),C0(e);break;case 3:TE(e),m1(e),C0(e)}break;case 1:switch(t.g){case 2:m1(e),mJ(e);break;case 4:m1(e),TE(e),C0(e);break;case 3:m1(e),TE(e),m1(e),C0(e)}break;case 4:switch(t.g){case 2:TE(e),C0(e);break;case 1:TE(e),m1(e),C0(e);break;case 3:m1(e),mJ(e)}break;case 3:switch(t.g){case 2:m1(e),TE(e),C0(e);break;case 1:m1(e),TE(e),m1(e),C0(e);break;case 4:m1(e),mJ(e)}}return e}function RE(e,t){var r;if(e.d)throw Y(new es((np(hee),NX+hee.k+CX)));if(!Cen(e.a,t))throw Y(new Es(k2t+t+N2t));if(t==e.c)return e;switch(r=e.c,e.c=t,r.g){case 0:switch(t.g){case 2:Wb(e);break;case 1:b1(e),Wb(e);break;case 4:AE(e),Wb(e);break;case 3:AE(e),b1(e),Wb(e)}break;case 2:switch(t.g){case 1:b1(e),wJ(e);break;case 4:AE(e),Wb(e);break;case 3:AE(e),b1(e),Wb(e)}break;case 1:switch(t.g){case 2:b1(e),wJ(e);break;case 4:b1(e),AE(e),Wb(e);break;case 3:b1(e),AE(e),b1(e),Wb(e)}break;case 4:switch(t.g){case 2:AE(e),Wb(e);break;case 1:AE(e),b1(e),Wb(e);break;case 3:b1(e),wJ(e)}break;case 3:switch(t.g){case 2:b1(e),AE(e),Wb(e);break;case 1:b1(e),AE(e),b1(e),Wb(e);break;case 4:b1(e),wJ(e)}}return e}function Ukn(e){var t,r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se;for(T=e.b,v=new Xi(T,0),Vw(v,new ra(e)),ne=!1,f=1;v.b0&&(t.a+=ja),X7(l(rn(p),176),t);for(t.a+=PX,m=new SS((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c));m.e!=m.i.gc();)m.e>0&&(t.a+=ja),X7(l(rn(m),176),t);t.a+=")"}}function Hkn(e,t,r){var o,a,u,f,p,m,y,v;for(m=new tn((!e.a&&(e.a=new ke(En,e,10,11)),e.a));m.e!=m.i.gc();)for(p=l(rn(m),19),a=new $t(qt(mp(p).a.Jc(),new D));an(a);){if(o=l(en(a),74),!o.b&&(o.b=new Tt(pn,o,4,7)),!(o.b.i<=1&&(!o.c&&(o.c=new Tt(pn,o,5,8)),o.c.i<=1)))throw Y(new cS("Graph must not contain hyperedges."));if(!AC(o)&&p!=Yo(l(oe((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c),0),83)))for(y=new Tit,qs(y,o),Te(y,(h1(),_T),o),dZt(y,l(Ss(ts(r.f,p)),156)),fZt(y,l(Ht(r,Yo(l(oe((!o.c&&(o.c=new Tt(pn,o,5,8)),o.c),0),83))),156)),Fe(t.c,y),f=new tn((!o.n&&(o.n=new ke(Rs,o,1,7)),o.n));f.e!=f.i.gc();)u=l(rn(f),158),v=new Lct(y,u.a),qs(v,u),Te(v,_T,u),v.e.a=b.Math.max(u.g,1),v.e.b=b.Math.max(u.f,1),R0e(v),Fe(t.d,v)}}function zkn(e,t,r){var o,a,u,f,p,m,y,v,T,N;switch(r.Tg("Node promotion heuristic",1),e.i=t,e.r=l(F(t,(Be(),wL)),246),e.r!=(_1(),ak)&&e.r!=KI?gNn(e):FSn(e),v=l(F(e.i,CAe),15).a,u=new l$e,e.r.g){case 2:case 1:rx(e,u);break;case 3:for(e.r=NB,rx(e,u),m=0,p=new V(e.b);p.ae.k&&(e.r=SL,rx(e,u));break;case 4:for(e.r=NB,rx(e,u),y=0,a=new V(e.c);a.ae.n&&(e.r=TL,rx(e,u));break;case 6:N=go(b.Math.ceil(e.g.length*v/100)),rx(e,new jYe(N));break;case 5:T=go(b.Math.ceil(e.e*v/100)),rx(e,new FYe(T));break;case 8:UEt(e,!0);break;case 9:UEt(e,!1);break;default:rx(e,u)}e.r!=ak&&e.r!=KI?iSn(e,t):TTn(e,t),r.Ug()}function Gkn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se;for(T=new V0e(e),yun(T,!(t==(vi(),il)||t==ff)),v=T.a,N=new oS,a=(Sd(),Z(X(jy,1),Ce,240,0,[Bs,$a,Us])),f=0,m=a.length;f0&&(N.d+=v.n.d,N.d+=v.d),N.a>0&&(N.a+=v.n.a,N.a+=v.d),N.b>0&&(N.b+=v.n.b,N.b+=v.d),N.c>0&&(N.c+=v.n.c,N.c+=v.d),N}function aEt(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M;for(N=r.d,T=r.c,u=new Me(r.f.a+r.d.b+r.d.c,r.f.b+r.d.d+r.d.a),f=u.b,y=new V(e.a);y.a0&&(e.c[t.c.p][t.p].d+=Bu(e.i,24)*_D*.07000000029802322-.03500000014901161,e.c[t.c.p][t.p].a=e.c[t.c.p][t.p].d/e.c[t.c.p][t.p].b)}}function Vkn(e){var t,r,o,a,u,f,p,m,y,v,T,N,O,M,U,z;for(M=new V(e);M.ao.d,o.d=b.Math.max(o.d,t),p&&r&&(o.d=b.Math.max(o.d,o.a),o.a=o.d+a);break;case 3:r=t>o.a,o.a=b.Math.max(o.a,t),p&&r&&(o.a=b.Math.max(o.a,o.d),o.d=o.a+a);break;case 2:r=t>o.c,o.c=b.Math.max(o.c,t),p&&r&&(o.c=b.Math.max(o.b,o.c),o.b=o.c+a);break;case 4:r=t>o.b,o.b=b.Math.max(o.b,t),p&&r&&(o.b=b.Math.max(o.b,o.c),o.c=o.b+a)}}}function lEt(e,t){var r,o,a,u,f,p,m,y,v;return y="",t.length==0?e.le(awe,QJ,-1,-1):(v=Ey(t),wt(v.substr(0,3),"at ")&&(v=(Yt(3,v.length+1),v.substr(3))),v=v.replace(/\[.*?\]/g,""),f=v.indexOf("("),f==-1?(f=v.indexOf("@"),f==-1?(y=v,v=""):(y=Ey((Yt(f+1,v.length+1),v.substr(f+1))),v=Ey((io(0,f,v.length),v.substr(0,f))))):(r=v.indexOf(")",f),y=(io(f+1,r,v.length),v.substr(f+1,r-(f+1))),v=Ey((io(0,f,v.length),v.substr(0,f)))),f=Nf(v,Qa(46)),f!=-1&&(v=(Yt(f+1,v.length+1),v.substr(f+1))),(v.length==0||wt(v,"Anonymous function"))&&(v=QJ),p=j8(y,Qa(58)),a=lfe(y,Qa(58),p-1),m=-1,o=-1,u=awe,p!=-1&&a!=-1&&(u=(io(0,a,y.length),y.substr(0,a)),m=zrt((io(a+1,p,y.length),y.substr(a+1,p-(a+1)))),o=zrt((Yt(p+1,y.length+1),y.substr(p+1)))),e.le(u,v,m,o))}function Kkn(e){var t,r,o,a,u,f,p,m,y,v,T;for(y=new V(e);y.a0||v.j==Kt&&v.e.c.length-v.g.c.length<0)){t=!1;break}for(a=new V(v.g);a.a=y&&Ee>=z&&(N+=M.n.b+U.n.b+U.a.b-de,++p));if(r)for(f=new V(ne.e);f.a=y&&Ee>=z&&(N+=M.n.b+U.n.b+U.a.b-de,++p))}p>0&&(ye+=N/p,++O)}O>0?(t.a=a*ye/O,t.g=O):(t.a=0,t.g=0)}function G0e(e,t,r,o){var a,u,f,p,m;return p=new V0e(t),U2n(p,o),a=!0,e&&e.nf((_n(),Tm))&&(u=l(e.mf((_n(),Tm)),87),a=u==(vi(),hf)||u==as||u==fs),iyt(p,!1),La(p.e.Pf(),new gfe(p,!1,a)),AW(p,p.f,(Sd(),Bs),(He(),Wt)),AW(p,p.f,Us,dn),AW(p,p.g,Bs,Kt),AW(p,p.g,Us,Qt),v1t(p,Wt),v1t(p,dn),sat(p,Qt),sat(p,Kt),qw(),f=p.A.Gc((sc(),hv))&&p.B.Gc((Uu(),QL))?Ogt(p):null,f&&$Qt(p.a,f),Wkn(p),omn(p),smn(p),Tkn(p),DAn(p),Omn(p),pY(p,Wt),pY(p,dn),ETn(p),dxn(p),r&&(qgn(p),Dmn(p),pY(p,Qt),pY(p,Kt),m=p.B.Gc((Uu(),C4)),zmt(p,m,Wt),zmt(p,m,dn),Gmt(p,m,Qt),Gmt(p,m,Kt),ei(new Et(null,new St(new Zh(p.i),0)),new qR),ei(lr(new Et(null,uhe(p.r).a.oc()),new VR),new RN),q0n(p),p.e.Nf(p.o),ei(new Et(null,uhe(p.r).a.oc()),new ON)),p.o}function Jkn(e){var t,r,o,a,u,f,p,m,y,v,T,N,O,M,U;for(y=Kr,o=new V(e.a.b);o.a1)for(O=new M0e(M,se,o),lo(se,new Itt(e,O)),Ot(f.c,O),T=se.a.ec().Jc();T.Ob();)v=l(T.Pb(),49),Xa(u,v.b);if(p.a.gc()>1)for(O=new M0e(M,p,o),lo(p,new Rtt(e,O)),Ot(f.c,O),T=p.a.ec().Jc();T.Ob();)v=l(T.Pb(),49),Xa(u,v.b)}}function eNn(e,t){var r,o,a,u,f,p;if(l(F(t,(Ie(),xa)),24).Gc((Fo(),rl))){for(p=new V(t.a);p.a=0&&f0&&(l(Wo(e.b,t),129).a.b=r)}function aNn(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J;for(O=0,o=new hi,u=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));u.e!=u.i.gc();)a=l(rn(u),19),Ye(Ke(ve(a,(Be(),wm))))||(T=Br(a),V7(T)&&!Ye(Ke(ve(a,lB)))&&(Vn(a,(Ie(),Cr),Re(O)),++O,Gc(a,Vy)&&pi(o,l(ve(a,Vy),15))),fEt(e,a,r));for(Te(r,(Ie(),F1),Re(O)),Te(r,fL,Re(o.a.gc())),O=0,v=new tn((!t.b&&(t.b=new ke(Ir,t,12,3)),t.b));v.e!=v.i.gc();)m=l(rn(v),74),V7(t)&&(Vn(m,Cr,Re(O)),++O),z=JY(m),J=Qbt(m),N=Ye(Ke(ve(z,(Be(),Ky)))),U=!Ye(Ke(ve(m,wm))),M=N&&R0(m)&&Ye(Ke(ve(m,bm))),f=Br(z)==t&&Br(z)==Br(J),p=(Br(z)==t&&J==t)^(Br(J)==t&&z==t),U&&!M&&(p||f)&&X0e(e,m,t,r);if(Br(t))for(y=new tn(gat(Br(t)));y.e!=y.i.gc();)m=l(rn(y),74),z=JY(m),z==t&&R0(m)&&(M=Ye(Ke(ve(z,(Be(),Ky))))&&Ye(Ke(ve(m,bm))),M&&X0e(e,m,t,r))}function uNn(e){var t,r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft,It,Dt;for(ye=new je,M=new V(e.b);M.a=t.length)return{done:!0};var a=t[o++];return{value:[a,r.get(a)],done:!1}}}},tTn()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(t){return this.obj[":"+t]},e.prototype.set=function(t,r){this.obj[":"+t]=r},e.prototype[TX]=function(t){delete this.obj[":"+t]},e.prototype.keys=function(){var t=[];for(var r in this.obj)r.charCodeAt(0)==58&&t.push(r.substring(1));return t}),e}function Nr(){Nr=K,i4=new cr(xwe),new Pr("DEPTH",Re(0)),ene=new Pr("FAN",Re(0)),z_e=new Pr(BSt,Re(0)),z1=new Pr("ROOT",(Lt(),!1)),rne=new Pr("LEFTNEIGHBOR",null),eRt=new Pr("RIGHTNEIGHBOR",null),PB=new Pr("LEFTSIBLING",null),ine=new Pr("RIGHTSIBLING",null),Qte=new Pr("DUMMY",!1),new Pr("LEVEL",Re(0)),V_e=new Pr("REMOVABLE_EDGES",new Ar),CL=new Pr("XCOOR",Re(0)),IL=new Pr("YCOOR",Re(0)),jB=new Pr("LEVELHEIGHT",0),Id=new Pr("LEVELMIN",0),sd=new Pr("LEVELMAX",0),tne=new Pr("GRAPH_XMIN",0),nne=new Pr("GRAPH_YMIN",0),G_e=new Pr("GRAPH_XMAX",0),q_e=new Pr("GRAPH_YMAX",0),H_e=new Pr("COMPACT_LEVEL_ASCENSION",!1),Zte=new Pr("COMPACT_CONSTRAINTS",new je),r4=new Pr("ID",""),o4=new Pr("POSITION",Re(0)),Ng=new Pr("PRELIM",0),lk=new Pr("MODIFIER",0),ck=new cr(W2t),NL=new cr(K2t)}function fNn(e){A0e();var t,r,o,a,u,f,p,m,y,v,T,N,O,M,U,z;if(e==null)return null;if(T=e.length*8,T==0)return"";for(p=T%24,O=T/24|0,N=p!=0?O+1:O,u=null,u=we(al,Bf,30,N*4,15,1),y=0,v=0,t=0,r=0,o=0,f=0,a=0,m=0;m>24,y=(t&3)<<24>>24,M=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,U=r&-128?(r>>4^240)<<24>>24:r>>4<<24>>24,z=o&-128?(o>>6^252)<<24>>24:o>>6<<24>>24,u[f++]=Pg[M],u[f++]=Pg[U|y<<4],u[f++]=Pg[v<<2|z],u[f++]=Pg[o&63];return p==8?(t=e[a],y=(t&3)<<24>>24,M=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,u[f++]=Pg[M],u[f++]=Pg[y<<4],u[f++]=61,u[f++]=61):p==16&&(t=e[a],r=e[a+1],v=(r&15)<<24>>24,y=(t&3)<<24>>24,M=t&-128?(t>>2^192)<<24>>24:t>>2<<24>>24,U=r&-128?(r>>4^240)<<24>>24:r>>4<<24>>24,u[f++]=Pg[M],u[f++]=Pg[U|y<<4],u[f++]=Pg[v<<2],u[f++]=61),Mf(u,0,u.length)}function hNn(e,t){var r,o,a,u,f,p,m;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>Qi&&ope(t,e.p-k1),f=t.q.getDate(),XO(t,1),e.k>=0&&Cun(t,e.k),e.c>=0?XO(t,e.c):e.k>=0?(m=new Dge(t.q.getFullYear()-k1,t.q.getMonth(),35),o=35-m.q.getDate(),XO(t,b.Math.min(o,f))):XO(t,f),e.f<0&&(e.f=t.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),Ctn(t,e.f==24&&e.g?0:e.f),e.j>=0&&cdn(t,e.j),e.n>=0&&Tdn(t,e.n),e.i>=0&&Snt(t,Ao(wo(W6(Gs(t.q.getTime()),yg),yg),e.i)),e.a&&(a=new q9,ope(a,a.q.getFullYear()-k1-80),Aq(Gs(t.q.getTime()),Gs(a.q.getTime()))&&ope(t,a.q.getFullYear()-k1+100)),e.d>=0){if(e.c==-1)r=(7+e.d-t.q.getDay())%7,r>3&&(r-=7),p=t.q.getMonth(),XO(t,t.q.getDate()+r),t.q.getMonth()!=p&&XO(t,t.q.getDate()+(r>0?-7:7));else if(t.q.getDay()!=e.d)return!1}return e.o>Qi&&(u=t.q.getTimezoneOffset(),Snt(t,Ao(Gs(t.q.getTime()),(e.o-u)*60*yg))),!0}function bEt(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de;if(a=F(t,(Ie(),mr)),!!ae(a,209)){for(M=l(a,19),U=t.e,N=new So(t.c),u=t.d,N.a+=u.b,N.b+=u.d,de=l(ve(M,(Be(),vB)),185),fu(de,(Uu(),dU))&&(O=l(ve(M,MAe),100),uZt(O,u.a),hZt(O,u.d),cZt(O,u.b),lZt(O,u.c)),r=new je,v=new V(t.a);v.ao.c.length-1;)Fe(o,new ko(jE,ove));r=l(F(a,Jf),15).a,ep(l(F(e,uw),87))?(a.e.aue(ce((at(r,o.c.length),l(o.c[r],49)).b))&&HG((at(r,o.c.length),l(o.c[r],49)),a.e.a+a.f.a)):(a.e.bue(ce((at(r,o.c.length),l(o.c[r],49)).b))&&HG((at(r,o.c.length),l(o.c[r],49)),a.e.b+a.f.b))}for(u=An(e.b,0);u.b!=u.d.c;)a=l(Sn(u),41),r=l(F(a,(js(),Jf)),15).a,Te(a,(Nr(),Id),ce((at(r,o.c.length),l(o.c[r],49)).a)),Te(a,sd,ce((at(r,o.c.length),l(o.c[r],49)).b));t.Ug()}function gNn(e){var t,r,o,a,u,f,p,m,y,v,T,N,O,M,U;for(e.o=ue(ce(F(e.i,(Be(),vm)))),e.f=ue(ce(F(e.i,$1))),e.j=e.i.b.c.length,p=e.j-1,N=0,e.k=0,e.n=0,e.b=Wl(we(Ti,Pe,15,e.j,0,1)),e.c=Wl(we(fi,Pe,347,e.j,7,1)),f=new V(e.i.b);f.a0&&Fe(e.q,v),Fe(e.p,v);t-=o,O=m+t,y+=t*e.f,nc(e.b,p,Re(O)),nc(e.c,p,y),e.k=b.Math.max(e.k,O),e.n=b.Math.max(e.n,y),e.e+=t,t+=U}}function yEt(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se;if(t.b!=0){for(O=new Ar,p=null,M=null,o=go(b.Math.floor(b.Math.log(t.b)*b.Math.LOG10E)+1),m=0,se=An(t,0);se.b!=se.d.c;)for(J=l(Sn(se),41),be(M)!==be(F(J,(Nr(),r4)))&&(M=In(F(J,r4)),m=0),M!=null?p=M+Mut(m++,o):p=Mut(m++,o),Te(J,r4,p),z=(a=An(new Qh(J).a.d,0),new qv(a));oO(z.a);)U=l(Sn(z.a),65).c,Wr(O,U,O.c.b,O.c),Te(U,r4,p);for(N=new hn,f=0;f0&&(se-=O),P0e(f,se),v=0,N=new V(f.a);N.a0),p.a.Xb(p.c=--p.b)),m=.4*o*v,!u&&p.b0&&(m=(Yt(0,t.length),t.charCodeAt(0)),m!=64)){if(m==37&&(T=t.lastIndexOf("%"),y=!1,T!=0&&(T==N-1||(y=(Yt(T+1,t.length),t.charCodeAt(T+1)==46))))){if(f=(io(1,T,t.length),t.substr(1,T-1)),se=wt("%",f)?null:K0e(f),o=0,y)try{o=Ec((Yt(T+2,t.length+1),t.substr(T+2)),Qi,sr)}catch(de){throw de=ci(de),ae(de,133)?(p=de,Y(new oj(p))):Y(de)}for(z=dge(e.Dh());z.Ob();)if(M=Rj(z),ae(M,508)&&(a=l(M,594),ne=a.d,(se==null?ne==null:wt(se,ne))&&o--==0))return a;return null}if(v=t.lastIndexOf("."),O=v==-1?t:(io(0,v,t.length),t.substr(0,v)),r=0,v!=-1)try{r=Ec((Yt(v+1,t.length+1),t.substr(v+1)),Qi,sr)}catch(de){if(de=ci(de),ae(de,133))O=t;else throw Y(de)}for(O=wt("%",O)?null:K0e(O),U=dge(e.Dh());U.Ob();)if(M=Rj(U),ae(M,199)&&(u=l(M,199),J=u.ve(),(O==null?J==null:wt(O,J))&&r--==0))return u;return null}return rEt(e,t)}function SNn(e){var t,r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne;for(v=new hn,m=new b0,o=new V(e.a.a.b);o.at.d.c){if(O=e.c[t.a.d],z=e.c[T.a.d],O==z)continue;Ql($l(Ul(Hl(Bl(new gl,1),100),O),z))}}}}}function TNn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye;if(N=l(l(wr(e.r,t),24),85),t==(He(),Qt)||t==Kt){hEt(e,t);return}for(u=t==Wt?(A0(),QD):(A0(),eL),de=t==Wt?(Za(),Nd):(Za(),rd),r=l(Wo(e.b,t),129),o=r.i,a=o.c+hE(Z(X(Ki,1),Jo,30,15,[r.n.b,e.C.b,e.k])),J=o.c+o.b-hE(Z(X(Ki,1),Jo,30,15,[r.n.c,e.C.c,e.k])),f=nle(bfe(u),e.t),ne=t==Wt?Li:Kr,T=N.Jc();T.Ob();)y=l(T.Pb(),116),!(!y.c||y.c.d.c.length<=0)&&(z=y.b.Kf(),U=y.e,O=y.c,M=O.i,M.b=(m=O.n,O.e.a+m.b+m.c),M.a=(p=O.n,O.e.b+p.d+p.a),YO(de,ywe),O.f=de,Ed(O,(_u(),nd)),M.c=U.a-(M.b-z.a)/2,Ee=b.Math.min(a,U.a),ye=b.Math.max(J,U.a+z.a),M.cye&&(M.c=ye-M.b),Fe(f.d,new VV(M,d1e(f,M))),ne=t==Wt?b.Math.max(ne,U.b+y.b.Kf().b):b.Math.min(ne,U.b));for(ne+=t==Wt?e.t:-e.t,se=N1e((f.e=ne,f)),se>0&&(l(Wo(e.b,t),129).a.b=se),v=N.Jc();v.Ob();)y=l(v.Pb(),116),!(!y.c||y.c.d.c.length<=0)&&(M=y.c.i,M.c-=y.e.a,M.d-=y.e.b)}function ANn(e,t){IJ();var r,o,a,u,f,p,m,y,v,T,N,O,M,U;if(m=Ea(e,0)<0,m&&(e=ug(e)),Ea(e,0)==0)switch(t){case 0:return"0";case 1:return dx;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return O=new Zg,t<0?O.a+="0E+":O.a+="0E",O.a+=t==Qi?"2147483648":""+-t,O.a}v=18,T=we(al,Bf,30,v+1,15,1),r=v,U=e;do y=U,U=W6(U,10),T[--r]=Dn(Ao(48,El(y,wo(U,10))))&Ei;while(Ea(U,0)!=0);if(a=El(El(El(v,r),t),1),t==0)return m&&(T[--r]=45),Mf(T,r,v-r);if(t>0&&Ea(a,-6)>=0){if(Ea(a,0)>=0){for(u=r+Dn(a),p=v-1;p>=u;p--)T[p+1]=T[p];return T[++u]=46,m&&(T[--r]=45),Mf(T,r,v-r+1)}for(f=2;Aq(f,Ao(ug(a),1));f++)T[--r]=48;return T[--r]=46,T[--r]=48,m&&(T[--r]=45),Mf(T,r,v-r)}return M=r+1,o=v,N=new lS,m&&(N.a+="-"),o-M>=1?(Db(N,T[r]),N.a+=".",N.a+=Mf(T,r+1,v-r-1)):N.a+=Mf(T,r,v-r),N.a+="E",Ea(a,0)>0&&(N.a+="+"),N.a+=""+x3(a),N.a}function vEt(e){n0(e,new Qb(iO(Qm(Jm(Zm(Xm(new vb,Qc),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new Aze),Qc))),De(e,Qc,IF,Ge(JRt)),De(e,Qc,$0,Ge(XRt)),De(e,Qc,ME,Ge(VRt)),De(e,Qc,mT,Ge(WRt)),De(e,Qc,bT,Ge(KRt)),De(e,Qc,Ex,Ge(qRt)),De(e,Qc,yx,Ge(Exe)),De(e,Qc,Sx,Ge(YRt)),De(e,Qc,jZ,Ge(mne)),De(e,Qc,PZ,Ge(wne)),De(e,Qc,PF,Ge(Txe)),De(e,Qc,FZ,Ge(yne)),De(e,Qc,$Z,Ge(Axe)),De(e,Qc,Ave,Ge(_xe)),De(e,Qc,Tve,Ge(Sxe)),De(e,Qc,yve,Ge(HB)),De(e,Qc,vve,Ge(zB)),De(e,Qc,Eve,Ge(RL)),De(e,Qc,Sve,Ge(xxe)),De(e,Qc,wve,Ge(vxe))}function M0(e,t,r,o,a){var u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye;if(z=new Me(e.g,e.f),U=rme(e),U.a=b.Math.max(U.a,t),U.b=b.Math.max(U.b,r),ye=U.a/z.a,v=U.b/z.b,de=U.a-z.a,m=U.b-z.b,o)for(f=Br(e)?l(ve(Br(e),(_n(),Tm)),87):l(ve(e,(_n(),Tm)),87),p=be(ve(e,(_n(),bk)))===be((qi(),fa)),ne=new tn((!e.c&&(e.c=new ke(Gu,e,9,9)),e.c));ne.e!=ne.i.gc();)switch(J=l(rn(ne),127),se=l(ve(J,m2),64),se==(He(),Is)&&(se=_0e(J,f),Vn(J,m2,se)),se.g){case 1:p||va(J,J.i*ye);break;case 2:va(J,J.i+de),p||gu(J,J.j*v);break;case 3:p||va(J,J.i*ye),gu(J,J.j+m);break;case 4:p||gu(J,J.j*v)}if(i0(e,U.a,U.b),a)for(N=new tn((!e.n&&(e.n=new ke(Rs,e,1,7)),e.n));N.e!=N.i.gc();)T=l(rn(N),158),O=T.i+T.g/2,M=T.j+T.f/2,Ee=O/z.a,y=M/z.b,Ee+y>=1&&(Ee-y>0&&M>=0?(va(T,T.i+de),gu(T,T.j+m*y)):Ee-y<0&&O>=0&&(va(T,T.i+de*Ee),gu(T,T.j+m)));return Vn(e,(_n(),Am),(sc(),u=l(md(N4),10),new Hc(u,l(Gl(u,u.length),10),0))),new Me(ye,v)}function Z7(e){var t,r,o,a,u,f,p,m,y,v,T;if(e==null)throw Y(new kf(tu));if(y=e,u=e.length,m=!1,u>0&&(t=(Yt(0,e.length),e.charCodeAt(0)),(t==45||t==43)&&(e=(Yt(1,e.length+1),e.substr(1)),--u,m=t==45)),u==0)throw Y(new kf(F0+y+'"'));for(;e.length>0&&(Yt(0,e.length),e.charCodeAt(0)==48);)e=(Yt(1,e.length+1),e.substr(1)),--u;if(u>(Kyt(),X_t)[10])throw Y(new kf(F0+y+'"'));for(a=0;a0&&(T=-parseInt((io(0,o,e.length),e.substr(0,o)),10),e=(Yt(o,e.length+1),e.substr(o)),u-=o,r=!1);u>=f;){if(o=parseInt((io(0,f,e.length),e.substr(0,f)),10),e=(Yt(f,e.length+1),e.substr(f)),u-=f,r)r=!1;else{if(Ea(T,p)<0)throw Y(new kf(F0+y+'"'));T=wo(T,v)}T=El(T,o)}if(Ea(T,0)>0)throw Y(new kf(F0+y+'"'));if(!m&&(T=ug(T),Ea(T,0)<0))throw Y(new kf(F0+y+'"'));return T}function K0e(e){PJ();var t,r,o,a,u,f,p,m;if(e==null)return null;if(a=Nf(e,Qa(37)),a<0)return e;for(m=new fc((io(0,a,e.length),e.substr(0,a))),t=we(Eu,BE,30,4,15,1),p=0,o=0,f=e.length;aa+2&&MK((Yt(a+1,e.length),e.charCodeAt(a+1)),T3e,A3e)&&MK((Yt(a+2,e.length),e.charCodeAt(a+2)),T3e,A3e))if(r=Oon((Yt(a+1,e.length),e.charCodeAt(a+1)),(Yt(a+2,e.length),e.charCodeAt(a+2))),a+=2,o>0?(r&192)==128?t[p++]=r<<24>>24:o=0:r>=128&&((r&224)==192?(t[p++]=r<<24>>24,o=2):(r&240)==224?(t[p++]=r<<24>>24,o=3):(r&248)==240&&(t[p++]=r<<24>>24,o=4)),o>0){if(p==o){switch(p){case 2:{Db(m,((t[0]&31)<<6|t[1]&63)&Ei);break}case 3:{Db(m,((t[0]&15)<<12|(t[1]&63)<<6|t[2]&63)&Ei);break}}p=0,o=0}}else{for(u=0;u=2){if((!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i==0)r=(e1(),a=new g9,a),Tn((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),r);else if((!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i>1)for(N=new SS((!e.a&&(e.a=new ke(jr,e,6,6)),e.a));N.e!=N.i.gc();)wC(N);k0e(t,l(oe((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),0),171))}if(T)for(o=new tn((!e.a&&(e.a=new ke(jr,e,6,6)),e.a));o.e!=o.i.gc();)for(r=l(rn(o),171),y=new tn((!r.a&&(r.a=new yi(Ic,r,5)),r.a));y.e!=y.i.gc();)m=l(rn(y),373),p.a=b.Math.max(p.a,m.a),p.b=b.Math.max(p.b,m.b);for(f=new tn((!e.n&&(e.n=new ke(Rs,e,1,7)),e.n));f.e!=f.i.gc();)u=l(rn(f),158),v=l(ve(u,S4),8),v&&Bc(u,v.a,v.b),T&&(p.a=b.Math.max(p.a,u.i+u.g),p.b=b.Math.max(p.b,u.j+u.f));return p}function SEt(e,t,r,o,a){var u,f,p;if(Gdt(e,t),f=t[0],u=co(r.c,0),p=-1,Bge(r))if(o>0){if(f+o>e.length)return!1;p=k7((io(0,f+o,e.length),e.substr(0,f+o)),t)}else p=k7(e,t);switch(u){case 71:return p=_E(e,f,Z(X(Je,1),Pe,2,6,[u2t,c2t]),t),a.e=p,!0;case 77:return USn(e,t,a,p,f);case 76:return HSn(e,t,a,p,f);case 69:return Uyn(e,t,f,a);case 99:return Hyn(e,t,f,a);case 97:return p=_E(e,f,Z(X(Je,1),Pe,2,6,["AM","PM"]),t),a.b=p,!0;case 121:return zSn(e,t,f,p,r,a);case 100:return p<=0?!1:(a.c=p,!0);case 83:return p<0?!1:t1n(p,f,t[0],a);case 104:p==12&&(p=0);case 75:case 72:return p<0?!1:(a.f=p,a.g=!1,!0);case 107:return p<0?!1:(a.f=p,a.g=!0,!0);case 109:return p<0?!1:(a.j=p,!0);case 115:return p<0?!1:(a.n=p,!0);case 90:if(flt[m]&&(z=m),T=new V(e.a.b);T.a=p){un(ne.b>0),ne.a.Xb(ne.c=--ne.b);break}else z.a>m&&(o?(li(o.b,z.b),o.a=b.Math.max(o.a,z.a),Mu(ne)):(Fe(z.b,v),z.c=b.Math.min(z.c,m),z.a=b.Math.max(z.a,p),o=z));o||(o=new NZe,o.c=m,o.a=p,Vw(ne,o),Fe(o.b,v))}for(f=e.b,y=0,J=new V(r);J.a1;){if(a=L2n(t),T=u.g,M=l(ve(t,c4),100),U=ue(ce(ve(t,WB))),(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i>1&&ue(ce(ve(t,(yh(),Nne))))!=Kr&&(u.c+(M.b+M.c))/(u.b+(M.d+M.a))1&&ue(ce(ve(t,(yh(),kne))))!=Kr&&(u.c+(M.b+M.c))/(u.b+(M.d+M.a))>U&&Vn(a,(yh(),iv),b.Math.max(ue(ce(ve(t,u4))),ue(ce(ve(a,iv)))-ue(ce(ve(t,kne))))),O=new Jle(o,v),m=$Et(O,a,N),y=m.g,y>=T&&y==y){for(f=0;f<(!a.a&&(a.a=new ke(En,a,10,11)),a.a).i;f++)o0t(e,l(oe((!a.a&&(a.a=new ke(En,a,10,11)),a.a),f),19),l(oe((!t.a&&(t.a=new ke(En,t,10,11)),t.a),f),19));Tft(t,O),gun(u,m.c),bun(u,m.b)}--p}Vn(t,(yh(),dk),u.b),Vn(t,$T,u.c),r.Ug()}function CNn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft;for(t.Tg("Compound graph postprocessor",1),r=Ye(Ke(F(e,(Be(),kte)))),p=l(F(e,(Ie(),mTe)),231),v=new hi,J=p.ec().Jc();J.Ob();){for(z=l(J.Pb(),17),f=new Tu(p.cc(z)),At(),xi(f,new yce(e)),Ee=mhn((at(0,f.c.length),l(f.c[0],253))),qe=vht(l(ze(f,f.c.length-1),253)),se=Ee.i,T_(qe.i,se)?ne=se.e:ne=ji(se),T=obn(z,f),tc(z.a),N=null,u=new V(f);u.aHf,ft=b.Math.abs(N.b-M.b)>Hf,(!r&<&&ft||r&&(lt||ft))&&Gn(z.a,de)),mo(z.a,o),o.b==0?N=de:N=(un(o.b!=0),l(o.c.b.c,8)),Hhn(O,T,U),vht(a)==qe&&(ji(qe.i)!=a.a&&(U=new ro,eme(U,ji(qe.i),ne)),Te(z,ate,U)),iyn(O,z,ne),v.a.yc(O,v);bo(z,Ee),Ji(z,qe)}for(y=v.a.ec().Jc();y.Ob();)m=l(y.Pb(),17),bo(m,null),Ji(m,null);t.Ug()}function INn(e,t){var r,o,a,u,f,p,m,y,v,T,N;for(a=l(F(e,(js(),uw)),87),v=a==(vi(),as)||a==fs?ff:fs,r=l(Au(lr(new Et(null,new St(e.b,16)),new IHe),ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),m=l(Au(Oa(r.Mc(),new XJe(t)),ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[nu]))),16),m.Fc(l(Au(Oa(r.Mc(),new ZJe(t)),ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[nu]))),18)),m.gd(new QJe(v)),N=new Qp(new eXe(a)),o=new hn,p=m.Jc();p.Ob();)f=l(p.Pb(),243),y=l(f.a,41),Ye(Ke(f.c))?(N.a.yc(y,(Lt(),D1))==null,new IA(N.a.Xc(y,!1)).a.gc()>0&&Jn(o,y,l(new IA(N.a.Xc(y,!1)).a.Tc(),41)),new IA(N.a.$c(y,!0)).a.gc()>1&&Jn(o,Rgt(N,y),y)):(new IA(N.a.Xc(y,!1)).a.gc()>0&&(u=l(new IA(N.a.Xc(y,!1)).a.Tc(),41),be(u)===be(Ss(ts(o.f,y)))&&l(F(y,(Nr(),Zte)),16).Ec(u)),new IA(N.a.$c(y,!0)).a.gc()>1&&(T=Rgt(N,y),be(Ss(ts(o.f,T)))===be(y)&&l(F(T,(Nr(),Zte)),16).Ec(y)),N.a.Ac(y)!=null)}function TEt(e){var t,r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de;if(e.gc()==1)return l(e.Xb(0),238);if(e.gc()<=0)return new JP;for(a=e.Jc();a.Ob();){for(r=l(a.Pb(),238),M=0,v=sr,T=sr,m=Qi,y=Qi,O=new V(r.e);O.ap&&(se=0,de+=f+J,f=0),tAn(U,r,se,de),t=b.Math.max(t,se+z.a),f=b.Math.max(f,z.b),se+=z.a+J;return U}function RNn(e){A0e();var t,r,o,a,u,f,p,m,y,v,T,N,O,M,U,z;if(e==null||(u=aj(e),M=ggn(u),M%4!=0))return null;if(U=M/4|0,U==0)return we(Eu,BE,30,0,15,1);for(T=null,t=0,r=0,o=0,a=0,f=0,p=0,m=0,y=0,O=0,N=0,v=0,T=we(Eu,BE,30,U*3,15,1);O>4)<<24>>24,T[N++]=((r&15)<<4|o>>2&15)<<24>>24,T[N++]=(o<<6|a)<<24>>24}return!uO(f=u[v++])||!uO(p=u[v++])?null:(t=mf[f],r=mf[p],m=u[v++],y=u[v++],mf[m]==-1||mf[y]==-1?m==61&&y==61?r&15?null:(z=we(Eu,BE,30,O*3+1,15,1),ua(T,0,z,0,O*3),z[N]=(t<<2|r>>4)<<24>>24,z):m!=61&&y==61?(o=mf[m],o&3?null:(z=we(Eu,BE,30,O*3+2,15,1),ua(T,0,z,0,O*3),z[N++]=(t<<2|r>>4)<<24>>24,z[N]=((r&15)<<4|o>>2&15)<<24>>24,z)):null:(o=mf[m],a=mf[y],T[N++]=(t<<2|r>>4)<<24>>24,T[N++]=((r&15)<<4|o>>2&15)<<24>>24,T[N++]=(o<<6|a)<<24>>24,T))}function ONn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee;for(t.Tg(pSt,1),M=l(F(e,(Be(),kp)),225),a=new V(e.b);a.a=2){for(U=!0,N=new V(u.j),r=l(q(N),12),O=null;N.a0)if(o=T.gc(),y=go(b.Math.floor((o+1)/2))-1,a=go(b.Math.ceil((o+1)/2))-1,t.o==uf)for(v=a;v>=y;v--)t.a[de.p]==de&&(U=l(T.Xb(v),49),M=l(U.a,9),!bl(r,U.b)&&O>e.b.e[M.p]&&(t.a[M.p]=de,t.g[de.p]=t.g[M.p],t.a[de.p]=t.g[de.p],t.f[t.g[de.p].p]=(Lt(),!!(Ye(t.f[t.g[de.p].p])&de.k==(zt(),gi))),O=e.b.e[M.p]));else for(v=y;v<=a;v++)t.a[de.p]==de&&(J=l(T.Xb(v),49),z=l(J.a,9),!bl(r,J.b)&&O0&&(a=l(ze(z.c.a,ye-1),9),f=e.i[a.p],lt=b.Math.ceil(rE(e.n,a,z)),u=Ee.a.e-z.d.d-(f.a.e+a.o.b+a.d.a)-lt),y=Kr,ye0&&qe.a.e.e-qe.a.a-(qe.b.e.e-qe.b.a)<0,M=se.a.e.e-se.a.a-(se.b.e.e-se.b.a)<0&&qe.a.e.e-qe.a.a-(qe.b.e.e-qe.b.a)>0,O=se.a.e.e+se.b.aqe.b.e.e+qe.a.a,de=0,!U&&!M&&(N?u+T>0?de=T:y-o>0&&(de=o):O&&(u+p>0?de=p:y-ne>0&&(de=ne))),Ee.a.e+=de,Ee.b&&(Ee.d.e+=de),!1))}function _Et(e,t,r){var o,a,u,f,p,m,y,v,T,N;if(o=new ql(t.Jf().a,t.Jf().b,t.Kf().a,t.Kf().b),a=new wS,e.c)for(f=new V(t.Pf());f.a0&&Oi(O,(at(r,t.c.length),l(t.c[r],26))),u=0,N=!0,J=oc(jb(si(O))),m=J.Jc();m.Ob();){for(p=l(m.Pb(),17),N=!1,T=p,y=0;y(at(y,t.c.length),l(t.c[y],26)).a.c.length?Oi(a,(at(y,t.c.length),l(t.c[y],26))):E1(a,o+u,(at(y,t.c.length),l(t.c[y],26))),T=fJ(T,a);r>0&&(u+=1)}if(N){for(y=0;y(at(y,t.c.length),l(t.c[y],26)).a.c.length?Oi(a,(at(y,t.c.length),l(t.c[y],26))):E1(a,o+u,(at(y,t.c.length),l(t.c[y],26)));r>0&&(u+=1)}for(f=!1,U=new $t(qt(Or(O).a.Jc(),new D));an(U);){for(M=l(en(U),17),T=M,v=r+1;v(at(y,t.c.length),l(t.c[y],26)).a.c.length?Oi(z,(at(y,t.c.length),l(t.c[y],26))):E1(z,o+1,(at(y,t.c.length),l(t.c[y],26))));f&&(u+=1),f=!0}return u>0?u-1:0}function x1(e,t){fr();var r,o,a,u,f,p,m,y,v,T,N,O,M;if(WN(xk)==0){for(T=we(dCn,Pe,122,PLt.length,0,1),f=0;fy&&(o.a+=urt(we(al,Bf,30,-y,15,1))),o.a+="Is",Nf(m,Qa(32))>=0)for(a=0;a=o.o.b/2}else ne=!T;ne?(J=l(F(o,(Ie(),MT)),16),J?N?u=J:(a=l(F(o,NT),16),a?J.gc()<=a.gc()?u=J:u=a:(u=new je,Te(o,NT,u))):(u=new je,Te(o,MT,u))):(a=l(F(o,(Ie(),NT)),16),a?T?u=a:(J=l(F(o,MT),16),J?a.gc()<=J.gc()?u=a:u=J:(u=new je,Te(o,MT,u))):(u=new je,Te(o,NT,u))),u.Ec(e),Te(e,(Ie(),tB),r),t.d==r?(Ji(t,null),r.e.c.length+r.g.c.length==0&&As(r,null),mpn(r)):(bo(t,null),r.e.c.length+r.g.c.length==0&&As(r,null)),tc(t.a)}function jNn(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft,It,Dt,on,qn,Gr;for(r.Tg("MinWidth layering",1),O=t.b,qe=t.a,Gr=l(F(t,(Be(),kAe)),15).a,p=l(F(t,NAe),15).a,e.b=ue(ce(F(t,od))),e.d=Kr,de=new V(qe);de.aO&&(u&&(Eo(ye,N),Eo(lt,Re(y.b-1))),qn=r.b,Gr+=N+t,N=0,v=b.Math.max(v,r.b+r.c+on)),va(p,qn),gu(p,Gr),v=b.Math.max(v,qn+on+r.c),N=b.Math.max(N,T),qn+=on+t;if(v=b.Math.max(v,o),Dt=Gr+N+r.a,Dt0?(y=0,z&&(y+=p),y+=(ft-1)*f,se&&(y+=p),lt&&se&&(y=b.Math.max(y,eSn(se,f,ne,qe))),y=e.a&&(o=w_n(e,ne),v=b.Math.max(v,o.b),de=b.Math.max(de,o.d),Fe(p,new ko(ne,o)));for(lt=new je,y=0;y0),z.a.Xb(z.c=--z.b),ft=new ra(e.b),Vw(z,ft),un(z.b0){for(N=v<100?null:new Qg(v),y=new vge(t),M=y.g,J=we(Rn,Qn,30,v,15,1),o=0,de=new w0(v),a=0;a=0;)if(O!=null?pr(O,M[m]):be(O)===be(M[m])){J.length<=o&&(z=J,J=we(Rn,Qn,30,2*J.length,15,1),ua(z,0,J,0,o)),J[o++]=a,Tn(de,M[m]);break e}if(O=O,be(O)===be(p))break}}if(y=de,M=de.g,v=o,o>J.length&&(z=J,J=we(Rn,Qn,30,o,15,1),ua(z,0,J,0,o)),o>0){for(se=!0,u=0;u=0;)ZS(e,J[f]);if(o!=v){for(a=v;--a>=o;)ZS(y,a);z=J,J=we(Rn,Qn,30,o,15,1),ua(z,0,J,0,o)}t=y}}}else for(t=fmn(e,t),a=e.i;--a>=0;)t.Gc(e.g[a])&&(ZS(e,a),se=!0);if(se){if(J!=null){for(r=t.gc(),T=r==1?j3(e,4,t.Jc().Pb(),null,J[0],U):j3(e,6,t,J,J[0],U),N=r<100?null:new Qg(r),a=t.Jc();a.Ob();)O=a.Pb(),N=ffe(e,l(O,76),N);N?(N.lj(T),N.mj()):hr(e.e,T)}else{for(N=Jnn(t.gc()),a=t.Jc();a.Ob();)O=a.Pb(),N=ffe(e,l(O,76),N);N&&N.mj()}return!0}else return!1}function HNn(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se;for(r=new T1t(t),r.a||fAn(t),y=lTn(t),m=new b0,z=new $wt,U=new V(t.a);U.a0||r.o==uf&&a=r}function GNn(e){var t,r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft,It;for(se=e.a,de=0,Ee=se.length;de0?(T=l(ze(N.c.a,f-1),9),lt=rE(e.b,N,T),z=N.n.b-N.d.d-(T.n.b+T.o.b+T.d.a+lt)):z=N.n.b-N.d.d,y=b.Math.min(z,y),f1&&(f=b.Math.min(f,b.Math.abs(l(sa(p.a,1),8).b-v.b)))));else for(U=new V(t.j);U.aa&&(u=N.a-a,f=sr,o.c.length=0,a=N.a),N.a>=a&&(Ot(o.c,p),p.a.b>1&&(f=b.Math.min(f,b.Math.abs(l(sa(p.a,p.a.b-2),8).b-N.b)))));if(o.c.length!=0&&u>t.o.a/2&&f>t.o.b/2){for(O=new aa,As(O,t),Ci(O,(He(),Wt)),O.n.a=t.o.a/2,J=new aa,As(J,t),Ci(J,dn),J.n.a=t.o.a/2,J.n.b=t.o.b,m=new V(o);m.a=y.b?bo(p,J):bo(p,O)):(y=l(Son(p.a),8),z=p.a.b==0?qd(p.c):l(zl(p.a),8),z.b>=y.b?Ji(p,J):Ji(p,O)),T=l(F(p,(Be(),ss)),79),T&&gy(T,y,!0);t.n.a=a-t.o.a/2}}function WNn(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(p=An(e.b,0);p.b!=p.d.c;)if(f=l(Sn(p),41),!wt(f.c,DF))for(y=bEn(f,e),t==(vi(),as)||t==fs?xi(y,new sze):xi(y,new aze),m=y.c.length,o=0;o=0?O=WS(p):O=P6(WS(p)),e.of(rk,O)),y=new ro,N=!1,e.nf(sw)?(Pde(y,l(e.mf(sw),8)),N=!0):$tn(y,f.a/2,f.b/2),O.g){case 4:Te(v,Cs,(ic(),xp)),Te(v,rB,(Vb(),JE)),v.o.b=f.b,U<0&&(v.o.a=-U),Ci(T,(He(),Qt)),N||(y.a=f.a),y.a-=f.a;break;case 2:Te(v,Cs,(ic(),gm)),Te(v,rB,(Vb(),Jx)),v.o.b=f.b,U<0&&(v.o.a=-U),Ci(T,(He(),Kt)),N||(y.a=0);break;case 1:Te(v,hm,(lp(),ZE)),v.o.a=f.a,U<0&&(v.o.b=-U),Ci(T,(He(),dn)),N||(y.b=f.b),y.b-=f.b;break;case 3:Te(v,hm,(lp(),kT)),v.o.a=f.a,U<0&&(v.o.b=-U),Ci(T,(He(),Wt)),N||(y.b=0)}if(Pde(T.n,y),Te(v,sw,y),t==_m||t==Oh||t==fa){if(M=0,t==_m&&e.nf(xg))switch(O.g){case 1:case 2:M=l(e.mf(xg),15).a;break;case 3:case 4:M=-l(e.mf(xg),15).a}else switch(O.g){case 4:case 2:M=u.b,t==Oh&&(M/=a.b);break;case 1:case 3:M=u.a,t==Oh&&(M/=a.a)}Te(v,nw,M)}return Te(v,Hs,O),v}function KNn(){ole();function e(o){var a=this;this.dispatch=function(u){var f=u.data;switch(f.cmd){case"algorithms":var p=R1e((At(),new CA(new Zh(J1.b))));o.postMessage({id:f.id,data:p});break;case"categories":var m=R1e((At(),new CA(new Zh(J1.c))));o.postMessage({id:f.id,data:m});break;case"options":var y=R1e((At(),new CA(new Zh(J1.d))));o.postMessage({id:f.id,data:y});break;case"register":Kxn(f.algorithms),o.postMessage({id:f.id});break;case"layout":hxn(f.graph,f.layoutOptions||{},f.options||{}),o.postMessage({id:f.id,data:f.graph});break}},this.saveDispatch=function(u){try{a.dispatch(u)}catch(f){o.postMessage({id:u.data.id,error:f})}}}function t(o){var a=this;this.dispatcher=new e({postMessage:function(u){a.onmessage({data:u})}}),this.postMessage=function(u){setTimeout(function(){a.dispatcher.saveDispatch({data:u})},0)}}if(typeof document===kX&&typeof self!==kX){var r=new e(self);self.onmessage=r.saveDispatch}else typeof c!==kX&&c.exports&&(Object.defineProperty(d,"__esModule",{value:!0}),c.exports={default:t,Worker:t})}function zJ(e,t,r,o,a,u,f){var p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft,It,Dt,on,qn,Gr;for(U=0,It=0,y=new V(e.b);y.aU&&(u&&(Eo(ye,O),Eo(lt,Re(v.b-1)),Fe(e.d,M),p.c.length=0),qn=r.b,Gr+=O+t,O=0,T=b.Math.max(T,r.b+r.c+on)),Ot(p.c,m),m1t(m,qn,Gr),T=b.Math.max(T,qn+on+r.c),O=b.Math.max(O,N),qn+=on+t,M=m;if(li(e.a,p),Fe(e.d,l(ze(p,p.c.length-1),168)),T=b.Math.max(T,o),Dt=Gr+O+r.a,Dta.d.d+a.d.a?v.f.d=!0:(v.f.d=!0,v.f.a=!0))),o.b!=o.d.c&&(t=r);v&&(u=l(Ht(e.f,f.d.i),60),t.bu.d.d+u.d.a?v.f.d=!0:(v.f.d=!0,v.f.a=!0))}for(p=new $t(qt(si(O).a.Jc(),new D));an(p);)f=l(en(p),17),f.a.b!=0&&(t=l(zl(f.a),8),f.d.j==(He(),Wt)&&(z=new DC(t,new Me(t.a,a.d.d),a,f),z.f.a=!0,z.a=f.d,Ot(U.c,z)),f.d.j==dn&&(z=new DC(t,new Me(t.a,a.d.d+a.d.a),a,f),z.f.d=!0,z.a=f.d,Ot(U.c,z)))}return U}function e3n(e,t,r){var o,a,u,f,p,m,y,v,T,N;for(m=new je,T=t.length,f=jge(r),y=0;y=M&&(ne>M&&(O.c.length=0,M=ne),Ot(O.c,f));O.c.length!=0&&(N=l(ze(O,u7(t,O.c.length)),134),Dt.a.Ac(N)!=null,N.s=U++,jme(N,ft,ye),O.c.length=0)}for(de=e.c.length+1,p=new V(e);p.aIt.s&&(Mu(r),Xa(It.i,o),o.c>0&&(o.a=It,Fe(It.t,o),o.b=qe,Fe(qe.i,o)))}function REt(e,t,r,o,a){var u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft,It,Dt;for(U=new Da(t.b),de=new Da(t.b),N=new Da(t.b),lt=new Da(t.b),z=new Da(t.b),qe=An(t,0);qe.b!=qe.d.c;)for(Ee=l(Sn(qe),12),p=new V(Ee.g);p.a0,J=Ee.g.c.length>0,y&&J?Ot(N.c,Ee):y?Ot(U.c,Ee):J&&Ot(de.c,Ee);for(M=new V(U);M.ane.mh()-y.b&&(N=ne.mh()-y.b),O>ne.nh()-y.d&&(O=ne.nh()-y.d),v0){for(se=An(e.f,0);se.b!=se.d.c;)ne=l(Sn(se),9),ne.p+=N-e.e;Qbe(e),tc(e.f),Zme(e,o,O)}else{for(Gn(e.f,O),O.p=o,e.e=b.Math.max(e.e,o),u=new $t(qt(si(O).a.Jc(),new D));an(u);)a=l(en(u),17),!a.c.i.c&&a.c.i.k==(zt(),ta)&&(Gn(e.f,a.c.i),a.c.i.p=o-1);e.c=o}else Qbe(e),tc(e.f),o=0,an(new $t(qt(si(O).a.Jc(),new D)))?(N=0,N=E1t(N,O),o=N+2,Zme(e,o,O)):(Gn(e.f,O),O.p=0,e.e=b.Math.max(e.e,0),e.b=l(ze(e.d.b,0),26),e.c=0);for(e.f.b==0||Qbe(e),e.d.a.c.length=0,J=new je,y=new V(e.d.b);y.a=48&&t<=57){for(o=t-48;a=48&&t<=57;)if(o=o*10+t-48,o<0)throw Y(new Ln(jn((Cn(),_Ee))))}else throw Y(new Ln(jn((Cn(),NAt))));if(r=o,t==44){if(a>=e.j)throw Y(new Ln(jn((Cn(),IAt))));if((t=co(e.i,a++))>=48&&t<=57){for(r=t-48;a=48&&t<=57;)if(r=r*10+t-48,r<0)throw Y(new Ln(jn((Cn(),_Ee))));if(o>r)throw Y(new Ln(jn((Cn(),RAt))))}else r=-1}if(t!=125)throw Y(new Ln(jn((Cn(),CAt))));e._l(a)?(u=(fr(),fr(),new oy(9,u)),e.d=a+1):(u=(fr(),fr(),new oy(3,u)),e.d=a),u.Mm(o),u.Lm(r),dr(e)}}return u}function s3n(e){var t,r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee;for(a=1,O=new je,o=0;o=l(ze(e.b,o),26).a.c.length/4)continue}if(l(ze(e.b,o),26).a.c.length>t){for(de=new je,Fe(de,l(ze(e.b,o),26)),f=0;f1)for(M=new SS((!e.a&&(e.a=new ke(jr,e,6,6)),e.a));M.e!=M.i.gc();)wC(M);for(f=l(oe((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),0),171),z=qn,qn>Ee+de?z=Ee+de:qnye+U?J=ye+U:GrEe-de&&zye-U&&Jqn+on?lt=qn+on:EeGr+qe?ft=Gr+qe:yeqn-on&<Gr-qe&&ftr&&(N=r-1),O=jg+Bu(t,24)*_D*T-T/2,O<0?O=1:O>o&&(O=o-1),a=(e1(),m=new b9,m),gj(a,N),pj(a,O),Tn((!f.a&&(f.a=new yi(Ic,f,5)),f.a),a)}function VJ(e,t){IJ();var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe;if(se=e.e,v=e.d,a=e.a,se==0)switch(t){case 0:return"0";case 1:return dx;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return J=new Zg,J.a+="0E",J.a+=-t,J.a}if(U=v*10+1+7,z=we(al,Bf,30,U+1,15,1),r=U,v==1)if(u=a[0],u<0){qe=Gi(u,$o);do T=qe,qe=W6(qe,10),z[--r]=48+Dn(El(T,wo(qe,10)))&Ei;while(Ea(qe,0)!=0)}else{qe=u;do T=qe,qe=qe/10|0,z[--r]=48+(T-qe*10)&Ei;while(qe!=0)}else{de=we(Rn,Qn,30,v,15,1),ye=v,ua(a,0,de,0,ye);e:for(;;){for(ne=0,p=ye-1;p>=0;p--)Ee=Ao(fh(ne,32),Gi(de[p],$o)),O=own(Ee),de[p]=Dn(O),ne=Dn(u0(O,32));M=Dn(ne),N=r;do z[--r]=48+M%10&Ei;while((M=M/10|0)!=0&&r!=0);for(o=9-N+r,f=0;f0;f++)z[--r]=48;for(m=ye-1;de[m]==0;m--)if(m==0)break e;ye=m+1}for(;z[r]==48;)++r}return y=se<0,y&&(z[--r]=45),Mf(z,r,U-r)}function MEt(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye;switch(e.c=t,e.g=new hn,r=(t1(),new Yp(e.c)),o=new A9(r),x1e(o),se=In(ve(e.c,(Y6(),mke))),m=l(ve(e.c,zne),331),Ee=l(ve(e.c,Gne),432),f=l(ve(e.c,pke),480),de=l(ve(e.c,Hne),433),e.j=ue(ce(ve(e.c,BOt))),p=e.a,m.g){case 0:p=e.a;break;case 1:p=e.b;break;case 2:p=e.i;break;case 3:p=e.e;break;case 4:p=e.f;break;default:throw Y(new jt(FF+(m.f!=null?m.f:""+m.g)))}if(e.d=new Zat(p,Ee,f),Te(e.d,(S_(),EI),Ke(ve(e.c,FOt))),e.d.c=Ye(Ke(ve(e.c,gke))),kP(e.c).i==0)return e.d;for(T=new tn(kP(e.c));T.e!=T.i.gc();){for(v=l(rn(T),19),O=v.g/2,N=v.f/2,ye=new Me(v.i+O,v.j+N);ma(e.g,ye);)Gw(ye,(b.Math.random()-.5)*Hf,(b.Math.random()-.5)*Hf);U=l(ve(v,(_n(),Cp)),125),z=new Sut(ye,new ql(ye.a-O-e.j/2-U.b,ye.b-N-e.j/2-U.d,v.g+e.j+(U.b+U.c),v.f+e.j+(U.d+U.a))),Fe(e.d.i,z),Jn(e.g,ye,new ko(z,v))}switch(de.g){case 0:if(se==null)e.d.d=l(ze(e.d.i,0),68);else for(ne=new V(e.d.i);ne.a0?on+1:1);for(f=new V(ye.g);f.a0?on+1:1)}e.d[y]==0?Gn(e.f,U):e.a[y]==0&&Gn(e.g,U),++y}for(M=-1,O=1,T=new je,e.e=l(F(t,(Ie(),DT)),237);Rc>0;){for(;e.f.b!=0;)Gr=l(jV(e.f),9),e.c[Gr.p]=M--,g0e(e,Gr),--Rc;for(;e.g.b!=0;)Ou=l(jV(e.g),9),e.c[Ou.p]=O++,g0e(e,Ou),--Rc;if(Rc>0){for(N=Qi,ne=new V(se);ne.a=N&&(de>N&&(T.c.length=0,N=de),Ot(T.c,U)));v=e.qg(T),e.c[v.p]=O++,g0e(e,v),--Rc}}for(qn=se.c.length+1,y=0;ye.c[us]&&(mg(o,!0),Te(t,CT,(Lt(),!0)));e.a=null,e.d=null,e.c=null,tc(e.g),tc(e.f),r.Ug()}function jEt(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye;for(Ee=l(oe((!e.a&&(e.a=new ke(jr,e,6,6)),e.a),0),171),v=new Lu,de=new hn,ye=qyt(Ee),eu(de.f,Ee,ye),N=new hn,o=new Ar,M=hh(Wc(Z(X(nl,1),Rt,22,0,[(!t.d&&(t.d=new Tt(Ir,t,8,5)),t.d),(!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e)])));an(M);){if(O=l(en(M),74),(!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i!=1)throw Y(new jt(PTt+(!e.a&&(e.a=new ke(jr,e,6,6)),e.a).i));O!=e&&(z=l(oe((!O.a&&(O.a=new ke(jr,O,6,6)),O.a),0),171),Wr(o,z,o.c.b,o.c),U=l(Ss(ts(de.f,z)),13),U||(U=qyt(z),eu(de.f,z,U)),T=r?Di(new So(l(ze(ye,ye.c.length-1),8)),l(ze(U,U.c.length-1),8)):Di(new So((at(0,ye.c.length),l(ye.c[0],8))),(at(0,U.c.length),l(U.c[0],8))),eu(N.f,z,T))}if(o.b!=0)for(J=l(ze(ye,r?ye.c.length-1:0),8),y=1;y1&&Wr(v,J,v.c.b,v.c),fK(a)));J=ne}return v}function FEt(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft,It;for(r.Tg(HSt,1),It=l(Au(lr(new Et(null,new St(t,16)),new eze),ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),16),v=l(Au(lr(new Et(null,new St(t,16)),new nXe(t)),ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[nu]))),16),M=l(Au(lr(new Et(null,new St(t,16)),new tXe(t)),ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[nu]))),16),U=we(MB,LF,41,t.gc(),0,1),f=0;f=0&&ft=0&&!U[O]){U[O]=a,v.ed(p),--p;break}if(O=ft-N,O=0&&!U[O]){U[O]=a,v.ed(p),--p;break}}for(M.gd(new tze),m=U.length-1;m>=0;m--)!U[m]&&!M.dc()&&(U[m]=l(M.Xb(0),41),M.ed(0));for(y=0;yN&&q6((at(N,t.c.length),l(t.c[N],189)),v),v=null;t.c.length>N&&(at(N,t.c.length),l(t.c[N],189)).a.c.length==0;)Xa(t,(at(N,t.c.length),t.c[N]));if(!v){--f;continue}if(!Ye(Ke(l(ze(v.b,0),19).mf((ef(),DL))))&&_An(t,M,u,v,z,r,N,o)){U=!0;continue}if(z){if(O=M.b,T=v.f,!Ye(Ke(l(ze(v.b,0),19).mf(DL)))&&Wxn(t,M,u,v,r,N,o,a)){if(U=!0,O=e.j){e.a=-1,e.c=1;return}if(t=co(e.i,e.d++),e.a=t,e.b==1){switch(t){case 92:if(o=10,e.d>=e.j)throw Y(new Ln(jn((Cn(),VF))));e.a=co(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||co(e.i,e.d)!=63)break;if(++e.d>=e.j)throw Y(new Ln(jn((Cn(),gQ))));switch(t=co(e.i,e.d++),t){case 58:o=13;break;case 61:o=14;break;case 33:o=15;break;case 91:o=19;break;case 62:o=18;break;case 60:if(e.d>=e.j)throw Y(new Ln(jn((Cn(),gQ))));if(t=co(e.i,e.d++),t==61)o=16;else if(t==33)o=17;else throw Y(new Ln(jn((Cn(),lAt))));break;case 35:for(;e.d=e.j)throw Y(new Ln(jn((Cn(),VF))));e.a=co(e.i,e.d++);break;default:o=0}e.c=o}function b3n(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z;if(r.Tg("Process compaction",1),!!Ye(Ke(F(t,(js(),J_e))))){for(a=l(F(t,uw),87),O=ue(ce(F(t,sne))),B_n(e,t,a),INn(t,O/2/2),M=t.b,zb(M,new KJe(a)),y=An(M,0);y.b!=y.d.c;)if(m=l(Sn(y),41),!Ye(Ke(F(m,(Nr(),z1))))){if(o=dTn(m,a),U=s_n(m,t),T=0,N=0,o)switch(z=o.e,a.g){case 2:T=z.a-O-m.f.a,U.e.a-O-m.f.aT&&(T=U.e.a+U.f.a+O),N=T+m.f.a;break;case 4:T=z.b-O-m.f.b,U.e.b-O-m.f.bT&&(T=U.e.b+U.f.b+O),N=T+m.f.b}else if(U)switch(a.g){case 2:T=U.e.a-O-m.f.a,N=T+m.f.a;break;case 1:T=U.e.a+U.f.a+O,N=T+m.f.a;break;case 4:T=U.e.b-O-m.f.b,N=T+m.f.b;break;case 3:T=U.e.b+U.f.b+O,N=T+m.f.b}be(F(t,one))===be((eC(),kL))?(u=T,f=N,p=hp(lr(new Et(null,new St(e.a,16)),new Ltt(u,f))),p.a!=null?a==(vi(),as)||a==fs?m.e.a=T:m.e.b=T:(a==(vi(),as)||a==il?p=hp(lr(Nft(new Et(null,new St(e.a,16))),new YJe(u))):p=hp(lr(Nft(new Et(null,new St(e.a,16))),new JJe(u))),p.a!=null&&(a==as||a==fs?m.e.a=ue(ce((un(p.a!=null),l(p.a,49)).a)):m.e.b=ue(ce((un(p.a!=null),l(p.a,49)).a)))),p.a!=null&&(v=_s(e.a,(un(p.a!=null),p.a),0),v>0&&v!=l(F(m,Jf),15).a&&(Te(m,H_e,(Lt(),!0)),Te(m,Jf,Re(v))))):a==(vi(),as)||a==fs?m.e.a=T:m.e.b=T}r.Ug()}}function m3n(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee;if(r.Tg("Coffman-Graham Layering",1),t.a.c.length==0){r.Ug();return}for(Ee=l(F(t,(Be(),xAe)),15).a,m=0,f=0,N=new V(t.a);N.a=Ee||!v1n(J,o))&&(o=aat(t,v)),Oi(J,o),u=new $t(qt(si(J).a.Jc(),new D));an(u);)a=l(en(u),17),!e.a[a.p]&&(U=a.c.i,--e.e[U.p],e.e[U.p]==0&&xS(V_(O,U),fx));for(y=v.c.length-1;y>=0;--y)Fe(t.b,(at(y,v.c.length),l(v.c[y],26)));t.a.c.length=0,r.Ug()}function BEt(e){var t,r,o,a,u,f,p,m,y;for(e.b=1,dr(e),t=null,e.c==0&&e.a==94?(dr(e),t=(fr(),fr(),new bc(4)),Sa(t,0,Fx),p=new bc(4)):p=(fr(),fr(),new bc(4)),a=!0;(y=e.c)!=1;){if(y==0&&e.a==93&&!a){t&&($C(t,p),p=t);break}if(r=e.a,o=!1,y==10)switch(r){case 100:case 68:case 119:case 87:case 115:case 83:Ny(p,tx(r)),o=!0;break;case 105:case 73:case 99:case 67:r=(Ny(p,tx(r)),-1),r<0&&(o=!0);break;case 112:case 80:if(m=bme(e,r),!m)throw Y(new Ln(jn((Cn(),bQ))));Ny(p,m),o=!0;break;default:r=e0e(e)}else if(y==24&&!a){if(t&&($C(t,p),p=t),u=BEt(e),$C(p,u),e.c!=0||e.a!=93)throw Y(new Ln(jn((Cn(),vAt))));break}if(dr(e),!o){if(y==0){if(r==91)throw Y(new Ln(jn((Cn(),TEe))));if(r==93)throw Y(new Ln(jn((Cn(),AEe))));if(r==45&&!a&&e.a!=93)throw Y(new Ln(jn((Cn(),mQ))))}if(e.c!=0||e.a!=45||r==45&&a)Sa(p,r,r);else{if(dr(e),(y=e.c)==1)throw Y(new Ln(jn((Cn(),WF))));if(y==0&&e.a==93)Sa(p,r,r),Sa(p,45,45);else{if(y==0&&e.a==93||y==24)throw Y(new Ln(jn((Cn(),mQ))));if(f=e.a,y==0){if(f==91)throw Y(new Ln(jn((Cn(),TEe))));if(f==93)throw Y(new Ln(jn((Cn(),AEe))));if(f==45)throw Y(new Ln(jn((Cn(),mQ))))}else y==10&&(f=e0e(e));if(dr(e),r>f)throw Y(new Ln(jn((Cn(),TAt))));Sa(p,r,f)}}}a=!1}if(e.c==1)throw Y(new Ln(jn((Cn(),WF))));return xE(p),PC(p),e.b=0,dr(e),p}function UEt(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de;de=!1;do for(de=!1,u=t?new Xh(e.a.b).a.gc()-2:1;t?u>=0:ul(F(z,Cr),15).a)&&(se=!1);if(se){for(m=t?u+1:u-1,p=tpe(e.a,Re(m)),f=!1,ne=!0,o=!1,v=An(p,0);v.b!=v.d.c;)y=l(Sn(v),9),gr(y,Cr)?y.p!=T.p&&(f=f|(t?l(F(y,Cr),15).al(F(T,Cr),15).a),ne=!1):!f&&ne&&y.k==(zt(),ta)&&(o=!0,t?N=l(en(new $t(qt(si(y).a.Jc(),new D))),17).c.i:N=l(en(new $t(qt(Or(y).a.Jc(),new D))),17).d.i,N==T&&(t?r=l(en(new $t(qt(Or(y).a.Jc(),new D))),17).d.i:r=l(en(new $t(qt(si(y).a.Jc(),new D))),17).c.i,(t?l(zw(e.a,r),15).a-l(zw(e.a,N),15).a:l(zw(e.a,N),15).a-l(zw(e.a,r),15).a)<=2&&(ne=!1)));if(o&&ne&&(t?r=l(en(new $t(qt(Or(T).a.Jc(),new D))),17).d.i:r=l(en(new $t(qt(si(T).a.Jc(),new D))),17).c.i,(t?l(zw(e.a,r),15).a-l(zw(e.a,T),15).a:l(zw(e.a,T),15).a-l(zw(e.a,r),15).a)<=2&&r.k==(zt(),Xr)&&(ne=!1)),f||ne){for(U=gwt(e,T,t);U.a.gc()!=0;)M=l(U.a.ec().Jc().Pb(),9),U.a.Ac(M)!=null,mo(U,gwt(e,M,t));--O,de=!0}}}while(de)}function w3n(e){xn(e.c,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#decimal"])),xn(e.d,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#integer"])),xn(e.e,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#boolean"])),xn(e.f,Bn,Z(X(Je,1),Pe,2,6,[ho,"EBoolean",or,"EBoolean:Object"])),xn(e.i,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#byte"])),xn(e.g,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#hexBinary"])),xn(e.j,Bn,Z(X(Je,1),Pe,2,6,[ho,"EByte",or,"EByte:Object"])),xn(e.n,Bn,Z(X(Je,1),Pe,2,6,[ho,"EChar",or,"EChar:Object"])),xn(e.t,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#double"])),xn(e.u,Bn,Z(X(Je,1),Pe,2,6,[ho,"EDouble",or,"EDouble:Object"])),xn(e.F,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#float"])),xn(e.G,Bn,Z(X(Je,1),Pe,2,6,[ho,"EFloat",or,"EFloat:Object"])),xn(e.I,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#int"])),xn(e.J,Bn,Z(X(Je,1),Pe,2,6,[ho,"EInt",or,"EInt:Object"])),xn(e.N,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#long"])),xn(e.O,Bn,Z(X(Je,1),Pe,2,6,[ho,"ELong",or,"ELong:Object"])),xn(e.Z,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#short"])),xn(e.$,Bn,Z(X(Je,1),Pe,2,6,[ho,"EShort",or,"EShort:Object"])),xn(e._,Bn,Z(X(Je,1),Pe,2,6,[ho,"http://www.w3.org/2001/XMLSchema#string"]))}function Be(){Be=K,Ate=(_n(),W6t),HAe=K6t,vL=Y6t,od=J6t,o2=ANe,ym=_Ne,ev=xNe,ok=kNe,sk=NNe,_te=oU,vm=Od,xte=X6t,GI=RNe,EB=qT,yL=(Z0e(),FCt),Qy=$Ct,$1=BCt,tv=UCt,kIt=new Mi(HL,Re(0)),ik=MCt,UAe=PCt,FT=jCt,XAe=cIt,GAe=GCt,qAe=WCt,Nte=eIt,VAe=JCt,WAe=ZCt,SB=hIt,Cte=lIt,YAe=oIt,KAe=rIt,JAe=aIt,IAe=mCt,vte=hCt,bB=fCt,Ete=gCt,ow=CCt,zI=ICt,wte=U3t,yAe=z3t,OIt=wk,DIt=sU,RIt=dv,IIt=mk,zAe=(VS(),pv),new Mi(VT,zAe),PAe=new xb(12),MAe=new Mi(df,PAe),bAe=(gp(),Ek),kp=new Mi(tNe,bAe),Jy=new Mi(zu,0),NIt=new Mi(vre,Re(1)),aB=new Mi(gk,bx),wm=iU,Zr=bk,rk=m2,vIt=BL,Kf=L6t,Wy=h2,CIt=new Mi(Ere,(Lt(),!0)),Ky=UL,bm=fre,mm=Am,vB=G1,Tte=uv,gAe=(vi(),hf),xc=new Mi(Tm,gAe),iw=g2,wB=cNe,Xy=cv,xIt=yre,$Ae=SNe,FAe=(vE(),WL),new Mi(mNe,FAe),TIt=gre,AIt=bre,_It=mre,SIt=pre,kte=zCt,gB=dCt,wL=lCt,qI=HCt,Cs=rCt,jT=D3t,BI=O3t,tk=m3t,fAe=w3t,gte=S3t,mL=y3t,bte=I3t,RAe=wCt,OAe=yCt,_Ae=X3t,yB=DCt,Ste=SCt,yte=V3t,LAe=kCt,wAe=$3t,mte=B3t,pte=$L,DAe=vCt,cB=QNt,uAe=ZNt,uB=XNt,SAe=Y3t,EAe=K3t,TAe=J3t,nk=b2,ss=p2,_g=F6t,Yf=dre,i2=rU,hAe=A3t,xg=wre,PI=j6t,pB=B6t,sw=yNe,jAe=z6t,Yy=G6t,kAe=oCt,NAe=aCt,Zy=GT,lte=JNt,CAe=cCt,hB=P3t,fB=M3t,mB=Cp,xAe=eCt,HI=ACt,EL=CNe,pAe=L3t,BAe=LCt,mAe=j3t,mIt=x3t,wIt=k3t,EIt=nCt,yIt=N3t,AAe=hre,UI=iCt,dB=C3t,Ch=b3t,fte=h3t,bL=t3t,dte=n3t,lB=p3t,jI=e3t,hte=g3t,Vy=f3t,$I=d3t,bIt=l3t,PT=r3t,FI=c3t,dAe=u3t,cAe=i3t,lAe=s3t,vAe=W3t}function y3n(e,t,r,o,a,u,f){var p,m,y,v,T,N,O,M;return N=l(o.a,15).a,O=l(o.b,15).a,T=e.b,M=e.c,p=0,v=0,t==(vi(),as)||t==fs?(v=wO(bgt(ey(Oa(new Et(null,new St(r.b,16)),new fze),new YHe))),T.e.b+T.f.b/2>v?(y=++O,p=ue(ce(Xu(Jw(Oa(new Et(null,new St(r.b,16)),new jtt(a,y)),new JHe))))):(m=++N,p=ue(ce(Xu(NS(Oa(new Et(null,new St(r.b,16)),new Ftt(a,m)),new XHe)))))):(v=wO(bgt(ey(Oa(new Et(null,new St(r.b,16)),new oze),new WHe))),T.e.a+T.f.a/2>v?(y=++O,p=ue(ce(Xu(Jw(Oa(new Et(null,new St(r.b,16)),new Ptt(a,y)),new ZHe))))):(m=++N,p=ue(ce(Xu(NS(Oa(new Et(null,new St(r.b,16)),new Mtt(a,m)),new rze)))))),t==as?(Eo(e.a,new Me(ue(ce(F(T,(Nr(),Id))))-a,p)),Eo(e.a,new Me(M.e.a+M.f.a+a+u,p)),Eo(e.a,new Me(M.e.a+M.f.a+a+u,M.e.b+M.f.b/2)),Eo(e.a,new Me(M.e.a+M.f.a,M.e.b+M.f.b/2))):t==fs?(Eo(e.a,new Me(ue(ce(F(T,(Nr(),sd))))+a,T.e.b+T.f.b/2)),Eo(e.a,new Me(T.e.a+T.f.a+a,p)),Eo(e.a,new Me(M.e.a-a-u,p)),Eo(e.a,new Me(M.e.a-a-u,M.e.b+M.f.b/2)),Eo(e.a,new Me(M.e.a,M.e.b+M.f.b/2))):t==il?(Eo(e.a,new Me(p,ue(ce(F(T,(Nr(),Id))))-a)),Eo(e.a,new Me(p,M.e.b+M.f.b+a+u)),Eo(e.a,new Me(M.e.a+M.f.a/2,M.e.b+M.f.b+a+u)),Eo(e.a,new Me(M.e.a+M.f.a/2,M.e.b+M.f.b+a))):(e.a.b==0||(l(zl(e.a),8).b=ue(ce(F(T,(Nr(),sd))))+a*l(f.b,15).a),Eo(e.a,new Me(p,ue(ce(F(T,(Nr(),sd))))+a*l(f.b,15).a)),Eo(e.a,new Me(p,M.e.b-a*l(f.a,15).a-u))),new ko(Re(N),Re(O))}function v3n(e){var t,r,o,a,u,f,p,m,y,v,T,N,O;if(f=!0,T=null,o=null,a=null,t=!1,O=JDt,y=null,u=null,p=0,m=gY(e,p,_3e,x3e),m=0&&wt(e.substr(p,2),"//")?(p+=2,m=gY(e,p,O4,D4),o=(io(p,m,e.length),e.substr(p,m-p)),p=m):T!=null&&(p==e.length||(Yt(p,e.length),e.charCodeAt(p)!=47))&&(f=!1,m=xde(e,Qa(35),p),m==-1&&(m=e.length),o=(io(p,m,e.length),e.substr(p,m-p)),p=m);if(!r&&p0&&co(v,v.length-1)==58&&(a=v,p=m)),pf?(ac(e,t,r),1):(ac(e,r,t),-1)}for(ne=e.f,se=0,de=ne.length;se0?ac(e,t,r):ac(e,r,t),o;if(!gr(t,(Ie(),Cr))||!gr(r,Cr))return u=HY(e,t),p=HY(e,r),u>p?(ac(e,t,r),1):(ac(e,r,t),-1)}if(!N&&!M&&(o=zEt(e,t,r),o!=0))return o>0?ac(e,t,r):ac(e,r,t),o}return gr(t,(Ie(),Cr))&&gr(r,Cr)?(u=D0(t,r,e.c,l(F(e.c,F1),15).a),p=D0(r,t,e.c,l(F(e.c,F1),15).a),u>p?(ac(e,t,r),1):(ac(e,r,t),-1)):(ac(e,r,t),-1)}function HEt(){HEt=K,qJ(),Wn=new b0,yt(Wn,(He(),dd),gf),yt(Wn,Rl,gf),yt(Wn,Iu,gf),yt(Wn,fd,gf),yt(Wn,su,gf),yt(Wn,Ru,gf),yt(Wn,fd,dd),yt(Wn,gf,ol),yt(Wn,dd,ol),yt(Wn,Rl,ol),yt(Wn,Iu,ol),yt(Wn,ou,ol),yt(Wn,fd,ol),yt(Wn,su,ol),yt(Wn,Ru,ol),yt(Wn,Wa,ol),yt(Wn,gf,Nc),yt(Wn,dd,Nc),yt(Wn,ol,Nc),yt(Wn,Rl,Nc),yt(Wn,Iu,Nc),yt(Wn,ou,Nc),yt(Wn,fd,Nc),yt(Wn,Wa,Nc),yt(Wn,Cc,Nc),yt(Wn,su,Nc),yt(Wn,vu,Nc),yt(Wn,Ru,Nc),yt(Wn,dd,Rl),yt(Wn,Iu,Rl),yt(Wn,fd,Rl),yt(Wn,Ru,Rl),yt(Wn,dd,Iu),yt(Wn,Rl,Iu),yt(Wn,fd,Iu),yt(Wn,Iu,Iu),yt(Wn,su,Iu),yt(Wn,gf,sl),yt(Wn,dd,sl),yt(Wn,ol,sl),yt(Wn,Nc,sl),yt(Wn,Rl,sl),yt(Wn,Iu,sl),yt(Wn,ou,sl),yt(Wn,fd,sl),yt(Wn,Cc,sl),yt(Wn,Wa,sl),yt(Wn,Ru,sl),yt(Wn,su,sl),yt(Wn,ka,sl),yt(Wn,gf,Cc),yt(Wn,dd,Cc),yt(Wn,ol,Cc),yt(Wn,Rl,Cc),yt(Wn,Iu,Cc),yt(Wn,ou,Cc),yt(Wn,fd,Cc),yt(Wn,Wa,Cc),yt(Wn,Ru,Cc),yt(Wn,vu,Cc),yt(Wn,ka,Cc),yt(Wn,dd,Wa),yt(Wn,Rl,Wa),yt(Wn,Iu,Wa),yt(Wn,fd,Wa),yt(Wn,Cc,Wa),yt(Wn,Ru,Wa),yt(Wn,su,Wa),yt(Wn,gf,iu),yt(Wn,dd,iu),yt(Wn,ol,iu),yt(Wn,Rl,iu),yt(Wn,Iu,iu),yt(Wn,ou,iu),yt(Wn,fd,iu),yt(Wn,Wa,iu),yt(Wn,Ru,iu),yt(Wn,dd,su),yt(Wn,ol,su),yt(Wn,Nc,su),yt(Wn,Iu,su),yt(Wn,gf,vu),yt(Wn,dd,vu),yt(Wn,Nc,vu),yt(Wn,Rl,vu),yt(Wn,Iu,vu),yt(Wn,ou,vu),yt(Wn,fd,vu),yt(Wn,fd,ka),yt(Wn,Iu,ka),yt(Wn,Wa,gf),yt(Wn,Wa,Rl),yt(Wn,Wa,ol),yt(Wn,ou,gf),yt(Wn,ou,dd),yt(Wn,ou,Nc)}function E3n(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye;switch(r.Tg("Brandes & Koepf node placement",1),e.a=t,e.c=XAn(t),o=l(F(t,(Be(),Ste)),284),O=Ye(Ke(F(t,HI))),e.d=o==(K6(),X$)&&!O||o==Wee,qxn(e,t),Ee=null,ye=null,J=null,ne=null,z=(wc(4,Iy),new Da(4)),l(F(t,Ste),284).g){case 3:J=new NE(t,e.c.d,(zd(),Em),(If(),kg)),Ot(z.c,J);break;case 1:ne=new NE(t,e.c.d,(zd(),uf),(If(),kg)),Ot(z.c,ne);break;case 4:Ee=new NE(t,e.c.d,(zd(),Em),(If(),aw)),Ot(z.c,Ee);break;case 2:ye=new NE(t,e.c.d,(zd(),uf),(If(),aw)),Ot(z.c,ye);break;default:J=new NE(t,e.c.d,(zd(),Em),(If(),kg)),ne=new NE(t,e.c.d,uf,kg),Ee=new NE(t,e.c.d,Em,aw),ye=new NE(t,e.c.d,uf,aw),Ot(z.c,Ee),Ot(z.c,ye),Ot(z.c,J),Ot(z.c,ne)}for(a=new Ctt(t,e.c),p=new V(z);p.acJ(u))&&(T=u);for(!T&&(T=(at(0,z.c.length),l(z.c[0],188))),U=new V(t.b);U.a0?(ac(e,r,t),1):(ac(e,t,r),-1);if(v&&se)return ac(e,r,t),1;if(T&&ne)return ac(e,t,r),-1;if(T&&se)return 0}else for(ft=new V(y.j);ft.aT&&(Dt=0,on+=v+qe,v=0),Iyt(Ee,f,Dt,on),t=b.Math.max(t,Dt+ye.a),v=b.Math.max(v,ye.b),Dt+=ye.a+qe;for(de=new hn,r=new hn,ft=new V(e);ft.a=-1900?1:0,r>=4?zn(e,Z(X(Je,1),Pe,2,6,[u2t,c2t])[p]):zn(e,Z(X(Je,1),Pe,2,6,["BC","AD"])[p]);break;case 121:Z1n(e,r,o);break;case 77:eAn(e,r,o);break;case 107:m=a.q.getHours(),m==0?bh(e,24,r):bh(e,m,r);break;case 83:b2n(e,r,a);break;case 69:v=o.q.getDay(),r==5?zn(e,Z(X(Je,1),Pe,2,6,["S","M","T","W","T","F","S"])[v]):r==4?zn(e,Z(X(Je,1),Pe,2,6,[fX,hX,pX,gX,bX,mX,wX])[v]):zn(e,Z(X(Je,1),Pe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[v]);break;case 97:a.q.getHours()>=12&&a.q.getHours()<24?zn(e,Z(X(Je,1),Pe,2,6,["AM","PM"])[1]):zn(e,Z(X(Je,1),Pe,2,6,["AM","PM"])[0]);break;case 104:T=a.q.getHours()%12,T==0?bh(e,12,r):bh(e,T,r);break;case 75:N=a.q.getHours()%12,bh(e,N,r);break;case 72:O=a.q.getHours(),bh(e,O,r);break;case 99:M=o.q.getDay(),r==5?zn(e,Z(X(Je,1),Pe,2,6,["S","M","T","W","T","F","S"])[M]):r==4?zn(e,Z(X(Je,1),Pe,2,6,[fX,hX,pX,gX,bX,mX,wX])[M]):r==3?zn(e,Z(X(Je,1),Pe,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[M]):bh(e,M,1);break;case 76:U=o.q.getMonth(),r==5?zn(e,Z(X(Je,1),Pe,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[U]):r==4?zn(e,Z(X(Je,1),Pe,2,6,[tX,nX,rX,iX,lT,oX,sX,aX,uX,cX,lX,dX])[U]):r==3?zn(e,Z(X(Je,1),Pe,2,6,["Jan","Feb","Mar","Apr",lT,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[U]):bh(e,U+1,r);break;case 81:z=o.q.getMonth()/3|0,r<4?zn(e,Z(X(Je,1),Pe,2,6,["Q1","Q2","Q3","Q4"])[z]):zn(e,Z(X(Je,1),Pe,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[z]);break;case 100:J=o.q.getDate(),bh(e,J,r);break;case 109:y=a.q.getMinutes(),bh(e,y,r);break;case 115:f=a.q.getSeconds(),bh(e,f,r);break;case 122:r<4?zn(e,u.c[0]):zn(e,u.c[1]);break;case 118:zn(e,u.b);break;case 90:r<3?zn(e,bvn(u)):r==3?zn(e,vvn(u)):zn(e,Avn(u.a));break;default:return!1}return!0}function X0e(e,t,r,o){var a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft,It,Dt,on,qn;if(myt(t),m=l(oe((!t.b&&(t.b=new Tt(pn,t,4,7)),t.b),0),83),v=l(oe((!t.c&&(t.c=new Tt(pn,t,5,8)),t.c),0),83),p=Yo(m),y=Yo(v),f=(!t.a&&(t.a=new ke(jr,t,6,6)),t.a).i==0?null:l(oe((!t.a&&(t.a=new ke(jr,t,6,6)),t.a),0),171),qe=l(Ht(e.a,p),9),Dt=l(Ht(e.a,y),9),lt=null,on=null,ae(m,196)&&(ye=l(Ht(e.a,m),248),ae(ye,12)?lt=l(ye,12):ae(ye,9)&&(qe=l(ye,9),lt=l(ze(qe.j,0),12))),ae(v,196)&&(It=l(Ht(e.a,v),248),ae(It,12)?on=l(It,12):ae(It,9)&&(Dt=l(It,9),on=l(ze(Dt.j,0),12))),!qe||!Dt)throw Y(new cS("The source or the target of edge "+t+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(U=new p0,qs(U,t),Te(U,(Ie(),mr),t),Te(U,(Be(),ss),null),O=l(F(o,xa),24),qe==Dt&&O.Ec((Fo(),II)),lt||(Ee=(jo(),Ba),ft=null,f&&tE(l(F(qe,Zr),103))&&(ft=new Me(f.j,f.k),Mct(ft,ty(t)),ult(ft,r),uy(y,p)&&(Ee=Cu,br(ft,qe.n))),lt=Tvt(qe,ft,Ee,o)),on||(Ee=(jo(),Cu),qn=null,f&&tE(l(F(Dt,Zr),103))&&(qn=new Me(f.b,f.c),Mct(qn,ty(t)),ult(qn,r)),on=Tvt(Dt,qn,Ee,ji(Dt))),bo(U,lt),Ji(U,on),(lt.e.c.length>1||lt.g.c.length>1||on.e.c.length>1||on.g.c.length>1)&&O.Ec((Fo(),CI)),N=new tn((!t.n&&(t.n=new ke(Rs,t,1,7)),t.n));N.e!=N.i.gc();)if(T=l(rn(N),158),!Ye(Ke(ve(T,wm)))&&T.a)switch(z=KK(T),Fe(U.b,z),l(F(z,Yf),281).g){case 1:case 2:O.Ec((Fo(),Zx));break;case 0:O.Ec((Fo(),Xx)),Te(z,Yf,(Kd(),yk))}if(u=l(F(o,BI),302),J=l(F(o,yB),329),a=u==(lC(),aL)||J==(hC(),jte),f&&(!f.a&&(f.a=new yi(Ic,f,5)),f.a).i!=0&&a){for(ne=gyn(f),M=new Lu,de=An(ne,0);de.b!=de.d.c;)se=l(Sn(de),8),Gn(M,new So(se));Te(U,vTe,M)}return U}function _3n(e,t,r,o){var a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft,It,Dt,on,qn,Gr;for(ft=0,It=0,qe=new hn,Ee=l(Xu(Jw(Oa(new Et(null,new St(e.b,16)),new ize),new KHe)),15).a+1,lt=we(Rn,Qn,30,Ee,15,1),z=we(Rn,Qn,30,Ee,15,1),U=0;U1)for(p=on+1;py.b.e.b*(1-J)+y.c.e.b*J));M++);if(ye.gc()>0&&(qn=y.a.b==0?To(y.b.e):l(zl(y.a),8),se=br(To(l(ye.Xb(ye.gc()-1),41).e),l(ye.Xb(ye.gc()-1),41).f),N=br(To(l(ye.Xb(0),41).e),l(ye.Xb(0),41).f),M>=ye.gc()-1&&qn.b>se.b&&y.c.e.b>se.b||M<=0&&qn.by.b.e.a*(1-J)+y.c.e.a*J));M++);if(ye.gc()>0&&(qn=y.a.b==0?To(y.b.e):l(zl(y.a),8),se=br(To(l(ye.Xb(ye.gc()-1),41).e),l(ye.Xb(ye.gc()-1),41).f),N=br(To(l(ye.Xb(0),41).e),l(ye.Xb(0),41).f),M>=ye.gc()-1&&qn.a>se.a&&y.c.e.a>se.a||M<=0&&qn.a=ue(ce(F(e,(Nr(),q_e))))&&++It):(O.f&&O.d.e.a<=ue(ce(F(e,(Nr(),tne))))&&++ft,O.g&&O.c.e.a+O.c.f.a>=ue(ce(F(e,(Nr(),G_e))))&&++It)}else de==0?hme(y):de<0&&(++lt[on],++z[Gr],Dt=y3n(y,t,e,new ko(Re(ft),Re(It)),r,o,new ko(Re(z[Gr]),Re(lt[on]))),ft=l(Dt.a,15).a,It=l(Dt.b,15).a)}function x3n(e){e.gb||(e.gb=!0,e.b=Ps(e,0),Jr(e.b,18),Lr(e.b,19),e.a=Ps(e,1),Jr(e.a,1),Lr(e.a,2),Lr(e.a,3),Lr(e.a,4),Lr(e.a,5),e.o=Ps(e,2),Jr(e.o,8),Jr(e.o,9),Lr(e.o,10),Lr(e.o,11),Lr(e.o,12),Lr(e.o,13),Lr(e.o,14),Lr(e.o,15),Lr(e.o,16),Lr(e.o,17),Lr(e.o,18),Lr(e.o,19),Lr(e.o,20),Lr(e.o,21),Lr(e.o,22),Lr(e.o,23),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),is(e.o),e.p=Ps(e,3),Jr(e.p,2),Jr(e.p,3),Jr(e.p,4),Jr(e.p,5),Lr(e.p,6),Lr(e.p,7),is(e.p),is(e.p),e.q=Ps(e,4),Jr(e.q,8),e.v=Ps(e,5),Lr(e.v,9),is(e.v),is(e.v),is(e.v),e.w=Ps(e,6),Jr(e.w,2),Jr(e.w,3),Jr(e.w,4),Lr(e.w,5),e.B=Ps(e,7),Lr(e.B,1),is(e.B),is(e.B),is(e.B),e.Q=Ps(e,8),Lr(e.Q,0),is(e.Q),e.R=Ps(e,9),Jr(e.R,1),e.S=Ps(e,10),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),is(e.S),e.T=Ps(e,11),Lr(e.T,10),Lr(e.T,11),Lr(e.T,12),Lr(e.T,13),Lr(e.T,14),is(e.T),is(e.T),e.U=Ps(e,12),Jr(e.U,2),Jr(e.U,3),Lr(e.U,4),Lr(e.U,5),Lr(e.U,6),Lr(e.U,7),is(e.U),e.V=Ps(e,13),Lr(e.V,10),e.W=Ps(e,14),Jr(e.W,18),Jr(e.W,19),Jr(e.W,20),Lr(e.W,21),Lr(e.W,22),Lr(e.W,23),e.bb=Ps(e,15),Jr(e.bb,10),Jr(e.bb,11),Jr(e.bb,12),Jr(e.bb,13),Jr(e.bb,14),Jr(e.bb,15),Jr(e.bb,16),Lr(e.bb,17),is(e.bb),is(e.bb),e.eb=Ps(e,16),Jr(e.eb,2),Jr(e.eb,3),Jr(e.eb,4),Jr(e.eb,5),Jr(e.eb,6),Jr(e.eb,7),Lr(e.eb,8),Lr(e.eb,9),e.ab=Ps(e,17),Jr(e.ab,0),Jr(e.ab,1),e.H=Ps(e,18),Lr(e.H,0),Lr(e.H,1),Lr(e.H,2),Lr(e.H,3),Lr(e.H,4),Lr(e.H,5),is(e.H),e.db=Ps(e,19),Lr(e.db,2),e.c=rr(e,20),e.d=rr(e,21),e.e=rr(e,22),e.f=rr(e,23),e.i=rr(e,24),e.g=rr(e,25),e.j=rr(e,26),e.k=rr(e,27),e.n=rr(e,28),e.r=rr(e,29),e.s=rr(e,30),e.t=rr(e,31),e.u=rr(e,32),e.fb=rr(e,33),e.A=rr(e,34),e.C=rr(e,35),e.D=rr(e,36),e.F=rr(e,37),e.G=rr(e,38),e.I=rr(e,39),e.J=rr(e,40),e.L=rr(e,41),e.M=rr(e,42),e.N=rr(e,43),e.O=rr(e,44),e.P=rr(e,45),e.X=rr(e,46),e.Y=rr(e,47),e.Z=rr(e,48),e.$=rr(e,49),e._=rr(e,50),e.cb=rr(e,51),e.K=rr(e,52))}function qEt(e,t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se;if(wvt(e,t),(!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e).i!=0){for(p=new je,O=0;O<(!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e).i;O++)a=l(oe(a_(l(oe((!t.e&&(t.e=new Tt(Ir,t,7,4)),t.e),O),74)),0),19),qEt(e,a),Ot(p.c,a);for(m=p.c.length,M=0;M0&&(at(N,p.c.length),l(p.c[N],19)).mh()-l((at(N,p.c.length),l(p.c[N],19)).mf((_n(),Cp)),125).b-t.g/2>=0;)--N;if(N=0;r--)y=z;)(at(Ee,f.c.length),l(f.c[Ee],19)).nh()>z&&(J=Ee,z=(at(Ee,f.c.length),l(f.c[Ee],19)).nh()),Ee+=1;if(ne=0,Ee>0&&(ne=((at(J,f.c.length),l(f.c[J],19)).mh()+(at(Ee-1,f.c.length),l(f.c[Ee-1],19)).mh()+(at(Ee-1,f.c.length),l(f.c[Ee-1],19)).lh())/2-t.i-t.g/2),!Ye(Ke(ve(t,(QS(),Xne))))){if(r=((at(0,f.c.length),l(f.c[0],19)).mh()+l(ze(f,f.c.length-1),19).mh()+l(ze(f,f.c.length-1),19).lh()-t.g)/2-t.i,rne){for(y=Ee;y0&&(p=l(zl(l(u.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(a),65).a),8).b,O=v.e.b+v.f.b/2,o>0&&b.Math.abs(m-O)/(b.Math.abs(p-N)/40)>50&&(O>m?Eo(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a+o/5.3,v.e.b+v.f.b*f-o/2)):Eo(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a+o/5.3,v.e.b+v.f.b*f+o/2)))),Eo(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a,v.e.b+v.f.b*f))):t==fs?(y=ue(ce(F(v,(Nr(),Id)))),v.e.a-o>y?Eo(l(u.Xb(a),65).a,new Me(y-r,v.e.b+v.f.b*f)):l(u.Xb(a),65).a.b>0&&(p=l(zl(l(u.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(a),65).a),8).b,O=v.e.b+v.f.b/2,o>0&&b.Math.abs(m-O)/(b.Math.abs(p-N)/40)>50&&(O>m?Eo(l(u.Xb(a),65).a,new Me(v.e.a-o/5.3,v.e.b+v.f.b*f-o/2)):Eo(l(u.Xb(a),65).a,new Me(v.e.a-o/5.3,v.e.b+v.f.b*f+o/2)))),Eo(l(u.Xb(a),65).a,new Me(v.e.a,v.e.b+v.f.b*f))):t==il?(y=ue(ce(F(v,(Nr(),sd)))),v.e.b+v.f.b+o0&&(p=l(zl(l(u.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(a),65).a),8).b,O=v.e.b+v.f.b/2,o>0&&b.Math.abs(p-N)/(b.Math.abs(m-O)/40)>50&&(N>p?Eo(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f-o/2,v.e.b+o/5.3+v.f.b)):Eo(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f+o/2,v.e.b+o/5.3+v.f.b)))),Eo(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f,v.e.b+v.f.b))):(y=ue(ce(F(v,(Nr(),Id)))),apt(l(u.Xb(a),65),e)?Eo(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f,l(zl(l(u.Xb(a),65).a),8).b)):v.e.b-o>y?Eo(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f,y-r)):l(u.Xb(a),65).a.b>0&&(p=l(zl(l(u.Xb(a),65).a),8).a,N=v.e.a+v.f.a/2,m=l(zl(l(u.Xb(a),65).a),8).b,O=v.e.b+v.f.b/2,o>0&&b.Math.abs(p-N)/(b.Math.abs(m-O)/40)>50&&(N>p?Eo(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f-o/2,v.e.b-o/5.3)):Eo(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f+o/2,v.e.b-o/5.3)))),Eo(l(u.Xb(a),65).a,new Me(v.e.a+v.f.a*f,v.e.b)))}function WEt(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye;if(f=t,N=r,ma(e.a,f)){if(bl(l(Ht(e.a,f),47),N))return 1}else Jn(e.a,f,new hi);if(ma(e.a,N)){if(bl(l(Ht(e.a,N),47),f))return-1}else Jn(e.a,N,new hi);if(ma(e.e,f)){if(bl(l(Ht(e.e,f),47),N))return-1}else Jn(e.e,f,new hi);if(ma(e.e,N)){if(bl(l(Ht(e.a,N),47),f))return 1}else Jn(e.e,N,new hi);if(f.j!=N.j)return Ee=Ven(f.j,N.j),Ee>0?Zc(e,f,N,1):Zc(e,N,f,1),Ee;if(ye=1,f.e.c.length!=0&&N.e.c.length!=0){if((f.j==(He(),Kt)&&N.j==Kt||f.j==Wt&&N.j==Wt||f.j==dn&&N.j==dn)&&(ye=-ye),v=l(ze(f.e,0),17).c,z=l(ze(N.e,0),17).c,m=v.i,M=z.i,m==M)for(se=new V(m.j);se.a0?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye);if(o=Zpt(l(Au(tW(e.d),ju(new Qo,new ls,new Ni,Z(X(ru,1),Ce,132,0,[(Yc(),nu)]))),22),m,M),o!=0)return o>0?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye);if(e.c&&(Ee=N1t(e,f,N),Ee!=0))return Ee>0?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye)}return f.g.c.length!=0&&N.g.c.length!=0?((f.j==(He(),Kt)&&N.j==Kt||f.j==dn&&N.j==dn)&&(ye=-ye),T=l(F(f,(Ie(),rte)),9),J=l(F(N,rte),9),e.f==(bp(),Bte)&&T&&J&&gr(T,Cr)&&gr(J,Cr)?(p=D0(T,J,e.b,l(F(e.b,F1),15).a),O=D0(J,T,e.b,l(F(e.b,F1),15).a),p>O?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye)):e.c&&(Ee=N1t(e,f,N),Ee!=0)?Ee>0?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye):(y=0,U=0,gr(l(ze(f.g,0),17),Cr)&&(y=D0(l(ze(f.g,0),248),l(ze(N.g,0),248),e.b,f.g.c.length+f.e.c.length)),gr(l(ze(N.g,0),17),Cr)&&(U=D0(l(ze(N.g,0),248),l(ze(f.g,0),248),e.b,N.g.c.length+N.e.c.length)),T&&T==J||e.g&&(e.g._b(T)&&(y=l(e.g.xc(T),15).a),e.g._b(J)&&(U=l(e.g.xc(J),15).a)),y>U?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye))):f.e.c.length!=0&&N.g.c.length!=0?(Zc(e,f,N,ye),1):f.g.c.length!=0&&N.e.c.length!=0?(Zc(e,N,f,ye),-1):gr(f,(Ie(),Cr))&&gr(N,Cr)?(u=f.i.j.c.length,p=D0(f,N,e.b,u),O=D0(N,f,e.b,u),(f.j==(He(),Kt)&&N.j==Kt||f.j==dn&&N.j==dn)&&(ye=-ye),p>O?(Zc(e,f,N,ye),ye):(Zc(e,N,f,ye),-ye)):(Zc(e,N,f,ye),-ye)}function Ie(){Ie=K;var e,t;mr=new cr(xwe),bTe=new cr("coordinateOrigin"),ote=new cr("processors"),gTe=new Pr("compoundNode",(Lt(),!1)),hL=new Pr("insideConnections",!1),vTe=new cr("originalBendpoints"),ETe=new cr("originalDummyNodePosition"),STe=new cr("originalLabelEdge"),OI=new cr("representedLabels"),RI=new cr("endLabels"),IT=new cr("endLabel.origin"),OT=new Pr("labelSide",(vc(),VL)),QE=new Pr("maxEdgeThickness",0),Ag=new Pr("reversed",!1),DT=new cr(V2t),Cd=new Pr("longEdgeSource",null),Nl=new Pr("longEdgeTarget",null),qy=new Pr("longEdgeHasLabelDummies",!1),pL=new Pr("longEdgeBeforeLabelDummy",!1),rB=new Pr("edgeConstraint",(Vb(),Uee)),tw=new cr("inLayerLayoutUnit"),hm=new Pr("inLayerConstraint",(lp(),dL)),RT=new Pr("inLayerSuccessorConstraint",new je),yTe=new Pr("inLayerSuccessorConstraintBetweenNonDummies",!1),Nu=new cr("portDummy"),nB=new Pr("crossingHint",Re(0)),xa=new Pr("graphProperties",(t=l(md(Kee),10),new Hc(t,l(Gl(t,t.length),10),0))),Hs=new Pr("externalPortSide",(He(),Is)),wTe=new Pr("externalPortSize",new ro),ete=new cr("externalPortReplacedDummies"),iB=new cr("externalPortReplacedDummy"),_p=new Pr("externalPortConnections",(e=l(md(Io),10),new Hc(e,l(Gl(e,e.length),10),0))),nw=new Pr(U2t,0),pTe=new cr("barycenterAssociates"),MT=new cr("TopSideComments"),NT=new cr("BottomSideComments"),tB=new cr("CommentConnectionPort"),nte=new Pr("inputCollect",!1),ite=new Pr("outputCollect",!1),CT=new Pr("cyclic",!1),mTe=new cr("crossHierarchyMap"),ate=new cr("targetOffset"),new Pr("splineLabelSize",new ro),t2=new cr("spacings"),oB=new Pr("partitionConstraint",!1),ew=new cr("breakingPoint.info"),_Te=new cr("splines.survivingEdge"),pm=new cr("splines.route.start"),n2=new cr("splines.edgeChain"),ATe=new cr("originalPortConstraints"),rw=new cr("selfLoopHolder"),ek=new cr("splines.nsPortY"),Cr=new cr("modelOrder"),F1=new cr("modelOrder.maximum"),fL=new cr("modelOrderGroups.cb.number"),rte=new cr("longEdgeTargetNode"),j1=new Pr(wSt,!1),e2=new Pr(wSt,!1),tte=new cr("layerConstraints.hiddenNodes"),TTe=new cr("layerConstraints.opposidePort"),ste=new cr("targetNode.modelOrder"),LT=new Pr("tarjan.lowlink",Re(sr)),DI=new Pr("tarjan.id",Re(-1)),sB=new Pr("tarjan.onstack",!1),WNt=new Pr("partOfCycle",!1),r2=new cr("medianHeuristic.weight")}function _n(){_n=K;var e,t;zT=new cr(hTt),lv=new cr(pTt),Jke=(mh(),sre),L6t=new pt(Pye,Jke),gk=new pt(mx,null),M6t=new cr(rEe),Zke=(Zb(),xr(cre,Z(X(lre,1),Ce,300,0,[ure]))),$L=new pt(CF,Zke),BL=new pt(UD,(Lt(),!1)),Qke=(vi(),hf),Tm=new pt(TZ,Qke),nNe=(gp(),Sre),tNe=new pt(BD,nNe),$6t=new pt(tEe,!1),iNe=(pp(),cU),h2=new pt(NF,iNe),gNe=new xb(12),df=new pt(B0,gNe),y4=new pt(wx,!1),hre=new pt(RF,!1),v4=new pt(yx,!1),vNe=(qi(),W1),bk=new pt(lF,vNe),GT=new cr(IF),HL=new cr(CD),vre=new cr(cF),Ere=new cr(WC),aNe=new Lu,p2=new pt(Wye,aNe),j6t=new pt(Xye,!1),B6t=new pt(Zye,!1),new pt(gTt,0),uNe=new FN,Cp=new pt(xZ,uNe),iU=new pt(Lye,!1),V6t=new pt(bTt,1),av=new cr(mTt),sv=new cr(wTt),wk=new pt(RD,!1),new pt(yTt,!0),Re(0),new pt(vTt,Re(100)),new pt(ETt,!1),Re(0),new pt(STt,Re(4e3)),Re(0),new pt(TTt,Re(400)),new pt(ATt,!1),new pt(_Tt,!1),new pt(xTt,!0),new pt(kTt,!1),Xke=(Kj(),Nre),P6t=new pt(nEe,Xke),sNe=(V3(),YL),H6t=new pt(NTt,sNe),oNe=(O_(),zL),U6t=new pt(CTt,oNe),W6t=new pt(Sye,10),K6t=new pt(Tye,10),Y6t=new pt(Aye,20),J6t=new pt(_ye,10),ANe=new pt(LX,2),_Ne=new pt(SZ,10),xNe=new pt(xye,0),oU=new pt(Cye,5),kNe=new pt(kye,1),NNe=new pt(Nye,1),Od=new pt($0,20),X6t=new pt(Iye,10),RNe=new pt(Rye,10),qT=new cr(Oye),INe=new znt,CNe=new pt(eve,INe),G6t=new cr(_Z),bNe=!1,z6t=new pt(AZ,bNe),lNe=new xb(5),cNe=new pt($ye,lNe),dNe=(Ty(),t=l(md(zo),10),new Hc(t,l(Gl(t,t.length),10),0)),g2=new pt(Ex,dNe),wNe=(vE(),V1),mNe=new pt(Hye,wNe),gre=new cr(zye),bre=new cr(Gye),mre=new cr(qye),pre=new cr(Vye),fNe=(e=l(md(N4),10),new Hc(e,l(Gl(e,e.length),10),0)),Am=new pt(ME,fNe),pNe=ct((Uu(),Tk)),G1=new pt(bT,pNe),hNe=new Me(0,0),b2=new pt(mT,hNe),uv=new pt(vx,!1),eNe=(Kd(),yk),dre=new pt(Yye,eNe),rU=new pt(ID,!1),Re(1),new pt(ITt,null),yNe=new cr(Qye),wre=new cr(Jye),TNe=(He(),Is),m2=new pt(Mye,TNe),zu=new cr(Dye),ENe=(xu(),ct(K1)),cv=new pt(Sx,ENe),yre=new pt(Bye,!1),SNe=new pt(Uye,!0),Re(1),nDt=new pt(XZ,Re(3)),Re(1),iDt=new pt(iEe,Re(4)),sU=new pt(OD,1),aU=new pt(ZZ,null),dv=new pt(DD,150),mk=new pt(LD,1.414),VT=new pt(U0,null),Z6t=new pt(oEe,1),UL=new pt(jye,!1),fre=new pt(Fye,!1),F6t=new pt(Kye,1),rNe=(T7(),Are),new pt(RTt,rNe),q6t=!0,rDt=(qP(),kre),eDt=(VS(),pv),tDt=pv,Q6t=pv}function Zi(){Zi=K,dSe=new bi("DIRECTION_PREPROCESSOR",0),uSe=new bi("COMMENT_PREPROCESSOR",1),VE=new bi("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),wee=new bi("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),ISe=new bi("PARTITION_PREPROCESSOR",4),C$=new bi("LABEL_DUMMY_INSERTER",5),$$=new bi("SELF_LOOP_PREPROCESSOR",6),Uy=new bi("LAYER_CONSTRAINT_PREPROCESSOR",7),NSe=new bi("PARTITION_MIDPROCESSOR",8),ySe=new bi("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),xSe=new bi("NODE_PROMOTION",10),By=new bi("LAYER_CONSTRAINT_POSTPROCESSOR",11),CSe=new bi("PARTITION_POSTPROCESSOR",12),bSe=new bi("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),RSe=new bi("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),nSe=new bi("BREAKING_POINT_INSERTER",15),D$=new bi("LONG_EDGE_SPLITTER",16),yee=new bi("PORT_SIDE_PROCESSOR",17),k$=new bi("INVERTED_PORT_PROCESSOR",18),P$=new bi("PORT_LIST_SORTER",19),DSe=new bi("SORT_BY_INPUT_ORDER_OF_MODEL",20),M$=new bi("NORTH_SOUTH_PORT_PREPROCESSOR",21),rSe=new bi("BREAKING_POINT_PROCESSOR",22),kSe=new bi(lSt,23),LSe=new bi(dSt,24),j$=new bi("SELF_LOOP_PORT_RESTORER",25),tSe=new bi("ALTERNATING_LAYER_UNZIPPER",26),OSe=new bi("SINGLE_EDGE_GRAPH_WRAPPER",27),N$=new bi("IN_LAYER_CONSTRAINT_PROCESSOR",28),hSe=new bi("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",29),ASe=new bi("LABEL_AND_NODE_SIZE_PROCESSOR",30),TSe=new bi("INNERMOST_NODE_MARGIN_CALCULATOR",31),B$=new bi("SELF_LOOP_ROUTER",32),sSe=new bi("COMMENT_NODE_MARGIN_CALCULATOR",33),x$=new bi("END_LABEL_PREPROCESSOR",34),R$=new bi("LABEL_DUMMY_SWITCHER",35),oSe=new bi("CENTER_LABEL_MANAGEMENT_PROCESSOR",36),Gx=new bi("LABEL_SIDE_SELECTOR",37),ESe=new bi("HYPEREDGE_DUMMY_MERGER",38),mSe=new bi("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",39),_Se=new bi("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",40),_I=new bi("HIERARCHICAL_PORT_POSITION_PROCESSOR",41),cSe=new bi("CONSTRAINTS_POSTPROCESSOR",42),aSe=new bi("COMMENT_POSTPROCESSOR",43),SSe=new bi("HYPERNODE_PROCESSOR",44),wSe=new bi("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",45),O$=new bi("LONG_EDGE_JOINER",46),F$=new bi("SELF_LOOP_POSTPROCESSOR",47),iSe=new bi("BREAKING_POINT_REMOVER",48),L$=new bi("NORTH_SOUTH_PORT_POSTPROCESSOR",49),vSe=new bi("HORIZONTAL_COMPACTOR",50),I$=new bi("LABEL_DUMMY_REMOVER",51),pSe=new bi("FINAL_SPLINE_BENDPOINTS_CALCULATOR",52),fSe=new bi("END_LABEL_SORTER",53),xT=new bi("REVERSED_EDGE_RESTORER",54),_$=new bi("END_LABEL_POSTPROCESSOR",55),gSe=new bi("HIERARCHICAL_NODE_RESIZER",56),lSe=new bi("DIRECTION_POSTPROCESSOR",57)}function N3n(e,t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft,It,Dt,on,qn,Gr,Ou,us,Rc,T2,jg,hd,Dp,ul,QT,U4,Lp,Md,Fg,Nm,Cm,eA,Im,Rm,Mp,Sv,sCe,gw,H4,qre,tA,z4,Tv,G4,Vre,WLt;for(sCe=0,qn=t,us=0,jg=qn.length;us0&&(e.a[Md.p]=sCe++)}for(z4=0,Gr=r,Rc=0,hd=Gr.length;Rc0;){for(Md=(un(eA.b>0),l(eA.a.Xb(eA.c=--eA.b),12)),Cm=0,p=new V(Md.e);p.a0&&(Md.j==(He(),Wt)?(e.a[Md.p]=z4,++z4):(e.a[Md.p]=z4+Dp+QT,++QT))}z4+=QT}for(Nm=new hn,M=new uh,on=t,Ou=0,T2=on.length;Ouy.b&&(y.b=Im)):Md.i.c==Sv&&(Imy.c&&(y.c=Im));for(g_(U,0,U.length,null),tA=we(Rn,Qn,30,U.length,15,1),o=we(Rn,Qn,30,z4+1,15,1),J=0;J0;)qe%2>0&&(a+=Vre[qe+1]),qe=(qe-1)/2|0,++Vre[qe];for(ft=we(m4t,Rt,371,U.length*2,0,1),de=0;de0&&JO(Ou.f),ve(J,aU)!=null&&(!J.a&&(J.a=new ke(En,J,10,11)),!!J.a)&&(!J.a&&(J.a=new ke(En,J,10,11)),J.a).i>0?(p=l(ve(J,aU),525),Cm=p.Sg(J),i0(J,b.Math.max(J.g,Cm.a+Dp.b+Dp.c),b.Math.max(J.f,Cm.b+Dp.d+Dp.a))):(!J.a&&(J.a=new ke(En,J,10,11)),J.a).i!=0&&(Cm=new Me(ue(ce(ve(J,dv))),ue(ce(ve(J,dv)))/ue(ce(ve(J,mk)))),i0(J,b.Math.max(J.g,Cm.a+Dp.b+Dp.c),b.Math.max(J.f,Cm.b+Dp.d+Dp.a)));if(hd=l(ve(t,df),100),O=t.g-(hd.b+hd.c),N=t.f-(hd.d+hd.a),Rm.ah("Available Child Area: ("+O+"|"+N+")"),Vn(t,gk,O/N),u1t(t,a,o.dh(T2)),l(ve(t,VT),283)==gU&&(GJ(t),i0(t,hd.b+ue(ce(ve(t,av)))+hd.c,hd.d+ue(ce(ve(t,sv)))+hd.a)),Rm.ah("Executed layout algorithm: "+In(ve(t,zT))+" on node "+t.k),l(ve(t,VT),283)==pv){if(O<0||N<0)throw Y(new _f("The size defined by the parent parallel node is too small for the space provided by the paddings of the child hierarchical node. "+t.k));for(Gc(t,av)||Gc(t,sv)||GJ(t),U=ue(ce(ve(t,av))),M=ue(ce(ve(t,sv))),Rm.ah("Desired Child Area: ("+U+"|"+M+")"),QT=O/U,U4=N/M,ul=b.Math.min(QT,b.Math.min(U4,ue(ce(ve(t,Z6t))))),Vn(t,sU,ul),Rm.ah(t.k+" -- Local Scale Factor (X|Y): ("+QT+"|"+U4+")"),de=l(ve(t,$L),24),u=0,f=0,ul'?":wt(lAt,e)?"'(?<' or '(? toIndex: ",gwe=", toIndex: ",bwe="Index: ",mwe=", Size: ",hx="org.eclipse.elk.alg.common",Un={50:1},T2t="org.eclipse.elk.alg.common.compaction",A2t="Scanline/EventHandler",Ah="org.eclipse.elk.alg.common.compaction.oned",_2t="CNode belongs to another CGroup.",x2t="ISpacingsHandler/1",NX="The ",CX=" instance has been finished already.",k2t="The direction ",N2t=" is not supported by the CGraph instance.",C2t="OneDimensionalCompactor",I2t="OneDimensionalCompactor/lambda$0$Type",R2t="Quadruplet",O2t="ScanlineConstraintCalculator",D2t="ScanlineConstraintCalculator/ConstraintsScanlineHandler",L2t="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",M2t="ScanlineConstraintCalculator/Timestamp",P2t="ScanlineConstraintCalculator/lambda$0$Type",Uf={181:1,48:1},GC="org.eclipse.elk.alg.common.networksimplex",Ad={172:1,3:1,4:1},j2t="org.eclipse.elk.alg.common.nodespacing",rm="org.eclipse.elk.alg.common.nodespacing.cellsystem",px="CENTER",F2t={219:1,338:1},wwe={3:1,4:1,5:1,599:1},hT="LEFT",pT="RIGHT",ywe="Vertical alignment cannot be null",vwe="BOTTOM",aF="org.eclipse.elk.alg.common.nodespacing.internal",qC="UNDEFINED",nf=.01,xD="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",$2t="LabelPlacer/lambda$0$Type",B2t="LabelPlacer/lambda$1$Type",U2t="portRatioOrPosition",gx="org.eclipse.elk.alg.common.overlaps",IX="DOWN",gT="org.eclipse.elk.alg.common.spore",Oy={3:1,4:1,5:1,200:1},H2t={3:1,6:1,4:1,5:1,91:1,111:1},RX="org.eclipse.elk.alg.force",Ewe="ComponentsProcessor",z2t="ComponentsProcessor/1",Swe="ElkGraphImporter/lambda$0$Type",im={207:1},LE="org.eclipse.elk.core",kD="org.eclipse.elk.graph.properties",G2t="IPropertyHolder",ND="org.eclipse.elk.alg.force.graph",q2t="Component Layout",Twe="org.eclipse.elk.alg.force.model",Ns="org.eclipse.elk.core.data",uF="org.eclipse.elk.force.model",Awe="org.eclipse.elk.force.iterations",_we="org.eclipse.elk.force.repulsivePower",OX="org.eclipse.elk.force.temperature",Hf=.001,DX="org.eclipse.elk.force.repulsion",td={139:1},VC="org.eclipse.elk.alg.force.options",bx=1.600000023841858,Ga="org.eclipse.elk.force",CD="org.eclipse.elk.priority",$0="org.eclipse.elk.spacing.nodeNode",LX="org.eclipse.elk.spacing.edgeLabel",mx="org.eclipse.elk.aspectRatio",cF="org.eclipse.elk.randomSeed",WC="org.eclipse.elk.separateConnectedComponents",B0="org.eclipse.elk.padding",wx="org.eclipse.elk.interactive",lF="org.eclipse.elk.portConstraints",ID="org.eclipse.elk.edgeLabels.inline",yx="org.eclipse.elk.omitNodeMicroLayout",vx="org.eclipse.elk.nodeSize.fixedGraphSize",bT="org.eclipse.elk.nodeSize.options",ME="org.eclipse.elk.nodeSize.constraints",Ex="org.eclipse.elk.nodeLabels.placement",Sx="org.eclipse.elk.portLabels.placement",RD="org.eclipse.elk.topdownLayout",OD="org.eclipse.elk.topdown.scaleFactor",DD="org.eclipse.elk.topdown.hierarchicalNodeWidth",LD="org.eclipse.elk.topdown.hierarchicalNodeAspectRatio",U0="org.eclipse.elk.topdown.nodeType",xwe="origin",V2t="random",W2t="boundingBox.upLeft",K2t="boundingBox.lowRight",kwe="org.eclipse.elk.stress.fixed",Nwe="org.eclipse.elk.stress.desiredEdgeLength",Cwe="org.eclipse.elk.stress.dimension",Iwe="org.eclipse.elk.stress.epsilon",Rwe="org.eclipse.elk.stress.iterationLimit",N1="org.eclipse.elk.stress",Y2t="ELK Stress",mT="org.eclipse.elk.nodeSize.minimum",dF="org.eclipse.elk.alg.force.stress",J2t="Layered layout",wT="org.eclipse.elk.alg.layered",MD="org.eclipse.elk.alg.layered.compaction.components",KC="org.eclipse.elk.alg.layered.compaction.oned",fF="org.eclipse.elk.alg.layered.compaction.oned.algs",om="org.eclipse.elk.alg.layered.compaction.recthull",rf="org.eclipse.elk.alg.layered.components",_d="NONE",MX="MODEL_ORDER",ea={3:1,6:1,4:1,10:1,5:1,128:1},X2t={3:1,6:1,4:1,5:1,137:1,91:1,111:1},hF="org.eclipse.elk.alg.layered.compound",kr={43:1},ca="org.eclipse.elk.alg.layered.graph",PX=" -> ",Z2t="Not supported by LGraph",Owe="Port side is undefined",Tx={3:1,6:1,4:1,5:1,324:1,137:1,91:1,111:1},vg={3:1,6:1,4:1,5:1,137:1,201:1,212:1,91:1,111:1},Q2t={3:1,6:1,4:1,5:1,137:1,2021:1,212:1,91:1,111:1},eSt=`([{"' \r +`,tSt=`)]}"' \r +`,nSt="The given string contains parts that cannot be parsed as numbers.",PD="org.eclipse.elk.core.math",rSt={3:1,4:1,125:1,216:1,419:1},iSt={3:1,4:1,100:1,216:1,419:1},Eg="org.eclipse.elk.alg.layered.graph.transform",oSt="ElkGraphImporter",sSt="ElkGraphImporter/lambda$1$Type",aSt="ElkGraphImporter/lambda$2$Type",uSt="ElkGraphImporter/lambda$4$Type",Zt="org.eclipse.elk.alg.layered.intermediate",cSt="Node margin calculation",lSt="ONE_SIDED_GREEDY_SWITCH",dSt="TWO_SIDED_GREEDY_SWITCH",jX="No implementation is available for the layout processor ",FX="IntermediateProcessorStrategy",$X="Node '",fSt="FIRST_SEPARATE",hSt="LAST_SEPARATE",pSt="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",YC="org.eclipse.elk.alg.layered.intermediate.greedyswitch",_h="org.eclipse.elk.alg.layered.p3order.counting",JC={223:1},yT="org.eclipse.elk.alg.layered.intermediate.loops",Ac="org.eclipse.elk.alg.layered.intermediate.loops.ordering",C1="org.eclipse.elk.alg.layered.intermediate.loops.routing",pF="org.eclipse.elk.alg.layered.intermediate.preserveorder",zf="org.eclipse.elk.alg.layered.intermediate.wrapping",$s="org.eclipse.elk.alg.layered.options",BX="INTERACTIVE",Dwe="GREEDY",gSt="DEPTH_FIRST",bSt="EDGE_LENGTH",mSt="SELF_LOOPS",wSt="firstTryWithInitialOrder",Lwe="org.eclipse.elk.layered.directionCongruency",Mwe="org.eclipse.elk.layered.feedbackEdges",gF="org.eclipse.elk.layered.interactiveReferencePoint",Pwe="org.eclipse.elk.layered.mergeEdges",jwe="org.eclipse.elk.layered.mergeHierarchyEdges",Fwe="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",$we="org.eclipse.elk.layered.portSortingStrategy",Bwe="org.eclipse.elk.layered.thoroughness",Uwe="org.eclipse.elk.layered.unnecessaryBendpoints",Hwe="org.eclipse.elk.layered.generatePositionAndLayerIds",jD="org.eclipse.elk.layered.cycleBreaking.strategy",FD="org.eclipse.elk.layered.layering.strategy",zwe="org.eclipse.elk.layered.layering.layerConstraint",Gwe="org.eclipse.elk.layered.layering.layerChoiceConstraint",qwe="org.eclipse.elk.layered.layering.layerId",UX="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",HX="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",zX="org.eclipse.elk.layered.layering.nodePromotion.strategy",GX="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",qX="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",XC="org.eclipse.elk.layered.crossingMinimization.strategy",Vwe="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",VX="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",WX="org.eclipse.elk.layered.crossingMinimization.semiInteractive",Wwe="org.eclipse.elk.layered.crossingMinimization.inLayerPredOf",Kwe="org.eclipse.elk.layered.crossingMinimization.inLayerSuccOf",Ywe="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",Jwe="org.eclipse.elk.layered.crossingMinimization.positionId",Xwe="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",KX="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",bF="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",PE="org.eclipse.elk.layered.nodePlacement.strategy",mF="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",YX="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",JX="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",XX="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",ZX="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",QX="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",Zwe="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",Qwe="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",wF="org.eclipse.elk.layered.edgeRouting.splines.mode",yF="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",eZ="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",eye="org.eclipse.elk.layered.spacing.baseValue",tye="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",nye="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",rye="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",iye="org.eclipse.elk.layered.priority.direction",oye="org.eclipse.elk.layered.priority.shortness",sye="org.eclipse.elk.layered.priority.straightness",tZ="org.eclipse.elk.layered.compaction.connectedComponents",aye="org.eclipse.elk.layered.compaction.postCompaction.strategy",uye="org.eclipse.elk.layered.compaction.postCompaction.constraints",vF="org.eclipse.elk.layered.highDegreeNodes.treatment",nZ="org.eclipse.elk.layered.highDegreeNodes.threshold",rZ="org.eclipse.elk.layered.highDegreeNodes.treeHeight",Sp="org.eclipse.elk.layered.wrapping.strategy",EF="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",SF="org.eclipse.elk.layered.wrapping.correctionFactor",ZC="org.eclipse.elk.layered.wrapping.cutting.strategy",iZ="org.eclipse.elk.layered.wrapping.cutting.cuts",oZ="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",TF="org.eclipse.elk.layered.wrapping.validify.strategy",AF="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",_F="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",xF="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",sZ="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",aZ="org.eclipse.elk.layered.layerUnzipping.strategy",uZ="org.eclipse.elk.layered.layerUnzipping.minimizeEdgeLength",cZ="org.eclipse.elk.layered.layerUnzipping.layerSplit",lZ="org.eclipse.elk.layered.layerUnzipping.resetOnLongEdges",cye="org.eclipse.elk.layered.edgeLabels.sideSelection",lye="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",kF="org.eclipse.elk.layered.considerModelOrder.strategy",dye="org.eclipse.elk.layered.considerModelOrder.portModelOrder",$D="org.eclipse.elk.layered.considerModelOrder.noModelOrder",dZ="org.eclipse.elk.layered.considerModelOrder.components",fye="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",fZ="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",hZ="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",pZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cycleBreakingId",gZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.crossingMinimizationId",bZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.componentGroupId",hye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbGroupOrderStrategy",mZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredSourceId",wZ="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cbPreferredTargetId",pye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmGroupOrderStrategy",gye="org.eclipse.elk.layered.considerModelOrder.groupModelOrder.cmEnforcedGroupOrders",yZ="layering",ySt="layering.minWidth",vSt="layering.nodePromotion",Ax="crossingMinimization",NF="org.eclipse.elk.hierarchyHandling",ESt="crossingMinimization.greedySwitch",SSt="nodePlacement",TSt="nodePlacement.bk",ASt="edgeRouting",BD="org.eclipse.elk.edgeRouting",of="spacing",bye="priority",mye="compaction",_St="compaction.postCompaction",xSt="Specifies whether and how post-process compaction is applied.",wye="highDegreeNodes",yye="wrapping",kSt="wrapping.cutting",NSt="wrapping.validify",vye="wrapping.multiEdge",vZ="layerUnzipping",EZ="edgeLabels",QC="considerModelOrder",_x="considerModelOrder.groupModelOrder",Eye="Group ID of the Node Type",Sye="org.eclipse.elk.spacing.commentComment",Tye="org.eclipse.elk.spacing.commentNode",Aye="org.eclipse.elk.spacing.componentComponent",_ye="org.eclipse.elk.spacing.edgeEdge",SZ="org.eclipse.elk.spacing.edgeNode",xye="org.eclipse.elk.spacing.labelLabel",kye="org.eclipse.elk.spacing.labelPortHorizontal",Nye="org.eclipse.elk.spacing.labelPortVertical",Cye="org.eclipse.elk.spacing.labelNode",Iye="org.eclipse.elk.spacing.nodeSelfLoop",Rye="org.eclipse.elk.spacing.portPort",Oye="org.eclipse.elk.spacing.individual",Dye="org.eclipse.elk.port.borderOffset",Lye="org.eclipse.elk.noLayout",Mye="org.eclipse.elk.port.side",UD="org.eclipse.elk.debugMode",Pye="org.eclipse.elk.alignment",jye="org.eclipse.elk.insideSelfLoops.activate",Fye="org.eclipse.elk.insideSelfLoops.yo",TZ="org.eclipse.elk.direction",$ye="org.eclipse.elk.nodeLabels.padding",Bye="org.eclipse.elk.portLabels.nextToPortIfPossible",Uye="org.eclipse.elk.portLabels.treatAsGroup",Hye="org.eclipse.elk.portAlignment.default",zye="org.eclipse.elk.portAlignment.north",Gye="org.eclipse.elk.portAlignment.south",qye="org.eclipse.elk.portAlignment.west",Vye="org.eclipse.elk.portAlignment.east",CF="org.eclipse.elk.contentAlignment",Wye="org.eclipse.elk.junctionPoints",Kye="org.eclipse.elk.edge.thickness",Yye="org.eclipse.elk.edgeLabels.placement",Jye="org.eclipse.elk.port.index",Xye="org.eclipse.elk.commentBox",Zye="org.eclipse.elk.hypernode",Qye="org.eclipse.elk.port.anchor",AZ="org.eclipse.elk.partitioning.activate",_Z="org.eclipse.elk.partitioning.partition",IF="org.eclipse.elk.position",xZ="org.eclipse.elk.margins",eve="org.eclipse.elk.spacing.portsSurrounding",RF="org.eclipse.elk.interactiveLayout",Vs="org.eclipse.elk.core.util",tve={3:1,4:1,5:1,597:1},CSt="NETWORK_SIMPLEX",nve="SIMPLE",kZ="No implementation is available for the node placer ",Fi={86:1,43:1},H0="org.eclipse.elk.alg.layered.p1cycles",ISt="Depth-first cycle removal",RSt="Model order cycle breaking",Tp="org.eclipse.elk.alg.layered.p2layers",rve={411:1,223:1},OSt={838:1,3:1,4:1},qa="org.eclipse.elk.alg.layered.p3order",jE=17976931348623157e292,NZ=5e-324,Uo="org.eclipse.elk.alg.layered.p4nodes",DSt={3:1,4:1,5:1,846:1},Gf=1e-5,I1="org.eclipse.elk.alg.layered.p4nodes.bk",CZ="org.eclipse.elk.alg.layered.p5edges",xd="org.eclipse.elk.alg.layered.p5edges.orthogonal",IZ="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",RZ=1e-6,Dy="org.eclipse.elk.alg.layered.p5edges.splines",OZ=.09999999999999998,OF=1e-8,LSt=4.71238898038469,MSt=1.5707963267948966,ive=3.141592653589793,Ap="org.eclipse.elk.alg.mrtree",PSt="Tree layout",jSt="P4_EDGE_ROUTING",DZ=.10000000149011612,DF="SUPER_ROOT",eI="org.eclipse.elk.alg.mrtree.graph",ove=-17976931348623157e292,Aa="org.eclipse.elk.alg.mrtree.intermediate",FSt="Processor compute fanout",LF={3:1,6:1,4:1,5:1,526:1,91:1,111:1},$St="Set neighbors in level",HD="org.eclipse.elk.alg.mrtree.options",BSt="DESCENDANTS",sve="org.eclipse.elk.mrtree.compaction",ave="org.eclipse.elk.mrtree.edgeEndTextureLength",uve="org.eclipse.elk.mrtree.treeLevel",cve="org.eclipse.elk.mrtree.positionConstraint",lve="org.eclipse.elk.mrtree.weighting",dve="org.eclipse.elk.mrtree.edgeRoutingMode",fve="org.eclipse.elk.mrtree.searchOrder",USt="Position Constraint",Va="org.eclipse.elk.mrtree",hve="org.eclipse.elk.tree",HSt="Processor arrange level",xx="org.eclipse.elk.alg.mrtree.p2order",uc="org.eclipse.elk.alg.mrtree.p4route",pve="org.eclipse.elk.alg.radial",zSt="The given graph is not a tree!",sm=6.283185307179586,gve="Before",MF="After",bve="org.eclipse.elk.alg.radial.intermediate",GSt="COMPACTION",LZ="org.eclipse.elk.alg.radial.intermediate.compaction",qSt={3:1,4:1,5:1,91:1},mve="org.eclipse.elk.alg.radial.intermediate.optimization",MZ="No implementation is available for the layout option ",tI="org.eclipse.elk.alg.radial.options",VSt="CompactionStrategy",wve="org.eclipse.elk.radial.centerOnRoot",yve="org.eclipse.elk.radial.orderId",vve="org.eclipse.elk.radial.radius",PF="org.eclipse.elk.radial.rotate",PZ="org.eclipse.elk.radial.compactor",jZ="org.eclipse.elk.radial.compactionStepSize",Eve="org.eclipse.elk.radial.sorter",Sve="org.eclipse.elk.radial.wedgeCriteria",Tve="org.eclipse.elk.radial.optimizationCriteria",FZ="org.eclipse.elk.radial.rotation.targetAngle",$Z="org.eclipse.elk.radial.rotation.computeAdditionalWedgeSpace",Ave="org.eclipse.elk.radial.rotation.outgoingEdgeAngles",WSt="Compaction",_ve="rotation",Qc="org.eclipse.elk.radial",KSt="org.eclipse.elk.alg.radial.p1position.wedge",xve="org.eclipse.elk.alg.radial.sorting",YSt=5.497787143782138,JSt=3.9269908169872414,XSt=2.356194490192345,ZSt="org.eclipse.elk.alg.rectpacking",nI="org.eclipse.elk.alg.rectpacking.intermediate",BZ="org.eclipse.elk.alg.rectpacking.options",kve="org.eclipse.elk.rectpacking.trybox",Nve="org.eclipse.elk.rectpacking.currentPosition",Cve="org.eclipse.elk.rectpacking.desiredPosition",Ive="org.eclipse.elk.rectpacking.inNewRow",Rve="org.eclipse.elk.rectpacking.orderBySize",Ove="org.eclipse.elk.rectpacking.widthApproximation.strategy",Dve="org.eclipse.elk.rectpacking.widthApproximation.targetWidth",Lve="org.eclipse.elk.rectpacking.widthApproximation.optimizationGoal",Mve="org.eclipse.elk.rectpacking.widthApproximation.lastPlaceShift",Pve="org.eclipse.elk.rectpacking.packing.strategy",jve="org.eclipse.elk.rectpacking.packing.compaction.rowHeightReevaluation",Fve="org.eclipse.elk.rectpacking.packing.compaction.iterations",$ve="org.eclipse.elk.rectpacking.whiteSpaceElimination.strategy",UZ="widthApproximation",QSt="Compaction Strategy",eTt="packing.compaction",ku="org.eclipse.elk.rectpacking",kx="org.eclipse.elk.alg.rectpacking.p1widthapproximation",jF="org.eclipse.elk.alg.rectpacking.p2packing",tTt="No Compaction",Bve="org.eclipse.elk.alg.rectpacking.p3whitespaceelimination",zD="org.eclipse.elk.alg.rectpacking.util",FF="No implementation available for ",Ly="org.eclipse.elk.alg.spore",My="org.eclipse.elk.alg.spore.options",z0="org.eclipse.elk.sporeCompaction",HZ="org.eclipse.elk.underlyingLayoutAlgorithm",Uve="org.eclipse.elk.processingOrder.treeConstruction",Hve="org.eclipse.elk.processingOrder.spanningTreeCostFunction",zZ="org.eclipse.elk.processingOrder.preferredRoot",GZ="org.eclipse.elk.processingOrder.rootSelection",qZ="org.eclipse.elk.structure.structureExtractionStrategy",zve="org.eclipse.elk.compaction.compactionStrategy",Gve="org.eclipse.elk.compaction.orthogonal",qve="org.eclipse.elk.overlapRemoval.maxIterations",Vve="org.eclipse.elk.overlapRemoval.runScanline",VZ="processingOrder",nTt="overlapRemoval",Nx="org.eclipse.elk.sporeOverlap",rTt="org.eclipse.elk.alg.spore.p1structure",WZ="org.eclipse.elk.alg.spore.p2processingorder",KZ="org.eclipse.elk.alg.spore.p3execution",Wve="org.eclipse.elk.alg.vertiflex",Kve="org.eclipse.elk.vertiflex.verticalConstraint",Yve="org.eclipse.elk.vertiflex.layoutStrategy",Jve="org.eclipse.elk.vertiflex.layerDistance",Xve="org.eclipse.elk.vertiflex.considerNodeModelOrder",Zve="org.eclipse.elk.alg.vertiflex.options",G0="org.eclipse.elk.vertiflex",iTt="org.eclipse.elk.alg.vertiflex.p1yplacement",YZ="org.eclipse.elk.alg.vertiflex.p2relative",oTt="org.eclipse.elk.alg.vertiflex.p3absolute",sTt="BendEdgeRouter",Qve="org.eclipse.elk.alg.vertiflex.p4edgerouting",aTt="StraightEdgeRouter",uTt="Topdown Layout",cTt="Invalid index: ",Cx="org.eclipse.elk.core.alg",FE={343:1},Py={297:1},lTt="Make sure its type is registered with the ",eEe=" utility class.",Ix="true",JZ="false",dTt="Couldn't clone property '",q0=.05,Fa="org.eclipse.elk.core.options",fTt=1.2999999523162842,V0="org.eclipse.elk.box",tEe="org.eclipse.elk.expandNodes",nEe="org.eclipse.elk.box.packingMode",hTt="org.eclipse.elk.algorithm",pTt="org.eclipse.elk.resolvedAlgorithm",rEe="org.eclipse.elk.bendPoints",D3n="org.eclipse.elk.labelManager",gTt="org.eclipse.elk.softwrappingFuzziness",bTt="org.eclipse.elk.scaleFactor",mTt="org.eclipse.elk.childAreaWidth",wTt="org.eclipse.elk.childAreaHeight",yTt="org.eclipse.elk.animate",vTt="org.eclipse.elk.animTimeFactor",ETt="org.eclipse.elk.layoutAncestors",STt="org.eclipse.elk.maxAnimTime",TTt="org.eclipse.elk.minAnimTime",ATt="org.eclipse.elk.progressBar",_Tt="org.eclipse.elk.validateGraph",xTt="org.eclipse.elk.validateOptions",kTt="org.eclipse.elk.zoomToFit",NTt="org.eclipse.elk.json.shapeCoords",CTt="org.eclipse.elk.json.edgeCoords",L3n="org.eclipse.elk.font.name",ITt="org.eclipse.elk.font.size",XZ="org.eclipse.elk.topdown.sizeCategories",iEe="org.eclipse.elk.topdown.sizeCategoriesHierarchicalNodeWeight",ZZ="org.eclipse.elk.topdown.sizeApproximator",oEe="org.eclipse.elk.topdown.scaleCap",RTt="org.eclipse.elk.edge.type",OTt="partitioning",DTt="nodeLabels",$F="portAlignment",QZ="nodeSize",eQ="port",sEe="portLabels",Rx="topdown",LTt="insideSelfLoops",aEe="INHERIT",Ox="org.eclipse.elk.fixed",BF="org.eclipse.elk.random",UF={3:1,34:1,23:1,525:1,290:1},MTt="port must have a parent node to calculate the port side",PTt="The edge needs to have exactly one edge section. Found: ",rI="org.eclipse.elk.core.util.adapters",el="org.eclipse.emf.ecore",$E="org.eclipse.elk.graph",jTt="EMapPropertyHolder",FTt="ElkBendPoint",$Tt="ElkGraphElement",BTt="ElkConnectableShape",uEe="ElkEdge",UTt="ElkEdgeSection",HTt="EModelElement",zTt="ENamedElement",cEe="ElkLabel",lEe="ElkNode",dEe="ElkPort",GTt={95:1,94:1},vT="org.eclipse.emf.common.notify.impl",R1="The feature '",iI="' is not a valid changeable feature",qTt="Expecting null",tQ="' is not a valid feature",VTt="The feature ID",WTt=" is not a valid feature ID",Ws=32768,KTt={110:1,95:1,94:1,57:1,52:1,101:1},Gt="org.eclipse.emf.ecore.impl",am="org.eclipse.elk.graph.impl",oI="Recursive containment not allowed for ",Dx="The datatype '",W0="' is not a valid classifier",nQ="The value '",BE={198:1,3:1,4:1},rQ="The class '",Lx="http://www.eclipse.org/elk/ElkGraph",fEe="property",sI="value",iQ="source",YTt="properties",JTt="identifier",oQ="height",sQ="width",aQ="parent",uQ="text",cQ="children",XTt="hierarchical",hEe="sources",lQ="targets",dQ="sections",HF="bendPoints",pEe="outgoingShape",gEe="incomingShape",bEe="outgoingSections",mEe="incomingSections",xo="org.eclipse.emf.common.util",wEe="Severe implementation error in the Json to ElkGraph importer.",qf="id",oo="org.eclipse.elk.graph.json",Mx="Unhandled parameter types: ",ZTt="startPoint",QTt="An edge must have at least one source and one target (edge id: '",Px="').",eAt="Referenced edge section does not exist: ",tAt=" (edge id: '",yEe="target",nAt="sourcePoint",rAt="targetPoint",zF="group",or="name",iAt="connectableShape cannot be null",oAt="edge cannot be null",sAt="Passed edge is not 'simple'.",GF="org.eclipse.elk.graph.util",GD="The 'no duplicates' constraint is violated",fQ="targetIndex=",um=", size=",hQ="sourceIndex=",Vf={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1},pQ={3:1,4:1,22:1,32:1,56:1,18:1,51:1,16:1,59:1,71:1,67:1,61:1,592:1},qF="logging",aAt="measureExecutionTime",uAt="parser.parse.1",cAt="parser.parse.2",VF="parser.next.1",gQ="parser.next.2",lAt="parser.next.3",dAt="parser.next.4",cm="parser.factor.1",vEe="parser.factor.2",fAt="parser.factor.3",hAt="parser.factor.4",pAt="parser.factor.5",gAt="parser.factor.6",bAt="parser.atom.1",mAt="parser.atom.2",wAt="parser.atom.3",EEe="parser.atom.4",bQ="parser.atom.5",SEe="parser.cc.1",WF="parser.cc.2",yAt="parser.cc.3",vAt="parser.cc.5",TEe="parser.cc.6",AEe="parser.cc.7",mQ="parser.cc.8",EAt="parser.ope.1",SAt="parser.ope.2",TAt="parser.ope.3",Sg="parser.descape.1",AAt="parser.descape.2",_At="parser.descape.3",xAt="parser.descape.4",kAt="parser.descape.5",tl="parser.process.1",NAt="parser.quantifier.1",CAt="parser.quantifier.2",IAt="parser.quantifier.3",RAt="parser.quantifier.4",_Ee="parser.quantifier.5",OAt="org.eclipse.emf.common.notify",xEe={420:1,683:1},DAt={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1},qD={374:1,152:1},aI="index=",wQ={3:1,4:1,5:1,131:1},LAt={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,61:1},kEe={3:1,6:1,4:1,5:1,200:1},MAt={3:1,4:1,5:1,178:1,375:1},PAt=";/?:@&=+$,",jAt="invalid authority: ",FAt="EAnnotation",$At="ETypedElement",BAt="EStructuralFeature",UAt="EAttribute",HAt="EClassifier",zAt="EEnumLiteral",GAt="EGenericType",qAt="EOperation",VAt="EParameter",WAt="EReference",KAt="ETypeParameter",Fr="org.eclipse.emf.ecore.util",yQ={78:1},NEe={3:1,22:1,18:1,16:1,61:1,593:1,78:1,72:1,98:1},YAt="org.eclipse.emf.ecore.util.FeatureMap$Entry",yu=8192,uI="byte",KF="char",cI="double",lI="float",dI="int",fI="long",hI="short",JAt="java.lang.Object",UE={3:1,4:1,5:1,258:1},CEe={3:1,4:1,5:1,685:1},XAt={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,72:1},ws={3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,72:1,98:1},VD="mixed",Bn="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",Al="kind",ZAt={3:1,4:1,5:1,686:1},IEe={3:1,4:1,22:1,32:1,56:1,18:1,16:1,71:1,61:1,78:1,72:1,98:1},YF={22:1,32:1,56:1,18:1,16:1,61:1,72:1},JF={51:1,130:1,289:1},XF={76:1,345:1},ZF="The value of type '",QF="' must be of type '",HE=1318,_l="http://www.eclipse.org/emf/2002/Ecore",e$=-32768,K0="constraints",ho="baseType",QAt="getEStructuralFeature",e_t="getFeatureID",pI="feature",t_t="getOperationID",REe="operation",n_t="defaultValue",r_t="eTypeParameters",i_t="isInstance",o_t="getEEnumLiteral",s_t="eContainingClass",tr={58:1},a_t={3:1,4:1,5:1,123:1},u_t="org.eclipse.emf.ecore.resource",c_t={95:1,94:1,595:1,2013:1},vQ="org.eclipse.emf.ecore.resource.impl",OEe="unspecified",WD="simple",t$="attribute",l_t="attributeWildcard",n$="element",EQ="elementWildcard",kd="collapse",SQ="itemType",r$="namespace",KD="##targetNamespace",xl="whiteSpace",DEe="wildcards",lm="http://www.eclipse.org/emf/2003/XMLType",TQ="##any",jx="uninitialized",YD="The multiplicity constraint is violated",i$="org.eclipse.emf.ecore.xml.type",d_t="ProcessingInstruction",f_t="SimpleAnyType",h_t="XMLTypeDocumentRoot",Si="org.eclipse.emf.ecore.xml.type.impl",JD="INF",p_t="processing",g_t="ENTITIES_._base",LEe="minLength",MEe="ENTITY",o$="NCName",b_t="IDREFS_._base",PEe="integer",AQ="token",_Q="pattern",m_t="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",jEe="\\i\\c*",w_t="[\\i-[:]][\\c-[:]]*",y_t="nonPositiveInteger",XD="maxInclusive",FEe="NMTOKEN",v_t="NMTOKENS_._base",$Ee="nonNegativeInteger",ZD="minInclusive",E_t="normalizedString",S_t="unsignedByte",T_t="unsignedInt",A_t="18446744073709551615",__t="unsignedShort",x_t="processingInstruction",Tg="org.eclipse.emf.ecore.xml.type.internal",Fx=1114111,k_t="Internal Error: shorthands: \\u",gI="xml:isDigit",xQ="xml:isWord",kQ="xml:isSpace",NQ="xml:isNameChar",CQ="xml:isInitialNameChar",N_t="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",C_t="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",I_t="Private Use",IQ="ASSIGNED",RQ="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",BEe="UNASSIGNED",$x={3:1,122:1},R_t="org.eclipse.emf.ecore.xml.type.util",s$={3:1,4:1,5:1,377:1},UEe="org.eclipse.xtext.xbase.lib",O_t="Cannot add elements to a Range",D_t="Cannot set elements in a Range",L_t="Cannot remove elements from a Range",M_t="user.agent",h,a$,OQ;b.goog=b.goog||{},b.goog.global=b.goog.global||b,a$={},_(1,null,{},E),h.Fb=function(t){return Lnt(this,t)},h.Gb=function(){return this.Pm},h.Hb=function(){return s0(this)},h.Ib=function(){var t;return Ab(rc(this))+"@"+(t=Rr(this)>>>0,t.toString(16))},h.equals=function(e){return this.Fb(e)},h.hashCode=function(){return this.Hb()},h.toString=function(){return this.Ib()};var P_t,j_t,F_t;_(299,1,{299:1,2103:1},Lge),h.te=function(t){var r;return r=new Lge,r.i=4,t>1?r.c=dut(this,t-1):r.c=this,r},h.ue=function(){return np(this),this.b},h.ve=function(){return Ab(this)},h.we=function(){return np(this),this.k},h.xe=function(){return(this.i&4)!=0},h.ye=function(){return(this.i&1)!=0},h.Ib=function(){return Gpe(this)},h.i=0;var Ii=k(Fs,"Object",1),HEe=k(Fs,"Class",299);_(2075,1,gD),k(bD,"Optional",2075),_(1172,2075,gD,S),h.Fb=function(t){return t===this},h.Hb=function(){return 2040732332},h.Ib=function(){return"Optional.absent()"},h.Jb=function(t){return kn(t),BN(),DQ};var DQ;k(bD,"Absent",1172),_(634,1,{},hq),k(bD,"Joiner",634);var M3n=Hr(bD,"Predicate");_(584,1,{181:1,584:1,3:1,48:1},fKe),h.Mb=function(t){return ppt(this,t)},h.Lb=function(t){return ppt(this,t)},h.Fb=function(t){var r;return ae(t,584)?(r=l(t,584),Ime(this.a,r.a)):!1},h.Hb=function(){return $ge(this.a)+306654252},h.Ib=function(){return Cyn(this.a)},k(bD,"Predicates/AndPredicate",584),_(416,2075,{416:1,3:1},v9),h.Fb=function(t){var r;return ae(t,416)?(r=l(t,416),pr(this.a,r.a)):!1},h.Hb=function(){return 1502476572+Rr(this.a)},h.Ib=function(){return ZEt+this.a+")"},h.Jb=function(t){return new v9(NP(t.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},k(bD,"Present",416),_(206,1,sx),h.Nb=function(t){so(this,t)},h.Qb=function(){vQe()},k(mt,"UnmodifiableIterator",206),_(2055,206,ax),h.Qb=function(){vQe()},h.Rb=function(t){throw Y(new Nn)},h.Wb=function(t){throw Y(new Nn)},k(mt,"UnmodifiableListIterator",2055),_(394,2055,ax),h.Ob=function(){return this.b0},h.Pb=function(){if(this.b>=this.c)throw Y(new vs);return this.Xb(this.b++)},h.Tb=function(){return this.b},h.Ub=function(){if(this.b<=0)throw Y(new vs);return this.Xb(--this.b)},h.Vb=function(){return this.b-1},h.b=0,h.c=0,k(mt,"AbstractIndexedListIterator",394),_(709,206,sx),h.Ob=function(){return wK(this)},h.Pb=function(){return Fpe(this)},h.e=1,k(mt,"AbstractIterator",709),_(2063,1,{231:1}),h.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},h.Fb=function(t){return BK(this,t)},h.Hb=function(){return Rr(this.Zb())},h.dc=function(){return this.gc()==0},h.ec=function(){return kS(this)},h.Ib=function(){return ms(this.Zb())},k(mt,"AbstractMultimap",2063),_(737,2063,tm),h.$b=function(){wj(this)},h._b=function(t){return PQe(this,t)},h.ac=function(){return new HA(this,this.c)},h.ic=function(t){return this.hc()},h.bc=function(){return new sE(this,this.c)},h.jc=function(){return this.mc(this.hc())},h.kc=function(){return new oQe(this)},h.lc=function(){return KY(this.c.vc().Lc(),new C,64,this.d)},h.cc=function(t){return wr(this,t)},h.fc=function(t){return O6(this,t)},h.gc=function(){return this.d},h.mc=function(t){return At(),new CA(t)},h.nc=function(){return new iQe(this)},h.oc=function(){return KY(this.c.Bc().Lc(),new x,64,this.d)},h.pc=function(t,r){return new ej(this,t,r,null)},h.d=0,k(mt,"AbstractMapBasedMultimap",737),_(1678,737,tm),h.hc=function(){return new Da(this.a)},h.jc=function(){return At(),At(),Co},h.cc=function(t){return l(wr(this,t),16)},h.fc=function(t){return l(O6(this,t),16)},h.Zb=function(){return DS(this)},h.Fb=function(t){return BK(this,t)},h.qc=function(t){return l(wr(this,t),16)},h.rc=function(t){return l(O6(this,t),16)},h.mc=function(t){return CP(l(t,16))},h.pc=function(t,r){return Ect(this,t,l(r,16),null)},k(mt,"AbstractListMultimap",1678),_(743,1,Wi),h.Nb=function(t){so(this,t)},h.Ob=function(){return this.c.Ob()||this.e.Ob()},h.Pb=function(){var t;return this.e.Ob()||(t=l(this.c.Pb(),45),this.b=t.jd(),this.a=l(t.kd(),18),this.e=this.a.Jc()),this.sc(this.b,this.e.Pb())},h.Qb=function(){this.e.Qb(),l(wl(this.a),18).dc()&&this.c.Qb(),--this.d.d},k(mt,"AbstractMapBasedMultimap/Itr",743),_(1110,743,Wi,iQe),h.sc=function(t,r){return r},k(mt,"AbstractMapBasedMultimap/1",1110),_(1111,1,{},x),h.Kb=function(t){return l(t,18).Lc()},k(mt,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1111),_(1112,743,Wi,oQe),h.sc=function(t,r){return new t0(t,r)},k(mt,"AbstractMapBasedMultimap/2",1112);var zEe=Hr(gn,"Map");_(2044,1,j0),h.wc=function(t){S6(this,t)},h.$b=function(){this.vc().$b()},h.tc=function(t){return IY(this,t)},h._b=function(t){return!!Nbe(this,t,!1)},h.uc=function(t){var r,o,a;for(o=this.vc().Jc();o.Ob();)if(r=l(o.Pb(),45),a=r.kd(),be(t)===be(a)||t!=null&&pr(t,a))return!0;return!1},h.Fb=function(t){var r,o,a;if(t===this)return!0;if(!ae(t,93)||(a=l(t,93),this.gc()!=a.gc()))return!1;for(o=a.vc().Jc();o.Ob();)if(r=l(o.Pb(),45),!this.tc(r))return!1;return!0},h.xc=function(t){return Ss(Nbe(this,t,!1))},h.Hb=function(){return Rge(this.vc())},h.dc=function(){return this.gc()==0},h.ec=function(){return new Xh(this)},h.yc=function(t,r){throw Y(new Jp("Put not supported on this map"))},h.zc=function(t){X3(this,t)},h.Ac=function(t){return Ss(Nbe(this,t,!0))},h.gc=function(){return this.vc().gc()},h.Ib=function(){return Fbt(this)},h.Bc=function(){return new Zh(this)},k(gn,"AbstractMap",2044),_(2064,2044,j0),h.bc=function(){return new z9(this)},h.vc=function(){return sst(this)},h.ec=function(){var t;return t=this.g,t||(this.g=this.bc())},h.Bc=function(){var t;return t=this.i,t||(this.i=new Let(this))},k(mt,"Maps/ViewCachingAbstractMap",2064),_(398,2064,j0,HA),h.xc=function(t){return yfn(this,t)},h.Ac=function(t){return Ipn(this,t)},h.$b=function(){this.d==this.e.c?this.e.$b():iP(new Ffe(this))},h._b=function(t){return ogt(this.d,t)},h.Dc=function(){return new hKe(this)},h.Cc=function(){return this.Dc()},h.Fb=function(t){return this===t||pr(this.d,t)},h.Hb=function(){return Rr(this.d)},h.ec=function(){return this.e.ec()},h.gc=function(){return this.d.gc()},h.Ib=function(){return ms(this.d)},k(mt,"AbstractMapBasedMultimap/AsMap",398);var nl=Hr(Fs,"Iterable");_(32,1,Cy),h.Ic=function(t){lo(this,t)},h.Lc=function(){return new St(this,0)},h.Mc=function(){return new Et(null,this.Lc())},h.Ec=function(t){throw Y(new Jp("Add not supported on this collection"))},h.Fc=function(t){return mo(this,t)},h.$b=function(){The(this)},h.Gc=function(t){return gy(this,t,!1)},h.Hc=function(t){return N6(this,t)},h.dc=function(){return this.gc()==0},h.Kc=function(t){return gy(this,t,!0)},h.Nc=function(){return Jfe(this)},h.Oc=function(t){return pC(this,t)},h.Ib=function(){return Qd(this)},k(gn,"AbstractCollection",32);var kl=Hr(gn,"Set");_(tf,32,wu),h.Lc=function(){return new St(this,1)},h.Fb=function(t){return Qgt(this,t)},h.Hb=function(){return Rge(this)},k(gn,"AbstractSet",tf),_(2047,tf,wu),k(mt,"Sets/ImprovedAbstractSet",2047),_(yp,2047,wu),h.$b=function(){this.Pc().$b()},h.Gc=function(t){return Lgt(this,t)},h.dc=function(){return this.Pc().dc()},h.Kc=function(t){var r;return this.Gc(t)&&ae(t,45)?(r=l(t,45),this.Pc().ec().Kc(r.jd())):!1},h.gc=function(){return this.Pc().gc()},k(mt,"Maps/EntrySet",yp),_(1108,yp,wu,hKe),h.Gc=function(t){return s1e(this.a.d.vc(),t)},h.Jc=function(){return new Ffe(this.a)},h.Pc=function(){return this.a},h.Kc=function(t){var r;return s1e(this.a.d.vc(),t)?(r=l(wl(l(t,45)),45),adn(this.a.e,r.jd()),!0):!1},h.Lc=function(){return BO(this.a.d.vc().Lc(),new pKe(this.a))},k(mt,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1108),_(1109,1,{},pKe),h.Kb=function(t){return llt(this.a,l(t,45))},k(mt,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1109),_(741,1,Wi,Ffe),h.Nb=function(t){so(this,t)},h.Pb=function(){var t;return t=l(this.b.Pb(),45),this.a=l(t.kd(),18),llt(this.c,t)},h.Ob=function(){return this.b.Ob()},h.Qb=function(){XA(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},k(mt,"AbstractMapBasedMultimap/AsMap/AsMapIterator",741),_(534,2047,wu,z9),h.$b=function(){this.b.$b()},h.Gc=function(t){return this.b._b(t)},h.Ic=function(t){kn(t),this.b.wc(new OKe(t))},h.dc=function(){return this.b.dc()},h.Jc=function(){return new UN(this.b.vc().Jc())},h.Kc=function(t){return this.b._b(t)?(this.b.Ac(t),!0):!1},h.gc=function(){return this.b.gc()},k(mt,"Maps/KeySet",534),_(333,534,wu,sE),h.$b=function(){var t;iP((t=this.b.vc().Jc(),new lle(this,t)))},h.Hc=function(t){return this.b.ec().Hc(t)},h.Fb=function(t){return this===t||pr(this.b.ec(),t)},h.Hb=function(){return Rr(this.b.ec())},h.Jc=function(){var t;return t=this.b.vc().Jc(),new lle(this,t)},h.Kc=function(t){var r,o;return o=0,r=l(this.b.Ac(t),18),r&&(o=r.gc(),r.$b(),this.a.d-=o),o>0},h.Lc=function(){return this.b.ec().Lc()},k(mt,"AbstractMapBasedMultimap/KeySet",333),_(742,1,Wi,lle),h.Nb=function(t){so(this,t)},h.Ob=function(){return this.c.Ob()},h.Pb=function(){return this.a=l(this.c.Pb(),45),this.a.jd()},h.Qb=function(){var t;XA(!!this.a),t=l(this.a.kd(),18),this.c.Qb(),this.b.a.d-=t.gc(),t.$b(),this.a=null},k(mt,"AbstractMapBasedMultimap/KeySet/1",742),_(492,398,{93:1,136:1},DO),h.bc=function(){return this.Qc()},h.ec=function(){return this.Sc()},h.Qc=function(){return new cO(this.c,this.Uc())},h.Rc=function(){return this.Uc().Rc()},h.Sc=function(){var t;return t=this.b,t||(this.b=this.Qc())},h.Tc=function(){return this.Uc().Tc()},h.Uc=function(){return l(this.d,136)},k(mt,"AbstractMapBasedMultimap/SortedAsMap",492),_(442,492,nwe,E3),h.bc=function(){return new UA(this.a,l(l(this.d,136),141))},h.Qc=function(){return new UA(this.a,l(l(this.d,136),141))},h.ec=function(){var t;return t=this.b,l(t||(this.b=new UA(this.a,l(l(this.d,136),141))),279)},h.Sc=function(){var t;return t=this.b,l(t||(this.b=new UA(this.a,l(l(this.d,136),141))),279)},h.Uc=function(){return l(l(this.d,136),141)},h.Vc=function(t){return l(l(this.d,136),141).Vc(t)},h.Wc=function(t){return l(l(this.d,136),141).Wc(t)},h.Xc=function(t,r){return new E3(this.a,l(l(this.d,136),141).Xc(t,r))},h.Yc=function(t){return l(l(this.d,136),141).Yc(t)},h.Zc=function(t){return l(l(this.d,136),141).Zc(t)},h.$c=function(t,r){return new E3(this.a,l(l(this.d,136),141).$c(t,r))},k(mt,"AbstractMapBasedMultimap/NavigableAsMap",442),_(491,333,QEt,cO),h.Lc=function(){return this.b.ec().Lc()},k(mt,"AbstractMapBasedMultimap/SortedKeySet",491),_(397,491,rwe,UA),k(mt,"AbstractMapBasedMultimap/NavigableKeySet",397),_(543,32,Cy,ej),h.Ec=function(t){var r,o;return $u(this),o=this.d.dc(),r=this.d.Ec(t),r&&(++this.f.d,o&&PO(this)),r},h.Fc=function(t){var r,o,a;return t.dc()?!1:(a=($u(this),this.d.gc()),r=this.d.Fc(t),r&&(o=this.d.gc(),this.f.d+=o-a,a==0&&PO(this)),r)},h.$b=function(){var t;t=($u(this),this.d.gc()),t!=0&&(this.d.$b(),this.f.d-=t,dP(this))},h.Gc=function(t){return $u(this),this.d.Gc(t)},h.Hc=function(t){return $u(this),this.d.Hc(t)},h.Fb=function(t){return t===this?!0:($u(this),pr(this.d,t))},h.Hb=function(){return $u(this),Rr(this.d)},h.Jc=function(){return $u(this),new _fe(this)},h.Kc=function(t){var r;return $u(this),r=this.d.Kc(t),r&&(--this.f.d,dP(this)),r},h.gc=function(){return Ent(this)},h.Lc=function(){return $u(this),this.d.Lc()},h.Ib=function(){return $u(this),ms(this.d)},k(mt,"AbstractMapBasedMultimap/WrappedCollection",543);var _c=Hr(gn,"List");_(739,543,{22:1,32:1,18:1,16:1},Xfe),h.gd=function(t){zb(this,t)},h.Lc=function(){return $u(this),this.d.Lc()},h._c=function(t,r){var o;$u(this),o=this.d.dc(),l(this.d,16)._c(t,r),++this.a.d,o&&PO(this)},h.ad=function(t,r){var o,a,u;return r.dc()?!1:(u=($u(this),this.d.gc()),o=l(this.d,16).ad(t,r),o&&(a=this.d.gc(),this.a.d+=a-u,u==0&&PO(this)),o)},h.Xb=function(t){return $u(this),l(this.d,16).Xb(t)},h.bd=function(t){return $u(this),l(this.d,16).bd(t)},h.cd=function(){return $u(this),new Znt(this)},h.dd=function(t){return $u(this),new Sat(this,t)},h.ed=function(t){var r;return $u(this),r=l(this.d,16).ed(t),--this.a.d,dP(this),r},h.fd=function(t,r){return $u(this),l(this.d,16).fd(t,r)},h.hd=function(t,r){return $u(this),Ect(this.a,this.e,l(this.d,16).hd(t,r),this.b?this.b:this)},k(mt,"AbstractMapBasedMultimap/WrappedList",739),_(1107,739,{22:1,32:1,18:1,16:1,59:1},$rt),k(mt,"AbstractMapBasedMultimap/RandomAccessWrappedList",1107),_(626,1,Wi,_fe),h.Nb=function(t){so(this,t)},h.Ob=function(){return c_(this),this.b.Ob()},h.Pb=function(){return c_(this),this.b.Pb()},h.Qb=function(){Trt(this)},k(mt,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",626),_(740,626,vh,Znt,Sat),h.Qb=function(){Trt(this)},h.Rb=function(t){var r;r=Ent(this.a)==0,(c_(this),l(this.b,130)).Rb(t),++this.a.a.d,r&&PO(this.a)},h.Sb=function(){return(c_(this),l(this.b,130)).Sb()},h.Tb=function(){return(c_(this),l(this.b,130)).Tb()},h.Ub=function(){return(c_(this),l(this.b,130)).Ub()},h.Vb=function(){return(c_(this),l(this.b,130)).Vb()},h.Wb=function(t){(c_(this),l(this.b,130)).Wb(t)},k(mt,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",740),_(738,543,QEt,Ude),h.Lc=function(){return $u(this),this.d.Lc()},k(mt,"AbstractMapBasedMultimap/WrappedSortedSet",738),_(1106,738,rwe,Gnt),k(mt,"AbstractMapBasedMultimap/WrappedNavigableSet",1106),_(1105,543,wu,ait),h.Lc=function(){return $u(this),this.d.Lc()},k(mt,"AbstractMapBasedMultimap/WrappedSet",1105),_(1114,1,{},C),h.Kb=function(t){return fdn(l(t,45))},k(mt,"AbstractMapBasedMultimap/lambda$1$Type",1114),_(1113,1,{},gKe),h.Kb=function(t){return new t0(this.a,t)},k(mt,"AbstractMapBasedMultimap/lambda$2$Type",1113);var dm=Hr(gn,"Map/Entry");_(359,1,YJ),h.Fb=function(t){var r;return ae(t,45)?(r=l(t,45),rp(this.jd(),r.jd())&&rp(this.kd(),r.kd())):!1},h.Hb=function(){var t,r;return t=this.jd(),r=this.kd(),(t==null?0:Rr(t))^(r==null?0:Rr(r))},h.ld=function(t){throw Y(new Nn)},h.Ib=function(){return this.jd()+"="+this.kd()},k(mt,e2t,359),_(2065,32,Cy),h.$b=function(){this.md().$b()},h.Gc=function(t){var r;return ae(t,45)?(r=l(t,45),Lcn(this.md(),r.jd(),r.kd())):!1},h.Kc=function(t){var r;return ae(t,45)?(r=l(t,45),nct(this.md(),r.jd(),r.kd())):!1},h.gc=function(){return this.md().d},k(mt,"Multimaps/Entries",2065),_(744,2065,Cy,Yue),h.Jc=function(){return this.a.kc()},h.md=function(){return this.a},h.Lc=function(){return this.a.lc()},k(mt,"AbstractMultimap/Entries",744),_(745,744,wu,Gce),h.Lc=function(){return this.a.lc()},h.Fb=function(t){return Kbe(this,t)},h.Hb=function(){return hht(this)},k(mt,"AbstractMultimap/EntrySet",745),_(746,32,Cy,Jue),h.$b=function(){this.a.$b()},h.Gc=function(t){return xpn(this.a,t)},h.Jc=function(){return this.a.nc()},h.gc=function(){return this.a.d},h.Lc=function(){return this.a.oc()},k(mt,"AbstractMultimap/Values",746),_(2066,32,{841:1,22:1,32:1,18:1}),h.Ic=function(t){kn(t),uE(this).Ic(new BKe(t))},h.Lc=function(){var t;return t=uE(this).Lc(),KY(t,new G,64|t.wd()&1296,this.a.d)},h.Ec=function(t){return Jce(),!0},h.Fc=function(t){return kn(this),kn(t),ae(t,544)?jcn(l(t,841)):!t.dc()&&cK(this,t.Jc())},h.Gc=function(t){var r;return r=l(py(DS(this.a),t),18),(r?r.gc():0)>0},h.Fb=function(t){return kEn(this,t)},h.Hb=function(){return Rr(uE(this))},h.dc=function(){return uE(this).dc()},h.Kc=function(t){return i0t(this,t,1)>0},h.Ib=function(){return ms(uE(this))},k(mt,"AbstractMultiset",2066),_(2068,2047,wu),h.$b=function(){wj(this.a.a)},h.Gc=function(t){var r,o;return ae(t,493)?(o=l(t,421),l(o.a.kd(),18).gc()<=0?!1:(r=Aut(this.a,o.a.jd()),r==l(o.a.kd(),18).gc())):!1},h.Kc=function(t){var r,o,a,u;return ae(t,493)&&(o=l(t,421),r=o.a.jd(),a=l(o.a.kd(),18).gc(),a!=0)?(u=this.a,Tvn(u,r,a)):!1},k(mt,"Multisets/EntrySet",2068),_(1120,2068,wu,bKe),h.Jc=function(){return new lQe(sst(DS(this.a.a)).Jc())},h.gc=function(){return DS(this.a.a).gc()},k(mt,"AbstractMultiset/EntrySet",1120),_(625,737,tm),h.hc=function(){return this.nd()},h.jc=function(){return this.od()},h.cc=function(t){return this.pd(t)},h.fc=function(t){return this.qd(t)},h.Zb=function(){var t;return t=this.f,t||(this.f=this.ac())},h.od=function(){return At(),At(),h$},h.Fb=function(t){return BK(this,t)},h.pd=function(t){return l(wr(this,t),24)},h.qd=function(t){return l(O6(this,t),24)},h.mc=function(t){return At(),new PA(l(t,24))},h.pc=function(t,r){return new ait(this,t,l(r,24))},k(mt,"AbstractSetMultimap",625),_(1706,625,tm),h.hc=function(){return new Qp(this.b)},h.nd=function(){return new Qp(this.b)},h.jc=function(){return che(new Qp(this.b))},h.od=function(){return che(new Qp(this.b))},h.cc=function(t){return l(l(wr(this,t),24),85)},h.pd=function(t){return l(l(wr(this,t),24),85)},h.fc=function(t){return l(l(O6(this,t),24),85)},h.qd=function(t){return l(l(O6(this,t),24),85)},h.mc=function(t){return ae(t,279)?che(l(t,279)):(At(),new Cde(l(t,85)))},h.Zb=function(){var t;return t=this.f,t||(this.f=ae(this.c,141)?new E3(this,l(this.c,141)):ae(this.c,136)?new DO(this,l(this.c,136)):new HA(this,this.c))},h.pc=function(t,r){return ae(r,279)?new Gnt(this,t,l(r,279)):new Ude(this,t,l(r,85))},k(mt,"AbstractSortedSetMultimap",1706),_(1707,1706,tm),h.Zb=function(){var t;return t=this.f,l(l(t||(this.f=ae(this.c,141)?new E3(this,l(this.c,141)):ae(this.c,136)?new DO(this,l(this.c,136)):new HA(this,this.c)),136),141)},h.ec=function(){var t;return t=this.i,l(l(t||(this.i=ae(this.c,141)?new UA(this,l(this.c,141)):ae(this.c,136)?new cO(this,l(this.c,136)):new sE(this,this.c)),85),279)},h.bc=function(){return ae(this.c,141)?new UA(this,l(this.c,141)):ae(this.c,136)?new cO(this,l(this.c,136)):new sE(this,this.c)},k(mt,"AbstractSortedKeySortedSetMultimap",1707),_(2088,1,{2025:1}),h.Fb=function(t){return p0n(this,t)},h.Hb=function(){var t;return Rge((t=this.g,t||(this.g=new PG(this))))},h.Ib=function(){var t;return Fbt((t=this.f,t||(this.f=new vde(this))))},k(mt,"AbstractTable",2088),_(676,tf,wu,PG),h.$b=function(){EQe()},h.Gc=function(t){var r,o;return ae(t,471)?(r=l(t,694),o=l(py(Dst(this.a),i1(r.c.e,r.b)),93),!!o&&s1e(o.vc(),new t0(i1(r.c.c,r.a),$S(r.c,r.b,r.a)))):!1},h.Jc=function(){return Fan(this.a)},h.Kc=function(t){var r,o;return ae(t,471)?(r=l(t,694),o=l(py(Dst(this.a),i1(r.c.e,r.b)),93),!!o&&cgn(o.vc(),new t0(i1(r.c.c,r.a),$S(r.c,r.b,r.a)))):!1},h.gc=function(){return Mot(this.a)},h.Lc=function(){return Ucn(this.a)},k(mt,"AbstractTable/CellSet",676),_(2004,32,Cy,mKe),h.$b=function(){EQe()},h.Gc=function(t){return iwn(this.a,t)},h.Jc=function(){return $an(this.a)},h.gc=function(){return Mot(this.a)},h.Lc=function(){return Xut(this.a)},k(mt,"AbstractTable/Values",2004),_(1679,1678,tm),k(mt,"ArrayListMultimapGwtSerializationDependencies",1679),_(510,1679,tm,fq,zhe),h.hc=function(){return new Da(this.a)},h.a=0,k(mt,"ArrayListMultimap",510),_(675,2088,{675:1,2025:1,3:1},r0t),k(mt,"ArrayTable",675),_(2e3,394,ax,vrt),h.Xb=function(t){return new Nge(this.a,t)},k(mt,"ArrayTable/1",2e3),_(2001,1,{},wKe),h.rd=function(t){return new Nge(this.a,t)},k(mt,"ArrayTable/1methodref$getCell$Type",2001),_(2089,1,{694:1}),h.Fb=function(t){var r;return t===this?!0:ae(t,471)?(r=l(t,694),rp(i1(this.c.e,this.b),i1(r.c.e,r.b))&&rp(i1(this.c.c,this.a),i1(r.c.c,r.a))&&rp($S(this.c,this.b,this.a),$S(r.c,r.b,r.a))):!1},h.Hb=function(){return Fj(Z(X(Ii,1),Rt,1,5,[i1(this.c.e,this.b),i1(this.c.c,this.a),$S(this.c,this.b,this.a)]))},h.Ib=function(){return"("+i1(this.c.e,this.b)+","+i1(this.c.c,this.a)+")="+$S(this.c,this.b,this.a)},k(mt,"Tables/AbstractCell",2089),_(471,2089,{471:1,694:1},Nge),h.a=0,h.b=0,h.d=0,k(mt,"ArrayTable/2",471),_(2003,1,{},yKe),h.rd=function(t){return pdt(this.a,t)},k(mt,"ArrayTable/2methodref$getValue$Type",2003),_(2002,394,ax,Ert),h.Xb=function(t){return pdt(this.a,t)},k(mt,"ArrayTable/3",2002),_(2056,2044,j0),h.$b=function(){iP(this.kc())},h.vc=function(){return new MKe(this)},h.lc=function(){return new hat(this.kc(),this.gc())},k(mt,"Maps/IteratorBasedAbstractMap",2056),_(834,2056,j0),h.$b=function(){throw Y(new Nn)},h._b=function(t){return jQe(this.c,t)},h.kc=function(){return new Srt(this,this.c.b.c.gc())},h.lc=function(){return BV(this.c.b.c.gc(),16,new vKe(this))},h.xc=function(t){var r;return r=l(S3(this.c,t),15),r?this.td(r.a):null},h.dc=function(){return this.c.b.c.dc()},h.ec=function(){return YV(this.c)},h.yc=function(t,r){var o;if(o=l(S3(this.c,t),15),!o)throw Y(new jt(this.sd()+" "+t+" not in "+YV(this.c)));return this.ud(o.a,r)},h.Ac=function(t){throw Y(new Nn)},h.gc=function(){return this.c.b.c.gc()},k(mt,"ArrayTable/ArrayMap",834),_(1999,1,{},vKe),h.rd=function(t){return Lst(this.a,t)},k(mt,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1999),_(1997,359,YJ,get),h.jd=function(){return enn(this.a,this.b)},h.kd=function(){return this.a.td(this.b)},h.ld=function(t){return this.a.ud(this.b,t)},h.b=0,k(mt,"ArrayTable/ArrayMap/1",1997),_(1998,394,ax,Srt),h.Xb=function(t){return Lst(this.a,t)},k(mt,"ArrayTable/ArrayMap/2",1998),_(1996,834,j0,Tst),h.sd=function(){return"Column"},h.td=function(t){return $S(this.b,this.a,t)},h.ud=function(t,r){return Zht(this.b,this.a,t,r)},h.a=0,k(mt,"ArrayTable/Row",1996),_(835,834,j0,vde),h.td=function(t){return new Tst(this.a,t)},h.yc=function(t,r){return l(r,93),TQt()},h.ud=function(t,r){return l(r,93),AQt()},h.sd=function(){return"Row"},k(mt,"ArrayTable/RowMap",835),_(1138,1,Tc,bet),h.yd=function(t){return(this.a.wd()&-262&t)!=0},h.wd=function(){return this.a.wd()&-262},h.xd=function(){return this.a.xd()},h.Nb=function(t){this.a.Nb(new wet(t,this.b))},h.zd=function(t){return this.a.zd(new met(t,this.b))},k(mt,"CollectSpliterators/1",1138),_(1139,1,nn,met),h.Ad=function(t){this.a.Ad(this.b.Kb(t))},k(mt,"CollectSpliterators/1/lambda$0$Type",1139),_(1140,1,nn,wet),h.Ad=function(t){this.a.Ad(this.b.Kb(t))},k(mt,"CollectSpliterators/1/lambda$1$Type",1140),_(1135,1,Tc,zit),h.yd=function(t){return((16464|this.b)&t)!=0},h.wd=function(){return 16464|this.b},h.xd=function(){return this.a.xd()},h.Nb=function(t){this.a.Oe(new vet(t,this.c))},h.zd=function(t){return this.a.Pe(new yet(t,this.c))},h.b=0,k(mt,"CollectSpliterators/1WithCharacteristics",1135),_(1136,1,mD,yet),h.Bd=function(t){this.a.Ad(this.b.rd(t))},k(mt,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1136),_(1137,1,mD,vet),h.Bd=function(t){this.a.Ad(this.b.rd(t))},k(mt,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1137),_(1131,1,Tc),h.yd=function(t){return(this.a&t)!=0},h.wd=function(){return this.a},h.xd=function(){return this.e&&(this.b=lde(this.b,this.e.xd())),lde(this.b,0)},h.Nb=function(t){this.e&&(this.e.Nb(t),this.e=null),this.c.Nb(new Eet(this,t)),this.b=0},h.zd=function(t){for(;;){if(this.e&&this.e.zd(t))return f3(this.b,wD)&&(this.b=El(this.b,1)),!0;if(this.e=null,!this.c.zd(new kKe(this)))return!1}},h.a=0,h.b=0,k(mt,"CollectSpliterators/FlatMapSpliterator",1131),_(1133,1,nn,kKe),h.Ad=function(t){Vnn(this.a,t)},k(mt,"CollectSpliterators/FlatMapSpliterator/lambda$0$Type",1133),_(1134,1,nn,Eet),h.Ad=function(t){man(this.a,this.b,t)},k(mt,"CollectSpliterators/FlatMapSpliterator/lambda$1$Type",1134),_(1132,1131,Tc,Sct),k(mt,"CollectSpliterators/FlatMapSpliteratorOfObject",1132),_(257,1,JJ),h.Dd=function(t){return this.Cd(l(t,257))},h.Cd=function(t){var r;return t==(oq(),MQ)?1:t==(iq(),LQ)?-1:(r=(tP(),E6(this.a,t.a)),r!=0?r:(Lt(),ae(this,517)==ae(t,517)?0:ae(this,517)?1:-1))},h.Gd=function(){return this.a},h.Fb=function(t){return ebe(this,t)},k(mt,"Cut",257),_(1810,257,JJ,rQe),h.Cd=function(t){return t==this?0:1},h.Ed=function(t){throw Y(new kce)},h.Fd=function(t){t.a+="+∞)"},h.Gd=function(){throw Y(new es(n2t))},h.Hb=function(){return eg(),U1e(this)},h.Hd=function(t){return!1},h.Ib=function(){return"+∞"};var LQ;k(mt,"Cut/AboveAll",1810),_(517,257,{257:1,517:1,3:1,34:1},xrt),h.Ed=function(t){ba((t.a+="(",t),this.a)},h.Fd=function(t){Db(ba(t,this.a),93)},h.Hb=function(){return~Rr(this.a)},h.Hd=function(t){return tP(),E6(this.a,t)<0},h.Ib=function(){return"/"+this.a+"\\"},k(mt,"Cut/AboveValue",517),_(1809,257,JJ,nQe),h.Cd=function(t){return t==this?0:-1},h.Ed=function(t){t.a+="(-∞"},h.Fd=function(t){throw Y(new kce)},h.Gd=function(){throw Y(new es(n2t))},h.Hb=function(){return eg(),U1e(this)},h.Hd=function(t){return!0},h.Ib=function(){return"-∞"};var MQ;k(mt,"Cut/BelowAll",1809),_(1811,257,JJ,krt),h.Ed=function(t){ba((t.a+="[",t),this.a)},h.Fd=function(t){Db(ba(t,this.a),41)},h.Hb=function(){return Rr(this.a)},h.Hd=function(t){return tP(),E6(this.a,t)<=0},h.Ib=function(){return"\\"+this.a+"/"},k(mt,"Cut/BelowValue",1811),_(539,1,Eh),h.Ic=function(t){lo(this,t)},h.Ib=function(){return kgn(l(NP(this,"use Optional.orNull() instead of Optional.or(null)"),22).Jc())},k(mt,"FluentIterable",539),_(438,539,Eh,g3),h.Jc=function(){return new $t(qt(this.a.Jc(),new D))},k(mt,"FluentIterable/2",438),_(36,1,{},D),h.Kb=function(t){return l(t,22).Jc()},h.Fb=function(t){return this===t},k(mt,"FluentIterable/2/0methodref$iterator$Type",36),_(1051,539,Eh,Ont),h.Jc=function(){return hh(this)},k(mt,"FluentIterable/3",1051),_(721,394,ax,Ade),h.Xb=function(t){return this.a[t].Jc()},k(mt,"FluentIterable/3/1",721),_(2049,1,{}),h.Ib=function(){return ms(this.Id().b)},k(mt,"ForwardingObject",2049),_(2050,2049,r2t),h.Id=function(){return this.Jd()},h.Ic=function(t){lo(this,t)},h.Lc=function(){return new St(this,0)},h.Mc=function(){return new Et(null,this.Lc())},h.Ec=function(t){return this.Jd(),HQe()},h.Fc=function(t){return this.Jd(),zQe()},h.$b=function(){this.Jd(),GQe()},h.Gc=function(t){return this.Jd().Gc(t)},h.Hc=function(t){return this.Jd().Hc(t)},h.dc=function(){return this.Jd().b.dc()},h.Jc=function(){return this.Jd().Jc()},h.Kc=function(t){return this.Jd(),qQe()},h.gc=function(){return this.Jd().b.gc()},h.Nc=function(){return this.Jd().Nc()},h.Oc=function(t){return this.Jd().Oc(t)},k(mt,"ForwardingCollection",2050),_(2057,32,iwe),h.Jc=function(){return this.Md()},h.Ec=function(t){throw Y(new Nn)},h.Fc=function(t){throw Y(new Nn)},h.Kd=function(){var t;return t=this.c,t||(this.c=this.Ld())},h.$b=function(){throw Y(new Nn)},h.Gc=function(t){return t!=null&&gy(this,t,!1)},h.Ld=function(){switch(this.gc()){case 0:return oP(),FQ;case 1:return new AV(kn(this.Md().Pb()));default:return new Afe(this,this.Nc())}},h.Kc=function(t){throw Y(new Nn)},k(mt,"ImmutableCollection",2057),_(1271,2057,iwe,NKe),h.Jc=function(){return BS(new Gv(this.a.b.Jc()))},h.Gc=function(t){return t!=null&&VN(this.a,t)},h.Hc=function(t){return fle(this.a,t)},h.dc=function(){return this.a.b.dc()},h.Md=function(){return BS(new Gv(this.a.b.Jc()))},h.gc=function(){return this.a.b.gc()},h.Nc=function(){return this.a.b.Nc()},h.Oc=function(t){return hle(this.a,t)},h.Ib=function(){return ms(this.a.b)},k(mt,"ForwardingImmutableCollection",1271),_(312,2057,ux),h.Jc=function(){return this.Md()},h.cd=function(){return this.Nd(0)},h.dd=function(t){return this.Nd(t)},h.gd=function(t){zb(this,t)},h.Lc=function(){return new St(this,16)},h.hd=function(t,r){return this.Od(t,r)},h._c=function(t,r){throw Y(new Nn)},h.ad=function(t,r){throw Y(new Nn)},h.Kd=function(){return this},h.Fb=function(t){return mEn(this,t)},h.Hb=function(){return Mhn(this)},h.bd=function(t){return t==null?-1:Vbn(this,t)},h.Md=function(){return this.Nd(0)},h.Nd=function(t){return wV(this,t)},h.ed=function(t){throw Y(new Nn)},h.fd=function(t,r){throw Y(new Nn)},h.Od=function(t,r){var o;return qj((o=new Det(this),new Rf(o,t,r)))},k(mt,"ImmutableList",312),_(2084,312,ux),h.Jc=function(){return BS(this.Pd().Jc())},h.hd=function(t,r){return qj(this.Pd().hd(t,r))},h.Gc=function(t){return t!=null&&this.Pd().Gc(t)},h.Hc=function(t){return this.Pd().Hc(t)},h.Fb=function(t){return pr(this.Pd(),t)},h.Xb=function(t){return i1(this,t)},h.Hb=function(){return Rr(this.Pd())},h.bd=function(t){return this.Pd().bd(t)},h.dc=function(){return this.Pd().dc()},h.Md=function(){return BS(this.Pd().Jc())},h.gc=function(){return this.Pd().gc()},h.Od=function(t,r){return qj(this.Pd().hd(t,r))},h.Nc=function(){return this.Pd().Oc(we(Ii,Rt,1,this.Pd().gc(),5,1))},h.Oc=function(t){return this.Pd().Oc(t)},h.Ib=function(){return ms(this.Pd())},k(mt,"ForwardingImmutableList",2084),_(724,1,cx),h.vc=function(){return Cb(this)},h.wc=function(t){S6(this,t)},h.ec=function(){return YV(this)},h.Bc=function(){return this.Td()},h.$b=function(){throw Y(new Nn)},h._b=function(t){return this.xc(t)!=null},h.uc=function(t){return this.Td().Gc(t)},h.Rd=function(){return new TKe(this)},h.Sd=function(){return new AKe(this)},h.Fb=function(t){return kpn(this,t)},h.Hb=function(){return Cb(this).Hb()},h.dc=function(){return this.gc()==0},h.yc=function(t,r){return _Qt()},h.Ac=function(t){throw Y(new Nn)},h.Ib=function(){return Zwn(this)},h.Td=function(){return this.e?this.e:this.e=this.Sd()},h.c=null,h.d=null,h.e=null,k(mt,"ImmutableMap",724),_(725,724,cx),h._b=function(t){return jQe(this,t)},h.uc=function(t){return jet(this.b,t)},h.Qd=function(){return Ppt(new xKe(this))},h.Rd=function(){return Ppt(nat(this.b))},h.Sd=function(){return new NKe(tat(this.b))},h.Fb=function(t){return Fet(this.b,t)},h.xc=function(t){return S3(this,t)},h.Hb=function(){return Rr(this.b.c)},h.dc=function(){return this.b.c.dc()},h.gc=function(){return this.b.c.gc()},h.Ib=function(){return ms(this.b.c)},k(mt,"ForwardingImmutableMap",725),_(2051,2050,XJ),h.Id=function(){return this.Ud()},h.Jd=function(){return this.Ud()},h.Lc=function(){return new St(this,1)},h.Fb=function(t){return t===this||this.Ud().Fb(t)},h.Hb=function(){return this.Ud().Hb()},k(mt,"ForwardingSet",2051),_(1066,2051,XJ,xKe),h.Id=function(){return s_(this.a.b)},h.Jd=function(){return s_(this.a.b)},h.Gc=function(t){if(ae(t,45)&&l(t,45).jd()==null)return!1;try{return Pet(s_(this.a.b),t)}catch(r){if(r=ci(r),ae(r,214))return!1;throw Y(r)}},h.Ud=function(){return s_(this.a.b)},h.Oc=function(t){var r,o;return r=zat(s_(this.a.b),t),s_(this.a.b).b.gc()=0?"+":"")+(o/60|0),r=R8(b.Math.abs(o)%60),(Xbt(),ixt)[this.q.getDay()]+" "+oxt[this.q.getMonth()]+" "+R8(this.q.getDate())+" "+R8(this.q.getHours())+":"+R8(this.q.getMinutes())+":"+R8(this.q.getSeconds())+" GMT"+t+r+" "+this.q.getFullYear()};var l$=k(gn,"Date",208);_(1994,208,f2t,mbt),h.a=!1,h.b=0,h.c=0,h.d=0,h.e=0,h.f=0,h.g=!1,h.i=0,h.j=0,h.k=0,h.n=0,h.o=0,h.p=0,k("com.google.gwt.i18n.shared.impl","DateRecord",1994),_(2043,1,{}),h.ne=function(){return null},h.oe=function(){return null},h.pe=function(){return null},h.qe=function(){return null},h.re=function(){return null},k(dT,"JSONValue",2043),_(142,2043,{142:1},Eb,Xue),h.Fb=function(t){return ae(t,142)?Vhe(this.a,l(t,142).a):!1},h.me=function(){return qZt},h.Hb=function(){return Rhe(this.a)},h.ne=function(){return this},h.Ib=function(){var t,r,o;for(o=new fc("["),r=0,t=this.a.length;r0&&(o.a+=","),ba(o,ay(this,r));return o.a+="]",o.a},k(dT,"JSONArray",142),_(482,2043,{482:1},Zue),h.me=function(){return VZt},h.oe=function(){return this},h.Ib=function(){return Lt(),""+this.a},h.a=!1;var V_t,W_t;k(dT,"JSONBoolean",482),_(990,63,vp,dQe),k(dT,"JSONException",990),_(1028,2043,{},me),h.me=function(){return JZt},h.Ib=function(){return tu};var K_t;k(dT,"JSONNull",1028),_(266,2043,{266:1},E9),h.Fb=function(t){return ae(t,266)?this.a==l(t,266).a:!1},h.me=function(){return WZt},h.Hb=function(){return mS(this.a)},h.pe=function(){return this},h.Ib=function(){return this.a+""},h.a=0,k(dT,"JSONNumber",266),_(150,2043,{150:1},aS,JR),h.Fb=function(t){return ae(t,150)?Vhe(this.a,l(t,150).a):!1},h.me=function(){return KZt},h.Hb=function(){return Rhe(this.a)},h.qe=function(){return this},h.Ib=function(){var t,r,o,a,u,f,p;for(p=new fc("{"),t=!0,f=EK(this,we(Je,Pe,2,0,6,1)),o=f,a=0,u=o.length;a=0?":"+this.c:"")+")"},h.c=0;var s2e=k(Fs,"StackTraceElement",325);F_t={3:1,475:1,34:1,2:1};var Je=k(Fs,owe,2);_(112,423,{475:1},Xp,GN,ml),k(Fs,"StringBuffer",112),_(106,423,{475:1},Zg,lS,fc),k(Fs,"StringBuilder",106),_(698,99,iF,Xce),k(Fs,"StringIndexOutOfBoundsException",698),_(2124,1,{});var Z_t;_(46,63,{3:1,102:1,63:1,81:1,46:1},Nn,Jp),k(Fs,"UnsupportedOperationException",46),_(249,245,{3:1,34:1,245:1,249:1},j6,ale),h.Dd=function(t){return nvt(this,l(t,249))},h.se=function(){return vy(Rvt(this))},h.Fb=function(t){var r;return this===t?!0:ae(t,249)?(r=l(t,249),this.e==r.e&&nvt(this,r)==0):!1},h.Hb=function(){var t;return this.b!=0?this.b:this.a<54?(t=Gs(this.f),this.b=Dn(Gi(t,-1)),this.b=33*this.b+Dn(Gi(u0(t,32),-1)),this.b=17*this.b+go(this.e),this.b):(this.b=17*Vpt(this.c)+go(this.e),this.b)},h.Ib=function(){return Rvt(this)},h.a=0,h.b=0,h.d=0,h.e=0,h.f=0;var Q_t,fm,a2e,u2e,c2e,l2e,d2e,f2e,GQ=k("java.math","BigDecimal",249);_(92,245,{3:1,34:1,245:1,92:1},ap,sct,Ob,r1t,o1),h.Dd=function(t){return Ygt(this,l(t,92))},h.se=function(){return vy(VJ(this,0))},h.Fb=function(t){return _1e(this,t)},h.Hb=function(){return Vpt(this)},h.Ib=function(){return VJ(this,0)},h.b=-2,h.c=0,h.d=0,h.e=0;var ext,d$,txt,qQ,f$,wI,zE=k("java.math","BigInteger",92),nxt,rxt,ST,yI;_(487,2044,j0),h.$b=function(){Zs(this)},h._b=function(t){return ma(this,t)},h.uc=function(t){return Ipt(this,t,this.i)||Ipt(this,t,this.f)},h.vc=function(){return new Dw(this)},h.xc=function(t){return Ht(this,t)},h.yc=function(t,r){return Jn(this,t,r)},h.Ac=function(t){return FS(this,t)},h.gc=function(){return WN(this)},h.g=0,k(gn,"AbstractHashMap",487),_(307,tf,wu,Dw),h.$b=function(){this.a.$b()},h.Gc=function(t){return lct(this,t)},h.Jc=function(){return new dy(this.a)},h.Kc=function(t){var r;return lct(this,t)?(r=l(t,45).jd(),this.a.Ac(r),!0):!1},h.gc=function(){return this.a.gc()},k(gn,"AbstractHashMap/EntrySet",307),_(308,1,Wi,dy),h.Nb=function(t){so(this,t)},h.Pb=function(){return gE(this)},h.Ob=function(){return this.b},h.Qb=function(){Bdt(this)},h.b=!1,h.d=0,k(gn,"AbstractHashMap/EntrySetIterator",308),_(422,1,Wi,LN),h.Nb=function(t){so(this,t)},h.Ob=function(){return _q(this)},h.Pb=function(){return khe(this)},h.Qb=function(){Mu(this)},h.b=0,h.c=-1,k(gn,"AbstractList/IteratorImpl",422),_(97,422,vh,Xi),h.Qb=function(){Mu(this)},h.Rb=function(t){Vw(this,t)},h.Sb=function(){return this.b>0},h.Tb=function(){return this.b},h.Ub=function(){return un(this.b>0),this.a.Xb(this.c=--this.b)},h.Vb=function(){return this.b-1},h.Wb=function(t){Hw(this.c!=-1),this.a.fd(this.c,t)},k(gn,"AbstractList/ListIteratorImpl",97),_(217,56,lx,Rf),h._c=function(t,r){ry(t,this.b),this.c._c(this.a+t,r),++this.b},h.Xb=function(t){return at(t,this.b),this.c.Xb(this.a+t)},h.ed=function(t){var r;return at(t,this.b),r=this.c.ed(this.a+t),--this.b,r},h.fd=function(t,r){return at(t,this.b),this.c.fd(this.a+t,r)},h.gc=function(){return this.b},h.a=0,h.b=0,k(gn,"AbstractList/SubList",217),_(234,tf,wu,Xh),h.$b=function(){this.a.$b()},h.Gc=function(t){return this.a._b(t)},h.Jc=function(){var t;return t=this.a.vc().Jc(),new T9(t)},h.Kc=function(t){return this.a._b(t)?(this.a.Ac(t),!0):!1},h.gc=function(){return this.a.gc()},k(gn,"AbstractMap/1",234),_(533,1,Wi,T9),h.Nb=function(t){so(this,t)},h.Ob=function(){return this.a.Ob()},h.Pb=function(){var t;return t=l(this.a.Pb(),45),t.jd()},h.Qb=function(){this.a.Qb()},k(gn,"AbstractMap/1/1",533),_(232,32,Cy,Zh),h.$b=function(){this.a.$b()},h.Gc=function(t){return this.a.uc(t)},h.Jc=function(){var t;return t=this.a.vc().Jc(),new Lw(t)},h.gc=function(){return this.a.gc()},k(gn,"AbstractMap/2",232),_(305,1,Wi,Lw),h.Nb=function(t){so(this,t)},h.Ob=function(){return this.a.Ob()},h.Pb=function(){var t;return t=l(this.a.Pb(),45),t.kd()},h.Qb=function(){this.a.Qb()},k(gn,"AbstractMap/2/1",305),_(483,1,{483:1,45:1}),h.Fb=function(t){var r;return ae(t,45)?(r=l(t,45),ia(this.d,r.jd())&&ia(this.e,r.kd())):!1},h.jd=function(){return this.d},h.kd=function(){return this.e},h.Hb=function(){return nE(this.d)^nE(this.e)},h.ld=function(t){return Qde(this,t)},h.Ib=function(){return this.d+"="+this.e},k(gn,"AbstractMap/AbstractEntry",483),_(392,483,{483:1,392:1,45:1},t8),k(gn,"AbstractMap/SimpleEntry",392),_(2061,1,EX),h.Fb=function(t){var r;return ae(t,45)?(r=l(t,45),ia(this.jd(),r.jd())&&ia(this.kd(),r.kd())):!1},h.Hb=function(){return nE(this.jd())^nE(this.kd())},h.Ib=function(){return this.jd()+"="+this.kd()},k(gn,e2t,2061),_(2069,2044,nwe),h.Vc=function(t){return bq(this.Ce(t))},h.tc=function(t){return clt(this,t)},h._b=function(t){return Zde(this,t)},h.vc=function(){return new qG(this)},h.Rc=function(){return Ast(this.Ee())},h.Wc=function(t){return bq(this.Fe(t))},h.xc=function(t){var r;return r=t,Ss(this.De(r))},h.Yc=function(t){return bq(this.Ge(t))},h.ec=function(){return new KKe(this)},h.Tc=function(){return Ast(this.He())},h.Zc=function(t){return bq(this.Ie(t))},k(gn,"AbstractNavigableMap",2069),_(627,tf,wu,qG),h.Gc=function(t){return ae(t,45)&&clt(this.b,l(t,45))},h.Jc=function(){return this.b.Be()},h.Kc=function(t){var r;return ae(t,45)?(r=l(t,45),this.b.Je(r)):!1},h.gc=function(){return this.b.gc()},k(gn,"AbstractNavigableMap/EntrySet",627),_(1127,tf,rwe,KKe),h.Lc=function(){return new r8(this)},h.$b=function(){this.a.$b()},h.Gc=function(t){return Zde(this.a,t)},h.Jc=function(){var t;return t=this.a.vc().b.Be(),new YKe(t)},h.Kc=function(t){return Zde(this.a,t)?(this.a.Ac(t),!0):!1},h.gc=function(){return this.a.gc()},k(gn,"AbstractNavigableMap/NavigableKeySet",1127),_(1128,1,Wi,YKe),h.Nb=function(t){so(this,t)},h.Ob=function(){return _q(this.a.a)},h.Pb=function(){var t;return t=Hrt(this.a),t.jd()},h.Qb=function(){Wit(this.a)},k(gn,"AbstractNavigableMap/NavigableKeySet/1",1128),_(2082,32,Cy),h.Ec=function(t){return xS(V_(this,t),fx),!0},h.Fc=function(t){return Mt(t),HO(t!=this,"Can't add a queue to itself"),mo(this,t)},h.$b=function(){for(;lK(this)!=null;);},k(gn,"AbstractQueue",2082),_(315,32,{4:1,22:1,32:1,18:1},iE,pct),h.Ec=function(t){return epe(this,t),!0},h.$b=function(){spe(this)},h.Gc=function(t){return Wht(new L3(this),t)},h.dc=function(){return zN(this)},h.Jc=function(){return new L3(this)},h.Kc=function(t){return _un(new L3(this),t)},h.gc=function(){return this.c-this.b&this.a.length-1},h.Lc=function(){return new St(this,272)},h.Oc=function(t){var r;return r=this.c-this.b&this.a.length-1,t.lengthr&&ii(t,r,null),t},h.b=0,h.c=0,k(gn,"ArrayDeque",315),_(451,1,Wi,L3),h.Nb=function(t){so(this,t)},h.Ob=function(){return this.a!=this.b},h.Pb=function(){return Bj(this)},h.Qb=function(){Vft(this)},h.a=0,h.b=0,h.c=-1,k(gn,"ArrayDeque/IteratorImpl",451),_(13,56,b2t,je,Da,Tu),h._c=function(t,r){Nb(this,t,r)},h.Ec=function(t){return Fe(this,t)},h.ad=function(t,r){return Jge(this,t,r)},h.Fc=function(t){return li(this,t)},h.$b=function(){Mw(this.c,0)},h.Gc=function(t){return _s(this,t,0)!=-1},h.Ic=function(t){La(this,t)},h.Xb=function(t){return ze(this,t)},h.bd=function(t){return _s(this,t,0)},h.dc=function(){return this.c.length==0},h.Jc=function(){return new V(this)},h.ed=function(t){return sg(this,t)},h.Kc=function(t){return Xa(this,t)},h.ae=function(t,r){Iut(this,t,r)},h.fd=function(t,r){return nc(this,t,r)},h.gc=function(){return this.c.length},h.gd=function(t){xi(this,t)},h.Nc=function(){return Q8(this.c)},h.Oc=function(t){return Yd(this,t)};var P3n=k(gn,"ArrayList",13);_(7,1,Wi,V),h.Nb=function(t){so(this,t)},h.Ob=function(){return Ts(this)},h.Pb=function(){return q(this)},h.Qb=function(){C3(this)},h.a=0,h.b=-1,k(gn,"ArrayList/1",7),_(2091,b.Function,{},Oe),h.Ke=function(t,r){return yr(t,r)},_(124,56,m2t,Ls),h.Gc=function(t){return qft(this,t)!=-1},h.Ic=function(t){var r,o,a,u;for(Mt(t),o=this.a,a=0,u=o.length;a0)throw Y(new jt(hwe+t+" greater than "+this.e));return this.f.Re()?Yat(this.c,this.b,this.a,t,r):Cut(this.c,t,r)},h.yc=function(t,r){if(!jY(this.c,this.f,t,this.b,this.a,this.e,this.d))throw Y(new jt(t+" outside the range "+this.b+" to "+this.e));return dpt(this.c,t,r)},h.Ac=function(t){var r;return r=t,jY(this.c,this.f,r,this.b,this.a,this.e,this.d)?Jat(this.c,r):null},h.Je=function(t){return SP(this,t.jd())&&xpe(this.c,t)},h.gc=function(){var t,r,o;if(this.f.Re()?this.a?r=$_(this.c,this.b,!0):r=$_(this.c,this.b,!1):r=jpe(this.c),!(r&&SP(this,r.d)&&r))return 0;for(t=0,o=new TK(this.c,this.f,this.b,this.a,this.e,this.d);_q(o.a);o.b=l(khe(o.a),45))++t;return t},h.$c=function(t,r){if(this.f.Re()&&this.c.a.Le(t,this.b)<0)throw Y(new jt(hwe+t+v2t+this.b));return this.f.Se()?Yat(this.c,t,r,this.e,this.d):Nut(this.c,t,r)},h.a=!1,h.d=!1,k(gn,"TreeMap/SubMap",629),_(310,23,_X,i8),h.Re=function(){return!1},h.Se=function(){return!1};var KQ,YQ,JQ,XQ,p$=fn(gn,"TreeMap/SubMapType",310,bn,Xcn,drn);_(1124,310,_X,qnt),h.Se=function(){return!0},fn(gn,"TreeMap/SubMapType/1",1124,p$,null,null),_(1125,310,_X,rrt),h.Re=function(){return!0},h.Se=function(){return!0},fn(gn,"TreeMap/SubMapType/2",1125,p$,null,null),_(1126,310,_X,Vnt),h.Re=function(){return!0},fn(gn,"TreeMap/SubMapType/3",1126,p$,null,null);var dxt;_(143,tf,{3:1,22:1,32:1,18:1,279:1,24:1,85:1,143:1},ZG,Ide,Qp,IA),h.Lc=function(){return new r8(this)},h.Ec=function(t){return qO(this,t)},h.$b=function(){this.a.$b()},h.Gc=function(t){return this.a._b(t)},h.Jc=function(){return this.a.ec().Jc()},h.Kc=function(t){return gV(this,t)},h.gc=function(){return this.a.gc()};var H3n=k(gn,"TreeSet",143);_(1063,1,{},QKe),h.Te=function(t,r){return Inn(this.a,t,r)},k(xX,"BinaryOperator/lambda$0$Type",1063),_(1064,1,{},eYe),h.Te=function(t,r){return Rnn(this.a,t,r)},k(xX,"BinaryOperator/lambda$1$Type",1064),_(944,1,{},Zn),h.Kb=function(t){return t},k(xX,"Function/lambda$0$Type",944),_(390,1,Mn,RA),h.Mb=function(t){return!this.a.Mb(t)},k(xX,"Predicate/lambda$2$Type",390),_(574,1,{574:1});var fxt=k(zC,"Handler",574);_(2086,1,gD),h.ve=function(){return"DUMMY"},h.Ib=function(){return this.ve()};var y2e;k(zC,"Level",2086),_(1689,2086,gD,Yn),h.ve=function(){return"INFO"},k(zC,"Level/LevelInfo",1689),_(1841,1,{},yZe);var ZQ;k(zC,"LogManager",1841),_(1883,1,gD,Qit),h.b=null,k(zC,"LogRecord",1883),_(515,1,{515:1},zW),h.e=!1;var hxt=!1,pxt=!1,sf=!1,gxt=!1,bxt=!1;k(zC,"Logger",515),_(827,574,{574:1},vr),k(zC,"SimpleConsoleLogHandler",827),_(132,23,{3:1,34:1,23:1,132:1},xq);var v2e,nu,E2e,ru=fn(Bo,"Collector/Characteristics",132,bn,Mun,frn),mxt;_(753,1,{},ohe),k(Bo,"CollectorImpl",753),_(1061,1,{},On),h.Te=function(t,r){return agn(l(t,215),l(r,215))},k(Bo,"Collectors/10methodref$merge$Type",1061),_(1062,1,{},Xs),h.Kb=function(t){return Zut(l(t,215))},k(Bo,"Collectors/11methodref$toString$Type",1062),_(153,1,{},ls),h.Wd=function(t,r){l(t,18).Ec(r)},k(Bo,"Collectors/20methodref$add$Type",153),_(155,1,{},Qo),h.Ve=function(){return new je},k(Bo,"Collectors/21methodref$ctor$Type",155),_(1060,1,{},Ca),h.Wd=function(t,r){up(l(t,215),l(r,475))},k(Bo,"Collectors/9methodref$add$Type",1060),_(1059,1,{},hot),h.Ve=function(){return new qb(this.a,this.b,this.c)},k(Bo,"Collectors/lambda$15$Type",1059),_(154,1,{},Ni),h.Te=function(t,r){return uen(l(t,18),l(r,18))},k(Bo,"Collectors/lambda$45$Type",154),_(542,1,{}),h.Ye=function(){D3(this)},h.d=!1,k(Bo,"TerminatableStream",542),_(775,542,pwe,zde),h.Ye=function(){D3(this)},k(Bo,"DoubleStreamImpl",775),_(1309,731,Tc,pot),h.Pe=function(t){return Fbn(this,l(t,191))},h.a=null,k(Bo,"DoubleStreamImpl/2",1309),_(1310,1,AD,tYe),h.Ne=function(t){ntn(this.a,t)},k(Bo,"DoubleStreamImpl/2/lambda$0$Type",1310),_(1307,1,AD,nYe),h.Ne=function(t){ttn(this.a,t)},k(Bo,"DoubleStreamImpl/lambda$0$Type",1307),_(1308,1,AD,rYe),h.Ne=function(t){$gt(this.a,t)},k(Bo,"DoubleStreamImpl/lambda$2$Type",1308),_(1363,730,Tc,dlt),h.Pe=function(t){return Hcn(this,l(t,204))},h.a=0,h.b=0,h.c=0,k(Bo,"IntStream/5",1363),_(800,542,pwe,Gde),h.Ye=function(){D3(this)},h.Ze=function(){return u1(this),this.a},k(Bo,"IntStreamImpl",800),_(801,542,pwe,ple),h.Ye=function(){D3(this)},h.Ze=function(){return u1(this),bde(),lxt},k(Bo,"IntStreamImpl/Empty",801),_(1668,1,mD,iYe),h.Bd=function(t){Mht(this.a,t)},k(Bo,"IntStreamImpl/lambda$4$Type",1668);var z3n=Hr(Bo,"Stream");_(28,542,{524:1,684:1,840:1},Et),h.Ye=function(){D3(this)};var TT;k(Bo,"StreamImpl",28),_(1083,489,Tc,Uit),h.zd=function(t){for(;$dn(this);){if(this.a.zd(t))return!0;D3(this.b),this.b=null,this.a=null}return!1},k(Bo,"StreamImpl/1",1083),_(1084,1,nn,oYe),h.Ad=function(t){Eon(this.a,l(t,840))},k(Bo,"StreamImpl/1/lambda$0$Type",1084),_(1085,1,Mn,sYe),h.Mb=function(t){return pi(this.a,t)},k(Bo,"StreamImpl/1methodref$add$Type",1085),_(1086,489,Tc,Aat),h.zd=function(t){var r;return this.a||(r=new je,this.b.a.Nb(new aYe(r)),At(),xi(r,this.c),this.a=new St(r,16)),cft(this.a,t)},h.a=null,k(Bo,"StreamImpl/5",1086),_(1087,1,nn,aYe),h.Ad=function(t){Fe(this.a,t)},k(Bo,"StreamImpl/5/2methodref$add$Type",1087),_(732,489,Tc,Lpe),h.zd=function(t){for(this.b=!1;!this.b&&this.c.zd(new rtt(this,t)););return this.b},h.b=!1,k(Bo,"StreamImpl/FilterSpliterator",732),_(1077,1,nn,rtt),h.Ad=function(t){gsn(this.a,this.b,t)},k(Bo,"StreamImpl/FilterSpliterator/lambda$0$Type",1077),_(1072,731,Tc,vlt),h.Pe=function(t){return Knn(this,l(t,191))},k(Bo,"StreamImpl/MapToDoubleSpliterator",1072),_(1076,1,nn,itt),h.Ad=function(t){Aen(this.a,this.b,t)},k(Bo,"StreamImpl/MapToDoubleSpliterator/lambda$0$Type",1076),_(1071,730,Tc,Elt),h.Pe=function(t){return Ynn(this,l(t,204))},k(Bo,"StreamImpl/MapToIntSpliterator",1071),_(1075,1,nn,ott),h.Ad=function(t){_en(this.a,this.b,t)},k(Bo,"StreamImpl/MapToIntSpliterator/lambda$0$Type",1075),_(729,489,Tc,Epe),h.zd=function(t){return $it(this,t)},k(Bo,"StreamImpl/MapToObjSpliterator",729),_(1074,1,nn,stt),h.Ad=function(t){xen(this.a,this.b,t)},k(Bo,"StreamImpl/MapToObjSpliterator/lambda$0$Type",1074),_(1073,489,Tc,Jft),h.zd=function(t){for(;Tq(this.b,0);){if(!this.a.zd(new Qr))return!1;this.b=El(this.b,1)}return this.a.zd(t)},h.b=0,k(Bo,"StreamImpl/SkipSpliterator",1073),_(1078,1,nn,Qr),h.Ad=function(t){},k(Bo,"StreamImpl/SkipSpliterator/lambda$0$Type",1078),_(624,1,nn,Hi),h.Ad=function(t){zKe(this,t)},k(Bo,"StreamImpl/ValueConsumer",624),_(1079,1,nn,ai),h.Ad=function(t){_b()},k(Bo,"StreamImpl/lambda$0$Type",1079),_(1080,1,nn,jc),h.Ad=function(t){_b()},k(Bo,"StreamImpl/lambda$1$Type",1080),_(1081,1,{},uYe),h.Te=function(t,r){return mrn(this.a,t,r)},k(Bo,"StreamImpl/lambda$4$Type",1081),_(1082,1,nn,att),h.Ad=function(t){Hnn(this.b,this.a,t)},k(Bo,"StreamImpl/lambda$5$Type",1082),_(1088,1,nn,cYe),h.Ad=function(t){$hn(this.a,l(t,376))},k(Bo,"TerminatableStream/lambda$0$Type",1088),_(2121,1,{}),_(1993,1,{},Ui),k("javaemul.internal","ConsoleLogger",1993);var G3n=0;_(2113,1,{}),_(1817,1,nn,mb),h.Ad=function(t){l(t,322)},k(hx,"BowyerWatsonTriangulation/lambda$0$Type",1817),_(1818,1,nn,lYe),h.Ad=function(t){mo(this.a,l(t,322).e)},k(hx,"BowyerWatsonTriangulation/lambda$1$Type",1818),_(1819,1,nn,Yg),h.Ad=function(t){l(t,180)},k(hx,"BowyerWatsonTriangulation/lambda$2$Type",1819),_(1814,1,Un,dYe),h.Le=function(t,r){return Rln(this.a,l(t,180),l(r,180))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(hx,"NaiveMinST/lambda$0$Type",1814),_(401,1,{},OA),k(hx,"NodeMicroLayout",401),_(180,1,{180:1},hS),h.Fb=function(t){var r;return ae(t,180)?(r=l(t,180),ia(this.a,r.a)&&ia(this.b,r.b)||ia(this.a,r.b)&&ia(this.b,r.a)):!1},h.Hb=function(){return nE(this.a)+nE(this.b)};var q3n=k(hx,"TEdge",180);_(322,1,{322:1},N0e),h.Fb=function(t){var r;return ae(t,322)?(r=l(t,322),sj(this,r.a)&&sj(this,r.b)&&sj(this,r.c)):!1},h.Hb=function(){return nE(this.a)+nE(this.b)+nE(this.c)},k(hx,"TTriangle",322),_(227,1,{227:1},D8),k(hx,"Tree",227),_(1195,1,{},vut),k(T2t,"Scanline",1195);var wxt=Hr(T2t,A2t);_(1745,1,{},lft),k(Ah,"CGraph",1745),_(321,1,{321:1},sut),h.b=0,h.c=0,h.d=0,h.g=0,h.i=0,h.k=Li,k(Ah,"CGroup",321),_(821,1,{},Oce),k(Ah,"CGroup/CGroupBuilder",821),_(60,1,{60:1},Sit),h.Ib=function(){var t;return this.j?In(this.j.Kb(this)):(np(g$),g$.o+"@"+(t=s0(this)>>>0,t.toString(16)))},h.f=0,h.i=Li;var g$=k(Ah,"CNode",60);_(820,1,{},Dce),k(Ah,"CNode/CNodeBuilder",820);var yxt;_(1568,1,{},Wh),h.df=function(t,r){return 0},h.ef=function(t,r){return 0},k(Ah,x2t,1568),_(1847,1,{},wb),h.af=function(t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z;for(v=Kr,a=new V(t.a.b);a.aa.d.c||a.d.c==f.d.c&&a.d.b0?t+this.n.d+this.n.a:0},h.gf=function(){var t,r,o,a,u;if(u=0,this.e)this.b?u=this.b.a:this.a[1][1]&&(u=this.a[1][1].gf());else if(this.g)u=T1e(this,$Y(this,null,!0));else for(r=(Sd(),Z(X(jy,1),Ce,240,0,[Bs,$a,Us])),o=0,a=r.length;o0?u+this.n.b+this.n.c:0},h.hf=function(){var t,r,o,a,u;if(this.g)for(t=$Y(this,null,!1),o=(Sd(),Z(X(jy,1),Ce,240,0,[Bs,$a,Us])),a=0,u=o.length;a0&&(a[0]+=this.d,o-=a[0]),a[2]>0&&(a[2]+=this.d,o-=a[2]),this.c.a=b.Math.max(0,o),this.c.d=r.d+t.d+(this.c.a-o)/2,a[1]=b.Math.max(a[1],o),mpe(this,$a,r.d+t.d+a[0]-(a[1]-o)/2,a)},h.b=null,h.d=0,h.e=!1,h.f=!1,h.g=!1;var eee=0,b$=0;k(rm,"GridContainerCell",1516),_(464,23,{3:1,34:1,23:1,464:1},Nq);var L1,Wf,nd,xxt=fn(rm,"HorizontalLabelAlignment",464,bn,jun,prn),kxt;_(319,219,{219:1,319:1},Qat,dft,Gat),h.ff=function(){return Tot(this)},h.gf=function(){return Pfe(this)},h.a=0,h.c=!1;var V3n=k(rm,"LabelCell",319);_(256,338,{219:1,338:1,256:1},fC),h.ff=function(){return EC(this)},h.gf=function(){return SC(this)},h.hf=function(){xJ(this)},h.jf=function(){kJ(this)},h.b=0,h.c=0,h.d=!1,k(rm,"StripContainerCell",256),_(1672,1,Mn,Xg),h.Mb=function(t){return vQt(l(t,219))},k(rm,"StripContainerCell/lambda$0$Type",1672),_(1673,1,{},CN),h.We=function(t){return l(t,219).gf()},k(rm,"StripContainerCell/lambda$1$Type",1673),_(1674,1,Mn,IN),h.Mb=function(t){return EQt(l(t,219))},k(rm,"StripContainerCell/lambda$2$Type",1674),_(1675,1,{},Kp),h.We=function(t){return l(t,219).ff()},k(rm,"StripContainerCell/lambda$3$Type",1675),_(465,23,{3:1,34:1,23:1,465:1},Cq);var rd,M1,Nd,Nxt=fn(rm,"VerticalLabelAlignment",465,bn,Fun,grn),Cxt;_(794,1,{},V0e),h.c=0,h.d=0,h.k=0,h.s=0,h.t=0,h.v=!1,h.w=0,h.D=!1,h.F=!1,k(aF,"NodeContext",794),_(1514,1,Un,GR),h.Le=function(t,r){return Pnt(l(t,64),l(r,64))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(aF,"NodeContext/0methodref$comparePortSides$Type",1514),_(1515,1,Un,kA),h.Le=function(t,r){return Ewn(l(t,116),l(r,116))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(aF,"NodeContext/1methodref$comparePortContexts$Type",1515),_(169,23,{3:1,34:1,23:1,169:1},Kc);var Ixt,Rxt,Oxt,Dxt,Lxt,Mxt,Pxt,jxt,Fxt,$xt,Bxt,Uxt,Hxt,zxt,Gxt,qxt,Vxt,Wxt,Kxt,Yxt,Jxt,tee,Xxt=fn(aF,"NodeLabelLocation",169,bn,bY,brn),Zxt;_(116,1,{116:1},v0t),h.a=!1,k(aF,"PortContext",116),_(1519,1,nn,qR),h.Ad=function(t){tet(l(t,319))},k(xD,$2t,1519),_(1520,1,Mn,VR),h.Mb=function(t){return!!l(t,116).c},k(xD,B2t,1520),_(1521,1,nn,RN),h.Ad=function(t){tet(l(t,116).c)},k(xD,"LabelPlacer/lambda$2$Type",1521);var T2e;_(1518,1,nn,ON),h.Ad=function(t){qw(),QZt(l(t,116))},k(xD,"NodeLabelAndSizeUtilities/lambda$0$Type",1518),_(795,1,nn,gfe),h.Ad=function(t){hen(this.b,this.c,this.a,l(t,190))},h.a=!1,h.c=!1,k(xD,"NodeLabelCellCreator/lambda$0$Type",795),_(1517,1,nn,pYe),h.Ad=function(t){rQt(this.a,l(t,190))},k(xD,"PortContextCreator/lambda$0$Type",1517);var m$;_(1889,1,{},po),k(gx,"GreedyRectangleStripOverlapRemover",1889),_(1890,1,Un,Fc),h.Le=function(t,r){return Vtn(l(t,228),l(r,228))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(gx,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1890),_(1843,1,{},AZe),h.a=5,h.e=0,k(gx,"RectangleStripOverlapRemover",1843),_(1844,1,Un,Fl),h.Le=function(t,r){return Wtn(l(t,228),l(r,228))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(gx,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1844),_(1846,1,Un,Af),h.Le=function(t,r){return Isn(l(t,228),l(r,228))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(gx,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1846),_(414,23,{3:1,34:1,23:1,414:1},o8);var QD,nee,ree,eL,Qxt=fn(gx,"RectangleStripOverlapRemover/OverlapRemovalDirection",414,bn,Jcn,yrn),ekt;_(228,1,{228:1},VV),k(gx,"RectangleStripOverlapRemover/RectangleNode",228),_(1845,1,nn,gYe),h.Ad=function(t){Ybn(this.a,l(t,228))},k(gx,"RectangleStripOverlapRemover/lambda$1$Type",1845);var tkt=!1,vI,A2e;_(1815,1,nn,Z2),h.Ad=function(t){Ovt(l(t,227))},k(gT,"DepthFirstCompaction/0methodref$compactTree$Type",1815),_(817,1,nn,bce),h.Ad=function(t){ian(this.a,l(t,227))},k(gT,"DepthFirstCompaction/lambda$1$Type",817),_(1816,1,nn,Xit),h.Ad=function(t){j1n(this.a,this.b,this.c,l(t,227))},k(gT,"DepthFirstCompaction/lambda$2$Type",1816);var EI,_2e;_(68,1,{68:1},Sut),k(gT,"Node",68),_(1191,1,{},trt),k(gT,"ScanlineOverlapCheck",1191),_(1192,1,{690:1},$at),h._e=function(t){Pnn(this,l(t,445))},k(gT,"ScanlineOverlapCheck/OverlapsScanlineHandler",1192),_(1193,1,Un,pl),h.Le=function(t,r){return Egn(l(t,68),l(r,68))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(gT,"ScanlineOverlapCheck/OverlapsScanlineHandler/lambda$0$Type",1193),_(445,1,{445:1},Nle),h.a=!1,k(gT,"ScanlineOverlapCheck/Timestamp",445),_(1194,1,Un,sh),h.Le=function(t,r){return Zmn(l(t,445),l(r,445))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(gT,"ScanlineOverlapCheck/lambda$0$Type",1194),_(549,1,{},Vm),k("org.eclipse.elk.alg.common.utils","SVGImage",549),_(755,1,{},ah),k(RX,Ewe,755),_(1176,1,Un,Yh),h.Le=function(t,r){return kvn(l(t,238),l(r,238))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(RX,z2t,1176),_(1177,1,nn,utt),h.Ad=function(t){Bun(this.b,this.a,l(t,254))},k(RX,Swe,1177),_(207,1,im),k(LE,"AbstractLayoutProvider",207),_(733,207,im,Lce),h.kf=function(t,r){lwt(this,t,r)},k(RX,"ForceLayoutProvider",733);var W3n=Hr(kD,G2t);_(151,1,{3:1,105:1,151:1},Q2),h.of=function(t,r){return C6(this,t,r)},h.lf=function(){return zot(this)},h.mf=function(t){return F(this,t)},h.nf=function(t){return gr(this,t)},k(kD,"MapPropertyHolder",151),_(314,151,{3:1,314:1,105:1,151:1}),k(ND,"FParticle",314),_(254,314,{3:1,254:1,314:1,105:1,151:1},Ist),h.Ib=function(){var t;return this.a?(t=_s(this.a.a,this,0),t>=0?"b"+t+"["+$W(this.a)+"]":"b["+$W(this.a)+"]"):"b_"+s0(this)},k(ND,"FBendpoint",254),_(292,151,{3:1,292:1,105:1,151:1},Tit),h.Ib=function(){return $W(this)},k(ND,"FEdge",292),_(238,151,{3:1,238:1,105:1,151:1},JP);var K3n=k(ND,"FGraph",238);_(448,314,{3:1,448:1,314:1,105:1,151:1},Lct),h.Ib=function(){return this.b==null||this.b.length==0?"l["+$W(this.a)+"]":"l_"+this.b},k(ND,"FLabel",448),_(156,314,{3:1,156:1,314:1,105:1,151:1},nrt),h.Ib=function(){return qhe(this)},h.a=0,k(ND,"FNode",156),_(2079,1,{}),h.qf=function(t){S0e(this,t)},h.rf=function(){G1t(this)},h.d=0,k(Twe,"AbstractForceModel",2079),_(638,2079,{638:1},Lht),h.pf=function(t,r){var o,a,u,f,p;return Pvt(this.f,t,r),u=Di(To(r.d),t.d),p=b.Math.sqrt(u.a*u.a+u.b*u.b),a=b.Math.max(0,p-O3(t.e)/2-O3(r.e)/2),o=l0t(this.e,t,r),o>0?f=-Tsn(a,this.c)*o:f=ann(a,this.b)*l(F(t,(ed(),AT)),15).a,tp(u,f/p),u},h.qf=function(t){S0e(this,t),this.a=l(F(t,(ed(),y$)),15).a,this.c=ue(ce(F(t,v$))),this.b=ue(ce(F(t,oee)))},h.sf=function(t){return t0&&(f-=bQt(a,this.a)*o),tp(u,f*this.b/p),u},h.qf=function(t){var r,o,a,u,f,p,m;for(S0e(this,t),this.b=ue(ce(F(t,(ed(),see)))),this.c=this.b/l(F(t,y$),15).a,a=t.e.c.length,f=0,u=0,m=new V(t.e);m.a0},h.a=0,h.b=0,h.c=0,k(Twe,"FruchtermanReingoldModel",639);var GE=Hr(Ns,"ILayoutMetaDataProvider");_(852,1,td,pWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,uF),""),"Force Model"),"Determines the model for force calculation."),x2e),(A1(),$r)),k2e),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Awe),""),"Iterations"),"The number of iterations on the force model."),Re(300)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,_we),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),Re(0)),yo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,OX),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),Hf),eo),fi),ct(xt)))),zr(t,OX,uF,ukt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,DX),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),eo),fi),ct(xt)))),zr(t,DX,uF,okt),xEt((new bWe,t))};var nkt,rkt,x2e,ikt,okt,skt,akt,ukt;k(VC,"ForceMetaDataProvider",852),_(429,23,{3:1,34:1,23:1,429:1},xle);var iee,w$,k2e=fn(VC,"ForceModelStrategy",429,bn,lun,Ern),ckt;_(993,1,td,bWe),h.tf=function(t){xEt(t)};var lkt,dkt,N2e,y$,C2e,fkt,hkt,pkt,gkt,I2e,bkt,R2e,O2e,mkt,AT,wkt,oee,D2e,ykt,vkt,v$,see,Ekt,Skt,Tkt,L2e,Akt;k(VC,"ForceOptions",993),_(994,1,{},Wm),h.uf=function(){var t;return t=new Lce,t},h.vf=function(t){},k(VC,"ForceOptions/ForceFactory",994);var tL,SI,_T,E$;_(853,1,td,mWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kwe),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(Lt(),!1)),(A1(),Ai)),Yr),ct((Jd(),ri))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Nwe),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),eo),fi),xr(xt,Z(X(cf,1),Ce,161,0,[Rd]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Cwe),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),M2e),$r),H2e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Iwe),""),"Stress Epsilon"),"Termination criterion for the iterative process."),Hf),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Rwe),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),Re(sr)),yo),Ti),ct(xt)))),Qvt((new wWe,t))};var _kt,xkt,M2e,kkt,Nkt,Ckt;k(VC,"StressMetaDataProvider",853),_(997,1,td,wWe),h.tf=function(t){Qvt(t)};var S$,P2e,j2e,F2e,$2e,B2e,Ikt,Rkt,Okt,Dkt,U2e,Lkt;k(VC,"StressOptions",997),_(998,1,{},n9),h.uf=function(){var t;return t=new Ait,t},h.vf=function(t){},k(VC,"StressOptions/StressFactory",998),_(1091,207,im,Ait),h.kf=function(t,r){var o,a,u,f,p;for(r.Tg(Y2t,1),Ye(Ke(ve(t,(G6(),$2e))))?Ye(Ke(ve(t,U2e)))||P3((o=new OA((t1(),new Yp(t))),o)):lwt(new Lce,t,r.dh(1)),u=spt(t),a=avt(this.a,u),p=a.Jc();p.Ob();)f=l(p.Pb(),238),!(f.e.c.length<=1)&&(txn(this.b,f),TEn(this.b),La(f.d,new tG));u=TEt(a),OEt(u),r.Ug()},k(dF,"StressLayoutProvider",1091),_(1092,1,nn,tG),h.Ad=function(t){R0e(l(t,448))},k(dF,"StressLayoutProvider/lambda$0$Type",1092),_(995,1,{},mZe),h.c=0,h.e=0,h.g=0,k(dF,"StressMajorization",995),_(385,23,{3:1,34:1,23:1,385:1},Iq);var aee,uee,cee,H2e=fn(dF,"StressMajorization/Dimension",385,bn,Uun,Srn),Mkt;_(996,1,Un,bYe),h.Le=function(t,r){return Znn(this.a,l(t,156),l(r,156))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(dF,"StressMajorization/lambda$0$Type",996),_(1173,1,{},Put),k(wT,"ElkLayered",1173),_(1174,1,nn,mYe),h.Ad=function(t){lvn(this.a,l(t,37))},k(wT,"ElkLayered/lambda$0$Type",1174),_(1175,1,nn,wYe),h.Ad=function(t){Xnn(this.a,l(t,37))},k(wT,"ElkLayered/lambda$1$Type",1175),_(1258,1,{},irt);var Pkt,jkt,Fkt;k(wT,"GraphConfigurator",1258),_(764,1,nn,mce),h.Ad=function(t){cmt(this.a,l(t,9))},k(wT,"GraphConfigurator/lambda$0$Type",764),_(765,1,{},r9),h.Kb=function(t){return pbe(),new Et(null,new St(l(t,26).a,16))},k(wT,"GraphConfigurator/lambda$1$Type",765),_(766,1,nn,wce),h.Ad=function(t){cmt(this.a,l(t,9))},k(wT,"GraphConfigurator/lambda$2$Type",766),_(1090,207,im,vZe),h.kf=function(t,r){var o;o=D_n(new xZe,t),be(ve(t,(Be(),Wy)))===be((pp(),Ig))?Ngn(this.a,o,r):yEn(this.a,o,r),r.Zg()||bEt(new gWe,o)},k(wT,"LayeredLayoutProvider",1090),_(364,23,{3:1,34:1,23:1,364:1},pO);var id,kh,la,da,Ho,z2e=fn(wT,"LayeredPhases",364,bn,Wln,Trn),$kt;_(1700,1,{},Yft),h.i=0;var Bkt;k(MD,"ComponentsToCGraphTransformer",1700);var Ukt;_(1701,1,{},nG),h.wf=function(t,r){return b.Math.min(t.a!=null?ue(t.a):t.c.i,r.a!=null?ue(r.a):r.c.i)},h.xf=function(t,r){return b.Math.min(t.a!=null?ue(t.a):t.c.i,r.a!=null?ue(r.a):r.c.i)},k(MD,"ComponentsToCGraphTransformer/1",1701),_(84,1,{84:1}),h.i=0,h.k=!0,h.o=Li;var lee=k(KC,"CNode",84);_(463,84,{463:1,84:1},Rde,z1e),h.Ib=function(){return""},k(MD,"ComponentsToCGraphTransformer/CRectNode",463),_(1669,1,{},rG);var dee,fee;k(MD,"OneDimensionalComponentsCompaction",1669),_(1670,1,{},i9),h.Kb=function(t){return Iun(l(t,49))},h.Fb=function(t){return this===t},k(MD,"OneDimensionalComponentsCompaction/lambda$0$Type",1670),_(1671,1,{},o9),h.Kb=function(t){return Dgn(l(t,49))},h.Fb=function(t){return this===t},k(MD,"OneDimensionalComponentsCompaction/lambda$1$Type",1671),_(1703,1,{},Pst),k(KC,"CGraph",1703),_(197,1,{197:1},hY),h.b=0,h.c=0,h.e=0,h.g=!0,h.i=Li,k(KC,"CGroup",197),_(1702,1,{},a9),h.wf=function(t,r){return b.Math.max(t.a!=null?ue(t.a):t.c.i,r.a!=null?ue(r.a):r.c.i)},h.xf=function(t,r){return b.Math.max(t.a!=null?ue(t.a):t.c.i,r.a!=null?ue(r.a):r.c.i)},k(KC,x2t,1702),_(1704,1,{},f0t),h.d=!1;var Hkt,hee=k(KC,C2t,1704);_(1705,1,{},cG),h.Kb=function(t){return gle(),Lt(),l(l(t,49).a,84).d.e!=0},h.Fb=function(t){return this===t},k(KC,I2t,1705),_(825,1,{},Hfe),h.a=!1,h.b=!1,h.c=!1,h.d=!1,k(KC,R2t,825),_(1885,1,{},est),k(fF,O2t,1885);var nL=Hr(om,A2t);_(1886,1,{378:1},Fat),h._e=function(t){NSn(this,l(t,468))},k(fF,D2t,1886),_(1887,1,Un,lG),h.Le=function(t,r){return yan(l(t,84),l(r,84))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(fF,L2t,1887),_(468,1,{468:1},Cle),h.a=!1,k(fF,M2t,468),_(1888,1,Un,dG),h.Le=function(t,r){return Qmn(l(t,468),l(r,468))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(fF,P2t,1888),_(148,1,{148:1},qA,Ofe),h.Fb=function(t){var r;return t==null||Y3n!=rc(t)?!1:(r=l(t,148),ia(this.c,r.c)&&ia(this.d,r.d))},h.Hb=function(){return Fj(Z(X(Ii,1),Rt,1,5,[this.c,this.d]))},h.Ib=function(){return"("+this.c+ja+this.d+(this.a?"cx":"")+this.b+")"},h.a=!0,h.c=0,h.d=0;var Y3n=k(om,"Point",148);_(413,23,{3:1,34:1,23:1,413:1},s8);var X0,Fy,qE,$y,zkt=fn(om,"Point/Quadrant",413,bn,Ycn,vrn),Gkt;_(1691,1,{},EZe),h.b=null,h.c=null,h.d=null,h.e=null,h.f=null;var qkt,Vkt,Wkt,Kkt,Ykt;k(om,"RectilinearConvexHull",1691),_(576,1,{378:1},o7),h._e=function(t){Gdn(this,l(t,148))},h.b=0;var G2e;k(om,"RectilinearConvexHull/MaximalElementsEventHandler",576),_(1693,1,Un,iG),h.Le=function(t,r){return van(ce(t),ce(r))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(om,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1693),_(1692,1,{378:1},rft),h._e=function(t){G2n(this,l(t,148))},h.a=0,h.b=null,h.c=null,h.d=null,h.e=null,k(om,"RectilinearConvexHull/RectangleEventHandler",1692),_(1694,1,Un,oG),h.Le=function(t,r){return Scn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(om,"RectilinearConvexHull/lambda$0$Type",1694),_(1695,1,Un,s9),h.Le=function(t,r){return Tcn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(om,"RectilinearConvexHull/lambda$1$Type",1695),_(1696,1,Un,sG),h.Le=function(t,r){return _cn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(om,"RectilinearConvexHull/lambda$2$Type",1696),_(1697,1,Un,aG),h.Le=function(t,r){return Acn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(om,"RectilinearConvexHull/lambda$3$Type",1697),_(1698,1,Un,uG),h.Le=function(t,r){return Pwn(l(t,148),l(r,148))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(om,"RectilinearConvexHull/lambda$4$Type",1698),_(1699,1,{},Eut),k(om,"Scanline",1699),_(2083,1,{}),k(rf,"AbstractGraphPlacer",2083),_(337,1,{337:1},Krt),h.Df=function(t){return this.Ef(t)?(yt(this.b,l(F(t,(Ie(),_p)),24),t),!0):!1},h.Ef=function(t){var r,o,a,u;for(r=l(F(t,(Ie(),_p)),24),u=l(wr(_r,r),24),a=u.Jc();a.Ob();)if(o=l(a.Pb(),24),!l(wr(this.b,o),16).dc())return!1;return!0};var _r;k(rf,"ComponentGroup",337),_(773,2083,{},Mce),h.Ff=function(t){var r,o;for(o=new V(this.a);o.ao&&(T=0,N+=m+a,m=0),y=f.c,ex(f,T+y.a,N+y.b),wd(y),u=b.Math.max(u,T+v.a),m=b.Math.max(m,v.b),T+=v.a+a;r.f.a=u,r.f.b=N+m},h.Hf=function(t,r){var o,a,u,f,p;if(be(F(r,(Be(),jI)))===be((YS(),TI))){for(a=t.Jc();a.Ob();){for(o=l(a.Pb(),37),p=0,f=new V(o.a);f.ao&&!l(F(f,(Ie(),_p)),24).Gc((He(),Wt))||y&&l(F(y,(Ie(),_p)),24).Gc((He(),Qt))||l(F(f,(Ie(),_p)),24).Gc((He(),Kt)))&&(O=N,M+=m+a,m=0),v=f.c,l(F(f,(Ie(),_p)),24).Gc((He(),Wt))&&(O=u+a),ex(f,O+v.a,M+v.b),u=b.Math.max(u,O+T.a),l(F(f,_p),24).Gc(dn)&&(N=b.Math.max(N,O+T.a+a)),wd(v),m=b.Math.max(m,T.b),O+=T.a+a,y=f;r.f.a=u,r.f.b=M+m},h.Hf=function(t,r){},k(rf,"ModelOrderRowGraphPlacer",1289),_(1287,1,Un,gG),h.Le=function(t,r){return jhn(l(t,37),l(r,37))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(rf,"SimpleRowGraphPlacer/1",1287);var Xkt;_(1257,1,Uf,u9),h.Lb=function(t){var r;return r=l(F(l(t,253).b,(Be(),ss)),79),!!r&&r.b!=0},h.Fb=function(t){return this===t},h.Mb=function(t){var r;return r=l(F(l(t,253).b,(Be(),ss)),79),!!r&&r.b!=0},k(hF,"CompoundGraphPostprocessor/1",1257),_(1256,1,kr,kZe),h.If=function(t,r){x1t(this,l(t,37),r)},k(hF,"CompoundGraphPreprocessor",1256),_(447,1,{447:1},ggt),h.c=!1,k(hF,"CompoundGraphPreprocessor/ExternalPort",447),_(253,1,{253:1},K8),h.Ib=function(){return yV(this.c)+":"+s0t(this.b)},k(hF,"CrossHierarchyEdge",253),_(771,1,Un,yce),h.Le=function(t,r){return Amn(this,l(t,253),l(r,253))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(hF,"CrossHierarchyEdgeComparator",771),_(248,151,{3:1,248:1,105:1,151:1}),h.p=0,k(ca,"LGraphElement",248),_(17,248,{3:1,17:1,248:1,105:1,151:1},p0),h.Ib=function(){return s0t(this)};var zx=k(ca,"LEdge",17);_(37,248,{3:1,22:1,37:1,248:1,105:1,151:1},nge),h.Ic=function(t){lo(this,t)},h.Jc=function(){return new V(this.b)},h.Ib=function(){return this.b.c.length==0?"G-unlayered"+Qd(this.a):this.a.c.length==0?"G-layered"+Qd(this.b):"G[layerless"+Qd(this.a)+", layers"+Qd(this.b)+"]"};var Zkt=k(ca,"LGraph",37),Qkt;_(662,1,{}),h.Jf=function(){return this.e.n},h.mf=function(t){return F(this.e,t)},h.Kf=function(){return this.e.o},h.Lf=function(){return this.e.p},h.nf=function(t){return gr(this.e,t)},h.Mf=function(t){this.e.n.a=t.a,this.e.n.b=t.b},h.Nf=function(t){this.e.o.a=t.a,this.e.o.b=t.b},h.Of=function(t){this.e.p=t},k(ca,"LGraphAdapters/AbstractLShapeAdapter",662),_(467,1,{845:1},MN),h.Pf=function(){var t,r;if(!this.b)for(this.b=ch(this.a.b.c.length),r=new V(this.a.b);r.a0&&Upt((Yt(r-1,t.length),t.charCodeAt(r-1)),tSt);)--r;if(f> ",t),p7(o)),zn(ba((t.a+="[",t),o.i),"]")),t.a},h.c=!0,h.d=!1;var Y2e,J2e,X2e,Z2e,Q2e,eSe,tNt=k(ca,"LPort",12);_(404,1,Eh,DA),h.Ic=function(t){lo(this,t)},h.Jc=function(){var t;return t=new V(this.a.e),new yYe(t)},k(ca,"LPort/1",404),_(1285,1,Wi,yYe),h.Nb=function(t){so(this,t)},h.Pb=function(){return l(q(this.a),17).c},h.Ob=function(){return Ts(this.a)},h.Qb=function(){C3(this.a)},k(ca,"LPort/1/1",1285),_(366,1,Eh,tS),h.Ic=function(t){lo(this,t)},h.Jc=function(){var t;return t=new V(this.a.g),new vce(t)},k(ca,"LPort/2",366),_(770,1,Wi,vce),h.Nb=function(t){so(this,t)},h.Pb=function(){return l(q(this.a),17).d},h.Ob=function(){return Ts(this.a)},h.Qb=function(){C3(this.a)},k(ca,"LPort/2/1",770),_(1278,1,Eh,ltt),h.Ic=function(t){lo(this,t)},h.Jc=function(){return new Vd(this)},k(ca,"LPort/CombineIter",1278),_(210,1,Wi,Vd),h.Nb=function(t){so(this,t)},h.Qb=function(){$Qe()},h.Ob=function(){return v3(this)},h.Pb=function(){return Ts(this.a)?q(this.a):q(this.b)},k(ca,"LPort/CombineIter/1",210),_(1279,1,Uf,mG),h.Lb=function(t){return gst(t)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).g.c.length!=0},k(ca,"LPort/lambda$0$Type",1279),_(1280,1,Uf,wG),h.Lb=function(t){return bst(t)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).e.c.length!=0},k(ca,"LPort/lambda$1$Type",1280),_(1281,1,Uf,yG),h.Lb=function(t){return bu(),l(t,12).j==(He(),Wt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(He(),Wt)},k(ca,"LPort/lambda$2$Type",1281),_(1282,1,Uf,vG),h.Lb=function(t){return bu(),l(t,12).j==(He(),Qt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(He(),Qt)},k(ca,"LPort/lambda$3$Type",1282),_(1283,1,Uf,EG),h.Lb=function(t){return bu(),l(t,12).j==(He(),dn)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(He(),dn)},k(ca,"LPort/lambda$4$Type",1283),_(1284,1,Uf,DN),h.Lb=function(t){return bu(),l(t,12).j==(He(),Kt)},h.Fb=function(t){return this===t},h.Mb=function(t){return bu(),l(t,12).j==(He(),Kt)},k(ca,"LPort/lambda$5$Type",1284),_(26,248,{3:1,22:1,248:1,26:1,105:1,151:1},ra),h.Ic=function(t){lo(this,t)},h.Jc=function(){return new V(this.a)},h.Ib=function(){return"L_"+_s(this.b.b,this,0)+Qd(this.a)},k(ca,"Layer",26),_(1676,1,{},adt),h.b=0,k(ca,"Tarjan",1676),_(1294,1,{},xZe),k(Eg,oSt,1294),_(1298,1,{},SG),h.Kb=function(t){return Yo(l(t,83))},k(Eg,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1298),_(1301,1,{},d9),h.Kb=function(t){return Yo(l(t,83))},k(Eg,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1301),_(1295,1,nn,vYe),h.Ad=function(t){T0t(this.a,l(t,127))},k(Eg,Swe,1295),_(1296,1,nn,EYe),h.Ad=function(t){T0t(this.a,l(t,127))},k(Eg,sSt,1296),_(1297,1,{},TG),h.Kb=function(t){return new Et(null,new St(a_(l(t,74)),16))},k(Eg,aSt,1297),_(1299,1,Mn,SYe),h.Mb=function(t){return Qen(this.a,l(t,19))},k(Eg,uSt,1299),_(1300,1,{},AG),h.Kb=function(t){return new Et(null,new St(uan(l(t,74)),16))},k(Eg,"ElkGraphImporter/lambda$5$Type",1300),_(1302,1,Mn,TYe),h.Mb=function(t){return etn(this.a,l(t,19))},k(Eg,"ElkGraphImporter/lambda$7$Type",1302),_(1303,1,Mn,KR),h.Mb=function(t){return Ian(l(t,74))},k(Eg,"ElkGraphImporter/lambda$8$Type",1303),_(1273,1,{},gWe);var nNt;k(Eg,"ElkGraphLayoutTransferrer",1273),_(1274,1,Mn,AYe),h.Mb=function(t){return trn(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$0$Type",1274),_(1275,1,nn,_Ye),h.Ad=function(t){fO(),Fe(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$1$Type",1275),_(1276,1,Mn,xYe),h.Mb=function(t){return Mnn(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$2$Type",1276),_(1277,1,nn,kYe),h.Ad=function(t){fO(),Fe(this.a,l(t,17))},k(Eg,"ElkGraphLayoutTransferrer/lambda$3$Type",1277),_(813,1,{},rfe),k(Zt,"BiLinkedHashMultiMap",813),_(1528,1,kr,_G),h.If=function(t,r){ihn(l(t,37),r)},k(Zt,"CommentNodeMarginCalculator",1528),_(1529,1,{},xG),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"CommentNodeMarginCalculator/lambda$0$Type",1529),_(1530,1,nn,f9),h.Ad=function(t){I_n(l(t,9))},k(Zt,"CommentNodeMarginCalculator/lambda$1$Type",1530),_(1531,1,kr,tFe),h.If=function(t,r){MSn(l(t,37),r)},k(Zt,"CommentPostprocessor",1531),_(1532,1,kr,nFe),h.If=function(t,r){iNn(l(t,37),r)},k(Zt,"CommentPreprocessor",1532),_(1533,1,kr,rFe),h.If=function(t,r){K2n(l(t,37),r)},k(Zt,"ConstraintsPostprocessor",1533),_(1534,1,kr,iFe),h.If=function(t,r){Bhn(l(t,37),r)},k(Zt,"EdgeAndLayerConstraintEdgeReverser",1534),_(1535,1,kr,oFe),h.If=function(t,r){i1n(l(t,37),r)},k(Zt,"EndLabelPostprocessor",1535),_(1536,1,{},sFe),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"EndLabelPostprocessor/lambda$0$Type",1536),_(1537,1,Mn,aFe),h.Mb=function(t){return Hln(l(t,9))},k(Zt,"EndLabelPostprocessor/lambda$1$Type",1537),_(1538,1,nn,uFe),h.Ad=function(t){e0n(l(t,9))},k(Zt,"EndLabelPostprocessor/lambda$2$Type",1538),_(1539,1,kr,cFe),h.If=function(t,r){jyn(l(t,37),r)},k(Zt,"EndLabelPreprocessor",1539),_(1540,1,{},lFe),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"EndLabelPreprocessor/lambda$0$Type",1540),_(1541,1,nn,eot),h.Ad=function(t){pen(this.a,this.b,this.c,l(t,9))},h.a=0,h.b=0,h.c=!1,k(Zt,"EndLabelPreprocessor/lambda$1$Type",1541),_(1542,1,Mn,dFe),h.Mb=function(t){return be(F(l(t,70),(Be(),Yf)))===be((Kd(),vk))},k(Zt,"EndLabelPreprocessor/lambda$2$Type",1542),_(1543,1,nn,NYe),h.Ad=function(t){Gn(this.a,l(t,70))},k(Zt,"EndLabelPreprocessor/lambda$3$Type",1543),_(1544,1,Mn,fFe),h.Mb=function(t){return be(F(l(t,70),(Be(),Yf)))===be((Kd(),fv))},k(Zt,"EndLabelPreprocessor/lambda$4$Type",1544),_(1545,1,nn,CYe),h.Ad=function(t){Gn(this.a,l(t,70))},k(Zt,"EndLabelPreprocessor/lambda$5$Type",1545),_(1593,1,kr,vWe),h.If=function(t,r){hgn(l(t,37),r)};var rNt;k(Zt,"EndLabelSorter",1593),_(1594,1,Un,hFe),h.Le=function(t,r){return q1n(l(t,458),l(r,458))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"EndLabelSorter/1",1594),_(458,1,{458:1},Cat),k(Zt,"EndLabelSorter/LabelGroup",458),_(1595,1,{},pFe),h.Kb=function(t){return dO(),new Et(null,new St(l(t,26).a,16))},k(Zt,"EndLabelSorter/lambda$0$Type",1595),_(1596,1,Mn,gFe),h.Mb=function(t){return dO(),l(t,9).k==(zt(),Xr)},k(Zt,"EndLabelSorter/lambda$1$Type",1596),_(1597,1,nn,bFe),h.Ad=function(t){Jwn(l(t,9))},k(Zt,"EndLabelSorter/lambda$2$Type",1597),_(1598,1,Mn,mFe),h.Mb=function(t){return dO(),be(F(l(t,70),(Be(),Yf)))===be((Kd(),fv))},k(Zt,"EndLabelSorter/lambda$3$Type",1598),_(1599,1,Mn,wFe),h.Mb=function(t){return dO(),be(F(l(t,70),(Be(),Yf)))===be((Kd(),vk))},k(Zt,"EndLabelSorter/lambda$4$Type",1599),_(1546,1,kr,yFe),h.If=function(t,r){W_n(this,l(t,37))},h.b=0,h.c=0,k(Zt,"FinalSplineBendpointsCalculator",1546),_(1547,1,{},vFe),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"FinalSplineBendpointsCalculator/lambda$0$Type",1547),_(1548,1,{},EFe),h.Kb=function(t){return new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new D))))},k(Zt,"FinalSplineBendpointsCalculator/lambda$1$Type",1548),_(1549,1,Mn,SFe),h.Mb=function(t){return!fo(l(t,17))},k(Zt,"FinalSplineBendpointsCalculator/lambda$2$Type",1549),_(1550,1,Mn,TFe),h.Mb=function(t){return gr(l(t,17),(Ie(),pm))},k(Zt,"FinalSplineBendpointsCalculator/lambda$3$Type",1550),_(1551,1,nn,IYe),h.Ad=function(t){QTn(this.a,l(t,134))},k(Zt,"FinalSplineBendpointsCalculator/lambda$4$Type",1551),_(1552,1,nn,AFe),h.Ad=function(t){vC(l(t,17).a)},k(Zt,"FinalSplineBendpointsCalculator/lambda$5$Type",1552),_(797,1,kr,Ece),h.If=function(t,r){Bxn(this,l(t,37),r)},k(Zt,"GraphTransformer",797),_(506,23,{3:1,34:1,23:1,506:1},Ile);var mee,iL,iNt=fn(Zt,"GraphTransformer/Mode",506,bn,dun,_rn),oNt;_(1553,1,kr,_Fe),h.If=function(t,r){a2n(l(t,37),r)},k(Zt,"HierarchicalNodeResizingProcessor",1553),_(1554,1,kr,xFe),h.If=function(t,r){Gfn(l(t,37),r)},k(Zt,"HierarchicalPortConstraintProcessor",1554),_(1555,1,Un,kFe),h.Le=function(t,r){return abn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"HierarchicalPortConstraintProcessor/NodeComparator",1555),_(1556,1,kr,NFe),h.If=function(t,r){VAn(l(t,37),r)},k(Zt,"HierarchicalPortDummySizeProcessor",1556),_(1557,1,kr,CFe),h.If=function(t,r){oTn(this,l(t,37),r)},h.a=0,k(Zt,"HierarchicalPortOrthogonalEdgeRouter",1557),_(1558,1,Un,IFe),h.Le=function(t,r){return qtn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"HierarchicalPortOrthogonalEdgeRouter/1",1558),_(1559,1,Un,RFe),h.Le=function(t,r){return Fdn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"HierarchicalPortOrthogonalEdgeRouter/2",1559),_(1560,1,kr,OFe),h.If=function(t,r){Dwn(l(t,37),r)},k(Zt,"HierarchicalPortPositionProcessor",1560),_(1561,1,kr,yWe),h.If=function(t,r){UNn(this,l(t,37))},h.a=0,h.c=0;var T$,A$;k(Zt,"HighDegreeNodeLayeringProcessor",1561),_(573,1,{573:1},DFe),h.b=-1,h.d=-1,k(Zt,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",573),_(1562,1,{},LFe),h.Kb=function(t){return $O(),si(l(t,9))},h.Fb=function(t){return this===t},k(Zt,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1562),_(1563,1,{},MFe),h.Kb=function(t){return $O(),Or(l(t,9))},h.Fb=function(t){return this===t},k(Zt,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1563),_(1569,1,kr,PFe),h.If=function(t,r){jAn(this,l(t,37),r)},k(Zt,"HyperedgeDummyMerger",1569),_(798,1,{},vfe),h.a=!1,h.b=!1,h.c=!1,k(Zt,"HyperedgeDummyMerger/MergeState",798),_(1570,1,{},jFe),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"HyperedgeDummyMerger/lambda$0$Type",1570),_(1571,1,{},FFe),h.Kb=function(t){return new Et(null,new St(l(t,9).j,16))},k(Zt,"HyperedgeDummyMerger/lambda$1$Type",1571),_(1572,1,nn,$Fe),h.Ad=function(t){l(t,12).p=-1},k(Zt,"HyperedgeDummyMerger/lambda$2$Type",1572),_(1573,1,kr,BFe),h.If=function(t,r){PAn(l(t,37),r)},k(Zt,"HypernodesProcessor",1573),_(1574,1,kr,UFe),h.If=function(t,r){qAn(l(t,37),r)},k(Zt,"InLayerConstraintProcessor",1574),_(1575,1,kr,HFe),h.If=function(t,r){ghn(l(t,37),r)},k(Zt,"InnermostNodeMarginCalculator",1575),_(1576,1,kr,zFe),h.If=function(t,r){eNn(this,l(t,37))},h.a=Li,h.b=Li,h.c=Kr,h.d=Kr;var J3n=k(Zt,"InteractiveExternalPortPositioner",1576);_(1577,1,{},GFe),h.Kb=function(t){return l(t,17).d.i},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$0$Type",1577),_(1578,1,{},RYe),h.Kb=function(t){return Ktn(this.a,ce(t))},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$1$Type",1578),_(1579,1,{},qFe),h.Kb=function(t){return l(t,17).c.i},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$2$Type",1579),_(1580,1,{},OYe),h.Kb=function(t){return Ytn(this.a,ce(t))},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$3$Type",1580),_(1581,1,{},DYe),h.Kb=function(t){return Gnn(this.a,ce(t))},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$4$Type",1581),_(1582,1,{},LYe),h.Kb=function(t){return qnn(this.a,ce(t))},h.Fb=function(t){return this===t},k(Zt,"InteractiveExternalPortPositioner/lambda$5$Type",1582),_(80,23,{3:1,34:1,23:1,80:1,177:1},bi),h.bg=function(){switch(this.g){case 15:return new fUe;case 22:return new hUe;case 48:return new gUe;case 29:case 36:return new n$e;case 33:return new _G;case 43:return new tFe;case 1:return new nFe;case 42:return new rFe;case 57:return new Ece((E_(),iL));case 0:return new Ece((E_(),mee));case 2:return new iFe;case 55:return new oFe;case 34:return new cFe;case 52:return new yFe;case 56:return new _Fe;case 13:return new xFe;case 39:return new NFe;case 45:return new CFe;case 41:return new OFe;case 9:return new yWe;case 50:return new jrt;case 38:return new PFe;case 44:return new BFe;case 28:return new UFe;case 31:return new HFe;case 3:return new zFe;case 18:return new VFe;case 30:return new WFe;case 5:return new EWe;case 51:return new XFe;case 35:return new SWe;case 37:return new r$e;case 53:return new vWe;case 11:return new i$e;case 7:return new TWe;case 40:return new o$e;case 46:return new s$e;case 16:return new a$e;case 10:return new Att;case 49:return new d$e;case 21:return new f$e;case 23:return new P9((Kb(),XI));case 8:return new p$e;case 12:return new b$e;case 4:return new m$e;case 19:return new AWe;case 17:return new k$e;case 54:return new N$e;case 6:return new B$e;case 25:return new IZe;case 26:return new dUe;case 47:return new D$e;case 32:return new Nit;case 14:return new K$e;case 27:return new wUe;case 20:return new Q$e;case 24:return new P9((Kb(),IB));default:throw Y(new jt(jX+(this.f!=null?this.f:""+this.g)))}};var tSe,nSe,rSe,iSe,oSe,sSe,aSe,uSe,cSe,lSe,dSe,VE,_$,x$,fSe,hSe,pSe,gSe,bSe,mSe,wSe,_I,ySe,vSe,ESe,SSe,TSe,wee,k$,N$,ASe,C$,I$,R$,Gx,By,Uy,_Se,O$,D$,xSe,L$,M$,kSe,NSe,CSe,ISe,P$,yee,xT,j$,F$,$$,B$,RSe,OSe,DSe,LSe,X3n=fn(Zt,FX,80,bn,Twt,xrn),sNt;_(1583,1,kr,VFe),h.If=function(t,r){Xkn(l(t,37),r)},k(Zt,"InvertedPortProcessor",1583),_(1584,1,kr,WFe),h.If=function(t,r){WTn(l(t,37),r)},k(Zt,"LabelAndNodeSizeProcessor",1584),_(1585,1,Mn,KFe),h.Mb=function(t){return l(t,9).k==(zt(),Xr)},k(Zt,"LabelAndNodeSizeProcessor/lambda$0$Type",1585),_(1586,1,Mn,YFe),h.Mb=function(t){return l(t,9).k==(zt(),mi)},k(Zt,"LabelAndNodeSizeProcessor/lambda$1$Type",1586),_(1587,1,nn,sot),h.Ad=function(t){gen(this.b,this.a,this.c,l(t,9))},h.a=!1,h.c=!1,k(Zt,"LabelAndNodeSizeProcessor/lambda$2$Type",1587),_(1588,1,kr,EWe),h.If=function(t,r){Ckn(l(t,37),r)};var aNt;k(Zt,"LabelDummyInserter",1588),_(1589,1,Uf,JFe),h.Lb=function(t){return be(F(l(t,70),(Be(),Yf)))===be((Kd(),yk))},h.Fb=function(t){return this===t},h.Mb=function(t){return be(F(l(t,70),(Be(),Yf)))===be((Kd(),yk))},k(Zt,"LabelDummyInserter/1",1589),_(1590,1,kr,XFe),h.If=function(t,r){gkn(l(t,37),r)},k(Zt,"LabelDummyRemover",1590),_(1591,1,Mn,ZFe),h.Mb=function(t){return Ye(Ke(F(l(t,70),(Be(),i2))))},k(Zt,"LabelDummyRemover/lambda$0$Type",1591),_(1344,1,kr,SWe),h.If=function(t,r){ckn(this,l(t,37),r)},h.a=null;var vee;k(Zt,"LabelDummySwitcher",1344),_(295,1,{295:1},yyt),h.c=0,h.d=null,h.f=0,k(Zt,"LabelDummySwitcher/LabelDummyInfo",295),_(1345,1,{},QFe),h.Kb=function(t){return zS(),new Et(null,new St(l(t,26).a,16))},k(Zt,"LabelDummySwitcher/lambda$0$Type",1345),_(1346,1,Mn,e$e),h.Mb=function(t){return zS(),l(t,9).k==(zt(),ta)},k(Zt,"LabelDummySwitcher/lambda$1$Type",1346),_(1347,1,{},MYe),h.Kb=function(t){return Lnn(this.a,l(t,9))},k(Zt,"LabelDummySwitcher/lambda$2$Type",1347),_(1348,1,nn,PYe),h.Ad=function(t){Usn(this.a,l(t,295))},k(Zt,"LabelDummySwitcher/lambda$3$Type",1348),_(1349,1,Un,t$e),h.Le=function(t,r){return msn(l(t,295),l(r,295))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"LabelDummySwitcher/lambda$4$Type",1349),_(796,1,kr,n$e),h.If=function(t,r){bdn(l(t,37),r)},k(Zt,"LabelManagementProcessor",796),_(1592,1,kr,r$e),h.If=function(t,r){ASn(l(t,37),r)},k(Zt,"LabelSideSelector",1592),_(1600,1,kr,i$e),h.If=function(t,r){d_n(l(t,37),r)},k(Zt,"LayerConstraintPostprocessor",1600),_(1601,1,kr,TWe),h.If=function(t,r){iEn(l(t,37),r)};var MSe;k(Zt,"LayerConstraintPreprocessor",1601),_(368,23,{3:1,34:1,23:1,368:1},u8);var oL,U$,H$,Eee,uNt=fn(Zt,"LayerConstraintPreprocessor/HiddenNodeConnections",368,bn,Qcn,krn),cNt;_(1602,1,kr,o$e),h.If=function(t,r){Nxn(l(t,37),r)},k(Zt,"LayerSizeAndGraphHeightCalculator",1602),_(1603,1,kr,s$e),h.If=function(t,r){u2n(l(t,37),r)},k(Zt,"LongEdgeJoiner",1603),_(1604,1,kr,a$e),h.If=function(t,r){oxn(l(t,37),r)},k(Zt,"LongEdgeSplitter",1604),_(1605,1,kr,Att),h.If=function(t,r){zkn(this,l(t,37),r)},h.e=0,h.f=0,h.j=0,h.k=0,h.n=0,h.o=0;var lNt,dNt;k(Zt,"NodePromotion",1605),_(1606,1,Un,u$e),h.Le=function(t,r){return Tpn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"NodePromotion/1",1606),_(1607,1,Un,c$e),h.Le=function(t,r){return Spn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"NodePromotion/2",1607),_(1608,1,{},l$e),h.Kb=function(t){return l(t,49),Y8(),Lt(),!0},h.Fb=function(t){return this===t},k(Zt,"NodePromotion/lambda$0$Type",1608),_(1609,1,{},jYe),h.Kb=function(t){return Tun(this.a,l(t,49))},h.Fb=function(t){return this===t},h.a=0,k(Zt,"NodePromotion/lambda$1$Type",1609),_(1610,1,{},FYe),h.Kb=function(t){return Aun(this.a,l(t,49))},h.Fb=function(t){return this===t},h.a=0,k(Zt,"NodePromotion/lambda$2$Type",1610),_(1611,1,kr,d$e),h.If=function(t,r){ONn(l(t,37),r)},k(Zt,"NorthSouthPortPostprocessor",1611),_(1612,1,kr,f$e),h.If=function(t,r){FNn(l(t,37),r)},k(Zt,"NorthSouthPortPreprocessor",1612),_(1613,1,Un,h$e),h.Le=function(t,r){return Uhn(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"NorthSouthPortPreprocessor/lambda$0$Type",1613),_(1614,1,kr,p$e),h.If=function(t,r){xAn(l(t,37),r)},k(Zt,"PartitionMidprocessor",1614),_(1615,1,Mn,g$e),h.Mb=function(t){return gr(l(t,9),(Be(),Yy))},k(Zt,"PartitionMidprocessor/lambda$0$Type",1615),_(1616,1,nn,$Ye),h.Ad=function(t){Can(this.a,l(t,9))},k(Zt,"PartitionMidprocessor/lambda$1$Type",1616),_(1617,1,kr,b$e),h.If=function(t,r){C2n(l(t,37),r)},k(Zt,"PartitionPostprocessor",1617),_(1618,1,kr,m$e),h.If=function(t,r){OTn(l(t,37),r)},k(Zt,"PartitionPreprocessor",1618),_(1619,1,Mn,w$e),h.Mb=function(t){return gr(l(t,9),(Be(),Yy))},k(Zt,"PartitionPreprocessor/lambda$0$Type",1619),_(1620,1,Mn,y$e),h.Mb=function(t){return gr(l(t,9),(Be(),Yy))},k(Zt,"PartitionPreprocessor/lambda$1$Type",1620),_(1621,1,{},v$e),h.Kb=function(t){return new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new D))))},k(Zt,"PartitionPreprocessor/lambda$2$Type",1621),_(1622,1,Mn,BYe),h.Mb=function(t){return een(this.a,l(t,17))},k(Zt,"PartitionPreprocessor/lambda$3$Type",1622),_(1623,1,nn,E$e),h.Ad=function(t){Qhn(l(t,17))},k(Zt,"PartitionPreprocessor/lambda$4$Type",1623),_(1624,1,Mn,UYe),h.Mb=function(t){return Bsn(this.a,l(t,9))},h.a=0,k(Zt,"PartitionPreprocessor/lambda$5$Type",1624),_(1625,1,kr,AWe),h.If=function(t,r){sAn(l(t,37),r)};var PSe,fNt,hNt,pNt,jSe,FSe;k(Zt,"PortListSorter",1625),_(1626,1,{},S$e),h.Kb=function(t){return N_(),l(t,12).e},k(Zt,"PortListSorter/lambda$0$Type",1626),_(1627,1,{},T$e),h.Kb=function(t){return N_(),l(t,12).g},k(Zt,"PortListSorter/lambda$1$Type",1627),_(1628,1,Un,A$e),h.Le=function(t,r){return jct(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"PortListSorter/lambda$2$Type",1628),_(1629,1,Un,_$e),h.Le=function(t,r){return bmn(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"PortListSorter/lambda$3$Type",1629),_(1630,1,Un,x$e),h.Le=function(t,r){return Vyt(l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"PortListSorter/lambda$4$Type",1630),_(1631,1,kr,k$e),h.If=function(t,r){fEn(l(t,37),r)},k(Zt,"PortSideProcessor",1631),_(1632,1,kr,N$e),h.If=function(t,r){wTn(l(t,37),r)},k(Zt,"ReversedEdgeRestorer",1632),_(1637,1,kr,IZe),h.If=function(t,r){Zbn(this,l(t,37),r)},k(Zt,"SelfLoopPortRestorer",1637),_(1638,1,{},C$e),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"SelfLoopPortRestorer/lambda$0$Type",1638),_(1639,1,Mn,I$e),h.Mb=function(t){return l(t,9).k==(zt(),Xr)},k(Zt,"SelfLoopPortRestorer/lambda$1$Type",1639),_(1640,1,Mn,R$e),h.Mb=function(t){return gr(l(t,9),(Ie(),rw))},k(Zt,"SelfLoopPortRestorer/lambda$2$Type",1640),_(1641,1,{},O$e),h.Kb=function(t){return l(F(l(t,9),(Ie(),rw)),339)},k(Zt,"SelfLoopPortRestorer/lambda$3$Type",1641),_(1642,1,nn,HYe),h.Ad=function(t){lyn(this.a,l(t,339))},k(Zt,"SelfLoopPortRestorer/lambda$4$Type",1642),_(799,1,nn,Rue),h.Ad=function(t){Syn(l(t,108))},k(Zt,"SelfLoopPortRestorer/lambda$5$Type",799),_(1644,1,kr,D$e),h.If=function(t,r){lbn(l(t,37),r)},k(Zt,"SelfLoopPostProcessor",1644),_(1645,1,{},L$e),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"SelfLoopPostProcessor/lambda$0$Type",1645),_(1646,1,Mn,M$e),h.Mb=function(t){return l(t,9).k==(zt(),Xr)},k(Zt,"SelfLoopPostProcessor/lambda$1$Type",1646),_(1647,1,Mn,P$e),h.Mb=function(t){return gr(l(t,9),(Ie(),rw))},k(Zt,"SelfLoopPostProcessor/lambda$2$Type",1647),_(1648,1,nn,j$e),h.Ad=function(t){m0n(l(t,9))},k(Zt,"SelfLoopPostProcessor/lambda$3$Type",1648),_(1649,1,{},F$e),h.Kb=function(t){return new Et(null,new St(l(t,108).f,1))},k(Zt,"SelfLoopPostProcessor/lambda$4$Type",1649),_(1650,1,nn,zYe),h.Ad=function(t){Kcn(this.a,l(t,342))},k(Zt,"SelfLoopPostProcessor/lambda$5$Type",1650),_(1651,1,Mn,$$e),h.Mb=function(t){return!!l(t,108).i},k(Zt,"SelfLoopPostProcessor/lambda$6$Type",1651),_(1652,1,nn,GYe),h.Ad=function(t){gQt(this.a,l(t,108))},k(Zt,"SelfLoopPostProcessor/lambda$7$Type",1652),_(1633,1,kr,B$e),h.If=function(t,r){VEn(l(t,37),r)},k(Zt,"SelfLoopPreProcessor",1633),_(1634,1,{},U$e),h.Kb=function(t){return new Et(null,new St(l(t,108).f,1))},k(Zt,"SelfLoopPreProcessor/lambda$0$Type",1634),_(1635,1,{},H$e),h.Kb=function(t){return l(t,342).a},k(Zt,"SelfLoopPreProcessor/lambda$1$Type",1635),_(1636,1,nn,z$e),h.Ad=function(t){ktn(l(t,17))},k(Zt,"SelfLoopPreProcessor/lambda$2$Type",1636),_(1653,1,kr,Nit),h.If=function(t,r){Wwn(this,l(t,37),r)},k(Zt,"SelfLoopRouter",1653),_(1654,1,{},G$e),h.Kb=function(t){return new Et(null,new St(l(t,26).a,16))},k(Zt,"SelfLoopRouter/lambda$0$Type",1654),_(1655,1,Mn,q$e),h.Mb=function(t){return l(t,9).k==(zt(),Xr)},k(Zt,"SelfLoopRouter/lambda$1$Type",1655),_(1656,1,Mn,V$e),h.Mb=function(t){return gr(l(t,9),(Ie(),rw))},k(Zt,"SelfLoopRouter/lambda$2$Type",1656),_(1657,1,{},W$e),h.Kb=function(t){return l(F(l(t,9),(Ie(),rw)),339)},k(Zt,"SelfLoopRouter/lambda$3$Type",1657),_(1658,1,nn,dtt),h.Ad=function(t){Tan(this.a,this.b,l(t,339))},k(Zt,"SelfLoopRouter/lambda$4$Type",1658),_(1659,1,kr,K$e),h.If=function(t,r){dSn(l(t,37),r)},k(Zt,"SemiInteractiveCrossMinProcessor",1659),_(1660,1,Mn,Y$e),h.Mb=function(t){return l(t,9).k==(zt(),Xr)},k(Zt,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1660),_(1661,1,Mn,J$e),h.Mb=function(t){return zot(l(t,9))._b((Be(),Zy))},k(Zt,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1661),_(1662,1,Un,X$e),h.Le=function(t,r){return nhn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Zt,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1662),_(1663,1,{},Z$e),h.Te=function(t,r){return Nan(l(t,9),l(r,9))},k(Zt,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1663),_(1665,1,kr,Q$e),h.If=function(t,r){Vxn(l(t,37),r)},k(Zt,"SortByInputModelProcessor",1665),_(1666,1,Mn,eBe),h.Mb=function(t){return l(t,12).g.c.length!=0},k(Zt,"SortByInputModelProcessor/lambda$0$Type",1666),_(1667,1,nn,qYe),h.Ad=function(t){kyn(this.a,l(t,12))},k(Zt,"SortByInputModelProcessor/lambda$1$Type",1667),_(1746,811,{},lht),h.bf=function(t){var r,o,a,u;switch(this.c=t,this.a.g){case 2:r=new je,ei(lr(new Et(null,new St(this.c.a.b,16)),new pBe),new btt(this,r)),X6(this,new nBe),La(r,new rBe),r.c.length=0,ei(lr(new Et(null,new St(this.c.a.b,16)),new iBe),new WYe(r)),X6(this,new oBe),La(r,new sBe),r.c.length=0,o=Qnt(xK(ey(new Et(null,new St(this.c.a.b,16)),new KYe(this))),new aBe),ei(new Et(null,new St(this.c.a.a,16)),new htt(o,r)),X6(this,new cBe),La(r,new lBe),r.c.length=0;break;case 3:a=new je,X6(this,new tBe),u=Qnt(xK(ey(new Et(null,new St(this.c.a.b,16)),new VYe(this))),new uBe),ei(lr(new Et(null,new St(this.c.a.b,16)),new dBe),new gtt(u,a)),X6(this,new fBe),La(a,new hBe),a.c.length=0;break;default:throw Y(new bZe)}},h.b=0,k(di,"EdgeAwareScanlineConstraintCalculation",1746),_(1747,1,Uf,tBe),h.Lb=function(t){return ae(l(t,60).g,157)},h.Fb=function(t){return this===t},h.Mb=function(t){return ae(l(t,60).g,157)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1747),_(1748,1,{},VYe),h.We=function(t){return evn(this.a,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1748),_(1756,1,nF,ftt),h.be=function(){bC(this.a,this.b,-1)},h.b=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1756),_(1758,1,Uf,nBe),h.Lb=function(t){return ae(l(t,60).g,157)},h.Fb=function(t){return this===t},h.Mb=function(t){return ae(l(t,60).g,157)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1758),_(1759,1,nn,rBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1759),_(1760,1,Mn,iBe),h.Mb=function(t){return ae(l(t,60).g,9)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1760),_(1762,1,nn,WYe),h.Ad=function(t){Fgn(this.a,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1762),_(1761,1,nF,ytt),h.be=function(){bC(this.b,this.a,-1)},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1761),_(1763,1,Uf,oBe),h.Lb=function(t){return ae(l(t,60).g,9)},h.Fb=function(t){return this===t},h.Mb=function(t){return ae(l(t,60).g,9)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1763),_(1764,1,nn,sBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1764),_(1765,1,{},KYe),h.We=function(t){return tvn(this.a,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1765),_(1766,1,{},aBe),h.Ue=function(){return 0},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1766),_(1749,1,{},uBe),h.Ue=function(){return 0},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1749),_(1768,1,nn,htt),h.Ad=function(t){asn(this.a,this.b,l(t,321))},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1768),_(1767,1,nF,ptt),h.be=function(){q0t(this.a,this.b,-1)},h.b=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1767),_(1769,1,Uf,cBe),h.Lb=function(t){return l(t,60),!0},h.Fb=function(t){return this===t},h.Mb=function(t){return l(t,60),!0},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1769),_(1770,1,nn,lBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1770),_(1750,1,Mn,dBe),h.Mb=function(t){return ae(l(t,60).g,9)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1750),_(1752,1,nn,gtt),h.Ad=function(t){usn(this.a,this.b,l(t,60))},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1752),_(1751,1,nF,vtt),h.be=function(){bC(this.b,this.a,-1)},h.a=0,k(di,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1751),_(1753,1,Uf,fBe),h.Lb=function(t){return l(t,60),!0},h.Fb=function(t){return this===t},h.Mb=function(t){return l(t,60),!0},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1753),_(1754,1,nn,hBe),h.Ad=function(t){l(t,376).be()},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1754),_(1755,1,Mn,pBe),h.Mb=function(t){return ae(l(t,60).g,157)},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1755),_(1757,1,nn,btt),h.Ad=function(t){Tfn(this.a,this.b,l(t,60))},k(di,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1757),_(1564,1,kr,jrt),h.If=function(t,r){uxn(this,l(t,37),r)};var gNt;k(di,"HorizontalGraphCompactor",1564),_(1565,1,{},YYe),h.df=function(t,r){var o,a,u;return $pe(t,r)||(o=lE(t),a=lE(r),o&&o.k==(zt(),mi)||a&&a.k==(zt(),mi))?0:(u=l(F(this.a.a,(Ie(),t2)),317),Ztn(u,o?o.k:(zt(),gi),a?a.k:(zt(),gi)))},h.ef=function(t,r){var o,a,u;return $pe(t,r)?1:(o=lE(t),a=lE(r),u=l(F(this.a.a,(Ie(),t2)),317),Ode(u,o?o.k:(zt(),gi),a?a.k:(zt(),gi)))},k(di,"HorizontalGraphCompactor/1",1565),_(1566,1,{},gBe),h.cf=function(t,r){return YN(),t.a.i==0},k(di,"HorizontalGraphCompactor/lambda$0$Type",1566),_(1567,1,{},JYe),h.cf=function(t,r){return Ran(this.a,t,r)},k(di,"HorizontalGraphCompactor/lambda$1$Type",1567),_(1713,1,{},Hdt);var bNt,mNt;k(di,"LGraphToCGraphTransformer",1713),_(1721,1,Mn,bBe),h.Mb=function(t){return t!=null},k(di,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1721),_(1714,1,{},mBe),h.Kb=function(t){return hc(),ms(F(l(l(t,60).g,9),(Ie(),mr)))},k(di,"LGraphToCGraphTransformer/lambda$0$Type",1714),_(1715,1,{},wBe),h.Kb=function(t){return hc(),rgt(l(l(t,60).g,157))},k(di,"LGraphToCGraphTransformer/lambda$1$Type",1715),_(1724,1,Mn,yBe),h.Mb=function(t){return hc(),ae(l(t,60).g,9)},k(di,"LGraphToCGraphTransformer/lambda$10$Type",1724),_(1725,1,nn,vBe),h.Ad=function(t){xan(l(t,60))},k(di,"LGraphToCGraphTransformer/lambda$11$Type",1725),_(1726,1,Mn,EBe),h.Mb=function(t){return hc(),ae(l(t,60).g,157)},k(di,"LGraphToCGraphTransformer/lambda$12$Type",1726),_(1730,1,nn,SBe),h.Ad=function(t){ngn(l(t,60))},k(di,"LGraphToCGraphTransformer/lambda$13$Type",1730),_(1727,1,nn,XYe),h.Ad=function(t){Ken(this.a,l(t,8))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$14$Type",1727),_(1728,1,nn,ZYe),h.Ad=function(t){Jen(this.a,l(t,120))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$15$Type",1728),_(1729,1,nn,QYe),h.Ad=function(t){Yen(this.a,l(t,8))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$16$Type",1729),_(1731,1,{},TBe),h.Kb=function(t){return hc(),new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new D))))},k(di,"LGraphToCGraphTransformer/lambda$17$Type",1731),_(1732,1,Mn,ABe),h.Mb=function(t){return hc(),fo(l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$18$Type",1732),_(1733,1,nn,eJe),h.Ad=function(t){Qdn(this.a,l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$19$Type",1733),_(1717,1,nn,tJe),h.Ad=function(t){Ncn(this.a,l(t,157))},k(di,"LGraphToCGraphTransformer/lambda$2$Type",1717),_(1734,1,{},_Be),h.Kb=function(t){return hc(),new Et(null,new St(l(t,26).a,16))},k(di,"LGraphToCGraphTransformer/lambda$20$Type",1734),_(1735,1,{},xBe),h.Kb=function(t){return hc(),new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new D))))},k(di,"LGraphToCGraphTransformer/lambda$21$Type",1735),_(1736,1,{},kBe),h.Kb=function(t){return hc(),l(F(l(t,17),(Ie(),pm)),16)},k(di,"LGraphToCGraphTransformer/lambda$22$Type",1736),_(1737,1,Mn,NBe),h.Mb=function(t){return Qtn(l(t,16))},k(di,"LGraphToCGraphTransformer/lambda$23$Type",1737),_(1738,1,nn,nJe),h.Ad=function(t){nvn(this.a,l(t,16))},k(di,"LGraphToCGraphTransformer/lambda$24$Type",1738),_(1739,1,{},CBe),h.Kb=function(t){return hc(),new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new D))))},k(di,"LGraphToCGraphTransformer/lambda$25$Type",1739),_(1740,1,Mn,IBe),h.Mb=function(t){return hc(),fo(l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$26$Type",1740),_(1742,1,nn,rJe),h.Ad=function(t){Vfn(this.a,l(t,17))},k(di,"LGraphToCGraphTransformer/lambda$27$Type",1742),_(1741,1,nn,iJe),h.Ad=function(t){BQt(this.a,l(t,70))},h.a=0,k(di,"LGraphToCGraphTransformer/lambda$28$Type",1741),_(1716,1,nn,mtt),h.Ad=function(t){kln(this.a,this.b,l(t,157))},k(di,"LGraphToCGraphTransformer/lambda$3$Type",1716),_(1718,1,{},RBe),h.Kb=function(t){return hc(),new Et(null,new St(l(t,26).a,16))},k(di,"LGraphToCGraphTransformer/lambda$4$Type",1718),_(1719,1,{},OBe),h.Kb=function(t){return hc(),new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new D))))},k(di,"LGraphToCGraphTransformer/lambda$5$Type",1719),_(1720,1,{},DBe),h.Kb=function(t){return hc(),l(F(l(t,17),(Ie(),pm)),16)},k(di,"LGraphToCGraphTransformer/lambda$6$Type",1720),_(1722,1,nn,oJe),h.Ad=function(t){hvn(this.a,l(t,16))},k(di,"LGraphToCGraphTransformer/lambda$8$Type",1722),_(1723,1,nn,wtt),h.Ad=function(t){vtn(this.a,this.b,l(t,157))},k(di,"LGraphToCGraphTransformer/lambda$9$Type",1723),_(1712,1,{},LBe),h.af=function(t){var r,o,a,u,f;for(this.a=t,this.d=new XG,this.c=we(S2e,Rt,126,this.a.a.a.c.length,0,1),this.b=0,o=new V(this.a.a.a);o.a=z&&(Fe(f,Re(T)),se=b.Math.max(se,de[T-1]-N),m+=U,J+=de[T-1]-J,N=de[T-1],U=y[T]),U=b.Math.max(U,y[T]),++T;m+=U}M=b.Math.min(1/se,1/r.b/m),M>a&&(a=M,o=f)}return o},h.ng=function(){return!1},k(zf,"MSDCutIndexHeuristic",810),_(1664,1,kr,wUe),h.If=function(t,r){f_n(l(t,37),r)},k(zf,"SingleEdgeGraphWrapper",1664),_(233,23,{3:1,34:1,23:1,233:1},n3);var KE,Wx,Kx,zy,xI,YE,Yx=fn($s,"CenterEdgeLabelPlacementStrategy",233,bn,Ndn,Rrn),CNt;_(427,23,{3:1,34:1,23:1,427:1},Rle);var BSe,Oee,USe=fn($s,"ConstraintCalculationStrategy",427,bn,Kan,Irn),INt;_(302,23,{3:1,34:1,23:1,302:1,173:1,177:1},l8),h.bg=function(){return twt(this)},h.og=function(){return twt(this)};var aL,kI,HSe,zSe,GSe=fn($s,"CrossingMinimizationStrategy",302,bn,iln,Lrn),RNt;_(351,23,{3:1,34:1,23:1,351:1},Oq);var qSe,Dee,W$,VSe=fn($s,"CuttingStrategy",351,bn,qun,Mrn),ONt;_(268,23,{3:1,34:1,23:1,268:1,173:1,177:1},Kv),h.bg=function(){return syt(this)},h.og=function(){return syt(this)};var Lee,WSe,Mee,Pee,jee,Fee,$ee,Bee,uL,KSe=fn($s,"CycleBreakingStrategy",268,bn,$fn,Prn),DNt;_(424,23,{3:1,34:1,23:1,424:1},Ole);var K$,YSe,JSe=fn($s,"DirectionCongruency",424,bn,Yan,jrn),LNt;_(452,23,{3:1,34:1,23:1,452:1},Dq);var Jx,Uee,JE,MNt=fn($s,"EdgeConstraint",452,bn,Vun,Frn),PNt;_(286,23,{3:1,34:1,23:1,286:1},r3);var Hee,zee,Gee,qee,Y$,Vee,XSe=fn($s,"EdgeLabelSideSelection",286,bn,_dn,$rn),jNt;_(479,23,{3:1,34:1,23:1,479:1},Dle);var J$,ZSe,QSe=fn($s,"EdgeStraighteningStrategy",479,bn,Jan,Brn),FNt;_(284,23,{3:1,34:1,23:1,284:1},i3);var Wee,eTe,tTe,X$,nTe,rTe,iTe=fn($s,"FixedAlignment",284,bn,xdn,Urn),$Nt;_(285,23,{3:1,34:1,23:1,285:1},o3);var oTe,sTe,aTe,uTe,NI,cTe,lTe=fn($s,"GraphCompactionStrategy",285,bn,kdn,Hrn),BNt;_(262,23,{3:1,34:1,23:1,262:1},Fw);var Xx,Z$,Zx,rl,CI,Q$,Qx,XE,eB,II,Kee=fn($s,"GraphProperties",262,bn,shn,zrn),UNt;_(303,23,{3:1,34:1,23:1,303:1},Lq);var cL,Yee,Jee,Xee=fn($s,"GreedySwitchType",303,bn,Gun,Grn),HNt;_(330,23,{3:1,34:1,23:1,330:1},Mq);var Gy,dTe,lL,Zee=fn($s,"GroupOrderStrategy",330,bn,Hun,qrn),zNt;_(316,23,{3:1,34:1,23:1,316:1},Pq);var kT,dL,ZE,GNt=fn($s,"InLayerConstraint",316,bn,zun,Vrn),qNt;_(425,23,{3:1,34:1,23:1,425:1},Lle);var Qee,fTe,hTe=fn($s,"InteractiveReferencePoint",425,bn,qan,Wrn),VNt,pTe,NT,ew,fL,tB,gTe,bTe,nB,mTe,CT,rB,RI,IT,_p,ete,iB,Hs,wTe,j1,xa,tte,nte,hL,hm,tw,RT,yTe,WNt,OT,pL,qy,Cd,Nl,rte,QE,F1,Cr,mr,vTe,ETe,STe,TTe,ATe,ite,oB,Nu,nw,ote,DT,OI,Ag,e2,rw,t2,n2,ek,pm,_Te,ste,ate,DI,LT,sB,MT,r2;_(166,23,{3:1,34:1,23:1,166:1},bO);var LI,xp,MI,gm,gL,xTe=fn($s,"LayerConstraint",166,bn,Qln,Krn),KNt;_(428,23,{3:1,34:1,23:1,428:1},Mle);var ute,cte,kTe=fn($s,"LayerUnzippingStrategy",428,bn,Van,Yrn),YNt;_(851,1,td,IWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Lwe),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),BTe),(A1(),$r)),JSe),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Mwe),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(Lt(),!1)),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,gF),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),VTe),$r),hTe),ct(xt)))),zr(t,gF,jD,Q3t),zr(t,gF,XC,Z3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Pwe),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,jwe),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),Ai),Yr),ct(xt)))),st(t,new Ze(HQt(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Fwe),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),Ai),Yr),ct(Cg)),Z(X(Je,1),Pe,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,$we),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),rAe),$r),p_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Bwe),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),Re(7)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Uwe),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Hwe),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,jD),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),$Te),$r),KSe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,FD),yZ),"Node Layering Strategy"),"Strategy for node layering."),YTe),$r),n_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,zwe),yZ),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),WTe),$r),xTe),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Gwe),yZ),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,qwe),yZ),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Re(-1)),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,UX),ySt),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),Re(4)),yo),Ti),ct(xt)))),zr(t,UX,FD,sCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,HX),ySt),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),Re(2)),yo),Ti),ct(xt)))),zr(t,HX,FD,uCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,zX),vSt),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),KTe),$r),d_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,GX),vSt),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),Re(0)),yo),Ti),ct(xt)))),zr(t,GX,zX,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,qX),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),Re(sr)),yo),Ti),ct(xt)))),zr(t,qX,FD,tCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,XC),Ax),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),FTe),$r),GSe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Vwe),Ax),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,VX),Ax),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),eo),fi),ct(xt)))),zr(t,VX,NF,_3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,WX),Ax),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),Ai),Yr),ct(xt)))),zr(t,WX,XC,R3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Wwe),Ax),"In Layer Predecessor of"),"Allows to set a constraint which specifies of which node the current node is the predecessor. If set to 's' then the node is the predecessor of 's' and is in the same layer"),null),HT),Je),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Kwe),Ax),"In Layer Successor of"),"Allows to set a constraint which specifies of which node the current node is the successor. If set to 's' then the node is the successor of 's' and is in the same layer"),null),HT),Je),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Ywe),Ax),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),null),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Jwe),Ax),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),Re(-1)),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Xwe),ESt),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),Re(40)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,KX),ESt),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),jTe),$r),Xee),ct(xt)))),zr(t,KX,XC,T3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,bF),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),PTe),$r),Xee),ct(xt)))),zr(t,bF,XC,v3t),zr(t,bF,NF,E3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,PE),SSt),"Node Placement Strategy"),"Strategy for node placement."),nAe),$r),s_e),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,mF),SSt),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),Ai),Yr),ct(xt)))),zr(t,mF,PE,_Ct),zr(t,mF,PE,xCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,YX),TSt),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),QTe),$r),QSe),ct(xt)))),zr(t,YX,PE,ECt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,JX),TSt),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),eAe),$r),iTe),ct(xt)))),zr(t,JX,PE,TCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,XX),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),eo),fi),ct(xt)))),zr(t,XX,PE,NCt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,ZX),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),$r),Pte),ct(ri)))),zr(t,ZX,PE,OCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,QX),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),tAe),$r),Pte),ct(xt)))),zr(t,QX,PE,RCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Zwe),ASt),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),zTe),$r),m_e),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Qwe),ASt),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),GTe),$r),w_e),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,wF),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),qTe),$r),v_e),ct(xt)))),zr(t,wF,BD,H3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,yF),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),eo),fi),ct(xt)))),zr(t,yF,BD,G3t),zr(t,yF,wF,q3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,eZ),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),eo),fi),ct(xt)))),zr(t,eZ,BD,F3t),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,eye),of),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,tye),of),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,nye),of),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,rye),of),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,iye),bye),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),Re(0)),yo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,oye),bye),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),Re(0)),yo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,sye),bye),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),Re(0)),yo),Ti),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,tZ),mye),"Connected Components Compaction"),"Tries to further compact components (disconnected sub-graphs)."),!1),Ai),Yr),ct(xt)))),zr(t,tZ,WC,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,aye),_St),"Post Compaction Strategy"),xSt),CTe),$r),lTe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,uye),_St),"Post Compaction Constraint Calculation"),xSt),NTe),$r),USe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,vF),wye),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,nZ),wye),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),Re(16)),yo),Ti),ct(xt)))),zr(t,nZ,vF,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,rZ),wye),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),Re(5)),yo),Ti),ct(xt)))),zr(t,rZ,vF,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Sp),yye),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),sAe),$r),A_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,EF),yye),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),eo),fi),ct(xt)))),zr(t,EF,Sp,qCt),zr(t,EF,Sp,VCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,SF),yye),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),eo),fi),ct(xt)))),zr(t,SF,Sp,KCt),zr(t,SF,Sp,YCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ZC),kSt),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),oAe),$r),VSe),ct(xt)))),zr(t,ZC,Sp,tIt),zr(t,ZC,Sp,nIt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,iZ),kSt),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),lf),_c),ct(xt)))),zr(t,iZ,ZC,XCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,oZ),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),iAe),yo),Ti),ct(xt)))),zr(t,oZ,ZC,QCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,TF),NSt),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),aAe),$r),T_e),ct(xt)))),zr(t,TF,Sp,pIt),zr(t,TF,Sp,gIt),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,AF),NSt),"Valid Indices for Wrapping"),null),lf),_c),ct(xt)))),zr(t,AF,Sp,dIt),zr(t,AF,Sp,fIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,_F),vye),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),Ai),Yr),ct(xt)))),zr(t,_F,Sp,sIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,xF),vye),"Distance Penalty When Improving Cuts"),null),2),eo),fi),ct(xt)))),zr(t,xF,Sp,iIt),zr(t,xF,_F,!0),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,sZ),vye),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),Ai),Yr),ct(xt)))),zr(t,sZ,Sp,uIt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,aZ),vZ),"Layer Unzipping Strategy"),"The strategy to use for unzipping a layer into multiple sublayers while maintaining the existing ordering of nodes and edges after crossing minimization. The default value is 'NONE'."),ZTe),$r),kTe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,uZ),vZ),"Minimize Edge Length Heuristic"),"Use a heuristic to decide whether or not to actually perform the layer split with the goal of minimizing the total edge length. This option only works when layerSplit is set to 2. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to true, then the value is set to true for the entire layer."),!1),Ai),Yr),ct(ri)))),zr(t,uZ,cZ,pCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,cZ),vZ),"Unzipping Layer Split"),"Defines the number of sublayers to split a layer into. The property can be set to the nodes in a layer, which then applies the property for the layer. If multiple nodes set the value to different values, then the lowest value is chosen."),JTe),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,lZ),vZ),"Reset Alternation on Long Edges"),"If set to true, nodes will always be placed in the first sublayer after a long edge when using the ALTERNATING strategy. Otherwise long edge dummies are treated the same as regular nodes. The default value is true. The property can be set to the nodes in a layer, which then applies the property for the layer. If any node sets the value to false, then the value is set to false for the entire layer."),XTe),Ai),Yr),ct(ri)))),zr(t,lZ,aZ,bCt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,cye),EZ),"Edge Label Side Selection"),"Method to decide on edge label sides."),HTe),$r),XSe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,lye),EZ),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),UTe),$r),Yx),xr(xt,Z(X(cf,1),Ce,161,0,[Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kF),QC),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),MTe),$r),h_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,dye),QC),"Consider Port Order"),"If disabled the port order of output ports is derived from the edge order and input ports are ordered by their incoming connections. If enabled all ports are ordered by the port model order."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,$D),QC),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,dZ),QC),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),ITe),$r),V2e),ct(xt)))),zr(t,dZ,WC,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,fye),QC),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),LTe),$r),i_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,fZ),QC),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),eo),fi),ct(xt)))),zr(t,fZ,kF,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,hZ),QC),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),eo),fi),ct(xt)))),zr(t,hZ,kF,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,pZ),_x),Eye),"Used to define partial ordering groups during cycle breaking. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."),Re(0)),yo),Ti),ct(ri)))),zr(t,pZ,$D,!1),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,gZ),_x),Eye),"Used to define partial ordering groups during crossing minimization. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."),Re(0)),yo),Ti),xr(ri,Z(X(cf,1),Ce,161,0,[Rd,Cg]))))),zr(t,gZ,$D,!1),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,bZ),_x),Eye),"Used to define partial ordering groups during component packing. A lower group id means that the group is sorted before other groups. A group model order of 0 is the default group."),Re(0)),yo),Ti),xr(ri,Z(X(cf,1),Ce,161,0,[Rd,Cg]))))),zr(t,bZ,$D,!1),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,hye),_x),"Cycle Breaking Group Ordering Strategy"),"Determines how to count ordering violations during cycle breaking. NONE: They do not count. ENFORCED: A group with a higher model order is before a node with a smaller. MODEL_ORDER: The model order counts instead of the model order group id ordering."),RTe),$r),Zee),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,mZ),_x),"Cycle Breaking Preferred Source Id"),"The model order group id for which should be preferred as a source if possible."),yo),Ti),ct(xt)))),zr(t,mZ,jD,o3t),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,wZ),_x),"Cycle Breaking Preferred Target Id"),"The model order group id for which should be preferred as a target if possible."),yo),Ti),ct(xt)))),zr(t,wZ,jD,a3t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,pye),_x),"Crossing Minimization Group Ordering Strategy"),"Determines how to count ordering violations during crossing minimization. NONE: They do not count. ENFORCED: A group with a lower id is before a group with a higher id. MODEL_ORDER: The model order counts instead of the model order group id ordering."),DTe),$r),Zee),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,gye),_x),"Crossing Minimization Enforced Group Orders"),"Holds all group ids which are enforcing their order during crossing minimization strategies. E.g. if only groups 2 and -1 (default) enforce their ordering. Other groups e.g. the group of timer nodes can be ordered arbitrarily if it helps and the mentioned groups may not change their order."),OTe),lf),_c),ct(xt)))),KEt((new FWe,t))};var JNt,XNt,ZNt,NTe,QNt,CTe,e3t,ITe,t3t,n3t,r3t,RTe,i3t,o3t,s3t,a3t,u3t,OTe,c3t,DTe,l3t,d3t,f3t,h3t,LTe,p3t,g3t,b3t,MTe,m3t,w3t,y3t,PTe,v3t,E3t,S3t,jTe,T3t,A3t,_3t,x3t,k3t,N3t,C3t,I3t,R3t,O3t,FTe,D3t,$Te,L3t,BTe,M3t,UTe,P3t,HTe,j3t,F3t,$3t,zTe,B3t,GTe,U3t,qTe,H3t,z3t,G3t,q3t,V3t,W3t,K3t,Y3t,J3t,X3t,VTe,Z3t,Q3t,eCt,tCt,nCt,rCt,WTe,iCt,oCt,sCt,aCt,uCt,cCt,lCt,KTe,dCt,YTe,fCt,JTe,hCt,pCt,gCt,XTe,bCt,mCt,ZTe,wCt,yCt,vCt,QTe,ECt,SCt,eAe,TCt,ACt,_Ct,xCt,kCt,NCt,CCt,ICt,tAe,RCt,OCt,DCt,nAe,LCt,rAe,MCt,PCt,jCt,FCt,$Ct,BCt,UCt,HCt,zCt,GCt,qCt,VCt,WCt,KCt,YCt,JCt,XCt,ZCt,iAe,QCt,eIt,oAe,tIt,nIt,rIt,iIt,oIt,sIt,aIt,uIt,cIt,sAe,lIt,dIt,fIt,hIt,aAe,pIt,gIt;k($s,"LayeredMetaDataProvider",851),_(991,1,td,FWe),h.tf=function(t){KEt(t)};var Kf,lte,aB,PI,uB,uAe,cB,jI,bL,dte,PT,cAe,lAe,dAe,FI,bIt,$I,Vy,fte,lB,hte,Ch,pte,tk,fAe,mL,gte,hAe,mIt,wIt,yIt,dB,bte,BI,jT,vIt,xc,pAe,gAe,fB,i2,Yf,hB,kp,bAe,mAe,wAe,mte,wte,yAe,_g,yte,vAe,Wy,EAe,SAe,TAe,pB,Ky,bm,AAe,_Ae,ss,xAe,EIt,Cs,UI,kAe,NAe,CAe,wL,gB,bB,vte,Ete,IAe,mB,RAe,OAe,wB,iw,DAe,Ste,HI,LAe,ow,zI,yB,mm,Tte,nk,vB,wm,MAe,PAe,jAe,Yy,FAe,SIt,TIt,AIt,_It,sw,Jy,Zr,xg,xIt,Xy,$Ae,rk,BAe,Zy,kIt,ik,UAe,FT,NIt,CIt,yL,Ate,HAe,vL,od,Qy,o2,ym,$1,EB,ev,_te,ok,sk,vm,tv,xte,EL,GI,qI,IIt,RIt,OIt,zAe,DIt,kte,GAe,qAe,VAe,WAe,Nte,KAe,YAe,JAe,XAe,Cte,SB;k($s,"LayeredOptions",991),_(992,1,{},yUe),h.uf=function(){var t;return t=new vZe,t},h.vf=function(t){},k($s,"LayeredOptions/LayeredFactory",992),_(1357,1,{}),h.a=0;var LIt;k(Vs,"ElkSpacings/AbstractSpacingsBuilder",1357),_(785,1357,{},E1e);var TB,MIt;k($s,"LayeredSpacings/LayeredSpacingsBuilder",785),_(269,23,{3:1,34:1,23:1,269:1,173:1,177:1},Yv),h.bg=function(){return nyt(this)},h.og=function(){return nyt(this)};var Ite,Rte,Ote,ZAe,QAe,e_e,AB,Dte,t_e,n_e=fn($s,"LayeringStrategy",269,bn,Bfn,ein),PIt;_(353,23,{3:1,34:1,23:1,353:1},jq);var Lte,r_e,_B,i_e=fn($s,"LongEdgeOrderingStrategy",353,bn,Xun,Xrn),jIt;_(205,23,{3:1,34:1,23:1,205:1},d8);var s2,a2,xB,Mte,Pte=fn($s,"NodeFlexibility",205,bn,nln,Jrn),FIt;_(329,23,{3:1,34:1,23:1,329:1,173:1,177:1},mO),h.bg=function(){return pmt(this)},h.og=function(){return pmt(this)};var VI,jte,Fte,WI,o_e,s_e=fn($s,"NodePlacementStrategy",329,bn,Zln,Zrn),$It;_(246,23,{3:1,34:1,23:1,246:1},$w);var a_e,ak,KI,SL,u_e,c_e,TL,l_e,kB,NB,d_e=fn($s,"NodePromotionStrategy",246,bn,ohn,Qrn),BIt;_(270,23,{3:1,34:1,23:1,270:1},f8);var f_e,B1,$te,Bte,h_e=fn($s,"OrderingStrategy",270,bn,rln,tin),UIt;_(426,23,{3:1,34:1,23:1,426:1},Ple);var Ute,Hte,p_e=fn($s,"PortSortingStrategy",426,bn,Wan,nin),HIt;_(455,23,{3:1,34:1,23:1,455:1},Fq);var Cu,Ba,YI,zIt=fn($s,"PortType",455,bn,Wun,rin),GIt;_(382,23,{3:1,34:1,23:1,382:1},$q);var g_e,zte,b_e,m_e=fn($s,"SelfLoopDistributionStrategy",382,bn,Kun,iin),qIt;_(349,23,{3:1,34:1,23:1,349:1},Bq);var Gte,AL,qte,w_e=fn($s,"SelfLoopOrderingStrategy",349,bn,Yun,oin),VIt;_(317,1,{317:1},zvt),k($s,"Spacings",317),_(350,23,{3:1,34:1,23:1,350:1},Uq);var Vte,y_e,JI,v_e=fn($s,"SplineRoutingMode",350,bn,Jun,sin),WIt;_(352,23,{3:1,34:1,23:1,352:1},Hq);var Wte,E_e,S_e,T_e=fn($s,"ValidifyStrategy",352,bn,Zun,ain),KIt;_(383,23,{3:1,34:1,23:1,383:1},zq);var nv,Kte,uk,A_e=fn($s,"WrappingStrategy",383,bn,Qun,uin),YIt;_(1373,1,Fi,MWe),h.pg=function(t){return l(t,37),JIt},h.If=function(t,r){Jxn(this,l(t,37),r)};var JIt;k(H0,"BFSNodeOrderCycleBreaker",1373),_(1371,1,Fi,LWe),h.pg=function(t){return l(t,37),XIt},h.If=function(t,r){q_n(this,l(t,37),r)};var XIt;k(H0,"DFSNodeOrderCycleBreaker",1371),_(1372,1,nn,tot),h.Ad=function(t){qTn(this.a,this.c,this.b,l(t,17))},h.b=!1,k(H0,"DFSNodeOrderCycleBreaker/lambda$0$Type",1372),_(1365,1,Fi,PWe),h.pg=function(t){return l(t,37),ZIt},h.If=function(t,r){G_n(this,l(t,37),r)};var ZIt;k(H0,"DepthFirstCycleBreaker",1365),_(786,1,Fi,qfe),h.pg=function(t){return l(t,37),QIt},h.If=function(t,r){f3n(this,l(t,37),r)},h.qg=function(t){return l(ze(t,u7(this.e,t.c.length)),9)};var QIt;k(H0,"GreedyCycleBreaker",786),_(1368,786,Fi,Ytt),h.qg=function(t){var r,o,a,u,f,p,m,y,v;for(v=null,a=sr,y=b.Math.max(this.b.a.c.length,l(F(this.b,(Ie(),F1)),15).a),r=y*l(F(this.b,fL),15).a,u=new YR,o=be(F(this.b,(Be(),PT)))===be((g1(),Gy)),m=new V(t);m.af&&(a=f,v=p));return v||l(ze(t,u7(this.e,t.c.length)),9)},k(H0,"GreedyModelOrderCycleBreaker",1368),_(509,1,{},YR),h.a=0,h.b=0,k(H0,"GroupModelOrderCalculator",509),_(1366,1,Fi,OWe),h.pg=function(t){return l(t,37),e4t},h.If=function(t,r){mxn(this,l(t,37),r)};var e4t;k(H0,"InteractiveCycleBreaker",1366),_(1367,1,Fi,RWe),h.pg=function(t){return l(t,37),t4t},h.If=function(t,r){yxn(l(t,37),r)};var t4t;k(H0,"ModelOrderCycleBreaker",1367),_(787,1,Fi),h.pg=function(t){return l(t,37),n4t},h.If=function(t,r){o_n(this,l(t,37),r)},h.rg=function(t,r){var o,a,u,f,p,m,y,v,T,N;for(p=0;pv&&(y=O,N=v),Tyd(new $t(qt(Or(m).a.Jc(),new D))))for(u=new $t(qt(si(y).a.Jc(),new D));an(u);)a=l(en(u),17),l(sa(this.d,p),24).Gc(a.c.i)&&Fe(this.c,a);else for(u=new $t(qt(Or(m).a.Jc(),new D));an(u);)a=l(en(u),17),l(sa(this.d,p),24).Gc(a.d.i)&&Fe(this.c,a)}},k(H0,"SCCNodeTypeCycleBreaker",1370),_(1369,787,Fi,Xtt),h.rg=function(t,r){var o,a,u,f,p,m,y,v,T,N,O,M;for(p=0;pv&&(y=O,N=v),Tyd(new $t(qt(Or(m).a.Jc(),new D))))for(u=new $t(qt(si(y).a.Jc(),new D));an(u);)a=l(en(u),17),l(sa(this.d,p),24).Gc(a.c.i)&&Fe(this.c,a);else for(u=new $t(qt(Or(m).a.Jc(),new D));an(u);)a=l(en(u),17),l(sa(this.d,p),24).Gc(a.d.i)&&Fe(this.c,a)}},k(H0,"SCConnectivity",1369),_(1385,1,Fi,DWe),h.pg=function(t){return l(t,37),r4t},h.If=function(t,r){bNn(this,l(t,37),r)};var r4t;k(Tp,"BreadthFirstModelOrderLayerer",1385),_(1386,1,Un,vUe),h.Le=function(t,r){return Yyn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"BreadthFirstModelOrderLayerer/lambda$0$Type",1386),_(1376,1,Fi,Ket),h.pg=function(t){return l(t,37),i4t},h.If=function(t,r){m3n(this,l(t,37),r)};var i4t;k(Tp,"CoffmanGrahamLayerer",1376),_(1377,1,Un,hJe),h.Le=function(t,r){return oSn(this.a,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"CoffmanGrahamLayerer/0methodref$compareNodesInTopo$Type",1377),_(1378,1,Un,pJe),h.Le=function(t,r){return ssn(this.a,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"CoffmanGrahamLayerer/lambda$1$Type",1378),_(1387,1,Fi,xWe),h.pg=function(t){return l(t,37),o4t},h.If=function(t,r){r3n(this,l(t,37),r)},h.c=0,h.e=0;var o4t;k(Tp,"DepthFirstModelOrderLayerer",1387),_(1388,1,Un,EUe),h.Le=function(t,r){return Jyn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"DepthFirstModelOrderLayerer/lambda$0$Type",1388),_(1379,1,Fi,SUe),h.pg=function(t){return l(t,37),$n($n($n(new ui,(Vi(),id),(Zi(),wee)),kh,Uy),la,By)},h.If=function(t,r){kNn(l(t,37),r)},k(Tp,"InteractiveLayerer",1379),_(571,1,{571:1},NZe),h.a=0,h.c=0,k(Tp,"InteractiveLayerer/LayerSpan",571),_(1375,1,Fi,kWe),h.pg=function(t){return l(t,37),s4t},h.If=function(t,r){Q2n(this,l(t,37),r)};var s4t;k(Tp,"LongestPathLayerer",1375),_(1384,1,Fi,NWe),h.pg=function(t){return l(t,37),a4t},h.If=function(t,r){vSn(this,l(t,37),r)};var a4t;k(Tp,"LongestPathSourceLayerer",1384),_(1382,1,Fi,BWe),h.pg=function(t){return l(t,37),$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)},h.If=function(t,r){jNn(this,l(t,37),r)},h.a=0,h.b=0,h.d=0;var __e,x_e;k(Tp,"MinWidthLayerer",1382),_(1383,1,Un,gJe),h.Le=function(t,r){return Rhn(this,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"MinWidthLayerer/MinOutgoingEdgesComparator",1383),_(1374,1,Fi,$We),h.pg=function(t){return l(t,37),u4t},h.If=function(t,r){Qxn(this,l(t,37),r)};var u4t;k(Tp,"NetworkSimplexLayerer",1374),_(1380,1,Fi,_it),h.pg=function(t){return l(t,37),$n($n($n(new ui,(Vi(),id),(Zi(),VE)),kh,Uy),la,By)},h.If=function(t,r){$kn(this,l(t,37),r)},h.d=0,h.f=0,h.g=0,h.i=0,h.s=0,h.t=0,h.u=0,k(Tp,"StretchWidthLayerer",1380),_(1381,1,Un,NUe),h.Le=function(t,r){return hdn(l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Tp,"StretchWidthLayerer/1",1381),_(411,1,rve),h.eg=function(t,r,o,a,u,f){},h.tg=function(t,r,o){return Dyt(this,t,r,o)},h.dg=function(){this.g=we(Ev,OSt,30,this.d,15,1),this.f=we(Ev,OSt,30,this.d,15,1)},h.fg=function(t,r){this.e[t]=we(Rn,Qn,30,r[t].length,15,1)},h.gg=function(t,r,o){var a;a=o[t][r],a.p=r,this.e[t][r]=r},h.hg=function(t,r,o,a){l(ze(a[t][r].j,o),12).p=this.d++},h.b=0,h.c=0,h.d=0,k(qa,"AbstractBarycenterPortDistributor",411),_(1680,1,Un,bJe),h.Le=function(t,r){return V1n(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(qa,"AbstractBarycenterPortDistributor/lambda$0$Type",1680),_(823,1,JC,Zhe),h.eg=function(t,r,o,a,u,f){},h.gg=function(t,r,o){},h.hg=function(t,r,o,a){},h.cg=function(){return!1},h.dg=function(){this.c=this.e.a,this.g=this.f.g},h.fg=function(t,r){r[t][0].c.p=t},h.ig=function(){return!1},h.ug=function(t,r,o,a){o?wbt(this,t):(Abt(this,t,a),eEt(this,t,r)),t.c.length>1&&(Ye(Ke(F(ji((at(0,t.c.length),l(t.c[0],9))),(Be(),tk))))?ewt(t,this.d,l(this,667)):(At(),xi(t,this.d)),$ht(this.e,t))},h.jg=function(t,r,o,a){var u,f,p,m,y,v,T;for(r!=qot(o,t.length)&&(f=t[r-(o?1:-1)],Ape(this.f,f,o?(jo(),Ba):(jo(),Cu))),u=t[r][0],T=!a||u.k==(zt(),mi),v=Wl(t[r]),this.ug(v,T,!1,o),p=0,y=new V(v);y.a"),t0?xW(this.a,t[r-1],t[r]):!o&&r1&&(Ye(Ke(F(ji((at(0,t.c.length),l(t.c[0],9))),(Be(),tk))))?ewt(t,this.d,this):(At(),xi(t,this.d)),Ye(Ke(F(ji((at(0,t.c.length),l(t.c[0],9))),tk)))||$ht(this.e,t))},k(qa,"ModelOrderBarycenterHeuristic",667),_(1860,1,Un,_Je),h.Le=function(t,r){return L_n(this.a,l(t,9),l(r,9))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(qa,"ModelOrderBarycenterHeuristic/lambda$0$Type",1860),_(1395,1,Fi,GWe),h.pg=function(t){var r;return l(t,37),r=O8(b4t),$n(r,(Vi(),la),(Zi(),P$)),r},h.If=function(t,r){Ean((l(t,37),r))};var b4t;k(qa,"NoCrossingMinimizer",1395),_(803,411,rve,rle),h.sg=function(t,r,o){var a,u,f,p,m,y,v,T,N,O,M;switch(N=this.g,o.g){case 1:{for(u=0,f=0,T=new V(t.j);T.a1&&(u.j==(He(),Qt)?this.b[t]=!0:u.j==Kt&&t>0&&(this.b[t-1]=!0))},h.f=0,k(_h,"AllCrossingsCounter",1855),_(590,1,{},Nj),h.b=0,h.d=0,k(_h,"BinaryIndexedTree",590),_(523,1,{},FO);var k_e,RB;k(_h,"CrossingsCounter",523),_(1929,1,Un,xJe),h.Le=function(t,r){return Kon(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(_h,"CrossingsCounter/lambda$0$Type",1929),_(1930,1,Un,kJe),h.Le=function(t,r){return Yon(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(_h,"CrossingsCounter/lambda$1$Type",1930),_(1931,1,Un,NJe),h.Le=function(t,r){return Jon(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(_h,"CrossingsCounter/lambda$2$Type",1931),_(1932,1,Un,CJe),h.Le=function(t,r){return Xon(this.a,l(t,12),l(r,12))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(_h,"CrossingsCounter/lambda$3$Type",1932),_(1933,1,nn,IJe),h.Ad=function(t){Jdn(this.a,l(t,12))},k(_h,"CrossingsCounter/lambda$4$Type",1933),_(1934,1,Mn,RJe),h.Mb=function(t){return Ren(this.a,l(t,12))},k(_h,"CrossingsCounter/lambda$5$Type",1934),_(1935,1,nn,OJe),h.Ad=function(t){Ztt(this,t)},k(_h,"CrossingsCounter/lambda$6$Type",1935),_(1936,1,nn,Ntt),h.Ad=function(t){var r;ZA(),l1(this.b,(r=this.a,l(t,12),r))},k(_h,"CrossingsCounter/lambda$7$Type",1936),_(831,1,Uf,Fue),h.Lb=function(t){return ZA(),gr(l(t,12),(Ie(),Nu))},h.Fb=function(t){return this===t},h.Mb=function(t){return ZA(),gr(l(t,12),(Ie(),Nu))},k(_h,"CrossingsCounter/lambda$8$Type",831),_(1928,1,{},DJe),k(_h,"HyperedgeCrossingsCounter",1928),_(470,1,{34:1,470:1},kit),h.Dd=function(t){return I1n(this,l(t,470))},h.b=0,h.c=0,h.e=0,h.f=0;var Z3n=k(_h,"HyperedgeCrossingsCounter/Hyperedge",470);_(371,1,{34:1,371:1},_P),h.Dd=function(t){return CEn(this,l(t,371))},h.b=0,h.c=0;var m4t=k(_h,"HyperedgeCrossingsCounter/HyperedgeCorner",371);_(522,23,{3:1,34:1,23:1,522:1},$le);var ZI,QI,w4t=fn(_h,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",522,bn,eun,lin),y4t;_(1397,1,Fi,WWe),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc((Fo(),rl))?v4t:null},h.If=function(t,r){r0n(this,l(t,37),r)};var v4t;k(Uo,"InteractiveNodePlacer",1397),_(1398,1,Fi,KWe),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc((Fo(),rl))?E4t:null},h.If=function(t,r){Bbn(this,l(t,37),r)};var E4t,OB,DB;k(Uo,"LinearSegmentsNodePlacer",1398),_(264,1,{34:1,264:1},Pce),h.Dd=function(t){return GQt(this,l(t,264))},h.Fb=function(t){var r;return ae(t,264)?(r=l(t,264),this.b==r.b):!1},h.Hb=function(){return this.b},h.Ib=function(){return"ls"+Qd(this.e)},h.a=0,h.b=0,h.c=-1,h.d=-1,h.g=0;var S4t=k(Uo,"LinearSegmentsNodePlacer/LinearSegment",264);_(1400,1,Fi,cst),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc((Fo(),rl))?T4t:null},h.If=function(t,r){i3n(this,l(t,37),r)},h.b=0,h.g=0;var T4t;k(Uo,"NetworkSimplexPlacer",1400),_(1419,1,Un,IUe),h.Le=function(t,r){return na(l(t,15).a,l(r,15).a)},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Uo,"NetworkSimplexPlacer/0methodref$compare$Type",1419),_(1421,1,Un,RUe),h.Le=function(t,r){return na(l(t,15).a,l(r,15).a)},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Uo,"NetworkSimplexPlacer/1methodref$compare$Type",1421),_(651,1,{651:1},_tt);var Q3n=k(Uo,"NetworkSimplexPlacer/EdgeRep",651);_(410,1,{410:1},_he),h.b=!1;var eCn=k(Uo,"NetworkSimplexPlacer/NodeRep",410);_(504,13,{3:1,4:1,22:1,32:1,56:1,13:1,18:1,16:1,59:1,504:1},PZe),k(Uo,"NetworkSimplexPlacer/Path",504),_(1401,1,{},OUe),h.Kb=function(t){return l(t,17).d.i.k},k(Uo,"NetworkSimplexPlacer/Path/lambda$0$Type",1401),_(1402,1,Mn,CUe),h.Mb=function(t){return l(t,252)==(zt(),gi)},k(Uo,"NetworkSimplexPlacer/Path/lambda$1$Type",1402),_(1403,1,{},DUe),h.Kb=function(t){return l(t,17).d.i},k(Uo,"NetworkSimplexPlacer/Path/lambda$2$Type",1403),_(1404,1,Mn,LJe),h.Mb=function(t){return lit(Mgt(l(t,9)))},k(Uo,"NetworkSimplexPlacer/Path/lambda$3$Type",1404),_(1405,1,Mn,LUe),h.Mb=function(t){return Mon(l(t,12))},k(Uo,"NetworkSimplexPlacer/lambda$0$Type",1405),_(1406,1,nn,xtt),h.Ad=function(t){Etn(this.a,this.b,l(t,12))},k(Uo,"NetworkSimplexPlacer/lambda$1$Type",1406),_(1415,1,nn,MJe),h.Ad=function(t){gvn(this.a,l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$10$Type",1415),_(1416,1,{},MUe),h.Kb=function(t){return gc(),new Et(null,new St(l(t,26).a,16))},k(Uo,"NetworkSimplexPlacer/lambda$11$Type",1416),_(1417,1,nn,PJe),h.Ad=function(t){ZSn(this.a,l(t,9))},k(Uo,"NetworkSimplexPlacer/lambda$12$Type",1417),_(1418,1,{},PUe),h.Kb=function(t){return gc(),Re(l(t,126).e)},k(Uo,"NetworkSimplexPlacer/lambda$13$Type",1418),_(1420,1,{},jUe),h.Kb=function(t){return gc(),Re(l(t,126).e)},k(Uo,"NetworkSimplexPlacer/lambda$15$Type",1420),_(1422,1,Mn,$Ue),h.Mb=function(t){return gc(),l(t,410).c.k==(zt(),Xr)},k(Uo,"NetworkSimplexPlacer/lambda$17$Type",1422),_(1423,1,Mn,BUe),h.Mb=function(t){return gc(),l(t,410).c.j.c.length>1},k(Uo,"NetworkSimplexPlacer/lambda$18$Type",1423),_(1424,1,nn,lat),h.Ad=function(t){Qgn(this.c,this.b,this.d,this.a,l(t,410))},h.c=0,h.d=0,k(Uo,"NetworkSimplexPlacer/lambda$19$Type",1424),_(1407,1,{},UUe),h.Kb=function(t){return gc(),new Et(null,new St(l(t,26).a,16))},k(Uo,"NetworkSimplexPlacer/lambda$2$Type",1407),_(1425,1,nn,jJe),h.Ad=function(t){_tn(this.a,l(t,12))},h.a=0,k(Uo,"NetworkSimplexPlacer/lambda$20$Type",1425),_(1426,1,{},HUe),h.Kb=function(t){return gc(),new Et(null,new St(l(t,26).a,16))},k(Uo,"NetworkSimplexPlacer/lambda$21$Type",1426),_(1427,1,nn,FJe),h.Ad=function(t){Otn(this.a,l(t,9))},k(Uo,"NetworkSimplexPlacer/lambda$22$Type",1427),_(1428,1,Mn,zUe),h.Mb=function(t){return lit(t)},k(Uo,"NetworkSimplexPlacer/lambda$23$Type",1428),_(1429,1,{},GUe),h.Kb=function(t){return gc(),new Et(null,new St(l(t,26).a,16))},k(Uo,"NetworkSimplexPlacer/lambda$24$Type",1429),_(1430,1,Mn,$Je),h.Mb=function(t){return $en(this.a,l(t,9))},k(Uo,"NetworkSimplexPlacer/lambda$25$Type",1430),_(1431,1,nn,ktt),h.Ad=function(t){myn(this.a,this.b,l(t,9))},k(Uo,"NetworkSimplexPlacer/lambda$26$Type",1431),_(1432,1,Mn,qUe),h.Mb=function(t){return gc(),!fo(l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$27$Type",1432),_(1433,1,Mn,VUe),h.Mb=function(t){return gc(),!fo(l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$28$Type",1433),_(1434,1,{},BJe),h.Te=function(t,r){return Atn(this.a,l(t,26),l(r,26))},k(Uo,"NetworkSimplexPlacer/lambda$29$Type",1434),_(1408,1,{},WUe),h.Kb=function(t){return gc(),new Et(null,new Zw(new $t(qt(Or(l(t,9)).a.Jc(),new D))))},k(Uo,"NetworkSimplexPlacer/lambda$3$Type",1408),_(1409,1,Mn,KUe),h.Mb=function(t){return gc(),$cn(l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$4$Type",1409),_(1410,1,nn,UJe),h.Ad=function(t){u_n(this.a,l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$5$Type",1410),_(1411,1,{},YUe),h.Kb=function(t){return gc(),new Et(null,new St(l(t,26).a,16))},k(Uo,"NetworkSimplexPlacer/lambda$6$Type",1411),_(1412,1,Mn,JUe),h.Mb=function(t){return gc(),l(t,9).k==(zt(),Xr)},k(Uo,"NetworkSimplexPlacer/lambda$7$Type",1412),_(1413,1,{},XUe),h.Kb=function(t){return gc(),new Et(null,new Zw(new $t(qt(Lf(l(t,9)).a.Jc(),new D))))},k(Uo,"NetworkSimplexPlacer/lambda$8$Type",1413),_(1414,1,Mn,ZUe),h.Mb=function(t){return gc(),Don(l(t,17))},k(Uo,"NetworkSimplexPlacer/lambda$9$Type",1414),_(1396,1,Fi,jWe),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc((Fo(),rl))?A4t:null},h.If=function(t,r){U_n(l(t,37),r)};var A4t;k(Uo,"SimpleNodePlacer",1396),_(188,1,{188:1},NE),h.Ib=function(){var t;return t="",this.c==(If(),aw)?t+=pT:this.c==kg&&(t+=hT),this.o==(zd(),Em)?t+=IX:this.o==uf?t+="UP":t+="BALANCED",t},k(I1,"BKAlignedLayout",188),_(513,23,{3:1,34:1,23:1,513:1},jle);var kg,aw,_4t=fn(I1,"BKAlignedLayout/HDirection",513,bn,Zan,din),x4t;_(512,23,{3:1,34:1,23:1,512:1},Fle);var Em,uf,k4t=fn(I1,"BKAlignedLayout/VDirection",512,bn,Xan,fin),N4t;_(1681,1,{},Ctt),k(I1,"BKAligner",1681),_(1684,1,{},abt),k(I1,"BKCompactor",1684),_(659,1,{659:1},QUe),h.a=0,k(I1,"BKCompactor/ClassEdge",659),_(459,1,{459:1},CZe),h.a=null,h.b=0,k(I1,"BKCompactor/ClassNode",459),_(1399,1,Fi,Ktt),h.pg=function(t){return l(F(l(t,37),(Ie(),xa)),24).Gc((Fo(),rl))?C4t:null},h.If=function(t,r){E3n(this,l(t,37),r)},h.d=!1;var C4t;k(I1,"BKNodePlacer",1399),_(1682,1,{},eHe),h.d=0,k(I1,"NeighborhoodInformation",1682),_(1683,1,Un,HJe),h.Le=function(t,r){return lfn(this,l(t,49),l(r,49))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(I1,"NeighborhoodInformation/NeighborComparator",1683),_(816,1,{}),k(I1,"ThresholdStrategy",816),_(1812,816,{},RZe),h.vg=function(t,r,o){return this.a.o==(zd(),uf)?Kr:Li},h.wg=function(){},k(I1,"ThresholdStrategy/NullThresholdStrategy",1812),_(583,1,{583:1},Dtt),h.c=!1,h.d=!1,k(I1,"ThresholdStrategy/Postprocessable",583),_(1813,816,{},OZe),h.vg=function(t,r,o){var a,u,f;return u=r==o,a=this.a.a[o.p]==r,u||a?(f=t,this.a.c==(If(),aw)?(u&&(f=OJ(this,r,!0)),!isNaN(f)&&!isFinite(f)&&a&&(f=OJ(this,o,!1))):(u&&(f=OJ(this,r,!0)),!isNaN(f)&&!isFinite(f)&&a&&(f=OJ(this,o,!1))),f):t},h.wg=function(){for(var t,r,o,a,u;this.d.b!=0;)u=l(Kat(this.d),583),a=Yyt(this,u),a.a&&(t=a.a,o=Ye(this.a.f[this.a.g[u.b.p].p]),!(!o&&!fo(t)&&t.c.i.c==t.d.i.c)&&(r=K0t(this,u),r||Bnt(this.e,u)));for(;this.e.a.c.length!=0;)K0t(this,l(Kge(this.e),583))},k(I1,"ThresholdStrategy/SimpleThresholdStrategy",1813),_(642,1,{642:1,173:1,177:1},tHe),h.bg=function(){return Pht(this)},h.og=function(){return Pht(this)};var Yte;k(CZ,"EdgeRouterFactory",642),_(1462,1,Fi,YWe),h.pg=function(t){return CSn(l(t,37))},h.If=function(t,r){J_n(l(t,37),r)};var I4t,R4t,O4t,D4t,L4t,N_e,M4t,P4t;k(CZ,"OrthogonalEdgeRouter",1462),_(1455,1,Fi,Wtt),h.pg=function(t){return f0n(l(t,37))},h.If=function(t,r){vNn(this,l(t,37),r)};var j4t,F4t,$4t,B4t,xL,U4t;k(CZ,"PolylineEdgeRouter",1455),_(1456,1,Uf,rHe),h.Lb=function(t){return _ge(l(t,9))},h.Fb=function(t){return this===t},h.Mb=function(t){return _ge(l(t,9))},k(CZ,"PolylineEdgeRouter/1",1456),_(1868,1,Mn,iHe),h.Mb=function(t){return l(t,135).c==(vd(),U1)},k(xd,"HyperEdgeCycleDetector/lambda$0$Type",1868),_(1869,1,{},oHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$1$Type",1869),_(1870,1,Mn,sHe),h.Mb=function(t){return l(t,135).c==(vd(),U1)},k(xd,"HyperEdgeCycleDetector/lambda$2$Type",1870),_(1871,1,{},aHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$3$Type",1871),_(1872,1,{},uHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$4$Type",1872),_(1873,1,{},nHe),h.Xe=function(t){return l(t,135).d},k(xd,"HyperEdgeCycleDetector/lambda$5$Type",1873),_(117,1,{34:1,117:1},_6),h.Dd=function(t){return zQt(this,l(t,117))},h.Fb=function(t){var r;return ae(t,117)?(r=l(t,117),this.g==r.g):!1},h.Hb=function(){return this.g},h.Ib=function(){var t,r,o,a;for(t=new fc("{"),a=new V(this.n);a.a"+this.b+" ("+unn(this.c)+")"},h.d=0,k(xd,"HyperEdgeSegmentDependency",135),_(519,23,{3:1,34:1,23:1,519:1},Ble);var U1,rv,H4t=fn(xd,"HyperEdgeSegmentDependency/DependencyType",519,bn,Qan,hin),z4t;_(1874,1,{},zJe),k(xd,"HyperEdgeSegmentSplitter",1874),_(1875,1,{},CQe),h.a=0,h.b=0,k(xd,"HyperEdgeSegmentSplitter/AreaRating",1875),_(341,1,{341:1},LV),h.a=0,h.b=0,h.c=0,k(xd,"HyperEdgeSegmentSplitter/FreeArea",341),_(1876,1,Un,cHe),h.Le=function(t,r){return orn(l(t,117),l(r,117))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(xd,"HyperEdgeSegmentSplitter/lambda$0$Type",1876),_(1877,1,nn,dat),h.Ad=function(t){Nln(this.a,this.d,this.c,this.b,l(t,117))},h.b=0,k(xd,"HyperEdgeSegmentSplitter/lambda$1$Type",1877),_(1878,1,{},lHe),h.Kb=function(t){return new Et(null,new St(l(t,117).e,16))},k(xd,"HyperEdgeSegmentSplitter/lambda$2$Type",1878),_(1879,1,{},dHe),h.Kb=function(t){return new Et(null,new St(l(t,117).j,16))},k(xd,"HyperEdgeSegmentSplitter/lambda$3$Type",1879),_(1880,1,{},fHe),h.We=function(t){return ue(ce(t))},k(xd,"HyperEdgeSegmentSplitter/lambda$4$Type",1880),_(660,1,{},oW),h.a=0,h.b=0,h.c=0,k(xd,"OrthogonalRoutingGenerator",660),_(1685,1,{},hHe),h.Kb=function(t){return new Et(null,new St(l(t,117).e,16))},k(xd,"OrthogonalRoutingGenerator/lambda$0$Type",1685),_(1686,1,{},pHe),h.Kb=function(t){return new Et(null,new St(l(t,117).j,16))},k(xd,"OrthogonalRoutingGenerator/lambda$1$Type",1686),_(668,1,{}),k(IZ,"BaseRoutingDirectionStrategy",668),_(1866,668,{},DZe),h.xg=function(t,r,o){var a,u,f,p,m,y,v,T,N,O,M,U,z;if(!(t.r&&!t.q))for(T=r+t.o*o,v=new V(t.n);v.aHf&&(f=T,u=t,a=new Me(N,f),Gn(p.a,a),L0(this,p,u,a,!1),O=t.r,O&&(M=ue(ce(sa(O.e,0))),a=new Me(M,f),Gn(p.a,a),L0(this,p,u,a,!1),f=r+O.o*o,u=O,a=new Me(M,f),Gn(p.a,a),L0(this,p,u,a,!1)),a=new Me(z,f),Gn(p.a,a),L0(this,p,u,a,!1)))},h.yg=function(t){return t.i.n.a+t.n.a+t.a.a},h.zg=function(){return He(),dn},h.Ag=function(){return He(),Wt},k(IZ,"NorthToSouthRoutingStrategy",1866),_(1867,668,{},LZe),h.xg=function(t,r,o){var a,u,f,p,m,y,v,T,N,O,M,U,z;if(!(t.r&&!t.q))for(T=r-t.o*o,v=new V(t.n);v.aHf&&(f=T,u=t,a=new Me(N,f),Gn(p.a,a),L0(this,p,u,a,!1),O=t.r,O&&(M=ue(ce(sa(O.e,0))),a=new Me(M,f),Gn(p.a,a),L0(this,p,u,a,!1),f=r-O.o*o,u=O,a=new Me(M,f),Gn(p.a,a),L0(this,p,u,a,!1)),a=new Me(z,f),Gn(p.a,a),L0(this,p,u,a,!1)))},h.yg=function(t){return t.i.n.a+t.n.a+t.a.a},h.zg=function(){return He(),Wt},h.Ag=function(){return He(),dn},k(IZ,"SouthToNorthRoutingStrategy",1867),_(1865,668,{},MZe),h.xg=function(t,r,o){var a,u,f,p,m,y,v,T,N,O,M,U,z;if(!(t.r&&!t.q))for(T=r+t.o*o,v=new V(t.n);v.aHf&&(f=T,u=t,a=new Me(f,N),Gn(p.a,a),L0(this,p,u,a,!0),O=t.r,O&&(M=ue(ce(sa(O.e,0))),a=new Me(f,M),Gn(p.a,a),L0(this,p,u,a,!0),f=r+O.o*o,u=O,a=new Me(f,M),Gn(p.a,a),L0(this,p,u,a,!0)),a=new Me(f,z),Gn(p.a,a),L0(this,p,u,a,!0)))},h.yg=function(t){return t.i.n.b+t.n.b+t.a.b},h.zg=function(){return He(),Qt},h.Ag=function(){return He(),Kt},k(IZ,"WestToEastRoutingStrategy",1865),_(819,1,{},C0e),h.Ib=function(){return Qd(this.a)},h.b=0,h.c=!1,h.d=!1,h.f=0,k(Dy,"NubSpline",819),_(415,1,{415:1},Rwt,Vat),k(Dy,"NubSpline/PolarCP",415),_(1457,1,Fi,X1t),h.pg=function(t){return Z0n(l(t,37))},h.If=function(t,r){BNn(this,l(t,37),r)};var G4t,q4t,V4t,W4t,K4t;k(Dy,"SplineEdgeRouter",1457),_(275,1,{275:1},XP),h.Ib=function(){return this.a+" ->("+this.c+") "+this.b},h.c=0,k(Dy,"SplineEdgeRouter/Dependency",275),_(457,23,{3:1,34:1,23:1,457:1},Ule);var H1,u2,Y4t=fn(Dy,"SplineEdgeRouter/SideToProcess",457,bn,tun,gin),J4t;_(1458,1,Mn,gHe),h.Mb=function(t){return NC(),!l(t,134).o},k(Dy,"SplineEdgeRouter/lambda$0$Type",1458),_(1459,1,{},bHe),h.Xe=function(t){return NC(),l(t,134).v+1},k(Dy,"SplineEdgeRouter/lambda$1$Type",1459),_(1460,1,nn,Itt),h.Ad=function(t){Fon(this.a,this.b,l(t,49))},k(Dy,"SplineEdgeRouter/lambda$2$Type",1460),_(1461,1,nn,Rtt),h.Ad=function(t){$on(this.a,this.b,l(t,49))},k(Dy,"SplineEdgeRouter/lambda$3$Type",1461),_(134,1,{34:1,134:1},jmt,M0e),h.Dd=function(t){return qQt(this,l(t,134))},h.b=0,h.e=!1,h.f=0,h.g=0,h.j=!1,h.k=!1,h.n=0,h.o=!1,h.p=!1,h.q=!1,h.s=0,h.u=0,h.v=0,h.F=0,k(Dy,"SplineSegment",134),_(460,1,{460:1},mHe),h.a=0,h.b=!1,h.c=!1,h.d=!1,h.e=!1,h.f=0,k(Dy,"SplineSegment/EdgeInformation",460),_(1179,1,{},wHe),k(Ap,Ewe,1179),_(1180,1,Un,yHe),h.Le=function(t,r){return Nvn(l(t,121),l(r,121))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Ap,z2t,1180),_(1178,1,{},WQe),k(Ap,"MrTree",1178),_(402,23,{3:1,34:1,23:1,402:1,173:1,177:1},p8),h.bg=function(){return a0t(this)},h.og=function(){return a0t(this)};var LB,e4,t4,n4,C_e=fn(Ap,"TreeLayoutPhases",402,bn,uln,bin),X4t;_(1093,207,im,Cit),h.kf=function(t,r){var o,a,u,f,p,m,y,v;for(Ye(Ke(ve(t,(js(),exe))))||P3((o=new OA((t1(),new Yp(t))),o)),p=r.dh(DZ),p.Tg("build tGraph",1),m=(y=new i6,qs(y,t),Te(y,(Nr(),i4),t),v=new hn,hAn(t,y,v),IAn(t,y,v),y),p.Ug(),p=r.dh(DZ),p.Tg("Split graph",1),f=yAn(this.a,m),p.Ug(),u=new V(f);u.a"+Fb(this.c):"e_"+Rr(this)},k(eI,"TEdge",65),_(121,151,{3:1,121:1,105:1,151:1},i6),h.Ib=function(){var t,r,o,a,u;for(u=null,a=An(this.b,0);a.b!=a.d.c;)o=l(Sn(a),41),u+=(o.c==null||o.c.length==0?"n_"+o.g:"n_"+o.c)+` +`;for(r=An(this.a,0);r.b!=r.d.c;)t=l(Sn(r),65),u+=(t.b&&t.c?Fb(t.b)+"->"+Fb(t.c):"e_"+Rr(t))+` +`;return u};var tCn=k(eI,"TGraph",121);_(640,497,{3:1,497:1,640:1,105:1,151:1}),k(eI,"TShape",640),_(41,640,{3:1,497:1,41:1,640:1,105:1,151:1},FK),h.Ib=function(){return Fb(this)};var MB=k(eI,"TNode",41);_(239,1,Eh,Qh),h.Ic=function(t){lo(this,t)},h.Jc=function(){var t;return t=An(this.a.d,0),new qv(t)},k(eI,"TNode/2",239),_(335,1,Wi,qv),h.Nb=function(t){so(this,t)},h.Pb=function(){return l(Sn(this.a),65).c},h.Ob=function(){return oO(this.a)},h.Qb=function(){fK(this.a)},k(eI,"TNode/2/1",335),_(1910,1,kr,xHe),h.If=function(t,r){b3n(this,l(t,121),r)},k(Aa,"CompactionProcessor",1910),_(1911,1,Un,KJe),h.Le=function(t,r){return Chn(this.a,l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$0$Type",1911),_(1912,1,Mn,Ltt),h.Mb=function(t){return Han(this.b,this.a,l(t,49))},h.a=0,h.b=0,k(Aa,"CompactionProcessor/lambda$1$Type",1912),_(1921,1,Un,kHe),h.Le=function(t,r){return Rsn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$10$Type",1921),_(1922,1,Un,NHe),h.Le=function(t,r){return Jtn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$11$Type",1922),_(1923,1,Un,CHe),h.Le=function(t,r){return Osn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$12$Type",1923),_(1913,1,Mn,YJe),h.Mb=function(t){return Ptn(this.a,l(t,49))},h.a=0,k(Aa,"CompactionProcessor/lambda$2$Type",1913),_(1914,1,Mn,JJe),h.Mb=function(t){return jtn(this.a,l(t,49))},h.a=0,k(Aa,"CompactionProcessor/lambda$3$Type",1914),_(1915,1,Mn,IHe),h.Mb=function(t){return l(t,41).c.indexOf(DF)==-1},k(Aa,"CompactionProcessor/lambda$4$Type",1915),_(1916,1,{},XJe),h.Kb=function(t){return Bcn(this.a,l(t,41))},h.a=0,k(Aa,"CompactionProcessor/lambda$5$Type",1916),_(1917,1,{},ZJe),h.Kb=function(t){return Ydn(this.a,l(t,41))},h.a=0,k(Aa,"CompactionProcessor/lambda$6$Type",1917),_(1918,1,Un,QJe),h.Le=function(t,r){return idn(this.a,l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$7$Type",1918),_(1919,1,Un,eXe),h.Le=function(t,r){return odn(this.a,l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$8$Type",1919),_(1920,1,Un,RHe),h.Le=function(t,r){return Xtn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Aa,"CompactionProcessor/lambda$9$Type",1920),_(1908,1,kr,OHe),h.If=function(t,r){cTn(l(t,121),r)},k(Aa,"DirectionProcessor",1908),_(k1,1,kr,xit),h.If=function(t,r){CAn(this,l(t,121),r)},k(Aa,"FanProcessor",k1),_(1263,1,kr,DHe),h.If=function(t,r){Xwt(l(t,121),r)},k(Aa,"GraphBoundsProcessor",1263),_(1264,1,{},LHe),h.We=function(t){return l(t,41).e.a},k(Aa,"GraphBoundsProcessor/lambda$0$Type",1264),_(1265,1,{},MHe),h.We=function(t){return l(t,41).e.b},k(Aa,"GraphBoundsProcessor/lambda$1$Type",1265),_(1266,1,{},PHe),h.We=function(t){return men(l(t,41))},k(Aa,"GraphBoundsProcessor/lambda$2$Type",1266),_(1267,1,{},jHe),h.We=function(t){return wen(l(t,41))},k(Aa,"GraphBoundsProcessor/lambda$3$Type",1267),_(265,23,{3:1,34:1,23:1,265:1,177:1},r0),h.bg=function(){switch(this.g){case 0:return new ZZe;case 1:return new xit;case 2:return new XZe;case 3:return new HHe;case 4:return new $He;case 8:return new FHe;case 5:return new OHe;case 6:return new GHe;case 7:return new xHe;case 9:return new DHe;case 10:return new qHe;default:throw Y(new jt(jX+(this.f!=null?this.f:""+this.g)))}};var I_e,R_e,O_e,D_e,L_e,M_e,P_e,j_e,F_e,$_e,Jte,nCn=fn(Aa,FX,265,bn,Rht,min),Z4t;_(1907,1,kr,FHe),h.If=function(t,r){pNn(l(t,121),r)},k(Aa,"LevelCoordinatesProcessor",1907),_(1905,1,kr,$He),h.If=function(t,r){D2n(this,l(t,121),r)},h.a=0,k(Aa,"LevelHeightProcessor",1905),_(1906,1,Eh,BHe),h.Ic=function(t){lo(this,t)},h.Jc=function(){return At(),zA(),Hx},k(Aa,"LevelHeightProcessor/1",1906),_(1901,1,kr,XZe),h.If=function(t,r){VSn(this,l(t,121),r)},k(Aa,"LevelProcessor",1901),_(1902,1,Mn,UHe),h.Mb=function(t){return Ye(Ke(F(l(t,41),(Nr(),z1))))},k(Aa,"LevelProcessor/lambda$0$Type",1902),_(1903,1,kr,HHe),h.If=function(t,r){Fyn(this,l(t,121),r)},h.a=0,k(Aa,"NeighborsProcessor",1903),_(1904,1,Eh,zHe),h.Ic=function(t){lo(this,t)},h.Jc=function(){return At(),zA(),Hx},k(Aa,"NeighborsProcessor/1",1904),_(1909,1,kr,GHe),h.If=function(t,r){kAn(this,l(t,121),r)},h.a=0,k(Aa,"NodePositionProcessor",1909),_(1899,1,kr,ZZe),h.If=function(t,r){pxn(this,l(t,121),r)},k(Aa,"RootProcessor",1899),_(1924,1,kr,qHe),h.If=function(t,r){Sbn(l(t,121),r)},k(Aa,"Untreeifyer",1924),_(386,23,{3:1,34:1,23:1,386:1},qq);var kL,Xte,B_e,U_e=fn(HD,"EdgeRoutingMode",386,bn,ecn,win),Q4t,NL,ck,Zte,H_e,z_e,Qte,ene,G_e,tne,q_e,nne,r4,rne,PB,jB,sd,Id,lk,i4,o4,Ng,V_e,eRt,ine,z1,CL,IL;_(854,1,td,JWe),h.tf=function(t){st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,sve),""),USt),"Turns on Tree compaction which decreases the size of the whole tree by placing nodes of multiple levels in one large level"),(Lt(),!1)),(A1(),Ai)),Yr),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ave),""),"Edge End Texture Length"),"Should be set to the length of the texture at the end of an edge. This value can be used to improve the Edge Routing."),7),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,uve),""),"Tree Level"),"The index for the tree level the node is in"),Re(0)),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,cve),""),USt),"When set to a positive number this option will force the algorithm to place the node to the specified position within the trees layer if weighting is set to constraint"),Re(-1)),yo),Ti),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,lve),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),Y_e),$r),axe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,dve),""),"Edge Routing Mode"),"Chooses an Edge Routing algorithm."),W_e),$r),U_e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,fve),""),"Search Order"),"Which search order to use when computing a spanning tree."),K_e),$r),cxe),ct(xt)))),kEt((new XWe,t))};var tRt,nRt,rRt,W_e,iRt,oRt,K_e,sRt,aRt,Y_e;k(HD,"MrTreeMetaDataProvider",854),_(999,1,td,XWe),h.tf=function(t){kEt(t)};var uRt,J_e,X_e,uw,Z_e,Q_e,one,cRt,lRt,dRt,fRt,hRt,pRt,gRt,exe,txe,nxe,bRt,c2,FB,rxe,mRt,ixe,sne,wRt,yRt,vRt,oxe,ERt,Jf,sxe;k(HD,"MrTreeOptions",999),_(yg,1,{},VHe),h.uf=function(){var t;return t=new Cit,t},h.vf=function(t){},k(HD,"MrTreeOptions/MrtreeFactory",yg),_(354,23,{3:1,34:1,23:1,354:1},g8);var ane,$B,une,cne,axe=fn(HD,"OrderWeighting",354,bn,oln,yin),SRt;_(430,23,{3:1,34:1,23:1,430:1},Hle);var uxe,lne,cxe=fn(HD,"TreeifyingOrder",430,bn,nun,vin),TRt;_(1463,1,Fi,HWe),h.pg=function(t){return l(t,121),ARt},h.If=function(t,r){fhn(this,l(t,121),r)};var ARt;k("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1463),_(1464,1,Fi,zWe),h.pg=function(t){return l(t,121),_Rt},h.If=function(t,r){JSn(this,l(t,121),r)};var _Rt;k(xx,"NodeOrderer",1464),_(1471,1,{},oZt),h.rd=function(t){return Iot(t)},k(xx,"NodeOrderer/0methodref$lambda$6$Type",1471),_(1465,1,Mn,QHe),h.Mb=function(t){return US(),Ye(Ke(F(l(t,41),(Nr(),z1))))},k(xx,"NodeOrderer/lambda$0$Type",1465),_(1466,1,Mn,eze),h.Mb=function(t){return US(),l(F(l(t,41),(js(),c2)),15).a<0},k(xx,"NodeOrderer/lambda$1$Type",1466),_(1467,1,Mn,nXe),h.Mb=function(t){return Wfn(this.a,l(t,41))},k(xx,"NodeOrderer/lambda$2$Type",1467),_(1468,1,Mn,tXe),h.Mb=function(t){return Fcn(this.a,l(t,41))},k(xx,"NodeOrderer/lambda$3$Type",1468),_(1469,1,Un,tze),h.Le=function(t,r){return gfn(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(xx,"NodeOrderer/lambda$4$Type",1469),_(1470,1,Mn,nze),h.Mb=function(t){return US(),l(F(l(t,41),(Nr(),ene)),15).a!=0},k(xx,"NodeOrderer/lambda$5$Type",1470),_(1472,1,Fi,eKe),h.pg=function(t){return l(t,121),xRt},h.If=function(t,r){nAn(this,l(t,121),r)},h.b=0;var xRt;k("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1472),_(1473,1,Fi,tKe),h.pg=function(t){return l(t,121),kRt},h.If=function(t,r){jTn(l(t,121),r)};var kRt,rCn=k(uc,"EdgeRouter",1473);_(1475,1,Un,KHe),h.Le=function(t,r){return na(l(t,15).a,l(r,15).a)},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/0methodref$compare$Type",1475),_(1480,1,{},YHe),h.We=function(t){return ue(ce(t))},k(uc,"EdgeRouter/1methodref$doubleValue$Type",1480),_(1482,1,Un,JHe),h.Le=function(t,r){return yr(ue(ce(t)),ue(ce(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/2methodref$compare$Type",1482),_(1484,1,Un,XHe),h.Le=function(t,r){return yr(ue(ce(t)),ue(ce(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/3methodref$compare$Type",1484),_(1486,1,{},WHe),h.We=function(t){return ue(ce(t))},k(uc,"EdgeRouter/4methodref$doubleValue$Type",1486),_(1488,1,Un,ZHe),h.Le=function(t,r){return yr(ue(ce(t)),ue(ce(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/5methodref$compare$Type",1488),_(1490,1,Un,rze),h.Le=function(t,r){return yr(ue(ce(t)),ue(ce(r)))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/6methodref$compare$Type",1490),_(1474,1,{},ize),h.Kb=function(t){return dp(),l(F(l(t,41),(js(),Jf)),15)},k(uc,"EdgeRouter/lambda$0$Type",1474),_(1485,1,{},oze),h.Kb=function(t){return cnn(l(t,41))},k(uc,"EdgeRouter/lambda$11$Type",1485),_(1487,1,{},Ptt),h.Kb=function(t){return Pon(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(uc,"EdgeRouter/lambda$13$Type",1487),_(1489,1,{},Mtt),h.Kb=function(t){return lnn(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(uc,"EdgeRouter/lambda$15$Type",1489),_(1491,1,Un,sze),h.Le=function(t,r){return ebn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$17$Type",1491),_(1492,1,Un,aze),h.Le=function(t,r){return tbn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$18$Type",1492),_(1493,1,Un,uze),h.Le=function(t,r){return rbn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$19$Type",1493),_(1476,1,Mn,rXe),h.Mb=function(t){return Sun(this.a,l(t,41))},h.a=0,k(uc,"EdgeRouter/lambda$2$Type",1476),_(1494,1,Un,cze),h.Le=function(t,r){return nbn(l(t,65),l(r,65))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$20$Type",1494),_(1477,1,Un,lze),h.Le=function(t,r){return xon(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$3$Type",1477),_(1478,1,Un,dze),h.Le=function(t,r){return kon(l(t,41),l(r,41))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"EdgeRouter/lambda$4$Type",1478),_(1479,1,{},fze),h.Kb=function(t){return hnn(l(t,41))},k(uc,"EdgeRouter/lambda$5$Type",1479),_(1481,1,{},jtt),h.Kb=function(t){return jon(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(uc,"EdgeRouter/lambda$7$Type",1481),_(1483,1,{},Ftt),h.Kb=function(t){return fnn(this.b,this.a,l(t,41))},h.a=0,h.b=0,k(uc,"EdgeRouter/lambda$9$Type",1483),_(669,1,{669:1},B1t),h.e=0,h.f=!1,h.g=!1,k(uc,"MultiLevelEdgeNodeNodeGap",669),_(1881,1,Un,hze),h.Le=function(t,r){return Dun(l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"MultiLevelEdgeNodeNodeGap/lambda$0$Type",1881),_(1882,1,Un,pze),h.Le=function(t,r){return Lun(l(t,243),l(r,243))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(uc,"MultiLevelEdgeNodeNodeGap/lambda$1$Type",1882);var l2;_(490,23,{3:1,34:1,23:1,490:1,173:1,177:1},zle),h.bg=function(){return Ngt(this)},h.og=function(){return Ngt(this)};var BB,d2,lxe=fn(pve,"RadialLayoutPhases",490,bn,run,Ein),NRt;_(1094,207,im,KQe),h.kf=function(t,r){var o,a,u,f,p,m;if(o=kwt(this,t),r.Tg("Radial layout",o.c.length),Ye(Ke(ve(t,(T1(),Exe))))||P3((a=new OA((t1(),new Yp(t))),a)),m=twn(t),Vn(t,(aE(),l2),m),!m)throw Y(new jt(zSt));for(u=ue(ce(ve(t,zB))),u==0&&(u=Qmt(t)),Vn(t,zB,u),p=new V(kwt(this,t));p.a=3)for(ye=l(oe(de,0),19),qe=l(oe(de,1),19),f=0;f+2=ye.f+qe.f+T||qe.f>=Ee.f+ye.f+T){lt=!0;break}else++f;else lt=!0;if(!lt){for(O=de.i,m=new tn(de);m.e!=m.i.gc();)p=l(rn(m),19),Vn(p,(_n(),HL),Re(O)),--O;ovt(t,new sS),r.Ug();return}for(o=(M3(this.a),pc(this.a,(Zj(),s4),l(ve(t,Zxe),173)),pc(this.a,GB,l(ve(t,Vxe),173)),pc(this.a,Sne,l(ve(t,Yxe),173)),sde(this.a,(It=new ui,$n(It,s4,(S7(),_ne)),$n(It,GB,Ane),Ye(Ke(ve(t,Gxe)))&&$n(It,s4,xne),Ye(Ke(ve(t,zxe)))&&$n(It,s4,Tne),It)),FC(this.a,t)),v=1/o.c.length,U=new V(o);U.a1)throw Y(new _f("The given graph is not an acyclic tree!"));va(u,0),gu(u,0)}for(jvt(this,O,0),p=0,y=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));y.e!=y.i.gc();)m=l(rn(y),19),Vn(m,PL,Re(p)),p+=1;for(N=new V(o);N.a0&&qpt((Yt(r-1,t.length),t.charCodeAt(r-1)),tSt);)--r;if(a>=r)throw Y(new jt("The given string does not contain any numbers."));if(u=ky((io(a,r,t.length),t.substr(a,r-a)),`,|;|\r| +`),u.length!=2)throw Y(new jt("Exactly two numbers are expected, "+u.length+" were found."));try{this.a=vy(Ey(u[0])),this.b=vy(Ey(u[1]))}catch(f){throw f=ci(f),ae(f,133)?(o=f,Y(new jt(nSt+o))):Y(f)}},h.Ib=function(){return"("+this.a+","+this.b+")"},h.a=0,h.b=0;var $i=k(PD,"KVector",8);_(79,66,{3:1,4:1,22:1,32:1,56:1,18:1,66:1,16:1,79:1,419:1},Lu,B9,Yrt),h.Nc=function(){return Npn(this)},h.ag=function(t){var r,o,a,u,f,p;a=ky(t,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),tc(this);try{for(o=0,f=0,u=0,p=0;o0&&(f%2==0?u=vy(a[o]):p=vy(a[o]),f>0&&f%2!=0&&Gn(this,new Me(u,p)),++f),++o}catch(m){throw m=ci(m),ae(m,133)?(r=m,Y(new jt("The given string does not match the expected format for vectors."+r))):Y(m)}},h.Ib=function(){var t,r,o;for(t=new fc("("),r=An(this,0);r.b!=r.d.c;)o=l(Sn(r),8),zn(t,o.a+","+o.b),r.b!=r.d.c&&(t.a+="; ");return(t.a+=")",t).a};var Hke=k(PD,"KVectorChain",79);_(259,23,{3:1,34:1,23:1,259:1},s3);var sre,eU,tU,jL,FL,nU,zke=fn(Fa,"Alignment",259,bn,Rdn,Jin),k6t;_(984,1,td,uKe),h.tf=function(t){Uyt(t)};var Gke,are,N6t,qke,Vke,C6t,Wke,I6t,R6t,Kke,Yke,O6t;k(Fa,"BoxLayouterOptions",984),_(985,1,{},IGe),h.uf=function(){var t;return t=new DGe,t},h.vf=function(t){},k(Fa,"BoxLayouterOptions/BoxFactory",985),_(300,23,{3:1,34:1,23:1,300:1},a3);var g4,ure,b4,m4,w4,cre,lre=fn(Fa,"ContentAlignment",300,bn,Idn,Xin),D6t;_(696,1,td,que),h.tf=function(t){st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,hTt),""),"Layout Algorithm"),"Select a specific layout algorithm."),(A1(),HT)),Je),ct((Jd(),xt))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,pTt),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),lf),sCn),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Pye),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),Jke),$r),zke),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,mx),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,rEe),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),lf),Hke),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,CF),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),Zke),UT),lre),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,UD),""),"Debug Mode"),"Whether additional debug information shall be generated."),(Lt(),!1)),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,TZ),""),"Direction"),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),Qke),$r),E4),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,BD),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),nNe),$r),Tre),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,tEe),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,NF),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),iNe),$r),WNe),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,B0),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),gNe),lf),K2e),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,wx),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,RF),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,yx),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,lF),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),vNe),$r),JNe),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,IF),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),lf),$i),xr(ri,Z(X(cf,1),Ce,161,0,[Cg,Np]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,CD),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),yo),Ti),xr(ri,Z(X(cf,1),Ce,161,0,[Rd]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,cF),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,WC),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Wye),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),aNe),lf),Hke),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Xye),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Zye),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,D3n),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),lf),fCn),xr(xt,Z(X(cf,1),Ce,161,0,[Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,gTt),""),"Softwrapping Fuzziness"),"Determines the amount of fuzziness to be used when performing softwrapping on labels. The value expresses the percent of overhang that is permitted for each line. If the next line would take up less space than this threshold, it is appended to the current line instead of being placed in a new line."),0),eo),fi),ct(Np)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,xZ),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),uNe),lf),W2e),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Lye),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),Ai),Yr),xr(ri,Z(X(cf,1),Ce,161,0,[Rd,Cg,Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,bTt),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),eo),fi),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,mTt),""),"Child Area Width"),"The width of the area occupied by the laid out children of a node."),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,wTt),""),"Child Area Height"),"The height of the area occupied by the laid out children of a node."),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,RD),""),uTt),"Turns topdown layout on and off. If this option is enabled, hierarchical layout will be computed first for the root node and then for its children recursively. Layouts are then scaled down to fit the area provided by their parents. Graphs must follow a certain structure for topdown layout to work properly. {@link TopdownNodeTypes.PARALLEL_NODE} nodes must have children of type {@link TopdownNodeTypes.HIERARCHICAL_NODE} and must define {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} for their children. Furthermore they need to be laid out using an algorithm that is a {@link TopdownLayoutProvider}. Hierarchical nodes can also be parents of other hierarchical nodes and can optionally use a {@link TopdownSizeApproximator} to dynamically set sizes during topdown layout. In this case {@link topdown.hierarchicalNodeWidth} and {@link topdown.hierarchicalNodeAspectRatio} should be set on the node itself rather than the parent. The values are then used by the size approximator as base values. Hierarchical nodes require the layout option {@link nodeSize.fixedGraphSize} to be true to prevent the algorithm used there from resizing the hierarchical node. This option is not supported if 'Hierarchy Handling' is set to 'INCLUDE_CHILDREN'"),!1),Ai),Yr),ct(xt)))),zr(t,RD,U0,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,yTt),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,vTt),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),Re(100)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ETt),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,STt),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),Re(4e3)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,TTt),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),Re(400)),yo),Ti),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ATt),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,_Tt),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,xTt),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kTt),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,nEe),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),Xke),$r),c3e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,NTt),"json"),"Shape Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for nodes, ports, and labels of nodes and ports."),sNe),$r),QNe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,CTt),"json"),"Edge Coords"),"For layouts transferred into JSON graphs, specify the coordinate system to be used for edge route points and edge labels."),oNe),$r),LNe),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Sye),of),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Tye),of),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Aye),of),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,_ye),of),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,LX),of),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,SZ),of),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,xye),of),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Cye),of),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,kye),of),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Nye),of),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,$0),of),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Iye),of),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),eo),fi),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Rye),of),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),eo),fi),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Oye),of),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),lf),CDt),xr(ri,Z(X(cf,1),Ce,161,0,[Rd,Cg,Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,eve),of),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),INe),lf),W2e),ct(xt)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,_Z),OTt),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),yo),Ti),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),zr(t,_Z,AZ,q6t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,AZ),OTt),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),bNe),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,$ye),DTt),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),lNe),lf),K2e),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Ex),DTt),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),dNe),UT),zo),xr(ri,Z(X(cf,1),Ce,161,0,[Np]))))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Hye),$F),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),wNe),$r),_4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,zye),$F),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),$r),_4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Gye),$F),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),$r),_4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,qye),$F),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),$r),_4),ct(ri)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Vye),$F),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),$r),_4),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ME),QZ),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),fNe),UT),N4),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,bT),QZ),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),pNe),UT),e3e),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,mT),QZ),"Node Size Minimum"),"The minimal size to which a node can be reduced."),hNe),lf),$i),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,vx),QZ),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),Ai),Yr),ct(xt)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Yye),EZ),"Edge Label Placement"),"Gives a hint on where to put edge labels."),eNe),$r),MNe),ct(Np)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ID),EZ),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),Ai),Yr),ct(Np)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,L3n),"font"),"Font Name"),"Font name used for a label."),HT),Je),ct(Np)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,ITt),"font"),"Font Size"),"Font size used for a label."),yo),Ti),ct(Np)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Qye),eQ),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),lf),$i),ct(Cg)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Jye),eQ),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),yo),Ti),ct(Cg)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Mye),eQ),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),TNe),$r),Io),ct(Cg)))),st(t,new Ze(it(rt(ot(Qe(nt(et(tt(new Xe,Dye),eQ),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),eo),fi),ct(Cg)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Sx),sEe),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),ENe),UT),lU),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Bye),sEe),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Uye),sEe),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,XZ),Rx),"Number of size categories"),"Defines the number of categories to use for the FIXED_INTEGER_RATIO_BOXES size approximator."),Re(3)),yo),Ti),ct(xt)))),zr(t,XZ,ZZ,rDt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,iEe),Rx),"Weight of a node containing children for determining the graph size"),"When determining the graph size for the size categorisation, this value determines how many times a node containing children is weighted more than a simple node. For example setting this value to four would result in a graph containing a simple node and a hierarchical node to be counted as having a size of five."),Re(4)),yo),Ti),ct(xt)))),zr(t,iEe,XZ,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,OD),Rx),"Topdown Scale Factor"),"The scaling factor to be applied to the nodes laid out within the node in recursive topdown layout. The difference to 'Scale Factor' is that the node itself is not scaled. This value has to be set on hierarchical nodes."),1),eo),fi),ct(xt)))),zr(t,OD,U0,eDt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,ZZ),Rx),"Topdown Size Approximator"),"The size approximator to be used to set sizes of hierarchical nodes during topdown layout. The default value is null, which results in nodes keeping whatever size is defined for them e.g. through parent parallel node or by manually setting the size."),null),lf),aCn),ct(ri)))),zr(t,ZZ,U0,tDt),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,DD),Rx),"Topdown Hierarchical Node Width"),"The fixed size of a hierarchical node when using topdown layout. If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),150),eo),fi),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),zr(t,DD,U0,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,LD),Rx),"Topdown Hierarchical Node Aspect Ratio"),"The fixed aspect ratio of a hierarchical node when using topdown layout. Default is 1/sqrt(2). If this value is set on a parallel node it applies to its children, when set on a hierarchical node it applies to the node itself."),1.414),eo),fi),xr(xt,Z(X(cf,1),Ce,161,0,[ri]))))),zr(t,LD,U0,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,U0),Rx),"Topdown Node Type"),"The different node types used for topdown layout. If the node type is set to {@link TopdownNodeTypes.PARALLEL_NODE} the algorithm must be set to a {@link TopdownLayoutProvider} such as {@link TopdownPacking}. The {@link nodeSize.fixedGraphSize} option is technically only required for hierarchical nodes."),null),$r),n3e),ct(ri)))),zr(t,U0,vx,null),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,oEe),Rx),"Topdown Scale Cap"),"Determines the upper limit for the topdown scale factor. The default value is 1.0 which ensures that nested children never end up appearing larger than their parents in terms of unit sizes such as the font size. If the limit is larger, nodes will fully utilize the available space, but it is counteriniuitive for inner nodes to have a larger scale than outer nodes."),1),eo),fi),ct(xt)))),zr(t,oEe,U0,Q6t),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,jye),LTt),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),Ai),Yr),ct(ri)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Fye),LTt),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),Ai),Yr),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,Kye),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),eo),fi),ct(Rd)))),st(t,new Ze(it(rt(ot(gt(Qe(nt(et(tt(new Xe,RTt),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),rNe),$r),UNe),ct(Rd)))),XN(t,new LS(qN(FA(jA(new eS,Bt),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),XN(t,new LS(qN(FA(jA(new eS,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),XN(t,new LS(qN(FA(jA(new eS,Ga),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),XN(t,new LS(qN(FA(jA(new eS,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),XN(t,new LS(qN(FA(jA(new eS,hve),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),XN(t,new LS(qN(FA(jA(new eS,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),XN(t,new LS(qN(FA(jA(new eS,Qc),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),_yt((new cKe,t)),Uyt((new uKe,t)),Jwt((new lKe,t))};var zT,L6t,Jke,gk,M6t,P6t,Xke,sv,av,j6t,$L,Zke,BL,Tm,Qke,rU,dre,eNe,tNe,nNe,F6t,rNe,$6t,h2,iNe,B6t,UL,fre,y4,hre,U6t,oNe,H6t,sNe,p2,aNe,Cp,uNe,cNe,lNe,g2,dNe,Am,fNe,uv,b2,hNe,G1,pNe,iU,v4,df,gNe,z6t,bNe,G6t,q6t,mNe,wNe,pre,gre,bre,mre,yNe,zu,bk,vNe,wre,yre,cv,ENe,SNe,m2,TNe,GT,HL,vre,lv,V6t,Ere,W6t,K6t,Y6t,J6t,ANe,_Ne,qT,xNe,oU,kNe,NNe,Od,X6t,CNe,INe,RNe,mk,dv,wk,VT,Z6t,Q6t,sU,eDt,aU,tDt,nDt,rDt,iDt;k(Fa,"CoreOptions",696),_(87,23,{3:1,34:1,23:1,87:1},TO);var ff,as,fs,hf,il,E4=fn(Fa,"Direction",87,bn,Bln,Zin),oDt;_(280,23,{3:1,34:1,23:1,280:1},y8);var uU,zL,ONe,DNe,LNe=fn(Fa,"EdgeCoords",280,bn,lln,Qin),sDt;_(281,23,{3:1,34:1,23:1,281:1},Qq);var yk,fv,vk,MNe=fn(Fa,"EdgeLabelPlacement",281,bn,lcn,eon),aDt;_(225,23,{3:1,34:1,23:1,225:1},v8);var Ek,GL,WT,Sre,Tre=fn(Fa,"EdgeRouting",225,bn,dln,ton),uDt;_(328,23,{3:1,34:1,23:1,328:1},u3);var PNe,jNe,FNe,$Ne,Are,BNe,UNe=fn(Fa,"EdgeType",328,bn,Cdn,non),cDt;_(982,1,td,cKe),h.tf=function(t){_yt(t)};var HNe,zNe,GNe,qNe,lDt,VNe,S4;k(Fa,"FixedLayouterOptions",982),_(983,1,{},RGe),h.uf=function(){var t;return t=new BGe,t},h.vf=function(t){},k(Fa,"FixedLayouterOptions/FixedFactory",983),_(348,23,{3:1,34:1,23:1,348:1},eV);var Ig,cU,T4,WNe=fn(Fa,"HierarchyHandling",348,bn,fcn,ron),dDt,aCn=Hr(Fa,"ITopdownSizeApproximator");_(293,23,{3:1,34:1,23:1,293:1},E8);var Ih,q1,qL,VL,fDt=fn(Fa,"LabelSide",293,bn,fln,ion),hDt;_(96,23,{3:1,34:1,23:1,96:1},Jv);var Ip,ad,Cl,ud,kc,cd,Il,Rh,ld,zo=fn(Fa,"NodeLabelPlacement",96,bn,Lfn,oon),pDt;_(260,23,{3:1,34:1,23:1,260:1},AO);var KNe,A4,V1,YNe,WL,_4=fn(Fa,"PortAlignment",260,bn,tdn,son),gDt;_(103,23,{3:1,34:1,23:1,103:1},c3);var _m,fa,Oh,Sk,pf,W1,JNe=fn(Fa,"PortConstraints",103,bn,Odn,aon),bDt;_(282,23,{3:1,34:1,23:1,282:1},l3);var x4,k4,Rp,KL,K1,KT,lU=fn(Fa,"PortLabelPlacement",282,bn,Ddn,uon),mDt;_(64,23,{3:1,34:1,23:1,64:1},_O);var Qt,Wt,ol,sl,iu,Wa,gf,dd,Iu,vu,ka,Ru,ou,su,fd,Nc,Cc,Rl,dn,Is,Kt,Io=fn(Fa,"PortSide",64,bn,Uln,lon),wDt;_(986,1,td,lKe),h.tf=function(t){Jwt(t)};var yDt,vDt,XNe,EDt,SDt;k(Fa,"RandomLayouterOptions",986),_(987,1,{},OGe),h.uf=function(){var t;return t=new GGe,t},h.vf=function(t){},k(Fa,"RandomLayouterOptions/RandomFactory",987),_(301,23,{3:1,34:1,23:1,301:1},tV);var YL,_re,ZNe,QNe=fn(Fa,"ShapeCoords",301,bn,ccn,con),TDt;_(381,23,{3:1,34:1,23:1,381:1},S8);var hv,JL,XL,xm,N4=fn(Fa,"SizeConstraint",381,bn,hln,don),ADt;_(267,23,{3:1,34:1,23:1,267:1},Xv);var ZL,dU,Tk,xre,QL,C4,fU,hU,pU,e3e=fn(Fa,"SizeOptions",267,bn,Ufn,fon),_Dt;_(283,23,{3:1,34:1,23:1,283:1},nV);var pv,t3e,gU,n3e=fn(Fa,"TopdownNodeTypes",283,bn,dcn,hon),xDt;_(290,23,UF);var r3e,kre,i3e,o3e,e5=fn(Fa,"TopdownSizeApproximator",290,bn,pln,pon);_(978,290,UF,Lot),h.Sg=function(t){return C1t(t)},fn(Fa,"TopdownSizeApproximator/1",978,e5,null,null),_(979,290,UF,wst),h.Sg=function(t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft,It;for(r=l(ve(t,(_n(),lv)),144),qe=(e1(),M=new $N,M),nD(qe,t),lt=new hn,f=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));f.e!=f.i.gc();)a=l(rn(f),19),se=(O=new $N,O),M7(se,qe),nD(se,a),It=C1t(a),i0(se,b.Math.max(a.g,It.a),b.Math.max(a.f,It.b)),eu(lt.f,a,se);for(u=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));u.e!=u.i.gc();)for(a=l(rn(u),19),T=new tn((!a.e&&(a.e=new Tt(Ir,a,7,4)),a.e));T.e!=T.i.gc();)v=l(rn(T),74),Ee=l(Ss(ts(lt.f,a)),19),ye=l(Ht(lt,oe((!v.c&&(v.c=new Tt(pn,v,5,8)),v.c),0)),19),de=(N=new OG,N),Tn((!de.b&&(de.b=new Tt(pn,de,4,7)),de.b),Ee),Tn((!de.c&&(de.c=new Tt(pn,de,5,8)),de.c),ye),L7(de,Br(Ee)),nD(de,v);z=l(JO(r.f),207);try{z.kf(qe,new RG),whe(r.f,z)}catch(Dt){throw Dt=ci(Dt),ae(Dt,102)?(U=Dt,Y(U)):Y(Dt)}return Gc(qe,av)||Gc(qe,sv)||GJ(qe),y=ue(ce(ve(qe,av))),m=ue(ce(ve(qe,sv))),p=y/m,o=ue(ce(ve(qe,dv)))*b.Math.sqrt((!qe.a&&(qe.a=new ke(En,qe,10,11)),qe.a).i),ft=l(ve(qe,df),100),ne=ft.b+ft.c+1,J=ft.d+ft.a+1,new Me(b.Math.max(ne,o),b.Math.max(J,o/p))},fn(Fa,"TopdownSizeApproximator/2",979,e5,null,null),_(980,290,UF,qat),h.Sg=function(t){var r,o,a,u,f,p;return o=ue(ce(ve(t,(_n(),dv)))),r=o/ue(ce(ve(t,mk))),a=JAn(t),f=l(ve(t,df),100),u=ue(ce(Ge(Od))),Br(t)&&(u=ue(ce(ve(Br(t),Od)))),p=tp(new Me(o,r),a),br(p,new Me(-(f.b+f.c)-u,-(f.d+f.a)-u))},fn(Fa,"TopdownSizeApproximator/3",980,e5,null,null),_(981,290,UF,yst),h.Sg=function(t){var r,o,a,u,f,p,m,y,v,T;for(p=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));p.e!=p.i.gc();)f=l(rn(p),19),ve(f,(_n(),aU))!=null&&(!f.a&&(f.a=new ke(En,f,10,11)),!!f.a)&&(!f.a&&(f.a=new ke(En,f,10,11)),f.a).i>0?(o=l(ve(f,aU),525),T=o.Sg(f),v=l(ve(f,df),100),i0(f,b.Math.max(f.g,T.a+v.b+v.c),b.Math.max(f.f,T.b+v.d+v.a))):(!f.a&&(f.a=new ke(En,f,10,11)),f.a).i!=0&&i0(f,ue(ce(ve(f,dv))),ue(ce(ve(f,dv)))/ue(ce(ve(f,mk))));r=l(ve(t,(_n(),lv)),144),y=l(JO(r.f),207);try{y.kf(t,new RG),whe(r.f,y)}catch(N){throw N=ci(N),ae(N,102)?(m=N,Y(m)):Y(N)}return Vn(t,zT,Ox),$ct(t),GJ(t),u=ue(ce(ve(t,av))),a=ue(ce(ve(t,sv))),new Me(u,a)},fn(Fa,"TopdownSizeApproximator/4",981,e5,null,null);var kDt;_(346,1,{861:1},sS),h.Tg=function(t,r){return zbt(this,t,r)},h.Ug=function(){mmt(this)},h.Vg=function(){return this.q},h.Wg=function(){return this.f?CP(this.f):null},h.Xg=function(){return CP(this.a)},h.Yg=function(){return this.p},h.Zg=function(){return!1},h.$g=function(){return this.n},h._g=function(){return this.p!=null&&!this.b},h.ah=function(t){var r;this.n&&(r=t,Fe(this.f,r))},h.bh=function(t,r){var o,a;this.n&&t&&Icn(this,(o=new jst,a=TJ(o,t),Fkn(o),a),(Pj(),Cre))},h.dh=function(t){var r;return this.b?null:(r=wfn(this,this.g),Gn(this.a,r),r.i=this,this.d=t,r)},h.eh=function(t){t>0&&!this.b&&pge(this,t)},h.b=!1,h.c=0,h.d=-1,h.e=null,h.f=null,h.g=-1,h.j=!1,h.k=!1,h.n=!1,h.o=0,h.q=0,h.r=0,k(Vs,"BasicProgressMonitor",346),_(713,207,im,DGe),h.kf=function(t,r){ovt(t,r)},k(Vs,"BoxLayoutProvider",713),_(974,1,Un,gXe),h.Le=function(t,r){return M2n(this,l(t,19),l(r,19))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},h.a=!1,k(Vs,"BoxLayoutProvider/1",974),_(168,1,{168:1},hj,Jrt),h.Ib=function(){return this.c?a0e(this.c):Qd(this.b)},k(Vs,"BoxLayoutProvider/Group",168),_(327,23,{3:1,34:1,23:1,327:1},T8);var s3e,a3e,u3e,Nre,c3e=fn(Vs,"BoxLayoutProvider/PackingMode",327,bn,gln,gon),NDt;_(975,1,Un,LGe),h.Le=function(t,r){return Man(l(t,168),l(r,168))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Vs,"BoxLayoutProvider/lambda$0$Type",975),_(976,1,Un,MGe),h.Le=function(t,r){return Aan(l(t,168),l(r,168))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Vs,"BoxLayoutProvider/lambda$1$Type",976),_(977,1,Un,PGe),h.Le=function(t,r){return _an(l(t,168),l(r,168))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(Vs,"BoxLayoutProvider/lambda$2$Type",977),_(1350,1,{837:1},jGe),h.Lg=function(t,r){return W9(),!ae(r,176)||QQe((qS(),l(t,176)),r)},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1350),_(1351,1,nn,bXe),h.Ad=function(t){Cpn(this.a,l(t,149))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1351),_(1352,1,nn,FGe),h.Ad=function(t){l(t,105),W9()},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1352),_(1356,1,nn,mXe),h.Ad=function(t){thn(this.a,l(t,105))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1356),_(1354,1,Mn,Utt),h.Mb=function(t){return hpn(this.a,this.b,l(t,149))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1354),_(1353,1,Mn,Htt),h.Mb=function(t){return dnn(this.a,this.b,l(t,837))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1353),_(1355,1,nn,ztt),h.Ad=function(t){wsn(this.a,this.b,l(t,149))},k(Vs,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1355),_(939,1,{},$Ge),h.Kb=function(t){return Hnt(t)},h.Fb=function(t){return this===t},k(Vs,"ElkUtil/lambda$0$Type",939),_(940,1,nn,Gtt),h.Ad=function(t){Pvn(this.a,this.b,l(t,74))},h.a=0,h.b=0,k(Vs,"ElkUtil/lambda$1$Type",940),_(941,1,nn,qtt),h.Ad=function(t){pQt(this.a,this.b,l(t,171))},h.a=0,h.b=0,k(Vs,"ElkUtil/lambda$2$Type",941),_(942,1,nn,Vtt),h.Ad=function(t){atn(this.a,this.b,l(t,158))},h.a=0,h.b=0,k(Vs,"ElkUtil/lambda$3$Type",942),_(943,1,nn,wXe),h.Ad=function(t){Bon(this.a,l(t,373))},k(Vs,"ElkUtil/lambda$4$Type",943),_(332,1,{34:1,332:1},zZt),h.Dd=function(t){return Dtn(this,l(t,245))},h.Fb=function(t){var r;return ae(t,332)?(r=l(t,332),this.a==r.a):!1},h.Hb=function(){return go(this.a)},h.Ib=function(){return this.a+" (exclusive)"},h.a=0,k(Vs,"ExclusiveBounds/ExclusiveLowerBound",332),_(1100,207,im,BGe),h.kf=function(t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne,se,de,Ee,ye,qe,lt,ft;for(r.Tg("Fixed Layout",1),f=l(ve(t,(_n(),tNe)),225),N=0,O=0,se=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));se.e!=se.i.gc();){for(J=l(rn(se),19),ft=l(ve(J,(jj(),S4)),8),ft&&(Bc(J,ft.a,ft.b),l(ve(J,zNe),185).Gc((sc(),hv))&&(M=l(ve(J,qNe),8),M.a>0&&M.b>0&&M0(J,M.a,M.b,!0,!0))),N=b.Math.max(N,J.i+J.g),O=b.Math.max(O,J.j+J.f),v=new tn((!J.n&&(J.n=new ke(Rs,J,1,7)),J.n));v.e!=v.i.gc();)m=l(rn(v),158),ft=l(ve(m,S4),8),ft&&Bc(m,ft.a,ft.b),N=b.Math.max(N,J.i+m.i+m.g),O=b.Math.max(O,J.j+m.j+m.f);for(ye=new tn((!J.c&&(J.c=new ke(Gu,J,9,9)),J.c));ye.e!=ye.i.gc();)for(Ee=l(rn(ye),127),ft=l(ve(Ee,S4),8),ft&&Bc(Ee,ft.a,ft.b),qe=J.i+Ee.i,lt=J.j+Ee.j,N=b.Math.max(N,qe+Ee.g),O=b.Math.max(O,lt+Ee.f),y=new tn((!Ee.n&&(Ee.n=new ke(Rs,Ee,1,7)),Ee.n));y.e!=y.i.gc();)m=l(rn(y),158),ft=l(ve(m,S4),8),ft&&Bc(m,ft.a,ft.b),N=b.Math.max(N,qe+m.i+m.g),O=b.Math.max(O,lt+m.j+m.f);for(u=new $t(qt(mp(J).a.Jc(),new D));an(u);)o=l(en(u),74),T=EEt(o),N=b.Math.max(N,T.a),O=b.Math.max(O,T.b);for(a=new $t(qt(R7(J).a.Jc(),new D));an(a);)o=l(en(a),74),Br(JY(o))!=t&&(T=EEt(o),N=b.Math.max(N,T.a),O=b.Math.max(O,T.b))}if(f==(gp(),Ek))for(ne=new tn((!t.a&&(t.a=new ke(En,t,10,11)),t.a));ne.e!=ne.i.gc();)for(J=l(rn(ne),19),a=new $t(qt(mp(J).a.Jc(),new D));an(a);)o=l(en(a),74),p=MAn(o),p.b==0?Vn(o,p2,null):Vn(o,p2,p);Ye(Ke(ve(t,(jj(),GNe))))||(de=l(ve(t,lDt),100),z=N+de.b+de.c,U=O+de.d+de.a,M0(t,z,U,!0,!0)),r.Ug()},k(Vs,"FixedLayoutProvider",1100),_(380,151,{3:1,419:1,380:1,105:1,151:1},IG,Vdt),h.ag=function(t){var r,o,a,u,f,p,m,y,v;if(t)try{for(y=ky(t,";,;"),f=y,p=0,m=f.length;p>16&Ei|r^a<<16},h.Jc=function(){return new yXe(this)},h.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+ms(this.b)+")":this.b==null?"pair("+ms(this.a)+",null)":"pair("+ms(this.a)+","+ms(this.b)+")"},k(Vs,"Pair",49),_(988,1,Wi,yXe),h.Nb=function(t){so(this,t)},h.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},h.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw Y(new vs)},h.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),Y(new lu)},h.b=!1,h.c=!1,k(Vs,"Pair/1",988),_(1089,207,im,GGe),h.kf=function(t,r){var o,a,u,f,p;if(r.Tg("Random Layout",1),(!t.a&&(t.a=new ke(En,t,10,11)),t.a).i==0){r.Ug();return}f=l(ve(t,(D1e(),EDt)),15),f&&f.a!=0?u=new WP(f.a):u=new rY,o=rO(ce(ve(t,yDt))),p=rO(ce(ve(t,SDt))),a=l(ve(t,vDt),100),oNn(t,u,o,p,a),r.Ug()},k(Vs,"RandomLayoutProvider",1089),_(243,1,{243:1},MV),h.Fb=function(t){return ia(this.a,l(t,243).a)&&ia(this.b,l(t,243).b)&&ia(this.c,l(t,243).c)},h.Hb=function(){return Fj(Z(X(Ii,1),Rt,1,5,[this.a,this.b,this.c]))},h.Ib=function(){return"("+this.a+ja+this.b+ja+this.c+")"},k(Vs,"Triple",243);var ODt;_(554,1,{}),h.Jf=function(){return new Me(this.f.i,this.f.j)},h.mf=function(t){return Hat(t,(_n(),zu))?ve(this.f,DDt):ve(this.f,t)},h.Kf=function(){return new Me(this.f.g,this.f.f)},h.Lf=function(){return this.g},h.nf=function(t){return Gc(this.f,t)},h.Mf=function(t){va(this.f,t.a),gu(this.f,t.b)},h.Nf=function(t){Hb(this.f,t.a),Ub(this.f,t.b)},h.Of=function(t){this.g=t},h.g=0;var DDt;k(rI,"ElkGraphAdapters/AbstractElkGraphElementAdapter",554),_(556,1,{845:1},x9),h.Pf=function(){var t,r;if(!this.b)for(this.b=$P(fW(this.a).i),r=new tn(fW(this.a));r.e!=r.i.gc();)t=l(rn(r),158),Fe(this.b,new uq(t));return this.b},h.b=null,k(rI,"ElkGraphAdapters/ElkEdgeAdapter",556),_(250,554,{},Yp),h.Qf=function(){return Y1t(this)},h.a=null,k(rI,"ElkGraphAdapters/ElkGraphAdapter",250),_(637,554,{190:1},uq),k(rI,"ElkGraphAdapters/ElkLabelAdapter",637),_(555,554,{692:1},B8),h.Pf=function(){return rmn(this)},h.Tf=function(){var t;return t=l(ve(this.f,(_n(),Cp)),125),!t&&(t=new FN),t},h.Vf=function(){return imn(this)},h.Xf=function(t){var r;r=new DV(t),Vn(this.f,(_n(),Cp),r)},h.Yf=function(t){Vn(this.f,(_n(),df),new mfe(t))},h.Rf=function(){return this.d},h.Sf=function(){var t,r;if(!this.a)for(this.a=new je,r=new $t(qt(R7(l(this.f,19)).a.Jc(),new D));an(r);)t=l(en(r),74),Fe(this.a,new x9(t));return this.a},h.Uf=function(){var t,r;if(!this.c)for(this.c=new je,r=new $t(qt(mp(l(this.f,19)).a.Jc(),new D));an(r);)t=l(en(r),74),Fe(this.c,new x9(t));return this.c},h.Wf=function(){return kP(l(this.f,19)).i!=0||Ye(Ke(l(this.f,19).mf((_n(),UL))))},h.Zf=function(){Zdn(this,(t1(),ODt))},h.a=null,h.b=null,h.c=null,h.d=null,h.e=null,k(rI,"ElkGraphAdapters/ElkNodeAdapter",555),_(1261,554,{844:1},vXe),h.Pf=function(){return dmn(this)},h.Sf=function(){var t,r;if(!this.a)for(this.a=ch(l(this.f,127).gh().i),r=new tn(l(this.f,127).gh());r.e!=r.i.gc();)t=l(rn(r),74),Fe(this.a,new x9(t));return this.a},h.Uf=function(){var t,r;if(!this.c)for(this.c=ch(l(this.f,127).hh().i),r=new tn(l(this.f,127).hh());r.e!=r.i.gc();)t=l(rn(r),74),Fe(this.c,new x9(t));return this.c},h.$f=function(){return l(l(this.f,127).mf((_n(),m2)),64)},h._f=function(){var t,r,o,a,u,f,p,m;for(a=Gd(l(this.f,127)),o=new tn(l(this.f,127).hh());o.e!=o.i.gc();)for(t=l(rn(o),74),m=new tn((!t.c&&(t.c=new Tt(pn,t,5,8)),t.c));m.e!=m.i.gc();){if(p=l(rn(m),83),uy(Yo(p),a))return!0;if(Yo(p)==a&&Ye(Ke(ve(t,(_n(),fre)))))return!0}for(r=new tn(l(this.f,127).gh());r.e!=r.i.gc();)for(t=l(rn(r),74),f=new tn((!t.b&&(t.b=new Tt(pn,t,4,7)),t.b));f.e!=f.i.gc();)if(u=l(rn(f),83),uy(Yo(u),a))return!0;return!1},h.a=null,h.b=null,h.c=null,k(rI,"ElkGraphAdapters/ElkPortAdapter",1261),_(1262,1,Un,qGe),h.Le=function(t,r){return kTn(l(t,127),l(r,127))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(rI,"ElkGraphAdapters/PortComparator",1262);var Y1=Hr(el,"EObject"),Ak=Hr($E,jTt),Ic=Hr($E,FTt),t5=Hr($E,$Tt),n5=Hr($E,"ElkShape"),pn=Hr($E,BTt),Ir=Hr($E,uEe),jr=Hr($E,UTt),r5=Hr(el,HTt),I4=Hr(el,"EFactory"),LDt,Ire=Hr(el,zTt),Dd=Hr(el,"EPackage"),Bi,MDt,PDt,h3e,bU,jDt,p3e,g3e,b3e,Dh,FDt,$Dt,Rs=Hr($E,cEe),En=Hr($E,lEe),Gu=Hr($E,dEe);_(94,1,GTt),h.qh=function(){return this.rh(),null},h.rh=function(){return null},h.sh=function(){return this.rh(),!1},h.th=function(){return!1},h.uh=function(t){hr(this,t)},k(vT,"BasicNotifierImpl",94),_(101,94,KTt),h.Vh=function(){return Ju(this)},h.vh=function(t,r){return t},h.wh=function(){throw Y(new Nn)},h.xh=function(t){var r;return r=Mo(l(Nt(this.Ah(),this.Ch()),20)),this.Mh().Qh(this,r.n,r.f,t)},h.yh=function(t,r){throw Y(new Nn)},h.zh=function(t,r,o){return Sc(this,t,r,o)},h.Ah=function(){var t;return this.wh()&&(t=this.wh().Lk(),t)?t:this.fi()},h.Bh=function(){return uJ(this)},h.Ch=function(){throw Y(new Nn)},h.Dh=function(){var t,r;return r=this.Xh().Mk(),!r&&this.wh().Rk(r=(QN(),t=Dhe(Ff(this.Ah())),t==null?Fre:new RO(this,t))),r},h.Eh=function(t,r){return t},h.Fh=function(t){var r;return r=t.nk(),r?t.Jj():Ur(this.Ah(),t)},h.Gh=function(){var t;return t=this.wh(),t?t.Ok():null},h.Hh=function(){return this.wh()?this.wh().Lk():null},h.Ih=function(t,r,o){return s7(this,t,r,o)},h.Jh=function(t){return p_(this,t)},h.Kh=function(t,r){return VW(this,t,r)},h.Lh=function(){var t;return t=this.wh(),!!t&&t.Pk()},h.Mh=function(){throw Y(new Nn)},h.Nh=function(){return t7(this)},h.Oh=function(t,r,o,a){return XS(this,t,r,a)},h.Ph=function(t,r,o){var a;return a=l(Nt(this.Ah(),r),69),a.uk().xk(this,this.ei(),r-this.gi(),t,o)},h.Qh=function(t,r,o,a){return OP(this,t,r,a)},h.Rh=function(t,r,o){var a;return a=l(Nt(this.Ah(),r),69),a.uk().yk(this,this.ei(),r-this.gi(),t,o)},h.Sh=function(){return!!this.wh()&&!!this.wh().Nk()},h.Th=function(t){return wY(this,t)},h.Uh=function(t){return iut(this,t)},h.Wh=function(t){return rEt(this,t)},h.Xh=function(){throw Y(new Nn)},h.Yh=function(){return this.wh()?this.wh().Nk():null},h.Zh=function(){return t7(this)},h.$h=function(t,r){rJ(this,t,r)},h._h=function(t){this.Xh().Qk(t)},h.ai=function(t){this.Xh().Tk(t)},h.bi=function(t){this.Xh().Sk(t)},h.ci=function(t,r){var o,a,u,f;return f=this.Gh(),f&&t&&(r=_o(f.Cl(),this,r),f.Gl(this)),a=this.Mh(),a&&(vJ(this,this.Mh(),this.Ch()).Bb&No?(u=a.Nh(),u&&(t?!f&&u.Gl(this):u.Fl(this))):(r=(o=this.Ch(),o>=0?this.xh(r):this.Mh().Qh(this,-1-o,null,r)),r=this.zh(null,-1,r))),this.ai(t),r},h.di=function(t){var r,o,a,u,f,p,m,y;if(o=this.Ah(),f=Ur(o,t),r=this.gi(),f>=r)return l(t,69).uk().Bk(this,this.ei(),f-r);if(f<=-1)if(p=IE((mu(),ao),o,t),p){if(Lo(),l(p,69).vk()||(p=MS(rs(ao,p))),u=(a=this.Fh(p),l(a>=0?this.Ih(a,!0,!0):O0(this,p,!0),164)),y=p.Gk(),y>1||y==-1)return l(l(u,222).Ql(t,!1),78)}else throw Y(new jt(R1+t.ve()+tQ));else if(t.Hk())return a=this.Fh(t),l(a>=0?this.Ih(a,!1,!0):O0(this,t,!1),78);return m=new pnt(this,t),m},h.ei=function(){return Upe(this)},h.fi=function(){return(a1(),Ut).S},h.gi=function(){return ln(this.fi())},h.hi=function(t){eJ(this,t)},h.Ib=function(){return Zl(this)},k(Gt,"BasicEObjectImpl",101);var BDt;_(118,101,{110:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1}),h.ii=function(t){var r;return r=Bpe(this),r[t]},h.ji=function(t,r){var o;o=Bpe(this),ii(o,t,r)},h.ki=function(t){var r;r=Bpe(this),ii(r,t,null)},h.qh=function(){return l(Vt(this,4),131)},h.rh=function(){throw Y(new Nn)},h.sh=function(){return(this.Db&4)!=0},h.wh=function(){throw Y(new Nn)},h.li=function(t){KS(this,2,t)},h.yh=function(t,r){this.Db=r<<16|this.Db&255,this.li(t)},h.Ah=function(){return Ja(this)},h.Ch=function(){return this.Db>>16},h.Dh=function(){var t,r;return QN(),r=Dhe(Ff((t=l(Vt(this,16),29),t||this.fi()))),r==null?Fre:new RO(this,r)},h.th=function(){return(this.Db&1)==0},h.Gh=function(){return l(Vt(this,128),2013)},h.Hh=function(){return l(Vt(this,16),29)},h.Lh=function(){return(this.Db&32)!=0},h.Mh=function(){return l(Vt(this,2),52)},h.Sh=function(){return(this.Db&64)!=0},h.Xh=function(){throw Y(new Nn)},h.Yh=function(){return l(Vt(this,64),291)},h._h=function(t){KS(this,16,t)},h.ai=function(t){KS(this,128,t)},h.bi=function(t){KS(this,64,t)},h.ei=function(){return Ha(this)},h.Db=0,k(Gt,"MinimalEObjectImpl",118),_(119,118,{110:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),h.li=function(t){this.Cb=t},h.Mh=function(){return this.Cb},k(Gt,"MinimalEObjectImpl/Container",119),_(2062,119,{110:1,344:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),h.Ih=function(t,r,o){return nbe(this,t,r,o)},h.Rh=function(t,r,o){return qbe(this,t,r,o)},h.Th=function(t){return Whe(this,t)},h.$h=function(t,r){Uge(this,t,r)},h.fi=function(){return Qs(),$Dt},h.hi=function(t){Ige(this,t)},h.lf=function(){return g1t(this)},h.fh=function(){return!this.o&&(this.o=new pu((Qs(),Dh),Rg,this,0)),this.o},h.mf=function(t){return ve(this,t)},h.nf=function(t){return Gc(this,t)},h.of=function(t,r){return Vn(this,t,r)},k(am,"EMapPropertyHolderImpl",2062),_(566,119,{110:1,373:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},b9),h.Ih=function(t,r,o){switch(t){case 0:return this.a;case 1:return this.b}return s7(this,t,r,o)},h.Th=function(t){switch(t){case 0:return this.a!=0;case 1:return this.b!=0}return wY(this,t)},h.$h=function(t,r){switch(t){case 0:gj(this,ue(ce(r)));return;case 1:pj(this,ue(ce(r)));return}rJ(this,t,r)},h.fi=function(){return Qs(),MDt},h.hi=function(t){switch(t){case 0:gj(this,0);return;case 1:pj(this,0);return}eJ(this,t)},h.Ib=function(){var t;return this.Db&64?Zl(this):(t=new ml(Zl(this)),t.a+=" (x: ",Vv(t,this.a),t.a+=", y: ",Vv(t,this.b),t.a+=")",t.a)},h.a=0,h.b=0,k(am,"ElkBendPointImpl",566),_(734,2062,{110:1,344:1,176:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),h.Ih=function(t,r,o){return a1e(this,t,r,o)},h.Ph=function(t,r,o){return VY(this,t,r,o)},h.Rh=function(t,r,o){return CK(this,t,r,o)},h.Th=function(t){return Tge(this,t)},h.$h=function(t,r){Ebe(this,t,r)},h.fi=function(){return Qs(),jDt},h.hi=function(t){r1e(this,t)},h.ih=function(){return this.k},h.jh=function(){return fW(this)},h.Ib=function(){return nY(this)},h.k=null,k(am,"ElkGraphElementImpl",734),_(735,734,{110:1,344:1,176:1,278:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),h.Ih=function(t,r,o){return y1e(this,t,r,o)},h.Th=function(t){return C1e(this,t)},h.$h=function(t,r){Sbe(this,t,r)},h.fi=function(){return Qs(),FDt},h.hi=function(t){I1e(this,t)},h.kh=function(){return this.f},h.lh=function(){return this.g},h.mh=function(){return this.i},h.nh=function(){return this.j},h.oh=function(t,r){i0(this,t,r)},h.ph=function(t,r){Bc(this,t,r)},h.Ib=function(){return ZY(this)},h.f=0,h.g=0,h.i=0,h.j=0,k(am,"ElkShapeImpl",735),_(736,735,{110:1,344:1,83:1,176:1,278:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1}),h.Ih=function(t,r,o){return J1e(this,t,r,o)},h.Ph=function(t,r,o){return gbe(this,t,r,o)},h.Rh=function(t,r,o){return bbe(this,t,r,o)},h.Th=function(t){return Mge(this,t)},h.$h=function(t,r){Cme(this,t,r)},h.fi=function(){return Qs(),PDt},h.hi=function(t){q1e(this,t)},h.gh=function(){return!this.d&&(this.d=new Tt(Ir,this,8,5)),this.d},h.hh=function(){return!this.e&&(this.e=new Tt(Ir,this,7,4)),this.e},k(am,"ElkConnectableShapeImpl",736),_(273,734,{110:1,344:1,74:1,176:1,273:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},OG),h.xh=function(t){return dbe(this,t)},h.Ih=function(t,r,o){switch(t){case 3:return ty(this);case 4:return!this.b&&(this.b=new Tt(pn,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Tt(pn,this,5,8)),this.c;case 6:return!this.a&&(this.a=new ke(jr,this,6,6)),this.a;case 7:return Lt(),!this.b&&(this.b=new Tt(pn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Tt(pn,this,5,8)),this.c.i<=1));case 8:return Lt(),!!AC(this);case 9:return Lt(),!!R0(this);case 10:return Lt(),!this.b&&(this.b=new Tt(pn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Tt(pn,this,5,8)),this.c.i!=0)}return a1e(this,t,r,o)},h.Ph=function(t,r,o){var a;switch(r){case 3:return this.Cb&&(o=(a=this.Db>>16,a>=0?dbe(this,o):this.Cb.Qh(this,-1-a,null,o))),Vde(this,l(t,19),o);case 4:return!this.b&&(this.b=new Tt(pn,this,4,7)),Pa(this.b,t,o);case 5:return!this.c&&(this.c=new Tt(pn,this,5,8)),Pa(this.c,t,o);case 6:return!this.a&&(this.a=new ke(jr,this,6,6)),Pa(this.a,t,o)}return VY(this,t,r,o)},h.Rh=function(t,r,o){switch(r){case 3:return Vde(this,null,o);case 4:return!this.b&&(this.b=new Tt(pn,this,4,7)),_o(this.b,t,o);case 5:return!this.c&&(this.c=new Tt(pn,this,5,8)),_o(this.c,t,o);case 6:return!this.a&&(this.a=new ke(jr,this,6,6)),_o(this.a,t,o)}return CK(this,t,r,o)},h.Th=function(t){switch(t){case 3:return!!ty(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Tt(pn,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Tt(pn,this,5,8)),this.c.i<=1));case 8:return AC(this);case 9:return R0(this);case 10:return!this.b&&(this.b=new Tt(pn,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Tt(pn,this,5,8)),this.c.i!=0)}return Tge(this,t)},h.$h=function(t,r){switch(t){case 3:L7(this,l(r,19));return;case 4:!this.b&&(this.b=new Tt(pn,this,4,7)),vn(this.b),!this.b&&(this.b=new Tt(pn,this,4,7)),ti(this.b,l(r,18));return;case 5:!this.c&&(this.c=new Tt(pn,this,5,8)),vn(this.c),!this.c&&(this.c=new Tt(pn,this,5,8)),ti(this.c,l(r,18));return;case 6:!this.a&&(this.a=new ke(jr,this,6,6)),vn(this.a),!this.a&&(this.a=new ke(jr,this,6,6)),ti(this.a,l(r,18));return}Ebe(this,t,r)},h.fi=function(){return Qs(),h3e},h.hi=function(t){switch(t){case 3:L7(this,null);return;case 4:!this.b&&(this.b=new Tt(pn,this,4,7)),vn(this.b);return;case 5:!this.c&&(this.c=new Tt(pn,this,5,8)),vn(this.c);return;case 6:!this.a&&(this.a=new ke(jr,this,6,6)),vn(this.a);return}r1e(this,t)},h.Ib=function(){return Svt(this)},k(am,"ElkEdgeImpl",273),_(446,2062,{110:1,344:1,171:1,446:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},g9),h.xh=function(t){return abe(this,t)},h.Ih=function(t,r,o){switch(t){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new yi(Ic,this,5)),this.a;case 6:return eut(this);case 7:return r?TY(this):this.i;case 8:return r?SY(this):this.f;case 9:return!this.g&&(this.g=new Tt(jr,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Tt(jr,this,10,9)),this.e;case 11:return this.d}return nbe(this,t,r,o)},h.Ph=function(t,r,o){var a,u,f;switch(r){case 6:return this.Cb&&(o=(u=this.Db>>16,u>=0?abe(this,o):this.Cb.Qh(this,-1-u,null,o))),Wde(this,l(t,74),o);case 9:return!this.g&&(this.g=new Tt(jr,this,9,10)),Pa(this.g,t,o);case 10:return!this.e&&(this.e=new Tt(jr,this,10,9)),Pa(this.e,t,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(Qs(),bU)),r),69),f.uk().xk(this,Ha(this),r-ln((Qs(),bU)),t,o)},h.Rh=function(t,r,o){switch(r){case 5:return!this.a&&(this.a=new yi(Ic,this,5)),_o(this.a,t,o);case 6:return Wde(this,null,o);case 9:return!this.g&&(this.g=new Tt(jr,this,9,10)),_o(this.g,t,o);case 10:return!this.e&&(this.e=new Tt(jr,this,10,9)),_o(this.e,t,o)}return qbe(this,t,r,o)},h.Th=function(t){switch(t){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!eut(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return Whe(this,t)},h.$h=function(t,r){switch(t){case 1:E0(this,ue(ce(r)));return;case 2:S0(this,ue(ce(r)));return;case 3:y0(this,ue(ce(r)));return;case 4:v0(this,ue(ce(r)));return;case 5:!this.a&&(this.a=new yi(Ic,this,5)),vn(this.a),!this.a&&(this.a=new yi(Ic,this,5)),ti(this.a,l(r,18));return;case 6:mwt(this,l(r,74));return;case 7:Sj(this,l(r,83));return;case 8:Ej(this,l(r,83));return;case 9:!this.g&&(this.g=new Tt(jr,this,9,10)),vn(this.g),!this.g&&(this.g=new Tt(jr,this,9,10)),ti(this.g,l(r,18));return;case 10:!this.e&&(this.e=new Tt(jr,this,10,9)),vn(this.e),!this.e&&(this.e=new Tt(jr,this,10,9)),ti(this.e,l(r,18));return;case 11:fge(this,In(r));return}Uge(this,t,r)},h.fi=function(){return Qs(),bU},h.hi=function(t){switch(t){case 1:E0(this,0);return;case 2:S0(this,0);return;case 3:y0(this,0);return;case 4:v0(this,0);return;case 5:!this.a&&(this.a=new yi(Ic,this,5)),vn(this.a);return;case 6:mwt(this,null);return;case 7:Sj(this,null);return;case 8:Ej(this,null);return;case 9:!this.g&&(this.g=new Tt(jr,this,9,10)),vn(this.g);return;case 10:!this.e&&(this.e=new Tt(jr,this,10,9)),vn(this.e);return;case 11:fge(this,null);return}Ige(this,t)},h.Ib=function(){return N0t(this)},h.b=0,h.c=0,h.d=null,h.j=0,h.k=0,k(am,"ElkEdgeSectionImpl",446),_(162,119,{110:1,95:1,94:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1}),h.Ih=function(t,r,o){var a;return t==0?(!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab):qc(this,t-ln(this.fi()),Nt((a=l(Vt(this,16),29),a||this.fi()),t),r,o)},h.Ph=function(t,r,o){var a,u;return r==0?(!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o)):(u=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),u.uk().xk(this,Ha(this),r-ln(this.fi()),t,o))},h.Rh=function(t,r,o){var a,u;return r==0?(!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o)):(u=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o))},h.Th=function(t){var r;return t==0?!!this.Ab&&this.Ab.i!=0:zc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.Wh=function(t){return W0e(this,t)},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return}Xc(this,t-ln(this.fi()),Nt((o=l(Vt(this,16),29),o||this.fi()),t),r)},h.ai=function(t){KS(this,128,t)},h.fi=function(){return _t(),iLt},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return}Jc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.mi=function(){this.Bb|=1},h.ni=function(t){return RC(this,t)},h.Bb=0,k(Gt,"EModelElementImpl",162),_(717,162,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1},Vue),h.oi=function(t,r){return Jvt(this,t,r)},h.pi=function(t){var r,o,a,u,f;if(this.a!=mc(t)||t.Bb&256)throw Y(new jt(rQ+t.zb+W0));for(a=ds(t);oa(a.a).i!=0;){if(o=l(dD(a,0,(r=l(oe(oa(a.a),0),88),f=r.c,ae(f,89)?l(f,29):(_t(),Ml))),29),I0(o))return u=mc(o).ti().pi(o),l(u,52)._h(t),u;a=ds(o)}return(t.D!=null?t.D:t.B)=="java.util.Map$Entry"?new Dot(t):new Dfe(t)},h.qi=function(t,r){return P0(this,t,r)},h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.a}return qc(this,t-ln((_t(),Q1)),Nt((a=l(Vt(this,16),29),a||Q1),t),r,o)},h.Ph=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 1:return this.a&&(o=l(this.a,52).Qh(this,4,Dd,o)),e1e(this,l(t,244),o)}return u=l(Nt((a=l(Vt(this,16),29),a||(_t(),Q1)),r),69),u.uk().xk(this,Ha(this),r-ln((_t(),Q1)),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 1:return e1e(this,null,o)}return u=l(Nt((a=l(Vt(this,16),29),a||(_t(),Q1)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),Q1)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return zc(this,t-ln((_t(),Q1)),Nt((r=l(Vt(this,16),29),r||Q1),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:nmt(this,l(r,244));return}Xc(this,t-ln((_t(),Q1)),Nt((o=l(Vt(this,16),29),o||Q1),t),r)},h.fi=function(){return _t(),Q1},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:nmt(this,null);return}Jc(this,t-ln((_t(),Q1)),Nt((r=l(Vt(this,16),29),r||Q1),t))};var R4,m3e,UDt;k(Gt,"EFactoryImpl",717),_(1029,717,{110:1,2092:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1},WGe),h.oi=function(t,r){switch(t.fk()){case 12:return l(r,149).Og();case 13:return ms(r);default:throw Y(new jt(Dx+t.ve()+W0))}},h.pi=function(t){var r,o,a,u,f,p,m,y;switch(t.G==-1&&(t.G=(r=mc(t),r?gg(r.si(),t):-1)),t.G){case 4:return f=new Uue,f;case 6:return p=new $N,p;case 7:return m=new Fce,m;case 8:return a=new OG,a;case 9:return o=new b9,o;case 10:return u=new g9,u;case 11:return y=new KGe,y;default:throw Y(new jt(rQ+t.zb+W0))}},h.qi=function(t,r){switch(t.fk()){case 13:case 12:return null;default:throw Y(new jt(Dx+t.ve()+W0))}},k(am,"ElkGraphFactoryImpl",1029),_(444,162,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1}),h.Dh=function(){var t,r;return r=(t=l(Vt(this,16),29),Dhe(Ff(t||this.fi()))),r==null?(QN(),QN(),Fre):new Zrt(this,r)},h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.ve()}return qc(this,t-ln(this.fi()),Nt((a=l(Vt(this,16),29),a||this.fi()),t),r,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return zc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:this.ri(In(r));return}Xc(this,t-ln(this.fi()),Nt((o=l(Vt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),oLt},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:this.ri(null);return}Jc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.ve=function(){return this.zb},h.ri=function(t){Ma(this,t)},h.Ib=function(){return iC(this)},h.zb=null,k(Gt,"ENamedElementImpl",444),_(187,444,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1},Oat),h.xh=function(t){return dbt(this,t)},h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Xw(this,Ld,this)),this.rb;case 6:return!this.vb&&(this.vb=new TS(Dd,this,6,7)),this.vb;case 7:return r?this.Db>>16==7?l(this.Cb,244):null:cut(this)}return qc(this,t-ln((_t(),Mg)),Nt((a=l(Vt(this,16),29),a||Mg),t),r,o)},h.Ph=function(t,r,o){var a,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 4:return this.sb&&(o=l(this.sb,52).Qh(this,1,I4,o)),i1e(this,l(t,472),o);case 5:return!this.rb&&(this.rb=new Xw(this,Ld,this)),Pa(this.rb,t,o);case 6:return!this.vb&&(this.vb=new TS(Dd,this,6,7)),Pa(this.vb,t,o);case 7:return this.Cb&&(o=(u=this.Db>>16,u>=0?dbt(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,7,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),Mg)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Mg)),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 4:return i1e(this,null,o);case 5:return!this.rb&&(this.rb=new Xw(this,Ld,this)),_o(this.rb,t,o);case 6:return!this.vb&&(this.vb=new TS(Dd,this,6,7)),_o(this.vb,t,o);case 7:return Sc(this,null,7,o)}return u=l(Nt((a=l(Vt(this,16),29),a||(_t(),Mg)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),Mg)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!cut(this)}return zc(this,t-ln((_t(),Mg)),Nt((r=l(Vt(this,16),29),r||Mg),t))},h.Wh=function(t){var r;return r=q2n(this,t),r||W0e(this,t)},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Ma(this,In(r));return;case 2:kj(this,In(r));return;case 3:xj(this,In(r));return;case 4:XY(this,l(r,472));return;case 5:!this.rb&&(this.rb=new Xw(this,Ld,this)),vn(this.rb),!this.rb&&(this.rb=new Xw(this,Ld,this)),ti(this.rb,l(r,18));return;case 6:!this.vb&&(this.vb=new TS(Dd,this,6,7)),vn(this.vb),!this.vb&&(this.vb=new TS(Dd,this,6,7)),ti(this.vb,l(r,18));return}Xc(this,t-ln((_t(),Mg)),Nt((o=l(Vt(this,16),29),o||Mg),t),r)},h.bi=function(t){var r,o;if(t&&this.rb)for(o=new tn(this.rb);o.e!=o.i.gc();)r=rn(o),ae(r,361)&&(l(r,361).w=null);KS(this,64,t)},h.fi=function(){return _t(),Mg},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:Ma(this,null);return;case 2:kj(this,null);return;case 3:xj(this,null);return;case 4:XY(this,null);return;case 5:!this.rb&&(this.rb=new Xw(this,Ld,this)),vn(this.rb);return;case 6:!this.vb&&(this.vb=new TS(Dd,this,6,7)),vn(this.vb);return}Jc(this,t-ln((_t(),Mg)),Nt((r=l(Vt(this,16),29),r||Mg),t))},h.mi=function(){PY(this)},h.si=function(){return!this.rb&&(this.rb=new Xw(this,Ld,this)),this.rb},h.ti=function(){return this.sb},h.ui=function(){return this.ub},h.vi=function(){return this.xb},h.wi=function(){return this.yb},h.xi=function(t){this.ub=t},h.Ib=function(){var t;return this.Db&64?iC(this):(t=new ml(iC(this)),t.a+=" (nsURI: ",Vo(t,this.yb),t.a+=", nsPrefix: ",Vo(t,this.xb),t.a+=")",t.a)},h.xb=null,h.yb=null,k(Gt,"EPackageImpl",187),_(563,187,{110:1,2094:1,563:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1},P0t),h.q=!1,h.r=!1;var HDt=!1;k(am,"ElkGraphPackageImpl",563),_(363,735,{110:1,344:1,176:1,158:1,278:1,363:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},Uue),h.xh=function(t){return ube(this,t)},h.Ih=function(t,r,o){switch(t){case 7:return Fhe(this);case 8:return this.a}return y1e(this,t,r,o)},h.Ph=function(t,r,o){var a;switch(r){case 7:return this.Cb&&(o=(a=this.Db>>16,a>=0?ube(this,o):this.Cb.Qh(this,-1-a,null,o))),Wfe(this,l(t,176),o)}return VY(this,t,r,o)},h.Rh=function(t,r,o){return r==7?Wfe(this,null,o):CK(this,t,r,o)},h.Th=function(t){switch(t){case 7:return!!Fhe(this);case 8:return!wt("",this.a)}return C1e(this,t)},h.$h=function(t,r){switch(t){case 7:qme(this,l(r,176));return;case 8:cge(this,In(r));return}Sbe(this,t,r)},h.fi=function(){return Qs(),p3e},h.hi=function(t){switch(t){case 7:qme(this,null);return;case 8:cge(this,"");return}I1e(this,t)},h.Ib=function(){return Smt(this)},h.a="",k(am,"ElkLabelImpl",363),_(209,736,{110:1,344:1,83:1,176:1,19:1,278:1,209:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},$N),h.xh=function(t){return fbe(this,t)},h.Ih=function(t,r,o){switch(t){case 9:return!this.c&&(this.c=new ke(Gu,this,9,9)),this.c;case 10:return!this.a&&(this.a=new ke(En,this,10,11)),this.a;case 11:return Br(this);case 12:return!this.b&&(this.b=new ke(Ir,this,12,3)),this.b;case 13:return Lt(),!this.a&&(this.a=new ke(En,this,10,11)),this.a.i>0}return J1e(this,t,r,o)},h.Ph=function(t,r,o){var a;switch(r){case 9:return!this.c&&(this.c=new ke(Gu,this,9,9)),Pa(this.c,t,o);case 10:return!this.a&&(this.a=new ke(En,this,10,11)),Pa(this.a,t,o);case 11:return this.Cb&&(o=(a=this.Db>>16,a>=0?fbe(this,o):this.Cb.Qh(this,-1-a,null,o))),ife(this,l(t,19),o);case 12:return!this.b&&(this.b=new ke(Ir,this,12,3)),Pa(this.b,t,o)}return gbe(this,t,r,o)},h.Rh=function(t,r,o){switch(r){case 9:return!this.c&&(this.c=new ke(Gu,this,9,9)),_o(this.c,t,o);case 10:return!this.a&&(this.a=new ke(En,this,10,11)),_o(this.a,t,o);case 11:return ife(this,null,o);case 12:return!this.b&&(this.b=new ke(Ir,this,12,3)),_o(this.b,t,o)}return bbe(this,t,r,o)},h.Th=function(t){switch(t){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Br(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new ke(En,this,10,11)),this.a.i>0}return Mge(this,t)},h.$h=function(t,r){switch(t){case 9:!this.c&&(this.c=new ke(Gu,this,9,9)),vn(this.c),!this.c&&(this.c=new ke(Gu,this,9,9)),ti(this.c,l(r,18));return;case 10:!this.a&&(this.a=new ke(En,this,10,11)),vn(this.a),!this.a&&(this.a=new ke(En,this,10,11)),ti(this.a,l(r,18));return;case 11:M7(this,l(r,19));return;case 12:!this.b&&(this.b=new ke(Ir,this,12,3)),vn(this.b),!this.b&&(this.b=new ke(Ir,this,12,3)),ti(this.b,l(r,18));return}Cme(this,t,r)},h.fi=function(){return Qs(),g3e},h.hi=function(t){switch(t){case 9:!this.c&&(this.c=new ke(Gu,this,9,9)),vn(this.c);return;case 10:!this.a&&(this.a=new ke(En,this,10,11)),vn(this.a);return;case 11:M7(this,null);return;case 12:!this.b&&(this.b=new ke(Ir,this,12,3)),vn(this.b);return}q1e(this,t)},h.Ib=function(){return a0e(this)},k(am,"ElkNodeImpl",209),_(196,736,{110:1,344:1,83:1,176:1,127:1,278:1,196:1,105:1,95:1,94:1,57:1,115:1,52:1,101:1,118:1,119:1},Fce),h.xh=function(t){return cbe(this,t)},h.Ih=function(t,r,o){return t==9?Gd(this):J1e(this,t,r,o)},h.Ph=function(t,r,o){var a;switch(r){case 9:return this.Cb&&(o=(a=this.Db>>16,a>=0?cbe(this,o):this.Cb.Qh(this,-1-a,null,o))),Kde(this,l(t,19),o)}return gbe(this,t,r,o)},h.Rh=function(t,r,o){return r==9?Kde(this,null,o):bbe(this,t,r,o)},h.Th=function(t){return t==9?!!Gd(this):Mge(this,t)},h.$h=function(t,r){switch(t){case 9:Bme(this,l(r,19));return}Cme(this,t,r)},h.fi=function(){return Qs(),b3e},h.hi=function(t){switch(t){case 9:Bme(this,null);return}q1e(this,t)},h.Ib=function(){return byt(this)},k(am,"ElkPortImpl",196);var zDt=Hr(xo,"BasicEMap/Entry");_(1103,119,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1,118:1,119:1},KGe),h.Fb=function(t){return this===t},h.jd=function(){return this.b},h.Hb=function(){return s0(this)},h.Ai=function(t){oge(this,l(t,149))},h.Ih=function(t,r,o){switch(t){case 0:return this.b;case 1:return this.c}return s7(this,t,r,o)},h.Th=function(t){switch(t){case 0:return!!this.b;case 1:return this.c!=null}return wY(this,t)},h.$h=function(t,r){switch(t){case 0:oge(this,l(r,149));return;case 1:sge(this,r);return}rJ(this,t,r)},h.fi=function(){return Qs(),Dh},h.hi=function(t){switch(t){case 0:oge(this,null);return;case 1:sge(this,null);return}eJ(this,t)},h.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t?Rr(t):0),this.a},h.kd=function(){return this.c},h.zi=function(t){this.a=t},h.ld=function(t){var r;return r=this.c,sge(this,t),r},h.Ib=function(){var t;return this.Db&64?Zl(this):(t=new Zg,zn(zn(zn(t,this.b?this.b.Og():tu),PX),y3(this.c)),t.a)},h.a=-1,h.c=null;var Rg=k(am,"ElkPropertyToValueMapEntryImpl",1103);_(989,1,{},YGe),k(oo,"JsonAdapter",989),_(218,63,vp,xf),k(oo,"JsonImportException",218),_(859,1,{},R0t),k(oo,"JsonImporter",859),_(893,1,{},Qtt),h.Bi=function(t){Ebt(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$0$Type",893),_(894,1,{},ent),h.Bi=function(t){u0t(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$1$Type",894),_(902,1,{},EXe),h.Bi=function(t){uat(this.a,l(t,150))},k(oo,"JsonImporter/lambda$10$Type",902),_(904,1,{},tnt),h.Bi=function(t){Kmt(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$11$Type",904),_(905,1,{},nnt),h.Bi=function(t){Ymt(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$12$Type",905),_(911,1,{},wat),h.Bi=function(t){wmt(this.a,this.b,this.c,this.d,l(t,142))},k(oo,"JsonImporter/lambda$13$Type",911),_(910,1,{},yat),h.Bi=function(t){Fyt(this.a,this.b,this.c,this.d,l(t,150))},k(oo,"JsonImporter/lambda$14$Type",910),_(906,1,{},rnt),h.Bi=function(t){Iit(this.a,this.b,In(t))},k(oo,"JsonImporter/lambda$15$Type",906),_(907,1,{},int),h.Bi=function(t){Rit(this.a,this.b,In(t))},k(oo,"JsonImporter/lambda$16$Type",907),_(908,1,{},cnt),h.Bi=function(t){nbt(this.b,this.a,l(t,142))},k(oo,"JsonImporter/lambda$17$Type",908),_(909,1,{},lnt),h.Bi=function(t){rbt(this.b,this.a,l(t,142))},k(oo,"JsonImporter/lambda$18$Type",909),_(914,1,{},SXe),h.Bi=function(t){umt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$19$Type",914),_(895,1,{},TXe),h.Bi=function(t){pbt(this.a,l(t,142))},k(oo,"JsonImporter/lambda$2$Type",895),_(912,1,{},AXe),h.Bi=function(t){E0(this.a,ue(ce(t)))},k(oo,"JsonImporter/lambda$20$Type",912),_(913,1,{},_Xe),h.Bi=function(t){S0(this.a,ue(ce(t)))},k(oo,"JsonImporter/lambda$21$Type",913),_(917,1,{},xXe),h.Bi=function(t){amt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$22$Type",917),_(915,1,{},kXe),h.Bi=function(t){y0(this.a,ue(ce(t)))},k(oo,"JsonImporter/lambda$23$Type",915),_(916,1,{},NXe),h.Bi=function(t){v0(this.a,ue(ce(t)))},k(oo,"JsonImporter/lambda$24$Type",916),_(919,1,{},CXe),h.Bi=function(t){Obt(this.a,l(t,142))},k(oo,"JsonImporter/lambda$25$Type",919),_(918,1,{},IXe),h.Bi=function(t){cat(this.a,l(t,150))},k(oo,"JsonImporter/lambda$26$Type",918),_(920,1,nn,dnt),h.Ad=function(t){Mdn(this.b,this.a,In(t))},k(oo,"JsonImporter/lambda$27$Type",920),_(921,1,nn,fnt),h.Ad=function(t){Pdn(this.b,this.a,In(t))},k(oo,"JsonImporter/lambda$28$Type",921),_(922,1,{},ont),h.Bi=function(t){G0t(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$29$Type",922),_(898,1,{},RXe),h.Bi=function(t){Agt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$3$Type",898),_(923,1,{},snt),h.Bi=function(t){hwt(this.a,this.b,l(t,142))},k(oo,"JsonImporter/lambda$30$Type",923),_(924,1,{},OXe),h.Bi=function(t){Wdt(this.a,ce(t))},k(oo,"JsonImporter/lambda$31$Type",924),_(925,1,{},DXe),h.Bi=function(t){Kdt(this.a,ce(t))},k(oo,"JsonImporter/lambda$32$Type",925),_(926,1,{},LXe),h.Bi=function(t){Ydt(this.a,ce(t))},k(oo,"JsonImporter/lambda$33$Type",926),_(927,1,{},MXe),h.Bi=function(t){Jdt(this.a,ce(t))},k(oo,"JsonImporter/lambda$34$Type",927),_(928,1,{},PXe),h.Bi=function(t){Fwn(this.a,l(t,57))},k(oo,"JsonImporter/lambda$35$Type",928),_(929,1,{},jXe),h.Bi=function(t){$wn(this.a,l(t,57))},k(oo,"JsonImporter/lambda$36$Type",929),_(933,1,{},mat),k(oo,"JsonImporter/lambda$37$Type",933),_(930,1,nn,not),h.Ad=function(t){hhn(this.a,this.c,this.b,l(t,373))},k(oo,"JsonImporter/lambda$38$Type",930),_(931,1,nn,ant),h.Ad=function(t){Oen(this.a,this.b,l(t,171))},k(oo,"JsonImporter/lambda$39$Type",931),_(896,1,{},FXe),h.Bi=function(t){E0(this.a,ue(ce(t)))},k(oo,"JsonImporter/lambda$4$Type",896),_(932,1,nn,unt),h.Ad=function(t){Den(this.a,this.b,l(t,171))},k(oo,"JsonImporter/lambda$40$Type",932),_(934,1,nn,rot),h.Ad=function(t){phn(this.a,this.b,this.c,l(t,8))},k(oo,"JsonImporter/lambda$41$Type",934),_(897,1,{},$Xe),h.Bi=function(t){S0(this.a,ue(ce(t)))},k(oo,"JsonImporter/lambda$5$Type",897),_(901,1,{},BXe),h.Bi=function(t){_gt(this.a,l(t,150))},k(oo,"JsonImporter/lambda$6$Type",901),_(899,1,{},UXe),h.Bi=function(t){y0(this.a,ue(ce(t)))},k(oo,"JsonImporter/lambda$7$Type",899),_(900,1,{},HXe),h.Bi=function(t){v0(this.a,ue(ce(t)))},k(oo,"JsonImporter/lambda$8$Type",900),_(903,1,{},zXe),h.Bi=function(t){Dbt(this.a,l(t,142))},k(oo,"JsonImporter/lambda$9$Type",903),_(953,1,nn,GXe),h.Ad=function(t){RS(this.a,new Qw(In(t)))},k(oo,"JsonMetaDataConverter/lambda$0$Type",953),_(954,1,nn,qXe),h.Ad=function(t){Dsn(this.a,l(t,235))},k(oo,"JsonMetaDataConverter/lambda$1$Type",954),_(955,1,nn,VXe),h.Ad=function(t){Oun(this.a,l(t,144))},k(oo,"JsonMetaDataConverter/lambda$2$Type",955),_(956,1,nn,WXe),h.Ad=function(t){Lsn(this.a,l(t,161))},k(oo,"JsonMetaDataConverter/lambda$3$Type",956),_(235,23,{3:1,34:1,23:1,235:1},bS);var mU,wU,Rre,i5,yU,o5,Ore,Dre,s5=fn(kD,"GraphFeature",235,bn,pfn,mon),GDt;_(11,1,{34:1,149:1},cr,Pr,pt,Mi),h.Dd=function(t){return Ltn(this,l(t,149))},h.Fb=function(t){return Hat(this,t)},h.Rg=function(){return Ge(this)},h.Og=function(){return this.b},h.Hb=function(){return lg(this.b)},h.Ib=function(){return this.b},k(kD,"Property",11),_(664,1,Un,WG),h.Le=function(t,r){return xgn(this,l(t,105),l(r,105))},h.Fb=function(t){return this===t},h.Me=function(){return new Pn(this)},k(kD,"PropertyHolderComparator",664),_(705,1,Wi,Tce),h.Nb=function(t){so(this,t)},h.Pb=function(){return Bdn(this)},h.Qb=function(){$Qe()},h.Ob=function(){return!!this.a},k(GF,"ElkGraphUtil/AncestorIterator",705);var w3e=Hr(xo,"EList");_(71,56,{22:1,32:1,56:1,18:1,16:1,71:1,61:1}),h._c=function(t,r){aC(this,t,r)},h.Ec=function(t){return Tn(this,t)},h.ad=function(t,r){return Oge(this,t,r)},h.Fc=function(t){return ti(this,t)},h.Gi=function(){return new ES(this)},h.Hi=function(){return new IO(this)},h.Ii=function(t){return v6(this,t)},h.Ji=function(){return!0},h.Ki=function(t,r){},h.Li=function(){},h.Mi=function(t,r){XW(this,t,r)},h.Ni=function(t,r,o){},h.Oi=function(t,r){},h.Pi=function(t,r,o){},h.Fb=function(t){return Qwt(this,t)},h.Hb=function(){return kge(this)},h.Qi=function(){return!1},h.Jc=function(){return new tn(this)},h.cd=function(){return new SS(this)},h.dd=function(t){var r;if(r=this.gc(),t<0||t>r)throw Y(new Ww(t,r));return new rW(this,t)},h.Si=function(t,r){this.Ri(t,this.bd(r))},h.Kc=function(t){return uj(this,t)},h.Ui=function(t,r){return r},h.fd=function(t,r){return EE(this,t,r)},h.Ib=function(){return A1e(this)},h.Wi=function(){return!0},h.Xi=function(t,r){return C_(this,r)},k(xo,"AbstractEList",71),_(67,71,Vf,m9,w0,vge),h.Ci=function(t,r){return WY(this,t,r)},h.Di=function(t){return j1t(this,t)},h.Ei=function(t,r){D6(this,t,r)},h.Fi=function(t){r6(this,t)},h.Yi=function(t){return Ppe(this,t)},h.$b=function(){z3(this)},h.Gc=function(t){return q_(this,t)},h.Xb=function(t){return oe(this,t)},h.Zi=function(t){var r,o,a;++this.j,o=this.g==null?0:this.g.length,t>o&&(a=this.g,r=o+(o/2|0)+4,r=0?(this.ed(r),!0):!1},h.Vi=function(t,r){return this.Bj(t,this.Xi(t,r))},h.gc=function(){return this.Cj()},h.Nc=function(){return this.Dj()},h.Oc=function(t){return this.Ej(t)},h.Ib=function(){return this.Fj()},k(xo,"DelegatingEList",2072),_(2073,2072,DAt),h.Ci=function(t,r){return E0e(this,t,r)},h.Di=function(t){return this.Ci(this.Cj(),t)},h.Ei=function(t,r){j0t(this,t,r)},h.Fi=function(t){x0t(this,t)},h.Ji=function(){return!this.Kj()},h.$b=function(){jC(this)},h.Gj=function(t,r,o,a,u){return new Bat(this,t,r,o,a,u)},h.Hj=function(t){hr(this.hj(),t)},h.Ij=function(){return null},h.Jj=function(){return-1},h.hj=function(){return null},h.Kj=function(){return!1},h.Lj=function(t,r){return r},h.Mj=function(t,r){return r},h.Nj=function(){return!1},h.Oj=function(){return!this.yj()},h.Ri=function(t,r){var o,a;return this.Nj()?(a=this.Oj(),o=Hbe(this,t,r),this.Hj(this.Gj(7,Re(r),o,t,a)),o):Hbe(this,t,r)},h.ed=function(t){var r,o,a,u;return this.Nj()?(o=null,a=this.Oj(),r=this.Gj(4,u=rP(this,t),null,t,a),this.Kj()&&u?(o=this.Mj(u,o),o?(o.lj(r),o.mj()):this.Hj(r)):o?(o.lj(r),o.mj()):this.Hj(r),u):(u=rP(this,t),this.Kj()&&u&&(o=this.Mj(u,null),o&&o.mj()),u)},h.Vi=function(t,r){return Jyt(this,t,r)},k(vT,"DelegatingNotifyingListImpl",2073),_(152,1,qD),h.lj=function(t){return kbe(this,t)},h.mj=function(){nK(this)},h.ej=function(){return this.d},h.Ij=function(){return null},h.Pj=function(){return null},h.fj=function(t){return-1},h.gj=function(){return Lwt(this)},h.hj=function(){return null},h.ij=function(){return Jme(this)},h.jj=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},h.Qj=function(){return!1},h.kj=function(t){var r,o,a,u,f,p,m,y,v,T,N;switch(this.d){case 1:case 2:switch(u=t.ej(),u){case 1:case 2:if(f=t.hj(),be(f)===be(this.hj())&&this.fj(null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0}case 4:{switch(u=t.ej(),u){case 4:{if(f=t.hj(),be(f)===be(this.hj())&&this.fj(null)==t.fj(null))return v=$0e(this),y=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,p=t.jj(),this.d=6,N=new w0(2),y<=p?(Tn(N,this.n),Tn(N,t.ij()),this.g=Z(X(Rn,1),Qn,30,15,[this.o=y,p+1])):(Tn(N,t.ij()),Tn(N,this.n),this.g=Z(X(Rn,1),Qn,30,15,[this.o=p,y])),this.n=N,v||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(u=t.ej(),u){case 4:{if(f=t.hj(),be(f)===be(this.hj())&&this.fj(null)==t.fj(null)){for(v=$0e(this),p=t.jj(),T=l(this.g,54),a=we(Rn,Qn,30,T.length+1,15,1),r=0;r>>0,r.toString(16))),a.a+=" (eventType: ",this.d){case 1:{a.a+="SET";break}case 2:{a.a+="UNSET";break}case 3:{a.a+="ADD";break}case 5:{a.a+="ADD_MANY";break}case 4:{a.a+="REMOVE";break}case 6:{a.a+="REMOVE_MANY";break}case 7:{a.a+="MOVE";break}case 8:{a.a+="REMOVING_ADAPTER";break}case 9:{a.a+="RESOLVE";break}default:{mq(a,this.d);break}}if(Tyt(this)&&(a.a+=", touch: true"),a.a+=", position: ",mq(a,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),a.a+=", notifier: ",h3(a,this.hj()),a.a+=", feature: ",h3(a,this.Ij()),a.a+=", oldValue: ",h3(a,Jme(this)),a.a+=", newValue: ",this.d==6&&ae(this.g,54)){for(o=l(this.g,54),a.a+="[",t=0;t10?((!this.b||this.c.j!=this.a)&&(this.b=new Kw(this),this.a=this.j),bl(this.b,t)):q_(this,t)},h.Wi=function(){return!0},h.a=0,k(xo,"AbstractEList/1",958),_(306,99,iF,Ww),k(xo,"AbstractEList/BasicIndexOutOfBoundsException",306),_(39,1,Wi,tn),h.Nb=function(t){so(this,t)},h.Vj=function(){if(this.i.j!=this.f)throw Y(new $c)},h.Wj=function(){return rn(this)},h.Ob=function(){return this.e!=this.i.gc()},h.Pb=function(){return this.Wj()},h.Qb=function(){wC(this)},h.e=0,h.f=0,h.g=-1,k(xo,"AbstractEList/EIterator",39),_(288,39,vh,SS,rW),h.Qb=function(){wC(this)},h.Rb=function(t){Bgt(this,t)},h.Xj=function(){var t;try{return t=this.d.Xb(--this.e),this.Vj(),this.g=this.e,t}catch(r){throw r=ci(r),ae(r,99)?(this.Vj(),Y(new vs)):Y(r)}},h.Yj=function(t){F1t(this,t)},h.Sb=function(){return this.e!=0},h.Tb=function(){return this.e},h.Ub=function(){return this.Xj()},h.Vb=function(){return this.e-1},h.Wb=function(t){this.Yj(t)},k(xo,"AbstractEList/EListIterator",288),_(356,39,Wi,ES),h.Wj=function(){return yY(this)},h.Qb=function(){throw Y(new Nn)},k(xo,"AbstractEList/NonResolvingEIterator",356),_(393,288,vh,IO,dfe),h.Rb=function(t){throw Y(new Nn)},h.Wj=function(){var t;try{return t=this.c.Ti(this.e),this.Vj(),this.g=this.e++,t}catch(r){throw r=ci(r),ae(r,99)?(this.Vj(),Y(new vs)):Y(r)}},h.Xj=function(){var t;try{return t=this.c.Ti(--this.e),this.Vj(),this.g=this.e,t}catch(r){throw r=ci(r),ae(r,99)?(this.Vj(),Y(new vs)):Y(r)}},h.Qb=function(){throw Y(new Nn)},h.Wb=function(t){throw Y(new Nn)},k(xo,"AbstractEList/NonResolvingEListIterator",393),_(2059,71,LAt),h.Ci=function(t,r){var o,a,u,f,p,m,y,v,T,N,O;if(u=r.gc(),u!=0){for(v=l(Vt(this.a,4),131),T=v==null?0:v.length,O=T+u,a=HK(this,O),N=T-t,N>0&&ua(v,t,a,t+u,N),y=r.Jc(),p=0;po)throw Y(new Ww(t,o));return new Zst(this,t)},h.$b=function(){var t,r;++this.j,t=l(Vt(this.a,4),131),r=t==null?0:t.length,H_(this,null),XW(this,r,t)},h.Gc=function(t){var r,o,a,u,f;if(r=l(Vt(this.a,4),131),r!=null){if(t!=null){for(a=r,u=0,f=a.length;u=o)throw Y(new Ww(t,o));return r[t]},h.bd=function(t){var r,o,a;if(r=l(Vt(this.a,4),131),r!=null){if(t!=null){for(o=0,a=r.length;oo)throw Y(new Ww(t,o));return new Xst(this,t)},h.Ri=function(t,r){var o,a,u;if(o=Wgt(this),u=o==null?0:o.length,t>=u)throw Y(new Ia(fQ+t+um+u));if(r>=u)throw Y(new Ia(hQ+r+um+u));return a=o[r],t!=r&&(t0&&ua(t,0,r,0,o),r},h.Oc=function(t){var r,o,a;return r=l(Vt(this.a,4),131),a=r==null?0:r.length,a>0&&(t.lengtha&&ii(t,a,null),t};var qDt;k(xo,"ArrayDelegatingEList",2059),_(1043,39,Wi,blt),h.Vj=function(){if(this.b.j!=this.f||be(l(Vt(this.b.a,4),131))!==be(this.a))throw Y(new $c)},h.Qb=function(){wC(this),this.a=l(Vt(this.b.a,4),131)},k(xo,"ArrayDelegatingEList/EIterator",1043),_(719,288,vh,Est,Xst),h.Vj=function(){if(this.b.j!=this.f||be(l(Vt(this.b.a,4),131))!==be(this.a))throw Y(new $c)},h.Yj=function(t){F1t(this,t),this.a=l(Vt(this.b.a,4),131)},h.Qb=function(){wC(this),this.a=l(Vt(this.b.a,4),131)},k(xo,"ArrayDelegatingEList/EListIterator",719),_(1044,356,Wi,mlt),h.Vj=function(){if(this.b.j!=this.f||be(l(Vt(this.b.a,4),131))!==be(this.a))throw Y(new $c)},k(xo,"ArrayDelegatingEList/NonResolvingEIterator",1044),_(720,393,vh,Sst,Zst),h.Vj=function(){if(this.b.j!=this.f||be(l(Vt(this.b.a,4),131))!==be(this.a))throw Y(new $c)},k(xo,"ArrayDelegatingEList/NonResolvingEListIterator",720),_(612,306,iF,iV),k(xo,"BasicEList/BasicIndexOutOfBoundsException",612),_(706,67,Vf,Zle),h._c=function(t,r){throw Y(new Nn)},h.Ec=function(t){throw Y(new Nn)},h.ad=function(t,r){throw Y(new Nn)},h.Fc=function(t){throw Y(new Nn)},h.$b=function(){throw Y(new Nn)},h.Zi=function(t){throw Y(new Nn)},h.Jc=function(){return this.Gi()},h.cd=function(){return this.Hi()},h.dd=function(t){return this.Ii(t)},h.Ri=function(t,r){throw Y(new Nn)},h.Si=function(t,r){throw Y(new Nn)},h.ed=function(t){throw Y(new Nn)},h.Kc=function(t){throw Y(new Nn)},h.fd=function(t,r){throw Y(new Nn)},k(xo,"BasicEList/UnmodifiableEList",706),_(718,1,{3:1,22:1,18:1,16:1,61:1,593:1}),h._c=function(t,r){Stn(this,t,l(r,45))},h.Ec=function(t){return vnn(this,l(t,45))},h.Ic=function(t){lo(this,t)},h.Xb=function(t){return l(oe(this.c,t),138)},h.Ri=function(t,r){return l(this.c.Ri(t,r),45)},h.Si=function(t,r){Ttn(this,t,l(r,45))},h.ed=function(t){return l(this.c.ed(t),45)},h.fd=function(t,r){return Msn(this,t,l(r,45))},h.gd=function(t){zb(this,t)},h.Lc=function(){return new St(this,16)},h.Mc=function(){return new Et(null,new St(this,16))},h.ad=function(t,r){return this.c.ad(t,r)},h.Fc=function(t){return this.c.Fc(t)},h.$b=function(){this.c.$b()},h.Gc=function(t){return this.c.Gc(t)},h.Hc=function(t){return N6(this.c,t)},h.Zj=function(){var t,r,o;if(this.d==null){for(this.d=we(y3e,kEe,67,2*this.f+1,0,1),o=this.e,this.f=0,r=this.c.Jc();r.e!=r.i.gc();)t=l(r.Wj(),138),c7(this,t);this.e=o}},h.Fb=function(t){return Git(this,t)},h.Hb=function(){return kge(this.c)},h.bd=function(t){return this.c.bd(t)},h.$j=function(){this.c=new KXe(this)},h.dc=function(){return this.f==0},h.Jc=function(){return this.c.Jc()},h.cd=function(){return this.c.cd()},h.dd=function(t){return this.c.dd(t)},h._j=function(){return s6(this)},h.ak=function(t,r,o){return new iot(t,r,o)},h.bk=function(){return new eqe},h.Kc=function(t){return Gft(this,t)},h.gc=function(){return this.f},h.hd=function(t,r){return new Rf(this.c,t,r)},h.Nc=function(){return this.c.Nc()},h.Oc=function(t){return this.c.Oc(t)},h.Ib=function(){return A1e(this.c)},h.e=0,h.f=0,k(xo,"BasicEMap",718),_(1038,67,Vf,KXe),h.Ki=function(t,r){oQt(this,l(r,138))},h.Ni=function(t,r,o){var a;++(a=this,l(r,138),a).a.e},h.Oi=function(t,r){sQt(this,l(r,138))},h.Pi=function(t,r,o){tnn(this,l(r,138),l(o,138))},h.Mi=function(t,r){jht(this.a)},k(xo,"BasicEMap/1",1038),_(1039,67,Vf,eqe),h.$i=function(t){return we(cCn,MAt,618,t,0,1)},k(xo,"BasicEMap/2",1039),_(1040,tf,wu,YXe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){return aY(this.a,t)},h.Jc=function(){return this.a.f==0?(JA(),c5.a):new DQe(this.a)},h.Kc=function(t){var r;return r=this.a.f,Qj(this.a,t),this.a.f!=r},h.gc=function(){return this.a.f},k(xo,"BasicEMap/3",1040),_(1041,32,Cy,JXe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){return eyt(this.a,t)},h.Jc=function(){return this.a.f==0?(JA(),c5.a):new LQe(this.a)},h.gc=function(){return this.a.f},k(xo,"BasicEMap/4",1041),_(1042,tf,wu,XXe),h.$b=function(){this.a.c.$b()},h.Gc=function(t){var r,o,a,u,f,p,m,y,v;if(this.a.f>0&&ae(t,45)&&(this.a.Zj(),y=l(t,45),m=y.jd(),u=m==null?0:Rr(m),f=Yde(this.a,u),r=this.a.d[f],r)){for(o=l(r.g,375),v=r.i,p=0;p"+this.c},h.a=0;var cCn=k(xo,"BasicEMap/EntryImpl",618);_(538,1,{},w9),k(xo,"BasicEMap/View",538);var c5;_(776,1,{}),h.Fb=function(t){return Ime((At(),Co),t)},h.Hb=function(){return $ge((At(),Co))},h.Ib=function(){return Qd((At(),Co))},k(xo,"ECollections/BasicEmptyUnmodifiableEList",776),_(1314,1,vh,QGe),h.Nb=function(t){so(this,t)},h.Rb=function(t){throw Y(new Nn)},h.Ob=function(){return!1},h.Sb=function(){return!1},h.Pb=function(){throw Y(new vs)},h.Tb=function(){return 0},h.Ub=function(){throw Y(new vs)},h.Vb=function(){return-1},h.Qb=function(){throw Y(new Nn)},h.Wb=function(t){throw Y(new Nn)},k(xo,"ECollections/BasicEmptyUnmodifiableEList/1",1314),_(1312,776,{22:1,18:1,16:1,61:1},BZe),h._c=function(t,r){net()},h.Ec=function(t){return ret()},h.ad=function(t,r){return iet()},h.Fc=function(t){return oet()},h.$b=function(){set()},h.Gc=function(t){return!1},h.Hc=function(t){return!1},h.Ic=function(t){lo(this,t)},h.Xb=function(t){return nde((At(),t)),null},h.bd=function(t){return-1},h.dc=function(){return!0},h.Jc=function(){return this.a},h.cd=function(){return this.a},h.dd=function(t){return this.a},h.Ri=function(t,r){return aet()},h.Si=function(t,r){uet()},h.ed=function(t){return cet()},h.Kc=function(t){return det()},h.fd=function(t,r){return fet()},h.gc=function(){return 0},h.gd=function(t){zb(this,t)},h.Lc=function(){return new St(this,16)},h.Mc=function(){return new Et(null,new St(this,16))},h.hd=function(t,r){return At(),new Rf(Co,t,r)},h.Nc=function(){return Jfe((At(),Co))},h.Oc=function(t){return At(),pC(Co,t)},k(xo,"ECollections/EmptyUnmodifiableEList",1312),_(1313,776,{22:1,18:1,16:1,61:1,593:1},UZe),h._c=function(t,r){net()},h.Ec=function(t){return ret()},h.ad=function(t,r){return iet()},h.Fc=function(t){return oet()},h.$b=function(){set()},h.Gc=function(t){return!1},h.Hc=function(t){return!1},h.Ic=function(t){lo(this,t)},h.Xb=function(t){return nde((At(),t)),null},h.bd=function(t){return-1},h.dc=function(){return!0},h.Jc=function(){return this.a},h.cd=function(){return this.a},h.dd=function(t){return this.a},h.Ri=function(t,r){return aet()},h.Si=function(t,r){uet()},h.ed=function(t){return cet()},h.Kc=function(t){return det()},h.fd=function(t,r){return fet()},h.gc=function(){return 0},h.gd=function(t){zb(this,t)},h.Lc=function(){return new St(this,16)},h.Mc=function(){return new Et(null,new St(this,16))},h.hd=function(t,r){return At(),new Rf(Co,t,r)},h.Nc=function(){return Jfe((At(),Co))},h.Oc=function(t){return At(),pC(Co,t)},h._j=function(){return At(),At(),xh},k(xo,"ECollections/EmptyUnmodifiableEMap",1313);var E3e=Hr(xo,"Enumerator"),vU;_(291,1,{291:1},gJ),h.Fb=function(t){var r;return this===t?!0:ae(t,291)?(r=l(t,291),this.f==r.f&&rsn(this.i,r.i)&&GV(this.a,this.f&256?r.f&256?r.a:null:r.f&256?null:r.a)&&GV(this.d,r.d)&&GV(this.g,r.g)&&GV(this.e,r.e)&&fbn(this,r)):!1},h.Hb=function(){return this.f},h.Ib=function(){return Myt(this)},h.f=0;var VDt=0,WDt=0,KDt=0,YDt=0,S3e=0,T3e=0,A3e=0,_3e=0,x3e=0,JDt,O4=0,D4=0,XDt=0,ZDt=0,EU,k3e;k(xo,"URI",291),_(1102,44,DE,HZe),h.yc=function(t,r){return l(ns(this,In(t),l(r,291)),291)},k(xo,"URI/URICache",1102),_(495,67,Vf,tqe,uP),h.Qi=function(){return!0},k(xo,"UniqueEList",495),_(585,63,vp,oj),k(xo,"WrappedException",585);var Kn=Hr(el,FAt),gv=Hr(el,$At),au=Hr(el,BAt),bv=Hr(el,UAt),Ld=Hr(el,HAt),Ol=Hr(el,"EClass"),Pre=Hr(el,"EDataType"),QDt;_(1210,44,DE,zZe),h.xc=function(t){return zi(t)?wa(this,t):Ss(ts(this.f,t))},k(el,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1210);var SU=Hr(el,"EEnum"),Op=Hr(el,zAt),Go=Hr(el,GAt),Dl=Hr(el,qAt),Ll,lw=Hr(el,VAt),mv=Hr(el,WAt);_(1034,1,{},nqe),h.Ib=function(){return"NIL"},k(el,"EStructuralFeature/Internal/DynamicValueHolder/1",1034);var eLt;_(1033,44,DE,GZe),h.xc=function(t){return zi(t)?wa(this,t):Ss(ts(this.f,t))},k(el,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1033);var Ka=Hr(el,KAt),YT=Hr(el,"EValidator/PatternMatcher"),N3e,C3e,Ut,Og,wv,X1,tLt,nLt,rLt,Z1,Dg,Q1,dw,bf,iLt,oLt,Ml,Lg,sLt,Mg,yv,w2,Ro,aLt,uLt,fw,TU=Hr(Fr,"FeatureMap/Entry");_(537,1,{76:1},_8),h.Jk=function(){return this.a},h.kd=function(){return this.b},k(Gt,"BasicEObjectImpl/1",537),_(1032,1,yQ,pnt),h.Dk=function(t){return VW(this.a,this.b,t)},h.Oj=function(){return iut(this.a,this.b)},h.Wb=function(t){Phe(this.a,this.b,t)},h.Ek=function(){Xsn(this.a,this.b)},k(Gt,"BasicEObjectImpl/4",1032),_(2060,1,{115:1}),h.Kk=function(t){this.e=t==0?cLt:we(Ii,Rt,1,t,5,1)},h.ii=function(t){return this.e[t]},h.ji=function(t,r){this.e[t]=r},h.ki=function(t){this.e[t]=null},h.Lk=function(){return this.c},h.Mk=function(){throw Y(new Nn)},h.Nk=function(){throw Y(new Nn)},h.Ok=function(){return this.d},h.Pk=function(){return this.e!=null},h.Qk=function(t){this.c=t},h.Rk=function(t){throw Y(new Nn)},h.Sk=function(t){throw Y(new Nn)},h.Tk=function(t){this.d=t};var cLt;k(Gt,"BasicEObjectImpl/EPropertiesHolderBaseImpl",2060),_(195,2060,{115:1},bd),h.Mk=function(){return this.a},h.Nk=function(){return this.b},h.Rk=function(t){this.a=t},h.Sk=function(t){this.b=t},k(Gt,"BasicEObjectImpl/EPropertiesHolderImpl",195),_(505,101,KTt,y9),h.rh=function(){return this.f},h.wh=function(){return this.k},h.yh=function(t,r){this.g=t,this.i=r},h.Ah=function(){return this.j&2?this.Xh().Lk():this.fi()},h.Ch=function(){return this.i},h.th=function(){return(this.j&1)!=0},h.Mh=function(){return this.g},h.Sh=function(){return(this.j&4)!=0},h.Xh=function(){return!this.k&&(this.k=new bd),this.k},h._h=function(t){this.Xh().Qk(t),t?this.j|=2:this.j&=-3},h.bi=function(t){this.Xh().Sk(t),t?this.j|=4:this.j&=-5},h.fi=function(){return(a1(),Ut).S},h.i=0,h.j=1,k(Gt,"EObjectImpl",505),_(792,505,{110:1,95:1,94:1,57:1,115:1,52:1,101:1},Dfe),h.ii=function(t){return this.e[t]},h.ji=function(t,r){this.e[t]=r},h.ki=function(t){this.e[t]=null},h.Ah=function(){return this.d},h.Fh=function(t){return Ur(this.d,t)},h.Hh=function(){return this.d},h.Lh=function(){return this.e!=null},h.Xh=function(){return!this.k&&(this.k=new rqe),this.k},h._h=function(t){this.d=t},h.ei=function(){var t;return this.e==null&&(t=ln(this.d),this.e=t==0?lLt:we(Ii,Rt,1,t,5,1)),this},h.gi=function(){return 0};var lLt;k(Gt,"DynamicEObjectImpl",792),_(1500,792,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1},Dot),h.Fb=function(t){return this===t},h.Hb=function(){return s0(this)},h._h=function(t){this.d=t,this.b=iD(t,"key"),this.c=iD(t,sI)},h.yi=function(){var t;return this.a==-1&&(t=sK(this,this.b),this.a=t==null?0:Rr(t)),this.a},h.jd=function(){return sK(this,this.b)},h.kd=function(){return sK(this,this.c)},h.zi=function(t){this.a=t},h.Ai=function(t){Phe(this,this.b,t)},h.ld=function(t){var r;return r=sK(this,this.c),Phe(this,this.c,t),r},h.a=0,k(Gt,"DynamicEObjectImpl/BasicEMapEntry",1500),_(1501,1,{115:1},rqe),h.Kk=function(t){throw Y(new Nn)},h.ii=function(t){throw Y(new Nn)},h.ji=function(t,r){throw Y(new Nn)},h.ki=function(t){throw Y(new Nn)},h.Lk=function(){throw Y(new Nn)},h.Mk=function(){return this.a},h.Nk=function(){return this.b},h.Ok=function(){return this.c},h.Pk=function(){throw Y(new Nn)},h.Qk=function(t){throw Y(new Nn)},h.Rk=function(t){this.a=t},h.Sk=function(t){this.b=t},h.Tk=function(t){this.c=t},k(Gt,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1501),_(508,162,{110:1,95:1,94:1,594:1,159:1,57:1,115:1,52:1,101:1,508:1,162:1,118:1,119:1},Hue),h.xh=function(t){return lbe(this,t)},h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.d;case 2:return o?(!this.b&&(this.b=new Zu((_t(),Ro),zs,this)),this.b):(!this.b&&(this.b=new Zu((_t(),Ro),zs,this)),s6(this.b));case 3:return lut(this);case 4:return!this.a&&(this.a=new yi(Y1,this,4)),this.a;case 5:return!this.c&&(this.c=new oE(Y1,this,5)),this.c}return qc(this,t-ln((_t(),Og)),Nt((a=l(Vt(this,16),29),a||Og),t),r,o)},h.Ph=function(t,r,o){var a,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 3:return this.Cb&&(o=(u=this.Db>>16,u>=0?lbe(this,o):this.Cb.Qh(this,-1-u,null,o))),Kfe(this,l(t,159),o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),Og)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Og)),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 2:return!this.b&&(this.b=new Zu((_t(),Ro),zs,this)),q8(this.b,t,o);case 3:return Kfe(this,null,o);case 4:return!this.a&&(this.a=new yi(Y1,this,4)),_o(this.a,t,o)}return u=l(Nt((a=l(Vt(this,16),29),a||(_t(),Og)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),Og)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!lut(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return zc(this,t-ln((_t(),Og)),Nt((r=l(Vt(this,16),29),r||Og),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Uon(this,In(r));return;case 2:!this.b&&(this.b=new Zu((_t(),Ro),zs,this)),Cj(this.b,r);return;case 3:Swt(this,l(r,159));return;case 4:!this.a&&(this.a=new yi(Y1,this,4)),vn(this.a),!this.a&&(this.a=new yi(Y1,this,4)),ti(this.a,l(r,18));return;case 5:!this.c&&(this.c=new oE(Y1,this,5)),vn(this.c),!this.c&&(this.c=new oE(Y1,this,5)),ti(this.c,l(r,18));return}Xc(this,t-ln((_t(),Og)),Nt((o=l(Vt(this,16),29),o||Og),t),r)},h.fi=function(){return _t(),Og},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:uge(this,null);return;case 2:!this.b&&(this.b=new Zu((_t(),Ro),zs,this)),this.b.c.$b();return;case 3:Swt(this,null);return;case 4:!this.a&&(this.a=new yi(Y1,this,4)),vn(this.a);return;case 5:!this.c&&(this.c=new oE(Y1,this,5)),vn(this.c);return}Jc(this,t-ln((_t(),Og)),Nt((r=l(Vt(this,16),29),r||Og),t))},h.Ib=function(){return agt(this)},h.d=null,k(Gt,"EAnnotationImpl",508),_(145,718,NEe,pu),h.Ei=function(t,r){stn(this,t,l(r,45))},h.Uk=function(t,r){return urn(this,l(t,45),r)},h.Yi=function(t){return l(l(this.c,72).Yi(t),138)},h.Gi=function(){return l(this.c,72).Gi()},h.Hi=function(){return l(this.c,72).Hi()},h.Ii=function(t){return l(this.c,72).Ii(t)},h.Vk=function(t,r){return q8(this,t,r)},h.Dk=function(t){return l(this.c,78).Dk(t)},h.$j=function(){},h.Oj=function(){return l(this.c,78).Oj()},h.ak=function(t,r,o){var a;return a=l(mc(this.b).ti().pi(this.b),138),a.zi(t),a.Ai(r),a.ld(o),a},h.bk=function(){return new _ce(this)},h.Wb=function(t){Cj(this,t)},h.Ek=function(){l(this.c,78).Ek()},k(Fr,"EcoreEMap",145),_(170,145,NEe,Zu),h.Zj=function(){var t,r,o,a,u,f;if(this.d==null){for(f=we(y3e,kEe,67,2*this.f+1,0,1),o=this.c.Jc();o.e!=o.i.gc();)r=l(o.Wj(),138),a=r.yi(),u=(a&sr)%f.length,t=f[u],!t&&(t=f[u]=new _ce(this)),t.Ec(r);this.d=f}},k(Gt,"EAnnotationImpl/1",170),_(294,444,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,473:1,52:1,101:1,162:1,294:1,118:1,119:1}),h.Ih=function(t,r,o){var a,u;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),!!this.Hk();case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q}return qc(this,t-ln(this.fi()),Nt((a=l(Vt(this,16),29),a||this.fi()),t),r,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 9:return sW(this,o)}return u=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o)},h.Th=function(t){var r,o;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0)}return zc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:this.ri(In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:cg(this,l(r,15).a);return;case 5:this.Xk(l(r,15).a);return;case 8:Yb(this,l(r,146));return;case 9:a=Zd(this,l(r,88),null),a&&a.mj();return}Xc(this,t-ln(this.fi()),Nt((o=l(Vt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),uLt},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:this.ri(null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:cg(this,0);return;case 5:this.Xk(1);return;case 8:Yb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return}Jc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.mi=function(){Sl(this),this.Bb|=1},h.Fk=function(){return Sl(this)},h.Gk=function(){return this.t},h.Hk=function(){var t;return t=this.t,t>1||t==-1},h.Qi=function(){return(this.Bb&512)!=0},h.Wk=function(t,r){return o1e(this,t,r)},h.Xk=function(t){cy(this,t)},h.Ib=function(){return Eme(this)},h.s=0,h.t=1,k(Gt,"ETypedElementImpl",294),_(454,294,{110:1,95:1,94:1,159:1,199:1,57:1,182:1,69:1,115:1,473:1,52:1,101:1,162:1,454:1,294:1,118:1,119:1,689:1}),h.xh=function(t){return Q1t(this,t)},h.Ih=function(t,r,o){var a,u;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),!!this.Hk();case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Lt(),!!(this.Bb&Tl);case 11:return Lt(),!!(this.Bb&yp);case 12:return Lt(),!!(this.Bb&Ry);case 13:return this.j;case 14:return J_(this);case 15:return Lt(),!!(this.Bb&yu);case 16:return Lt(),!!(this.Bb&$f);case 17:return ny(this)}return qc(this,t-ln(this.fi()),Nt((a=l(Vt(this,16),29),a||this.fi()),t),r,o)},h.Ph=function(t,r,o){var a,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 17:return this.Cb&&(o=(u=this.Db>>16,u>=0?Q1t(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,17,o)}return f=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),f.uk().xk(this,Ha(this),r-ln(this.fi()),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 9:return sW(this,o);case 17:return Sc(this,null,17,o)}return u=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o)},h.Th=function(t){var r,o;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.Hk();case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0);case 10:return(this.Bb&Tl)==0;case 11:return(this.Bb&yp)!=0;case 12:return(this.Bb&Ry)!=0;case 13:return this.j!=null;case 14:return J_(this)!=null;case 15:return(this.Bb&yu)!=0;case 16:return(this.Bb&$f)!=0;case 17:return!!ny(this)}return zc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:OW(this,In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:cg(this,l(r,15).a);return;case 5:this.Xk(l(r,15).a);return;case 8:Yb(this,l(r,146));return;case 9:a=Zd(this,l(r,88),null),a&&a.mj();return;case 10:L_(this,Ye(Ke(r)));return;case 11:j_(this,Ye(Ke(r)));return;case 12:M_(this,Ye(Ke(r)));return;case 13:ede(this,In(r));return;case 15:P_(this,Ye(Ke(r)));return;case 16:F_(this,Ye(Ke(r)));return}Xc(this,t-ln(this.fi()),Nt((o=l(Vt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),aLt},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,89)&&Sy(Pu(l(this.Cb,89)),4),Ma(this,null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:cg(this,0);return;case 5:this.Xk(1);return;case 8:Yb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 10:L_(this,!0);return;case 11:j_(this,!1);return;case 12:M_(this,!1);return;case 13:this.i=null,Tj(this,null);return;case 15:P_(this,!1);return;case 16:F_(this,!1);return}Jc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.mi=function(){u_(rs((mu(),ao),this)),Sl(this),this.Bb|=1},h.nk=function(){return this.f},h.gk=function(){return J_(this)},h.ok=function(){return ny(this)},h.sk=function(){return null},h.Yk=function(){return this.k},h.Jj=function(){return this.n},h.tk=function(){return m7(this)},h.uk=function(){var t,r,o,a,u,f,p,m,y;return this.p||(o=ny(this),(o.i==null&&Ff(o),o.i).length,a=this.sk(),a&&ln(ny(a)),u=Sl(this),p=u.ik(),t=p?p.i&1?p==uu?Yr:p==Rn?Ti:p==Ev?Ux:p==Ki?fi:p==pw?Y0:p==S2?J0:p==Eu?ET:mI:p:null,r=J_(this),m=u.gk(),Mgn(this),this.Bb&$f&&((f=mbe((mu(),ao),o))&&f!=this||(f=MS(rs(ao,this))))?this.p=new bnt(this,f):this.Hk()?this.$k()?a?this.Bb&yu?t?this._k()?this.p=new Lb(47,t,this,a):this.p=new Lb(5,t,this,a):this._k()?this.p=new Bb(46,this,a):this.p=new Bb(4,this,a):t?this._k()?this.p=new Lb(49,t,this,a):this.p=new Lb(7,t,this,a):this._k()?this.p=new Bb(48,this,a):this.p=new Bb(6,this,a):this.Bb&yu?t?t==dm?this.p=new rg(50,zDt,this):this._k()?this.p=new rg(43,t,this):this.p=new rg(1,t,this):this._k()?this.p=new og(42,this):this.p=new og(0,this):t?t==dm?this.p=new rg(41,zDt,this):this._k()?this.p=new rg(45,t,this):this.p=new rg(3,t,this):this._k()?this.p=new og(44,this):this.p=new og(2,this):ae(u,160)?t==TU?this.p=new og(40,this):this.Bb&512?this.Bb&yu?t?this.p=new rg(9,t,this):this.p=new og(8,this):t?this.p=new rg(11,t,this):this.p=new og(10,this):this.Bb&yu?t?this.p=new rg(13,t,this):this.p=new og(12,this):t?this.p=new rg(15,t,this):this.p=new og(14,this):a?(y=a.t,y>1||y==-1?this._k()?this.Bb&yu?t?this.p=new Lb(25,t,this,a):this.p=new Bb(24,this,a):t?this.p=new Lb(27,t,this,a):this.p=new Bb(26,this,a):this.Bb&yu?t?this.p=new Lb(29,t,this,a):this.p=new Bb(28,this,a):t?this.p=new Lb(31,t,this,a):this.p=new Bb(30,this,a):this._k()?this.Bb&yu?t?this.p=new Lb(33,t,this,a):this.p=new Bb(32,this,a):t?this.p=new Lb(35,t,this,a):this.p=new Bb(34,this,a):this.Bb&yu?t?this.p=new Lb(37,t,this,a):this.p=new Bb(36,this,a):t?this.p=new Lb(39,t,this,a):this.p=new Bb(38,this,a)):this._k()?this.Bb&yu?t?this.p=new rg(17,t,this):this.p=new og(16,this):t?this.p=new rg(19,t,this):this.p=new og(18,this):this.Bb&yu?t?this.p=new rg(21,t,this):this.p=new og(20,this):t?this.p=new rg(23,t,this):this.p=new og(22,this):this.Zk()?this._k()?this.p=new aot(l(u,29),this,a):this.p=new Mhe(l(u,29),this,a):ae(u,160)?t==TU?this.p=new og(40,this):this.Bb&yu?t?this.p=new ist(r,m,this,(cY(),p==Rn?P3e:p==uu?R3e:p==pw?j3e:p==Ev?M3e:p==Ki?L3e:p==S2?F3e:p==Eu?O3e:p==al?D3e:$re)):this.p=new Eat(l(u,160),r,m,this):t?this.p=new rst(r,m,this,(cY(),p==Rn?P3e:p==uu?R3e:p==pw?j3e:p==Ev?M3e:p==Ki?L3e:p==S2?F3e:p==Eu?O3e:p==al?D3e:$re)):this.p=new vat(l(u,160),r,m,this):this.$k()?a?this.Bb&yu?this._k()?this.p=new cot(l(u,29),this,a):this.p=new Tfe(l(u,29),this,a):this._k()?this.p=new uot(l(u,29),this,a):this.p=new PV(l(u,29),this,a):this.Bb&yu?this._k()?this.p=new nit(l(u,29),this):this.p=new Fde(l(u,29),this):this._k()?this.p=new tit(l(u,29),this):this.p=new EV(l(u,29),this):this._k()?a?this.Bb&yu?this.p=new lot(l(u,29),this,a):this.p=new Efe(l(u,29),this,a):this.Bb&yu?this.p=new iit(l(u,29),this):this.p=new $de(l(u,29),this):a?this.Bb&yu?this.p=new dot(l(u,29),this,a):this.p=new Sfe(l(u,29),this,a):this.Bb&yu?this.p=new rit(l(u,29),this):this.p=new cP(l(u,29),this)),this.p},h.pk=function(){return(this.Bb&Tl)!=0},h.Zk=function(){return!1},h.$k=function(){return!1},h.qk=function(){return(this.Bb&$f)!=0},h.vk=function(){return uK(this)},h._k=function(){return!1},h.rk=function(){return(this.Bb&yu)!=0},h.al=function(t){this.k=t},h.ri=function(t){OW(this,t)},h.Ib=function(){return U7(this)},h.e=!1,h.n=0,k(Gt,"EStructuralFeatureImpl",454),_(336,454,{110:1,95:1,94:1,38:1,159:1,199:1,57:1,182:1,69:1,115:1,473:1,52:1,101:1,336:1,162:1,454:1,294:1,118:1,119:1,689:1},eq),h.Ih=function(t,r,o){var a,u;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),!!gme(this);case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Lt(),!!(this.Bb&Tl);case 11:return Lt(),!!(this.Bb&yp);case 12:return Lt(),!!(this.Bb&Ry);case 13:return this.j;case 14:return J_(this);case 15:return Lt(),!!(this.Bb&yu);case 16:return Lt(),!!(this.Bb&$f);case 17:return ny(this);case 18:return Lt(),!!(this.Bb&Ws);case 19:return r?IK(this):Clt(this)}return qc(this,t-ln((_t(),wv)),Nt((a=l(Vt(this,16),29),a||wv),t),r,o)},h.Th=function(t){var r,o;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return gme(this);case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0);case 10:return(this.Bb&Tl)==0;case 11:return(this.Bb&yp)!=0;case 12:return(this.Bb&Ry)!=0;case 13:return this.j!=null;case 14:return J_(this)!=null;case 15:return(this.Bb&yu)!=0;case 16:return(this.Bb&$f)!=0;case 17:return!!ny(this);case 18:return(this.Bb&Ws)!=0;case 19:return!!Clt(this)}return zc(this,t-ln((_t(),wv)),Nt((r=l(Vt(this,16),29),r||wv),t))},h.$h=function(t,r){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:OW(this,In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:cg(this,l(r,15).a);return;case 5:MQe(this,l(r,15).a);return;case 8:Yb(this,l(r,146));return;case 9:a=Zd(this,l(r,88),null),a&&a.mj();return;case 10:L_(this,Ye(Ke(r)));return;case 11:j_(this,Ye(Ke(r)));return;case 12:M_(this,Ye(Ke(r)));return;case 13:ede(this,In(r));return;case 15:P_(this,Ye(Ke(r)));return;case 16:F_(this,Ye(Ke(r)));return;case 18:eY(this,Ye(Ke(r)));return}Xc(this,t-ln((_t(),wv)),Nt((o=l(Vt(this,16),29),o||wv),t),r)},h.fi=function(){return _t(),wv},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,89)&&Sy(Pu(l(this.Cb,89)),4),Ma(this,null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:cg(this,0);return;case 5:this.b=0,cy(this,1);return;case 8:Yb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 10:L_(this,!0);return;case 11:j_(this,!1);return;case 12:M_(this,!1);return;case 13:this.i=null,Tj(this,null);return;case 15:P_(this,!1);return;case 16:F_(this,!1);return;case 18:eY(this,!1);return}Jc(this,t-ln((_t(),wv)),Nt((r=l(Vt(this,16),29),r||wv),t))},h.mi=function(){IK(this),u_(rs((mu(),ao),this)),Sl(this),this.Bb|=1},h.Hk=function(){return gme(this)},h.Wk=function(t,r){return this.b=0,this.a=null,o1e(this,t,r)},h.Xk=function(t){MQe(this,t)},h.Ib=function(){var t;return this.Db&64?U7(this):(t=new ml(U7(this)),t.a+=" (iD: ",Zp(t,(this.Bb&Ws)!=0),t.a+=")",t.a)},h.b=0,k(Gt,"EAttributeImpl",336),_(361,444,{110:1,95:1,94:1,146:1,159:1,199:1,57:1,115:1,52:1,101:1,361:1,162:1,118:1,119:1,688:1}),h.bl=function(t){return t.Ah()==this},h.xh=function(t){return MY(this,t)},h.yh=function(t,r){this.w=null,this.Db=r<<16|this.Db&255,this.Cb=t},h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return I0(this);case 4:return this.gk();case 5:return this.F;case 6:return r?mc(this):d_(this);case 7:return!this.A&&(this.A=new du(Ka,this,7)),this.A}return qc(this,t-ln(this.fi()),Nt((a=l(Vt(this,16),29),a||this.fi()),t),r,o)},h.Ph=function(t,r,o){var a,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 6:return this.Cb&&(o=(u=this.Db>>16,u>=0?MY(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,6,o)}return f=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),f.uk().xk(this,Ha(this),r-ln(this.fi()),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 6:return Sc(this,null,6,o);case 7:return!this.A&&(this.A=new du(Ka,this,7)),_o(this.A,t,o)}return u=l(Nt((a=l(Vt(this,16),29),a||this.fi()),r),69),u.uk().yk(this,Ha(this),r-ln(this.fi()),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!I0(this);case 4:return this.gk()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!d_(this);case 7:return!!this.A&&this.A.i!=0}return zc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:jP(this,In(r));return;case 2:uV(this,In(r));return;case 5:ix(this,In(r));return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A),!this.A&&(this.A=new du(Ka,this,7)),ti(this.A,l(r,18));return}Xc(this,t-ln(this.fi()),Nt((o=l(Vt(this,16),29),o||this.fi()),t),r)},h.fi=function(){return _t(),tLt},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,187)&&(l(this.Cb,187).tb=null),Ma(this,null);return;case 2:I_(this,null),y_(this,this.D);return;case 5:ix(this,null);return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A);return}Jc(this,t-ln(this.fi()),Nt((r=l(Vt(this,16),29),r||this.fi()),t))},h.fk=function(){var t;return this.G==-1&&(this.G=(t=mc(this),t?gg(t.si(),this):-1)),this.G},h.gk=function(){return null},h.hk=function(){return mc(this)},h.cl=function(){return this.v},h.ik=function(){return I0(this)},h.jk=function(){return this.D!=null?this.D:this.B},h.kk=function(){return this.F},h.dk=function(t){return AJ(this,t)},h.dl=function(t){this.v=t},h.el=function(t){ght(this,t)},h.fl=function(t){this.C=t},h.ri=function(t){jP(this,t)},h.Ib=function(){return Yj(this)},h.C=null,h.D=null,h.G=-1,k(Gt,"EClassifierImpl",361),_(89,361,{110:1,95:1,94:1,29:1,146:1,159:1,199:1,57:1,115:1,52:1,101:1,89:1,361:1,162:1,474:1,118:1,119:1,688:1},Wue),h.bl=function(t){return Wnn(this,t.Ah())},h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return I0(this);case 4:return null;case 5:return this.F;case 6:return r?mc(this):d_(this);case 7:return!this.A&&(this.A=new du(Ka,this,7)),this.A;case 8:return Lt(),!!(this.Bb&256);case 9:return Lt(),!!(this.Bb&512);case 10:return ds(this);case 11:return!this.q&&(this.q=new ke(Dl,this,11,10)),this.q;case 12:return CE(this);case 13:return LC(this);case 14:return LC(this),this.r;case 15:return CE(this),this.k;case 16:return ime(this);case 17:return NJ(this);case 18:return Ff(this);case 19:return D7(this);case 20:return CE(this),this.o;case 21:return!this.s&&(this.s=new ke(au,this,21,17)),this.s;case 22:return oa(this);case 23:return pJ(this)}return qc(this,t-ln((_t(),X1)),Nt((a=l(Vt(this,16),29),a||X1),t),r,o)},h.Ph=function(t,r,o){var a,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 6:return this.Cb&&(o=(u=this.Db>>16,u>=0?MY(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,6,o);case 11:return!this.q&&(this.q=new ke(Dl,this,11,10)),Pa(this.q,t,o);case 21:return!this.s&&(this.s=new ke(au,this,21,17)),Pa(this.s,t,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),X1)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),X1)),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 6:return Sc(this,null,6,o);case 7:return!this.A&&(this.A=new du(Ka,this,7)),_o(this.A,t,o);case 11:return!this.q&&(this.q=new ke(Dl,this,11,10)),_o(this.q,t,o);case 21:return!this.s&&(this.s=new ke(au,this,21,17)),_o(this.s,t,o);case 22:return _o(oa(this),t,o)}return u=l(Nt((a=l(Vt(this,16),29),a||(_t(),X1)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),X1)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!I0(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!d_(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&oa(this.u.a).i!=0&&!(this.n&&AY(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return CE(this).i!=0;case 13:return LC(this).i!=0;case 14:return LC(this),this.r.i!=0;case 15:return CE(this),this.k.i!=0;case 16:return ime(this).i!=0;case 17:return NJ(this).i!=0;case 18:return Ff(this).i!=0;case 19:return D7(this).i!=0;case 20:return CE(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&AY(this.n);case 23:return pJ(this).i!=0}return zc(this,t-ln((_t(),X1)),Nt((r=l(Vt(this,16),29),r||X1),t))},h.Wh=function(t){var r;return r=this.i==null||this.q&&this.q.i!=0?null:iD(this,t),r||W0e(this,t)},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:jP(this,In(r));return;case 2:uV(this,In(r));return;case 5:ix(this,In(r));return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A),!this.A&&(this.A=new du(Ka,this,7)),ti(this.A,l(r,18));return;case 8:u1e(this,Ye(Ke(r)));return;case 9:c1e(this,Ye(Ke(r)));return;case 10:jC(ds(this)),ti(ds(this),l(r,18));return;case 11:!this.q&&(this.q=new ke(Dl,this,11,10)),vn(this.q),!this.q&&(this.q=new ke(Dl,this,11,10)),ti(this.q,l(r,18));return;case 21:!this.s&&(this.s=new ke(au,this,21,17)),vn(this.s),!this.s&&(this.s=new ke(au,this,21,17)),ti(this.s,l(r,18));return;case 22:vn(oa(this)),ti(oa(this),l(r,18));return}Xc(this,t-ln((_t(),X1)),Nt((o=l(Vt(this,16),29),o||X1),t),r)},h.fi=function(){return _t(),X1},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,187)&&(l(this.Cb,187).tb=null),Ma(this,null);return;case 2:I_(this,null),y_(this,this.D);return;case 5:ix(this,null);return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A);return;case 8:u1e(this,!1);return;case 9:c1e(this,!1);return;case 10:this.u&&jC(this.u);return;case 11:!this.q&&(this.q=new ke(Dl,this,11,10)),vn(this.q);return;case 21:!this.s&&(this.s=new ke(au,this,21,17)),vn(this.s);return;case 22:this.n&&vn(this.n);return}Jc(this,t-ln((_t(),X1)),Nt((r=l(Vt(this,16),29),r||X1),t))},h.mi=function(){var t,r;if(CE(this),LC(this),ime(this),NJ(this),Ff(this),D7(this),pJ(this),z3(Ton(Pu(this))),this.s)for(t=0,r=this.s.i;t=0;--r)oe(this,r);return O1e(this,t)},h.Ek=function(){vn(this)},h.Xi=function(t,r){return zft(this,t,r)},k(Fr,"EcoreEList",630),_(494,630,ws,zO),h.Ji=function(){return!1},h.Jj=function(){return this.c},h.Kj=function(){return!1},h.ml=function(){return!0},h.Qi=function(){return!0},h.Ui=function(t,r){return r},h.Wi=function(){return!1},h.c=0,k(Fr,"EObjectEList",494),_(82,494,ws,yi),h.Kj=function(){return!0},h.kl=function(){return!1},h.$k=function(){return!0},k(Fr,"EObjectContainmentEList",82),_(547,82,ws,P8),h.Li=function(){this.b=!0},h.Oj=function(){return this.b},h.Ek=function(){var t;vn(this),Ju(this.e)?(t=this.b,this.b=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.b=!1},h.b=!1,k(Fr,"EObjectContainmentEList/Unsettable",547),_(1142,547,ws,tst),h.Ri=function(t,r){var o,a;return o=l(uC(this,t,r),88),Ju(this.e)&&LA(this,new a6(this.a,7,(_t(),nLt),Re(r),(a=o.c,ae(a,89)?l(a,29):Ml),t)),o},h.Sj=function(t,r){return g1n(this,l(t,88),r)},h.Tj=function(t,r){return p1n(this,l(t,88),r)},h.Uj=function(t,r,o){return w0n(this,l(t,88),l(r,88),o)},h.Gj=function(t,r,o,a,u){switch(t){case 3:return j3(this,t,r,o,a,this.i>1);case 5:return j3(this,t,r,o,a,this.i-l(o,16).gc()>0);default:return new cp(this.e,t,this.c,r,o,a,!0)}},h.Rj=function(){return!0},h.Oj=function(){return AY(this)},h.Ek=function(){vn(this)},k(Gt,"EClassImpl/1",1142),_(1156,1155,xEe),h.bj=function(t){var r,o,a,u,f,p,m;if(o=t.ej(),o!=8){if(a=J1n(t),a==0)switch(o){case 1:case 9:{m=t.ij(),m!=null&&(r=Pu(l(m,474)),!r.c&&(r.c=new NA),uj(r.c,t.hj())),p=t.gj(),p!=null&&(u=l(p,474),u.Bb&1||(r=Pu(u),!r.c&&(r.c=new NA),Tn(r.c,l(t.hj(),29))));break}case 3:{p=t.gj(),p!=null&&(u=l(p,474),u.Bb&1||(r=Pu(u),!r.c&&(r.c=new NA),Tn(r.c,l(t.hj(),29))));break}case 5:{if(p=t.gj(),p!=null)for(f=l(p,18).Jc();f.Ob();)u=l(f.Pb(),474),u.Bb&1||(r=Pu(u),!r.c&&(r.c=new NA),Tn(r.c,l(t.hj(),29)));break}case 4:{m=t.ij(),m!=null&&(u=l(m,474),u.Bb&1||(r=Pu(u),!r.c&&(r.c=new NA),uj(r.c,t.hj())));break}case 6:{if(m=t.ij(),m!=null)for(f=l(m,18).Jc();f.Ob();)u=l(f.Pb(),474),u.Bb&1||(r=Pu(u),!r.c&&(r.c=new NA),uj(r.c,t.hj()));break}}this.ol(a)}},h.ol=function(t){uyt(this,t)},h.b=63,k(Gt,"ESuperAdapter",1156),_(1157,1156,xEe,QXe),h.ol=function(t){Sy(this,t)},k(Gt,"EClassImpl/10",1157),_(1146,706,ws),h.Ci=function(t,r){return WY(this,t,r)},h.Di=function(t){return j1t(this,t)},h.Ei=function(t,r){D6(this,t,r)},h.Fi=function(t){r6(this,t)},h.Yi=function(t){return Ppe(this,t)},h.Vi=function(t,r){return aK(this,t,r)},h.Uk=function(t,r){throw Y(new Nn)},h.Gi=function(){return new ES(this)},h.Hi=function(){return new IO(this)},h.Ii=function(t){return v6(this,t)},h.Vk=function(t,r){throw Y(new Nn)},h.Dk=function(t){return this},h.Oj=function(){return this.i!=0},h.Wb=function(t){throw Y(new Nn)},h.Ek=function(){throw Y(new Nn)},k(Fr,"EcoreEList/UnmodifiableEList",1146),_(334,1146,ws,Qv),h.Wi=function(){return!1},k(Fr,"EcoreEList/UnmodifiableEList/FastCompare",334),_(1149,334,ws,upt),h.bd=function(t){var r,o,a;if(ae(t,182)&&(r=l(t,182),o=r.Jj(),o!=-1)){for(a=this.i;o4)if(this.dk(t)){if(this.$k()){if(a=l(t,52),o=a.Bh(),m=o==this.b&&(this.kl()?a.vh(a.Ch(),l(Nt(Ja(this.b),this.Jj()).Fk(),29).ik())==Mo(l(Nt(Ja(this.b),this.Jj()),20)).n:-1-a.Ch()==this.Jj()),this.ll()&&!m&&!o&&a.Gh()){for(u=0;u1||a==-1)):!1},h.kl=function(){var t,r,o;return r=Nt(Ja(this.b),this.Jj()),ae(r,104)?(t=l(r,20),o=Mo(t),!!o):!1},h.ll=function(){var t,r;return r=Nt(Ja(this.b),this.Jj()),ae(r,104)?(t=l(r,20),(t.Bb&No)!=0):!1},h.bd=function(t){var r,o,a,u;if(a=this.xj(t),a>=0)return a;if(this.ml()){for(o=0,u=this.Cj();o=0;--t)dD(this,t,this.vj(t));return this.Dj()},h.Oc=function(t){var r;if(this.ll())for(r=this.Cj()-1;r>=0;--r)dD(this,r,this.vj(r));return this.Ej(t)},h.Ek=function(){jC(this)},h.Xi=function(t,r){return ddt(this,t,r)},k(Fr,"DelegatingEcoreEList",751),_(1152,751,IEe,git),h.oj=function(t,r){bnn(this,t,l(r,29))},h.pj=function(t){utn(this,l(t,29))},h.vj=function(t){var r,o;return r=l(oe(oa(this.a),t),88),o=r.c,ae(o,89)?l(o,29):(_t(),Ml)},h.Aj=function(t){var r,o;return r=l(_y(oa(this.a),t),88),o=r.c,ae(o,89)?l(o,29):(_t(),Ml)},h.Bj=function(t,r){return zbn(this,t,l(r,29))},h.Ji=function(){return!1},h.Gj=function(t,r,o,a,u){return null},h.qj=function(){return new tZe(this)},h.rj=function(){vn(oa(this.a))},h.sj=function(t){return ugt(this,t)},h.tj=function(t){var r,o;for(o=t.Jc();o.Ob();)if(r=o.Pb(),!ugt(this,r))return!1;return!0},h.uj=function(t){var r,o,a;if(ae(t,16)&&(a=l(t,16),a.gc()==oa(this.a).i)){for(r=a.Jc(),o=new tn(this);r.Ob();)if(be(r.Pb())!==be(rn(o)))return!1;return!0}return!1},h.wj=function(){var t,r,o,a,u;for(o=1,r=new tn(oa(this.a));r.e!=r.i.gc();)t=l(rn(r),88),a=(u=t.c,ae(u,89)?l(u,29):(_t(),Ml)),o=31*o+(a?s0(a):0);return o},h.xj=function(t){var r,o,a,u;for(a=0,o=new tn(oa(this.a));o.e!=o.i.gc();){if(r=l(rn(o),88),be(t)===be((u=r.c,ae(u,89)?l(u,29):(_t(),Ml))))return a;++a}return-1},h.yj=function(){return oa(this.a).i==0},h.zj=function(){return null},h.Cj=function(){return oa(this.a).i},h.Dj=function(){var t,r,o,a,u,f;for(f=oa(this.a).i,u=we(Ii,Rt,1,f,5,1),o=0,r=new tn(oa(this.a));r.e!=r.i.gc();)t=l(rn(r),88),u[o++]=(a=t.c,ae(a,89)?l(a,29):(_t(),Ml));return u},h.Ej=function(t){var r,o,a,u,f,p,m;for(m=oa(this.a).i,t.lengthm&&ii(t,m,null),a=0,o=new tn(oa(this.a));o.e!=o.i.gc();)r=l(rn(o),88),f=(p=r.c,ae(p,89)?l(p,29):(_t(),Ml)),ii(t,a++,f);return t},h.Fj=function(){var t,r,o,a,u;for(u=new Xp,u.a+="[",t=oa(this.a),r=0,a=oa(this.a).i;r>16,u>=0?MY(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,6,o);case 9:return!this.a&&(this.a=new ke(Op,this,9,5)),Pa(this.a,t,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),Z1)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Z1)),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 6:return Sc(this,null,6,o);case 7:return!this.A&&(this.A=new du(Ka,this,7)),_o(this.A,t,o);case 9:return!this.a&&(this.a=new ke(Op,this,9,5)),_o(this.a,t,o)}return u=l(Nt((a=l(Vt(this,16),29),a||(_t(),Z1)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),Z1)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!I0(this);case 4:return!!Yge(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!d_(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return zc(this,t-ln((_t(),Z1)),Nt((r=l(Vt(this,16),29),r||Z1),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:jP(this,In(r));return;case 2:uV(this,In(r));return;case 5:ix(this,In(r));return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A),!this.A&&(this.A=new du(Ka,this,7)),ti(this.A,l(r,18));return;case 8:Hj(this,Ye(Ke(r)));return;case 9:!this.a&&(this.a=new ke(Op,this,9,5)),vn(this.a),!this.a&&(this.a=new ke(Op,this,9,5)),ti(this.a,l(r,18));return}Xc(this,t-ln((_t(),Z1)),Nt((o=l(Vt(this,16),29),o||Z1),t),r)},h.fi=function(){return _t(),Z1},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,187)&&(l(this.Cb,187).tb=null),Ma(this,null);return;case 2:I_(this,null),y_(this,this.D);return;case 5:ix(this,null);return;case 7:!this.A&&(this.A=new du(Ka,this,7)),vn(this.A);return;case 8:Hj(this,!0);return;case 9:!this.a&&(this.a=new ke(Op,this,9,5)),vn(this.a);return}Jc(this,t-ln((_t(),Z1)),Nt((r=l(Vt(this,16),29),r||Z1),t))},h.mi=function(){var t,r;if(this.a)for(t=0,r=this.a.i;t>16==5?l(this.Cb,682):null}return qc(this,t-ln((_t(),Dg)),Nt((a=l(Vt(this,16),29),a||Dg),t),r,o)},h.Ph=function(t,r,o){var a,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 5:return this.Cb&&(o=(u=this.Db>>16,u>=0?lbt(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,5,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),Dg)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Dg)),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 5:return Sc(this,null,5,o)}return u=l(Nt((a=l(Vt(this,16),29),a||(_t(),Dg)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),Dg)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&l(this.Cb,682))}return zc(this,t-ln((_t(),Dg)),Nt((r=l(Vt(this,16),29),r||Dg),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Ma(this,In(r));return;case 2:pK(this,l(r,15).a);return;case 3:m0t(this,l(r,2018));return;case 4:bK(this,In(r));return}Xc(this,t-ln((_t(),Dg)),Nt((o=l(Vt(this,16),29),o||Dg),t),r)},h.fi=function(){return _t(),Dg},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:Ma(this,null);return;case 2:pK(this,0);return;case 3:m0t(this,null);return;case 4:bK(this,null);return}Jc(this,t-ln((_t(),Dg)),Nt((r=l(Vt(this,16),29),r||Dg),t))},h.Ib=function(){var t;return t=this.c,t??this.zb},h.b=null,h.c=null,h.d=0,k(Gt,"EEnumLiteralImpl",575);var lCn=Hr(Gt,"EFactoryImpl/InternalEDateTimeFormat");_(488,1,{2093:1},eO),k(Gt,"EFactoryImpl/1ClientInternalEDateTimeFormat",488),_(251,119,{110:1,95:1,94:1,88:1,57:1,115:1,52:1,101:1,251:1,118:1,119:1},Ym),h.zh=function(t,r,o){var a;return o=Sc(this,t,r,o),this.e&&ae(t,182)&&(a=O7(this,this.e),a!=this.c&&(o=ox(this,a,o))),o},h.Ih=function(t,r,o){var a;switch(t){case 0:return this.f;case 1:return!this.d&&(this.d=new yi(Go,this,1)),this.d;case 2:return r?z7(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return r?kY(this):this.a}return qc(this,t-ln((_t(),dw)),Nt((a=l(Vt(this,16),29),a||dw),t),r,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return Ypt(this,null,o);case 1:return!this.d&&(this.d=new yi(Go,this,1)),_o(this.d,t,o);case 3:return Kpt(this,null,o)}return u=l(Nt((a=l(Vt(this,16),29),a||(_t(),dw)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),dw)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return zc(this,t-ln((_t(),dw)),Nt((r=l(Vt(this,16),29),r||dw),t))},h.$h=function(t,r){var o;switch(t){case 0:Cbt(this,l(r,88));return;case 1:!this.d&&(this.d=new yi(Go,this,1)),vn(this.d),!this.d&&(this.d=new yi(Go,this,1)),ti(this.d,l(r,18));return;case 3:_be(this,l(r,88));return;case 4:Gbe(this,l(r,842));return;case 5:w_(this,l(r,146));return}Xc(this,t-ln((_t(),dw)),Nt((o=l(Vt(this,16),29),o||dw),t),r)},h.fi=function(){return _t(),dw},h.hi=function(t){var r;switch(t){case 0:Cbt(this,null);return;case 1:!this.d&&(this.d=new yi(Go,this,1)),vn(this.d);return;case 3:_be(this,null);return;case 4:Gbe(this,null);return;case 5:w_(this,null);return}Jc(this,t-ln((_t(),dw)),Nt((r=l(Vt(this,16),29),r||dw),t))},h.Ib=function(){var t;return t=new fc(Zl(this)),t.a+=" (expression: ",DJ(this,t),t.a+=")",t.a};var I3e;k(Gt,"EGenericTypeImpl",251),_(2046,2041,YF),h.Ei=function(t,r){hit(this,t,r)},h.Uk=function(t,r){return hit(this,this.gc(),t),r},h.Yi=function(t){return sa(this.nj(),t)},h.Gi=function(){return this.Hi()},h.nj=function(){return new sZe(this)},h.Hi=function(){return this.Ii(0)},h.Ii=function(t){return this.nj().dd(t)},h.Vk=function(t,r){return gy(this,t,!0),r},h.Ri=function(t,r){var o,a;return a=FY(this,r),o=this.dd(t),o.Rb(a),a},h.Si=function(t,r){var o;gy(this,r,!0),o=this.dd(t),o.Rb(r)},k(Fr,"AbstractSequentialInternalEList",2046),_(485,2046,YF,RO),h.Yi=function(t){return sa(this.nj(),t)},h.Gi=function(){return this.b==null?(tg(),tg(),l5):this.ql()},h.nj=function(){return new Dnt(this.a,this.b)},h.Hi=function(){return this.b==null?(tg(),tg(),l5):this.ql()},h.Ii=function(t){var r,o;if(this.b==null){if(t<0||t>1)throw Y(new Ia(aI+t+", size=0"));return tg(),tg(),l5}for(o=this.ql(),r=0;r0;)if(r=this.c[--this.d],(!this.e||r.nk()!=Ak||r.Jj()!=0)&&(!this.tl()||this.b.Uh(r))){if(f=this.b.Kh(r,this.sl()),this.f=(Lo(),l(r,69).vk()),this.f||r.Hk()){if(this.sl()?(a=l(f,16),this.k=a):(a=l(f,72),this.k=this.j=a),ae(this.k,59)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j.Ii(this.k.gc()):this.k.dd(this.k.gc()),this.p?Imt(this,this.p):Bmt(this))return u=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=l(u,76),t.Jk(),o=t.kd(),this.i=o):(o=u,this.i=o),this.g=-3,!0}else if(f!=null)return this.k=null,this.p=null,o=f,this.i=o,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return u=this.p?this.p.Ub():this.j?this.j.Yi(--this.n):this.k.Xb(--this.n),this.f?(t=l(u,76),t.Jk(),o=t.kd(),this.i=o):(o=u,this.i=o),this.g=-3,!0}},h.Pb=function(){return Rj(this)},h.Tb=function(){return this.a},h.Ub=function(){var t;if(this.g<-1||this.Sb())return--this.a,this.g=0,t=this.i,this.Sb(),t;throw Y(new vs)},h.Vb=function(){return this.a-1},h.Qb=function(){throw Y(new Nn)},h.sl=function(){return!1},h.Wb=function(t){throw Y(new Nn)},h.tl=function(){return!0},h.a=0,h.d=0,h.f=!1,h.g=0,h.n=0,h.o=0;var l5;k(Fr,"EContentsEList/FeatureIteratorImpl",289),_(707,289,JF,jde),h.sl=function(){return!0},k(Fr,"EContentsEList/ResolvingFeatureIteratorImpl",707),_(1159,707,JF,eit),h.tl=function(){return!1},k(Gt,"ENamedElementImpl/1/1",1159),_(1160,289,JF,Qrt),h.tl=function(){return!1},k(Gt,"ENamedElementImpl/1/2",1160),_(40,152,qD,sy,BW,Pi,eK,cp,Vl,Kpe,But,Ype,Uut,hpe,Hut,Zpe,zut,ppe,Gut,Jpe,qut,N3,a6,vW,Xpe,Vut,gpe,Wut),h.Ij=function(){return Ipe(this)},h.Pj=function(){var t;return t=Ipe(this),t?t.gk():null},h.fj=function(t){return this.b==-1&&this.a&&(this.b=this.c.Eh(this.a.Jj(),this.a.nk())),this.c.vh(this.b,t)},h.hj=function(){return this.c},h.Qj=function(){var t;return t=Ipe(this),t?t.rk():!1},h.b=-1,k(Gt,"ENotificationImpl",40),_(408,294,{110:1,95:1,94:1,159:1,199:1,57:1,62:1,115:1,473:1,52:1,101:1,162:1,408:1,294:1,118:1,119:1},tq),h.xh=function(t){return fbt(this,t)},h.Ih=function(t,r,o){var a,u,f;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),f=this.t,f>1||f==-1;case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?l(this.Cb,29):null;case 11:return!this.d&&(this.d=new du(Ka,this,11)),this.d;case 12:return!this.c&&(this.c=new ke(lw,this,12,10)),this.c;case 13:return!this.a&&(this.a=new MO(this,this)),this.a;case 14:return Fu(this)}return qc(this,t-ln((_t(),Lg)),Nt((a=l(Vt(this,16),29),a||Lg),t),r,o)},h.Ph=function(t,r,o){var a,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 10:return this.Cb&&(o=(u=this.Db>>16,u>=0?fbt(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,10,o);case 12:return!this.c&&(this.c=new ke(lw,this,12,10)),Pa(this.c,t,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),Lg)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),Lg)),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 9:return sW(this,o);case 10:return Sc(this,null,10,o);case 11:return!this.d&&(this.d=new du(Ka,this,11)),_o(this.d,t,o);case 12:return!this.c&&(this.c=new ke(lw,this,12,10)),_o(this.c,t,o);case 14:return _o(Fu(this),t,o)}return u=l(Nt((a=l(Vt(this,16),29),a||(_t(),Lg)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),Lg)),t,o)},h.Th=function(t){var r,o,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0);case 10:return!!(this.Db>>16==10&&l(this.Cb,29));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&Fu(this.a.a).i!=0&&!(this.b&&_Y(this.b));case 14:return!!this.b&&_Y(this.b)}return zc(this,t-ln((_t(),Lg)),Nt((r=l(Vt(this,16),29),r||Lg),t))},h.$h=function(t,r){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Ma(this,In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:cg(this,l(r,15).a);return;case 5:cy(this,l(r,15).a);return;case 8:Yb(this,l(r,146));return;case 9:a=Zd(this,l(r,88),null),a&&a.mj();return;case 11:!this.d&&(this.d=new du(Ka,this,11)),vn(this.d),!this.d&&(this.d=new du(Ka,this,11)),ti(this.d,l(r,18));return;case 12:!this.c&&(this.c=new ke(lw,this,12,10)),vn(this.c),!this.c&&(this.c=new ke(lw,this,12,10)),ti(this.c,l(r,18));return;case 13:!this.a&&(this.a=new MO(this,this)),jC(this.a),!this.a&&(this.a=new MO(this,this)),ti(this.a,l(r,18));return;case 14:vn(Fu(this)),ti(Fu(this),l(r,18));return}Xc(this,t-ln((_t(),Lg)),Nt((o=l(Vt(this,16),29),o||Lg),t),r)},h.fi=function(){return _t(),Lg},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:Ma(this,null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:cg(this,0);return;case 5:cy(this,1);return;case 8:Yb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 11:!this.d&&(this.d=new du(Ka,this,11)),vn(this.d);return;case 12:!this.c&&(this.c=new ke(lw,this,12,10)),vn(this.c);return;case 13:this.a&&jC(this.a);return;case 14:this.b&&vn(this.b);return}Jc(this,t-ln((_t(),Lg)),Nt((r=l(Vt(this,16),29),r||Lg),t))},h.mi=function(){var t,r;if(this.c)for(t=0,r=this.c.i;tm&&ii(t,m,null),a=0,o=new tn(Fu(this.a));o.e!=o.i.gc();)r=l(rn(o),88),f=(p=r.c,p||(_t(),bf)),ii(t,a++,f);return t},h.Fj=function(){var t,r,o,a,u;for(u=new Xp,u.a+="[",t=Fu(this.a),r=0,a=Fu(this.a).i;r1);case 5:return j3(this,t,r,o,a,this.i-l(o,16).gc()>0);default:return new cp(this.e,t,this.c,r,o,a,!0)}},h.Rj=function(){return!0},h.Oj=function(){return _Y(this)},h.Ek=function(){vn(this)},k(Gt,"EOperationImpl/2",1343),_(496,1,{2016:1,496:1},gnt),k(Gt,"EPackageImpl/1",496),_(14,82,ws,ke),h.gl=function(){return this.d},h.hl=function(){return this.b},h.kl=function(){return!0},h.b=0,k(Fr,"EObjectContainmentWithInverseEList",14),_(362,14,ws,TS),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectContainmentWithInverseEList/Resolving",362),_(313,362,ws,Xw),h.Li=function(){this.a.tb=null},k(Gt,"EPackageImpl/2",313),_(1255,1,{},aZt),k(Gt,"EPackageImpl/3",1255),_(728,44,DE,$ce),h._b=function(t){return zi(t)?SW(this,t):!!ts(this.f,t)},k(Gt,"EPackageRegistryImpl",728),_(507,294,{110:1,95:1,94:1,159:1,199:1,57:1,2095:1,115:1,473:1,52:1,101:1,162:1,507:1,294:1,118:1,119:1},nq),h.xh=function(t){return hbt(this,t)},h.Ih=function(t,r,o){var a,u,f;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),f=this.t,f>1||f==-1;case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?l(this.Cb,62):null}return qc(this,t-ln((_t(),yv)),Nt((a=l(Vt(this,16),29),a||yv),t),r,o)},h.Ph=function(t,r,o){var a,u,f;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),Pa(this.Ab,t,o);case 10:return this.Cb&&(o=(u=this.Db>>16,u>=0?hbt(this,o):this.Cb.Qh(this,-1-u,null,o))),Sc(this,t,10,o)}return f=l(Nt((a=l(Vt(this,16),29),a||(_t(),yv)),r),69),f.uk().xk(this,Ha(this),r-ln((_t(),yv)),t,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 9:return sW(this,o);case 10:return Sc(this,null,10,o)}return u=l(Nt((a=l(Vt(this,16),29),a||(_t(),yv)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),yv)),t,o)},h.Th=function(t){var r,o,a;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return a=this.t,a>1||a==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0);case 10:return!!(this.Db>>16==10&&l(this.Cb,62))}return zc(this,t-ln((_t(),yv)),Nt((r=l(Vt(this,16),29),r||yv),t))},h.fi=function(){return _t(),yv},k(Gt,"EParameterImpl",507),_(104,454,{110:1,95:1,94:1,159:1,199:1,57:1,20:1,182:1,69:1,115:1,473:1,52:1,101:1,162:1,104:1,454:1,294:1,118:1,119:1,689:1},Hde),h.Ih=function(t,r,o){var a,u,f,p;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return Lt(),!!(this.Bb&256);case 3:return Lt(),!!(this.Bb&512);case 4:return Re(this.s);case 5:return Re(this.t);case 6:return Lt(),p=this.t,p>1||p==-1;case 7:return Lt(),u=this.s,u>=1;case 8:return r?Sl(this):this.r;case 9:return this.q;case 10:return Lt(),!!(this.Bb&Tl);case 11:return Lt(),!!(this.Bb&yp);case 12:return Lt(),!!(this.Bb&Ry);case 13:return this.j;case 14:return J_(this);case 15:return Lt(),!!(this.Bb&yu);case 16:return Lt(),!!(this.Bb&$f);case 17:return ny(this);case 18:return Lt(),!!(this.Bb&Ws);case 19:return Lt(),f=Mo(this),!!(f&&f.Bb&Ws);case 20:return Lt(),!!(this.Bb&No);case 21:return r?Mo(this):this.b;case 22:return r?jge(this):plt(this);case 23:return!this.a&&(this.a=new oE(bv,this,23)),this.a}return qc(this,t-ln((_t(),w2)),Nt((a=l(Vt(this,16),29),a||w2),t),r,o)},h.Th=function(t){var r,o,a,u;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return u=this.t,u>1||u==-1;case 7:return o=this.s,o>=1;case 8:return!!this.r&&!this.q.e&&l0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&l0(this.q).i==0);case 10:return(this.Bb&Tl)==0;case 11:return(this.Bb&yp)!=0;case 12:return(this.Bb&Ry)!=0;case 13:return this.j!=null;case 14:return J_(this)!=null;case 15:return(this.Bb&yu)!=0;case 16:return(this.Bb&$f)!=0;case 17:return!!ny(this);case 18:return(this.Bb&Ws)!=0;case 19:return a=Mo(this),!!a&&(a.Bb&Ws)!=0;case 20:return(this.Bb&No)==0;case 21:return!!this.b;case 22:return!!plt(this);case 23:return!!this.a&&this.a.i!=0}return zc(this,t-ln((_t(),w2)),Nt((r=l(Vt(this,16),29),r||w2),t))},h.$h=function(t,r){var o,a;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:OW(this,In(r));return;case 2:hg(this,Ye(Ke(r)));return;case 3:pg(this,Ye(Ke(r)));return;case 4:cg(this,l(r,15).a);return;case 5:cy(this,l(r,15).a);return;case 8:Yb(this,l(r,146));return;case 9:a=Zd(this,l(r,88),null),a&&a.mj();return;case 10:L_(this,Ye(Ke(r)));return;case 11:j_(this,Ye(Ke(r)));return;case 12:M_(this,Ye(Ke(r)));return;case 13:ede(this,In(r));return;case 15:P_(this,Ye(Ke(r)));return;case 16:F_(this,Ye(Ke(r)));return;case 18:Run(this,Ye(Ke(r)));return;case 20:g1e(this,Ye(Ke(r)));return;case 21:hge(this,l(r,20));return;case 23:!this.a&&(this.a=new oE(bv,this,23)),vn(this.a),!this.a&&(this.a=new oE(bv,this,23)),ti(this.a,l(r,18));return}Xc(this,t-ln((_t(),w2)),Nt((o=l(Vt(this,16),29),o||w2),t),r)},h.fi=function(){return _t(),w2},h.hi=function(t){var r,o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:ae(this.Cb,89)&&Sy(Pu(l(this.Cb,89)),4),Ma(this,null);return;case 2:hg(this,!0);return;case 3:pg(this,!0);return;case 4:cg(this,0);return;case 5:cy(this,1);return;case 8:Yb(this,null);return;case 9:o=Zd(this,null,null),o&&o.mj();return;case 10:L_(this,!0);return;case 11:j_(this,!1);return;case 12:M_(this,!1);return;case 13:this.i=null,Tj(this,null);return;case 15:P_(this,!1);return;case 16:F_(this,!1);return;case 18:b1e(this,!1),ae(this.Cb,89)&&Sy(Pu(l(this.Cb,89)),2);return;case 20:g1e(this,!0);return;case 21:hge(this,null);return;case 23:!this.a&&(this.a=new oE(bv,this,23)),vn(this.a);return}Jc(this,t-ln((_t(),w2)),Nt((r=l(Vt(this,16),29),r||w2),t))},h.mi=function(){jge(this),u_(rs((mu(),ao),this)),Sl(this),this.Bb|=1},h.sk=function(){return Mo(this)},h.Zk=function(){var t;return t=Mo(this),!!t&&(t.Bb&Ws)!=0},h.$k=function(){return(this.Bb&Ws)!=0},h._k=function(){return(this.Bb&No)!=0},h.Wk=function(t,r){return this.c=null,o1e(this,t,r)},h.Ib=function(){var t;return this.Db&64?U7(this):(t=new ml(U7(this)),t.a+=" (containment: ",Zp(t,(this.Bb&Ws)!=0),t.a+=", resolveProxies: ",Zp(t,(this.Bb&No)!=0),t.a+=")",t.a)},k(Gt,"EReferenceImpl",104),_(553,119,{110:1,45:1,95:1,94:1,138:1,57:1,115:1,52:1,101:1,553:1,118:1,119:1},cqe),h.Fb=function(t){return this===t},h.jd=function(){return this.b},h.kd=function(){return this.c},h.Hb=function(){return s0(this)},h.Ai=function(t){Hon(this,In(t))},h.ld=function(t){return Ron(this,In(t))},h.Ih=function(t,r,o){var a;switch(t){case 0:return this.b;case 1:return this.c}return qc(this,t-ln((_t(),Ro)),Nt((a=l(Vt(this,16),29),a||Ro),t),r,o)},h.Th=function(t){var r;switch(t){case 0:return this.b!=null;case 1:return this.c!=null}return zc(this,t-ln((_t(),Ro)),Nt((r=l(Vt(this,16),29),r||Ro),t))},h.$h=function(t,r){var o;switch(t){case 0:zon(this,In(r));return;case 1:age(this,In(r));return}Xc(this,t-ln((_t(),Ro)),Nt((o=l(Vt(this,16),29),o||Ro),t),r)},h.fi=function(){return _t(),Ro},h.hi=function(t){var r;switch(t){case 0:lge(this,null);return;case 1:age(this,null);return}Jc(this,t-ln((_t(),Ro)),Nt((r=l(Vt(this,16),29),r||Ro),t))},h.yi=function(){var t;return this.a==-1&&(t=this.b,this.a=t==null?0:lg(t)),this.a},h.zi=function(t){this.a=t},h.Ib=function(){var t;return this.Db&64?Zl(this):(t=new ml(Zl(this)),t.a+=" (key: ",Vo(t,this.b),t.a+=", value: ",Vo(t,this.c),t.a+=")",t.a)},h.a=-1,h.b=null,h.c=null;var zs=k(Gt,"EStringToStringMapEntryImpl",553),fLt=Hr(Fr,"FeatureMap/Entry/Internal");_(569,1,XF),h.vl=function(t){return this.wl(l(t,52))},h.wl=function(t){return this.vl(t)},h.Fb=function(t){var r,o;return this===t?!0:ae(t,76)?(r=l(t,76),r.Jk()==this.c?(o=this.kd(),o==null?r.kd()==null:pr(o,r.kd())):!1):!1},h.Jk=function(){return this.c},h.Hb=function(){var t;return t=this.kd(),Rr(this.c)^(t==null?0:Rr(t))},h.Ib=function(){var t,r;return t=this.c,r=mc(t.ok()).vi(),t.ve(),(r!=null&&r.length!=0?r+":"+t.ve():t.ve())+"="+this.kd()},k(Gt,"EStructuralFeatureImpl/BasicFeatureMapEntry",569),_(784,569,XF,tfe),h.wl=function(t){return new tfe(this.c,t)},h.kd=function(){return this.a},h.xl=function(t,r,o){return Shn(this,t,this.a,r,o)},h.yl=function(t,r,o){return Thn(this,t,this.a,r,o)},k(Gt,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",784),_(1316,1,{},bnt),h.wk=function(t,r,o,a,u){var f;return f=l(p_(t,this.b),222),f.Wl(this.a).Dk(a)},h.xk=function(t,r,o,a,u){var f;return f=l(p_(t,this.b),222),f.Nl(this.a,a,u)},h.yk=function(t,r,o,a,u){var f;return f=l(p_(t,this.b),222),f.Ol(this.a,a,u)},h.zk=function(t,r,o){var a;return a=l(p_(t,this.b),222),a.Wl(this.a).Oj()},h.Ak=function(t,r,o,a){var u;u=l(p_(t,this.b),222),u.Wl(this.a).Wb(a)},h.Bk=function(t,r,o){return l(p_(t,this.b),222).Wl(this.a)},h.Ck=function(t,r,o){var a;a=l(p_(t,this.b),222),a.Wl(this.a).Ek()},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1316),_(90,1,{},rg,Lb,og,Bb),h.wk=function(t,r,o,a,u){var f;if(f=r.ii(o),f==null&&r.ji(o,f=Q7(this,t)),!u)switch(this.e){case 50:case 41:return l(f,593)._j();case 40:return l(f,222).Tl()}return f},h.xk=function(t,r,o,a,u){var f,p;return p=r.ii(o),p==null&&r.ji(o,p=Q7(this,t)),f=l(p,72).Uk(a,u),f},h.yk=function(t,r,o,a,u){var f;return f=r.ii(o),f!=null&&(u=l(f,72).Vk(a,u)),u},h.zk=function(t,r,o){var a;return a=r.ii(o),a!=null&&l(a,78).Oj()},h.Ak=function(t,r,o,a){var u;u=l(r.ii(o),78),!u&&r.ji(o,u=Q7(this,t)),u.Wb(a)},h.Bk=function(t,r,o){var a,u;return u=r.ii(o),u==null&&r.ji(o,u=Q7(this,t)),ae(u,78)?l(u,78):(a=l(r.ii(o),16),new iZe(a))},h.Ck=function(t,r,o){var a;a=l(r.ii(o),78),!a&&r.ji(o,a=Q7(this,t)),a.Ek()},h.b=0,h.e=0,k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateMany",90),_(502,1,{}),h.xk=function(t,r,o,a,u){throw Y(new Nn)},h.yk=function(t,r,o,a,u){throw Y(new Nn)},h.Bk=function(t,r,o){return new bat(this,t,r,o)};var Lh;k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingle",502),_(1333,1,yQ,bat),h.Dk=function(t){return this.a.wk(this.c,this.d,this.b,t,!0)},h.Oj=function(){return this.a.zk(this.c,this.d,this.b)},h.Wb=function(t){this.a.Ak(this.c,this.d,this.b,t)},h.Ek=function(){this.a.Ck(this.c,this.d,this.b)},h.b=0,k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1333),_(777,502,{},Mhe),h.wk=function(t,r,o,a,u){return vJ(t,t.Mh(),t.Ch())==this.b?this._k()&&a?uJ(t):t.Mh():null},h.xk=function(t,r,o,a,u){var f,p;return t.Mh()&&(u=(f=t.Ch(),f>=0?t.xh(u):t.Mh().Qh(t,-1-f,null,u))),p=Ur(t.Ah(),this.e),t.zh(a,p,u)},h.yk=function(t,r,o,a,u){var f;return f=Ur(t.Ah(),this.e),t.zh(null,f,u)},h.zk=function(t,r,o){var a;return a=Ur(t.Ah(),this.e),!!t.Mh()&&t.Ch()==a},h.Ak=function(t,r,o,a){var u,f,p,m,y;if(a!=null&&!AJ(this.a,a))throw Y(new MA(ZF+(ae(a,57)?Abe(l(a,57).Ah()):Gpe(rc(a)))+QF+this.a+"'"));if(u=t.Mh(),p=Ur(t.Ah(),this.e),be(a)!==be(u)||t.Ch()!=p&&a!=null){if(z_(t,l(a,57)))throw Y(new jt(oI+t.Ib()));y=null,u&&(y=(f=t.Ch(),f>=0?t.xh(y):t.Mh().Qh(t,-1-f,null,y))),m=l(a,52),m&&(y=m.Oh(t,Ur(m.Ah(),this.b),null,y)),y=t.zh(m,p,y),y&&y.mj()}else t.sh()&&t.th()&&hr(t,new Pi(t,1,p,a,a))},h.Ck=function(t,r,o){var a,u,f,p;a=t.Mh(),a?(p=(u=t.Ch(),u>=0?t.xh(null):t.Mh().Qh(t,-1-u,null,null)),f=Ur(t.Ah(),this.e),p=t.zh(null,f,p),p&&p.mj()):t.sh()&&t.th()&&hr(t,new N3(t,1,this.e,null,null))},h._k=function(){return!1},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",777),_(1317,777,{},aot),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1317),_(567,502,{}),h.wk=function(t,r,o,a,u){var f;return f=r.ii(o),f==null?this.b:be(f)===be(Lh)?null:f},h.zk=function(t,r,o){var a;return a=r.ii(o),a!=null&&(be(a)===be(Lh)||!pr(a,this.b))},h.Ak=function(t,r,o,a){var u,f;t.sh()&&t.th()?(u=(f=r.ii(o),f==null?this.b:be(f)===be(Lh)?null:f),a==null?this.c!=null?(r.ji(o,null),a=this.b):this.b!=null?r.ji(o,Lh):r.ji(o,null):(this.zl(a),r.ji(o,a)),hr(t,this.d.Al(t,1,this.e,u,a))):a==null?this.c!=null?r.ji(o,null):this.b!=null?r.ji(o,Lh):r.ji(o,null):(this.zl(a),r.ji(o,a))},h.Ck=function(t,r,o){var a,u;t.sh()&&t.th()?(a=(u=r.ii(o),u==null?this.b:be(u)===be(Lh)?null:u),r.ki(o),hr(t,this.d.Al(t,1,this.e,a,this.b))):r.ki(o)},h.zl=function(t){throw Y(new pZe)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",567),_(HE,1,{},lqe),h.Al=function(t,r,o,a,u){return new N3(t,r,o,a,u)},h.Bl=function(t,r,o,a,u,f){return new vW(t,r,o,a,u,f)};var R3e,O3e,D3e,L3e,M3e,P3e,j3e,$re,F3e;k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",HE),_(1334,HE,{},dqe),h.Al=function(t,r,o,a,u){return new gpe(t,r,o,Ye(Ke(a)),Ye(Ke(u)))},h.Bl=function(t,r,o,a,u,f){return new Wut(t,r,o,Ye(Ke(a)),Ye(Ke(u)),f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1334),_(1335,HE,{},fqe),h.Al=function(t,r,o,a,u){return new Kpe(t,r,o,l(a,224).a,l(u,224).a)},h.Bl=function(t,r,o,a,u,f){return new But(t,r,o,l(a,224).a,l(u,224).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1335),_(1336,HE,{},hqe),h.Al=function(t,r,o,a,u){return new Ype(t,r,o,l(a,183).a,l(u,183).a)},h.Bl=function(t,r,o,a,u,f){return new Uut(t,r,o,l(a,183).a,l(u,183).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1336),_(1337,HE,{},pqe),h.Al=function(t,r,o,a,u){return new hpe(t,r,o,ue(ce(a)),ue(ce(u)))},h.Bl=function(t,r,o,a,u,f){return new Hut(t,r,o,ue(ce(a)),ue(ce(u)),f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1337),_(1338,HE,{},gqe),h.Al=function(t,r,o,a,u){return new Zpe(t,r,o,l(a,165).a,l(u,165).a)},h.Bl=function(t,r,o,a,u,f){return new zut(t,r,o,l(a,165).a,l(u,165).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1338),_(1339,HE,{},bqe),h.Al=function(t,r,o,a,u){return new ppe(t,r,o,l(a,15).a,l(u,15).a)},h.Bl=function(t,r,o,a,u,f){return new Gut(t,r,o,l(a,15).a,l(u,15).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1339),_(1340,HE,{},mqe),h.Al=function(t,r,o,a,u){return new Jpe(t,r,o,l(a,192).a,l(u,192).a)},h.Bl=function(t,r,o,a,u,f){return new qut(t,r,o,l(a,192).a,l(u,192).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1340),_(1341,HE,{},wqe),h.Al=function(t,r,o,a,u){return new Xpe(t,r,o,l(a,193).a,l(u,193).a)},h.Bl=function(t,r,o,a,u,f){return new Vut(t,r,o,l(a,193).a,l(u,193).a,f)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1341),_(1319,567,{},vat),h.zl=function(t){if(!this.a.dk(t))throw Y(new MA(ZF+rc(t)+QF+this.a+"'"))},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1319),_(1320,567,{},rst),h.zl=function(t){},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1320),_(778,567,{}),h.zk=function(t,r,o){var a;return a=r.ii(o),a!=null},h.Ak=function(t,r,o,a){var u,f;t.sh()&&t.th()?(u=!0,f=r.ii(o),f==null?(u=!1,f=this.b):be(f)===be(Lh)&&(f=null),a==null?this.c!=null?(r.ji(o,null),a=this.b):r.ji(o,Lh):(this.zl(a),r.ji(o,a)),hr(t,this.d.Bl(t,1,this.e,f,a,!u))):a==null?this.c!=null?r.ji(o,null):r.ji(o,Lh):(this.zl(a),r.ji(o,a))},h.Ck=function(t,r,o){var a,u;t.sh()&&t.th()?(a=!0,u=r.ii(o),u==null?(a=!1,u=this.b):be(u)===be(Lh)&&(u=null),r.ki(o),hr(t,this.d.Bl(t,2,this.e,u,this.b,a))):r.ki(o)},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",778),_(1321,778,{},Eat),h.zl=function(t){if(!this.a.dk(t))throw Y(new MA(ZF+rc(t)+QF+this.a+"'"))},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1321),_(1322,778,{},ist),h.zl=function(t){},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1322),_(407,502,{},cP),h.wk=function(t,r,o,a,u){var f,p,m,y,v;if(v=r.ii(o),this.rk()&&be(v)===be(Lh))return null;if(this._k()&&a&&v!=null){if(m=l(v,52),m.Sh()&&(y=w1(t,m),m!=y)){if(!AJ(this.a,y))throw Y(new MA(ZF+rc(y)+QF+this.a+"'"));r.ji(o,v=y),this.$k()&&(f=l(y,52),p=m.Qh(t,this.b?Ur(m.Ah(),this.b):-1-Ur(t.Ah(),this.e),null,null),!f.Mh()&&(p=f.Oh(t,this.b?Ur(f.Ah(),this.b):-1-Ur(t.Ah(),this.e),null,p)),p&&p.mj()),t.sh()&&t.th()&&hr(t,new N3(t,9,this.e,m,y))}return v}else return v},h.xk=function(t,r,o,a,u){var f,p;return p=r.ii(o),be(p)===be(Lh)&&(p=null),r.ji(o,a),this.Kj()?be(p)!==be(a)&&p!=null&&(f=l(p,52),u=f.Qh(t,Ur(f.Ah(),this.b),null,u)):this.$k()&&p!=null&&(u=l(p,52).Qh(t,-1-Ur(t.Ah(),this.e),null,u)),t.sh()&&t.th()&&(!u&&(u=new Qg(4)),u.lj(new N3(t,1,this.e,p,a))),u},h.yk=function(t,r,o,a,u){var f;return f=r.ii(o),be(f)===be(Lh)&&(f=null),r.ki(o),t.sh()&&t.th()&&(!u&&(u=new Qg(4)),this.rk()?u.lj(new N3(t,2,this.e,f,null)):u.lj(new N3(t,1,this.e,f,null))),u},h.zk=function(t,r,o){var a;return a=r.ii(o),a!=null},h.Ak=function(t,r,o,a){var u,f,p,m,y;if(a!=null&&!AJ(this.a,a))throw Y(new MA(ZF+(ae(a,57)?Abe(l(a,57).Ah()):Gpe(rc(a)))+QF+this.a+"'"));y=r.ii(o),m=y!=null,this.rk()&&be(y)===be(Lh)&&(y=null),p=null,this.Kj()?be(y)!==be(a)&&(y!=null&&(u=l(y,52),p=u.Qh(t,Ur(u.Ah(),this.b),null,p)),a!=null&&(u=l(a,52),p=u.Oh(t,Ur(u.Ah(),this.b),null,p))):this.$k()&&be(y)!==be(a)&&(y!=null&&(p=l(y,52).Qh(t,-1-Ur(t.Ah(),this.e),null,p)),a!=null&&(p=l(a,52).Oh(t,-1-Ur(t.Ah(),this.e),null,p))),a==null&&this.rk()?r.ji(o,Lh):r.ji(o,a),t.sh()&&t.th()?(f=new vW(t,1,this.e,y,a,this.rk()&&!m),p?(p.lj(f),p.mj()):hr(t,f)):p&&p.mj()},h.Ck=function(t,r,o){var a,u,f,p,m;m=r.ii(o),p=m!=null,this.rk()&&be(m)===be(Lh)&&(m=null),f=null,m!=null&&(this.Kj()?(a=l(m,52),f=a.Qh(t,Ur(a.Ah(),this.b),null,f)):this.$k()&&(f=l(m,52).Qh(t,-1-Ur(t.Ah(),this.e),null,f))),r.ki(o),t.sh()&&t.th()?(u=new vW(t,this.rk()?2:1,this.e,m,null,p),f?(f.lj(u),f.mj()):hr(t,u)):f&&f.mj()},h.Kj=function(){return!1},h.$k=function(){return!1},h._k=function(){return!1},h.rk=function(){return!1},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",407),_(568,407,{},EV),h.$k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",568),_(1325,568,{},tit),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1325),_(780,568,{},Fde),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",780),_(1327,780,{},nit),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1327),_(645,568,{},PV),h.Kj=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",645),_(1326,645,{},uot),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1326),_(781,645,{},Tfe),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",781),_(1328,781,{},cot),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1328),_(646,407,{},$de),h._k=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",646),_(1329,646,{},iit),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1329),_(782,646,{},Efe),h.Kj=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",782),_(1330,782,{},lot),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1330),_(1323,407,{},rit),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1323),_(779,407,{},Sfe),h.Kj=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",779),_(1324,779,{},dot),h.rk=function(){return!0},k(Gt,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1324),_(783,569,XF,phe),h.wl=function(t){return new phe(this.a,this.c,t)},h.kd=function(){return this.b},h.xl=function(t,r,o){return vdn(this,t,this.b,o)},h.yl=function(t,r,o){return Edn(this,t,this.b,o)},k(Gt,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",783),_(1331,1,yQ,iZe),h.Dk=function(t){return this.a},h.Oj=function(){return ae(this.a,98)?l(this.a,98).Oj():!this.a.dc()},h.Wb=function(t){this.a.$b(),this.a.Fc(l(t,16))},h.Ek=function(){ae(this.a,98)?l(this.a,98).Ek():this.a.$b()},k(Gt,"EStructuralFeatureImpl/SettingMany",1331),_(1332,569,XF,Bct),h.vl=function(t){return new xV((Tr(),j4),this.b.oi(this.a,t))},h.kd=function(){return null},h.xl=function(t,r,o){return o},h.yl=function(t,r,o){return o},k(Gt,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1332),_(647,569,XF,xV),h.vl=function(t){return new xV(this.c,t)},h.kd=function(){return this.a},h.xl=function(t,r,o){return o},h.yl=function(t,r,o){return o},k(Gt,"EStructuralFeatureImpl/SimpleFeatureMapEntry",647),_(399,495,Vf,NA),h.$i=function(t){return we(Ol,Rt,29,t,0,1)},h.Wi=function(){return!1},k(Gt,"ESuperAdapter/1",399),_(449,444,{110:1,95:1,94:1,159:1,199:1,57:1,115:1,842:1,52:1,101:1,162:1,449:1,118:1,119:1},LG),h.Ih=function(t,r,o){var a;switch(t){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new A3(this,Go,this)),this.a}return qc(this,t-ln((_t(),fw)),Nt((a=l(Vt(this,16),29),a||fw),t),r,o)},h.Rh=function(t,r,o){var a,u;switch(r){case 0:return!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),_o(this.Ab,t,o);case 2:return!this.a&&(this.a=new A3(this,Go,this)),_o(this.a,t,o)}return u=l(Nt((a=l(Vt(this,16),29),a||(_t(),fw)),r),69),u.uk().yk(this,Ha(this),r-ln((_t(),fw)),t,o)},h.Th=function(t){var r;switch(t){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return zc(this,t-ln((_t(),fw)),Nt((r=l(Vt(this,16),29),r||fw),t))},h.$h=function(t,r){var o;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab),!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),ti(this.Ab,l(r,18));return;case 1:Ma(this,In(r));return;case 2:!this.a&&(this.a=new A3(this,Go,this)),vn(this.a),!this.a&&(this.a=new A3(this,Go,this)),ti(this.a,l(r,18));return}Xc(this,t-ln((_t(),fw)),Nt((o=l(Vt(this,16),29),o||fw),t),r)},h.fi=function(){return _t(),fw},h.hi=function(t){var r;switch(t){case 0:!this.Ab&&(this.Ab=new ke(Kn,this,0,3)),vn(this.Ab);return;case 1:Ma(this,null);return;case 2:!this.a&&(this.a=new A3(this,Go,this)),vn(this.a);return}Jc(this,t-ln((_t(),fw)),Nt((r=l(Vt(this,16),29),r||fw),t))},k(Gt,"ETypeParameterImpl",449),_(450,82,ws,A3),h.Lj=function(t,r){return gwn(this,l(t,88),r)},h.Mj=function(t,r){return bwn(this,l(t,88),r)},k(Gt,"ETypeParameterImpl/1",450),_(644,44,DE,rq),h.ec=function(){return new N9(this)},k(Gt,"ETypeParameterImpl/2",644),_(564,tf,wu,N9),h.Ec=function(t){return Fit(this,l(t,88))},h.Fc=function(t){var r,o,a;for(a=!1,o=t.Jc();o.Ob();)r=l(o.Pb(),88),Jn(this.a,r,"")==null&&(a=!0);return a},h.$b=function(){Zs(this.a)},h.Gc=function(t){return ma(this.a,t)},h.Jc=function(){var t;return t=new dy(new Dw(this.a).a),new C9(t)},h.Kc=function(t){return Nlt(this,t)},h.gc=function(){return WN(this.a)},k(Gt,"ETypeParameterImpl/2/1",564),_(565,1,Wi,C9),h.Nb=function(t){so(this,t)},h.Pb=function(){return l(gE(this.a).jd(),88)},h.Ob=function(){return this.a.b},h.Qb=function(){Bdt(this.a)},k(Gt,"ETypeParameterImpl/2/1/1",565),_(1293,44,DE,WZe),h._b=function(t){return zi(t)?SW(this,t):!!ts(this.f,t)},h.xc=function(t){var r,o;return r=zi(t)?wa(this,t):Ss(ts(this.f,t)),ae(r,843)?(o=l(r,843),r=o.Ik(),Jn(this,l(t,244),r),r):r??(t==null?(Sq(),pLt):null)},k(Gt,"EValidatorRegistryImpl",1293),_(1315,717,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,2019:1,52:1,101:1,162:1,118:1,119:1},yqe),h.oi=function(t,r){switch(t.fk()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return r==null?null:ms(r);case 25:return Ifn(r);case 27:return qdn(r);case 28:return Vdn(r);case 29:return r==null?null:srt(R4[0],l(r,208));case 41:return r==null?"":Ab(l(r,299));case 42:return ms(r);case 50:return In(r);default:throw Y(new jt(Dx+t.ve()+W0))}},h.pi=function(t){var r,o,a,u,f,p,m,y,v,T,N,O,M,U,z,J;switch(t.G==-1&&(t.G=(O=mc(t),O?gg(O.si(),t):-1)),t.G){case 0:return o=new eq,o;case 1:return r=new Hue,r;case 2:return a=new Wue,a;case 4:return u=new I9,u;case 5:return f=new VZe,f;case 6:return p=new cZe,p;case 7:return m=new Vue,m;case 10:return v=new y9,v;case 11:return T=new tq,T;case 12:return N=new Oat,N;case 13:return M=new nq,M;case 14:return U=new Hde,U;case 17:return z=new cqe,z;case 18:return y=new Ym,y;case 19:return J=new LG,J;default:throw Y(new jt(rQ+t.zb+W0))}},h.qi=function(t,r){switch(t.fk()){case 20:return r==null?null:new ale(r);case 21:return r==null?null:new o1(r);case 23:case 22:return r==null?null:C1n(r);case 26:case 24:return r==null?null:p6(Ec(r,-128,127)<<24>>24);case 25:return REn(r);case 27:return hmn(r);case 28:return pmn(r);case 29:return Mwn(r);case 32:case 31:return r==null?null:vy(r);case 38:case 37:return r==null?null:new Ice(r);case 40:case 39:return r==null?null:Re(Ec(r,Qi,sr));case 41:return null;case 42:return r==null,null;case 44:case 43:return r==null?null:my(Z7(r));case 49:case 48:return r==null?null:D_(Ec(r,e$,32767)<<16>>16);case 50:return r;default:throw Y(new jt(Dx+t.ve()+W0))}},k(Gt,"EcoreFactoryImpl",1315),_(552,187,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,2017:1,52:1,101:1,162:1,187:1,552:1,118:1,119:1,687:1},Qst),h.gb=!1,h.hb=!1;var $3e,hLt=!1;k(Gt,"EcorePackageImpl",552),_(1211,1,{843:1},vqe),h.Ik=function(){return Lrt(),gLt},k(Gt,"EcorePackageImpl/1",1211),_(1220,1,tr,Eqe),h.dk=function(t){return ae(t,159)},h.ek=function(t){return we(r5,Rt,159,t,0,1)},k(Gt,"EcorePackageImpl/10",1220),_(1221,1,tr,Sqe),h.dk=function(t){return ae(t,199)},h.ek=function(t){return we(Ire,Rt,199,t,0,1)},k(Gt,"EcorePackageImpl/11",1221),_(1222,1,tr,Tqe),h.dk=function(t){return ae(t,57)},h.ek=function(t){return we(Y1,Rt,57,t,0,1)},k(Gt,"EcorePackageImpl/12",1222),_(1223,1,tr,Aqe),h.dk=function(t){return ae(t,408)},h.ek=function(t){return we(Dl,CEe,62,t,0,1)},k(Gt,"EcorePackageImpl/13",1223),_(1224,1,tr,_qe),h.dk=function(t){return ae(t,244)},h.ek=function(t){return we(Dd,Rt,244,t,0,1)},k(Gt,"EcorePackageImpl/14",1224),_(1225,1,tr,xqe),h.dk=function(t){return ae(t,507)},h.ek=function(t){return we(lw,Rt,2095,t,0,1)},k(Gt,"EcorePackageImpl/15",1225),_(1226,1,tr,kqe),h.dk=function(t){return ae(t,104)},h.ek=function(t){return we(mv,UE,20,t,0,1)},k(Gt,"EcorePackageImpl/16",1226),_(1227,1,tr,Nqe),h.dk=function(t){return ae(t,182)},h.ek=function(t){return we(au,UE,182,t,0,1)},k(Gt,"EcorePackageImpl/17",1227),_(1228,1,tr,Cqe),h.dk=function(t){return ae(t,473)},h.ek=function(t){return we(gv,Rt,473,t,0,1)},k(Gt,"EcorePackageImpl/18",1228),_(1229,1,tr,Iqe),h.dk=function(t){return ae(t,553)},h.ek=function(t){return we(zs,MAt,553,t,0,1)},k(Gt,"EcorePackageImpl/19",1229),_(1212,1,tr,Rqe),h.dk=function(t){return ae(t,336)},h.ek=function(t){return we(bv,UE,38,t,0,1)},k(Gt,"EcorePackageImpl/2",1212),_(1230,1,tr,Oqe),h.dk=function(t){return ae(t,251)},h.ek=function(t){return we(Go,ZAt,88,t,0,1)},k(Gt,"EcorePackageImpl/20",1230),_(1231,1,tr,Dqe),h.dk=function(t){return ae(t,449)},h.ek=function(t){return we(Ka,Rt,842,t,0,1)},k(Gt,"EcorePackageImpl/21",1231),_(1232,1,tr,Lqe),h.dk=function(t){return Bw(t)},h.ek=function(t){return we(Yr,Pe,476,t,8,1)},k(Gt,"EcorePackageImpl/22",1232),_(1233,1,tr,Mqe),h.dk=function(t){return ae(t,198)},h.ek=function(t){return we(Eu,Pe,198,t,0,2)},k(Gt,"EcorePackageImpl/23",1233),_(1234,1,tr,Pqe),h.dk=function(t){return ae(t,224)},h.ek=function(t){return we(ET,Pe,224,t,0,1)},k(Gt,"EcorePackageImpl/24",1234),_(1235,1,tr,jqe),h.dk=function(t){return ae(t,183)},h.ek=function(t){return we(mI,Pe,183,t,0,1)},k(Gt,"EcorePackageImpl/25",1235),_(1236,1,tr,Fqe),h.dk=function(t){return ae(t,208)},h.ek=function(t){return we(l$,Pe,208,t,0,1)},k(Gt,"EcorePackageImpl/26",1236),_(1237,1,tr,$qe),h.dk=function(t){return!1},h.ek=function(t){return we(rCe,Rt,2191,t,0,1)},k(Gt,"EcorePackageImpl/27",1237),_(1238,1,tr,Bqe),h.dk=function(t){return Uw(t)},h.ek=function(t){return we(fi,Pe,347,t,7,1)},k(Gt,"EcorePackageImpl/28",1238),_(1239,1,tr,Uqe),h.dk=function(t){return ae(t,61)},h.ek=function(t){return we(w3e,Oy,61,t,0,1)},k(Gt,"EcorePackageImpl/29",1239),_(1213,1,tr,Hqe),h.dk=function(t){return ae(t,508)},h.ek=function(t){return we(Kn,{3:1,4:1,5:1,2012:1},594,t,0,1)},k(Gt,"EcorePackageImpl/3",1213),_(1240,1,tr,zqe),h.dk=function(t){return ae(t,575)},h.ek=function(t){return we(E3e,Rt,2018,t,0,1)},k(Gt,"EcorePackageImpl/30",1240),_(1241,1,tr,Gqe),h.dk=function(t){return ae(t,164)},h.ek=function(t){return we(G3e,Oy,164,t,0,1)},k(Gt,"EcorePackageImpl/31",1241),_(1242,1,tr,qqe),h.dk=function(t){return ae(t,76)},h.ek=function(t){return we(TU,a_t,76,t,0,1)},k(Gt,"EcorePackageImpl/32",1242),_(1243,1,tr,Vqe),h.dk=function(t){return ae(t,165)},h.ek=function(t){return we(Ux,Pe,165,t,0,1)},k(Gt,"EcorePackageImpl/33",1243),_(1244,1,tr,Wqe),h.dk=function(t){return ae(t,15)},h.ek=function(t){return we(Ti,Pe,15,t,0,1)},k(Gt,"EcorePackageImpl/34",1244),_(1245,1,tr,Kqe),h.dk=function(t){return ae(t,299)},h.ek=function(t){return we(HEe,Rt,299,t,0,1)},k(Gt,"EcorePackageImpl/35",1245),_(1246,1,tr,Yqe),h.dk=function(t){return ae(t,192)},h.ek=function(t){return we(Y0,Pe,192,t,0,1)},k(Gt,"EcorePackageImpl/36",1246),_(1247,1,tr,Jqe),h.dk=function(t){return ae(t,93)},h.ek=function(t){return we(zEe,Rt,93,t,0,1)},k(Gt,"EcorePackageImpl/37",1247),_(1248,1,tr,Xqe),h.dk=function(t){return ae(t,595)},h.ek=function(t){return we(B3e,Rt,595,t,0,1)},k(Gt,"EcorePackageImpl/38",1248),_(1249,1,tr,Zqe),h.dk=function(t){return!1},h.ek=function(t){return we(iCe,Rt,2192,t,0,1)},k(Gt,"EcorePackageImpl/39",1249),_(1214,1,tr,Qqe),h.dk=function(t){return ae(t,89)},h.ek=function(t){return we(Ol,Rt,29,t,0,1)},k(Gt,"EcorePackageImpl/4",1214),_(1250,1,tr,eVe),h.dk=function(t){return ae(t,193)},h.ek=function(t){return we(J0,Pe,193,t,0,1)},k(Gt,"EcorePackageImpl/40",1250),_(1251,1,tr,tVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Gt,"EcorePackageImpl/41",1251),_(1252,1,tr,nVe),h.dk=function(t){return ae(t,592)},h.ek=function(t){return we(v3e,Rt,592,t,0,1)},k(Gt,"EcorePackageImpl/42",1252),_(1253,1,tr,rVe),h.dk=function(t){return!1},h.ek=function(t){return we(oCe,Pe,2193,t,0,1)},k(Gt,"EcorePackageImpl/43",1253),_(1254,1,tr,iVe),h.dk=function(t){return ae(t,45)},h.ek=function(t){return we(dm,tF,45,t,0,1)},k(Gt,"EcorePackageImpl/44",1254),_(1215,1,tr,oVe),h.dk=function(t){return ae(t,146)},h.ek=function(t){return we(Ld,Rt,146,t,0,1)},k(Gt,"EcorePackageImpl/5",1215),_(1216,1,tr,sVe),h.dk=function(t){return ae(t,160)},h.ek=function(t){return we(Pre,Rt,160,t,0,1)},k(Gt,"EcorePackageImpl/6",1216),_(1217,1,tr,aVe),h.dk=function(t){return ae(t,462)},h.ek=function(t){return we(SU,Rt,682,t,0,1)},k(Gt,"EcorePackageImpl/7",1217),_(1218,1,tr,uVe),h.dk=function(t){return ae(t,575)},h.ek=function(t){return we(Op,Rt,691,t,0,1)},k(Gt,"EcorePackageImpl/8",1218),_(1219,1,tr,cVe),h.dk=function(t){return ae(t,472)},h.ek=function(t){return we(I4,Rt,472,t,0,1)},k(Gt,"EcorePackageImpl/9",1219),_(1030,2059,LAt,mQe),h.Ki=function(t,r){ugn(this,l(r,420))},h.Oi=function(t,r){Fmt(this,t,l(r,420))},k(Gt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1030),_(1031,152,qD,Hst),h.hj=function(){return this.a.a},k(Gt,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1031),_(1058,1057,{},Xnt),k("org.eclipse.emf.ecore.plugin","EcorePlugin",1058);var B3e=Hr(u_t,"Resource");_(793,1502,c_t),h.Fl=function(t){},h.Gl=function(t){},h.Cl=function(){return!this.a&&(this.a=new KG(this)),this.a},h.Dl=function(t){var r,o,a,u,f;if(a=t.length,a>0)if(Yt(0,t.length),t.charCodeAt(0)==47){for(f=new Da(4),u=1,r=1;r0&&(t=(io(0,o,t.length),t.substr(0,o))));return Svn(this,t)},h.El=function(){return this.c},h.Ib=function(){var t;return Ab(this.Pm)+"@"+(t=Rr(this)>>>0,t.toString(16))+" uri='"+this.d+"'"},h.b=!1,k(vQ,"ResourceImpl",793),_(1503,793,c_t,oZe),k(vQ,"BinaryResourceImpl",1503),_(1171,704,pQ),h._i=function(t){return ae(t,57)?Gan(this,l(t,57)):ae(t,595)?new tn(l(t,595).Cl()):be(t)===be(this.f)?l(t,18).Jc():(JA(),c5.a)},h.Ob=function(){return wme(this)},h.a=!1,k(Fr,"EcoreUtil/ContentTreeIterator",1171),_(1504,1171,pQ,mst),h._i=function(t){return be(t)===be(this.f)?l(t,16).Jc():new Tct(l(t,57))},k(vQ,"ResourceImpl/5",1504),_(654,2071,XAt,KG),h.Gc=function(t){return this.i<=4?q_(this,t):ae(t,52)&&l(t,52).Gh()==this.a},h.Ki=function(t,r){t==this.i-1&&(this.a.b||(this.a.b=!0))},h.Mi=function(t,r){t==0?this.a.b||(this.a.b=!0):XW(this,t,r)},h.Oi=function(t,r){},h.Pi=function(t,r,o){},h.Jj=function(){return 2},h.hj=function(){return this.a},h.Kj=function(){return!0},h.Lj=function(t,r){var o;return o=l(t,52),r=o.ci(this.a,r),r},h.Mj=function(t,r){var o;return o=l(t,52),o.ci(null,r)},h.Nj=function(){return!1},h.Qi=function(){return!0},h.$i=function(t){return we(Y1,Rt,57,t,0,1)},h.Wi=function(){return!1},k(vQ,"ResourceImpl/ContentsEList",654),_(962,2041,lx,sZe),h.dd=function(t){return this.a.Ii(t)},h.gc=function(){return this.a.gc()},k(Fr,"AbstractSequentialInternalEList/1",962);var U3e,H3e,ao,z3e;_(632,1,{},xot);var AU,_U;k(Fr,"BasicExtendedMetaData",632),_(1162,1,{},mnt),h.Hl=function(){return null},h.Il=function(){return this.a==-2&&kZt(this,Nwn(this.d,this.b)),this.a},h.Jl=function(){return null},h.Kl=function(){return At(),At(),Co},h.ve=function(){return this.c==jx&&NZt(this,n1t(this.d,this.b)),this.c},h.Ll=function(){return 0},h.a=-2,h.c=jx,k(Fr,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1162),_(1163,1,{},Yut),h.Hl=function(){return this.a==(h_(),AU)&&RZt(this,bTn(this.f,this.b)),this.a},h.Il=function(){return 0},h.Jl=function(){return this.c==(h_(),AU)&&CZt(this,mTn(this.f,this.b)),this.c},h.Kl=function(){return!this.d&&DZt(this,e_n(this.f,this.b)),this.d},h.ve=function(){return this.e==jx&&MZt(this,n1t(this.f,this.b)),this.e},h.Ll=function(){return this.g==-2&&jZt(this,K0n(this.f,this.b)),this.g},h.e=jx,h.g=-2,k(Fr,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1163),_(1161,1,{},ynt),h.b=!1,h.c=!1,k(Fr,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1161),_(1164,1,{},Jut),h.c=-2,h.e=jx,h.f=jx,k(Fr,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1164),_(588,630,ws,Z8),h.Jj=function(){return this.c},h.ml=function(){return!1},h.Ui=function(t,r){return r},h.c=0,k(Fr,"EDataTypeEList",588);var G3e=Hr(Fr,"FeatureMap");_(77,588,{3:1,4:1,22:1,32:1,56:1,18:1,16:1,59:1,71:1,67:1,61:1,78:1,164:1,222:1,2015:1,72:1,98:1},ni),h._c=function(t,r){j2n(this,t,l(r,76))},h.Ec=function(t){return e2n(this,l(t,76))},h.Fi=function(t){Vsn(this,l(t,76))},h.Lj=function(t,r){return crn(this,l(t,76),r)},h.Mj=function(t,r){return ffe(this,l(t,76),r)},h.Ri=function(t,r){return aAn(this,t,r)},h.Ui=function(t,r){return Xxn(this,t,l(r,76))},h.fd=function(t,r){return SSn(this,t,l(r,76))},h.Sj=function(t,r){return lrn(this,l(t,76),r)},h.Tj=function(t,r){return qit(this,l(t,76),r)},h.Uj=function(t,r,o){return F0n(this,l(t,76),l(r,76),o)},h.Xi=function(t,r){return GY(this,t,l(r,76))},h.Ml=function(t,r){return f0e(this,t,r)},h.ad=function(t,r){var o,a,u,f,p,m,y,v,T;for(v=new w0(r.gc()),u=r.Jc();u.Ob();)if(a=l(u.Pb(),76),f=a.Jk(),wp(this.e,f))(!f.Qi()||!HP(this,f,a.kd())&&!q_(v,a))&&Tn(v,a);else{for(T=za(this.e.Ah(),f),o=l(this.g,123),p=!0,m=0;m=0;)if(r=t[this.c],this.k.$l(r.Jk()))return this.j=this.f?r:r.kd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},k(Fr,"BasicFeatureMap/FeatureEIterator",417),_(673,417,vh,oV),h.sl=function(){return!0},k(Fr,"BasicFeatureMap/ResolvingFeatureEIterator",673),_(960,485,YF,lrt),h.nj=function(){return this},k(Fr,"EContentsEList/1",960),_(961,485,YF,Dnt),h.sl=function(){return!1},k(Fr,"EContentsEList/2",961),_(959,289,JF,drt),h.ul=function(t){},h.Ob=function(){return!1},h.Sb=function(){return!1},k(Fr,"EContentsEList/FeatureIteratorImpl/1",959),_(832,588,ws,yde),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Ju(this.e)?(t=this.a,this.a=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,k(Fr,"EDataTypeEList/Unsettable",832),_(1937,588,ws,yrt),h.Qi=function(){return!0},k(Fr,"EDataTypeUniqueEList",1937),_(1938,832,ws,mrt),h.Qi=function(){return!0},k(Fr,"EDataTypeUniqueEList/Unsettable",1938),_(147,82,ws,du),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectContainmentEList/Resolving",147),_(1165,547,ws,brt),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectContainmentEList/Unsettable/Resolving",1165),_(760,14,ws,ofe),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Ju(this.e)?(t=this.a,this.a=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,k(Fr,"EObjectContainmentWithInverseEList/Unsettable",760),_(1199,760,ws,Oit),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1199),_(752,494,ws,wde),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Ju(this.e)?(t=this.a,this.a=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,k(Fr,"EObjectEList/Unsettable",752),_(340,494,ws,oE),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectResolvingEList",340),_(1842,752,ws,wrt),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectResolvingEList/Unsettable",1842),_(1505,1,{},lVe);var pLt;k(Fr,"EObjectValidator",1505),_(551,494,ws,mP),h.gl=function(){return this.d},h.hl=function(){return this.b},h.Kj=function(){return!0},h.kl=function(){return!0},h.b=0,k(Fr,"EObjectWithInverseEList",551),_(1202,551,ws,Dit),h.jl=function(){return!0},k(Fr,"EObjectWithInverseEList/ManyInverse",1202),_(633,551,ws,kV),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Ju(this.e)?(t=this.a,this.a=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,k(Fr,"EObjectWithInverseEList/Unsettable",633),_(1201,633,ws,Lit),h.jl=function(){return!0},k(Fr,"EObjectWithInverseEList/Unsettable/ManyInverse",1201),_(761,551,ws,sfe),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectWithInverseResolvingEList",761),_(31,761,ws,Tt),h.jl=function(){return!0},k(Fr,"EObjectWithInverseResolvingEList/ManyInverse",31),_(762,633,ws,afe),h.ll=function(){return!0},h.Ui=function(t,r){return oT(this,t,l(r,57))},k(Fr,"EObjectWithInverseResolvingEList/Unsettable",762),_(1200,762,ws,Mit),h.jl=function(){return!0},k(Fr,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1200),_(1166,630,ws),h.Ji=function(){return(this.b&1792)==0},h.Li=function(){this.b|=1},h.il=function(){return(this.b&4)!=0},h.Kj=function(){return(this.b&40)!=0},h.jl=function(){return(this.b&16)!=0},h.kl=function(){return(this.b&8)!=0},h.ll=function(){return(this.b&yp)!=0},h.$k=function(){return(this.b&32)!=0},h.ml=function(){return(this.b&Tl)!=0},h.dk=function(t){return this.d?Rct(this.d,t):this.Jk().Fk().dk(t)},h.Oj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},h.Qi=function(){return(this.b&128)!=0},h.Ek=function(){var t;vn(this),this.b&2&&(Ju(this.e)?(t=(this.b&1)!=0,this.b&=-2,LA(this,new Vl(this.e,2,Ur(this.e.Ah(),this.Jk()),t,!1))):this.b&=-2)},h.Wi=function(){return(this.b&1536)==0},h.b=0,k(Fr,"EcoreEList/Generic",1166),_(1167,1166,ws,Rat),h.Jk=function(){return this.a},k(Fr,"EcoreEList/Dynamic",1167),_(759,67,Vf,_ce),h.$i=function(t){return y6(this.a.a,t)},k(Fr,"EcoreEMap/1",759),_(758,82,ws,the),h.Ki=function(t,r){c7(this.b,l(r,138))},h.Mi=function(t,r){jht(this.b)},h.Ni=function(t,r,o){var a;++(a=this.b,l(r,138),a).e},h.Oi=function(t,r){ZK(this.b,l(r,138))},h.Pi=function(t,r,o){ZK(this.b,l(o,138)),be(o)===be(r)&&l(o,138).zi(gtn(l(r,138).jd())),c7(this.b,l(r,138))},k(Fr,"EcoreEMap/DelegateEObjectContainmentEList",758),_(1197,145,NEe,Wft),k(Fr,"EcoreEMap/Unsettable",1197),_(1198,758,ws,Pit),h.Li=function(){this.a=!0},h.Oj=function(){return this.a},h.Ek=function(){var t;vn(this),Ju(this.e)?(t=this.a,this.a=!1,hr(this.e,new Vl(this.e,2,this.c,t,!1))):this.a=!1},h.a=!1,k(Fr,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1198),_(1170,226,DE,jst),h.a=!1,h.b=!1,k(Fr,"EcoreUtil/Copier",1170),_(754,1,Wi,Tct),h.Nb=function(t){so(this,t)},h.Ob=function(){return Pgt(this)},h.Pb=function(){var t;return Pgt(this),t=this.b,this.b=null,t},h.Qb=function(){this.a.Qb()},k(Fr,"EcoreUtil/ProperContentIterator",754),_(1506,1505,{},dKe);var gLt;k(Fr,"EcoreValidator",1506);var bLt;Hr(Fr,"FeatureMapUtil/Validator"),_(1270,1,{2020:1},dVe),h.$l=function(t){return!0},k(Fr,"FeatureMapUtil/1",1270),_(767,1,{2020:1},q0e),h.$l=function(t){var r;return this.c==t?!0:(r=Ke(Ht(this.a,t)),r==null?STn(this,t)?(ylt(this.a,t,(Lt(),Bx)),!0):(ylt(this.a,t,(Lt(),D1)),!1):r==(Lt(),Bx))},h.e=!1;var Bre;k(Fr,"FeatureMapUtil/BasicValidator",767),_(768,44,DE,gde),k(Fr,"FeatureMapUtil/BasicValidator/Cache",768),_(499,56,{22:1,32:1,56:1,18:1,16:1,61:1,78:1,72:1,98:1},xO),h._c=function(t,r){Mwt(this.c,this.b,t,r)},h.Ec=function(t){return f0e(this.c,this.b,t)},h.ad=function(t,r){return z_n(this.c,this.b,t,r)},h.Fc=function(t){return m3(this,t)},h.Ei=function(t,r){bfn(this.c,this.b,t,r)},h.Uk=function(t,r){return i0e(this.c,this.b,t,r)},h.Yi=function(t){return W7(this.c,this.b,t,!1)},h.Gi=function(){return Wnt(this.c,this.b)},h.Hi=function(){return Zen(this.c,this.b)},h.Ii=function(t){return Sdn(this.c,this.b,t)},h.Vk=function(t,r){return wit(this,t,r)},h.$b=function(){iS(this)},h.Gc=function(t){return HP(this.c,this.b,t)},h.Hc=function(t){return vhn(this.c,this.b,t)},h.Xb=function(t){return W7(this.c,this.b,t,!0)},h.Dk=function(t){return this},h.bd=function(t){return Oln(this.c,this.b,t)},h.dc=function(){return x8(this)},h.Oj=function(){return!F6(this.c,this.b)},h.Jc=function(){return nfn(this.c,this.b)},h.cd=function(){return rfn(this.c,this.b)},h.dd=function(t){return Agn(this.c,this.b,t)},h.Ri=function(t,r){return Qyt(this.c,this.b,t,r)},h.Si=function(t,r){Adn(this.c,this.b,t,r)},h.ed=function(t){return Tmt(this.c,this.b,t)},h.Kc=function(t){return VTn(this.c,this.b,t)},h.fd=function(t,r){return cvt(this.c,this.b,t,r)},h.Wb=function(t){N7(this.c,this.b),m3(this,l(t,16))},h.gc=function(){return _gn(this.c,this.b)},h.Nc=function(){return Rcn(this.c,this.b)},h.Oc=function(t){return Dln(this.c,this.b,t)},h.Ib=function(){var t,r;for(r=new Xp,r.a+="[",t=Wnt(this.c,this.b);UK(t);)Vo(r,y3(a7(t))),UK(t)&&(r.a+=ja);return r.a+="]",r.a},h.Ek=function(){N7(this.c,this.b)},k(Fr,"FeatureMapUtil/FeatureEList",499),_(641,40,qD,UW),h.fj=function(t){return sC(this,t)},h.kj=function(t){var r,o,a,u,f,p,m;switch(this.d){case 1:case 2:{if(f=t.hj(),be(f)===be(this.c)&&sC(this,null)==t.fj(null))return this.g=t.gj(),t.ej()==1&&(this.d=1),!0;break}case 3:{switch(u=t.ej(),u){case 3:{if(f=t.hj(),be(f)===be(this.c)&&sC(this,null)==t.fj(null))return this.d=5,r=new w0(2),Tn(r,this.g),Tn(r,t.gj()),this.g=r,!0;break}}break}case 5:{switch(u=t.ej(),u){case 3:{if(f=t.hj(),be(f)===be(this.c)&&sC(this,null)==t.fj(null))return o=l(this.g,18),o.Ec(t.gj()),!0;break}}break}case 4:{switch(u=t.ej(),u){case 3:{if(f=t.hj(),be(f)===be(this.c)&&sC(this,null)==t.fj(null))return this.d=1,this.g=t.gj(),!0;break}case 4:{if(f=t.hj(),be(f)===be(this.c)&&sC(this,null)==t.fj(null))return this.d=6,m=new w0(2),Tn(m,this.n),Tn(m,t.ij()),this.n=m,p=Z(X(Rn,1),Qn,30,15,[this.o,t.jj()]),this.g=p,!0;break}}break}case 6:{switch(u=t.ej(),u){case 4:{if(f=t.hj(),be(f)===be(this.c)&&sC(this,null)==t.fj(null))return o=l(this.n,18),o.Ec(t.ij()),p=l(this.g,54),a=we(Rn,Qn,30,p.length+1,15,1),ua(p,0,a,0,p.length),a[p.length]=t.jj(),this.g=a,!0;break}}break}}return!1},k(Fr,"FeatureMapUtil/FeatureENotificationImpl",641),_(560,499,{22:1,32:1,56:1,18:1,16:1,61:1,78:1,164:1,222:1,2015:1,72:1,98:1},nP),h.Ml=function(t,r){return f0e(this.c,t,r)},h.Nl=function(t,r,o){return i0e(this.c,t,r,o)},h.Ol=function(t,r,o){return D0e(this.c,t,r,o)},h.Pl=function(){return this},h.Ql=function(t,r){return lD(this.c,t,r)},h.Rl=function(t){return l(W7(this.c,this.b,t,!1),76).Jk()},h.Sl=function(t){return l(W7(this.c,this.b,t,!1),76).kd()},h.Tl=function(){return this.a},h.Ul=function(t){return!F6(this.c,t)},h.Vl=function(t,r){K7(this.c,t,r)},h.Wl=function(t){return rht(this.c,t)},h.Xl=function(t){U1t(this.c,t)},k(Fr,"FeatureMapUtil/FeatureFeatureMap",560),_(1269,1,yQ,wnt),h.Dk=function(t){return W7(this.b,this.a,-1,t)},h.Oj=function(){return!F6(this.b,this.a)},h.Wb=function(t){K7(this.b,this.a,t)},h.Ek=function(){N7(this.b,this.a)},k(Fr,"FeatureMapUtil/FeatureValue",1269);var JT,Ure,Hre,XT,mLt,d5=Hr(i$,"AnyType");_(677,63,vp,lq),k(i$,"InvalidDatatypeValueException",677);var xU=Hr(i$,d_t),f5=Hr(i$,f_t),q3e=Hr(i$,h_t),wLt,Ks,V3e,km,yLt,vLt,ELt,SLt,TLt,ALt,_Lt,xLt,kLt,NLt,CLt,y2,ILt,v2,M4,RLt,hw,h5,p5,OLt,P4,j4;_(836,505,{110:1,95:1,94:1,57:1,52:1,101:1,849:1},Bce),h.Ih=function(t,r,o){switch(t){case 0:return o?(!this.c&&(this.c=new ni(this,0)),this.c):(!this.c&&(this.c=new ni(this,0)),this.c.b);case 1:return o?(!this.c&&(this.c=new ni(this,0)),l(ya(this.c,(Tr(),km)),164)):(!this.c&&(this.c=new ni(this,0)),l(l(ya(this.c,(Tr(),km)),164),222)).Tl();case 2:return o?(!this.b&&(this.b=new ni(this,2)),this.b):(!this.b&&(this.b=new ni(this,2)),this.b.b)}return qc(this,t-ln(this.fi()),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),t),r,o)},h.Rh=function(t,r,o){var a;switch(r){case 0:return!this.c&&(this.c=new ni(this,0)),aD(this.c,t,o);case 1:return(!this.c&&(this.c=new ni(this,0)),l(l(ya(this.c,(Tr(),km)),164),72)).Vk(t,o);case 2:return!this.b&&(this.b=new ni(this,2)),aD(this.b,t,o)}return a=l(Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),r),69),a.uk().yk(this,Upe(this),r-ln(this.fi()),t,o)},h.Th=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new ni(this,0)),l(ya(this.c,(Tr(),km)),164)).dc();case 2:return!!this.b&&this.b.i!=0}return zc(this,t-ln(this.fi()),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),t))},h.$h=function(t,r){switch(t){case 0:!this.c&&(this.c=new ni(this,0)),VO(this.c,r);return;case 1:(!this.c&&(this.c=new ni(this,0)),l(l(ya(this.c,(Tr(),km)),164),222)).Wb(r);return;case 2:!this.b&&(this.b=new ni(this,2)),VO(this.b,r);return}Xc(this,t-ln(this.fi()),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),t),r)},h.fi=function(){return Tr(),V3e},h.hi=function(t){switch(t){case 0:!this.c&&(this.c=new ni(this,0)),vn(this.c);return;case 1:(!this.c&&(this.c=new ni(this,0)),l(ya(this.c,(Tr(),km)),164)).$b();return;case 2:!this.b&&(this.b=new ni(this,2)),vn(this.b);return}Jc(this,t-ln(this.fi()),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():this.fi(),t))},h.Ib=function(){var t;return this.j&4?Zl(this):(t=new ml(Zl(this)),t.a+=" (mixed: ",h3(t,this.c),t.a+=", anyAttribute: ",h3(t,this.b),t.a+=")",t.a)},k(Si,"AnyTypeImpl",836),_(678,505,{110:1,95:1,94:1,57:1,52:1,101:1,2098:1,678:1},TVe),h.Ih=function(t,r,o){switch(t){case 0:return this.a;case 1:return this.b}return qc(this,t-ln((Tr(),y2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():y2,t),r,o)},h.Th=function(t){switch(t){case 0:return this.a!=null;case 1:return this.b!=null}return zc(this,t-ln((Tr(),y2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():y2,t))},h.$h=function(t,r){switch(t){case 0:BZt(this,In(r));return;case 1:HZt(this,In(r));return}Xc(this,t-ln((Tr(),y2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():y2,t),r)},h.fi=function(){return Tr(),y2},h.hi=function(t){switch(t){case 0:this.a=null;return;case 1:this.b=null;return}Jc(this,t-ln((Tr(),y2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():y2,t))},h.Ib=function(){var t;return this.j&4?Zl(this):(t=new ml(Zl(this)),t.a+=" (data: ",Vo(t,this.a),t.a+=", target: ",Vo(t,this.b),t.a+=")",t.a)},h.a=null,h.b=null,k(Si,"ProcessingInstructionImpl",678),_(679,836,{110:1,95:1,94:1,57:1,52:1,101:1,849:1,2099:1,679:1},KZe),h.Ih=function(t,r,o){switch(t){case 0:return o?(!this.c&&(this.c=new ni(this,0)),this.c):(!this.c&&(this.c=new ni(this,0)),this.c.b);case 1:return o?(!this.c&&(this.c=new ni(this,0)),l(ya(this.c,(Tr(),km)),164)):(!this.c&&(this.c=new ni(this,0)),l(l(ya(this.c,(Tr(),km)),164),222)).Tl();case 2:return o?(!this.b&&(this.b=new ni(this,2)),this.b):(!this.b&&(this.b=new ni(this,2)),this.b.b);case 3:return!this.c&&(this.c=new ni(this,0)),In(lD(this.c,(Tr(),M4),!0));case 4:return cfe(this.a,(!this.c&&(this.c=new ni(this,0)),In(lD(this.c,(Tr(),M4),!0))));case 5:return this.a}return qc(this,t-ln((Tr(),v2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t),r,o)},h.Th=function(t){switch(t){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new ni(this,0)),l(ya(this.c,(Tr(),km)),164)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new ni(this,0)),In(lD(this.c,(Tr(),M4),!0))!=null;case 4:return cfe(this.a,(!this.c&&(this.c=new ni(this,0)),In(lD(this.c,(Tr(),M4),!0))))!=null;case 5:return!!this.a}return zc(this,t-ln((Tr(),v2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t))},h.$h=function(t,r){switch(t){case 0:!this.c&&(this.c=new ni(this,0)),VO(this.c,r);return;case 1:(!this.c&&(this.c=new ni(this,0)),l(l(ya(this.c,(Tr(),km)),164),222)).Wb(r);return;case 2:!this.b&&(this.b=new ni(this,2)),VO(this.b,r);return;case 3:Yhe(this,In(r));return;case 4:Yhe(this,ufe(this.a,r));return;case 5:UZt(this,l(r,160));return}Xc(this,t-ln((Tr(),v2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t),r)},h.fi=function(){return Tr(),v2},h.hi=function(t){switch(t){case 0:!this.c&&(this.c=new ni(this,0)),vn(this.c);return;case 1:(!this.c&&(this.c=new ni(this,0)),l(ya(this.c,(Tr(),km)),164)).$b();return;case 2:!this.b&&(this.b=new ni(this,2)),vn(this.b);return;case 3:!this.c&&(this.c=new ni(this,0)),K7(this.c,(Tr(),M4),null);return;case 4:Yhe(this,ufe(this.a,null));return;case 5:this.a=null;return}Jc(this,t-ln((Tr(),v2)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():v2,t))},k(Si,"SimpleAnyTypeImpl",679),_(680,505,{110:1,95:1,94:1,57:1,52:1,101:1,2100:1,680:1},YZe),h.Ih=function(t,r,o){switch(t){case 0:return o?(!this.a&&(this.a=new ni(this,0)),this.a):(!this.a&&(this.a=new ni(this,0)),this.a.b);case 1:return o?(!this.b&&(this.b=new pu((_t(),Ro),zs,this,1)),this.b):(!this.b&&(this.b=new pu((_t(),Ro),zs,this,1)),s6(this.b));case 2:return o?(!this.c&&(this.c=new pu((_t(),Ro),zs,this,2)),this.c):(!this.c&&(this.c=new pu((_t(),Ro),zs,this,2)),s6(this.c));case 3:return!this.a&&(this.a=new ni(this,0)),ya(this.a,(Tr(),h5));case 4:return!this.a&&(this.a=new ni(this,0)),ya(this.a,(Tr(),p5));case 5:return!this.a&&(this.a=new ni(this,0)),ya(this.a,(Tr(),P4));case 6:return!this.a&&(this.a=new ni(this,0)),ya(this.a,(Tr(),j4))}return qc(this,t-ln((Tr(),hw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():hw,t),r,o)},h.Rh=function(t,r,o){var a;switch(r){case 0:return!this.a&&(this.a=new ni(this,0)),aD(this.a,t,o);case 1:return!this.b&&(this.b=new pu((_t(),Ro),zs,this,1)),q8(this.b,t,o);case 2:return!this.c&&(this.c=new pu((_t(),Ro),zs,this,2)),q8(this.c,t,o);case 5:return!this.a&&(this.a=new ni(this,0)),wit(ya(this.a,(Tr(),P4)),t,o)}return a=l(Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():(Tr(),hw),r),69),a.uk().yk(this,Upe(this),r-ln((Tr(),hw)),t,o)},h.Th=function(t){switch(t){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new ni(this,0)),!x8(ya(this.a,(Tr(),h5)));case 4:return!this.a&&(this.a=new ni(this,0)),!x8(ya(this.a,(Tr(),p5)));case 5:return!this.a&&(this.a=new ni(this,0)),!x8(ya(this.a,(Tr(),P4)));case 6:return!this.a&&(this.a=new ni(this,0)),!x8(ya(this.a,(Tr(),j4)))}return zc(this,t-ln((Tr(),hw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():hw,t))},h.$h=function(t,r){switch(t){case 0:!this.a&&(this.a=new ni(this,0)),VO(this.a,r);return;case 1:!this.b&&(this.b=new pu((_t(),Ro),zs,this,1)),Cj(this.b,r);return;case 2:!this.c&&(this.c=new pu((_t(),Ro),zs,this,2)),Cj(this.c,r);return;case 3:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),h5))),!this.a&&(this.a=new ni(this,0)),m3(ya(this.a,h5),l(r,18));return;case 4:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),p5))),!this.a&&(this.a=new ni(this,0)),m3(ya(this.a,p5),l(r,18));return;case 5:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),P4))),!this.a&&(this.a=new ni(this,0)),m3(ya(this.a,P4),l(r,18));return;case 6:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),j4))),!this.a&&(this.a=new ni(this,0)),m3(ya(this.a,j4),l(r,18));return}Xc(this,t-ln((Tr(),hw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():hw,t),r)},h.fi=function(){return Tr(),hw},h.hi=function(t){switch(t){case 0:!this.a&&(this.a=new ni(this,0)),vn(this.a);return;case 1:!this.b&&(this.b=new pu((_t(),Ro),zs,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new pu((_t(),Ro),zs,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),h5)));return;case 4:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),p5)));return;case 5:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),P4)));return;case 6:!this.a&&(this.a=new ni(this,0)),iS(ya(this.a,(Tr(),j4)));return}Jc(this,t-ln((Tr(),hw)),Nt(this.j&2?(!this.k&&(this.k=new bd),this.k).Lk():hw,t))},h.Ib=function(){var t;return this.j&4?Zl(this):(t=new ml(Zl(this)),t.a+=" (mixed: ",h3(t,this.a),t.a+=")",t.a)},k(Si,"XMLTypeDocumentRootImpl",680),_(2007,717,{110:1,95:1,94:1,472:1,159:1,57:1,115:1,52:1,101:1,162:1,118:1,119:1,2101:1},fVe),h.oi=function(t,r){switch(t.fk()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return r==null?null:ms(r);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return In(r);case 6:return xnn(l(r,198));case 12:case 47:case 49:case 11:return Jvt(this,t,r);case 13:return r==null?null:Y_n(l(r,249));case 15:case 14:return r==null?null:jsn(ue(ce(r)));case 17:return Ibt((Tr(),r));case 18:return Ibt(r);case 21:case 20:return r==null?null:Fsn(l(r,165).a);case 27:return knn(l(r,198));case 30:return H1t((Tr(),l(r,16)));case 31:return H1t(l(r,16));case 40:return _nn((Tr(),r));case 42:return Rbt((Tr(),r));case 43:return Rbt(r);case 59:case 48:return Ann((Tr(),r));default:throw Y(new jt(Dx+t.ve()+W0))}},h.pi=function(t){var r,o,a,u,f;switch(t.G==-1&&(t.G=(o=mc(t),o?gg(o.si(),t):-1)),t.G){case 0:return r=new Bce,r;case 1:return a=new TVe,a;case 2:return u=new KZe,u;case 3:return f=new YZe,f;default:throw Y(new jt(rQ+t.zb+W0))}},h.qi=function(t,r){var o,a,u,f,p,m,y,v,T,N,O,M,U,z,J,ne;switch(t.fk()){case 5:case 52:case 4:return r;case 6:return ibn(r);case 8:case 7:return r==null?null:G0n(r);case 9:return r==null?null:p6(Ec((a=Ta(r,!0),a.length>0&&(Yt(0,a.length),a.charCodeAt(0)==43)?(Yt(1,a.length+1),a.substr(1)):a),-128,127)<<24>>24);case 10:return r==null?null:p6(Ec((u=Ta(r,!0),u.length>0&&(Yt(0,u.length),u.charCodeAt(0)==43)?(Yt(1,u.length+1),u.substr(1)):u),-128,127)<<24>>24);case 11:return In(P0(this,(Tr(),ELt),r));case 12:return In(P0(this,(Tr(),SLt),r));case 13:return r==null?null:new ale(Ta(r,!0));case 15:case 14:return r2n(r);case 16:return In(P0(this,(Tr(),TLt),r));case 17:return Ggt((Tr(),r));case 18:return Ggt(r);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Ta(r,!0);case 21:case 20:return h2n(r);case 22:return In(P0(this,(Tr(),ALt),r));case 23:return In(P0(this,(Tr(),_Lt),r));case 24:return In(P0(this,(Tr(),xLt),r));case 25:return In(P0(this,(Tr(),kLt),r));case 26:return In(P0(this,(Tr(),NLt),r));case 27:return K1n(r);case 30:return qgt((Tr(),r));case 31:return qgt(r);case 32:return r==null?null:Re(Ec((T=Ta(r,!0),T.length>0&&(Yt(0,T.length),T.charCodeAt(0)==43)?(Yt(1,T.length+1),T.substr(1)):T),Qi,sr));case 33:return r==null?null:new o1((N=Ta(r,!0),N.length>0&&(Yt(0,N.length),N.charCodeAt(0)==43)?(Yt(1,N.length+1),N.substr(1)):N));case 34:return r==null?null:Re(Ec((O=Ta(r,!0),O.length>0&&(Yt(0,O.length),O.charCodeAt(0)==43)?(Yt(1,O.length+1),O.substr(1)):O),Qi,sr));case 36:return r==null?null:my(Z7((M=Ta(r,!0),M.length>0&&(Yt(0,M.length),M.charCodeAt(0)==43)?(Yt(1,M.length+1),M.substr(1)):M)));case 37:return r==null?null:my(Z7((U=Ta(r,!0),U.length>0&&(Yt(0,U.length),U.charCodeAt(0)==43)?(Yt(1,U.length+1),U.substr(1)):U)));case 40:return qbn((Tr(),r));case 42:return Vgt((Tr(),r));case 43:return Vgt(r);case 44:return r==null?null:new o1((z=Ta(r,!0),z.length>0&&(Yt(0,z.length),z.charCodeAt(0)==43)?(Yt(1,z.length+1),z.substr(1)):z));case 45:return r==null?null:new o1((J=Ta(r,!0),J.length>0&&(Yt(0,J.length),J.charCodeAt(0)==43)?(Yt(1,J.length+1),J.substr(1)):J));case 46:return Ta(r,!1);case 47:return In(P0(this,(Tr(),CLt),r));case 59:case 48:return Gbn((Tr(),r));case 49:return In(P0(this,(Tr(),ILt),r));case 50:return r==null?null:D_(Ec((ne=Ta(r,!0),ne.length>0&&(Yt(0,ne.length),ne.charCodeAt(0)==43)?(Yt(1,ne.length+1),ne.substr(1)):ne),e$,32767)<<16>>16);case 51:return r==null?null:D_(Ec((f=Ta(r,!0),f.length>0&&(Yt(0,f.length),f.charCodeAt(0)==43)?(Yt(1,f.length+1),f.substr(1)):f),e$,32767)<<16>>16);case 53:return In(P0(this,(Tr(),RLt),r));case 55:return r==null?null:D_(Ec((p=Ta(r,!0),p.length>0&&(Yt(0,p.length),p.charCodeAt(0)==43)?(Yt(1,p.length+1),p.substr(1)):p),e$,32767)<<16>>16);case 56:return r==null?null:D_(Ec((m=Ta(r,!0),m.length>0&&(Yt(0,m.length),m.charCodeAt(0)==43)?(Yt(1,m.length+1),m.substr(1)):m),e$,32767)<<16>>16);case 57:return r==null?null:my(Z7((y=Ta(r,!0),y.length>0&&(Yt(0,y.length),y.charCodeAt(0)==43)?(Yt(1,y.length+1),y.substr(1)):y)));case 58:return r==null?null:my(Z7((v=Ta(r,!0),v.length>0&&(Yt(0,v.length),v.charCodeAt(0)==43)?(Yt(1,v.length+1),v.substr(1)):v)));case 60:return r==null?null:Re(Ec((o=Ta(r,!0),o.length>0&&(Yt(0,o.length),o.charCodeAt(0)==43)?(Yt(1,o.length+1),o.substr(1)):o),Qi,sr));case 61:return r==null?null:Re(Ec(Ta(r,!0),Qi,sr));default:throw Y(new jt(Dx+t.ve()+W0))}};var DLt,W3e,LLt,K3e;k(Si,"XMLTypeFactoryImpl",2007),_(589,187,{110:1,95:1,94:1,159:1,199:1,57:1,244:1,115:1,52:1,101:1,162:1,187:1,118:1,119:1,687:1,2023:1,589:1},iat),h.N=!1,h.O=!1;var MLt=!1;k(Si,"XMLTypePackageImpl",589),_(1940,1,{843:1},hVe),h.Ik=function(){return T0e(),GLt},k(Si,"XMLTypePackageImpl/1",1940),_(1949,1,tr,pVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/10",1949),_(1950,1,tr,gVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/11",1950),_(1951,1,tr,bVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/12",1951),_(1952,1,tr,mVe),h.dk=function(t){return Uw(t)},h.ek=function(t){return we(fi,Pe,347,t,7,1)},k(Si,"XMLTypePackageImpl/13",1952),_(1953,1,tr,wVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/14",1953),_(1954,1,tr,yVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/15",1954),_(1955,1,tr,vVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/16",1955),_(1956,1,tr,EVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/17",1956),_(1957,1,tr,SVe),h.dk=function(t){return ae(t,165)},h.ek=function(t){return we(Ux,Pe,165,t,0,1)},k(Si,"XMLTypePackageImpl/18",1957),_(1958,1,tr,AVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/19",1958),_(1941,1,tr,_Ve),h.dk=function(t){return ae(t,849)},h.ek=function(t){return we(d5,Rt,849,t,0,1)},k(Si,"XMLTypePackageImpl/2",1941),_(1959,1,tr,xVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/20",1959),_(1960,1,tr,kVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/21",1960),_(1961,1,tr,NVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/22",1961),_(1962,1,tr,CVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/23",1962),_(1963,1,tr,IVe),h.dk=function(t){return ae(t,198)},h.ek=function(t){return we(Eu,Pe,198,t,0,2)},k(Si,"XMLTypePackageImpl/24",1963),_(1964,1,tr,RVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/25",1964),_(1965,1,tr,OVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/26",1965),_(1966,1,tr,DVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/27",1966),_(1967,1,tr,LVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/28",1967),_(1968,1,tr,MVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/29",1968),_(1942,1,tr,PVe),h.dk=function(t){return ae(t,678)},h.ek=function(t){return we(xU,Rt,2098,t,0,1)},k(Si,"XMLTypePackageImpl/3",1942),_(1969,1,tr,jVe),h.dk=function(t){return ae(t,15)},h.ek=function(t){return we(Ti,Pe,15,t,0,1)},k(Si,"XMLTypePackageImpl/30",1969),_(1970,1,tr,FVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/31",1970),_(1971,1,tr,$Ve),h.dk=function(t){return ae(t,192)},h.ek=function(t){return we(Y0,Pe,192,t,0,1)},k(Si,"XMLTypePackageImpl/32",1971),_(1972,1,tr,BVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/33",1972),_(1973,1,tr,UVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/34",1973),_(1974,1,tr,HVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/35",1974),_(1975,1,tr,zVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/36",1975),_(1976,1,tr,GVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/37",1976),_(1977,1,tr,qVe),h.dk=function(t){return ae(t,16)},h.ek=function(t){return we(_c,Oy,16,t,0,1)},k(Si,"XMLTypePackageImpl/38",1977),_(1978,1,tr,VVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/39",1978),_(1943,1,tr,WVe),h.dk=function(t){return ae(t,679)},h.ek=function(t){return we(f5,Rt,2099,t,0,1)},k(Si,"XMLTypePackageImpl/4",1943),_(1979,1,tr,KVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/40",1979),_(1980,1,tr,YVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/41",1980),_(1981,1,tr,JVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/42",1981),_(1982,1,tr,XVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/43",1982),_(1983,1,tr,ZVe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/44",1983),_(1984,1,tr,QVe),h.dk=function(t){return ae(t,193)},h.ek=function(t){return we(J0,Pe,193,t,0,1)},k(Si,"XMLTypePackageImpl/45",1984),_(1985,1,tr,eWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/46",1985),_(1986,1,tr,tWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/47",1986),_(1987,1,tr,nWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/48",1987),_(1988,1,tr,rWe),h.dk=function(t){return ae(t,193)},h.ek=function(t){return we(J0,Pe,193,t,0,1)},k(Si,"XMLTypePackageImpl/49",1988),_(1944,1,tr,iWe),h.dk=function(t){return ae(t,680)},h.ek=function(t){return we(q3e,Rt,2100,t,0,1)},k(Si,"XMLTypePackageImpl/5",1944),_(1989,1,tr,oWe),h.dk=function(t){return ae(t,192)},h.ek=function(t){return we(Y0,Pe,192,t,0,1)},k(Si,"XMLTypePackageImpl/50",1989),_(1990,1,tr,sWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/51",1990),_(1991,1,tr,aWe),h.dk=function(t){return ae(t,15)},h.ek=function(t){return we(Ti,Pe,15,t,0,1)},k(Si,"XMLTypePackageImpl/52",1991),_(1945,1,tr,uWe),h.dk=function(t){return zi(t)},h.ek=function(t){return we(Je,Pe,2,t,6,1)},k(Si,"XMLTypePackageImpl/6",1945),_(1946,1,tr,cWe),h.dk=function(t){return ae(t,198)},h.ek=function(t){return we(Eu,Pe,198,t,0,2)},k(Si,"XMLTypePackageImpl/7",1946),_(1947,1,tr,lWe),h.dk=function(t){return Bw(t)},h.ek=function(t){return we(Yr,Pe,476,t,8,1)},k(Si,"XMLTypePackageImpl/8",1947),_(1948,1,tr,dWe),h.dk=function(t){return ae(t,224)},h.ek=function(t){return we(ET,Pe,224,t,0,1)},k(Si,"XMLTypePackageImpl/9",1948);var mf,Pg,F4,kU,te;_(53,63,vp,Ln),k(Tg,"RegEx/ParseException",53),_(828,1,{},Gue),h._l=function(t){return to*16)throw Y(new Ln(jn((Cn(),AAt))));o=o*16+u}while(!0);if(this.a!=125)throw Y(new Ln(jn((Cn(),_At))));if(o>Fx)throw Y(new Ln(jn((Cn(),xAt))));t=o}else{if(u=0,this.c!=0||(u=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));if(o=u,dr(this),this.c!=0||(u=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));o=o*16+u,t=o}break;case 117:if(a=0,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));if(r=a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));r=r*16+a,t=r;break;case 118:if(dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));if(r=a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));if(r=r*16+a,dr(this),this.c!=0||(a=Xb(this.a))<0)throw Y(new Ln(jn((Cn(),Sg))));if(r=r*16+a,r>Fx)throw Y(new Ln(jn((Cn(),"parser.descappe.4"))));t=r;break;case 65:case 90:case 122:throw Y(new Ln(jn((Cn(),kAt))))}return t},h.bm=function(t){var r,o;switch(t){case 100:o=(this.e&32)==32?x1("Nd",!0):(fr(),NU);break;case 68:o=(this.e&32)==32?x1("Nd",!1):(fr(),eCe);break;case 119:o=(this.e&32)==32?x1("IsWord",!0):(fr(),kk);break;case 87:o=(this.e&32)==32?x1("IsWord",!1):(fr(),nCe);break;case 115:o=(this.e&32)==32?x1("IsSpace",!0):(fr(),ZT);break;case 83:o=(this.e&32)==32?x1("IsSpace",!1):(fr(),tCe);break;default:throw Y(new Es((r=t,k_t+r.toString(16))))}return o},h.cm=function(t){var r,o,a,u,f,p,m,y,v,T,N,O;for(this.b=1,dr(this),r=null,this.c==0&&this.a==94?(dr(this),t?T=(fr(),fr(),new bc(5)):(r=(fr(),fr(),new bc(4)),Sa(r,0,Fx),T=new bc(4))):T=(fr(),fr(),new bc(4)),u=!0;(O=this.c)!=1&&!(O==0&&this.a==93&&!u);){if(u=!1,o=this.a,a=!1,O==10)switch(o){case 100:case 68:case 119:case 87:case 115:case 83:Ny(T,this.bm(o)),a=!0;break;case 105:case 73:case 99:case 67:o=this.sm(T,o),o<0&&(a=!0);break;case 112:case 80:if(N=bme(this,o),!N)throw Y(new Ln(jn((Cn(),bQ))));Ny(T,N),a=!0;break;default:o=this.am()}else if(O==20){if(p=KA(this.i,58,this.d),p<0)throw Y(new Ln(jn((Cn(),SEe))));if(m=!0,co(this.i,this.d)==94&&(++this.d,m=!1),f=yl(this.i,this.d,p),y=cdt(f,m,(this.e&512)==512),!y)throw Y(new Ln(jn((Cn(),yAt))));if(Ny(T,y),a=!0,p+1>=this.j||co(this.i,p+1)!=93)throw Y(new Ln(jn((Cn(),SEe))));this.d=p+2}if(dr(this),!a)if(this.c!=0||this.a!=45)Sa(T,o,o);else{if(dr(this),(O=this.c)==1)throw Y(new Ln(jn((Cn(),WF))));O==0&&this.a==93?(Sa(T,o,o),Sa(T,45,45)):(v=this.a,O==10&&(v=this.am()),dr(this),Sa(T,o,v))}(this.e&Tl)==Tl&&this.c==0&&this.a==44&&dr(this)}if(this.c==1)throw Y(new Ln(jn((Cn(),WF))));return r&&($C(r,T),T=r),xE(T),PC(T),this.b=0,dr(this),T},h.dm=function(){var t,r,o,a;for(o=this.cm(!1);(a=this.c)!=7;)if(t=this.a,a==0&&(t==45||t==38)||a==4){if(dr(this),this.c!=9)throw Y(new Ln(jn((Cn(),EAt))));if(r=this.cm(!1),a==4)Ny(o,r);else if(t==45)$C(o,r);else if(t==38)Vvt(o,r);else throw Y(new Es("ASSERT"))}else throw Y(new Ln(jn((Cn(),SAt))));return dr(this),o},h.em=function(){var t,r;return t=this.a-48,r=(fr(),fr(),new _W(12,null,t)),!this.g&&(this.g=new O9),R9(this.g,new xce(t)),dr(this),r},h.fm=function(){return dr(this),fr(),FLt},h.gm=function(){return dr(this),fr(),jLt},h.hm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.im=function(){throw Y(new Ln(jn((Cn(),tl))))},h.jm=function(){return dr(this),ypn()},h.km=function(){return dr(this),fr(),BLt},h.lm=function(){return dr(this),fr(),HLt},h.mm=function(){var t;if(this.d>=this.j||((t=co(this.i,this.d++))&65504)!=64)throw Y(new Ln(jn((Cn(),bAt))));return dr(this),fr(),fr(),new dh(0,t-64)},h.nm=function(){return dr(this),YAn()},h.om=function(){return dr(this),fr(),zLt},h.pm=function(){var t;return t=(fr(),fr(),new dh(0,105)),dr(this),t},h.qm=function(){return dr(this),fr(),ULt},h.rm=function(){return dr(this),fr(),$Lt},h.sm=function(t,r){return this.am()},h.tm=function(){return dr(this),fr(),Z3e},h.um=function(){var t,r,o,a,u;if(this.d+1>=this.j)throw Y(new Ln(jn((Cn(),hAt))));if(a=-1,r=null,t=co(this.i,this.d),49<=t&&t<=57){if(a=t-48,!this.g&&(this.g=new O9),R9(this.g,new xce(a)),++this.d,co(this.i,this.d)!=41)throw Y(new Ln(jn((Cn(),cm))));++this.d}else switch(t==63&&--this.d,dr(this),r=Y0e(this),r.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw Y(new Ln(jn((Cn(),cm))));break;default:throw Y(new Ln(jn((Cn(),pAt))))}if(dr(this),u=N0(this),o=null,u.e==2){if(u.Nm()!=2)throw Y(new Ln(jn((Cn(),gAt))));o=u.Jm(1),u=u.Jm(0)}if(this.c!=7)throw Y(new Ln(jn((Cn(),cm))));return dr(this),fr(),fr(),new ift(a,r,u,o)},h.vm=function(){return dr(this),fr(),Q3e},h.wm=function(){var t;if(dr(this),t=wP(24,N0(this)),this.c!=7)throw Y(new Ln(jn((Cn(),cm))));return dr(this),t},h.xm=function(){var t;if(dr(this),t=wP(20,N0(this)),this.c!=7)throw Y(new Ln(jn((Cn(),cm))));return dr(this),t},h.ym=function(){var t;if(dr(this),t=wP(22,N0(this)),this.c!=7)throw Y(new Ln(jn((Cn(),cm))));return dr(this),t},h.zm=function(){var t,r,o,a,u;for(t=0,o=0,r=-1;this.d=this.j)throw Y(new Ln(jn((Cn(),vEe))));if(r==45){for(++this.d;this.d=this.j)throw Y(new Ln(jn((Cn(),vEe))))}if(r==58){if(++this.d,dr(this),a=Rst(N0(this),t,o),this.c!=7)throw Y(new Ln(jn((Cn(),cm))));dr(this)}else if(r==41)++this.d,dr(this),a=Rst(N0(this),t,o);else throw Y(new Ln(jn((Cn(),fAt))));return a},h.Am=function(){var t;if(dr(this),t=wP(21,N0(this)),this.c!=7)throw Y(new Ln(jn((Cn(),cm))));return dr(this),t},h.Bm=function(){var t;if(dr(this),t=wP(23,N0(this)),this.c!=7)throw Y(new Ln(jn((Cn(),cm))));return dr(this),t},h.Cm=function(){var t,r;if(dr(this),t=this.f++,r=QV(N0(this),t),this.c!=7)throw Y(new Ln(jn((Cn(),cm))));return dr(this),r},h.Dm=function(){var t;if(dr(this),t=QV(N0(this),0),this.c!=7)throw Y(new Ln(jn((Cn(),cm))));return dr(this),t},h.Em=function(t){return dr(this),this.c==5?(dr(this),lP(t,(fr(),fr(),new oy(9,t)))):lP(t,(fr(),fr(),new oy(3,t)))},h.Fm=function(t){var r;return dr(this),r=(fr(),fr(),new b3(2)),this.c==5?(dr(this),em(r,B4),em(r,t)):(em(r,t),em(r,B4)),r},h.Gm=function(t){return dr(this),this.c==5?(dr(this),fr(),fr(),new oy(9,t)):(fr(),fr(),new oy(3,t))},h.a=0,h.b=0,h.c=0,h.d=0,h.e=0,h.f=1,h.g=null,h.j=0,k(Tg,"RegEx/RegexParser",828),_(1927,828,{},JZe),h._l=function(t){return!1},h.am=function(){return e0e(this)},h.bm=function(t){return tx(t)},h.cm=function(t){return BEt(this)},h.dm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.em=function(){throw Y(new Ln(jn((Cn(),tl))))},h.fm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.gm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.hm=function(){return dr(this),tx(67)},h.im=function(){return dr(this),tx(73)},h.jm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.km=function(){throw Y(new Ln(jn((Cn(),tl))))},h.lm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.mm=function(){return dr(this),tx(99)},h.nm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.om=function(){throw Y(new Ln(jn((Cn(),tl))))},h.pm=function(){return dr(this),tx(105)},h.qm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.rm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.sm=function(t,r){return Ny(t,tx(r)),-1},h.tm=function(){return dr(this),fr(),fr(),new dh(0,94)},h.um=function(){throw Y(new Ln(jn((Cn(),tl))))},h.vm=function(){return dr(this),fr(),fr(),new dh(0,36)},h.wm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.xm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.ym=function(){throw Y(new Ln(jn((Cn(),tl))))},h.zm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.Am=function(){throw Y(new Ln(jn((Cn(),tl))))},h.Bm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.Cm=function(){var t;if(dr(this),t=QV(N0(this),0),this.c!=7)throw Y(new Ln(jn((Cn(),cm))));return dr(this),t},h.Dm=function(){throw Y(new Ln(jn((Cn(),tl))))},h.Em=function(t){return dr(this),lP(t,(fr(),fr(),new oy(3,t)))},h.Fm=function(t){var r;return dr(this),r=(fr(),fr(),new b3(2)),em(r,t),em(r,B4),r},h.Gm=function(t){return dr(this),fr(),fr(),new oy(3,t)};var E2=null,_k=null;k(Tg,"RegEx/ParserForXMLSchema",1927),_(122,1,$x,Km),h.Hm=function(t){throw Y(new Es("Not supported."))},h.Im=function(){return-1},h.Jm=function(t){return null},h.Km=function(){return null},h.Lm=function(t){},h.Mm=function(t){},h.Nm=function(){return 0},h.Ib=function(){return this.Om(0)},h.Om=function(t){return this.e==11?".":""},h.e=0;var Y3e,xk,$4,PLt,J3e,vv=null,NU,zre=null,X3e,B4,Gre=null,Z3e,Q3e,eCe,tCe,nCe,jLt,ZT,FLt,$Lt,BLt,ULt,kk,HLt,zLt,dCn=k(Tg,"RegEx/Token",122);_(140,122,{3:1,140:1,122:1},bc),h.Om=function(t){var r,o,a;if(this.e==4)if(this==X3e)o=".";else if(this==NU)o="\\d";else if(this==kk)o="\\w";else if(this==ZT)o="\\s";else{for(a=new Xp,a.a+="[",r=0;r0&&(a.a+=","),this.b[r]===this.b[r+1]?Vo(a,cD(this.b[r])):(Vo(a,cD(this.b[r])),a.a+="-",Vo(a,cD(this.b[r+1])));a.a+="]",o=a.a}else if(this==eCe)o="\\D";else if(this==nCe)o="\\W";else if(this==tCe)o="\\S";else{for(a=new Xp,a.a+="[^",r=0;r0&&(a.a+=","),this.b[r]===this.b[r+1]?Vo(a,cD(this.b[r])):(Vo(a,cD(this.b[r])),a.a+="-",Vo(a,cD(this.b[r+1])));a.a+="]",o=a.a}return o},h.a=!1,h.c=!1,k(Tg,"RegEx/RangeToken",140),_(587,1,{587:1},xce),h.a=0,k(Tg,"RegEx/RegexParser/ReferencePosition",587),_(586,1,{3:1,586:1},het),h.Fb=function(t){var r;return t==null||!ae(t,586)?!1:(r=l(t,586),wt(this.b,r.b)&&this.a==r.a)},h.Hb=function(){return lg(this.b+"/"+Wme(this.a))},h.Ib=function(){return this.c.Om(this.a)},h.a=0,k(Tg,"RegEx/RegularExpression",586),_(230,122,$x,dh),h.Im=function(){return this.a},h.Om=function(t){var r,o,a;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:a="\\"+_V(this.a&Ei);break;case 12:a="\\f";break;case 10:a="\\n";break;case 13:a="\\r";break;case 9:a="\\t";break;case 27:a="\\e";break;default:this.a>=No?(o=(r=this.a>>>0,"0"+r.toString(16)),a="\\v"+yl(o,o.length-6,o.length)):a=""+_V(this.a&Ei)}break;case 8:this==Z3e||this==Q3e?a=""+_V(this.a&Ei):a="\\"+_V(this.a&Ei);break;default:a=null}return a},h.a=0,k(Tg,"RegEx/Token/CharToken",230),_(323,122,$x,oy),h.Jm=function(t){return this.a},h.Lm=function(t){this.b=t},h.Mm=function(t){this.c=t},h.Nm=function(){return 1},h.Om=function(t){var r;if(this.e==3)if(this.c<0&&this.b<0)r=this.a.Om(t)+"*";else if(this.c==this.b)r=this.a.Om(t)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)r=this.a.Om(t)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)r=this.a.Om(t)+"{"+this.c+",}";else throw Y(new Es("Token#toString(): CLOSURE "+this.c+ja+this.b));else if(this.c<0&&this.b<0)r=this.a.Om(t)+"*?";else if(this.c==this.b)r=this.a.Om(t)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)r=this.a.Om(t)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)r=this.a.Om(t)+"{"+this.c+",}?";else throw Y(new Es("Token#toString(): NONGREEDYCLOSURE "+this.c+ja+this.b));return r},h.b=0,h.c=0,k(Tg,"RegEx/Token/ClosureToken",323),_(829,122,$x,she),h.Jm=function(t){return t==0?this.a:this.b},h.Nm=function(){return 2},h.Om=function(t){var r;return this.b.e==3&&this.b.Jm(0)==this.a?r=this.a.Om(t)+"+":this.b.e==9&&this.b.Jm(0)==this.a?r=this.a.Om(t)+"+?":r=this.a.Om(t)+(""+this.b.Om(t)),r},k(Tg,"RegEx/Token/ConcatToken",829),_(1925,122,$x,ift),h.Jm=function(t){if(t==0)return this.d;if(t==1)return this.b;throw Y(new Es("Internal Error: "+t))},h.Nm=function(){return this.b?2:1},h.Om=function(t){var r;return this.c>0?r="(?("+this.c+")":this.a.e==8?r="(?("+this.a+")":r="(?"+this.a,this.b?r+=this.d+"|"+this.b+")":r+=this.d+")",r},h.c=0,k(Tg,"RegEx/Token/ConditionToken",1925),_(1926,122,$x,Rut),h.Jm=function(t){return this.b},h.Nm=function(){return 1},h.Om=function(t){return"(?"+(this.a==0?"":Wme(this.a))+(this.c==0?"":Wme(this.c))+":"+this.b.Om(t)+")"},h.a=0,h.c=0,k(Tg,"RegEx/Token/ModifierToken",1926),_(830,122,$x,ghe),h.Jm=function(t){return this.a},h.Nm=function(){return 1},h.Om=function(t){var r;switch(r=null,this.e){case 6:this.b==0?r="(?:"+this.a.Om(t)+")":r="("+this.a.Om(t)+")";break;case 20:r="(?="+this.a.Om(t)+")";break;case 21:r="(?!"+this.a.Om(t)+")";break;case 22:r="(?<="+this.a.Om(t)+")";break;case 23:r="(?"+this.a.Om(t)+")"}return r},h.b=0,k(Tg,"RegEx/Token/ParenToken",830),_(521,122,{3:1,122:1,521:1},_W),h.Km=function(){return this.b},h.Om=function(t){return this.e==12?"\\"+this.a:UEn(this.b)},h.a=0,k(Tg,"RegEx/Token/StringToken",521),_(469,122,$x,b3),h.Hm=function(t){em(this,t)},h.Jm=function(t){return l(d0(this.a,t),122)},h.Nm=function(){return this.a?this.a.a.c.length:0},h.Om=function(t){var r,o,a,u,f;if(this.e==1){if(this.a.a.c.length==2)r=l(d0(this.a,0),122),o=l(d0(this.a,1),122),o.e==3&&o.Jm(0)==r?u=r.Om(t)+"+":o.e==9&&o.Jm(0)==r?u=r.Om(t)+"+?":u=r.Om(t)+(""+o.Om(t));else{for(f=new Xp,a=0;a=this.c.b:this.a<=this.c.b},h.Sb=function(){return this.b>0},h.Tb=function(){return this.b},h.Vb=function(){return this.b-1},h.Qb=function(){throw Y(new Jp(L_t))},h.a=0,h.b=0,k(UEe,"ExclusiveRange/RangeIterator",261);var al=o_(KF,"C"),Rn=o_(dI,"I"),uu=o_(uT,"Z"),pw=o_(fI,"J"),Eu=o_(uI,"B"),Ki=o_(cI,"D"),Ev=o_(lI,"F"),S2=o_(hI,"S"),fCn=Hr("org.eclipse.elk.core.labels","ILabelManager"),rCe=Hr(xo,"DiagnosticChain"),iCe=Hr(u_t,"ResourceSet"),oCe=k(xo,"InvocationTargetException",null),qLt=(F9(),ndn),VLt=VLt=C0n;Hfn(nQt),ehn("permProps",[[["locale","default"],[M_t,"gecko1_8"]],[["locale","default"],[M_t,"safari"]]]),VLt(null,"elk",null)}).call(this)}).call(this,typeof C5<"u"?C5:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(s,c,d){function g($){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},g($)}function b($,j,P){return Object.defineProperty($,"prototype",{writable:!1}),$}function w($,j){if(!($ instanceof j))throw new TypeError("Cannot call a class as a function")}function E($,j,P){return j=C(j),S($,A()?Reflect.construct(j,P||[],C($).constructor):j.apply($,P))}function S($,j){if(j&&(g(j)=="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x($)}function x($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function A(){try{var $=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A=function(){return!!$})()}function C($){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(j){return j.__proto__||Object.getPrototypeOf(j)},C($)}function R($,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(j&&j.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),Object.defineProperty($,"prototype",{writable:!1}),j&&L($,j)}function L($,j){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,G){return P.__proto__=G,P},L($,j)}var D=s("./elk-api.js").default,B=function($){function j(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};w(this,j);var G=Object.assign({},P),ee=!1;try{s.resolve("web-worker"),ee=!0}catch{}if(P.workerUrl)if(ee){var re=s("web-worker");G.workerFactory=function(pe){return new re(pe)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +Consider installing the package or pass your own 'workerFactory' to ELK's constructor. +... Falling back to non-web worker version.`);if(!G.workerFactory){var Q=s("./elk-worker.min.js"),ie=Q.Worker;G.workerFactory=function(pe){return new ie(pe)}}return E(this,j,[G])}return R(j,$),b(j)}(D);Object.defineProperty(c.exports,"__esModule",{value:!0}),c.exports=B,B.default=B},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(s,c,d){var g=typeof Worker<"u"?Worker:void 0;c.exports=g},{}]},{},[3])(3)})})(YWt);var jZn=YWt.exports;const FZn=TR(jZn),$Zn=new FZn;async function BZn(n,i){try{const s=n.map(b=>({id:b.id,width:HZn(b.type),height:zZn(b.type)})),c=i.map(b=>({id:b.id,sources:[b.source],targets:[b.target]})),d={id:"root",layoutOptions:{"elk.algorithm":"layered","elk.direction":"RIGHT","elk.spacing.nodeNode":"80","elk.layered.spacing.nodeNodeBetweenLayers":"100","elk.spacing.edgeNode":"40","elk.layered.nodePlacement.strategy":"SIMPLE"},children:s,edges:c},g=await $Zn.layout(d);return n.map(b=>{var E;const w=(E=g.children)==null?void 0:E.find(S=>S.id===b.id);return w&&w.x!==void 0&&w.y!==void 0?{...b,position:{x:w.x,y:w.y}}:b})}catch{return UZn(n)}}function UZn(n){return n.map((b,w)=>{const E=w%3,S=Math.floor(w/3);return{...b,position:{x:100+E*300,y:100+S*150}}})}function HZn(n){switch(n){case"trigger":return 200;case"condition":return 220;case"action":return 200;case"delay":return 180;case"wait":return 180;default:return 200}}function zZn(n){switch(n){case"trigger":return 80;case"condition":return 100;case"action":return 80;case"delay":return 70;case"wait":return 70;default:return 80}}function GZn(n){return typeof n=="object"&&n!==null&&"delay"in n&&(typeof n.delay=="string"||typeof n.delay=="number"||typeof n.delay=="object"&&n.delay!==null)}const JWt={hours:60*60*1e3,minutes:60*1e3,seconds:1e3,milliseconds:1};function HDe(n){return typeof n=="number"&&Number.isFinite(n)}function qZn(n){const i=n.trim(),s=/^\{\{\s*([\s\S]*?)\s*\}\}$/.exec(i);return s?s[1].trim():i}function VZn(n){if(HDe(n))return String(n);if(typeof n!="string"||n.trim()==="")return null;const i=n.trim(),s=Number(i);return Number.isFinite(s)?String(s):`(${qZn(i)})`}function WZn(n){const i=Object.entries(JWt).flatMap(([w,E])=>{const S=VZn(n[w]);return S?E===1?[S]:[`(${S}) * ${E}`]:[]}),s=i.length>0?i.join(" + "):"0",c=`(${s}) // 3600000`,d=`((${s}) % 3600000) // 60000`,g=`((${s}) % 60000) // 1000`,b=`(${s}) % 1000`;return Object.prototype.hasOwnProperty.call(n,"milliseconds")?`{{ '%02d:%02d:%02d.%03d' | format(${c}, ${d}, ${g}, ${b}) }}`:`{{ '%02d:%02d:%02d' | format(${c}, ${d}, ${g}) }}`}function KZn(n){if(typeof n=="string")return n;if(HDe(n))return String(n);if(typeof n!="object"||n===null)return"";const i=n,s={};let c=!1;for(const d of Object.keys(JWt)){const g=i[d];if(g!==void 0){if(HDe(g)){s[d]=g;continue}if(typeof g=="string"&&g.trim()!==""){const b=Number(g.trim());Number.isFinite(b)?s[d]=b:c=!0;continue}c=!0}}return c?WZn(i):s}function YZn(n){return typeof n=="object"&&n!==null&&("wait_template"in n||"wait_for_trigger"in n)}function JZn(n){return typeof n=="object"&&n!==null&&"choose"in n}function XZn(n){return typeof n=="object"&&n!==null&&"parallel"in n&&Array.isArray(n.parallel)}function ZZn(n){return typeof n=="object"&&n!==null&&"if"in n&&Array.isArray(n.if)&&"then"in n&&Array.isArray(n.then)}function QZn(n){return typeof n=="object"&&n!==null&&(typeof n.service=="string"||typeof n.action=="string")}function eQn(n){return typeof n=="object"&&n!==null&&"condition"in n&&typeof n.condition=="string"}function tQn(n){return typeof n=="object"&&n!==null&&"variables"in n&&typeof n.variables=="object"&&!("service"in n)&&!("action"in n)&&!("delay"in n)&&!("wait_template"in n)&&!("choose"in n)&&!("if"in n)}function nQn(n){return typeof n=="object"&&n!==null&&"set_conversation_response"in n}function rQn(n){return typeof n=="object"&&n!==null&&"stop"in n}function iQn(n){return typeof n=="object"&&n!==null&&"repeat"in n&&typeof n.repeat=="object"&&n.repeat!==null}function oQn(n){return typeof n=="object"&&n!==null&&"event"in n&&typeof n.event=="string"}const k5=["state","numeric_state","template","time","sun","zone","and","or","not","device","trigger"];function zDe(n){return n.map(i=>sQn(i))}function sQn(n){const{condition:i,conditions:s,...c}=n,d=i||"template",g=k5.includes(d)?d:"template",b=Array.isArray(s)?zDe(s):void 0;return{...c,condition:g,conditions:b}}class aQn{async parse(i){const s=[];try{let c=kZn(i);if(Array.isArray(c)){if(c.length===0)return{success:!1,errors:["Empty automation array"],warnings:s,hadMetadata:!1};c=c[0]}if(!c||typeof c!="object")return{success:!1,errors:["Invalid YAML structure"],warnings:s,hadMetadata:!1};const d=this.extractMetadata(c),g=d!==null,b=this.extractUserVariables(c),w=c;if(typeof w!="object"||w===null)return{success:!1,errors:["Invalid YAML content structure"],warnings:s,hadMetadata:g};const E=d?Object.keys(d.nodes):[],S=(d==null?void 0:d.strategy)==="state-machine"||this.detectStateMachineFormat(w),{nodes:x,edges:A}=S?this.parseStateMachineStructure(w,s,E):this.parseAutomationStructure(w,s,E);let C;g&&d?C=this.applyMetadataPositions(x,d):C=await BZn(x,A);const R={mode:w.mode,max:w.max,max_exceeded:w.max_exceeded,initial_state:w.initial_state,hide_entity:w.hide_entity,trace:w.trace},L=D8t.safeParse(R),D=L.success?L.data:D8t.parse({}),B=typeof w.trigger_variables=="object"&&w.trigger_variables!==null&&!Array.isArray(w.trigger_variables)?w.trigger_variables:void 0,$={id:(d==null?void 0:d.graph_id)||MZn(),name:typeof w.alias=="string"?w.alias:"Imported Automation",description:typeof w.description=="string"?w.description:"",nodes:C,edges:A,metadata:D,version:1,userVariables:Object.keys(b).length>0?b:void 0,userTriggerVariables:B&&Object.keys(B).length>0?B:void 0},j=BVt.safeParse($);if(!j.success){const G=j.error.issues.map(ee=>{let re="";if(ee.path&&ee.path.length>0&&ee.path[0]==="nodes"&&typeof ee.path[1]=="number"){const Q=ee.path[1],ie=$.nodes[Q];re=`Node index ${Q} (id: ${ie==null?void 0:ie.id}, type: ${ie==null?void 0:ie.type}) +Data: ${JSON.stringify(ie==null?void 0:ie.data,null,2)}`}return`Schema path: ${ee.path.join(".")} +Message: ${ee.message}${re?` +${re}`:""}`});return console.error("Zod validation error details:",G),{success:!1,errors:G,warnings:s,hadMetadata:g}}const P=UVt(j.data);return P.valid?{success:!0,graph:j.data,warnings:s,hadMetadata:g}:{success:!1,errors:P.errors,warnings:s,hadMetadata:g}}catch(c){return console.error("YAML parsing error:",c),console.error("YAML string:",i),{success:!1,errors:[c instanceof Error?c.message:"Unknown parsing error"],warnings:s,hadMetadata:!1}}}extractMetadata(i){try{let s;if(typeof i.variables=="object"&&i.variables!==null&&(s=i.variables),s&&typeof s=="object"&&"_cafe_metadata"in s&&typeof s._cafe_metadata=="object"&&s._cafe_metadata!==null){const c=s._cafe_metadata,d=$Vt.safeParse(c);if(d.success)return d.data}}catch{}return null}extractUserVariables(i){const s={};if(typeof i.variables=="object"&&i.variables!==null){const c=i.variables;for(const[d,g]of Object.entries(c))d!=="_cafe_metadata"&&(s[d]=g)}return s}detectStateMachineFormat(i){const s=i.actions||i.action;if(!Array.isArray(s))return!1;let c=!1,d=!1;for(const g of s){const b=g;if(b.variables){const w=b.variables;"current_node"in w&&"flow_context"in w&&(c=!0)}if(b.repeat){const E=b.repeat.sequence;if(Array.isArray(E))for(const S of E){const x=S;if(Array.isArray(x.choose)){d=!0;break}}}}return c&&d}parseStateMachineStructure(i,s,c){const d=[],g=[],b=i.actions||i.action;if(!Array.isArray(b))return s.push("No actions found in automation"),{nodes:d,edges:g};let w=null;const E=new Map;for(const j of b){const P=j;if(P.variables){const G=P.variables;typeof G.current_node=="string"&&G.current_node!=="END"&&(w=G.current_node)}if(P.repeat){const ee=P.repeat.sequence;if(Array.isArray(ee))for(const re of ee){const Q=re;if(Array.isArray(Q.choose))for(const ie of Q.choose){const pe=this.parseStateMachineChooseBlock(ie);pe&&E.set(pe.nodeId,pe)}}}}const S=new Map;for(const[j,P]of E){if(!/^__parallel_trigger_\d+$/.test(j))continue;const G=this.parseInlineParallelBranches(P.parallelItems??[],E);G.length>0&&S.set(j,G),E.delete(j)}const x=new Set(E.keys()),A=c.filter(j=>!x.has(j));let C=0,R=0;const L=j=>C0)for(let P=0;P<$.length;P++){const G=j.get(P);if(G){const ee=S.get(G);if(ee)for(const re of ee)g.push(this.createEdge($[P].id,re));else g.push(this.createEdge($[P].id,G))}}else for(const P of $)g.push(this.createEdge(P.id,w))}for(const[j,P]of E)P.trueTarget&&P.trueTarget!=="END"&&g.push({id:`edge-${j}-${P.trueTarget}`,source:j,target:P.trueTarget,sourceHandle:P.nodeType==="condition"||P.falseTarget?"true":void 0}),P.falseTarget&&P.falseTarget!=="END"&&g.push({id:`edge-${j}-${P.falseTarget}`,source:j,target:P.falseTarget,sourceHandle:"false"});return{nodes:d,edges:g}}parseEntryNodeTemplate(i){if(!i.includes("{%")||!i.includes("trigger.idx"))return null;const s=new Map,c=/{%\s*(?:if|elif)\s+trigger\.idx\s*==\s*["'](\d+)["']\s*%}\s*([^{%]+?)(?={%|$)/g,d=i.matchAll(c);for(const b of d){const w=parseInt(b[1],10),E=b[2].trim();s.set(w,E)}const g=i.match(/{%\s*else\s*%}\s*([^{%]+?)(?={%|$)/);if(g&&s.size>0){const b=Math.max(...s.keys());s.set(b+1,g[1].trim())}return s.size>0?s:null}parseInlineParallelBranches(i,s){const c=[];let d=0;const g=b=>`inline_${b}_${d++}`;for(const b of i){const w=b,E=w.alias,S=E==null?void 0:E.match(/^parallel_branch:(.+)$/);if(S){const A=S[1];c.push(A),Array.isArray(w.sequence)?this.parseInlineActionList(w.sequence,A,s,g):this.parseInlineActionItem(w,A,s,g);continue}if((w.service??w.action)==="system_log.write"){const A=w.data,C=A==null?void 0:A.message;if(C){const R=C.match(/^Node:\s*(.+)$/);R&&c.push(R[1])}}}return c}parseInlineActionList(i,s,c,d){let g=null;for(let b=0;b0){const{nodeId:D}=this.extractCafeNodeId(R[0].alias),B=D??d(this.inferInlineNodeType(R[0]));A=B,this.parseInlineActionList(R,B,c,d)}const L=i.else;if(L&&L.length>0){const{nodeId:D}=this.extractCafeNodeId(L[0].alias),B=D??d(this.inferInlineNodeType(L[0]));C=B,this.parseInlineActionList(L,B,c,d)}c.set(s,{nodeId:s,nodeType:"condition",data:x,trueTarget:A,falseTarget:C})}else if(i.service||i.action){const E={};E.service=i.service??i.action,i.target&&(E.target=i.target),i.data&&(E.data=i.data),w&&(E.alias=w),c.set(s,{nodeId:s,nodeType:"action",data:E,trueTarget:null,falseTarget:null})}else if(i.delay!==void 0){const E={delay:i.delay};w&&(E.alias=w),c.set(s,{nodeId:s,nodeType:"delay",data:E,trueTarget:null,falseTarget:null})}else if(i.wait_template!==void 0||i.wait_for_trigger!==void 0){const E={};i.wait_template&&(E.wait_template=i.wait_template),i.wait_for_trigger&&(E.wait_for_trigger=i.wait_for_trigger),i.timeout&&(E.timeout=i.timeout),i.continue_on_timeout!==void 0&&(E.continue_on_timeout=i.continue_on_timeout),w&&(E.alias=w),c.set(s,{nodeId:s,nodeType:"wait",data:E,trueTarget:null,falseTarget:null})}}extractCafeNodeId(i){if(!i)return{nodeId:null,cleanAlias:void 0};const s=i.match(/^cafe_node:([^:]+)(?::(.+))?$/);return s?{nodeId:s[1],cleanAlias:s[2]||void 0}:{nodeId:null,cleanAlias:i}}inferInlineNodeType(i){return i.if?"condition":i.delay!==void 0?"delay":i.wait_template!==void 0||i.wait_for_trigger!==void 0?"wait":"action"}parseStateMachineChooseBlock(i){const s=i.conditions;if(!Array.isArray(s)||s.length===0)return null;const d=s[0].value_template;if(!d)return null;const g=d.match(/current_node\s*==\s*["']([^"']+)["']/);if(!g)return null;const b=g[1],w=i.sequence;if(!Array.isArray(w)||w.length===0)return null;let E="action";const S={};let x=null,A=null,C;for(const R of w){const L=R;if(L.variables){const B=L.variables.current_node;if(typeof B=="string")if(B.includes("{%")&&B.includes("%}")){E="condition";const $=B.match(/{%\s*if[^%]*%}\s*"?([^"'{%]+?)"?(?=\s*{%)/),j=B.match(/{%\s*else\s*%}\s*"?([^"'{%]+?)"?(?=\s*{%)/);x=$?$[1]:null,A=j?j[1]:null;const P=B.match(/{%\s*if\s+(.+?)\s*%}/);if(P){const G=P[1];Object.assign(S,this.parseJinjaCondition(G))}}else x=B==="END"?null:B}else L.delay!==void 0?(E="delay",S.delay=L.delay,L.alias&&(S.alias=L.alias)):L.wait_template!==void 0?(E="wait",S.wait_template=L.wait_template,L.timeout&&(S.timeout=L.timeout),L.continue_on_timeout!==void 0&&(S.continue_on_timeout=L.continue_on_timeout),L.alias&&(S.alias=L.alias)):Array.isArray(L.parallel)?C=L.parallel:(L.service||L.action)&&(E="action",S.service=L.service||L.action,L.target&&(S.target=L.target),L.data&&(S.data=L.data),L.alias&&(S.alias=L.alias))}return{nodeId:b,nodeType:E,data:S,trueTarget:x,falseTarget:A,parallelItems:C}}parseJinjaCondition(i){const s=i.match(/is_state\s*\(\s*['"]([^'"]+)['"]\s*,\s*['"]([^'"]+)['"]\s*\)/);if(s){const d=s[1],g=s[2];if(d==="sun.sun"){if(g==="above_horizon")return{condition:"sun",after:"sunrise",before:"sunset"};if(g==="below_horizon")return{condition:"sun",after:"sunset",before:"sunrise"}}return{condition:"state",entity_id:d,state:g}}const c=i.match(/states\s*\(\s*['"]([^'"]+)['"]\s*\)\s*\|\s*float\s*([<>=]+)\s*(\d+(?:\.\d+)?)/);if(c){const d=c[1],g=c[2],b=parseFloat(c[3]),w={condition:"numeric_state",entity_id:d};return g.includes(">")&&(w.above=b),g.includes("<")&&(w.below=b),w}return{condition:"template",value_template:`{{ ${i} }}`}}parseAutomationStructure(i,s,c){var ie;const d=[],g=[],b=new Set,w=["set_variables","trigger","condition","action","delay","wait"],E=new Map,S=new Set;for(const pe of c){const me=w.find(le=>pe.startsWith(`${le}_`));me&&(E.has(me)||E.set(me,[]),E.get(me).push(pe))}const x=new Map;let A=0,C=c.length;const R=pe=>{const me=E.get(pe),le=x.get(pe)??0;if(me&&le0){const pe=this.parseConditions(G,s,R);d.push(...pe.nodes),g.push(...pe.edges);for(const le of pe.nodes)b.add(le.id);const me=pe.nodes;if(me.length===1){for(const le of B)g.push(this.createEdge(le.id,me[0].id));j=[me[0].id]}else{for(const le of B)g.push(this.createEdge(le.id,me[0].id));for(let le=0;lepe.id);const ee=i.actions||i.action;if(!ee)return s.push("No actions found in automation"),{nodes:d,edges:g};const re=Array.isArray(ee)?ee:[ee],Q=this.parseActions(re,{warnings:s,previousNodeIds:j,getNextNodeId:R,conditionNodeIds:b,triggerNodeMap:$});return d.push(...Q.nodes),g.push(...Q.edges),{nodes:d,edges:g}}parseTriggers(i,s,c){return i.filter(d=>typeof d=="object"&&d!==null).map((d,g)=>{const b=c("trigger");try{const w=gN.safeParse(d);return w.success?{id:b,type:"trigger",position:{x:0,y:0},data:w.data}:(s.push(`Trigger ${g} failed schema validation: ${JSON.stringify(w.error.issues)}`),this.createFallbackTriggerNode(b,d))}catch(w){return s.push(`Failed to parse trigger ${g}: ${w}`),this.createFallbackTriggerNode(b,d)}})}createFallbackTriggerNode(i,s){const c=typeof s=="object"&&s!==null?s:{};let d,g={};if(typeof c.trigger=="string"){d=c.trigger;const{platform:b,trigger:w,...E}=c;g=E}else if(typeof c.platform=="string"){d=c.platform;const{platform:b,...w}=c;g=w}else{const b=Object.keys(c).find(w=>!["alias","id","enabled","variables"].includes(w));b&&typeof c[b]=="object"&&c[b]!==null?(d=b,g=c[b]):d="state"}return{id:i,type:"trigger",position:{x:0,y:0},data:{trigger:d,...g}}}parseConditions(i,s,c){const d=[],g=[],b=[];return i.filter(wVn).forEach((w,E)=>{const S=c("condition");try{const x=Ug.safeParse(w);if(!x.success){s.push(`Condition ${E} failed schema validation: ${JSON.stringify(x.error.issues)}`),d.push({id:S,type:"condition",position:{x:0,y:0},data:{condition:"template",alias:"Unknown Condition",value_template:JSON.stringify(w)}});return}const A={id:S,type:"condition",position:{x:0,y:0},data:x.data};d.push(A),b.push(S)}catch(x){s.push(`Failed to parse condition ${E}: ${x}`),d.push({id:S,type:"condition",position:{x:0,y:0},data:{condition:"template",alias:"Unknown Condition",value_template:JSON.stringify(w)}})}}),{nodes:d,edges:g,outputNodeIds:b}}parseActions(i,s){const{warnings:c,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,triggerNodeMap:w,inheritedEnabled:E}=s,S=[],x=[];let A=d;const C=new Set(b),R=new Set,L=B=>E===!1?!1:B,D=B=>{for(const $ of A){let j;R.has($)?j="false":C.has($)&&(j="true"),x.push(this.createEdge($,B,j))}};return i.forEach((B,$)=>{if(!B||typeof B!="object"){c.push(`Unknown action type (${JSON.stringify(B)}) at index ${$}`);const j=g("unknown");S.push({id:j,type:"action",position:{x:0,y:0},data:{alias:"Unknown Node",service:"unknown.unknown",data:B}}),D(j),A=[j];return}if(eQn(B)){const j=g("condition"),P=B,G=P.condition||"template",ee=k5.includes(G)?G:"template";let re;try{re=Ug.parse(P)}catch(ie){c.push(`Inline condition at index ${$} failed schema validation: ${ie instanceof Error?ie.message:JSON.stringify(ie)}`),re={condition:ee,alias:typeof P.alias=="string"?P.alias:void 0,value_template:JSON.stringify(P)}}re.enabled=L(re.enabled);const Q={id:j,type:"condition",position:{x:0,y:0},data:re};S.push(Q),D(j),C.add(j),A=[j]}else if(tQn(B)){const j=g("set_variables"),P=B,G={id:j,type:"set_variables",position:{x:0,y:0},data:{alias:typeof P.alias=="string"?P.alias:void 0,variables:P.variables||{},enabled:L(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(G),D(j),A=[j]}else if(GZn(B)){const j=g("delay"),P=B,{alias:G,delay:ee,enabled:re,...Q}=P,ie={id:j,type:"delay",position:{x:0,y:0},data:{...Q,alias:typeof G=="string"?G:void 0,delay:KZn(ee),enabled:L(typeof re=="boolean"?re:void 0)}};S.push(ie),D(j),A=[j]}else if(YZn(B)){const j=g("wait"),P=B,{alias:G,wait_template:ee,wait_for_trigger:re,timeout:Q,continue_on_timeout:ie,enabled:pe,...me}=P;let le;(typeof Q=="string"||typeof Q=="object"&&Q!==null)&&(le=Q);const fe={...me,alias:typeof G=="string"?G:void 0,timeout:le,continue_on_timeout:typeof ie=="boolean"?ie:void 0,enabled:L(typeof pe=="boolean"?pe:void 0)};if(typeof ee=="string")fe.wait_template=ee;else if(Array.isArray(re)){const he=[];for(const Oe of re){const Se=gN.safeParse(Oe);Se.success?he.push(Se.data):c.push(`Failed to parse a trigger inside wait_for_trigger: ${Se.error.message}`)}fe.wait_for_trigger=he}const K={id:j,type:"wait",position:{x:0,y:0},data:fe};S.push(K),D(j),A=[j]}else if(JZn(B)){const j=this.parseChooseBlock(B,{warnings:c,previousNodeIds:A,getNextNodeId:g,conditionNodeIds:C,falsePathConditionIds:R,inheritedEnabled:E});S.push(...j.nodes),x.push(...j.edges);for(const P of j.outputNodeIds){const G=j.nodes.find(ee=>ee.id===P);(G==null?void 0:G.type)==="condition"&&(j.falsePathOutputIds.includes(P)?R.add(P):C.add(P))}A=j.outputNodeIds}else if(ZZn(B)){const j=B,P=Array.isArray(j.if)?j.if:[],G=Array.isArray(j.then)?j.then:[],ee=Array.isArray(j.else)?j.else:void 0,re={if:P,then:G,else:ee,alias:typeof j.alias=="string"?j.alias:void 0,enabled:j.enabled},Q=this.parseIfBlock(re,{warnings:c,previousNodeIds:A,getNextNodeId:g,conditionNodeIds:C,falsePathConditionIds:R,triggerNodeMap:w,inheritedEnabled:E});S.push(...Q.nodes),x.push(...Q.edges);for(const ie of Q.outputNodeIds){const pe=Q.nodes.find(me=>me.id===ie);(pe==null?void 0:pe.type)==="condition"&&(Q.falsePathOutputIds.includes(ie)?R.add(ie):C.add(ie))}Q.unconsumedPreviousIds.length>0?A=Q.unconsumedPreviousIds:A=Q.outputNodeIds}else if(gMe(B)){const j=g("action"),P=B,G=["type","device_id","domain","entity_id","subtype","alias","enabled"],ee={};for(const[Q,ie]of Object.entries(P))!G.includes(Q)&&ie!==void 0&&(ee[Q]=ie);const re={id:j,type:"action",position:{x:0,y:0},data:{alias:typeof P.alias=="string"?P.alias:void 0,service:`${P.domain}.${P.type}`,target:{device_id:P.device_id},data:{type:P.type,device_id:P.device_id,domain:P.domain,entity_id:P.entity_id,subtype:P.subtype,...ee},enabled:L(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(re),D(j),A=[j]}else if(XZn(B)){const P=B.parallel,G=[...A],ee=[];for(const re of P)if(Array.isArray(re)){const Q=this.parseActions(re,{warnings:c,previousNodeIds:G,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(Q.nodes.length>0){S.push(...Q.nodes),x.push(...Q.edges);const ie=new Set(Q.edges.map(me=>me.source)),pe=Q.nodes.filter(me=>!ie.has(me.id));ee.push(...pe.map(me=>me.id))}}else if(typeof re=="object"&&re!==null){const Q=re;if("sequence"in Q&&Array.isArray(Q.sequence)){const ie=this.parseActions(Q.sequence,{warnings:c,previousNodeIds:G,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(ie.nodes.length>0){S.push(...ie.nodes),x.push(...ie.edges);const pe=new Set(ie.edges.map(le=>le.source)),me=ie.nodes.filter(le=>!pe.has(le.id));ee.push(...me.map(le=>le.id))}}else{const ie=this.parseActions([re],{warnings:c,previousNodeIds:G,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:E});if(ie.nodes.length>0){S.push(...ie.nodes),x.push(...ie.edges);const pe=ie.nodes[ie.nodes.length-1];ee.push(pe.id)}}}A=ee.length>0?ee:G}else if(oQn(B)){const j=g("action"),P=B,G={id:j,type:"action",position:{x:0,y:0},data:{alias:typeof P.alias=="string"?P.alias:void 0,event:typeof P.event=="string"?P.event:void 0,event_data:typeof P.event_data=="object"&&P.event_data!==null?P.event_data:void 0,enabled:L(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(G),D(j),A=[j]}else if(iQn(B)){const j=B,P=j.repeat,G=Array.isArray(P.sequence)?P.sequence:[],ee=typeof j.alias=="string"?j.alias:void 0,re=L(typeof j.enabled=="boolean"?j.enabled:void 0);if(Array.isArray(P.while)&&P.while.length>0){const Q=P.while,ie=[];for(let Oe=0;Oe0){const Oe=me.nodes[0].id,Se=x.find(Le=>Le.source===pe&&Le.target===Oe);Se&&(Se.sourceHandle="true")}const le=new Set(me.nodes.map(Oe=>Oe.id)),fe=new Set(me.edges.map(Oe=>Oe.source)),K=me.nodes.filter(Oe=>!fe.has(Oe.id)||![...me.edges].some(Se=>Se.source===Oe.id&&le.has(Se.target))),he=K.length>0?K[K.length-1].id:me.nodes.length>0?me.nodes[me.nodes.length-1].id:pe;if(me.nodes.length>0){const Oe=this.createEdge(he,ie[0].id);x.push(Oe)}A=[ie[0].id],R.add(ie[0].id)}else if(Array.isArray(P.until)&&P.until.length>0||typeof P.until=="string"){const Q=this.parseActions(G,{warnings:c,previousNodeIds:A,getNextNodeId:g,conditionNodeIds:C,inheritedEnabled:re});S.push(...Q.nodes),x.push(...Q.edges);const ie=Q.nodes.length>0?Q.nodes[0].id:null,pe=new Set(Q.nodes.map(Se=>Se.id)),me=new Set(Q.edges.filter(Se=>pe.has(Se.target)).map(Se=>Se.source)),le=Q.nodes.filter(Se=>!me.has(Se.id)||!Q.edges.some(Le=>Le.source===Se.id&&pe.has(Le.target))),fe=le.length>0?le[le.length-1].id:Q.nodes.length>0?Q.nodes[Q.nodes.length-1].id:null,K=typeof P.until=="string"?[{condition:"template",value_template:P.until}]:P.until,he=[];for(let Se=0;SeAe.id===fe)&&C.has(fe)?"true":void 0;x.push(this.createEdge(fe,he[0].id,Le))}else D(he[0].id);for(let Se=0;SeUe.id)),K=new Set(le.edges.filter(Ue=>fe.has(Ue.target)).map(Ue=>Ue.source)),he=le.nodes.filter(Ue=>!K.has(Ue.id)||!le.edges.some(bt=>bt.source===Ue.id&&fe.has(bt.target))),Oe=he.length>0?he[he.length-1].id:le.nodes.length>0?le.nodes[le.nodes.length-1].id:ie,Se=g("set_variables"),Le={id:Se,type:"set_variables",position:{x:0,y:0},data:{variables:{[pe]:`{{ ${pe} + 1 }}`},enabled:re}};if(S.push(Le),le.nodes.length>0){const bt=le.nodes.find(kt=>kt.id===Oe)&&C.has(Oe)?"true":void 0;x.push(this.createEdge(Oe,Se,bt))}else x.push(this.createEdge(ie,Se));const Ae=g("condition"),xe={id:Ae,type:"condition",position:{x:0,y:0},data:{condition:"template",value_template:`{{ ${pe} < ${Q} }}`,enabled:re}};S.push(xe),C.add(Ae),x.push(this.createEdge(Se,Ae));const We=le.nodes.length>0?le.nodes[0].id:Se,dt=this.createEdge(Ae,We,"true");x.push(dt),A=[Ae],R.add(Ae)}else{const Q=g("action"),ie={id:Q,type:"action",position:{x:0,y:0},data:{alias:ee,repeat:P,enabled:re}};S.push(ie),D(Q),A=[Q]}}else if(QZn(B)){const j=g("action");try{const P=B,{alias:G,service:ee,action:re,target:Q,data:ie,data_template:pe,response_variable:me,continue_on_error:le,enabled:fe,...K}=P,he={id:j,type:"action",position:{x:0,y:0},data:{...K,alias:typeof G=="string"?G:void 0,service:typeof ee=="string"?ee:typeof re=="string"?re:void 0,target:typeof Q=="object"&&Q!==null?Q:void 0,data:typeof ie=="object"&&ie!==null?ie:void 0,data_template:typeof pe=="object"&&pe!==null?pe:void 0,response_variable:typeof me=="string"?me:void 0,continue_on_error:typeof le=="boolean"?le:void 0,enabled:L(typeof fe=="boolean"?fe:void 0)}};S.push(he),D(j),A=[j]}catch(P){c.push(`Failed to parse action ${$}: ${P}`),S.push(this.createUnknownNode(j,B))}}else if(nQn(B)){const j=g("action"),P=B,G={id:j,type:"action",position:{x:0,y:0},data:{alias:typeof P.alias=="string"?P.alias:void 0,set_conversation_response:typeof P.set_conversation_response=="string"?P.set_conversation_response:void 0,enabled:L(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(G),D(j),A=[j]}else if(rQn(B)){const j=g("action"),P=B,G={id:j,type:"action",position:{x:0,y:0},data:{alias:typeof P.alias=="string"?P.alias:void 0,stop:typeof P.stop=="string"?P.stop:"",...P.error===!0?{error:!0}:{},enabled:L(typeof P.enabled=="boolean"?P.enabled:void 0)}};S.push(G),D(j),A=[j]}else{c.push(`Unknown action type (${JSON.stringify(B)}) at index ${$}`);const j=g("unknown");S.push({id:j,type:"action",position:{x:0,y:0},data:{alias:"Unknown Node",service:"unknown.unknown",data:B}}),D(j),A=[j]}}),{nodes:S,edges:x,terminalNodeIds:A}}parseChooseBlock(i,s){const{warnings:c,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,falsePathConditionIds:w=new Set,inheritedEnabled:E}=s,S=[],x=[],A=[],C=[],R=new Set(b),L=i.enabled,D=E===!1||L===!1?!1:void 0,B=()=>D,j=(Array.isArray(i.choose)?i.choose:[i.choose]).filter(G=>{if(typeof G!="object"||G===null)return!1;const ee=G.conditions;return Array.isArray(ee)?ee.length>0:!!ee});let P=[...d];if(j.forEach((G,ee)=>{const re=Array.isArray(G.conditions)?G.conditions:[G.conditions],Q=[];for(let me=0;me0&&R.has(me)&&!b.has(me)||w.has(me)?le="false":b.has(me)&&(le="true"),x.push(this.createEdge(me,ie,le))}for(let me=0;me0){const fe=le.nodes[0].id,K=x.find(Oe=>Oe.source===pe&&Oe.target===fe);K&&(K.sourceHandle="true");const he=le.nodes[le.nodes.length-1].id;A.push(he)}else A.push(pe)}else A.push(pe);P=[ie]}),i.default){const G=Array.isArray(i.default)?i.default:[i.default],ee=this.parseActions(G,{warnings:c,previousNodeIds:P,getNextNodeId:g,conditionNodeIds:R,inheritedEnabled:D});if(S.push(...ee.nodes),x.push(...ee.edges),P.length>0&&ee.nodes.length>0){const re=P[0],Q=ee.nodes[0].id,ie=x.find(me=>me.source===re&&me.target===Q);ie&&R.has(re)&&(ie.sourceHandle="false");const pe=ee.nodes[ee.nodes.length-1].id;A.push(pe)}}else if(j.length>0){const G=P[0];A.push(G),C.push(G)}return{nodes:S,edges:x,outputNodeIds:A,falsePathOutputIds:C}}parseIfBlock(i,s){const{warnings:c,previousNodeIds:d,getNextNodeId:g,conditionNodeIds:b=new Set,falsePathConditionIds:w=new Set,triggerNodeMap:E,inheritedEnabled:S}=s,x=[],A=[],C=[],R=[],L=new Set(b),D=S===!1||i.enabled===!1?!1:void 0,B=()=>D,$=Array.isArray(i.if)?i.if:[i.if],j=[];for(let Q=0;Q<$.length;Q++){const ie=$[Q],pe=g("condition");let me;if(ie&&Array.isArray(ie.conditions)){const le=ie.condition||"and",fe=k5.includes(le)?le:"template";me={id:pe,type:"condition",position:{x:0,y:0},data:{alias:Q===0?i.alias:void 0,condition:fe,conditions:zDe(ie.conditions),enabled:B()}}}else{const le=(ie==null?void 0:ie.condition)||"numeric_state",fe=k5.includes(le)?le:"template",K={...ie,alias:Q===0?i.alias??(ie==null?void 0:ie.alias):ie==null?void 0:ie.alias,condition:fe,enabled:B()};let he;try{he=Ug.parse(K)}catch{he={alias:Q===0?i.alias:void 0,condition:"template",value_template:JSON.stringify(ie),enabled:B()}}me={id:pe,type:"condition",position:{x:0,y:0},data:he}}j.push(me),x.push(me),L.add(pe)}const P=j[0].id,G=(()=>{if(i.else||$.length!==1)return null;const Q=$[0];if((Q==null?void 0:Q.condition)!=="trigger")return null;const ie=Q==null?void 0:Q.id;return typeof ie=="string"?[ie]:Array.isArray(ie)&&ie.length>0&&ie.every(pe=>typeof pe=="string")?ie:null})();for(const Q of d){if(G!==null&&E){const pe=E.get(Q);if(pe!==void 0&&!G.includes(pe))continue}let ie;w.has(Q)?ie="false":L.has(Q)&&(ie="true"),A.push(this.createEdge(Q,P,ie))}for(let Q=0;Q0){const pe=ie.nodes[0].id,me=A.find(le=>le.source===ee&&le.target===pe);me&&(me.sourceHandle="true")}C.push(...ie.terminalNodeIds)}if(i.else){const Q=Array.isArray(i.else)?i.else:[i.else],ie=this.parseActions(Q,{warnings:c,previousNodeIds:[P],getNextNodeId:g,conditionNodeIds:new Set,inheritedEnabled:D});if(x.push(...ie.nodes),ie.nodes.length>0){const pe=ie.nodes[0].id,me=ie.edges.findIndex(le=>le.source===P&&le.target===pe);me>=0&&ie.edges.splice(me,1),A.push(this.createEdge(P,pe,"false"))}A.push(...ie.edges),C.push(...ie.terminalNodeIds)}else if(G===null)for(const Q of j)C.push(Q.id),R.push(Q.id);C.length===0&&G===null&&(C.push(ee),R.push(ee));const re=G!==null&&E?d.filter(Q=>{const ie=E.get(Q);return ie===void 0||!G.includes(ie)}):[];return{nodes:x,edges:A,outputNodeIds:C,falsePathOutputIds:R,unconsumedPreviousIds:re}}createUnknownNode(i,s){const c=s;return{id:i,type:"action",position:{x:0,y:0},data:{alias:`Unknown: ${(c==null?void 0:c.service)||(c==null?void 0:c.trigger)||"Node"}`,service:(c==null?void 0:c.service)||"unknown.unknown",data:c}}}applyMetadataPositions(i,s){return i.map(c=>({...c,position:s.nodes[c.id]||c.position}))}createEdge(i,s,c){return{id:PZn(i,s),source:i,target:s,sourceHandle:c||void 0}}}class XWt{findEntryNodes(i){const s=new Set(i.edges.map(c=>c.target));return i.nodes.filter(c=>!s.has(c.id)).map(c=>c.id)}getOutgoingEdges(i,s){return i.edges.filter(c=>c.source===s)}getIncomingEdges(i,s){return i.edges.filter(c=>c.target===s)}getNode(i,s){return i.nodes.find(c=>c.id===s)}}class uQn extends XWt{constructor(){super(...arguments);Zf(this,"name","native");Zf(this,"description","Generates nested HA YAML for simple tree-shaped automations");Zf(this,"repeatPatterns",new Map);Zf(this,"repeatInternalNodeIds",new Set);Zf(this,"backEdgeIds",new Set)}canHandle(s){return s.isTree}generate(s,c){var L,D,B,$,j;const d=[];this.backEdgeIds=AWt(s),this.repeatPatterns=this.detectRepeatPatterns(s),this.repeatInternalNodeIds=new Set;for(const P of this.repeatPatterns.values()){for(const G of P.bodyNodeIds)this.repeatInternalNodeIds.add(G);for(const G of P.conditionNodeIds)this.repeatInternalNodeIds.add(G);P.initNodeId&&this.repeatInternalNodeIds.add(P.initNodeId),P.incrementNodeId&&this.repeatInternalNodeIds.add(P.incrementNodeId)}const g=this.extractTriggers(s),w=c.entryNodes.flatMap(P=>this.getOutgoingEdges(s,P).map(ee=>ee.target)),E=[...new Set(w)];let S=null,x=[],A=null;if(E.length===1){const P=this.extractLeadingConditions(s,E[0]);P.conditions.length>0&&(S=P.conditions,x=P.nextNodeIds,A=P.visitedIds)}let C;if(S)x.length>0?C=x.flatMap(P=>this.buildSequenceFromNode(s,P,new Set(A))):C=[];else if(E.length===1)C=this.buildSequenceFromNode(s,E[0],new Set);else if(E.length>1){const P=this.detectOrPattern(s,E);if(P){const G=P.conditions.map(Q=>this.buildCondition(Q)),ee=new Set(P.conditions.map(Q=>Q.id)),re=this.buildSequenceFromNode(s,P.convergenceNode,ee);C=[{if:[{condition:"or",conditions:G}],then:re,else:P.isFromFalsePaths?[]:[]}]}else E.every(ee=>{var Q;const re=s.nodes.find(ie=>ie.id===ee);return(re==null?void 0:re.type)==="condition"&&((Q=re.data)==null?void 0:Q.condition)==="trigger"})?C=E.flatMap(ee=>this.buildSequenceFromNode(s,ee,new Set)):C=[{parallel:E.map(Q=>this.buildSequenceFromNode(s,Q,new Set)).filter(Q=>Q.length>0).map(Q=>Q.length===1?Q[0]:Q)}]}else C=[],d.push("No actions found after trigger nodes");const R={alias:s.name,description:s.description||"",triggers:g};return S&&S.length>0&&(R.conditions=S),R.actions=C,R.mode=((L=s.metadata)==null?void 0:L.mode)??"single",(D=s.metadata)!=null&&D.max&&(R.max=s.metadata.max),(B=s.metadata)!=null&&B.max_exceeded&&(R.max_exceeded=s.metadata.max_exceeded),(($=s.metadata)==null?void 0:$.initial_state)===!1&&(R.initial_state=!1),(j=s.metadata)!=null&&j.trace&&(R.trace=s.metadata.trace),s.userTriggerVariables&&Object.keys(s.userTriggerVariables).length>0&&(R.trigger_variables=s.userTriggerVariables),{automation:R,warnings:d,strategy:this.name}}detectRepeatPatterns(s){const c=new Map;for(const d of s.edges){if(!this.backEdgeIds.has(d.id))continue;const g=this.getNode(s,d.source),b=this.getNode(s,d.target);if(!(!g||!b)){if(b.type==="condition"&&g.type!=="condition"){const w=d.target,E=d.source,S=[];let x=w;for(;x;){const L=this.getNode(s,x);if((L==null?void 0:L.type)!=="condition")break;S.push(x);const D=s.edges.find($=>$.source===x&&$.sourceHandle==="true"&&!this.backEdgeIds.has($.id));if(!D)break;const B=this.getNode(s,D.target);if((B==null?void 0:B.type)==="condition"&&S.indexOf(D.target)===-1)x=D.target;else break}const A=S[S.length-1],C=this.collectBodyNodes(s,A,"true",new Set(S),E),R=s.edges.find(L=>L.source===w&&L.sourceHandle==="false"&&!this.backEdgeIds.has(L.id));c.set(w,{type:"while",entryNodeId:w,conditionNodeIds:S,bodyNodeIds:C,backEdgeSourceId:E,exitNodeId:(R==null?void 0:R.target)??null})}else if(g.type==="condition"&&d.sourceHandle==="false"){const w=d.target,E=d.source,S=[];let x=E;for(;x;){const L=this.getNode(s,x);if((L==null?void 0:L.type)!=="condition")break;S.push(x);const D=s.edges.find($=>$.source===x&&$.sourceHandle==="true"&&!this.backEdgeIds.has($.id));if(!D)break;const B=this.getNode(s,D.target);if((B==null?void 0:B.type)==="condition"&&S.indexOf(D.target)===-1)x=D.target;else break}const A=this.collectNodesUntil(s,w,new Set(S)),C=S[S.length-1],R=s.edges.find(L=>L.source===C&&L.sourceHandle==="true"&&!this.backEdgeIds.has(L.id));c.set(w,{type:"until",entryNodeId:w,conditionNodeIds:S,bodyNodeIds:A,backEdgeSourceId:E,exitNodeId:(R==null?void 0:R.target)??null})}else if(g.type==="condition"&&d.sourceHandle==="true"){const w=d.target,E=d.source,S=[E],x=s.edges.filter(G=>G.target===E&&!this.backEdgeIds.has(G.id)),A=x.length>0?x[0].source:void 0,C=new Set([E]);A&&C.add(A);const R=this.collectNodesUntil(s,w,C),D=s.edges.filter(G=>G.target===w&&!this.backEdgeIds.has(G.id)).map(G=>G.source).find(G=>{const ee=this.getNode(s,G);return(ee==null?void 0:ee.type)==="set_variables"}),B=this.getNode(s,E);let $;if((B==null?void 0:B.type)==="condition"&&B.data.condition==="template"){const G=B.data.value_template;if(typeof G=="string"){const ee=G.match(/<\s*(\d+)\s*\}\}/);ee&&($=Number.parseInt(ee[1],10))}}const j=s.edges.find(G=>G.source===E&&G.sourceHandle==="false"&&!this.backEdgeIds.has(G.id)),P=D??w;c.set(P,{type:"count",entryNodeId:P,conditionNodeIds:S,bodyNodeIds:R,backEdgeSourceId:E,initNodeId:D,incrementNodeId:A,count:$,exitNodeId:(j==null?void 0:j.target)??null})}}}return c}collectBodyNodes(s,c,d,g,b){const w=s.edges.find(A=>A.source===c&&A.sourceHandle===d&&!this.backEdgeIds.has(A.id));if(!w)return[];const E=[],S=[w.target],x=new Set;for(;S.length>0;){const A=S.shift();if(x.has(A)||g.has(A)||(x.add(A),E.push(A),A===b))continue;const C=s.edges.filter(R=>R.source===A&&!this.backEdgeIds.has(R.id));for(const R of C)!x.has(R.target)&&!g.has(R.target)&&S.push(R.target)}return E}collectNodesUntil(s,c,d){const g=[],b=[c],w=new Set;for(;b.length>0;){const E=b.shift();if(w.has(E)||d.has(E))continue;w.add(E),g.push(E);const S=s.edges.filter(x=>x.source===E&&!this.backEdgeIds.has(x.id));for(const x of S)!w.has(x.target)&&!d.has(x.target)&&b.push(x.target)}return g}buildRepeatBlock(s,c,d){for(const w of c.conditionNodeIds)d.add(w);for(const w of c.bodyNodeIds)d.add(w);c.initNodeId&&d.add(c.initNodeId),c.incrementNodeId&&d.add(c.incrementNodeId),d.add(c.entryNodeId);const g=[];for(const w of c.bodyNodeIds){const E=this.getNode(s,w);if(E)if(E.type==="condition"){const S=s.edges.filter(C=>C.source===w&&!this.backEdgeIds.has(C.id)),x=S.find(C=>C.sourceHandle==="true"),A=S.find(C=>C.sourceHandle==="false");if(x||A){const C={if:[this.buildCondition(E)],then:[],else:[]};x&&c.bodyNodeIds.includes(x.target)&&(C.then=this.buildBodySubsequence(s,x.target,c,d)),A&&c.bodyNodeIds.includes(A.target)&&(C.else=this.buildBodySubsequence(s,A.target,c,d)),g.push(C)}else g.push(this.buildCondition(E))}else{const S=this.buildNodeAction(E);S&&g.push(S)}}let b;if(c.type==="while"){const E={repeat:{while:c.conditionNodeIds.map(S=>{var A;const x=this.getNode(s,S);return!b&&((A=x==null?void 0:x.data)!=null&&A.alias)&&(b=x.data.alias),this.buildCondition(x)}),sequence:g}};return b&&(E.alias=b),E}if(c.type==="until"){const E={repeat:{until:c.conditionNodeIds.map(S=>{const x=this.getNode(s,S);return this.buildCondition(x)}),sequence:g}};return b&&(E.alias=b),E}if(c.type==="count"){if(c.initNodeId){const E=this.getNode(s,c.initNodeId);E!=null&&E.data&&"alias"in E.data&&(b=E.data.alias)}const w={repeat:{count:c.count,sequence:g}};return b&&(w.alias=b),w}return null}buildBodySubsequence(s,c,d,g){const b=[];let w=c;for(;w&&d.bodyNodeIds.includes(w)&&!g.has(w);){g.add(w);const E=this.getNode(s,w);if(!E)break;const S=this.buildNodeAction(E);S&&b.push(S);const x=s.edges.filter(A=>A.source===w&&!this.backEdgeIds.has(A.id));w=x.length===1?x[0].target:null}return b}extractTriggers(s){return s.nodes.filter(c=>c.type==="trigger").map(c=>this.buildTrigger(c))}detectOrPattern(s,c){const d=c.map(w=>this.getNode(s,w));if(!d.every(w=>(w==null?void 0:w.type)==="condition"))return null;const g=new Set;for(const w of d){const E=s.edges.find(S=>S.source===w.id&&S.sourceHandle==="true");E&&g.add(E.target)}if(g.size===1&&d.length===c.length){const w=[...g][0];return{conditions:d,convergenceNode:w,isFromFalsePaths:!1}}const b=new Set;for(const w of d){const E=s.edges.find(S=>S.source===w.id&&S.sourceHandle==="false");E&&b.add(E.target)}if(b.size===1&&d.length===c.length){const w=[...b][0];return{conditions:d,convergenceNode:w,isFromFalsePaths:!0}}return null}extractLeadingConditions(s,c){const d=[],g=new Set;let b=c;for(;b;){const w=this.getNode(s,b);if(!w||w.type!=="condition"||this.repeatPatterns.has(b)||this.repeatInternalNodeIds.has(b))break;const S=this.getOutgoingEdges(s,b).filter(R=>!this.backEdgeIds.has(R.id)),x=S.filter(R=>R.sourceHandle==="true"),A=S.filter(R=>R.sourceHandle==="false");if(x.length>0&&A.length>0||x.length===0&&A.length===0)break;const C=this.buildCondition(w);if(w.data.alias&&(C.alias=w.data.alias),A.length>0){if(d.push({condition:"not",conditions:[C]}),g.add(b),A.length>1)return{conditions:d,nextNodeIds:A.map(R=>R.target),visitedIds:g};b=A[0].target}else{if(d.push(C),g.add(b),x.length>1)return{conditions:d,nextNodeIds:x.map(R=>R.target),visitedIds:g};b=x[0].target}}return{conditions:d,nextNodeIds:b?[b]:[],visitedIds:g}}buildTrigger(s){const c={...s.data};return Object.fromEntries(Object.entries(c).filter(([,d])=>d!==void 0&&d!==""&&d!==null))}findOrConditionSources(s,c,d,g){const b=s.edges.filter(w=>w.target===c&&w.sourceHandle===d&&!this.backEdgeIds.has(w.id)).map(w=>this.getNode(s,w.source)).filter(w=>(w==null?void 0:w.type)==="condition"&&!g.has(w.id));return b.length>1?b:[]}buildSequenceFromNode(s,c,d){if(d.has(c))return[];const g=this.getNode(s,c);if(!g)return[];const b=[],w=this.findOrConditionSources(s,c,"true",d),E=this.findOrConditionSources(s,c,"false",d);if(w.length>1){const A=w.map(L=>this.buildCondition(L));for(const L of w)d.add(L.id);d.add(c);const C=g.type==="condition"?this.buildSequenceFromNode(s,c,new Set):this.buildSequenceFromNode(s,c,new Set(d));let R;if(g.type!=="condition"){const L=this.buildNodeAction(g);R=L?[L,...C]:C}else R=C;return b.push({if:[{condition:"or",conditions:A}],then:R,else:[]}),b}if(E.length>1){const A=E.map(L=>this.buildCondition(L));for(const L of E)d.add(L.id);d.add(c);const C=g.type==="condition"?this.buildSequenceFromNode(s,c,new Set):this.buildSequenceFromNode(s,c,new Set(d));let R;if(g.type!=="condition"){const L=this.buildNodeAction(g);R=L?[L,...C]:C}else R=C;return b.push({if:[{condition:"or",conditions:A}],then:[],else:R}),b}const S=this.repeatPatterns.get(c);if(S){const A=this.buildRepeatBlock(s,S,d);if(A){if(b.push(A),S.exitNodeId){const C=this.buildSequenceFromNode(s,S.exitNodeId,new Set(d));b.push(...C)}return b}}d.add(c);const x=this.getOutgoingEdges(s,c).filter(A=>!this.backEdgeIds.has(A.id));if(g.type==="condition"){const A=[];let C=g,R=[],L=[];for(L=this.getOutgoingEdges(s,g.id).filter(P=>P.sourceHandle==="false"&&!this.backEdgeIds.has(P.id)).map(P=>P.target);(C==null?void 0:C.type)==="condition";){A.push(this.buildCondition(C));const P=this.getOutgoingEdges(s,C.id).filter(re=>re.sourceHandle==="true"&&!this.backEdgeIds.has(re.id));if(P.length===0)break;if(P.length>1){R=P.map(re=>re.target);break}const G=P[0],ee=this.getNode(s,G.target);if((ee==null?void 0:ee.type)==="condition"&&!d.has(ee.id)&&!this.repeatPatterns.has(ee.id)&&!this.repeatInternalNodeIds.has(ee.id)){const re=this.getOutgoingEdges(s,ee.id).filter(ie=>ie.sourceHandle==="false"&&!this.backEdgeIds.has(ie.id));if(re.length===0||re.length===1&&L.includes(re[0].target))C=ee,d.add(C.id);else{R=[G.target];break}}else{R=[G.target];break}}const B={alias:g.data.alias,if:A,then:[],else:[]},$=[...R,...L],j=R.length>0&&L.length>0?this.findConvergencePoint(s,$):null;if(j){if(R.length>0){const G=R.flatMap(ee=>this.buildSequenceUntilNode(s,ee,j,new Set(d)));B.then=G}if(L.length>0){const G=L.flatMap(ee=>this.buildSequenceUntilNode(s,ee,j,new Set(d)));B.else=G}b.push(B);const P=this.buildSequenceFromNode(s,j,new Set(d));b.push(...P)}else{if(R.length>0){const P=R.flatMap(G=>this.buildSequenceFromNode(s,G,new Set(d)));B.then=P}if(L.length>0){const P=L.flatMap(G=>this.buildSequenceFromNode(s,G,new Set(d)));B.else=P}b.push(B)}}else{const A=this.buildNodeAction(g);if(A&&b.push(A),x.length===1){const C=this.buildSequenceFromNode(s,x[0].target,new Set(d));b.push(...C)}else if(x.length>1){const C=this.findConvergencePoint(s,x.map(R=>R.target));if(C){const L=x.map(B=>this.buildSequenceUntilNode(s,B.target,C,new Set(d))).filter(B=>B.length>0);if(L.length>0){const B=L.map($=>$.length===1?$[0]:$);b.push({parallel:B})}const D=this.buildSequenceFromNode(s,C,new Set(d));b.push(...D)}else{const L=x.map(D=>this.buildSequenceFromNode(s,D.target,new Set(d))).filter(D=>D.length>0);if(L.length>0){const D=L.map(B=>B.length===1?B[0]:B);b.push({parallel:D})}}}}return b}findConvergencePoint(s,c){if(c.length<2)return null;const d=c.map(S=>{const x=new Set,A=[S];for(;A.length>0;){const C=A.shift();if(x.has(C))continue;x.add(C);const R=this.getOutgoingEdges(s,C);for(const L of R)A.push(L.target)}return x}),b=[...d[0]].filter(S=>d.every(x=>x.has(S)));if(b.length===0)return null;let w=null,E=Number.POSITIVE_INFINITY;for(const S of b){const x=c.map(C=>this.getShortestDistance(s,C,S)),A=Math.max(...x);A0;){const{nodeId:w,distance:E}=b.shift();if(g.has(w))continue;g.add(w);const S=this.getOutgoingEdges(s,w);for(const x of S){if(x.target===d)return E+1;g.has(x.target)||b.push({nodeId:x.target,distance:E+1})}}return Number.POSITIVE_INFINITY}buildSequenceUntilNode(s,c,d,g){if(c===d)return[];if(g.has(c))return[];g.add(c);const b=this.getNode(s,c);if(!b)return[];const w=[],E=this.buildNodeAction(b);E&&w.push(E);const S=this.getOutgoingEdges(s,c).filter(x=>!this.backEdgeIds.has(x.id));if(b.type==="condition"){const x=E,A=S.filter(R=>R.sourceHandle==="true"),C=S.filter(R=>R.sourceHandle==="false");if(A.length>0){const R=A.flatMap(L=>this.buildSequenceUntilNode(s,L.target,d,new Set(g)));x.then=R}if(C.length>0){const R=C.flatMap(L=>this.buildSequenceUntilNode(s,L.target,d,new Set(g)));x.else=R}}else if(S.length===1){if(S[0].target!==d){const x=this.buildSequenceUntilNode(s,S[0].target,d,new Set(g));w.push(...x)}}else if(S.length>1){const A=S.map(C=>this.buildSequenceUntilNode(s,C.target,d,new Set(g))).filter(C=>C.length>0);if(A.length>0){const C=A.map(R=>R.length===1?R[0]:R);w.push({parallel:C})}}return w}buildNodeAction(s){switch(s.type){case"trigger":return null;case"condition":return this.buildConditionChoose(s);case"action":return this.buildActionCall(s);case"delay":return this.buildDelay(s);case"wait":return this.buildWait(s);case"set_variables":return this.buildSetVariables(s);default:return null}}buildConditionChoose(s){const c=this.buildCondition(s);return{alias:s.data.alias,if:[c],then:[],else:[]}}mapSingleCondition(s){const{condition:c,conditions:d,alias:g,template:b,...w}=s,E={condition:c,...w};return c==="template"&&!w.value_template&&b&&(E.value_template=b),Array.isArray(d)&&d.length>0&&(E.conditions=d.map(S=>this.mapSingleCondition(S)).filter(S=>S&&(!Array.isArray(S.conditions)||S.conditions.length>0))),Object.fromEntries(Object.entries(E).filter(([,S])=>S!==void 0&&S!==""))}buildCondition(s){function c(d){if(!d||typeof d!="object")return d;const{condition:g,conditions:b,alias:w,template:E,...S}=d,x={condition:g,...S};return g==="template"&&!S.value_template&&E&&(x.value_template=E),Array.isArray(b)&&b.length>0&&(x.conditions=b.map(c).filter(A=>A&&(!Array.isArray(A.conditions)||A.conditions.length>0))),Object.fromEntries(Object.entries(x).filter(([,A])=>A!==void 0&&A!==""))}return c(s.data)}buildActionCall(s){if(gMe(s.data.data)){const D=s.data.data,B={device_id:D.device_id,domain:D.domain,type:D.type};s.data.alias&&(B.alias=s.data.alias),D.entity_id&&(B.entity_id=D.entity_id),D.subtype&&(B.subtype=D.subtype);const $=["type","device_id","domain","entity_id","subtype"];for(const[j,P]of Object.entries(D))!$.includes(j)&&P!==void 0&&(B[j]=P);return s.data.enabled===!1&&(B.enabled=!1),B}if(s.data.repeat){const D=s.data.repeat,B={repeat:{...D.count!==void 0?{count:D.count}:{},...D.while?{while:D.while}:{},...D.until?{until:D.until}:{},sequence:D.sequence??[]}};return s.data.alias&&(B.alias=s.data.alias),s.data.enabled===!1&&(B.enabled=!1),B}if(typeof s.data.event=="string"&&s.data.event.trim()!==""){const D={event:s.data.event};return s.data.alias&&(D.alias=s.data.alias),s.data.event_data&&Object.keys(s.data.event_data).length>0&&(D.event_data=s.data.event_data),s.data.enabled===!1&&(D.enabled=!1),D}if("stop"in s.data){const D={stop:s.data.stop??""};return s.data.alias&&(D.alias=s.data.alias),s.data.error===!0&&(D.error=!0),s.data.enabled===!1&&(D.enabled=!1),D}const{alias:c,service:d,id:g,target:b,data:w,data_template:E,response_variable:S,continue_on_error:x,enabled:A,repeat:C,...R}=s.data,L={...R,alias:c,service:d};return b&&(L.target=b),w&&(L.data=w),E&&(L.data_template=E),S&&(L.response_variable=S),x&&(L.continue_on_error=x),A===!1&&(L.enabled=!1),L}buildDelay(s){const{alias:c,delay:d,id:g,...b}=s.data;return{...b,alias:c,delay:d}}buildWait(s){const{alias:c,id:d,wait_template:g,wait_for_trigger:b,timeout:w,continue_on_timeout:E,...S}=s.data,x={...S,alias:c};return g?x.wait_template=g:b&&(x.wait_for_trigger=b.map(A=>{const C={...A};return Object.fromEntries(Object.entries(C).filter(([,R])=>R!==void 0&&R!==""&&R!==null))})),w&&(x.timeout=w),E!==void 0&&(x.continue_on_timeout=E),x}buildSetVariables(s){const{alias:c,id:d,variables:g,...b}=s.data,w={...b,variables:g};return c&&(w.alias=c),w}}class $Ft extends XWt{constructor(){super(...arguments);Zf(this,"name","state-machine");Zf(this,"description","Generates state machine YAML for complex flows with cycles or cross-links")}canHandle(s){return!0}generate(s,c){var R,L,D,B;const d=[],g=this.buildTriggerRouting(s);if(g.size===0){d.push("No action nodes found after triggers");const $=this.extractTriggers(s);return $.length>0?{automation:{alias:s.name,description:s.description||"",triggers:$,actions:[],mode:((R=s.metadata)==null?void 0:R.mode)??"single"},warnings:d,strategy:this.name}:{script:{alias:s.name,description:s.description||"",sequence:[],mode:((L=s.metadata)==null?void 0:L.mode)??"single"},warnings:d,strategy:this.name}}const b=this.generateParallelEntryBlocks(s,g),w=new Set;for(const[,$]of g)if($.length>1)for(const j of $)this.collectSubgraphNodeIds(s,j,w);const E=s.nodes.filter($=>$.type!=="trigger"&&!w.has($.id)).map($=>this.generateNodeBlock(s,$)),S=[...b,...E];if(c.hasCycles){const $=this.detectPotentialInfiniteLoop(s,c);$&&d.push($)}const x=this.extractTriggers(s),C=[{variables:{current_node:this.generateEntryNodeExpression(g),flow_context:{}}},{alias:"State Machine Loop",repeat:{until:'{{ current_node == "END" }}',sequence:[{choose:S,default:[{service:"system_log.write",data:{message:'C.A.F.E.: Unknown state "{{ current_node }}", ending flow',level:"warning"}},{variables:{current_node:"END"}}]}]}}];return x.length>0?{automation:{alias:s.name,description:s.description||"",triggers:x,actions:C,mode:((D=s.metadata)==null?void 0:D.mode)??"single"},warnings:d,strategy:this.name}:{script:{alias:s.name,description:s.description||"",sequence:C,mode:((B=s.metadata)==null?void 0:B.mode)??"single"},warnings:d,strategy:this.name}}buildTriggerRouting(s){const c=new Map;return s.nodes.filter(g=>g.type==="trigger").forEach((g,b)=>{const w=this.getOutgoingEdges(s,g.id);w.length>0&&c.set(b,w.map(E=>E.target))}),c}getEffectiveEntryPoint(s,c){return c.length===1?c[0]:`__parallel_trigger_${s}`}generateEntryNodeExpression(s){const c=new Map;for(const[w,E]of s)c.set(w,this.getEffectiveEntryPoint(w,E));const d=new Set(c.values());if(d.size===1)return[...d][0];const g=[...c.entries()].sort((w,E)=>w[0]-E[0]),b=[];return g.forEach(([w,E],S)=>{S===0?b.push(`{% if trigger.idx == "${w}" %}${E}`):S===g.length-1?b.push(`{% else %}${E}{% endif %}`):b.push(`{% elif trigger.idx == "${w}" %}${E}`)}),g.length===1?g[0][1]:b.join("")}generateParallelEntryBlocks(s,c){const d=[];for(const[g,b]of c){if(b.length<=1)continue;const w=`__parallel_trigger_${g}`,E=b.map(S=>{const x=this.generateInlineBranch(s,S,new Set);return x.length===0?{alias:`parallel_branch:${S}`,stop:"Empty branch"}:x.length===1?{...x[0],alias:`parallel_branch:${S}`}:{alias:`parallel_branch:${S}`,sequence:x}});d.push({conditions:[{condition:"template",value_template:`{{ current_node == "${w}" }}`}],sequence:[{parallel:E},{variables:{current_node:"END"}}]})}return d}collectSubgraphNodeIds(s,c,d){if(c==="END"||d.has(c))return;const g=s.nodes.find(w=>w.id===c);if(!g||g.type==="trigger")return;d.add(c);const b=this.getOutgoingEdges(s,g.id);for(const w of b)this.collectSubgraphNodeIds(s,w.target,d)}encodeNodeIdInAlias(s,c){const d=s.alias;s.alias=d?`cafe_node:${c}:${d}`:`cafe_node:${c}`}generateInlineBranch(s,c,d){var w,E,S,x,A;if(c==="END"||d.has(c))return[];const g=s.nodes.find(C=>C.id===c);if(!g)return[];d.add(c);const b=this.getOutgoingEdges(s,g.id);switch(g.type){case"action":{const C=this.buildActionCall(g);this.encodeNodeIdInAlias(C,g.id);const R=((w=b[0])==null?void 0:w.target)??"END";return[C,...this.generateInlineBranch(s,R,d)]}case"condition":{const C=b.find(G=>G.sourceHandle==="true"),R=b.find(G=>G.sourceHandle==="false"),L=(C==null?void 0:C.target)??"END",D=(R==null?void 0:R.target)??"END",B=this.buildNativeCondition(g),$=this.generateInlineBranch(s,L,new Set(d)),j=this.generateInlineBranch(s,D,new Set(d)),P={alias:g.data.alias,if:[B],then:$};return this.encodeNodeIdInAlias(P,g.id),j.length>0&&(P.else=j),[P]}case"delay":{const C=this.buildDelayAction(g);this.encodeNodeIdInAlias(C,g.id);const R=((E=b[0])==null?void 0:E.target)??"END";return[C,...this.generateInlineBranch(s,R,d)]}case"wait":{const C=this.buildWaitAction(g);this.encodeNodeIdInAlias(C,g.id);const R=((S=b[0])==null?void 0:S.target)??"END";return[C,...this.generateInlineBranch(s,R,d)]}case"set_variables":{const C=this.buildSetVariablesAction(g);this.encodeNodeIdInAlias(C,g.id);const R=((x=b[0])==null?void 0:x.target)??"END";return[C,...this.generateInlineBranch(s,R,d)]}default:{const C=((A=b[0])==null?void 0:A.target)??"END";return this.generateInlineBranch(s,C,d)}}}extractTriggers(s){return s.nodes.filter(c=>c.type==="trigger").map(c=>{const d={...c.data};return Object.fromEntries(Object.entries(d).filter(([,g])=>g!==void 0&&g!==""&&g!==null))})}generateNodeBlock(s,c){const d=this.getOutgoingEdges(s,c.id);switch(c.type){case"condition":return this.generateConditionBlock(c,d);case"action":return this.generateActionBlock(c,d);case"delay":return this.generateDelayBlock(c,d);case"wait":return this.generateWaitBlock(c,d);case"set_variables":return this.generateSetVariablesBlock(c,d);default:return this.generatePassthroughBlock(c,d)}}generateActionBlock(s,c){var E;const d=s.id,g=this.buildActionCall(s),b=((E=c[0])==null?void 0:E.target)??"END",w=b==="END"?"END":b;return{conditions:[{condition:"template",value_template:`{{ current_node == "${d}" }}`}],sequence:[g,{variables:{current_node:w}}]}}buildActionCall(s){if(gMe(s.data.data)){const D=s.data.data,B={device_id:D.device_id,domain:D.domain,type:D.type};s.data.alias&&(B.alias=s.data.alias),D.entity_id&&(B.entity_id=D.entity_id),D.subtype&&(B.subtype=D.subtype);const $=["type","device_id","domain","entity_id","subtype"];for(const[j,P]of Object.entries(D))!$.includes(j)&&P!==void 0&&(B[j]=P);return s.data.enabled===!1&&(B.enabled=!1),B}if(s.data.repeat){const D=s.data.repeat,B={repeat:{...D.count!==void 0?{count:D.count}:{},...D.while?{while:D.while}:{},...D.until?{until:D.until}:{},sequence:D.sequence??[]}};return s.data.alias&&(B.alias=s.data.alias),s.data.enabled===!1&&(B.enabled=!1),B}if(typeof s.data.event=="string"&&s.data.event.trim()!==""){const D={event:s.data.event};return s.data.alias&&(D.alias=s.data.alias),s.data.event_data&&Object.keys(s.data.event_data).length>0&&(D.event_data=s.data.event_data),s.data.enabled===!1&&(D.enabled=!1),D}const{alias:c,service:d,id:g,target:b,data:w,data_template:E,response_variable:S,continue_on_error:x,enabled:A,repeat:C,...R}=s.data,L={...R,alias:c,service:d};return g&&(L.id=g),b&&(L.target=b),w&&(L.data=w),E&&(L.data_template=E),S&&(L.response_variable=S),x&&(L.continue_on_error=x),A===!1&&(L.enabled=!1),L}generateConditionBlock(s,c){const d=c.find(R=>R.sourceHandle==="true"),g=c.find(R=>R.sourceHandle==="false"),b=(d==null?void 0:d.target)??"END",w=(g==null?void 0:g.target)??"END",E=b==="END"?"END":b,S=w==="END"?"END":w,x=s.id;if(this.needsNativeConditionCheck(s)){const R=this.buildNativeCondition(s);return{conditions:[{condition:"template",value_template:`{{ current_node == "${x}" }}`}],sequence:[{alias:s.data.alias,if:[R],then:[{variables:{current_node:E}}],else:[{variables:{current_node:S}}]}]}}const C=this.buildConditionTemplate(s);return{conditions:[{condition:"template",value_template:`{{ current_node == "${x}" }}`}],sequence:[{alias:s.data.alias,variables:{current_node:`{% if ${C} %}${E}{% else %}${S}{% endif %}`}}]}}needsNativeConditionCheck(s){const c=s.data;return c.condition==="template"&&(c.value_template||"").includes("{%")?!0:(c.condition==="and"||c.condition==="or"||c.condition==="not")&&c.conditions?c.conditions.some(d=>d.condition==="template"?(d.value_template||"").includes("{%"):!1):!1}buildNativeCondition(s){const c=s.data,d={condition:c.condition};return c.entity_id&&(d.entity_id=c.entity_id),c.state!==void 0&&(d.state=c.state),c.above!=null&&c.above!==""&&(d.above=c.above),c.below!=null&&c.below!==""&&(d.below=c.below),c.attribute&&(d.attribute=c.attribute),c.value_template&&(d.value_template=c.value_template),c.after&&(d.after=c.after),c.before&&(d.before=c.before),c.after_offset&&(d.after_offset=c.after_offset),c.before_offset&&(d.before_offset=c.before_offset),c.zone&&(d.zone=c.zone),c.weekday&&(d.weekday=c.weekday),c.id&&(d.id=c.id),c.conditions&&c.conditions.length>0&&(d.conditions=c.conditions.map(g=>{const b={condition:g.condition};return g.entity_id&&(b.entity_id=g.entity_id),g.state!==void 0&&(b.state=g.state),g.above!==void 0&&(b.above=g.above),g.below!==void 0&&(b.below=g.below),g.attribute&&(b.attribute=g.attribute),g.value_template&&(b.value_template=g.value_template),g.template&&(b.value_template=g.template),g.after&&(b.after=g.after),g.before&&(b.before=g.before),g.after_offset&&(b.after_offset=g.after_offset),g.before_offset&&(b.before_offset=g.before_offset),g.zone&&(b.zone=g.zone),g.weekday&&(b.weekday=g.weekday),g.id&&(b.id=g.id),Object.fromEntries(Object.entries(b).filter(([,w])=>w!==void 0))})),Object.fromEntries(Object.entries(d).filter(([,g])=>g!==void 0))}buildDelayAction(s){const{alias:c,delay:d,id:g,...b}=s.data,w={...b,alias:c,delay:d};return g&&(w.id=g),w}generateDelayBlock(s,c){var w;const d=((w=c[0])==null?void 0:w.target)??"END",g=d==="END"?"END":d;return{conditions:[{condition:"template",value_template:`{{ current_node == "${s.id}" }}`}],sequence:[this.buildDelayAction(s),{variables:{current_node:g}}]}}buildWaitAction(s){const{alias:c,id:d,wait_template:g,wait_for_trigger:b,timeout:w,continue_on_timeout:E,...S}=s.data,x={...S,alias:c};return d&&(x.id=d),g?x.wait_template=g:b&&(x.wait_for_trigger=b.map(A=>{const{alias:C,...R}=A,L={...R};return Object.fromEntries(Object.entries(L).filter(([,D])=>D!==void 0&&D!==""&&D!==null))})),w&&(x.timeout=w),E!==void 0&&(x.continue_on_timeout=E),x}generateWaitBlock(s,c){var w;const d=((w=c[0])==null?void 0:w.target)??"END",g=d==="END"?"END":d;return{conditions:[{condition:"template",value_template:`{{ current_node == "${s.id}" }}`}],sequence:[this.buildWaitAction(s),{variables:{current_node:g}}]}}buildSetVariablesAction(s){const{alias:c,id:d,variables:g,...b}=s.data,w={...b,variables:g};return c&&(w.alias=c),d&&(w.id=d),w}generateSetVariablesBlock(s,c){var w;const d=((w=c[0])==null?void 0:w.target)??"END",g=d==="END"?"END":d;return{conditions:[{condition:"template",value_template:`{{ current_node == "${s.id}" }}`}],sequence:[this.buildSetVariablesAction(s),{variables:{current_node:g}}]}}generatePassthroughBlock(s,c){var w;const d=((w=c[0])==null?void 0:w.target)??"END",g=d==="END"?"END":d;return{conditions:[{condition:"template",value_template:`{{ current_node == "${s.id}" }}`}],sequence:[{variables:{current_node:g}}]}}buildConditionTemplate(s){const c=s.data;switch(c.condition){case"state":if(c.attribute){if(Array.isArray(c.state)){const d=c.state.map(g=>`'${g}'`).join(", ");return`state_attr('${c.entity_id}', '${c.attribute}') in [${d}]`}return`state_attr('${c.entity_id}', '${c.attribute}') == '${c.state}'`}else{if(Array.isArray(c.state)){const d=c.state.map(g=>`'${g}'`).join(", ");return`states('${c.entity_id}') in [${d}]`}return`is_state('${c.entity_id}', '${c.state}')`}case"numeric_state":return this.buildNumericCondition(c);case"template":{let d=c.value_template||"true";return d.startsWith("{{")&&d.endsWith("}}")&&(d=d.slice(2,-2).trim()),d}case"time":return this.buildTimeCondition(c);case"sun":return this.buildSunCondition(c);case"zone":return`is_state('${c.entity_id}', '${c.zone}')`;case"and":return c.conditions&&c.conditions.length>0?`(${c.conditions.map(d=>this.buildNestedCondition(d)).join(" and ")})`:"true";case"or":return c.conditions&&c.conditions.length>0?`(${c.conditions.map(d=>this.buildNestedCondition(d)).join(" or ")})`:"false";case"not":return c.conditions&&c.conditions.length>0?`not (${c.conditions.map(d=>this.buildNestedCondition(d)).join(" and ")})`:"true";default:return"true"}}buildNumericCondition(s){const c=[],d=s.value_template?`(${s.value_template})`:s.attribute?`state_attr('${s.entity_id}', '${s.attribute}') | float`:`states('${s.entity_id}') | float`;return s.above!=null&&s.above!==""&&c.push(`${d} > ${s.above}`),s.below!=null&&s.below!==""&&c.push(`${d} < ${s.below}`),c.length>0?c.join(" and "):"true"}buildTimeCondition(s){const c=[];if(s.after&&c.push(`now().strftime('%H:%M:%S') >= '${s.after}'`),s.before&&c.push(`now().strftime('%H:%M:%S') < '${s.before}'`),s.weekday&&s.weekday.length>0){const d=s.weekday.map(g=>`'${g}'`).join(", ");c.push(`now().strftime('%a').lower()[:3] in [${d}]`)}return c.length>0?c.join(" and "):"true"}buildSunCondition(s){return s.after==="sunrise"||s.before==="sunset"?"is_state('sun.sun', 'above_horizon')":s.after==="sunset"||s.before==="sunrise"?"is_state('sun.sun', 'below_horizon')":"true"}buildNestedCondition(s){const c={id:"nested",type:"condition",position:{x:0,y:0},data:s};return this.buildConditionTemplate(c)}detectPotentialInfiniteLoop(s,c){return c.hasCycles?s.nodes.some(g=>g.type==="condition")?"Note: This flow contains cycles. Ensure your conditions can eventually evaluate to break the cycle, or the automation may run indefinitely.":"Warning: This flow contains cycles but no conditions. This could result in an infinite loop. Consider adding a condition to break the cycle.":null}}class RM{constructor(){Zf(this,"strategies",[new uQn,new $Ft])}validate(i){return rJn(i)}analyzeTopology(i){return XYn(i)}transpile(i,s={}){const c=[],d=this.validate(i);if(!d.success||!d.graph)return{success:!1,errors:d.errors.map(A=>A.message),warnings:c};const g=d.graph,b=this.analyzeTopology(g);let w;if(s.forceStrategy){const A=this.strategies.find(C=>C.name===s.forceStrategy);if(!A)return{success:!1,errors:[`Unknown strategy: ${s.forceStrategy}`],warnings:c};w=A,w.canHandle(b)||c.push(`Strategy "${w.name}" may not be optimal for this flow topology. Recommended: ${b.recommendedStrategy}`)}else{const A=this.strategies.find(C=>C.canHandle(b));A?w=A:w=new $Ft}const E=w.generate(g,b);c.push(...E.warnings);const S=E.automation??E.script;let x;if(S&&typeof S=="object"){const A=this.generateCafeMetadata(g,w),C={...S,variables:{...g.userVariables||{},...S.variables||{},_cafe_metadata:A}};x=gse(C,{indent:s.indent??2,lineWidth:s.lineWidth??-1,quotingType:'"',forceQuotes:!1})}else x=gse(S,{indent:s.indent??2,lineWidth:s.lineWidth??-1,quotingType:'"',forceQuotes:!1});return{success:!0,yaml:x,output:E,analysis:b,warnings:c}}toYaml(i,s={}){var d;const c=this.transpile(i,s);if(!c.success)throw new Error(`Transpilation failed: ${(d=c.errors)==null?void 0:d.join(", ")}`);return c.yaml}toNativeYaml(i,s={}){return this.toYaml(i,{...s,forceStrategy:"native"})}toStateMachineYaml(i,s={}){return this.toYaml(i,{...s,forceStrategy:"state-machine"})}fromYaml(i){return new aQn().parse(i)}getStrategies(){return this.strategies.map(i=>({name:i.name,description:i.description}))}addStrategy(i){this.strategies.unshift(i)}generateCafeMetadata(i,s){const c={};for(const d of i.nodes)c[d.id]={x:d.position.x,y:d.position.y};return{version:1,nodes:c,graph_id:i.id,graph_version:i.version,strategy:s.name}}}const GDe=new RM,BFt=n=>{let i;const s=new Set,c=(S,x)=>{const A=typeof S=="function"?S(i):S;if(!Object.is(A,i)){const C=i;i=x??(typeof A!="object"||A===null)?A:Object.assign({},i,A),s.forEach(R=>R(i,C))}},d=()=>i,w={setState:c,getState:d,getInitialState:()=>E,subscribe:S=>(s.add(S),()=>s.delete(S))},E=i=n(c,d,w);return w},ZWt=n=>n?BFt(n):BFt,cQn=n=>n;function QWt(n,i=cQn){const s=Hn.useSyncExternalStore(n.subscribe,Hn.useCallback(()=>i(n.getState()),[n,i]),Hn.useCallback(()=>i(n.getInitialState()),[n,i]));return Hn.useDebugValue(s),s}const lQn=n=>{const i=ZWt(n),s=c=>QWt(i,c);return Object.assign(s,i),s},dQn=n=>lQn;var UFt=(n,i,s)=>(d,g)=>({pastStates:(s==null?void 0:s.pastStates)||[],futureStates:(s==null?void 0:s.futureStates)||[],undo:(b=1)=>{var w,E;if(g().pastStates.length){const S=((w=s==null?void 0:s.partialize)==null?void 0:w.call(s,i()))||i(),x=g().pastStates.splice(-b,b),A=x.shift();n(A),d({pastStates:g().pastStates,futureStates:g().futureStates.concat(((E=s==null?void 0:s.diff)==null?void 0:E.call(s,S,A))||S,x.reverse())})}},redo:(b=1)=>{var w,E;if(g().futureStates.length){const S=((w=s==null?void 0:s.partialize)==null?void 0:w.call(s,i()))||i(),x=g().futureStates.splice(-b,b),A=x.shift();n(A),d({pastStates:g().pastStates.concat(((E=s==null?void 0:s.diff)==null?void 0:E.call(s,S,A))||S,x.reverse()),futureStates:g().futureStates})}},clear:()=>d({pastStates:[],futureStates:[]}),isTracking:!0,pause:()=>d({isTracking:!1}),resume:()=>d({isTracking:!0}),setOnSave:b=>d({_onSave:b}),_onSave:s==null?void 0:s.onSave,_handleSet:(b,w,E,S)=>{var x,A;s!=null&&s.limit&&g().pastStates.length>=(s==null?void 0:s.limit)&&g().pastStates.shift(),(A=(x=g())._onSave)==null||A.call(x,b,E),d({pastStates:g().pastStates.concat(S||b),futureStates:[]})}}),fQn=(n,i)=>(c,d,g)=>{var S,x;g.temporal=ZWt(((S=i==null?void 0:i.wrapTemporal)==null?void 0:S.call(i,UFt(c,d,i)))||UFt(c,d,i));const b=((x=i==null?void 0:i.handleSet)==null?void 0:x.call(i,g.temporal.getState()._handleSet))||g.temporal.getState()._handleSet,w=A=>{var L,D,B;if(!g.temporal.getState().isTracking)return;const C=((L=i==null?void 0:i.partialize)==null?void 0:L.call(i,d()))||d(),R=(D=i==null?void 0:i.diff)==null?void 0:D.call(i,A,C);R===null||(B=i==null?void 0:i.equality)!=null&&B.call(i,A,C)||b(A,void 0,C,R)},E=g.setState;return g.setState=(...A)=>{var R;const C=((R=i==null?void 0:i.partialize)==null?void 0:R.call(i,d()))||d();E(...A),w(C)},n((...A)=>{var R;const C=((R=i==null?void 0:i.partialize)==null?void 0:R.call(i,d()))||d();c(...A),w(C)},d,g)};function hQn(n,i){let s;try{s=n()}catch{return}return{getItem:d=>{var g;const b=E=>E===null?null:JSON.parse(E,void 0),w=(g=s.getItem(d))!=null?g:null;return w instanceof Promise?w.then(b):b(w)},setItem:(d,g)=>s.setItem(d,JSON.stringify(g,void 0)),removeItem:d=>s.removeItem(d)}}const qDe=n=>i=>{try{const s=n(i);return s instanceof Promise?s:{then(c){return qDe(c)(s)},catch(c){return this}}}catch(s){return{then(c){return this},catch(c){return qDe(c)(s)}}}},pQn=(n,i)=>(s,c,d)=>{let g={storage:hQn(()=>localStorage),partialize:D=>D,version:0,merge:(D,B)=>({...B,...D}),...i},b=!1;const w=new Set,E=new Set;let S=g.storage;if(!S)return n((...D)=>{console.warn(`[zustand persist middleware] Unable to update item '${g.name}', the given storage is currently unavailable.`),s(...D)},c,d);const x=()=>{const D=g.partialize({...c()});return S.setItem(g.name,{state:D,version:g.version})},A=d.setState;d.setState=(D,B)=>(A(D,B),x());const C=n((...D)=>(s(...D),x()),c,d);d.getInitialState=()=>C;let R;const L=()=>{var D,B;if(!S)return;b=!1,w.forEach(j=>{var P;return j((P=c())!=null?P:C)});const $=((B=g.onRehydrateStorage)==null?void 0:B.call(g,(D=c())!=null?D:C))||void 0;return qDe(S.getItem.bind(S))(g.name).then(j=>{if(j)if(typeof j.version=="number"&&j.version!==g.version){if(g.migrate){const P=g.migrate(j.state,j.version);return P instanceof Promise?P.then(G=>[!0,G]):[!0,P]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,j.state];return[!1,void 0]}).then(j=>{var P;const[G,ee]=j;if(R=g.merge(ee,(P=c())!=null?P:C),s(R,!0),G)return x()}).then(()=>{$==null||$(R,void 0),R=c(),b=!0,E.forEach(j=>j(R))}).catch(j=>{$==null||$(void 0,j)})};return d.persist={setOptions:D=>{g={...g,...D},D.storage&&(S=D.storage)},clearStorage:()=>{S==null||S.removeItem(g.name)},getOptions:()=>g,rehydrate:()=>L(),hasHydrated:()=>b,onHydrate:D=>(w.add(D),()=>{w.delete(D)}),onFinishHydration:D=>(E.add(D),()=>{E.delete(D)})},g.skipHydration||L(),R||C},gQn=pQn,HFt=n=>Symbol.iterator in n,zFt=n=>"entries"in n,GFt=(n,i)=>{const s=n instanceof Map?n:new Map(n.entries()),c=i instanceof Map?i:new Map(i.entries());if(s.size!==c.size)return!1;for(const[d,g]of s)if(!c.has(d)||!Object.is(g,c.get(d)))return!1;return!0},bQn=(n,i)=>{const s=n[Symbol.iterator](),c=i[Symbol.iterator]();let d=s.next(),g=c.next();for(;!d.done&&!g.done;){if(!Object.is(d.value,g.value))return!1;d=s.next(),g=c.next()}return!!d.done&&!!g.done};function eKt(n,i){return Object.is(n,i)?!0:typeof n!="object"||n===null||typeof i!="object"||i===null||Object.getPrototypeOf(n)!==Object.getPrototypeOf(i)?!1:HFt(n)&&HFt(i)?zFt(n)&&zFt(i)?GFt(n,i):bQn(n,i):GFt({entries:()=>Object.entries(n)},{entries:()=>Object.entries(i)})}function tKt(n){const i=Hn.useRef(void 0);return s=>{const c=n(s);return eKt(i.current,c)?i.current:i.current=c}}class mQn{constructor(i,s){Zf(this,"hass",null);Zf(this,"baseUrl");Zf(this,"token");this.hass=i||null,s!=null&&s.url&&(s!=null&&s.token)?(this.baseUrl=s.url,this.token=s.token):typeof window<"u"&&(this.baseUrl=window.location.origin)}updateHass(i,s){this.hass=i,s!=null&&s.url&&(s!=null&&s.token)?(this.baseUrl=s.url,this.token=s.token):typeof window<"u"&&!this.baseUrl&&(this.baseUrl=window.location.origin)}isConnected(){return this.hass?!!(this.hass.connection||this.hass.callApi||this.hass.callService||this.hass.states&&Object.keys(this.hass.states).length>0):!1}getStates(){return this.hass?this.hass.states:null}getState(i){const s=this.getStates();return(s==null?void 0:s[i])||null}getAutomations(){const i=this.getStates();return i?Object.values(i).filter(s=>s.entity_id.startsWith("automation.")):[]}normalizeTags(i){return Array.isArray(i)?i.filter(s=>typeof s=="string"):typeof i=="string"&&i.trim()?[i]:[]}async sendMessage(i){var s;if(!((s=this.hass)!=null&&s.connection))throw new Error("No Home Assistant connection available");return await this.hass.connection.sendMessagePromise(i)}async callService(i,s,c,d){var g,b;if((g=this.hass)!=null&&g.callService){const w={...c,...d&&{target:d}};return await this.hass.callService(i,s,w)}if((b=this.hass)!=null&&b.connection)return await this.sendMessage({type:"call_service",domain:i,service:s,service_data:c,target:d});throw new Error("No service calling method available")}async executeAction(i){if(!i.service)throw new Error("Action must have a service property");const[s,c]=i.service.split(".");if(!s||!c)throw new Error(`Invalid service format: ${i.service}`);return await this.callService(s,c,i.data,i.target)}async callAPI(i,s,c){var d;if((d=this.hass)!=null&&d.callApi)return await this.hass.callApi(i,s,c);throw new Error("REST API calls not supported in standalone mode")}async fetchRestAPI(i,s="GET",c){var b;if((b=this.hass)!=null&&b.callApi)return await this.hass.callApi(s,i,c);if(!this.baseUrl||!this.token)throw console.error("C.A.F.E.: No authentication configured",{baseUrl:this.baseUrl,hasToken:!!this.token}),new Error("No authentication configured for REST API");const d=`${this.baseUrl}/api/${i}`,g=await fetch(d,{method:s,headers:{Authorization:`Bearer ${this.token}`,"Content-Type":"application/json"},body:c?JSON.stringify(c):void 0});if(!g.ok){const w=await g.text();throw console.error("C.A.F.E.: REST API error response:",w),new Error(`REST API error: ${g.status} ${g.statusText}`)}return await g.json()}async getAutomationConfigs(){var i;try{if((i=this.hass)!=null&&i.connection)try{const c=await this.sendMessage({type:"config/automation/list"});if(Array.isArray(c))return c}catch(c){console.warn("WebSocket automation list failed, trying alternative:",c)}return this.getAutomations().map(c=>({id:c.entity_id.replace("automation.",""),alias:typeof c.attributes.friendly_name=="string"?c.attributes.friendly_name:c.entity_id,description:typeof c.attributes.description=="string"?c.attributes.description:""}))}catch(s){return console.error("Failed to get automation configs:",s),[]}}async getAutomationConfig(i){var s;try{if((s=this.hass)!=null&&s.connection)try{const d=await this.sendMessage({type:"config/automation/get",automation_id:i});if(d)return d}catch(d){console.warn("WebSocket automation get failed:",d)}if(!i.startsWith("automation."))try{const d=await this.fetchRestAPI(`config/automation/config/${i}`);if(d)return d}catch(d){console.warn("REST API failed for automation %s:",i,d)}return(await this.getAutomationConfigs()).find(d=>d.id===i||d.alias===i||`automation.${d.alias}`===i)||null}catch(c){return console.error("C.A.F.E.: Failed to get automation config:",c),null}}async getAutomationConfigFromTrace(i){try{const s=await this.getAutomationTraces(i);if(!s||s.length===0)return null;const c=await this.getAutomationTraceDetails(i,s[0].run_id);return(c==null?void 0:c.config)||null}catch(s){return console.error("C.A.F.E.: Failed to get automation config from trace:",s),null}}async getAutomationConfigWithFallback(i,s){try{const c=await this.getAutomationConfig(i);return c||(await this.getAutomationConfigFromTrace(i)??null)}catch(c){return console.error("C.A.F.E.: Failed to get automation config with fallback:",c),null}}async createAutomation(i){var s,c;try{const d=i.id||Date.now().toString(),{trigger:g,condition:b,action:w,...E}=i,S={...E,id:d,alias:i.alias||`C.A.F.E. Automation ${d}`,description:i.description||"",triggers:g||i.triggers||[],conditions:b||i.conditions||[],actions:w||i.actions||[],mode:i.mode||"single",variables:i.variables||{}};try{await this.fetchRestAPI(`config/automation/config/${d}`,"POST",S)}catch(x){throw console.error("C.A.F.E.: Failed to save automation config:",x),new Error(`Failed to save automation config: ${x instanceof Error?x.message:"Unknown error"}`)}if((s=this.hass)!=null&&s.callService)return await this.hass.callService("automation","reload",{}),d;if((c=this.hass)!=null&&c.connection)return await this.sendMessage({type:"call_service",domain:"automation",service:"reload"}),d;throw new Error("No working Home Assistant connection method found")}catch(d){throw console.error("C.A.F.E.: Failed to create automation:",d),new Error(`Failed to create automation: ${d instanceof Error?d.message:"Unknown error"}`)}}async updateAutomation(i,s){try{console.log("C.A.F.E.: Updating automation with ID:",i),console.log("C.A.F.E.: Update config:",s);const{trigger:c,condition:d,action:g,...b}=s,w={...b,id:i,alias:s.alias||`C.A.F.E. Automation ${i}`,description:s.description||"",triggers:c||s.triggers||[],conditions:d||s.conditions||[],actions:g||s.actions||[],mode:s.mode||"single",variables:s.variables||{}};console.log("C.A.F.E.: Final update payload:",w),await this.fetchRestAPI(`config/automation/config/${i}`,"POST",w),console.log("C.A.F.E.: Successfully updated automation:",i)}catch(c){throw console.error("C.A.F.E.: Failed to update automation:",c),new Error(`Failed to update automation: ${c instanceof Error?c.message:"Unknown error"}`)}}async deleteAutomation(i){try{await this.fetchRestAPI(`config/automation/config/${i}`,"DELETE")}catch(s){throw console.error("C.A.F.E.: Failed to delete automation:",s),new Error(`Failed to delete automation: ${s instanceof Error?s.message:"Unknown error"}`)}}async automationExistsByAlias(i){try{return(await this.getAutomationConfigs()).some(d=>d.alias===i)}catch(s){return console.error("C.A.F.E.: Failed to check automation existence:",s),!1}}async getUniqueAutomationAlias(i){try{let s=i,c=1;for(;await this.automationExistsByAlias(s);)s=`${i} (${c})`,c++;return s}catch(s){return console.error("C.A.F.E.: Failed to get unique automation alias:",s),i}}async triggerAutomation(i,s=!0){await this.callService("automation","trigger",{entity_id:i,skip_condition:s})}async setAutomationState(i,s){const c=s?"turn_on":"turn_off";await this.callService("automation",c,{entity_id:i})}async getAreas(){try{return await this.sendMessage({type:"config/area_registry/list"})}catch(i){return console.error("Failed to get areas:",i),[]}}async getDevices(){try{return await this.sendMessage({type:"config/device_registry/list"})}catch(i){return console.error("Failed to get devices:",i),[]}}async getEntities(){try{return await this.sendMessage({type:"config/entity_registry/list"})}catch(i){return console.error("Failed to get entities:",i),[]}}async getZones(){try{const i=this.getStates();return i?Object.values(i).filter(s=>s.entity_id.startsWith("zone.")).map(s=>{const c=s.entity_id.replace("zone.","");return{entity_id:s.entity_id,zone_id:c,name:typeof s.attributes.friendly_name=="string"?s.attributes.friendly_name:c,latitude:typeof s.attributes.latitude=="number"?s.attributes.latitude:void 0,longitude:typeof s.attributes.longitude=="number"?s.attributes.longitude:void 0,radius:typeof s.attributes.radius=="number"?s.attributes.radius:void 0,passive:typeof s.attributes.passive=="boolean"?s.attributes.passive:void 0}}):[]}catch(i){return console.error("Failed to get zones:",i),[]}}async getAutomationCatalog(){try{const[i]=await Promise.all([this.getEntities()]),s=Array.isArray(i)?i:[],c=new Map;for(const d of s)d.entity_id&&d.area_id&&c.set(d.entity_id,d.area_id);return this.getAutomations().map(d=>{const g=typeof d.attributes.friendly_name=="string"?d.attributes.friendly_name:d.entity_id,b=typeof d.attributes.id=="string"||typeof d.attributes.id=="number"?String(d.attributes.id):d.entity_id.replace("automation.","");return{entity_id:d.entity_id,automation_id:b,friendly_name:g,enabled:d.state==="on",last_triggered:typeof d.attributes.last_triggered=="string"?d.attributes.last_triggered:void 0,description:typeof d.attributes.description=="string"?d.attributes.description:"",mode:typeof d.attributes.mode=="string"?d.attributes.mode:void 0,area_id:c.get(d.entity_id),tags:this.normalizeTags(d.attributes.tags)}})}catch(i){return console.error("Failed to build automation catalog:",i),[]}}async getAutomationConfigsBatch(i,s=4){const c=Array.from(new Set(i.filter(Boolean))),d={};if(c.length===0)return d;const g=[...c],b=Math.max(1,Math.min(s,g.length)),w=Array.from({length:b}).map(async()=>{for(;g.length>0;){const E=g.shift();if(E)try{d[E]=await this.getAutomationConfigWithFallback(E)}catch(S){console.warn("Failed to fetch automation config for %s:",E,S),d[E]=null}}});return await Promise.all(w),d}async getServices(){try{return await this.sendMessage({type:"get_services"})}catch(i){return console.error("Failed to get services:",i),{}}}async validateAutomationConfig(i){try{return await this.sendMessage({type:"validate_config",...i})}catch(s){return console.error("Failed to validate config:",s),{valid:!1,error:"Validation failed"}}}async getAutomationTraces(i){try{const s=await this.sendMessage({type:"trace/list",domain:"automation",item_id:i});return Array.isArray(s)?s:[]}catch(s){return console.error("Failed to get automation traces:",s),[]}}async getAutomationTraceDetails(i,s){try{return await this.sendMessage({type:"trace/get",domain:"automation",item_id:i,run_id:s})||null}catch(c){return console.error("Failed to get automation trace details:",c),null}}}let S5=null;function Mv(n,i){return S5?n&&(!S5.hass||!S5.isConnected()||n.states&&Object.keys(n.states).length>0)&&S5.updateHass(n??null,i):S5=new mQn(n,i),S5}class BMe{constructor(i,s,c=1){Zf(this,"dbName");Zf(this,"storeName");Zf(this,"dbVersion");Zf(this,"dbPromise",null);this.dbName=i,this.storeName=s,this.dbVersion=c}async initDB(){return this.dbPromise?this.dbPromise:(this.dbPromise=new Promise((i,s)=>{const c=indexedDB.open(this.dbName,this.dbVersion);c.onerror=d=>{console.error("IndexedDB error:",d),s(new Error("Failed to open IndexedDB database"))},c.onsuccess=d=>{const g=d.target.result;i(g)},c.onupgradeneeded=d=>{const g=d.target.result;g.objectStoreNames.contains(this.storeName)||g.createObjectStore(this.storeName)}}),this.dbPromise)}async getItem(i){try{const g=(await this.initDB()).transaction(this.storeName,"readonly").objectStore(this.storeName).get(i);return new Promise((b,w)=>{g.onsuccess=()=>{const E=g.result;b(E??null)},g.onerror=()=>{w(new Error("Failed to get item from IndexedDB"))}})}catch(s){return console.error("IndexedDB getItem error:",s),null}}async setItem(i,s){try{const b=(await this.initDB()).transaction(this.storeName,"readwrite").objectStore(this.storeName).put(s,i);return new Promise((w,E)=>{b.onsuccess=()=>w(),b.onerror=()=>E(new Error("Failed to set item in IndexedDB"))})}catch(c){throw console.error("IndexedDB setItem error:",c),c}}async removeItem(i){try{const g=(await this.initDB()).transaction(this.storeName,"readwrite").objectStore(this.storeName).delete(i);return new Promise((b,w)=>{g.onsuccess=()=>b(),g.onerror=()=>w(new Error("Failed to remove item from IndexedDB"))})}catch(s){throw console.error("IndexedDB removeItem error:",s),s}}static createJSONStorage(i,s){if(!("indexedDB"in globalThis)){const d=new Map;return{getItem:async g=>{const b=d.get(g)??null;return b?JSON.parse(b):null},setItem:async(g,b)=>{d.set(g,JSON.stringify(b))},removeItem:async g=>{d.delete(g)}}}const c=new BMe(i,s);return{getItem:async d=>{const g=await c.getItem(d);return g?JSON.parse(g):null},setItem:async(d,g)=>{await c.setItem(d,JSON.stringify(g))},removeItem:async d=>{await c.removeItem(d)}}}}const wQn=BMe.createJSONStorage("cafe-flow-storage","flow-store");function yQn(n){if("platform"in n&&!("trigger"in n)){const{platform:i,...s}=n;return{...s,trigger:i}}return n}function HOe(n,i){return n==="trigger"?yQn(i):i}function vQn(n){const i=new Map;for(const c of n){const d=c.data.id;typeof d!="string"||d.trim()===""||i.set(d,[...i.get(d)??[],c.id])}const s=new Map;for(const[,c]of i)if(!(c.length<2))for(const d of c)s.set(d,{path:["id"],message:"errors:validation.node.duplicateId"});return s}const VDe={mode:"single",initial_state:!0},qFt={flowId:W5e(),flowName:"Untitled Automation",flowDescription:"",flowMetadata:VDe,userVariables:void 0,userTriggerVariables:void 0,nodes:[],edges:[],selectedNodeId:null,automationId:null,isSaving:!1,lastSaved:null,hasUnsavedChanges:!1,originalSnapshot:null,isSimulating:!1,activeNodeId:null,executionPath:[],isShowingTrace:!1,traceData:null,traceExecutionPath:[],traceTimestamps:{},simulationSpeed:800,nodeErrors:new Map,clipboard:null,pasteCount:0},EQn=n=>({flowId:n.flowId,flowName:n.flowName,flowDescription:n.flowDescription,flowMetadata:n.flowMetadata,nodes:n.nodes,edges:n.edges,selectedNodeId:n.selectedNodeId,automationId:n.automationId,lastSaved:n.lastSaved,originalSnapshot:n.originalSnapshot}),SQn=n=>({nodes:n.nodes,edges:n.edges,flowName:n.flowName,flowDescription:n.flowDescription,flowMetadata:n.flowMetadata,userVariables:n.userVariables,userTriggerVariables:n.userTriggerVariables});let Uk;function zOe(){Uk&&(clearTimeout(Uk.timeoutId),Uk=void 0)}const Do=dQn()(gQn(fQn((n,i)=>({...qFt,setNodes:s=>n({nodes:s}),setEdges:s=>n({edges:s}),onNodesChange:s=>n(c=>({nodes:Ozt(s,c.nodes),hasUnsavedChanges:!0})),onEdgesChange:s=>n(c=>({edges:Dzt(s,c.edges),hasUnsavedChanges:!0})),onConnect:s=>n(c=>({edges:dzt({...s,id:`e-${s.source}-${s.target}-${Date.now()}`,animated:!1},c.edges),hasUnsavedChanges:!0})),addNode:s=>{const c=s.type?{...s,data:HOe(s.type,s.data)}:s;n(d=>({nodes:[...d.nodes,c],hasUnsavedChanges:!0})),i().validateNode(s.id)},updateNodeData:(s,c)=>{n(d=>({nodes:d.nodes.map(g=>g.id===s?{...g,data:{...g.data,...c}}:g),hasUnsavedChanges:!0})),"id"in c?i().validateAllNodes():i().validateNode(s)},removeNode:s=>n(c=>({nodes:c.nodes.filter(d=>d.id!==s),edges:c.edges.filter(d=>d.source!==s&&d.target!==s),selectedNodeId:c.selectedNodeId===s?null:c.selectedNodeId,hasUnsavedChanges:!0})),selectNode:s=>n({selectedNodeId:s}),setClipboard:s=>n({clipboard:s}),setPasteCount:s=>n({pasteCount:s}),setFlowName:s=>n({flowName:s,hasUnsavedChanges:!0}),setFlowDescription:s=>n({flowDescription:s,hasUnsavedChanges:!0}),setFlowMetadata:s=>n(c=>({flowMetadata:{...c.flowMetadata,...s},hasUnsavedChanges:!0})),setAutomationId:s=>n({automationId:s}),setSaving:s=>n({isSaving:s}),setSaved:()=>n({lastSaved:new Date,hasUnsavedChanges:!1}),setUnsavedChanges:s=>n({hasUnsavedChanges:s}),hasRealChanges:()=>{const s=i();return s.originalSnapshot?JSON.stringify({flowName:s.flowName,flowDescription:s.flowDescription,flowMetadata:s.flowMetadata,nodes:s.nodes.map(d=>({id:d.id,type:d.type,position:d.position,data:d.data})),edges:s.edges.map(d=>({id:d.id,source:d.source,target:d.target,sourceHandle:d.sourceHandle,targetHandle:d.targetHandle}))})!==s.originalSnapshot:s.nodes.length>0},saveAutomation:async s=>{var g;const c=i(),d=Mv(s);n({isSaving:!0});try{i().validateAllNodes();const b=i();if(b.nodeErrors.size>0){const D=b.nodeErrors.size;throw new Error(`Cannot save: ${D} node(s) have validation errors. Fix the highlighted nodes before saving.`)}const w=c.toFlowGraph();if(w.nodes.length===0)throw new Error("Cannot save empty automation. Please add at least one trigger and one action node.");const E=w.nodes.filter(D=>D.type==="trigger"),S=w.nodes.filter(D=>D.type==="action");if(E.length===0)throw new Error("Automation must have at least one trigger node. Please add a trigger from the node palette.");if(S.length===0)throw new Error("Automation must have at least one action node. Please add an action from the node palette.");const x=new RM,A=x.validate(w);if(A.errors.length>0)throw console.error("C.A.F.E.: Validation errors:",A.errors),new Error(`Validation failed: ${A.errors.map(D=>D.message).join(", ")}`);const C=x.transpile(w);if(!C.success||!((g=C.output)!=null&&g.automation))throw new Error("Failed to transpile flow to automation config");const R={alias:c.flowName,description:c.flowDescription||"",...C.output.automation,variables:{...C.output.automation.variables||{},_cafe_metadata:{version:1,strategy:"native",nodes:w.nodes.reduce((D,B)=>(D[B.id]={x:B.position.x,y:B.position.y},D),{}),graph_id:w.id,graph_version:1}}},L=await d.createAutomation(R);return n({automationId:L,isSaving:!1,lastSaved:new Date,hasUnsavedChanges:!1}),L}catch(b){throw n({isSaving:!1}),b}},updateAutomation:async s=>{var g;const c=i(),d=Mv(s);if(!c.automationId)throw new Error("No automation ID set. Use saveAutomation() for new automations.");console.log("C.A.F.E.: Updating automation with ID from store:",c.automationId),n({isSaving:!0});try{i().validateAllNodes();const b=i();if(b.nodeErrors.size>0){const L=b.nodeErrors.size;throw new Error(`Cannot save: ${L} node(s) have validation errors. Fix the highlighted nodes before saving.`)}const w=c.toFlowGraph();if(w.nodes.length===0)throw new Error("Cannot save empty automation. Please add at least one trigger and one action node.");const E=w.nodes.filter(L=>L.type==="trigger"),S=w.nodes.filter(L=>L.type==="action");if(E.length===0)throw new Error("Automation must have at least one trigger node. Please add a trigger from the node palette.");if(S.length===0)throw new Error("Automation must have at least one action node. Please add an action from the node palette.");const x=new RM,A=x.validate(w);if(A.errors.length>0)throw new Error(`Validation failed: ${A.errors.map(L=>L.message).join(", ")}`);const C=x.transpile(w);if(!C.success||!((g=C.output)!=null&&g.automation))throw new Error("Failed to transpile flow to automation config");const R={alias:c.flowName,description:c.flowDescription||"",...C.output.automation,variables:{...C.output.automation.variables||{},_cafe_metadata:{version:1,strategy:"native",nodes:w.nodes.reduce((L,D)=>(L[D.id]={x:D.position.x,y:D.position.y},L),{}),graph_id:w.id,graph_version:1}}};await d.updateAutomation(c.automationId,R),n({isSaving:!1,lastSaved:new Date,hasUnsavedChanges:!1})}catch(b){throw n({isSaving:!1}),b}},startSimulation:()=>n({isSimulating:!0,executionPath:[],activeNodeId:null}),stopSimulation:()=>n({isSimulating:!1,activeNodeId:null}),setActiveNode:s=>n({activeNodeId:s}),addToExecutionPath:s=>n(c=>({executionPath:[...c.executionPath,s]})),clearExecutionPath:()=>n({executionPath:[]}),showTrace:s=>{const c=[],d={};if(s!=null&&s.trace){const g=i(),b={trigger:[],condition:[],action:[],wait:[],delay:[]};for(const E of g.nodes){const S=E.type;b[S]&&b[S].push(E)}for(const E in b)b[E].sort((S,x)=>S.position.y-x.position.y);const w=Object.entries(s.trace).flatMap(([E,S])=>Array.isArray(S)?S.map(x=>({...x,path:E})):[]).sort((E,S)=>new Date(E.timestamp).getTime()-new Date(S.timestamp).getTime());for(const E of w){const S=E.path.split("/"),x=S[0],A=parseInt(S[1],10),C=b[x]||[];if(C[A]){const R=C[A].id;c.includes(R)||(c.push(R),d[R]=E.timestamp)}}}n({isShowingTrace:!0,traceData:s,traceExecutionPath:c,traceTimestamps:d,activeNodeId:null})},hideTrace:()=>n({isShowingTrace:!1,traceData:null,traceExecutionPath:[],traceTimestamps:{},activeNodeId:null}),clearTraceExecutionPath:()=>n({traceExecutionPath:[],traceTimestamps:{}}),setSimulationSpeed:s=>n({simulationSpeed:s}),getExecutionStepNumber:s=>{const c=i();if(c.isSimulating&&c.executionPath.length>0){const d=c.executionPath.indexOf(s);return d>=0?d+1:null}if(c.isShowingTrace&&c.traceExecutionPath.length>0){const d=c.traceExecutionPath.indexOf(s);return d>=0?d+1:null}return null},canDeleteEdge:()=>!0,toFlowGraph:()=>{const s=i(),c=new Set(s.nodes.map(d=>d.id));return{id:s.flowId,name:s.flowName,description:s.flowDescription||void 0,nodes:s.nodes.map(d=>{const g={...d.data};return d.type==="trigger"&&!g.trigger&&(console.warn(`C.A.F.E.: Trigger node ${d.id} missing trigger type, adding default 'state'`),g.trigger="state"),d.type==="action"&&!g.service&&(console.warn(`C.A.F.E.: Action node ${d.id} missing service, adding default 'light.turn_on'`),g.service="light.turn_on"),{id:d.id,type:d.type,position:d.position,data:g}}),edges:s.edges.filter(d=>c.has(d.source)&&c.has(d.target)).map(d=>({id:d.id,source:d.source,target:d.target,sourceHandle:d.sourceHandle,targetHandle:d.targetHandle,label:typeof d.label=="string"?d.label:void 0})),metadata:s.flowMetadata,version:1,userVariables:s.userVariables,userTriggerVariables:s.userTriggerVariables}},fromFlowGraph:s=>{const c=s.nodes.map(w=>({id:w.id,type:w.type,position:w.position,data:HOe(w.type,w.data)})),d=s.edges.map(w=>({id:w.id,source:w.source,target:w.target,sourceHandle:w.sourceHandle,targetHandle:w.targetHandle,label:w.label})),g={...VDe,...s.metadata},b=JSON.stringify({flowName:s.name,flowDescription:s.description||"",flowMetadata:g,nodes:c.map(w=>({id:w.id,type:w.type,position:w.position,data:w.data})),edges:d.map(w=>({id:w.id,source:w.source,target:w.target,sourceHandle:w.sourceHandle,targetHandle:w.targetHandle}))});n({flowId:s.id,flowName:s.name,flowDescription:s.description||"",flowMetadata:g,userVariables:s.userVariables,userTriggerVariables:s.userTriggerVariables,nodes:c,edges:d,selectedNodeId:null,automationId:null,hasUnsavedChanges:!1,lastSaved:null,originalSnapshot:b,nodeErrors:new Map}),i().validateAllNodes(),zOe(),Do.temporal.getState().clear()},reset:()=>{n({...qFt,flowId:W5e(),flowMetadata:{...VDe},originalSnapshot:null,nodeErrors:new Map}),zOe(),Do.temporal.getState().clear()},validateNode:s=>{const d=i().nodes.find(b=>b.id===s);if(!d||!d.type)return;const g=M8t(d.type,d.data);n(b=>{const w=new Map(b.nodeErrors);return g.length>0?w.set(s,g):w.delete(s),{nodeErrors:w}})},validateAllNodes:()=>{const s=i(),c=new Map;for(const g of s.nodes){if(!g.type)continue;const b=M8t(g.type,g.data);b.length>0&&c.set(g.id,b)}const d=vQn(s.nodes);for(const[g,b]of d)c.set(g,[...c.get(g)??[],b]);n({nodeErrors:c})},clearNodeErrors:s=>{n(c=>{const d=new Map(c.nodeErrors);return d.delete(s),{nodeErrors:d}})},hasValidationErrors:()=>i().nodeErrors.size>0}),{partialize:SQn,limit:100,equality:eKt,handleSet:n=>i=>{const s=i,c=(Uk==null?void 0:Uk.burstStart)??s;zOe(),Uk={timeoutId:setTimeout(()=>{Uk=void 0,n(c)},300),burstStart:c}}}),{name:"cafe-flow-storage",storage:wQn,partialize:EQn,version:1,onRehydrateStorage:()=>n=>{if(n){const i=n.nodes.map(c=>({...c,data:c.type?HOe(c.type,c.data):c.data}));i.some((c,d)=>JSON.stringify(c.data)!==JSON.stringify(n.nodes[d].data))&&(n.nodes=i),n.validateAllNodes()}}})),WDe=[{type:"trigger",labelKey:"nodes:types.trigger",icon:yGt,color:"bg-amber-100 border-amber-400 text-amber-700 hover:bg-amber-200",defaultData:{trigger:"state",entity_id:""}},{type:"condition",labelKey:"nodes:types.condition",icon:fGt,color:"bg-blue-100 border-blue-400 text-blue-700 hover:bg-blue-200",defaultData:{condition:"state",entity_id:""}},{type:"action",labelKey:"nodes:types.action",icon:rae,color:"bg-green-100 border-green-400 text-green-700 hover:bg-green-200",defaultData:{service:"light.turn_on"}},{type:"delay",labelKey:"nodes:types.delay",icon:F5e,color:"bg-purple-100 border-purple-400 text-purple-700 hover:bg-purple-200",defaultData:{delay:"00:00:05"}},{type:"wait",labelKey:"nodes:types.wait",icon:hGt,color:"bg-orange-100 border-orange-400 text-orange-700 hover:bg-orange-200",defaultData:{wait_template:"",timeout:"00:01:00"}},{type:"set_variables",labelKey:"nodes:types.set_variables",icon:wGt,color:"bg-cyan-100 border-cyan-400 text-cyan-700 hover:bg-cyan-200",defaultData:{variables:{}}}];function TQn(){const{t:n}=ps(["common","nodes"]),i=Do(g=>g.addNode),s=Do(g=>g.nodes),c=H.useCallback(g=>{const b=s.length*250+250;i({id:Xoe(g.type),type:g.type,position:{x:b,y:150},data:{...g.defaultData}})},[i,s.length]),d=H.useCallback((g,b)=>{g.dataTransfer.setData("application/reactflow",JSON.stringify({type:b.type,defaultData:b.defaultData})),g.dataTransfer.effectAllowed="move"},[]);return I.jsxs("div",{className:"space-y-2 p-4",children:[I.jsx("h3",{className:"mb-3 font-semibold text-muted-foreground text-sm",children:n("labels.addNode")}),I.jsx("div",{className:"space-y-2",children:WDe.map(g=>I.jsxs(Ri,{variant:"outline",onClick:()=>c(g),onDragStart:b=>d(b,g),draggable:!0,className:Sr("h-auto w-full justify-start gap-3 py-3","cursor-grab transition-colors active:cursor-grabbing",g.color),children:[I.jsx(g.icon,{className:"h-4 w-4"}),I.jsx("span",{className:"font-medium text-sm",children:n(g.labelKey)})]},g.type))})]})}function AQn(n){return n==="forward"?WDe.filter(i=>i.type!=="trigger"):[...WDe]}function _Qn(n,i,s,c){return n==="forward"?{source:i,sourceHandle:s,target:c,targetHandle:null}:{source:c,sourceHandle:null,target:i,targetHandle:s}}function xQn({position:n,direction:i,onSelect:s,onClose:c}){const{t:d}=ps(["common","nodes"]),g=H.useMemo(()=>n?AQn(i).map(S=>({config:S,label:d(S.labelKey)})):[],[n,i,d]),{query:b,setQuery:w,filteredItems:E}=rVt(g,{keys:["label"],threshold:.4,ignoreLocation:!0});return I.jsx(sMe,{open:n!==null,onOpenChange:S=>{S||c()},children:n&&I.jsxs(I.Fragment,{children:[I.jsx(LBn,{asChild:!0,children:I.jsx("div",{style:{position:"fixed",left:n.screenX,top:n.screenY,width:0,height:0}})}),I.jsx(Tae,{className:"w-64 p-0",children:I.jsxs(fae,{shouldFilter:!1,children:[I.jsx(hae,{autoFocus:!0,placeholder:d("nodes:quickAdd.searchPlaceholder"),value:b,onValueChange:w}),I.jsxs(pae,{children:[I.jsx(gae,{children:d("combobox.noOptions")}),I.jsx(ez,{children:E.map(S=>I.jsxs(tz,{value:S.label,onSelect:()=>s(S.config),children:[I.jsx(S.config.icon,{className:"mr-2 h-4 w-4"}),S.label]},S.config.type))})]})]})})]})})}const kQn=typeof window<"u"&&(localStorage.getItem("cafe_debug")==="true"||window.location.search.includes("debug=true")),T5={info:"color: #2196F3; font-weight: bold",warn:"color: #FF9800; font-weight: bold",error:"color: #F44336; font-weight: bold",success:"color: #4CAF50; font-weight: bold",debug:"color: #9C27B0; font-weight: bold"};class NQn{constructor(i=kQn){Zf(this,"enabled");Zf(this,"prefix");this.enabled=i,this.prefix="[C.A.F.E.]"}setEnabled(i){this.enabled=i,typeof window<"u"&&localStorage.setItem("cafe_debug",i.toString())}isEnabled(){return this.enabled}info(i,...s){this.enabled&&console.log(`%c${this.prefix} ${i}`,T5.info,...s)}warn(i,...s){this.enabled&&console.warn(`%c${this.prefix} ${i}`,T5.warn,...s)}error(i,...s){this.enabled&&console.error(`%c${this.prefix} ${i}`,T5.error,...s)}success(i,...s){this.enabled&&console.log(`%c${this.prefix} ${i}`,T5.success,...s)}debug(i,...s){this.enabled&&console.log(`%c${this.prefix} DEBUG: ${i}`,T5.debug,...s)}object(i,s){this.enabled&&(console.group(`%c${this.prefix} ${i}`,T5.info),console.log(s),console.groupEnd())}time(i){this.enabled&&console.time(`${this.prefix} ${i}`)}timeEnd(i){this.enabled&&console.timeEnd(`${this.prefix} ${i}`)}}const Ef=new NQn;typeof window<"u"&&(window.cafeLogger=Ef);const CQn=1,bse=2,GOe=3,IQn=4,RQn=5;function OQn(n){return{type:"auth",access_token:n}}function DQn(){return{type:"supported_features",id:1,features:{coalesce_messages:1}}}function LQn(){return{type:"get_states"}}function MQn(){return{type:"get_services"}}function PQn(n){const i={type:"subscribe_events"};return n&&(i.event_type=n),i}function VFt(n){return{type:"unsubscribe_events",subscription:n}}function jQn(){return{type:"ping"}}function FQn(n,i){return{type:"result",success:!1,error:{code:n,message:i}}}const $Qn=(n,i,s=!1)=>{let c;return function(...d){const g=this,b=()=>{c=void 0,s||n.apply(g,d)},w=s&&!c;clearTimeout(c),c=setTimeout(b,i),w&&n.apply(g,d)}},nKt=(n,i,s,c)=>{const[d,g,b]=n.split(".",3);return Number(d)>i||Number(d)===i&&(c===void 0?Number(g)>=s:Number(g)>s)||c!==void 0&&Number(d)===i&&Number(g)===s&&Number(b)>=c},BQn="auth_invalid",UQn="auth_ok";function HQn(n){if(!n.auth)throw IQn;const i=n.auth;let s=i.expired?i.refreshAccessToken().then(()=>{s=void 0},()=>{s=void 0}):void 0;const c=i.wsUrl;function d(g,b,w){const E=new WebSocket(c);let S=!1;const x=()=>{if(E.removeEventListener("close",x),S){w(bse);return}if(g===0){w(CQn);return}const R=g===-1?-1:g-1;setTimeout(()=>d(R,b,w),1e3)},A=async R=>{try{i.expired&&await(s||i.refreshAccessToken()),E.send(JSON.stringify(OQn(i.accessToken)))}catch(L){S=L===bse,E.close()}},C=async R=>{const L=JSON.parse(R.data);switch(L.type){case BQn:S=!0,E.close();break;case UQn:E.removeEventListener("open",A),E.removeEventListener("message",C),E.removeEventListener("close",x),E.removeEventListener("error",x),E.haVersion=L.ha_version,nKt(E.haVersion,2022,9)&&E.send(JSON.stringify(DQn())),b(E);break}};E.addEventListener("open",A),E.addEventListener("message",C),E.addEventListener("close",x),E.addEventListener("error",x)}return new Promise((g,b)=>d(n.setupRetry,g,b))}class zQn{constructor(i,s){this._handleMessage=c=>{let d=JSON.parse(c.data);Array.isArray(d)||(d=[d]),d.forEach(g=>{const b=this.commands.get(g.id);switch(g.type){case"event":b?b.callback(g.event):(console.warn(`Received event for unknown subscription ${g.id}. Unsubscribing.`),this.sendMessagePromise(VFt(g.id)).catch(w=>{}));break;case"result":b&&(g.success?(b.resolve(g.result),"subscribe"in b||this.commands.delete(g.id)):(b.reject(g.error),this.commands.delete(g.id)));break;case"pong":b?(b.resolve(),this.commands.delete(g.id)):console.warn(`Received unknown pong response ${g.id}`);break}})},this._handleClose=async()=>{const c=this.commands;if(this.commandId=1,this.oldSubscriptions=this.commands,this.commands=new Map,this.socket=void 0,c.forEach(b=>{"subscribe"in b||b.reject(FQn(GOe,"Connection lost"))}),this.closeRequested)return;this.fireEvent("disconnected");const d=Object.assign(Object.assign({},this.options),{setupRetry:0}),g=b=>{setTimeout(async()=>{if(!this.closeRequested)try{const w=await d.createSocket(d);this._setSocket(w)}catch(w){if(this._queuedMessages){const E=this._queuedMessages;this._queuedMessages=void 0;for(const S of E)S.reject&&S.reject(GOe)}w===bse?this.fireEvent("reconnect-error",w):g(b+1)}},Math.min(b,5)*1e3)};this.suspendReconnectPromise&&(await this.suspendReconnectPromise,this.suspendReconnectPromise=void 0,this._queuedMessages=[]),g(0)},this.options=s,this.commandId=2,this.commands=new Map,this.eventListeners=new Map,this.closeRequested=!1,this._setSocket(i)}get connected(){return this.socket!==void 0&&this.socket.readyState==this.socket.OPEN}_setSocket(i){this.socket=i,this.haVersion=i.haVersion,i.addEventListener("message",this._handleMessage),i.addEventListener("close",this._handleClose);const s=this.oldSubscriptions;s&&(this.oldSubscriptions=void 0,s.forEach(d=>{"subscribe"in d&&d.subscribe&&d.subscribe().then(g=>{d.unsubscribe=g,d.resolve()})}));const c=this._queuedMessages;if(c){this._queuedMessages=void 0;for(const d of c)d.resolve()}this.fireEvent("ready")}addEventListener(i,s){let c=this.eventListeners.get(i);c||(c=[],this.eventListeners.set(i,c)),c.push(s)}removeEventListener(i,s){const c=this.eventListeners.get(i);if(!c)return;const d=c.indexOf(s);d!==-1&&c.splice(d,1)}fireEvent(i,s){(this.eventListeners.get(i)||[]).forEach(c=>c(this,s))}suspendReconnectUntil(i){this.suspendReconnectPromise=i}suspend(){if(!this.suspendReconnectPromise)throw new Error("Suspend promise not set");this.socket&&this.socket.close()}reconnect(i=!1){if(this.socket){if(!i){this.socket.close();return}this.socket.removeEventListener("message",this._handleMessage),this.socket.removeEventListener("close",this._handleClose),this.socket.close(),this._handleClose()}}close(){this.closeRequested=!0,this.socket&&this.socket.close()}async subscribeEvents(i,s){return this.subscribeMessage(i,PQn(s))}ping(){return this.sendMessagePromise(jQn())}sendMessage(i,s){if(!this.connected)throw GOe;if(this._queuedMessages){if(s)throw new Error("Cannot queue with commandId");this._queuedMessages.push({resolve:()=>this.sendMessage(i)});return}s||(s=this._genCmdId()),i.id=s,this.socket.send(JSON.stringify(i))}sendMessagePromise(i){return new Promise((s,c)=>{if(this._queuedMessages){this._queuedMessages.push({reject:c,resolve:async()=>{try{s(await this.sendMessagePromise(i))}catch(g){c(g)}}});return}const d=this._genCmdId();this.commands.set(d,{resolve:s,reject:c}),this.sendMessage(i,d)})}async subscribeMessage(i,s,c){if(this._queuedMessages&&await new Promise((g,b)=>{this._queuedMessages.push({resolve:g,reject:b})}),c!=null&&c.preCheck&&!await c.preCheck())throw new Error("Pre-check failed");let d;return await new Promise((g,b)=>{const w=this._genCmdId();d={resolve:g,reject:b,callback:i,subscribe:(c==null?void 0:c.resubscribe)!==!1?()=>this.subscribeMessage(i,s,c):void 0,unsubscribe:async()=>{this.connected&&await this.sendMessagePromise(VFt(w)),this.commands.delete(w)}},this.commands.set(w,d);try{this.sendMessage(s,w)}catch{}}),()=>d.unsubscribe()}_genCmdId(){return++this.commandId}}const GQn=n=>n*1e3+Date.now();async function qQn(n,i,s){const c=typeof location<"u"&&location;if(c&&c.protocol==="https:"){const w=document.createElement("a");if(w.href=n,w.protocol==="http:"&&w.hostname!=="localhost")throw RQn}const d=new FormData;i!==null&&d.append("client_id",i),Object.keys(s).forEach(w=>{d.append(w,s[w])});const g=await fetch(`${n}/auth/token`,{method:"POST",credentials:"same-origin",body:d});if(!g.ok)throw g.status===400||g.status===403?bse:new Error("Unable to fetch tokens");const b=await g.json();return b.hassUrl=n,b.clientId=i,b.expires=GQn(b.expires_in),b}class VQn{constructor(i,s){this.data=i,this._saveTokens=s}get wsUrl(){return`ws${this.data.hassUrl.substr(4)}/api/websocket`}get accessToken(){return this.data.access_token}get expired(){return Date.now()>this.data.expires}async refreshAccessToken(){if(!this.data.refresh_token)throw new Error("No refresh_token");const i=await qQn(this.data.hassUrl,this.data.clientId,{grant_type:"refresh_token",refresh_token:this.data.refresh_token});i.refresh_token=this.data.refresh_token,this.data=i,this._saveTokens&&this._saveTokens(i)}async revoke(){if(!this.data.refresh_token)throw new Error("No refresh_token to revoke");const i=new FormData;i.append("token",this.data.refresh_token),await fetch(`${this.data.hassUrl}/auth/revoke`,{method:"POST",credentials:"same-origin",body:i}),this._saveTokens&&this._saveTokens(null)}}function WQn(n,i){return new VQn({hassUrl:n,clientId:null,expires:Date.now()+1e11,refresh_token:"",access_token:i,expires_in:1e11})}const KQn=n=>{let i=[];function s(d){let g=[];for(let b=0;b{s(d)}}}},YQn=5e3,KDe=(n,i,s,c,d={unsubGrace:!0})=>{if(n[i])return n[i];let g=0,b,w,E=KQn();const S=()=>{if(!s)throw new Error("Collection does not support refresh");return s(n).then(D=>E.setState(D,!0))},x=()=>S().catch(D=>{if(n.connected)throw D}),A=()=>{if(w!==void 0){clearTimeout(w),w=void 0;return}c&&(b=c(n,E)),s&&(n.addEventListener("ready",x),x()),n.addEventListener("disconnected",L)},C=()=>{w=void 0,b&&b.then(D=>{D()}),E.clearState(),n.removeEventListener("ready",S),n.removeEventListener("disconnected",L)},R=()=>{w=setTimeout(C,YQn)},L=()=>{w&&(clearTimeout(w),C())};return n[i]={get state(){return E.state},refresh:S,subscribe(D){g++,g===1&&A();const B=E.subscribe(D);return E.state!==void 0&&setTimeout(()=>D(E.state),0),()=>{B(),g--,g||(d.unsubGrace?R():C())}}},n[i]},JQn=n=>n.sendMessagePromise(LQn()),XQn=n=>n.sendMessagePromise(MQn());function ZQn(n,i,s){var c;const d=i.state;if(d===void 0)return;const{domain:g,service:b}=s.data;if(!(!((c=d.domain)===null||c===void 0)&&c.service)){const w=Object.assign(Object.assign({},d[g]),{[b]:{description:"",fields:{}}});i.setState({[g]:w})}eer(n,i)}function QQn(n,i){if(n===void 0)return null;const{domain:s,service:c}=i.data,d=n[s];if(!d||!(c in d))return null;const g={};return Object.keys(d).forEach(b=>{b!==c&&(g[b]=d[b])}),{[s]:g}}const eer=$Qn((n,i)=>rKt(n).then(s=>i.setState(s,!0)),5e3),rKt=n=>XQn(n),ter=(n,i)=>Promise.all([n.subscribeEvents(s=>ZQn(n,i,s),"service_registered"),n.subscribeEvents(i.action(QQn),"service_removed")]).then(s=>()=>s.forEach(c=>c())),ner=n=>KDe(n,"_srv",rKt,ter),rer=(n,i)=>ner(n).subscribe(i);function ier(n,i){const s=Object.assign({},n.state);if(i.a)for(const c in i.a){const d=i.a[c];let g=new Date(d.lc*1e3).toISOString();s[c]={entity_id:c,state:d.s,attributes:d.a,context:typeof d.c=="string"?{id:d.c,parent_id:null,user_id:null}:d.c,last_changed:g,last_updated:d.lu?new Date(d.lu*1e3).toISOString():g}}if(i.r)for(const c of i.r)delete s[c];if(i.c)for(const c in i.c){let d=s[c];if(!d){console.warn("Received state update for unknown entity",c);continue}d=Object.assign({},d);const{"+":g,"-":b}=i.c[c],w=(g==null?void 0:g.a)||(b==null?void 0:b.a),E=w?Object.assign({},d.attributes):d.attributes;if(g&&(g.s!==void 0&&(d.state=g.s),g.c&&(typeof g.c=="string"?d.context=Object.assign(Object.assign({},d.context),{id:g.c}):d.context=Object.assign(Object.assign({},d.context),g.c)),g.lc?d.last_updated=d.last_changed=new Date(g.lc*1e3).toISOString():g.lu&&(d.last_updated=new Date(g.lu*1e3).toISOString()),g.a&&Object.assign(E,g.a)),b!=null&&b.a)for(const S of b.a)delete E[S];w&&(d.attributes=E),s[c]=d}n.setState(s,!0)}const oer=(n,i)=>n.subscribeMessage(s=>ier(i,s),{type:"subscribe_entities"});function ser(n,i){const s=n.state;if(s===void 0)return;const{entity_id:c,new_state:d}=i.data;if(d)n.setState({[d.entity_id]:d});else{const g=Object.assign({},s);delete g[c],n.setState(g,!0)}}async function aer(n){const i=await JQn(n),s={};for(let c=0;cn.subscribeEvents(s=>ser(i,s),"state_changed"),cer=n=>nKt(n.haVersion,2022,4,0)?KDe(n,"_ent",void 0,oer):KDe(n,"_ent",aer,uer),ler=(n,i)=>cer(n).subscribe(i);async function der(n){const i=Object.assign({setupRetry:0,createSocket:HQn},n),s=await i.createSocket(i);return new zQn(s,i)}const iKt="cafe_hass_config";function fer(){try{const n=localStorage.getItem(iKt);if(n)return JSON.parse(n)}catch{}return{url:"",token:""}}function her(n){try{localStorage.setItem(iKt,JSON.stringify(n))}catch{}}const oKt=H.createContext(void 0),WFt=({children:n,forceMode:i,externalHass:s})=>{const[c,d]=H.useState(i?fer():{url:"",token:""}),[g,b]=H.useState([]),[w,E]=H.useState({}),[S,x]=H.useState(new Map),[A,C]=H.useState(new Map),[R,L]=H.useState(new Map),[D,B]=H.useState(!1),[$,j]=H.useState(null),[P,G]=H.useState(null),ee=!!(c.url&&c.token),re=i==="remote",Q=H.useCallback(We=>{d(We),her(We),b([]),E({}),x(new Map),C(new Map),L(new Map),j(null)},[]);H.useEffect(()=>{if(!re)return;const dt=(async()=>{B(!0),j(null);try{const Ue=WQn(c.url,c.token),bt=await der({auth:Ue});G(bt),bt.addEventListener("ready",()=>{j(null),B(!1)}),bt.addEventListener("disconnected",()=>{j("Connection lost")}),bt.addEventListener("reconnect-error",vt=>{console.error("C.A.F.E.: WebSocket reconnection failed:",vt),j("Reconnection failed")});const kt=ler(bt,vt=>{const Ct=Object.values(vt).map(Ft=>({entity_id:Ft.entity_id,state:Ft.state,attributes:Ft.attributes||{},last_changed:Ft.last_changed||"",last_updated:Ft.last_updated||"",context:Ft.context}));b(Ct),B(!1)}),ht=rer(bt,vt=>{E(vt)});return(async()=>{try{const vt=await bt.sendMessagePromise({type:"config/area_registry/list"}),Ct=new Map;for(const vr of vt)Ct.set(vr.area_id,vr);x(Ct);const Ft=await bt.sendMessagePromise({type:"config/device_registry/list"}),On=new Map;for(const vr of Ft)On.set(vr.id,vr);C(On);const Zn=await bt.sendMessagePromise({type:"config/entity_registry/list"}),Yn=new Map;for(const vr of Zn)Yn.set(vr.entity_id,vr);L(Yn)}catch(vt){console.error("C.A.F.E.: Failed to fetch registries:",vt)}})(),()=>{kt(),ht(),bt.close(),G(null)}}catch(Ue){console.error("C.A.F.E.: Failed to establish WebSocket connection:",Ue);const bt=Ue instanceof Error?Ue.message:"Connection failed";j(bt),B(!1)}})();return()=>{dt instanceof Promise&&dt.then(Ue=>Ue==null?void 0:Ue())}},[re,c.url,c.token]),H.useEffect(()=>{if(!(s!=null&&s.connection))return;(async()=>{try{const dt=await s.connection.sendMessagePromise({type:"config/area_registry/list"}),Ue=new Map;for(const vt of dt)Ue.set(vt.area_id,vt);x(Ue);const bt=await s.connection.sendMessagePromise({type:"config/device_registry/list"}),kt=new Map;for(const vt of bt)kt.set(vt.id,vt);C(kt);const ht=await s.connection.sendMessagePromise({type:"config/entity_registry/list"}),Xt=new Map;for(const vt of ht)Xt.set(vt.entity_id,vt);L(Xt)}catch(dt){console.error("C.A.F.E.: Failed to fetch registries from externalHass:",dt)}})()},[s==null?void 0:s.connection]);const ie=H.useRef({}),pe=H.useRef({}),me=H.useRef({});ie.current=H.useMemo(()=>Object.fromEntries(g.map(We=>[We.entity_id,We])),[g]),pe.current=w,me.current=H.useMemo(()=>Object.fromEntries(A),[A]);const le=H.useMemo(()=>{if(s)return s;if(P&&re)return{auth:null,get connected(){return P.connected},config:{},themes:{darkMode:!1},panels:{},selectedTheme:null,panelUrl:"",language:"en",locale:{},selectedLanguage:null,resources:{},get devices(){return me.current},localize:()=>"",translationMetadata:{fragments:[],translations:{}},dockedSidebar:!1,moreInfoEntityId:"",user:null,fetchWithAuth:async()=>new Response,sendWS:async(...We)=>{P.sendMessage(...We)},callWS:We=>P.sendMessagePromise(We),get states(){return ie.current},get services(){return pe.current},connection:P,callApi:async(We,dt,Ue)=>{if(!c.url||!c.token)throw new Error("No authentication configured");const bt=`${c.url}/api/${dt}`,kt=await fetch(bt,{method:We,headers:{Authorization:`Bearer ${c.token}`,"Content-Type":"application/json"},body:Ue?JSON.stringify(Ue):void 0});if(!kt.ok){const ht=await kt.json();throw new Error(`API error: ${ht.message}`)}return await kt.json()},callService:async(We,dt,Ue)=>{if(!P)throw new Error("WebSocket connection not available");return P.sendMessagePromise({type:"call_service",domain:We,service:dt,service_data:Ue||{}})}}},[s,re,P,c.url,c.token]),fe=H.useMemo(()=>re?g:Object.values((le==null?void 0:le.states)??{}),[re,g,le==null?void 0:le.states]),K=H.useMemo(()=>re?w:(le==null?void 0:le.services)??{},[re,w,le==null?void 0:le.services]),he=H.useCallback(We=>fe.filter(dt=>dt.entity_id.startsWith(`${We}.`)),[fe]),Oe=H.useCallback(()=>{const We=[];for(const[dt,Ue]of Object.entries(K))for(const[bt,kt]of Object.entries(Ue))We.push({domain:dt,service:bt,definition:kt});return We},[K]),Se=H.useCallback(We=>{var bt;if(!We||!We.includes("."))return null;const[dt,Ue]=We.split(".");return((bt=K[dt])==null?void 0:bt[Ue])||null},[K]),Le=H.useCallback(We=>{const dt=R.get(We);if(!(dt!=null&&dt.device_id))return null;const Ue=A.get(dt.device_id);return Ue&&(Ue.name_by_user||Ue.name)||null},[R,A]),Ae=H.useCallback(We=>{var bt,kt;const dt=R.get(We),Ue=(dt==null?void 0:dt.area_id)??(dt!=null&&dt.device_id?(bt=A.get(dt.device_id))==null?void 0:bt.area_id:null);return Ue?((kt=S.get(Ue))==null?void 0:kt.name)??null:null},[R,A,S]),xe={hass:le,isRemote:re,isLoading:re&&ee?D:!1,connectionError:re?$:null,entities:fe,services:K,config:c,setConfig:Q,getEntitiesByDomain:he,getAllServices:Oe,getServiceDefinition:Se,getDeviceNameForEntity:Le,getAreaNameForEntity:Ae};return I.jsx(oKt.Provider,{value:xe,children:n})};function pb(){const n=H.useContext(oKt);if(n===void 0)throw new Error("useHass must be used within a HassProvider");return n}function zae(){var c;const{hass:n}=pb(),[i,s]=H.useState(((c=n==null?void 0:n.themes)==null?void 0:c.darkMode)??!1);return H.useEffect(()=>{var d,g;if(Ef.debug("[C.A.F.E.] useDarkMode effect running",{hasHass:!!n,hasStates:!!(n!=null&&n.states&&Object.keys(n.states).length>0),hasThemes:!!(n!=null&&n.themes),darkMode:(d=n==null?void 0:n.themes)==null?void 0:d.darkMode}),((g=n==null?void 0:n.themes)==null?void 0:g.darkMode)!==void 0){const b=n.themes.darkMode;Ef.debug("[C.A.F.E.] Dark mode from hass.themes.darkMode:",b),s(b)}else n&&Object.keys(n.states||{}).length>0?(Ef.debug("[C.A.F.E.] Hass available but no themes.darkMode property, defaulting to light mode"),s(!1)):Ef.debug("[C.A.F.E.] Hass not available yet or no entities loaded")},[n]),i}function per({id:n,sourceX:i,sourceY:s,targetX:c,targetY:d,sourcePosition:g,targetPosition:b,style:w,markerEnd:E,selected:S}){const{t:x}=ps(["common"]),{setEdges:A}=kR(),C=Do(K=>K.setUnsavedChanges),R=Do(K=>K.canDeleteEdge),L=zae(),D=c{K.stopPropagation(),ie&&(A(he=>he.filter(Oe=>Oe.id!==n)),C(!0))},le=S?{...w,stroke:"#3b82f6",strokeWidth:3}:w??{},fe=le&&typeof le=="object"&&"stroke"in le&&typeof le.stroke=="string"?le.stroke:L?"#94a3b8":"#64748b";return I.jsxs(I.Fragment,{children:[I.jsx(xz,{id:n,path:j,style:le,markerEnd:E}),D&&ee!==0&&I.jsx(E9t,{children:I.jsx("div",{className:"nodrag nopan pointer-events-none absolute",style:{transform:`translate(-50%, -50%) translate(${ee+(Q-ee)/2}px, ${re}px)`},children:I.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[I.jsx("title",{children:x("shortcuts.arrowLeft")}),I.jsx("polygon",{points:"15,5 6,10 15,15",fill:fe})]})})}),S&&ie&&I.jsx(E9t,{children:I.jsx("div",{className:"nodrag nopan pointer-events-auto absolute",style:{transform:`translate(-50%, -50%) translate(${P}px, ${G}px)`},children:I.jsx("button",{onClick:pe,className:"flex h-6 w-6 items-center justify-center rounded-full bg-destructive text-destructive-foreground shadow-md transition-transform hover:scale-110 focus:outline-none focus:ring-2 focus:ring-destructive focus:ring-offset-2",title:"Delete connection","aria-label":"Delete connection",type:"button",children:I.jsx(oae,{className:"h-3.5 w-3.5"})})})})]})}function gb(n){const i=Do(c=>c.nodeErrors.get(n));return H.useMemo(()=>{const c=i??[],d=b=>{const w=c.find(E=>E.path.includes(b));return w==null?void 0:w.message},g=()=>{const b=c.find(w=>w.path.includes("_root")||w.path.length===0);return b==null?void 0:b.message};return{hasErrors:c.length>0,errors:c,errorMessages:c.map(b=>b.message),getFieldError:d,getRootError:g}},[i])}const ger=H.memo(function({id:i,data:s,selected:c}){var G;const{t:d}=ps(["nodes"]),g=Do(ee=>ee.activeNodeId),b=Do(ee=>ee.getExecutionStepNumber),{hasErrors:w,errorMessages:E}=gb(i),S=g===i,x=b(i),A=s.enabled===!1,C=typeof s.stop=="string",R=C?s.stop:void 0,L=C&&s.error===!0;let D,B;!C&&typeof s.service=="string"&&s.service.includes(".")&&([D,B]=s.service.split("."));const $=!C&&typeof s.event=="string"&&s.event.trim()!=="",j=(G=s.target)==null?void 0:G.entity_id,P=C||!s.target?null:Array.isArray(j)?`${j.length} entities selected`:j;return C?I.jsxs("div",{className:Sr("relative min-w-[180px] rounded-lg border-2 border-orange-400 bg-orange-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-orange-500 ring-offset-2",S&&"node-active ring-4 ring-orange-500",A&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:E.join(` +`),children:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-orange-200 p-1",children:I.jsx(Q8n,{className:"h-4 w-4 text-orange-700"})}),I.jsx("span",{className:"font-semibold text-orange-900 text-sm",children:s.alias||d("nodes:types.stop")}),x&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-orange-600 font-bold text-white text-xs",children:x})]}),I.jsxs("div",{className:"space-y-0.5 text-orange-700 text-xs",children:[I.jsx("div",{className:"font-medium opacity-70",children:d(L?"nodes:actions.stopError":"nodes:actions.stopExecution")}),R&&I.jsx("div",{className:"truncate opacity-75 italic",children:R})]})]}):I.jsxs("div",{className:Sr("relative min-w-[180px] rounded-lg border-2 border-green-400 bg-green-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-green-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",A&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:E.join(` +`),children:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-green-500 !border-green-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-green-200 p-1",children:I.jsx(rae,{className:"h-4 w-4 text-green-700"})}),I.jsx("span",{className:"font-semibold text-green-900 text-sm",children:s.alias||($?s.event:B)||"Action"}),x&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-green-600 font-bold text-white text-xs",children:x})]}),I.jsxs("div",{className:"space-y-0.5 text-green-700 text-xs",children:[I.jsx("div",{className:"font-medium",children:$?I.jsx("span",{className:"opacity-60",children:d("nodes:actions.fireEvent")}):I.jsxs(I.Fragment,{children:[I.jsxs("span",{className:"opacity-60",children:[D,"."]}),B]})}),P&&I.jsx("div",{className:"truncate opacity-75",children:P})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-green-500 !border-green-700"})]})}),ber=H.memo(function({id:i,data:s,selected:c}){const d=Do(C=>C.activeNodeId),g=Do(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A={state:"State",numeric_state:"Numeric",template:"Template",time:"Time",zone:"Zone",sun:"Sun",and:"AND",or:"OR",not:"NOT",device:"Device",trigger:"Trigger"};return I.jsxs("div",{className:Sr("group relative min-w-[180px] rounded-lg border-2 border-blue-400 bg-blue-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-blue-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(` +`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-blue-500 !border-blue-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-blue-200 p-1",children:I.jsx(fGt,{className:"h-4 w-4 text-blue-700"})}),I.jsx("span",{className:"font-semibold text-blue-900 text-sm",children:s.alias||A[s.condition]||"Condition"}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-blue-600 font-bold text-white text-xs",children:S})]}),I.jsxs("div",{className:"space-y-0.5 text-blue-700 text-xs",children:[I.jsx("div",{className:"font-medium",children:A[s.condition]||s.condition}),s.entity_id&&I.jsx("div",{className:"truncate opacity-75",children:Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id}),s.state&&I.jsxs("div",{className:"opacity-75",children:["= ",s.state]}),s.above!=null&&I.jsxs("div",{className:"opacity-75",children:["> ",s.above]}),s.below!=null&&I.jsxs("div",{className:"opacity-75",children:["< ",s.below]}),s.after&&I.jsxs("div",{className:"opacity-75",children:["after: ",s.after]}),s.before&&I.jsxs("div",{className:"opacity-75",children:["before: ",s.before]}),s.zone&&I.jsxs("div",{className:"opacity-75",children:["zone: ",s.zone]}),s.attribute&&I.jsxs("div",{className:"opacity-75",children:["attr: ",s.attribute]}),s.for&&I.jsxs("div",{className:"opacity-75",children:["for: ",typeof s.for=="string"?s.for:`${s.for.hours||0}h ${s.for.minutes||0}m ${s.for.seconds||0}s`]}),s.template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.template.slice(0,30),"..."]}),s.value_template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.value_template.slice(0,30),"..."]}),typeof s.id=="string"&&I.jsxs("div",{className:"opacity-75",children:["id: ",s.id]}),Array.isArray(s.conditions)&&s.conditions.length>0&&I.jsx("div",{className:"opacity-75",children:Jie("nodes:conditions.nestedConditions",{count:s.conditions.length})})]}),I.jsx($h,{type:"source",position:qr.Right,id:"true",style:{top:"30%"},className:"!w-3 !h-3 !bg-green-500 !border-green-700"}),I.jsx($h,{type:"source",position:qr.Right,id:"false",style:{top:"70%"},className:"!w-3 !h-3 !bg-red-500 !border-red-700"}),I.jsx("div",{className:"absolute top-[30%] right-[-40px] -translate-y-1/2 transform rounded border border-green-200 bg-white px-1 py-0.5 font-medium text-[10px] text-green-700 opacity-0 shadow-sm transition-opacity group-hover:opacity-100",children:Jie("nodes:conditions.yes")}),I.jsx("div",{className:"absolute top-[70%] right-[-36px] -translate-y-1/2 transform rounded border border-red-200 bg-white px-1 py-0.5 font-medium text-[10px] text-red-700 opacity-0 shadow-sm transition-opacity group-hover:opacity-100",children:Jie("nodes:conditions.no")})]})});function sKt(n){if(!n)return"";if(typeof n=="string")return n;if(typeof n=="object"){const i=[];return n.hours&&i.push(`${n.hours}h`),n.minutes&&i.push(`${n.minutes}m`),n.seconds&&i.push(`${n.seconds}s`),n.milliseconds&&i.push(`${n.milliseconds}ms`),i.join(" ")||"0s"}return String(n)}const mer=H.memo(function({id:i,data:s,selected:c}){const d=Do(C=>C.activeNodeId),g=Do(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A=sKt(s.delay);return I.jsxs("div",{className:Sr("relative min-w-[140px] rounded-lg border-2 border-purple-400 bg-purple-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-purple-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(` +`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-purple-500 !border-purple-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-purple-200 p-1",children:I.jsx(F5e,{className:"h-4 w-4 text-purple-700"})}),I.jsx("span",{className:"font-semibold text-purple-900 text-sm",children:s.alias||"Delay"}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-purple-600 font-bold text-white text-xs",children:S})]}),I.jsx("div",{className:"text-purple-700 text-xs",children:I.jsx("div",{className:"font-mono",children:A})}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-purple-500 !border-purple-700"})]})}),wer=H.memo(function({id:i,data:s,selected:c}){const d=Do(C=>C.activeNodeId),g=Do(C=>C.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A=Object.keys(s.variables||{}).length;return I.jsxs("div",{className:Sr("relative min-w-[160px] rounded-lg border-2 border-cyan-400 bg-cyan-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-cyan-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(` +`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-cyan-500 !border-cyan-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-cyan-200 p-1",children:I.jsx(wGt,{className:"h-4 w-4 text-cyan-700"})}),I.jsx("span",{className:"font-semibold text-cyan-900 text-sm",children:s.alias||"Set Variables"}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-cyan-600 font-bold text-white text-xs",children:S})]}),I.jsx("div",{className:"text-cyan-700 text-xs",children:I.jsx("div",{className:"font-medium opacity-75",children:Jie("nodes:variables.variableCount",{count:A})})}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-cyan-500 !border-cyan-700"})]})}),yer=H.memo(function({id:i,data:s,selected:c}){const d=Do(L=>L.activeNodeId),g=Do(L=>L.getExecutionStepNumber),{hasErrors:b,errorMessages:w}=gb(i),E=d===i,S=g(i),x=s.enabled===!1,A={state:"State Change",time:"Time",time_pattern:"Time Pattern",event:"Event",mqtt:"MQTT",webhook:"Webhook",sun:"Sun",zone:"Zone",numeric_state:"Numeric State",template:"Template",homeassistant:"Home Assistant",device:"Device"},R=(()=>{const L=s.trigger;switch(L){case"device":return{title:s.alias||"Device Trigger",subtitle:s.type?`${s.domain||"device"}: ${s.type}`:"Device",detail:s.device_id?`Device: ${String(s.device_id).substring(0,8)}...`:null};case"state":return{title:s.alias||"State Change",subtitle:Array.isArray(s.entity_id)?`${s.entity_id.length} entities: +${s.entity_id.join(", ")}`:s.entity_id||"State",detail:s.to?`to: ${s.to}`:null};case"numeric_state":return{title:s.alias||"Numeric State",subtitle:Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id||"Numeric State",detail:s.above||s.below?`${s.above?`>${s.above}`:""}${s.above&&s.below?" ":""}${s.below?`<${s.below}`:""}`:null};case"event":return{title:s.alias||"Event",subtitle:A[L],detail:s.event_type||null};case"time":return{title:s.alias||"Time",subtitle:A[L],detail:s.at||null};case"sun":return{title:s.alias||"Sun",subtitle:A[L],detail:s.event?`${s.event}${s.offset?` ${s.offset}`:""}`:null};case"mqtt":return{title:s.alias||"MQTT",subtitle:A[L],detail:s.topic||null};case"webhook":return{title:s.alias||"Webhook",subtitle:A[L],detail:s.webhook_id||null};case"zone":return{title:s.alias||"Zone",subtitle:A[L],detail:s.zone||(Array.isArray(s.entity_id)?s.entity_id.join(", "):s.entity_id)||null};default:return{title:s.alias||A[L]||"Trigger",subtitle:A[L]||L,detail:null}}})();return I.jsxs("div",{className:Sr("relative min-w-[180px] max-w-[300px] rounded-lg border-2 border-amber-400 bg-amber-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-amber-500 ring-offset-2",E&&"node-active ring-4 ring-green-500",x&&"border-dashed opacity-50 grayscale",b&&"border-red-500 ring-2 ring-red-400"),children:[b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:w.join(` +`),children:I.jsx(_w,{className:"h-3 w-3"})}),x&&!b&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-amber-200 p-1",children:I.jsx(yGt,{className:"h-4 w-4 text-amber-700"})}),I.jsx("span",{className:"font-semibold text-amber-900 text-sm",children:R.title}),S&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-amber-600 font-bold text-white text-xs",children:S})]}),I.jsxs("div",{className:"space-y-0.5 text-amber-700 text-xs",children:[I.jsx("div",{className:"line-clamp-2 truncate whitespace-pre-line font-medium",children:R.subtitle}),R.detail&&I.jsx("div",{className:"truncate opacity-75",children:String(R.detail)})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-amber-500 !border-amber-700"})]})}),ver=H.memo(function({id:i,data:s,selected:c}){const{t:d}=ps(["common","nodes"]),g=Do(R=>R.activeNodeId),b=Do(R=>R.getExecutionStepNumber),{hasErrors:w,errorMessages:E}=gb(i),S=g===i,x=b(i),A=s.enabled===!1,C=sKt(s.timeout);return I.jsxs("div",{className:Sr("relative min-w-[140px] rounded-lg border-2 border-orange-400 bg-orange-50 px-4 py-3","transition-all duration-200",c&&"ring-2 ring-orange-500 ring-offset-2",S&&"node-active ring-4 ring-green-500",A&&"border-dashed opacity-50 grayscale",w&&"border-red-500 ring-2 ring-red-400"),children:[w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-red-500 text-white shadow-sm",title:E.join(` +`),children:I.jsx(_w,{className:"h-3 w-3"})}),A&&!w&&I.jsx("div",{className:"absolute -top-2 -right-2 flex h-5 w-5 items-center justify-center rounded-full bg-gray-500 text-white shadow-sm",children:I.jsx(iN,{className:"h-3 w-3"})}),I.jsx($h,{type:"target",position:qr.Left,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"}),I.jsxs("div",{className:"mb-1 flex items-center gap-2",children:[I.jsx("div",{className:"rounded bg-orange-200 p-1",children:I.jsx(hGt,{className:"h-4 w-4 text-orange-700"})}),I.jsx("span",{className:"font-semibold text-orange-900 text-sm",children:s.alias||"Wait for"}),x&&I.jsx("div",{className:"ml-auto flex h-5 w-5 items-center justify-center rounded-full bg-orange-600 font-bold text-white text-xs",children:x})]}),I.jsxs("div",{className:"space-y-0.5 text-orange-700 text-xs",children:[s.wait_template&&I.jsxs("div",{className:"truncate font-mono text-[10px] opacity-75",children:[s.wait_template.slice(0,30),"..."]}),s.wait_for_trigger&&I.jsx("div",{className:"truncate text-[10px] opacity-75",children:d("nodes:wait.waitsForNTrigger",{count:s.wait_for_trigger.length})}),C&&I.jsxs("div",{className:"opacity-75",children:[d("nodes:wait.timeoutLabel")," ",C]})]}),I.jsx($h,{type:"source",position:qr.Right,className:"!w-3 !h-3 !bg-orange-500 !border-orange-700"})]})});var Eer=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ser=Eer.reduce((n,i)=>{const s=lae(`Primitive.${i}`),c=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return c.displayName=`Primitive.${i}`,{...n,[i]:c}},{}),Ter="Separator",KFt="horizontal",Aer=["horizontal","vertical"],aKt=H.forwardRef((n,i)=>{const{decorative:s,orientation:c=KFt,...d}=n,g=_er(c)?c:KFt,w=s?{role:"none"}:{"aria-orientation":g==="vertical"?g:void 0,role:"separator"};return I.jsx(Ser.div,{"data-orientation":g,...w,...d,ref:i})});aKt.displayName=Ter;function _er(n){return Aer.includes(n)}var uKt=aKt;const Pz=H.forwardRef(({className:n,orientation:i="horizontal",decorative:s=!0,...c},d)=>I.jsx(uKt,{ref:d,decorative:s,orientation:i,className:Sr("shrink-0 bg-border",i==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",n),...c}));Pz.displayName=uKt.displayName;function xer(){const{undo:n,redo:i,canUndo:s,canRedo:c}=QWt(Do.temporal,tKt(b=>({undo:b.undo,redo:b.redo,canUndo:b.pastStates.length>0,canRedo:b.futureStates.length>0}))),d=H.useCallback(()=>{n(),Do.getState().validateAllNodes()},[n]),g=H.useCallback(()=>{i(),Do.getState().validateAllNodes()},[i]);return{undo:d,redo:g,canUndo:s,canRedo:c}}function UMe(){var i;const n=navigator;return(i=n.userAgentData)!=null&&i.platform?n.userAgentData.platform==="macOS":/Mac|iPhone|iPod|iPad/.test(navigator.platform)||/Macintosh/.test(navigator.userAgent)}function ker(n){return{name:"align-bottom",icon:V9n,tooltip:n("toolbar.alignBottom"),shortcut:"ctrl+shift+b",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.max(...i.selectedNodes.map(g=>g.position.y+(g.height||0))),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,y:s-(g.height||0)}}:g);i.setNodes(d)}}}function Ner(n){return{name:"align-left",icon:Z9n,tooltip:n("toolbar.alignLeft"),shortcut:"ctrl+shift+l",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.min(...i.selectedNodes.map(g=>g.position.x)),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,x:s}}:g);i.setNodes(d)}}}function Cer(n){return{name:"align-right",icon:K9n,tooltip:n("toolbar.alignRight"),shortcut:"ctrl+shift+r",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.max(...i.selectedNodes.map(g=>g.position.x+(g.width||0))),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,x:s-(g.width||0)}}:g);i.setNodes(d)}}}function Ier(n){return{name:"align-top",icon:J9n,tooltip:n("toolbar.alignTop"),shortcut:"ctrl+shift+t",group:"align",isEnabled:i=>i.selectedNodes.length>=2,execute:i=>{const s=Math.min(...i.selectedNodes.map(g=>g.position.y)),c=i.selectedNodes.map(g=>g.id),d=i.nodes.map(g=>c.includes(g.id)?{...g,position:{...g.position,y:s}}:g);i.setNodes(d)}}}function cKt(n){const i=n.selectedNodes.map(c=>c.id),s=n.edges.filter(c=>i.includes(c.source)&&i.includes(c.target));n.setClipboard(JSON.stringify({nodes:n.selectedNodes,edges:s})),n.setPasteCount(0)}function lKt(n,i,s){const c=(s.pasteCount||0)+1;s.setPasteCount(c);const d=50*c,g=new Map,b=s.nodes.map(E=>({...E,selected:!1})),w=n.map(E=>{const S=Xoe(E.type??"node");return g.set(E.id,S),{...E,selected:!0,id:S,position:{x:E.position.x+d,y:E.position.y+d}}});if(s.setNodes([...b,...w]),i.length>0){const E=i.map(S=>({...S,id:`edge-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,source:g.get(S.source)??S.source,target:g.get(S.target)??S.target}));s.setEdges([...s.edges,...E])}}function Rer(n){return{name:"copy",icon:$5e,tooltip:n("toolbar.copy"),shortcut:"ctrl+c",group:"clipboard",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{cKt(i),N2.success(`${i.selectedNodes.length} node${i.selectedNodes.length!==1?"s":""} copied`)}}}function Oer(n){return{name:"cut",icon:aPn,tooltip:n("toolbar.cut"),shortcut:"ctrl+x",group:"clipboard",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{const s=i.selectedNodes.length;cKt(i),i.selectedNodes.forEach(c=>{i.removeNode(c.id)}),N2.success(`${s} node${s!==1?"s":""} cut`)}}}function Der(n){return{name:"delete",icon:PM,tooltip:n("toolbar.deleteNode"),shortcut:["delete","backspace"],variant:"destructive",group:"delete",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{i.selectedNodes.forEach(s=>{i.removeNode(s.id)})}}}function Ler(n){return{name:"disconnect",icon:wPn,tooltip:n("toolbar.disconnect"),shortcut:"ctrl+shift+d",group:"edit",isEnabled:i=>{if(i.selectedNodes.length===0)return!1;const s=i.selectedNodes.map(c=>c.id);return i.edges.some(c=>s.includes(c.source)||s.includes(c.target))},execute:i=>{const s=i.selectedNodes.map(d=>d.id),c=i.edges.filter(d=>!s.includes(d.source)&&!s.includes(d.target));i.setEdges(c)}}}function Mer(n){return{name:"duplicate",icon:k8n,tooltip:n("toolbar.duplicate"),shortcut:"ctrl+d",group:"clipboard",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{const s=i.selectedNodes.map(d=>d.id),c=i.edges.filter(d=>s.includes(d.source)&&s.includes(d.target));lKt(i.selectedNodes,c,i),N2.success(`${i.selectedNodes.length} node${i.selectedNodes.length!==1?"s":""} duplicated`)}}}function Per(n){return{name:"paste",icon:A8n,tooltip:n("toolbar.paste"),shortcut:"ctrl+v",group:"clipboard",isEnabled:i=>!!(i.clipboard&&i.clipboard.length>0),execute:i=>{if(i.clipboard)try{const s=JSON.parse(i.clipboard),c=s.nodes||[],d=s.edges||[];if(!Array.isArray(c)||c.length===0)return;lKt(c,d,i)}catch(s){console.warn("Invalid clipboard data, cannot paste.",s)}}}}function jer(n){return{name:"redo",icon:rPn,tooltip:n("toolbar.redo"),shortcut:["ctrl+shift+z","ctrl+y"],group:"history",isEnabled:i=>i.canRedo,execute:i=>i.redo()}}function Fer(n){return{name:"selectAll",icon:X8n,tooltip:n("toolbar.selectAll"),shortcut:"ctrl+a",group:"selection",isEnabled:()=>!0,execute:i=>{const s=i.nodes.map(d=>({...d,selected:!0}));i.setNodes(s);const c=i.edges.map(d=>({...d,selected:!0}));i.setEdges(c)}}}function $er(n){return{name:"toggle-enabled",icon:A9t,getIcon:i=>{const s=i.selectedNodes.every(d=>d.data.enabled===!1),c=i.selectedNodes.every(d=>d.data.enabled!==!1);return s?v8n:c?iN:A9t},tooltip:i=>{const s=i.selectedNodes.every(d=>d.data.enabled===!1),c=i.selectedNodes.every(d=>d.data.enabled!==!1);return n(s?"toolbar.enable":c?"toolbar.disable":"toolbar.toggleEnabled")},shortcut:"ctrl+e",group:"edit",isEnabled:i=>i.selectedNodes.length>0,execute:i=>{i.selectedNodes.forEach(s=>{const c=s.data.enabled!==!1;i.updateNodeData(s.id,{enabled:!c})})}}}function Ber(n){return{name:"undo",icon:bPn,tooltip:n("toolbar.undo"),shortcut:"ctrl+z",group:"history",isEnabled:i=>i.canUndo,execute:i=>i.undo()}}function Uer(n,i){const s=UMe();return n.split("+").map(c=>c==="ctrl"?i(s?"shortcuts.cmd":"shortcuts.ctrl"):c==="shift"?i("shortcuts.shift"):c==="alt"?i("shortcuts.alt"):c==="arrowup"?i("shortcuts.arrowUp"):c==="arrowdown"?i("shortcuts.arrowDown"):c==="arrowleft"?i("shortcuts.arrowLeft"):c==="arrowright"?i("shortcuts.arrowRight"):c.charAt(0).toUpperCase()+c.slice(1)).join("+")}const qOe=["history","node-specific","selection","clipboard","edit","align","delete"];function Her(){var re;const{t:n}=ps(),{nodes:i,edges:s,clipboard:c,pasteCount:d,addNode:g,removeNode:b,updateNodeData:w,setNodes:E,setEdges:S,setClipboard:x,setPasteCount:A}=Do(tKt(Q=>({nodes:Q.nodes,edges:Q.edges,clipboard:Q.clipboard,pasteCount:Q.pasteCount,addNode:Q.addNode,removeNode:Q.removeNode,updateNodeData:Q.updateNodeData,setNodes:Q.setNodes,setEdges:Q.setEdges,setClipboard:Q.setClipboard,setPasteCount:Q.setPasteCount}))),{undo:C,redo:R,canUndo:L,canRedo:D}=xer(),B=H.useMemo(()=>({selectedNodes:i.filter(Q=>Q.selected),nodes:i,edges:s,clipboard:c,pasteCount:d,addNode:g,removeNode:b,updateNodeData:w,setNodes:E,setEdges:S,setClipboard:x,setPasteCount:A,undo:C,redo:R,canUndo:L,canRedo:D}),[i,s,c,d,g,b,w,E,S,x,A,C,R,L,D]),$=H.useMemo(()=>[Ber(n),jer(n),Mer(n),Rer(n),Oer(n),Per(n),Ner(n),Cer(n),Ier(n),ker(n),Ler(n),Fer(n),$er(n),Der(n)],[n]),j=$.length>0;H.useEffect(()=>{if(!j)return;const Q=ie=>{const pe=ie.target;if(pe.tagName==="INPUT"||pe.tagName==="TEXTAREA"||pe.isContentEditable)return;const le=UMe()?ie.metaKey:ie.ctrlKey;let fe="";le&&(fe+="ctrl+"),ie.shiftKey&&(fe+="shift+"),ie.altKey&&(fe+="alt+"),fe+=ie.key.toLowerCase();const K=$.find(he=>!he.shortcut||!(Array.isArray(he.shortcut)?he.shortcut:[he.shortcut]).includes(fe)?!1:he.isEnabled?he.isEnabled(B):!0);K&&(ie.preventDefault(),K.execute(B))};return window.addEventListener("keydown",Q),()=>window.removeEventListener("keydown",Q)},[j,$,B]);const P=H.useMemo(()=>{const Q={};for(const ie of $){const pe=ie.group||"node-specific";Q[pe]||(Q[pe]=[]),Q[pe].push(ie)}return Q},[$]);if(!j)return null;let G=0;try{c&&(G=((re=JSON.parse(c).nodes)==null?void 0:re.length)||0)}catch{}const ee=Q=>!Q||Q.length===0?null:Q.map(ie=>{const pe=ie.getIcon?ie.getIcon(B):ie.icon,me=typeof ie.tooltip=="function"?ie.tooltip(B):ie.tooltip,le=ie.isEnabled?ie.isEnabled(B):!0,fe=ie.name==="paste";return I.jsxs(Ri,{variant:"ghost",size:"icon",disabled:!le,className:Sr("relative h-8 w-8 shrink-0","sm:h-9 sm:w-9",ie.variant==="destructive"&&"text-destructive hover:bg-destructive/10 hover:text-destructive"),title:ie.shortcut?`${me} (${Uer(Array.isArray(ie.shortcut)?ie.shortcut[0]:ie.shortcut,n)})`:me,onClick:()=>ie.execute(B),children:[I.jsx(pe,{className:"h-3.5 w-3.5 sm:h-4 sm:w-4"}),fe&&G>0&&I.jsx("span",{className:"absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full bg-primary font-bold text-[9px] text-primary-foreground",children:G})]},ie.name)});return I.jsx(gR,{position:"top-center",className:"!m-0 !p-0 max-w-[calc(100vw-2rem)] sm:max-w-[calc(100vw-4rem)]",children:I.jsx("div",{className:Sr("flex items-center gap-0.5 rounded-lg border bg-background/95 px-1.5 py-1 shadow-lg backdrop-blur supports-[backdrop-filter]:bg-background/60 sm:gap-1 sm:px-2 sm:py-1.5","fade-in slide-in-from-top-2 animate-in duration-200","scrollbar-thin scrollbar-thumb-muted-foreground/20 scrollbar-track-transparent overflow-x-auto","max-w-full"),children:I.jsx("div",{className:"flex shrink-0 items-center gap-0.5 sm:gap-1",children:qOe.map((Q,ie)=>{var me;const pe=P[Q];return!pe||pe.length===0?null:I.jsxs("div",{className:"flex items-center gap-0.5 sm:gap-1",children:[ee(pe),ie0&&I.jsx(Pz,{orientation:"vertical",className:"mx-0.5 h-6 sm:mx-1"})]},Q)})})})})}const zer={trigger:yer,condition:ber,action:ger,delay:mer,wait:ver,set_variables:wer},Ger={deletable:per};function qer(){const{t:n}=ps(["common","debug"]),i=zae(),{nodes:s,edges:c,onNodesChange:d,onEdgesChange:g,onConnect:b,selectNode:w,addNode:E,selectedNodeId:S,isSimulating:x,executionPath:A,isShowingTrace:C,traceExecutionPath:R,canDeleteEdge:L}=Do(),D=H.useRef(null),{screenToFlowPosition:B,setViewport:$}=kR(),[j,P]=H.useState(null),G=H.useCallback((fe,K)=>{var Le;if(K.toNode||!K.fromHandle||!K.fromNode)return;const he=fe.target;if(!((Le=he==null?void 0:he.closest)!=null&&Le.call(he,".react-flow__pane")))return;const Oe="changedTouches"in fe?fe.changedTouches[0]:fe;if(!Oe)return;const Se=B({x:Oe.clientX,y:Oe.clientY});P({screenPosition:{screenX:Oe.clientX,screenY:Oe.clientY},flowPosition:Se,fromNodeId:K.fromHandle.nodeId,fromHandleId:K.fromHandle.id??null,direction:K.fromHandle.type==="source"?"forward":"backward"})},[B]),ee=H.useCallback(()=>P(null),[]),re=H.useCallback(fe=>{if(!j)return;const Oe={id:Xoe(fe.type),type:fe.type,position:{x:j.flowPosition.x-180/2,y:j.flowPosition.y-80/2},data:{...fe.defaultData}};E(Oe),b(_Qn(j.direction,j.fromNodeId,j.fromHandleId,Oe.id)),P(null)},[j,E,b]);H.useEffect(()=>{$({x:0,y:0,zoom:.75})},[$]);const Q=H.useCallback(({nodes:fe})=>{fe.length===1?w(fe[0].id):w(null)},[w]),ie=H.useCallback(fe=>{fe.preventDefault(),fe.dataTransfer.dropEffect="move"},[]),pe=H.useCallback(async({nodes:fe,edges:K})=>{const he=K.filter(Oe=>L(Oe.id));return{nodes:fe,edges:he}},[L]),me=H.useCallback(fe=>{fe.preventDefault();const K=fe.dataTransfer.getData("application/reactflow");if(K)try{const{type:he,defaultData:Oe}=JSON.parse(K),Se=B({x:fe.clientX,y:fe.clientY}),xe={x:Se.x-180/2,y:Se.y-80/2},We={id:Xoe(he),type:he,position:xe,data:{...Oe}};E(We)}catch(he){console.error("Failed to parse dropped node data:",he)}},[B,E]),le=H.useMemo(()=>c.map(fe=>{const K=A.indexOf(fe.source),he=A.indexOf(fe.target),Oe=x&&A.length>=2&&K!==-1&&he!==-1&&he===K+1,Se=R.indexOf(fe.source),Le=R.indexOf(fe.target),Ae=C&&R.length>=2&&Se!==-1&&Le!==-1&&Le===Se+1,xe=S&&(fe.source===S||fe.target===S);let We={strokeWidth:2,stroke:i?"#94a3b8":"#64748b"},dt={type:sA.ArrowClosed,color:i?"#94a3b8":"#64748b"};return Oe?(We={stroke:"#22c55e",strokeWidth:3},dt={type:sA.ArrowClosed,color:"#22c55e"}):Ae?(We={stroke:"#f59e0b",strokeWidth:3},dt={type:sA.ArrowClosed,color:"#f59e0b"}):xe&&(We={stroke:"#3b82f6",strokeWidth:3},dt={type:sA.ArrowClosed,color:"#3b82f6"}),{...fe,type:"deletable",animated:Oe||Ae,style:We,markerEnd:dt}}),[c,x,A,C,R,S,i]);return I.jsxs("div",{className:"h-full w-full",ref:D,children:[I.jsxs(l9n,{colorMode:i?"dark":"light",nodes:s,edges:le,onNodesChange:d,onEdgesChange:g,onConnect:b,onConnectEnd:G,onBeforeDelete:pe,onSelectionChange:Q,onDragOver:ie,onDrop:me,panOnScroll:UMe(),nodeTypes:zer,edgeTypes:Ger,defaultEdgeOptions:{type:"deletable",style:{strokeWidth:2,stroke:i?"#94a3b8":"#64748b"},markerEnd:{type:sA.ArrowClosed,color:i?"#94a3b8":"#64748b"}},defaultViewport:{x:0,y:0,zoom:.75},maxZoom:2,minZoom:.3,fitView:!0,fitViewOptions:{maxZoom:.75},snapToGrid:!0,snapGrid:[15,15],deleteKeyCode:null,className:i?"dark bg-background":"bg-muted/30",proOptions:{hideAttribution:!0},children:[I.jsx(b9n,{variant:pA.Dots,gap:20,size:1,color:i?"#475569":"#cbd5e1"}),I.jsx(T9n,{}),I.jsx(P9n,{nodeStrokeWidth:3,zoomable:!0,pannable:!0,nodeClassName:fe=>{switch(fe.type){case"trigger":return"fill-amber-50 stroke-amber-400";case"condition":return"fill-blue-50 stroke-blue-400";case"action":return"fill-green-50 stroke-green-400";case"delay":return"fill-purple-50 stroke-purple-400";case"wait":return"fill-orange-50 stroke-orange-400";case"set_variables":return"fill-cyan-50 stroke-cyan-400";default:return"fill-slate-100 stroke-slate-400"}}}),I.jsx(Her,{}),x&&I.jsx(gR,{position:"top-left",className:"rounded-lg border border-green-300 bg-green-100 px-4 py-2 dark:border-green-700 dark:bg-green-950",children:I.jsxs("div",{className:"flex items-center gap-2 font-medium text-green-800 text-sm dark:text-green-200",children:[I.jsx("div",{className:"h-2 w-2 animate-pulse rounded-full bg-green-500"}),n("debug:simulation.simulatingExecution")]})}),C&&!x&&I.jsx(gR,{position:"top-left",className:"rounded-lg border border-orange-300 bg-orange-100 px-4 py-2 dark:border-orange-700 dark:bg-orange-950",children:I.jsxs("div",{className:"flex items-center gap-2 font-medium text-orange-800 text-sm dark:text-orange-200",children:[I.jsx("div",{className:"h-2 w-2 rounded-full bg-orange-500"}),n("debug:simulation.showingTraceExecution",{steps:R.length})]})})]}),I.jsx(xQn,{position:(j==null?void 0:j.screenPosition)??null,direction:(j==null?void 0:j.direction)??"forward",onSelect:re,onClose:ee})]})}const Ver=Aae("inline-flex items-center rounded-md border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function HMe({className:n,variant:i,...s}){return I.jsx("div",{className:Sr(Ver({variant:i}),n),...s})}function Gae(n){const i=H.useRef({value:n,previous:n});return H.useMemo(()=>(i.current.value!==n&&(i.current.previous=i.current.value,i.current.value=n),i.current.previous),[n])}var qae="Checkbox",[Wer]=xw(qae),[Ker,zMe]=Wer(qae);function Yer(n){const{__scopeCheckbox:i,checked:s,children:c,defaultChecked:d,disabled:g,form:b,name:w,onCheckedChange:E,required:S,value:x="on",internal_do_not_use_render:A}=n,[C,R]=G2({prop:s,defaultProp:d??!1,onChange:E,caller:qae}),[L,D]=H.useState(null),[B,$]=H.useState(null),j=H.useRef(!1),P=L?!!b||!!L.closest("form"):!0,G={checked:C,disabled:g,setChecked:R,control:L,setControl:D,name:w,form:b,value:x,hasConsumerStoppedPropagationRef:j,required:S,defaultChecked:tN(d)?!1:d,isFormControl:P,bubbleInput:B,setBubbleInput:$};return I.jsx(Ker,{scope:i,...G,children:Jer(A)?A(G):c})}var dKt="CheckboxTrigger",fKt=H.forwardRef(({__scopeCheckbox:n,onKeyDown:i,onClick:s,...c},d)=>{const{control:g,value:b,disabled:w,checked:E,required:S,setControl:x,setChecked:A,hasConsumerStoppedPropagationRef:C,isFormControl:R,bubbleInput:L}=zMe(dKt,n),D=hs(d,x),B=H.useRef(E);return H.useEffect(()=>{const $=g==null?void 0:g.form;if($){const j=()=>A(B.current);return $.addEventListener("reset",j),()=>$.removeEventListener("reset",j)}},[g,A]),I.jsx(no.button,{type:"button",role:"checkbox","aria-checked":tN(E)?"mixed":E,"aria-required":S,"data-state":mKt(E),"data-disabled":w?"":void 0,disabled:w,value:b,...c,ref:D,onKeyDown:Dr(i,$=>{$.key==="Enter"&&$.preventDefault()}),onClick:Dr(s,$=>{A(j=>tN(j)?!0:!j),L&&R&&(C.current=$.isPropagationStopped(),C.current||$.stopPropagation())})})});fKt.displayName=dKt;var GMe=H.forwardRef((n,i)=>{const{__scopeCheckbox:s,name:c,checked:d,defaultChecked:g,required:b,disabled:w,value:E,onCheckedChange:S,form:x,...A}=n;return I.jsx(Yer,{__scopeCheckbox:s,checked:d,defaultChecked:g,disabled:w,required:b,onCheckedChange:S,name:c,form:x,value:E,internal_do_not_use_render:({isFormControl:C})=>I.jsxs(I.Fragment,{children:[I.jsx(fKt,{...A,ref:i,__scopeCheckbox:s}),C&&I.jsx(bKt,{__scopeCheckbox:s})]})})});GMe.displayName=qae;var hKt="CheckboxIndicator",pKt=H.forwardRef((n,i)=>{const{__scopeCheckbox:s,forceMount:c,...d}=n,g=zMe(hKt,s);return I.jsx(kw,{present:c||tN(g.checked)||g.checked===!0,children:I.jsx(no.span,{"data-state":mKt(g.checked),"data-disabled":g.disabled?"":void 0,...d,ref:i,style:{pointerEvents:"none",...n.style}})})});pKt.displayName=hKt;var gKt="CheckboxBubbleInput",bKt=H.forwardRef(({__scopeCheckbox:n,...i},s)=>{const{control:c,hasConsumerStoppedPropagationRef:d,checked:g,defaultChecked:b,required:w,disabled:E,name:S,value:x,form:A,bubbleInput:C,setBubbleInput:R}=zMe(gKt,n),L=hs(s,R),D=Gae(g),B=vae(c);H.useEffect(()=>{const j=C;if(!j)return;const P=window.HTMLInputElement.prototype,ee=Object.getOwnPropertyDescriptor(P,"checked").set,re=!d.current;if(D!==g&&ee){const Q=new Event("click",{bubbles:re});j.indeterminate=tN(g),ee.call(j,tN(g)?!1:g),j.dispatchEvent(Q)}},[C,D,g,d]);const $=H.useRef(tN(g)?!1:g);return I.jsx(no.input,{type:"checkbox","aria-hidden":!0,defaultChecked:b??$.current,required:w,disabled:E,name:S,value:x,form:A,...i,tabIndex:-1,ref:L,style:{...i.style,...B,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});bKt.displayName=gKt;function Jer(n){return typeof n=="function"}function tN(n){return n==="indeterminate"}function mKt(n){return tN(n)?"indeterminate":n?"checked":"unchecked"}const YDe=H.forwardRef(({className:n,...i},s)=>I.jsx(GMe,{ref:s,className:Sr("peer grid h-4 w-4 shrink-0 place-content-center rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n),...i,children:I.jsx(pKt,{className:Sr("grid place-content-center text-current"),children:I.jsx(oN,{className:"h-4 w-4"})})}));YDe.displayName=GMe.displayName;const Na=H.forwardRef(({className:n,type:i,...s},c)=>I.jsx("input",{type:i,autoComplete:"off",className:Sr("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors caret-foreground file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:c,...s}));Na.displayName="Input";var Vae="Switch",[Xer]=xw(Vae),[Zer,Qer]=Xer(Vae),wKt=H.forwardRef((n,i)=>{const{__scopeSwitch:s,name:c,checked:d,defaultChecked:g,required:b,disabled:w,value:E="on",onCheckedChange:S,form:x,...A}=n,[C,R]=H.useState(null),L=hs(i,P=>R(P)),D=H.useRef(!1),B=C?x||!!C.closest("form"):!0,[$,j]=G2({prop:d,defaultProp:g??!1,onChange:S,caller:Vae});return I.jsxs(Zer,{scope:s,checked:$,disabled:w,children:[I.jsx(no.button,{type:"button",role:"switch","aria-checked":$,"aria-required":b,"data-state":SKt($),"data-disabled":w?"":void 0,disabled:w,value:E,...A,ref:L,onClick:Dr(n.onClick,P=>{j(G=>!G),B&&(D.current=P.isPropagationStopped(),D.current||P.stopPropagation())})}),B&&I.jsx(EKt,{control:C,bubbles:!D.current,name:c,value:E,checked:$,required:b,disabled:w,form:x,style:{transform:"translateX(-100%)"}})]})});wKt.displayName=Vae;var yKt="SwitchThumb",vKt=H.forwardRef((n,i)=>{const{__scopeSwitch:s,...c}=n,d=Qer(yKt,s);return I.jsx(no.span,{"data-state":SKt(d.checked),"data-disabled":d.disabled?"":void 0,...c,ref:i})});vKt.displayName=yKt;var etr="SwitchBubbleInput",EKt=H.forwardRef(({__scopeSwitch:n,control:i,checked:s,bubbles:c=!0,...d},g)=>{const b=H.useRef(null),w=hs(b,g),E=Gae(s),S=vae(i);return H.useEffect(()=>{const x=b.current;if(!x)return;const A=window.HTMLInputElement.prototype,R=Object.getOwnPropertyDescriptor(A,"checked").set;if(E!==s&&R){const L=new Event("click",{bubbles:c});R.call(x,s),x.dispatchEvent(L)}},[E,s,c]),I.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:s,...d,tabIndex:-1,ref:w,style:{...d.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});EKt.displayName=etr;function SKt(n){return n?"checked":"unchecked"}var TKt=wKt,ttr=vKt;const J2=H.forwardRef(({className:n,...i},s)=>I.jsx(TKt,{className:Sr("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n),...i,ref:s,children:I.jsx(ttr,{className:Sr("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}));J2.displayName=TKt.displayName;function ntr(n){return Array.isArray(n)?n.filter(i=>typeof i=="string"):typeof n=="string"&&n.trim()?[n]:[]}function rtr(n,i){if(!n.entity_id.startsWith("automation."))return null;const s=typeof n.attributes.friendly_name=="string"?n.attributes.friendly_name:n.entity_id,c=typeof n.attributes.id=="string"||typeof n.attributes.id=="number"?String(n.attributes.id):n.entity_id.replace("automation.","");return{entity_id:n.entity_id,automation_id:c,friendly_name:s,enabled:n.state==="on",last_triggered:typeof n.attributes.last_triggered=="string"?n.attributes.last_triggered:void 0,description:typeof n.attributes.description=="string"?n.attributes.description:"",mode:typeof n.attributes.mode=="string"?n.attributes.mode:void 0,area_id:i,tags:ntr(n.attributes.tags)}}function itr(n){return[n.entity_id,n.friendly_name,n.description,n.mode||"",n.tags.join(" ")].filter(Boolean).join(" ")}function otr(n,i,s){return i?[...n].sort((c,d)=>{let g=0;switch(i){case"name":{g=c.friendly_name.toLowerCase().localeCompare(d.friendly_name.toLowerCase());break}case"lastTriggered":{const b=c.last_triggered?new Date(c.last_triggered).getTime():0,w=d.last_triggered?new Date(d.last_triggered).getTime():0;g=b-w;break}case"enabled":{g=Number(c.enabled)-Number(d.enabled);break}}return s==="asc"?g:-g}):[...n]}function str(n,i){if(!i.trim())return[...n];const s=n.map(d=>({...d,searchText:itr(d)}));return new NR(s,{keys:["searchText","entity_id","friendly_name","description"],threshold:.4,ignoreLocation:!0,includeScore:!0,minMatchCharLength:2}).search(i).map(d=>{const{searchText:g,...b}=d.item;return b})}function atr(n,i,s){const c={};for(const d of n){const g=d.area_id?i[d.area_id]||s.otherArea:s.noArea;c[g]||(c[g]=[]),c[g].push(d)}return c}function utr({isOpen:n,hass:i,hassConfig:s,entities:c,searchTerm:d,sortColumn:g,sortDirection:b,labels:w}){const[E,S]=H.useState([]),[x,A]=H.useState([]);H.useEffect(()=>{if(!n||!i)return;const j=Mv(i,s);let P=!1;return(async()=>{try{const[G,ee]=await Promise.all([j.getAreas(),j.getEntities()]);P||(S(Array.isArray(G)?G:[]),A(Array.isArray(ee)?ee:[]))}catch{P||(S([]),A([]))}})(),()=>{P=!0}},[n,i,s]);const C=H.useMemo(()=>{const j={};for(const P of x)P.entity_id&&P.area_id&&(j[P.entity_id]=P.area_id);return j},[x]),R=H.useMemo(()=>{const j={};for(const P of E)P.area_id&&P.name&&(j[P.area_id]=P.name);return j},[E]),L=H.useMemo(()=>c.map(j=>rtr(j,C[j.entity_id])).filter(j=>j!==null),[c,C]),D=H.useMemo(()=>str(L,d),[L,d]),B=H.useMemo(()=>otr(D,g,b),[D,g,b]),$=H.useMemo(()=>atr(B,R,w),[B,R,w]);return{areas:E,entityRegistry:x,areaIdToName:R,catalogItems:L,filteredCatalogItems:D,sortedCatalogItems:B,catalogByArea:$}}function ctr(n){if(n.length===0)return{minX:0,minY:0,width:0,height:0};let i=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,d=Number.NEGATIVE_INFINITY;for(const g of n)i=Math.min(i,g.position.x),s=Math.min(s,g.position.y),c=Math.max(c,g.position.x),d=Math.max(d,g.position.y);return{minX:i,minY:s,width:Math.max(0,c-i),height:Math.max(0,d-s)}}function ltr(n,i){return`${n.toLowerCase().replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"")||`source_${i+1}`}_${i+1}`}function dtr(n){const i={};for(const s of n)if(s.variables)for(const[c,d]of Object.entries(s.variables)){if(!(c in i)){i[c]=d;continue}JSON.stringify(i[c])!==JSON.stringify(d)&&(i[`${s.prefix}__${c}`]=d)}return Object.keys(i).length>0?i:void 0}function ftr(n){var C;if(n.length<2)throw new Error("At least two automations are required for merge.");const i=Math.max(1,Math.ceil(Math.sqrt(n.length))),s=n.map(R=>ctr(R.graph.nodes)),c=Math.max(...s.map(R=>R.width),0),d=Math.max(...s.map(R=>R.height),0),g=c+260,b=d+220,w=[],E=[],S=[],x=[];n.forEach((R,L)=>{const D=ltr(R.alias||R.automationId||R.entityId,L),B=s[L],$=L%i,j=Math.floor(L/i),P=$*g,G=j*b,ee=new Map;for(const re of R.graph.nodes){const Q=`${D}__${re.id}`;ee.set(re.id,Q),w.push({...re,id:Q,position:{x:re.position.x-B.minX+P,y:re.position.y-B.minY+G}})}for(const re of R.graph.edges){const Q=ee.get(re.source),ie=ee.get(re.target);!Q||!ie||E.push({...re,id:`${D}__${re.id}`,source:Q,target:ie})}S.push({automation_id:R.automationId,entity_id:R.entityId,alias:R.alias,node_prefix:D,imported_at:R.importedAt??new Date().toISOString()}),x.push({prefix:D,variables:R.graph.userVariables})});const A={mode:"single",initial_state:!0,...((C=n[0])==null?void 0:C.graph.metadata)||{}};return{id:W5e(),name:"Merged Automation",description:`Merged from ${n.length} automations`,nodes:w,edges:E,metadata:A,version:1,workspace:{mode:"merged",sources:S},userVariables:dtr(x)}}function htr({isOpen:n,onClose:i}){const{t:s}=ps(["common","dialogs","errors"]),[c,d]=H.useState(""),[g,b]=H.useState(null),[w,E]=H.useState("asc"),[S,x]=H.useState(new Set),[A,C]=H.useState(!1),[R,L]=H.useState(null),{hass:D,config:B,entities:$}=pb(),{setFlowName:j,setAutomationId:P,reset:G,fromFlowGraph:ee,hasRealChanges:re}=Do(),{fitView:Q}=kR(),{catalogByArea:ie,sortedCatalogItems:pe}=utr({isOpen:n,hass:D,hassConfig:B,entities:$,searchTerm:c,sortColumn:g,sortDirection:w,labels:{noArea:s("dialogs:import.noArea"),otherArea:s("dialogs:import.otherArea")}});H.useEffect(()=>{n||(x(new Set),d(""))},[n]);const me=H.useMemo(()=>pe.filter(ht=>S.has(ht.entity_id)),[pe,S]),le=H.useMemo(()=>pe.length===0?!1:pe.every(ht=>S.has(ht.entity_id)),[pe,S]),fe=pe.length>0,K=ht=>{if(re()){L(()=>ht),C(!0);return}ht()},he=()=>{R&&R(),C(!1),L(null)},Oe=()=>{C(!1),L(null)},Se=ht=>{g===ht?E(w==="asc"?"desc":"asc"):(b(ht),E("asc"))},Le=ht=>g!==ht?I.jsx(i8n,{className:"ml-1 inline h-3 w-3 opacity-50"}):w==="asc"?I.jsx(s8n,{className:"ml-1 inline h-3 w-3"}):I.jsx(e8n,{className:"ml-1 inline h-3 w-3"}),Ae=ht=>{x(Xt=>{const vt=new Set(Xt);return vt.has(ht)?vt.delete(ht):vt.add(ht),vt})},xe=()=>{x(ht=>{const Xt=new Set(ht);if(le)for(const vt of pe)Xt.delete(vt.entity_id);else for(const vt of pe)Xt.add(vt.entity_id);return Xt})},We=async ht=>{var Xt;try{const vt=Mv(D,B);if(!vt.isConnected())throw new Error(s("errors:connection.noConnection"));const Ct=await vt.getAutomationConfigWithFallback(ht.automation_id,ht.friendly_name);if(G(),Ct){const Ft=gse(Ct,{indent:2,lineWidth:-1,quotingType:'"',forceQuotes:!1}),On=await GDe.fromYaml(Ft);if(!On.success||!On.graph)throw new Error(((Xt=On.errors)==null?void 0:Xt.join(` +`))||s("errors:import.parseFailed"));ee(On.graph),setTimeout(()=>{Q({padding:.2,duration:300})},50),j(ht.friendly_name||ht.automation_id),P(ht.automation_id),N2.success(s("dialogs:import.importSuccess",{name:ht.friendly_name||ht.automation_id}))}else j(ht.friendly_name||ht.automation_id),P(ht.automation_id),N2.warning(s("dialogs:import.openedWarning",{name:ht.friendly_name||ht.automation_id}),{description:s("dialogs:import.openedWarningDescription")});i()}catch(vt){console.error("C.A.F.E.: Failed to open automation:",vt),N2.error(s("dialogs:import.importFailed",{message:vt.message}))}},dt=()=>{me.length===1&&K(()=>{We(me[0])})},Ue=ht=>{const Xt=ht.map(vt=>vt.friendly_name).filter(Boolean);return Xt.length===0?s("dialogs:import.defaultMergedName"):Xt.length<=2?Xt.join(" + "):`${Xt[0]} + ${Xt.length-1} more`},bt=async()=>{if(!(me.length<2))try{const ht=Mv(D,B);if(!ht.isConnected())throw new Error(s("errors:connection.noConnection"));const Xt=await ht.getAutomationConfigsBatch(me.map(Ft=>Ft.automation_id)),vt=[];for(const Ft of me){let On=Xt[Ft.automation_id];if(On||(On=await ht.getAutomationConfigWithFallback(Ft.automation_id,Ft.friendly_name)),!On)throw new Error(s("dialogs:import.mergeFailedMissingConfig",{name:Ft.friendly_name}));const Zn=gse(On,{indent:2,lineWidth:-1,quotingType:'"',forceQuotes:!1}),Yn=await GDe.fromYaml(Zn);if(!Yn.success||!Yn.graph)throw new Error(s("dialogs:import.mergeFailedInvalidYaml",{name:Ft.friendly_name}));vt.push({graph:Yn.graph,automationId:Ft.automation_id,entityId:Ft.entity_id,alias:Ft.friendly_name||Ft.automation_id})}const Ct=ftr(vt);ee(Ct),j(Ue(me)),P(null),x(new Set),setTimeout(()=>{Q({padding:.2,duration:300})},50),N2.success(s("dialogs:import.mergeSuccess",{count:me.length})),i()}catch(ht){console.error("C.A.F.E.: Failed to merge automations:",ht),N2.error(s("dialogs:import.mergeFailed",{message:ht.message}))}},kt=ht=>{if(!ht)return s("dialogs:import.never");const Xt=new Date(ht),Ct=new Date().getTime()-Xt.getTime(),Ft=Math.floor(Ct/(1e3*60)),On=Math.floor(Ft/60),Zn=Math.floor(On/24);return Ft<1?s("dialogs:import.justNow"):Ft<60?s("dialogs:import.minutesAgo",{count:Ft}):On<24?s("dialogs:import.hoursAgo",{count:On}):Zn<7?s("dialogs:import.daysAgo",{count:Zn}):Xt.toLocaleDateString()};return n?I.jsxs(wR,{open:n,onOpenChange:i,children:[I.jsxs(aN,{className:"flex max-h-[90vh] max-w-4xl flex-col",children:[I.jsx(uN,{className:"space-y-3",children:I.jsxs("div",{className:"flex items-center justify-between pr-8",children:[I.jsxs("div",{children:[I.jsx(cN,{children:s("dialogs:import.title")}),I.jsx(lN,{children:s("dialogs:import.descriptionFull")})]}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsxs(Ri,{variant:"outline",onClick:me.length===1?dt:()=>K(()=>void bt()),disabled:me.length===0,children:[me.length>1?I.jsx(V8n,{className:"mr-2 h-4 w-4"}):I.jsx(T9t,{className:"mr-2 h-4 w-4"}),me.length>1?s("dialogs:import.openTogether"):s("dialogs:import.openSingle")]}),I.jsxs(Ri,{onClick:()=>{K(()=>{G(),j(s("defaults.newAutomation")),i()})},className:"bg-green-600 hover:bg-green-700",children:[I.jsx(dGt,{className:"mr-2 h-4 w-4"}),s("dialogs:import.createNew")]})]})]})}),I.jsxs("div",{className:"flex min-h-0 flex-col",children:[I.jsxs("div",{className:"relative mb-4",children:[I.jsx(bGt,{className:"absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 transform text-muted-foreground"}),I.jsx(Na,{type:"text",placeholder:s("dialogs:import.searchPlaceholder"),value:c,onChange:ht=>d(ht.target.value),className:"pl-10"})]}),I.jsx("div",{className:"max-h-[70vh] overflow-auto rounded-t-md",children:I.jsxs("div",{className:"min-w-full",children:[I.jsx("div",{className:"sticky top-0 z-20 bg-background before:absolute before:-top-px before:right-0 before:left-0 before:h-px before:bg-background",children:I.jsxs("div",{className:"flex",children:[I.jsx("div",{className:"flex w-[44px] items-center justify-center border-b bg-muted px-2 py-2",children:I.jsx(YDe,{checked:le,onCheckedChange:xe,title:s(le?"dialogs:import.unselectAll":"dialogs:import.selectAll")})}),I.jsxs("button",{type:"button",onClick:()=>Se("name"),className:"flex-1 cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-left font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[s("dialogs:import.columns.name"),Le("name")]}),I.jsxs("button",{type:"button",onClick:()=>Se("lastTriggered"),className:"w-[120px] cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-left font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[s("dialogs:import.columns.lastTriggered"),Le("lastTriggered")]}),I.jsxs("button",{type:"button",onClick:()=>Se("enabled"),className:"w-[80px] cursor-pointer whitespace-nowrap border-b bg-muted px-3 py-2 text-center font-semibold text-muted-foreground text-xs hover:bg-muted/80",children:[s("dialogs:import.columns.enabled"),Le("enabled")]}),I.jsx("div",{className:"w-[60px] border-b bg-muted px-3 py-2 text-center font-semibold text-muted-foreground text-xs",children:s("dialogs:import.columns.action")})]})}),I.jsxs("div",{children:[Object.entries(ie).flatMap(([ht,Xt])=>{if(Xt.length===0)return[];const vt=I.jsx("div",{className:"sticky top-[32px] z-10 -mt-1 flex border-b bg-accent",children:I.jsx("div",{className:"flex-1 px-3 py-2 font-bold text-accent-foreground text-xs",children:ht})},ht),Ct=Xt.map(Ft=>{const On=S.has(Ft.entity_id);return I.jsxs("div",{className:`flex border-b last:border-0 ${On?"bg-accent/40":""}`,children:[I.jsx("div",{className:"flex w-[44px] items-center justify-center px-2 py-2",children:I.jsx(YDe,{checked:On,onCheckedChange:()=>Ae(Ft.entity_id),title:s(On?"dialogs:import.unselect":"dialogs:import.select")})}),I.jsxs("div",{className:"flex-1 px-3 py-2 align-top",children:[I.jsx("div",{className:"max-w-[180px] font-medium",children:Ft.friendly_name}),Ft.description&&I.jsx("div",{className:"mt-1 max-w-[180px] truncate text-muted-foreground text-xs",children:Ft.description}),Ft.tags.length>0&&I.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:Ft.tags.map(Zn=>I.jsx(HMe,{variant:"secondary",className:"text-xs",children:Zn},`${Ft.entity_id}-${Zn}`))}),I.jsx("div",{className:"mt-1 truncate text-muted-foreground text-xs",children:s("dialogs:import.ID",{id:Ft.automation_id})}),Ft.mode&&I.jsx("div",{className:"text-muted-foreground text-xs",children:s("dialogs:import.mode",{mode:Ft.mode})})]}),I.jsx("div",{className:"w-[120px] max-w-[120px] px-3 py-2 align-top",children:Ft.last_triggered?I.jsx("span",{className:"whitespace-nowrap text-xs",children:kt(Ft.last_triggered)}):I.jsx("span",{className:"text-muted-foreground text-xs",children:s("dialogs:import.never")})}),I.jsx("div",{className:"w-[80px] px-3 py-2 text-center align-top",children:I.jsx(J2,{checked:Ft.enabled,onCheckedChange:async Zn=>{try{await Mv(D,B).setAutomationState(Ft.entity_id,Zn),N2.success(s(Zn?"dialogs:import.automationEnabled":"dialogs:import.automationDisabled"))}catch{N2.error(s("dialogs:import.updateStateFailed"))}},"aria-label":Ft.enabled?s("dialogs:import.columns.enabled"):s("dialogs:import.disabled")})}),I.jsx("div",{className:"w-[60px] px-3 py-2 text-center align-top",children:I.jsx(Ri,{size:"icon",variant:"ghost",onClick:()=>K(()=>void We(Ft)),title:s("dialogs:import.importAutomation"),children:I.jsx(T9t,{className:"h-4 w-4"})})})]},Ft.entity_id)});return[I.jsxs(Hn.Fragment,{children:[vt,Ct]},ht)]}),!fe&&I.jsx("div",{className:"flex",children:I.jsx("div",{className:"flex-1 py-8 text-center text-muted-foreground",children:s("dialogs:import.noAutomations")})})]})]})})]}),I.jsx("div",{className:"border-t bg-muted/20 p-6",children:I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx("p",{className:"text-muted-foreground text-sm",children:s("dialogs:import.openingWarning")}),I.jsx(Ri,{onClick:i,variant:"ghost",children:s("buttons.cancel")})]})})]}),I.jsx(wR,{open:A,onOpenChange:Oe,children:I.jsxs(aN,{className:"max-w-md",children:[I.jsxs(uN,{children:[I.jsx(cN,{children:s("dialogs:import.discardTitle")}),I.jsx(lN,{children:s("dialogs:import.discardDescription")})]}),I.jsxs("div",{className:"flex justify-end gap-2 pt-4",children:[I.jsx(Ri,{variant:"outline",onClick:Oe,children:s("buttons.cancel")}),I.jsx(Ri,{variant:"destructive",onClick:he,children:s("dialogs:import.confirmDiscard")})]})]})})]}):null}const ptr=Aae("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:top-4 [&>svg]:left-4 [&>svg]:text-foreground [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),dA=H.forwardRef(({className:n,variant:i,...s},c)=>I.jsx("div",{ref:c,role:"alert",className:Sr(ptr({variant:i}),n),...s}));dA.displayName="Alert";const AKt=H.forwardRef(({className:n,...i},s)=>I.jsx("h5",{ref:s,className:Sr("mb-1 font-medium leading-none tracking-tight",n),...i}));AKt.displayName="AlertTitle";const fA=H.forwardRef(({className:n,...i},s)=>I.jsx("div",{ref:s,className:Sr("text-sm [&_p]:leading-relaxed",n),...i}));fA.displayName="AlertDescription";var gtr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],btr=gtr.reduce((n,i)=>{const s=lae(`Primitive.${i}`),c=H.forwardRef((d,g)=>{const{asChild:b,...w}=d,E=b?s:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(E,{...w,ref:g})});return c.displayName=`Primitive.${i}`,{...n,[i]:c}},{}),mtr="Label",_Kt=H.forwardRef((n,i)=>I.jsx(btr.label,{...n,ref:i,onMouseDown:s=>{var d;s.target.closest("button, input, select, textarea")||((d=n.onMouseDown)==null||d.call(n,s),!s.defaultPrevented&&s.detail>1&&s.preventDefault())}}));_Kt.displayName=mtr;var xKt=_Kt;const wtr=Aae("font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ll=H.forwardRef(({className:n,...i},s)=>I.jsx(xKt,{ref:s,className:Sr(wtr(),n),...i}));ll.displayName=xKt.displayName;const $v=H.forwardRef(({className:n,...i},s)=>I.jsx("textarea",{className:Sr("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),ref:s,...i}));$v.displayName="Textarea";function ytr({isOpen:n,onClose:i,onSaved:s}){const{t:c}=ps(["common","dialogs","errors"]),{flowName:d,flowDescription:g,automationId:b,isSaving:w,setFlowName:E,setFlowDescription:S,setAutomationId:x,saveAutomation:A,updateAutomation:C}=Do(),{hass:R}=pb(),[L,D]=H.useState(g),[B,$]=H.useState(null),[j,P]=H.useState(null),G=!!b;H.useEffect(()=>{n&&(D(g),$(null),P(null))},[n,g]);const ee=async le=>{if(!le.trim()){P(null);return}try{if(await Mv(R).automationExistsByAlias(le)&&!G){const K=await Mv(R).getUniqueAutomationAlias(le);P(K)}else P(null)}catch(fe){console.warn("Failed to check name conflict:",fe),P(null)}},re=async()=>{if(!R){$(c("errors:connection.notConnected"));return}if(!d.trim()){$(c("errors:form.nameRequired"));return}$(null);try{S(L.trim());let le;G?(await C(R),le=b||""):le=await A(R),s==null||s(le),i()}catch(le){const fe=le instanceof Error?le.message:c("errors:api.unknownError");$(fe)}},Q=()=>{$(null),P(null),i()},ie=le=>{E(le),ee(le)},pe=()=>{j&&(E(j),P(null))},me=async()=>{if(!R){$(c("errors:connection.notConnected"));return}$(null);try{const le=await Mv(R).getUniqueAutomationAlias(d);E(le),S(L.trim()),x(null);const fe=await A(R);s==null||s(fe),i()}catch(le){const fe=le instanceof Error?le.message:c("errors:api.unknownError");$(fe)}};return I.jsx(wR,{open:n,onOpenChange:Q,children:I.jsxs(aN,{className:"max-w-md max-h-[90vh] overflow-y-auto",children:[I.jsxs(uN,{children:[I.jsxs(cN,{className:"flex items-center gap-2",children:[I.jsx(gGt,{className:"h-5 w-5"}),c(G?"dialogs:save.titleUpdate":"dialogs:save.title")]}),I.jsx(lN,{children:c(G?"dialogs:save.descriptionUpdate":"dialogs:save.description")})]}),I.jsxs("div",{className:"space-y-4",children:[I.jsxs("div",{className:"space-y-2",children:[I.jsx(ll,{htmlFor:"automation-name",children:c("dialogs:save.nameLabel")}),I.jsx(Na,{id:"automation-name",value:d,onChange:le=>ie(le.target.value),placeholder:c("placeholders.enterAutomationName"),disabled:w})]}),j&&I.jsxs(dA,{children:[I.jsx(_9t,{className:"h-4 w-4"}),I.jsxs(fA,{className:"flex items-center justify-between",children:[I.jsx("span",{children:c("dialogs:save.nameConflict",{suggestedName:j})}),I.jsx(Ri,{variant:"outline",size:"sm",onClick:pe,disabled:w,children:c("buttons.use")})]})]}),I.jsxs("div",{className:"space-y-2",children:[I.jsx(ll,{htmlFor:"automation-description",children:c("dialogs:save.descriptionLabel")}),I.jsx($v,{id:"automation-description",value:L,onChange:le=>D(le.target.value),placeholder:c("placeholders.describeAutomation"),rows:3,disabled:w})]}),B&&I.jsxs(dA,{variant:"destructive",children:[I.jsx(_9t,{className:"h-4 w-4"}),I.jsx(fA,{children:B})]}),I.jsxs("div",{className:"flex justify-end gap-2",children:[I.jsx(Ri,{variant:"outline",onClick:Q,disabled:w,children:c("buttons.cancel")}),G&&I.jsxs(Ri,{variant:"outline",onClick:me,disabled:w||!d.trim(),children:[w?I.jsx(QH,{className:"mr-2 h-4 w-4 animate-spin"}):I.jsx($5e,{className:"mr-2 h-4 w-4"}),c("buttons.saveAsCopy")]}),I.jsx(Ri,{onClick:re,disabled:w||!d.trim(),children:w?I.jsxs(I.Fragment,{children:[I.jsx(QH,{className:"mr-2 h-4 w-4 animate-spin"}),c(G?"status.updating":"status.saving")]}):I.jsxs(I.Fragment,{children:[I.jsx(oN,{className:"mr-2 h-4 w-4"}),c(G?"buttons.update":"buttons.save")]})})]})]})]})})}function vtr({isOpen:n,onClose:i,config:s,onSave:c}){const{t:d}=ps(["common","dialogs"]),[g,b]=H.useState(s.url),[w,E]=H.useState(s.token),[S,x]=H.useState("idle"),[A,C]=H.useState("");H.useEffect(()=>{n&&(b(s.url),E(s.token),x("idle"),C(""))},[n,s]);const R=async()=>{if(!g||!w){x("error"),C(d("dialogs:settings.errors.missingFields"));return}x("testing"),C("");try{const B=g.replace(/\/$/,""),$=await fetch(`${B}/api/`,{headers:{Authorization:`Bearer ${w}`,"Content-Type":"application/json"}});$.ok?(await $.json()).message==="API running."?x("success"):(x("error"),C(d("dialogs:settings.errors.unexpectedResponse"))):$.status===401?(x("error"),C(d("dialogs:settings.errors.invalidToken"))):(x("error"),C(d("dialogs:settings.errors.httpError",{status:$.status,statusText:$.statusText})))}catch(B){x("error"),B instanceof TypeError&&B.message.includes("fetch")?C(d("dialogs:settings.errors.corsError")):C(B instanceof Error?B.message:d("dialogs:settings.errors.connectionFailed"))}},L=()=>{c({url:g.replace(/\/$/,""),token:w}),i()},D=()=>{b(""),E(""),c({url:"",token:""}),i()};return I.jsx(wR,{open:n,onOpenChange:()=>i(),children:I.jsxs(aN,{className:"max-w-md",children:[I.jsxs(uN,{children:[I.jsx(cN,{children:d("dialogs:settings.title")}),I.jsx(lN,{children:d("dialogs:settings.description")})]}),I.jsxs("div",{className:"space-y-4",children:[I.jsxs("div",{className:"space-y-2",children:[I.jsx(ll,{htmlFor:"url",children:d("dialogs:settings.urlLabel")}),I.jsx(Na,{id:"url",type:"url",value:g,onChange:B=>b(B.target.value),placeholder:d("dialogs:settings.urlPlaceholder")}),I.jsx("p",{className:"text-muted-foreground text-xs",children:d("dialogs:settings.urlHelp")})]}),I.jsxs("div",{className:"space-y-2",children:[I.jsx(ll,{htmlFor:"token",children:d("dialogs:settings.tokenLabel")}),I.jsx(Na,{id:"token",type:"password",value:w,onChange:B=>E(B.target.value),placeholder:d("dialogs:settings.tokenPlaceholder"),className:"font-mono text-sm"}),I.jsx("p",{className:"text-muted-foreground text-xs",children:d("dialogs:settings.tokenHelp")})]}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx(Ri,{variant:"outline",onClick:R,disabled:S==="testing",children:S==="testing"?I.jsxs(I.Fragment,{children:[I.jsx(QH,{className:"mr-2 h-4 w-4 animate-spin"}),d("dialogs:settings.testing")]}):d("dialogs:settings.testConnection")}),S==="success"&&I.jsxs("span",{className:"flex items-center gap-1 text-green-600 text-sm",children:[I.jsx(lGt,{className:"h-4 w-4"}),d("dialogs:settings.connected")]}),S==="error"&&I.jsxs("span",{className:"flex items-center gap-1 text-red-600 text-sm",children:[I.jsx(_w,{className:"h-4 w-4"}),A]})]}),I.jsx(dA,{children:I.jsxs(fA,{children:[I.jsx("h4",{className:"mb-1 font-medium",children:d("dialogs:settings.corsNote")}),I.jsx("p",{className:"mb-2 text-xs",children:d("dialogs:settings.corsDescription")}),I.jsx("pre",{className:"overflow-x-auto rounded bg-muted p-2 font-mono text-xs",children:`http: + cors_allowed_origins: + - https://my-home-assistant.example.com`})]})}),I.jsx(Ri,{variant:"link",asChild:!0,className:"h-auto p-0 text-sm",children:I.jsxs("a",{href:"https://www.home-assistant.io/docs/authentication/#your-account-profile",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1",children:[I.jsx(O8n,{className:"h-4 w-4"}),d("dialogs:settings.tokenGuideLink")]})})]}),I.jsxs("div",{className:"flex items-center justify-between pt-4",children:[I.jsx(Ri,{variant:"destructive",onClick:D,size:"sm",children:d("dialogs:settings.disconnect")}),I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx(Ri,{variant:"outline",onClick:i,size:"sm",children:d("buttons.cancel")}),I.jsx(Ri,{onClick:L,disabled:!g||!w,size:"sm",children:d("buttons.save")})]})]})]})})}function Etr({isOpen:n,onClose:i,onImportSuccess:s}){const{t:c}=ps(["common","dialogs"]),[d,g]=H.useState(""),[b,w]=H.useState(!1),[E,S]=H.useState(null),[x,A]=H.useState([]),{fromFlowGraph:C}=Do(),{fitView:R}=kR();if(!n)return null;const L=async()=>{var B;w(!0),S(null),A([]);try{const $=await GDe.fromYaml(d);if(!$.success){S(((B=$.errors)==null?void 0:B.join(` +`))||"Failed to parse YAML. Please check the format."),w(!1);return}$.warnings.length>0&&(Ef.warn("Import warnings:",$.warnings),A($.warnings)),$.graph&&(C($.graph),setTimeout(()=>{R({padding:.2,duration:300})},50),setTimeout(()=>{s==null||s(),D()},1e3))}catch($){S($ instanceof Error?$.message:"Unknown error occurred")}finally{w(!1)}},D=()=>{g(""),S(null),A([]),i()};return I.jsx(wR,{open:n,onOpenChange:()=>D(),children:I.jsxs(aN,{className:"flex max-h-[90vh] max-w-3xl flex-col",children:[I.jsxs(uN,{children:[I.jsx(cN,{children:c("dialogs:importYaml.title")}),I.jsx(lN,{children:c("dialogs:importYaml.description")})]}),I.jsxs("div",{className:"flex-1 space-y-4",children:[I.jsx($v,{value:d,onChange:B=>g(B.target.value),placeholder:`alias: My Automation +description: An example automation +trigger: + - platform: state + entity_id: light.living_room + to: "on" +action: + - service: notify.mobile_app + data: + message: "Light turned on!"`,className:"h-64 resize-none font-mono text-sm",disabled:b}),E&&I.jsxs(dA,{variant:"destructive",children:[I.jsx(_w,{className:"h-4 w-4"}),I.jsxs(fA,{className:"font-medium",children:[c("dialogs:importYaml.importFailed"),I.jsx("pre",{className:"mt-1 whitespace-pre-wrap font-mono text-xs",children:E})]})]}),x.length>0&&I.jsxs(dA,{children:[I.jsx(_w,{className:"h-4 w-4"}),I.jsxs(fA,{children:[I.jsx("p",{className:"mb-1 font-medium",children:c("dialogs:importYaml.warnings")}),I.jsx("ul",{className:"space-y-1 text-xs",children:x.map((B,$)=>I.jsxs("li",{children:["•"," ",B]},`warning-${$}-${B.slice(0,20)}`))})]})]}),b&&!E&&I.jsxs(dA,{children:[I.jsx(lGt,{className:"h-4 w-4"}),I.jsx(fA,{children:c("dialogs:importYaml.successLoading")})]}),I.jsx(dA,{children:I.jsxs(fA,{className:"text-xs",children:[I.jsx("strong",{children:c("dialogs:importYaml.tipLabel")})," ",c("dialogs:importYaml.tipText")]})})]}),I.jsxs("div",{className:"flex items-center justify-end gap-2 pt-4",children:[I.jsx(Ri,{variant:"outline",onClick:D,disabled:b,children:c("buttons.cancel")}),I.jsxs(Ri,{onClick:L,disabled:!d.trim()||b,children:[I.jsx(vPn,{className:"mr-2 h-4 w-4"}),c(b?"dialogs:importYaml.importing":"dialogs:importYaml.import")]})]})]})})}function H2({message:n}){return n?I.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-red-600 text-xs",children:[I.jsx(_w,{className:"h-3 w-3 flex-shrink-0"}),I.jsx("span",{children:n})]}):null}function Po({label:n,required:i,description:s,children:c}){return I.jsxs("div",{className:"flex flex-col gap-2",children:[I.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[n,i&&I.jsx("span",{className:"ml-1 text-destructive",children:"*"})]}),c,s&&I.jsx("p",{className:"text-muted-foreground text-xs",children:s})]})}const YFt={common:["id","alias","enabled","_conditionId"],trigger:["trigger","entity_id","to","from","for","at","event_type","event_data","event","offset","above","below","value_template","template","webhook_id","zone","topic","payload","hours","minutes","seconds","device_id","domain","type","subtype"],condition:["condition","entity_id","state","attribute","above","below","value_template","template","after","before","weekday","device_id","domain","type","subtype","zone","condition","for","conditions"],action:["service","data","target","response_variable","stop","error","entity_id","action","metadata"],delay:["delay"],wait:["wait_template","timeout","wait_for_trigger","continue_on_timeout"],set_variables:["variables"]};function JFt(n,i=[]){const s=[...YFt.common,...YFt[n]||[]];return new Set([...s,...i])}function mse(n,[i,s]){return Math.min(s,Math.max(i,n))}function XFt(n){const i=Str(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(Atr);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function Str(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=xtr(d),w=_tr(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var Ttr=Symbol("radix.slottable");function Atr(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Ttr}function _tr(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function xtr(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function Wae(n){const i=n+"CollectionProvider",[s,c]=xw(i),[d,g]=s(i,{collectionRef:{current:null},itemMap:new Map}),b=D=>{const{scope:B,children:$}=D,j=Hn.useRef(null),P=Hn.useRef(new Map).current;return I.jsx(d,{scope:B,itemMap:P,collectionRef:j,children:$})};b.displayName=i;const w=n+"CollectionSlot",E=XFt(w),S=Hn.forwardRef((D,B)=>{const{scope:$,children:j}=D,P=g(w,$),G=hs(B,P.collectionRef);return I.jsx(E,{ref:G,children:j})});S.displayName=w;const x=n+"CollectionItemSlot",A="data-radix-collection-item",C=XFt(x),R=Hn.forwardRef((D,B)=>{const{scope:$,children:j,...P}=D,G=Hn.useRef(null),ee=hs(B,G),re=g(x,$);return Hn.useEffect(()=>(re.itemMap.set(G,{ref:G,...P}),()=>void re.itemMap.delete(G))),I.jsx(C,{[A]:"",ref:ee,children:j})});R.displayName=x;function L(D){const B=g(n+"CollectionConsumer",D);return Hn.useCallback(()=>{const j=B.collectionRef.current;if(!j)return[];const P=Array.from(j.querySelectorAll(`[${A}]`));return Array.from(B.itemMap.values()).sort((re,Q)=>P.indexOf(re.ref.current)-P.indexOf(Q.ref.current))},[B.collectionRef,B.itemMap])}return[{Provider:b,Slot:S,ItemSlot:R},L,c]}var ktr=H.createContext(void 0);function jz(n){const i=H.useContext(ktr);return n||i||"ltr"}function Ntr(n){const i=Ctr(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(Rtr);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function Ctr(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=Dtr(d),w=Otr(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var Itr=Symbol("radix.slottable");function Rtr(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Itr}function Otr(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function Dtr(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var kKt=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Ltr="VisuallyHidden",Mtr=H.forwardRef((n,i)=>I.jsx(no.span,{...n,ref:i,style:{...kKt,...n.style}}));Mtr.displayName=Ltr;var Ptr=[" ","Enter","ArrowUp","ArrowDown"],jtr=[" ","Enter"],ER="Select",[Kae,Yae,Ftr]=Wae(ER),[VM]=xw(ER,[Ftr,BM]),Jae=BM(),[$tr,xN]=VM(ER),[Btr,Utr]=VM(ER),NKt=n=>{const{__scopeSelect:i,children:s,open:c,defaultOpen:d,onOpenChange:g,value:b,defaultValue:w,onValueChange:E,dir:S,name:x,autoComplete:A,disabled:C,required:R,form:L}=n,D=Jae(i),[B,$]=H.useState(null),[j,P]=H.useState(null),[G,ee]=H.useState(!1),re=jz(S),[Q,ie]=G2({prop:c,defaultProp:d??!1,onChange:g,caller:ER}),[pe,me]=G2({prop:b,defaultProp:w,onChange:E,caller:ER}),le=H.useRef(null),fe=B?L||!!B.closest("form"):!0,[K,he]=H.useState(new Set),Oe=Array.from(K).map(Se=>Se.props.value).join(";");return I.jsx(nMe,{...D,children:I.jsxs($tr,{required:R,scope:i,trigger:B,onTriggerChange:$,valueNode:j,onValueNodeChange:P,valueNodeHasChildren:G,onValueNodeHasChildrenChange:ee,contentId:Bh(),value:pe,onValueChange:me,open:Q,onOpenChange:ie,dir:re,triggerPointerDownPosRef:le,disabled:C,children:[I.jsx(Kae.Provider,{scope:i,children:I.jsx(Btr,{scope:n.__scopeSelect,onNativeOptionAdd:H.useCallback(Se=>{he(Le=>new Set(Le).add(Se))},[]),onNativeOptionRemove:H.useCallback(Se=>{he(Le=>{const Ae=new Set(Le);return Ae.delete(Se),Ae})},[]),children:s})}),fe?I.jsxs(ZKt,{"aria-hidden":!0,required:R,tabIndex:-1,name:x,autoComplete:A,value:pe,onChange:Se=>me(Se.target.value),disabled:C,form:L,children:[pe===void 0?I.jsx("option",{value:""}):null,Array.from(K)]},Oe):null]})})};NKt.displayName=ER;var CKt="SelectTrigger",IKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,disabled:c=!1,...d}=n,g=Jae(s),b=xN(CKt,s),w=b.disabled||c,E=hs(i,b.onTriggerChange),S=Yae(s),x=H.useRef("touch"),[A,C,R]=eYt(D=>{const B=S().filter(P=>!P.disabled),$=B.find(P=>P.value===b.value),j=tYt(B,D,$);j!==void 0&&b.onValueChange(j.value)}),L=D=>{w||(b.onOpenChange(!0),R()),D&&(b.triggerPointerDownPosRef.current={x:Math.round(D.pageX),y:Math.round(D.pageY)})};return I.jsx(Eae,{asChild:!0,...g,children:I.jsx(no.button,{type:"button",role:"combobox","aria-controls":b.contentId,"aria-expanded":b.open,"aria-required":b.required,"aria-autocomplete":"none",dir:b.dir,"data-state":b.open?"open":"closed",disabled:w,"data-disabled":w?"":void 0,"data-placeholder":QKt(b.value)?"":void 0,...d,ref:E,onClick:Dr(d.onClick,D=>{D.currentTarget.focus(),x.current!=="mouse"&&L(D)}),onPointerDown:Dr(d.onPointerDown,D=>{x.current=D.pointerType;const B=D.target;B.hasPointerCapture(D.pointerId)&&B.releasePointerCapture(D.pointerId),D.button===0&&D.ctrlKey===!1&&D.pointerType==="mouse"&&(L(D),D.preventDefault())}),onKeyDown:Dr(d.onKeyDown,D=>{const B=A.current!=="";!(D.ctrlKey||D.altKey||D.metaKey)&&D.key.length===1&&C(D.key),!(B&&D.key===" ")&&Ptr.includes(D.key)&&(L(),D.preventDefault())})})})});IKt.displayName=CKt;var RKt="SelectValue",OKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,className:c,style:d,children:g,placeholder:b="",...w}=n,E=xN(RKt,s),{onValueNodeHasChildrenChange:S}=E,x=g!==void 0,A=hs(i,E.onValueNodeChange);return Hp(()=>{S(x)},[S,x]),I.jsx(no.span,{...w,ref:A,style:{pointerEvents:"none"},children:QKt(E.value)?I.jsx(I.Fragment,{children:b}):g})});OKt.displayName=RKt;var Htr="SelectIcon",DKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,children:c,...d}=n;return I.jsx(no.span,{"aria-hidden":!0,...d,ref:i,children:c||"▼"})});DKt.displayName=Htr;var ztr="SelectPortal",LKt=n=>I.jsx(Cz,{asChild:!0,...n});LKt.displayName=ztr;var SR="SelectContent",MKt=H.forwardRef((n,i)=>{const s=xN(SR,n.__scopeSelect),[c,d]=H.useState();if(Hp(()=>{d(new DocumentFragment)},[]),!s.open){const g=c;return g?xR.createPortal(I.jsx(PKt,{scope:n.__scopeSelect,children:I.jsx(Kae.Slot,{scope:n.__scopeSelect,children:I.jsx("div",{children:n.children})})}),g):null}return I.jsx(jKt,{...n,ref:i})});MKt.displayName=SR;var _v=10,[PKt,kN]=VM(SR),Gtr="SelectContentImpl",qtr=Ntr("SelectContent.RemoveScroll"),jKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,position:c="item-aligned",onCloseAutoFocus:d,onEscapeKeyDown:g,onPointerDownOutside:b,side:w,sideOffset:E,align:S,alignOffset:x,arrowPadding:A,collisionBoundary:C,collisionPadding:R,sticky:L,hideWhenDetached:D,avoidCollisions:B,...$}=n,j=xN(SR,s),[P,G]=H.useState(null),[ee,re]=H.useState(null),Q=hs(i,vt=>G(vt)),[ie,pe]=H.useState(null),[me,le]=H.useState(null),fe=Yae(s),[K,he]=H.useState(!1),Oe=H.useRef(!1);H.useEffect(()=>{if(P)return uae(P)},[P]),sae();const Se=H.useCallback(vt=>{const[Ct,...Ft]=fe().map(Yn=>Yn.ref.current),[On]=Ft.slice(-1),Zn=document.activeElement;for(const Yn of vt)if(Yn===Zn||(Yn==null||Yn.scrollIntoView({block:"nearest"}),Yn===Ct&&ee&&(ee.scrollTop=0),Yn===On&&ee&&(ee.scrollTop=ee.scrollHeight),Yn==null||Yn.focus(),document.activeElement!==Zn))return},[fe,ee]),Le=H.useCallback(()=>Se([ie,P]),[Se,ie,P]);H.useEffect(()=>{K&&Le()},[K,Le]);const{onOpenChange:Ae,triggerPointerDownPosRef:xe}=j;H.useEffect(()=>{if(P){let vt={x:0,y:0};const Ct=On=>{var Zn,Yn;vt={x:Math.abs(Math.round(On.pageX)-(((Zn=xe.current)==null?void 0:Zn.x)??0)),y:Math.abs(Math.round(On.pageY)-(((Yn=xe.current)==null?void 0:Yn.y)??0))}},Ft=On=>{vt.x<=10&&vt.y<=10?On.preventDefault():P.contains(On.target)||Ae(!1),document.removeEventListener("pointermove",Ct),xe.current=null};return xe.current!==null&&(document.addEventListener("pointermove",Ct),document.addEventListener("pointerup",Ft,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ct),document.removeEventListener("pointerup",Ft,{capture:!0})}}},[P,Ae,xe]),H.useEffect(()=>{const vt=()=>Ae(!1);return window.addEventListener("blur",vt),window.addEventListener("resize",vt),()=>{window.removeEventListener("blur",vt),window.removeEventListener("resize",vt)}},[Ae]);const[We,dt]=eYt(vt=>{const Ct=fe().filter(Zn=>!Zn.disabled),Ft=Ct.find(Zn=>Zn.ref.current===document.activeElement),On=tYt(Ct,vt,Ft);On&&setTimeout(()=>On.ref.current.focus())}),Ue=H.useCallback((vt,Ct,Ft)=>{const On=!Oe.current&&!Ft;(j.value!==void 0&&j.value===Ct||On)&&(pe(vt),On&&(Oe.current=!0))},[j.value]),bt=H.useCallback(()=>P==null?void 0:P.focus(),[P]),kt=H.useCallback((vt,Ct,Ft)=>{const On=!Oe.current&&!Ft;(j.value!==void 0&&j.value===Ct||On)&&le(vt)},[j.value]),ht=c==="popper"?JDe:FKt,Xt=ht===JDe?{side:w,sideOffset:E,align:S,alignOffset:x,arrowPadding:A,collisionBoundary:C,collisionPadding:R,sticky:L,hideWhenDetached:D,avoidCollisions:B}:{};return I.jsx(PKt,{scope:s,content:P,viewport:ee,onViewportChange:re,itemRefCallback:Ue,selectedItem:ie,onItemLeave:bt,itemTextRefCallback:kt,focusSelectedItem:Le,selectedItemText:me,position:c,isPositioned:K,searchRef:We,children:I.jsx(Iz,{as:qtr,allowPinchZoom:!0,children:I.jsx(Nz,{asChild:!0,trapped:j.open,onMountAutoFocus:vt=>{vt.preventDefault()},onUnmountAutoFocus:Dr(d,vt=>{var Ct;(Ct=j.trigger)==null||Ct.focus({preventScroll:!0}),vt.preventDefault()}),children:I.jsx(kz,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:g,onPointerDownOutside:b,onFocusOutside:vt=>vt.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:I.jsx(ht,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:vt=>vt.preventDefault(),...$,...Xt,onPlaced:()=>he(!0),ref:Q,style:{display:"flex",flexDirection:"column",outline:"none",...$.style},onKeyDown:Dr($.onKeyDown,vt=>{const Ct=vt.ctrlKey||vt.altKey||vt.metaKey;if(vt.key==="Tab"&&vt.preventDefault(),!Ct&&vt.key.length===1&&dt(vt.key),["ArrowUp","ArrowDown","Home","End"].includes(vt.key)){let On=fe().filter(Zn=>!Zn.disabled).map(Zn=>Zn.ref.current);if(["ArrowUp","End"].includes(vt.key)&&(On=On.slice().reverse()),["ArrowUp","ArrowDown"].includes(vt.key)){const Zn=vt.target,Yn=On.indexOf(Zn);On=On.slice(Yn+1)}setTimeout(()=>Se(On)),vt.preventDefault()}})})})})})})});jKt.displayName=Gtr;var Vtr="SelectItemAlignedPosition",FKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,onPlaced:c,...d}=n,g=xN(SR,s),b=kN(SR,s),[w,E]=H.useState(null),[S,x]=H.useState(null),A=hs(i,Q=>x(Q)),C=Yae(s),R=H.useRef(!1),L=H.useRef(!0),{viewport:D,selectedItem:B,selectedItemText:$,focusSelectedItem:j}=b,P=H.useCallback(()=>{if(g.trigger&&g.valueNode&&w&&S&&D&&B&&$){const Q=g.trigger.getBoundingClientRect(),ie=S.getBoundingClientRect(),pe=g.valueNode.getBoundingClientRect(),me=$.getBoundingClientRect();if(g.dir!=="rtl"){const Zn=me.left-ie.left,Yn=pe.left-Zn,vr=Q.left-Yn,Ui=Q.width+vr,Qr=Math.max(Ui,ie.width),Hi=window.innerWidth-_v,ai=mse(Yn,[_v,Math.max(_v,Hi-Qr)]);w.style.minWidth=Ui+"px",w.style.left=ai+"px"}else{const Zn=ie.right-me.right,Yn=window.innerWidth-pe.right-Zn,vr=window.innerWidth-Q.right-Yn,Ui=Q.width+vr,Qr=Math.max(Ui,ie.width),Hi=window.innerWidth-_v,ai=mse(Yn,[_v,Math.max(_v,Hi-Qr)]);w.style.minWidth=Ui+"px",w.style.right=ai+"px"}const le=C(),fe=window.innerHeight-_v*2,K=D.scrollHeight,he=window.getComputedStyle(S),Oe=parseInt(he.borderTopWidth,10),Se=parseInt(he.paddingTop,10),Le=parseInt(he.borderBottomWidth,10),Ae=parseInt(he.paddingBottom,10),xe=Oe+Se+K+Ae+Le,We=Math.min(B.offsetHeight*5,xe),dt=window.getComputedStyle(D),Ue=parseInt(dt.paddingTop,10),bt=parseInt(dt.paddingBottom,10),kt=Q.top+Q.height/2-_v,ht=fe-kt,Xt=B.offsetHeight/2,vt=B.offsetTop+Xt,Ct=Oe+Se+vt,Ft=xe-Ct;if(Ct<=kt){const Zn=le.length>0&&B===le[le.length-1].ref.current;w.style.bottom="0px";const Yn=S.clientHeight-D.offsetTop-D.offsetHeight,vr=Math.max(ht,Xt+(Zn?bt:0)+Yn+Le),Ui=Ct+vr;w.style.height=Ui+"px"}else{const Zn=le.length>0&&B===le[0].ref.current;w.style.top="0px";const vr=Math.max(kt,Oe+D.offsetTop+(Zn?Ue:0)+Xt)+Ft;w.style.height=vr+"px",D.scrollTop=Ct-kt+D.offsetTop}w.style.margin=`${_v}px 0`,w.style.minHeight=We+"px",w.style.maxHeight=fe+"px",c==null||c(),requestAnimationFrame(()=>R.current=!0)}},[C,g.trigger,g.valueNode,w,S,D,B,$,g.dir,c]);Hp(()=>P(),[P]);const[G,ee]=H.useState();Hp(()=>{S&&ee(window.getComputedStyle(S).zIndex)},[S]);const re=H.useCallback(Q=>{Q&&L.current===!0&&(P(),j==null||j(),L.current=!1)},[P,j]);return I.jsx(Ktr,{scope:s,contentWrapper:w,shouldExpandOnScrollRef:R,onScrollButtonChange:re,children:I.jsx("div",{ref:E,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:G},children:I.jsx(no.div,{...d,ref:A,style:{boxSizing:"border-box",maxHeight:"100%",...d.style}})})})});FKt.displayName=Vtr;var Wtr="SelectPopperPosition",JDe=H.forwardRef((n,i)=>{const{__scopeSelect:s,align:c="start",collisionPadding:d=_v,...g}=n,b=Jae(s);return I.jsx(rMe,{...b,...g,ref:i,align:c,collisionPadding:d,style:{boxSizing:"border-box",...g.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});JDe.displayName=Wtr;var[Ktr,qMe]=VM(SR,{}),XDe="SelectViewport",$Kt=H.forwardRef((n,i)=>{const{__scopeSelect:s,nonce:c,...d}=n,g=kN(XDe,s),b=qMe(XDe,s),w=hs(i,g.onViewportChange),E=H.useRef(0);return I.jsxs(I.Fragment,{children:[I.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:c}),I.jsx(Kae.Slot,{scope:s,children:I.jsx(no.div,{"data-radix-select-viewport":"",role:"presentation",...d,ref:w,style:{position:"relative",flex:1,overflow:"hidden auto",...d.style},onScroll:Dr(d.onScroll,S=>{const x=S.currentTarget,{contentWrapper:A,shouldExpandOnScrollRef:C}=b;if(C!=null&&C.current&&A){const R=Math.abs(E.current-x.scrollTop);if(R>0){const L=window.innerHeight-_v*2,D=parseFloat(A.style.minHeight),B=parseFloat(A.style.height),$=Math.max(D,B);if($0?G:0,A.style.justifyContent="flex-end")}}}E.current=x.scrollTop})})})]})});$Kt.displayName=XDe;var BKt="SelectGroup",[Ytr,Jtr]=VM(BKt),Xtr=H.forwardRef((n,i)=>{const{__scopeSelect:s,...c}=n,d=Bh();return I.jsx(Ytr,{scope:s,id:d,children:I.jsx(no.div,{role:"group","aria-labelledby":d,...c,ref:i})})});Xtr.displayName=BKt;var UKt="SelectLabel",HKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,...c}=n,d=Jtr(UKt,s);return I.jsx(no.div,{id:d.id,...c,ref:i})});HKt.displayName=UKt;var wse="SelectItem",[Ztr,zKt]=VM(wse),GKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,value:c,disabled:d=!1,textValue:g,...b}=n,w=xN(wse,s),E=kN(wse,s),S=w.value===c,[x,A]=H.useState(g??""),[C,R]=H.useState(!1),L=hs(i,j=>{var P;return(P=E.itemRefCallback)==null?void 0:P.call(E,j,c,d)}),D=Bh(),B=H.useRef("touch"),$=()=>{d||(w.onValueChange(c),w.onOpenChange(!1))};if(c==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return I.jsx(Ztr,{scope:s,value:c,disabled:d,textId:D,isSelected:S,onItemTextChange:H.useCallback(j=>{A(P=>P||((j==null?void 0:j.textContent)??"").trim())},[]),children:I.jsx(Kae.ItemSlot,{scope:s,value:c,disabled:d,textValue:x,children:I.jsx(no.div,{role:"option","aria-labelledby":D,"data-highlighted":C?"":void 0,"aria-selected":S&&C,"data-state":S?"checked":"unchecked","aria-disabled":d||void 0,"data-disabled":d?"":void 0,tabIndex:d?void 0:-1,...b,ref:L,onFocus:Dr(b.onFocus,()=>R(!0)),onBlur:Dr(b.onBlur,()=>R(!1)),onClick:Dr(b.onClick,()=>{B.current!=="mouse"&&$()}),onPointerUp:Dr(b.onPointerUp,()=>{B.current==="mouse"&&$()}),onPointerDown:Dr(b.onPointerDown,j=>{B.current=j.pointerType}),onPointerMove:Dr(b.onPointerMove,j=>{var P;B.current=j.pointerType,d?(P=E.onItemLeave)==null||P.call(E):B.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Dr(b.onPointerLeave,j=>{var P;j.currentTarget===document.activeElement&&((P=E.onItemLeave)==null||P.call(E))}),onKeyDown:Dr(b.onKeyDown,j=>{var G;((G=E.searchRef)==null?void 0:G.current)!==""&&j.key===" "||(jtr.includes(j.key)&&$(),j.key===" "&&j.preventDefault())})})})})});GKt.displayName=wse;var iH="SelectItemText",qKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,className:c,style:d,...g}=n,b=xN(iH,s),w=kN(iH,s),E=zKt(iH,s),S=Utr(iH,s),[x,A]=H.useState(null),C=hs(i,$=>A($),E.onItemTextChange,$=>{var j;return(j=w.itemTextRefCallback)==null?void 0:j.call(w,$,E.value,E.disabled)}),R=x==null?void 0:x.textContent,L=H.useMemo(()=>I.jsx("option",{value:E.value,disabled:E.disabled,children:R},E.value),[E.disabled,E.value,R]),{onNativeOptionAdd:D,onNativeOptionRemove:B}=S;return Hp(()=>(D(L),()=>B(L)),[D,B,L]),I.jsxs(I.Fragment,{children:[I.jsx(no.span,{id:E.textId,...g,ref:C}),E.isSelected&&b.valueNode&&!b.valueNodeHasChildren?xR.createPortal(g.children,b.valueNode):null]})});qKt.displayName=iH;var VKt="SelectItemIndicator",WKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,...c}=n;return zKt(VKt,s).isSelected?I.jsx(no.span,{"aria-hidden":!0,...c,ref:i}):null});WKt.displayName=VKt;var ZDe="SelectScrollUpButton",KKt=H.forwardRef((n,i)=>{const s=kN(ZDe,n.__scopeSelect),c=qMe(ZDe,n.__scopeSelect),[d,g]=H.useState(!1),b=hs(i,c.onScrollButtonChange);return Hp(()=>{if(s.viewport&&s.isPositioned){let w=function(){const S=E.scrollTop>0;g(S)};const E=s.viewport;return w(),E.addEventListener("scroll",w),()=>E.removeEventListener("scroll",w)}},[s.viewport,s.isPositioned]),d?I.jsx(JKt,{...n,ref:b,onAutoScroll:()=>{const{viewport:w,selectedItem:E}=s;w&&E&&(w.scrollTop=w.scrollTop-E.offsetHeight)}}):null});KKt.displayName=ZDe;var QDe="SelectScrollDownButton",YKt=H.forwardRef((n,i)=>{const s=kN(QDe,n.__scopeSelect),c=qMe(QDe,n.__scopeSelect),[d,g]=H.useState(!1),b=hs(i,c.onScrollButtonChange);return Hp(()=>{if(s.viewport&&s.isPositioned){let w=function(){const S=E.scrollHeight-E.clientHeight,x=Math.ceil(E.scrollTop)E.removeEventListener("scroll",w)}},[s.viewport,s.isPositioned]),d?I.jsx(JKt,{...n,ref:b,onAutoScroll:()=>{const{viewport:w,selectedItem:E}=s;w&&E&&(w.scrollTop=w.scrollTop+E.offsetHeight)}}):null});YKt.displayName=QDe;var JKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,onAutoScroll:c,...d}=n,g=kN("SelectScrollButton",s),b=H.useRef(null),w=Yae(s),E=H.useCallback(()=>{b.current!==null&&(window.clearInterval(b.current),b.current=null)},[]);return H.useEffect(()=>()=>E(),[E]),Hp(()=>{var x;const S=w().find(A=>A.ref.current===document.activeElement);(x=S==null?void 0:S.ref.current)==null||x.scrollIntoView({block:"nearest"})},[w]),I.jsx(no.div,{"aria-hidden":!0,...d,ref:i,style:{flexShrink:0,...d.style},onPointerDown:Dr(d.onPointerDown,()=>{b.current===null&&(b.current=window.setInterval(c,50))}),onPointerMove:Dr(d.onPointerMove,()=>{var S;(S=g.onItemLeave)==null||S.call(g),b.current===null&&(b.current=window.setInterval(c,50))}),onPointerLeave:Dr(d.onPointerLeave,()=>{E()})})}),Qtr="SelectSeparator",XKt=H.forwardRef((n,i)=>{const{__scopeSelect:s,...c}=n;return I.jsx(no.div,{"aria-hidden":!0,...c,ref:i})});XKt.displayName=Qtr;var eLe="SelectArrow",enr=H.forwardRef((n,i)=>{const{__scopeSelect:s,...c}=n,d=Jae(s),g=xN(eLe,s),b=kN(eLe,s);return g.open&&b.position==="popper"?I.jsx(iMe,{...d,...c,ref:i}):null});enr.displayName=eLe;var tnr="SelectBubbleInput",ZKt=H.forwardRef(({__scopeSelect:n,value:i,...s},c)=>{const d=H.useRef(null),g=hs(c,d),b=Gae(i);return H.useEffect(()=>{const w=d.current;if(!w)return;const E=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(E,"value").set;if(b!==i&&x){const A=new Event("change",{bubbles:!0});x.call(w,i),w.dispatchEvent(A)}},[b,i]),I.jsx(no.select,{...s,style:{...kKt,...s.style},ref:g,defaultValue:i})});ZKt.displayName=tnr;function QKt(n){return n===""||n===void 0}function eYt(n){const i=q2(n),s=H.useRef(""),c=H.useRef(0),d=H.useCallback(b=>{const w=s.current+b;i(w),function E(S){s.current=S,window.clearTimeout(c.current),S!==""&&(c.current=window.setTimeout(()=>E(""),1e3))}(w)},[i]),g=H.useCallback(()=>{s.current="",window.clearTimeout(c.current)},[]);return H.useEffect(()=>()=>window.clearTimeout(c.current),[]),[s,d,g]}function tYt(n,i,s){const d=i.length>1&&Array.from(i).every(S=>S===i[0])?i[0]:i,g=s?n.indexOf(s):-1;let b=nnr(n,Math.max(g,0));d.length===1&&(b=b.filter(S=>S!==s));const E=b.find(S=>S.textValue.toLowerCase().startsWith(d.toLowerCase()));return E!==s?E:void 0}function nnr(n,i){return n.map((s,c)=>n[(i+c)%n.length])}var rnr=NKt,nYt=IKt,inr=OKt,onr=DKt,snr=LKt,rYt=MKt,anr=$Kt,iYt=HKt,oYt=GKt,unr=qKt,cnr=WKt,sYt=KKt,aYt=YKt,uYt=XKt;const zp=rnr,Gp=inr,zh=H.forwardRef(({className:n,children:i,...s},c)=>I.jsxs(nYt,{ref:c,className:Sr("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[placeholder]:text-muted-foreground [&>span]:line-clamp-1",n),...s,children:[i,I.jsx(onr,{asChild:!0,children:I.jsx(nae,{className:"h-4 w-4 opacity-50"})})]}));zh.displayName=nYt.displayName;const cYt=H.forwardRef(({className:n,...i},s)=>I.jsx(sYt,{ref:s,className:Sr("flex cursor-default items-center justify-center py-1",n),...i,children:I.jsx(g8n,{className:"h-4 w-4"})}));cYt.displayName=sYt.displayName;const lYt=H.forwardRef(({className:n,...i},s)=>I.jsx(aYt,{ref:s,className:Sr("flex cursor-default items-center justify-center py-1",n),...i,children:I.jsx(nae,{className:"h-4 w-4"})}));lYt.displayName=aYt.displayName;const Gh=H.forwardRef(({className:n,children:i,position:s="popper",container:c,...d},g)=>I.jsx(snr,{container:c,children:I.jsxs(rYt,{ref:g,className:Sr("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",s==="popper"&&"data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",n),position:s,...d,children:[I.jsx(cYt,{}),I.jsx(anr,{className:Sr("p-1",s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:i}),I.jsx(lYt,{})]})}));Gh.displayName=rYt.displayName;const lnr=H.forwardRef(({className:n,...i},s)=>I.jsx(iYt,{ref:s,className:Sr("px-2 py-1.5 font-semibold text-sm",n),...i}));lnr.displayName=iYt.displayName;const to=H.forwardRef(({className:n,children:i,...s},c)=>I.jsxs(oYt,{ref:c,className:Sr("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...s,children:[I.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:I.jsx(cnr,{children:I.jsx(oN,{className:"h-4 w-4"})})}),I.jsx(unr,{children:i})]}));to.displayName=oYt.displayName;const dnr=H.forwardRef(({className:n,...i},s)=>I.jsx(uYt,{ref:s,className:Sr("-mx-1 my-1 h-px bg-muted",n),...i}));dnr.displayName=uYt.displayName;const fnr=["single","restart","queued","parallel"],hnr=["silent","warning","critical"],ZFt=new Set(["queued","parallel"]);function pnr(){const{t:n}=ps("common"),i=Do(C=>C.flowName),s=Do(C=>C.flowDescription),c=Do(C=>C.setFlowName),d=Do(C=>C.setFlowDescription),g=Do(C=>C.flowMetadata),b=Do(C=>C.setFlowMetadata),w=g.mode??"single",E=ZFt.has(w),S=C=>{const R=C,L={mode:R};ZFt.has(R)||(L.max=void 0,L.max_exceeded=void 0),b(L)},x=C=>{const R=Number.parseInt(C,10);C===""||Number.isNaN(R)?b({max:void 0}):R>0&&b({max:R})},A=C=>{b(C==="none"?{max_exceeded:void 0}:{max_exceeded:C})};return I.jsxs("div",{className:"h-full flex-1 space-y-4 overflow-y-auto p-4",children:[I.jsx("h3",{className:"mt-1.5 font-semibold text-foreground text-sm",children:n("automationSettings.title")}),I.jsx(Po,{label:n("labels.automationName"),children:I.jsx(Na,{type:"text",value:i,onChange:C=>c(C.target.value),placeholder:n("placeholders.enterAutomationName")})}),I.jsx(Po,{label:n("automationSettings.description"),children:I.jsx($v,{value:s,onChange:C=>d(C.target.value),placeholder:n("placeholders.describeAutomation"),rows:3})}),I.jsx(Pz,{}),I.jsxs(Po,{label:n("automationSettings.mode"),description:n("automationSettings.modeDescription"),children:[I.jsxs(zp,{value:w,onValueChange:S,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsx(Gh,{children:fnr.map(C=>I.jsx(to,{value:C,children:n(`automationSettings.modes.${C}`)},C))})]}),I.jsx("p",{className:"text-muted-foreground text-xs",children:n(`automationSettings.modeDescriptions.${w}`)})]}),E&&I.jsxs(I.Fragment,{children:[I.jsx(Po,{label:n("automationSettings.max"),description:n("automationSettings.maxDescription"),children:I.jsx(Na,{type:"number",min:1,value:g.max??"",onChange:C=>x(C.target.value),placeholder:"10"})}),g.max!=null&&I.jsx(Po,{label:n("automationSettings.maxExceeded"),description:n("automationSettings.maxExceededDescription"),children:I.jsxs(zp,{value:g.max_exceeded??"none",onValueChange:A,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"none",children:n("placeholders.none")}),hnr.map(C=>I.jsx(to,{value:C,children:n(`automationSettings.maxExceededOptions.${C}`)},C))]})]})})]})]})}function dYt({options:n,value:i,onChange:s,placeholder:c,className:d,buttonClassName:g,disabled:b=!1,renderOption:w,renderValue:E,searchKeys:S=["label","value"],fuzzyOptions:x={}}){const{t:A}=ps(["common"]),[C,R]=H.useState(!1),{query:L,setQuery:D,filteredItems:B}=rVt(n,{keys:S,threshold:.4,includeScore:!0,ignoreLocation:!0,includeMatches:!0,minMatchCharLength:1,...x}),$=n.find(P=>P.value===i),j=P=>{D(P)};return I.jsxs(sMe,{open:C,onOpenChange:R,children:[I.jsx(Wqt,{asChild:!0,children:I.jsxs(Ri,{variant:"outline",role:"combobox","aria-expanded":C,className:Sr("flex w-full justify-between",g),disabled:b,children:[$?E?E($):$.label:c||A("combobox.select"),I.jsx(cGt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),I.jsx(Tae,{className:Sr("w-[286px] p-0",d),children:I.jsxs(fae,{shouldFilter:!1,children:[I.jsx(hae,{placeholder:c||A("combobox.select"),className:"h-9",value:L,onValueChange:j}),I.jsxs(pae,{children:[I.jsx(gae,{children:A("combobox.noOptions")}),I.jsx(ez,{children:B.map(P=>I.jsxs(tz,{value:P.value,onSelect:G=>{s(G===i?"":G),R(!1),D("")},children:[w?w(P):P.label,I.jsx(oN,{className:Sr("ml-auto h-4 w-4",i===P.value?"opacity-100":"opacity-0")})]},P.value))})]})]})})]})}function tLe({values:n,onChange:i,placeholder:s="Add ID...",className:c}){const[d,g]=H.useState(""),b=()=>{const S=d.trim();S&&!n.includes(S)&&(i([...n,S]),g(""))},w=S=>{i(n.filter(x=>x!==S))},E=S=>{S.key==="Enter"&&(S.preventDefault(),b())};return I.jsxs("div",{className:Sr("space-y-1",c),children:[I.jsxs("div",{className:"flex gap-1",children:[I.jsx(Na,{value:d,onChange:S=>g(S.target.value),onKeyDown:E,placeholder:s,className:"flex-1 font-mono text-xs"}),I.jsx(Ri,{type:"button",size:"icon",variant:"outline",onClick:b,disabled:!d.trim(),children:I.jsx(iae,{className:"h-4 w-4"})})]}),n.length>0&&I.jsx("div",{className:"flex flex-wrap gap-1",children:n.map(S=>I.jsxs("span",{className:"inline-flex items-center rounded border bg-muted px-2 py-0.5 font-mono text-muted-foreground text-xs",children:[S,I.jsx(oae,{className:"ml-1 h-3 w-3 cursor-pointer hover:text-destructive",onClick:()=>w(S)})]},S))})]})}const gnr={light:{label:"Light",color:"bg-yellow-100 dark:bg-yellow-900/50 text-yellow-800 dark:text-yellow-200"},switch:{label:"Switch",color:"bg-blue-100 dark:bg-blue-900/50 text-blue-800 dark:text-blue-200"},sensor:{label:"Sensor",color:"bg-green-100 dark:bg-green-900/50 text-green-800 dark:text-green-200"},binary_sensor:{label:"Binary Sensor",color:"bg-purple-100 dark:bg-purple-900/50 text-purple-800 dark:text-purple-200"},climate:{label:"Climate",color:"bg-orange-100 dark:bg-orange-900/50 text-orange-800 dark:text-orange-200"},cover:{label:"Cover",color:"bg-indigo-100 dark:bg-indigo-900/50 text-indigo-800 dark:text-indigo-200"},fan:{label:"Fan",color:"bg-cyan-100 dark:bg-cyan-900/50 text-cyan-800 dark:text-cyan-200"},media_player:{label:"Media",color:"bg-pink-100 dark:bg-pink-900/50 text-pink-800 dark:text-pink-200"},automation:{label:"Automation",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},script:{label:"Script",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},scene:{label:"Scene",color:"bg-violet-100 dark:bg-violet-900/50 text-violet-800 dark:text-violet-200"},input_boolean:{label:"Input Bool",color:"bg-emerald-100 dark:bg-emerald-900/50 text-emerald-800 dark:text-emerald-200"},input_number:{label:"Input Num",color:"bg-emerald-100 dark:bg-emerald-900/50 text-emerald-800 dark:text-emerald-200"},input_select:{label:"Input Select",color:"bg-emerald-100 dark:bg-emerald-900/50 text-emerald-800 dark:text-emerald-200"},input_text:{label:"Input Text",color:"bg-emerald-100 dark:bg-emerald-900/50 text-emerald-800 dark:text-emerald-200"},input_datetime:{label:"Input Time",color:"bg-emerald-100 dark:bg-emerald-900/50 text-emerald-800 dark:text-emerald-200"},person:{label:"Person",color:"bg-amber-100 dark:bg-amber-900/50 text-amber-800 dark:text-amber-200"},device_tracker:{label:"Tracker",color:"bg-amber-100 dark:bg-amber-900/50 text-amber-800 dark:text-amber-200"},zone:{label:"Zone",color:"bg-lime-100 dark:bg-lime-900/50 text-lime-800 dark:text-lime-200"},sun:{label:"Sun",color:"bg-orange-100 dark:bg-orange-900/50 text-orange-800 dark:text-orange-200"},weather:{label:"Weather",color:"bg-sky-100 dark:bg-sky-900/50 text-sky-800 dark:text-sky-200"},camera:{label:"Camera",color:"bg-rose-100 dark:bg-rose-900/50 text-rose-800 dark:text-rose-200"},remote:{label:"Remote",color:"bg-gray-100 dark:bg-gray-700/50 text-gray-800 dark:text-gray-200"},vacuum:{label:"Vacuum",color:"bg-teal-100 dark:bg-teal-900/50 text-teal-800 dark:text-teal-200"},lock:{label:"Lock",color:"bg-red-100 dark:bg-red-900/50 text-red-800 dark:text-red-200"},alarm_control_panel:{label:"Alarm",color:"bg-red-100 dark:bg-red-900/50 text-red-800 dark:text-red-200"},water_heater:{label:"Water Heater",color:"bg-blue-100 dark:bg-blue-900/50 text-blue-800 dark:text-blue-200"},humidifier:{label:"Humidifier",color:"bg-cyan-100 dark:bg-cyan-900/50 text-cyan-800 dark:text-cyan-200"},button:{label:"Button",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},number:{label:"Number",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},select:{label:"Select",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},text:{label:"Text",color:"bg-slate-100 dark:bg-slate-700/50 text-slate-800 dark:text-slate-200"},update:{label:"Update",color:"bg-blue-100 dark:bg-blue-900/50 text-blue-800 dark:text-blue-200"}};function bnr(n){if(!n||typeof n!="string")return{label:"Unknown",color:"bg-gray-100 dark:bg-gray-700/50 text-gray-700 dark:text-gray-300"};const i=n.split(".")[0];return gnr[i]||{label:i,color:"bg-gray-100 dark:bg-gray-700/50 text-gray-700 dark:text-gray-300"}}function mnr(n){return n.attributes.friendly_name||n.entity_id}function yse({value:n,onChange:i,entities:s,placeholder:c="Select entity...",className:d,domainFilter:g}){const{entities:b,getDeviceNameForEntity:w,getAreaNameForEntity:E}=pb(),S=s??b,x=H.useMemo(()=>{if(!g)return S;const B=Array.isArray(g)?g:[g];return S.filter($=>{const j=$.entity_id.split(".")[0];return B.includes(j)})},[S,g]),A=H.useMemo(()=>x.map(B=>{const $=bnr(B.entity_id);return{value:B.entity_id,label:mnr(B),domainLabel:$.label,domainColor:$.color,deviceLabel:w(B.entity_id)??void 0,areaLabel:E(B.entity_id)??void 0}}),[x,w,E]),C=Array.isArray(n)?n[0]:n,R=x.find(B=>B.entity_id===C),L=C&&!R,D=B=>{i(B)};return I.jsxs("div",{className:Sr("relative",d),children:[I.jsx(dYt,{options:A,value:C||"",onChange:D,placeholder:c,buttonClassName:Sr(!C&&"text-muted-foreground"),disabled:A.length===0,searchKeys:["label","value","deviceLabel","areaLabel"],fuzzyOptions:{threshold:.3,minMatchCharLength:2},renderOption:B=>I.jsxs("div",{className:"flex min-w-0 flex-1 flex-col gap-2",children:[I.jsx("span",{children:B.label}),I.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[I.jsx("span",{className:Sr("rounded px-1.5 py-0.5 font-medium text-xs",B.domainColor),children:B.domainLabel}),B.deviceLabel&&I.jsx("span",{className:"truncate text-muted-foreground text-xs",children:B.deviceLabel}),B.areaLabel&&I.jsx("span",{className:"ml-auto shrink-0 text-muted-foreground text-xs",children:B.areaLabel})]})]}),renderValue:B=>B?I.jsxs("div",{className:"flex min-w-0 items-center gap-2",children:[I.jsx("span",{className:Sr("rounded px-1.5 py-0.5 font-medium text-xs",B.domainColor),children:B.domainLabel}),I.jsx("span",{className:"truncate",children:B.label})]}):null}),L&&I.jsx("div",{className:"mt-1 truncate font-mono text-red-600",children:C})]})}function Xae({value:n,onChange:i,entities:s,placeholder:c="Select entities...",className:d}){const g=w=>{n.includes(w)||i([...n,w])},b=w=>{i(n.filter(E=>E!==w))};return I.jsxs("div",{className:Sr("space-y-1",d),children:[I.jsx(yse,{value:"",onChange:g,entities:s,placeholder:c,className:"w-full"}),I.jsx("div",{className:"flex flex-wrap gap-1",children:n.map(w=>I.jsxs("span",{className:"inline-flex items-center rounded border bg-muted px-2 py-0.5 font-mono text-muted-foreground text-xs",children:[w,I.jsx(oae,{className:"ml-1 h-3 w-3 cursor-pointer hover:text-destructive",onClick:()=>b(w)})]},w))})]})}function VMe(n,i,s){const d=n.data[i];return d??s}function jh(n,i,s=""){const c=VMe(n,i,s);if(typeof c=="string")return c;if(typeof c=="object"&&c!==null&&!Array.isArray(c)){const d=c;if(typeof d.value=="string")return d.value}return s}function N5(n,i,s={}){const c=VMe(n,i,s);return typeof c=="object"&&c!==null&&!Array.isArray(c)?c:s}function wnr({response:n,responseVariable:i,showResponseVariable:s,setShowResponseVariable:c,onChange:d,handleResponseVariableChange:g}){const{t:b}=ps(["common","nodes"]),w=I.jsxs(I.Fragment,{children:[I.jsx(Na,{type:"text",value:i??"",onChange:g,placeholder:b("nodes:responseVariableField.placeholder")}),(i==null?void 0:i.trim())==="current_node"&&I.jsxs(dA,{variant:"destructive",className:"mt-2 border-0 px-0",children:[I.jsx(AKt,{children:b("labels.warning")}),I.jsx(fA,{children:b("nodes:responseVariableField.currentNodeWarning")})]})]});return n.optional?I.jsxs(Po,{label:b("nodes:responseVariableField.label"),description:b("nodes:responseVariableField.optionalDescription"),children:[I.jsxs("div",{className:"mb-2 flex items-center gap-3",children:[I.jsx(J2,{checked:s,onCheckedChange:E=>{c(E),E||d("response_variable",void 0)},id:"response-variable-switch"}),I.jsx("label",{htmlFor:"response-variable-switch",className:"cursor-pointer select-none text-sm",children:b("nodes:responseVariableField.useResponseVariable")})]}),s&&w]}):I.jsx(Po,{label:b("nodes:responseVariableField.label"),description:b("nodes:responseVariableField.requiredDescription"),children:w})}function ynr({serviceFields:n,currentData:i,onChange:s}){const{t:c}=ps(["common","nodes"]);return Object.keys(n).length===0?null:I.jsxs("div",{className:"mt-3 flex flex-col gap-3 border-t pt-3",children:[I.jsx("h4",{className:"mb-3 font-semibold text-muted-foreground text-xs",children:c("nodes:serviceDataFields.heading")}),Object.entries(n).map(([d,g])=>{var A;const b=g.selector||{},w=Object.keys(b)[0],E=b[w]||{},S=i[d],x=g.name||d.replace(/_/g," ").replace(/\b\w/g,C=>C.toUpperCase());if(w==="number"){const C=E;return I.jsx(Po,{label:`${x}${C.unit_of_measurement?` (${C.unit_of_measurement})`:""}`,required:g.required,description:g.description,children:I.jsx(Na,{type:"number",value:S??"",onChange:R=>s(d,R.target.value?Number(R.target.value):""),min:C.min,max:C.max,placeholder:g.example!==void 0?String(g.example):""})},d)}if(w==="select"){const C=E;return I.jsx(Po,{label:x,required:g.required,description:g.description,children:I.jsxs(zp,{value:String(S===""?"__NONE__":S??"__NONE__"),onValueChange:R=>s(d,R==="__NONE__"?"":R),children:[I.jsx(zh,{children:I.jsx(Gp,{placeholder:c("placeholders.none")})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"__NONE__",children:c("placeholders.none")}),(A=C.options)==null?void 0:A.map(R=>I.jsx(to,{value:R,children:R},R))]})]})},d)}if(w==="boolean")return I.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[I.jsx("input",{type:"checkbox",checked:S??!1,onChange:C=>s(d,C.target.checked),className:"rounded"}),I.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[x,g.required&&I.jsx("span",{className:"ml-0.5 text-destructive",children:c("labels.requiredAsterisk")})]})]},d);if(w==="entity"){if(E.multiple===!0){const L=Array.isArray(S)?S:S?[String(S)]:[];return I.jsx(Po,{label:x,required:g.required,description:g.description,children:I.jsx(Xae,{value:L,onChange:D=>s(d,D),placeholder:g.example!==void 0?String(g.example):void 0})},d)}return I.jsx(Po,{label:x,required:g.required,description:g.description,children:I.jsx(yse,{value:String(S??""),onChange:L=>s(d,L),placeholder:g.example!==void 0?String(g.example):void 0})},d)}return I.jsx(Po,{label:x,required:g.required,description:g.description,children:I.jsx(Na,{type:"text",value:S??"",onChange:C=>s(d,C.target.value),placeholder:g.example!==void 0?String(g.example):""})},d)})]})}const vnr=new Set(["homeassistant","group"]);function Enr(n,i){if(!n||!n.includes("."))return i;const s=n.split(".")[0];if(vnr.has(s))return i;const c=i.filter(d=>d.entity_id.startsWith(`${s}.`));return c.length>0?c:i}function Snr({node:n,onChange:i,entities:s}){const{t:c}=ps(["nodes"]),{getAllServices:d,getServiceDefinition:g}=pb(),{getFieldError:b}=gb(n.id),w=jh(n,"service"),E=jh(n,"event"),S=n.data,x=typeof S.stop=="string"?S.stop:void 0,A=S.error===!0,C=g(w),R=(C==null?void 0:C.fields)||{},L=N5(n,"data",{}),D=jh(n,"response_variable"),[B,$]=H.useState(!!D),j=x!==void 0?"stop":E?"event":"service";H.useEffect(()=>{$(!!D)},[D]);const P=Le=>{Le==="stop"?(i("service",void 0),i("target",void 0),i("data",void 0),i("event",void 0),i("event_data",void 0),i("stop",""),i("error",void 0)):Le==="event"?(i("service",void 0),i("target",void 0),i("data",void 0),i("stop",void 0),i("error",void 0)):(i("event",void 0),i("event_data",void 0),i("stop",void 0),i("error",void 0))},G=Le=>{i("service",Le),i("data",void 0)},ee=Le=>{const xe={...N5(n,"target",{}),entity_id:Le.length>0?Le:void 0};xe.entity_id||delete xe.entity_id,i("target",Object.keys(xe).length>0?xe:void 0)},re=Le=>{const xe={...N5(n,"target",{}),device_id:Le.length>0?Le:void 0};xe.device_id||delete xe.device_id,i("target",Object.keys(xe).length>0?xe:void 0)},Q=Le=>{const xe={...N5(n,"target",{}),area_id:Le.length>0?Le:void 0};xe.area_id||delete xe.area_id,i("target",Object.keys(xe).length>0?xe:void 0)},ie=(Le,Ae)=>{const xe={...L,[Le]:Ae===""?void 0:Ae},We=Object.fromEntries(Object.entries(xe).filter(([,dt])=>dt!==void 0&&dt!==""));i("data",Object.keys(We).length>0?We:void 0)},pe=Le=>{i("response_variable",Le.target.value===""?void 0:Le.target.value)},me=N5(n,"target",{}),le=Le=>Le?Array.isArray(Le)?Le:[Le]:[],fe=le(me.entity_id),K=le(me.device_id),he=le(me.area_id),Oe=K.length>0,Se=he.length>0;return I.jsxs(I.Fragment,{children:[I.jsx(Po,{label:c("nodes:actions.actionTypeLabel"),required:!0,children:I.jsxs(zp,{value:j,onValueChange:P,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"service",children:c("nodes:actions.actionTypes.service")}),I.jsx(to,{value:"event",children:c("nodes:actions.actionTypes.event")}),I.jsx(to,{value:"stop",children:c("nodes:actions.actionTypes.stop")})]})]})}),j==="stop"?I.jsxs(I.Fragment,{children:[I.jsx(Po,{label:c("nodes:actions.stopMessageLabel"),children:I.jsx(Na,{type:"text",value:x??"",onChange:Le=>i("stop",Le.target.value),placeholder:c("nodes:actions.stopMessagePlaceholder")})}),I.jsx(Po,{label:c("nodes:actions.markAsError"),children:I.jsx(J2,{checked:A,onCheckedChange:Le=>i("error",Le||void 0)})})]}):j==="event"?I.jsx(I.Fragment,{children:I.jsxs(Po,{label:c("nodes:actions.eventNameLabel"),required:!0,children:[I.jsx(Na,{type:"text",value:E,onChange:Le=>i("event",Le.target.value||void 0),placeholder:c("nodes:actions.eventNamePlaceholder")}),I.jsx(H2,{message:b("event")})]})}):I.jsxs(I.Fragment,{children:[I.jsxs(Po,{label:c("nodes:actions.actionLabel"),required:!0,children:[I.jsx(dYt,{options:d().map(({domain:Le,service:Ae})=>({value:`${Le}.${Ae}`,label:`${Le}.${Ae}`})),value:w,onChange:G,placeholder:c("nodes:actions.selectAction")}),I.jsx(H2,{message:b("service")})]}),((C==null?void 0:C.target)||fe.length>0)&&I.jsx(Po,{label:c("nodes:actions.targetEntities"),children:I.jsx(Xae,{value:fe,onChange:ee,entities:Enr(w,s),placeholder:c("nodes:actions.selectTargetEntities")})}),(Oe||(C==null?void 0:C.target))&&I.jsx(Po,{label:c("nodes:actions.targetDevices"),description:c("nodes:actions.targetDevicesDescription"),children:I.jsx(tLe,{values:K,onChange:re,placeholder:c("nodes:actions.addDeviceId")})}),(Se||(C==null?void 0:C.target))&&I.jsx(Po,{label:c("nodes:actions.targetAreas"),description:c("nodes:actions.targetAreasDescription"),children:I.jsx(tLe,{values:he,onChange:Q,placeholder:c("nodes:actions.addAreaId")})}),I.jsx(ynr,{serviceFields:R,currentData:L,onChange:ie}),(C==null?void 0:C.response)&&I.jsx(wnr,{response:C.response,responseVariable:D,showResponseVariable:B,setShowResponseVariable:$,onChange:i,handleResponseVariableChange:pe})]})]})}function fYt({value:n,onChange:i}){const{t:s}=ps(["common","nodes"]),c=typeof n=="string",d=!c&&typeof n=="object"&&n!==null?n:{},[g,b]=H.useState(c),w=S=>{if(b(S),S){const x=d.hours??0,A=d.minutes??0,C=d.seconds??0,R=d.milliseconds??0,L=[x,A,C].map(B=>B.toString().padStart(2,"0")).join(":"),D=R?`${L}.${R}`:L;i(D)}else if(c){const x=/^([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})(?:\.(\d{1,3}))?$/.exec(n);if(x){const[,A,C,R,L]=x;i({hours:Number(A),minutes:Number(C),seconds:Number(R),...L?{milliseconds:Number(L)}:{}})}else i({})}},E=(S,x)=>{const A=x===""?void 0:Number(x),C={...d,[S]:Number.isNaN(A)?void 0:A};Object.keys(C).forEach(R=>{const L=C[R];L==null&&delete C[R]}),i(C)};return I.jsxs("div",{className:"flex flex-col gap-2",children:[I.jsxs("div",{className:"flex items-center gap-2",children:[I.jsx("span",{className:"text-muted-foreground text-xs",children:s("nodes:durationField.string")}),I.jsx(J2,{checked:g,onCheckedChange:w}),I.jsx("span",{className:"text-muted-foreground text-xs",children:s("nodes:durationField.object")})]}),g?I.jsx(Na,{type:"text",value:c?n:"",onChange:S=>i(S.target.value),placeholder:s("nodes:durationField.placeholder")}):I.jsxs("div",{className:"flex gap-2",children:[I.jsxs("div",{className:"flex-1",children:[I.jsx(ll,{className:"text-muted-foreground text-xs",children:s("nodes:durationField.hours")}),I.jsx(Na,{type:"number",min:0,value:d.hours??"",onChange:S=>E("hours",S.target.value),placeholder:"0",className:"mt-1"})]}),I.jsxs("div",{className:"flex-1",children:[I.jsx(ll,{className:"text-muted-foreground text-xs",children:s("nodes:durationField.minutes")}),I.jsx(Na,{type:"number",min:0,value:d.minutes??"",onChange:S=>E("minutes",S.target.value),placeholder:"0",className:"mt-1"})]}),I.jsxs("div",{className:"flex-1",children:[I.jsx(ll,{className:"text-muted-foreground text-xs",children:s("nodes:durationField.seconds")}),I.jsx(Na,{type:"number",min:0,value:d.seconds??"",onChange:S=>E("seconds",S.target.value),placeholder:"0",className:"mt-1"})]}),I.jsxs("div",{className:"flex-1",children:[I.jsx(ll,{className:"text-muted-foreground text-xs",children:s("nodes:durationField.milliseconds")}),I.jsx(Na,{type:"number",min:0,value:d.milliseconds??"",onChange:S=>E("milliseconds",S.target.value),placeholder:"0",className:"mt-1"})]})]})]})}function hYt({label:n,description:i,value:s,onChange:c}){const{t:d}=ps(["common","nodes"]);return I.jsx(Po,{label:n??d("nodes:durationField.label"),description:i||d("nodes:durationField.description"),children:I.jsx(fYt,{value:s,onChange:c})})}var VOe="rovingFocusGroup.onEntryFocus",Tnr={bubbles:!1,cancelable:!0},Fz="RovingFocusGroup",[nLe,pYt,Anr]=Wae(Fz),[_nr,Zae]=xw(Fz,[Anr]),[xnr,knr]=_nr(Fz),gYt=H.forwardRef((n,i)=>I.jsx(nLe.Provider,{scope:n.__scopeRovingFocusGroup,children:I.jsx(nLe.Slot,{scope:n.__scopeRovingFocusGroup,children:I.jsx(Nnr,{...n,ref:i})})}));gYt.displayName=Fz;var Nnr=H.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:s,orientation:c,loop:d=!1,dir:g,currentTabStopId:b,defaultCurrentTabStopId:w,onCurrentTabStopIdChange:E,onEntryFocus:S,preventScrollOnEntryFocus:x=!1,...A}=n,C=H.useRef(null),R=hs(i,C),L=jz(g),[D,B]=G2({prop:b,defaultProp:w??null,onChange:E,caller:Fz}),[$,j]=H.useState(!1),P=q2(S),G=pYt(s),ee=H.useRef(!1),[re,Q]=H.useState(0);return H.useEffect(()=>{const ie=C.current;if(ie)return ie.addEventListener(VOe,P),()=>ie.removeEventListener(VOe,P)},[P]),I.jsx(xnr,{scope:s,orientation:c,dir:L,loop:d,currentTabStopId:D,onItemFocus:H.useCallback(ie=>B(ie),[B]),onItemShiftTab:H.useCallback(()=>j(!0),[]),onFocusableItemAdd:H.useCallback(()=>Q(ie=>ie+1),[]),onFocusableItemRemove:H.useCallback(()=>Q(ie=>ie-1),[]),children:I.jsx(no.div,{tabIndex:$||re===0?-1:0,"data-orientation":c,...A,ref:R,style:{outline:"none",...n.style},onMouseDown:Dr(n.onMouseDown,()=>{ee.current=!0}),onFocus:Dr(n.onFocus,ie=>{const pe=!ee.current;if(ie.target===ie.currentTarget&&pe&&!$){const me=new CustomEvent(VOe,Tnr);if(ie.currentTarget.dispatchEvent(me),!me.defaultPrevented){const le=G().filter(Se=>Se.focusable),fe=le.find(Se=>Se.active),K=le.find(Se=>Se.id===D),Oe=[fe,K,...le].filter(Boolean).map(Se=>Se.ref.current);wYt(Oe,x)}}ee.current=!1}),onBlur:Dr(n.onBlur,()=>j(!1))})})}),bYt="RovingFocusGroupItem",mYt=H.forwardRef((n,i)=>{const{__scopeRovingFocusGroup:s,focusable:c=!0,active:d=!1,tabStopId:g,children:b,...w}=n,E=Bh(),S=g||E,x=knr(bYt,s),A=x.currentTabStopId===S,C=pYt(s),{onFocusableItemAdd:R,onFocusableItemRemove:L,currentTabStopId:D}=x;return H.useEffect(()=>{if(c)return R(),()=>L()},[c,R,L]),I.jsx(nLe.ItemSlot,{scope:s,id:S,focusable:c,active:d,children:I.jsx(no.span,{tabIndex:A?0:-1,"data-orientation":x.orientation,...w,ref:i,onMouseDown:Dr(n.onMouseDown,B=>{c?x.onItemFocus(S):B.preventDefault()}),onFocus:Dr(n.onFocus,()=>x.onItemFocus(S)),onKeyDown:Dr(n.onKeyDown,B=>{if(B.key==="Tab"&&B.shiftKey){x.onItemShiftTab();return}if(B.target!==B.currentTarget)return;const $=Rnr(B,x.orientation,x.dir);if($!==void 0){if(B.metaKey||B.ctrlKey||B.altKey||B.shiftKey)return;B.preventDefault();let P=C().filter(G=>G.focusable).map(G=>G.ref.current);if($==="last")P.reverse();else if($==="prev"||$==="next"){$==="prev"&&P.reverse();const G=P.indexOf(B.currentTarget);P=x.loop?Onr(P,G+1):P.slice(G+1)}setTimeout(()=>wYt(P))}}),children:typeof b=="function"?b({isCurrentTabStop:A,hasTabStop:D!=null}):b})})});mYt.displayName=bYt;var Cnr={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Inr(n,i){return i!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Rnr(n,i,s){const c=Inr(n.key,s);if(!(i==="vertical"&&["ArrowLeft","ArrowRight"].includes(c))&&!(i==="horizontal"&&["ArrowUp","ArrowDown"].includes(c)))return Cnr[c]}function wYt(n,i=!1){const s=document.activeElement;for(const c of n)if(c===s||(c.focus({preventScroll:i}),document.activeElement!==s))return}function Onr(n,i){return n.map((s,c)=>n[(i+c)%n.length])}var yYt=gYt,vYt=mYt;function Dnr(n){const i=Lnr(n),s=H.forwardRef((c,d)=>{const{children:g,...b}=c,w=H.Children.toArray(g),E=w.find(Pnr);if(E){const S=E.props.children,x=w.map(A=>A===E?H.Children.count(S)>1?H.Children.only(null):H.isValidElement(S)?S.props.children:null:A);return I.jsx(i,{...b,ref:d,children:H.isValidElement(S)?H.cloneElement(S,void 0,x):null})}return I.jsx(i,{...b,ref:d,children:g})});return s.displayName=`${n}.Slot`,s}function Lnr(n){const i=H.forwardRef((s,c)=>{const{children:d,...g}=s;if(H.isValidElement(d)){const b=Fnr(d),w=jnr(g,d.props);return d.type!==H.Fragment&&(w.ref=c?zg(c,b):b),H.cloneElement(d,w)}return H.Children.count(d)>1?H.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var Mnr=Symbol("radix.slottable");function Pnr(n){return H.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Mnr}function jnr(n,i){const s={...i};for(const c in i){const d=n[c],g=i[c];/^on[A-Z]/.test(c)?d&&g?s[c]=(...w)=>{const E=g(...w);return d(...w),E}:d&&(s[c]=d):c==="style"?s[c]={...d,...g}:c==="className"&&(s[c]=[d,g].filter(Boolean).join(" "))}return{...n,...s}}function Fnr(n){var c,d;let i=(c=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(d=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:d.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var rLe=["Enter"," "],$nr=["ArrowDown","PageUp","Home"],EYt=["ArrowUp","PageDown","End"],Bnr=[...$nr,...EYt],Unr={ltr:[...rLe,"ArrowRight"],rtl:[...rLe,"ArrowLeft"]},Hnr={ltr:["ArrowLeft"],rtl:["ArrowRight"]},$z="Menu",[lz,znr,Gnr]=Wae($z),[LR,SYt]=xw($z,[Gnr,BM,Zae]),Qae=BM(),TYt=Zae(),[qnr,MR]=LR($z),[Vnr,Bz]=LR($z),AYt=n=>{const{__scopeMenu:i,open:s=!1,children:c,dir:d,onOpenChange:g,modal:b=!0}=n,w=Qae(i),[E,S]=H.useState(null),x=H.useRef(!1),A=q2(g),C=jz(d);return H.useEffect(()=>{const R=()=>{x.current=!0,document.addEventListener("pointerdown",L,{capture:!0,once:!0}),document.addEventListener("pointermove",L,{capture:!0,once:!0})},L=()=>x.current=!1;return document.addEventListener("keydown",R,{capture:!0}),()=>{document.removeEventListener("keydown",R,{capture:!0}),document.removeEventListener("pointerdown",L,{capture:!0}),document.removeEventListener("pointermove",L,{capture:!0})}},[]),I.jsx(nMe,{...w,children:I.jsx(qnr,{scope:i,open:s,onOpenChange:A,content:E,onContentChange:S,children:I.jsx(Vnr,{scope:i,onClose:H.useCallback(()=>A(!1),[A]),isUsingKeyboardRef:x,dir:C,modal:b,children:c})})})};AYt.displayName=$z;var Wnr="MenuAnchor",WMe=H.forwardRef((n,i)=>{const{__scopeMenu:s,...c}=n,d=Qae(s);return I.jsx(Eae,{...d,...c,ref:i})});WMe.displayName=Wnr;var KMe="MenuPortal",[Knr,_Yt]=LR(KMe,{forceMount:void 0}),xYt=n=>{const{__scopeMenu:i,forceMount:s,children:c,container:d}=n,g=MR(KMe,i);return I.jsx(Knr,{scope:i,forceMount:s,children:I.jsx(kw,{present:s||g.open,children:I.jsx(Cz,{asChild:!0,container:d,children:c})})})};xYt.displayName=KMe;var Sw="MenuContent",[Ynr,YMe]=LR(Sw),kYt=H.forwardRef((n,i)=>{const s=_Yt(Sw,n.__scopeMenu),{forceMount:c=s.forceMount,...d}=n,g=MR(Sw,n.__scopeMenu),b=Bz(Sw,n.__scopeMenu);return I.jsx(lz.Provider,{scope:n.__scopeMenu,children:I.jsx(kw,{present:c||g.open,children:I.jsx(lz.Slot,{scope:n.__scopeMenu,children:b.modal?I.jsx(Jnr,{...d,ref:i}):I.jsx(Xnr,{...d,ref:i})})})})}),Jnr=H.forwardRef((n,i)=>{const s=MR(Sw,n.__scopeMenu),c=H.useRef(null),d=hs(i,c);return H.useEffect(()=>{const g=c.current;if(g)return uae(g)},[]),I.jsx(JMe,{...n,ref:d,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:Dr(n.onFocusOutside,g=>g.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})}),Xnr=H.forwardRef((n,i)=>{const s=MR(Sw,n.__scopeMenu);return I.jsx(JMe,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>s.onOpenChange(!1)})}),Znr=Dnr("MenuContent.ScrollLock"),JMe=H.forwardRef((n,i)=>{const{__scopeMenu:s,loop:c=!1,trapFocus:d,onOpenAutoFocus:g,onCloseAutoFocus:b,disableOutsidePointerEvents:w,onEntryFocus:E,onEscapeKeyDown:S,onPointerDownOutside:x,onFocusOutside:A,onInteractOutside:C,onDismiss:R,disableOutsideScroll:L,...D}=n,B=MR(Sw,s),$=Bz(Sw,s),j=Qae(s),P=TYt(s),G=znr(s),[ee,re]=H.useState(null),Q=H.useRef(null),ie=hs(i,Q,B.onContentChange),pe=H.useRef(0),me=H.useRef(""),le=H.useRef(0),fe=H.useRef(null),K=H.useRef("right"),he=H.useRef(0),Oe=L?Iz:H.Fragment,Se=L?{as:Znr,allowPinchZoom:!0}:void 0,Le=xe=>{var vt,Ct;const We=me.current+xe,dt=G().filter(Ft=>!Ft.disabled),Ue=document.activeElement,bt=(vt=dt.find(Ft=>Ft.ref.current===Ue))==null?void 0:vt.textValue,kt=dt.map(Ft=>Ft.textValue),ht=lrr(kt,We,bt),Xt=(Ct=dt.find(Ft=>Ft.textValue===ht))==null?void 0:Ct.ref.current;(function Ft(On){me.current=On,window.clearTimeout(pe.current),On!==""&&(pe.current=window.setTimeout(()=>Ft(""),1e3))})(We),Xt&&setTimeout(()=>Xt.focus())};H.useEffect(()=>()=>window.clearTimeout(pe.current),[]),sae();const Ae=H.useCallback(xe=>{var dt,Ue;return K.current===((dt=fe.current)==null?void 0:dt.side)&&frr(xe,(Ue=fe.current)==null?void 0:Ue.area)},[]);return I.jsx(Ynr,{scope:s,searchRef:me,onItemEnter:H.useCallback(xe=>{Ae(xe)&&xe.preventDefault()},[Ae]),onItemLeave:H.useCallback(xe=>{var We;Ae(xe)||((We=Q.current)==null||We.focus(),re(null))},[Ae]),onTriggerLeave:H.useCallback(xe=>{Ae(xe)&&xe.preventDefault()},[Ae]),pointerGraceTimerRef:le,onPointerGraceIntentChange:H.useCallback(xe=>{fe.current=xe},[]),children:I.jsx(Oe,{...Se,children:I.jsx(Nz,{asChild:!0,trapped:d,onMountAutoFocus:Dr(g,xe=>{var We;xe.preventDefault(),(We=Q.current)==null||We.focus({preventScroll:!0})}),onUnmountAutoFocus:b,children:I.jsx(kz,{asChild:!0,disableOutsidePointerEvents:w,onEscapeKeyDown:S,onPointerDownOutside:x,onFocusOutside:A,onInteractOutside:C,onDismiss:R,children:I.jsx(yYt,{asChild:!0,...P,dir:$.dir,orientation:"vertical",loop:c,currentTabStopId:ee,onCurrentTabStopIdChange:re,onEntryFocus:Dr(E,xe=>{$.isUsingKeyboardRef.current||xe.preventDefault()}),preventScrollOnEntryFocus:!0,children:I.jsx(rMe,{role:"menu","aria-orientation":"vertical","data-state":zYt(B.open),"data-radix-menu-content":"",dir:$.dir,...j,...D,ref:ie,style:{outline:"none",...D.style},onKeyDown:Dr(D.onKeyDown,xe=>{const dt=xe.target.closest("[data-radix-menu-content]")===xe.currentTarget,Ue=xe.ctrlKey||xe.altKey||xe.metaKey,bt=xe.key.length===1;dt&&(xe.key==="Tab"&&xe.preventDefault(),!Ue&&bt&&Le(xe.key));const kt=Q.current;if(xe.target!==kt||!Bnr.includes(xe.key))return;xe.preventDefault();const Xt=G().filter(vt=>!vt.disabled).map(vt=>vt.ref.current);EYt.includes(xe.key)&&Xt.reverse(),urr(Xt)}),onBlur:Dr(n.onBlur,xe=>{xe.currentTarget.contains(xe.target)||(window.clearTimeout(pe.current),me.current="")}),onPointerMove:Dr(n.onPointerMove,dz(xe=>{const We=xe.target,dt=he.current!==xe.clientX;if(xe.currentTarget.contains(We)&&dt){const Ue=xe.clientX>he.current?"right":"left";K.current=Ue,he.current=xe.clientX}}))})})})})})})});kYt.displayName=Sw;var Qnr="MenuGroup",XMe=H.forwardRef((n,i)=>{const{__scopeMenu:s,...c}=n;return I.jsx(no.div,{role:"group",...c,ref:i})});XMe.displayName=Qnr;var err="MenuLabel",NYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,...c}=n;return I.jsx(no.div,{...c,ref:i})});NYt.displayName=err;var vse="MenuItem",QFt="menu.itemSelect",eue=H.forwardRef((n,i)=>{const{disabled:s=!1,onSelect:c,...d}=n,g=H.useRef(null),b=Bz(vse,n.__scopeMenu),w=YMe(vse,n.__scopeMenu),E=hs(i,g),S=H.useRef(!1),x=()=>{const A=g.current;if(!s&&A){const C=new CustomEvent(QFt,{bubbles:!0,cancelable:!0});A.addEventListener(QFt,R=>c==null?void 0:c(R),{once:!0}),EGt(A,C),C.defaultPrevented?S.current=!1:b.onClose()}};return I.jsx(CYt,{...d,ref:E,disabled:s,onClick:Dr(n.onClick,x),onPointerDown:A=>{var C;(C=n.onPointerDown)==null||C.call(n,A),S.current=!0},onPointerUp:Dr(n.onPointerUp,A=>{var C;S.current||(C=A.currentTarget)==null||C.click()}),onKeyDown:Dr(n.onKeyDown,A=>{const C=w.searchRef.current!=="";s||C&&A.key===" "||rLe.includes(A.key)&&(A.currentTarget.click(),A.preventDefault())})})});eue.displayName=vse;var CYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,disabled:c=!1,textValue:d,...g}=n,b=YMe(vse,s),w=TYt(s),E=H.useRef(null),S=hs(i,E),[x,A]=H.useState(!1),[C,R]=H.useState("");return H.useEffect(()=>{const L=E.current;L&&R((L.textContent??"").trim())},[g.children]),I.jsx(lz.ItemSlot,{scope:s,disabled:c,textValue:d??C,children:I.jsx(vYt,{asChild:!0,...w,focusable:!c,children:I.jsx(no.div,{role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":c||void 0,"data-disabled":c?"":void 0,...g,ref:S,onPointerMove:Dr(n.onPointerMove,dz(L=>{c?b.onItemLeave(L):(b.onItemEnter(L),L.defaultPrevented||L.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Dr(n.onPointerLeave,dz(L=>b.onItemLeave(L))),onFocus:Dr(n.onFocus,()=>A(!0)),onBlur:Dr(n.onBlur,()=>A(!1))})})})}),trr="MenuCheckboxItem",IYt=H.forwardRef((n,i)=>{const{checked:s=!1,onCheckedChange:c,...d}=n;return I.jsx(MYt,{scope:n.__scopeMenu,checked:s,children:I.jsx(eue,{role:"menuitemcheckbox","aria-checked":Ese(s)?"mixed":s,...d,ref:i,"data-state":QMe(s),onSelect:Dr(d.onSelect,()=>c==null?void 0:c(Ese(s)?!0:!s),{checkForDefaultPrevented:!1})})})});IYt.displayName=trr;var RYt="MenuRadioGroup",[nrr,rrr]=LR(RYt,{value:void 0,onValueChange:()=>{}}),OYt=H.forwardRef((n,i)=>{const{value:s,onValueChange:c,...d}=n,g=q2(c);return I.jsx(nrr,{scope:n.__scopeMenu,value:s,onValueChange:g,children:I.jsx(XMe,{...d,ref:i})})});OYt.displayName=RYt;var DYt="MenuRadioItem",LYt=H.forwardRef((n,i)=>{const{value:s,...c}=n,d=rrr(DYt,n.__scopeMenu),g=s===d.value;return I.jsx(MYt,{scope:n.__scopeMenu,checked:g,children:I.jsx(eue,{role:"menuitemradio","aria-checked":g,...c,ref:i,"data-state":QMe(g),onSelect:Dr(c.onSelect,()=>{var b;return(b=d.onValueChange)==null?void 0:b.call(d,s)},{checkForDefaultPrevented:!1})})})});LYt.displayName=DYt;var ZMe="MenuItemIndicator",[MYt,irr]=LR(ZMe,{checked:!1}),PYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,forceMount:c,...d}=n,g=irr(ZMe,s);return I.jsx(kw,{present:c||Ese(g.checked)||g.checked===!0,children:I.jsx(no.span,{...d,ref:i,"data-state":QMe(g.checked)})})});PYt.displayName=ZMe;var orr="MenuSeparator",jYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,...c}=n;return I.jsx(no.div,{role:"separator","aria-orientation":"horizontal",...c,ref:i})});jYt.displayName=orr;var srr="MenuArrow",FYt=H.forwardRef((n,i)=>{const{__scopeMenu:s,...c}=n,d=Qae(s);return I.jsx(iMe,{...d,...c,ref:i})});FYt.displayName=srr;var arr="MenuSub",[Wgr,$Yt]=LR(arr),oH="MenuSubTrigger",BYt=H.forwardRef((n,i)=>{const s=MR(oH,n.__scopeMenu),c=Bz(oH,n.__scopeMenu),d=$Yt(oH,n.__scopeMenu),g=YMe(oH,n.__scopeMenu),b=H.useRef(null),{pointerGraceTimerRef:w,onPointerGraceIntentChange:E}=g,S={__scopeMenu:n.__scopeMenu},x=H.useCallback(()=>{b.current&&window.clearTimeout(b.current),b.current=null},[]);return H.useEffect(()=>x,[x]),H.useEffect(()=>{const A=w.current;return()=>{window.clearTimeout(A),E(null)}},[w,E]),I.jsx(WMe,{asChild:!0,...S,children:I.jsx(CYt,{id:d.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":d.contentId,"data-state":zYt(s.open),...n,ref:zg(i,d.onTriggerChange),onClick:A=>{var C;(C=n.onClick)==null||C.call(n,A),!(n.disabled||A.defaultPrevented)&&(A.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:Dr(n.onPointerMove,dz(A=>{g.onItemEnter(A),!A.defaultPrevented&&!n.disabled&&!s.open&&!b.current&&(g.onPointerGraceIntentChange(null),b.current=window.setTimeout(()=>{s.onOpenChange(!0),x()},100))})),onPointerLeave:Dr(n.onPointerLeave,dz(A=>{var R,L;x();const C=(R=s.content)==null?void 0:R.getBoundingClientRect();if(C){const D=(L=s.content)==null?void 0:L.dataset.side,B=D==="right",$=B?-5:5,j=C[B?"left":"right"],P=C[B?"right":"left"];g.onPointerGraceIntentChange({area:[{x:A.clientX+$,y:A.clientY},{x:j,y:C.top},{x:P,y:C.top},{x:P,y:C.bottom},{x:j,y:C.bottom}],side:D}),window.clearTimeout(w.current),w.current=window.setTimeout(()=>g.onPointerGraceIntentChange(null),300)}else{if(g.onTriggerLeave(A),A.defaultPrevented)return;g.onPointerGraceIntentChange(null)}})),onKeyDown:Dr(n.onKeyDown,A=>{var R;const C=g.searchRef.current!=="";n.disabled||C&&A.key===" "||Unr[c.dir].includes(A.key)&&(s.onOpenChange(!0),(R=s.content)==null||R.focus(),A.preventDefault())})})})});BYt.displayName=oH;var UYt="MenuSubContent",HYt=H.forwardRef((n,i)=>{const s=_Yt(Sw,n.__scopeMenu),{forceMount:c=s.forceMount,...d}=n,g=MR(Sw,n.__scopeMenu),b=Bz(Sw,n.__scopeMenu),w=$Yt(UYt,n.__scopeMenu),E=H.useRef(null),S=hs(i,E);return I.jsx(lz.Provider,{scope:n.__scopeMenu,children:I.jsx(kw,{present:c||g.open,children:I.jsx(lz.Slot,{scope:n.__scopeMenu,children:I.jsx(JMe,{id:w.contentId,"aria-labelledby":w.triggerId,...d,ref:S,align:"start",side:b.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:x=>{var A;b.isUsingKeyboardRef.current&&((A=E.current)==null||A.focus()),x.preventDefault()},onCloseAutoFocus:x=>x.preventDefault(),onFocusOutside:Dr(n.onFocusOutside,x=>{x.target!==w.trigger&&g.onOpenChange(!1)}),onEscapeKeyDown:Dr(n.onEscapeKeyDown,x=>{b.onClose(),x.preventDefault()}),onKeyDown:Dr(n.onKeyDown,x=>{var R;const A=x.currentTarget.contains(x.target),C=Hnr[b.dir].includes(x.key);A&&C&&(g.onOpenChange(!1),(R=w.trigger)==null||R.focus(),x.preventDefault())})})})})})});HYt.displayName=UYt;function zYt(n){return n?"open":"closed"}function Ese(n){return n==="indeterminate"}function QMe(n){return Ese(n)?"indeterminate":n?"checked":"unchecked"}function urr(n){const i=document.activeElement;for(const s of n)if(s===i||(s.focus(),document.activeElement!==i))return}function crr(n,i){return n.map((s,c)=>n[(i+c)%n.length])}function lrr(n,i,s){const d=i.length>1&&Array.from(i).every(S=>S===i[0])?i[0]:i,g=s?n.indexOf(s):-1;let b=crr(n,Math.max(g,0));d.length===1&&(b=b.filter(S=>S!==s));const E=b.find(S=>S.toLowerCase().startsWith(d.toLowerCase()));return E!==s?E:void 0}function drr(n,i){const{x:s,y:c}=n;let d=!1;for(let g=0,b=i.length-1;gc!=C>c&&s<(A-S)*(c-x)/(C-x)+S&&(d=!d)}return d}function frr(n,i){if(!i)return!1;const s={x:n.clientX,y:n.clientY};return drr(s,i)}function dz(n){return i=>i.pointerType==="mouse"?n(i):void 0}var hrr=AYt,prr=WMe,grr=xYt,brr=kYt,mrr=XMe,wrr=NYt,yrr=eue,vrr=IYt,Err=OYt,Srr=LYt,Trr=PYt,Arr=jYt,_rr=FYt,xrr=BYt,krr=HYt,tue="DropdownMenu",[Nrr]=xw(tue,[SYt]),Wg=SYt(),[Crr,GYt]=Nrr(tue),qYt=n=>{const{__scopeDropdownMenu:i,children:s,dir:c,open:d,defaultOpen:g,onOpenChange:b,modal:w=!0}=n,E=Wg(i),S=H.useRef(null),[x,A]=G2({prop:d,defaultProp:g??!1,onChange:b,caller:tue});return I.jsx(Crr,{scope:i,triggerId:Bh(),triggerRef:S,contentId:Bh(),open:x,onOpenChange:A,onOpenToggle:H.useCallback(()=>A(C=>!C),[A]),modal:w,children:I.jsx(hrr,{...E,open:x,onOpenChange:A,dir:c,modal:w,children:s})})};qYt.displayName=tue;var VYt="DropdownMenuTrigger",WYt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,disabled:c=!1,...d}=n,g=GYt(VYt,s),b=Wg(s);return I.jsx(prr,{asChild:!0,...b,children:I.jsx(no.button,{type:"button",id:g.triggerId,"aria-haspopup":"menu","aria-expanded":g.open,"aria-controls":g.open?g.contentId:void 0,"data-state":g.open?"open":"closed","data-disabled":c?"":void 0,disabled:c,...d,ref:zg(i,g.triggerRef),onPointerDown:Dr(n.onPointerDown,w=>{!c&&w.button===0&&w.ctrlKey===!1&&(g.onOpenToggle(),g.open||w.preventDefault())}),onKeyDown:Dr(n.onKeyDown,w=>{c||(["Enter"," "].includes(w.key)&&g.onOpenToggle(),w.key==="ArrowDown"&&g.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(w.key)&&w.preventDefault())})})})});WYt.displayName=VYt;var Irr="DropdownMenuPortal",KYt=n=>{const{__scopeDropdownMenu:i,...s}=n,c=Wg(i);return I.jsx(grr,{...c,...s})};KYt.displayName=Irr;var YYt="DropdownMenuContent",JYt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=GYt(YYt,s),g=Wg(s),b=H.useRef(!1);return I.jsx(brr,{id:d.contentId,"aria-labelledby":d.triggerId,...g,...c,ref:i,onCloseAutoFocus:Dr(n.onCloseAutoFocus,w=>{var E;b.current||(E=d.triggerRef.current)==null||E.focus(),b.current=!1,w.preventDefault()}),onInteractOutside:Dr(n.onInteractOutside,w=>{const E=w.detail.originalEvent,S=E.button===0&&E.ctrlKey===!0,x=E.button===2||S;(!d.modal||x)&&(b.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});JYt.displayName=YYt;var Rrr="DropdownMenuGroup",Orr=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Wg(s);return I.jsx(mrr,{...d,...c,ref:i})});Orr.displayName=Rrr;var Drr="DropdownMenuLabel",XYt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Wg(s);return I.jsx(wrr,{...d,...c,ref:i})});XYt.displayName=Drr;var Lrr="DropdownMenuItem",ZYt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Wg(s);return I.jsx(yrr,{...d,...c,ref:i})});ZYt.displayName=Lrr;var Mrr="DropdownMenuCheckboxItem",QYt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Wg(s);return I.jsx(vrr,{...d,...c,ref:i})});QYt.displayName=Mrr;var Prr="DropdownMenuRadioGroup",jrr=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Wg(s);return I.jsx(Err,{...d,...c,ref:i})});jrr.displayName=Prr;var Frr="DropdownMenuRadioItem",eJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Wg(s);return I.jsx(Srr,{...d,...c,ref:i})});eJt.displayName=Frr;var $rr="DropdownMenuItemIndicator",tJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Wg(s);return I.jsx(Trr,{...d,...c,ref:i})});tJt.displayName=$rr;var Brr="DropdownMenuSeparator",nJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Wg(s);return I.jsx(Arr,{...d,...c,ref:i})});nJt.displayName=Brr;var Urr="DropdownMenuArrow",Hrr=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Wg(s);return I.jsx(_rr,{...d,...c,ref:i})});Hrr.displayName=Urr;var zrr="DropdownMenuSubTrigger",rJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Wg(s);return I.jsx(xrr,{...d,...c,ref:i})});rJt.displayName=zrr;var Grr="DropdownMenuSubContent",iJt=H.forwardRef((n,i)=>{const{__scopeDropdownMenu:s,...c}=n,d=Wg(s);return I.jsx(krr,{...d,...c,ref:i,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});iJt.displayName=Grr;var qrr=qYt,Vrr=WYt,Wrr=KYt,oJt=JYt,sJt=XYt,aJt=ZYt,uJt=QYt,cJt=eJt,lJt=tJt,dJt=nJt,fJt=rJt,hJt=iJt;const pJt=qrr,gJt=Vrr,Krr=H.forwardRef(({className:n,inset:i,children:s,...c},d)=>I.jsxs(fJt,{ref:d,className:Sr("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",i&&"pl-8",n),...c,children:[s,I.jsx(h8n,{className:"ml-auto"})]}));Krr.displayName=fJt.displayName;const Yrr=H.forwardRef(({className:n,...i},s)=>I.jsx(hJt,{ref:s,className:Sr("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in",n),...i}));Yrr.displayName=hJt.displayName;const e9e=H.forwardRef(({className:n,sideOffset:i=4,container:s,...c},d)=>I.jsx(Wrr,{container:s,children:I.jsx(oJt,{ref:d,sideOffset:i,className:Sr("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin] data-[state=closed]:animate-out data-[state=open]:animate-in",n),...c})}));e9e.displayName=oJt.displayName;const iLe=H.forwardRef(({className:n,inset:i,...s},c)=>I.jsx(aJt,{ref:c,className:Sr("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",i&&"pl-8",n),...s}));iLe.displayName=aJt.displayName;const bJt=H.forwardRef(({className:n,children:i,checked:s,...c},d)=>I.jsxs(uJt,{ref:d,className:Sr("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:s,...c,children:[I.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:I.jsx(lJt,{children:I.jsx(oN,{className:"h-4 w-4"})})}),i]}));bJt.displayName=uJt.displayName;const Jrr=H.forwardRef(({className:n,children:i,...s},c)=>I.jsxs(cJt,{ref:c,className:Sr("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...s,children:[I.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:I.jsx(lJt,{children:I.jsx(S8n,{className:"h-2 w-2 fill-current"})})}),i]}));Jrr.displayName=cJt.displayName;const Xrr=H.forwardRef(({className:n,inset:i,...s},c)=>I.jsx(sJt,{ref:c,className:Sr("px-2 py-1.5 font-semibold text-sm",i&&"pl-8",n),...s}));Xrr.displayName=sJt.displayName;const Zrr=H.forwardRef(({className:n,...i},s)=>I.jsx(dJt,{ref:s,className:Sr("-mx-1 my-1 h-px bg-muted",n),...i}));Zrr.displayName=dJt.displayName;function WM({field:n,value:i,onChange:s,entities:c,domain:d,translations:g={},error:b}){const{t:w}=ps(["common"]),E=n.name,S=n.required??!1;let x=E,A="",C="";if("label"in n)x=n.label,A=n.description||"",C=n.placeholder||"";else if(d){const P=`component.${d}.device_automation.extra_fields.${E}`,G=`component.${d}.device_automation.extra_fields_descriptions.${E}`;x=g[P]||E.split("_").map(ee=>ee.charAt(0).toUpperCase()+ee.slice(1)).join(" "),A=g[G]||"",console.log(`Field "${E}" in domain "${d}":`),console.log(` Label key: ${P} = ${g[P]||"(not found)"}`),console.log(` Desc key: ${G} = ${g[G]||"(not found)"}`),console.log(` Final label: ${x}`),console.log(` Final description: ${A}`)}else x=E.split("_").map(P=>P.charAt(0).toUpperCase()+P.slice(1)).join(" "),console.log(`Field "${E}" with no domain - using formatted name: ${x}`);let R=null,L={};if("type"in n&&n.type)R=n.type;else if("selector"in n&&n.selector){const P=Object.keys(n.selector);P.length>0&&(R=P[0],L=n.selector[R]||{})}const D=typeof i=="string"?i:String(i??""),B=typeof i=="number"?i:Number(i)||void 0,$=typeof i=="boolean"?i:!!i,j=()=>{switch(R){case"text":{if("multiple"in n&&n.multiple){const G=Array.isArray(i)?i:typeof i=="string"&&i?[i]:[];return I.jsx(tLe,{values:G,onChange:s,placeholder:C||"Add value..."})}return I.jsx(Na,{type:"text",value:D,onChange:G=>s(G.target.value),placeholder:C,required:S})}case"number":return I.jsx(Na,{type:"number",value:B??"",onChange:P=>s(P.target.value?Number(P.target.value):void 0),placeholder:C,required:S});case"boolean":return I.jsxs("div",{className:"flex items-center space-x-2",children:[I.jsx(J2,{checked:$,onCheckedChange:s}),I.jsx("span",{className:"text-muted-foreground text-sm",children:w($?"dynamicField.enabled":"dynamicField.disabled")})]});case"select":{let P=[];if("options"in n&&n.options){const ee=n.options;ee.length>0&&(Array.isArray(ee[0])?P=ee.map(([re,Q])=>({value:re,label:Q})):P=ee)}else L.options&&Array.isArray(L.options)&&(P=L.options);if("multiple"in n&&n.multiple||L.multiple===!0){const ee=Array.isArray(i)?i:i?[i]:[],re=()=>{var Q;return ee.length===0?C||w("dynamicField.selectItems"):ee.length===1?((Q=P.find(ie=>ie.value===ee[0]))==null?void 0:Q.label)||ee[0]:w("dynamicField.itemsSelected",{count:ee.length})};return I.jsxs(pJt,{children:[I.jsx(gJt,{asChild:!0,children:I.jsxs(Ri,{variant:"outline",className:"w-full justify-between font-normal",children:[I.jsx("span",{className:ee.length===0?"text-muted-foreground":"",children:re()}),I.jsx(nae,{className:"ml-2 h-4 w-4 opacity-50"})]})}),I.jsx(e9e,{className:"w-[var(--radix-dropdown-menu-trigger-width)]",children:P.map(Q=>{const ie=ee.includes(Q.value);return I.jsx(bJt,{checked:ie,onCheckedChange:pe=>{s(pe?[...ee,Q.value]:ee.filter(me=>me!==Q.value))},children:Q.label},Q.value)})})]})}return I.jsxs(zp,{value:D,onValueChange:s,children:[I.jsx(zh,{children:I.jsx(Gp,{placeholder:C||"Select..."})}),I.jsx(Gh,{children:P.map(ee=>I.jsx(to,{value:ee.value,children:ee.label},ee.value))})]})}case"entity":{if("multiple"in n&&n.multiple||L.multiple===!0){const G=Array.isArray(i)?i:typeof i=="string"&&i?i.split(",").map(ee=>ee.trim()):[];return I.jsx(Xae,{value:G,onChange:s,entities:c,placeholder:C||w("dynamicField.selectEntities")})}return I.jsx(yse,{value:D,onChange:s,entities:c,placeholder:C||w("dynamicField.selectEntity")})}case"zone":return I.jsx(yse,{value:D,onChange:s,entities:c,domainFilter:"zone",placeholder:C||w("dynamicField.selectZone")});case"template":return I.jsx($v,{value:D,onChange:P=>s(P.target.value),placeholder:C||w("placeholders.enterTemplate"),className:"font-mono text-sm",rows:4,required:S});case"duration":return I.jsx(fYt,{value:i??"",onChange:s});case"object":return I.jsx($v,{value:typeof i=="object"?JSON.stringify(i,null,2):D,onChange:P=>{try{s(JSON.parse(P.target.value))}catch{s(P.target.value)}},placeholder:C||w("placeholders.jsonExample"),className:"font-mono text-sm",rows:4,required:S});case"time":return I.jsx(Na,{type:"time",value:D,onChange:P=>s(P.target.value),required:S});case"date":return I.jsx(Na,{type:"date",value:D,onChange:P=>s(P.target.value),required:S});default:return I.jsx(Na,{type:"text",value:D,onChange:P=>s(P.target.value),placeholder:C||w("dynamicField.enterValue",{name:E}),required:S})}};return I.jsxs("div",{className:"space-y-2",children:[I.jsxs(ll,{className:"font-medium text-muted-foreground text-xs",children:[x,S&&I.jsx("span",{className:"ml-1 text-destructive",children:w("labels.requiredAsterisk")})]}),j(),I.jsx(H2,{message:b}),A&&I.jsx("p",{className:"text-muted-foreground text-xs",children:A})]})}const Qrr={state:[{name:"entity_id",label:"Entity",type:"entity",required:!0,description:"The entity to check"},{name:"state",label:"State",type:"text",required:!0,placeholder:"e.g., on, off, home",description:"The state value to check for"},{name:"attribute",label:"Attribute (optional)",type:"text",required:!1,placeholder:"e.g., brightness, temperature",description:"Check a specific attribute instead of the state"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"00:05:00",description:"How long the condition must be true"}],numeric_state:[{name:"entity_id",label:"Entity",type:"entity",required:!0,description:"The sensor entity to check"},{name:"above",label:"Above (optional)",type:"number",required:!1,placeholder:"Minimum value",description:"Condition is true when value > this"},{name:"below",label:"Below (optional)",type:"number",required:!1,placeholder:"Maximum value",description:"Condition is true when value < this"},{name:"attribute",label:"Attribute (optional)",type:"text",required:!1,placeholder:"e.g., brightness, temperature",description:"Check a specific attribute instead of the state"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"00:05:00",description:"How long the condition must be true"}],template:[{name:"value_template",label:"Value Template",type:"template",required:!0,placeholder:'{{ states("sensor.temperature") | float > 20 }}',description:"Template that should evaluate to true/false"}],time:[{name:"after",label:"After (optional)",type:"time",required:!1,description:"Condition is true after this time"},{name:"before",label:"Before (optional)",type:"time",required:!1,description:"Condition is true before this time"},{name:"weekday",label:"Weekday (optional)",type:"select",required:!1,multiple:!0,description:"Days of the week when condition is true",options:[{value:"mon",label:"Monday"},{value:"tue",label:"Tuesday"},{value:"wed",label:"Wednesday"},{value:"thu",label:"Thursday"},{value:"fri",label:"Friday"},{value:"sat",label:"Saturday"},{value:"sun",label:"Sunday"}]}],sun:[{name:"after",label:"After",type:"select",required:!1,description:"Condition is true after this sun event",options:[{value:"sunrise",label:"Sunrise"},{value:"sunset",label:"Sunset"}]},{name:"after_offset",label:"After Offset (optional)",type:"text",required:!1,placeholder:"e.g., -00:30:00",description:"Time offset for the after event"},{name:"before",label:"Before",type:"select",required:!1,description:"Condition is true before this sun event",options:[{value:"sunrise",label:"Sunrise"},{value:"sunset",label:"Sunset"}]},{name:"before_offset",label:"Before Offset (optional)",type:"text",required:!1,placeholder:"e.g., +01:00:00",description:"Time offset for the before event"}],zone:[{name:"entity_id",label:"Entity",type:"entity",required:!0,description:"Person or device tracker to monitor"},{name:"zone",label:"Zone",type:"zone",required:!0,placeholder:"zone.home",description:"Zone entity to check for presence"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"00:05:00",description:"How long the entity must be in the zone"}],trigger:[{name:"id",label:"Trigger ID(s)",type:"text",required:!0,multiple:!0,placeholder:"e.g., arriving, leaving",description:"The ID(s) of the trigger(s) to match"}],device:[],and:[],or:[],not:[]};function t9e(n){return Qrr[n]||[]}function mJt(n){const i=t9e(n),s={condition:n};for(const c of i)c.default!==void 0&&(s[c.name]=c.default);return n9e(n)&&(s.conditions=[]),s}function n9e(n){return n==="and"||n==="or"||n==="not"}const eir=[{value:"state",labelKey:"nodes:conditions.types.state"},{value:"numeric_state",labelKey:"nodes:conditions.types.numeric_state"},{value:"template",labelKey:"nodes:conditions.types.template"},{value:"trigger",labelKey:"nodes:conditions.types.trigger"},{value:"zone",labelKey:"nodes:conditions.types.zone"},{value:"time",labelKey:"nodes:conditions.types.time"},{value:"sun",labelKey:"nodes:conditions.types.sun"},{value:"and",labelKey:"nodes:conditions.types.and"},{value:"or",labelKey:"nodes:conditions.types.or"},{value:"not",labelKey:"nodes:conditions.types.not"}];function tir({cond:n,onUpdate:i,entities:s}){const c=n.condition||"state",d=t9e(c);return d.length===0?null:I.jsx("div",{className:"space-y-2",children:d.map(g=>I.jsx(WM,{field:g,value:n[g.name],onChange:b=>i({...n,[g.name]:b}),entities:s},g.name))})}function nir({cond:n,onUpdate:i,onRemove:s,entities:c,depth:d}){const g=n.condition||"state",b=n9e(g),{t:w}=ps(["common","nodes","panels"]),E=S=>{i(mJt(S))};return I.jsxs("div",{className:Sr("space-y-3 rounded-md border bg-card p-3",d>0&&"bg-muted/30"),children:[I.jsxs("div",{className:"flex items-center justify-between gap-2",children:[I.jsxs(zp,{value:n.condition||"state",onValueChange:E,children:[I.jsx(zh,{className:"w-full max-w-[180px]",children:I.jsx(Gp,{})}),I.jsx(Gh,{children:eir.map(S=>I.jsx(to,{value:S.value,children:w(S.labelKey)},S.value))})]}),I.jsx(Ri,{size:"icon",variant:"ghost",onClick:s,className:"h-8 w-8 shrink-0 text-muted-foreground hover:text-destructive",children:I.jsx(PM,{className:"h-4 w-4"})})]}),b?I.jsx(wJt,{conditions:n.conditions||[],onChange:S=>i({...n,conditions:S}),parentType:n.condition,depth:d+1}):I.jsx(tir,{cond:n,onUpdate:i,entities:c})]})}const wJt=H.memo(function({conditions:i,onChange:s,depth:c=0}){const{hass:d}=pb(),g=d?Object.values(d.states):[],{t:b}=ps(["common","nodes","panels"]),w=()=>{s([...i,{condition:"state",entity_id:"",state:""}])},E=x=>{s(i.filter((A,C)=>C!==x))},S=(x,A)=>{s(i.map((C,R)=>R===x?A:C))};return I.jsxs("div",{className:Sr("space-y-2",c>0&&"border-muted border-l-2 pl-2"),children:[i.length===0?I.jsx("p",{className:"py-2 text-muted-foreground text-xs italic",children:b("panels:conditionGroupEditor.noConditions")}):i.map((x,A)=>I.jsx(nir,{cond:x,onUpdate:C=>S(A,C),onRemove:()=>E(A),entities:g,depth:c},A)),I.jsxs(Ri,{size:"sm",variant:"outline",onClick:w,className:"w-full",children:[I.jsx(iae,{className:"mr-1 h-4 w-4"}),b("panels:conditionGroupEditor.addCondition")]})]})});function yJt({value:n,onChange:i,label:s="",required:c=!1,placeholder:d=""}){const{t:g}=ps(["common"]),{hass:b}=pb(),[w,E]=H.useState(n);H.useEffect(()=>{E(n)},[n]);const S=(b==null?void 0:b.devices)??{},x=Object.keys(S).length>0,A=n&&x&&!S[n],C=()=>{if(!n)return;const R=S[n];return R?R.name_by_user||R.name||R.id:n};return I.jsx(Po,{label:s||g("labels.device"),required:c,children:x?I.jsxs(zp,{value:n,onValueChange:i,children:[I.jsx(zh,{className:A?"font-mono text-red-600":void 0,children:I.jsx(Gp,{placeholder:d||g("placeholders.selectDevice"),children:C()})}),I.jsx(Gh,{children:Object.values(S).map(R=>I.jsx(to,{value:R.id,children:R.name_by_user||R.name||R.id},R.id))})]}):I.jsxs(I.Fragment,{children:[I.jsx(Na,{type:"text",value:w,onChange:R=>{E(R.target.value),i(R.target.value)},placeholder:g("deviceSelector.enterId")}),I.jsx("p",{className:"text-muted-foreground text-xs",children:g("deviceSelector.noDevices")})]})})}function rir({node:n,onChange:i}){const s=jh(n,"device_id"),c=jh(n,"domain"),d=jh(n,"type");return I.jsxs(I.Fragment,{children:[I.jsx(yJt,{value:s,onChange:g=>i("device_id",g),label:"Device",required:!0,placeholder:"Select device..."}),I.jsx(Po,{label:"Domain",required:!0,description:"Device integration domain",children:I.jsx(Na,{type:"text",value:c,onChange:g=>i("domain",g.target.value),placeholder:"e.g., binary_sensor, sensor"})}),I.jsx(Po,{label:"Type",required:!0,description:"Device condition type",children:I.jsx(Na,{type:"text",value:d,onChange:g=>i("type",g.target.value),placeholder:"e.g., button_short_press"})})]})}function iir({node:n,onChange:i,entities:s}){const{t:c}=ps(["common","nodes"]),{getFieldError:d}=gb(n.id),g=jh(n,"condition","state"),b=n.data,w=Array.isArray(b.conditions)&&b.conditions.length>0,E=n9e(g),S=A=>{const C=mJt(A);for(const[R,L]of Object.entries(C))i(R,L)},x=()=>g==="device"?I.jsx(rir,{node:n,onChange:i}):E?null:t9e(g).map(C=>I.jsx(WM,{field:C,value:b[C.name],onChange:R=>i(C.name,R),entities:s,error:d(C.name)},C.name));return I.jsxs(I.Fragment,{children:[I.jsx(Po,{label:c("nodes:conditions.conditionLabel"),required:!0,children:I.jsxs(zp,{value:g,onValueChange:S,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"state",children:c("nodes:conditions.types.state")}),I.jsx(to,{value:"numeric_state",children:c("nodes:conditions.types.numeric_state")}),I.jsx(to,{value:"template",children:c("nodes:conditions.types.template")}),I.jsx(to,{value:"time",children:c("nodes:conditions.types.time")}),I.jsx(to,{value:"sun",children:c("nodes:conditions.types.sun")}),I.jsx(to,{value:"zone",children:c("nodes:conditions.types.zone")}),I.jsx(to,{value:"device",children:c("nodes:conditions.types.device")}),I.jsx(to,{value:"trigger",children:c("nodes:conditions.types.trigger")}),I.jsx(to,{value:"and",children:c("nodes:conditions.types.and")}),I.jsx(to,{value:"or",children:c("nodes:conditions.types.or")}),I.jsx(to,{value:"not",children:c("nodes:conditions.types.not")})]})]})}),x(),(E||w)&&I.jsx(Po,{label:c("nodes:conditions.nestedConditions"),children:I.jsx(wJt,{conditions:b.conditions||[],onChange:A=>i("conditions",A),parentType:E?g:"and"})})]})}function oir({node:n,onChange:i}){const{getFieldError:s}=gb(n.id);return I.jsxs(I.Fragment,{children:[I.jsx(hYt,{label:"Delay",value:n.data.delay,onChange:c=>i("delay",c)}),I.jsx(H2,{message:s("delay")})]})}function sir({node:n,onChange:i}){const{t:s}=ps(["nodes"]),{getFieldError:c}=gb(n.id),d=N5(n,"variables",{}),g=Object.entries(d),b=()=>{const x=Object.keys(d);let A="variable",C=1;for(;x.includes(A);)A=`variable_${C}`,C++;i("variables",{...d,[A]:""})},w=(x,A)=>{if(x===A)return;const C={};for(const[R,L]of Object.entries(d))R===x?C[A]=L:C[R]=L;i("variables",C)},E=(x,A)=>{i("variables",{...d,[x]:A})},S=x=>{const A={...d};delete A[x],i("variables",A)};return I.jsxs("div",{className:"space-y-4",children:[I.jsx(H2,{message:c("variables")}),g.length===0?I.jsx("p",{className:"text-muted-foreground text-sm",children:s("nodes:setVariablesFields.empty")}):g.map(([x,A],C)=>I.jsxs("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:[I.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[I.jsx("span",{className:"font-medium text-muted-foreground text-xs",children:s("nodes:setVariablesFields.variableLabel",{index:C+1})}),I.jsx(Ri,{variant:"ghost",size:"sm",onClick:()=>S(x),className:"h-6 w-6 p-0 text-destructive hover:bg-destructive/10 hover:text-destructive",children:I.jsx(PM,{className:"h-3.5 w-3.5"})})]}),I.jsxs("div",{className:"space-y-3",children:[I.jsx(Po,{label:s("nodes:setVariablesFields.name"),children:I.jsx(Na,{value:x,onChange:R=>w(x,R.target.value),placeholder:s("nodes:setVariablesFields.namePlaceholder"),className:"font-mono text-sm"})}),I.jsx(Po,{label:s("nodes:setVariablesFields.value"),description:s("nodes:setVariablesFields.valueDescription"),children:I.jsx($v,{value:String(A??""),onChange:R=>E(x,R.target.value),placeholder:s("nodes:setVariablesFields.valuePlaceholder"),className:"font-mono text-sm"})})]})]},`${x}-${C}`)),I.jsxs(Ri,{variant:"outline",onClick:b,className:"w-full gap-2",size:"sm",children:[I.jsx(iae,{className:"h-4 w-4"}),s("nodes:setVariablesFields.addVariable")]})]})}const vJt={state:[{name:"entity_id",label:"Entity",type:"entity",required:!0,multiple:!0,description:"The entity to monitor for state changes"},{name:"to",label:"To State",type:"text",required:!1,placeholder:"e.g., on, off, home",description:"The target state to trigger on"},{name:"from",label:"From State",type:"text",required:!1,placeholder:"e.g., off",description:"Only trigger when transitioning from this state"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"e.g., 00:05:00",description:"State must be stable for this duration"}],numeric_state:[{name:"entity_id",label:"Entity",type:"entity",required:!0,multiple:!0,description:"The sensor entity to monitor"},{name:"above",label:"Above",type:"number",required:!1,placeholder:"e.g., 20",description:"Trigger when value goes above this threshold"},{name:"below",label:"Below",type:"number",required:!1,placeholder:"e.g., 30",description:"Trigger when value goes below this threshold"},{name:"value_template",label:"Value Template (optional)",type:"template",required:!1,placeholder:"e.g., {{ state.attributes.temperature }}",description:"Template to extract numeric value from entity"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"e.g., 00:05:00",description:"Value must be stable for this duration"}],time:[{name:"at",label:"At (time)",type:"text",required:!0,placeholder:"e.g., 07:00:00 or input_datetime.wake_up",description:"Time to trigger (HH:MM:SS or entity reference)"}],time_pattern:[{name:"hours",label:"Hours",type:"text",required:!1,placeholder:"e.g., */2 (every 2 hours)",description:"Hour pattern (cron-style)"},{name:"minutes",label:"Minutes",type:"text",required:!1,placeholder:"e.g., /5 (every 5 minutes)",description:"Minute pattern (cron-style)"},{name:"seconds",label:"Seconds",type:"text",required:!1,placeholder:"e.g., 0",description:"Second pattern (cron-style)"}],event:[{name:"event_type",label:"Event Type",type:"text",required:!0,placeholder:"e.g., zha_event, call_service",description:"The type of event to listen for"},{name:"event_data",label:"Event Data (optional)",type:"object",required:!1,description:"Filter events by data fields (JSON object)"}],mqtt:[{name:"topic",label:"Topic",type:"text",required:!0,placeholder:"e.g., home/bedroom/temperature",description:"MQTT topic to subscribe to"},{name:"payload",label:"Payload (optional)",type:"text",required:!1,placeholder:"e.g., ON",description:"Only trigger on this specific payload"}],webhook:[{name:"webhook_id",label:"Webhook ID",type:"text",required:!0,placeholder:"e.g., my_webhook",description:"Unique identifier for this webhook"}],sun:[{name:"event",label:"Event",type:"select",required:!0,description:"Trigger at sunrise or sunset",options:[{value:"sunrise",label:"Sunrise"},{value:"sunset",label:"Sunset"}],default:"sunset"},{name:"offset",label:"Offset (optional)",type:"text",required:!1,placeholder:"e.g., -00:30:00",description:"Time offset before (-) or after (+) the event"}],zone:[{name:"entity_id",label:"Person/Device",type:"entity",required:!0,multiple:!0,description:"The person or device tracker to monitor"},{name:"zone",label:"Zone",type:"zone",required:!0,placeholder:"e.g., zone.home",description:"The zone entity to monitor"},{name:"event",label:"Event",type:"select",required:!0,description:"Trigger on enter or leave",options:[{value:"enter",label:"Enter"},{value:"leave",label:"Leave"}],default:"enter"}],template:[{name:"value_template",label:"Value Template",type:"template",required:!0,placeholder:'e.g., {{ is_state("light.bedroom", "on") }}',description:"Template that evaluates to true/false"},{name:"for",label:"For Duration (optional)",type:"duration",required:!1,placeholder:"e.g., 00:05:00",description:"Template must be true for this duration"}],homeassistant:[{name:"event",label:"Event",type:"select",required:!0,description:"Home Assistant lifecycle event",options:[{value:"start",label:"Start"},{value:"shutdown",label:"Shutdown"}],default:"start"}],device:[]};function nue(n){return vJt[n]||[]}function air(n){const i=nue(n),s={trigger:n};for(const c of i)c.default!==void 0&&(s[c.name]=c.default);return s}function uir(){const{hass:n}=pb(),i=H.useCallback(async c=>{if(!(n!=null&&n.callWS))return console.warn("callWS not available"),[];try{return await n.callWS({type:"device_automation/trigger/list",device_id:c})||[]}catch(d){throw console.error("Failed to fetch device triggers:",d),d}},[n]),s=H.useCallback(async c=>{if(!(n!=null&&n.callWS))return console.warn("callWS not available"),{extra_fields:[]};try{return await n.callWS({type:"device_automation/trigger/capabilities",trigger:c})||{extra_fields:[]}}catch(d){throw console.error("Failed to fetch trigger capabilities:",d),d}},[n]);return{getDeviceTriggers:i,getTriggerCapabilities:s}}const cir=Su({resources:yf(Jt(),Du()).transform(n=>{const i={};for(const[s,c]of Object.entries(n))typeof c=="string"&&(i[s]=c);return i})});function lir(){const{hass:n}=pb(),[i,s]=H.useState({}),[c,d]=H.useState(!0),g=H.useMemo(()=>{const w=n==null?void 0:n.resources;if(!w||Object.keys(w).length===0)return{};const E=Object.values(w)[0];if(typeof E=="string")return w;if(typeof E=="object"&&E!==null){const S={};for(const x of Object.values(w))typeof x=="object"&&x!==null&&Object.assign(S,x);return S}return{}},[n==null?void 0:n.resources]);return H.useEffect(()=>{if(!n){d(!1);return}(async()=>{d(!0);try{const E=await n.callWS({type:"frontend/get_translations",language:navigator.language.split("-")[0]||"en",category:"device_automation"}),S=cir.safeParse(E);S.success&&s(S.data.resources)}catch{}finally{d(!1)}})()},[n]),{translations:H.useMemo(()=>({...g,...i}),[g,i]),isLoading:c}}function WOe(n){const i=[n.type];return n.subtype&&i.push(n.subtype),n.entity_id&&i.push(n.entity_id),i.join("::")}function dir(n,i){const s=`component.${n.domain}.device_automation.trigger_type.${n.type}`,c=i[s]??n.type;if(n.subtype){const d=`component.${n.domain}.device_automation.trigger_subtype.${n.subtype}`,g=i[d]??n.subtype;return`${c}: ${g}`}return c}function fir({node:n,onChange:i,entities:s}){const{t:c}=ps(["common","nodes","errors"]),{getDeviceTriggers:d,getTriggerCapabilities:g}=uir(),{translations:b}=lir(),[w,E]=H.useState([]),[S,x]=H.useState([]),[A,C]=H.useState(!1),R=jh(n,"device_id"),L=jh(n,"type"),D=jh(n,"domain"),B=jh(n,"entity_id"),$=jh(n,"subtype"),j=(()=>{const P=[L].filter(Boolean);return $&&P.push($),B&&P.push(B),P.join("::")})();return H.useEffect(()=>{if(!R){E([]);return}C(!0),d(R).then(P=>{E(P)}).catch(P=>{console.error(c("errors:api.loadDeviceTriggersFailed"),P),E([])}).finally(()=>{C(!1)})},[R,d,c]),H.useEffect(()=>{if(!R||!L){x([]);return}const P=w.find(G=>G.type===L&&G.domain===D&&(G.subtype??"")===($??"")&&(G.entity_id??"")===(B??""));if(!P){x([]);return}g(P).then(G=>{x(G.extra_fields||[])}).catch(G=>{console.error(c("errors:api.loadTriggerCapabilitiesFailed"),G),x([])})},[R,L,$,B,D,w,g,c]),I.jsxs(I.Fragment,{children:[I.jsx(yJt,{value:R,onChange:P=>i("device_id",P),label:c("labels.device"),required:!0,placeholder:c("placeholders.selectDevice")}),R&&w.length>0?I.jsx(Po,{label:c("labels.triggerType"),required:!0,children:I.jsxs(zp,{value:j,onValueChange:P=>{const G=w.find(ee=>WOe(ee)===P);G&&(i("type",G.type),i("domain",G.domain),i("subtype",G.subtype??void 0),i("entity_id",G.entity_id??void 0))},children:[I.jsx(zh,{children:I.jsx(Gp,{placeholder:c("placeholders.selectTriggerType")})}),I.jsx(Gh,{children:w.map(P=>I.jsx(to,{value:WOe(P),children:dir(P,b)},WOe(P)))})]})}):R&&L&&I.jsx(Po,{label:"Trigger Type",children:I.jsxs("div",{className:"truncate rounded-md border bg-muted px-3 py-2 font-mono text-sm",children:[L,$&&I.jsxs("span",{className:"text-muted-foreground",children:[" · ",$]}),D&&I.jsxs("span",{className:"text-muted-foreground",children:[" ",`(${D})`]})]})}),A&&I.jsx("div",{className:"text-muted-foreground text-sm",children:c("status.loadingTriggers")}),S.map(P=>I.jsx(WM,{field:P,value:n.data[P.name],onChange:G=>i(P.name,G),entities:s,domain:D,translations:b},P.name))]})}const hir={light:["on","off","unavailable"],switch:["on","off","unavailable"],binary_sensor:["on","off","unavailable"],input_boolean:["on","off"],cover:["open","closed","opening","closing","unavailable"],lock:["locked","unlocked","locking","unlocking","unavailable"],alarm_control_panel:["disarmed","armed_home","armed_away","armed_night","armed_vacation","armed_custom_bypass","pending","arming","disarming","triggered","unavailable"],climate:["heat","cool","heat_cool","auto","dry","fan_only","off","unavailable"],fan:["on","off","unavailable"],media_player:["playing","paused","idle","off","on","standby","buffering","unavailable"],vacuum:["cleaning","docked","paused","idle","returning","error","unavailable"],person:["home","not_home","unavailable"],device_tracker:["home","not_home","unavailable"],water_heater:["electric","gas","heat_pump","eco","performance","high_demand","off","unavailable"],humidifier:["on","off","unavailable"],update:["on","off","unavailable"]},EJt=["on","off","unavailable","unknown"];function pir(n,i){const s=i.find(b=>b.entity_id===n),c=n.split(".")[0],d=hir[c]??EJt,g=new Set(d);return s!=null&&s.state?[s.state,...d.filter(b=>b!==s.state)]:Array.from(g)}function e$t({value:n,onChange:i,suggestions:s,placeholder:c}){const{t:d}=ps(["common"]),[g,b]=H.useState(!1),[w,E]=H.useState(""),S=H.useMemo(()=>w?s.filter(C=>C.toLowerCase().includes(w.toLowerCase())):s,[w,s]),x=w&&!s.includes(w),A=C=>{i(C===n?"":C),b(!1),E("")};return I.jsxs(sMe,{open:g,onOpenChange:b,children:[I.jsx(Wqt,{asChild:!0,children:I.jsxs(Ri,{variant:"outline",role:"combobox","aria-expanded":g,className:Sr("flex w-full justify-between",!n&&"text-muted-foreground"),children:[I.jsx("span",{className:"truncate",children:n||c}),I.jsx(cGt,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),I.jsx(Tae,{className:"w-[286px] p-0",children:I.jsxs(fae,{shouldFilter:!1,children:[I.jsx(hae,{placeholder:c,value:w,onValueChange:E}),I.jsxs(pae,{children:[S.length===0&&!x&&I.jsx(gae,{children:d("combobox.noOptions")}),x&&I.jsx(ez,{children:I.jsxs(tz,{value:w,onSelect:A,children:[I.jsx("span",{className:"text-muted-foreground text-xs mr-2",children:d("stateTrigger.useValue")}),I.jsx("span",{className:"font-mono",children:w}),I.jsx(oN,{className:Sr("ml-auto h-4 w-4",n===w?"opacity-100":"opacity-0")})]})}),S.length>0&&I.jsx(ez,{children:S.map(C=>I.jsxs(tz,{value:C,onSelect:A,children:[I.jsx("span",{className:"font-mono",children:C}),I.jsx(oN,{className:Sr("ml-auto h-4 w-4",n===C?"opacity-100":"opacity-0")})]},C))})]})]})})]})}function gir({node:n,onChange:i,entities:s}){const{t:c}=ps(["nodes","common"]),{getFieldError:d}=gb(n.id),{entities:g}=pb(),b=s.length>0?s:g,w=n.data.entity_id,E=Array.isArray(w)?w:typeof w=="string"&&w?[w]:[],S=jh(n,"to"),x=jh(n,"from"),A=H.useMemo(()=>{if(E.length===0)return EJt;const R=new Set;for(const L of E)for(const D of pir(L,b))R.add(D);return Array.from(R)},[E,b]),C=nue("state").find(R=>R.name==="for");return I.jsxs(I.Fragment,{children:[I.jsxs(Po,{label:c("nodes:triggers.fields.entityId"),required:!0,children:[I.jsx(Xae,{value:E,onChange:R=>i("entity_id",R),entities:b,placeholder:c("common:placeholders.selectEntity")}),I.jsx(H2,{message:d("entity_id")})]}),I.jsx(Po,{label:c("nodes:triggers.fields.toState"),children:I.jsx(e$t,{value:S,onChange:R=>i("to",R||void 0),suggestions:A,placeholder:c("nodes:triggers.fields.toStatePlaceholder")})}),I.jsx(Po,{label:c("nodes:triggers.fields.fromState"),children:I.jsx(e$t,{value:x,onChange:R=>i("from",R||void 0),suggestions:A,placeholder:c("nodes:triggers.fields.fromStatePlaceholder")})}),C&&I.jsx(WM,{field:C,value:n.data[C.name],onChange:R=>i(C.name,R),entities:b,error:d(C.name)})]})}function bir({node:n,onChange:i,entities:s}){const{t:c}=ps(["nodes"]),{getFieldError:d}=gb(n.id),g=jh(n,"trigger","state"),b=jh(n,"device_id"),w=b&&g!=="device"?"device":g;H.useEffect(()=>{b&&g!=="device"&&i("trigger","device")},[b,g,i]);const E=S=>{const x=air(S);for(const[A,C]of Object.entries(x))i(A,C);S!=="device"&&b&&i("device_id",void 0)};return I.jsxs(I.Fragment,{children:[I.jsx(Po,{label:c("nodes:triggers.platformLabel"),required:!0,children:I.jsxs(zp,{value:w,onValueChange:E,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"state",children:c("nodes:triggers.platforms.state")}),I.jsx(to,{value:"numeric_state",children:c("nodes:triggers.platforms.numeric_state")}),I.jsx(to,{value:"time",children:c("nodes:triggers.platforms.time")}),I.jsx(to,{value:"time_pattern",children:c("nodes:triggers.platforms.time_pattern")}),I.jsx(to,{value:"sun",children:c("nodes:triggers.platforms.sun")}),I.jsx(to,{value:"event",children:c("nodes:triggers.platforms.event")}),I.jsx(to,{value:"mqtt",children:c("nodes:triggers.platforms.mqtt")}),I.jsx(to,{value:"webhook",children:c("nodes:triggers.platforms.webhook")}),I.jsx(to,{value:"zone",children:c("nodes:triggers.platforms.zone")}),I.jsx(to,{value:"template",children:c("nodes:triggers.platforms.template")}),I.jsx(to,{value:"homeassistant",children:c("nodes:triggers.platforms.homeassistant")}),I.jsx(to,{value:"device",children:c("nodes:triggers.platforms.device")})]})]})}),I.jsx(mir,{effectiveTriggerType:w,deviceId:b,node:n,onChange:i,entities:s,getFieldError:d})]})}function mir({effectiveTriggerType:n,deviceId:i,node:s,onChange:c,entities:d,getFieldError:g}){return n==="device"||i?I.jsx(fir,{node:s,onChange:c,entities:d}):n==="state"?I.jsx(gir,{node:s,onChange:c,entities:d}):nue(n).map(w=>I.jsx(WM,{field:w,value:s.data[w.name],onChange:E=>c(w.name,E),entities:d,error:g(w.name)},w.name))}function wir({node:n,onChange:i}){const{t:s}=ps(["nodes"]),{getFieldError:c,getRootError:d}=gb(n.id),g=jh(n,"wait_template"),b=VMe(n,"wait_for_trigger"),w=b!==void 0?"trigger":"template",E=d(),S=R=>{R==="template"?(i("wait_for_trigger",void 0),i("wait_template","")):(i("wait_template",void 0),i("wait_for_trigger",[{trigger:"state"}]))},x=(R,L,D)=>{if(!b)return;const B=[...b];B[R]={...B[R],[L]:D},i("wait_for_trigger",B)},A=()=>{const R=[...b||[],{trigger:"state"}];i("wait_for_trigger",R)},C=R=>{if(!b)return;const L=b.filter((D,B)=>B!==R);i("wait_for_trigger",L)};return I.jsxs(I.Fragment,{children:[I.jsx(H2,{message:E}),I.jsx(Po,{label:s("nodes:wait.waitType"),description:s("nodes:wait.waitTypeDescription"),children:I.jsxs(zp,{value:w,onValueChange:S,children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"template",children:s("nodes:wait.types.template")}),I.jsx(to,{value:"trigger",children:s("nodes:wait.types.triggers")})]})]})}),w==="template"&&I.jsxs(Po,{label:s("nodes:wait.waitTemplate"),required:!0,description:s("nodes:wait.waitTemplateDescription"),children:[I.jsx($v,{value:g||"",onChange:R=>i("wait_template",R.target.value),className:"font-mono",rows:3,placeholder:s("nodes:placeholders.waitTemplate")}),I.jsx(H2,{message:c("wait_template")})]}),w==="trigger"&&I.jsxs("div",{className:"space-y-4",children:[I.jsx(H2,{message:c("wait_for_trigger")}),I.jsxs("div",{className:"space-y-2",children:[I.jsx("h3",{className:"font-medium",children:s("nodes:wait.triggersHeading")}),b==null?void 0:b.map((R,L)=>I.jsxs("div",{className:"space-y-3 rounded-md border p-3",children:[I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx("p",{className:"font-semibold text-sm capitalize",children:s("nodes:wait.triggerLabel",{index:L+1,platform:R.trigger})}),I.jsx(Ri,{variant:"ghost",size:"sm",onClick:()=>C(L),className:"h-8 w-8 p-0 text-destructive hover:bg-destructive/10 hover:text-destructive",children:I.jsx(PM,{})})]}),I.jsx(Po,{label:s("nodes:wait.triggerPlatformLabel","Platform"),children:I.jsxs(zp,{value:R.trigger,onValueChange:D=>x(L,"trigger",D),children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsx(Gh,{children:Object.keys(vJt).map(D=>I.jsx(to,{value:D,children:D},D))})]})}),nue(R.trigger).map(D=>I.jsx(WM,{field:D,value:R[D.name],onChange:B=>x(L,D.name,B)},D.name))]},L))]}),I.jsx(Ri,{onClick:A,variant:"outline",size:"sm",children:s("nodes:wait.addTrigger")})]}),I.jsx(hYt,{label:s("nodes:wait.timeoutLabel"),description:s("nodes:wait.timeoutDescription"),value:n.data.timeout??"",onChange:R=>i("timeout",R||void 0)}),n.data.timeout&&I.jsx(Po,{label:s("nodes:wait.continueOnTimeout"),description:s("nodes:wait.continueOnTimeoutDescription"),children:I.jsx(J2,{checked:n.data.continue_on_timeout??!0,onCheckedChange:R=>i("continue_on_timeout",R)})})]})}function yir({node:n,onChange:i,entities:s}){switch(n.type){case"trigger":return I.jsx(bir,{node:n,onChange:i,entities:s});case"condition":return I.jsx(iir,{node:n,onChange:i,entities:s});case"action":return I.jsx(Snr,{node:n,onChange:i,entities:s});case"delay":return I.jsx(oir,{node:n,onChange:i});case"wait":return I.jsx(wir,{node:n,onChange:i});case"set_variables":return I.jsx(sir,{node:n,onChange:i});default:return null}}const oLe={key:"",value:"",type:"string",isAdding:!1};function vir(n,i){switch(i.type){case"setKey":return{...n,key:i.payload};case"setValue":return{...n,value:i.payload};case"setType":return{...n,type:i.payload};case"startAdding":return{...n,isAdding:!0};case"cancelAdding":return{...oLe};case"reset":return{...oLe};default:return n}}function Eir(n,i){switch(i){case"number":{const s=Number(n);if(Number.isNaN(s))throw new Error("Invalid number value");return s}case"boolean":return n.toLowerCase()==="true";case"array":try{const s=JSON.parse(n);if(!Array.isArray(s))throw new Error("Not an array");return s}catch{throw new Error("Invalid JSON array format")}default:return n}}function Sir(n){const[i,s]=H.useReducer(vir,oLe);return{state:i,setKey:d=>s({type:"setKey",payload:d}),setValue:d=>s({type:"setValue",payload:d}),setType:d=>s({type:"setType",payload:d}),startAdding:()=>s({type:"startAdding"}),cancelAdding:()=>s({type:"cancelAdding"}),handleAdd:()=>{if(!i.key.trim())throw new Error("Property name is required");const d=Eir(i.value,i.type);n(i.key,d),s({type:"reset"})}}}function Tir({node:n,handledProperties:i,onChange:s,onDelete:c}){const{t:d}=ps(["common","nodes","errors"]),b=Sir((x,A)=>{s(x,A)}),w=n.data,E=Object.entries(w).filter(([x,A])=>!i.has(x)&&A!==void 0&&A!==null&&A!=="");if(E.length===0&&!b.state.isAdding)return null;const S=()=>{try{b.handleAdd()}catch(x){alert(x instanceof Error?x.message:d("errors:properties.addFailed"))}};return I.jsxs("div",{className:"space-y-3",children:[I.jsx("div",{className:"border-t pt-3",children:I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx(ll,{className:"font-medium text-muted-foreground text-xs",children:d("nodes:panel.additionalProperties")}),I.jsxs(Ri,{variant:"ghost",size:"sm",onClick:b.startAdding,className:"h-6 px-2 text-xs",children:[I.jsx(iae,{className:"mr-1 h-3 w-3"}),d("buttons.add")]})]})}),b.state.isAdding&&I.jsxs("div",{className:"space-y-2 rounded border p-3",children:[I.jsx(Po,{label:d("nodes:panel.propertyName"),required:!0,children:I.jsx(Na,{type:"text",value:b.state.key,onChange:x=>b.setKey(x.target.value),placeholder:d("nodes:placeholders.customProperty")})}),I.jsx(Po,{label:d("nodes:panel.type"),children:I.jsxs(zp,{value:b.state.type,onValueChange:x=>b.setType(x),children:[I.jsx(zh,{children:I.jsx(Gp,{})}),I.jsxs(Gh,{children:[I.jsx(to,{value:"string",children:d("nodes:triggers.dataTypes.string")}),I.jsx(to,{value:"number",children:d("nodes:triggers.dataTypes.number")}),I.jsx(to,{value:"boolean",children:d("nodes:triggers.dataTypes.boolean")}),I.jsx(to,{value:"array",children:d("nodes:triggers.dataTypes.json")})]})]})}),I.jsx(Po,{label:d("nodes:panel.value"),children:b.state.type==="boolean"?I.jsxs("div",{className:"flex items-center space-x-2",children:[I.jsx(J2,{checked:b.state.value==="true",onCheckedChange:x=>b.setValue(x?"true":"false")}),I.jsx(ll,{className:"text-sm",children:b.state.value==="true"?d("boolean.true"):d("boolean.false")})]}):b.state.type==="array"?I.jsx($v,{value:b.state.value,onChange:x=>b.setValue(x.target.value),placeholder:d("nodes:placeholders.jsonArray"),className:"font-mono",rows:2}):I.jsx(Na,{type:b.state.type==="number"?"number":"text",value:b.state.value,onChange:x=>b.setValue(x.target.value),placeholder:b.state.type==="number"?d("nodes:placeholders.number"):d("nodes:placeholders.enterValue")})}),I.jsxs("div",{className:"flex justify-end gap-2",children:[I.jsx(Ri,{variant:"ghost",size:"sm",onClick:b.cancelAdding,children:d("buttons.cancel")}),I.jsx(Ri,{size:"sm",onClick:S,children:d("nodes:panel.addProperty")})]})]}),E.map(([x,A])=>I.jsx(Air,{name:x,value:A,onChange:C=>s(x,C),onDelete:()=>c(x)},x))]})}function Air({name:n,value:i,onChange:s,onDelete:c}){const{t:d}=ps(["common","nodes"]);return I.jsxs("div",{className:"space-y-2",children:[I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx(ll,{className:"font-medium text-muted-foreground text-xs capitalize",children:n.replace(/_/g," ")}),I.jsx(Ri,{variant:"ghost",size:"sm",onClick:c,className:"h-6 w-6 p-0 text-destructive hover:bg-destructive/10",children:I.jsx(PM,{className:"h-3 w-3"})})]}),typeof i=="boolean"?I.jsxs("div",{className:"flex items-center space-x-2",children:[I.jsx(J2,{checked:i,onCheckedChange:g=>s(g)}),I.jsx(ll,{className:"text-sm",children:d(i?"boolean.true":"boolean.false")})]}):Array.isArray(i)?I.jsx($v,{value:JSON.stringify(i,null,2),onChange:g=>{try{const b=JSON.parse(g.target.value);s(b)}catch{}},className:"font-mono",rows:Math.min(i.length+1,4),placeholder:d("nodes:placeholders.jsonArray")}):typeof i=="object"?I.jsx($v,{value:JSON.stringify(i,null,2),onChange:g=>{try{const b=JSON.parse(g.target.value);s(b)}catch{}},className:"font-mono",rows:4,placeholder:d("nodes:placeholders.jsonObject")}):I.jsx(Na,{type:"text",value:String(i),onChange:g=>{const b=g.target.value;if(typeof i=="number"){const w=Number(b);Number.isNaN(w)||s(w)}else s(b)},placeholder:d("nodes:placeholders.enterType",{type:typeof i})})]})}function _ir(){const{t:n}=ps(["common","nodes"]),i=Do(R=>R.selectedNodeId),s=Do(R=>R.nodes),c=Do(R=>R.updateNodeData),d=Do(R=>R.removeNode),{hass:g,entities:b}=pb(),w=H.useMemo(()=>g!=null&&g.states&&Object.keys(g.states).length>0?Object.values(g.states).map(R=>({entity_id:R.entity_id,state:R.state,attributes:R.attributes||{},last_changed:R.last_changed||"",last_updated:R.last_updated||"",context:R.context})):b,[g,b]),E=H.useMemo(()=>s.find(R=>R.id===i),[s,i]),S=H.useMemo(()=>{if(!E)return JFt("trigger",[]);const R=JFt(E.type||"trigger",[]),L=E.data,D=typeof L.trigger=="string"?L.trigger:"",B=typeof L.device_id=="string"?L.device_id:"";if((D==="device"||B)&&(E.type==="trigger"||E.type==="condition")){const j=Object.keys(L);return new Set([...R,...j])}return R},[E]),{getFieldError:x}=gb((E==null?void 0:E.id)??"");if(!E)return I.jsx(pnr,{});const A=(R,L)=>{c(E.id,{[R]:L})},C=R=>{c(E.id,{[R]:void 0})};return I.jsxs("div",{className:"h-full flex-1 space-y-4 overflow-y-auto p-4",children:[I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsxs("h3",{className:"font-semibold text-foreground text-sm",children:[E.type?n(`nodes:types.${E.type}`):n("nodes:types.node")," ",n("nodes:panel.properties")]}),I.jsx(Ri,{variant:"ghost",size:"sm",onClick:()=>d(E.id),className:"h-8 w-8 p-0 text-destructive hover:bg-destructive/10 hover:text-destructive",children:I.jsx(PM,{className:"h-4 w-4"})})]}),I.jsx(Po,{label:n("labels.alias"),children:I.jsx(Na,{type:"text",value:typeof E.data.alias=="string"?E.data.alias:"",onChange:R=>A("alias",R.target.value),placeholder:n("placeholders.optionalDisplayName")})}),E.type==="trigger"&&I.jsxs(Po,{label:n("labels.id"),children:[I.jsx(Na,{type:"text",value:typeof E.data.id=="string"?E.data.id:"",onChange:R=>A("id",R.target.value||void 0),placeholder:n("placeholders.optionalUniqueId"),className:"font-mono"}),I.jsx(H2,{message:x("id")})]}),I.jsxs("div",{className:"flex items-center justify-between",children:[I.jsx(ll,{htmlFor:"node-enabled",className:"text-sm",children:n("labels.enabled")}),I.jsx(J2,{id:"node-enabled",checked:E.data.enabled!==!1,onCheckedChange:R=>A("enabled",R?void 0:!1)})]}),I.jsx(Pz,{}),I.jsx(yir,{node:E,onChange:A,entities:w}),I.jsx(Tir,{node:E,handledProperties:S,onChange:A,onDelete:C}),I.jsx("div",{className:"pt-2 text-muted-foreground text-xs",children:n("nodes:panel.nodeId",{id:E.id})})]})}function xir(n){const i=document.createElement("textarea");i.value=n,document.body.appendChild(i),i.focus(),i.select();try{document.execCommand("copy")}catch(s){console.error("Unable to copy to clipboard",s)}document.body.removeChild(i)}async function kir(n){return navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(n):xir(n)}function Hk(){return Hk=Object.assign?Object.assign.bind():function(n){for(var i=1;i4&&s.slice(0,4)==="data"&&Oir.test(i)){if(i.charAt(4)==="-"){const g=i.slice(5).replace(n$t,Lir);c="data"+g.charAt(0).toUpperCase()+g.slice(1)}else{const g=i.slice(4);if(!n$t.test(g)){let b=g.replace(Rir,Dir);b.charAt(0)!=="-"&&(b="-"+b),i="data"+b}}d=r9e}return new d(c,i)}function Dir(n){return"-"+n.toLowerCase()}function Lir(n){return n.charAt(1).toUpperCase()}const rue=TJt([AJt,Cir,kJt,NJt,CJt],"html"),Hz=TJt([AJt,Iir,kJt,NJt,CJt],"svg");function Sse(n){const i=[],s=String(n||"");let c=s.indexOf(","),d=0,g=!1;for(;!g;){c===-1&&(c=s.length,g=!0);const b=s.slice(d,c).trim();(b||!g)&&i.push(b),d=c+1,c=s.indexOf(",",d)}return i}function Mir(n,i){const s=i||{};return(n[n.length-1]===""?[...n,""]:n).join((s.padRight?" ":"")+","+(s.padLeft===!1?"":" ")).trim()}const r$t=/[#.]/g;function Pir(n,i){const s=n||"",c={};let d=0,g,b;for(;d-1&&g<=i.length){let b=0;for(;;){let w=s[b];if(w===void 0){const E=o$t(i,s[b-1]);w=E===-1?i.length+1:E+1,s[b]=w}if(w>g)return{line:b+1,column:g-(b>0?s[b-1]:0)+1,offset:g};b++}}}function d(g){if(g&&typeof g.line=="number"&&typeof g.column=="number"&&!Number.isNaN(g.line)&&!Number.isNaN(g.column)){for(;s.length1?s[g.line-2]:0)+g.column-1;if(b=55296&&n<=57343}function Zir(n){return n>=56320&&n<=57343}function Qir(n,i){return(n-55296)*1024+9216+i}function LJt(n){return n!==32&&n!==10&&n!==13&&n!==9&&n!==12&&n>=1&&n<=31||n>=127&&n<=159}function MJt(n){return n>=64976&&n<=65007||Xir.has(n)}var sn;(function(n){n.controlCharacterInInputStream="control-character-in-input-stream",n.noncharacterInInputStream="noncharacter-in-input-stream",n.surrogateInInputStream="surrogate-in-input-stream",n.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",n.endTagWithAttributes="end-tag-with-attributes",n.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",n.unexpectedSolidusInTag="unexpected-solidus-in-tag",n.unexpectedNullCharacter="unexpected-null-character",n.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",n.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",n.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",n.missingEndTagName="missing-end-tag-name",n.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",n.unknownNamedCharacterReference="unknown-named-character-reference",n.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",n.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",n.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",n.eofBeforeTagName="eof-before-tag-name",n.eofInTag="eof-in-tag",n.missingAttributeValue="missing-attribute-value",n.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",n.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",n.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",n.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",n.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",n.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",n.missingDoctypePublicIdentifier="missing-doctype-public-identifier",n.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",n.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",n.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",n.cdataInHtmlContent="cdata-in-html-content",n.incorrectlyOpenedComment="incorrectly-opened-comment",n.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",n.eofInDoctype="eof-in-doctype",n.nestedComment="nested-comment",n.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",n.eofInComment="eof-in-comment",n.incorrectlyClosedComment="incorrectly-closed-comment",n.eofInCdata="eof-in-cdata",n.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",n.nullCharacterReference="null-character-reference",n.surrogateCharacterReference="surrogate-character-reference",n.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",n.controlCharacterReference="control-character-reference",n.noncharacterCharacterReference="noncharacter-character-reference",n.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",n.missingDoctypeName="missing-doctype-name",n.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",n.duplicateAttribute="duplicate-attribute",n.nonConformingDoctype="non-conforming-doctype",n.missingDoctype="missing-doctype",n.misplacedDoctype="misplaced-doctype",n.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",n.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",n.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",n.openElementsLeftAfterEof="open-elements-left-after-eof",n.abandonedHeadElementChild="abandoned-head-element-child",n.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",n.nestedNoscriptInHead="nested-noscript-in-head",n.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(sn||(sn={}));const eor=65536;class tor{constructor(i){this.handler=i,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=eor,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(i,s){const{line:c,col:d,offset:g}=this,b=d+s,w=g+s;return{code:i,startLine:c,endLine:c,startCol:b,endCol:b,startOffset:w,endOffset:w}}_err(i){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(i,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(i){if(this.pos!==this.html.length-1){const s=this.html.charCodeAt(this.pos+1);if(Zir(s))return this.pos++,this._addGap(),Qir(i,s)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,$e.EOF;return this._err(sn.surrogateInInputStream),i}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(i,s){this.html.length>0?this.html+=i:this.html=i,this.endOfChunkHit=!1,this.lastChunkWritten=s}insertHtmlAtCurrentPos(i){this.html=this.html.substring(0,this.pos+1)+i+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(i,s){if(this.pos+i.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(s)return this.html.startsWith(i,this.pos);for(let c=0;c=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$e.EOF;const c=this.html.charCodeAt(s);return c===$e.CARRIAGE_RETURN?$e.LINE_FEED:c}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,$e.EOF;let i=this.html.charCodeAt(this.pos);return i===$e.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,$e.LINE_FEED):i===$e.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,DJt(i)&&(i=this._processSurrogate(i)),this.handler.onParseError===null||i>31&&i<127||i===$e.LINE_FEED||i===$e.CARRIAGE_RETURN||i>159&&i<64976||this._checkForProblematicCharacters(i),i)}_checkForProblematicCharacters(i){LJt(i)?this._err(sn.controlCharacterInInputStream):MJt(i)&&this._err(sn.noncharacterInInputStream)}retreat(i){for(this.pos-=i;this.pos=0;s--)if(n.attrs[s].name===i)return n.attrs[s].value;return null}const nor=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(n=>n.charCodeAt(0))),ror=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function ior(n){var i;return n>=55296&&n<=57343||n>1114111?65533:(i=ror.get(n))!==null&&i!==void 0?i:n}var nh;(function(n){n[n.NUM=35]="NUM",n[n.SEMI=59]="SEMI",n[n.EQUALS=61]="EQUALS",n[n.ZERO=48]="ZERO",n[n.NINE=57]="NINE",n[n.LOWER_A=97]="LOWER_A",n[n.LOWER_F=102]="LOWER_F",n[n.LOWER_X=120]="LOWER_X",n[n.LOWER_Z=122]="LOWER_Z",n[n.UPPER_A=65]="UPPER_A",n[n.UPPER_F=70]="UPPER_F",n[n.UPPER_Z=90]="UPPER_Z"})(nh||(nh={}));const oor=32;var qk;(function(n){n[n.VALUE_LENGTH=49152]="VALUE_LENGTH",n[n.BRANCH_LENGTH=16256]="BRANCH_LENGTH",n[n.JUMP_TABLE=127]="JUMP_TABLE"})(qk||(qk={}));function cLe(n){return n>=nh.ZERO&&n<=nh.NINE}function sor(n){return n>=nh.UPPER_A&&n<=nh.UPPER_F||n>=nh.LOWER_A&&n<=nh.LOWER_F}function aor(n){return n>=nh.UPPER_A&&n<=nh.UPPER_Z||n>=nh.LOWER_A&&n<=nh.LOWER_Z||cLe(n)}function uor(n){return n===nh.EQUALS||aor(n)}var Qf;(function(n){n[n.EntityStart=0]="EntityStart",n[n.NumericStart=1]="NumericStart",n[n.NumericDecimal=2]="NumericDecimal",n[n.NumericHex=3]="NumericHex",n[n.NamedEntity=4]="NamedEntity"})(Qf||(Qf={}));var aA;(function(n){n[n.Legacy=0]="Legacy",n[n.Strict=1]="Strict",n[n.Attribute=2]="Attribute"})(aA||(aA={}));class cor{constructor(i,s,c){this.decodeTree=i,this.emitCodePoint=s,this.errors=c,this.state=Qf.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=aA.Strict}startEntity(i){this.decodeMode=i,this.state=Qf.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(i,s){switch(this.state){case Qf.EntityStart:return i.charCodeAt(s)===nh.NUM?(this.state=Qf.NumericStart,this.consumed+=1,this.stateNumericStart(i,s+1)):(this.state=Qf.NamedEntity,this.stateNamedEntity(i,s));case Qf.NumericStart:return this.stateNumericStart(i,s);case Qf.NumericDecimal:return this.stateNumericDecimal(i,s);case Qf.NumericHex:return this.stateNumericHex(i,s);case Qf.NamedEntity:return this.stateNamedEntity(i,s)}}stateNumericStart(i,s){return s>=i.length?-1:(i.charCodeAt(s)|oor)===nh.LOWER_X?(this.state=Qf.NumericHex,this.consumed+=1,this.stateNumericHex(i,s+1)):(this.state=Qf.NumericDecimal,this.stateNumericDecimal(i,s))}addToNumericResult(i,s,c,d){if(s!==c){const g=c-s;this.result=this.result*Math.pow(d,g)+Number.parseInt(i.substr(s,g),d),this.consumed+=g}}stateNumericHex(i,s){const c=s;for(;s>14;for(;s>14,g!==0){if(b===nh.SEMI)return this.emitNamedEntityData(this.treeIndex,g,this.consumed+this.excess);this.decodeMode!==aA.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var i;const{result:s,decodeTree:c}=this,d=(c[s]&qk.VALUE_LENGTH)>>14;return this.emitNamedEntityData(s,d,this.consumed),(i=this.errors)===null||i===void 0||i.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(i,s,c){const{decodeTree:d}=this;return this.emitCodePoint(s===1?d[i]&~qk.VALUE_LENGTH:d[i+1],c),s===3&&this.emitCodePoint(d[i+2],c),c}end(){var i;switch(this.state){case Qf.NamedEntity:return this.result!==0&&(this.decodeMode!==aA.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qf.NumericDecimal:return this.emitNumericEntity(0,2);case Qf.NumericHex:return this.emitNumericEntity(0,3);case Qf.NumericStart:return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qf.EntityStart:return 0}}}function lor(n,i,s,c){const d=(i&qk.BRANCH_LENGTH)>>7,g=i&qk.JUMP_TABLE;if(d===0)return g!==0&&c===g?s:-1;if(g){const E=c-g;return E<0||E>=d?-1:n[s+E]-1}let b=s,w=b+d-1;for(;b<=w;){const E=b+w>>>1,S=n[E];if(Sc)w=E-1;else return n[E+d]}return-1}var Fn;(function(n){n.HTML="http://www.w3.org/1999/xhtml",n.MATHML="http://www.w3.org/1998/Math/MathML",n.SVG="http://www.w3.org/2000/svg",n.XLINK="http://www.w3.org/1999/xlink",n.XML="http://www.w3.org/XML/1998/namespace",n.XMLNS="http://www.w3.org/2000/xmlns/"})(Fn||(Fn={}));var iR;(function(n){n.TYPE="type",n.ACTION="action",n.ENCODING="encoding",n.PROMPT="prompt",n.NAME="name",n.COLOR="color",n.FACE="face",n.SIZE="size"})(iR||(iR={}));var ww;(function(n){n.NO_QUIRKS="no-quirks",n.QUIRKS="quirks",n.LIMITED_QUIRKS="limited-quirks"})(ww||(ww={}));var Pt;(function(n){n.A="a",n.ADDRESS="address",n.ANNOTATION_XML="annotation-xml",n.APPLET="applet",n.AREA="area",n.ARTICLE="article",n.ASIDE="aside",n.B="b",n.BASE="base",n.BASEFONT="basefont",n.BGSOUND="bgsound",n.BIG="big",n.BLOCKQUOTE="blockquote",n.BODY="body",n.BR="br",n.BUTTON="button",n.CAPTION="caption",n.CENTER="center",n.CODE="code",n.COL="col",n.COLGROUP="colgroup",n.DD="dd",n.DESC="desc",n.DETAILS="details",n.DIALOG="dialog",n.DIR="dir",n.DIV="div",n.DL="dl",n.DT="dt",n.EM="em",n.EMBED="embed",n.FIELDSET="fieldset",n.FIGCAPTION="figcaption",n.FIGURE="figure",n.FONT="font",n.FOOTER="footer",n.FOREIGN_OBJECT="foreignObject",n.FORM="form",n.FRAME="frame",n.FRAMESET="frameset",n.H1="h1",n.H2="h2",n.H3="h3",n.H4="h4",n.H5="h5",n.H6="h6",n.HEAD="head",n.HEADER="header",n.HGROUP="hgroup",n.HR="hr",n.HTML="html",n.I="i",n.IMG="img",n.IMAGE="image",n.INPUT="input",n.IFRAME="iframe",n.KEYGEN="keygen",n.LABEL="label",n.LI="li",n.LINK="link",n.LISTING="listing",n.MAIN="main",n.MALIGNMARK="malignmark",n.MARQUEE="marquee",n.MATH="math",n.MENU="menu",n.META="meta",n.MGLYPH="mglyph",n.MI="mi",n.MO="mo",n.MN="mn",n.MS="ms",n.MTEXT="mtext",n.NAV="nav",n.NOBR="nobr",n.NOFRAMES="noframes",n.NOEMBED="noembed",n.NOSCRIPT="noscript",n.OBJECT="object",n.OL="ol",n.OPTGROUP="optgroup",n.OPTION="option",n.P="p",n.PARAM="param",n.PLAINTEXT="plaintext",n.PRE="pre",n.RB="rb",n.RP="rp",n.RT="rt",n.RTC="rtc",n.RUBY="ruby",n.S="s",n.SCRIPT="script",n.SEARCH="search",n.SECTION="section",n.SELECT="select",n.SOURCE="source",n.SMALL="small",n.SPAN="span",n.STRIKE="strike",n.STRONG="strong",n.STYLE="style",n.SUB="sub",n.SUMMARY="summary",n.SUP="sup",n.TABLE="table",n.TBODY="tbody",n.TEMPLATE="template",n.TEXTAREA="textarea",n.TFOOT="tfoot",n.TD="td",n.TH="th",n.THEAD="thead",n.TITLE="title",n.TR="tr",n.TRACK="track",n.TT="tt",n.U="u",n.UL="ul",n.SVG="svg",n.VAR="var",n.WBR="wbr",n.XMP="xmp"})(Pt||(Pt={}));var W;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.A=1]="A",n[n.ADDRESS=2]="ADDRESS",n[n.ANNOTATION_XML=3]="ANNOTATION_XML",n[n.APPLET=4]="APPLET",n[n.AREA=5]="AREA",n[n.ARTICLE=6]="ARTICLE",n[n.ASIDE=7]="ASIDE",n[n.B=8]="B",n[n.BASE=9]="BASE",n[n.BASEFONT=10]="BASEFONT",n[n.BGSOUND=11]="BGSOUND",n[n.BIG=12]="BIG",n[n.BLOCKQUOTE=13]="BLOCKQUOTE",n[n.BODY=14]="BODY",n[n.BR=15]="BR",n[n.BUTTON=16]="BUTTON",n[n.CAPTION=17]="CAPTION",n[n.CENTER=18]="CENTER",n[n.CODE=19]="CODE",n[n.COL=20]="COL",n[n.COLGROUP=21]="COLGROUP",n[n.DD=22]="DD",n[n.DESC=23]="DESC",n[n.DETAILS=24]="DETAILS",n[n.DIALOG=25]="DIALOG",n[n.DIR=26]="DIR",n[n.DIV=27]="DIV",n[n.DL=28]="DL",n[n.DT=29]="DT",n[n.EM=30]="EM",n[n.EMBED=31]="EMBED",n[n.FIELDSET=32]="FIELDSET",n[n.FIGCAPTION=33]="FIGCAPTION",n[n.FIGURE=34]="FIGURE",n[n.FONT=35]="FONT",n[n.FOOTER=36]="FOOTER",n[n.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",n[n.FORM=38]="FORM",n[n.FRAME=39]="FRAME",n[n.FRAMESET=40]="FRAMESET",n[n.H1=41]="H1",n[n.H2=42]="H2",n[n.H3=43]="H3",n[n.H4=44]="H4",n[n.H5=45]="H5",n[n.H6=46]="H6",n[n.HEAD=47]="HEAD",n[n.HEADER=48]="HEADER",n[n.HGROUP=49]="HGROUP",n[n.HR=50]="HR",n[n.HTML=51]="HTML",n[n.I=52]="I",n[n.IMG=53]="IMG",n[n.IMAGE=54]="IMAGE",n[n.INPUT=55]="INPUT",n[n.IFRAME=56]="IFRAME",n[n.KEYGEN=57]="KEYGEN",n[n.LABEL=58]="LABEL",n[n.LI=59]="LI",n[n.LINK=60]="LINK",n[n.LISTING=61]="LISTING",n[n.MAIN=62]="MAIN",n[n.MALIGNMARK=63]="MALIGNMARK",n[n.MARQUEE=64]="MARQUEE",n[n.MATH=65]="MATH",n[n.MENU=66]="MENU",n[n.META=67]="META",n[n.MGLYPH=68]="MGLYPH",n[n.MI=69]="MI",n[n.MO=70]="MO",n[n.MN=71]="MN",n[n.MS=72]="MS",n[n.MTEXT=73]="MTEXT",n[n.NAV=74]="NAV",n[n.NOBR=75]="NOBR",n[n.NOFRAMES=76]="NOFRAMES",n[n.NOEMBED=77]="NOEMBED",n[n.NOSCRIPT=78]="NOSCRIPT",n[n.OBJECT=79]="OBJECT",n[n.OL=80]="OL",n[n.OPTGROUP=81]="OPTGROUP",n[n.OPTION=82]="OPTION",n[n.P=83]="P",n[n.PARAM=84]="PARAM",n[n.PLAINTEXT=85]="PLAINTEXT",n[n.PRE=86]="PRE",n[n.RB=87]="RB",n[n.RP=88]="RP",n[n.RT=89]="RT",n[n.RTC=90]="RTC",n[n.RUBY=91]="RUBY",n[n.S=92]="S",n[n.SCRIPT=93]="SCRIPT",n[n.SEARCH=94]="SEARCH",n[n.SECTION=95]="SECTION",n[n.SELECT=96]="SELECT",n[n.SOURCE=97]="SOURCE",n[n.SMALL=98]="SMALL",n[n.SPAN=99]="SPAN",n[n.STRIKE=100]="STRIKE",n[n.STRONG=101]="STRONG",n[n.STYLE=102]="STYLE",n[n.SUB=103]="SUB",n[n.SUMMARY=104]="SUMMARY",n[n.SUP=105]="SUP",n[n.TABLE=106]="TABLE",n[n.TBODY=107]="TBODY",n[n.TEMPLATE=108]="TEMPLATE",n[n.TEXTAREA=109]="TEXTAREA",n[n.TFOOT=110]="TFOOT",n[n.TD=111]="TD",n[n.TH=112]="TH",n[n.THEAD=113]="THEAD",n[n.TITLE=114]="TITLE",n[n.TR=115]="TR",n[n.TRACK=116]="TRACK",n[n.TT=117]="TT",n[n.U=118]="U",n[n.UL=119]="UL",n[n.SVG=120]="SVG",n[n.VAR=121]="VAR",n[n.WBR=122]="WBR",n[n.XMP=123]="XMP"})(W||(W={}));const dor=new Map([[Pt.A,W.A],[Pt.ADDRESS,W.ADDRESS],[Pt.ANNOTATION_XML,W.ANNOTATION_XML],[Pt.APPLET,W.APPLET],[Pt.AREA,W.AREA],[Pt.ARTICLE,W.ARTICLE],[Pt.ASIDE,W.ASIDE],[Pt.B,W.B],[Pt.BASE,W.BASE],[Pt.BASEFONT,W.BASEFONT],[Pt.BGSOUND,W.BGSOUND],[Pt.BIG,W.BIG],[Pt.BLOCKQUOTE,W.BLOCKQUOTE],[Pt.BODY,W.BODY],[Pt.BR,W.BR],[Pt.BUTTON,W.BUTTON],[Pt.CAPTION,W.CAPTION],[Pt.CENTER,W.CENTER],[Pt.CODE,W.CODE],[Pt.COL,W.COL],[Pt.COLGROUP,W.COLGROUP],[Pt.DD,W.DD],[Pt.DESC,W.DESC],[Pt.DETAILS,W.DETAILS],[Pt.DIALOG,W.DIALOG],[Pt.DIR,W.DIR],[Pt.DIV,W.DIV],[Pt.DL,W.DL],[Pt.DT,W.DT],[Pt.EM,W.EM],[Pt.EMBED,W.EMBED],[Pt.FIELDSET,W.FIELDSET],[Pt.FIGCAPTION,W.FIGCAPTION],[Pt.FIGURE,W.FIGURE],[Pt.FONT,W.FONT],[Pt.FOOTER,W.FOOTER],[Pt.FOREIGN_OBJECT,W.FOREIGN_OBJECT],[Pt.FORM,W.FORM],[Pt.FRAME,W.FRAME],[Pt.FRAMESET,W.FRAMESET],[Pt.H1,W.H1],[Pt.H2,W.H2],[Pt.H3,W.H3],[Pt.H4,W.H4],[Pt.H5,W.H5],[Pt.H6,W.H6],[Pt.HEAD,W.HEAD],[Pt.HEADER,W.HEADER],[Pt.HGROUP,W.HGROUP],[Pt.HR,W.HR],[Pt.HTML,W.HTML],[Pt.I,W.I],[Pt.IMG,W.IMG],[Pt.IMAGE,W.IMAGE],[Pt.INPUT,W.INPUT],[Pt.IFRAME,W.IFRAME],[Pt.KEYGEN,W.KEYGEN],[Pt.LABEL,W.LABEL],[Pt.LI,W.LI],[Pt.LINK,W.LINK],[Pt.LISTING,W.LISTING],[Pt.MAIN,W.MAIN],[Pt.MALIGNMARK,W.MALIGNMARK],[Pt.MARQUEE,W.MARQUEE],[Pt.MATH,W.MATH],[Pt.MENU,W.MENU],[Pt.META,W.META],[Pt.MGLYPH,W.MGLYPH],[Pt.MI,W.MI],[Pt.MO,W.MO],[Pt.MN,W.MN],[Pt.MS,W.MS],[Pt.MTEXT,W.MTEXT],[Pt.NAV,W.NAV],[Pt.NOBR,W.NOBR],[Pt.NOFRAMES,W.NOFRAMES],[Pt.NOEMBED,W.NOEMBED],[Pt.NOSCRIPT,W.NOSCRIPT],[Pt.OBJECT,W.OBJECT],[Pt.OL,W.OL],[Pt.OPTGROUP,W.OPTGROUP],[Pt.OPTION,W.OPTION],[Pt.P,W.P],[Pt.PARAM,W.PARAM],[Pt.PLAINTEXT,W.PLAINTEXT],[Pt.PRE,W.PRE],[Pt.RB,W.RB],[Pt.RP,W.RP],[Pt.RT,W.RT],[Pt.RTC,W.RTC],[Pt.RUBY,W.RUBY],[Pt.S,W.S],[Pt.SCRIPT,W.SCRIPT],[Pt.SEARCH,W.SEARCH],[Pt.SECTION,W.SECTION],[Pt.SELECT,W.SELECT],[Pt.SOURCE,W.SOURCE],[Pt.SMALL,W.SMALL],[Pt.SPAN,W.SPAN],[Pt.STRIKE,W.STRIKE],[Pt.STRONG,W.STRONG],[Pt.STYLE,W.STYLE],[Pt.SUB,W.SUB],[Pt.SUMMARY,W.SUMMARY],[Pt.SUP,W.SUP],[Pt.TABLE,W.TABLE],[Pt.TBODY,W.TBODY],[Pt.TEMPLATE,W.TEMPLATE],[Pt.TEXTAREA,W.TEXTAREA],[Pt.TFOOT,W.TFOOT],[Pt.TD,W.TD],[Pt.TH,W.TH],[Pt.THEAD,W.THEAD],[Pt.TITLE,W.TITLE],[Pt.TR,W.TR],[Pt.TRACK,W.TRACK],[Pt.TT,W.TT],[Pt.U,W.U],[Pt.UL,W.UL],[Pt.SVG,W.SVG],[Pt.VAR,W.VAR],[Pt.WBR,W.WBR],[Pt.XMP,W.XMP]]);function iue(n){var i;return(i=dor.get(n))!==null&&i!==void 0?i:W.UNKNOWN}const Xn=W,hor={[Fn.HTML]:new Set([Xn.ADDRESS,Xn.APPLET,Xn.AREA,Xn.ARTICLE,Xn.ASIDE,Xn.BASE,Xn.BASEFONT,Xn.BGSOUND,Xn.BLOCKQUOTE,Xn.BODY,Xn.BR,Xn.BUTTON,Xn.CAPTION,Xn.CENTER,Xn.COL,Xn.COLGROUP,Xn.DD,Xn.DETAILS,Xn.DIR,Xn.DIV,Xn.DL,Xn.DT,Xn.EMBED,Xn.FIELDSET,Xn.FIGCAPTION,Xn.FIGURE,Xn.FOOTER,Xn.FORM,Xn.FRAME,Xn.FRAMESET,Xn.H1,Xn.H2,Xn.H3,Xn.H4,Xn.H5,Xn.H6,Xn.HEAD,Xn.HEADER,Xn.HGROUP,Xn.HR,Xn.HTML,Xn.IFRAME,Xn.IMG,Xn.INPUT,Xn.LI,Xn.LINK,Xn.LISTING,Xn.MAIN,Xn.MARQUEE,Xn.MENU,Xn.META,Xn.NAV,Xn.NOEMBED,Xn.NOFRAMES,Xn.NOSCRIPT,Xn.OBJECT,Xn.OL,Xn.P,Xn.PARAM,Xn.PLAINTEXT,Xn.PRE,Xn.SCRIPT,Xn.SECTION,Xn.SELECT,Xn.SOURCE,Xn.STYLE,Xn.SUMMARY,Xn.TABLE,Xn.TBODY,Xn.TD,Xn.TEMPLATE,Xn.TEXTAREA,Xn.TFOOT,Xn.TH,Xn.THEAD,Xn.TITLE,Xn.TR,Xn.TRACK,Xn.UL,Xn.WBR,Xn.XMP]),[Fn.MATHML]:new Set([Xn.MI,Xn.MO,Xn.MN,Xn.MS,Xn.MTEXT,Xn.ANNOTATION_XML]),[Fn.SVG]:new Set([Xn.TITLE,Xn.FOREIGN_OBJECT,Xn.DESC]),[Fn.XLINK]:new Set,[Fn.XML]:new Set,[Fn.XMLNS]:new Set},lLe=new Set([Xn.H1,Xn.H2,Xn.H3,Xn.H4,Xn.H5,Xn.H6]);Pt.STYLE,Pt.SCRIPT,Pt.XMP,Pt.IFRAME,Pt.NOEMBED,Pt.NOFRAMES,Pt.PLAINTEXT;var Ve;(function(n){n[n.DATA=0]="DATA",n[n.RCDATA=1]="RCDATA",n[n.RAWTEXT=2]="RAWTEXT",n[n.SCRIPT_DATA=3]="SCRIPT_DATA",n[n.PLAINTEXT=4]="PLAINTEXT",n[n.TAG_OPEN=5]="TAG_OPEN",n[n.END_TAG_OPEN=6]="END_TAG_OPEN",n[n.TAG_NAME=7]="TAG_NAME",n[n.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",n[n.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",n[n.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",n[n.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",n[n.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",n[n.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",n[n.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",n[n.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",n[n.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",n[n.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",n[n.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",n[n.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",n[n.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",n[n.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",n[n.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",n[n.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",n[n.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",n[n.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",n[n.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",n[n.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",n[n.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",n[n.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",n[n.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",n[n.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",n[n.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",n[n.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",n[n.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",n[n.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",n[n.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",n[n.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",n[n.BOGUS_COMMENT=40]="BOGUS_COMMENT",n[n.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",n[n.COMMENT_START=42]="COMMENT_START",n[n.COMMENT_START_DASH=43]="COMMENT_START_DASH",n[n.COMMENT=44]="COMMENT",n[n.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",n[n.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",n[n.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",n[n.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",n[n.COMMENT_END_DASH=49]="COMMENT_END_DASH",n[n.COMMENT_END=50]="COMMENT_END",n[n.COMMENT_END_BANG=51]="COMMENT_END_BANG",n[n.DOCTYPE=52]="DOCTYPE",n[n.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",n[n.DOCTYPE_NAME=54]="DOCTYPE_NAME",n[n.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",n[n.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",n[n.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",n[n.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",n[n.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",n[n.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",n[n.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",n[n.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",n[n.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",n[n.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",n[n.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",n[n.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",n[n.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",n[n.CDATA_SECTION=68]="CDATA_SECTION",n[n.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",n[n.CDATA_SECTION_END=70]="CDATA_SECTION_END",n[n.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",n[n.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(Ve||(Ve={}));const ob={DATA:Ve.DATA,RCDATA:Ve.RCDATA,RAWTEXT:Ve.RAWTEXT,SCRIPT_DATA:Ve.SCRIPT_DATA,PLAINTEXT:Ve.PLAINTEXT,CDATA_SECTION:Ve.CDATA_SECTION};function por(n){return n>=$e.DIGIT_0&&n<=$e.DIGIT_9}function sH(n){return n>=$e.LATIN_CAPITAL_A&&n<=$e.LATIN_CAPITAL_Z}function gor(n){return n>=$e.LATIN_SMALL_A&&n<=$e.LATIN_SMALL_Z}function Lk(n){return gor(n)||sH(n)}function a$t(n){return Lk(n)||por(n)}function Oie(n){return n+32}function jJt(n){return n===$e.SPACE||n===$e.LINE_FEED||n===$e.TABULATION||n===$e.FORM_FEED}function u$t(n){return jJt(n)||n===$e.SOLIDUS||n===$e.GREATER_THAN_SIGN}function bor(n){return n===$e.NULL?sn.nullCharacterReference:n>1114111?sn.characterReferenceOutsideUnicodeRange:DJt(n)?sn.surrogateCharacterReference:MJt(n)?sn.noncharacterCharacterReference:LJt(n)||n===$e.CARRIAGE_RETURN?sn.controlCharacterReference:null}class mor{constructor(i,s){this.options=i,this.handler=s,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Ve.DATA,this.returnState=Ve.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new tor(s),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new cor(nor,(c,d)=>{this.preprocessor.pos=this.entityStartPos+d-1,this._flushCodePointConsumedAsCharacterReference(c)},s.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(sn.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:c=>{this._err(sn.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+c)},validateNumericCharacterReference:c=>{const d=bor(c);d&&this._err(d,1)}}:void 0)}_err(i,s=0){var c,d;(d=(c=this.handler).onParseError)===null||d===void 0||d.call(c,this.preprocessor.getError(i,s))}getCurrentLocation(i){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-i,startOffset:this.preprocessor.offset-i,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const i=this._consume();this._ensureHibernation()||this._callState(i)}this.inLoop=!1}}pause(){this.paused=!0}resume(i){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||i==null||i())}write(i,s,c){this.active=!0,this.preprocessor.write(i,s),this._runParsingLoop(),this.paused||c==null||c()}insertHtmlAtCurrentPos(i){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(i),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(i){this.consumedAfterSnapshot+=i;for(let s=0;s0&&this._err(sn.endTagWithAttributes),i.selfClosing&&this._err(sn.endTagWithTrailingSolidus),this.handler.onEndTag(i)),this.preprocessor.dropParsedChunk()}emitCurrentComment(i){this.prepareToken(i),this.handler.onComment(i),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(i){this.prepareToken(i),this.handler.onDoctype(i),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(i){if(this.currentCharacterToken){switch(i&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=i.startLine,this.currentCharacterToken.location.endCol=i.startCol,this.currentCharacterToken.location.endOffset=i.startOffset),this.currentCharacterToken.type){case ha.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ha.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ha.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const i=this.getCurrentLocation(0);i&&(i.endLine=i.startLine,i.endCol=i.startCol,i.endOffset=i.startOffset),this._emitCurrentCharacterToken(i),this.handler.onEof({type:ha.EOF,location:i}),this.active=!1}_appendCharToCurrentCharacterToken(i,s){if(this.currentCharacterToken)if(this.currentCharacterToken.type===i){this.currentCharacterToken.chars+=s;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(i,s)}_emitCodePoint(i){const s=jJt(i)?ha.WHITESPACE_CHARACTER:i===$e.NULL?ha.NULL_CHARACTER:ha.CHARACTER;this._appendCharToCurrentCharacterToken(s,String.fromCodePoint(i))}_emitChars(i){this._appendCharToCurrentCharacterToken(ha.CHARACTER,i)}_startCharacterReference(){this.returnState=this.state,this.state=Ve.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?aA.Attribute:aA.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===Ve.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Ve.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Ve.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(i){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(i):this._emitCodePoint(i)}_callState(i){switch(this.state){case Ve.DATA:{this._stateData(i);break}case Ve.RCDATA:{this._stateRcdata(i);break}case Ve.RAWTEXT:{this._stateRawtext(i);break}case Ve.SCRIPT_DATA:{this._stateScriptData(i);break}case Ve.PLAINTEXT:{this._statePlaintext(i);break}case Ve.TAG_OPEN:{this._stateTagOpen(i);break}case Ve.END_TAG_OPEN:{this._stateEndTagOpen(i);break}case Ve.TAG_NAME:{this._stateTagName(i);break}case Ve.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(i);break}case Ve.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(i);break}case Ve.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(i);break}case Ve.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(i);break}case Ve.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(i);break}case Ve.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(i);break}case Ve.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(i);break}case Ve.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(i);break}case Ve.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(i);break}case Ve.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(i);break}case Ve.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(i);break}case Ve.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(i);break}case Ve.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(i);break}case Ve.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(i);break}case Ve.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(i);break}case Ve.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(i);break}case Ve.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(i);break}case Ve.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(i);break}case Ve.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(i);break}case Ve.ATTRIBUTE_NAME:{this._stateAttributeName(i);break}case Ve.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(i);break}case Ve.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(i);break}case Ve.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(i);break}case Ve.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(i);break}case Ve.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(i);break}case Ve.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(i);break}case Ve.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(i);break}case Ve.BOGUS_COMMENT:{this._stateBogusComment(i);break}case Ve.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(i);break}case Ve.COMMENT_START:{this._stateCommentStart(i);break}case Ve.COMMENT_START_DASH:{this._stateCommentStartDash(i);break}case Ve.COMMENT:{this._stateComment(i);break}case Ve.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(i);break}case Ve.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(i);break}case Ve.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(i);break}case Ve.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(i);break}case Ve.COMMENT_END_DASH:{this._stateCommentEndDash(i);break}case Ve.COMMENT_END:{this._stateCommentEnd(i);break}case Ve.COMMENT_END_BANG:{this._stateCommentEndBang(i);break}case Ve.DOCTYPE:{this._stateDoctype(i);break}case Ve.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(i);break}case Ve.DOCTYPE_NAME:{this._stateDoctypeName(i);break}case Ve.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(i);break}case Ve.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(i);break}case Ve.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(i);break}case Ve.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(i);break}case Ve.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(i);break}case Ve.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(i);break}case Ve.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(i);break}case Ve.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(i);break}case Ve.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(i);break}case Ve.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(i);break}case Ve.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(i);break}case Ve.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(i);break}case Ve.BOGUS_DOCTYPE:{this._stateBogusDoctype(i);break}case Ve.CDATA_SECTION:{this._stateCdataSection(i);break}case Ve.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(i);break}case Ve.CDATA_SECTION_END:{this._stateCdataSectionEnd(i);break}case Ve.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case Ve.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(i);break}default:throw new Error("Unknown state")}}_stateData(i){switch(i){case $e.LESS_THAN_SIGN:{this.state=Ve.TAG_OPEN;break}case $e.AMPERSAND:{this._startCharacterReference();break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this._emitCodePoint(i);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateRcdata(i){switch(i){case $e.AMPERSAND:{this._startCharacterReference();break}case $e.LESS_THAN_SIGN:{this.state=Ve.RCDATA_LESS_THAN_SIGN;break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateRawtext(i){switch(i){case $e.LESS_THAN_SIGN:{this.state=Ve.RAWTEXT_LESS_THAN_SIGN;break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateScriptData(i){switch(i){case $e.LESS_THAN_SIGN:{this.state=Ve.SCRIPT_DATA_LESS_THAN_SIGN;break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_statePlaintext(i){switch(i){case $e.NULL:{this._err(sn.unexpectedNullCharacter),this._emitChars(Oc);break}case $e.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(i)}}_stateTagOpen(i){if(Lk(i))this._createStartTagToken(),this.state=Ve.TAG_NAME,this._stateTagName(i);else switch(i){case $e.EXCLAMATION_MARK:{this.state=Ve.MARKUP_DECLARATION_OPEN;break}case $e.SOLIDUS:{this.state=Ve.END_TAG_OPEN;break}case $e.QUESTION_MARK:{this._err(sn.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Ve.BOGUS_COMMENT,this._stateBogusComment(i);break}case $e.EOF:{this._err(sn.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(sn.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Ve.DATA,this._stateData(i)}}_stateEndTagOpen(i){if(Lk(i))this._createEndTagToken(),this.state=Ve.TAG_NAME,this._stateTagName(i);else switch(i){case $e.GREATER_THAN_SIGN:{this._err(sn.missingEndTagName),this.state=Ve.DATA;break}case $e.EOF:{this._err(sn.eofBeforeTagName),this._emitChars("");break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this.state=Ve.SCRIPT_DATA_ESCAPED,this._emitChars(Oc);break}case $e.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Ve.SCRIPT_DATA_ESCAPED,this._emitCodePoint(i)}}_stateScriptDataEscapedLessThanSign(i){i===$e.SOLIDUS?this.state=Ve.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Lk(i)?(this._emitChars("<"),this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(i)):(this._emitChars("<"),this.state=Ve.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(i))}_stateScriptDataEscapedEndTagOpen(i){Lk(i)?(this.state=Ve.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(i)):(this._emitChars("");break}case $e.NULL:{this._err(sn.unexpectedNullCharacter),this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Oc);break}case $e.EOF:{this._err(sn.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(i)}}_stateScriptDataDoubleEscapedLessThanSign(i){i===$e.SOLIDUS?(this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Ve.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(i))}_stateScriptDataDoubleEscapeEnd(i){if(this.preprocessor.startsWith(tb.SCRIPT,!1)&&u$t(this.preprocessor.peek(tb.SCRIPT.length))){this._emitCodePoint(i);for(let s=0;s0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(i,!0)}replace(i,s){const c=this._indexOf(i);this.items[c]=s,c===this.stackTop&&(this.current=s)}insertAfter(i,s,c){const d=this._indexOf(i)+1;this.items.splice(d,0,s),this.tagIDs.splice(d,0,c),this.stackTop++,d===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,d===this.stackTop)}popUntilTagNamePopped(i){let s=this.stackTop+1;do s=this.tagIDs.lastIndexOf(i,s-1);while(s>0&&this.treeAdapter.getNamespaceURI(this.items[s])!==Fn.HTML);this.shortenToLength(Math.max(s,0))}shortenToLength(i){for(;this.stackTop>=i;){const s=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(s,this.stackTop=0;c--)if(i.has(this.tagIDs[c])&&this.treeAdapter.getNamespaceURI(this.items[c])===s)return c;return-1}clearBackTo(i,s){const c=this._indexOfTagNames(i,s);this.shortenToLength(c+1)}clearBackToTableContext(){this.clearBackTo(Sor,Fn.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Eor,Fn.HTML)}clearBackToTableRowContext(){this.clearBackTo(vor,Fn.HTML)}remove(i){const s=this._indexOf(i);s>=0&&(s===this.stackTop?this.pop():(this.items.splice(s,1),this.tagIDs.splice(s,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(i,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===W.BODY?this.items[1]:null}contains(i){return this._indexOf(i)>-1}getCommonAncestor(i){const s=this._indexOf(i)-1;return s>=0?this.items[s]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===W.HTML}hasInDynamicScope(i,s){for(let c=this.stackTop;c>=0;c--){const d=this.tagIDs[c];switch(this.treeAdapter.getNamespaceURI(this.items[c])){case Fn.HTML:{if(d===i)return!0;if(s.has(d))return!1;break}case Fn.SVG:{if(d$t.has(d))return!1;break}case Fn.MATHML:{if(l$t.has(d))return!1;break}}}return!0}hasInScope(i){return this.hasInDynamicScope(i,Ase)}hasInListItemScope(i){return this.hasInDynamicScope(i,wor)}hasInButtonScope(i){return this.hasInDynamicScope(i,yor)}hasNumberedHeaderInScope(){for(let i=this.stackTop;i>=0;i--){const s=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case Fn.HTML:{if(lLe.has(s))return!0;if(Ase.has(s))return!1;break}case Fn.SVG:{if(d$t.has(s))return!1;break}case Fn.MATHML:{if(l$t.has(s))return!1;break}}}return!0}hasInTableScope(i){for(let s=this.stackTop;s>=0;s--)if(this.treeAdapter.getNamespaceURI(this.items[s])===Fn.HTML)switch(this.tagIDs[s]){case i:return!0;case W.TABLE:case W.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let i=this.stackTop;i>=0;i--)if(this.treeAdapter.getNamespaceURI(this.items[i])===Fn.HTML)switch(this.tagIDs[i]){case W.TBODY:case W.THEAD:case W.TFOOT:return!0;case W.TABLE:case W.HTML:return!1}return!0}hasInSelectScope(i){for(let s=this.stackTop;s>=0;s--)if(this.treeAdapter.getNamespaceURI(this.items[s])===Fn.HTML)switch(this.tagIDs[s]){case i:return!0;case W.OPTION:case W.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&FJt.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&c$t.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(i){for(;this.currentTagId!==void 0&&this.currentTagId!==i&&c$t.has(this.currentTagId);)this.pop()}}const YOe=3;var I2;(function(n){n[n.Marker=0]="Marker",n[n.Element=1]="Element"})(I2||(I2={}));const f$t={type:I2.Marker};class _or{constructor(i){this.treeAdapter=i,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(i,s){const c=[],d=s.length,g=this.treeAdapter.getTagName(i),b=this.treeAdapter.getNamespaceURI(i);for(let w=0;w[b.name,b.value]));let g=0;for(let b=0;bd.get(E.name)===E.value)&&(g+=1,g>=YOe&&this.entries.splice(w.idx,1))}}insertMarker(){this.entries.unshift(f$t)}pushElement(i,s){this._ensureNoahArkCondition(i),this.entries.unshift({type:I2.Element,element:i,token:s})}insertElementAfterBookmark(i,s){const c=this.entries.indexOf(this.bookmark);this.entries.splice(c,0,{type:I2.Element,element:i,token:s})}removeEntry(i){const s=this.entries.indexOf(i);s!==-1&&this.entries.splice(s,1)}clearToLastMarker(){const i=this.entries.indexOf(f$t);i===-1?this.entries.length=0:this.entries.splice(0,i+1)}getElementEntryInScopeWithTagName(i){const s=this.entries.find(c=>c.type===I2.Marker||this.treeAdapter.getTagName(c.element)===i);return s&&s.type===I2.Element?s:null}getElementEntry(i){return this.entries.find(s=>s.type===I2.Element&&s.element===i)}}const Mk={createDocument(){return{nodeName:"#document",mode:ww.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(n,i,s){return{nodeName:n,tagName:n,attrs:s,namespaceURI:i,childNodes:[],parentNode:null}},createCommentNode(n){return{nodeName:"#comment",data:n,parentNode:null}},createTextNode(n){return{nodeName:"#text",value:n,parentNode:null}},appendChild(n,i){n.childNodes.push(i),i.parentNode=n},insertBefore(n,i,s){const c=n.childNodes.indexOf(s);n.childNodes.splice(c,0,i),i.parentNode=n},setTemplateContent(n,i){n.content=i},getTemplateContent(n){return n.content},setDocumentType(n,i,s,c){const d=n.childNodes.find(g=>g.nodeName==="#documentType");if(d)d.name=i,d.publicId=s,d.systemId=c;else{const g={nodeName:"#documentType",name:i,publicId:s,systemId:c,parentNode:null};Mk.appendChild(n,g)}},setDocumentMode(n,i){n.mode=i},getDocumentMode(n){return n.mode},detachNode(n){if(n.parentNode){const i=n.parentNode.childNodes.indexOf(n);n.parentNode.childNodes.splice(i,1),n.parentNode=null}},insertText(n,i){if(n.childNodes.length>0){const s=n.childNodes[n.childNodes.length-1];if(Mk.isTextNode(s)){s.value+=i;return}}Mk.appendChild(n,Mk.createTextNode(i))},insertTextBefore(n,i,s){const c=n.childNodes[n.childNodes.indexOf(s)-1];c&&Mk.isTextNode(c)?c.value+=i:Mk.insertBefore(n,Mk.createTextNode(i),s)},adoptAttributes(n,i){const s=new Set(n.attrs.map(c=>c.name));for(let c=0;cn.startsWith(s))}function Ror(n){return n.name===$Jt&&n.publicId===null&&(n.systemId===null||n.systemId===xor)}function Oor(n){if(n.name!==$Jt)return ww.QUIRKS;const{systemId:i}=n;if(i&&i.toLowerCase()===kor)return ww.QUIRKS;let{publicId:s}=n;if(s!==null){if(s=s.toLowerCase(),Cor.has(s))return ww.QUIRKS;let c=i===null?Nor:BJt;if(h$t(s,c))return ww.QUIRKS;if(c=i===null?UJt:Ior,h$t(s,c))return ww.LIMITED_QUIRKS}return ww.NO_QUIRKS}const p$t={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Dor="definitionurl",Lor="definitionURL",Mor=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(n=>[n.toLowerCase(),n])),Por=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Fn.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Fn.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Fn.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Fn.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Fn.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Fn.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Fn.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Fn.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Fn.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Fn.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Fn.XMLNS}]]),jor=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(n=>[n.toLowerCase(),n])),For=new Set([W.B,W.BIG,W.BLOCKQUOTE,W.BODY,W.BR,W.CENTER,W.CODE,W.DD,W.DIV,W.DL,W.DT,W.EM,W.EMBED,W.H1,W.H2,W.H3,W.H4,W.H5,W.H6,W.HEAD,W.HR,W.I,W.IMG,W.LI,W.LISTING,W.MENU,W.META,W.NOBR,W.OL,W.P,W.PRE,W.RUBY,W.S,W.SMALL,W.SPAN,W.STRONG,W.STRIKE,W.SUB,W.SUP,W.TABLE,W.TT,W.U,W.UL,W.VAR]);function $or(n){const i=n.tagID;return i===W.FONT&&n.attrs.some(({name:c})=>c===iR.COLOR||c===iR.SIZE||c===iR.FACE)||For.has(i)}function HJt(n){for(let i=0;i0&&this._setContextModes(i,s)}onItemPop(i,s){var c,d;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(i,this.currentToken),(d=(c=this.treeAdapter).onItemPop)===null||d===void 0||d.call(c,i,this.openElements.current),s){let g,b;this.openElements.stackTop===0&&this.fragmentContext?(g=this.fragmentContext,b=this.fragmentContextID):{current:g,currentTagId:b}=this.openElements,this._setContextModes(g,b)}}_setContextModes(i,s){const c=i===this.document||i&&this.treeAdapter.getNamespaceURI(i)===Fn.HTML;this.currentNotInHTML=!c,this.tokenizer.inForeignNode=!c&&i!==void 0&&s!==void 0&&!this._isIntegrationPoint(s,i)}_switchToTextParsing(i,s){this._insertElement(i,Fn.HTML),this.tokenizer.state=s,this.originalInsertionMode=this.insertionMode,this.insertionMode=ut.TEXT}switchToPlaintextParsing(){this.insertionMode=ut.TEXT,this.originalInsertionMode=ut.IN_BODY,this.tokenizer.state=ob.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let i=this.fragmentContext;for(;i;){if(this.treeAdapter.getTagName(i)===Pt.FORM){this.formElement=i;break}i=this.treeAdapter.getParentNode(i)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Fn.HTML))switch(this.fragmentContextID){case W.TITLE:case W.TEXTAREA:{this.tokenizer.state=ob.RCDATA;break}case W.STYLE:case W.XMP:case W.IFRAME:case W.NOEMBED:case W.NOFRAMES:case W.NOSCRIPT:{this.tokenizer.state=ob.RAWTEXT;break}case W.SCRIPT:{this.tokenizer.state=ob.SCRIPT_DATA;break}case W.PLAINTEXT:{this.tokenizer.state=ob.PLAINTEXT;break}}}_setDocumentType(i){const s=i.name||"",c=i.publicId||"",d=i.systemId||"";if(this.treeAdapter.setDocumentType(this.document,s,c,d),i.location){const b=this.treeAdapter.getChildNodes(this.document).find(w=>this.treeAdapter.isDocumentTypeNode(w));b&&this.treeAdapter.setNodeSourceCodeLocation(b,i.location)}}_attachElementToTree(i,s){if(this.options.sourceCodeLocationInfo){const c=s&&{...s,startTag:s};this.treeAdapter.setNodeSourceCodeLocation(i,c)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(i);else{const c=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(c??this.document,i)}}_appendElement(i,s){const c=this.treeAdapter.createElement(i.tagName,s,i.attrs);this._attachElementToTree(c,i.location)}_insertElement(i,s){const c=this.treeAdapter.createElement(i.tagName,s,i.attrs);this._attachElementToTree(c,i.location),this.openElements.push(c,i.tagID)}_insertFakeElement(i,s){const c=this.treeAdapter.createElement(i,Fn.HTML,[]);this._attachElementToTree(c,null),this.openElements.push(c,s)}_insertTemplate(i){const s=this.treeAdapter.createElement(i.tagName,Fn.HTML,i.attrs),c=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(s,c),this._attachElementToTree(s,i.location),this.openElements.push(s,i.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,null)}_insertFakeRootElement(){const i=this.treeAdapter.createElement(Pt.HTML,Fn.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null),this.treeAdapter.appendChild(this.openElements.current,i),this.openElements.push(i,W.HTML)}_appendCommentNode(i,s){const c=this.treeAdapter.createCommentNode(i.data);this.treeAdapter.appendChild(s,c),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(c,i.location)}_insertCharacters(i){let s,c;if(this._shouldFosterParentOnInsertion()?({parent:s,beforeElement:c}=this._findFosterParentingLocation(),c?this.treeAdapter.insertTextBefore(s,i.chars,c):this.treeAdapter.insertText(s,i.chars)):(s=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(s,i.chars)),!i.location)return;const d=this.treeAdapter.getChildNodes(s),g=c?d.lastIndexOf(c):d.length,b=d[g-1];if(this.treeAdapter.getNodeSourceCodeLocation(b)){const{endLine:E,endCol:S,endOffset:x}=i.location;this.treeAdapter.updateNodeSourceCodeLocation(b,{endLine:E,endCol:S,endOffset:x})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(b,i.location)}_adoptNodes(i,s){for(let c=this.treeAdapter.getFirstChild(i);c;c=this.treeAdapter.getFirstChild(i))this.treeAdapter.detachNode(c),this.treeAdapter.appendChild(s,c)}_setEndLocation(i,s){if(this.treeAdapter.getNodeSourceCodeLocation(i)&&s.location){const c=s.location,d=this.treeAdapter.getTagName(i),g=s.type===ha.END_TAG&&d===s.tagName?{endTag:{...c},endLine:c.endLine,endCol:c.endCol,endOffset:c.endOffset}:{endLine:c.startLine,endCol:c.startCol,endOffset:c.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(i,g)}}shouldProcessStartTagTokenInForeignContent(i){if(!this.currentNotInHTML)return!1;let s,c;return this.openElements.stackTop===0&&this.fragmentContext?(s=this.fragmentContext,c=this.fragmentContextID):{current:s,currentTagId:c}=this.openElements,i.tagID===W.SVG&&this.treeAdapter.getTagName(s)===Pt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(s)===Fn.MATHML?!1:this.tokenizer.inForeignNode||(i.tagID===W.MGLYPH||i.tagID===W.MALIGNMARK)&&c!==void 0&&!this._isIntegrationPoint(c,s,Fn.HTML)}_processToken(i){switch(i.type){case ha.CHARACTER:{this.onCharacter(i);break}case ha.NULL_CHARACTER:{this.onNullCharacter(i);break}case ha.COMMENT:{this.onComment(i);break}case ha.DOCTYPE:{this.onDoctype(i);break}case ha.START_TAG:{this._processStartTag(i);break}case ha.END_TAG:{this.onEndTag(i);break}case ha.EOF:{this.onEof(i);break}case ha.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(i);break}}}_isIntegrationPoint(i,s,c){const d=this.treeAdapter.getNamespaceURI(s),g=this.treeAdapter.getAttrList(s);return zor(i,d,g,c)}_reconstructActiveFormattingElements(){const i=this.activeFormattingElements.entries.length;if(i){const s=this.activeFormattingElements.entries.findIndex(d=>d.type===I2.Marker||this.openElements.contains(d.element)),c=s===-1?i-1:s-1;for(let d=c;d>=0;d--){const g=this.activeFormattingElements.entries[d];this._insertElement(g.token,this.treeAdapter.getNamespaceURI(g.element)),g.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ut.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(W.P),this.openElements.popUntilTagNamePopped(W.P)}_resetInsertionMode(){for(let i=this.openElements.stackTop;i>=0;i--)switch(i===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[i]){case W.TR:{this.insertionMode=ut.IN_ROW;return}case W.TBODY:case W.THEAD:case W.TFOOT:{this.insertionMode=ut.IN_TABLE_BODY;return}case W.CAPTION:{this.insertionMode=ut.IN_CAPTION;return}case W.COLGROUP:{this.insertionMode=ut.IN_COLUMN_GROUP;return}case W.TABLE:{this.insertionMode=ut.IN_TABLE;return}case W.BODY:{this.insertionMode=ut.IN_BODY;return}case W.FRAMESET:{this.insertionMode=ut.IN_FRAMESET;return}case W.SELECT:{this._resetInsertionModeForSelect(i);return}case W.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case W.HTML:{this.insertionMode=this.headElement?ut.AFTER_HEAD:ut.BEFORE_HEAD;return}case W.TD:case W.TH:{if(i>0){this.insertionMode=ut.IN_CELL;return}break}case W.HEAD:{if(i>0){this.insertionMode=ut.IN_HEAD;return}break}}this.insertionMode=ut.IN_BODY}_resetInsertionModeForSelect(i){if(i>0)for(let s=i-1;s>0;s--){const c=this.openElements.tagIDs[s];if(c===W.TEMPLATE)break;if(c===W.TABLE){this.insertionMode=ut.IN_SELECT_IN_TABLE;return}}this.insertionMode=ut.IN_SELECT}_isElementCausesFosterParenting(i){return GJt.has(i)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let i=this.openElements.stackTop;i>=0;i--){const s=this.openElements.items[i];switch(this.openElements.tagIDs[i]){case W.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(s)===Fn.HTML)return{parent:this.treeAdapter.getTemplateContent(s),beforeElement:null};break}case W.TABLE:{const c=this.treeAdapter.getParentNode(s);return c?{parent:c,beforeElement:s}:{parent:this.openElements.items[i-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(i){const s=this._findFosterParentingLocation();s.beforeElement?this.treeAdapter.insertBefore(s.parent,i,s.beforeElement):this.treeAdapter.appendChild(s.parent,i)}_isSpecialElement(i,s){const c=this.treeAdapter.getNamespaceURI(i);return hor[c].has(s)}onCharacter(i){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Aar(this,i);return}switch(this.insertionMode){case ut.INITIAL:{GU(this,i);break}case ut.BEFORE_HTML:{vH(this,i);break}case ut.BEFORE_HEAD:{EH(this,i);break}case ut.IN_HEAD:{SH(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{TH(this,i);break}case ut.AFTER_HEAD:{AH(this,i);break}case ut.IN_BODY:case ut.IN_CAPTION:case ut.IN_CELL:case ut.IN_TEMPLATE:{WJt(this,i);break}case ut.TEXT:case ut.IN_SELECT:case ut.IN_SELECT_IN_TABLE:{this._insertCharacters(i);break}case ut.IN_TABLE:case ut.IN_TABLE_BODY:case ut.IN_ROW:{JOe(this,i);break}case ut.IN_TABLE_TEXT:{QJt(this,i);break}case ut.IN_COLUMN_GROUP:{_se(this,i);break}case ut.AFTER_BODY:{xse(this,i);break}case ut.AFTER_AFTER_BODY:{soe(this,i);break}}}onNullCharacter(i){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Tar(this,i);return}switch(this.insertionMode){case ut.INITIAL:{GU(this,i);break}case ut.BEFORE_HTML:{vH(this,i);break}case ut.BEFORE_HEAD:{EH(this,i);break}case ut.IN_HEAD:{SH(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{TH(this,i);break}case ut.AFTER_HEAD:{AH(this,i);break}case ut.TEXT:{this._insertCharacters(i);break}case ut.IN_TABLE:case ut.IN_TABLE_BODY:case ut.IN_ROW:{JOe(this,i);break}case ut.IN_COLUMN_GROUP:{_se(this,i);break}case ut.AFTER_BODY:{xse(this,i);break}case ut.AFTER_AFTER_BODY:{soe(this,i);break}}}onComment(i){if(this.skipNextNewLine=!1,this.currentNotInHTML){dLe(this,i);return}switch(this.insertionMode){case ut.INITIAL:case ut.BEFORE_HTML:case ut.BEFORE_HEAD:case ut.IN_HEAD:case ut.IN_HEAD_NO_SCRIPT:case ut.AFTER_HEAD:case ut.IN_BODY:case ut.IN_TABLE:case ut.IN_CAPTION:case ut.IN_COLUMN_GROUP:case ut.IN_TABLE_BODY:case ut.IN_ROW:case ut.IN_CELL:case ut.IN_SELECT:case ut.IN_SELECT_IN_TABLE:case ut.IN_TEMPLATE:case ut.IN_FRAMESET:case ut.AFTER_FRAMESET:{dLe(this,i);break}case ut.IN_TABLE_TEXT:{qU(this,i);break}case ut.AFTER_BODY:{esr(this,i);break}case ut.AFTER_AFTER_BODY:case ut.AFTER_AFTER_FRAMESET:{tsr(this,i);break}}}onDoctype(i){switch(this.skipNextNewLine=!1,this.insertionMode){case ut.INITIAL:{nsr(this,i);break}case ut.BEFORE_HEAD:case ut.IN_HEAD:case ut.IN_HEAD_NO_SCRIPT:case ut.AFTER_HEAD:{this._err(i,sn.misplacedDoctype);break}case ut.IN_TABLE_TEXT:{qU(this,i);break}}}onStartTag(i){this.skipNextNewLine=!1,this.currentToken=i,this._processStartTag(i),i.selfClosing&&!i.ackSelfClosing&&this._err(i,sn.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(i){this.shouldProcessStartTagTokenInForeignContent(i)?_ar(this,i):this._startTagOutsideForeignContent(i)}_startTagOutsideForeignContent(i){switch(this.insertionMode){case ut.INITIAL:{GU(this,i);break}case ut.BEFORE_HTML:{rsr(this,i);break}case ut.BEFORE_HEAD:{osr(this,i);break}case ut.IN_HEAD:{Hv(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{usr(this,i);break}case ut.AFTER_HEAD:{lsr(this,i);break}case ut.IN_BODY:{Vp(this,i);break}case ut.IN_TABLE:{OM(this,i);break}case ut.IN_TABLE_TEXT:{qU(this,i);break}case ut.IN_CAPTION:{sar(this,i);break}case ut.IN_COLUMN_GROUP:{c9e(this,i);break}case ut.IN_TABLE_BODY:{aue(this,i);break}case ut.IN_ROW:{uue(this,i);break}case ut.IN_CELL:{car(this,i);break}case ut.IN_SELECT:{nXt(this,i);break}case ut.IN_SELECT_IN_TABLE:{dar(this,i);break}case ut.IN_TEMPLATE:{har(this,i);break}case ut.AFTER_BODY:{gar(this,i);break}case ut.IN_FRAMESET:{bar(this,i);break}case ut.AFTER_FRAMESET:{war(this,i);break}case ut.AFTER_AFTER_BODY:{Ear(this,i);break}case ut.AFTER_AFTER_FRAMESET:{Sar(this,i);break}}}onEndTag(i){this.skipNextNewLine=!1,this.currentToken=i,this.currentNotInHTML?xar(this,i):this._endTagOutsideForeignContent(i)}_endTagOutsideForeignContent(i){switch(this.insertionMode){case ut.INITIAL:{GU(this,i);break}case ut.BEFORE_HTML:{isr(this,i);break}case ut.BEFORE_HEAD:{ssr(this,i);break}case ut.IN_HEAD:{asr(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{csr(this,i);break}case ut.AFTER_HEAD:{dsr(this,i);break}case ut.IN_BODY:{sue(this,i);break}case ut.TEXT:{Jsr(this,i);break}case ut.IN_TABLE:{hz(this,i);break}case ut.IN_TABLE_TEXT:{qU(this,i);break}case ut.IN_CAPTION:{aar(this,i);break}case ut.IN_COLUMN_GROUP:{uar(this,i);break}case ut.IN_TABLE_BODY:{fLe(this,i);break}case ut.IN_ROW:{tXt(this,i);break}case ut.IN_CELL:{lar(this,i);break}case ut.IN_SELECT:{rXt(this,i);break}case ut.IN_SELECT_IN_TABLE:{far(this,i);break}case ut.IN_TEMPLATE:{par(this,i);break}case ut.AFTER_BODY:{oXt(this,i);break}case ut.IN_FRAMESET:{mar(this,i);break}case ut.AFTER_FRAMESET:{yar(this,i);break}case ut.AFTER_AFTER_BODY:{soe(this,i);break}}}onEof(i){switch(this.insertionMode){case ut.INITIAL:{GU(this,i);break}case ut.BEFORE_HTML:{vH(this,i);break}case ut.BEFORE_HEAD:{EH(this,i);break}case ut.IN_HEAD:{SH(this,i);break}case ut.IN_HEAD_NO_SCRIPT:{TH(this,i);break}case ut.AFTER_HEAD:{AH(this,i);break}case ut.IN_BODY:case ut.IN_TABLE:case ut.IN_CAPTION:case ut.IN_COLUMN_GROUP:case ut.IN_TABLE_BODY:case ut.IN_ROW:case ut.IN_CELL:case ut.IN_SELECT:case ut.IN_SELECT_IN_TABLE:{XJt(this,i);break}case ut.TEXT:{Xsr(this,i);break}case ut.IN_TABLE_TEXT:{qU(this,i);break}case ut.IN_TEMPLATE:{iXt(this,i);break}case ut.AFTER_BODY:case ut.IN_FRAMESET:case ut.AFTER_FRAMESET:case ut.AFTER_AFTER_BODY:case ut.AFTER_AFTER_FRAMESET:{u9e(this,i);break}}}onWhitespaceCharacter(i){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,i.chars.charCodeAt(0)===$e.LINE_FEED)){if(i.chars.length===1)return;i.chars=i.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(i);return}switch(this.insertionMode){case ut.IN_HEAD:case ut.IN_HEAD_NO_SCRIPT:case ut.AFTER_HEAD:case ut.TEXT:case ut.IN_COLUMN_GROUP:case ut.IN_SELECT:case ut.IN_SELECT_IN_TABLE:case ut.IN_FRAMESET:case ut.AFTER_FRAMESET:{this._insertCharacters(i);break}case ut.IN_BODY:case ut.IN_CAPTION:case ut.IN_CELL:case ut.IN_TEMPLATE:case ut.AFTER_BODY:case ut.AFTER_AFTER_BODY:case ut.AFTER_AFTER_FRAMESET:{VJt(this,i);break}case ut.IN_TABLE:case ut.IN_TABLE_BODY:case ut.IN_ROW:{JOe(this,i);break}case ut.IN_TABLE_TEXT:{ZJt(this,i);break}}}}function Kor(n,i){let s=n.activeFormattingElements.getElementEntryInScopeWithTagName(i.tagName);return s?n.openElements.contains(s.element)?n.openElements.hasInScope(i.tagID)||(s=null):(n.activeFormattingElements.removeEntry(s),s=null):JJt(n,i),s}function Yor(n,i){let s=null,c=n.openElements.stackTop;for(;c>=0;c--){const d=n.openElements.items[c];if(d===i.element)break;n._isSpecialElement(d,n.openElements.tagIDs[c])&&(s=d)}return s||(n.openElements.shortenToLength(Math.max(c,0)),n.activeFormattingElements.removeEntry(i)),s}function Jor(n,i,s){let c=i,d=n.openElements.getCommonAncestor(i);for(let g=0,b=d;b!==s;g++,b=d){d=n.openElements.getCommonAncestor(b);const w=n.activeFormattingElements.getElementEntry(b),E=w&&g>=Vor;!w||E?(E&&n.activeFormattingElements.removeEntry(w),n.openElements.remove(b)):(b=Xor(n,w),c===i&&(n.activeFormattingElements.bookmark=w),n.treeAdapter.detachNode(c),n.treeAdapter.appendChild(b,c),c=b)}return c}function Xor(n,i){const s=n.treeAdapter.getNamespaceURI(i.element),c=n.treeAdapter.createElement(i.token.tagName,s,i.token.attrs);return n.openElements.replace(i.element,c),i.element=c,c}function Zor(n,i,s){const c=n.treeAdapter.getTagName(i),d=iue(c);if(n._isElementCausesFosterParenting(d))n._fosterParentElement(s);else{const g=n.treeAdapter.getNamespaceURI(i);d===W.TEMPLATE&&g===Fn.HTML&&(i=n.treeAdapter.getTemplateContent(i)),n.treeAdapter.appendChild(i,s)}}function Qor(n,i,s){const c=n.treeAdapter.getNamespaceURI(s.element),{token:d}=s,g=n.treeAdapter.createElement(d.tagName,c,d.attrs);n._adoptNodes(i,g),n.treeAdapter.appendChild(i,g),n.activeFormattingElements.insertElementAfterBookmark(g,d),n.activeFormattingElements.removeEntry(s),n.openElements.remove(s.element),n.openElements.insertAfter(i,g,d.tagID)}function a9e(n,i){for(let s=0;s=s;c--)n._setEndLocation(n.openElements.items[c],i);if(!n.fragmentContext&&n.openElements.stackTop>=0){const c=n.openElements.items[0],d=n.treeAdapter.getNodeSourceCodeLocation(c);if(d&&!d.endTag&&(n._setEndLocation(c,i),n.openElements.stackTop>=1)){const g=n.openElements.items[1],b=n.treeAdapter.getNodeSourceCodeLocation(g);b&&!b.endTag&&n._setEndLocation(g,i)}}}}function nsr(n,i){n._setDocumentType(i);const s=i.forceQuirks?ww.QUIRKS:Oor(i);Ror(i)||n._err(i,sn.nonConformingDoctype),n.treeAdapter.setDocumentMode(n.document,s),n.insertionMode=ut.BEFORE_HTML}function GU(n,i){n._err(i,sn.missingDoctype,!0),n.treeAdapter.setDocumentMode(n.document,ww.QUIRKS),n.insertionMode=ut.BEFORE_HTML,n._processToken(i)}function rsr(n,i){i.tagID===W.HTML?(n._insertElement(i,Fn.HTML),n.insertionMode=ut.BEFORE_HEAD):vH(n,i)}function isr(n,i){const s=i.tagID;(s===W.HTML||s===W.HEAD||s===W.BODY||s===W.BR)&&vH(n,i)}function vH(n,i){n._insertFakeRootElement(),n.insertionMode=ut.BEFORE_HEAD,n._processToken(i)}function osr(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.HEAD:{n._insertElement(i,Fn.HTML),n.headElement=n.openElements.current,n.insertionMode=ut.IN_HEAD;break}default:EH(n,i)}}function ssr(n,i){const s=i.tagID;s===W.HEAD||s===W.BODY||s===W.HTML||s===W.BR?EH(n,i):n._err(i,sn.endTagWithoutMatchingOpenElement)}function EH(n,i){n._insertFakeElement(Pt.HEAD,W.HEAD),n.headElement=n.openElements.current,n.insertionMode=ut.IN_HEAD,n._processToken(i)}function Hv(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.BASE:case W.BASEFONT:case W.BGSOUND:case W.LINK:case W.META:{n._appendElement(i,Fn.HTML),i.ackSelfClosing=!0;break}case W.TITLE:{n._switchToTextParsing(i,ob.RCDATA);break}case W.NOSCRIPT:{n.options.scriptingEnabled?n._switchToTextParsing(i,ob.RAWTEXT):(n._insertElement(i,Fn.HTML),n.insertionMode=ut.IN_HEAD_NO_SCRIPT);break}case W.NOFRAMES:case W.STYLE:{n._switchToTextParsing(i,ob.RAWTEXT);break}case W.SCRIPT:{n._switchToTextParsing(i,ob.SCRIPT_DATA);break}case W.TEMPLATE:{n._insertTemplate(i),n.activeFormattingElements.insertMarker(),n.framesetOk=!1,n.insertionMode=ut.IN_TEMPLATE,n.tmplInsertionModeStack.unshift(ut.IN_TEMPLATE);break}case W.HEAD:{n._err(i,sn.misplacedStartTagForHeadElement);break}default:SH(n,i)}}function asr(n,i){switch(i.tagID){case W.HEAD:{n.openElements.pop(),n.insertionMode=ut.AFTER_HEAD;break}case W.BODY:case W.BR:case W.HTML:{SH(n,i);break}case W.TEMPLATE:{jR(n,i);break}default:n._err(i,sn.endTagWithoutMatchingOpenElement)}}function jR(n,i){n.openElements.tmplCount>0?(n.openElements.generateImpliedEndTagsThoroughly(),n.openElements.currentTagId!==W.TEMPLATE&&n._err(i,sn.closingOfElementWithOpenChildElements),n.openElements.popUntilTagNamePopped(W.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n.tmplInsertionModeStack.shift(),n._resetInsertionMode()):n._err(i,sn.endTagWithoutMatchingOpenElement)}function SH(n,i){n.openElements.pop(),n.insertionMode=ut.AFTER_HEAD,n._processToken(i)}function usr(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.BASEFONT:case W.BGSOUND:case W.HEAD:case W.LINK:case W.META:case W.NOFRAMES:case W.STYLE:{Hv(n,i);break}case W.NOSCRIPT:{n._err(i,sn.nestedNoscriptInHead);break}default:TH(n,i)}}function csr(n,i){switch(i.tagID){case W.NOSCRIPT:{n.openElements.pop(),n.insertionMode=ut.IN_HEAD;break}case W.BR:{TH(n,i);break}default:n._err(i,sn.endTagWithoutMatchingOpenElement)}}function TH(n,i){const s=i.type===ha.EOF?sn.openElementsLeftAfterEof:sn.disallowedContentInNoscriptInHead;n._err(i,s),n.openElements.pop(),n.insertionMode=ut.IN_HEAD,n._processToken(i)}function lsr(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.BODY:{n._insertElement(i,Fn.HTML),n.framesetOk=!1,n.insertionMode=ut.IN_BODY;break}case W.FRAMESET:{n._insertElement(i,Fn.HTML),n.insertionMode=ut.IN_FRAMESET;break}case W.BASE:case W.BASEFONT:case W.BGSOUND:case W.LINK:case W.META:case W.NOFRAMES:case W.SCRIPT:case W.STYLE:case W.TEMPLATE:case W.TITLE:{n._err(i,sn.abandonedHeadElementChild),n.openElements.push(n.headElement,W.HEAD),Hv(n,i),n.openElements.remove(n.headElement);break}case W.HEAD:{n._err(i,sn.misplacedStartTagForHeadElement);break}default:AH(n,i)}}function dsr(n,i){switch(i.tagID){case W.BODY:case W.HTML:case W.BR:{AH(n,i);break}case W.TEMPLATE:{jR(n,i);break}default:n._err(i,sn.endTagWithoutMatchingOpenElement)}}function AH(n,i){n._insertFakeElement(Pt.BODY,W.BODY),n.insertionMode=ut.IN_BODY,oue(n,i)}function oue(n,i){switch(i.type){case ha.CHARACTER:{WJt(n,i);break}case ha.WHITESPACE_CHARACTER:{VJt(n,i);break}case ha.COMMENT:{dLe(n,i);break}case ha.START_TAG:{Vp(n,i);break}case ha.END_TAG:{sue(n,i);break}case ha.EOF:{XJt(n,i);break}}}function VJt(n,i){n._reconstructActiveFormattingElements(),n._insertCharacters(i)}function WJt(n,i){n._reconstructActiveFormattingElements(),n._insertCharacters(i),n.framesetOk=!1}function fsr(n,i){n.openElements.tmplCount===0&&n.treeAdapter.adoptAttributes(n.openElements.items[0],i.attrs)}function hsr(n,i){const s=n.openElements.tryPeekProperlyNestedBodyElement();s&&n.openElements.tmplCount===0&&(n.framesetOk=!1,n.treeAdapter.adoptAttributes(s,i.attrs))}function psr(n,i){const s=n.openElements.tryPeekProperlyNestedBodyElement();n.framesetOk&&s&&(n.treeAdapter.detachNode(s),n.openElements.popAllUpToHtmlElement(),n._insertElement(i,Fn.HTML),n.insertionMode=ut.IN_FRAMESET)}function gsr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML)}function bsr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n.openElements.currentTagId!==void 0&&lLe.has(n.openElements.currentTagId)&&n.openElements.pop(),n._insertElement(i,Fn.HTML)}function msr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML),n.skipNextNewLine=!0,n.framesetOk=!1}function wsr(n,i){const s=n.openElements.tmplCount>0;(!n.formElement||s)&&(n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML),s||(n.formElement=n.openElements.current))}function ysr(n,i){n.framesetOk=!1;const s=i.tagID;for(let c=n.openElements.stackTop;c>=0;c--){const d=n.openElements.tagIDs[c];if(s===W.LI&&d===W.LI||(s===W.DD||s===W.DT)&&(d===W.DD||d===W.DT)){n.openElements.generateImpliedEndTagsWithExclusion(d),n.openElements.popUntilTagNamePopped(d);break}if(d!==W.ADDRESS&&d!==W.DIV&&d!==W.P&&n._isSpecialElement(n.openElements.items[c],d))break}n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML)}function vsr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML),n.tokenizer.state=ob.PLAINTEXT}function Esr(n,i){n.openElements.hasInScope(W.BUTTON)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(W.BUTTON)),n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.framesetOk=!1}function Ssr(n,i){const s=n.activeFormattingElements.getElementEntryInScopeWithTagName(Pt.A);s&&(a9e(n,i),n.openElements.remove(s.element),n.activeFormattingElements.removeEntry(s)),n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,i)}function Tsr(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,i)}function Asr(n,i){n._reconstructActiveFormattingElements(),n.openElements.hasInScope(W.NOBR)&&(a9e(n,i),n._reconstructActiveFormattingElements()),n._insertElement(i,Fn.HTML),n.activeFormattingElements.pushElement(n.openElements.current,i)}function _sr(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.activeFormattingElements.insertMarker(),n.framesetOk=!1}function xsr(n,i){n.treeAdapter.getDocumentMode(n.document)!==ww.QUIRKS&&n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._insertElement(i,Fn.HTML),n.framesetOk=!1,n.insertionMode=ut.IN_TABLE}function KJt(n,i){n._reconstructActiveFormattingElements(),n._appendElement(i,Fn.HTML),n.framesetOk=!1,i.ackSelfClosing=!0}function YJt(n){const i=PJt(n,iR.TYPE);return i!=null&&i.toLowerCase()===Gor}function ksr(n,i){n._reconstructActiveFormattingElements(),n._appendElement(i,Fn.HTML),YJt(i)||(n.framesetOk=!1),i.ackSelfClosing=!0}function Nsr(n,i){n._appendElement(i,Fn.HTML),i.ackSelfClosing=!0}function Csr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._appendElement(i,Fn.HTML),n.framesetOk=!1,i.ackSelfClosing=!0}function Isr(n,i){i.tagName=Pt.IMG,i.tagID=W.IMG,KJt(n,i)}function Rsr(n,i){n._insertElement(i,Fn.HTML),n.skipNextNewLine=!0,n.tokenizer.state=ob.RCDATA,n.originalInsertionMode=n.insertionMode,n.framesetOk=!1,n.insertionMode=ut.TEXT}function Osr(n,i){n.openElements.hasInButtonScope(W.P)&&n._closePElement(),n._reconstructActiveFormattingElements(),n.framesetOk=!1,n._switchToTextParsing(i,ob.RAWTEXT)}function Dsr(n,i){n.framesetOk=!1,n._switchToTextParsing(i,ob.RAWTEXT)}function b$t(n,i){n._switchToTextParsing(i,ob.RAWTEXT)}function Lsr(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML),n.framesetOk=!1,n.insertionMode=n.insertionMode===ut.IN_TABLE||n.insertionMode===ut.IN_CAPTION||n.insertionMode===ut.IN_TABLE_BODY||n.insertionMode===ut.IN_ROW||n.insertionMode===ut.IN_CELL?ut.IN_SELECT_IN_TABLE:ut.IN_SELECT}function Msr(n,i){n.openElements.currentTagId===W.OPTION&&n.openElements.pop(),n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML)}function Psr(n,i){n.openElements.hasInScope(W.RUBY)&&n.openElements.generateImpliedEndTags(),n._insertElement(i,Fn.HTML)}function jsr(n,i){n.openElements.hasInScope(W.RUBY)&&n.openElements.generateImpliedEndTagsWithExclusion(W.RTC),n._insertElement(i,Fn.HTML)}function Fsr(n,i){n._reconstructActiveFormattingElements(),HJt(i),s9e(i),i.selfClosing?n._appendElement(i,Fn.MATHML):n._insertElement(i,Fn.MATHML),i.ackSelfClosing=!0}function $sr(n,i){n._reconstructActiveFormattingElements(),zJt(i),s9e(i),i.selfClosing?n._appendElement(i,Fn.SVG):n._insertElement(i,Fn.SVG),i.ackSelfClosing=!0}function m$t(n,i){n._reconstructActiveFormattingElements(),n._insertElement(i,Fn.HTML)}function Vp(n,i){switch(i.tagID){case W.I:case W.S:case W.B:case W.U:case W.EM:case W.TT:case W.BIG:case W.CODE:case W.FONT:case W.SMALL:case W.STRIKE:case W.STRONG:{Tsr(n,i);break}case W.A:{Ssr(n,i);break}case W.H1:case W.H2:case W.H3:case W.H4:case W.H5:case W.H6:{bsr(n,i);break}case W.P:case W.DL:case W.OL:case W.UL:case W.DIV:case W.DIR:case W.NAV:case W.MAIN:case W.MENU:case W.ASIDE:case W.CENTER:case W.FIGURE:case W.FOOTER:case W.HEADER:case W.HGROUP:case W.DIALOG:case W.DETAILS:case W.ADDRESS:case W.ARTICLE:case W.SEARCH:case W.SECTION:case W.SUMMARY:case W.FIELDSET:case W.BLOCKQUOTE:case W.FIGCAPTION:{gsr(n,i);break}case W.LI:case W.DD:case W.DT:{ysr(n,i);break}case W.BR:case W.IMG:case W.WBR:case W.AREA:case W.EMBED:case W.KEYGEN:{KJt(n,i);break}case W.HR:{Csr(n,i);break}case W.RB:case W.RTC:{Psr(n,i);break}case W.RT:case W.RP:{jsr(n,i);break}case W.PRE:case W.LISTING:{msr(n,i);break}case W.XMP:{Osr(n,i);break}case W.SVG:{$sr(n,i);break}case W.HTML:{fsr(n,i);break}case W.BASE:case W.LINK:case W.META:case W.STYLE:case W.TITLE:case W.SCRIPT:case W.BGSOUND:case W.BASEFONT:case W.TEMPLATE:{Hv(n,i);break}case W.BODY:{hsr(n,i);break}case W.FORM:{wsr(n,i);break}case W.NOBR:{Asr(n,i);break}case W.MATH:{Fsr(n,i);break}case W.TABLE:{xsr(n,i);break}case W.INPUT:{ksr(n,i);break}case W.PARAM:case W.TRACK:case W.SOURCE:{Nsr(n,i);break}case W.IMAGE:{Isr(n,i);break}case W.BUTTON:{Esr(n,i);break}case W.APPLET:case W.OBJECT:case W.MARQUEE:{_sr(n,i);break}case W.IFRAME:{Dsr(n,i);break}case W.SELECT:{Lsr(n,i);break}case W.OPTION:case W.OPTGROUP:{Msr(n,i);break}case W.NOEMBED:case W.NOFRAMES:{b$t(n,i);break}case W.FRAMESET:{psr(n,i);break}case W.TEXTAREA:{Rsr(n,i);break}case W.NOSCRIPT:{n.options.scriptingEnabled?b$t(n,i):m$t(n,i);break}case W.PLAINTEXT:{vsr(n,i);break}case W.COL:case W.TH:case W.TD:case W.TR:case W.HEAD:case W.FRAME:case W.TBODY:case W.TFOOT:case W.THEAD:case W.CAPTION:case W.COLGROUP:break;default:m$t(n,i)}}function Bsr(n,i){if(n.openElements.hasInScope(W.BODY)&&(n.insertionMode=ut.AFTER_BODY,n.options.sourceCodeLocationInfo)){const s=n.openElements.tryPeekProperlyNestedBodyElement();s&&n._setEndLocation(s,i)}}function Usr(n,i){n.openElements.hasInScope(W.BODY)&&(n.insertionMode=ut.AFTER_BODY,oXt(n,i))}function Hsr(n,i){const s=i.tagID;n.openElements.hasInScope(s)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(s))}function zsr(n){const i=n.openElements.tmplCount>0,{formElement:s}=n;i||(n.formElement=null),(s||i)&&n.openElements.hasInScope(W.FORM)&&(n.openElements.generateImpliedEndTags(),i?n.openElements.popUntilTagNamePopped(W.FORM):s&&n.openElements.remove(s))}function Gsr(n){n.openElements.hasInButtonScope(W.P)||n._insertFakeElement(Pt.P,W.P),n._closePElement()}function qsr(n){n.openElements.hasInListItemScope(W.LI)&&(n.openElements.generateImpliedEndTagsWithExclusion(W.LI),n.openElements.popUntilTagNamePopped(W.LI))}function Vsr(n,i){const s=i.tagID;n.openElements.hasInScope(s)&&(n.openElements.generateImpliedEndTagsWithExclusion(s),n.openElements.popUntilTagNamePopped(s))}function Wsr(n){n.openElements.hasNumberedHeaderInScope()&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilNumberedHeaderPopped())}function Ksr(n,i){const s=i.tagID;n.openElements.hasInScope(s)&&(n.openElements.generateImpliedEndTags(),n.openElements.popUntilTagNamePopped(s),n.activeFormattingElements.clearToLastMarker())}function Ysr(n){n._reconstructActiveFormattingElements(),n._insertFakeElement(Pt.BR,W.BR),n.openElements.pop(),n.framesetOk=!1}function JJt(n,i){const s=i.tagName,c=i.tagID;for(let d=n.openElements.stackTop;d>0;d--){const g=n.openElements.items[d],b=n.openElements.tagIDs[d];if(c===b&&(c!==W.UNKNOWN||n.treeAdapter.getTagName(g)===s)){n.openElements.generateImpliedEndTagsWithExclusion(c),n.openElements.stackTop>=d&&n.openElements.shortenToLength(d);break}if(n._isSpecialElement(g,b))break}}function sue(n,i){switch(i.tagID){case W.A:case W.B:case W.I:case W.S:case W.U:case W.EM:case W.TT:case W.BIG:case W.CODE:case W.FONT:case W.NOBR:case W.SMALL:case W.STRIKE:case W.STRONG:{a9e(n,i);break}case W.P:{Gsr(n);break}case W.DL:case W.UL:case W.OL:case W.DIR:case W.DIV:case W.NAV:case W.PRE:case W.MAIN:case W.MENU:case W.ASIDE:case W.BUTTON:case W.CENTER:case W.FIGURE:case W.FOOTER:case W.HEADER:case W.HGROUP:case W.DIALOG:case W.ADDRESS:case W.ARTICLE:case W.DETAILS:case W.SEARCH:case W.SECTION:case W.SUMMARY:case W.LISTING:case W.FIELDSET:case W.BLOCKQUOTE:case W.FIGCAPTION:{Hsr(n,i);break}case W.LI:{qsr(n);break}case W.DD:case W.DT:{Vsr(n,i);break}case W.H1:case W.H2:case W.H3:case W.H4:case W.H5:case W.H6:{Wsr(n);break}case W.BR:{Ysr(n);break}case W.BODY:{Bsr(n,i);break}case W.HTML:{Usr(n,i);break}case W.FORM:{zsr(n);break}case W.APPLET:case W.OBJECT:case W.MARQUEE:{Ksr(n,i);break}case W.TEMPLATE:{jR(n,i);break}default:JJt(n,i)}}function XJt(n,i){n.tmplInsertionModeStack.length>0?iXt(n,i):u9e(n,i)}function Jsr(n,i){var s;i.tagID===W.SCRIPT&&((s=n.scriptHandler)===null||s===void 0||s.call(n,n.openElements.current)),n.openElements.pop(),n.insertionMode=n.originalInsertionMode}function Xsr(n,i){n._err(i,sn.eofInElementThatCanContainOnlyText),n.openElements.pop(),n.insertionMode=n.originalInsertionMode,n.onEof(i)}function JOe(n,i){if(n.openElements.currentTagId!==void 0&&GJt.has(n.openElements.currentTagId))switch(n.pendingCharacterTokens.length=0,n.hasNonWhitespacePendingCharacterToken=!1,n.originalInsertionMode=n.insertionMode,n.insertionMode=ut.IN_TABLE_TEXT,i.type){case ha.CHARACTER:{QJt(n,i);break}case ha.WHITESPACE_CHARACTER:{ZJt(n,i);break}}else zz(n,i)}function Zsr(n,i){n.openElements.clearBackToTableContext(),n.activeFormattingElements.insertMarker(),n._insertElement(i,Fn.HTML),n.insertionMode=ut.IN_CAPTION}function Qsr(n,i){n.openElements.clearBackToTableContext(),n._insertElement(i,Fn.HTML),n.insertionMode=ut.IN_COLUMN_GROUP}function ear(n,i){n.openElements.clearBackToTableContext(),n._insertFakeElement(Pt.COLGROUP,W.COLGROUP),n.insertionMode=ut.IN_COLUMN_GROUP,c9e(n,i)}function tar(n,i){n.openElements.clearBackToTableContext(),n._insertElement(i,Fn.HTML),n.insertionMode=ut.IN_TABLE_BODY}function nar(n,i){n.openElements.clearBackToTableContext(),n._insertFakeElement(Pt.TBODY,W.TBODY),n.insertionMode=ut.IN_TABLE_BODY,aue(n,i)}function rar(n,i){n.openElements.hasInTableScope(W.TABLE)&&(n.openElements.popUntilTagNamePopped(W.TABLE),n._resetInsertionMode(),n._processStartTag(i))}function iar(n,i){YJt(i)?n._appendElement(i,Fn.HTML):zz(n,i),i.ackSelfClosing=!0}function oar(n,i){!n.formElement&&n.openElements.tmplCount===0&&(n._insertElement(i,Fn.HTML),n.formElement=n.openElements.current,n.openElements.pop())}function OM(n,i){switch(i.tagID){case W.TD:case W.TH:case W.TR:{nar(n,i);break}case W.STYLE:case W.SCRIPT:case W.TEMPLATE:{Hv(n,i);break}case W.COL:{ear(n,i);break}case W.FORM:{oar(n,i);break}case W.TABLE:{rar(n,i);break}case W.TBODY:case W.TFOOT:case W.THEAD:{tar(n,i);break}case W.INPUT:{iar(n,i);break}case W.CAPTION:{Zsr(n,i);break}case W.COLGROUP:{Qsr(n,i);break}default:zz(n,i)}}function hz(n,i){switch(i.tagID){case W.TABLE:{n.openElements.hasInTableScope(W.TABLE)&&(n.openElements.popUntilTagNamePopped(W.TABLE),n._resetInsertionMode());break}case W.TEMPLATE:{jR(n,i);break}case W.BODY:case W.CAPTION:case W.COL:case W.COLGROUP:case W.HTML:case W.TBODY:case W.TD:case W.TFOOT:case W.TH:case W.THEAD:case W.TR:break;default:zz(n,i)}}function zz(n,i){const s=n.fosterParentingEnabled;n.fosterParentingEnabled=!0,oue(n,i),n.fosterParentingEnabled=s}function ZJt(n,i){n.pendingCharacterTokens.push(i)}function QJt(n,i){n.pendingCharacterTokens.push(i),n.hasNonWhitespacePendingCharacterToken=!0}function qU(n,i){let s=0;if(n.hasNonWhitespacePendingCharacterToken)for(;s0&&n.openElements.currentTagId===W.OPTION&&n.openElements.tagIDs[n.openElements.stackTop-1]===W.OPTGROUP&&n.openElements.pop(),n.openElements.currentTagId===W.OPTGROUP&&n.openElements.pop();break}case W.OPTION:{n.openElements.currentTagId===W.OPTION&&n.openElements.pop();break}case W.SELECT:{n.openElements.hasInSelectScope(W.SELECT)&&(n.openElements.popUntilTagNamePopped(W.SELECT),n._resetInsertionMode());break}case W.TEMPLATE:{jR(n,i);break}}}function dar(n,i){const s=i.tagID;s===W.CAPTION||s===W.TABLE||s===W.TBODY||s===W.TFOOT||s===W.THEAD||s===W.TR||s===W.TD||s===W.TH?(n.openElements.popUntilTagNamePopped(W.SELECT),n._resetInsertionMode(),n._processStartTag(i)):nXt(n,i)}function far(n,i){const s=i.tagID;s===W.CAPTION||s===W.TABLE||s===W.TBODY||s===W.TFOOT||s===W.THEAD||s===W.TR||s===W.TD||s===W.TH?n.openElements.hasInTableScope(s)&&(n.openElements.popUntilTagNamePopped(W.SELECT),n._resetInsertionMode(),n.onEndTag(i)):rXt(n,i)}function har(n,i){switch(i.tagID){case W.BASE:case W.BASEFONT:case W.BGSOUND:case W.LINK:case W.META:case W.NOFRAMES:case W.SCRIPT:case W.STYLE:case W.TEMPLATE:case W.TITLE:{Hv(n,i);break}case W.CAPTION:case W.COLGROUP:case W.TBODY:case W.TFOOT:case W.THEAD:{n.tmplInsertionModeStack[0]=ut.IN_TABLE,n.insertionMode=ut.IN_TABLE,OM(n,i);break}case W.COL:{n.tmplInsertionModeStack[0]=ut.IN_COLUMN_GROUP,n.insertionMode=ut.IN_COLUMN_GROUP,c9e(n,i);break}case W.TR:{n.tmplInsertionModeStack[0]=ut.IN_TABLE_BODY,n.insertionMode=ut.IN_TABLE_BODY,aue(n,i);break}case W.TD:case W.TH:{n.tmplInsertionModeStack[0]=ut.IN_ROW,n.insertionMode=ut.IN_ROW,uue(n,i);break}default:n.tmplInsertionModeStack[0]=ut.IN_BODY,n.insertionMode=ut.IN_BODY,Vp(n,i)}}function par(n,i){i.tagID===W.TEMPLATE&&jR(n,i)}function iXt(n,i){n.openElements.tmplCount>0?(n.openElements.popUntilTagNamePopped(W.TEMPLATE),n.activeFormattingElements.clearToLastMarker(),n.tmplInsertionModeStack.shift(),n._resetInsertionMode(),n.onEof(i)):u9e(n,i)}function gar(n,i){i.tagID===W.HTML?Vp(n,i):xse(n,i)}function oXt(n,i){var s;if(i.tagID===W.HTML){if(n.fragmentContext||(n.insertionMode=ut.AFTER_AFTER_BODY),n.options.sourceCodeLocationInfo&&n.openElements.tagIDs[0]===W.HTML){n._setEndLocation(n.openElements.items[0],i);const c=n.openElements.items[1];c&&!(!((s=n.treeAdapter.getNodeSourceCodeLocation(c))===null||s===void 0)&&s.endTag)&&n._setEndLocation(c,i)}}else xse(n,i)}function xse(n,i){n.insertionMode=ut.IN_BODY,oue(n,i)}function bar(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.FRAMESET:{n._insertElement(i,Fn.HTML);break}case W.FRAME:{n._appendElement(i,Fn.HTML),i.ackSelfClosing=!0;break}case W.NOFRAMES:{Hv(n,i);break}}}function mar(n,i){i.tagID===W.FRAMESET&&!n.openElements.isRootHtmlElementCurrent()&&(n.openElements.pop(),!n.fragmentContext&&n.openElements.currentTagId!==W.FRAMESET&&(n.insertionMode=ut.AFTER_FRAMESET))}function war(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.NOFRAMES:{Hv(n,i);break}}}function yar(n,i){i.tagID===W.HTML&&(n.insertionMode=ut.AFTER_AFTER_FRAMESET)}function Ear(n,i){i.tagID===W.HTML?Vp(n,i):soe(n,i)}function soe(n,i){n.insertionMode=ut.IN_BODY,oue(n,i)}function Sar(n,i){switch(i.tagID){case W.HTML:{Vp(n,i);break}case W.NOFRAMES:{Hv(n,i);break}}}function Tar(n,i){i.chars=Oc,n._insertCharacters(i)}function Aar(n,i){n._insertCharacters(i),n.framesetOk=!1}function sXt(n){for(;n.treeAdapter.getNamespaceURI(n.openElements.current)!==Fn.HTML&&n.openElements.currentTagId!==void 0&&!n._isIntegrationPoint(n.openElements.currentTagId,n.openElements.current);)n.openElements.pop()}function _ar(n,i){if($or(i))sXt(n),n._startTagOutsideForeignContent(i);else{const s=n._getAdjustedCurrentElement(),c=n.treeAdapter.getNamespaceURI(s);c===Fn.MATHML?HJt(i):c===Fn.SVG&&(Bor(i),zJt(i)),s9e(i),i.selfClosing?n._appendElement(i,c):n._insertElement(i,c),i.ackSelfClosing=!0}}function xar(n,i){if(i.tagID===W.P||i.tagID===W.BR){sXt(n),n._endTagOutsideForeignContent(i);return}for(let s=n.openElements.stackTop;s>0;s--){const c=n.openElements.items[s];if(n.treeAdapter.getNamespaceURI(c)===Fn.HTML){n._endTagOutsideForeignContent(i);break}const d=n.treeAdapter.getTagName(c);if(d.toLowerCase()===i.tagName){i.tagName=d,n.openElements.shortenToLength(s);break}}}Pt.AREA,Pt.BASE,Pt.BASEFONT,Pt.BGSOUND,Pt.BR,Pt.COL,Pt.EMBED,Pt.FRAME,Pt.HR,Pt.IMG,Pt.INPUT,Pt.KEYGEN,Pt.LINK,Pt.META,Pt.PARAM,Pt.SOURCE,Pt.TRACK,Pt.WBR;function kar(n,i){return qJt.parse(n,i)}function Nar(n,i,s){typeof n=="string"&&(s=i,i=n,n=null);const c=qJt.getFragmentParser(n,s);return c.tokenizer.write(i,!0),c.getFragment()}function Car(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?w$t(n.position):"start"in n||"end"in n?w$t(n):"line"in n||"column"in n?hLe(n):""}function hLe(n){return y$t(n&&n.line)+":"+y$t(n&&n.column)}function w$t(n){return hLe(n&&n.start)+"-"+hLe(n&&n.end)}function y$t(n){return n&&typeof n=="number"?n:1}class Kg extends Error{constructor(i,s,c){super(),typeof s=="string"&&(c=s,s=void 0);let d="",g={},b=!1;if(s&&("line"in s&&"column"in s?g={place:s}:"start"in s&&"end"in s?g={place:s}:"type"in s?g={ancestors:[s],place:s.position}:g={...s}),typeof i=="string"?d=i:!g.cause&&i&&(b=!0,d=i.message,g.cause=i),!g.ruleId&&!g.source&&typeof c=="string"){const E=c.indexOf(":");E===-1?g.ruleId=c:(g.source=c.slice(0,E),g.ruleId=c.slice(E+1))}if(!g.place&&g.ancestors&&g.ancestors){const E=g.ancestors[g.ancestors.length-1];E&&(g.place=E.position)}const w=g.place&&"start"in g.place?g.place.start:g.place;this.ancestors=g.ancestors||void 0,this.cause=g.cause||void 0,this.column=w?w.column:void 0,this.fatal=void 0,this.file="",this.message=d,this.line=w?w.line:void 0,this.name=Car(g.place)||"1:1",this.place=g.place||void 0,this.reason=this.message,this.ruleId=g.ruleId||void 0,this.source=g.source||void 0,this.stack=b&&g.cause&&typeof g.cause.stack=="string"?g.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Kg.prototype.file="";Kg.prototype.name="";Kg.prototype.reason="";Kg.prototype.message="";Kg.prototype.stack="";Kg.prototype.column=void 0;Kg.prototype.line=void 0;Kg.prototype.ancestors=void 0;Kg.prototype.cause=void 0;Kg.prototype.fatal=void 0;Kg.prototype.place=void 0;Kg.prototype.ruleId=void 0;Kg.prototype.source=void 0;const k2={basename:Iar,dirname:Rar,extname:Oar,join:Dar,sep:"/"};function Iar(n,i){if(i!==void 0&&typeof i!="string")throw new TypeError('"ext" argument must be a string');Gz(n);let s=0,c=-1,d=n.length,g;if(i===void 0||i.length===0||i.length>n.length){for(;d--;)if(n.codePointAt(d)===47){if(g){s=d+1;break}}else c<0&&(g=!0,c=d+1);return c<0?"":n.slice(s,c)}if(i===n)return"";let b=-1,w=i.length-1;for(;d--;)if(n.codePointAt(d)===47){if(g){s=d+1;break}}else b<0&&(g=!0,b=d+1),w>-1&&(n.codePointAt(d)===i.codePointAt(w--)?w<0&&(c=d):(w=-1,c=b));return s===c?c=b:c<0&&(c=n.length),n.slice(s,c)}function Rar(n){if(Gz(n),n.length===0)return".";let i=-1,s=n.length,c;for(;--s;)if(n.codePointAt(s)===47){if(c){i=s;break}}else c||(c=!0);return i<0?n.codePointAt(0)===47?"/":".":i===1&&n.codePointAt(0)===47?"//":n.slice(0,i)}function Oar(n){Gz(n);let i=n.length,s=-1,c=0,d=-1,g=0,b;for(;i--;){const w=n.codePointAt(i);if(w===47){if(b){c=i+1;break}continue}s<0&&(b=!0,s=i+1),w===46?d<0?d=i:g!==1&&(g=1):d>-1&&(g=-1)}return d<0||s<0||g===0||g===1&&d===s-1&&d===c+1?"":n.slice(d,s)}function Dar(...n){let i=-1,s;for(;++i0&&n.codePointAt(n.length-1)===47&&(s+="/"),i?"/"+s:s}function Mar(n,i){let s="",c=0,d=-1,g=0,b=-1,w,E;for(;++b<=n.length;){if(b2){if(E=s.lastIndexOf("/"),E!==s.length-1){E<0?(s="",c=0):(s=s.slice(0,E),c=s.length-1-s.lastIndexOf("/")),d=b,g=0;continue}}else if(s.length>0){s="",c=0,d=b,g=0;continue}}i&&(s=s.length>0?s+"/..":"..",c=2)}else s.length>0?s+="/"+n.slice(d+1,b):s=n.slice(d+1,b),c=b-d-1;d=b,g=0}else w===46&&g>-1?g++:g=-1}return s}function Gz(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const Par={cwd:jar};function jar(){return"/"}function pLe(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function Far(n){if(typeof n=="string")n=new URL(n);else if(!pLe(n)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if(n.protocol!=="file:"){const i=new TypeError("The URL must be of scheme file");throw i.code="ERR_INVALID_URL_SCHEME",i}return $ar(n)}function $ar(n){if(n.hostname!==""){const c=new TypeError('File URL host must be "localhost" or empty on darwin');throw c.code="ERR_INVALID_FILE_URL_HOST",c}const i=n.pathname;let s=-1;for(;++s`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `` in ``",description:"Unexpected text character `%c`. Only use text in `